query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
c201f3736cccaa37e22d7cbeb1867ce5
/============================================= FUNCION PARA CONSULTAR LA LISTA DE RESTAURANTES POR idHotel O TODA LA LISTA para generar el pdf =============================================
[ { "docid": "a84af62b68a32d0a43beeaa1b569bef4", "score": "0.5678228", "text": "static public function mdlMostrarListaRestaurantesPdf($tabla,$campoTabla, $valorCampoTabla){\r\n\r\n\r\n\t\tif($campoTabla != null ){\r\n\t\t\t// echo \"<script> console.log('entré aquí');</script>\";\r\n\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT * FROM $tabla WHERE $campoTabla = :$campoTabla\");\r\n\r\n\t\t\t\t$stmt -> bindParam(\":\".$campoTabla, $valorCampoTabla, PDO::PARAM_INT);\r\n\r\n\t\t\t\t$stmt -> execute();\r\n\r\n\t\t\t\treturn $stmt -> fetchAll();\r\n\r\n\t\t\t } \r\n\t\t\t elseif($campoTabla==null)\r\n\t\t\t\t{\r\n\t\t\t\t// echo \"<script> console.log('entré aquí');</script>\";\r\n\t\t\t\t$stmt = Conexion::conectar()->prepare(\"SELECT * FROM $tabla\");\r\n\r\n\t\t\t\t$stmt -> execute();\r\n\r\n\t\t\t\treturn $stmt -> fetchAll();\r\n\r\n\t\t\t\t$stmt -> close();\r\n\r\n\t\t\t\t$stmt = null;\r\n\t\t}\r\n\t}", "title": "" } ]
[ { "docid": "b7b02979877763201edee42a13ec4d93", "score": "0.646702", "text": "public function genererMesListePDF()\n {\n if (auth()->check()) {\n $id=auth()->user()->id;\n $nomUtilisateur=auth()->user()->username;\n $souscripteurs=Souscripteur::Where(\"user_id\",$id)\n ->get();\n\n $titre=\"Liste des souscripteurs de \".$nomUtilisateur;\n $nom=\"listeSouscripteur\";\n \n $pdf=PDF::loadView('listeSouscripteursPDF',compact('souscripteurs','titre'));\n \n return $pdf->download($nom);\n }\n else\n {\n return view('erreur');\n }\n }", "title": "" }, { "docid": "f869f82a9a78aba3ba3965ea07ad2e2c", "score": "0.6379638", "text": "public function generar_reporte_pdf(){\n\t\trequire_once APPPATH.'third_party/fpdf/fpdf.php';\n\n\t\t$pdf = new FPDF();\n\t\t$pdf->AddPage('P','A4',0);\n\t\t$pdf->SetFont('Arial','B',20);\n\t\t$pdf->setxy(60, 10);\n\t\t$pdf->cell(0, 0, 'LISTA DE CLIENTES', 0, 0, \"L\", false);\n\t\t$pdf->Cell(11,11, $pdf->Image('public/assets/images/ener8.png',50,5,10,10),0);\n\t\t$pdf->SetFont('Arial','B',10);\n\t\t$pdf->setxy(10, 20);\n\t\t$pdf->cell(0, 0, 'NOMBRE CLIENTE', 0, 0, \"L\", false);\n\t\t$pdf->setxy(90, 20);\n\t\t$pdf->cell(0, 0, 'DNI', 0, 0, \"L\", false);\n\t\t$pdf->setxy(120, 20);\n\t\t$pdf->cell(0, 0, 'FECHA FINAL MATRICULA', 0, 0, \"L\", false);\t\n\t\t$pdf->SetFont('Arial','',10);\n\t\t$data[\"cliente\"]=$this->Mantenimiento_m->consulta(\"SELECT * FROM cliente where cliente_estado=1 \"); \n\t\t$saltos=25;\n\t\tforeach ($data[\"cliente\"] as $key => $value) {\n\t\t\t$datos=$this->Mantenimiento_m->consulta(\"SELECT max(fecha_fin) as fecha_final,cliente.* from matricula inner JOIN cliente on cliente.cliente_id=matricula.cliente_id where matricula.cliente_id=\".$value->cliente_id);\n\t\t\t$pdf->setxy(10, $saltos);\t\n\t\t\t\t$pdf->cell(0, 0, utf8_decode($value->cliente_nombre_completo), 0, 0, \"L\", false);\n\t\t\t\t$pdf->setxy(90, $saltos);\n\t\t\t\t$pdf->cell(0, 0, $value->cliente_documento_numero, 0, 0, \"L\", false); \n\t\t\tif(($datos[0]->fecha_final) != ''){\n\t\t\t\t$pdf->setxy(120, $saltos);\n\t\t\t\t$pdf->cell(0, 0, $datos[0]->fecha_final, 0, 0, \"L\", false);\n\n\t\t\t}else{\t\n\t\t\t\t$pdf->setxy(120, $saltos);\n\t\t\t\t$pdf->cell(0, 0, 'No tiene Matricula', 0, 0, \"L\", false);\n\n\t\t\t}\n\t\t\t$saltos=$saltos+5;\n\t\t}\t\n \n\t\t$pdf->Output('Reporte_Lista_clientes.pdf' , 'I' );\n\t}", "title": "" }, { "docid": "5efbf2a32eb8faada92cd69130e43b30", "score": "0.6360033", "text": "public function getLizenzPDF()\n\t{\n\t\t// Datensatz-ID des Trainers\n\t\t$id = \\Input::get('id');\n\n\t\t// Lizenz- und Personen-Datensatz einlesen\n\t\t$result = \\Database::getInstance()->prepare(\"SELECT * FROM tl_lizenzverwaltung_items LEFT JOIN tl_lizenzverwaltung ON tl_lizenzverwaltung_items.pid = tl_lizenzverwaltung.id WHERE tl_lizenzverwaltung_items.id = ?\")\n\t\t ->execute($id);\n\n\t\t$lizenzordner = \\FilesModel::findByUuid($GLOBALS['TL_CONFIG']['lizenzverwaltung_lizenzordner']);\n\n\t\t// Auswerten\n\t\tif($result->numRows)\n\t\t{\n\t\t\t// Anfügen der Methode für das Abrufen einer Lizenz als PDF\n\t\t\t$host = $this->host.'download/'.urlencode($result->license_number_dosb);\n\n\t\t\t$process = curl_init($host);\n\n\t\t\t//hier ist auch noch application/xml möglich\n\t\t\tcurl_setopt($process, CURLOPT_HTTPHEADER, array(\n\t\t\t 'Accept: application/json'\n\t\t\t));\n\t\t\tcurl_setopt($process, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); // Fix wegen https://github.com/icing/mod_h2/issues/167 - Mail Hetzner 25.08.2020\n\t\t\tcurl_setopt($process, CURLOPT_HEADER, 1);\n\t\t\tcurl_setopt($process, CURLOPT_USERPWD, $this->username . \":\" . $this->password);\n\t\t\tcurl_setopt($process, CURLOPT_TIMEOUT, 60);\n\t\t\tcurl_setopt($process, CURLOPT_POST, 1);\n\t\t\tcurl_setopt($process, CURLOPT_RETURNTRANSFER, TRUE);\n\t\t\t//nur für test zwecke\n\t\t\tcurl_setopt($process, CURLOPT_SSL_VERIFYPEER, FALSE);\n\n\t\t\t//Request ausfuehren\n\t\t\t$response = curl_exec($process);\n\n\t\t\t$errors = NULL;\n\t\t\tif(curl_errno($process))\n\t\t\t{\n\t\t\t\t$errors = 'Curl error: ' . curl_error($process);\n\t\t\t}\n\n\t\t\t$header_size = curl_getinfo($process, CURLINFO_HEADER_SIZE);\n\t\t\t$httpCode = curl_getinfo($process, CURLINFO_HTTP_CODE); // HTTP-Code der Abfrage\n\t\t\t$header = substr($response, 0, $header_size);\n\t\t\t$body = substr($response, $header_size);//json_decode(substr($response, $header_size));\n\n\t\t\tif($httpCode == 200 && !$errors)\n\t\t\t{\n\t\t\t\t// Schreiben der Daten in eine PDF\n\t\t\t\t$filename = TL_ROOT.'/'.$lizenzordner->path.'/'.$result->license_number_dosb.'.pdf';\n\t\t\t\tfile_put_contents($filename, $body);\n\t\t\t\t$httpText = 'OK';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$httpText = substr($body, 2, strlen($body) - 4);\n\t\t\t}\n\n\t\t\t// Abrufinformationen ergänzen\n\t\t\t$set = array(\n\t\t\t\t'dosb_pdf_tstamp' => time(),\n\t\t\t\t'dosb_pdf_code' => $httpCode,\n\t\t\t\t'dosb_pdf_antwort' => $httpText,\n\t\t\t);\n\t\t\t$result = \\Database::getInstance()->prepare(\"UPDATE tl_lizenzverwaltung_items %s WHERE id=?\")\n\t\t\t ->set($set)\n\t\t\t ->execute($id);\n\n\t\t}\n\n\t\t$log = \"PDF-Abruf:\\n\";\n\t\t$log .= \"Host: $host\\n\";\n\t\t$log .= \"Response Body: $httpCode $httpText\\n\";\n\t\t$log .= \"CURL Errors: $errors\";\n\t\tlog_message($log, 'lizenzverwaltung.log');\n\n\t\t// Zurück zur Seite\n\t\t\\Controller::redirect(str_replace('&key=getLizenzPDF', '&act=edit', \\Environment::get('request')));\n\t}", "title": "" }, { "docid": "9edbd9fc6ec9e391bbb2126631f14a89", "score": "0.63417065", "text": "public function pdfDetallesReservaciones(){\n $datos = Reservation_detail::all();\n $pdf = PDF::loadView('admin.reporte.detalle-rpdf', compact('datos'));\n return $pdf->download('detallesReservaciones.pdf');\n }", "title": "" }, { "docid": "bfe26549f250b7abad09b92818380353", "score": "0.63341576", "text": "public function generar_reporte_pdf(){\n require_once APPPATH.'third_party/fpdf/fpdf.php';\n\n $pdf = new FPDF();\n $pdf->AddPage('P','A4',0);\n $pdf->SetFont('Arial','B',20);\n $pdf->setxy(50, 10);\n $pdf->cell(0, 0, 'LISTA DE MEMBRESIA ADQUIRIDAS', 0, 0, \"L\", false);\n $pdf->Cell(11,11, $pdf->Image('public/assets/images/ener8.png',40,5,10,10),0);\n $pdf->SetFont('Arial','B',9);\n $pdf->setxy(5, 20);\n $pdf->cell(0, 0, 'Nro', 0, 0, \"L\", false);\n $pdf->setxy(15, 20);\n $pdf->cell(0, 0, 'NOMBRE EMPLEADO', 0, 0, \"L\", false);\n $pdf->setxy(55, 20);\n $pdf->cell(0, 0, 'FECHA', 0, 0, \"L\", false);\n $pdf->setxy(75, 20);\n $pdf->cell(0, 0, 'TIPO MEMBRESIA', 0, 0, \"L\", false);\n $pdf->setxy(110, 20);\n $pdf->cell(0, 0, 'GRUPO', 0, 0, \"L\", false); \n $pdf->setxy(125, 20);\n $pdf->cell(0, 0, 'NOMBRE CLIENTE', 0, 0, \"L\", false); \n $pdf->setxy(170, 20);\n $pdf->cell(0, 0, 'TOTAL (S/.)', 0, 0, \"L\", false); \n $pdf->SetFont('Arial','',9);\n $saltos=25;$i=1;\n $datos=$this->Mantenimiento_m->consulta(\"SELECT tipo_membresia.tipo_membresia_descripcion,membresia.membresia_fecha_registro as fecha,membresia_cliente.cliente_id,\ncliente.cliente_nombre_completo,membresia.membresia_id,empleados.empleado_nombre_completo,ventas.total\nfrom membresia\ninner join tipo_membresia on tipo_membresia.tipo_membresia_id=membresia.tipo_membresia_id\ninner join membresia_cliente on membresia_cliente.membresia_id=membresia.membresia_id\ninner join cliente on cliente.cliente_id=membresia_cliente.cliente_id\ninner join membresia_ventas on membresia.membresia_id=membresia_ventas.membresia_id\ninner join ventas ON membresia_ventas.id = ventas.id\nINNER JOIN empleados ON ventas.id_vendedor = empleados.empleado_id\nwhere ventas.estado=1\n\");\n foreach ($datos as $key => $value) {\n $pdf->setxy(5, $saltos); \n $pdf->cell(0, 0, $i, 0, 0, \"L\", false); \n $pdf->setxy(15, $saltos); \n $pdf->cell(0, 0,utf8_decode( $value->empleado_nombre_completo), 0, 0, \"L\", false);\n $pdf->setxy(55, $saltos);\n $pdf->cell(0, 0, $value->fecha, 0, 0, \"L\", false); \n $pdf->setxy(75, $saltos);\n $pdf->cell(0, 0, utf8_decode($value->tipo_membresia_descripcion), 0, 0, \"L\", false);\n $pdf->setxy(112, $saltos);\n $pdf->cell(0, 0, utf8_decode($value->membresia_id), 0, 0, \"L\", false);\n $pdf->setxy(125, $saltos);\n $pdf->cell(0, 0, utf8_decode($value->cliente_nombre_completo), 0, 0, \"L\", false);\n $pdf->setxy(170, $saltos);\n $pdf->cell(0, 0, 'S/ '.number_format($value->total, 2, '.', ''), 0, 0, \"L\", false);\n $saltos=$saltos+5;$i++;\n }\n \n \n \n $pdf->Output('Reporte_Lista_servicio.pdf' , 'I' );\n }", "title": "" }, { "docid": "5eddb9450cf14850bdece1c8c28bee52", "score": "0.6329045", "text": "public function ListarPDF()\n {\n $bitacoras = DB::table('bitacora_articulos')\n ->orderBy('id_bitacora','desc')->get();\n\n $cont=Bitacora::count();\n\n $pdf = \\PDF::loadview('pdf.bitacora_articulos',['bitacoras'=>$bitacoras,'cont'=>$cont]);\n return $pdf->download('bitacora_articulos.pdf');\n }", "title": "" }, { "docid": "baecb26772ff17196f01e637628b1720", "score": "0.6291763", "text": "public function generarRecomendacion($id){\n $director = User::where('role_id','=',2)->first(); //si no hay director registrado no se genera la recomendacion\n if(!$director){ return back()->with('Error','La recomendación no se puede generar debido a que no se tiene un director registrado.');}\n $presidente = User::where('role_id','=',8)->first(); //si no hay subdirector registrado no se genera la recomendacion\n if(!$presidente){ return back()->with('Error','La recomendación no se puede generar debido a que no se tiene un subdirector registrado.');}\n $secretario = User::where('role_id','=',1)->first();//si no hay secretario registrado no se genera la recomendacion\n if(!$secretario){ return back()->with('Error','La recomendación no se puede generar debido a que no se tiene un secretario técnico registrado.');} \n $datoss = Recomendacion::findOrFail($id);\n //fecha de reunion\n setlocale(LC_TIME, \"es_MX.UTF-8\");\n $fechare= fechaLetraAnio($datoss->solicitud->calendario->start);\n //formato del documento\n $datospdf = Formato::findOrFail(1);\n $pdfs = PDF::loadView('subdirector.recomendacionpdf',compact('datoss','director','presidente','fechare','datospdf'))->setPaper('carta','portrait');\n return $pdfs->stream('recomendacion.pdf');\n }", "title": "" }, { "docid": "b511abc03ad84df8e4ede5b0c3cf4f9e", "score": "0.6282156", "text": "public function usuariosPDF()\n {\n $sal = '<h2 class=\"pull-left\">Lista de Usuarios/as</h2>';\n $lista = $controlador = ControladorUsuario::getControlador();\n $lista = $controlador->listarUsuarios(\"\");\n if (!is_null($lista) && count($lista) > 0) {\n $sal .= \"<table class='table table-bordered table-striped'>\";\n $sal .= \"<thead>\";\n $sal .= \"<tr>\";\n $sal .= \"<th>Imagen</th>\";\n $sal .= \"<th>ID</th>\";\n $sal .= \"<th>Nombre</th>\";\n $sal .= \"<th>Alias</th>\";\n $sal .= \"<th>E-Mail</th>\";\n $sal .= \"<th>Rol</th>\";\n $sal .= \"</tr>\";\n $sal .= \"</thead>\";\n $sal .= \"<tbody>\";\n // Recorremos los registros encontrados\n foreach ($lista as $u) {\n // Pintamos cada fila\n // Pintamos cada fila\n $sal .= \"<tr>\";\n $sal .= \"<td><img src='\" . $_SERVER['DOCUMENT_ROOT'] . \"/tienda/img_usuarios/\" . $u->getImagen() . \"' style='max-width: 12mm; max-height: 12mm'></td>\";\n $sal .= \"<td>\" . $u->getId() . \"</td>\";\n $sal .= \"<td>\" . $u->getNombre() . \"</td>\";\n $sal .= \"<td>\" . $u->getAlias() . \"</td>\";\n $sal .= \"<td>\" . $u->getEmail() . \"</td>\";\n if ($u->getAdmin() == 0)\n $sal .= \"<td><span class='label label-info'>Normal</span></td>\";\n else\n $sal .= \"<td><span class='label label-warning'>Admin</span></td>\";\n $sal .= \"</tr>\";\n }\n $sal .= \"</tbody>\";\n $sal .= \"</table>\";\n } else {\n // Si no hay nada seleccionado\n $sal .= \"<p class='lead'><em>No se ha encontrado datos de usuarios/as.</em></p>\";\n }\n //https://github.com/spipu/html2pdf/blob/master/doc/basic.md\n $pdf = new HTML2PDF('L', 'A4', 'es', 'true', 'UTF-8');\n $pdf->writeHTML($sal);\n $pdf->output('listado.pdf');\n\n }", "title": "" }, { "docid": "0c55812676e09f6c102270cb138f5f8d", "score": "0.6273789", "text": "function createpdf ($id) {\n\t\ttry {\n\t\t\t$mailMerge = $this->init_liveDocs();\n\t\t\t\n\t\t\t$info = $this->find($id);\n\t\t\t\n\t\t\t\n\t\t\t$this->info_generale($info, $mailMerge);\n\n\t\t\t\n\t\t\tif (count($info['products']) > 0) {\n\t\t\t\t$mailMerge->assign('products', $info['products']);\n\t\t\t}\n\n \t\t $this->info_nke($info, $mailMerge);\n\t\t\t\n\t\t\t\n\t\t\t$mailMerge->createDocument();\n\t\t\t$document = $mailMerge->retrieveDocument('pdf');\n\t\t\t\n\t\t\t/* nom du fichier pdf, le nom du code de pack ou id de l'opportunities */\n\t\t\tif (isset($info['opportunity']['opportunity_code__c']) && $info['opportunity']['opportunity_code__c'] !== '') {\n\t\t\t\t$name = $info['opportunity']['opportunity_code__c'].'.pdf';\n\t\t\t} else {\n\t\t\t\t$name = $id.'.pdf';\n\t\t\t}\n\t\t\t\n\t\t\tfile_put_contents($mailMerge->getRepertoire().$name, $document);\n\t\t\t/* copie dans un répertoire accéssible */\n\t\t\tcopy($docx->getRepertoire().$name,APPLICATION_PATH.'/../public'.$docx->getWeb().$name);\n\t\t\t\t\n\t\t\t\n\t\t\t$vue['pdf']= 'http://'.$_SERVER['SERVER_NAME'].$mailMerge->getWeb().$name;\n\t\t\t\n\t\t\tZend_Debug::dump($info);\n\t\t\treturn $vue;\n\t\t} catch (Exception $e) {\n\t\t \n\t\t\techo '<h1>Exception : ' .$e->getMessage().'</h1>';\n\t\t\t//Zend_Debug::dump($e);\n\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "34c8dd6a7cf60e7b389d61b594abe259", "score": "0.6268816", "text": "function generarPdfSolicitud( $id ){\t\t\n\t\t\n\t\t$producto = array();\n\t\t$cliente = array();\n\t\t$marca = \"\";\n\t\t$modelo = \"\";\n\t\t\n\t\t$data = $this->getSolicitudData( $id );\n\n\t\tforeach ($data as $solicitud) {\n\t\t\t$producto = $solicitud['Producto'];\n\t\t\t$cliente = $solicitud['Cliente'];\n\t\t}\n\n\t\tforeach ($producto as $modelos) {\n\t\t\t$marca = $modelos['Modelo']['Marca']['nombre'];\n\t\t\t$modelo = $modelos['Modelo']['nombre'];\n\t\t}\n\t\t\t\t\n\t\t$this->pdfConfig = array(\n\t\t\t'download' => true,\n\t\t\t'filename' => 'solictud_' . $cliente['rut'] .'.pdf'\n\t\t);\n\n\t\t$this->set(compact('data', 'cliente', 'producto', 'marca', 'modelo'));\n\n\t}", "title": "" }, { "docid": "d12b061070e578b68478eab3fee7f386", "score": "0.6237352", "text": "public function exportListToPdf(Request $request_data)\n {\n try\n {\n if(empty($request_data['from']) || empty($request_data['to']))\n {\n $invoicedate_from = '';\n $invoicedate_to = '';\n }\n else\n {\n $invoicedate_from = date('m/d/Y',strtotime($request_data['from']));\n $invoicedate_to = date('m/d/Y',strtotime($request_data['to']));\n }\n\n # retrieve data\n $result = $this->getPackingList($invoicedate_from, $invoicedate_to);\n\n $html1 = '<p><h3>PACKING LIST SYSTEM</h3></p>\n <table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%; font-size: 10px;\">\n <thead>\n <tr>\n <td>CTR #</td>\n <td>Invoice Date</td>\n <td>Remarks</td>\n <td>Sold To</td>\n <td>Ship To</td>\n <td>Carrier</td>\n <td>Date Ship</td>\n <td>Port of Loading</td>\n <td>Port of Destination</td>\n <td>Shipping Instruction</td>\n <td>Case Marks</td>\n <td>Note</td>\n </tr>\n </thead>\n <tbody>';\n\n $html2 = '';\n foreach ($result as $key => $packingdata)\n {\n $packingdata = get_object_vars($packingdata);\n $html2 = $html2 . '<tr>\n <td>'. $packingdata['control_no'] . '</td>\n <td>'. $packingdata['invoice_date'] . '</td>\n <td>'. $packingdata['remarks_time'] . ' <br/> '. $packingdata['remarks_pickupdate'] . ' <br/> '.$packingdata['remarks_s_no'] . '</td>\n <td>'. $packingdata['sold_to'] . '</td>\n <td>'. $packingdata['ship_to'] . '</td>\n <td>'. $packingdata['carrier_name'] . '</td>\n <td>'. $packingdata['date_ship'] . '</td>\n <td>'. $packingdata['port_loading'] . '</td>\n <td>'. $packingdata['port_destination_name'] . '</td>\n <td>'. $packingdata['from'] . ' <br/> '. $packingdata['to'] . ' <br/> '.$packingdata['freight'] . '</td>\n <td>'. $packingdata['case_marks'] . '</td>\n <td>'. $packingdata['note'] . '</td>\n </tr>';\n }\n\n $html3 = '</tbody>\n </table>';\n\n # gather all html parts.\n $html = '<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">' . $html1 . $html2 . $html3;\n\n $dompdf = new Dompdf();\n $dompdf->loadHTML($html);\n $dompdf->setPaper('letter', 'landscape');\n $dompdf->render();\n return $dompdf->stream('Packing List'.Carbon::now().'.pdf');\n\n //$pdf = PDF2::loadHTML($html)->setPaper('letter', 'landscape');\n //return $pdf->stream('Packing List'.Carbon::now().'.pdf');\n\n // # apply snappy pdf wrapper\n // $pdf = App::make('snappy.pdf.wrapper');\n // # transform html to pdf format.\n // $pdf->loadHTML($html)->setPaper('A4')->setOrientation('landscape');\n // # display PDF report to response.\n // return $pdf->inline();\n }\n catch (Exception $e)\n {\n Log::error($e->getMessage());\n }\n }", "title": "" }, { "docid": "14b49d23cbb26a9ef632dc071dae47f8", "score": "0.62280303", "text": "public function genererPDF()\n {\n if (auth()->check()) {\n $souscripteurs=Souscripteur::paginate(200);\n $idLast=0;\n $idFirst=$idLast+1;\n foreach ($souscripteurs as $souscripteurs) {\n $idLast=$souscripteurs->id;\n }\n $souscripteurs=Souscripteur::paginate(200);\n /* \n */\n //return $idLast;\n return view('generationPDF',compact('souscripteurs','idLast','idFirst'));\n }\n else\n {\n return view('erreur');\n }\n }", "title": "" }, { "docid": "75f615a90de633741cf31f3fbba94538", "score": "0.6216084", "text": "function get_recetas_pdf()\n\t{\n\t\t$u = new Receta();\n\t\t$sql=\"select r.id, r.nombre, r.descripcion, r.cantidad, r.dias_consumo, p.descripcion as producto from recetas as r left join cproductos as p on p.id=r.cproductos_id where r.estatus_general_id=1 order by nombre\";\n\t\t//Buscar en la base de datos\n\t\t$u->query($sql);\n\t\tif($u->c_rows > 0){\n\t\t\treturn $u;\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "91134928b41326909bac9c0e197557ba", "score": "0.6199576", "text": "public function pdfReservaciones(){\n $reservaciones = Reservation::all();\n $pdf = PDF::loadView('admin.reporte.reservacionespdf', compact('reservaciones'));\n return $pdf->download('reservaciones.pdf');\n }", "title": "" }, { "docid": "744ed64be8f8b482bef137851906cd20", "score": "0.616953", "text": "public function productosPDF()\n {\n $sal = '<h2 class=\"pull-left\">Lista de Productos</h2>';\n $lista = $controlador = ControladorProducto::getControlador();\n $lista = $controlador->listarProductos(\"\");\n if (!is_null($lista) && count($lista) > 0) {\n $sal .= \"<table class='table table-bordered table-striped'>\";\n $sal .= \"<thead>\";\n $sal .= \"<tr>\";\n $sal .= \"<th>Imagen</th>\";\n $sal .= \"<th>ID</th>\";\n $sal .= \"<th>Marca</th>\";\n $sal .= \"<th>Modelo</th>\";\n $sal .= \"<th>Precio</th>\";\n $sal .= \"<th>Unidades</th>\";\n $sal .= \"<th>Tipo</th>\";\n $sal .= \"<th>Fecha</th>\";\n $sal .= \"<th>Dispo.</th>\";\n $sal .= \"<th>Oferta</th>\";\n $sal .= \"</tr>\";\n $sal .= \"</thead>\";\n $sal .= \"<tbody>\";\n // Recorremos los registros encontrados\n foreach ($lista as $p) {\n // Pintamos cada fila\n $sal .= \"<tr>\";\n $sal .= \"<td><img src='\" . $_SERVER['DOCUMENT_ROOT'] . \"/tienda/img_productos/\" . $p->getImagen() . \"' style='max-width: 12mm; max-height: 12mm'></td>\";\n $sal .= \"<td>\" . $p->getId() . \"</td>\";\n $sal .= \"<td>\" . $p->getMarca() . \"</td>\";\n $sal .= \"<td>\" . $p->getModelo() . \"</td>\";\n $sal .= \"<td>\" . $p->getPrecio() . \" €</td>\";\n if ($p->getStock() == 0)\n $sal .= \"<td><span class='label label-danger'>\" . $p->getStock() . \"</span></td>\";\n else if ($p->getStock() > 0 && $p->getStock() < 5)\n $sal .= \"<td><span class='label label-warning'>\" . $p->getStock() . \"</span></td>\";\n else\n $sal .= \"<td><span class='label label-info'>\" . $p->getStock() . \"</span></td>\";\n\n $sal .= \"<td>\" . $p->getTipo() . \"</td>\";\n $date = new DateTime($p->getFecha());\n $sal .= \"<td>\" . $date->format('d/m/Y') . \"</td>\";\n if ($p->getDisponible() != 0)\n $sal .= \"<td><span class='label label-success'>Sí</span></td>\";\n else\n $sal .= \"<td><span class='label label-danger'>No</span></td>\";\n if ($p->getOferta() == 0)\n $sal .= \"<td><span class='label label-info'>No</span></td>\";\n else\n $sal .= \"<td><span class='label label-success'>-\" . $p->getOferta() . \"%</span></td>\";\n $sal .= \"</tr>\";\n }\n $sal .= \"</tbody>\";\n $sal .= \"</table>\";\n } else {\n // Si no hay nada seleccionado\n $sal .= \"<p class='lead'><em>No se ha encontrado datos de Productos.</em></p>\";\n }\n //https://github.com/spipu/html2pdf/blob/master/doc/basic.md\n $pdf = new HTML2PDF('L', 'A4', 'es', 'true', 'UTF-8');\n $pdf->writeHTML($sal);\n $pdf->output('listado.pdf');\n\n }", "title": "" }, { "docid": "81c5eed7394a5f6392040c5f8ec20048", "score": "0.6147561", "text": "public function listadoReferencias()\n {\n $html = $this->pdfListadoReferencias();\n $nombreArchivo = \"Listado_ReferenciasBibliograficas\";\n\n $this->generarPDF($html, $nombreArchivo);\n }", "title": "" }, { "docid": "979c50790c8c13e356684ec90a2490c3", "score": "0.6114516", "text": "public function toPDF($orcamento_id)\n {\n }", "title": "" }, { "docid": "b64d83538cd49341bd5de045a4b9af27", "score": "0.61081696", "text": "public function descargarPDF(){\n $sal ='<h2 class=\"pull-left\">Fichas de Instrumentos</h2>';\n $lista = $controlador = ControladorInstrumento::getControlador();\n $lista = $controlador->listarInstrumento(\"\", \"\");\n if (!is_null($lista) && count($lista) > 0) {\n $sal.=\"<table class='table table-bordered table-striped'>\";\n $sal.=\"<thead>\";\n $sal.=\"<tr>\";\n $sal.=\"<th>Nombre</th>\";\n $sal.=\"<th>Referencia</th>\";\n $sal.=\"<th>distribuidor</th>\";\n $sal.=\"<th>tipo</th>\";\n $sal.=\"<th>precio</th>\";\n $sal.=\"<th>descuento</th>\";\n $sal.=\"<th>stockinicial</th>\";\n $sal.=\"<th>Imagen</th>\";\n $sal.=\"</tr>\";\n $sal.=\"</thead>\";\n $sal.=\"<tbody>\";\n \n\n foreach ($lista as $instrumento) {\n $sal.=\"<tr>\";\n $sal.=\"<td>\" . $instrumento->getnombre() . \"</td>\";\n $sal.=\"<td>\" . $instrumento->getreferencia() . \"</td>\";\n $sal.=\"<td>\" . $instrumento->getdistribuidor() . \"</td>\";\n $sal.=\"<td>\" . $instrumento->gettipo() . \"</td>\";\n $sal.=\"<td>\" . $instrumento->getprecio() . \"</td>\";\n $sal.=\"<td>\" . $instrumento->getdescuento() . \"</td>\";\n $sal.=\"<td>\" . $instrumento->getstockinicial() . \"</td>\";\n // Para sacar una imagen hay que decirle el directorio real donde está\n $sal.=\"<td><img src='\".$_SERVER['DOCUMENT_ROOT'] . \"/musihub/imagenes/fotos/\" . $instrumento->getimagen().\"' style='max-width: 12mm; max-height: 12mm'></td>\";\n $sal.=\"</tr>\";\n }\n $sal.=\"</tbody>\";\n $sal.=\"</table>\";\n } else {\n $sal.=\"<p class='lead'><em>No se ha encontrado datos de Instrumentos.</em></p>\";\n }\n $pdf=new HTML2PDF('L','A4','es','true','UTF-8');\n $pdf->writeHTML($sal);\n $pdf->output('Instrumentos.pdf');\n\n }", "title": "" }, { "docid": "4d221a0924de15f61fb88f893e0f5b96", "score": "0.6092231", "text": "public function genererListePDF($idMin,$idMax,$numPage)\n {\n $souscripteurs=Souscripteur::Where(\"id\",\">=\",$idMin)\n ->Where(\"id\",\"<=\",$idMax)\n ->get();\n $titre=\"Liste des souscripteurs N° \".$numPage;\n $nom=\"listeSouscripteur_\".$numPage;\n \n $pdf=PDF::loadView('listeSouscripteursPDF',compact('souscripteurs','titre'));\n \n return $pdf->download($nom);\n }", "title": "" }, { "docid": "b0b5ba39a9e9ad8d65cd447bb8694758", "score": "0.6089162", "text": "public function generateInventorylist_PDF(&$booking): void\n {\n $pdf = new Fpdi();\n $pdf->setSourceFile(__DIR__ . '/../../assets/pdfs/Inventarliste.pdf');\n $templateId = $pdf->importPage(1);\n $pdf->AddPage();\n $pdf->useTemplate($templateId, ['adjustPageSize' => true]);\n $pdf->SetFont('Helvetica');\n\n // Set From\n $pdf->SetXY(98, 24);\n $pdf->SetFontSize('9');\n $pdf->Write(5, $booking->getBookingfrom()->format('d.m.Y'));\n\n\n // make folder\n if (!@mkdir($concurrentDirectory = __DIR__ . '/../../public/documents/' . $booking->getId()) && !@is_dir($concurrentDirectory)) {\n throw new \\RuntimeException(sprintf('Directory \"%s\" was not created', $concurrentDirectory));\n }\n // Output the new PDF\n $pdf->Output('F', $concurrentDirectory . '/' . date('Y-m-d') . '-meldeschein-' . $booking->getId() . '.pdf');\n }", "title": "" }, { "docid": "fac4dde8d3e53484141b82259b76e772", "score": "0.60664916", "text": "public function productoPDF($id)\n {\n $sal = '<h1 class=\"pull-left\">Ficha de Producto</h1>';\n $controlador = ControladorProducto::getControlador();\n $producto = $controlador->buscarProductoID($id);\n\n $sal .= \"<img src='\" . $_SERVER['DOCUMENT_ROOT'] . \"/tienda/img_productos/\" . $producto->getImagen() . \"' style='max-width: 300mm; max-height: 12mm'>\";\n $sal .= \"<h1>\" . $producto->getModelo() . \" </h1>\";\n $sal .= \"<h4>\" . $producto->getMarca() . \"</h4>\";\n $sal .= \"<h4>\" . $producto->getTipo() . \"</h4>\";\n $sal .= \"<h4>\" . $producto->getPrecio() . \"€</h4>\";\n $sal .= \"<p><b>Descripción:</b></p>\";\n $sal .= \"<p>\" . $producto->getDesc() . \"</p>\";\n $sal .= \"<p><b>Unidades:</b>\" . $producto->getStock();\n $sal .= \"</p>\";\n $sal .= \"<p><b>Disponible:</b>\";\n if ($producto->getDisponible() == 0)\n $sal .= \"No\";\n else\n $sal .= \"Sí\";\n $sal .= \"</p>\";\n\n $sal .= \"<p><b>Oferta: </b>\";\n if ($producto->getOferta() == 0)\n $sal .= \"No\";\n else\n $sal .= \"-\" . $producto->getOferta() . \"%\";\n\n $sal .= \"</p>\";\n $sal .= \"<p><b>Fecha: </b>\";\n $date = new DateTime($producto->getFecha());\n $sal .= $date->format('d/m/Y');\n $sal .= \"</p>\";\n\n\n //https://github.com/spipu/html2pdf/blob/master/doc/basic.md\n $pdf = new HTML2PDF('P', 'A4', 'es', 'true', 'UTF-8');\n $pdf->writeHTML($sal);\n $pdf->output('producto.pdf');\n\n }", "title": "" }, { "docid": "13a24a33449714905a6c1039aa528a96", "score": "0.60555464", "text": "public function pdf()\n {\n $id = $_GET['cod_aln_evt'];\n //Pegamos o model eventos\n $modelMo = Container::getClass($this->modelEvento);\n //Fazemos uma consulta para retonar apenas o alunoEvento referente ao id passado\n $dadosCertificado = $this->view->objetos = $modelMo->fetchAllalunoEvento($id);\n\n //Montamos o bloco da consulta\n foreach ($dadosCertificado as $dadoCertificado)\n {\n $nome = $dadoCertificado['nome_aluno']; \n $ra = $dadoCertificado['ra']; \n $evento = $dadoCertificado['nome_evento']; \n $data = $dadoCertificado['data']; \n $hora = $dadoCertificado['carga_horaria']; \n $curso = $dadoCertificado['curso']; \n $tema = $dadoCertificado['assunto']; \n $convidado = $dadoCertificado['palestrante']; \n } \n \n \n \n //Criamos o corpo do certificado em html \n $html .= \"<style>\n\n\nfieldset{\n width: 100%;\n height:820px;\n margin: 10px auto;\n color: #444;\n border: 5px solid #ccc;\n font-family: Helvetica;\n padding: 15px;\n text-align: justify;\n}\n \nh1{\n text-align: center;\n}\n \np.sub-titulo{\n font-size: 20px;\n}\n \n.direita{\n text-align: right;\n}\n \n.center{\n text-align: center;\n}\n.conteudo {\n margin-top:-40px;\n}\n\n\n.img2 {\n width:200px;\n height:200px;\n margin-left:795px;\n \n}\n.Coordenador {\n margin-left:700px;\n margin-top:150px;\n}\n\n </style><fieldset>\n\n \n\n <div class='img2'>\n \n <img class = 'logo1' src='http://www.onthebass.com.br/cf/logocf.png'/>\n </div>\n\n <div class='conteudo'>\n \n <h1>Certificado</h1>\n <h3> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Certificamos que o aluno (a) \" .$nome. \" portador do RA \".$ra. \"\n paticipou do evento \".$evento.\", com o (s) tema (s) \".$tema. \", ministrado pelo (s) convidado (s) \".$convidado. \", promovido pelo curso de \".$curso. \" com carga horária de \" .$hora. \" horas, na Faculdade Unisepe na\n data de \" .$data.\".<h3>\n \n <h3 class='Coordenador'>Coordenador</h3>\n </div> \n </fieldset>\";\n\n\n //Criamos o objetos MPDF que faz a conversão html to pdf\n $mpdf=new \\mPDF(); \n $mpdf->SetDisplayMode('fullpage');\n $mpdf->AddPage('L','A4'); \n // realizamos a conversão\n $mpdf->WriteHTML($html); \n $mpdf->Output();\t\n \t\n }", "title": "" }, { "docid": "19496fe271a5e3194604c8475ff68914", "score": "0.6027599", "text": "function reporteFolios_PDF($fechaDesde,$fechaHasta,$tipoEstatus){\n\t\t \n\t\t $cajaTramites = new CajaTramites();\n\t\t\t \n\t\t\t //Obtiene fecha de impresion\n\t\t\t list($anioImp,$mesImp,$diaImp)= split(\"/\", date('Y/m/d'));\n\t\t\t $nombreMesImp = CajaTramites::nombre_mes($mesImp);\n\t\t\t \n\t\t\t //Obtiene fecha de inicio (Desde) de reporte\n\t\t\t list($anioDesde,$mesDesde,$diaDesde)= split(\"/\", $fechaDesde);\n\t\t\t $nombreMesD = CajaTramites::nombre_mes($mesDesde);\n\t\t\t \n\t\t\t //Obtiene fecha final (Hasta) del reporte\n\t\t\t list($anioHasta,$mesHasta,$diaHasta)= split(\"/\", $fechaHasta);\n\t\t\t $nombreMesH = CajaTramites::nombre_mes($mesHasta);\n\t\t\t \n\t\t\t $pdf = new FPDF();\n\t\t\t $pdf -> Open();\n\t\t\t $pdf -> AddFont('Verdana','','verdana.php');\n\t\t\t $pdf -> AddPage();\n\t\t\t $pdf -> Image('public/img/CETI_n.jpg', 5,5,40,40);\n\t\t\t \n\t\t\t $pdf->SetX(18);\n\t\t\t $pdf->SetFont('Arial', 'B', 14);\n\t\t\t $pdf->MultiCell(0, 3, \"CENTRO DE ENSEÑANZA TÉCNICA INDUSTRIAL\", 0, 'C', 0);\n\t\t\t $pdf->Ln();\n\t\t\t $pdf->SetX(18);\n\t\t\t $pdf->SetFont('Arial', '', 10);\n\t\t\t $pdf->MultiCell(0, 3, \"MODULO DE CAJA PLANTEL COLOMOS\", 0, 'C', 0);\n\t\t\t \n\t\t\t $pdf->Ln();\n\t\t\t $pdf->Ln();\n\t\t\t $pdf->SetX(38);\n\t\t\t $pdf->SetFont('Arial', 'B', 10);\n\t\t\t $pdf->Cell(80, 3, \"CORTE POR FOLIOS\", 0, 'C', 0);\n\t\t\t $pdf->SetX(138);\n\t\t\t $pdf->SetFont('Arial', '', 8);\n\t\t\t $pdf->MultiCell(0, 3, \"Fecha de Impresión : \".$diaImp.\" / \".$nombreMesImp.\" / \".$anioImp, 0, 'C', 0);\n\t\t\t \n\t\t\t $pdf->Ln();\n\t\t\t $pdf->Ln();\n\t\t\t $pdf->SetX(50);\n\t\t\t $pdf->SetFont('Arial', 'B', 9);\n\t\t\t $pdf->MultiCell(144, 8, \"CORTE DE CAJA DEL \".$diaDesde.\" / \".$nombreMesD.\" / \".$anioDesde.\" AL \".$diaHasta.\" / \".$nombreMesH.\" / \".$anioHasta, 1, 'L', 0);\n\t\t\t \n\t\t\t $pdf->Ln();\n\t\t\t $pdf->Ln();\n\t\t\t $pdf->SetDrawColor(60);\n\t\t\t $pdf->SetFillColor(100);\n\t\t\t $pdf->SetTextColor(250);\n\t\t\t $pdf->SetFont(\"Arial\",\"B\",6);\n\t\t\t $pdf->GetStringWidth(100);\n\t\t\t $pdf->SetX(8);\n\t\t\t //Titulos de la tabla\n\t\t\t $pdf->Cell(9,8,\"FOLIO\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(13,8,\"CONCEPTO\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(64,8,\"NOMBRE CONCEPTO\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(16,8,\"REGISTRO\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(16,8,\"NIVEL\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(20,8,\"PERIODO\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(20,8,\"FECHA TRAMITE\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(16,8,\"COSTO\",1,0,\"C\",1);\n\t\t\t $pdf->SetFont(\"Arial\",\"B\",5.8);\n\t\t\t $pdf->Cell(16,8,\"ESTATUS PAGO\",1,0,\"C\",1);\n \n $pdf->SetFont(\"Arial\",\"B\",6);\n\t\t\t \n\t\t\t //Obtiene los registros\n\t\t\t $result = CajaTramites::reporte_caja_folios($fechaDesde,$fechaHasta,$tipoEstatus);\n\t\t\t $y = 66; \n\t\t\t //Se inician variables que se utilizan\n\t\t\t $numPage = 1;\n\t\t\t $i = 0;\n\t\t\t $montoTotal = 0;\n\t\t\t \n\t\t\t //Se colocan los datos\n\t\t\t foreach($result AS $value)\n\t\t\t {\n\t\t\t $i++;\n\t\t\t\t\n\t\t\t\tif($i%2 == 0)\n\t\t\t\t $Fila = 0;\n\n\t\t\t\telse\n\t\t\t\t $Fila = 1;\n\t\t\t\t\n\t\t\t\t\n\t\t\t $nivel = \"INGENIERÍA\";\n\t\t\t\t \n\t\t\t //Validacion de caracteres de los conceptos\n\t\t\t\tif(strlen($value -> concepto) == 1)\n\t\t\t\t $concepto = \"000\".$value -> concepto;\n\n\t\t\t\telse if(strlen($value -> concepto) == 2)\t\n\t\t\t\t $concepto = \"00\".$value -> concepto;\t \n\t\t\t\t\t\n\t\t\t\telse if(strlen($value -> concepto) == 3)\t\n\t\t\t\t $concepto = \"0\".$value -> concepto;\t \n\n\t\t\t\telse\n\t\t\t\t $concepto = $value -> concepto;\t \n\t\t\t\t//Termina validacion conceptos\n\t\t\t\t\n\t\t //Validacion del registro\n if($value -> registro == 41 || $value -> registro == \"\")\n $registroRef = \"SIN REGISTRO\";\t\n \n else\n\t\t $registroRef = $value -> registro;\t\n\t\t\t\t \n //Validacion del estatus de pago\n\t\t\t if($value -> status_pago == \"1\")\n\t\t\t\t $statusPago = \"PAGADO\";\n\t\t\t\t\n\t\t\t else\n\t\t\t\t $statusPago = \"SIN PAGAR\";\n //Termina validacion de estatus de pago\t\t\n\t\t\t\t\n\t\t\t\t//Obtiene el nobre del periodo\n\t\t\t\t$Periodos = new Periodos();\n\t\t\t\t\n\t\t\t\tif($value -> periodo != null | $value -> periodo != \"\")\n\t\t\t\t $nombrePeriodo = Periodos::nombre_periodo($value -> periodo);\n\t\t \n\t\t\t\telse\n\t\t $nombrePeriodo = \"\";\n\t\t\t\t \n\t\t\t\t//Se realiza la suma del monto total\n\t\t\t\t$montoTotal = $montoTotal + $value -> costo;\n\t\t\t\t\n\t\t\t\t$pdf->SetDrawColor(0);\n\t\t\t\t$pdf->SetFillColor(230);\n\t\t\t\t$pdf->SetTextColor(1);\n\t\t\t\t$pdf->SetXY(8,$y);\n\t\t\t\t$pdf->SetFont(\"Arial\",\"\",6);\n\t\t\t\t$pdf->Cell(9,5,$value -> idTramite,1,0,\"C\",$Fila); \n\t\t\t\t$pdf->Cell(13,5,$concepto,1,0,\"C\",$Fila); \n\t\t\t\t$pdf->Cell(64,5,$value -> nombre,1,0,\"C\",$Fila);\n\t\t\t\t$pdf->Cell(16,5,$registroRef,1,0,\"C\",$Fila);\n\t\t\t\t$pdf->Cell(16,5,$nivel,1,0,\"C\",$Fila);\n\t\t\t\t$pdf->Cell(20,5,$nombrePeriodo,1,0,\"C\",$Fila);\n\t\t\t\t$pdf->Cell(20,5,substr($value -> fecha_tramite,0,11),1,0,\"C\",$Fila);\n\t\t\t\t$pdf->Cell(16,5,\"$ \".number_format($value -> costo,2),1,0,\"C\",$Fila);\n\t\t\t\t$pdf->Cell(16,5,$statusPago,1,0,\"C\",$Fila);\n\t\t\t\t\n\t\t\t\tif($numPage > 1)\n\t\t\t\t $NoLineas = 51;\n\t\t\t\t \n\t\t\t\telse\n\t\t\t\t $NoLineas = 40;\n\t\t\t\t \n\t\t\t\tif($i == $NoLineas){\n\t\t\t\t $y = 10; \n\t\t\t\t $numPage++;\n\t\t\t\t $i = 0;\n\t\t\t\t \n\t\t\t\t $pdf -> AddPage();\n\t\t\t\t $pdf->SetDrawColor(60);\n\t\t\t\t $pdf->SetFillColor(100);\n\t\t\t\t $pdf->SetTextColor(250);\n\t\t\t\t $pdf->SetFont(\"Arial\",\"B\",6);\n\t\t\t\t $pdf->GetStringWidth(100);\n\t\t\t \t $pdf->SetXY(8,8);\n\t\t\t\t //Titulos de la tabla\n\t\t\t\t $pdf->Cell(9,8,\"FOLIO\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(13,8,\"CONCEPTO\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(64,8,\"NOMBRE CONCEPTO\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(16,8,\"REGISTRO\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(16,8,\"NIVEL\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(20,8,\"PERIODO\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(20,8,\"FECHA TRAMITE\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(16,8,\"COSTO\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(16,8,\"ESTATUS PAGO\",1,0,\"C\",1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$y +=5; \n\t\t\t\t\n\t\t\t\t//Numeracion pagina\n\t\t\t\t$pdf->SetXY(188,268);\n\t\t\t\t$pdf->SetTextColor(1);\n\t\t\t\t$pdf->SetFont(\"Arial\",\"\",9);\n\t\t\t\t$pdf->Cell(25,8,$numPage,0,0,\"C\",0);\n\t\t\t\t\n\t\t\t }\n\t\t\n\t\t\t //$pdf->SetDrawColor(60);\n\t\t\t //$pdf->SetFillColor(100);\n\t\t\t //$pdf->SetTextColor(250);\n\t\t\t //$pdf->SetFont(\"Arial\",\"B\",8);\n\t\t\t //$pdf->GetStringWidth(100);\n\t\t\t //$pdf->SetXY(119,$y);\n\t\t\t //Titulos de la tabla\n\t\t\t //$pdf->Cell(50,8,\"TOTAL\",1,0,\"C\",1);\n\t\t\t //$pdf->Cell(25,8,\"$ \".number_format($montoTotal,2),1,0,\"C\",1);\n\n\t\t\t $pdf -> Output(\"public/files/pdfs/reporte_caja/Reporte_Folios.pdf\",\"F\"); \n\t\t}", "title": "" }, { "docid": "a6ff120ece2437ed997b3d46312ef4e0", "score": "0.6008822", "text": "public function reportePDF($id){\n\n $solicitud = Solic_detalle::join('contratos','solic_detalles.contrato_id','=','contratos.id')\n ->join('contratistas','solic_detalles.contratista_id','=','contratistas.id')\n ->join('entregas','contratos.id','=','entregas.id')\n ->join('creditos','contratos.id','=','creditos.id')\n ->join('lotes','creditos.lote_id','=','lotes.id')\n ->select('solic_detalles.id','contratos.id as folio','creditos.fraccionamiento',\n 'creditos.etapa','creditos.manzana','creditos.num_lote','creditos.modelo',\n 'solic_detalles.cliente','solic_detalles.celular',\n 'contratistas.nombre', DB::raw('DATE(solic_detalles.created_at) as fecha'),\n 'solic_detalles.lunes','solic_detalles.martes','solic_detalles.miercoles',\n 'solic_detalles.jueves','solic_detalles.viernes','solic_detalles.sabado',\n 'solic_detalles.obs_gen', 'lotes.emp_constructora', 'lotes.emp_terreno',\n 'solic_detalles.horario','entregas.fecha_entrega_real','lotes.calle', 'lotes.numero')\n ->where('solic_detalles.id','=',$id)\n ->get();\n\n $detalles = Descripcion_detalle::select('general','subconcepto','detalle','garantia','fecha_concluido','observacion')->where('solicitud_id','=',$id)->get();\n\n\n\n setlocale(LC_TIME, 'es_MX.utf8');\n\n // se les da formato a las fechas para el documento\n $fecha_entrega_real = new Carbon($solicitud[0]->fecha_entrega_real);\n $solicitud[0]->fecha_entrega_real = $fecha_entrega_real->formatLocalized('%d de %B de %Y');\n\n $fecha = new Carbon($solicitud[0]->fecha);\n $solicitud[0]->fecha = $fecha->formatLocalized('%d de %B de %Y');\n\n $solicitud[0]->celular = '('.substr($solicitud[0]->celular, 0, 3).') '.substr($solicitud[0]->celular, 3, 3).'-'.substr($solicitud[0]->celular,6);\n\n\n\n\n $pdf = \\PDF::loadview('pdf.DocsPostVenta.SolicitudDetalle', ['solicitud' => $solicitud , 'detalles' => $detalles]);\n return $pdf->stream('SolicitudDetalle.pdf');\n }", "title": "" }, { "docid": "9060b4db1e602520df9abf46fc9d3eb4", "score": "0.60058445", "text": "public function armadoPedidos($idProveedor){\n\t\t$pedidos = $this->pedidos_model->getDetallesPorProveedorCanasta($idProveedor);\n\t\t\n\t\tif (empty($pedidos)) {\n\t\t\tprintf('No hay pedidos');\n\t\t\treturn;\n\t\t}\n\t\t// echo '<pre>';\n\t\t// print_r($pedidos);\n\t\n\t\t// Se carga la libreria fpdf\n\t\t$this->load->library('pdf');\n\t\t$this->pdf = new Pdf();\n\t\t$this->pdf->AddPage();\n\t\t$this->pdf->AliasNbPages();\n\t \n\t\t$this->pdf->SetTitle(\"Detalle de pedidos \". $pedidos[0]['proveedor']);\n\t\t$this->pdf->SetLeftMargin(20);\n\t\t$this->pdf->SetRightMargin(20);\n\n\t\t$tit=array('Producto', 'Marca', 'Unidad', 'Cantidad' );\n\t\t$w = array(70, 30, 25, 25) ;\n\t\t$a = array('L','C','C','C');\t\t\n\t\t$idPedido = 0;\n\t\t\n\t\tforeach ($pedidos as $p) {\n\t\t\t\n\t\t\t// If we have to start a new order\n\t\t\tif ($idPedido != $p['idPedido']) {\n\n\t\t\t\t$idPedido = $p['idPedido'];\n\t\t\t\t\n\t\t\t\t$this->pdf->Ln(12);\t\t\t\t\n\t\t\t\t$this->pdf->SetFont('Arial', 'B', 9);\n\t\t\t\t$this->pdf->Cell(15,7,'Pedido #'.$idPedido);\n\t\t\t\t$this->pdf->Ln(6);\t\t\t\t\n\n\n\t\t\t\t// Order title\n\t\t\t\t$this->pdf->SetFillColor(0,0,0);\n\t\t\t\t$this->pdf->SetTextColor(255,255,255);\n\t\t\t\tfor ($i=0; $i<count($tit); $i++) {\n\t\t\t\t\t$this->pdf->Cell($w[$i],7,$tit[$i],'',0,$a[$i],'1');\n\t\t\t\t}\n\n\t\t\t\t$this->pdf->Ln(8);\t\t\t\t\n\t\t\t\t$this->pdf->SetFont('Arial', '', 9);\n\t\t\t\t$this->pdf->SetTextColor(0,0,0);\n\t\t\t\t\n\t\t\t\t$row = 1;\n\t\t\t}\n\n\t\t\tif ($row++ % 2)\n\t\t\t\t$this->pdf->SetFillColor(255,255,255); \n\t\t\telse\n\t\t\t\t$this->pdf->SetFillColor(240,240,240);\t \n\n\t\t\t$this->pdf->Cell($w[0],5,t($p['nombre']),'',0,$a[0],1);\n\t\t\t$this->pdf->Cell($w[1],5,t($p['marca']),'',0,$a[1],1);\n\t\t\t$this->pdf->Cell($w[2],5,t($p['unidad']),'',0,$a[2],1);\n\t\t\t$this->pdf->Cell($w[3],5,($p['cantidad'] == $c2=round($p['cantidad'])) ? $c2:$p['cantidad'],'',0,$a[3],1);\n\t\t\t\n\t\t\t\n\t\t\t$this->pdf->Ln(5);\n\t\t\t\n\t\t}\n\t\t\n\t\t$this->pdf->Output(\"Lista de pedidos.pdf\", 'I');\n }", "title": "" }, { "docid": "376bfbc466a39ca3e59cc0750b12ac1c", "score": "0.6001995", "text": "public function pdf() {\n $talleres = DB::table('taller')->get();\n //Se genera el archive PDF\n $pdf = PDF::loadView('pdf.talleres', compact('talleres'));\n //Lo forzamos a iniciar descarga\n return $pdf->download('listado_talleres.pdf');\n }", "title": "" }, { "docid": "5252e7b164801f154b04c8190ac241a0", "score": "0.5989856", "text": "function report(){\r\n$fechafmt=$_GET['fecha'];\r\n//$fechafmt = '24/03/2019';\r\n$fecha= cambiaf_a_mysql($fechafmt);\r\n//$fecha = $fechafmt;\r\n\r\n//echo $fechafmt;\r\n//echo $fecha;\r\n$pdf = new PDF('P','mm','A4');\r\n$pdf->fecha($fechafmt);\r\n\r\n$pdf->AliasNbPages();\r\n$pdf->AddPage();\r\n//$pdf->Header($fecha);\r\n$pdf->SetFont('Times','',8);\r\n\r\n//$pdf->ChapterTitle(1,'HOLA');\r\n\r\n\r\n$inicio=0;\r\n \r\n $cod_tipo_especialista = 1; \r\n $pdf->ChapterTitle(' Dr. Marcos Soto',' ');\r\n $arrAgendado = generarpt($fecha, $cod_tipo_especialista);\r\n $total= count($arrAgendado);\r\n imprimirrpt($arrAgendado, $pdf,$inicio,$total);\r\n //$pdf->Ln();//$pdf->Ln();//$pdf->Ln();$pdf->Ln();$pdf->Ln();$pdf->Ln();\r\n /*$pdf->Cell(0,1,'',0,1);\r\n $cod_tipo_especialista = 2; \r\n //$pdf->FECHATitle('','FECHA:'.$fechafmt);\r\n $pdf->ChapterTitle(' Psicologo: Oscar Cortes',' ');\r\n $arrAgendado = generarpt($fecha, $cod_tipo_especialista);\r\n \r\n imprimirrpt($arrAgendado, $pdf,$inicio,$total);\r\n //$pdf->Ln();//$pdf->Ln();//$pdf->Ln();$pdf->Ln();$pdf->Ln();$pdf->Ln();$pdf->Ln();$pdf->Ln();\r\n $pdf->Cell(0,1,'',0,1);\r\n $cod_tipo_especialista = 3; \r\n //$pdf->FECHATitle('','FECHA:'.$fechafmt);\r\n $pdf->ChapterTitle(' Medico (Horario A): Dra. Carolina Andrea Ramirez Candia',' ');\r\n $arrAgendado = generarpt($fecha, $cod_tipo_especialista);\r\n \r\n imprimirrpt($arrAgendado, $pdf,$inicio,($total/2)-1);\r\n $pdf->Ln();$pdf->Ln();$pdf->Ln();$pdf->Ln();$pdf->Ln();$pdf->Ln();$pdf->Ln();$pdf->Ln();$pdf->Ln();$pdf->Ln();\r\n $pdf->Cell(0,1,'',0,1);\r\n $cod_tipo_especialista = 3; \r\n //$pdf->FECHATitle('','FECHA:'.$fechafmt);\r\n $pdf->ChapterTitle(' Medico (Horario B): Dra. Paula Rebolledo',' ');\r\n $arrAgendado = generarpt($fecha, $cod_tipo_especialista);\r\n $inicio= ($total/2);\r\n imprimirrpt($arrAgendado, $pdf,$inicio,$total);\r\n \r\n $cod_tipo_especialista = 22; \r\n //$pdf->FECHATitle('','FECHA:'.$fechafmt);\r\n $pdf->ChapterTitle(' Psicologo: Paula Parra',' ');\r\n $arrAgendado = generarpt($fecha, $cod_tipo_especialista);\r\n $inicio = 0;\r\n imprimirrpt($arrAgendado, $pdf,$inicio,$total);*/\r\n \r\n$pdf->Output();\r\n\r\n}", "title": "" }, { "docid": "413c6de865789f7522def79ec6838b98", "score": "0.5951519", "text": "public function show($id)\n {\n\n if ($id =='clients' ) {\n $clients = client::all();\n $pdf = PDF::loadView('pdf.ls_clients',compact('clients'));\n return $pdf->download('liste_des_clients.pdf');\n } else \n if($id =='occupations' ){\n $occupations = DB::table('occupations')\n ->join('chambres', 'occupations.id_ch', '=', 'chambres.id')\n ->join('clients', 'occupations.id_clt', '=', 'clients.id')\n ->join('type_chambres', 'chambres.id_type_ch', '=', 'type_chambres.id')\n ->select('occupations.*','chambres.*', 'type_chambres.*','clients.*')\n ->get();\n $pdf = PDF::loadView('pdf.ls_occupations',compact('occupations'));\n return $pdf->download('liste_des_occupation.pdf');\n }\n \n \n \n \n }", "title": "" }, { "docid": "b5edbf6abc125cb64f4869751baa16ea", "score": "0.59451455", "text": "private function _generateAllPdf() {\n\n $items = \\R::getAll('SELECT * FROM master WHERE `invoice_no` IS NOT NULL');\n foreach ($items as $item) {\n $this->_generatePdf($item);\n }\n\n }", "title": "" }, { "docid": "abb8fda1d47487a0873fca62988a5bc5", "score": "0.59436685", "text": "public static function rptVentaVendedor($datos){\n\n $user = auth()->user();\n $fecha = date(\"Y-m-d\");\n $hora = date(\"H:i:s\");\n $fecha = $fecha.' '.$hora;\n $generador = ucfirst($user->name);\n $inicio = date('Y-m-d', strtotime($datos['data']['inicio']));\n $final = date('Y-m-d', strtotime($datos['data']['final']));\n $vendedor = $datos['data']['vendedor'];\n $sucursal = $datos['data']['sucursal'];\n\n $order ='VENTAS.FECALTAS';\n $dir = 'ASC';\n\n // OBTENER DATOS \n\n $ventaVendedor = Vendedores::obtenerDatos($datos['data'], $order, $dir); \n\n //INICIAR VARIABLES\n \n $moneda = $ventaVendedor[0]->MONEDA;\n $candec = (Parametro::candec($moneda))[\"CANDEC\"];\n $intervalo = $inicio.'/'.$final;\n $total = 0;\n $c_rows = 0;\n $iva = 0;\n $subtotal = 0;\n $articulos = [];\n $limite = 35;\n $tipo = $datos['data']['tipo'];\n $totalPagado = 0;\n\n\n // INICIAR MPDF \n\n $mpdf = new \\Mpdf\\Mpdf([\n 'margin_left' => 20,\n 'margin_right' => 20,\n 'margin_top' => 16,\n 'margin_bottom' => 10,\n 'margin_header' => 5,\n 'margin_footer' => 10\n ]);\n\n $mpdf->SetDisplayMode('fullpage');\n\n foreach ($ventaVendedor as $key => $value) {\n\n $total = $total + $value->TOTAL;\n $iva = $iva + $value->IVA;\n $subtotal = $subtotal + $value->SUBTOTAL;\n $nombre = mb_strtolower($value->CLIENTE);\n $vendedor = mb_strtolower($value->VENDEDOR);\n $nombre = substr($nombre,0,27);\n $articulos[$c_rows]['NOMBRE'] = utf8_decode(utf8_encode(ucwords($nombre)));\n $articulos[$c_rows]['CODIGO'] = $value->ID;\n $fecha = substr($value->FECHA,0,-9);\n $articulos[$c_rows]['FECHA'] = $fecha;\n $articulos[$c_rows]['TIPO'] = $value->TIPO;\n $articulos[$c_rows]['VENDEDOR'] = utf8_decode(utf8_encode(ucwords($vendedor)));\n $articulos[$c_rows]['IVA'] = Common::formato_precio($value->IVA, $candec);\n $articulos[$c_rows]['SUBTOTAL'] = Common::formato_precio($value->SUBTOTAL, $candec);\n $articulos[$c_rows]['TOTAL'] = Common::formato_precio($value->TOTAL, $candec);\n \n // ESTADO DE PAGO CREDITO\n\n if($tipo == 'CR'){\n $totalPagado = $totalPagado + $value->PAGADO;\n $articulos[$c_rows]['PAGADO'] = Common::formato_precio($value->PAGADO, $candec);\n }\n\n if($value->TIPO == 'PE'){\n\n if ($value->ESTATUS === 2){\n $articulos[$c_rows]['TIPO'] = $value->TIPO.' - '.'PENDIENTE';\n } else if ($value->ESTATUS === 0) {\n $articulos[$c_rows]['TIPO'] = $value->TIPO.' - '.'PAGADO';\n }\n\n \n }\n\n // CREAR HOJA \n\n $articulos[$c_rows]['SALTO'] = false;\n\n if($c_rows == $limite){\n \n $articulos[$c_rows]['SALTO'] = true;\n $limite = $limite + 42;\n }\n\n $c_rows = $c_rows + 1;\n }\n\n $namefile = 'reporteVentaVendedor'.time().'.pdf';\n $data['c_rows'] = $c_rows;\n $data['fecha'] = $fecha;\n $data['generador'] = $generador;\n $data['intervalo'] = $intervalo;\n $data['articulos'] = $articulos;\n $data['tipo'] = $tipo;\n $data['iva'] = Common::formato_precio($iva, $candec);\n $data['subtotal'] = Common::formato_precio($subtotal, $candec);\n $data['total'] = Common::formato_precio($total, $candec);\n $data['totalPagado'] = Common::formato_precio($totalPagado, $candec);\n\n $html = view('pdf.rptVentaVendedor', $data)->render();\n\n $mpdf->WriteHTML($html);\n\n // CREAR HOJA \n\n $mpdf->SetProtection(array('print'));\n $mpdf->SetTitle(\"ReporteVentaVendedor\");\n\n // DESCARGAR ARCHIVO PDF \n\n $mpdf->Output();\n\n\n /* --------------------------------------------------------------------------------- */\n }", "title": "" }, { "docid": "2f8a50fff2d0ccb6ea5955516fa79453", "score": "0.58958447", "text": "public function laporan_rambu_detail($id){\n $id = IDCrypt::Decrypt($id);\n $rambu =rambu::findOrFail($id);\n $lokasi_rambu = lokasi_rambu::where('rambu_id', $id)->get();\n $pejabat_struktural =pejabat_struktural::where('jabatan','kasi reksa')->get();\n $tgl= Carbon::now()->format('d-m-Y');\n\n $pdf =PDF::loadView('laporan.rambu_detail_laporan', ['rambu' => $rambu,'lokasi_rambu'=>$lokasi_rambu,'tgl'=>$tgl,'pejabat_struktural'=>$pejabat_struktural]);\n $pdf->setPaper('a4', 'potrait');\n return $pdf->download('Laporan data per-rambu.pdf');\n }", "title": "" }, { "docid": "337b6aa1edb3a2f6a8ce68b56d72554f", "score": "0.58932835", "text": "public function genererSelectionnePDF()\n {\n if (auth()->check()) {\n $souscripteurs=Souscripteur::Where(\"etat\",\"formé\")\n ->paginate(200);\n return view('generationSelectionneePDF',compact('souscripteurs'));\n }\n else\n {\n return view('erreur');\n }\n }", "title": "" }, { "docid": "52c8bef09cd8680e99eeda9228fcb866", "score": "0.5891543", "text": "public function genererPreselectionne2PDF()\n {\n if (auth()->check()) {\n $souscripteurs=Souscripteur::with('localite.departement')\n ->Where(\"electricite\",0)\n ->Where(\"electronique\",0)\n ->Where(\"electrotechnique\",0)\n ->Where(\"climatisation\",0)\n ->Where(\"energie\",0)\n ->take(3000)\n ->get();\n $titre=\"Liste des souscripteurs 2ème catégorie\";\n $nom=\"liste_souscripteur_preselectionne\";\n $pdf=PDF::loadView('listeSouscripteursPDF',compact('souscripteurs','titre'));\n return $pdf->download($nom);\n }\n else\n {\n return view('erreur');\n }\n }", "title": "" }, { "docid": "a7928353137b47502a0875c06834bed0", "score": "0.58882934", "text": "public function proveedor($idProveedor){\n\t\t$pedidos = $this->pedidos_model->getDetallesPorProveedor($idProveedor);\n\t\t\n\t\tif (empty($pedidos)) {\n\t\t\tprintf('No hay pedidos');\n\t\t\treturn;\n\t\t}\n\t\t// echo '<pre>';\n\t\t// print_r($pedidos);\n\t\n\t\t// Se carga la libreria fpdf\n\t\t$this->load->library('pdf');\n\t\t$this->pdf = new Pdf();\n\t\t$this->pdf->AddPage();\n\t\t$this->pdf->AliasNbPages();\n\t \n\t\t$this->pdf->SetTitle(\"Pedido a \". $pedidos[0]['proveedor']);\n\t\t$this->pdf->SetLeftMargin(20);\n\t\t$this->pdf->SetRightMargin(20);\n\n\t\t$tit=array('Producto', 'Marca', 'Unidad', 'Cantidad', 'Importe' );\n\t\t$w = array(70, 30, 25, 25, 25) ;\n\t\t$a = array('L','C','C','C','R');\t\t\n\n\t\t// Order title\n\t\t$this->pdf->SetFont('Arial', 'B', 9);\n\t\t$this->pdf->SetFillColor(0,0,0);\n\t\t$this->pdf->SetTextColor(255,255,255);\n\t\tfor ($i=0; $i<count($tit); $i++) {\n\t\t\t$this->pdf->Cell($w[$i],7,$tit[$i],'',0,$a[$i],'1');\n\t\t}\n\n\t\t$this->pdf->Ln(8);\t\t\t\t\n\t\t$this->pdf->SetFont('Arial', '', 9);\n\t\t$this->pdf->SetTextColor(0,0,0);\n\t\t\n\t\t$tot = 0;\n\t\t$row = 1;\n\t\t\n\t\tforeach ($pedidos as $p) {\n\n\t\t\tif ($row++ % 2)\n\t\t\t\t$this->pdf->SetFillColor(255,255,255); \n\t\t\telse\n\t\t\t\t$this->pdf->SetFillColor(240,240,240);\t \n\n\t\t\t$this->pdf->Cell($w[0],5,t($p['nombre']),'',0,$a[0],1);\n\t\t\t$this->pdf->Cell($w[1],5,t($p['marca']),'',0,$a[1],1);\n\t\t\t$this->pdf->Cell($w[2],5,t($p['unidad']),'',0,$a[2],1);\n\t\t\t$this->pdf->Cell($w[3],5,($p['cantidadTotal'] == $c2=round($p['cantidadTotal'])) ? $c2:$p['cantidadTotal'],'',0,$a[3],1);\n\t\t\t$this->pdf->Cell($w[4],5,round($p['precio']),'',0,$a[4],1);\n\t\t\t\n\t\t\t$tot += $p['precio'];\n\t\t\t$this->pdf->Ln(5);\n\t\t\t\n\t\t}\n\n\t\t// Totalize\n\t\t$this->pdf->Ln(5);\n\t\t$this->pdf->Cell($w[0]+$w[1]+$w[2]+$w[3],5,'Total:','',0,'R',0);\n\t\t$this->pdf->Cell($w[4],5,round($tot),'',0,$a[4],0);\t\t\n\t\t$this->pdf->Ln(5);\n\t\t\n\t\t$this->pdf->Output(\"Pedido a \". $pedidos[0]['proveedor'].\".pdf\", 'I');\n \n\t}", "title": "" }, { "docid": "35c5d5dcc34c53b7ba295659548125de", "score": "0.5886113", "text": "public function generateAufnahmevertrag_PDF(&$booking): void\n {\n// die(\n// dump($booking->getBookedroom()->getBeds())\n// );\n\n $pdf = new Fpdi();\n $pdf->setSourceFile(__DIR__ . '/../../assets/pdfs/HSN_Aufnahmevertrag_Muster_06.2019.pdf');\n $firstPage = $pdf->importPage(1);\n $pdf->AddPage();\n $pdf->useTemplate($firstPage, ['adjustPageSize' => true]);\n $pdf->SetFont('Helvetica');\n\n // Set Company name\n $pdf->SetXY(82, 131);\n $pdf->SetFontSize('11');\n $pdf->Write(5, $booking->getGuest()->getCompanyname());\n // Set Lastname, Firstname\n $pdf->SetXY(82, 145);\n $pdf->SetFontSize('11');\n $pdf->Write(5, $booking->getGuest()->getLastnameFirstname());\n // Set Street\n $pdf->SetXY(82, 159);\n $pdf->SetFontSize('11');\n $pdf->Write(5, $booking->getGuest()->getAddress());\n // Set Zip City\n $pdf->SetXY(82, 173);\n $pdf->SetFontSize('11');\n $pdf->Write(5, $booking->getGuest()->getZipcode() . ' ' . $booking->getGuest()->getCity());\n // Set Birthday\n $pdf->SetXY(82, 187);\n $pdf->SetFontSize('11');\n $pdf->Write(5, $booking->getGuest()->getBirthday()->format('d.m.Y'));\n // Set Birthday\n $pdf->SetXY(82, 201);\n $pdf->SetFontSize('11');\n $pdf->Write(5, $booking->getGuest()->getPlaceofbirth());\n /**\n * Second Page\n */\n $secondPage = $pdf->importPage(2);\n $pdf->AddPage();\n $pdf->useTemplate($secondPage, ['adjustPageSize' => true]);\n $pdf->SetFont('Helvetica');\n // Set Room\n $pdf->SetXY(36, 42);\n $pdf->SetFontSize('11');\n $pdf->Write(5, $booking->getBookedroom()->getHouseName());\n // Set Booking from\n $pdf->SetXY(154, 171);\n $pdf->SetFontSize('11');\n $pdf->Write(5, $booking->getBookingfrom()->format('d.m.Y'));\n // Set Booking from\n $pdf->SetXY(31, 178);\n $pdf->SetFontSize('11');\n $pdf->Write(5, $booking->getBookingtill()->format('d.m.Y'));\n /**\n * Third Page\n */\n $thirdPage = $pdf->importPage(3);\n $pdf->AddPage();\n $pdf->useTemplate($thirdPage, ['adjustPageSize' => true]);\n $pdf->SetFont('Helvetica');\n // Set Price\n #// @todo: check for real prices\n// die(\n// dump($booking->getPrice()[0]->getType())\n// );\n // Einzelzimmer und monatliche Bezahlung\n if ($booking->getBookedroom()->getBeds() > '1' && $booking->getPrice()[0]->getType() === '2') {\n $pdf->SetXY(140, 102);\n }\n if ($booking->getBookedroom()->getBeds() === '1' && $booking->getPrice()[0]->getType() === '2') {\n $pdf->SetXY(140, 120);\n }\n // Einzelzimmer und täglich Bezahlung\n if ($booking->getBookedroom()->getBeds() === '1' && $booking->getPrice()[0]->getType() === '1') {\n $pdf->SetXY(140, 162);\n }\n if ($booking->getBookedroom()->getBeds() > '1' && $booking->getPrice()[0]->getType() === '1') {\n $pdf->SetXY(140, 137);\n }\n $pdf->SetFontSize('11');\n $pdf->Write(5, 'EUR ' . $booking->getPrice()[0]->getPrice() . ',00');\n\n $fourthPage = $pdf->importPage(4);\n $pdf->AddPage();\n $pdf->useTemplate($fourthPage, ['adjustPageSize' => true]);\n $pdf->SetFont('Helvetica');\n\n $fifthPage = $pdf->importPage(5);\n $pdf->AddPage();\n $pdf->useTemplate($fifthPage, ['adjustPageSize' => true]);\n $pdf->SetFont('Helvetica');\n /**\n * Sixth Page\n */\n $sixthPage = $pdf->importPage(6);\n $pdf->AddPage();\n $pdf->useTemplate($sixthPage, ['adjustPageSize' => true]);\n $pdf->SetFont('Helvetica');\n // Set Parking\n// dump($booking->getParking()[0]);\n// die('3');\n if ($booking->getParkings()[0] !== null) {\n $pdf->SetXY(99, 231.5);\n $pdf->SetFontSize('11');\n $pdf->Write(5, $booking->getParkings()[0]->getParkingspot());\n }\n /**\n * Seventh Page\n */\n $seventhPage = $pdf->importPage(7);\n $pdf->AddPage();\n $pdf->useTemplate($seventhPage, ['adjustPageSize' => true]);\n $pdf->SetFont('Helvetica');\n // Set Parking\n if ($booking->getParkings()[0] !== null) {\n $pdf->SetXY(115, 22);\n $pdf->SetFontSize('11');\n $pdf->Write(5, $booking->getParkings()[0]->getParkingspot());\n }\n /**\n * Eigth Page\n */\n $eighthPage = $pdf->importPage(8);\n $pdf->AddPage();\n $pdf->useTemplate($eighthPage, ['adjustPageSize' => true]);\n $pdf->SetFont('Helvetica');\n // Set Date\n $pdf->SetXY(52, 149.5);\n $pdf->SetFontSize('11');\n $pdf->Write(5, date('d.m.Y'));\n // Set Date\n// $pdf->SetXY(140, 149.5);\n// $pdf->SetFontSize('11');\n// $pdf->Write(5, date('d.m.Y'));\n\n\n // make folder\n if (!@mkdir($concurrentDirectory = __DIR__ . '/../../public/documents/' . $booking->getId()) && !@is_dir($concurrentDirectory)) {\n throw new \\RuntimeException(sprintf('Directory \"%s\" was not created', $concurrentDirectory));\n }\n // Output the new PDF\n $pdf->Output('F',\n $concurrentDirectory . '/' . date('Y-m-d') . '-HSN_Aufnahmevertrag_Muster_06.2019-' . $booking->getId() . '.pdf');\n }", "title": "" }, { "docid": "72c14962858f40a9043b10f95ed19159", "score": "0.58799106", "text": "public function descargarPDFUsu(){\n $sal ='<h2 class=\"pull-left\">Fichas de Usuarios</h2>';\n \n $lista = $controlador = ControladorUsuario::getControlador();\n $lista = $controlador->listarUsuarios(\"\", \"\");\n \n if (!is_null($lista) && count($lista) > 0) {\n $sal.=\"<table class='table table-bordered table-striped'>\";\n $sal.=\"<thead>\";\n $sal.=\"<tr>\";\n $sal.=\"<th>Nombre</th>\";\n $sal.=\"<th>Apellidos</th>\";\n $sal.=\"<th>Email</th>\";\n $sal.=\"<th>Contraseña</th>\";\n $sal.=\"<th>Administrador</th>\";\n $sal.=\"<th>Telefono</th>\";\n $sal.=\"<th>Fecha de Alta</th>\";\n $sal.=\"<th>Foto</th>\";\n $sal.=\"</tr>\";\n $sal.=\"</thead>\";\n $sal.=\"<tbody>\";\n \n\n foreach ($lista as $usuario) {\n $sal.=\"<tr>\";\n $sal.=\"<td>\" . $usuario->getnombre() . \"</td>\";\n $sal.=\"<td>\" . $usuario->getapellidos() . \"</td>\";\n $sal.=\"<td>\" . $usuario->getemail() . \"</td>\";\n $sal.=\"<td>\" . str_repeat(\"*\",strlen($usuario->getpassword())) . \"</td>\";\n $sal.=\"<td>\" . $usuario->getadministrador() . \"</td>\";\n $sal.=\"<td>\" . $usuario->gettelefono() . \"</td>\";\n $sal.=\"<td>\" . $usuario->getfecha_alta() . \"</td>\";\n // Para sacar una imagen hay que decirle el directorio real donde está\n $sal.=\"<td><img src='\".$_SERVER['DOCUMENT_ROOT'] . \"/musihub/imagenes/fotos/\" . $usuario->getfoto().\"' style='max-width: 12mm; max-height: 12mm'></td>\";\n $sal.=\"</tr>\";\n }\n $sal.=\"</tbody>\";\n $sal.=\"</table>\";\n } else {\n $sal.=\"<p class='lead'><em>No se ha encontrado datos de Usuarios.</em></p>\";\n }\n $pdf=new HTML2PDF('L','A4','es','true','UTF-8');\n $pdf->writeHTML($sal);\n $pdf->output('Usuarios.pdf');\n\n }", "title": "" }, { "docid": "45445bff7a5a79bb90f6a7af1ac700fd", "score": "0.5867291", "text": "public function index(){\n $data['list_data']=$this->general_model->getKerjasamaPdf('kerjasama_tabel','prodi_id',1,'created_at','DESC')->result();\n\n // $no = 1;\n // foreach ($data_prodi as $key) {\n // $pdf_kerjasama[] = $this->general_model->getwhere('kerjasama_tabel','prodi_id',$key->id_prodi,'created_at','DESC')->result();\n\n $this->pdf->setPaper('A4', 'portrait');\n $this->pdf->filename = \"Kerjasama.pdf\";\n $this->pdf->load_view('Kerjasama/Kerjasama_pdf', $data);\n // }\n }", "title": "" }, { "docid": "8cafbe37871f8db46ff46e6570d0c03a", "score": "0.5860119", "text": "public function genererListeSelectionneePDF($idMin,$idMax,$numPage)\n {\n $souscripteurs=Souscripteur::Where(\"etat\",\"formé\")\n ->Where(\"id\",\">=\",$idMin)\n ->Where(\"id\",\"<=\",$idMax)\n ->get();\n $titre=\"Liste des souscripteurs formés N° \".$numPage;\n $nom=\"listeSouscripteurFormés_\".$numPage;\n \n $pdf=PDF::loadView('listeSouscripteursPDF',compact('souscripteurs','titre'));\n \n return $pdf->download($nom);\n }", "title": "" }, { "docid": "eb4f7733801717c784322ae61d7b06ad", "score": "0.5859788", "text": "function generate_para_military_slip($refid, $broswer = 'true') {\n\n //Get Employee data\n $data = $this->db->get_data_($this->table, array(\"reference_id\" => $refid, \"account_no\" => $refid, \"phone_no\" => $refid, \"service_no\" => $refid));\n //Location\n $loc = $data['location'];\n //Date Captured\n $date = $data['updated'];\n //GET EMPLOYEE SERVICE\n $service = $this->db->get_data('service', array('code' => $data['service']));\n\n // create new PDF document\n $pdf = new MYPDF($service['title'], $service['name'], $loc, $date, PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\n\n// set header and footer fonts\n $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));\n $pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));\n\n// set default monospaced font\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n\n// set margins\n $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\n $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\n $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\n\n// set auto page breaks\n $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n\n// set image scale factor\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n\n// set some language-dependent strings (optional)\n if (@file_exists(dirname(__FILE__) . '/lang/eng.php')) {\n require_once(dirname(__FILE__) . '/lang/eng.php');\n $pdf->setLanguageArray($l);\n }\n\n// ---------------------------------------------------------\n// set fonthelvetica\n $pdf->SetFont('helvetica', '', 10);\n\n// define barcode style\n $style = array(\n 'position' => '',\n 'align' => 'C',\n 'stretch' => false,\n 'fitwidth' => true,\n 'cellfitalign' => '',\n 'border' => true,\n 'hpadding' => 'auto',\n 'vpadding' => 'auto',\n 'fgcolor' => array(0, 0, 0),\n 'bgcolor' => false, //array(255,255,255),\n 'text' => true,\n 'font' => 'helvetica',\n 'fontsize' => 8,\n 'stretchtext' => 4\n );\n $pdf->AddPage();\n\n $pdf->Ln(35);\n $pdf->write1DBarcode($data['reference_id'], 'C128', '', '', '', 18, 0.3, $style, 'N');\n $pdf->Ln(10);\n // $pdf->SetXY(15, 70);\n\n $pdf->SetFont('times', 'B', 16);\n $pdf->Cell(0, 0, 'PERSONAL DATA', 'TB', 1, 'C');\n $pdf->Ln(10);\n $pdf->SetFont('times', 'B', 11);\n $pdf->Image($data[\"img\"], '160', '100', '40', '35');\n $pdf->Cell(50, 0, \"SURNAME\", 0, 0, 'L');\n $pdf->Cell(50, 0, \"FIRST NAME\", 0, 0, 'L'); //: : \n $pdf->Cell(50, 0, \"LAST NAME\", 0, 1, 'L');\n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(50, 0, $data['surname'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['first_name'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['other_name'], 0, 1, 0, 0, '', '', true);\n $pdf->Ln();\n $pdf->SetFont('times', 'B', 11);\n $pdf->Cell(50, 0, \"GENDER\", 0, 0, 'L');\n $pdf->Cell(50, 0, \"DATE OF BIRTH\", 0, 0, 'L'); //: : \n $pdf->Cell(50, 0, \"MARITAL STATUS\", 0, 1, 'L');\n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(50, 0, $data['sex'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['date_of_birth'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['marital_status'], 0, 1, 0, 0, '', '', true);\n $pdf->Ln();\n $pdf->SetFont('times', 'B', 11);\n $pdf->Cell(50, 0, \" STATE OF ORIGIN\", 0, 0, 'L');\n $pdf->Cell(50, 0, \"LOCAL GOVT AREA\", 0, 0, 'L'); //: : \n $pdf->Cell(50, 0, \"STATE OF RESIDENCE\", 0, 1, 'L');\n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(50, 0, $data['state_of_origin'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['local_govt_area'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['state_of_resident'], 0, 1, 0, 0, '', '', true);\n $pdf->Ln();\n $pdf->SetFont('times', 'B', 11);\n\n $pdf->Cell(50, 0, \"PHONE NUMBER\", 0, 0, 'L'); //: : \n $pdf->Cell(50, 0, \"E-MAIL ADDRESS\", 0, 0, 'L');\n $pdf->Cell(50, 0, \" RESIDENTIAL ADDRESS\", 0, 1, 'L');\n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(50, 0, $data['phone_no'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['email_address'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['residential_address'], 0, 1, 0, 0, '', '', true);\n $pdf->Ln();\n $pdf->SetFont('times', 'B', 16);\n $pdf->Cell(0, 0, 'SERVICE RECORD', 'TB', 1, 'C');\n $pdf->Ln(6);\n\n $pdf->SetFont('times', 'B', 11);\n $pdf->Cell(50, 0, \"SERVICE NO \", 0, 0, 'L');\n $pdf->Cell(50, 0, \"DATE OF ENLISTMENT\", 0, 0, 'L');\n $pdf->Cell(50, 0, \"DATE OF LAST PROMOTION\", 0, 1, 'L');\n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(50, 0, $data['service_no'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['date_of_commission'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['last_promotion_date'], 0, 1, 0, 0, '', '', true);\n $pdf->Ln();\n\n $pdf->SetFont('times', 'B', 11);\n $pdf->Cell(50, 0, \"GRADE LEVEL\", 0, 0, 'L');\n $pdf->Cell(50, 0, \"STEP\", 0, 0, 'L');\n $pdf->Cell(50, 0, \"SALARY STRUCTURE\", 0, 1, 'L');\n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(50, 0, $data['gl'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['step'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['salary_structure'], 0, 1, 0, 0, '', '', true);\n $pdf->Ln();\n\n $pdf->SetFont('times', 'B', 11);\n $pdf->Cell(50, 0, \"PAY POINT\", 0, 0, 'L');\n $pdf->Cell(50, 0, \"RANK\", 0, 0, 'L');\n $pdf->Cell(50, 0, \"CADRE (OTHER RANKS)\", 0, 1, 'L');\n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(50, 0, $data['pay_point'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['rank'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['cadre'], 0, 1, 0, 0, '', '', true);\n\n $pdf->Ln();\n\n $pdf->SetFont('times', 'B', 11);\n $pdf->Cell(50, 0, \"SKILL/TRADE\", 0, 0, 'L');\n $pdf->Cell(50, 0, \"PROFESSION\", 0, 0, 'L');\n $pdf->Cell(50, 0, \"COMMAND\", 0, 1, 'L');\n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(50, 0, $data['skill'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['profession'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['command'], 0, 1, 0, 0, '', '', true);\n $pdf->Ln();\n\n $pdf->SetFont('times', 'B', 16);\n $pdf->Cell(0, 0, 'BANK DETAILS', 'TB', 1, 'C');\n $pdf->Ln(6);\n $pdf->SetFont('times', 'B', 11);\n $pdf->Cell(70, 0, \"NAME OF BANK\", 0, 0, 'L');\n $pdf->Cell(70, 0, \"ACCOUNT NUMBER\", 0, 0, 'L'); //: : \n $pdf->Cell(70, 0, \"BVN\", 0, 1, 'L');\n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(70, 0, $data['bank_name'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(70, 0, $data['account_no'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(70, 0, $data['bvn'], 0, 1, 0, 0, '', '', true);\n $pdf->Ln();\n $pdf->SetFont('times', 'B', 11);\n $pdf->Cell(70, 0, \"PFA NAME\", 0, 0, 'L');\n $pdf->Cell(70, 0, \"PFA PIN\", 0, 1, 'L'); //: : \n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(70, 0, $data['pfa_name'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(70, 0, $data['pfa_pin'], 0, 1, 0, 0, '', '', true);\n $pdf->Ln(20);\n $pdf->SetFont('', 'B', 12);\n $pdf->MultiCell(60, 0, 'Sign,Date & Name of Employee', 'T', 'L', 0, 0, '', '', true);\n $pdf->SetFont('', 'B', 12);\n $pdf->Cell(5, 0, '', 0, 0, 'L');\n $pdf->MultiCell(60, 0, 'Sign,Date&Name of Enrolment Officer', 'T', 0, 0, 0, '', '', true);\n $pdf->Cell(5, 0, '', 0, 0, 'L');\n $pdf->MultiCell(60, 0, 'Sign,Date & Name of OAGF Team Leader.', 'T', 'L', 0, 0, '', '', true);\n\n ob_end_clean();\n//$pdf->writeHTML(\"<hr>\", true, false, false, false, '');\n// DREAW LINE\n // \n// ---------------------------------------------------------\n//Close and display output PDF document onbrwser\n // if ($broswer) {\n $pdf->Output('Employee Certificate.pdf', 'I');\n// } else {\n// $pdffile = $pdf->Output('Employee Certificate.pdf', 'S');\n// return $pdffile;\n// }\n }", "title": "" }, { "docid": "a15600b8a6d9a4704922eee6c97af292", "score": "0.58590037", "text": "function appealreport(){\n\t\t$student_id = $this->uri->segment(3);\n\n\t\t$allappeal = $this->AppealFormModel->GetAllAppealWithDetails($student_id);\n\n\t\t$data = array(\n\t\t\t\"allappeal\" => $allappeal\n\t\t);\n\n\t\t$html = $this->layout->report_view(\"analysis_and_reporting/allappeal_list\", $data, true);\n\n\t\t$this->pdfgenerator->GenerateLan($html);\n\t}", "title": "" }, { "docid": "9c3a0eff525ea9311c79ae9db8858bb8", "score": "0.5849761", "text": "function reporteDesglosado_PDF($fechaDesde,$fechaHasta,$tipoNivel){\n\t\t \n\t\t $cajaTramites = new CajaTramites();\n\t\t\t \n\t\t\t //Obtiene fecha de impresion\n\t\t\t list($anioImp,$mesImp,$diaImp)= split(\"/\", date('Y/m/d'));\n\t\t\t $nombreMesImp = CajaTramites::nombre_mes($mesImp);\n\t\t\t \n\t\t\t //Obtiene fecha de inicio (Desde) de reporte\n\t\t\t list($anioDesde,$mesDesde,$diaDesde)= split(\"/\", $fechaDesde);\n\t\t\t $nombreMesD = CajaTramites::nombre_mes($mesDesde);\n\t\t\t \n\t\t\t //Obtiene fecha final (Hasta) del reporte\n\t\t\t list($anioHasta,$mesHasta,$diaHasta)= split(\"/\", $fechaHasta);\n\t\t\t $nombreMesH = CajaTramites::nombre_mes($mesHasta);\n\t\t\t \n\t\t\t $pdf = new FPDF();\n\t\t\t $pdf -> Open();\n\t\t\t $pdf -> AddFont('Verdana','','verdana.php');\n\t\t\t $pdf -> AddPage();\n\t\t\t $pdf -> Image('public/img/CETI_n.jpg', 5,5,40,40);\n\t\t\t \n\t\t\t $pdf->SetX(18);\n\t\t\t $pdf->SetFont('Arial', 'B', 14);\n\t\t\t $pdf->MultiCell(0, 3, \"CENTRO DE ENSEÑANZA TÉCNICA INDUSTRIAL\", 0, 'C', 0);\n\t\t\t $pdf->Ln();\n\t\t\t $pdf->SetX(18);\n\t\t\t $pdf->SetFont('Arial', '', 10);\n\t\t\t $pdf->MultiCell(0, 3, \"MODULO DE CAJA PLANTEL COLOMOS\", 0, 'C', 0);\n\t\t\t \n\t\t\t $pdf->Ln();\n\t\t\t $pdf->Ln();\n\t\t\t $pdf->SetX(38);\n\t\t\t $pdf->SetFont('Arial', 'B', 10);\n\t\t\t $pdf->Cell(80, 3, \"CORTE DESGLOSADO\", 0, 'C', 0);\n\t\t\t $pdf->SetX(138);\n\t\t\t $pdf->SetFont('Arial', '', 8);\n\t\t\t $pdf->MultiCell(0, 3, \"Fecha de Impresión : \".$diaImp.\" / \".$nombreMesImp.\" / \".$anioImp, 0, 'C', 0);\n\t\t\t \n\t\t\t $pdf->Ln();\n\t\t\t $pdf->Ln();\n\t\t\t $pdf->SetX(50);\n\t\t\t $pdf->SetFont('Arial', 'B', 9);\n\t\t\t $pdf->MultiCell(144, 8, \"CORTE DE CAJA DEL \".$diaDesde.\" / \".$nombreMesD.\" / \".$anioDesde.\" AL \".$diaHasta.\" / \".$nombreMesH.\" / \".$anioHasta, 1, 'L', 0);\n\t\t\t \n\t\t\t $pdf->Ln();\n\t\t\t $pdf->Ln();\n\t\t\t $pdf->SetDrawColor(60);\n\t\t\t $pdf->SetFillColor(100);\n\t\t\t $pdf->SetTextColor(250);\n\t\t\t $pdf->SetFont(\"Arial\",\"B\",6);\n\t\t\t $pdf->GetStringWidth(100);\n\t\t\t $pdf->SetX(8);\n\t\t\t //Titulos de la tabla\n\t\t\t $pdf->Cell(16,8,\"No. TRAMITE\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(18,8,\"No. CONCEPTO\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(64,8,\"NOMBRE CONCEPTO\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(16,8,\"REGISTRO\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(16,8,\"NIVEL\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(20,8,\"PERIODO\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(20,8,\"FECHA DE PAGO\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(16,8,\"COSTO\",1,0,\"C\",1);\n\n \n\t\t\t //Obtiene los registros\n\t\t\t $result = CajaTramites::reporte_desglosado_caja($fechaDesde,$fechaHasta,$tipoNivel);\n\t\t\t $y = 66; \n\t\t\t //Se inician variables que se utilizan\n\t\t\t $numPage = 1;\n\t\t\t $i = 0;\n\t\t\t $montoTotal = 0;\n\t\t\t \n\t\t\t //Se colocan los datos\n\t\t\t foreach($result AS $value)\n\t\t\t {\n\t\t\t $i++;\n\t\t\t\t\n\t\t\t\tif($i%2 == 0)\n\t\t\t\t $Fila = 0;\n\n\t\t\t\telse\n\t\t\t\t $Fila = 1;\n\t\t\t\t\n\t\t\t\t\n\t\t //Validacion de tipo de pago\n\t\t if($value -> nivel == \"1\")\n\t\t\t $nivel = \"TECNÓLOGO\";\n\t\t\t\n\t\t else\n\t\t\t $nivel = \"INGENIERÍA\";\n\t\t\t\t \n\t\t\t //Validacion de caracteres de los conceptos\n\t\t\t\tif(strlen($value -> conceptoRef) == 1)\n\t\t\t\t $concepto = \"000\".$value -> conceptoRef;\n\n\t\t\t\telse if(strlen($value -> conceptoRef) == 2)\t\n\t\t\t\t $concepto = \"00\".$value -> conceptoRef;\t \n\t\t\t\t\t\n\t\t\t\telse if(strlen($value -> conceptoRef) == 3)\t\n\t\t\t\t $concepto = \"0\".$value -> conceptoRef;\t \n\n\t\t\t\telse\n\t\t\t\t $concepto = $value -> conceptoRef;\t \n\t\t\t\t//Termina validacion conceptos\n\t\t\t\t\n\t\t //Validacion del registro\n if($value -> registro == 41 || $value -> registro == \"\")\n $registroRef = \"SIN REGISTRO\";\t\n \n else\n\t\t $registroRef = $value -> registro;\t\n\t\t\t\t \n\t\t\t\t//Obtiene el nobre del periodo\n\t\t\t\t$Periodos = new Periodos();\n\t\t\t\t$nombrePeriodo = Periodos::nombre_periodo($value -> periodo);\n\t\t\t\t\n\t\t\t\t//Se realiza la suma del monto total\n\t\t\t\t$montoTotal = $montoTotal + $value -> costo;\n\t\t\t\t\n\t\t\t\t$pdf->SetDrawColor(0);\n\t\t\t\t$pdf->SetFillColor(230);\n\t\t\t\t$pdf->SetTextColor(1);\n\t\t\t\t$pdf->SetXY(8,$y);\n\t\t\t\t$pdf->SetFont(\"Arial\",\"\",6);\n\t\t\t\t$pdf->Cell(16,5,$value -> idTramite,1,0,\"C\",$Fila); \n\t\t\t\t$pdf->Cell(18,5,$concepto,1,0,\"C\",$Fila); \n\t\t\t\t$pdf->Cell(64,5,$value -> nombre,1,0,\"C\",$Fila);\n\t\t\t\t$pdf->Cell(16,5,$registroRef,1,0,\"C\",$Fila);\n\t\t\t\t$pdf->Cell(16,5,$nivel,1,0,\"C\",$Fila);\n\t\t\t\t$pdf->Cell(20,5,$nombrePeriodo,1,0,\"C\",$Fila);\n\t\t\t\t$pdf->Cell(20,5,$value -> fecha_pago,1,0,\"C\",$Fila);\n\t\t\t\t$pdf->Cell(16,5,\"$ \".number_format($value -> costo,2),1,0,\"C\",$Fila);\n\t\t\t\t\n\t\t\t\tif($numPage > 1)\n\t\t\t\t $NoLineas = 51;\n\t\t\t\t \n\t\t\t\telse\n\t\t\t\t $NoLineas = 40;\n\t\t\t\t \n\t\t\t\tif($i == $NoLineas){\n\t\t\t\t $y = 10; \n\t\t\t\t $numPage++;\n\t\t\t\t $i = 0;\n\t\t\t\t \n\t\t\t\t $pdf -> AddPage();\n\t\t\t\t $pdf->SetDrawColor(60);\n\t\t\t\t $pdf->SetFillColor(100);\n\t\t\t\t $pdf->SetTextColor(250);\n\t\t\t\t $pdf->SetFont(\"Arial\",\"B\",6);\n\t\t\t\t $pdf->GetStringWidth(100);\n\t\t\t \t $pdf->SetXY(8,8);\n\t\t\t\t //Titulos de la tabla\n\t\t\t\t $pdf->Cell(16,8,\"No. TRAMITE\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(18,8,\"No. CONCEPTO\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(64,8,\"NOMBRE CONCEPTO\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(16,8,\"REGISTRO\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(16,8,\"NIVEL\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(20,8,\"PERIODO\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(20,8,\"FECHA DE PAGO\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(16,8,\"COSTO\",1,0,\"C\",1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$y +=5; \n\t\t\t\t\n\t\t\t\t//Numeracion pagina\n\t\t\t\t$pdf->SetXY(188,268);\n\t\t\t\t$pdf->SetTextColor(1);\n\t\t\t\t$pdf->SetFont(\"Arial\",\"\",9);\n\t\t\t\t$pdf->Cell(25,8,$numPage,0,0,\"C\",0);\n\t\t\t\t\n\t\t\t }\n\t\t\n\t\t\t $pdf->SetDrawColor(60);\n\t\t\t $pdf->SetFillColor(100);\n\t\t\t $pdf->SetTextColor(250);\n\t\t\t $pdf->SetFont(\"Arial\",\"B\",8);\n\t\t\t $pdf->GetStringWidth(100);\n\t\t\t $pdf->SetXY(119,$y);\n\t\t\t //Titulos de la tabla\n\t\t\t $pdf->Cell(50,8,\"TOTAL\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(25,8,\"$ \".number_format($montoTotal,2),1,0,\"C\",1);\n\n\t\t\t $pdf -> Output(\"public/files/pdfs/reporte_caja/Reporte_Desglosado.pdf\",\"F\"); \n\t\t}", "title": "" }, { "docid": "7df1408c9bbfb378569fd10aaff4f6a5", "score": "0.58345145", "text": "public function ejecutarPdf($id){\n $rubro= new Rubroingreso;\n \n $datos= DB::selectOne('select ingresos.id, rubroingresos.nombre as rubro, \n detalleingresos.nombre as detalle, ingresos.cantidad, ingresos.dia, ingresos.mes, \n ingresos.año \n from ingresos inner join rubroingresos on ingresos.rubroingreso_id=rubroingresos.id \n inner join detalleingresos on ingresos.detalleingreso_id=detalleingresos.id where ingresos.id=?', [$id]);\n\n \n \n $letras= $rubro->convertirNumeroLetra($datos->cantidad);\n\n \n \n return \\PDF::loadView('tesoreria.comprobCopy', compact(\"datos\", \"letras\"))\n ->setPaper('a4', 'landscape')\n ->stream('C-Ingreso_' . $datos->rubro . '_' . $datos->detalle . '.pdf'); //si lo quiero descargar enseguida uso download(), si lo quiero ver en el navegador uso stream()\n \n }", "title": "" }, { "docid": "49bbf886ff7ded1d2cb30d9dba65297f", "score": "0.5834265", "text": "function generarPdfSolicitudEmail( $id ){\t\t\n\t\t\n\t\t$producto = array();\n\t\t$cliente = array();\n\t\t$marca = \"\";\n\t\t$modelo = \"\";\n\t\t\n\t\t$data = $this->getSolicitudData( $id );\n\n\t\tforeach ($data as $solicitud) {\n\t\t\t$producto = $solicitud['Producto'];\n\t\t\t$cliente = $solicitud['Cliente'];\n\t\t}\n\n\t\tforeach ($producto as $modelos) {\n\t\t\t$marca = $modelos['Modelo']['Marca']['nombre'];\n\t\t\t$modelo = $modelos['Modelo']['nombre'];\n\t\t}\n\n\t\t$this->sendClientEmail($producto,$cliente,$marca,$modelo);\n\t}", "title": "" }, { "docid": "0629ab89e5cad7a0dd2c3485e3a89fd7", "score": "0.5825838", "text": "public function facturaPDF($id)\n {\n $cv = ControladorVenta::getControlador();\n\n $venta = $cv->buscarVentaID($id);\n $lineas = $cv->buscarLineasID($id);\n\n $sal = \"<h2>Factura</h2>\";\n $sal .= \"<h3>Pedido nº:\" . $id . \"</h3>\";\n $date = new DateTime($venta->getFecha());\n $sal .= \"<h4>Fecha de compra:\" . $date->format('d/m/Y') . \"</h4>\";\n $sal .= \"<h4>Datos de pago:</h4>\";\n $sal .= \"<h5>Facturado a: \" . $venta->getNombreTarjeta() . \"</h5>\";\n $sal .= \"<h5>Metodo de pago: Tarjeta de crédito/debito: **** \" . substr($venta->getNumTarjeta(), -4) . \"</h5>\";\n $sal .= \"<h4>Datos de Envío:</h4>\";\n $sal .= \"<h5>Nombre: \" . $venta->getNombre() . \"</h5>\";\n $sal .= \"<h5>Email \" . $venta->getEmail() . \"</h5>\";\n $sal .= \"<h5>Dirección \" . $venta->getDireccion() . \"</h5>\";\n $sal .= \"<h4>Productos</h4>\";\n $sal .= \"<table>\n <thead>\n <tr><td><b>Item</b></td><td><b>Precio (PVP)</b></td><td><b>Cantidad</b></td><td><b>Total</b></td>\n </tr>\n </thead>\n <tbody>\";\n\n foreach ($lineas as $linea) {\n $sal .= \"<tr>\";\n $sal .= \"<td>\" . $linea->getMarca() . \" \" . $linea->getModelo() . \"</td>\";\n $sal .= \"<td>\" . $linea->getPrecio() . \" €</td>\";\n $sal .= \"<td>\" . $linea->getCantidad() . \"</td>\";\n $sal .= \"<td>\" . ($linea->getPrecio() * $linea->getCantidad()) . \" €</td>\";\n $sal .= \"</tr>\";\n }\n\n $sal .= \"<tr>\n <td></td>\n <td></td>\n <td><strong>Total sin IVA</strong></td>\n <td>\" . $venta->getSubtotal() . \"€</td>\n </tr>\n <tr>\n <td></td>\n <td></td>\n <td><strong>I.V.A</strong></td>\n <td>\" . $venta->getIva() . \" €</td>\n </tr>\n <tr>\n <td></td>\n <td></td>\n <td><strong>TOTAL</strong></td>\n <td><strong>\" . $venta->getTotal() . \" €</strong></td>\n </tr>\";\n\n\n $sal .= \" </tbody>\n </table>\";\n\n\n $pdf = new HTML2PDF('P', 'A4', 'es', 'true', 'UTF-8');\n $pdf->writeHTML($sal);\n $pdf->output('factura.pdf');\n\n }", "title": "" }, { "docid": "692d4587294fe17c115599b5a95e2176", "score": "0.58219695", "text": "public function genererPreselectionnePDF()\n {\n if (auth()->check()) {\n $souscripteurs=Souscripteur::with('localite.departement')\n ->orWhere(\"electricite\",1)\n ->orWhere(\"electronique\",1)\n ->orWhere(\"electrotechnique\",1)\n ->orWhere(\"climatisation\",1)\n ->orWhere(\"energie\",1)\n ->take(2000)\n ->get();\n $titre=\"Liste des souscripteurs 1ère catégorie\";\n $nom=\"liste_souscripteur_preselectionne\";\n $pdf=PDF::loadView('listeSouscripteursPDF',compact('souscripteurs','titre'));\n return $pdf->download($nom);\n\n }\n else\n {\n return view('erreur');\n }\n }", "title": "" }, { "docid": "5c1370f36b6e29f3d641eef47af85cb9", "score": "0.581699", "text": "function pdf($id)\n {\n\n $gaji = Gaji::find($id);\n $karyawan = \\DB::table('karyawan')\n ->join('jabatan','karyawan.kode_jabatan','=','jabatan.kode_jabatan')\n ->where('karyawan.nik',$gaji->nik)\n ->first();\n $pengaturan = \\DB::table('pengaturan')->where('id',1)->first();;\n\n $periode_tahun = substr($gaji->periode,0,4);\n $periode_bulan = substr($gaji->periode,4,2);\n\n $periode_sekarang = '01/'.substr($gaji->periode,4,2).'/'.substr($gaji->periode,0,4);\n\n $periode_bln_depan = '01/'.date('m-Y', strtotime('+1 month', strtotime('2019-04')));\n\n Fpdf::AddPage('L','A5');\n Fpdf::SetFont('Arial', 'B', 14);\n Fpdf::Cell(190, 7, 'LAPORAN SLIP GAJI KARYAWAN',1,1,'C');\n Fpdf::Cell(190, 16, '',1,1,'C');\n Fpdf::SetFont('Arial', 'B', 8);\n\n Fpdf::text(12,22,'Nama Perusahaan');\n Fpdf::text(38,22,' : '.$pengaturan->nama_perusahaan);\n Fpdf::text(12,26,'Periode');\n Fpdf::text(38,26,' : '.$periode_sekarang.' - '.$periode_bln_depan);\n Fpdf::text(12,30,'Departemen');\n Fpdf::text(38,30,' : HRD/ Admin');\n\n\n Fpdf::text(110,22,'NIK');\n Fpdf::text(136,22,' : '.$karyawan->nik);\n Fpdf::text(110,26,'Nama Karyawan');\n Fpdf::text(136,26,' : '.$karyawan->nama);\n Fpdf::text(110,30,'Jabatan');\n Fpdf::text(136,30,' : '.$karyawan->nama_jabatan);\n\n Fpdf::Cell(190, 90, '',1,1,'C');\n // ---------------------------------------\n Fpdf::text(12,40,'Penerimaan ( +)');\n Fpdf::line(12, 75, 210-20, 75);\n Fpdf::line(12, 42, 110-20, 42);\n Fpdf::line(110, 42, 210-20, 42);\n\n\n // KALKULASI KOMPONEN GAJI --------------------------\n\n $total_penerimaan = 0;\n $total_potongan = 0;\n\n $jml_kehadiran = hitungJmlKehadiran($karyawan->nik,$periode_tahun.'-'.$periode_bulan);\n \n\n // gaji pokok harian\n $gph = $karyawan->gaji_pokok/24;\n // gaji berdasarkan kehadiran\n $gbh = $gph*$jml_kehadiran;\n $total_penerimaan = $total_penerimaan + $gbh;\n\n \n\n $penerimaan = [\n [\n 'kode_komponen'=>'GP',\n 'nama_komponen'=>'Gaji Pokok',\n 'nilai'=>$karyawan->gaji_pokok\n ],\n [\n 'kode_komponen'=>'GPH',\n 'nama_komponen'=>'Gaji Pokok Harian',\n 'nilai'=>$gph\n ],\n [\n 'kode_komponen'=>'GBH',\n 'nama_komponen'=>'Gaji Berdasarkan Kehadiran ('.$jml_kehadiran.')',\n 'nilai'=>$gbh\n ]\n ];\n\n \n\n $potongan = [];\n\n\n // =============== KOMPONEN GAJI DETAIL ======================\n $gaji_detail = \\DB::table('gaji_detail')\n ->join('komponen_gaji','komponen_gaji.kode_komponen','=','gaji_detail.kode_komponen')\n ->where('gaji_detail.gaji_id',$id)\n ->get()->toArray();\n\n foreach($gaji_detail as $gd)\n {\n $komponen_baru = ['kode_komponen'=>$gd->kode_komponen,'nama_komponen'=>$gd->nama_komponen,'nilai'=>$gd->nilai];\n\n if($gd->jenis=='tunjangan')\n {\n array_push($penerimaan,$komponen_baru);\n }else\n {\n array_push($potongan,$komponen_baru);\n }\n }\n\n // ============== HITUNG LEMBUR ==============================================\n $hitungLembur = \\DB::select(\"select sum(durasi_lembur) as durasi_lembur \n from lembur where left(cast(tanggal_masuk as text),7)='\".$periode_tahun.'-'.$periode_bulan.\"' \n and nik='\".$gaji->nik.\"'\");\n $upahLembur = $hitungLembur[0]->durasi_lembur*20000;\n\n $lembur = ['kode_komponen'=>'LBR','nama_komponen'=>'Upah Lembur','nilai'=>$upahLembur];\n array_push($penerimaan,$lembur);\n\n\n $start = 48;\n foreach($penerimaan as $p)\n {\n Fpdf::text(12,$start,$p['kode_komponen']);\n Fpdf::text(24,$start,$p['nama_komponen']);\n Fpdf::text(74,$start,': '.rupiah($p['nilai']));\n\n if($p['kode_komponen']!='GPH' and $p['kode_komponen']!='GP' and $p['kode_komponen']!='GBH')\n {\n $total_penerimaan += $p['nilai'];\n }\n\n $start = $start+5;\n }\n\n //////////////////////////////////////////////////////////////////////\n\n Fpdf::text(110,40,'Potongan ( -)');\n $start = 48;\n foreach($potongan as $pt)\n {\n //dd($pt);\n Fpdf::text(110,$start,$pt['kode_komponen']);\n Fpdf::text(124,$start,$pt['nama_komponen']);\n Fpdf::text(174,$start,': '.rupiah($pt['nilai']));\n $start = $start+5;\n $total_potongan = $total_potongan+$pt['nilai'];\n }\n\n Fpdf::text(12,82,'Total Penerimaan');\n Fpdf::text(74,82,': '.rupiah($total_penerimaan));\n\n Fpdf::text(12,86,'Gaji Yang Diterima');\n Fpdf::text(74,86,': '.(rupiah($total_penerimaan - $total_potongan)));\n\n Fpdf::text(12,90,'---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------');\n\n\n Fpdf::text(12,96,'Nama Perusahaan');\n Fpdf::text(42,96,' : '.$pengaturan->nama_perusahaan);\n Fpdf::text(12,100,'Periode');\n Fpdf::text(42,100,' : '.$periode_sekarang.' - '.$periode_bln_depan);\n Fpdf::text(12,104,'Departemen');\n Fpdf::text(42,104,' : HRD/ Admin');\n\n\n Fpdf::text(12,108,'NIK');\n Fpdf::text(42,108,' : '.$karyawan->nik);\n Fpdf::text(12,112,'Nama Karyawan');\n Fpdf::text(42,112,' : '.$karyawan->nama);\n Fpdf::text(12,116,'Jabatan');\n Fpdf::text(42,116,' : '.$karyawan->nama_jabatan);\n\n\n\n Fpdf::text(120,96,'Diserahkan Oleh');\n Fpdf::text(125,116,'Admin');\n Fpdf::text(110,120,'Tgl Cetak : '.date('d/m/Y : H:i:s'));\n Fpdf::text(160,96,'Diterima Oleh');\n Fpdf::text(163,116,$karyawan->nama);\n\n Fpdf::Output();\n exit;\n }", "title": "" }, { "docid": "96758674ff67ee54f54fd5db8eb6fe73", "score": "0.58079875", "text": "function flash_pdf($client_id=null,$flashId=null){\n \n $this->DailyFlash = ClassRegistry::init('DailyFlash');\n $this->DailyFlash->recursive = 1;\n $flashData = $this->DailyFlash->find('first', array('conditions' => array('DailyFlash.id'=>$flashId)));\n $this->set('flashData',$flashData);\n \n $financeData = $this->requestAction('/Clients/get_flash_finances/'.$flashId);\n $this->set('financeData',$financeData);\n \n $client_name = $this->Client->find('first',array('conditions'=>array('Client.id'=>$client_id),'fields'=>'Client.hotelname,Client.logo'));\n $hotelname = $client_name['Client']['hotelname'];\n $clienImage = $client_name['Client']['logo'];\n $this->set('hotelname',$hotelname);\n $this->set('clienImage',$clienImage);\n \n //Get Rooms Department ID\n $dept_ids = $this->requestAction('/Clients/get_room_department/'.$client_id);\n \n $day = date('d',strtotime($flashData['DailyFlash']['date']));\n $month = date('m',strtotime($flashData['DailyFlash']['date']));\n $year = date('Y',strtotime($flashData['DailyFlash']['date']));\n \n //Get the market segments of Rooms department Segmentation sheet\n \n $this->User = ClassRegistry::init('User');\n $users = $this->User->find('list',array('conditions'=>array('User.client_id'=>$client_id,'User.status'<>'2'),'fields'=>array('User.id'),'recursive'=>'-1'));\n \n $this->AdvancedSheet = ClassRegistry::init('AdvancedSheet');\n $this->AdvancedSheet->recursive = '-1';\n $conditions = array('AdvancedSheet.status !='=>'2','AdvancedSheet.department_id'=>$dept_ids,'AdvancedSheet.user_id'=>$users,'AdvancedSheet.month'=>$month,'AdvancedSheet.year'=>$year);\n $sheetData = $this->AdvancedSheet->find('all', array('conditions' => $conditions,'fields'=> array('AdvancedSheet.market_segments,AdvancedSheet.id')));\n $sheet_segments = array();\n foreach($sheetData as $sheetSeg){\n $sheet_segments[] = explode(',',$sheetSeg['AdvancedSheet']['market_segments']);\n }\n $sheetSegment = call_user_func_array('array_merge', $sheet_segments);\n $sheetSegment = array_unique($sheetSegment);\n $this->MarketSegment = ClassRegistry::init('MarketSegment');\n $marketsegments = $this->MarketSegment->find('list', array('conditions' => array('MarketSegment.status !=' => 2,'MarketSegment.id'=>$sheetSegment)));\n $this->set('marketsegments',$marketsegments);\n $this->set('client_id',$client_id);\n\n //Get BOB and ADR values for each market segment\n $adr_segments = $this->AdvancedSheet->AdvanceData->find('list',array('conditions'=>array('AdvanceData.column_id'=>'64','AdvanceData.advanced_sheet_id'=>$sheetData[0]['AdvancedSheet']['id'],'AdvanceData.date'=>$day),'fields'=> array('AdvanceData.market_segment_id','AdvanceData.value'),'order'=>'AdvanceData.date ASC'));\n $bob_segments = $this->AdvancedSheet->AdvanceData->find('list',array('conditions'=>array('AdvanceData.column_id'=>'62','AdvanceData.advanced_sheet_id'=>$sheetData[0]['AdvancedSheet']['id'],'AdvanceData.date'=>$day),'fields'=> array('AdvanceData.market_segment_id','AdvanceData.value'),'order'=>'AdvanceData.date ASC'));\n $this->set('adr_segments',$adr_segments);\n $this->set('bob_segments',$bob_segments); \n \n //Get Month-To-Date BOB and ADR values for each market segment\n $flash_date = strtotime($flashData['DailyFlash']['date']);\n $day = date('d',$flash_date);\n //$prev_day = $day - 1;\n $prev_day = $day;\n $month_adr_segments = $this->AdvancedSheet->AdvanceData->find('all',array('conditions'=>array('AdvanceData.column_id'=>'64','AdvanceData.advanced_sheet_id'=>$sheetData[0]['AdvancedSheet']['id'],'AdvanceData.date !='=>'Total','AdvanceData.date >='=>'1','AdvanceData.date <='=>$prev_day),'fields'=> array('AdvanceData.market_segment_id','sum(AdvanceData.value) as value'),'group'=>'AdvanceData.market_segment_id'));\n $month_bob_segments = $this->AdvancedSheet->AdvanceData->find('all',array('conditions'=>array('AdvanceData.column_id'=>'62','AdvanceData.advanced_sheet_id'=>$sheetData[0]['AdvancedSheet']['id'],'AdvanceData.date !='=>'Total','AdvanceData.date >='=>'1','AdvanceData.date <='=>$prev_day),'fields'=> array('AdvanceData.market_segment_id','sum(AdvanceData.value) as value'),'group'=>'AdvanceData.market_segment_id'));\n $month_adr_segments = Set::combine($month_adr_segments, '{n}.AdvanceData.market_segment_id', '{n}.0.value');\n $month_bob_segments = Set::combine($month_bob_segments, '{n}.AdvanceData.market_segment_id', '{n}.0.value');\n $this->set('month_adr_segments',$month_adr_segments);\n $this->set('month_bob_segments',$month_bob_segments);\n \n //Get Room Department sheet values\n App::import('Model','Sheet');\n $this->Sheet = new Sheet();\n $all_sheets = $this->Sheet->find('all',array('conditions'=>array('Sheet.status'=>1,'Sheet.department_id'=>$dept_ids,'Sheet.year'=>$year,'Sheet.month'=>$month),'fields'=>array('Sheet.id'),'order'=>'Sheet.modified DESC','recursive'=>'0'));\n $this->set('sheet_id',$all_sheets[0]['Sheet']['id']);\n $sheetId = $all_sheets[0]['Sheet']['id'];\n $days_in_presnt_month = cal_days_in_month (CAL_GREGORIAN,$month, $year);\n //Fcst Rooms Total,Fcst Revenue,Fcst Revpar\n $columnIds = array ('63','69','70');\n $total_field_value = $this->Sheet->Datum->find('all',array('conditions'=>array('Datum.column_id'=>$columnIds,'Datum.sheet_id'=>$sheetId,'Datum.date !='=>'0','Datum.date >='=>'1','Datum.date <='=>$days_in_presnt_month),'fields'=>array('Datum.column_id','sum(Datum.value) as value'),'group'=>array('Datum.column_id')));\n $total_field_value = Set::combine($total_field_value, '{n}.Datum.column_id', '{n}.0.value');\n $this->set('total_field_value',$total_field_value);\n \n //Get total values for Restaurant Department\n $condition = array('Department.client_id' => $client_id, 'Department.name LIKE' => 'Restaurant%', 'Department.status' => '1');\n $res_dept_ids = $this->Client->Department->find('list', array('conditions' => $condition, 'fields' => 'id', 'recursive' => '0'));\n $all_res_sheets = $this->Sheet->find('all',array('conditions'=>array('Sheet.status'=>1,'Sheet.department_id'=>$res_dept_ids,'Sheet.year'=>$year,'Sheet.month'=>$month),'fields'=>array('Sheet.id'),'order'=>'Sheet.modified DESC','recursive'=>'0'));\n $resSheetId = $all_res_sheets[0]['Sheet']['id'];\n //Covers,Ave Spend,Rev Fcst(revenue),RevPASH\n $columnResIds = array ('93','85','69','82');\n $total_restaurant = $this->Sheet->Datum->find('all',array('conditions'=>array('Datum.column_id'=>$columnResIds,'Datum.sheet_id'=>$resSheetId,'Datum.date !='=>'0','Datum.date >='=>'1','Datum.date <='=>$days_in_presnt_month),'fields'=>array('Datum.column_id','sum(Datum.value) as value'),'group'=>array('Datum.column_id')));\n $total_restaurant = Set::combine($total_restaurant, '{n}.Datum.column_id', '{n}.0.value');\n $this->set('total_restaurant',$total_restaurant);\n \n \n $flash_date = strtotime($flashData['DailyFlash']['date']);\n $startDate = date('d', strtotime(\"+1 day\", $flash_date));\n //$endDate = date('d', strtotime(\"+7 day\", $flash_date));\n $endDate = $startDate + '6';\n if((int)$days_in_presnt_month <= (int)$endDate){\n $endDate = $days_in_presnt_month;\n }\n \n $adr_value = $this->Sheet->Datum->find('list',array('conditions'=>array('Datum.column_id'=>'64','Datum.sheet_id'=>$sheetId,'Datum.date !='=>'0','Datum.date >='=>$startDate,'Datum.date <='=>$endDate),'fields'=> array('Datum.date','Datum.value'),'order'=>'Datum.date ASC'));\n $bob_value = $this->Sheet->Datum->find('list',array('conditions'=>array('Datum.column_id'=>'62','Datum.sheet_id'=>$sheetId,'Datum.date !='=>'0','Datum.date >='=>$startDate,'Datum.date <='=>$endDate),'fields'=> array('Datum.date','Datum.value'),'order'=>'Datum.date ASC'));\n $notes_value = $this->Sheet->Datum->find('list',array('conditions'=>array('Datum.column_id'=>'128','Datum.sheet_id'=>$sheetId,'Datum.date !='=>'0','Datum.date >='=>$startDate,'Datum.date <='=>$endDate),'fields'=> array('Datum.date','Datum.value'),'order'=>'Datum.date ASC'));\n $this->set('adr_value',$adr_value);\n $this->set('bob_value',$bob_value);\n $this->set('notes_value',$notes_value);\n \n //get month-to-date values for all flash table columns\n $month_start = date('Y-m-01', strtotime($flashData['DailyFlash']['date']));\n $monthToDateArr = $this->requestAction('/Clients/flash_month_to_date/'.$client_id.'/'.$month_start.'/'.$flashData['DailyFlash']['date']);\n $this->set('monthToDateArr',$monthToDateArr);\n }", "title": "" }, { "docid": "8c9a03cc5e88d1b4ec9ec98a2f38db54", "score": "0.579841", "text": "function makePDFVirement($tva, $albums, $photograph, $siren, $pm_numFacture, $dest=null){\n\t$adresse = $photograph->getAdresse();\n\t$PDF = new phpToPDF();\n\t$PDF->AddPage();\n\t//Photograph informations\n\t$x = 15;$y = 10;\n\t$PDF->SetFont('Times','B',12);\n\t$PDF->SetXY($x,$y);\n\t$PDF->Write(10, $photograph->getNomEntreprise());\n\t$y += 5;\n\t$PDF->SetXY($x,$y);\n\t$PDF->Write(10, $adresse->getNomRue());\n\tif ($adresse->getComplement() != null && $adresse->getComplement() != ''){\n\t\t$y += 5;\n\t\t$PDF->SetXY($x,$y);\n\t\t$PDF->Write(10, $adresse->getComplement());\n\t}\n\t$y += 5;\n\t$PDF->SetXY($x,$y);\n\t$PDF->Write(10, $adresse->getCodePostal().\" \". $adresse->getVille());\n\t$y+=5;\n\t$PDF->SetXY($x,$y);\n\t$PDF->Write(10, \"SIREN No \".$photograph->getSiren());\n\tif ($photograph->getTVA() == 2){\n\t\t$y+=5;\n\t\t$PDF->SetFont('Times','',9);\n\t\t$PDF->SetXY($x,$y);\n\t\t$PDF->Write(10, \"Dispensé d'immatriculation au registre du commerce\");\n\t\t$y+=5;\n\t\t$PDF->SetXY($x,$y);\n\t\t$PDF->Write(10, \"et des sociétés (RCS) et au répertoire des métiers (RM)\");\n\t}\n\t//Photomentiel informations\n\t$x = 130;$y = 25;\n\t$PDF->SetFont('Times','',12);\n\t$PDF->SetXY($x,$y);\n\t$PDF->Write(10, \"- PHOTOMENTIEL -\");\n\t$y+=5;\n\t$PDF->SetXY($x,$y);\n\t$PDF->Write(10, \"www.photomentiel.fr\");\n\t$y+=5;\n\t$PDF->SetXY($x,$y);\n\t$PDF->Write(10, \"contact@photomentiel.fr\");\n\t$y+=5;\n\t$PDF->SetXY($x,$y);\n\t$PDF->Write(10, \"SIREN No \".$siren);\n\t//date\n\t$PDF->SetFont('Times','B',12);\n\t$x = 102;$y += 8;\n\t$PDF->SetXY($x,$y);\n\t$PDF->Write(10, \"Reversion effectuée le \".date(\"d/m/Y\"));\n\t//numero de facture\n\t$PDF->SetFont('Times','B',14);\n\t$x = 15;$y += 12;\n\t$PDF->SetXY($x,$y);\n\t$PDF->Cell(70,10,'Facture n° ...............................',1,1,'C');\n\t$PDF->SetFont('Times','',9);\n\t$x = 88;\n\t$PDF->SetXY($x,$y);\n\t$PDF->Write(10, \"($pm_numFacture)\");\n\t// Définition des propriétés du tableau.\n\t$proprietesTableau = array(\n\t\t'TB_ALIGN' => 'C',\n\t\t'L_MARGIN' => 1,\n\t\t'BRD_COLOR' => array(0,92,177),\n\t\t'BRD_SIZE' => '0.3',\n\t\t);\n\t// Définition des propriétés du header du tableau.\n\t$proprieteHeader = array(\n\t\t'T_COLOR' => array(150,10,10),\n\t\t'T_SIZE' => 11,\n\t\t'T_FONT' => 'Arial',\n\t\t'T_ALIGN' => 'C',\n\t\t'V_ALIGN' => 'M',\n\t\t'T_TYPE' => 'B',\n\t\t'LN_SIZE' => 7,\n\t\t'BG_COLOR_COL0' => array(170, 240, 230),\n\t\t'BG_COLOR' => array(170, 240, 230),\n\t\t'BRD_COLOR' => array(0,92,177),\n\t\t'BRD_SIZE' => 0.2,\n\t\t'BRD_TYPE' => '1',\n\t\t'BRD_TYPE_NEW_PAGE' => '',\n\t\t);\n\t// Contenu du header du tableau.\n\t$contenuHeader = array(\n\t\t130, 52,\n\t\t\"Code Album\", \"Revenu net (Euro ttc)\"\n\t);\n\t// Définition des propriétés du reste du contenu du tableau.\n\t$proprieteContenu = array(\n\t\t'T_COLOR' => array(0,0,0),\n\t\t'T_SIZE' => 10,\n\t\t'T_FONT' => 'Arial',\n\t\t'T_ALIGN_COL0' => 'C',\n\t\t'T_ALIGN' => 'C',\n\t\t'V_ALIGN' => 'M',\n\t\t'T_TYPE' => '',\n\t\t'LN_SIZE' => 6,\n\t\t'BG_COLOR_COL0' => array(255, 255, 255),\n\t\t'BG_COLOR' => array(255,255,255),\n\t\t'BRD_COLOR' => array(0,92,177),\n\t\t'BRD_SIZE' => 0.1,\n\t\t'BRD_TYPE' => '1',\n\t\t'BRD_TYPE_NEW_PAGE' => '',\n\t);\n\t// Contenu du tableau.\n\t$tabContent = array();\n\t$index = 0;\n\t$tot = 0;\n\tforeach ($albums as $alb){\n\t\tif ($alb->getBalance() > 0){\n\t\t\t$sid = StringID::getStringIDDepuisID_Album($alb->getAlbumID());\n\t\t\tif (!$sid){\n\t\t\t\techo \"ERROR : String ID not found for album #\".$alb->getAlbumID();\n\t\t\t}\n\t\t\t$tabContent[$index++] = $sid->getStringID();\n\t\t\t$tabContent[$index++] = sprintf('%.2f',$alb->getBalance());\n\t\t\t$tot += $alb->getBalance();\n\t\t}\n\t}\n\t//display tab\n\t$y += 12;\n\t$PDF->SetXY($x,$y);\n\t$PDF->drawTableau($PDF, $proprietesTableau, $proprieteHeader, $contenuHeader, $proprieteContenu, $tabContent);\n\t//Total\n\t$x = 130;$y+=sizeof($albums)*6+7;\n\t$PDF->SetFont('Times','',12);\n\t$PDF->SetXY($x,$y);\n\t$PDF->Write(10, \"Total (Euro ttc) : \");\n\t$PDF->SetFont('Times','B',11);\n\t$PDF->SetXY($x+33,$y+2);\n\t$PDF->Cell(34,6,sprintf('%.2f',$tot),1,1,'C');\n\t//TVA\n\tif ($photograph->getTVA() != 2){\n\t\t$y+=7;\n\t\t$PDF->SetFont('Times','',10);\n\t\t$PDF->SetXY($x,$y);\n\t\t$PDF->Write(10, \"Dont TVA (\".$tva[$photograph->getTVA()].\"%) : \");\n\t\t$PDF->SetFont('Times','',10);\n\t\t$PDF->SetXY($x+33,$y+2);\n\t\t$PDF->Cell(34,6,sprintf('%.2f',$tot-($tot/(1+$tva[$photograph->getTVA()]/100))),1,1,'C');\n\t} else {\n\t\t//mention obligatoire pour les non-assujettis\n\t\t$y += 6;\n\t\t$PDF->SetFont('Times','',8);\n\t\t$PDF->SetXY($x,$y);\n\t\t$PDF->Write(10, \"TVA non applicable, art. 293 B du CGI\");\n\t}\n\t//payment date\n\t$x = 30;$y+=6;\n\t$PDF->SetFont('Times','',9);\n\t$PDF->SetXY($x,$y);\n\t$PDF->Write(10, \"Paiement effectué par virement le même jour.\");\n\t//footer\n\t$x = 78;$y = 266;\n\t$PDF->SetFont('Times','',8);\n\t$PDF->SetXY($x,$y);\n\t$PDF->Write(10, \"www.photomentiel.fr - Tous droits réservés\");\n\t//Print\n\tif ($dest==null){\n\t\t$PDF->Output();\n\t} else {\n\t\t$PDF->Output($dest, \"F\");\n\t}\n}", "title": "" }, { "docid": "4e91801a3e6b466f44ab3de293753ed7", "score": "0.57957464", "text": "public function admin_generarPdf( $data_id ){\n\t\t\n\t\tif ( ! $this->Transaccion->exists($data_id) ) {\n\t\t\t$this->Session->setFlash('No existe el registro seleccionado.', null, array(), 'danger');\n\t\t\t$this->redirect(array('action' => 'index'));\n\t\t}\n\n\t\t$solicitud = $this->Transaccion->find( 'first', array(\n\t\t\t\t'conditions' => array('Transaccion.id' => $data_id),\n\t\t\t\t'contain' => array(\n\t\t\t\t\t'Producto' => array('Modelo'),\n\t\t\t\t\t'EstadoTransaccion',\n\t\t\t\t\t'Documento' => array('TipoDocumento'),\n\t\t\t\t\t'Cliente' => array('TipoCliente')\n\t\t\t\t\t)\n\t\t\t\t) \n\t\t\t);\n\n\t\t$this->pdfConfig = array(\n\t\t\t'download' => true,\n\t\t\t'filename' => 'solictud_' . $data_id .'.pdf'\n\t\t);\n\n\t\t$this->set(compact('solicitud'));\n\n\t}", "title": "" }, { "docid": "5388b3b1d04bbe1bcb58ffb628ceb182", "score": "0.5775442", "text": "private function createPdf($data,$title, $file_name, $cliente){\n\t\t$pdf = new PaymentVoucherPdf(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\n\t\t$pdf->SetAutoPageBreak(false, 0);\n\t\t$pdf->SetMargins(0, 0, 0, true);\n\n\t\t// set document information\n\t\t$pdf->SetCreator(PDF_CREATOR);\n\t\t$pdf->SetAuthor('Fullmec');\n\t\t$title='Comprobante de Pago';\n\t\t$pdf->SetTitle($title);\n\n\t\t// set margins\n\t\t$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\n\t\t$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\n\t\t$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\n\n\t\t// set auto page breaks\n\t\t$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n\n\t\t// set image scale factor\n\t\t$pdf->setImageScale(1);\n\n\t\t// ---------------------------------------------------------\n\n\t\t// set title\n\t\t$pdf->title_header = $title;\n\n\t\t// set font\n\t\t//$pdf->SetFont('Helvetica', '', 11);\n\n\t\t// add a page\n\t\t$pdf->AddPage();\n\t\t//$pdf->setX(PDF_MARGIN_LEFT);\n\n\t\t$nombre_cliente = $cliente->full_name;\n\t\t$nombre_mecanico = $data->request->mechanic['full_name'];\n\t\t$marca = $data->car_brand_name;\n\t\t$modelo = $data->car_model_name;\n\t\t$patente = $data->patent;\n\t\t$ano = $data->year;\n\t\t$align = 'L';\n\n\t\t$fecha = new \\DateTime($data->request->created);\n\t\t$fecha = $fecha->format('d/m/Y');\n\n\t\t// Info básica.\n\t\t$pdf->Info($fecha,$nombre_cliente,$nombre_mecanico,$marca,$modelo,$patente,$ano);\n\n\n\t\t// Detalle.\n\t\t$pdf->SubTitle('Detalle Servicios Abonados');\n\n\n\t\t$dataServices= [];\n\t\t$sum=0;\n\t\tforeach($data->request->available_services as $item){\n\t\t\t\tarray_push($dataServices, ['name'=> $item->name,'value' => $item->total_price]);\n\t\t\t\t$sum= $sum + $item->total_price;\n\t\t}\n\n\t\tarray_push($dataServices, ['name'=> 'Total', 'value' => $sum ]);\n\n\t\t$pdf->ItemValueList($dataServices,'40%','60%');\n\n\t\t// ---------------------------------------------------------\n\n\t\treturn $pdf;\n\t}", "title": "" }, { "docid": "ae51abcd3210d743cb43991c2307818a", "score": "0.5755256", "text": "protected function RelatorioDespesas($date,$graf=true){\t\t\r\n\r\n\t\t$tipos = array(\r\n\t\t\t\"Administrativo\",\r\n\t\t\t\"Fixa\",\r\n\t\t\t\"Imposto\",\r\n\t\t\t\"Juros/Taxas\",\r\n\t\t\t\"Combustivel\",\r\n\t\t\t\"Viagem\",\r\n\t\t\t\"Mecânico\"\r\n\t\t\t);\r\n\r\n\r\n\t\t$TiposPagamentos = array(\"A Vista\",\"Boleto\",\"Cheque\",\"Cheques de Cliente\",\"Cartão\");\r\n\r\n\t\t$this->pdf->Ln(5);\r\n\t\t$this->pdf->SetFont('Arial',null,12);\r\n\r\n\r\n\t\t$query = \"SELECT * FROM despesas WHERE data LIKE ('%-\".$date[0].\"-\".$date[1].\"') OR vencimento LIKE ('%-\".$date[0].\"-\".$date[1].\"') ORDER BY id DESC\";\r\n\t\t$sql = $this->model->query($query);\r\n\t\t$xhtml = \"\";\r\n\r\n\t\t//// para cada bloco dessa venda\r\n\r\n\t\twhile ($linha=mysql_fetch_assoc($sql)) {\r\n\t\t\tif ($linha[\"vencimento\"]!=\"\") {\r\n\t\t\t\t$data = explode(\"-\", $linha[\"vencimento\"]);\r\n\t\t\t}else{\r\n\t\t\t\t$data = explode(\"-\", $linha[\"data\"]);\t\r\n\t\t\t}\r\n\r\n\t\t\tif ($data[1]==$date[0] && $data[2]==$date[1]) {\r\n\r\n\t\t\t\t$despesas[$linha[\"tipo\"]][] = $linha;\r\n\r\n\t\t\t}\r\n\r\n\r\n\t\t}\r\n\r\n\r\n\r\n\r\n\t\tforeach ($tipos as $key => $value) {\r\n\t\t\t$this->pdf->SetLineWidth(0.5);\r\n\t\t\t$this->pdf->ln();\r\n\t\t\t$this->pdf->Cell(190,5,utf8_decode($value), 1,1,'C',0);\r\n\t\t\t$this->pdf->ln(2);\r\n\r\n\t\t\t$this->pdf->Cell(10,5,\"ID\", 1,0,'C',0);\r\n\t\t\t$this->pdf->Cell(85,5,\"Titulo\", 1,0,'C',0);\r\n\t\t\t$this->pdf->Cell(25,5,\"Pago Dia\", 1,0,'C',0);\r\n\t\t\t$this->pdf->Cell(30,5,\"Valor\", 1,0,'C',0);\r\n\t\t\t$this->pdf->Cell(40,5,\"Pagamento\", 1,1,'C',0);\r\n\r\n\r\n\r\n\t\t\t$this->pdf->SetLineWidth(0.3);\r\n\t\t\t$total = 0;\r\n\t\t\tforeach ($despesas[$key] as $chv => $valor) {\r\n\r\n\t\t\t\t$this->totalDespesas[\"totais\"][\"pagamentos\"][$valor[\"pagamento\"]] += number_format($valor[\"valor\"],0,\"\",\"\");\r\n\r\n\t\t\t\t$total+=$valor[\"valor\"];\r\n\r\n\r\n\t\t\t\t$this->pdf->Cell(10,5,$valor[\"id\"], 1,0,'C',0);\r\n\t\t\t\t$this->pdf->Cell(85,5,\" \".substr(utf8_decode($valor[\"titulo\"]), 0,40) , 1,0,'L',0);\r\n\r\n\t\t\t\tif ($valor[\"vencimento\"]!=\"\") {\r\n\t\t\t\t\t$this->pdf->Cell(25,5,$valor[\"vencimento\"], 1,0,'C',0);\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$this->pdf->Cell(25,5,$valor[\"data\"], 1,0,'C',0);\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\t$this->pdf->Cell(30,5,\" R$ \".number_format($valor[\"valor\"],2,\",\",\".\"), 1,0,'L',0);\r\n\t\t\t\t$this->pdf->Cell(40,5,utf8_decode($TiposPagamentos[$valor[\"pagamento\"]]), 1,1,'C',0);\r\n\r\n\r\n\r\n\t\t\t}\r\n\r\n\t\t\t$this->pdf->ln(1);\r\n\t\t\t$this->pdf->Cell(160,5,\"Total: \", 1,0,'R',0);\r\n\t\t\t$this->pdf->Cell(30,5,\"R$ \".number_format($total,2,\",\",\".\"), 1,1,'C',0);\r\n\r\n\t\t\t$this->totalDespesas[\"Geral\"] += $total;\r\n\t\t\t$this->totalDespesas[\"totais\"][\"tipos\"][$key] = number_format($total,0,\"\",\"\");\r\n\r\n\t\t}\r\n\r\n\t\t$this->pdf->ln();\r\n\t\t$this->pdf->Cell(190,5,utf8_decode(\"Total de Despesas do Mês: R$ \").number_format($this->totalDespesas[\"Geral\"],2,\",\",\".\"), 1,1,'C',0);\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\tforeach ($tipos as $key => $value) {\r\n\t\t\t$titles[0][$key] = $value.\" (R$ \".number_format($this->totalDespesas[\"totais\"][\"tipos\"][$key],2,\",\",\".\").\")\";\r\n\t\t}\r\n\r\n\t\tforeach ($TiposPagamentos as $pg => $valor) {\r\n\t\t\t$titles[1][$pg] = $valor.\" (R$ \".number_format($this->totalDespesas[\"totais\"][\"pagamentos\"][$pg],2,\",\",\".\").\")\";\r\n\t\t}\r\n\r\n\t\tksort($this->totalDespesas[\"totais\"][\"tipos\"]);\r\n\t\tksort($this->totalDespesas[\"totais\"][\"pagamentos\"]);\r\n\r\n\r\n\t\t//// PARA DEBUG ////\r\n\t\t//print_r($titles[1]);\r\n\t\t//print_r($this->totalDespesas[\"totais\"]);\r\n\r\n\t\t/////////\r\n\r\n\r\n\t\t$graficoTipo = $this->grafs($tipos,$this->totalDespesas[\"totais\"][\"tipos\"],$titles[0],\"Gáfico de Despesas por Tipo\",array(730,350),\"888888\",false);\r\n\r\n\r\n\t\t$graficoPagamento = $this->grafs($TiposPagamentos,$this->totalDespesas[\"totais\"][\"pagamentos\"],$titles[1],\"Gáfico de Despesas por Forma de Pagamento\",array(730,350),\"888888\",false);\r\n\r\n\r\n\r\n\r\n\t\tif ($graf==true) {\r\n\t\t\t$this->pdf->AddPage();\r\n\r\n\r\n\t\t\t$this->pdf->Cell(190,5,utf8_decode(\"Gráficos\"), 1,1,'C',0);\r\n\r\n\r\n\t\t\t$this->pdf->Image($graficoTipo,null,null,null,null,\"PNG\");\r\n\r\n\t\t\t$this->pdf->ln();\r\n\r\n\t\t\t$this->pdf->Image($graficoPagamento,null,null,null,null,\"PNG\");\r\n\r\n\t\t}else{\r\n\r\n\t\t\treturn array($graficoTipo,$graficoPagamento);\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "title": "" }, { "docid": "d8cf6d0ed1e573671b8d53b070d17bec", "score": "0.5752823", "text": "function ver_checklist($id)\n {\n $res = $this->Modelo->getChecklist($id);\n $pdf = $res->checklist;\n $datos['data'] = $pdf;\n $this->load->view('pdf', $datos);\n }", "title": "" }, { "docid": "876342d18d40b3926497dfec64fbaedc", "score": "0.57489693", "text": "public function laporan_kebutuhan_rambu_detail($id){\n $id = IDCrypt::Decrypt($id);\n $pejabat_struktural =pejabat_struktural::where('jabatan','kasi reksa')->get();\n $lokasi_rambu =lokasi_rambu::findOrFail($id);\n \n // $lokasi_rambu = lokasi_rambu::where('rambu_id', $id)->get();\n \n $tgl= Carbon::now()->format('d-m-Y');\n\n $pdf =PDF::loadView('laporan.kebutuhan_rambu_detail_laporan', ['lokasi_rambu'=>$lokasi_rambu,'tgl'=>$tgl,'pejabat_struktural'=>$pejabat_struktural]);\n $pdf->setPaper('a4', 'potrait');\n return $pdf->download('kebutuhan rambu detail.pdf');\n // dd($lokasi_rambu);\n //return view('laporan.kebutuhan_rambu_detail_laporan',compact('tgl','lokasi_rambu'));\n }", "title": "" }, { "docid": "2d2fd8a8f3de6671a7fb6381b516389b", "score": "0.57472163", "text": "function getreserveReport($reservation_id){\n\t\nif (isset($_SESSION['user_id']) || isset($_SESSION['user_name'])) {\n\t\n\t\t$data['title'] = \"Property Mgt System\";\n\t\t$this->load->model('Member');\n\t\t$this->load->model('CompanyDetails');\n\t\t$this->load->model('OrderDetails');\n\t\t$this->load->model('ReserveDetails');\n\n\t\t$data['logo']=$this-> CompanyDetails-> getLogo();\n\t\t\n\t\t$data['main_details']=$this-> CompanyDetails->getMainBranchDetails();\t\t\n\t\t$data['user_data'] = $this-> Member-> getUserInfo($_SESSION['user_id']);\t\n \n\t\t$data['reservehowhistory']=$this-> ReserveDetails->reserveHowHistorys($reservation_id);\n\t\t\t \n $data['main'] = 'reservation_details_report';\n\t\tdate_default_timezone_set('Asia/Kolkata');\n $time= date(\"h:i:s A\");\n\t\t\n\t\tini_set('memory_limit','32M'); // boost the memory limit if it's low <img src=\"http://davidsimpson.me/wp-includes/images/smilies/icon_wink.gif\" alt=\";)\" class=\"wp-smiley firstChild\">\n\t\t$html = $this->load->view('report_temp', $data, true); // render the view into HTML\n\t\t\n\t\t$this->load->library('pdf');\n\t\t$pdf = $this->pdf->load();\n\t\t$pdf->SetWatermarkImage('http://localhost/new_monis_bakery/assets/images/logo.png', 1, array(150,68), array(29,110));\n\t\t$pdf->showWatermarkImage = true;\n\t\t$pdf->watermarkImageAlpha = 0.02;\n\t // $pdf->SetFooter($_SERVER['HTTP_HOST'].'|{PAGENO}|'.date(DATE_RFC822)); // Add a footer for good measure <img src=\"http://davidsimpson.me/wp-includes/images/smilies/icon_wink.gif\" alt=\";)\" class=\"wp-smiley lastChild\">\n\t \t\n\t\n\t\t$pdf->WriteHTML($html); // write the HTML into the PDF\n\t\n\t\t$pdf->SetHTMLFooter('\n\t\t<hr style=\"margin-bottom:-0.5mm\" color=\"#000000\"/><table width=\"100%\" style=\"vertical-align: bottom; font-family: serif; font-size: 6pt; color: #000000;font-weight: bold; font-style: italic;\"><tr>\n\t\t<td width=\"33%\"><span style=\" font-style: italic;\">copyright@2015 Property Mgt System & Restuarant.</span></td>\n\t\t<td width=\"33%\" align=\"center\" style=\"font-weight: bold; font-style: italic;\"></td>\n\t\t<td width=\"33%\" style=\"text-align: right; \">{DATE j-m-Y} / '.$time.'</td>\n\t\t</tr></table>\n\t\t');\n\t\t\n\t\t$pdf->Output('DESIGN ORDER DETAILS -'.$design_order_id, 'I'); // save to file because we can\n\t\n\t\t}else{\n\t\t\tredirect('pages/signin', 'location');\n\t\t\t\n\t\t}\n}", "title": "" }, { "docid": "ffa5199b80fd5f71f0d5519a2ebab637", "score": "0.5746984", "text": "public function show($id)\n {\n $empleados = Empleado::all();\n $empleado = Empleado::find($id);\n $ausencias = Ausencia::with(\"tipo\")->where('empleados_id',$id)->get();\n $ausencias = $ausencias->groupBy('tipo.nombre');\n $diasTomados = DiasTomados::where('empleados_id',$id)->get();\n // return $diasTomados;\n \n \n $totalVacaciones = 0;\n \n foreach ($diasTomados as $dia){\n $totalVacaciones = $totalVacaciones + $dia->cantidad_dias; \n }\n \n \n $semanas = round($totalVacaciones / 7);\n $numero = $semanas * 2;\n $dias_habiles = $totalVacaciones-$numero;\n \n \n \n $diasDisponibles = $empleado->diasDisponibles() - $dias_habiles;\n //return $diasDisponibles;\n \n $pdf = PDF::loadView('pdf.individual',['empleado'=>$empleado, 'ausencias'=>$ausencias,'empleados'=>$empleados,'diasTomados'=>$diasTomados,'diasDisponibles'=>$diasDisponibles,'diasHabiles'=>$dias_habiles]);\n \n // return response(['empleado'=>$empleado, 'ausencias'=>$ausencias,'empleados'=>$empleados,'diasTomados'=>$diasTomados]);\n \n return $pdf->stream('informe.pdf');\n \n //return view('pdf.individual', ['empleado'=>$empleado, 'ausencias'=>$ausencias,'empleados'=>$empleados,'diasTomados'=>$diasTomados]);\n \n \n }", "title": "" }, { "docid": "eb07ce59f06e34a4ad5437a8cdf69a19", "score": "0.5743604", "text": "public function exportListToPdfPrint(Request $request_data)\n {\n try\n {\n $id = $request_data['id'];\n\n # retrieve data\n $result = $this->getPackingList(Config::get('constants.EMPTY_FILTER_VALUE')\n , Config::get('constants.EMPTY_FILTER_VALUE'), $id);\n $resultdetails = $this->getPackingDetails($id);\n $total = DB::connection($this->mysql)->table('tbl_packing_list_details')\n ->select(DB::raw(\"SUM(qty) as total\"))\n ->where('packing_id', $id)\n ->groupBy('packing_id')\n ->get();\n\n\n if(count($total) > 0)\n {\n $total = $total[0]->total;\n }\n else\n {\n $total = 0;\n }\n\n $col_box = $this->createrows($resultdetails, 'box_no');\n $col_po = $this->createrows($resultdetails, 'po');\n $col_desc = $this->createrows($resultdetails, 'description');\n $col_qty = $this->createrows($resultdetails, 'qty');\n $col_gross = $this->createrows($resultdetails, 'gross_weight');\n $col_code = $this->createrows($resultdetails, 'item_code');\n /*\n $preparedBy= Config::get('constants.PLSYSTEM_PREPAREDBY');\n $checkedBy = Config::get('constants.PLSYSTEM_CHECKEDBY');\n $copy = Config::get('constants.PLSYSTEM_COPY');*/\n\n $common = new CommonController();\n //$copy = $common->getPackingListSettingsByName('checkedbysection');\n\n $copy = \"Traffic/Prod'n/OQC\";\n\n $marginT = $request_data['top'];\n $marginR = $request_data['right'];\n $marginB = $request_data['bottom'];\n $marginL = $request_data['left'];\n\n $control_no = (isset($result[0]->control_no)) ? $result[0]->control_no : \"\";\n $invoice_date = (isset($result[0]->invoice_date)) ? $result[0]->invoice_date : \"\";\n $remarks_time = (isset($result[0]->remarks_time)) ? $result[0]->remarks_time : \"\";\n $remarks_pickupdate = (isset($result[0]->remarks_pickupdate)) ? $result[0]->remarks_pickupdate : \"\";\n $remarks_s_no = (isset($result[0]->remarks_s_no)) ? $result[0]->remarks_s_no : \"\";\n $sold_to = (isset($result[0]->sold_to)) ? $result[0]->sold_to : \"\";\n $ship_to = (isset($result[0]->ship_to)) ? $result[0]->ship_to : \"\";\n $carrier_name = (isset($result[0]->carrier_name)) ? $result[0]->carrier_name : \"\";\n $port_loading = (isset($result[0]->port_loading)) ? $result[0]->port_loading : \"\";\n $date_ship = (isset($result[0]->date_ship)) ? $result[0]->date_ship : \"\";\n $port_destination_name = (isset($result[0]->port_destination_name)) ? $result[0]->port_destination_name : \"\";\n $from = (isset($result[0]->from)) ? $result[0]->from : \"\";\n $to = (isset($result[0]->to)) ? $result[0]->to : \"\";\n $freight = (isset($result[0]->freight)) ? $result[0]->freight : \"\";\n $description_of_goods_name = (isset($result[0]->description_of_goods_name)) ? $result[0]->description_of_goods_name : \"\";\n $case_marks = (isset($result[0]->case_marks)) ? $result[0]->case_marks : \"\";\n $note = (isset($result[0]->note)) ? $result[0]->note : \"\";\n $highlight = (isset($result[0]->highlight)) ? $result[0]->highlight : \"\";\n $preparedBy = (isset($result[0]->preparedby)) ? $result[0]->preparedby : \"\";\n $checkedBy = (isset($result[0]->checkedby)) ? $result[0]->checkedby : \"\";\n $grsweight = (isset($result[0]->grossweight_invoicing)) ? $result[0]->grossweight_invoicing : \"\";\n\n\n $data = [\n 'copy' => $copy,\n 'marginT' => $marginT,\n 'marginR' => $marginR,\n 'marginB' => $marginB,\n 'marginL' => $marginL,\n 'control_no' => $control_no,\n 'invoice_date' => $invoice_date,\n 'remarks_time' => $remarks_time,\n 'remarks_pickupdate' => $remarks_pickupdate,\n 'remarks_s_no' => $remarks_s_no,\n 'sold_to' => $sold_to,\n 'ship_to' => $ship_to,\n 'carrier_name' => $carrier_name,\n 'port_loading' => $port_loading,\n 'date_ship' => $date_ship,\n 'port_destination_name' => $port_destination_name,\n 'from' => $from,\n 'to' => $to,\n 'freight' => $freight,\n 'description_of_goods_name' => $description_of_goods_name,\n 'case_marks' => $case_marks,\n 'note' => $note,\n 'highlight' => $highlight,\n 'preparedBy' => $preparedBy,\n 'checkedBy' => $checkedBy,\n 'grsweight' => $grsweight,\n 'id' => $id,\n 'result' => $result,\n 'resultdetails' => $resultdetails,\n 'total' => $total,\n 'col_box' => $col_box,\n 'col_po' => $col_po,\n 'col_desc' => $col_desc,\n 'col_qty' => $col_qty,\n 'col_gross' => $col_gross,\n 'col_code' => $col_code,\n ];\n\n $pdf = PDF::loadView('pdf.packinglist', $data)\n ->setPaper('A4')\n ->setOrientation('portrait')\n ->setOption('margin-top', $marginT)\n ->setOption('margin-right', $marginR)\n ->setOption('margin-bottom', $marginB)\n ->setOption('margin-left', $marginL);\n return $pdf->inline('PakingList_'.$control_no.'.pdf');\n }\n catch (Exception $e)\n {\n Log::error($e->getMessage());\n }\n }", "title": "" }, { "docid": "e25f2ea6e98ac85ea0666d60699490b3", "score": "0.57418776", "text": "public function displayPDFEksperimenta() {\n if (!\\model\\DBKorisnik::isLoggedIn() || ($_SESSION['vrsta'] != 'K' && $_SESSION['vrsta'] != 'E')) {\n preusmjeri(\\route\\Route::get('d1')->generate());\n }\n \n if(get(\"id\") === false) {\n preusmjeri(\\route\\Route::get('d1')->generate());\n }\n \n $pdf = new \\model\\PDFModel();\n $eksperiment = new \\model\\DBZnanstveniEksperiment();\n $ae = new \\model\\DBAutorEksperimenta();\n $autor = new \\model\\DBAutor();\n $ostvaren = new \\model\\DBOstvaren();\n $alat = new \\model\\DBAlat();\n $koristi = new \\model\\DBKoristi();\n $platforma = new \\model\\DBPlatforma();\n $ide = new \\model\\DBIde();\n $uraden = new \\model\\DBUraden();\n $pripadaju = new \\model\\DBPripadaju();\n $param = new \\model\\DBParametar();\n $ostvario = new \\model\\DBOstvario();\n $rez = new \\model\\DBRezultat();\n \n try {\n $eksperiment->load(get(\"id\"));\n $pdf->setNaziv($eksperiment->naziv);\n $pdf->AliasNbPages();\n $pdf->AddPage();\n $pdf->SetFont('Times','',12);\n $pdf->Cell(0,10,'Name: '. $eksperiment->naziv,0,1);\n \n $poljeae = $ae->select()->where(array(\n \"idEksperimenta\" => $eksperiment->getPrimaryKey()\n ))->fetchAll();\n \n if(count($poljeae)) {\n foreach($poljeae as $v) {\n $autor->idAutora = null;\n $autor->load($v->idAutora);\n $pdf->Cell(0,10,'Author: '. $autor->ime . \" \" . $autor->prezime,0,1);\n }\n }\n \n $pdf->Cell(0,10,'Start: '. $eksperiment->vrijemePocetka,0,1);\n $pdf->Cell(0,10,'End: '. $eksperiment->vrijemeZavrsetka,0,1);\n \n // dohvat alata platformi i idea\n $polje = $ostvaren->select()->where(array(\n \"idEksperimenta\" => $eksperiment->getPrimaryKey()\n ))->fetchAll();\n \n if(count($polje)) {\n foreach ($polje as $v) {\n $alat->idAlata = null;\n $alat->load($v->idAlata);\n $pdf->Cell(0,10,'Tool: '. $alat->skraceniNaziv,0,1);\n }\n }\n \n $polje = $koristi->select()->where(array(\n \"idEksperimenta\" => $eksperiment->getPrimaryKey()\n ))->fetchAll();\n \n if(count($polje)) {\n foreach ($polje as $v) {\n $platforma->idPlatforme = null;\n $platforma->load($v->idPlatforme);\n $pdf->Cell(0,10,'Platform: '. $platforma->skraceniNaziv,0,1);\n }\n }\n \n $polje = $uraden->select()->where(array(\n \"idEksperimenta\" => $eksperiment->getPrimaryKey()\n ))->fetchAll();\n \n if(count($polje)) {\n foreach ($polje as $v) {\n $ide->idIDE = null;\n $ide->load($v->idIDE);\n $pdf->Cell(0,10,'IDE: '. $ide->skraceniNaziv,0,1);\n }\n }\n \n // sad parametri\n $polje = $pripadaju->select()->where(array(\n \"idEksperimenta\" => $eksperiment->getPrimaryKey()\n ))->fetchAll();\n \n if(count($polje)) {\n foreach($polje as $v) {\n $param->idParametra = null;\n $param->load($v->idParametra);\n $pdf->Cell(0,10,'Parameter: '. $param->naziv . ' ' . $param->ispitniPrimjer,0,1);\n }\n }\n \n // josh rezultati\n $polje = $ostvario->select()->where(array(\n \"idEksperimenta\" => $eksperiment->getPrimaryKey()\n ))->fetchAll();\n \n if(count($polje)) {\n foreach($polje as $v) {\n $rez->idRezultata = null;\n $rez->load($v->idRezultata);\n $pdf->Cell(0,10,'Result: '. $rez->naziv . ' ' . $rez->iznos . ' ' . $rez->mjernaJedinica,0,1);\n }\n }\n \n // sad samo pozovi pogled:\n echo new \\view\\PrikazPdfa(array(\n \"pdf\" => $pdf\n )); \n \n \n } catch (opp\\model\\NotFoundException $e) {\n preusmjeri(\\route\\Route::get('d2')->generate());\n }\n }", "title": "" }, { "docid": "6ef3903fef5b2733a990044c0684b57b", "score": "0.5734735", "text": "public function printAbsen($id)\n {\n $data = DB::table('agendas')\n ->where('id_agenda', $id)\n ->first();\n $data1 = DB::table('anaks as A')\n ->select('A.nama_anak', 'A.jenis_kelamin', 'I.nama_ibu', 'I.nama_suami', 'I.alamat', 'I.rt')\n ->leftjoin('users as I', 'A.id_ibu', '=', 'I.id')\n ->get();\n // dd($data1);\n $pdf = PDF::loadView('admin.agenda.form_absen', compact('data','data1'));\n $pdf->setPaper('A4', 'portrait');\n return $pdf->stream('Absensi.pdf', array(\"Attachment\" => false));\n }", "title": "" }, { "docid": "f99d97edb036003e2a1499784d9485da", "score": "0.5733696", "text": "public function pdf($id)\n {\n $shippings = DB::table('quotation_shippings')\n ->join('towns', 'quotation_shippings.ciudad', '=', 'towns.id')\n ->select(\n 'quotation_shippings.id',\n 'quotation_shippings.nombre',\n 'quotation_shippings.rut',\n 'quotation_shippings.telefono',\n 'towns.nombre as ciudad',\n 'quotation_shippings.direccion',\n 'quotation_shippings.sucursal'\n )->where('quotation_shippings.id', '=', $id )\n ->orderBy('quotation_shippings.id', 'DESC')->get();\n\n // $connector = new FilePrintConnector(\"php://stdout\");\n // $printer = new Printer($connector);\n // $printer->text(\"Hello World!\\n\");\n // $printer->cut();\n // $printer->close();\n\n $pdf = PDF::loadView('pdf.quotationshipping', compact(['shippings']) )->setPaper([ 0 , 0 , 226.772 , 141.732 ], 'landscape');\n\n\n return $pdf->stream('Envio_'.$id.'.pdf');\n\n ///return $pdf->download('cotizacion N° '.$id.'.pdf');\n }", "title": "" }, { "docid": "c275f1a086e0d7dcf7328452e3771dee", "score": "0.573355", "text": "function gerarPDF2($data, $w=null, $aligns=null, $filename = null, $titulo=\"Relatório\", $detalhes = null, $rodape=null,$orientation = \"L\", $fontSize = '', $bordas = true, $fontSizecontent = '',$anexos_array=array(),$imagens = array(),$logoAdministradora='',$saida=\"I\",$assinaturas_array=array()){\n\t\t//$pdf= new PDF(\"L\",\"pt\",\"A4\");\n\t\t$pdf = new Pdf_table($orientation, 'mm', 'A4');\n\n\t\tif($fontSize!=''){\n\t\t\t$pdf->SetFont('arial','',$fontSize);\n\t\t}\n\n\t\t$pdf->nomeRelatorio = utf8_decode($titulo);\t\n\t\t\n\t\tif($logoAdministradora!='')\t\n\t\t\t$pdf->logoAdministradora = $logoAdministradora;\n\t\t\n\t\tif(is_array($detalhes))\n\t\t\t$pdf->txtHeader = $detalhes;\n\t\t\n\t\tif($aligns)\n\t\t\t$pdf->SetAligns($aligns);\n\t\t\t\n\t\tif($rodape!='')\n\t\t\t$pdf->notaDeRodape = $rodape;\t\t\n\t\t\n\t\t$header = array_keys($data[0]);\n\t\t$header = array_values($header);\n\t\t$header = array_map(\"utf8_decode\",$header);\n\t\t\n\t\t\t\t\t\t\n\t\t$pdf->SetWidths($w);\n\t\t//cabeçalho das coluns\n\t\t$pdf->headerColunas = $header;\n\n\t\t$pdf->AliasNbPages();\n\t\t$pdf->AddPage();\t\t\n\t\t\n\t\t//$pdf->SetFont('arial','',10);\n\t\t//Tras o cabecalho\n\t\tforeach($data as $key => $row){\n\t\t\tif($key == 0){\n\t\t\t\t$cabecalho = array_keys($data[0]);\t\t\t\t\t\t\n\t\t\t\tforeach($cabecalho as $ke => $rows){\n\t\t\t\t\t\n\t\t\t\t\t//$pdf->Cell($w[$ke],20,utf8_decode($cabecalho[$ke]),0,0,\"C\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//$pdf->Ln();\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Verifico se o conteudo tera borda ou nao.\n\t\tif($bordas == true){\n\t\t\t$tipoBorda = 2;\n\t\t}else{\n\t\t\t$tipoBorda = 1;\n\t\t}\n\t\t\n\t\t//Verifica se foi passado valor para o tamanho do conteudo.\n\t\tif($fontSizecontent!=''){\n\t\t\t$pdf->SetFont('arial','',$fontSizecontent);\n\t\t}else{\n\t\t\t$pdf->SetFont('arial','',7);\n\t\t}\n\t\t//Tras o conteudo\n\t\tforeach($data as $key => $row){\n\t\t\t\n\t\t\t$row = array_values($row);\t\t\t\t\n\t\t\tforeach($cabecalho as $ke => $rows){\n\n\t\t\t\t//Verifico se a cor sera zebrada.\n\t\t\t\tif($key % 2 == 0){\n\t\t\t\t\t$statu = true;\n\t\t\t\t}else{\n\t\t\t\t\t$statu = false;\n\t\t\t\t}\t\t\t\t\n\n\t\t\t\t//Responsavel por colocar a palavra em negrito\n\t\t\t\tif(preg_match(\"/(<strong>)/\",$row[$ke])){\n\t\t\t\t\t$pdf->SetFont('arial','B');\n\t\t\t\t\t$row[$ke] = str_replace('<strong>','',$row[$ke]);\n\t\t\t\t\t$row[$ke] = str_replace('</strong>','',$row[$ke]);\n\t\t\t\t}else{\n\t\t\t\t\t$pdf->SetFont('arial','');\n\t\t\t\t}\n\n\t\t\t\t//Responsavel por colocar a palavra em vermelho.\n\t\t\t\tif(preg_match(\"/(<red>)/\",$row[$ke])){\n\t\t\t\t\t$pdf->SetTextColor(226,0,0);\n\t\t\t\t\t$row[$ke] = str_replace('<red>','',$row[$ke]);\n\t\t\t\t\t$row[$ke] = str_replace('</red>','',$row[$ke]);\n\t\t\t\t}else{\n\t\t\t\t\t$pdf->SetTextColor(0,0,0);\n\t\t\t\t}\n\n\t\t\t\t//Responsavel por colocar a cor de fundo cinza.\n\t\t\t\tif(preg_match(\"/(<b>)/\",$row[$ke])){\n\t\t\t\t\t$pdf->SetFillColor(220,220,220);\n\t\t\t\t\t$row[$ke] = str_replace('<b>','',$row[$ke]);\n\t\t\t\t\t$row[$ke] = str_replace('</b>','',$row[$ke]);\n\t\t\t\t\t$statu = true;\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t//Responsavel por colocar a cor de fundo azul.\n\t\t\t\t\t$pdf->SetFillColor(249,249,249);\n\t\t\t\t}\n\n\t\t\t\t//Responsavel por mostrar a linha do conteudo.\n\t\t\t\t$pdf->Cell($w[$ke],5,utf8_decode($row[$ke]),$tipoBorda,0,$aligns[$ke], $statu);\n\t\t\t}\n\t\t\t$pdf->Ln();\n\t\t}\n\t\t\n\t\tif($filename==null)\n\t\t\t$filename = \"relatorio\";\n\t\treturn $pdf->Output(\"$filename.pdf\",$saida);\n\t\t//return $pdf->Output();\n\t\t\n\t}", "title": "" }, { "docid": "c0558979329b1fbd3915e786537fc143", "score": "0.57316965", "text": "public function listarPDF(Request $request)\n {\n $now = Carbon::now();\n $horaInicio = Carbon::parse($request->datestart);\n $horaFin = Carbon::parse($request->dateend);\n $solicitudes = Solicitud::where('idProfesional', Auth::user()->idProfesional)->whereBetween('fecha', array( $horaInicio, $horaFin))->get();\n //$solicitudes = DB::table('solicitud')->where('idProfesional', Auth::user()->idProfesional)->whereBetween('horaInicio', array( $horaInicio, $horaFin))->get();\n set_time_limit(0);\n $pdf = PDF::loadView('solicitud.informe.solicitud', ['solicitudes' => $solicitudes ]);\n set_time_limit(0);\n return $pdf->download('Solicitudes-'.$request->datestart.'A'.$request->dateend.'.pdf');\n }", "title": "" }, { "docid": "5b8f0c1a5516f3e8699b99e8d0b89aa8", "score": "0.57246107", "text": "function listadosPagosRelacionados(){\n $this->procedimiento='tes.f_plan_pago_rep_sel';\n $this->transaccion='TES_REPPAGOS_SEL';\n $this->tipo_procedimiento='SEL';//tipo de transaccion\n\n\n $this->setParametro('id_proveedors','id_proveedors','VARCHAR');\n $this->setParametro('id_orden_trabajos','id_orden_trabajos','VARCHAR');\n $this->setParametro('id_concepto_ingas','id_concepto_ingas','VARCHAR');\n $this->setParametro('desde','desde','date');\n $this->setParametro('hasta','hasta','date');\n $this->setParametro('tipo_pago','tipo_pago','VARCHAR');\n $this->setParametro('estado','estado','VARCHAR');\n $this->setParametro('fuera_estado','fuera_estado','VARCHAR');\n\n $this->capturaCount('monto_mb','numeric');\n\n\n $this->captura('id_plan_pago', 'INTEGER');\n $this->captura('desc_proveedor', 'VARCHAR');\n $this->captura('num_tramite', 'VARCHAR');\n $this->captura('estado', 'VARCHAR');\n $this->captura('fecha_tentativa', 'DATE');\n $this->captura('nro_cuota', 'NUMERIC');\n $this->captura('monto ','NUMERIC');\n $this->captura('monto_mb ','NUMERIC');\n $this->captura('codigo', 'VARCHAR');\n $this->captura('conceptos', 'TEXT');\n $this->captura('ordenes', 'TEXT');\n $this->captura('id_proceso_wf', 'INTEGER');\n $this->captura('id_estado_wf', 'INTEGER');\n $this->captura('id_proveedor', 'INTEGER');\n $this->captura('obs', 'VARCHAR');\n $this->captura('tipo', 'VARCHAR');\n $this->captura('cbte_relacionado', 'VARCHAR');\n\n\n\n\n\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "title": "" }, { "docid": "fa9d09c852940a71fef23a9da923f2d2", "score": "0.5723818", "text": "public function RptListar()\r\n {\r\n $sql=\"SELECT \r\n pv.idproveedor,\r\n pv.idtipoproveedor,\r\n pv.idoperacion,\r\n pv.idcondpago,\r\n pv.idzona,\r\n pv.idimpuestoi,\r\n pv.cod_proveedor,\r\n pv.desc_proveedor,\r\n pv.rif,\r\n pv.direccion,\r\n pv.ciudad,\r\n pv.codpostal,\r\n pv.contacto,\r\n pv.telefono,\r\n pv.movil,\r\n pv.email,\r\n pv.web,\r\n pv.limite,\r\n pv.montofiscal,\r\n DATE_FORMAT(pv.fechareg, '%d/%m/%Y') AS fechareg,\r\n pv.aplicareten,\r\n pv.estatus,\r\n tc.cod_tipoproveedor,\r\n tc.desc_tipoproveedor,\r\n t.cod_operacion,\r\n t.desc_operacion,\r\n cp.cod_condpago,\r\n cp.desc_condpago,\r\n cp.dias,\r\n z.cod_zona,\r\n z.desc_zona,\r\n IFNULL((SELECT SUM(saldoh) FROM tbcompra WHERE idproveedor = pv.idproveedor AND tipo <> 'Cotizacion' AND estatus <> 'Anulado'),0) AS saldo \r\n FROM\r\n tbproveedor AS pv \r\n INNER JOIN tbtipoproveedor AS tc ON (pv.idtipoproveedor = tc.idtipoproveedor) \r\n INNER JOIN tboperacion AS t ON (pv.idoperacion = t.idoperacion) \r\n INNER JOIN tbcondpago AS cp ON (pv.idcondpago = cp.idcondpago) \r\n INNER JOIN tbzona AS z ON (pv.idzona = z.idzona) \r\n INNER JOIN tbimpuestoi AS i ON (i.idimpuestoi = pv.idimpuestoi)\r\n ORDER BY pv.cod_proveedor ASC\";\r\n return ejecutarConsulta($sql);\r\n }", "title": "" }, { "docid": "88599f2ee3972d4d30d32cb495062961", "score": "0.5716537", "text": "protected function RelatorioVendas($date) {\r\n\r\n\r\n\t\t$querys = \"SELECT id FROM funcionarios WHERE funcao=1\";\r\n\r\n\t\t$sql = $this->model->query($querys);\r\n\r\n\r\n\t\twhile ($linha = mysql_fetch_assoc($sql)) {\r\n\t\t\t$query = \"SELECT * FROM vendas WHERE vendedor=\".$linha[\"id\"];\r\n\r\n\t\t\t$valores_db = $this->model->query($query);\r\n\r\n\r\n\t\t\t$vendedor = $this->pegaDados(\"funcionarios\",$linha[\"id\"]);\r\n\r\n\r\n\t\t\t$this->pdf->Ln(0);\r\n\t\t\t$this->pdf->SetFont('Arial',null,15);\r\n\t\t\t$this->pdf->Cell(75,8,$vendedor['nome'], 0,0,'L',0);\r\n\t\t\t$this->pdf->Ln(8);\r\n\t\t\t$this->pdf->SetFont('Arial',null,8);\r\n\r\n\r\n\t\t\t$this->pdf->Cell(18,5,'Data', 1,0,'C',0);\r\n\t\t\t$this->pdf->Cell(18,5,'Dinheiro', 1,0,'C',0);\r\n\t\t\t$this->pdf->Cell(18,5,'Deposito', 1,0,'C',0);\r\n\t\t\t$this->pdf->Cell(18,5,'Boleto', 1,0,'C',0);\r\n\t\t\t$this->pdf->Cell(18,5,'Cheque', 1,0,'C',0);\r\n\t\t\t$this->pdf->Cell(18,5,'Combustivel', 1,0,'C',0);\r\n\t\t\t$this->pdf->Cell(15,5,'Hotel', 1,0,'C',0);\r\n\t\t\t$this->pdf->Cell(15,5,'Mecanico', 1,0,'C',0);\r\n\t\t\t$this->pdf->Cell(15,5,'Outros', 1,0,'C',0);\r\n\t\t\t$this->pdf->Cell(25,5,'Total', 1,0,'C',0);\r\n\t\t\t$this->pdf->Ln(0);\r\n\t\t\t$this->pdf->SetLineWidth(0.4);\r\n\r\n\t\t\twhile ($venda = mysql_fetch_assoc($valores_db)) {\r\n\t\t\t\t$data = explode(\"-\", $venda[\"data\"]);\r\n\r\n\t\t\t\tif ($data[1]==$date[0] && $data[2]==$date[1]) {\r\n\r\n\t\t\t\t\t$this->pdf->Ln(5);\r\n\r\n\t\t\t\t\t$this->pdf->Cell(18,5,$venda['data'], 1,0,'C',0);\r\n\t\t\t\t\t$this->pdf->Cell(18,5,'R$ '.number_format($venda[\"dinheiro\"],2,\",\",\".\"), 1,0,'L',0);\r\n\t\t\t\t\t$this->pdf->Cell(18,5,'R$ '.number_format($venda[\"deposito\"],2,\",\",\".\"), 1,0,'L',0);\r\n\t\t\t\t\t$this->pdf->Cell(18,5,'R$ '.number_format($venda[\"boleto\"],2,\",\",\".\"), 1,0,'L',0);\r\n\t\t\t\t\t$this->pdf->Cell(18,5,'R$ '.number_format($venda[\"cheque\"],2,\",\",\".\"), 1,0,'L',0);\r\n\t\t\t\t\t$this->pdf->Cell(18,5,'R$ '.number_format($venda[\"combustivel\"],2,\",\",\".\"), 1,0,'L',0);\r\n\t\t\t\t\t$this->pdf->Cell(15,5,'R$ '.number_format($venda[\"hotel\"],2,\",\",\".\"), 1,0,'L',0);\r\n\t\t\t\t\t$this->pdf->Cell(15,5,'R$ '.number_format($venda[\"mecanico\"],2,\",\",\".\"), 1,0,'L',0);\r\n\t\t\t\t\t$this->pdf->Cell(15,5,'R$ '.number_format($venda[\"outros\"],2,\",\",\".\"), 1,0,'L',0);\r\n\t\t\t\t\t$this->pdf->Cell(25,5,'R$ '.number_format($venda[\"total\"],2,\",\",\".\"), 1,0,'L',0);\r\n\t\t\t\t\t$this->pdf->Ln(0);\r\n\t\t\t\t\t$total+=$venda[\"total\"];\r\n\r\n\t\t\t\t\t$geral[\"dinheiro\"]+=$venda[\"dinheiro\"];\r\n\t\t\t\t\t$geral[\"deposito\"]+=$venda[\"deposito\"];\r\n\t\t\t\t\t$geral[\"boleto\"]+=$venda[\"boleto\"];\r\n\t\t\t\t\t$geral[\"cheque\"]+=$venda[\"cheque\"];\r\n\t\t\t\t\t$geral[\"combustivel\"]+=$venda[\"combustivel\"];\r\n\t\t\t\t\t$geral[\"hotel\"]+=$venda[\"hotel\"];\r\n\t\t\t\t\t$geral[\"mecanico\"]+=$venda[\"mecanico\"];\r\n\t\t\t\t\t$geral[\"outros\"]+=$venda[\"outros\"];\r\n\t\t\t\t\t$geral[\"total\"]+=$venda[\"total\"];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$this->pdf->Ln(5);\r\n\t\t\t$this->pdf->Cell(153,5,'Total:', 1,0,'R',0);\r\n\t\t\t$this->pdf->Cell(25,5,'R$ '.number_format($total,2,\",\",\".\"), 1,0,'L',0);\r\n\t\t\tunset($total);\r\n\t\t\t$this->pdf->Ln(5);\r\n\t\t}\r\n\r\n\t\t$this->pdf->SetFont('Arial',\"B\",7);\r\n\t\t$this->pdf->Ln(5);\r\n\t\t$this->pdf->Cell(18,5,\"Totais Gerais\", 1,0,'C',0);\r\n\t\t$this->pdf->Cell(18,5,'R$ '.number_format($geral[\"dinheiro\"],2,\",\",\".\"), 1,0,'L',0);\r\n\t\t$this->pdf->Cell(18,5,'R$ '.number_format($geral[\"deposito\"],2,\",\",\".\"), 1,0,'L',0);\r\n\t\t$this->pdf->Cell(18,5,'R$ '.number_format($geral[\"boleto\"],2,\",\",\".\"), 1,0,'L',0);\r\n\t\t$this->pdf->Cell(18,5,'R$ '.number_format($geral[\"cheque\"],2,\",\",\".\"), 1,0,'L',0);\r\n\t\t$this->pdf->Cell(18,5,'R$ '.number_format($geral[\"combustivel\"],2,\",\",\".\"), 1,0,'L',0);\r\n\t\t$this->pdf->Cell(15,5,'R$ '.number_format($geral[\"hotel\"],2,\",\",\".\"), 1,0,'L',0);\r\n\t\t$this->pdf->Cell(15,5,'R$ '.number_format($geral[\"mecanico\"],2,\",\",\".\"), 1,0,'L',0);\r\n\t\t$this->pdf->Cell(15,5,'R$ '.number_format($geral[\"outros\"],2,\",\",\".\"), 1,0,'L',0);\r\n\t\t$this->pdf->Cell(25,5,'R$ '.number_format($geral[\"total\"],2,\",\",\".\"), 1,0,'L',0);\r\n\t\t$this->pdf->Ln(0);\r\n\r\n\r\n\t}", "title": "" }, { "docid": "322034652edaea157d1bb16d78364428", "score": "0.5712023", "text": "function listReporte(){\n global $db;\n $sql = \"SELECT * FROM contribuyente INNER JOIN tipocontribuyente ON contribuyente.idTipoCont = tipocontribuyente.idTipoCont;\";\n $data = '\n <table class=\"table table-sm table-dark table-striped table-bordered\">\n <caption>Lista de contribuyentes</caption>\n <thead>\n <tr class=\"\">\n <th scope=\"col\">DNI</th>\n <th scope=\"col\">Nombre</th>\n <th scope=\"col\">Apellido</th>\n <th scope=\"col\">Razón social</th>\n <th scope=\"col\">Fecha nacimiento</th>\n <th scope=\"col\">Dirección</th>\n <th scope=\"col\">Tipo</th>\n <th scope=\"col\">Ver reporte de pagos</th>\n </tr>\n </thead>\n <tbody>\n ';\n $result = $db->query($sql);\n foreach($db->while_loop($result) as $valor){\n $data .= '\n <tr>\n <td>'.$valor['DNI'].'</td>\n <td>'.$valor['nombCont'].'</td>\n <td>'.$valor['apelCont'].'</td>\n <td>'.$valor['RazoSociCont'].'</td>\n <td>'.$valor['fechNaciCont'].'</td>\n <td>'.$valor['dir_cont'].'</td>\n <td>'.$valor['tipoCont'].'</td>\n <td>\n <a href=\"reporte.php?persona='.$valor['idCont'].'\" class=\"btn btn-success\">Ver reporte</a>\n </td>\n </tr>\n ';\n }\n $data .= '\n </tbody>\n </table>\n ';\n return $data;\n }", "title": "" }, { "docid": "ac2ca55cf86f67381c9fed3bb4100f01", "score": "0.57091856", "text": "public function printvoucherdelivery($id)\n {\n\n $empresa = Empresa::first();\n $empresa->inicioactividades = FechaHelper::getFechaImpresion($empresa->inicioactividades);\n\n $delivery = Delivery::find($id);\n\n $delivery->status = 'PRINTED';\n $delivery->save();\n\n $delivery->deliverDate = FechaHelper::getFechaImpresion($delivery->deliverDate);\n /*highlight_string(var_export($delivery->reception->client, true));\n exit();*/\n\n\n\n $pdf = PDF::loadView('admin.deliveries.printvoucher', compact('delivery', 'empresa'));\n\n\n return $pdf->stream('reporte.pdf');\n\n //return $pdf->download('informe.pdf');\n\n //return $id;\n }", "title": "" }, { "docid": "b3e4dcf4d9a70764d60c6a63cc00eb45", "score": "0.5708346", "text": "function reporteGeneral_PDF($fechaDesde,$fechaHasta,$tipoNivel){\n\t\t \n\t\t $cajaTramites = new CajaTramites();\n\t\t\t \n\t\t\t //Obtiene fecha de impresion\n\t\t\t list($anioImp,$mesImp,$diaImp)= split(\"/\", date('Y/m/d'));\n\t\t\t $nombreMesImp = CajaTramites::nombre_mes($mesImp);\n\t\t\t \n\t\t\t //Obtiene fecha de inicio (Desde) de reporte\n\t\t\t list($anioDesde,$mesDesde,$diaDesde)= split(\"/\", $fechaDesde);\n\t\t\t $nombreMesD = CajaTramites::nombre_mes($mesDesde);\n\t\t\t \n\t\t\t //Obtiene fecha final (Hasta) del reporte\n\t\t\t list($anioHasta,$mesHasta,$diaHasta)= split(\"/\", $fechaHasta);\n\t\t\t $nombreMesH = CajaTramites::nombre_mes($mesHasta);\n\t\t\t \n\t\t\t $pdf = new FPDF();\n\t\t\t $pdf -> Open();\n\t\t\t $pdf -> AddFont('Verdana','','verdana.php');\n\t\t\t $pdf -> AddPage();\n\t\t\t $pdf -> Image('public/img/CETI_n.jpg', 5,5,40,40);\n\t\t\t \n\t\t\t $pdf->SetX(18);\n\t\t\t $pdf->SetFont('Arial', 'B', 14);\n\t\t\t $pdf->MultiCell(0, 3, \"CENTRO DE ENSEÑANZA TÉCNICA INDUSTRIAL\", 0, 'C', 0);\n\t\t\t $pdf->Ln();\n\t\t\t $pdf->SetX(18);\n\t\t\t $pdf->SetFont('Arial', '', 10);\n\t\t\t $pdf->MultiCell(0, 3, \"MODULO DE CAJA PLANTEL COLOMOS\", 0, 'C', 0);\n\t\t\t \n\t\t\t $pdf->Ln();\n\t\t\t $pdf->Ln();\n\t\t\t $pdf->SetX(38);\n\t\t\t $pdf->SetFont('Arial', 'B', 10);\n\t\t\t $pdf->Cell(80, 3, \"CORTE GENERAL\", 0, 'C', 0);\n\t\t\t $pdf->SetX(138);\n\t\t\t $pdf->SetFont('Arial', '', 8);\n\t\t\t $pdf->MultiCell(0, 3, \"Fecha de Impresión : \".$diaImp.\" / \".$nombreMesImp.\" / \".$anioImp, 0, 'C', 0);\n\t\t\t \n\t\t\t $pdf->Ln();\n\t\t\t $pdf->Ln();\n\t\t\t $pdf->SetX(50);\n\t\t\t $pdf->SetFont('Arial', 'B', 9);\n\t\t\t $pdf->MultiCell(144, 8, \"CORTE DE CAJA DEL \".$diaDesde.\" / \".$nombreMesD.\" / \".$anioDesde.\" AL \".$diaHasta.\" / \".$nombreMesH.\" / \".$anioHasta, 1, 'L', 0);\n\t\t\t \n\t\t\t $pdf->Ln();\n\t\t\t $pdf->Ln();\n\t\t\t $pdf->SetDrawColor(60);\n\t\t\t $pdf->SetFillColor(100);\n\t\t\t $pdf->SetTextColor(250);\n\t\t\t $pdf->SetFont(\"Arial\",\"B\",8);\n\t\t\t $pdf->GetStringWidth(100);\n\t\t\t $pdf->SetX(8);\n\n\t\t\t //Titulos de la tabla\n\t\t\t $pdf->Cell(24,8,\"No. CONCEPTO\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(61,8,\"NOMBRE CONCEPTO\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(23,8,\"PERIODO\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(23,8,\"NIVEL\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(22,8,\"CANTIDAD\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(22,8,\"COSTO\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(22,8,\"TOTAL\",1,0,\"C\",1);\n \n\t\t\t //Obtiene los registros\n\t\t\t $result = CajaTramites::reporte_general_caja($fechaDesde,$fechaHasta,$tipoNivel);\n\t\t\t $y = 66; \n\t\t\t \n\t\t\t //Se inician variables que se utilizan\n\t\t\t $numPage = 1;\n\t\t\t $i = 0;\n\t\t\t $montoTotal = 0;\n\t\t\t \n\t\t\t //Se colocan los datos\n\t\t\t foreach($result AS $value)\n\t\t\t {\n\t\t\t $i++;\n\t\t\t\t\n\t\t\t\tif($i%2 == 0)\n\t\t\t\t $Fila = 0;\n\n\t\t\t\telse\n\t\t\t\t $Fila = 1;\n\t\t\t\t\n\t\t\t\t//Obtiene el nobre del periodo\n\t\t\t\t$Periodos = new Periodos();\n\t\t\t\t$nombrePeriodo = Periodos::nombre_periodo($value -> periodo);\n\t\t\t\t\n\t\t //Obtiene la cantidad por concepto solicitado\n\t $cajaTramites = new CajaTramites();\n\t\t $countConcepto = CajaTramites::count_reporte_general($fechaDesde, $fechaHasta, $value -> conceptoRef, $value -> nivel);\n \n\t\t\t\t//Suma los costos para obtener el monto total\n\t\t $total = $countConcepto * $value -> costo;\n\t\t \n\t\t\t\t//Se realiza la suma del monto total\n\t\t\t\t$montoTotal = $montoTotal + $total;\n\t\t\t\t\n\t\t\t //Validacion de caracteres de los conceptos\n\t\t\t\tif(strlen($value -> conceptoRef) == 1)\n\t\t\t\t $concepto = \"000\".$value -> conceptoRef;\n\n\t\t\t\telse if(strlen($value -> conceptoRef) == 2)\t\n\t\t\t\t $concepto = \"00\".$value -> conceptoRef;\t \n\t\t\t\t\t\n\t\t\t\telse if(strlen($value -> conceptoRef) == 3)\t\n\t\t\t\t $concepto = \"0\".$value -> conceptoRef;\t \n\n\t\t\t\telse\n\t\t\t\t $concepto = $value -> conceptoRef;\t \n\t\t\t\t//Termina validacion conceptos\n\t\t\t\t\n\t\t\t\t//Se valida el nombre del nivel\n\t\t\t\tif($value -> nivel == 1)\n\t\t\t\t $nivel = \"TECNÓLOGO\";\n\t\t\t\t \n\t\t\t\telse\n\t\t\t\t $nivel = \"INGENIERÍA\";\n\t\t\t\t \n\t\t\t\t//Termina validacion del nivel\n\t\t\t\t$pdf->SetDrawColor(0);\n\t\t\t\t$pdf->SetFillColor(230);\n\t\t\t\t$pdf->SetTextColor(1);\n\t\t\t\t$pdf->SetXY(8,$y);\n\t\t\t\t$pdf->SetFont(\"Arial\",\"\",6);\n\t\t\t\t$pdf->Cell(24,5,$concepto,1,0,\"C\",$Fila); \n\t\t\t\t$pdf->Cell(61,5,$value -> nombre,1,0,\"C\",$Fila);\n\t\t\t\t$pdf->Cell(23,5,$nombrePeriodo,1,0,\"C\",$Fila);\n\t\t\t\t$pdf->Cell(23,5,$nivel,1,0,\"C\",$Fila);\n\t\t\t\t$pdf->Cell(22,5,$countConcepto,1,0,\"C\",$Fila);\n\t\t\t\t$pdf->Cell(22,5,\"$ \".number_format($value -> costo,2),1,0,\"C\",$Fila);\n\t\t\t\t$pdf->Cell(22,5,\"$ \".number_format($total,2),1,0,\"C\",$Fila);\n\t\t\t\t\n\n\t\t\t\tif($numPage > 1)\n\t\t\t\t $NoLineas = 51;\n\t\t\t\t \n\t\t\t\telse\n\t\t\t\t $NoLineas = 40;\n\t\t\t\t \n\t\t\t\tif($i == $NoLineas){\n\t\t\t\t $y = 10; \n\t\t\t\t $numPage++;\n\t\t\t\t $i = 0;\n\t\t\t\t \n\t\t\t\t $pdf -> AddPage();\n\t\t\t\t $pdf->SetDrawColor(60);\n\t\t\t\t $pdf->SetFillColor(100);\n\t\t\t\t $pdf->SetTextColor(250);\n\t\t\t\t $pdf->SetFont(\"Arial\",\"B\",8);\n\t\t\t\t $pdf->GetStringWidth(100);\n\t\t\t\t $pdf->SetXY(8,8);\n\t\t\t\t //Titulos de la tabla\n\t\t\t\t $pdf->Cell(24,8,\"No. CONCEPTO\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(61,8,\"NOMBRE CONCEPTO\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(23,8,\"PERIODO\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(23,8,\"NIVEL\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(22,8,\"CANTIDAD\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(22,8,\"COSTO\",1,0,\"C\",1);\n\t\t\t\t $pdf->Cell(22,8,\"TOTAL\",1,0,\"C\",1);\n\t\t\t\t \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$y +=5; \n\t\t\t\t\n\t\t\t\t//Numeracion pagina\n\t\t\t\t$pdf->SetXY(188,268);\n\t\t\t\t$pdf->SetTextColor(1);\n\t\t\t\t$pdf->SetFont(\"Arial\",\"\",9);\n\t\t\t\t$pdf->Cell(25,8,$numPage,0,0,\"C\",0);\n\t\t\t }\n\t\t\n\t\t\t $pdf->SetDrawColor(60);\n\t\t\t $pdf->SetFillColor(100);\n\t\t\t $pdf->SetTextColor(250);\n\t\t\t $pdf->SetFont(\"Arial\",\"B\",8);\n\t\t\t $pdf->GetStringWidth(100);\n\t\t\t $pdf->SetXY(139,$y);\n\t\t\t //Titulos de la tabla\n\t\t\t $pdf->Cell(44,8,\"TOTAL\",1,0,\"C\",1);\n\t\t\t $pdf->Cell(22,8,\"$ \".number_format($montoTotal,2),1,0,\"C\",1);\n\t\t\t \n\t\t\t $pdf -> Output(\"public/files/pdfs/reporte_caja/Reporte_General.pdf\",\"F\");\n\t\t}", "title": "" }, { "docid": "ecb57b0232596583cc94bd82c4df1e1e", "score": "0.5706825", "text": "public function printPDF($id_venta){\n\n //Obtenemos los datos de la venta (cliente y coches)\n $detalles_vehiculos = $this->getCustomerSaleCars($id_venta)[0];\n $detalles_venta = $this->getCustomerSaleCars($id_venta)[1];\n\n //Creamos un elemento PDF y le pasamos lo datos y la vista\n $pdf = PDF::loadView('pdf_template/pdf_view', compact('detalles_vehiculos','detalles_venta'));\n //Descargamos la factura automaticamente\n return $pdf->download('factura-serviauto-#'.$id_venta.'.pdf');\n }", "title": "" }, { "docid": "74d00ca711b9cce11f32a1aead93a688", "score": "0.5696482", "text": "public function createPDF() {\n $data = DB::table('cooperative_membres')\n ->join('cooperatives', 'cooperatives.id','cooperative_membres.id_cooperative')\n ->join('membres', 'membres.id', 'cooperative_membres.id_membre') \n ->select(DB::raw('cooperative_membres.montant,cooperative_membres.etat_membre,\n cooperative_membres.categorie_membre,cooperative_membres.date_adesion,\n cooperatives.nom as nomc,membres.nom as nom'))\n ->get();\n\n // share data to view\n view()->share('cooperative_membre',$data);\n $pdf = PDF::loadView('cooperative_membres/pdf_view', $data);\n\n // download PDF file with download method\n return $pdf->download('pdf_file_assosier.pdf');\n }", "title": "" }, { "docid": "01ee37771c38808f8310d61ff76f07ed", "score": "0.56962013", "text": "function generate_civilian_slip($refid) {\n\n //Get Employee data\n $data = $this->db->get_data_($this->table, array(\"reference_id\" => $refid, \"account_no\" => $refid, \"phone_no\" => $refid));\n //Location\n $loc = $data['location'];\n //Date Captured\n $date = $data['created'];\n //GET EMPLOYEE SERVICE\n $service = $this->db->get_data('service', array('code' => $data['service']));\n\n // create new PDF document\n $pdf = new MYPDF($service['title'], $service['name'], $loc, $date, PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\n\n// set header and footer fonts\n $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));\n $pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));\n\n// set default monospaced font\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n\n// set margins\n $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\n $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\n $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\n\n// set auto page breaks\n $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n\n// set image scale factor\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n\n// set some language-dependent strings (optional)\n if (@file_exists(dirname(__FILE__) . '/lang/eng.php')) {\n require_once(dirname(__FILE__) . '/lang/eng.php');\n $pdf->setLanguageArray($l);\n }\n\n// ---------------------------------------------------------\n// set fonthelvetica\n $pdf->SetFont('helvetica', '', 10);\n\n// define barcode style\n $style = array(\n 'position' => '',\n 'align' => 'C',\n 'stretch' => false,\n 'fitwidth' => true,\n 'cellfitalign' => '',\n 'border' => true,\n 'hpadding' => 'auto',\n 'vpadding' => 'auto',\n 'fgcolor' => array(0, 0, 0),\n 'bgcolor' => false, //array(255,255,255),\n 'text' => true,\n 'font' => 'helvetica',\n 'fontsize' => 8,\n 'stretchtext' => 4\n );\n// $pdf->SetXY(15, 70);\n $pdf->AddPage();\n\n $pdf->Ln(35);\n $pdf->write1DBarcode($data['reference_id'], 'C128', '', '', '', 18, 0.3, $style, 'N');\n $pdf->Ln(5);\n\n $pdf->SetFont('times', 'B', 16);\n $pdf->Cell(0, 0, 'PERSONAL DATA', 'TB', 1, 'C');\n $pdf->Ln(5);\n $pdf->SetFont('times', 'B', 11);\n if ($data['service'] === 'POLY' || $data['service'] === 'UNI') {\n $pdf->Cell(50, 0, \"STAFF CATEGORY\", 0, 0, 'L');\n }\n $pdf->Cell(50, 0, \"TITLE\", 0, 1, 'L');\n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(50, 0, $data['title'], 0, 1, 0, 0, '', '', true);\n if ($data['service'] === 'POLY' || $data['service'] === 'UNI') {\n $pdf->MultiCell(50, 0, $data['staff_category'], 0, 1, 0, 0, '', '', true);\n }\n $pdf->Ln();\n $pdf->SetFont('times', 'B', 11);\n $pdf->Image($data[\"img\"], '160', '95', '40', '35');\n $pdf->Cell(50, 0, \"SURNAME\", 0, 0, 'L');\n $pdf->Cell(50, 0, \"FIRST NAME\", 0, 0, 'L'); //: : \n $pdf->Cell(50, 0, \"LAST NAME\", 0, 1, 'L');\n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(50, 0, $data['surname'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['first_name'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['other_name'], 0, 1, 0, 0, '', '', true);\n $pdf->Ln();\n $pdf->SetFont('times', 'B', 11);\n $pdf->Cell(50, 0, \"GENDER\", 0, 0, 'L');\n $pdf->Cell(50, 0, \"DATE OF BIRTH\", 0, 0, 'L'); //: : \n $pdf->Cell(50, 0, \"MARITAL STATUS\", 0, 1, 'L');\n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(50, 0, $data['sex'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['date_of_birth'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['marital_status'], 0, 1, 0, 0, '', '', true);\n $pdf->Ln();\n $pdf->SetFont('times', 'B', 11);\n $pdf->Cell(50, 0, \" STATE OF ORIGIN\", 0, 0, 'L');\n $pdf->Cell(50, 0, \"LOCAL GOVT AREA\", 0, 0, 'L'); //: : \n $pdf->Cell(50, 0, \"STATE OF RESIDENCE\", 0, 1, 'L');\n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(50, 0, $data['state_of_origin'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['local_govt_area'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(50, 0, $data['state_of_resident'], 0, 1, 0, 0, '', '', true);\n $pdf->Ln();\n $pdf->SetFont('times', 'B', 11);\n $pdf->Cell(50, 0, \"L.G.A OF RESIDENCE\", 0, 0, 'L');\n $pdf->Cell(50, 0, \"PHONE NUMBER\", 0, 0, 'L'); //: : \n $pdf->Cell(50, 0, \"E-MAIL ADDRESS\", 0, 1, 'L');\n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(50, 0, $data['resident_lga'], 0, 1, 0, 0, '', '', true);\n $pdf->Cell(50, 0, $data['phone_no'], 0, 0, 'L');\n $pdf->MultiCell(50, 0, strtolower($data['email_address']), 0, 1, 0, 0, '', '', true);\n $pdf->Ln();\n\n $pdf->SetFont('times', 'B', 11);\n $pdf->Cell(80, 0, \"PERMANENT ADDRESS\", 0, 0, 'L'); //: : \n $pdf->Cell(70, 0, \" RESIDENTIAL ADDRESS\", 0, 1, 'L');\n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(80, 0, $data['permanent_address'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(70, 0, $data['residential_address'], 0, 1, 0, 0, '', '', true);\n $pdf->Ln();\n\n $pdf->SetFont('times', 'B', 16);\n $pdf->Cell(0, 0, 'SERVICE RECORD', 'TB', 1, 'C');\n $pdf->Ln(2);\n\n $pdf->SetFont('times', 'B', 11);\n $pdf->Cell(55, 0, \"1ST APPOINTMENT DATE\", 0, 0, 'L');\n $pdf->Cell(55, 0, \"LAST PROMOTION DATE\", 0, 0, 'L');\n $pdf->Cell(40, 0, \"SALARY STRUCTURE\", 0, 1, 'L');\n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(55, 0, $data['date_of_commission'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(55, 0, $data['last_promotion_date'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(40, 0, $data['salary_structure'], 0, 1, 0, 0, '', '', true);\n\n $pdf->Ln(); //\n\n $pdf->SetFont('times', 'B', 11);\n $pdf->Cell(35, 0, \"GRADE LEVEL\", 0, 0, 'L');\n $pdf->Cell(25, 0, \"STEP\", 0, 0, 'L');\n $pdf->Cell(30, 0, \"STAFF NO\", 0, 0, 'L');\n $pdf->Cell(60, 0, \"CADRE\", 0, 1, 'L');\n\n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(35, 0, $data['gl'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(25, 0, $data['step'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(30, 0, $data['service_no'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(60, 0, $data['cadre'], 0, 1, 0, 0, '', '', true);\n\n\n $pdf->Ln();\n $pdf->SetFont('times', 'B', 11);\n $pdf->Cell(45, 0, \"APPOINTMENT TYPE \", 0, 0, 'L');\n $pdf->Cell(80, 0, \"MDA/INSTITUTION\", 0, 0, 'L'); //: : \n $pdf->Cell(60, 0, \"DEPARTMENT\", 0, 1, 'L');\n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(44, 0, $data['appointment_type'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(80, 0, $data['mda'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(60, 0, $data['department'], 0, 1, 0, 0, '', '', true);\n $pdf->Ln(13);\n\n $pdf->SetFont('times', 'B', 16);\n $pdf->Cell(0, 0, 'BANK DETAILS', 'TB', 1, 'C');\n $pdf->Ln(2);\n $pdf->SetFont('times', 'B', 11);\n $pdf->Cell(70, 0, \"NAME OF BANK\", 0, 0, 'L');\n $pdf->Cell(70, 0, \"ACCOUNT NUMBER\", 0, 0, 'L'); //: : \n $pdf->Cell(70, 0, \"BVN\", 0, 1, 'L');\n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(70, 0, $data['bank_name'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(70, 0, $data['account_no'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(70, 0, $data['bvn'], 0, 1, 0, 0, '', '', true);\n $pdf->Ln();\n if ($data['appointment_type'] === 'CAREER') {\n $pdf->SetFont('times', 'B', 11);\n $pdf->Cell(70, 0, \"PFA NAME\", 0, 0, 'L');\n $pdf->Cell(70, 0, \"PFA PIN\", 0, 1, 'L'); //: : \n $pdf->SetFont('times', '', 11);\n $pdf->MultiCell(70, 0, $data['pfa_name'], 0, 1, 0, 0, '', '', true);\n $pdf->MultiCell(70, 0, $data['pfa_pin'], 0, 1, 0, 0, '', '', true);\n }\n // $txt = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'; \n // $pdf->MultiCell(55, 5, $txt, 0, 1, 0, 0, '', '', true);\n//$pdf->writeHTML('<h5 style=\"border-top:1px;width:50px\">Sign,Date & Name of Employee</h5>', true, false, false, false, ''); \n//$pdf->writeHTMLCell(60, 0, '', '', '<h5 style=\"border-top:1px\">Sign,Date & Name of Employee</h5>', 0, 0);\n//$pdf->writeHTMLCell(50, 0, '', '', '<h5>Sign,Date & Name of Employee</h5>', 'T', 0);\n $pdf->Ln(17);\n $pdf->SetFont('', 'B', 12);\n $pdf->MultiCell(60, 0, 'Sign,Date & Name of Employee', 'T', 'L', 0, 0, '', '', true);\n $pdf->SetFont('', 'B', 12);\n $pdf->Cell(5, 0, '', 0, 0, 'L');\n $pdf->MultiCell(60, 0, 'Sign,Date&Name of Enrolment Officer', 'T', 0, 0, 0, '', '', true);\n $pdf->Cell(5, 0, '', 0, 0, 'L');\n $pdf->MultiCell(60, 0, 'Sign,Date & Name of OAGF Team Leader.', 'T', 'L', 0, 0, '', '', true);\n\n //Clear buffer\n ob_end_clean();\n// DREAW LINE\n // \n// ---------------------------------------------------------\n//Close and display output PDF document onbrwser\n\n $pdf->Output('Employee Certificate.pdf', 'I');\n }", "title": "" }, { "docid": "8bab1005cb0905471a5ccd6f036960d7", "score": "0.5686235", "text": "function dpermohonan_by_id($id_permohonan){\n\n //A4 width : 219mm\n //default margin : 10mm each side\n //writable horizontal : 219-(10*2)=189mm\n\n $pdf = new FPDF('P','mm','A4');\n\n $pdf->AddPage();\n\n //Image( file name , x position , y position , width [optional] , height [optional] )\n $pdf->Image('assets/img/pesann.png',65,60,89);\n $pdf->Image('assets/img/bii.png',65,230,89);\n\n\n //set font to arial, bold, 14pt\n $pdf->SetFont('Arial','B',14);\n\n\n\n //Cell(width , height , text , border , end line , [align] )\n\n $pdf->Cell(130 ,5,'FORM PENGGUNAAN KENDARAAN DINAS',0,0);\n $pdf->Cell(59 ,5,'CHECK FASILITAS',0,1);//end of line\n\n //set font to arial, regular, 12pt\n $pdf->SetFont('Arial','',12);\n\n $pdf->Cell(130 ,5,'Jl. Dr. Sam Ratulangi No.9,',0,0);\n $pdf->Cell(59 ,5,'',0,1);//end of line\n $pdf->Cell(130 ,5,'Gurabesi, Jayapura Utara, Kota Jayapura, Papua, 92174',0,0);\n\n\n\n // $query=mysqli_query($con,\"select * from tblcheck where id = '\".$_GET['id'].\"'\");\n // while($row=mysqli_fetch_array($query)){\n $permohonan = $this->db->query(\"SELECT * FROM tbl_permohonan INNER JOIN tbl_pegawai ON tbl_permohonan.nip_pegawai=tbl_pegawai.nip_pegawai INNER JOIN tbl_master_pengemudi ON tbl_permohonan.nip_pengemudi=tbl_master_pengemudi.nip_pengemudi INNER JOIN tbl_master_kendaraan ON tbl_permohonan.no_polisi=tbl_master_kendaraan.no_polisi INNER JOIN tbl_pengguna ON tbl_pegawai.id_pengguna=tbl_pengguna.id_pengguna INNER JOIN tbl_jenis_kendaraan ON tbl_master_kendaraan.id_jenis_kendaraan=tbl_jenis_kendaraan.id_jenis_kendaraan WHERE id_permohonan='$id_permohonan'\")->result();\n\n\n foreach ($permohonan as $row){\n $pdf->Cell(25 ,5,'Username :',0,0);\n $pdf->Cell(34 ,5,$row->username,0,1);//end of line\n\n $pdf->Cell(130 ,5,'Nomor Telp (+62) 81524737292',0,0);\n $pdf->Cell(25 ,5,'Nomor :',0,0);\n $pdf->Cell(34 ,5,$row->id_permohonan,0,1);//end of line\n\n $pdf->Cell(130 ,5,'Fax (0411) 11223344',0,0);\n $pdf->Cell(25 ,5,'To :',0,0);\n $pdf->Cell(34 ,5,$row->nama_pegawai,0,1);//end of line\n\n \n //make a dummy empty cell as a vertical spacer\n $pdf->Cell(189 ,10,'',0,1);//end of line\n\n //billing address\n $pdf->SetFont('Arial','B',12);\n $pdf->Cell(100 ,5,'DETAILS PENGGUNAAN CHECK',0,1);//end of line\n $pdf->Cell(100 ,5,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'Nip Pegawai',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(90 ,5, $row->nip_pegawai,0,1);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'Nama Pegawai',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(90 ,5,$row->nama_pegawai,0,1);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'==================================================',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n \n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'Nip Pengemudi',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(90 ,5,$row->nip_pengemudi,0,1);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'Nama Pengemudi',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(90 ,5,$row->nama_pengemudi,0,1);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'==================================================',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'Jenis Kendaraan',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(90 ,5,$row->jenis_kendaraan,0,1);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'No Polisi',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(90 ,5,$row->no_polisi,0,1);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'Nama Kendaraan',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(90 ,5,$row->nama_kendaraan,0,1);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'==================================================',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'Jam Keluar',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(90 ,5,$row->jam_keluar,0,1);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'Tanggal Keluar',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(90 ,5,$row->tanggal_keluar,0,1);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'Jam Masuk',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(90 ,5,$row->jam_masuk,0,1);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'Tanggal Masuk',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(90 ,5,$row->tanggal_masuk,0,1);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'Keperluan',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(90 ,5,$row->keperluan,0,1);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'Tujuan',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->MultiCell(120 ,5,$row->tujuan,0,1);\n\n \n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n //make a dummy empty cell as a vertical spacer\n $pdf->Cell(189 ,10,'',0,1);//end of line\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(182,4,\"Di Cetak Pada : Jayapura, \".date('d F Y'),0,0,'R');\n //set font to arial, bold, 14pt\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(45 ,5,'',0,0);\n $pdf->SetFont('Arial','I',10);\n $pdf->Cell(100 ,2,'',0,1);//end of line\n\n $pdf->Cell(189 ,10,'',0,1);//end of line\n $pdf->SetFont('Arial','B',10);\n\n $pdf->Cell(130 ,4,'PENGEMUDI',0,0);\n $pdf->Cell(59 ,5,'KEPALA UNIT SUMBER DAYA',0,1);//end of line\n\n\n }\n\n $pdf->Output(\"Laporan Detail Permohonan Kendaraan.pdf\",\"I\");\n\n }", "title": "" }, { "docid": "3d4a086b9d92e2c318f1158d55ea66de", "score": "0.56785995", "text": "function listarDetalleFacturacionExportacion(){\r\n\t\t$this->procedimiento='vef.ft_venta_facturacion_exportacion_sel';\r\n\t\t$this->transaccion='VF_FACTDETEXP_SEL';\r\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\r\n\r\n\t\t$this->capturaCount('venta_total','numeric');\r\n\t\t//Definicion de la lista del resultado del query\r\n\t\t$this->captura('id_venta_detalle','int4');\r\n\t\t$this->captura('id_formula','int4');\r\n\t\t$this->captura('id_item','int4');\r\n\t\t$this->captura('id_medico','int4');\r\n\t\t$this->captura('id_sucursal_producto','int4');\r\n\t\t$this->captura('id_vendedor','int4');\r\n\t\t$this->captura('id_venta','int4');\r\n\t\t$this->captura('porcentaje_descuento','numeric');\r\n\t\t$this->captura('descripcion','text');\r\n\t\t$this->captura('id_boleto','int4');\r\n\t\t$this->captura('estado','varchar');\r\n\t\t$this->captura('obs','varchar');\r\n\t\t$this->captura('id_unidad_medida','int4');\r\n\t\t$this->captura('cantidad','numeric');\r\n\t\t$this->captura('tipo','varchar');\r\n\t\t$this->captura('bruto','varchar');\r\n\t\t$this->captura('estado_reg','varchar');\r\n\t\t$this->captura('id_producto','int4');\r\n\t\t$this->captura('serie','varchar');\r\n\t\t$this->captura('precio','numeric');\r\n\t\t$this->captura('precio_sin_descuento','numeric');\r\n\t\t$this->captura('kg_fino','varchar');\r\n\t\t$this->captura('ley','varchar');\r\n\t\t$this->captura('id_usuario_ai','int4');\r\n\t\t$this->captura('fecha_reg','timestamp');\r\n\t\t$this->captura('usuario_ai','varchar');\r\n\t\t$this->captura('id_usuario_reg','int4');\r\n\t\t$this->captura('id_usuario_mod','int4');\r\n\t\t$this->captura('fecha_mod','timestamp');\r\n\t\t$this->captura('usr_reg','varchar');\r\n\t\t$this->captura('usr_mod','varchar');\r\n\t\t$this->captura('nombre_producto','varchar');\r\n\t\t$this->captura('total','numeric');\r\n\t\t$this->captura('excento','numeric');\r\n\t\t$this->captura('tiene_excento','varchar');\r\n\t\t$this->captura('id_moneda','int4');\r\n\t\t$this->captura('codigo_internacional','varchar');\r\n\t\t$this->captura('id_concepto_ingas','int4');\r\n\t\t$this->captura('desc_ingas','varchar');\r\n\t\t$this->captura('requiere_descripcion','varchar');\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t$this->ejecutarConsulta();\r\n\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "title": "" }, { "docid": "74d1f030b5c09c311e092053f63990c0", "score": "0.567321", "text": "function listarFormasPagoExportacion(){\r\n\t\t\t$this->procedimiento='vef.ft_venta_facturacion_exportacion_sel';\r\n\t\t\t$this->transaccion='VF_EXP_FP_LIST_SEL';\r\n\t\t\t$this->tipo_procedimiento='SEL';//tipo de transaccio\r\n\r\n\t\t\t$this->setParametro('id_venta','id_venta','integer');\r\n\r\n\t\t\t//Definicion de la lista del resultado del query\r\n\t\t\t$this->captura('id_medio_pago_pw','int4');\r\n\t\t\t$this->captura('name','varchar');\r\n\t\t\t$this->captura('codigo_tarjeta','varchar');\r\n\t\t\t$this->captura('numero_tarjeta','varchar');\r\n\t\t\t$this->captura('monto_forma_pago','numeric');\r\n\t\t\t$this->captura('id_moneda','int4');\r\n\t\t\t$this->captura('id_venta_forma_pago','int4');\r\n\t\t\t$this->captura('id_venta','int4');\r\n\t\t\t$this->captura('desc_moneda','varchar');\r\n\t\t\t$this->captura('fop_code','varchar');\r\n\t\t\t$this->captura('id_auxiliar','int4');\r\n\t\t\t$this->captura('nombre_auxiliar','varchar');\r\n\t\t\t$this->captura('codigo_auxiliar','varchar');\r\n\t\t\t$this->captura('mco','varchar');\r\n\t\t\t$this->captura('usr_reg','varchar');\r\n\t\t\t$this->captura('usr_mod','varchar');\r\n\t\t\t$this->captura('fecha_reg','timestamp');\r\n\t\t\t$this->captura('fecha_mod','timestamp');\r\n\t\t\t//Ejecuta la instruccion\r\n\t\t\t$this->armarConsulta();\r\n\t\t\t// echo $this->consulta;exit;\r\n\t\t\t$this->ejecutarConsulta();\r\n\t\t\t//Devuelve la respuesta\r\n\t\t\treturn $this->respuesta;\r\n\t\t}", "title": "" }, { "docid": "12204764563a51b992cbc70de26fe665", "score": "0.5661108", "text": "function get_stock_detalles_pdf()\n\t{\n\t\t$u = new Stock_detalle();\n\t\t$sql=\"select c.*, e.tag as estatus from cstock_detalles as c left join estatus_general as e on e.id=c.estatus_general_id order by c.razon_social\";\n\t\t//Buscar en la base de datos\n\t\t$u->query($sql);\n\t\tif($u->c_rows > 0){\n\t\t\treturn $u;\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "7a0dd7823b8efc4145c8ef1ca3b79f39", "score": "0.56597435", "text": "public function builtBeneficiariosRecuperate($id_plantel = \"\", $taller = \"\") {\r\n\t\t$html = '';\r\n\t\r\n\t\tif(!empty($id_plantel) && !empty($taller)) {\r\n\t\t\tset_time_limit(0);\r\n\t\t\tini_set('memory_limit', '-1');\r\n\t\t\tini_set('max_execution_time', '0');\r\n\t\t\tini_set('zlib.output_compression', '0');\r\n\t\t\tini_set('implicit_flush', '1');\r\n\t\t\tignore_user_abort(true);\r\n\t\t\t$beneficiarioInstance = $this->getBeneficiariosByPlantelRecuperate($id_plantel);\r\n\t\t\t$tallerInstance = $this->getTallerById($taller);\r\n\t\r\n\t\t\t//Se construye la tabla que contiene a todas los beneficiarios de acuerdo a la Sede asignada dadas de alta en la BD\r\n\t\t\t$html .= '<table id=\"tbl-export\" class=\"table table-hover list table-condensed table-striped\">'.chr(13);\r\n\t\t\t$html .= '<caption style=\"text-align: center; font-size: 125%; font-weight: bold;\">'. (isset($tallerInstance['taller']) ? $tallerInstance['taller'] : \"\") .'</caption>'.chr(13);\r\n\t\t\t$html .= '<thead>'.chr(13);\r\n\t\t\t$html .= '<tr>'.chr(13);\r\n\t\t\t$html .= '<th>Matr&iacute;cula</th>'.chr(13);\r\n\t\t\t$html .= '<th>Nombre Completo</th>'.chr(13);\r\n\t\t\t$html .= '<th>CURP</th>'.chr(13);\r\n\t\t\t//$html .= '<th>Email</th>'.chr(13);\r\n\t\t\t//$html .= '<th>Fecha Hora Entrada</th>'.chr(13);\r\n\t\t\t//$html .= '<th>Fecha Hora Salida</th>'.chr(13);\r\n\t\t\t$html .= '<th>TALLER 8</th>'.chr(13);\r\n\t\t\t$html .= '</tr>'.chr(13);\r\n\t\t\t$html .= '</thead>'.chr(13);\r\n\t\t\t$html .= '<tbody class=\"buscar\">'.chr(13);\r\n\t\t\t\t\r\n\t\t\tif(!empty($beneficiarioInstance)){\r\n\t\t\t\t$array_beneficiario = array();\r\n\t\r\n\t\t\t\tforeach ($beneficiarioInstance as $nuevo) {\r\n\t\t\t\t\t$array_beneficiario[] = \"'\". $nuevo['matricula'] .\"'\";\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t$beneficiariosSeperados = implode(\",\", $array_beneficiario);\r\n\t\t\t\t$beneficiarios = $this->getNombres($beneficiariosSeperados);\r\n\t\t\t\t\t\r\n\t\t\t\tforeach ($beneficiarios as $row) {\r\n\t\t\t\t\t$asistencia = $this->getAsistenciaByTaller($row['matricula_asignada'], $taller);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t$html .= '<tr>'.chr(13);\r\n\t\t\t\t\t$html .= '<td>' . (isset($row['matricula_asignada']) ? $row['matricula_asignada'] : \"\") . '</td>'.chr(13);\r\n\t\t\t\t\t$html .= '<td>' . (isset($row['ap']) ? $row['ap'] : \"\") . ' ' . (isset($row['am']) ? $row['am'] : \"\") . ' ' . (isset($row['nombre']) ? $row['nombre'] : \"\") . '</td>'.chr(13);\r\n\t\t\t\t\t$html .= '<td>' . (isset($row['curp']) ? $row['curp'] : \"\") . '</td>'.chr(13);\r\n\t\t\t\t\t//$html .= '<td>' . (isset($row['email']) ? $row['email'] : \"\") . '</td>'.chr(13);\r\n\t\t\t\t\t//$html .= '<td>' . (isset($asistencia[0]['inicio']) ? $asistencia[0]['inicio'] : \"\") . '</td>'.chr(13);\r\n\t\t\t\t\t//$html .= '<td>' . (isset($asistencia[0]['final']) ? $asistencia[0]['final'] : \"\") . '</td>'.chr(13);\r\n\t\t\t\t\t$html .= '<td>' . (isset($asistencia[0]['inicio']) ? \"ASISTI&Oacute;\" : \"\") . '</td>'.chr(13);\r\n\t\t\t\t\t$html .= '</tr>';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t$html .= '</tbody>'.chr(13);\r\n\t\t\t$html .= '</table>'.chr(13);\r\n\t\r\n\t\t\treturn $html;\r\n\t\t} else {\r\n\t\t\treturn $html;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "521fe6a2a0d692bf3b1c25849e99e789", "score": "0.5659613", "text": "public function show($id)\n\t{\n\t\t$detgrup = detalle_grupo::with('users')->findOrfail($id);\n\t\t$detmat = detalle_matricula::with('cursos', 'matriculas', 'grupos')->where('grupo_id', $detgrup->grupo_id)->where('curso_id', $detgrup->curso_id)->get();\n\t\t//cabecera\n\t\t$fpdf = new Fpdf();\n $fpdf->AddPage();\n $fpdf->SetFont('Arial','B',16);\n $fpdf->Image('img/logoflv.png',10,8,33);\n $fpdf->Cell(50);\n \t// Título\n \t$fpdf->Cell(30,10, utf8_decode('Instituto Superior Tecnológico Flavisur'));\n \t// Salto de línea\n \t$fpdf->SetFont('Arial','B',12);\n \t$fpdf->Ln(20);\n //$fpdf->Cell(40,10,'Hello World!');\n //$headers=['Content-Type' => 'aplication/pdf'];\n $date = Carbon::now();\n\n $w = 1;\n $fpdf->Cell(20,10*$w,'Docente:');\n $fpdf->Cell(90,10*$w, utf8_decode($detgrup->users->name));\n $fpdf->Cell(35,10*$w,'Fecha Entrega:');\n $fpdf->Cell(15,10*$w, $date->format('d-m-Y'));\n $fpdf->Ln();\n $fpdf->Cell(30,10*$w,'Curso:');\n $fpdf->Cell(40,10*$w, utf8_decode($detgrup->cursos->nombre));\n $fpdf->Cell(20,10*$w,'Grupo:');\n $fpdf->Cell(15,10*$w, utf8_decode($detgrup->grupos->nombre_unidad));\n $fpdf->Ln();\n $fpdf->Cell(15,10*$w,'#', 1,0, 'C');\n $fpdf->Cell(100,10*$w,'Alumno', 1,0, 'C');\n $fpdf->Cell(30,10*$w,'ciclo', 1,0, 'C');\n $fpdf->Cell(45,10*$w,'Promedio', 1,0, 'C');\n $fpdf->Ln();\n $fpdf->Line(10, 50, 200, 50);\n $fpdf->SetFont('Arial','',12);\n foreach ($detmat as $detalles) {\n \t$fpdf->Cell(15,10,$w, 1,0, 'C');\n \t$fpdf->Cell(100,10,utf8_decode($detalles->matriculas->alumnos->nombres),1,0, 'C');\n \t$fpdf->Cell(30,10,utf8_decode($detalles->grupos->ciclos->ciclo),1,0, 'C');\n \t$fpdf->Cell(45,10,$detalles->promedio, 1,0, 'C');\n\t $fpdf->Ln();\n\t $w++;\n\t //$fpdf->Cell()\n }\n $fpdf->Output();\n exit;\n\t}", "title": "" }, { "docid": "bccd80ca4b68b17bab074eded1566557", "score": "0.5656946", "text": "public function laporan_rambu(){\n $rambu =rambu::all();\n $pejabat_struktural =pejabat_struktural::where('jabatan','kasi reksa')->get();\n $tgl= Carbon::now()->format('d-m-Y');\n\n $pdf =PDF::loadView('laporan.rambu_laporan', ['rambu' => $rambu,'tgl'=>$tgl,'pejabat_struktural'=>$pejabat_struktural]);\n $pdf->setPaper('a4', 'potrait');\n return $pdf->download('Laporan rambu.pdf');\n }", "title": "" }, { "docid": "e763dd6b279e70c824ecafb70dc709c7", "score": "0.5656819", "text": "function getRoomList($HotelCod);", "title": "" }, { "docid": "b1e29998d0424bd03009b93aad96003f", "score": "0.5655561", "text": "public function pedidos($idPedido = false){\n\t\t$this->load->library('pdf');\n\t\t$this->pdf = new Pdf();\n\t\t$this->pdf->AliasNbPages(); \t// Define el alias (para el número de página que se imprimirá en el pie)\n\t \n\t\t/* Se define el titulo, márgenes izquierdo, derecho y\n\t\t * el color de relleno predeterminado\n\t\t */\n\t\t$this->pdf->SetTitle(\"Detalle de pedido\");\n\t\t$this->pdf->SetLeftMargin(20);\n\t\t$this->pdf->SetRightMargin(20);\t\n\t\t\n\t\tif ($idPedido) {\n\t\t\t$listaPedidos = array($this->pedidos_model->getPedidos($idPedido));\n\t\t} else {\n\t\t\t$listaPedidos = $this->pedidos_model->getPedidosEstado('CONFIRMADO');\n\t\t}\n\t\t\n\t\tforeach ($listaPedidos as $pedido)\n\t\t{\n\t\t\t\n\t\t\t$detallesPedido = $this->pedidos_model->getDetallePedidos($pedido['idPedido']);\t\t\n \n\t\t\t$this->pdf->AddPage();\n $this->pdf->Image(base_url().'assets/img/logo.png',70,12,80);\n $this->pdf->Ln(30);\n\t\t\t\n\t\t\t$this->pdf->SetFont('Arial', 'B', 9);\n\t\t\t$this->pdf->Cell(15,7,'Pedido #'.$pedido['idPedido']);\n\t\t\t$this->pdf->SetX(-20-20);\n\t\t\t$this->pdf->Cell(20,7,t($pedido['zona']),'',0,'R');\n\t\t\t$this->pdf->Ln(5);\n\t\t\t$this->pdf->SetFont('Arial', '', 9);\n\t\t\t$this->pdf->Cell(100,7,t($pedido['nombre']),'',0,'L',0);\n\t\t\t$this->pdf->Ln(5);\n\t\t\t$this->pdf->Cell(100,7,t($pedido['direccion']));\n\t\t\t$this->pdf->Ln(5);\n\t\t\t$this->pdf->Cell(100,7,t($pedido['aclaracion']),'',0,'L',0);\n\t\t\t$this->pdf->Ln(5);\t\n\t\t\tif ($pedido['celular'] != 'N/A') {\n\t\t\t\t$this->pdf->Cell(100,7,$pedido['celular'],'',0,'L',0);\n\t\t\t\t$this->pdf->Ln(5);\t\n\t\t\t}\n\t\t\t$this->pdf->Ln(5);\n\t\t\t$this->pdf->Cell(15,7,t($pedido['nota']),'',0,'L',0);\n\t\t\t$this->pdf->Ln(12);\n\t\t\t// Se define el formato de fuente: Arial, negritas, tamaño 9\n\t\t\t//$this->pdf->SetFont('Arial', 'B', 9);\n\t\t\t/*\n\t\t\t * TITULOS DE COLUMNAS\n\t\t\t *\n\t\t\t * $this->pdf->Cell(Ancho, Alto,texto,borde,posición,alineación,relleno);\n\t\t\t */\n\t\t\t$this->pdf->SetFont('Arial', 'B', 9);\n\t\t\t$this->pdf->SetFillColor(0,0,0);\n\t\t\t$this->pdf->SetTextColor(255,255,255);\n\t\t\t$w = array(70, 30, 25, 15, 15, 15) ;\n\t\t\t$a = array('L','C','C','R','R','R');\n\t\t\t$this->pdf->Cell($w[0],7,'Producto','',0,$a[0],'1');\n\t\t\t$this->pdf->Cell($w[1],7,'Marca','',0,$a[1],'1');\n\t\t\t$this->pdf->Cell($w[2],7,'Unidad','',0,$a[2],'1');\n\t\t\t$this->pdf->Cell($w[3],7,'Precio','',0,$a[3],'1');\n\t\t\t$this->pdf->Cell($w[4],7,'Cant.','',0,$a[4],'1');\n\t\t\t$this->pdf->Cell($w[5],7,'Total','',0,$a[5],'1');\n\t\t\t$this->pdf->Ln(8);\n\t\t\t\n\t\t\t$this->pdf->SetTextColor(0,0,0);\n\t\t\t$this->pdf->SetFont('Arial', '', 9);\n\t\t\t\n\t\t\t$row = 1;\n\n\t\t\tforeach ($detallesPedido as $detalle) {\n\t\t\t if ($row++ % 2)\n\t\t\t\t $this->pdf->SetFillColor(255,255,255); \n\t\t\t else\n\t\t\t\t $this->pdf->SetFillColor(240,240,240);\t \n\t\t\t\t \n\t\t\t $this->pdf->Cell($w[0],5,t($detalle['nombre']),'',0,$a[0],1);\n\t\t\t $this->pdf->Cell($w[1],5,t($detalle['marca']),'',0,$a[1],1);\n\t\t\t $this->pdf->Cell($w[2],5,t($detalle['unidad']),'',0,$a[2],1);\n\t\t\t if ($detalle['cantidad_entregada'] > 0) {\n\t\t\t\t $this->pdf->Cell($w[3],5,$detalle['precio']/$detalle['cantidad'],'',0,$a[3],1);\n\t\t\t\t $this->pdf->Cell($w[4],5,$detalle['cantidad_entregada'],'',0,$a[4],1);\n\t\t\t\t $this->pdf->Cell($w[5],5,$detalle['precio'],'',0,$a[5],1);\t\t\t \n\t\t\t } else {\n\t\t\t\t $this->pdf->Cell($w[3]+$w[4]+$w[5],5,'no disponible','',0,'C',1);\n\t\t\t }\n\t\t\t $this->pdf->Ln(5);\n\t\t\t}\n\t\t\t\n\t\t\t$this->pdf->Ln(5);\n\t\t\tif ($pedido['costo_envio'] > 0) {\n\t\t\t\t$this->pdf->Cell($w[0]+$w[1]+$w[2]+$w[3]+$w[4],5,'Subtotal:','',0,'R',0);\n\t\t\t\t$this->pdf->Cell($w[5],5,round($pedido['subtotal']),'',0,$a[5],0);\t\t\n\t\t\t\t$this->pdf->Ln(5);\n\n\t\t\t\t$this->pdf->Cell($w[0]+$w[1]+$w[2]+$w[3]+$w[4],5,t('Costo de envío:'),'',0,'R',0);\n\t\t\t\t$this->pdf->Cell($w[5],5,round($pedido['costo_envio']),'',0,$a[5],0);\t\t\n\t\t\t\t$this->pdf->Ln(5);\n\t\t\t}\n\t\t\t\n\t\t\t$this->pdf->SetFont('Arial', 'B', 9);\n\t\t\t$this->pdf->Cell($w[0]+$w[1]+$w[2]+$w[3]+$w[4],5,'Total:','',0,'R',0);\n\t\t\t$this->pdf->Cell($w[5],5,round($pedido['total']),'',0,$a[5],0);\n\t\t}\n\t\t\n\t\t/*\n\t\t * Se manda el pdf al navegador\n\t\t *\n\t\t * $this->pdf->Output(nombredelarchivo, destino);\n\t\t *\n\t\t * I = Muestra el pdf en el navegador\n\t\t * D = Envia el pdf para descarga\n\t\t *\n\t\t */\n\t\t$this->pdf->Output(\"Lista de pedidos.pdf\", 'I');\n }", "title": "" }, { "docid": "aedbac046e075a4717db38c55dab8174", "score": "0.56555074", "text": "public function generatePDF()\n {\n DB::statement(DB::raw('SET @rownum = 0'));\n $especificaciones =DB::table('especificaciones')\n ->select('*')\n ->get();\n DB::statement(DB::raw('SET @rownum = 0'));\n $datas =DB::table('listamateriales')\n ->select('*',DB::raw('@rownum := @rownum + 1 as rownum'))\n //->where('idCodigo',$datosMaestros->codigo)\n ->get();\n\n //$pdf = PDF::loadView('datosMaestros.myPDF',compact('datas'))->setOptions(['defaultFont' => 'sans-serif']);\n $pdf = PDF::loadView('datosMaestros.myPDF',[\n 'datas' =>$datas,\n 'especificaciones' =>$especificaciones\n ])->setOptions(['defaultFont' => 'sans-serif']);\n //return $pdf->setPaper('a4', 'landscape')->stream();\n return $pdf->stream();\n //$pdf = PDF::loadView('welcome');\n //return $pdf->setPaper('a4', 'landscape')->stream();\n\n /*#para guardar pdf\n $datas = ModelListaMateriales::all();\n $pdf = PDF::loadView('datosMaestros.myPDF',compact('datas'))->setOptions(['defaultFont' => 'sans-serif']);\n Storage::disk('public')->put(date('Y-m-d-H-i-s').'pruebaPDF',$pdf);*/\n\n //return redirect()->back()->with('status','pDF guardado')\n\n\n //return $pdf->download('datosMaestros.pdf');\n }", "title": "" }, { "docid": "07ae978f0e9771539d65531f154219aa", "score": "0.5649664", "text": "public function reporteConclusionPDF($id){\n\n $solicitud = Solic_detalle::join('contratos','solic_detalles.contrato_id','=','contratos.id')\n ->join('contratistas','solic_detalles.contratista_id','=','contratistas.id')\n ->join('entregas','contratos.id','=','entregas.id')\n ->join('creditos','contratos.id','=','creditos.id')\n ->join('lotes','creditos.lote_id','=','lotes.id')\n ->select('solic_detalles.id','contratos.id as folio','creditos.fraccionamiento',\n 'creditos.etapa','creditos.manzana','creditos.num_lote','creditos.modelo',\n 'solic_detalles.cliente','solic_detalles.celular',\n 'contratistas.nombre', DB::raw('DATE(solic_detalles.created_at) as fecha'),\n 'solic_detalles.lunes','solic_detalles.martes','solic_detalles.miercoles',\n 'solic_detalles.jueves','solic_detalles.viernes','solic_detalles.sabado',\n 'solic_detalles.obs_gen','lotes.emp_constructora', 'lotes.emp_terreno',\n 'solic_detalles.horario','entregas.fecha_entrega_real','lotes.calle', 'lotes.numero')\n ->where('solic_detalles.id','=',$id)\n ->get();\n\n $detalles = Descripcion_detalle::select('general','subconcepto','detalle','garantia','fecha_concluido','observacion')->where('solicitud_id','=',$id)->get();\n\n\n\n setlocale(LC_TIME, 'es_MX.utf8');\n\n foreach($detalles as $detalle){ // se le da formato a las fechas para cada solicitud individual\n $fecha = new Carbon($detalle->fecha_concluido);\n $detalle->fecha_concluido = $fecha->formatLocalized('%d de %B de %Y');\n }\n\n // Se les da formato a las fechas\n $fecha_entrega_real = new Carbon($solicitud[0]->fecha_entrega_real);\n $solicitud[0]->fecha_entrega_real = $fecha_entrega_real->formatLocalized('%d de %B de %Y');\n\n $fecha = new Carbon($solicitud[0]->fecha);\n $solicitud[0]->fecha = $fecha->formatLocalized('%d de %B de %Y');\n\n //Formato con parentesis al numero de celular\n $solicitud[0]->celular = '('.substr($solicitud[0]->celular, 0, 3).') '.substr($solicitud[0]->celular, 3, 3).'-'.substr($solicitud[0]->celular,6);\n\n\n\n\n $pdf = \\PDF::loadview('pdf.DocsPostVenta.ReporteConclusion', ['solicitud' => $solicitud ,'detalles' => $detalles]);\n return $pdf->stream('ReporteConclusion.pdf');\n }", "title": "" }, { "docid": "9a7f1e3ee4d9c00bf22793345a2e4eb4", "score": "0.5647625", "text": "function Cabecera($pdf,$cod_documento,$periodo,$CodOrganismo) {\r\n\t$pdf->AddPage();\r\n\t$pdf->Image('../imagenes/logos/contraloria.jpg', 10, 10, 10, 10);\t\r\n\t$pdf->SetFont('Arial', 'B', 8);\r\n\t$pdf->SetXY(20, 10); $pdf->Cell(190, 5,utf8_decode( 'Contraloría del Estado Monagas'), 0, 1, 'L');\r\n\t$pdf->SetXY(20, 15); $pdf->Cell(190, 5, utf8_decode('División de Correspondencia y Mensajería'), 0, 1, 'L');\t\r\n\t$pdf->SetFont('Arial', 'B', 10);\r\n\t$pdf->Cell(190, 10, utf8_decode('Reporte Distribución por Fecha de Registro de Documento'), 0, 1, 'C');\t\r\n\t\r\n\t//// CONSULTA PARA MUESTRA DE INFORMACION\r\n\t\r\n\t$s_con = \"select * from cp_documentoextentrada where Cod_Documento = '$cod_documento' and Periodo = '$periodo' and CodOrganismo = '$CodOrganismo'\";\r\n $q_con = mysql_query($s_con) or die ($s_con.mysql_error());\r\n\t$r_con = mysql_num_rows($q_con);\r\n\t\r\n\t \r\n\t\r\n\t\r\n\t//$pdf->Cell(100 , 6, $r_con, 0, 0 , 'C');\r\n\tfor($i=0;$i<$r_con;$i++){ \r\n\t $f_con = mysql_fetch_array($q_con);\r\n\t\t\r\n\t\tlist($a,$m,$d)=SPLIT('[-]', $f_con['FechaRegistro']); $fechaRegistro = $d.'-'.$m.'-'.$a;\r\n\t list($e,$f,$g)=SPLIT('[-]', $f_con['FechaDocumentoExt']); $fechaDocumento = $g.'-'.$f.'-'.$e;\r\n\t\r\n\t\t$s_tdocumento = \"select\r\n\t\t\t\t\t\t\t tp.Descripcion as Descripcion,\r\n\t\t\t\t\t\t\t org.Organismo as Organismo\r\n\t\t\t\t\t\t from \r\n\t\t\t\t\t\t\t cp_tipocorrespondencia as tp,\r\n\t\t\t\t\t\t\t pf_organismosexternos as org\r\n\t\t\t\t\t\t where \r\n\t\t\t\t\t\t\t tp.Cod_TipoDocumento='\".$f_con['Cod_TipoDocumento'].\"' and\r\n\t\t\t\t\t\t\t org.CodOrganismo = '\".$f_con['Cod_Organismos'].\"'\"; \r\n\t\t$q_tdocumento = mysql_query($s_tdocumento) or die ($s_tdocumento.mysql_error());\r\n\t\t$f_tdocumento = mysql_fetch_array($q_tdocumento);\r\n\t\r\n\t\t$pdf->SetFont('Arial', 'B', 8);\r\n\t\t$pdf->SetXY(20,30); $pdf->Cell(24, 6,utf8_decode('Nro. Documento:'), 0, 0, 'L');$pdf->Cell(10, 6, $f_con['Cod_Documento'], 0, 0, 'L'); \r\n\t\t\t\t\t\t\t$pdf->Cell(24, 5,utf8_decode('Tipo Documento:'), 0, 0, 'L');$pdf->Cell(15, 5, $f_tdocumento['Descripcion'], 0, 0, 'L');\r\n\t\t\t\t\t\t\t$pdf->Cell(26, 5, 'Fecha Documento:', 0, 0, 'L'); $pdf->Cell(17, 5, $fechaDocumento, 0, 0, 'L');\r\n\t\t\t\t\t\t $pdf->Cell(23, 5, 'Fecha Registro:', 0, 0, 'L'); $pdf->Cell(15, 5, $fechaRegistro, 0, 1, 'L');\r\n\t\t\t\t\t\t\r\n\t\t$pdf->SetXY(20,34); $pdf->Cell(25, 5,utf8_decode('Remitente:'), 0, 0, 'L'); $pdf->Cell(50, 5, $f_con['Remitente'], 0, 1, 'L');\t\r\n\t\t$pdf->SetXY(20,38); $pdf->Cell(25, 5, '', 0, 0, 'L');$pdf->Cell(50, 5, $f_con['Cargo'], 0, 1, 'L');\r\n\t\t$pdf->SetXY(20,42); $pdf->Cell(25, 5, '', 0, 0, 'L');$pdf->Cell(50, 5, $f_tdocumento['Organismo'], 0, 1, 'L');\r\n\t\t$pdf->SetXY(20,46); $pdf->Cell(25, 5, '', 0, 0, 'L');$pdf->Cell(50, 5, '', 0, 1, 'L');\r\n\t\t\r\n\t\t$pdf->SetDrawColor(0, 0, 0); $pdf->SetFillColor(200, 200, 200); $pdf->SetTextColor(0, 0, 0);\r\n\t\t$pdf->SetFont('Arial', 'B', 6);\r\n\t\t$pdf->Cell(20, 5);\r\n\t\t$pdf->Cell(50, 5, 'DEPENDENCIA', 1, 0, 'C', 1);\r\n\t\t$pdf->Cell(50, 5, 'REPRESENTANTE/EMPLEADO', 1, 0, 'C', 1);\r\n\t\t$pdf->Cell(50, 5, 'CARGO', 1, 1, 'C', 1);\r\n\t\r\n\t\r\n}}", "title": "" }, { "docid": "dceb57176e7d191eb7e16ed081916f73", "score": "0.5644926", "text": "private function _pdf_listado_infracciones($pdf, $x, $y, $res_bop, $datos,$infraccionesBoleta)\r\n\t\t{\r\n\t\t$ancho_pagina = 510;\r\n\t\t$size = 8;\r\n\t\t$pdf->filledRectangle($x, $y + 330, $ancho_pagina, 10);\r\n\r\n\t\t$altura_img = 13;\r\n\t\t$ancho_img = 60;\r\n\t\t$pdf->addJpegFromFile($_SERVER[\"DOCUMENT_ROOT\"] . \"/images/boleta/infracciones/listado.jpg\", $x, 810 +20 - $altura_img, $ancho_img, $altura_img);\r\n\t\t$pdf->setColor(0.8, 0.8, 0.8);\r\n\t\t$pdf->filledRectangle($x + $ancho_img, 797 + 20, $ancho_pagina - $ancho_img, 13);\r\n\t\t$pdf->setColor(0, 0, 0);\r\n\r\n\t\t$pdf->rectangle($x + 245, 790, 250, 20);\r\n\t\t$pdf->ezSetY(806);\r\n\t\t$pdf->ezText(\"<b>Boleta de pago Nº \" . sprintf(\"%08s\", $res_bop->field(\"bopID\")) . \"</b>\", $size, array(\"aleft\" => 360));\r\n\t\t$pdf->ezSetY(790);\r\n\t\t$pdf->ezText(date(\"d-m-Y H:i:s\"), $size, array(\"aleft\" => 380));\r\n\r\n\t\t$pdf->ezSetY(770);\r\n\t\t$pdf->ezText(\"Las presentes infracciones de tránsito cuentan con sentencia firme informadas por las respectivas jurisdicciones a la ANSV.\", $size, array(\"aleft\" => 52));\r\n\r\n\t\t$pdf->ezSetY(750);\r\n\t\t$pdf->ezText(\"Cualquier reclamo y/o consulta vinculada con las infracciones informadas deberá dirigirse a la entidad local competente de juzgamiento,\", $size, array(\"aleft\" => 52));\r\n\t\t$pdf->ezText(\" o comunicarse a los siguientes contactos:\", $size, array(\"aleft\" => 52));\r\n\r\n\t\t$espacio1 = 52;\r\n\t\t$espacio2 = 80;\r\n\r\n\t\t$pdf->ezSetY(720);\r\n\t\t$pdf->ezText(\"<b><u>PROVINCIA DE BUENOS AIRES</u></b> - www.infraccionesBA.net\", $size, array(\"aleft\" => $espacio1));\r\n\t\t$pdf->ezText(\"Calle 6 Nº 928, La Plata, CP 1900\", $size, array(\"aleft\" => $espacio2));\r\n\t\t$pdf->ezText(\"Consulta web de infracciones: www.infraccionesba.net/webInfractor.do?method=consultaInfracciones\", $size, array(\"aleft\" => $espacio2));\r\n\t\t$pdf->ezText(\"Conmutador: 0221-4270034\", $size, array(\"aleft\" => $espacio2));\r\n\t\t$pdf->ezText(\"Infracciones: 0800-222-0024\", $size, array(\"aleft\" => $espacio2));\r\n\r\n\t\t$pdf->ezSetY(660);\r\n\t\t$pdf->ezText(\"<b><u>CIUDAD AUTONOMA DE BUENOS AIRES</u></b> - www.buenosaires.gob.ar\", $size, array(\"aleft\" => $espacio1));\r\n\t\t$pdf->ezText(\"Carlos Pellegrini 211, 1º piso, CABA\", $size, array(\"aleft\" => $espacio2));\r\n\t\t$pdf->ezText(\"Consulta web de infracciones: www.buenosaires.gob.ar/infracciones\", $size, array(\"aleft\" => $espacio2));\r\n\t\t$pdf->ezText(\"0800-999-2727\", $size, array(\"aleft\" => $espacio2));\r\n\t\t$pdf->ezText(\"147\", $size, array(\"aleft\" => $espacio2));\r\n\t\t$pdf->ezText(\"(011)4324-8000\", $size, array(\"aleft\" => $espacio2));\r\n\r\n\t\t$pdf->ezSetY(590);\r\n\t\t$pdf->ezText(\"<b><u>ENTRE RIOS (Seccion expedientes y asuntos Judiciales)</u></b>\", $size, array(\"aleft\" => $espacio1));\r\n\t\t$pdf->ezText(\"e-mail: expedientes.seg.vial@gmail.com\", $size, array(\"aleft\" => $espacio2));\r\n\t\t$pdf->ezText(\"Calle Gualeguaychu 560, Paraná, Entre Ríos, CP 3100\", $size, array(\"aleft\" => $espacio2));\r\n $pdf->ezText(\"Horario de atención de 08 a 13 hs.\", $size, array(\"aleft\" => $espacio2));\r\n\t\t$pdf->ezText(\"0343 - 4840719 / 4840678 / 4840676 / 4840675 / 4840884\", $size, array(\"aleft\" => $espacio2));\r\n\t\t$pdf->ezText(\"0343 - 4840778 / 4840671 / 4840616 / 4840617\", $size, array(\"aleft\" => $espacio2));\r\n\t\t$pdf->ezText(\"Teléfono de contacto policial: 0343-4840718\", $size, array(\"aleft\" => $espacio2));\r\n\t\t$pdf->ezSetY(510);\r\n\r\n\t\t//defino las propiedadesd de los titulos de la tabla\r\n\t\t$titulos = array(\r\n\t\t\t\t\t\t\t\t\t\t\"infActa\"=>array(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"title\"=>\"<b>Nº Acta</b>\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"justification\"=>\"left\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"width\"=>\"60\"\r\n\t\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\"cifID\"=>array(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"title\"=>\"<b>Código</b>\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"justification\"=>\"left\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"width\"=>\"30\"\r\n\t\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\"infDominio\"=>array(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"title\"=>\"<b>Dominio</b>\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"justification\"=>\"left\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"width\"=>\"37\"\r\n\t\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\"infFecha\"=>array(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"title\"=>\"<b>Fecha de inf.</b>\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"justification\"=>\"left\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"width\"=>\"50\"\r\n\t\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\"infHora\"=>array(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"title\"=>\"<b>Hora de inf.</b>\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"justification\"=>\"left\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"width\"=>\"40\"\r\n\t\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\"infLugar\"=>array(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"title\"=>\"<b>Lugar</b>\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"justification\"=>\"left\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"width\"=>\"120\"\r\n\t\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\"juzRazonSocial\"=>array(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"title\"=>\"<b>Juzgado</b>\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"justification\"=>\"left\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"width\"=>\"150\"\r\n\t\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\"infImporte\"=>array(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"title\"=>\"<b>Monto</b>\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"justification\"=>\"right\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"width\"=>\"35\"\r\n\t\t\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);\r\n\r\n\t\t//Completo el listado de titulos para la Tabla\r\n\t\tforeach($titulos as $titulo => $contenido){\r\n\t\t$titulosTabla[$titulo] = $contenido[\"title\"];\r\n\t\tforeach($contenido as $id => $value)\r\n\t\t\tif($id!= \"title\")\r\n\t\t\t\t$colsTabla[$titulo][$id] = $value;\r\n\t\t}\r\n\r\n\t\t//defino las opciones de la tabla\r\n\t\t$opcionesTabla = array(\r\n\t\t\t'showlines'\t\t\t\t\t=>2,\r\n\t\t\t'repeatTableHeader'\t=>1,\r\n\t\t\t'showHeadings'\t\t\t=>true,\r\n\t\t\t'shaded'\t\t\t\t\t\t=>1,\r\n\t\t\t'shadeCol'=>array(0.9,0.9,0.9),\r\n\t\t\t'fontSize'\t\t\t\t\t=>$size-2,\r\n\t\t\t'titleFontSize'\t\t\t=>$size,\r\n\t\t\t'xOrientation'\t\t\t=>center,\r\n\t\t\t'width'\t\t\t\t\t\t\t=>800,\r\n\t\t\t'rowGap'\t\t\t\t\t\t=>2,\r\n\t\t\t'colGap'\t\t\t\t\t\t=>2,\r\n\t\t\t'cols'\t\t\t\t\t\t\t=>$colsTabla\r\n\t\t);\r\n\r\n\t\t//formateo la respuesta de infracciones para mostrarlas en el PDF\r\n\t\t$i=0;\r\n\t\tfor(;!$infraccionesBoleta->eof;$infraccionesBoleta->MoveNext()){\r\n\t\t\t//Se guardan los códigos de infracción\r\n\t\t\tif(!$cifIDS[$infraccionesBoleta->field(\"cifID\")])\r\n\t\t\t\t$cifIDS[$infraccionesBoleta->field(\"cifID\")] = $infraccionesBoleta->field(\"cifDescrip\");\r\n\r\n\t\t\tif(!$datosTabla[$infraccionesBoleta->field(\"munID\")][\"munRazonSocial\"])\r\n\t\t\t\t$datosTabla[$infraccionesBoleta->field(\"munID\")][\"munRazonSocial\"] =$infraccionesBoleta->field(\"munRazonSocial\") . \"(\".$infraccionesBoleta->field(\"zonDescrip\").\")\";\r\n\r\n\t\t\tforeach($infraccionesBoleta->fieldname as $unCampo)\r\n\t\t\t\t$datosTabla[$infraccionesBoleta->field(\"munID\")][\"data\"][$i][$unCampo] = $infraccionesBoleta->field($unCampo);\r\n\t\t$i++;\r\n\t\t}\r\n\r\n\t\t// Por cada Municipalidad Muestro las infracciones\r\n\t\tforeach($datosTabla as $munID => $datosInfracciones){\r\n\t\t$pdf->ezText(\" \", $size-4);\r\n\t\t$pdf->ezText(\"<b>\".$datosInfracciones[\"munRazonSocial\"].\"</b>\", $size, array(\"aleft\" => $espacio1));\r\n\t\t$pdf->ezText(\" \", $size-4);\r\n\t\t$pdf->ezTable($datosInfracciones[\"data\"], $titulosTabla, \"\",$opcionesTabla);\r\n\t\t}\r\n\r\n\t\t$pdf->ezText(\" \", $size+4);\r\n\t\t$pdf->ezText(\"<b>Códigos de infracción</b>\", $size, array(\"aleft\" => $espacio1));\r\n\t\t$pdf->ezText(\" \", $size-4);\r\n\r\n\t\tksort($cifIDS);\r\n\t\t\tforeach($cifIDS as $cifID=>$cifDescrip){\r\n\t\t\t$y = $pdf->ezText($cifID .\" - \".$this->formatCifDescrip($cifDescrip), $size, array(\"aleft\" => $espacio1));\r\n\t\t\t\tif($y<50){\r\n\t\t\t\t\t$pdf->ezNewPage();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t$pdf->ezText(\" \", $size+4);\r\n\t\t$pdf->ezText(\"<b>Jurisdicciones Consultadas</b>\", $size, array(\"aleft\" => $espacio1));\r\n\t\t$pdf->ezText(\" \", $size-4);\r\n\t\t$pdf->ezText($datos[\"municipalidades\"], $size, array(\"aleft\" => $espacio1));\r\n\r\n\t\t}", "title": "" }, { "docid": "7d7144d78d85c9223a2b1272840c10e7", "score": "0.5636974", "text": "public function news_event2(){\n $pdf = new FPDF('l','mm','A4');\n // membuat halaman baru\n $pdf->AddPage();\n\n $pdf->SetMargins(5,5,0);\n\n $totalGroup = 3;\n $h_border = ($totalGroup * 8) + 100;\n $pdf->Rect(3, 7, 140, $h_border);\n $pdf->Rect(155, 7, 140, $h_border);\n\n $pdf->Image(base_url('images/icon/favicon.png'),5,10,13);\n $pdf->Image(base_url('images/icon/favicon.png'),158,10,13);\n\n $h=5;\n\n $pdf->SetFont('Times','B',11);\n $pdf->Cell(133,$h,'Universitas Agung Podomoro',0,0,'C');\n $pdf->Cell(20,$h,'',0,0);\n $pdf->Cell(132,$h,'Universitas Agung Podomoro',0,1,'C');\n\n $h=3.5;\n\n $pdf->SetFont('Times','',8);\n $pdf->Cell(135,$h,'APL Tower Lt. 5, Podomoro City Jln. LetJend. S. Parman Kav. 28',0,0,'C');\n $pdf->Cell(17,$h,'',0,0);\n $pdf->Cell(135,$h,'APL Tower Lt. 5, Podomoro City Jln. LetJend. S. Parman Kav. 28',0,1,'C');\n\n $pdf->Cell(135,$h,'Tlp: 021 292 00456 Fax: 021 292 00455',0,0,'C');\n $pdf->Cell(17,$h,'',0,0);\n $pdf->Cell(135,$h,'Tlp: 021 292 00456 Fax: 021 292 00455',0,1,'C');\n\n $pdf->Cell(135,$h,'website : www.podomorouniversity.ac.id, email : admissions@podomorouniversity.ac.id',0,0,'C');\n $pdf->Cell(17,$h,'',0,0);\n $pdf->Cell(135,$h,'website : www.podomorouniversity.ac.id, email : admissions@podomorouniversity.ac.id',0,1,'C');\n\n $pdf->Line(3,27,143,27);\n $pdf->Line(155,27,295,27);\n\n $pdf->Ln(4);\n\n $pdf->SetFont('Times','B',8);\n\n $pdf->Cell(135,$h,'DRAFT QUESTIONS',0,0,'C');\n $pdf->Cell(17,$h,'',0,0);\n $pdf->Cell(135,$h,'BERITA ACARA PENYERAHAN BERKAS UJIAN',0,1,'C');\n\n $pdf->Output('news_event.pdf','I');\n }", "title": "" }, { "docid": "fbcd086c8344a47931b0522bf35ca2e4", "score": "0.56365585", "text": "function action_persuratan_suratmasukpdf($id)\n {\n $this->blankpage = true;\n\n $this->db_query(\"SELECT * FROM persuratan_ms_flowstat\");\n while ( $row = $this->db_fetch() ) { $arr_ms_flowstat[$row['id']] = $row['name']; }\n $this->db_query(\"SELECT * FROM persuratan_ms_jenissuratmasuk\");\n while ( $row = $this->db_fetch() ) { $arr_ms_jenissuratmasuk[$row['id']] = $row['name']; }\n $this->db_query(\"SELECT * FROM persuratan_ms_asalsurat\");\n while ( $row = $this->db_fetch() ) { $arr_ms_asalsurat[$row['id']] = $row['name']; }\n $this->db_query(\"SELECT * FROM persuratan_ms_sifatsurat\");\n while ( $row = $this->db_fetch() ) { $arr_ms_sifatsurat[$row['id']] = $row['name']; }\n $this->db_query(\"SELECT * FROM persuratan_ms_jenispengaduan\");\n while ( $row = $this->db_fetch() ) { $arr_ms_jenispengaduan[$row['id']] = $row['name']; }\n $this->db_query(\"SELECT * FROM persuratan_ms_status\");\n while ( $row = $this->db_fetch() ) { $arr_ms_status[$row['id']] = $row['name']; }\n $this->db_query(\"SELECT * FROM persuratan_ms_pengurus\");\n while ( $row = $this->db_fetch() ) { $arr_ms_pengurus[$row['id']] = $row['name']; }\n $this->db_query(\"SELECT * FROM persuratan_ms_statusdisposisi\");\n while ( $row = $this->db_fetch() ) { $arr_ms_statusdisposisi[$row['id']] = $row['name']; }\n \n $res = $this->db_query(\"SELECT * , DATE_FORMAT(tglagenda, '%d-%m-%Y') AS tglagenda, DATE_FORMAT(tglsuratintern, '%d-%m-%Y') AS tglsuratintern, DATE_FORMAT(tglkma, '%d-%m-%Y') AS tglkma, DATE_FORMAT(tglsuratpengirim, '%d-%m-%Y') AS tglsuratpengirim, DATE_FORMAT(tglpembukuan, '%d-%m-%Y') AS tglpembukuan, DATE_FORMAT(tglmasuktuadawas, '%d-%m-%Y') AS tglmasuktuadawas, DATE_FORMAT(tglkeluar, '%d-%m-%Y') AS tglkeluar FROM persuratan_suratmasuk \n WHERE id='{$id}'\");\n if ($this->db_numrows()>0) {\n //==============\n // Start create PDF\n //==============\n require('fpdf/fpdf.php');\n $pdf = new FPDF('P', 'mm', array(215,330));\n $pdf->SetAuthor('Agus Sudarmanto, S.Kom.');\n\n while ($row = $this->db_fetch()) {\n\n $pdf->AddPage();\n $pdf->SetFont('Arial','B',16);\n\n $cellBox = 195;\n\n $pdf->Rect(10, 7, $cellBox , 25);\n $pdf->Rect(10, 38, $cellBox , 24);\n $pdf->Rect(150, 38, 55 , 24);\n $pdf->Rect(10, 62, $cellBox , 50);\n $pdf->Rect(10, 118, $cellBox , 133);\n $pdf->Rect(150, 118, 55 , 133);\n\n $pdf->Cell($cellBox,7,'SEKRETARIAT WAKIL KETUA MA BIDANG NON YUDISIAL',0,1,'C');\n $pdf->Cell($cellBox,7,'MAHKAMAH AGUNG REPUBLIK INDONESIA',0,1,'C');\n $pdf->SetFont('Arial','B',12);\n\n $pdf->Cell($cellBox,7,'Lembar Disposisi',0,1,'C');\n $pdf->Image('pdf/logo.png',23,10,16);\n\n $pdf->SetFont('Arial','',10);\n $arr = array(\n array('Nomor Agenda', $row[noagenda]),\n array('Tanggal Agenda', $row[tglagenda]),\n array('Agno TU', $row[nosuratintern]),\n array('Tanggal TU', $row[tglsuratintern]),\n array('', ''),\n array('Nomor Surat', $row[nosuratpengirim]),\n array('Tanggal', $row[tglsuratpengirim]),\n array('Pengirim', $row[namapengirim]),\n array('Perihal', $row[perihal])\n );\n\n $pdf->SetY(40);\n\n for ($i=0, $c=sizeof($arr); $i<$c; $i++) {\n $pdf->SetX(13);\n $pdf->Cell(31, 5, $arr[$i][0]);\n $pdf->Cell(5,5,( !in_array($i, array(4,9)) ? ':' : '') );\n $pdf->MultiCell( ($i < 5 ? 100 : 158), 5, $arr[$i][1],0,1);\n }\n\n $pdf->SetY(45);\n\n $arr = array(\n array('Jenis Surat', $arr_ms_sifatsurat[$row['ms_sifatsurat_id']])\n );\n\n\n for ($i=0, $c=sizeof($arr); $i<$c; $i++) {\n $pdf->SetX(155);\n $pdf->Cell(20, 5, $arr[$i][0]);\n $pdf->Cell(5,5,':');\n if ($i==0) $pdf->SetFont('','B');\n $pdf->MultiCell(70, 5, $arr[$i][1],0,1);\n if ($i==0) $pdf->SetFont('','');\n }\n\n $arr = array(\n array('Diteruskan kepada :'),\n array('KMA RI'),\n array('WKMA RI Bid. Yud'),\n array('WKMA RI Bid. Non Yud'),\n array('Para Tuaka'),\n array('Kabawas'),\n array('Lainnya'),\n );\n\n $pdf->SetY(120);\n\n for ($i=0, $c=sizeof($arr); $i<$c; $i++) {\n $pdf->SetX(($i==0?155:163));\n $pdf->Cell(31, 7, $arr[$i][0], 0, 1);\n }\n\n $pdf->SetFont('Arial','',8);\n $pdf->SetY(251);\n\n for ($i=0; $i<6; $i++) {\n $pdf->Rect(157, 128+($i*7), 4 , 4);\n }\n\n $pdf->SetY(150);\n $pdf->SetX(130);\n\n }\n \n $pdf->Output();\n }\n }", "title": "" }, { "docid": "21800f9bd98c84653ff6f9ff7bd9fdea", "score": "0.5635546", "text": "public function listarPDF(Request $request){\n $historial = Academias::join('historial','academia.id','=','historial.id_academia')\n ->selectRaw('academia.nombre,count(*) as total')\n ->where('historial.id_grupo', $request->id)\n ->where('historial.status', 'Reprobado')\n ->groupBy('academia.nombre')->get();\n $historial2 = Academias::join('historial','academia.id','=','historial.id_academia')\n ->selectRaw('academia.nombre,count(*) as total')\n ->where('historial.id_grupo', $request->id)\n ->where('historial.status', 'Aprobado')\n ->groupBy('academia.nombre')->get();\n $historial3 = Academias::join('historial','academia.id','=','historial.id_academia')\n ->selectRaw('academia.nombre,count(*) as total')\n ->where('historial.id_grupo', $request->id)\n ->where('historial.status', 'Espera')\n ->groupBy('academia.nombre')->get();\n $cont= Historial::where('status', 'Reprobado')->where('id_grupo', $request->id)->count();\n $cont2= Historial::where('status', 'Aprobado')->where('id_grupo', $request->id)->count();\n $cont3= Historial::where('status', 'Espera')->where('id_grupo', $request->id)->count();\n $total = $cont+$cont2+$cont3;\n if($total==0){\n $total=1;\n }\n $paprobado=($cont2/$total)*100;\n $preprobado=($cont/$total)*100;\n $pdf = \\PDF::loadView('pdf.grupospdf',['total'=>$total,'preprobado'=>$preprobado,'paprobado'=>$paprobado,'cont'=>$cont,'cont2'=>$cont2,'cont3'=>$cont3,'historial'=>$historial,'historial2'=>$historial2,'historial3'=>$historial3]);\n return $pdf->download('grupos.pdf');\n }", "title": "" }, { "docid": "ac7867433e32163dce4aeb711fcc5e3f", "score": "0.56328934", "text": "public function laporan_rambu_terpasang(){\n $lokasi_rambu = lokasi_rambu::where('status_pasang', 1)->get();\n $pejabat_struktural =pejabat_struktural::where('jabatan','kasi reksa')->get();\n $tgl= Carbon::now()->format('d-m-Y');\n\n $pdf =PDF::loadView('laporan.rambu_terpasang_laporan', ['lokasi_rambu' => $lokasi_rambu,'tgl'=>$tgl,'pejabat_struktural'=>$pejabat_struktural]);\n $pdf->setPaper('a4', 'potrait');\n return $pdf->download('Laporan rambu terpasang.pdf');\n }", "title": "" }, { "docid": "e2f5f3a18738f3997e183bc67158bc60", "score": "0.562262", "text": "protected function Clientes() {\r\n\r\n\t\t$this->pdf->SetFont('Arial',null,8);\r\n\t\t$this->pdf->SetLineWidth(0.6);\r\n\t\t$this->pdf->Ln(5);\r\n\r\n\t\t$querys = \"SELECT id FROM funcionarios WHERE funcao=1 ORDER BY Nome\";\r\n\r\n\t\t$sql = $this->model->query($querys);\r\n\r\n\t\twhile ($linha = mysql_fetch_assoc($sql)) {\r\n\t\t\tif (isset($addPage) && $addPage!=$linha[\"id\"]) {\r\n\t\t\t\t$this->pdf->AddPage();\r\n\t\t\t\t$this->pdf->SetXY(10,10);\r\n\t\t\t}\r\n\t\t\t$addPage = $linha[\"id\"];\r\n\r\n\t\t\t\r\n\t\t\t$vendedor = $this->pegaDados(\"funcionarios\",$linha[\"id\"]);\r\n\t\t\t$this->pdf->Ln(0);\r\n\t\t\t$this->pdf->SetFont('Arial',null,15);\r\n\t\t\t$this->pdf->Cell(75,8,utf8_decode($vendedor['nome']), 0,1,'L',0);\r\n\t\t\t$this->pdf->SetFont('Arial',null,10);\r\n\r\n\r\n\t\t\t$this->pdf->Cell(80,5,'Nome', 1,0,'C',0);\r\n\t\t\t$this->pdf->Cell(40,5,'Cidade', 1,0,'C',0);\r\n\t\t\t$this->pdf->Cell(30,5,'Fone', 1,0,'C',0);\r\n\t\t\t$this->pdf->Cell(40,5,'CPF', 1,0,'C',0);\r\n\r\n\t\t\t$this->pdf->Ln(0);\r\n\t\t\t$this->pdf->SetLineWidth(0.4);\r\n\r\n\r\n\r\n\t\t\t$query = \"SELECT * FROM clientes WHERE vendedor=\".$linha[\"id\"].\" ORDER BY cidade ASC, nome ASC\";\r\n\r\n\t\t\t$valores_db = $this->model->query($query);\r\n\r\n\t\t\twhile ($cliente = mysql_fetch_assoc($valores_db)) {\r\n\r\n\t\t\t\t$this->pdf->Ln(5);\r\n\t\t\t\t$cidade = $this->pegaDadosCodigo(\"municipios\",$cliente[\"cidade\"]);\r\n\r\n\t\t\t\t$this->pdf->Cell(80,5,substr(utf8_decode($cliente['nome']), 0,42), 1,0,'L',0);\r\n\t\t\t\t$this->pdf->Cell(40,5,ucwords(strtolower(substr(utf8_decode($cidade['nome']), 0,21))), 1,0,'C',0);\r\n\t\t\t\t$this->pdf->Cell(30,5,$cliente['fone'], 1,0,'C',0);\r\n\t\t\t\t$this->pdf->Cell(40,5,$cliente['cpf'], 1,0,'C',0);\r\n\t\t\t\t$this->pdf->Ln(0);\r\n\r\n\t\t\t}\r\n\r\n\t\t\t$this->pdf->Ln(5);\r\n\t\t}\r\n\r\n\t\t$this->pdf->Ln();\r\n\t}", "title": "" }, { "docid": "8ffb7485b120cf644ac3a30b38c1fe0d", "score": "0.5621279", "text": "public function generaDocumentos(){\n \n $orden=(StaDocuAlu::find()->where([\n 'talleresdet_id'=>$this->id,\n // 'codocu'=>$this->codocu,\n ])->count()>0)?2:1;\n\n $codes=staModule::docCodes();\n \n foreach($codes as $code){\n if(!($orden==2 && $code==104)){\n StaDocuAlu::firstOrCreateStatic([\n 'talleresdet_id'=>$this->id,\n 'codocu'=>$code,\n 'orden'=>$orden,\n 'codfac'=>$this->codfac,\n 'status'=>Aluriesgo::FLAG_NORMAL,\n ]); \n }\n \n }\n \n }", "title": "" }, { "docid": "ff22a0e43246e84edd80bb3a0ba6750d", "score": "0.56161815", "text": "private function generatePDF($id) {\n \n /* New instance of FPDF class */\n $pdf = new FPDF();\n \n /* Get conference's configuration data */\n $config = Conference::getConfiguration();\n \n /* Add a new page */\n $pdf->AddPage();\n \n /* Logo */\n $logo_path = 'conferences/' . $this->url . '/images/logo.jpg';\n \n /* Get the height of the logo */\n $size = GetImageSize($logo_path);\n $multiplier = $size[0] / 215;\n $height = (($size[1] / $multiplier) / 5) + 15;\n \n /* Output logo */\n $pdf->Image($logo_path, 10, 5, 70);\n \n \n $pdf->Ln(-20+$height);\n /* Name of the event */\n $pdf->SetFont('Arial','B',16);\n $pdf->Cell(0,55,iconv('UTF-8', 'windows-1252', $config['name']),0,0);\n $pdf->Ln(20);\n \n /* Subtitle of the event */\n $pdf->SetFont('Arial','I',11);\n $pdf->Cell(0,30,iconv('UTF-8', 'windows-1252', $config['name_subtitle']),0,0);\n \n /* Line */\n $pdf->Line(10, 30+$height, 200, 30+$height);\n $pdf->Ln(30);\n \n /* Title */\n $pdf->SetFont('Arial','BI',14);\n $pdf->Cell(100,5,'Registration Overview',0,0);\n $pdf->Ln(10);\n \n /* Get user's data */\n $user_data = UserAccount::getUserData($id);\n \n /* Get registration form's data from the database */\n $result = RegForm::getAllFields();\n \n /* Now roll through all fields and print the data */\n while ($data = mysqli_fetch_array($result)) {\n \n /* We don't need to print titles titles */\n if ($data['type'] != 'title') {\n \n /* Convert country code to country name */\n if ($data['type'] == 'country_select') {\n $user_data[$data['db_column']] = convertCountry($user_data[$data['db_column']]);\n }\n \n /* Print all values which are not empty */\n if (!empty($user_data[$data['db_column']])) {\n \n $pdf->SetFont('Arial','B',11);\n $pdf->Cell(60,6,(iconv('UTF-8', 'windows-1252', RegForm::getCaption($data['db_column'])) . ': '),0,0,\"R\");\n $pdf->SetFont('Arial','',11);\n $pdf->Cell(100,6,iconv('UTF-8', 'windows-1252', $user_data[$data['db_column']]),0,1);\n \n } \n }\n }\n \n /* Return PDF */\n return $pdf->Output(\"\", \"S\");\n \n }", "title": "" }, { "docid": "7f4534c361fe565b9454482cd730165c", "score": "0.5611208", "text": "public function invoiceDocumentList( $list, $params )\n {\n// 2.- Comprobar que están todos los de la lista ( comparando count() )\n\n try {\n\n $customer = $this->customer\n ->with('currency')\n ->findOrFail($params['customer_id']);\n\n $documents = $this->document\n ->where('status', 'closed')\n ->where('invoiced_at', null)\n ->where('is_invoiceable', '>', 0)\n ->with('lines')\n ->with('lines.linetaxes')\n // ->with('customer')\n // ->with('currency')\n // ->with('paymentmethod')\n ->orderBy('document_date', 'asc')\n ->orderBy('id', 'asc')\n // ->findOrFail( $list );\n ->find( $list );\n \n } catch (\\Illuminate\\Database\\Eloquent\\ModelNotFoundException $e) {\n\n return redirect()->back()\n ->with('error', l('Some records in the list [ :id ] do not exist', ['id' => implode(', ', $list)], 'layouts'));\n \n }\n\n// 4.- Cear cabecera\n\n // Header\n // Common data\n $data = [\n// 'company_id' => $this->company_id,\n 'customer_id' => $customer->id,\n// 'user_id' => $this->,\n\n 'sequence_id' => $params['sequence_id'],\n\n 'created_via' => 'aggregate_shipping_slips',\n\n 'document_date' => $params['document_date'],\n\n 'currency_conversion_rate' => $customer->currency->conversion_rate,\n// 'down_payment' => $this->down_payment,\n\n 'document_discount_percent' => array_key_exists('document_discount_percent', $params) ?\n $params['document_discount_percent'] : $customer->discount_percent,\n\n 'document_ppd_percent' => array_key_exists('document_ppd_percent', $params) ?\n $params['document_ppd_percent'] : $customer->discount_ppd_percent,\n\n\n 'total_currency_tax_incl' => $documents->sum('total_currency_tax_incl'),\n 'total_currency_tax_excl' => $documents->sum('total_currency_tax_excl'),\n// 'total_currency_paid' => $this->total_currency_paid,\n\n 'total_tax_incl' => $documents->sum('total_tax_incl'),\n 'total_tax_excl' => $documents->sum('total_tax_excl'),\n\n// 'commission_amount' => $this->commission_amount,\n\n // Skip notes\n\n 'status' => 'draft',\n 'onhold' => 0,\n 'locked' => 0,\n\n 'invoicing_address_id' => $customer->invoicing_address_id,\n// 'shipping_address_id' => $this->shipping_address_id,\n// 'warehouse_id' => $this->warehouse_id,\n// 'shipping_method_id' => $this->shipping_method_id ?? $this->customer->shipping_method_id ?? Configuration::getInt('DEF_CUSTOMER_SHIPPING_METHOD'),\n// 'carrier_id' => $this->carrier_id,\n 'sales_rep_id' => $customer->sales_rep_id,\n 'currency_id' => $customer->currency->id,\n 'payment_method_id' => \n (isset($params['payment_method_id']) && $params['payment_method_id']) \n ? $params['payment_method_id']\n : $customer->getPaymentMethodId(),\n 'template_id' => $params['template_id'],\n ];\n\n // Model specific data\n $extradata = [\n 'type' => 'invoice',\n 'payment_status' => 'pending',\n// 'stock_status' => 'completed',\n ];\n\n\n // Let's get dirty\n// CustomerInvoice::unguard();\n $invoice = CustomerInvoice::create( $data + $extradata );\n// CustomerInvoice::reguard();\n\n\n// 5a.- Añadir Albarán\n// 5b.- Crear enlaces para trazabilidad de documentos\n // Initialize grouped lines collection\n // $grouped_lines = DocumentLine::whereIn($this->getParentModelSnakeCase().'_id', $list)->get();\n\n // Initialize totals\n $total_currency_tax_incl = 0;\n $total_currency_tax_excl = 0;\n $total_tax_incl = 0;\n $total_tax_excl = 0;\n\n // Initialize line sort order\n $i = 0;\n\n foreach ($documents as $document) {\n # code...\n $i++;\n\n //\n // Text line announces Shipping Slip\n //\n // Shipping Address stub\n $addr_stub = $document->hasShippingAddress() ? ' '.$document->shippingaddress->alias : '';\n\n $line_data = [\n 'line_sort_order' => $i*10, \n 'line_type' => 'comment', \n 'name' => l('Shipping Slip: :id [:date]', ['id' => $document->document_reference, 'date' => abi_date_short($document->document_date)]) . $addr_stub,\n// 'product_id' => , \n// 'combination_id' => , \n 'reference' => $document->document_reference, \n// 'name', \n 'quantity' => 1, \n 'measure_unit_id' => Configuration::getInt('DEF_MEASURE_UNIT_FOR_PRODUCTS'),\n// 'cost_price', 'unit_price', 'unit_customer_price', \n// 'prices_entered_with_tax',\n// 'unit_customer_final_price', 'unit_customer_final_price_tax_inc', \n// 'unit_final_price', 'unit_final_price_tax_inc', \n// 'sales_equalization', 'discount_percent', 'discount_amount_tax_incl', 'discount_amount_tax_excl', \n 'total_tax_incl' => 0,\n 'total_tax_excl' => 0,\n// 'tax_percent', 'commission_percent', \n 'notes' => '', \n 'locked' => 0,\n // 'customer_shipping_slip_id',\n 'tax_id' => Configuration::get('DEF_TAX'), // Just convenient\n // 'sales_rep_id'\n ];\n\n $invoice_line = CustomerInvoiceLine::create( $line_data );\n\n $invoice->lines()->save($invoice_line);\n\n // Add current Shipping Slip lines to Invoice\n foreach ($document->lines as $line) {\n # code...\n $i++;\n\n // $invoice_line = $line->toInvoiceLine();\n\n // Common data\n $data = [\n ];\n\n $data = $line->toArray();\n // id\n unset( $data['id'] );\n // Parent document\n unset( $data[$this->getParentModelSnakeCase().'_id'] );\n // Dates\n unset( $data['created_at'] );\n unset( $data['deleted_at'] );\n // linetaxes\n unset( $data['linetaxes'] );\n // Sort order\n $data['line_sort_order'] = $i*10; \n // Locked \n $data['locked'] = ( $line->line_type == 'comment' ? 0 : 1 ); \n\n // Model specific data\n $extradata = [\n ];\n\n // abi_r($this->getParentModelSnakeCase().'_id');\n // abi_r($data, true);\n\n\n // Let's get dirty\n CustomerInvoiceLine::unguard();\n $invoice_line = CustomerInvoiceLine::create( $data + $extradata );\n CustomerInvoiceLine::reguard();\n\n $invoice->lines()->save($invoice_line);\n\n foreach ($line->taxes as $linetax) {\n\n // $invoice_line_tax = $this->lineTaxToInvoiceLineTax( $linetax );\n // Common data\n $data = [\n ];\n\n $data = $linetax->toArray();\n // id\n unset( $data['id'] );\n // Parent document\n unset( $data[$this->getParentModelSnakeCase().'_line_id'] );\n // Dates\n unset( $data['created_at'] );\n unset( $data['deleted_at'] );\n\n // Model specific data\n $extradata = [\n ];\n\n\n // Let's get dirty\n CustomerInvoiceLineTax::unguard();\n $invoice_line_tax = CustomerInvoiceLineTax::create( $data + $extradata );\n CustomerInvoiceLineTax::reguard();\n\n $invoice_line->taxes()->save($invoice_line_tax);\n\n }\n }\n\n // Not so fast, Sony Boy\n\n $invoice->makeTotals();\n\n // Manage Invoice Status\n switch ( $params['status'] ) {\n case 'draft':\n # Noting to do\n break;\n \n case 'confirmed':\n # code...\n $invoice->confirm();\n break;\n \n case 'closed':\n # code...\n $invoice->confirm();\n $invoice->close();\n break;\n \n case 'canceled':\n # code...\n $invoice->cancel();\n break;\n \n default:\n # code...\n break;\n }\n\n\n // Final touches\n $document->invoiced_at = \\Carbon\\Carbon::now();\n $document->save();\n\n\n // Document traceability\n // leftable is this document\n // rightable is Customer Invoice Document\n $link_data = [\n 'leftable_id' => $document->id,\n 'leftable_type' => $document->getClassName(),\n\n 'rightable_id' => $invoice->id,\n 'rightable_type' => CustomerInvoice::class,\n\n 'type' => 'traceability',\n ];\n\n $link = DocumentAscription::create( $link_data );\n }\n\n // Good boy, so far\n\n\n\n\n // abi_r($grouped_lines, true);\n\n\n\n return redirect('customerinvoices/'.$invoice->id.'/edit')\n ->with('success', l('This record has been successfully created &#58&#58 (:id) ', ['id' => $invoice->id], 'layouts'));\n\n\n\n\n\n// 3.- Si algún documento tiene plantilla diferente, generar factura para él <= Tontá: el albarán NO tiene plantilla de Factura\n\n// 6.- Crear línea de texto con los albaranes ???\n\n// 7.- Crear líneas agrupadas ???\n\n// 8.- Manage estados de documento, pago y stock\n\n\n // Prepare Logger\n $logger = \\aBillander\\WooConnect\\WooOrderImporter::logger();\n\n $logger->empty();\n $logger->start();\n\n // Do the Mambo!\n foreach ( $list as $oID ) \n {\n $logger->log(\"INFO\", 'Se descargará el Pedido: <span class=\"log-showoff-format\">{oid}</span> .', ['oid' => $oID]);\n\n $importer = \\aBillander\\WooConnect\\WooOrderImporter::processOrder( $oID );\n }\n\n $logger->stop();\n\n return redirect('activityloggers/'.$logger->id)\n ->with('success', l('This record has been successfully updated &#58&#58 (:id) ', ['id' => $logger->id], 'layouts'));\n }", "title": "" }, { "docid": "e9096af102de3b3e709b8ae77a107650", "score": "0.56074", "text": "public function Print()\n {\n\n $datapegawai = $this->db->get('tb_form_mt')->result();\n foreach ($datapegawai as $row) {\n\n $pdf = new FPDF('P', 'mm', 'A4');\n $pdf->SetMargins(25, 5);\n //$pdf->SetLeftMargin(25);\n //$pdf->SetRightMargin(25);\n // membuat halaman baru\n $pdf->AddPage();\n\n $pdf->SetLeftMargin(25);\n $pdf->SetRightMargin(25);\n $cellWidth = 95;\n $cellHeight = 7;\n\n setlocale(LC_ALL, 'id-ID', 'id_ID');\n $tgl_srt = $row->tgl_mt;\n // $tgl_kmbl = $row->tgl_kembali7;\n\n $tgl_perawatan = strftime(\"%A, %d %B %Y\", strtotime($tgl_srt));\n // $tgl_kembali = strftime(\"%A, %d %B %Y\", strtotime($tgl_kmbl));\n\n\n // setting jenis font yang akan digunakan\n $pdf->SetFont('Times', '', 16);\n\n $pdf->Cell(100, 5, ' ', 0, 1);\n $pdf->Cell(100, 5, ' ', 0, 1);\n $pdf->Cell(100, 5, ' ', 0, 1);\n $pdf->Image('assets/dist/img/logolapan.png', 13, 20, 30);\n $pdf->Cell(20, 5, ' ', 0, 0);\n $pdf->Cell(1, 5, 'LEMBAGA PENERBANGAN DAN ANTARIKSA NASIONAL', 0, 0);\n\n $pdf->SetFont('Times', '', 12);\n\n $pdf->Cell(10, 3, '', 0, 1); //spasi\n $pdf->Cell(10, 5, '', 0, 1); //spasi\n $pdf->Cell(45, 5, ' ', 0, 0);\n $pdf->Cell(1, 5, 'Jl. Jend. A. Yani km. 6, Parepare, Sulawesi Selatan 91112', 0, 0);\n\n $pdf->Cell(10, 5, '', 0, 1); //spasi\n $pdf->Cell(38, 5, ' ', 0, 0);\n $pdf->Cell(1, 5, 'Telepon (0421) 22288 (Hunting), Faksimil (0421) 3311663, 22270', 0, 0);\n\n $pdf->Cell(10, 5, '', 0, 1); //spasi\n $pdf->Cell(37, 5, ' ', 0, 0);\n $pdf->Cell(1, 5, 'e-mail : lapan.parepare@lapan.go.id, Laman : www.rsgs.lapan.go.id', 0, 0);\n\n $pdf->SetLeftMargin(13);\n $pdf->Cell(10, 4, '', 0, 1); //spasi\n $pdf->Cell(182, 5, ' ', 'B', 0);\n $pdf->Cell(10, 2, '', 0, 1); //spasi\n $pdf->Cell(182, 4, ' ', 'B', 0);\n\n $pdf->SetLeftMargin(25);\n $pdf->SetFont('Times', 'B', 15);\n $pdf->Cell(100, 5, '', 0, 0);\n $pdf->Cell(10, 5, '', 0, 1); //spasi\n $pdf->Cell(10, 5, '', 0, 1); //spasi\n $pdf->Cell(170, 7, 'LAPORAN MAINTENANCE STASIUN BUMI', 0, 0, 'C');\n $pdf->Cell(10, 4, '', 0, 1); //spasi\n // Set Font\n $pdf->SetFont('Times', '', 13);\n\n $pdf->Cell(10, ($cellHeight), '', 0, 1); //spasi\n $pdf->Cell(40, ($cellHeight), 'No', 0, 0);\n $pdf->Cell(3, ($cellHeight), ':', 0, 0);\n $pdf->MultiCell(95, ($cellHeight), $row->no_mt, 0, 'L');\n\n //tinggi cell maksud perjalanan\n $cellWidth = 95;\n $cellHeight = 7;\n if ($pdf->GetStringWidth($row->petugas2) < $cellWidth) {\n $line = 1;\n } else {\n $textLength = strlen($row->petugas2); //total panjang teks\n $errMargin = 5; //margin kesalahan lebar sel, untuk jaga-jaga\n $startChar = 0; //posisi awal karakter untuk setiap baris\n $maxChar = 0; //karakter maksimum dalam satu baris, yang akan ditambahkan nanti\n $textArray = array(); //untuk menampung data untuk setiap baris\n $tmpString = \"\"; //untuk menampung teks untuk setiap baris (sementara)\n\n while ($startChar < $textLength) { //perulangan sampai akhir teks\n //perulangan sampai karakter maksimum tercapai\n while (\n $pdf->GetStringWidth($tmpString) < ($cellWidth - $errMargin) &&\n ($startChar + $maxChar) < $textLength\n ) {\n $maxChar++;\n $tmpString = substr($row->petugas2, $startChar, $maxChar);\n }\n //pindahkan ke baris berikutnya\n $startChar = $startChar + $maxChar;\n //kemudian tambahkan ke dalam array sehingga kita tahu berapa banyak baris yang dibutuhkan\n array_push($textArray, $tmpString);\n //reset variabel penampung\n $maxChar = 0;\n $tmpString = '';\n }\n //dapatkan jumlah baris\n $line = count($textArray);\n }\n\n $pdf->Cell(10, 0, '', 0, 1); //spasi\n $pdf->Cell(40, ($cellHeight), 'Tanggal', 0, 0);\n $pdf->Cell(3, ($cellHeight), ':', 0, 0);\n $pdf->Cell(95, ($cellHeight), $tgl_perawatan, 0, 0);\n\n $pdf->Cell(10, ($cellHeight), '', 0, 1); //spasi\n $pdf->Cell(40, ($cellHeight), 'Nama Petugas', 0, 0);\n $pdf->Cell(3, ($cellHeight), ':', 0, 0);\n $pdf->Cell(5, ($cellHeight), '1.', 0, 0);\n $pdf->Cell(95, ($cellHeight), $row->petugas1, 0, 0);\n\n $pdf->Cell(10, ($cellHeight), '', 0, 1); //spasi\n $pdf->Cell(40, ($cellHeight), '', 0, 0);\n $pdf->Cell(3, ($cellHeight), '', 0, 0);\n $pdf->Cell(5, ($cellHeight), '2.', 0, 0);\n $pdf->Cell(95, ($cellHeight), $row->petugas2, 0, 0);\n\n $pdf->Cell(10, (3), '', 0, 1); //spasi\n $pdf->Cell(10, ($cellHeight), '', 0, 1); //spasi\n $pdf->Cell(40, ($cellHeight), 'Nama Barang', 0, 0);\n $pdf->Cell(3, ($cellHeight), ':', 0, 0);\n $pdf->Cell(95, ($cellHeight), $row->nama_barang, 0, 0);\n\n $pdf->Cell(10, ($cellHeight), '', 0, 1); //spasi\n $pdf->Cell(40, ($cellHeight), 'Kode Barang', 0, 0);\n $pdf->Cell(3, ($cellHeight), ':', 0, 0);\n $pdf->Cell(95, ($cellHeight), $row->kode_barang, 0, 0);\n\n $pdf->Cell(10, ($cellHeight), '', 0, 1); //spasi\n $pdf->Cell(40, ($cellHeight), 'Deskripsi Kegiatan', 0, 0);\n $pdf->Cell(3, ($cellHeight), ':', 0, 0);\n $pdf->Cell(95, ($cellHeight), '', 0, 0);\n\n $pdf->Cell(10, ($cellHeight), '', 0, 1); //spasi\n $pdf->Cell(10, ($cellHeight), '', 0, 1); //spasi\n $pdf->Cell(15, ($cellHeight), '', 0, 0);\n $pdf->MultiCell(140, ($cellHeight), $row->deskripsi, 0, 'J');\n }\n\n $pdf->Output('D', 'Logbook Perawatan Alat.pdf');\n\n $this->M_maintenance->after_print_update();\n $this->M_maintenance->after_print();\n // redirect('dashboard/index');\n }", "title": "" }, { "docid": "a99c342af08a8546db13e8ad8649e111", "score": "0.560306", "text": "public function laporan_rambu_kecamatan($id){\n $id = IDCrypt::Decrypt($id);\n \n $kelurahan = kelurahan:: with('lokasi_rambu')\n ->where('kecamatan_id',$id)\n ->get();\n $lokasi= $kelurahan->flatten(2);\n $lokasi->values()->all();\n $kecamatan = kecamatan::findOrFail($id); \n $pejabat_struktural =pejabat_struktural::where('jabatan','kasi reksa')->get();\n $tgl= Carbon::now()->format('d-m-Y');\n $pdf =PDF::loadView('laporan.kecamatan_detail', ['tgl'=>$tgl,'lokasi' => $lokasi,'kecamatan' => $kecamatan,'pejabat_struktural'=>$pejabat_struktural]);\n $pdf->setPaper('a4', 'potrait');\n return $pdf->download('Laporan kebutuhan rambu perkelurahan.pdf');\n }", "title": "" }, { "docid": "b27506d1f8edeff706aed0ff3a5405e5", "score": "0.5602699", "text": "public function reportePDF($tipo, $criterio='', $columna='')\n {\n switch(strval($tipo)){\n case 'listar':\n // listado\n $this->_resultSet = $this->listar(0);\n $_nombre = 'lista_domicilio.pdf';\n $_titulo = 'Listado de domicilio';\n break;\n case 'buscar':\n //busqueda\n $this->_resultSet = $this->buscar($criterio, $columna,0);\n $_nombre = 'busqueda_domicilio.pdf';\n $_titulo = 'Busqueda de Domicilio por \"'.$criterio . '\"';\n break;\n default:\n throw new Exception('No hay tipo de reporte Definido'); return;\n break;\n }\n require_once 'fabricapdf.php';\n /**\n * Cell ($ancho, $alto=0, $texto='', $borde=0, $salto=0, $alineado='', $rellenar=false, $enlace='', $stretch=0, $ignorar_altura_minima=false, $alineado='T',\n * $alineadoVertical='M');\n * MultiCell($ancho, $altura, $texto, $borde=0, $alineado='J', $rellenar=false, $saltoLinea=1, $x='', $y='', $resetearAltura=true, $stretch=0, $esHTML=false,\n * autopadding=true, $maximaAltura=0, $alineadoVertical='T', $ajustarCelda=false)\n */\n $this->_reportePDF = new FabricaPDF('P','mm', 'CARTA',true,'UTF-8',false);\n $this->_reportePDF->colocarCaracteristicas($this->_reportePDF, $_titulo, 'Saul Franco');\n $this->_reportePDF->colocarMargenes($this->_reportePDF,30,10,5,5,10,10, true);\n $this->_reportePDF->AddPage();\n $this->_reportePDF->SetFont('times','B',9);\n $this->_reportePDF->Cell(10,0,'ID',0,0,'R',0);\n $this->_reportePDF->Cell(10);\n $this->_reportePDF->Cell(10,0,'Calle',0,0,'L',0); // \n $this->_reportePDF->Cell(10);\n $this->_reportePDF->Cell(12,0,'Numero',0,0,'L',0); // el primer numero es para el ancho de la barra\n $this->_reportePDF->Cell(10);\n $this->_reportePDF->Cell(32,0,'Colonia',0,0,'L',0); // \n $this->_reportePDF->Cell(10);\n $this->_reportePDF->Cell(39,0,'Municipio',0,0,'L',0); // el 0,0 es saltar linea\n $this->_reportePDF->Cell(1);\n $this->_reportePDF->Cell(22,0,'Entidad',0,0,'L',0); // el 58 es para el titulo de la descripcion se acomode con la base.\n $this->_reportePDF->Cell(1);\n $this->_reportePDF->Cell(12,0,'CP',0,0,'L',0);\n $this->_reportePDF->Ln(10);\n $this->_reportePDF->SetFont('times','',9);\n $this->_reportePDF->SetFillColor(217,248,207);\n $i=0;\n while($this->_registro = $this->_resultSet->fetch_assoc()){\n $rellenar = ((++$i)% 2);\n $this->_reportePDF->Cell(20,0, $this->_registro['a'],0,0,'R',$rellenar,null,1);\n $this->_reportePDF->Cell(1);\n $this->_reportePDF->Cell(20,0,$this->_registro['b'],0,0,'L',$rellenar,null,1); // el largo que ocupa el pdf la columna tipo de alergia\n $this->_reportePDF->Cell(1);\n $this->_reportePDF->Cell(20,1,$this->_registro['c'],0,0,'L',$rellenar,null,1);\n $this->_reportePDF->Cell(1);\n $this->_reportePDF->Cell(40,1,$this->_registro['d'],0,0,'L',$rellenar,null,1);\n $this->_reportePDF->Cell(1);\n $this->_reportePDF->Cell(40,1,$this->_registro['e'],0,0,'L',$rellenar,null,1);\n $this->_reportePDF->Cell(1);\n $this->_reportePDF->Cell(20,0,$this->_registro['f'],0,0,'L',$rellenar,null,1);\n $this->_reportePDF->Cell(1);\n $this->_reportePDF->Cell(20,0,$this->_registro['g'],0,1,'L',$rellenar,null,1);\n }\n $this->_reportePDF->Ln(5);\n $this->_reportePDF->SetFont('times','B',9);\n $this->_reportePDF->Cell(0,0,'Este reporte contiene '. $this->_resultSet->num_rows . ' Domicilio(s).',0,1,'L',0);\n $this->_reportePDF->Output('../pdfs/'. $_nombre, 'F');\n return $_nombre;\n }", "title": "" }, { "docid": "a342e95dd5261108f09b4bd4cad20de6", "score": "0.5602407", "text": "public function printstruk() {\n $ids = $this->GetGetValue(\"id\", array());\n if (count($ids) == 0) {\n $this->persistence->SaveState(\"error\", \"Harap pilih data yang akan dicetak !\");\n redirect_url(\"ar.invoice\");\n return;\n }\n $report = array();\n foreach ($ids as $id) {\n $inv = new Invoice();\n $inv = $inv->LoadById($id);\n $inv->LoadDetails();\n $report[] = $inv;\n }\n $this->Set(\"report\", $report);\n }", "title": "" }, { "docid": "a7daba83b45f98c60bb76d743e4e1846", "score": "0.5586311", "text": "public function edit($id) //descargar los datos de alta emprendedor\n {\n $emprendedor = Emprendedor::findOrFail($id);\n\n //$ids = $emprendedor->id; \n\n $colaborador =Colaborador::where('emprendedor_id', $emprendedor->id)->get();\n \n $pdf = PDF::loadview('Asesor.pdf.infoAltaEmpre', compact('emprendedor','colaborador'));\n\n return $pdf->download();\n\n\n }", "title": "" }, { "docid": "cbefadaade629f65f849fb9df128addf", "score": "0.5581092", "text": "public function laporan_rambu_terpasang_kelurahan($id){\n $id = IDCrypt::Decrypt($id);\n $kelurahan = kelurahan::findOrFail($id);\n $lokasi_rambu =lokasi_rambu::where([\n 'kelurahan_id' => $id,\n 'status_pasang' => 1\n ])->get();\n $pejabat_struktural =pejabat_struktural::where('jabatan','kasi reksa')->get();\n $tgl= Carbon::now()->format('d-m-Y');\n $pdf =PDF::loadView('laporan.rambu_terpasang_kelurahan_laporan', ['lokasi_rambu' => $lokasi_rambu,'tgl'=>$tgl,'kelurahan' => $kelurahan,'pejabat_struktural'=>$pejabat_struktural]);\n $pdf->setPaper('a4', 'potrait');\n return $pdf->download('Laporan kebutuhan rambu perkelurahan.pdf');\n }", "title": "" }, { "docid": "ac1276891c9f71c3689f31c41063f9c6", "score": "0.55808103", "text": "public function reporteusuariovendidopdf(Request $request)\n {\n $date = $request->date;\n $datebus = new Carbon($date);\n $datoexacto = $datebus->format('y-m');\n\n $usuarios = User::all();\n // foreach ($usuarios as $usuario) { \n // $properties = Property::join('zones', 'zones.id', '=', 'properties.zone_id')\n // ->join('owners_currents', 'owners_currents.id', '=', 'properties.owner_current_id')\n // ->join('categories', 'categories.id','=','properties.category_id')\n // ->join('types_properties', 'types_properties.id','=','properties.type_property_id')\n // ->join('states','states.id','=','properties.state_id')\n // ->select('properties.id','properties.admission_date','zones.name as nombrezona','properties.street','categories.name as nombrecategoria',\n // 'types_properties.name as nombretipo','owners_currents.first_name as nombreprop','owners_currents.last_name as apellidoprop',\n // 'owners_currents.phone','owners_currents.cell_phone','states.name','properties.sale_price','properties.offer_price','properties.comission')\n // ->where('properties.user_id','=',$usuario->id)->where('states.name','=','vendido')->where('properties.admission_date','LIKE','%'.$datoexacto.'%')->get();\n // //dd($properties);\n // }\n $usuario = \\Auth::user()->first_name.' '.\\Auth::user()->last_name;\n $pdf = PDF::loadView('admin.pdf.pdfusuariovendidos',['usuarios'=>$usuarios,'usuarioadmin'=>$usuario,'date'=>$datoexacto]);\n return $pdf->stream('Reporte Vendidos por Usuario.pdf');\n\n }", "title": "" }, { "docid": "b234d508604762ecf2a37e20392ca333", "score": "0.5572283", "text": "function listarGantWf(){\n $this->procedimiento='wf.f_gant_wf';// nombre procedimiento almacenado\n $this->transaccion='WF_GATNREP_SEL';//nombre de la transaccion\n $this->tipo_procedimiento='SEL';//tipo de transaccion\n $this->setCount(false);\n \n $this->setTipoRetorno('record');\n \n $this->setParametro('id_proceso_wf','id_proceso_wf','integer');\n \n //Definicion de la lista del resultado del query\n $this->captura('id','integer'); \n $this->captura('id_proceso_wf','integer');\n $this->captura('id_estado_wf','integer');\n $this->captura('tipo','varchar'); \n $this->captura('nombre','varchar');\n $this->captura('fecha_ini','TIMESTAMP');\n \n $this->captura('fecha_fin','TIMESTAMP'); \n $this->captura('descripcion','varchar');\n $this->captura('id_siguiente','integer');\n $this->captura('tramite','varchar');\n $this->captura('codigo','varchar');\n \n $this->captura('id_funcionario','integer');\n $this->captura('funcionario','text');\n $this->captura('id_usuario','integer');\n $this->captura('cuenta','varchar');\n $this->captura('id_depto','integer');\n $this->captura('depto','varchar');\n $this->captura('nombre_usuario_ai','varchar');\n \n \n //$this->captura('id_estructura_uo','integer');\n //Ejecuta la funcion\n $this->armarConsulta();\n \n //echo $this->getConsulta();\n $this->ejecutarConsulta();\n return $this->respuesta;\n\n }", "title": "" }, { "docid": "3d1be98388fba5762529ebdc521861ea", "score": "0.5571497", "text": "public function laporan_kebutuhan_rambu(){\n $lokasi_rambu = lokasi_rambu::where('status_pasang', 0)->get();\n $pejabat_struktural =pejabat_struktural::where('jabatan','kepala dinas')->get();\n $tgl= Carbon::now()->format('d-m-Y');\n\n $pdf =PDF::loadView('laporan.kebutuhan_rambu_laporan', ['lokasi_rambu' => $lokasi_rambu,'tgl'=>$tgl,'pejabat_struktural'=>$pejabat_struktural]);\n $pdf->setPaper('a4', 'potrait');\n return $pdf->download('Laporan kebutuhan rambu.pdf');\n }", "title": "" } ]
be7ddb1cbf4dda751a6c2e03d7e2a371
This is the public method that analyses the marital data
[ { "docid": "6ea5ea3605487d45e7b99f58f7ba695f", "score": "0.0", "text": "public function actionMaritalDataTable($dataFilter, $dataRange){\n \n //Here we explicitly specify the selection rule using the user session details\n $userIdentificationCode = $this->sessionUser;\n $decodedIdentificationCode = Zf_Core_Functions::Zf_DecodeIdentificationCode($this->sessionUser);\n \n $ttv_customerMarital = ucfirst($dataFilter);\n \n $ageRange = explode(';' , $dataRange);\n \n //This holds the name of the database table that is being accessed.\n $zf_phpGridSettings['zf_tableName'] = 'ttv_customerData'; \n \n $tableTitle = $ttv_customerMarital.\" - Customer Data\";\n //This holds all the grid setting e.g. title, width, height e.t.c\n $zf_phpGridSettings['zf_gridSettings'] = zf_phpGridConfigurations::Zf_PhpGridSettings($tableTitle);\n\n //This holds all the grid actions e.g exporting data, editing data e.t.c\n $zf_phpGridSettings['zf_gridActions'] = zf_phpGridConfigurations::Zf_PhpGridActions();\n\n //This array holds all the data related to required grid columns\n $zf_gridColumns = array();\n\n $nationalId = array(\"title\"=>\"National ID\", \"name\"=>\"nationalId\", \"width\"=>15, \"editable\"=>true, \"edithidden\"=>true, \"export\"=>false); \n $zf_gridColumns[] = $nationalId;\n\n $firstName = array(\"title\"=>\"Firstname\", \"name\"=>\"firstName\", \"width\"=>15, \"editable\"=>true);\n $zf_gridColumns[] = $firstName;\n\n $lastName = array(\"title\"=>\"Lastname\", \"name\"=>\"lastName\", \"width\"=>15, \"editable\"=>true);\n $zf_gridColumns []= $lastName;\n\n $mobileNo = array(\"title\"=>\"Mobile No.\", \"name\"=>\"mobileNo\", \"width\"=>15, \"editable\"=>true);\n $zf_gridColumns[] = $mobileNo;\n \n $gender = array(\"title\"=>\"Gender\", \"name\"=>\"gender\", \"width\"=>15, \"editable\"=>true, \"search\"=>true, \"sortable\"=>true);\n $zf_gridColumns[] = $gender;\n \n //$ageBracket = array(\"title\"=>\"Age Bracket\", \"name\"=>\"ageBracket\", \"width\"=>15, \"editable\"=>true);\n //$zf_gridColumns[] = $ageBracket;\n \n $occupation = array(\"title\"=>\"Occupation\", \"name\"=>\"occupation\", \"width\"=>15, \"editable\"=>true);\n $zf_gridColumns[] = $occupation;\n \n $location = array(\"title\"=>\"Location\", \"name\"=>\"location\", \"width\"=>15, \"editable\"=>true);\n $zf_gridColumns[] = $location;\n \n \n $customerInfoPath = ZF_ROOT_PATH.APP_VIEWS. $this->currentUrl[0].DS.\"fullcustomerinfo.php?id={national_id}\"; \n $personal_data = array(\"title\"=>\"More Information\", \"name\"=>\"more_options\", \"width\"=>20, \"export\"=>true, \"link\"=>$customerInfoPath, \"align\"=>\"center\", \"search\"=>false, \"sortable\"=>false, \"editable\"=>false, \"default\"=>\"Personal Data\");\n $zf_gridColumns[] = $personal_data;\n \n $action = array(\"title\"=>\"Actions\", \"name\"=>\"act\", \"align\"=>\"center\", \"width\"=>20, \"export\"=>false);\n $zf_gridColumns[] = $action;\n\n $zf_phpGridSettings['zf_gridColumns'] = $zf_gridColumns;\n \n if($decodedIdentificationCode[4] == PLATFORM_SUPER_ADMIN || $decodedIdentificationCode[4] == TOP_THIRD_ADMIN ){\n\n $getCustomersMaritalData = \"SELECT * FROM \" . $zf_phpGridSettings['zf_tableName'] . \" WHERE maritalStatus = '\".$ttv_customerMarital.\"' AND age BETWEEN \" . $ageRange[0] . \" AND \" . $ageRange[1]; //die();\n\n }else if($decodedIdentificationCode[4] == COMPANY_ADMIN){\n\n $getCustomersMaritalData = \"SELECT * FROM \" . $zf_phpGridSettings['zf_tableName'] . \" WHERE maritalStatus = '\".$ttv_customerMarital.\"' AND companySerial = '\" .$decodedIdentificationCode[1]. \"' AND age BETWEEN \" . $ageRange[0] . \" AND \" . $ageRange[1]; //die();$getFemaleCustomers = \"SELECT * FROM \" . $table . \" WHERE gender ='female' AND companySerial = '\" .$decodedIdentificationCode[1]. \"' AND age BETWEEN \" . $ageRange[0] . \" AND \" . $ageRange[1]; //die();\n\n }else if($decodedIdentificationCode[4] == REGIONAL_MANAGER || $decodedIdentificationCode[4] == SHOP_MANAGER || $decodedIdentificationCode[4] == ASSISTANT_SHOP_MANAGER){\n\n $getCustomersMaritalData = \"SELECT * FROM \" . $zf_phpGridSettings['zf_tableName'] . \" WHERE maritalStatus = '\".$ttv_customerMarital.\"' AND companySerial = '\" .$decodedIdentificationCode[1]. \"' AND identificationCode = '\" .$userIdentificationCode. \"' AND age BETWEEN \" . $ageRange[0] . \" AND \" . $ageRange[1]; //die();\n\n }\n \n $tableQuery = $getCustomersMaritalData;\n\n $zf_phpGridSettings['zf_gridQuery'] = $tableQuery;\n \n $zf_actionData = $ttv_customerMarital.\"_\".$dataRange;\n\n Zf_View::zf_displayView('maritalAnalysis', $zf_actionData, $zf_phpGridSettings); exit();\n \n }", "title": "" } ]
[ { "docid": "fa8e1484822335993e8983e5c9f77ff3", "score": "0.5607825", "text": "abstract public function analyse();", "title": "" }, { "docid": "effbb1f14b5ea3e79a87a4c5eed03db7", "score": "0.55471", "text": "public function getMammals(){\n $species = $this->getSpecies();\n $mammals = [];\n if($species->results){\n $collect = collect($species->results);\n $results = $collect->where('classification', 'mammal');\n $data = $this->paginate($results->toArray());\n foreach($data as $key => $result){\n $mammals[$key]['name'] = $result->name;\n $homeworld = ($result->homeworld) ? $this->sendRequest($result->homeworld) : \"\";\n $mammals[$key]['homeworld'] = ($homeworld)? $homeworld->name : \"\";\n }\n }\n return [\"data\" => $data, \"mammals\" => $mammals];\n }", "title": "" }, { "docid": "e18fab2122f46047cff042e3d536f5fc", "score": "0.5465154", "text": "public function getMonths()\n\t{\n\t\t// in map with key as map and list of analysis for that months as value\n\n\t\t//get the current year details\n\t\t$year = date(\"Y\");\n\n\t\t//get the current month details\n\t\t$month = date(\"m\");\n\n\t\t$monthtemp = $month;\n\n\t\t//get the analysis of all months starting from january of current year to the current month\n\t\t$analysisarray= array();\n\n\t\t//check if month value retrieved now is greate than zero\n\t\twhile($month > 0)\n\t\t{\n\t\t\t//get the analysis model object to save details and send as json for flexibility and standards maintainence\n\t\t\t$analysis = new App\\Analysis();\n\n\t\t\t//to append zero infront of the month if the month is less than 10\n\t\t\tif($month == $monthtemp || $month > 10)\n\t\t\t{\n\t\t\t\t$analysis->generateData($month, $year);\n\t\t\t}else{\n\t\t\t\t$analysis->generateData(\"0\".$month, $year);\n\t\t\t}\n\n\t\t\t//add the month details to array\n\t\t\tarray_push($analysisarray, $analysis);\n\n\t\t\t//reduce the month value\n\t\t\t$month = $month - 1;\n\t\t}\n\n\n\t\t//return the created analysis array with months\n\t\treturn $analysisarray;\n\t}", "title": "" }, { "docid": "2a57b62408db258b1410c83cace4edac", "score": "0.54480207", "text": "public function getMars()\n {\n return $this->mars;\n }", "title": "" }, { "docid": "834ed637130f5eba38a4c3b4cae7caca", "score": "0.53913784", "text": "private function analysedata() {\n $this->setacceptoffset();\n $this->computepagelimit();\n }", "title": "" }, { "docid": "87bbc89fdcc08d1f9b677c722c55671d", "score": "0.53797495", "text": "public static function centerAnalysisInfo($project_id, $gender, $mandal, $year, $center, $by_who){\n global $Database, $Logs, $Session, $Core;\n $output = array();\n $pf = $ph = $sh = $jan = $feb = $mar = $apr = $may = $jun = $jul = $aug = $sep = $oct = $nov = $dec = \"\";\n\n $q = \"SELECT ca.challenge, ca.by_who, cad.* \n FROM \".DB_PREFIX.\"center_analysis as ca RIGHT JOIN \".DB_PREFIX.\"center_analysis_details AS cad ON cad.center_analysis_id=ca.center_analysis_id \n WHERE project_id='$project_id' AND year='$year' AND mandal='$mandal' AND gender='$gender' AND center='$center' AND by_who='$by_who'\";\n $result = $Database->result(array(__LINE__, __METHOD__, __FILE__), $q);\n\n if(count($result)>0){\n for($a=0; $a<count($result); $a++){\n $row = $result[$a];\n $pf .= ($a>0) ? '. ' : '';\n $ph .= ($a>0) ? '. ' : '';\n $sh .= ($a>0) ? '. ' : '';\n\n $output[$a] = array(\n \"challenge_id\" => $row[\"center_analysis_id\"],\n \"challenge_name\" => $row[\"challenge\"]\n );\n\n $pf .= $row[\"challenge\"].': '.(empty($row[\"people_to_focus\"]) ? 'N/A' : $row[\"people_to_focus\"]);\n $ph .= $row[\"challenge\"].': '.(empty($row[\"plan_to_help\"]) ? 'N/A' : $row[\"plan_to_help\"]);\n $sh .= $row[\"challenge\"].': '.(empty($row[\"santo_help\"]) ? 'N/A' : $row[\"santo_help\"]);\n\n $jan = (empty($jan) && empty($row[\"jan\"])) ? NULL : \"Y\";\n $feb = (empty($feb) && empty($row[\"feb\"])) ? NULL : \"Y\";\n $mar = (empty($mar) && empty($row[\"mar\"])) ? NULL : \"Y\";\n $apr = (empty($apr) && empty($row[\"apr\"])) ? NULL : \"Y\";\n $may = (empty($may) && empty($row[\"may\"])) ? NULL : \"Y\";\n $jun = (empty($jun) && empty($row[\"jun\"])) ? NULL : \"Y\";\n $jul = (empty($jul) && empty($row[\"jul\"])) ? NULL : \"Y\";\n $aug = (empty($aug) && empty($row[\"aug\"])) ? NULL : \"Y\";\n $sep = (empty($sep) && empty($row[\"sep\"])) ? NULL : \"Y\";\n $oct = (empty($oct) && empty($row[\"oct\"])) ? NULL : \"Y\";\n $nov = (empty($nov) && empty($row[\"nov\"])) ? NULL : \"Y\";\n $dec = (empty($dec) && empty($row[\"dec\"])) ? NULL : \"Y\";\n\n }\n }\n return array(\n \"challenges\" => $output,\n \"people_to_focus\" => $pf,\n \"plan_to_help\" => $ph,\n \"santo_help\" => $sh,\n \"months\" => array($jan, $feb, $mar, $apr, $may, $jun, $jul, $aug, $sep, $oct, $nov, $dec)\n );\n }", "title": "" }, { "docid": "3aeafdd08f1a8046e1e3f1b0b2f467aa", "score": "0.53704894", "text": "public function setMaritalStatus($maritalStatus) { $this->maritalStatus = $maritalStatus ; }", "title": "" }, { "docid": "cc2512a21dbd6ea5a560de9c7fdbaa23", "score": "0.53183514", "text": "public function getEmployeeMaritalList($conditions='') {\n\n global $sessionHandler;\n $query = \"SELECT\n COUNT(*) as totalCount,if(isMarried=0,'Un-Married','Married') as maritalStatus,isMarried\n FROM `employee`\n WHERE\n instituteId = \".$sessionHandler->getSessionVariable('InstituteId');\n\n $query .=\" GROUP BY isMarried\";\n\n return SystemDatabaseManager::getInstance()->executeQuery($query,\"Query: $query\");\n }", "title": "" }, { "docid": "ded0f0f54f694335f2198270e0a1fa1b", "score": "0.52953815", "text": "abstract protected function analyze();", "title": "" }, { "docid": "081dbadf289f78bdf96e63d848af1480", "score": "0.52889305", "text": "function process_metar($metar) {\n\n global $strings, $wind_dir_text_short_array, $wind_dir_text_array,\n $cloud_condition_array, $weather_array, $weather_offset;\n\n $temp_visibility_miles = '';\n $cloud_layers = 0;\n $decoded_metar['remarks'] = '';\n $decoded_metar['weather'] = '';\n\n $cloud_coverage = array('SKC' => '0',\n 'CLR' => '0',\n 'VV' => '8/8',\n 'FEW' => '1/8 - 2/8',\n 'SCT' => '3/8 - 4/8',\n 'BKN' => '5/8 - 7/8',\n 'OVC' => '8/8');\n\n $decoded_metar['metar'] = $metar;\n $parts = preg_split('/[ ]+/', $metar);\n $num_parts = count($parts);\n for ($i = 0; $i < $num_parts; $i++) {\n $part = $parts[$i];\n\n if (preg_match('/RMK|TEMPO|BECMG/', $part)) {\n /* The rest of the METAR is either a remark or temporary\n * information. We skip the rest of the METAR. */\n $decoded_metar['remarks'] .= ' ' . $part;\n break;\n } elseif ($part == 'METAR') {\n /*\n * Type of Report: METAR\n */\n $decoded_metar['type'] = 'METAR';\n } elseif ($part == 'SPECI') {\n /*\n * Type of Report: SPECI\n */\n $decoded_metar['type'] = 'SPECI';\n } elseif (preg_match('/^[A-Z]{4}$/', $part) && ! isset($decoded_metar['station'])) {\n /*\n * Station Identifier\n */\n $decoded_metar['station'] = $part;\n } elseif (preg_match('/([0-9]{2})([0-9]{2})([0-9]{2})Z/', $part, $regs)) {\n /*\n * Date and Time of Report\n * We return a standard Unix UTC/GMT timestamp suitable for\n * gmdate()\n */\n $decoded_metar['time'] = gmmktime($regs[2] + $weather_offset, $regs[3], 0,\n gmdate('m'), $regs[1], gmdate('Y'));\n } elseif (preg_match('/(AUTO|COR|RTD|CC[A-Z]|RR[A-Z])/', $part, $regs)) {\n /*\n * Report Modifier: AUTO, COR, CCx or RRx\n */\n $decoded_metar['report_mod'] = $regs[1];\n } elseif (preg_match('/([0-9]{3}|VRB)([0-9]{2,3}).*(KT|MPS|KMH)/', $part, $regs)) {\n /* Wind Group */\n $windunit = $regs[3]; /* do ereg in two parts to retrieve unit first */\n /* now do ereg to get the actual values */\n preg_match('/([0-9]{3}|VRB)([0-9]{2,3})(G([0-9]{2,3})?$windunit)/', $part, $regs);\n if ($regs[1] == 'VRB') {\n $decoded_metar['wind_deg'] = $strings['wind_vrb_long'];\n $decoded_metar['wind_dir_text'] = $strings['wind_vrb_long'];\n $decoded_metar['wind_dir_text_short'] = $strings['wind_vrb_short'];\n } else {\n $decoded_metar['wind_deg'] = $regs[1];\n $decoded_metar['wind_dir_text'] =\n $wind_dir_text_array[intval(round($regs[1]/22.5))];\n $decoded_metar['wind_dir_text_short'] =\n $wind_dir_text_short_array[intval(round($regs[1]/22.5))];\n }\n store_speed($regs[2],\n $windunit,\n $decoded_metar['wind_meters_per_second'],\n $decoded_metar['wind_knots'],\n $decoded_metar['wind_miles_per_hour']);\n\n if (isset($regs[4])) {\n /* We have a report with information about the gust. First we\n have the gust measured in knots: */\n store_speed($regs[4],$windunit,\n $decoded_metar['wind_gust_meters_per_second'],\n $decoded_metar['wind_gust_knots'],\n $decoded_metar['wind_gust_miles_per_hour']);\n }\n } elseif (preg_match('/^([0-9]{3})V([0-9]{3})$/', $part, $regs)) {\n /*\n * Variable wind-direction\n */\n $decoded_metar['wind_var_beg'] = $regs[1];\n $decoded_metar['wind_var_end'] = $regs[2];\n } elseif ($part == 9999) {\n /* A strange value. When you look at other pages you see it\n interpreted like this (where I use > to signify 'Greater\n than'): */\n $decoded_metar['visibility_miles'] = '>6.2';\n $decoded_metar['visibility_km'] = '>10';\n } elseif(preg_match('/^([0-9]{4})$/', $part, $regs)) {\n /*\n * Visibility in meters (4 digits only)\n */\n $decoded_metar['visibility_km'] = number_format($regs[1]/1000, 1);\n $decoded_metar['visibility_miles'] =\n number_format( ($regs[1]/1000) / 1.609344, 1);\n } elseif (preg_match('/^[0-9]$/', $part)) {\n /*\n * Temp Visibility Group, single digit followed by space\n */\n $temp_visibility_miles = $part;\n } elseif (preg_match('/^M?(([0-9]?)[ ]?([0-9])(\\/?)([0-9]*))SM$/',\n $temp_visibility_miles . ' ' .\n $parts[$i], $regs)) {\n /*\n * Visibility Group\n */\n if ($regs[4] == '/') {\n $vis_miles = $regs[2] + $regs[3]/$regs[5];\n } else {\n $vis_miles = $regs[1];\n }\n if ($regs[0][0] == 'M') {\n /* The visibility measured in miles, prefixed with < to\n indicate 'Less than' */\n $decoded_metar['visibility_miles'] =\n '<' . number_format($vis_miles, 1);\n /* The visibility measured in kilometers. The value is rounded\n to one decimal place, prefixed with < to indicate 'Less\n than' */\n $decoded_metar['visibility_km'] =\n '<' . number_format($vis_miles * 1.609344, 1);\n } else {\n /* The visibility measured in mile.s */\n $decoded_metar['visibility_miles'] = number_format($vis_miles, 1);\n /* The visibility measured in kilometers, rounded to one\n decimal place. */\n $decoded_metar['visibility_km'] =\n number_format($vis_miles * 1.609344, 1);\n }\n } elseif ($part == 'CAVOK') {\n /* CAVOK: Used when the visibility is greather than 10\n kilometers, the lowest cloud-base is at 5000 feet and there\n is no significant weather. */\n $decoded_metar['visibility_km'] = '>10';\n $decoded_metar['visibility_miles'] = '>6.2';\n $decoded_metar['cloud_layer1_condition'] = 'CAVOK';\n } elseif (preg_match('/^R([0-9][0-9][RLC]?)\\/([MP]?[0-9]{4})V?(P?[0-9]{4})?F?T?$/', $part, $regs)) {\n $decoded_metar['runway_nr'] = $regs[1];\n if ($regs[3]) {\n /* We have both min and max visibility. */\n $prefix = '';\n if ($regs[2][0] == 'M') {\n /* Less than. */\n $prefix = '<';\n $regs[2] = substr($regs[2], 1);\n }\n $decoded_metar['runway_vis_min_ft'] = $prefix . number_format($regs[2]);\n $decoded_metar['runway_vis_min_meter'] = $prefix . number_format($regs[2] * 0.3048);\n\n $prefix = '';\n if ($regs[3][0] == 'P') {\n /* Greather than. */\n $prefix = '>';\n $regs[3] = substr($regs[3], 1);\n }\n $decoded_metar['runway_vis_max_ft'] = $prefix . number_format($regs[3]);\n $decoded_metar['runway_vis_max_meter'] = $prefix . number_format($regs[3] * 0.3048);\n\n } else {\n /* We only have a single visibility. */\n $prefix = '';\n if ($regs[2][0] == 'M') {\n $prefix = '<';\n $regs[2] = substr($regs[2], 1);\n } elseif ($regs[2][0] == 'P') {\n $prefix = '>';\n $regs[2] = substr($regs[2], 1);\n }\n $decoded_metar['runway_vis_ft'] = $prefix . number_format($regs[2]);\n $decoded_metar['runway_vis_meter'] = $prefix . number_format($regs[2] * 0.3048);\n }\n } elseif (preg_match('/^(-|\\+|VC)?(TS|SH|FZ|BL|DR|MI|BC|PR|RA|DZ|SN|SG|GR|' .\n 'GS|PE|IC|UP|BR|FG|FU|VA|DU|SA|HZ|PY|PO|SQ|FC|SS|DS)+$/',\n $part)) {\n /*\n * Current weather-group\n */\n if ($part[0] == '-') {\n /* A light phenomenon */\n $decoded_metar['weather'] .= $strings['light'];\n $part = substr($part, 1);\n } elseif ($part[0] == '+') {\n /* A heavy phenomenon */\n $decoded_metar['weather'] .= $strings['heavy'];\n $part = substr($part, 1);\n } elseif ($part[0].$part[1] == 'VC') {\n /* Proximity Qualifier */\n $decoded_metar['weather'] .= $strings['nearby'];\n $part = substr($part, 2);\n } else {\n /* no intensity code => moderate phenomenon */\n $decoded_metar['weather'] .= $strings['moderate'];\n }\n\n while ($bite = substr($part, 0, 2)) {\n /* Now we take the first two letters and determine what they\n mean. We append this to the variable so that we gradually\n build up a phrase. */\n $decoded_metar['weather'] .= $weather_array[$bite];\n /* Here we chop off the two first letters, so that we can take\n a new bite at top of the while-loop. */\n $part = substr($part, 2);\n }\n } elseif (preg_match('/(SKC|CLR)/', $part, $regs)) {\n /*\n * Cloud-layer-group.\n * There can be up to three of these groups, so we store them as\n * cloud_layer1, cloud_layer2 and cloud_layer3.\n */\n $cloud_layers++;\n /* Again we have to translate the code-characters to a\n meaningful string. */\n $decoded_metar['cloud_layer'. $cloud_layers.'_condition'] =\n $cloud_condition_array[$regs[1]];\n $decoded_metar['cloud_layer'.$cloud_layers.'_coverage'] =\n $cloud_coverage[$regs[1]];\n } elseif (preg_match('/^(VV|FEW|SCT|BKN|OVC)([0-9]{3})(CB|TCU)?$/',\n $part, $regs)) {\n /* We have found (another) a cloud-layer-group. There can be up\n to three of these groups, so we store them as cloud_layer1,\n cloud_layer2 and cloud_layer3. */\n $cloud_layers++;\n /* Again we have to translate the code-characters to a\n meaningful string. */\n if ($regs[1] == 'OVC') {\n $clouds_str_temp = '';\n } else {\n $clouds_str_temp = $strings['clouds'];\n }\n if ($regs[3] == 'CB') {\n /* cumulonimbus (CB) clouds were observed. */\n $decoded_metar['cloud_layer'.$cloud_layers.'_condition'] =\n $cloud_condition_array[$regs[1]] . $strings['clouds_cb'];\n } elseif ($regs[3] == 'TCU') {\n /* towering cumulus (TCU) clouds were observed. */\n $decoded_metar['cloud_layer'.$cloud_layers.'_condition'] =\n $cloud_condition_array[$regs[1]] . $strings['clouds_tcu'];\n } else {\n $decoded_metar['cloud_layer'.$cloud_layers.'_condition'] =\n $cloud_condition_array[$regs[1]] . $clouds_str_temp;\n }\n $decoded_metar['cloud_layer'.$cloud_layers.'_coverage'] =\n $cloud_coverage[$regs[1]];\n $decoded_metar['cloud_layer'.$cloud_layers.'_altitude_ft'] =\n $regs[2] *100;\n $decoded_metar['cloud_layer'.$cloud_layers.'_altitude_m'] =\n round($regs[2] * 30.48);\n } elseif (preg_match('/^(M?[0-9]{2})\\/(M?[0-9]{2})?$/', $part, $regs)) {\n /*\n * Temperature/Dew Point Group\n * The temperature and dew-point measured in Celsius.\n */\n $decoded_metar['temp_c'] = number_format(strtr($regs[1], 'M', '-'));\n $decoded_metar['dew_c'] = number_format(strtr($regs[2], 'M', '-'));\n /* The temperature and dew-point measured in Fahrenheit, rounded\n to the nearest degree. */\n $decoded_metar['temp_f'] = round(strtr($regs[1], 'M', '-') * (9/5) + 32);\n $decoded_metar['dew_f'] = round(strtr($regs[2], 'M', '-') * (9/5) + 32);\n } elseif(preg_match('/A([0-9]{4})/', $part, $regs)) {\n /*\n * Altimeter\n * The pressure measured in inHg\n */\n $decoded_metar['altimeter_inhg'] = number_format($regs[1]/100, 2);\n /* The pressure measured in mmHg, hPa and atm */\n $decoded_metar['altimeter_mmhg'] = number_format($regs[1] * 0.254, 1);\n $decoded_metar['altimeter_hpa'] = number_format($regs[1] * 0.33863881578947);\n $decoded_metar['altimeter_atm'] = number_format($regs[1] * 3.3421052631579e-4, 3);\n } elseif(preg_match('/Q([0-9]{4})/', $part, $regs)) {\n /*\n * Altimeter\n * This is strange, the specification doesnt say anything about\n * the Qxxxx-form, but it's in the METARs.\n */\n /* The pressure measured in hPa */\n $decoded_metar['altimeter_hpa'] = number_format($regs[1]);\n /* The pressure measured in mmHg, inHg and atm */\n $decoded_metar['altimeter_mmhg'] = number_format($regs[1] * 0.7500616827, 1);\n $decoded_metar['altimeter_inhg'] = number_format($regs[1] * 0.0295299875, 2);\n $decoded_metar['altimeter_atm'] = number_format($regs[1] * 9.869232667e-4, 3);\n } elseif (preg_match('/^T([0-9]{4})([0-9]{4})/', $part, $regs)) {\n /*\n * Temperature/Dew Point Group, coded to tenth of degree.\n * The temperature and dew-point measured in Celsius.\n */\n store_temp($regs[1],$decoded_metar,'temp_c','temp_f');\n store_temp($regs[2],$decoded_metar,'dew_c','dew_f');\n } elseif (preg_match('/^T([0-9]{4}$)/', $part, $regs)) {\n store_temp($regs[1],$decoded_metar,'temp_c','temp_f');\n } elseif (preg_match('/^1([0-9]{4}$)/', $part, $regs)) {\n /*\n * 6 hour maximum temperature Celsius, coded to tenth of degree\n */\n store_temp($regs[1],$decoded_metar,'temp_max6h_c','temp_max6h_f');\n } elseif (preg_match('/^2([0-9]{4}$)/', $part, $regs)) {\n /*\n * 6 hour minimum temperature Celsius, coded to tenth of degree\n */\n store_temp($regs[1],$decoded_metar,'temp_min6h_c','temp_min6h_f');\n } elseif (preg_match('/^4([0-9]{4})([0-9]{4})$/', $part, $regs)) {\n /*\n * 24 hour maximum and minimum temperature Celsius, coded to\n * tenth of degree\n */\n store_temp($regs[1],$decoded_metar,'temp_max24h_c','temp_max24h_f');\n store_temp($regs[2],$decoded_metar,'temp_min24h_c','temp_min24h_f');\n } elseif(preg_match('/^P([0-9]{4})/', $part, $regs)) {\n /*\n * Precipitation during last hour in hundredths of an inch\n * (store as inches)\n */\n $decoded_metar['precip_in'] = number_format($regs[1]/100, 2);\n $decoded_metar['precip_mm'] = number_format($regs[1]*0.254, 2);\n } elseif(preg_match('/^6([0-9]{4})/', $part, $regs)) {\n /*\n * Precipitation during last 3 or 6 hours in hundredths of an\n * inch (store as inches)\n */\n $decoded_metar['precip_6h_in'] = number_format($regs[1]/100, 2);\n $decoded_metar['precip_6h_mm'] = number_format($regs[1]*0.254, 2);\n } elseif(preg_match('/^7([0-9]{4})/', $part, $regs)) {\n /*\n * Precipitation during last 24 hours in hundredths of an inch\n * (store as inches)\n */\n $decoded_metar['precip_24h_in'] = number_format($regs[1]/100, 2);\n $decoded_metar['precip_24h_mm'] = number_format($regs[1]*0.254, 2);\n } elseif(preg_match('/^4\\/([0-9]{3})/', $part, $regs)) {\n /*\n * Snow depth in inches\n */\n $decoded_metar['snow_in'] = number_format($regs[1]);\n $decoded_metar['snow_mm'] = number_format($regs[1] * 25.4);\n } else {\n /*\n * If we couldn't match the group, we assume that it was a\n * remark.\n */\n $decoded_metar['remarks'] .= ' ' . $part;\n }\n }\n /*\n * Relative humidity\n */\n $decoded_metar['rel_humidity'] = number_format(pow(10,\n (1779.75 * ($decoded_metar['dew_c'] - $decoded_metar['temp_c'])/\n ((237.3 + $decoded_metar['dew_c']) * (237.3 + $decoded_metar['temp_c']))\n + 2)), 1);\n\n /*\n * Humidity index\n */\n $e = 6.112 * pow(10, 7.5 * $decoded_metar['temp_c']\n / (237.7 + $decoded_metar['temp_c']))\n * $decoded_metar['rel_humidity']/100;\n $decoded_metar['humidex_c'] =\n number_format($decoded_metar['temp_c'] + 5/9 * ($e - 10),1);\n $decoded_metar['humidex_f'] =\n number_format($decoded_metar['humidex_c'] * 9/5 + 32, 1);\n\n /*\n * Windchill.\n *\n * This is only appropriate if temp < 40f and windspeed > 3 mph\n */\n if ($decoded_metar['temp_f'] <= '40' &&\n $decoded_metar['wind_miles_per_hour'] > '3'){\n $decoded_metar['windchill_f'] =\n number_format(35.74 + 0.6215 * $decoded_metar['temp_f'] -\n 35.75 * pow((float)$decoded_metar['wind_miles_per_hour'], 0.16) +\n 0.4275 * $decoded_metar['temp_f'] *\n pow((float)$decoded_metar['wind_miles_per_hour'],0.16));\n $decoded_metar['windchill_c'] =\n number_format(13.112 + 0.6215 * $decoded_metar['temp_c'] -\n 13.37 * pow(($decoded_metar['wind_miles_per_hour']/1.609), 0.16) +\n 0.3965 * $decoded_metar['temp_c'] *\n pow(($decoded_metar['wind_miles_per_hour']/1.609),0.16));\n }\n\n return $decoded_metar;\n}", "title": "" }, { "docid": "a6e43cebb99eb5123a2e9ba92885750f", "score": "0.5272774", "text": "private function currentMonthDetailsTechnical() {\n $customerCount = DB::table('customers as c')\n ->join('policies as p', 'p.customer_id', '=', 'c.id')\n ->whereYear('p.end_date', '=', date('Y'))\n ->whereIn('p.policy_status', [2,4])\n ->count();\n\n $policyCount = DB::table('policies as p')\n ->whereYear('p.start_date', '=', date('Y'))\n ->where('p.policy_status', [2])\n ->count();\n $claimCount = DB::table('policy_claims as pc')\n ->whereYear('pc.created_date', '=', date('Y'))\n \n ->count();\n\n\n $policySum = DB::table('customers as c')\n ->join('policies as p', 'p.customer_id', '=', 'c.id')\n ->select(DB::raw('sum(p.total_premium)'))\n ->whereYear('p.start_date', '=', date('Y'))\n ->where('p.policy_status', 2)\n ->sum('p.total_premium');\n \n// $policySum =DB::table('policy_intallment as im')\n// ->leftJoin('policy_endorsement as e', 'e.id', '=', 'im.endorsement_id')\n// ->whereYear('im.due_date', '=', date('Y'))\n// ->where(function ($query) {\n// $query ->where('e.endorsement_status', '=', 2)\n// ->orWhere('e.endorsement_status', '=', null);\n// })\n// \n// \n// ->sum(function ($row) {\n// return $row->amount + $row->vat_amount;\n//});\n\n\n return array('policyCount' => $policyCount, 'policySum' => $policySum, 'claimCount' => $claimCount, 'customerCount' => $customerCount);\n }", "title": "" }, { "docid": "af549a107eec46e0771076f195352fc6", "score": "0.52673024", "text": "function monthly_per_store_report($month_per_store,$year_per_store)\n {\n \n // $param['year'] = $month;\n // $param['month'] = $year;\n\n\n // $monthName = date('F', strtotime($year.\"-\".$month));\n\n $date = $this->getDateNeed($year_per_store, $month_per_store);\n\n $arr = array('monthly' => array());\n $arr['monthly'] = array(\n 'mdscsi' => array(),\n 'voice' => $this->queryForMonthStore($date['year'], $date['month'], $date['from'], $date['to'], 'voice'),\n 'web' => $this->queryForMonthStore($date['year'], $date['month'], $date['from'], $date['to'], 'web'),\n 'gcashminiprogram' => $this->queryForMonthStore($date['year'], $date['month'], $date['from'], $date['to'], 'gcashminiprogram'),\n 'mobile_app' => $this->queryForMonthStore($date['year'], $date['month'], $date['from'], $date['to'], 'mobile_app'),\n 'ctc' => $this->queryForMonthStore($date['year'], $date['month'], $date['from'], $date['to'], 'ctc'),\n 'fbchatbot' => $this->queryForMonthStore($date['year'], $date['month'], $date['from'], $date['to'], 'fbchatbot')\n );\n $arr['monthly']['mdscsi'] = $this->forMonth_getOvrAllStore($arr);\n\n \n \n $temp_arr = $arr;\n\n $temp_arr['monthly']['voice']['0'] = $this->complete_arr($arr,'voice');\n $temp_arr['monthly']['web']['0'] = $this->complete_arr($arr,'web');\n $temp_arr['monthly']['gcashminiprogram']['0'] = $this->complete_arr($arr,'gcashminiprogram');\n $temp_arr['monthly']['mobile_app']['0'] = $this->complete_arr($arr,'mobile_app');\n $temp_arr['monthly']['ctc']['0'] = $this->complete_arr($arr,'ctc');\n $temp_arr['monthly']['fbchatbot']['0'] = $this->complete_arr($arr,'fbchatbot');\n\n $this->get_csv_report_monthly_store($temp_arr,$year_per_store, $month_per_store);\n\n return $temp_arr;\n }", "title": "" }, { "docid": "8a578b6444071353603fb3116a6de9b5", "score": "0.5264904", "text": "private function _getResults(){\r\n\t \r\n\t\tforeach ($this->wines_available as $key => $wine){\r\n\t\t foreach ($this->wine_with_persons_choice[$wine] as $keys => $person){\r\n\t\t\t if(!array_key_exists($person, $this->final_list)){\r\n\t\t\t\t\t\t$this->final_list[$person][] = $wine;\r\n\t\t\t\t\t\t$this->total_wines_sold++;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t }else{\r\n\t\t\t\t\t\tif(count($this->final_list[$person])<3){\r\n\t\t\t\t\t\t\t $this->final_list[$person][] = $wine;\r\n\t\t\t\t\t\t\t $this->total_wines_sold++;\r\n\t\t\t\t\t\t\t break;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t}\r\n }", "title": "" }, { "docid": "46c89d33cd47a3e6721cf32896b0fe21", "score": "0.52593285", "text": "private function compileDataForReports() {\n\t\t$unenrolled = $this->fetchNotEnrolledWithMalnutReason();\n\n\t\t// FETCH Enrolled Malnutrition consultation datas\n\t\t$datas = $this->fetchReportData();\n\n\t\t$datas = array_merge($unenrolled, $datas);\n\n\t\t// GROUP BY PROVINCE Name\n\t\treturn $this->formatArraybyProvince($datas);\n\t}", "title": "" }, { "docid": "3afb8ed109cd7b4462dd9dfb93265758", "score": "0.51908195", "text": "abstract function analyze();", "title": "" }, { "docid": "9e463280ee4b87bb4bb452ddf380e31e", "score": "0.5189581", "text": "protected function GetData()\n\t{\t$this->legend = array('£ per month');\n\t\t\n\t\t$ia = new IncomeAnalysis();\n\t\tforeach ($ia->IncomePerMonth($this->mstart, $this->ystart, $this->mend, $this->yend) as $month)\n\t\t{\t$this->data[] = array('n'=>date('M', $month['stamp']), 'y'=>array($month['income']));\n\t\t}\n\t}", "title": "" }, { "docid": "63870f48c7f70f11b468c21244b53059", "score": "0.5164128", "text": "public function getMaritalStatus() \n\t{\n\t\treturn $this->maritalStatus;\n\t}", "title": "" }, { "docid": "c3ad69206174628912b62848584f8608", "score": "0.50954854", "text": "function processData() {\r\n $numYears = count($this->years);\r\n \r\n foreach($this->years as $year) {\r\n if(!$year->processed) {\r\n $year->processYear();\r\n }\r\n \r\n if($year->highHigh > $this->highHigh) {\r\n $this->highHigh = $year->highHigh;\r\n }\r\n \r\n if($year->lowHigh < $this->lowHigh) {\r\n $this->lowHigh = $year->lowHigh;\r\n }\r\n \r\n if($year->highLow > $this->highLow) {\r\n $this->highLow = $year->highLow;\r\n }\r\n \r\n if($year->lowLow < $this->lowLow) {\r\n $this->lowLow = $year->lowLow;\r\n }\r\n \r\n $this->avgPerfectTime += $year->perfectTime;\r\n $this->avgDayVFRTime += $year->dayVFRTime;\r\n $this->avgVFRTime += $year->VFRTime;\r\n \r\n if(!array_key_exists($year->bestMonth[\"name\"], $this->bestMonths)) {\r\n $this->bestMonths[$year->bestMonth[\"name\"]] = 0;\r\n } else {\r\n $this->bestMonths[$year->bestMonth[\"name\"]]++;\r\n }\r\n \r\n if(!array_key_exists($year->worstMonth[\"name\"], $this->worstMonths)) {\r\n $this->worstMonths[$year->worstMonth[\"name\"]] = 0;\r\n } else {\r\n $this->worstMonths[$year->worstMonth[\"name\"]]++;\r\n }\r\n \r\n $this->reasons[$year->maxReason]++;\r\n }\r\n \r\n $maxReasonTime = -1;\r\n \r\n foreach($this->reasons as $reason => $maxReasonNum) {\r\n if($maxReasonNum > $maxReasonTime) {\r\n $maxReasonTime = $maxReasonNum;\r\n $this->maxReason = $reason;\r\n }\r\n }\r\n \r\n $this->avgPerfectTime /= ($numYears * 2920);\r\n $this->avgDayVFRTime /= ($numYears * 2920);\r\n $this->avgVFRTime /= ($numYears * 8760);\r\n \r\n $this->avgPerfectTime *= 100;\r\n $this->avgDayVFRTime *= 100;\r\n $this->avgVFRTime *= 100;\r\n \r\n $this->highHigh = round($this->highHigh);\r\n $this->lowHigh = round($this->lowHigh);\r\n $this->highLow = round($this->highLow);\r\n $this->lowLow = round($this->lowLow);\r\n \r\n $this->avgPerfectTime = round($this->avgPerfectTime);\r\n $this->avgDayVFRTime = round($this->avgDayVFRTime);\r\n $this->avgVFRTime = round($this->avgVFRTime);\r\n \r\n foreach($this->bestMonths as $month => $percent) {\r\n if(sizeof($this->bestMonth) == 0 || $this->bestMonth[\"percent\"] < $percent) {\r\n $this->bestMonth[\"name\"] = $month;\r\n $this->bestMonth[\"percent\"] = $percent;\r\n }\r\n }\r\n \r\n $this->bestMonth[\"name\"] = $this->getMonthName($this->bestMonth[\"name\"]);\r\n \r\n foreach($this->worstMonths as $month => $percent) {\r\n if(sizeof($this->worstMonth) == 0 || $this->worstMonth[\"percent\"] < $percent) {\r\n $this->worstMonth[\"name\"] = $month;\r\n $this->worstMonth[\"percent\"] = $percent;\r\n }\r\n }\r\n \r\n $this->worstMonth[\"name\"] = $this->getMonthName($this->worstMonth[\"name\"]);\r\n \r\n unset($this->years);\r\n }", "title": "" }, { "docid": "6de9e6b9184561fd032ba5e36734fe8a", "score": "0.5076656", "text": "public function summary()\n\t{\n\t\t$academicyear = $this->ergeneral->get_academicyear();\n\t\t\n\t\t$data['total'] = $this->eprintsreporting_model->get_total();\n\t\t$data['oatotals'] = $this->eprintsreporting_model->get_oatotal_bytype();\n\t\t$data['monthtotals'] = $this->eprintsreporting_model->get_newrecords_bymonth();\n\t\t$data['title'] = $this->config->item('eprints_name'). ' Summary';\n\t\t// ***************************************************\n\t\t// get current academic year records\n\t\t$data['thisyear'] = $this->eprintsreporting_model->get_year_new_records($academicyear);\n\t\t$previousyear = $academicyear - 1; // get previous academic year\n\t\t$data['previousyear'] = $this->eprintsreporting_model->get_year_new_records($previousyear);\n\t\t// and year before that\n\t\t$threeyearsago = $previousyear - 1;\n\t\t$data['threeyearsago'] = $this->eprintsreporting_model->get_year_new_records($threeyearsago);\n\t\t//*******************************************************\n\t\t// OA by month\n\t\t$data['thisyearoa'] = $this->eprintsreporting_model->get_year_monthly_oa($academicyear);\n\t\t$previousyear = $academicyear - 1; // get previous academic year\n\t\t$data['previousyearoa'] = $this->eprintsreporting_model->get_year_monthly_oa($previousyear);\n\t\t// and OA year before that\n\t\t$threeyearsago = $previousyear - 1;\n\t\t$data['threeyearsagooa'] = $this->eprintsreporting_model->get_year_monthly_oa($threeyearsago);\n\t\t//*******************************************************\n\t\t// OA summary\n\t\t$data['thisyearoasummary'] = $this->eprintsreporting_model->get_oasummary($academicyear);\n\t\t$data['previousyearoasummary'] = $this->eprintsreporting_model->get_oasummary($previousyear);\n\t\t$data['threeyearoasummary'] = $this->eprintsreporting_model->get_oasummary($threeyearsago);\n\t\t// ***************************************************************\n\t\t// Views\n\t\t$this->load->view('templates/header', $data);\n\t\t$this->load->view('summary', $data);\n\t\t$this->load->view('records_per_month', $data);\n\t\t$this->load->view('open_access_items_added_by_month', $data);\n\t\t$this->load->view('oasummary', $data);\n\t\t$this->load->view('oa_by_type', $data);\n\t\t$this->load->view('records_per_month_calendar_year', $data);\n\t\t$this->load->view('templates/footer');\n\t\t\n\t}", "title": "" }, { "docid": "2869b099ed9346e01f56f2377306f4b9", "score": "0.5070214", "text": "function get_samity_wise_monthly_savings_collection_report_data($member_list,$samity_id,$date,$branch_id= null,$primary_product_id=null)\n\t{\n\t\tif(empty($member_list) || empty($date) || !is_numeric($samity_id)) {\n\t\t\treturn false;\n\t\t}\t\n\t\t$active_member_name_code=$this->Report->get_active_member_name_code($member_list);\t\n\t\t//echo \"<br/> \";echo \"<pre>\";print_r($active_member_name_code);\n\t\t//print('<br>');print($samity_id);print('<br>');print($primary_product_id);print('<br>');print($member_list);print('<br>');print($date);print('<br>');\n\t\t$active_member_previous_savings_balance =$this->savings_base_class->get_active_member_previous_savings_balance($member_list,$date,$branch_id,$samity_id,$primary_product_id);\n\t\t//print(\"hellooooooooooooo\");die;\n\t\t//echo \"<br/>\";echo \"<pre>\";print_r($active_member_previous_savings_balance);die;\n\t\t$active_member_savings_auto=$this->savings_base_class->get_active_member_savings_auto($member_list,$date,$branch_id,$samity_id,$primary_product_id);\n\t\t//print(\"hellooooooooooooo\");die;\n\t\t//echo \"<br/>2 \";echo \"<pre>\";print_r($active_member_savings_auto);die;\n\t\t$active_member_previous_skt_balance=$this->get_active_member_previous_skt_balance($member_list,$date,$branch_id,$samity_id,$primary_product_id);\t\t\n\t\t//print(\"hellooooooooooooo\");\n\t\t//echo \"<br/>3 \";echo \"<pre>\";\n\t\t//print_r($active_member_previous_skt_balance);\tdie;\t\t\n\n\t\t$samity_wise_monthly_savings_collection_report_data=array();\n\t\t$i=0;\n\t\tforeach($active_member_name_code as $row)\n\t\t{\n\t\t\t$i++;\n\t\t\t$samity_wise_monthly_savings_collection_report_data[$i]['member_name']=$row->member_name;\n\t\t\t$samity_wise_monthly_savings_collection_report_data[$i]['member_code']=$row->member_code;\n\t\t\t$samity_wise_monthly_savings_collection_report_data[$i]['member_id']=$row->id;\n\t\t\t$samity_wise_monthly_savings_collection_report_data[$i]['previous_savings_balance']=0;\n\t\t\t$samity_wise_monthly_savings_collection_report_data[$i]['previous_skt_balance']=0;\n\t\t\t$samity_wise_monthly_savings_collection_report_data[$i]['savings_auto']=0;\t\t\t\t\n\n\t\t\tif (array_key_exists($row->id, $active_member_previous_savings_balance)) { \n\t\t\t\t$samity_wise_monthly_savings_collection_report_data[$i]['previous_savings_balance']=$active_member_previous_savings_balance[$row->id];\n\t\t\t}\n\t\t\tif (array_key_exists($row->id,$active_member_savings_auto)) {\n\t\t\t\t$samity_wise_monthly_savings_collection_report_data[$i]['savings_auto']=$active_member_savings_auto[$row->id];\n\t\t\t}\n\t\t\tif (array_key_exists($row->id,$active_member_previous_skt_balance)) {\n\t\t\t\t$samity_wise_monthly_savings_collection_report_data[$i]['previous_skt_balance']=$active_member_previous_skt_balance[$row->id];\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t}\t\n\t\t//echo \"<br/>6 \";echo \"<pre>\";print_r($samity_wise_monthly_savings_collection_report_data);die;\n\t\treturn $samity_wise_monthly_savings_collection_report_data;\t\t\n\t}", "title": "" }, { "docid": "f10370dad251bab29f75a51475c5ce4b", "score": "0.5066035", "text": "public function getMaritalStatus() {\n\t\treturn $this->maritalStatus;\n\t}", "title": "" }, { "docid": "072486f01fec855e9d8757c8b89b8799", "score": "0.50631195", "text": "function Hosp(&$new_case,&$con){\n\t$oneYearPastFromNow = ($_POST['year'] - 1).\"-\".$_POST['month'].\"-01\";\n\t$fourYearPastFromNow = ($_POST['year'] - 4).\"-\".$_POST['month'].\"-01\";\n\t$nineteenYearPastFromNow = ($_POST['year'] - 19).\"-\".$_POST['month'].\"-01\";\n\t\n\t//loop all found Diagnostic and link them with their corresponding value now\n\t\n\t\t$m0_1 = \"\"; $dm0_1 = \"\";\n\t\t$f0_1 = \"\"; $df0_1 = \"\";\n\t\t$m1_4 = \"\"; $dm1_4 = \"\";\n\t\t$f1_4 = \"\"; $df1_4 = \"\";\n\t\t$m5_19 = \"\"; $dm5_19 = \"\";\n\t\t$f5_19 = \"\"; $df5_19 = \"\";\n\t\t$m20 = \"\"; $dm20 = \"\";\n\t\t$f20 = \"\"; $df20 = \"\";\n\t\t\n\t\t//SELECT FOUND RESULT TO DISPLAYED\n\t\t\n\t\t\t//select the data related to this Diagnostic\n\t\t\t$m0_1 = returnSingleField($sql = \"SELECT COUNT(`ho_record`.`HORecordID`) as Patient FROM ho_record, pa_records, pa_info WHERE ho_record.RecordID = pa_records.PatientRecordID && pa_records.PatientID = pa_info.PatientID && pa_records.DateIn LIKE('{$_POST['year']}-{$_POST['month']}%') && pa_info.Sex='Male' && pa_info.DateofBirth > '{$oneYearPastFromNow}'\",\"Patient\", true,$con);\n\t\t\t//echo $sql; die;\n\t\t\t$f0_1 = returnSingleField($sql = \"SELECT COUNT(`ho_record`.`HORecordID`) as Patient FROM ho_record, pa_records, pa_info WHERE ho_record.RecordID = pa_records.PatientRecordID && pa_records.PatientID = pa_info.PatientID && pa_records.DateIn LIKE('{$_POST['year']}-{$_POST['month']}%') && pa_info.Sex='Female' && pa_info.DateofBirth > '{$oneYearPastFromNow}'\",\"Patient\", true,$con);\n\t\t\t$m1_4 = returnSingleField($sql = \"SELECT COUNT(`ho_record`.`HORecordID`) as Patient FROM ho_record, pa_records, pa_info WHERE ho_record.RecordID = pa_records.PatientRecordID && pa_records.PatientID = pa_info.PatientID && pa_records.DateIn LIKE('{$_POST['year']}-{$_POST['month']}%') && pa_info.Sex='Male' && pa_info.DateofBirth <= '{$oneYearPastFromNow}' && pa_info.DateofBirth >= '{$fourYearPastFromNow}'\",\"Patient\", true,$con);\n\t\t\t$f1_4 = returnSingleField($sql = \"SELECT COUNT(`ho_record`.`HORecordID`) as Patient FROM ho_record, pa_records, pa_info WHERE ho_record.RecordID = pa_records.PatientRecordID && pa_records.PatientID = pa_info.PatientID && pa_records.DateIn LIKE('{$_POST['year']}-{$_POST['month']}%') && pa_info.Sex='Female' && pa_info.DateofBirth <= '{$oneYearPastFromNow}' && pa_info.DateofBirth >= '{$fourYearPastFromNow}'\",\"Patient\", true,$con);\n\t\t\t$m5_19 = returnSingleField($sql = \"SELECT COUNT(`ho_record`.`HORecordID`) as Patient FROM ho_record, pa_records, pa_info WHERE ho_record.RecordID = pa_records.PatientRecordID && pa_records.PatientID = pa_info.PatientID && pa_records.DateIn LIKE('{$_POST['year']}-{$_POST['month']}%') && pa_info.Sex='Male' && pa_info.DateofBirth < '{$fourYearPastFromNow}' && pa_info.DateofBirth >= '{$nineteenYearPastFromNow}'\",\"Patient\", true,$con);\n\t\t\t$f5_19 = returnSingleField($sql = \"SELECT COUNT(`ho_record`.`HORecordID`) as Patient FROM ho_record, pa_records, pa_info WHERE ho_record.RecordID = pa_records.PatientRecordID && pa_records.PatientID = pa_info.PatientID && pa_records.DateIn LIKE('{$_POST['year']}-{$_POST['month']}%') && pa_info.Sex='Female' && pa_info.DateofBirth < '{$fourYearPastFromNow}' && pa_info.DateofBirth >= '{$nineteenYearPastFromNow}'\",\"Patient\", true,$con);\n\t\t\t$m20 = returnSingleField($sql = \"SELECT COUNT(`ho_record`.`HORecordID`) as Patient FROM ho_record, pa_records, pa_info WHERE ho_record.RecordID = pa_records.PatientRecordID && pa_records.PatientID = pa_info.PatientID && pa_records.DateIn LIKE('{$_POST['year']}-{$_POST['month']}%') && pa_info.Sex='Male' && pa_info.DateofBirth < '{$nineteenYearPastFromNow}'\",\"Patient\", true,$con);\n\t\t\t$f20 = returnSingleField($sql = \"SELECT COUNT(`ho_record`.`HORecordID`) as Patient FROM ho_record, pa_records, pa_info WHERE ho_record.RecordID = pa_records.PatientRecordID && pa_records.PatientID = pa_info.PatientID && pa_records.DateIn LIKE('{$_POST['year']}-{$_POST['month']}%') && pa_info.Sex='Female' && pa_info.DateofBirth < '{$nineteenYearPastFromNow}'\",\"Patient\", true,$con);\n\t\t\n\t\t$new_case['M0_1'] = $m0_1?$m0_1:\"\";\n\t\t$new_case['F0_1'] = $f0_1?$f0_1:\"\";\n\t\t$new_case['M1_4'] = $m1_4?$m1_4:\"\";\n\t\t$new_case['F1_4'] = $f1_4?$f1_4:\"\";\n\t\t$new_case['M5_19'] = $m5_19?$m5_19:\"\";\n\t\t$new_case['F5_19'] = $f5_19?$f5_19:\"\";\n\t\t$new_case['M20'] = $m20?$m20:\"\";\n\t\t$new_case['F20'] = $f20?$f20:\"\";\n\t\t\n}", "title": "" }, { "docid": "b5dea15c38aab0c1424797bec8ffc7bc", "score": "0.5024445", "text": "function SetMarry($reg_civil,$personas,$p1,$p2,$data,$reg_matrimonis){\n //Canvia el estat de les persones\n if($reg_civil.casar($personas.get($p1),$personas.get($p2),$data)){\n //Registrem el matrimoni\n $reg_matrimonis.addPareja(new Matrimoni($personas.get($p1),$personas.get($p2),Util.parseDate($data)));\n } \n}", "title": "" }, { "docid": "10f5929044e4a5f79b017a7b742bb507", "score": "0.50224596", "text": "public function calculateAllPossibilitiesProvider()\n {\n return array(\n array(\n new Subject(\n array(\n 'name' => 'Mario',\n 'surname' => 'Rossi',\n 'birthDate' => '1985-12-10',\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n array(\n 'RSSMRA85T10A562S',\n 'RSSMRA85T10A56NH',\n 'RSSMRA85T10A5S2E',\n 'RSSMRA85T10A5SNT',\n 'RSSMRA85T10AR62N',\n 'RSSMRA85T10AR6NC',\n 'RSSMRA85T10ARS2Z',\n 'RSSMRA85T10ARSNO',\n 'RSSMRA85T1LA562V',\n 'RSSMRA85T1LA56NK',\n 'RSSMRA85T1LA5S2H',\n 'RSSMRA85T1LA5SNW',\n 'RSSMRA85T1LAR62Q',\n 'RSSMRA85T1LAR6NF',\n 'RSSMRA85T1LARS2C',\n 'RSSMRA85T1LARSNR',\n 'RSSMRA85TM0A562D',\n 'RSSMRA85TM0A56NS',\n 'RSSMRA85TM0A5S2P',\n 'RSSMRA85TM0A5SNE',\n 'RSSMRA85TM0AR62Y',\n 'RSSMRA85TM0AR6NN',\n 'RSSMRA85TM0ARS2K',\n 'RSSMRA85TM0ARSNZ',\n 'RSSMRA85TMLA562G',\n 'RSSMRA85TMLA56NV',\n 'RSSMRA85TMLA5S2S',\n 'RSSMRA85TMLA5SNH',\n 'RSSMRA85TMLAR62B',\n 'RSSMRA85TMLAR6NQ',\n 'RSSMRA85TMLARS2N',\n 'RSSMRA85TMLARSNC',\n 'RSSMRA8RT10A562E',\n 'RSSMRA8RT10A56NT',\n 'RSSMRA8RT10A5S2Q',\n 'RSSMRA8RT10A5SNF',\n 'RSSMRA8RT10AR62Z',\n 'RSSMRA8RT10AR6NO',\n 'RSSMRA8RT10ARS2L',\n 'RSSMRA8RT10ARSNA',\n 'RSSMRA8RT1LA562H',\n 'RSSMRA8RT1LA56NW',\n 'RSSMRA8RT1LA5S2T',\n 'RSSMRA8RT1LA5SNI',\n 'RSSMRA8RT1LAR62C',\n 'RSSMRA8RT1LAR6NR',\n 'RSSMRA8RT1LARS2O',\n 'RSSMRA8RT1LARSND',\n 'RSSMRA8RTM0A562P',\n 'RSSMRA8RTM0A56NE',\n 'RSSMRA8RTM0A5S2B',\n 'RSSMRA8RTM0A5SNQ',\n 'RSSMRA8RTM0AR62K',\n 'RSSMRA8RTM0AR6NZ',\n 'RSSMRA8RTM0ARS2W',\n 'RSSMRA8RTM0ARSNL',\n 'RSSMRA8RTMLA562S',\n 'RSSMRA8RTMLA56NH',\n 'RSSMRA8RTMLA5S2E',\n 'RSSMRA8RTMLA5SNT',\n 'RSSMRA8RTMLAR62N',\n 'RSSMRA8RTMLAR6NC',\n 'RSSMRA8RTMLARS2Z',\n 'RSSMRA8RTMLARSNO',\n 'RSSMRAU5T10A562P',\n 'RSSMRAU5T10A56NE',\n 'RSSMRAU5T10A5S2B',\n 'RSSMRAU5T10A5SNQ',\n 'RSSMRAU5T10AR62K',\n 'RSSMRAU5T10AR6NZ',\n 'RSSMRAU5T10ARS2W',\n 'RSSMRAU5T10ARSNL',\n 'RSSMRAU5T1LA562S',\n 'RSSMRAU5T1LA56NH',\n 'RSSMRAU5T1LA5S2E',\n 'RSSMRAU5T1LA5SNT',\n 'RSSMRAU5T1LAR62N',\n 'RSSMRAU5T1LAR6NC',\n 'RSSMRAU5T1LARS2Z',\n 'RSSMRAU5T1LARSNO',\n 'RSSMRAU5TM0A562A',\n 'RSSMRAU5TM0A56NP',\n 'RSSMRAU5TM0A5S2M',\n 'RSSMRAU5TM0A5SNB',\n 'RSSMRAU5TM0AR62V',\n 'RSSMRAU5TM0AR6NK',\n 'RSSMRAU5TM0ARS2H',\n 'RSSMRAU5TM0ARSNW',\n 'RSSMRAU5TMLA562D',\n 'RSSMRAU5TMLA56NS',\n 'RSSMRAU5TMLA5S2P',\n 'RSSMRAU5TMLA5SNE',\n 'RSSMRAU5TMLAR62Y',\n 'RSSMRAU5TMLAR6NN',\n 'RSSMRAU5TMLARS2K',\n 'RSSMRAU5TMLARSNZ',\n 'RSSMRAURT10A562B',\n 'RSSMRAURT10A56NQ',\n 'RSSMRAURT10A5S2N',\n 'RSSMRAURT10A5SNC',\n 'RSSMRAURT10AR62W',\n 'RSSMRAURT10AR6NL',\n 'RSSMRAURT10ARS2I',\n 'RSSMRAURT10ARSNX',\n 'RSSMRAURT1LA562E',\n 'RSSMRAURT1LA56NT',\n 'RSSMRAURT1LA5S2Q',\n 'RSSMRAURT1LA5SNF',\n 'RSSMRAURT1LAR62Z',\n 'RSSMRAURT1LAR6NO',\n 'RSSMRAURT1LARS2L',\n 'RSSMRAURT1LARSNA',\n 'RSSMRAURTM0A562M',\n 'RSSMRAURTM0A56NB',\n 'RSSMRAURTM0A5S2Y',\n 'RSSMRAURTM0A5SNN',\n 'RSSMRAURTM0AR62H',\n 'RSSMRAURTM0AR6NW',\n 'RSSMRAURTM0ARS2T',\n 'RSSMRAURTM0ARSNI',\n 'RSSMRAURTMLA562P',\n 'RSSMRAURTMLA56NE',\n 'RSSMRAURTMLA5S2B',\n 'RSSMRAURTMLA5SNQ',\n 'RSSMRAURTMLAR62K',\n 'RSSMRAURTMLAR6NZ',\n 'RSSMRAURTMLARS2W',\n 'RSSMRAURTMLARSNL',\n ),\n ),\n array(\n new Subject(\n array(\n 'name' => 'Roberto',\n 'surname' => 'Santi',\n 'birthDate' => '1963-05-08',\n 'gender' => 'M',\n 'belfioreCode' => 'H501',\n )\n ),\n array(\n 'SNTRRT63E08H501T',\n 'SNTRRT63E08H50ML',\n 'SNTRRT63E08H5L1E',\n 'SNTRRT63E08H5LMW',\n 'SNTRRT63E08HR01O',\n 'SNTRRT63E08HR0MG',\n 'SNTRRT63E08HRL1Z',\n 'SNTRRT63E08HRLMR',\n 'SNTRRT63E0UH501Q',\n 'SNTRRT63E0UH50MI',\n 'SNTRRT63E0UH5L1B',\n 'SNTRRT63E0UH5LMT',\n 'SNTRRT63E0UHR01L',\n 'SNTRRT63E0UHR0MD',\n 'SNTRRT63E0UHRL1W',\n 'SNTRRT63E0UHRLMO',\n 'SNTRRT63EL8H501E',\n 'SNTRRT63EL8H50MW',\n 'SNTRRT63EL8H5L1P',\n 'SNTRRT63EL8H5LMH',\n 'SNTRRT63EL8HR01Z',\n 'SNTRRT63EL8HR0MR',\n 'SNTRRT63EL8HRL1K',\n 'SNTRRT63EL8HRLMC',\n 'SNTRRT63ELUH501B',\n 'SNTRRT63ELUH50MT',\n 'SNTRRT63ELUH5L1M',\n 'SNTRRT63ELUH5LME',\n 'SNTRRT63ELUHR01W',\n 'SNTRRT63ELUHR0MO',\n 'SNTRRT63ELUHRL1H',\n 'SNTRRT63ELUHRLMZ',\n 'SNTRRT6PE08H501F',\n 'SNTRRT6PE08H50MX',\n 'SNTRRT6PE08H5L1Q',\n 'SNTRRT6PE08H5LMI',\n 'SNTRRT6PE08HR01A',\n 'SNTRRT6PE08HR0MS',\n 'SNTRRT6PE08HRL1L',\n 'SNTRRT6PE08HRLMD',\n 'SNTRRT6PE0UH501C',\n 'SNTRRT6PE0UH50MU',\n 'SNTRRT6PE0UH5L1N',\n 'SNTRRT6PE0UH5LMF',\n 'SNTRRT6PE0UHR01X',\n 'SNTRRT6PE0UHR0MP',\n 'SNTRRT6PE0UHRL1I',\n 'SNTRRT6PE0UHRLMA',\n 'SNTRRT6PEL8H501Q',\n 'SNTRRT6PEL8H50MI',\n 'SNTRRT6PEL8H5L1B',\n 'SNTRRT6PEL8H5LMT',\n 'SNTRRT6PEL8HR01L',\n 'SNTRRT6PEL8HR0MD',\n 'SNTRRT6PEL8HRL1W',\n 'SNTRRT6PEL8HRLMO',\n 'SNTRRT6PELUH501N',\n 'SNTRRT6PELUH50MF',\n 'SNTRRT6PELUH5L1Y',\n 'SNTRRT6PELUH5LMQ',\n 'SNTRRT6PELUHR01I',\n 'SNTRRT6PELUHR0MA',\n 'SNTRRT6PELUHRL1T',\n 'SNTRRT6PELUHRLML',\n 'SNTRRTS3E08H501Q',\n 'SNTRRTS3E08H50MI',\n 'SNTRRTS3E08H5L1B',\n 'SNTRRTS3E08H5LMT',\n 'SNTRRTS3E08HR01L',\n 'SNTRRTS3E08HR0MD',\n 'SNTRRTS3E08HRL1W',\n 'SNTRRTS3E08HRLMO',\n 'SNTRRTS3E0UH501N',\n 'SNTRRTS3E0UH50MF',\n 'SNTRRTS3E0UH5L1Y',\n 'SNTRRTS3E0UH5LMQ',\n 'SNTRRTS3E0UHR01I',\n 'SNTRRTS3E0UHR0MA',\n 'SNTRRTS3E0UHRL1T',\n 'SNTRRTS3E0UHRLML',\n 'SNTRRTS3EL8H501B',\n 'SNTRRTS3EL8H50MT',\n 'SNTRRTS3EL8H5L1M',\n 'SNTRRTS3EL8H5LME',\n 'SNTRRTS3EL8HR01W',\n 'SNTRRTS3EL8HR0MO',\n 'SNTRRTS3EL8HRL1H',\n 'SNTRRTS3EL8HRLMZ',\n 'SNTRRTS3ELUH501Y',\n 'SNTRRTS3ELUH50MQ',\n 'SNTRRTS3ELUH5L1J',\n 'SNTRRTS3ELUH5LMB',\n 'SNTRRTS3ELUHR01T',\n 'SNTRRTS3ELUHR0ML',\n 'SNTRRTS3ELUHRL1E',\n 'SNTRRTS3ELUHRLMW',\n 'SNTRRTSPE08H501C',\n 'SNTRRTSPE08H50MU',\n 'SNTRRTSPE08H5L1N',\n 'SNTRRTSPE08H5LMF',\n 'SNTRRTSPE08HR01X',\n 'SNTRRTSPE08HR0MP',\n 'SNTRRTSPE08HRL1I',\n 'SNTRRTSPE08HRLMA',\n 'SNTRRTSPE0UH501Z',\n 'SNTRRTSPE0UH50MR',\n 'SNTRRTSPE0UH5L1K',\n 'SNTRRTSPE0UH5LMC',\n 'SNTRRTSPE0UHR01U',\n 'SNTRRTSPE0UHR0MM',\n 'SNTRRTSPE0UHRL1F',\n 'SNTRRTSPE0UHRLMX',\n 'SNTRRTSPEL8H501N',\n 'SNTRRTSPEL8H50MF',\n 'SNTRRTSPEL8H5L1Y',\n 'SNTRRTSPEL8H5LMQ',\n 'SNTRRTSPEL8HR01I',\n 'SNTRRTSPEL8HR0MA',\n 'SNTRRTSPEL8HRL1T',\n 'SNTRRTSPEL8HRLML',\n 'SNTRRTSPELUH501K',\n 'SNTRRTSPELUH50MC',\n 'SNTRRTSPELUH5L1V',\n 'SNTRRTSPELUH5LMN',\n 'SNTRRTSPELUHR01F',\n 'SNTRRTSPELUHR0MX',\n 'SNTRRTSPELUHRL1Q',\n 'SNTRRTSPELUHRLMI',\n ),\n ),\n );\n }", "title": "" }, { "docid": "52abd7cf5db55f19e4ec2b46faee5321", "score": "0.502129", "text": "public function hasMedical(){\n return $this->_has(3);\n }", "title": "" }, { "docid": "400e2c4a0037a6164e176582c044a0ea", "score": "0.5015722", "text": "public function CalculateTotals()\n {\n foreach($this->rentals as $rental) {\n $amount = 0;\n\n $Billing = new \\BusinessLogic\\Billing();\n $Points = new \\BusinessLogic\\FrequentRenterPoints();\n $this->total += $Billing->GenerateMovieRentCost($rental);\n $this->points += $Points->GeneratePoints($rental);\n }\n }", "title": "" }, { "docid": "a7d5541570740605ad7708d69a5b4c74", "score": "0.5005954", "text": "public function calculate($data) {\n $return = [];\n for($i = 0; $i < $data['month']; $i++) {\n $myDate = date(\"Y-m-d\", strtotime( date( \"Y-m-d\", strtotime( date(\"Y-m-d\") ) ) . \"+$i month\" ) );\n $date = date_create($myDate);\n $totalDays = cal_days_in_month(CAL_GREGORIAN, date_format($date,\"m\"), date_format($date,\"Y\"));\n $cost = ($data['nos']*0.00553*$totalDays*24)/2000;\n $nos = $data['nos'];\n if($i >= 1) {\n /*\n * Other costs are considered to be negligible compared to the above and are not considered in\n this exercise. We do not consider the increase of cost within a month, for example, with a\n current number of study of 1000 and a growth of 3%, the new number of study is 1030 at the\n end of the month and the cost for that full month will be calculated with 1030 studies.\n */\n for($j = 1; $j <= $i; $j++) {\n $cost = $cost * 1.03;\n $nos = ceil($nos * 1.03); // assumption we ceil up no of studies\n }\n }\n $return[$i]['date'] = date_format($date,\"M Y\");\n $return[$i]['nos'] = number_format($nos);\n /*\n * Studies are kept indefinitely. 1 study use 10 MB of storage. 1 GB of storage cost 0.10 USD per month.\n */\n $cost = $cost + ($nos*10*0.1)/1000;\n $return[$i]['cost'] = '$'.number_format($cost,2);\n } \n return $return;\n }", "title": "" }, { "docid": "0ca7a9a470c1bf895205b11f4171651e", "score": "0.500147", "text": "public function actuals()\n {\n // Columns to pull from the DB\n $properties = $this->metrics;\n\n $query = $this->query();\n $query = $query->whereIn('program', $this->programs);\n $query = $this->checkInitiative($query);\n $query = $query->get();\n\n $query = $this->addKeys($query);\n\n $returnArray = [];\n\n foreach ($query as $c) {\n $key = $c->key;\n\n if (!array_key_exists($key, $returnArray)) {\n $returnArray[$key] = $this->createElement($key);\n }\n\n $yearMonth = $this->timeIndex($c);\n\n // Add Monthly Values to all properties\n foreach ($properties as $prop) {\n if (substr($yearMonth, 0, 4) >= 2017) {\n $returnArray[$key]->$prop[$yearMonth] += $c->$prop;\n }\n }\n }\n\n return $returnArray;\n }", "title": "" }, { "docid": "d3600084ecfb444493647cf92ba76de5", "score": "0.4984544", "text": "function getTutorRaiseAmount($tutor_id, $data) \n{\n/*\n$sql = \"SELECT tts.students_id, tts.base_invoice, \" .\n\t\t\" count(ssn.session_id) as num_of_sessions\" .\n\t\t\" FROM sessions ssn \" .\n\t\t\" LEFT JOIN tutors_to_students tts \" .\n\t\t\" ON (ssn.tutors_to_students_id = tts.tutors_to_students_id) \" .\n\t\t\" WHERE tts.tutors_id = '\". (int)$tutor_id .\"' \" .\n\t\t\" AND ssn.is_locked = '0' \" .\n\t\t\" GROUP BY tts.students_id \" .\n\t\t\" having num_of_sessions > 4\";\n*/\n\n//get a list of all the students for this tutor who have taken session in this month\n$sql = \"SELECT tts.students_id, tts.base_invoice, \" .\n\t\t\" (select state from user_info where user_id = tts.students_id) as state, \" .\n\t\t\" (select `country` from user_info where user_id = tts.students_id) as `country`, \" .\n\t\t\" count(ssn.session_id) as num_of_sessions \" .\n\t\t\" FROM sessions ssn \" .\n\t\t\" JOIN tutors_to_students tts \" .\n\t\t\" ON (ssn.tutors_to_students_id = tts.tutors_to_students_id) \";\n\n$implode = array();\n\n$implode[] = \" tts.tutors_id = '\" . (int)$tutor_id . \"'\";\n\n/*Below if statement commented by Softronikx - as filtering of assignment rate increment should not be based on the month - since it is student list let this criteria be there*/\nif (isset($data['filter_billing_date']) && !is_null($data['filter_billing_date'])) {\n\t$implode[] = \" ssn.date_submission like '\". $data['filter_billing_date'] . \"%'\";\n}\n\n\nif (isset($data['filter_locked']) && !is_null($data['filter_locked'])) {\n\t$implode[] = \" ssn.p_locked = '\" . $data['filter_locked'] . \"'\";\n}\n\nif ($implode) {\n\t$sql .= \" WHERE \" . implode(\" AND \", $implode);\n}\n\n$sql .= \" GROUP BY tts.students_id \" ;\n\t\t//\" having num_of_sessions > 4\"; //commented by softronikx technologies\n\necho $sql.\"<br>\";\n\n$query = mysql_query($sql);\n\n$total_students = array();\nwhile($r = mysql_fetch_array($query))\n{\n\t$total_students[] = $r;\n}\n\n//print_r($total_students);\n\nif(count($total_students) > 0) {\n\t\n\t$tutor_raise_amount = 0;\n\t$all_students = array();\n\t$all_students_data = array();\n\tforeach($total_students as $each_student) {\n\t\t\n\t\t$tutor_info = mysql_query(\"select state, country from user_info where user_id='\" . (int)$tutor_id . \"'\");\n\t\t$tutor_info = mysql_fetch_array($tutor_info);\n\t\t\n//\t\t\t\tprint_r($tutor_info);\n\t\t\n\t\t/*\n\t\t$sql = \" SELECT ssn.session_id, tts.tutors_id, tts.students_id, tts.base_wage, tts.base_invoice, \" .\n\t\t\t\" ssn.session_duration, ssn.session_date \" .\n\t\t\t\" FROM sessions ssn \" .\n\t\t\t\" LEFT JOIN tutors_to_students tts \" .\n\t\t\t\" ON (ssn.tutors_to_students_id = tts.tutors_to_students_id) \" .\n\t\t\t\" WHERE tts.tutors_id = '\". (int)$tutor_id .\"' \" .\n\t\t\t\" AND tts.students_id = '\". (int)$each_student['students_id'] .\"' \" .\n\t\t\t\" AND ssn.is_locked = '0' \" .\n\t\t\t\" order by session_date asc \";\n\t\t*/\n\n\t\t$sql = \" SELECT ssn.session_id, tts.tutors_id, tts.students_id, tts.base_wage, tts.base_invoice, \" .\n\t\t\t\" ssn.session_duration, ssn.session_date \" .\n\t\t\t\" FROM sessions ssn \" .\n\t\t\t\" JOIN tutors_to_students tts \" .\n\t\t\t\" ON (ssn.tutors_to_students_id = tts.tutors_to_students_id) \";\n\t\t\t\t\t\t\t\n\t\t$implode = array();\n\n\t\t$implode[] = \" tts.tutors_id = '\" . (int)$tutor_id . \"'\";\n\t\t\n\t\t$implode[] = \" tts.students_id = '\" . (int)$each_student['students_id'] . \"'\";\n\t\t\n\t\t/*\n\t\tBelow if statement commented by Softronikx - as filtering of assignment rate increment should not be based on the month\n\t\tif (isset($data['filter_billing_date']) && !is_null($data['filter_billing_date'])) {\n\t\t\t$implode[] = \" ssn.date_submission like '\". $this->db->escape($data['filter_billing_date']) . \"%'\";\n\t\t}\n\t\t*/\n\t\t\n\t\t/* \n\t\tLocked and unlocked sessions - both must be counted when increment is being calculated - commented by Softrnikx Technologies 7th August\n\t\tif (isset($data['filter_locked']) && !is_null($data['filter_locked'])) {\n\t\t\t$implode[] = \" ssn.p_locked = '\" . $this->db->escape($data['filter_locked']) . \"'\";\n\t\t}\n\t\t\n\t\tSELECT ssn.session_id, tts.tutors_id, tts.students_id, tts.base_wage, tts.base_invoice, ssn.session_duration, ssn.session_date FROM sessions ssn JOIN tutors_to_students tts ON (ssn.tutors_to_students_id = tts.tutors_to_students_id) WHERE tts.tutors_id = '446' AND tts.students_id = '495' ORDER BY date_submission ASC\n\t\t\n\t\t*/\n\t\t\n\t\t\n\t\tif ($implode) {\n\t\t\t$sql .= \" WHERE \" . implode(\" AND \", $implode);\n\t\t}\n\t\t\n\t\t$sql .= \" ORDER BY date_submission ASC \";\n\t\t\n\t\techo $sql.\"<br>\";\n\n\t\t$query = mysql_query($sql);\n\t\t$all_sessions = array();\n\t\t\n\t\twhile($all_sessions[] = mysql_fetch_array($query))\n\t\t{\n\t\t}\n\t\t\n\t\t\n\t\t$base_rate = 0;\n\t\t$base_total = 0;\n\t\t$base_plus_total = 0;\n\t\t\n\t\t// Raise slabs\t\t\t\t\n\t\tif($tutor_info['country'] == \"Canada\") {\n\t\t\tif($tutor_info['state'] == \"Alberta\")\n\t\t\t\t$change_at = array('8');\n\t\t\telse\n\t\t\t\t$change_at = array('4','8','12');\n\t\t} else {\n\t\t\t$change_at = array('4','8','12');\t\t\t\t\t\t\n\t\t}\n\t\t\n//\t\t\t\tprint_r($change_at);\n//\t\t\t\tprint_r($all_sessions);\n//\t\t\t\tdie;\n\t\t\n\t\tforeach($all_sessions as $key => $each_sessions) {\n\t\t\t\n\t\t\t$raise_amount = 0;\n\t\t\t\n\t\t\tif(($key + 1) > $change_at[0]) {\n\t\t\t\t\n//\t\t\t\t\t\techo $key.\" | \";\n\t\t\t\t\n\t\t\t\tif(empty($base_rate)) {\n\t\t\t\t\t$base_rate = $each_sessions['base_wage'];\n\t\t\t\t\t$base_rate_plus = $base_rate;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// increase of 10% for each slab \n\t\t\t\t//base_rate_plus is not reset in the loop, whenever key is in array 'change_at' it will increment by 10%\n\t\t\t\tif(in_array($key, $change_at)) {\n\t\t\t\t\t$base_rate_plus = $base_rate_plus + ($base_rate_plus * 10 / 100);\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\t//condition added by softronikx technologies. increment base wage for only sessions of this month\n\t\t\t\tif (isset($data['filter_billing_date']) && !is_null($data['filter_billing_date'])) \n\t\t\t\t{\n\t\t\t\t\t$date_to_compare = $data['filter_billing_date'];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$date_to_compare = 'NONE'; //do not compare with blank as will be incremented for all sessions from start\n\t\t\t\t}\n\t\t\t\t//end of code by Softronikx Technologies\n\t\t\t\t\n\t\t\t\tif(strpos($each_sessions['session_date'],$date_to_compare) !== false) //condition added by softronikx technologies. increment base wage for only sessions of this month\n\t\t\t\t{\n\t\t\t\t\t$base_total += ($base_rate * $each_sessions['session_duration']);\n\t\t\t\t\t$raise_amount = ($base_rate_plus * $each_sessions['session_duration']);\n\t\t\t\t\t$base_plus_total += $raise_amount;\n\t\t\t\t\t\n\t\t\t\t\t$all_students_data[$each_student['students_id']][] = array(\n\t\t\t\t\t\t'session_id' => $each_sessions['session_id'],\n\t\t\t\t\t\t'raise_amount' => $raise_amount,\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t$all_students[$each_student['students_id']]['base_total'] = $base_total;\n\t\t$all_students[$each_student['students_id']]['base_plus_total'] = $base_plus_total;\n\t\t$all_students[$each_student['students_id']]['raise_amount'] = $base_plus_total - $base_total;\n\t\t\n\t\t$tutor_raise_amount = $tutor_raise_amount + $all_students[$each_student['students_id']]['raise_amount'];\n\t}\n\n//\tprint_r($all_students);\n\t\n\t\t\t\t\n\treturn array('tutor_raise_amount' => $tutor_raise_amount, 'all_students_data' => $all_students_data);\n\n} else {\n\treturn 0;\n}\n\t\n}", "title": "" }, { "docid": "86db65669094b576169f8384d9330b80", "score": "0.4978496", "text": "public function run()\n { \n $uMedida = ['Kilogramos','Gramos','Onzas','Libras'];\n $area=['Área Fría','Área Caliente','Área Mixta'];\n $platillos = ['Causa Acebichada','Causa De Cangrejo','Causa De Langostinos','Causa De Pollo','Causa De Tres Sabores','Choritos A La Chorrillana','Ensalada A Lo Peñon','Ensalada De Palta Y Chonta','Ensalada Fresca','Ensalada Mixta','Leche De Pantera','Leche De Tigre Especial','Leche De Tigre Simple','Ocopa Tradicional','Papa A La Huancaína','Ronda Marina (C/S, A/M, CAUSA, LEC/S) Doncella','Ronda Caliente (CH/S, AR/MA, PIC, CAU) Doncella','Ronda Fría (C/S, TIR/S, C/CON) Doncella','Tequeño Con Pulpa de Cangrejo','Tequeños De Jamón Y Queso','Ceviche A Lo Peñon Doncella','Ceviche Clásico (C/CON, C/S) Doncella','Ceviche Con Crema De Camu Camu Doncella','Ceviche Con Crema De Cocona Doncella','Ceviche De Camarones','Ceviche De Conchas Negras','Ceviche De Dos Sabores De Doncella','Ceviche De La Selva Doncella','Ceviche De Langostinos','Ceviche De Marisco','Ceviche Mixto De Corvina','Ceviche Mixto De Corvina Con Crema De Camarones','Ceviche Mixto De Doncella','Ceviche Mixto De Doncella Con Crema De Camarones','Ceviche Mixto De Paiche','Ceviche Regional De Doncella','Ceviche Simple De Corvina','Ceviche Simple De Corvina Con Crema De Camarones','Ceviche Simple De Doncella','Ceviche Simple De Doncella Con Crema De Camarones','Ceviche Simple De Paiche','Ceviche Tricolor De Corvina','Ceviche Tricolor De Doncella','Peñoncito De Pescado Y Marisco','Chupe De Camarones','Chupe De Cangrejo','Chupe De Choros','Chupe De Pescado','Chupe Mixto','Combo I (C/S, CH/PO, LEC/S) Doncella','Combo II (C/S, CH/PO, A/M, LEC/S) Doncella','Combo III (C/S, CH/PE, A/M, LEC/S) Doncella','Combo IV (C/M, CH/S, LEC/S) Doncella','Festival De Trucha (C/S, CH/S, CHAU, LEC/S)','Arroz Chaufa De Camarones','Arroz Cahufa De Cecina','Arroz Chaufa De Langostinos','Arroz Chaufa De Marisco','Arroz Chaufa De Pescado Doncella','Arroz Chaufa De Pollo','Arroz Chaufa Regional','Arroz Con Marisco','Filete De Doncella Con Crema A Lo Peñon','Filete De Doncella Con Crema Al Ajo','Filete De Doncella Con Crema De Camarones','Milanesa De Corvina','Milanesa De Doncella','Milanesa De Pollo','Plancha Filete De Corvina','Plancha Filete De Doncella','Plancha Filete De Doncella A La Menier','Plancha Filete De Paiche','Plancha Filete De Pollo','Plancha Filete De Trucha','Arroz Con Pato','Caja China De Chancho','Caja China De Pollo','Pure Con Seco De Cabrito','Rocoto Relleno Con Pastel De Papa','Sarza De Patita De Chancho','Seco De Cabrito','Tacu - Tacu Con Lomo Saltado','Tacu - Tacu Con Salsa De Marisco','Tacu - Tacu Con Seco De Cabrito','Arroz Chaufa De Marisco Familiar','Arroz Con Marisco Familiar','Ceviche Mixto Familiar Corvina','Ceviche Mixto Familiar Doncella','Ceviche Simple Familiar Corvina','Ceviche Simple Familiar Doncella','Chicharron Mixto De Pescado Doncella','Chicharron Simple De Pescado Doncella','Combinado Familiar (C/M, A/M, CH/S, LEC/S, REF) Doncella','Jalea Mixta De Corvina Familiar','Jalea Mixta De Doncella Familiar','Cristal Vidrio','Cuzqueña Negra Vidrio','Cuzqueña Rubia Vidrio','Cuzqueña Trigo Vidrio','Pilsen Vidrio','San Juan Vidrio','7up 1 1/2 L Descartable','Coca Cola 1L Vidrio','Coca Cola Personal Vidrio','Guarana 1/2 L Descartable','Guarana 2 L Descartable','Inca Kola 1 1/2 Vidrio','Inca Kola 1/2 L Vidrio','Inca Kola 1 L Vidrio','Inca Kola Personal Vidrio','Pepsi 1 1/2 L Descartable','San Mateo Descartable sin gas','San Luis Descartable sin gas','Camu Camu Jarra 1 Lt','Camu Camu Vaso 250 Ml','Cebada Jarra 1 Lt','Cebada Vaso 250 Ml','Chicha Morada Jarra 1 Lt','Chicha Morada Vaso 250 Ml','Maracuya Jarra 1 Lt','Maracuya Vaso 250 Ml','Piña Jarra 1 Lt','Piña Vaso 250 Ml','Limonada Frozen Jarra 1 Lt','Camu Camu Jarra 1/2 Lt','Cebada Jarra 1/2 Lt','Chicha Morada Jarra 1/2 Lt','Maracuya Jarra 1/2 Lt','Piña Jarra 1/2 Lt','Budin','Crema Volteada','Flan','Gelatina','Geloflan','Helado Barquillo','Helado Copa Grande','Helado Copa Mediana','Keke Casero','Mosaico De Gelatina','Muss','Pye De Fresa','Torta 3 Leches','Torta De Chocolate','Torta Helada'];\n $codigo_pla = ['E001','E002','E003','E004','E005','E006','E007','E008','E009','E010','E011','E012','E013','E014','E015','E016','E017','E018','E019','E020','C001','C002','C003','C004','C005','C006','C007','C008','C009','C010','C011','C012','C013','C014','C015','C016','C017','C018','C019','C020','C021','C022','C023','C024','Chu1','Chu2','Chu3','Chu4','Chu5','Co01','Co02','Co03','Co04','Co05','Ar01','Ar02','Ar03','Ar04','Ar05','Ar06','Ar07','Ar08','Pm01','Pm02','Pm03','Pm04','Pm05','Pm06','Pm07','Pm08','Pm09','Pm10','Pm11','Pm12','Fs01','Fs02','Fs03','Fs04','Fs05','Fs06','Fs07','Fs08','Fs09','Fs10','Fa01','Fa02','Fa03','Fa04','Fa05','Fa06','Fa07','Fa08','Fa09','Fa10','Fa11','Cv01','Cv02','Cv03','Cv04','Cv05','Cv06','Gs01','Gs02','Gs03','Gs04','Gs05','Gs06','Gs07','Gs08','Gs09','Gs10','Au01','Au02','Rc01','Rc02','Rc03','Rc04','Rc05','Rc06','Rc07','Rc08','Rc09','Rc10','Rc11','Rc12','Rc13','Rc14','Rc15','Rc16','Ps01','Ps02','Ps03','Ps04','Ps05','Ps06','Ps07','Ps08','Ps09','Ps10','Ps11','Ps12','Ps13','Ps14','Ps15'];\n $precio = [20,15,10,8,15,15,15,10,10,10,15,15,10,8,8,28,45,45,18,15,33,28,20,20,33,25,25,25,30,30,28,32,26,28,27,22,26,28,21,25,24,35,30,18,28,27,20,20,30,18,25,30,25,35,27,18,26,22,18,18,22,23,30,20,25,20,18,18,20,18,20,20,18,20,18,20,12,20,10,10,18,22,25,24,40,40,55,50,50,43,55,45,50,45,40,8,10,8,10,7,5,15,8,2,8,15,15,8,10,2,15,2,2,10,2,10,2,10,2,10,2,10,2,12,5,5,5,5,5,2,3,2,1,3,2,5,3,2,3,3,3,3,3,3];\n for($i=1;$i<=143;$i++){\n\n DB::table('platillos')->insert([\n 'categoria_id' => rand(1,15),\n 'nombre' => $platillos[$i],\n 'codigo' => $codigo_pla[$i],\n 'unidad_de_medida' => $uMedida[rand(0,3)],\n 'area' => $area[rand(0,2)], \n 'precio' => $precio[$i],\n 'descripcion' => 'Descripción del platillo: '.$platillos[$i],\n 'condicion' => 1,\n ]);\n }\n }", "title": "" }, { "docid": "a08a4f4c272585f62b31f9cc2018db60", "score": "0.4931976", "text": "public function get_medicine_info()\n\n\t{\n\n\t\treturn $query = $this->db->select('*')\n\n\t\t->from('medecine_info')\n\n\t\t->get()\n\n\t\t->result();\n\n\t}", "title": "" }, { "docid": "a91f41ecc548ba3d9eaa346bccc5ee8c", "score": "0.4924561", "text": "public function run()\n {\n # Array of standard data to add\n //Todo: add display order? Fix Training from Absolute to minimum\n //Todo: Reverse the ranking in the excel spreadsheet\n $standards = [\n ['i1.1.1', 'Total Inbound Volume', 0, 1, 0, 0, '', 0, 'Inbound Informational Calls'],\n ['i1.1.2', 'Agent Handled Volume', 0, 1, 0, 0, '', 0, 'Inbound Informational Calls'],\n ['i1.1.3', 'Informational IVR Volume', 0, 1, 0, 0, '', 0, 'Inbound Informational Calls'],\n ['i1.1.4', 'Informational IVR Percentage', 0, 1, 0, 0, '%', 0, 'Inbound Informational Calls'],\n ['i1.1.5', 'Abandoned Volume', 0, 1, 0, 0, '', 0, 'Inbound Informational Calls'],\n ['i1.1.6', 'Abandoned Percentage', 0, 1, 0, 0, '%', 0, 'Inbound Informational Calls'],\n ['S1.1.1', 'Max Interval Abandon Rate', 1, 3, 0, 8, '%', 6, 'Inbound Informational Calls'],\n ['i1.1.7', 'Average Time to Abandon', 0, 1, 0, 0, 'secs', 0, 'Inbound Informational Calls'],\n ['i1.1.8', 'Max Delay', 0, 1, 0, 0, 'secs', 0, 'Inbound Informational Calls'],\n ['S1.1.2', 'Service Level', 1, 2, 85, 90, '%', 2, 'Inbound Informational Calls'],\n ['S1.1.3', 'Average Handle Time', 1, 2, 60, 90, 'secs', 6, 'Inbound Informational Calls'],\n ['S1.1.4', 'Short Calls Percentage', 1, 3, 0, 10, '%', 7, 'Inbound Informational Calls'],\n ['S1.1.5', 'Long Calls Percentage', 1, 3, 0, 5, '%', 7, 'Inbound Informational Calls'],\n ['S1.1.6', 'Holds Per Call', 1, 3, 0, 10, '%', 6, 'Inbound Informational Calls'],\n ['S1.1.7', 'Hold Duration', 1, 3, 0, 30, 'secs', 6, 'Inbound Informational Calls'],\n ['S1.1.8', 'First Call Resolution', 1, 1, 95, 0, '%', 4, 'Inbound Informational Calls'],\n ['S1.1.9', 'Re-directed Calls Percentage', 1, 3, 0, 5, '%', 3, 'Inbound Informational Calls'],\n ['S1.1.10', 'All Trunks Busy', 1, 3, 0, 100, 'mins', 7, 'Inbound Informational Calls'],\n ['S1.1.11', 'QA Score', 1, 1, 90, 0, '%', 2, 'Inbound Informational Calls'],\n ['S1.1.12', 'Customer Effort Score', 1, 1, 9, 0, '', 1, 'Inbound Informational Calls'],\n ['S1.1.13', 'CSAT Score', 1, 1, 8, 0, '', 2, 'Inbound Informational Calls'],\n ['i1.1.9', 'Net Promoter Score', 0, 1, 0, 0, '', 0, 'Inbound Informational Calls'],\n ['i1.2.1', 'Total Inbound Volume', 0, 1, 0, 0, '', 0, 'Inbound Transactional Calls'],\n ['i1.2.2', 'Agent Handled Volume', 0, 1, 0, 0, '', 0, 'Inbound Transactional Calls'],\n ['i1.2.3', 'Transactional IVR Volume', 0, 1, 0, 0, '', 0, 'Inbound Transactional Calls'],\n ['i1.2.4', 'Transactional IVR Percentage', 0, 1, 0, 0, '%', 0, 'Inbound Transactional Calls'],\n ['i1.2.5', 'Abandoned Volume', 0, 1, 0, 0, '', 0, 'Inbound Transactional Calls'],\n ['i1.2.6', 'Abandoned Percentage', 0, 1, 0, 0, '%', 0, 'Inbound Transactional Calls'],\n ['S1.2.1', 'Max Interval Abandon Rate', 1, 3, 0, 8, '%', 2, 'Inbound Transactional Calls'],\n ['i1.2.7', 'Average Time to Abandon', 0, 1, 0, 0, 'secs', 0, 'Inbound Transactional Calls'],\n ['i1.2.8', 'Max Delay', 0, 1, 0, 0, '', 0, 'Inbound Transactional Calls'],\n ['S1.2.2', 'Service Level', 1, 2, 75, 85, '%', 2, 'Inbound Transactional Calls'],\n ['S1.2.3', 'Average Handle Time', 1, 2, 120, 240, 'secs', 6, 'Inbound Transactional Calls'],\n ['S1.2.4', 'Short Calls Percentage', 1, 3, 0, 10, '%', 7, 'Inbound Transactional Calls'],\n ['S1.2.5', 'Long Calls Percentage', 1, 3, 0, 5, '%', 7, 'Inbound Transactional Calls'],\n ['S1.2.6', 'Holds Per Call', 1, 3, 0, 20, '%', 6, 'Inbound Transactional Calls'],\n ['S1.2.7', 'Hold Duration', 1, 3, 0, 45, 'secs', 6, 'Inbound Transactional Calls'],\n ['S1.2.8', 'First Call Resolution', 1, 1, 80, 0, '%', 4, 'Inbound Transactional Calls'],\n ['S1.2.9', 'Re-directed Calls Percentage', 1, 3, 0, 15, '%', 3, 'Inbound Transactional Calls'],\n ['S1.2.10', 'All Trunks Busy', 1, 3, 0, 100, 'mins', 7, 'Inbound Transactional Calls'],\n ['S1.2.11', 'QA Score', 1, 1, 90, 0, '%', 2, 'Inbound Transactional Calls'],\n ['S1.2.12', 'Customer Effort Score', 1, 1, 8, 0, '', 1, 'Inbound Transactional Calls'],\n ['S1.2.13', 'CSAT Score', 1, 1, 8, 0, '', 2, 'Inbound Transactional Calls'],\n ['i1.2.9', 'Net Promoter Score', 0, 1, 0, 0, '', 0, 'Inbound Transactional Calls'],\n ['i1.3.1', 'Outbound Attempts Volume', 0, 1, 0, 0, '', 0, 'Outbound Calls'],\n ['i1.3.2', 'Outbound Busy Volume', 0, 1, 0, 0, '', 0, 'Outbound Calls'],\n ['i1.3.3', 'Outbound Answered Volume', 0, 1, 0, 0, '', 0, 'Outbound Calls'],\n ['i1.3.4', 'Outbound Connected Volume', 0, 1, 0, 0, '', 0, 'Outbound Calls'],\n ['S1.3.1', 'Average Handle Time', 1, 2, 90, 120, 'secs', 3, 'Outbound Calls'],\n ['S1.3.2', 'Short Calls Percentage', 1, 3, 0, 15, '%', 4, 'Outbound Calls'],\n ['i1.3.5', 'Long Calls Percentage', 0, 1, 0, 0, '%', 0, 'Outbound Calls'],\n ['S1.3.3', 'Holds Per Call', 1, 3, 0, 10, '%', 2, 'Outbound Calls'],\n ['S1.3.4', 'Hold Duration', 1, 3, 0, 30, 'secs', 2, 'Outbound Calls'],\n ['S1.3.5', 'QA Score', 1, 1, 90, 0, '%', 1, 'Outbound Calls'],\n ['i1.4.1', 'Received Email Volume', 0, 1, 0, 0, '', 0, 'Email'],\n ['i1.4.2', 'Handled Email Volume', 0, 1, 0, 0, '', 0, 'Email'],\n ['i1.4.3', 'Automatically Handled Email Volume', 0, 1, 0, 0, '', 0, 'Email'],\n ['i1.4.4', 'Repeat Email from Auto Response', 0, 1, 0, 0, '%', 0, 'Email'],\n ['S1.4.1', 'Repeat Email from Manual Response', 1, 3, 0, 10, '%', 4, 'Email'],\n ['S1.4.2', 'Average Handle Time', 1, 2, 120, 300, 'secs', 4, 'Email'],\n ['S1.4.3', 'Average Response Time', 1, 2, 3.5, 4.5, 'hrs', 3, 'Email'],\n ['S1.4.4', 'Re-directed Email Percentage', 1, 3, 0, 5, '%', 2, 'Email'],\n ['S1.4.5', 'QA Score', 1, 1, 90, 0, '%', 2, 'Email'],\n ['S1.4.6', 'Customer Effort Score', 1, 1, 9, 0, '', 1, 'Email'],\n ['S1.4.7', 'CSAT Score', 1, 1, 8, 0, '', 2, 'Email'],\n ['i1.4.5', 'Net Promoter Score', 0, 1, 0, 0, '', 0, 'Email'],\n ['i1.5.1', 'Total Chat Volume', 0, 1, 0, 0, '', 0, 'Chat / WhatsApp'],\n ['i1.5.2', 'Abandoned Chat Volume', 0, 1, 0, 0, '', 0, 'Chat / WhatsApp'],\n ['i1.5.3', 'Abandoned Chat Percentage', 0, 1, 0, 0, '%', 0, 'Chat / WhatsApp'],\n ['S1.5.1', 'Max Interval Abandon Rate', 1, 3, 0, 8, '%', 6, 'Chat / WhatsApp'],\n ['i1.5.4', 'Average Time to Abandon', 0, 1, 0, 0, 'secs', 0, 'Chat / WhatsApp'],\n ['S1.5.2', 'Service Level', 1, 2, 85, 90, '%', 2, 'Chat / WhatsApp'],\n ['i1.5.5', 'Max Chat Delay', 0, 1, 0, 0, 'secs', 0, 'Chat / WhatsApp'],\n ['S1.5.3', 'Average Handle Time', 1, 2, 240, 480, 'secs', 5, 'Chat / WhatsApp'],\n ['S1.5.4', 'First Chat Resolution', 1, 1, 85, 0, '%', 4, 'Chat / WhatsApp'],\n ['S1.5.5', 'Re-directed Chat Percentage', 1, 3, 0, 20, '%', 3, 'Chat / WhatsApp'],\n ['S1.5.6', 'Max Simultaneous Sessions per Agent', 1, 2, 3, 6, '', 5, 'Chat / WhatsApp'],\n ['S1.5.7', 'QA Score', 1, 1, 95, 0, '%', 2, 'Chat / WhatsApp'],\n ['S1.5.8', 'Customer Effort Score', 1, 1, 9, 0, '', 1, 'Chat / WhatsApp'],\n ['S1.5.9', 'CSAT Score', 1, 1, 8, 0, '', 2, 'Chat / WhatsApp'],\n ['i1.5.6', 'Net Promoter Score', 0, 1, 0, 0, '', 0, 'Chat / WhatsApp'],\n ['i1.6.1', 'Received SMS Volume', 0, 1, 0, 0, '', 0, 'SMS'],\n ['i1.6.2', 'Handled SMS Volume', 0, 1, 0, 0, '', 0, 'SMS'],\n ['i1.6.3', 'Automatically Handled SMS Percentage', 0, 1, 0, 0, '%', 0, 'SMS'],\n ['i1.6.4', 'Repeat SMS from Auto Response', 0, 1, 0, 0, '%', 0, 'SMS'],\n ['S1.6.1', 'Repeat SMS from Manual Response', 1, 3, 0, 10, '%', 4, 'SMS'],\n ['S1.6.2', 'Average SMS Response Time', 1, 3, 0, 10, 'mins', 2, 'SMS'],\n ['S1.6.3', 'Average Handle Time - Manual SMS', 1, 2, 60, 90, 'secs', 4, 'SMS'],\n ['S1.6.4', 'Re-directed SMS Percentage', 1, 3, 0, 5, '%', 3, 'SMS'],\n ['S1.6.5', 'QA Score', 1, 1, 95, 0, '%', 2, 'SMS'],\n ['S1.6.6', 'Customer Effort Score', 1, 1, 9, 0, '', 1, 'SMS'],\n ['S1.6.7', 'CSAT Score', 1, 1, 8, 0, '', 2, 'SMS'],\n ['i1.6.5', 'Net Promoter Score', 0, 1, 0, 0, '', 0, 'SMS'],\n ['i1.7.1', 'SocMed Handled Volume', 0, 1, 0, 0, '', 0, 'Social Media'],\n ['S1.7.1', 'Average Response Time', 1, 3, 0, 8, 'hrs', 3, 'Social Media'],\n ['S1.7.2', 'QA Score', 1, 1, 95, 0, '%', 2, 'Social Media'],\n ['S1.7.3', 'Customer Effort Score', 1, 1, 8.5, 0, '', 1, 'Social Media'],\n ['S1.7.4', 'CSAT Score', 1, 1, 8, 0, '', 2, 'Social Media'],\n ['i1.7.2', 'Net Promoter Score', 0, 1, 0, 0, '', 0, 'Social Media'],\n ['i1.8.1', 'Informational IVR Volume', 0, 1, 0, 0, '', 0, 'Informational IVR Calls'],\n ['i1.8.2', 'Informational IVR Percentage', 0, 1, 0, 0, '%', 0, 'Informational IVR Calls'],\n ['i1.8.3', 'Abandoned Informational IVR Volume', 0, 1, 0, 0, '', 0, 'Informational IVR Calls'],\n ['i1.8.4', 'Abandoned Informational IVR Percentage', 0, 1, 0, 0, '%', 0, 'Informational IVR Calls'],\n ['S1.8.1', 'Max Interval Abandon Rate', 1, 3, 0, 3, '%', 4, 'Informational IVR Calls'],\n ['S1.8.2', 'All Channels Busy', 1, 3, 0, 50, 'mins', 5, 'Informational IVR Calls'],\n ['S1.8.3', 'Percentage of Info IVR Calls Transferred to Agent', 1, 3, 0, 20, '%', 2, 'Informational IVR Calls'],\n ['S1.8.4', 'Average Info IVR Time (Fully Resolved)', 1, 3, 0, 120, 'secs', 3, 'Informational IVR Calls'],\n ['i1.8.5', 'Average Info IVR Time (Transferred To Agent)', 0, 1, 0, 0, 'secs', 0, 'Informational IVR Calls'],\n ['i1.8.6', 'Average Info IVR Time (Abandoned)', 0, 1, 0, 0, 'secs', 0, 'Informational IVR Calls'],\n ['S1.8.5', 'Max Number of Menu \"Levels\"', 1, 3, 0, 4, '', 3, 'Informational IVR Calls'],\n ['S1.8.6', 'Max Number of Options Per Menu', 1, 3, 0, 4, '', 3, 'Informational IVR Calls'],\n ['S1.8.7', 'Informational IVR Languages', 1, 1, 2, 0, '', 2, 'Informational IVR Calls'],\n ['S1.8.8', 'QA Score', 1, 1, 90, 0, '%', 1, 'Informational IVR Calls'],\n ['S1.8.9', 'Customer Effort Score', 1, 1, 9, 0, '', 1, 'Informational IVR Calls'],\n ['i1.8.7', 'Net Promoter Score', 0, 1, 0, 0, '', 0, 'Informational IVR Calls'],\n ['i1.9.1', 'Transactional IVR Volume', 0, 1, 0, 0, '', 0, 'Transactional IVR Calls'],\n ['i1.9.2', 'Transactional IVR Percentage', 0, 1, 0, 0, '%', 0, 'Transactional IVR Calls'],\n ['i1.9.3', 'Abandoned Transactional IVR Volume', 0, 1, 0, 0, '', 0, 'Transactional IVR Calls'],\n ['i1.9.4', 'Abandoned Transactional IVR Percentage', 0, 1, 0, 0, '%', 0, 'Transactional IVR Calls'],\n ['S1.9.1', 'Max Interval Abandon Rate', 1, 3, 0, 3, '%', 4, 'Transactional IVR Calls'],\n ['S1.9.2', 'All Channels Busy', 1, 3, 0, 50, 'mins', 5, 'Transactional IVR Calls'],\n ['S1.9.3', 'Percentage of Trans. IVR Calls Transferred to Agent', 1, 3, 0, 30, '%', 2, 'Transactional IVR Calls'],\n ['S1.9.4', 'Average Trans. IVR Time (Fully Resolved)', 1, 3, 0, 180, 'secs', 3, 'Transactional IVR Calls'],\n ['i1.9.5', 'Average Trans. IVR Time (Transferred To Agent)', 0, 1, 0, 0, 'secs', 0, 'Transactional IVR Calls'],\n ['i1.9.6', 'Average Trans. IVR Time (Abandoned)', 0, 1, 0, 0, 'secs', 0, 'Transactional IVR Calls'],\n ['S1.9.5', 'Max Number of Menu \"Levels\"', 1, 3, 0, 6, '', 3, 'Transactional IVR Calls'],\n ['S1.9.6', 'Max Number of Options Per Menu', 1, 3, 0, 4, '', 3, 'Transactional IVR Calls'],\n ['S1.9.7', 'Transactional IVR Languages', 1, 1, 2, 0, '', 2, 'Transactional IVR Calls'],\n ['S1.9.8', 'Transactional IVR FCR', 1, 1, 60, 0, '%', 1, 'Transactional IVR Calls'],\n ['S1.9.9', ' QA Score', 1, 1, 90, 0, '%', 2, 'Transactional IVR Calls'],\n ['S1.9.10', 'Customer Effort Score', 1, 1, 8, 0, '', 1, 'Transactional IVR Calls'],\n ['i1.9.7', 'Net Promoter Score', 0, 1, 0, 0, '', 0, 'Transactional IVR Calls'],\n ['S2.1.1', 'Understanding GDCCS', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.2', 'Interaction Technology', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.3', 'Team Work', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.4', 'Essential Customer Interaction Skills', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.5', 'Basic Communications Skills', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.6', 'Reactive Interactions Structure & Wording', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.7', 'Customer Service', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.8', 'Questioning and Listening Skills', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.9', 'Building Rapport (NLP)', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.10', 'Dealing with Anger, Irate and Abusive Behaviours', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.11', 'Controlling Customer Interactions', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.12', 'Multi-lingual Challenges', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.13', 'Proactive Interactions Structure, Control & Outcome', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.14', 'Handling Objections', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.15', 'Tele-surveying Skills', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.16', 'Understanding Organisational Performance', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.17', 'Personal Performance Development', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.18', 'Service Recovery Skills', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.19', 'Touchpoint Variances', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.20', 'Multi Touchpoint Technology', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.21', 'How We Think and Understand', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.22', 'Empowered Responsibility', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.23', 'Understanding Customer Experience', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.24', 'Delivering a Branded Experience', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.25', 'Understanding Organisational Experiential Performance', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.1.26', 'Personal Experiential Performance Development', 1, 1, 100, 0, '%', 1, 'Agents - Essential Skills'],\n ['S2.2.1', 'Challenges of Written Interactions', 1, 1, 100, 0, '%', 1, 'Agents - Written Skills'],\n ['S2.2.2', 'Basics of Written Arabic', 1, 1, 100, 0, '%', 1, 'Agents - Written Skills'],\n ['S2.2.3', 'Basics of Written English', 1, 1, 100, 0, '%', 1, 'Agents - Written Skills'],\n ['S2.3.1', 'Customer Relationship Management', 1, 1, 100, 0, '%', 1, 'Agents - CRM'],\n ['S2.4.1', 'All Applicable Agent Training Courses', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.2', 'Understanding KPIs', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.3', 'Quality Management', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.4', 'Coaching', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.5', 'Conflict Management', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.6', 'Customer Satisfaction Metrics', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.7', 'Resource Planning & Scheduling', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.8', 'Performance Management', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.9', 'Strategic Leadership', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.10', 'Team Building', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.11', 'Communications Skills', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.12', 'Team Competence Development', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.13', 'Team Performance Development', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.14', 'Supervisor Technologies', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.15', 'Reporting', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.16', 'CEM Essentials', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.17', 'Voice Of The Customer', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.18', 'Understanding Financial Statements', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.19', 'Experiential Returns', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.20', 'Staff Experience Management', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.21', 'Motivation & Stress Management', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.22', 'Managing Difficult Team Members', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.23', 'Presentation Skills', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.24', 'Understanding Organisational Experiential Performance', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.4.25', 'Personal Experiential Performance Development', 1, 1, 100, 0, '%', 1, 'Team Leaders / Supervisors'],\n ['S2.5.1', 'All Applicable Agent Courses', 1, 1, 100, 0, '%', 1, 'OSF Staff'],\n ['S2.5.2', 'Recommended Courses as per OSF Standards', 1, 1, 100, 0, '%', 1, 'OSF Staff'],\n ['S2.6.1', 'All Applicable Supervisory Courses', 1, 1, 100, 0, '%', 1, 'Management'],\n ['S2.6.2', 'Recommended Courses as per PCS', 1, 1, 100, 0, '%', 1, 'Management'],\n ['S2.7.1', 'Attendance', 1, 1, 95, 0, ' % ', 1, 'Agent Performance'],\n ['S2.7.2', 'Adherence', 1, 1, 92, 0, ' % ', 1, 'Agent Performance'],\n ['S2.7.3', 'Occupancy', 1, 2, 75, 90, ' % ', 2, 'Agent Performance'],\n ['S2.7.4', 'Shrinkage', 1, 3, 0, 25, ' % ', 4, 'Agent Performance'],\n ['S2.7.5', 'Quiz Average', 1, 1, 95, 0, ' % ', 3, 'Agent Performance'],\n ['S2.7.6', 'QA Score', 1, 1, 90, 0, ' % ', 2, 'Agent Performance'],\n ['S2.7.7', 'CSAT Score', 1, 1, 8, 0, '', 3, 'Agent Performance'],\n ['i2.7.1', 'ESAT Score', 0, 1, 0, 0, '', 0, 'Agent Performance'],\n ['i2.7.2', 'QAS Delta', 0, 1, 0, 0, '', 0, 'Agent Performance'],\n ['S2.8.1', 'Attendance', 1, 1, 95, 0, ' % ', 1, 'TL and Supervisor Performance'],\n ['S2.8.2', 'Adherence', 1, 1, 92, 0, ' % ', 1, 'TL and Supervisor Performance'],\n ['S2.8.3', 'Occupancy', 1, 2, 75, 90, ' % ', 3, 'TL and Supervisor Performance'],\n ['i2.8.1', 'Shrinkage', 0, 1, 0, 0, ' % ', 0, 'TL and Supervisor Performance'],\n ['S2.8.4', 'Quiz Average', 1, 1, 95, 0, ' % ', 3, 'TL and Supervisor Performance'],\n ['S2.8.5', 'QA Score', 1, 1, 90, 0, ' % ', 2, 'TL and Supervisor Performance'],\n ['i2.8.2', 'CSAT Score', 0, 1, 0, 0, '', 0, 'TL and Supervisor Performance'],\n ['i2.8.3', 'ESAT Score', 0, 1, 0, 0, '', 0, 'TL and Supervisor Performance'],\n ['i2.8.4', 'QAS Delta', 0, 1, 0, 0, '', 0, 'TL and Supervisor Performance'],\n ['S3.1.1', 'Interactions Recorded for Random Analysis', 1, 0, 0, 0, '', 1, 'Quality Assurance'],\n ['S3.1.2', 'Sufficient QA Analysts', 1, 0, 0, 0, '', 2, 'Quality Assurance'],\n ['S3.1.3', 'QA Staff OSP Management Certification', 1, 0, 0, 0, '', 2, 'Quality Assurance'],\n ['S3.1.4', 'Valid QA Sample Size', 1, 0, 0, 0, '', 2, 'Quality Assurance'],\n ['S3.1.5', 'GDCCS Interaction Scorecard Utilised', 1, 0, 0, 0, '', 2, 'Quality Assurance'],\n ['S3.1.6', 'Management of Monthly Quiz', 1, 0, 0, 0, '', 4, 'Quality Assurance'],\n ['S3.1.7', 'CEM Canvas Analysis', 1, 0, 0, 0, '', 3, 'Quality Assurance'],\n ['S3.1.8', 'Attitudinal(NPS) Correlations to Perceptions(CSAT)', 1, 0, 0, 0, '', 2, 'Quality Assurance'],\n ['S3.1.9', 'Validation Calls with Customers', 1, 2, 10, 20, ' % ', 4, 'Quality Assurance'],\n ['S3.1.10', 'QA Auto Calibration Techniques Deployed', 1, 0, 0, 0, '', 6, 'Quality Assurance'],\n ['S3.1.11', 'Double - Blind Analyses', 1, 2, 10, 15, ' % ', 3, 'Quality Assurance'],\n ['S3.1.12', 'Monthly QA & KPI Performance Reports', 1, 0, 0, 0, '', 4, 'Quality Assurance'],\n ['S3.1.13', 'Team / Operations Performance Reports', 1, 0, 0, 0, '', 4, 'Quality Assurance'],\n ['S3.1.14', 'Integrated Service Recovery Process ', 1, 0, 0, 0, '', 3, 'Quality Assurance'],\n ['S3.1.15', 'Average Deviation of Validated Analyses', 1, 3, 0, 33, ' % ', 4, 'Quality Assurance'],\n ['S3.1.16', 'Average Deviation of Double - Blind Analyses', 1, 3, 0, 15, ' % ', 3, 'Quality Assurance'],\n ['S3.1.17', 'Attendance', 1, 1, 95, 0, ' % ', 3, 'Quality Assurance'],\n ['S3.1.18', 'Adherence', 1, 1, 92, 0, ' % ', 4, 'Quality Assurance'],\n ['S3.1.19', 'Quiz Average', 1, 1, 100, 0, ' % ', 4, 'Quality Assurance'],\n ['S3.2.1', 'Sufficient WFM Resources', 1, 0, 0, 0, '', 1, 'Workforce Management'],\n ['S3.2.2', 'Certified WFM Staff', 1, 0, 0, 0, '', 2, 'Workforce Management'],\n ['S3.2.3', 'Remote Touchpoint System Data Capture Intervals', 1, 2, 15, 30, 'mins', 2, 'Workforce Management'],\n ['S3.2.4', 'Statistical Volume Forecasting', 1, 0, 0, 0, '', 2, 'Workforce Management'],\n ['S3.2.5', 'Volume Forecast Adjusted for Seasonality', 1, 0, 0, 0, '', 2, 'Workforce Management'],\n ['S3.2.6', 'Volume Forecast Adjusted for Affecting Events', 1, 0, 0, 0, '', 4, 'Workforce Management'],\n ['S3.2.7', 'Monthly Volume Forecast Accuracy', 1, 1, 90, 0, ' % ', 3, 'Workforce Management'],\n ['S3.2.8', 'Agent Resource Calculations', 1, 0, 0, 0, '', 2, 'Workforce Management'],\n ['S3.2.9', 'Agent Resource Calculations Adjustment', 1, 0, 0, 0, '', 4, 'Workforce Management'],\n ['S3.2.10', 'Real Time Schedule Adjustments', 1, 0, 0, 0, '', 6, 'Workforce Management'],\n ['S3.2.11', 'Backup Plans for Unanticipated High Workload or Service Levels Failures', 1, 0, 0, 0, '', 4, 'Workforce Management'],\n ['S3.2.12', 'Attendance', 1, 1, 95, 0, ' % ', 3, 'Workforce Management'],\n ['S3.2.13', 'Adherence', 1, 1, 92, 0, ' % ', 2, 'Workforce Management'],\n ['S3.3.1', 'Real Time Wallboards or Dashboards', 1, 1, 1, 0, '', 1, 'Real-time WFM'],\n ['S3.3.2', 'Disaster Recovery Plan with Backup Resources', 1, 0, 0, 0, '', 1, 'Real-time WFM'],\n ['S3.3.3', 'Disaster Recovery Plan with Live Re-skilling', 1, 0, 0, 0, '', 1, 'Real-time WFM'],\n ['S3.3.4', 'Intra-day Volume Forecast Frequency', 1, 3, 0, 120, 'mins', 1, 'Real-time WFM'],\n ['S3.3.5', 'Escalation Process for Excessive Attendance or Adherence Failures', 1, 0, 0, 0, '', 1, 'Real-time WFM'],\n ['S3.4.1', 'Assessment Team Certification', 1, 0, 0, 0, '', 5, 'Recruitment'],\n ['S3.4.2', 'CV Evaluation', 1, 0, 0, 0, '', 5, 'Recruitment'],\n ['S3.4.3', 'Telephone / Chat Interview', 1, 0, 0, 0, '', 7, 'Recruitment'],\n ['S3.4.4', 'Interaction Skills', 1, 0, 0, 0, '', 7, 'Recruitment'],\n ['S3.4.5', 'Computer Skills', 1, 0, 0, 0, '', 7, 'Recruitment'],\n ['S3.4.6', 'Language Skills ', 1, 0, 0, 0, '', 7, 'Recruitment'],\n ['S3.4.7', 'Teamwork Skills', 1, 0, 0, 0, '', 7, 'Recruitment'],\n ['S3.4.8', 'Multitasking Skills', 1, 0, 0, 0, '', 7, 'Recruitment'],\n ['S3.4.9', 'Interaction Management Skills', 1, 0, 0, 0, '', 6, 'Recruitment'],\n ['S3.4.10', 'Numeric Skills', 1, 0, 0, 0, '', 6, 'Recruitment'],\n ['S3.4.11', 'Customer Service Attitude', 1, 0, 0, 0, '', 2, 'Recruitment'],\n ['S3.4.12', 'Assessment Protocols', 1, 0, 0, 0, '', 1, 'Recruitment'],\n ['S3.4.13', 'Multiple Assessors per Candidate', 1, 0, 0, 0, '', 6, 'Recruitment'],\n ['S3.4.14', 'Hiring on Proven Merit', 1, 0, 0, 0, '', 1, 'Recruitment'],\n ['S3.4.15', 'Transparent Decision Process', 1, 0, 0, 0, '', 6, 'Recruitment'],\n ['i3.4.1', 'CVs Evaluated per Telephone or Chat Interviewee',0,1,0,0,'',0,'Recruitment'],\n ['i3.4.2', 'Telephone or Chat Interviews per Assessment Centre Invitee', 0, 1, 0, 0, '', 0, 'Recruitment'],\n ['i3.4.3', 'Assessment Centre Invitees per Offer', 0, 1, 0, 0, '', 0, 'Recruitment'],\n ['i3.4.4', 'Offers per Recruit', 0, 1, 0, 0, '', 0, 'Recruitment'],\n ['i3.4.5', 'Recruit Retention', 0, 1, 0, 0, ' % ', 0, 'Recruitment'],\n ['S3.5.1', 'Licensed and Certified Material', 1, 0, 0, 0, '', 4, 'Training'],\n ['S3.5.2', 'Licensed and Certified Trainers', 1, 0, 0, 0, '', 5, 'Training'],\n ['S3.5.3', 'Role Play Training', 1, 0, 0, 0, '', 7, 'Training'],\n ['S3.5.4', 'ILT & CBT Training Program', 1, 0, 0, 0, '', 7, 'Training'],\n ['S3.5.5', 'Randomised Online Testing', 1, 0, 0, 0, '', 7, 'Training'],\n ['S3.5.6', 'Mentorship', 1, 0, 0, 0, '', 7, 'Training'],\n ['S3.5.7', 'Average Agent Coaching Time', 1, 1, 30, 0, 'mins', 7, 'Training'],\n ['S3.5.8', 'Certified Coaches', 1, 0, 0, 0, '', 3, 'Training'],\n ['S3.5.9', 'Training Staff Quiz Average', 1, 1, 100, 0, ' % ', 6, 'Training'],\n ['S3.5.10', 'Trainee Nominal Performance Period', 1, 2, 6, 10, 'months', 6, 'Training'],\n ['S3.6.1', 'Training', 1, 0, 0, 0, '', 1, 'Complaint Handling'],\n ['S3.6.2', 'Structured Complaint Form', 1, 0, 0, 0, '', 1, 'Complaint Handling'],\n ['S3.6.3', 'Complaint Reference Number', 1, 0, 0, 0, '', 7, 'Complaint Handling'],\n ['S3.6.4', 'Non - interaction Complaints Escalation Process', 1, 0, 0, 0, '', 7, 'Complaint Handling'],\n ['S3.6.5', 'Complaint Investigation Feedback', 1, 0, 0, 0, '', 7, 'Complaint Handling'],\n ['S3.6.6', 'Agent Sanctions ', 1, 0, 0, 0, '', 5, 'Complaint Handling'],\n ['S3.6.7', 'QA Analyst Sanctions', 1, 0, 0, 0, '', 6, 'Complaint Handling'],\n ['S3.6.8', 'Closed Complaint Customer Survey', 1, 1, 25, 0, ' % ', 6, 'Complaint Handling'],\n ['S3.6.9', 'Integrated with QA and Service Recovery Process', 1, 0, 0, 0, '', 2, 'Complaint Handling'],\n ['S3.7.1', 'Secure Server Room', 1, 0, 0, 0, '', 1, 'Disaster Recovery'],\n ['S3.7.2', 'IT Systems Failure Processes', 1, 0, 0, 0, '', 2, 'Disaster Recovery'],\n ['S3.7.3', 'Network or Connectivity Failure Processes', 1, 0, 0, 0, '', 3, 'Disaster Recovery'],\n ['S3.7.4', 'Unusable or Inaccessible Facilities Processes', 1, 0, 0, 0, '', 4, 'Disaster Recovery'],\n ['S3.7.5', 'Processes for Staff Mobility Issues', 1, 0, 0, 0, '', 5, 'Disaster Recovery'],\n ['S3.7.6', 'On - site Resilience and Multiple - site or Off - site Backups', 1, 0, 0, 0, '', 6, 'Disaster Recovery'],\n ['S3.8.1', 'Staff Motivational Budget', 1, 1, 2, 0, ' % ', 1, 'Motivation'],\n ['S3.8.2', 'Internal Recreation Room', 1, 0, 0, 0, '', 5, 'Motivation'],\n ['S3.8.3', 'Customer Interaction Team Gatherings', 1, 0, 0, 0, '', 7, 'Motivation'],\n ['S3.9.1', 'Employee Density', 1, 2, 9, 14, 'm2', 1, 'Staff Facilities'],\n ['S3.9.2', 'Agents Per Workstation', 1, 3, 0, 4, '', 1, 'Staff Facilities'],\n ['S3.9.3', 'Water Coolers', 1, 1, 2, 0, ' % ', 1, 'Staff Facilities'],\n ['S3.9.4', 'Agent Workstation Area', 1, 2, 3, 5, 'm2', 2, 'Staff Facilities'],\n ['S3.9.5', 'Number Of Fire Drills', 1, 2, 4, 12, '', 4, 'Staff Facilities'],\n ['S3.9.6', 'Canteen Hours', 1, 1, 90, 0, ' % ', 4, 'Staff Facilities'],\n ['S3.9.7', 'Canteen Seating Capacity', 1, 1, 5, 0, ' % ', 5, 'Staff Facilities'],\n ['S3.9.8', 'Window to Floor Area Ratio', 1, 1, 12, 0, ' % ', 5, 'Staff Facilities'],\n ['S3.9.9', 'Training Room', 1, 1, 1, 0, '', 6, 'Staff Facilities'],\n ['S3.9.10', 'Concurrent Training Places Available', 1, 1, 10, 0, '', 6, 'Staff Facilities'],\n ['S3.9.11', 'Breakout Areas', 1, 1, 1, 0, '', 7, 'Staff Facilities'],\n ['S3.9.12', 'Breakout Area Ratio', 1, 1, 20, 0, ' % ', 7, 'Staff Facilities'],\n ['S3.9.13', 'Meeting Rooms', 1, 1, 1, 0, '', 7, 'Staff Facilities'],\n ['S3.9.14', 'Meeting Rooms Area Ratio', 1, 1, 20, 0, ' % ', 7, 'Staff Facilities'],\n ['S3.9.15', 'Dedicated QA Area', 1, 1, 1, 0, '', 7, 'Staff Facilities'],\n ['S3.9.16', 'Indoor Recreational Space Floor Area', 1, 1, 10, 0, ' % ', 7, 'Staff Facilities'],\n ['S3.9.17', 'Performance Dashboards', 1, 1, 2, 0, ' % ', 8, 'Staff Facilities'],\n ['i3.9.1', 'Total Floor Area', 0, 1, 0, 0, 'm2', 0, 'Staff Facilities'],\n ['i3.9.2', 'Total Area Of Dedicated QA Operations', 0, 1, 0, 0, 'm2', 0, 'Staff Facilities'],\n ['i3.9.3', 'Team Leader / Super Sits With Their team', 0, 0, 0, 0, '', 0, 'Staff Facilities'],\n ['i3.9.4', 'Outdoor Recreational Space Ratio', 0, 1, 0, 0, ' % ', 0, 'Staff Facilities'],\n ['i3.9.5', 'Operational Hours', 0, 1, 0, 0, 'hrs', 0, 'Staff Facilities'],\n ['i3.9.6', 'Local H & S Rules / Labour Rules', 0, 0, 0, 0, '', 0, 'Staff Facilities'],\n ['i3.9.7', 'Health & Safety Documentation', 0, 0, 0, 0, '', 0, 'Staff Facilities'],\n ['S3.10.1', 'UPS Support Time', 1, 1, 20, 0, 'mins', 1, 'Disaster Recovery / Continuity'],\n ['S3.10.2', 'Emergency Lighting', 1, 0, 0, 0, '', 1, 'Disaster Recovery / Continuity'],\n ['S3.10.3', 'Dedicated Computer Room', 1, 0, 0, 0, '', 1, 'Disaster Recovery / Continuity'],\n ['S3.10.4', 'Computer Room Secure Access System', 1, 0, 0, 0, '', 2, 'Disaster Recovery / Continuity'],\n ['S3.10.5', 'Computer Room Fire Suppression', 1, 0, 0, 0, '', 2, 'Disaster Recovery / Continuity'],\n ['S3.10.6', 'Redundant Servers and PSUs', 1, 0, 0, 0, '', 2, 'Disaster Recovery / Continuity'],\n ['S3.10.7', 'Diverse Datacom Network', 1, 0, 0, 0, '', 3, 'Disaster Recovery / Continuity'],\n ['S3.10.8', 'Separate Site Redundancy', 1, 0, 0, 0, '', 4, 'Disaster Recovery / Continuity'],\n ['S3.10.9', 'Power Backup Generator', 1, 0, 0, 0, '', 4, 'Disaster Recovery / Continuity'],\n ['i3.10.1', 'Multi - site Operational Backup', 0, 0, 0, 0, '', 0, 'Disaster Recovery / Continuity'],\n ['i3.10.2', 'Dark Site Backup', 0, 0, 0, 0, '', 0, 'Disaster Recovery / Continuity'],\n ['S4.1.1', 'Recovery Mode Time', 1, 3, 0, 90, 'mins', 1, 'Contact Centre Technology'],\n ['S4.1.2', 'Shutdown Time', 1, 3, 0, 30, 'mins', 1, 'Contact Centre Technology'],\n ['S4.1.3', 'Telephone System Uptime', 1, 1, 99, 0, ' % ', 2, 'Contact Centre Technology'],\n ['S4.1.4', 'Fulfilment Apps Uptime', 1, 1, 99, 0, ' % ', 2, 'Contact Centre Technology'],\n ['S4.1.5', 'No . Of Fulfilment Apps', 1, 3, 0, 3, '', 3, 'Contact Centre Technology'],\n ['S4.1.6', 'Dashboard Uptime', 1, 1, 99, 0, ' % ', 4, 'Contact Centre Technology'],\n ['S4.1.7', 'Headset Uptime', 1, 1, 99, 0, ' % ', 4, 'Contact Centre Technology'],\n ['S4.1.8', 'Trunk Utilisation', 1, 3, 0, 75, ' % ', 5, 'Contact Centre Technology'],\n ['S4.1.9', 'ERMS Uptime', 1, 1, 99, 0, ' % ', 6, 'Contact Centre Technology'],\n ['S4.1.10', 'Chat System Uptime', 1, 1, 99, 0, ' % ', 7, 'Contact Centre Technology'],\n ['i4.1.1', 'IVR System Uptime', 0, 1, 0, 0, ' % ', 0, 'Contact Centre Technology'],\n ['i4.1.2', 'Call Recording System Uptime', 0, 1, 0, 0, ' % ', 0, 'Contact Centre Technology'],\n ['i4.1.3', 'SMS Gateway Uptime', 0, 1, 0, 0, ' % ', 0, 'Contact Centre Technology'],\n ['i4.1.4', 'WhatsApp Uptime', 0, 1, 0, 0, ' % ', 0, 'Contact Centre Technology'],\n ['i4.1.5', 'Dialer Uptime', 0, 1, 0, 0, ' % ', 0, 'Contact Centre Technology'],\n ['i4.1.6', 'WFM System Uptime', 0, 1, 0, 0, ' % ', 0, 'Contact Centre Technology'],\n ['i4.1.7', 'CTI System Uptime', 0, 1, 0, 0, ' % ', 0, 'Contact Centre Technology'],\n ];\n $count = count($standards);\n\n //$focus_areas = FocusArea::get();\n //Todo: For every focus area figure out the standard weights\n //foreach ($focus_areas as $focus_area) {\n /*//Find the maximum ranking\n $max_ranking = max(array_column($standards, 7));\n\n //Reverse the ranking and get the sum\n $rankings_sum = 0;\n foreach ($standards as $standard) {\n //Only look at standards, not indicators\n if ($standard[2] == 1) {\n $ranking = $max_ranking - $standard[7] + 1;\n $rankings_sum += $ranking;\n $ranking_array[] = $ranking;\n }\n }\n\n foreach ($ranking_array as $ranking) {\n $weight = ((100 / $rankings_sum) * $ranking);\n $weights_array[] = $weight;\n }*/\n\n # Loop through each standard, adding them to the database\n $index = 0;\n foreach ($standards as $stdData) {\n //$this->command->comment($stdData[0].' '.$stdData[7].' '.$stdData[8]);\n $focusAreaName = $stdData[8];\n\n # Find the contact center\n $focus_area_id = FocusArea::where('name', '=', $focusAreaName)->pluck('id')->first();\n //$this->command->comment('Focus Area = '.$focusAreaName);\n //$this->command->comment('Focus Area = '.$focus_area_id);\n\n $standard = new Standard();\n\n $standard->created_at = Carbon\\Carbon::now()->subDays($count)->toDateTimeString();\n $standard->updated_at = Carbon\\Carbon::now()->subDays($count)->toDateTimeString();\n $standard->std_num = $stdData[0];\n $standard->name_en = $stdData[1];\n $standard->std_type = $stdData[2];\n $standard->target_type = $stdData[3];\n $standard->target_min = $stdData[4];\n $standard->target_max = $stdData[5];\n $standard->units = $stdData[6];\n $standard->std_ranking = $stdData[7];\n\n/* if ($standard->std_type == 1) {\n $standard->weight = $weights_array[$index];\n $index = $index + 1;\n }*/\n\n $standard->focus_area_id = $focus_area_id;\n $standard->save();\n\n $count--;\n }\n //}\n }", "title": "" }, { "docid": "de1b3b1ccf52a6945ffe1a805157b6ba", "score": "0.49235877", "text": "public function getAddMaritalStatus()\n\t{\n\t\treturn view('marital-status.add-marital-status');\n\t}", "title": "" }, { "docid": "c5ac1d291bc7b1b4dc46e908dc70b110", "score": "0.49016416", "text": "function get_samity_wise_monthly_loan_saving_worksheet_report_data($member_list,$samity_id,$date,$branch_id,$product_id)\n\t{\n\t\tif(empty($member_list) || empty($date) || !is_numeric($samity_id) || !is_numeric($branch_id) || !is_numeric($product_id)) {\n\t\t\treturn false;\n\t\t}\n\t\t$active_member_name_code=$this->Report->get_active_member_name_code($member_list);\n\t\t\n\t\t$active_member_array=$this->Member->get_active_member_list_array_by_samity_id_csv($samity_id);\n\t\t\n\t\t$active_member_previous_savings_balance =$this->savings_base_class->get_active_member_previous_savings_balance($member_list,$date,$branch_id,$samity_id,$product_id);\n\t\t$active_member_savings_auto=$this->savings_base_class->get_active_member_savings_auto($member_list,$date,$branch_id,$samity_id,$product_id);\n\t\t$active_member_previous_skt_balance=$this->get_active_member_previous_skt_balance($member_list,$date,$branch_id,$samity_id,$product_id);\t\t\n\t\t$active_member_loan_info =$this->loan_base_class->get_active_member_loan_info($member_list,$date,$branch_id,$samity_id,$product_id);\n\t\t\n\t\t$active_member_loan_schedule_info =$this->loan_base_class->get_active_member_loan_schedule_info($active_member_array,$date,$branch_id,$samity_id,$product_id); \t\t\t\n\t\t\n\t\t$samity_wise_monthly_savings_loan_collection_report_data=array();\n\t\t$i=0;\n\t\tforeach($active_member_name_code as $row)\n\t\t{\n\t\t\t$i++;\n\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['member_name']=$row->member_name;\n\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['member_code']=$row->member_code;\n\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['member_id']=$row->id;\n\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['loan_disbuse_date']=\"\";\n\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['loan_amount']=0;\n\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['cycle']=0;\t\t\t\t\n\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['purpose_code']=0;\t\n\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['repay_week']=0;\t\n\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['previous_month_outstanding']=0;\t\n\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['preious_month_due']=0;\n\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['loan_auto']=0;\t\n\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['previous_savings_balance']=0;\n\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['previous_skt_balance']=0;\n\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['savings_auto']=0;\t\t\t\t\n\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['pre_matuired_week']=0;\n\t\t\tif (array_key_exists($row->id, $active_member_previous_savings_balance)) { \n\t\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['previous_savings_balance']=$active_member_previous_savings_balance[$row->id];\n\t\t\t}\n\t\t\tif (array_key_exists($row->id,$active_member_savings_auto)) {\n\t\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['savings_auto']=$active_member_savings_auto[$row->id];\n\t\t\t}\n\t\t\tif (array_key_exists($row->id,$active_member_previous_skt_balance)) {\n\t\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['previous_skt_balance']=$active_member_previous_skt_balance[$row->id];\n\t\t\t}\n\t\t\tif (array_key_exists($row->id, $active_member_loan_info)) { \n\t\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['loan_disbuse_date']=$active_member_loan_info[$row->id]['disburse_date'];\n\t\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['loan_amount']=$active_member_loan_info[$row->id]['loan_amount'];\n\t\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['cycle']=$active_member_loan_info[$row->id]['cycle'];\n\t\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['purpose_code']=$active_member_loan_info[$row->id]['purpose_code'];\n\t\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['repay_week']=$active_member_loan_info[$row->id]['repay_week'];\n\t\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['previous_month_outstanding']=$active_member_loan_info[$row->id]['prev_loan_outstanding'];\t\n\t\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['loan_auto']=$active_member_loan_info[$row->id]['installment_amount'];\t\n\t\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['total_payable_amount']=$active_member_loan_info[$row->id]['total_payable_amount'];\n\t\t\t}\n\t\t\tif (array_key_exists($row->id,$active_member_loan_schedule_info)) {\n\t\t\t\t$amount=$active_member_loan_schedule_info[$row->id]['installment_number']*$active_member_loan_schedule_info[$row->id]['installment_amount'];\n\t\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['pre_matuired_week']=$active_member_loan_schedule_info[$row->id]['installment_number'];\n\t\t\t\t$samity_wise_monthly_savings_loan_collection_report_data[$i]['preious_month_due']=$samity_wise_monthly_savings_loan_collection_report_data[$i]['total_payable_amount']-$amount;\t\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn $samity_wise_monthly_savings_loan_collection_report_data;\t\t\n\t}", "title": "" }, { "docid": "9a756ff1a918f587f51407079cec88c3", "score": "0.48983613", "text": "function get_player_career_stats($pid){\n\t\n\t$data_array = get_player_data($pid);\n\t\t\n\tif(!empty($data_array)){\n\t\tforeach ($data_array as $get){\n\t\t\t$pointsarray[] = $get['points'];\n\t\t\t$yeararray[] = $get['year'];\n\t\t\t$gamearray[] = $get['win_loss'];\n\t\t\t$passyardsarray[] = $get['pass_yds'];\n $passtdarray[] = $get['pass_td'];\n $passintarray[] = $get['pass_int'];\n $rushydsarray[] = $get['rush_yds'];\n $rushtdarray[] = $get['rush_td'];\n $recydsarray[] = $get['rec_yds'];\n $rectdarray[] = $get['rec_td'];\n $xpmarray[] = $get['xpm'];\n $xpaarray[] = $get['xpa'];\n $fgmarray[] = $get['fgm'];\n $fgaarray[] = $get['fga'];\n\t\t}\n\t\t\n\t\tforeach ($data_array as $key => $value){\n\t\t\t$sort_flat[$value['year']][] = $value['points'];\n\t\t\t$pointscum[$key] = $value['cum_points'];\n $winscum[$key] = $value['cum_wins'];\n\n\t\t}\n\t\t\n\t\tforeach ($sort_flat as $key => $value){\n\t\t\t$new_sort_flat[$key] = array_sum($value);\n\t\t\t$new_sort_flat_games[$key] = count($value);\n\t\t\t$new_sort_flat_ppg[$key] = array_sum($value) / count($value);\n\t\t\t$seasonrank[$key] = get_player_season_rank ($pid, $key);\n $pvqflat = get_player_pvqs($pid);\n\t\t}\n\n\t\tforeach($pointscum as $key => $value):\n// if($value >= 500 && $value <= 999):\n// $finalpointscum[$key] = 500;\n// endif;\n if($value >= 1000 && $value <= 1499):\n $finalpointscum[$key] = 1000;\n endif;\n if($value >= 1500 && $value <= 1999):\n $finalpointscum[$key] = 1500;\n endif;\n if($value >= 2000 && $value <= 2499):\n $finalpointscum[$key] = 2000;\n endif;\n if($value >= 2500 && $value <= 2999):\n $finalpointscum[$key] = 2500;\n endif;\n if($value > 3000):\n $finalpointscum[$key] = 3000;\n endif;\n endforeach;\n if($finalpointscum):\n $ptscum = array_unique($finalpointscum);\n endif;\n\n foreach($winscum as $key => $value):\n if($value >= 50 && $value <= 99):\n $finalwcum[$key] = 50;\n endif;\n if($value >= 100 && $value <= 149):\n $finalwcum[$key] = 100;\n endif;\n if($value >= 150 && $value <= 199):\n $finalwcum[$key] = 150;\n endif;\n if($value > 200):\n $finalwcum[$key] = 200;\n endif;\n endforeach;\n if($finalwcum):\n $wcum = array_unique($finalwcum);\n endif;\n\t\t\n\t\t$indyears = array_unique($yeararray);\n\t\t\n\t\t$points = array_sum($pointsarray);\n\t\t$games = count($data_array);\n\t\t$seasons = count($indyears);\n\t\t$ppg = round(($points / $games), 1);\n\t\t$high = max($pointsarray);\n\t\t$low = min($pointsarray);\n\t\t$wins = array_sum($gamearray);\n\t\t$loss = $games - $wins; \n\t\t$highseapts = max($new_sort_flat);\t\t\n\t\t$maxseason = array_keys($new_sort_flat, max($new_sort_flat));\n $passingyds = array_sum($passyardsarray);\n $passingtds = array_sum($passtdarray);\n $passingint = array_sum($passintarray);\n $rushyrds = array_sum($rushydsarray);\n $rushtds = array_sum($rushtdarray);\n $recyds = array_sum($recydsarray);\n $rectds = array_sum($rectdarray);\n $xpm = array_sum($xpmarray);\n $xpa = array_sum($xpaarray);\n $fgm = array_sum($fgmarray);\n $fga = array_sum($fgaarray);\n\t\t\n\t\t$justchamps = get_just_champions();\n\t\t$playoffsplayer = playerplayoffs($pid);\n\t\t\n\t\tif(!empty($playoffsplayer)){\n\t\t\tforeach($playoffsplayer as $key => $value){\n\t\t\t\tif ($value['week'] == '16'){\n\t\t\t\t\t$pb_apps[$value['year']] = $value['team'];\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// get Posse Bowl Wins \n\t\tforeach ($justchamps as $key => $possebowls){\n\t\t\tif ($possebowls == $pb_apps[$key]){\n\t\t\t\t$pbwins[$key] = $possebowls;\n\t\t\t\t$pbwins_index[$key] = 1;\n\t\t\t}\n\t\t}\n\t\t$lastseason = end($indyears);\n\t\t$checkseason = date(\"Y\") - $lastseason;\n\t\tif($checkseason <= 3){\n\t\t\t$activepl = 1;\n\t\t} else {\n\t\t\t$activepl = 0;\n\t\t}\n\n\t\t$carrer_stats = array(\n\t\t\t'pid' => $pid,\n\t\t\t'active' => $activepl,\n\t\t\t'games' => $games,\n\t\t\t'points' => $points,\n\t\t\t'ppg' => $ppg,\n\t\t\t'seasons' => $seasons,\n\t\t\t'high' => $high,\n\t\t\t'low' => $low,\n\t\t\t'wins' => $wins,\n\t\t\t'loss' => $loss,\n\t\t\t'highseasonpts' => $highseapts,\n\t\t\t'highseason' => $maxseason[0],\n\t\t\t'years' => $indyears,\n\t\t\t'yeartotal' => $new_sort_flat,\n\t\t\t'gamesbyseason' => $new_sort_flat_games,\n\t\t\t'ppgbyseason' => $new_sort_flat_ppg,\n\t\t\t'seasonrank' => $seasonrank,\n\t\t\t'pvqbyseason' => $pvqflat,\n 'numbersseason' => get_numbers_by_season($pid),\n 'pointsmilestone' => $ptscum,\n\t\t\t'winmilestone' => $wcum,\n\t\t\t//'avgpvq' => array_sum($pvqflat)/count($pvqflat),\n\t\t\t'possebowlwins' => $pbwins_index,\n 'careerposrank' => get_player_career_rank($pid),\n 'passingyards' => $passingyds,\n 'passingtds' => $passingtds,\n 'passingint' => $passingint,\n 'rushyrds' => $rushyrds,\n 'rushtds' => $rushtds,\n 'recyrds' => $recyds,\n 'rectds' => $rectds,\n 'xpm' => $xpm,\n 'xpa' => $xpa,\n 'fgm' => $fgm,\n 'fga' => $fga\n\t\t);\n\t\t\n\t\treturn $carrer_stats;\n\t}\n}", "title": "" }, { "docid": "7e230a7ea88adc83356e0ccf145bc94e", "score": "0.48955917", "text": "public abstract function Analyze();", "title": "" }, { "docid": "46fa870ff6c9abe23268b5dd4c13b0ed", "score": "0.48633552", "text": "function _addMetadataFields()\r\n {\r\n $factory = \\NDB_Factory::singleton();\r\n $config = $factory->config();\r\n $dateOptions = array(\r\n 'language' => 'en',\r\n 'format' => 'YMd',\r\n 'minYear' => $config->getSetting('startYear'),\r\n 'maxYear' => $config->getSetting('endYear'),\r\n 'addEmptyOption' => true,\r\n 'emptyOptionValue' => null,\r\n );\r\n $this->dateOptions = $dateOptions;\r\n $this->addBasicDate('Date_taken', 'Date of Administration', $dateOptions);\r\n if (strrpos($this->testName, '_proband') === false) {\r\n $this->addScoreColumn(\r\n 'Candidate_Age',\r\n 'Candidate Age (Months)',\r\n 'Please enter date of administration and press Save'\r\n );\r\n $this->addScoreColumn(\r\n 'Window_Difference',\r\n 'Window Difference (+/- Days)',\r\n 'Please enter date of administration and press Save'\r\n );\r\n }\r\n // Commented this out as this will extract the examiners for the clinical data\r\n //$examiners = $this->_getExaminerNames();\r\n // Add more options when the information is available.\r\n $examiners = array(\"\" => NULL, \"peter_seres\" => \"Peter Seres\"); \r\n $this->addSelect('Examiner', 'Examiner', $examiners);\r\n $this->addRule(\r\n 'Date_taken',\r\n 'Date of Administration is required',\r\n 'required'\r\n );\r\n $this->addRule('Examiner', 'Examiner is required', 'required');\r\n \r\n }", "title": "" }, { "docid": "dbd66e65ef094521dfba668711f424f9", "score": "0.4860692", "text": "function _get_usermeta_is_married($text)\n{\n if ($text == 'not_married') {\n return 'أعزب';\n } elseif ($text == 'married') {\n return 'متزوج';\n } elseif ($text == 'widow') {\n return 'مطلق';\n }\n return false;\n}", "title": "" }, { "docid": "8ae6aa03207cdacf4f6eb21cc579b3e0", "score": "0.48522386", "text": "public function mashable()\n {\n $source = \"Mashable\";\n $this->load->model('unit_model');\n $data['results'] = $this->unit_model->getBySource($source);\n $this->output->set_output(json_encode($data));\n }", "title": "" }, { "docid": "6f29d5bdcdee8a82bc82eb56ab8053dc", "score": "0.48453075", "text": "public function setMaritalStatus($maritalStatus) {\n\t\t$this->maritalStatus = $maritalStatus;\n\t}", "title": "" }, { "docid": "84994ae506c32b39ecd2ce57dc4bff23", "score": "0.48420832", "text": "function fnCollectSimInfo($sCodeml3Out) {\n\n\t$h1 = popen(\"grep -A21 \\\"Sums of codon usage counts\\\" $sCodeml3Out\" , 'r');\n\n\t$arrCodonFreq = array();\n\t$nCodonCountSum = 0;\n\twhile( false !== ($sLn = fgets($h1) ) ) {\n\t\tpreg_match_all(\"/\\d+/\" , $sLn , $arrM);\n\t\t//print_r($arrM);\n\t\tif (count($arrM[0]) != 4 ) continue;\n\t\t$arrCodonFreq[] = $arrM[0];\n\t\t$nCodonCountSum += array_sum($arrM[0]);\n\t}\n\n\t//print_r($arrCodonFreq);\n\tif (count($arrCodonFreq)!=16 ) {\n\t\tdie(\"Codon frequency table in $sCodeml3Out is of unexpected dimensions.\\n\");\n\t}\n\n\n\n\tforeach($arrCodonFreq as $nRow => $arrRow) {\n\t\tforeach($arrRow as $nCol => $nFreq) {\n\t\t\t$arrCodonFreq[$nRow][$nCol] = $nFreq/$nCodonCountSum;\n\t\t}\n\t}\n\n\tpclose($h1);\n\n\t//print_r($arrCodonFreq);\n\n\t//read the tree:\n\t$h1 = popen(\"grep -A4 \\\"tree length =\\\" $sCodeml3Out\" , 'r');\n\t$nLn = 0;\n\t$nTreeLen = 0;\n\t$sTree = '';\n\twhile( false !== ($sLn = fgets($h1) ) ) {\n\t\t$nLn++;\n\t\tif ($nLn == 1) {\n\t\t\t$arrF = explode(\"=\" , $sLn);\n\t\t\tif (count($arrF) !=2) {\n\t\t\t\tdie(\"Cannot parse tree length\\n\");\n\t\t\t}\n\n\t\t\t$nTreeLen = floatval(trim($arrF[1]));\n\t\t}\n\n\t\tif ($nLn == 5) {\n\t\t\t$sTree = trim($sLn);\n\t\t}\n\t}\n\n\tpclose($h1);\n\n\t//read kappa\n\t$h1 = popen(\"grep \\\"kappa\\\" $sCodeml3Out\" , 'r');\n\t$nKappa = 0;\n\twhile( false !== ($sLn = fgets($h1) ) ) {\n\t\t$arrF = explode(\"=\" , $sLn);\n\t\tif (count($arrF) !=2) {\n\t\t\tdie(\"Cannot parse kappa\\n\");\n\t\t}\n\n\t\t$nKappa = floatval(trim($arrF[1]));\n\n\t}\n\n\tpclose($h1);\n\n\t//read dN/dS categories:\n\t$h1 = popen(\"grep -A5 \\\"dN/dS (w) for site classes\\\" $sCodeml3Out\" , 'r');\n\t$nLn = 0;\n\t$arrOmegaTable = array();\n\twhile( false !== ($sLn = fgets($h1) ) ) {\n\t\t$nLn++;\n\t\tif ($nLn >= 4) {\n\t\t\tpreg_match_all(\"/\\d+\\.?\\d+/\", $sLn, $arrF);\n\t\t\tif (count($arrF[0]) !=4) {\n\t\t\t\techo($sLn);\n\t\t\t\tdie(\"Cannot parse omega table\\n\");\n\t\t\t}\n\n\t\t\t$arrOmegaTable[] = $arrF[0];\n\t\t}\n\n\t}\n\n\tpclose($h1);\n\n\t$arrOmegaTable[3] = $arrOmegaTable[2];\n\t//compute average omega between background and foreground:\n\n\tforeach($arrOmegaTable[3] as $nCat => $nVal) {\n\t\t$arrOmegaTable[3][$nCat] = ($arrOmegaTable[1][$nCat] + $arrOmegaTable[2][$nCat]) / 2;\n\t}\n\t\n\treturn array('codonfreq' => $arrCodonFreq, 'treelen' => $nTreeLen , 'tree' => $sTree , 'kappa' => $nKappa , 'omegatable' => $arrOmegaTable );\n}", "title": "" }, { "docid": "2d5c9794be1ead9a482da1c49f06d37f", "score": "0.48179007", "text": "public function getNomMarital() {\n return $this->nomMarital;\n }", "title": "" }, { "docid": "6ee94f682df4eebac031822784fdbf7a", "score": "0.48167095", "text": "public function qry_synthesis_month($month, $year, $member)\n {\n $condition_hs = '';\n $condition_m = '';\n\n if ($member != '' && $member != '-1')\n {\n $condition_hs = \" AND C_UNIT_CODE = '$member'\";\n $condition_m = \" AND C_CODE = '$member'\";\n }\n $sql = \"SELECT\n M.C_CODE AS C_UNIT_CODE,\n HS.C_SPEC_CODE,\n HS.C_CREATE_DATE,\n HS.C_HISTORY_DATE,\n COALESCE(HS.C_COUNT_KY_TRUOC,0) as C_COUNT_KY_TRUOC,\n COALESCE(HS.C_COUNT_TIEP_NHAN,0) AS C_COUNT_TIEP_NHAN,\n COALESCE(HS.C_COUNT_THU_LY_CHUA_DEN_HAN,0) AS C_COUNT_THU_LY_CHUA_DEN_HAN,\n COALESCE(HS.C_COUNT_THU_LY_QUA_HAN,0) AS C_COUNT_THU_LY_QUA_HAN,\n COALESCE(HS.C_COUNT_TRA_SOM_HAN,0) AS C_COUNT_TRA_SOM_HAN,\n COALESCE(HS.C_COUNT_TRA_DUNG_HAN,0) AS C_COUNT_TRA_DUNG_HAN,\n COALESCE(HS.C_COUNT_TRA_QUA_HAN,0) AS C_COUNT_TRA_QUA_HAN,\n COALESCE(HS.C_COUNT_BO_SUNG,0) AS C_COUNT_BO_SUNG,\n COALESCE(HS.C_COUNT_NVTC,0) AS C_COUNT_NVTC,\n COALESCE(HS.C_COUNT_TU_CHOI,0) AS C_COUNT_TU_CHOI,\n COALESCE(HS.C_COUNT_CONG_DAN_RUT,0) AS C_COUNT_CONG_DAN_RUT,\n COALESCE(HS.C_COUNT_CHO_TRA_KY_TRUOC,0) AS C_COUNT_CHO_TRA_KY_TRUOC,\n COALESCE(HS.C_COUNT_CHO_TRA_TRONG_KY,0) AS C_COUNT_CHO_TRA_TRONG_KY,\n COALESCE(HS.C_COUNT_THUE,0) AS C_COUNT_THUE,\n HS.C_VILLAGE_NAME,\n HS.FK_VILLAGE_ID,\n HS.C_DEVELOPER_CODE,\n M.C_NAME,\n DATE_FORMAT(HS.C_CREATE_DATE, '%d-%m-%Y') AS C_CREATE_DATE_DMY\n FROM (SELECT\n C_NAME,\n C_CODE,\n C_STATUS,\n C_ORDER\n FROM t_ps_member\n WHERE C_STATUS = 1 $condition_m) M\n LEFT JOIN (SELECT *\n FROM t_ps_record_history_stat HS\n WHERE MONTH(C_HISTORY_DATE) = '$month'\n AND YEAR(C_HISTORY_DATE) = '$year' $condition_hs) HS\n ON M.C_CODE = HS.C_UNIT_CODE\n ORDER BY M.C_ORDER\";\n return $this->db->getAll($sql);\n }", "title": "" }, { "docid": "d89f7080123eb37c2b84a00c5c43b6df", "score": "0.48160332", "text": "public function index()\n {\n // user er ms for current month\n $u = Auth::user();\n $month = Carbon::now()->month;\n $ms = $u->mealsystems->where('month', $month)->first();\n // for new month\n if (is_null($ms)){\n\n if ($u->hasRole('mealManager')){\n $ms = new Mealsystem;\n $ms->month = Carbon::now()->month;\n $ms->save();\n $ms->users()->attach($u);\n } else {\n return view('member.no_ms');\n }\n }\n $amounts = Amountu::where('mealsystem_id', $ms->id)->get();\n $co = \\DateTime::createFromFormat('!m', $month);\n $mn = $co->format('F');\n\n if (($month * 1) === 1){\n $pm = 12;\n }else {\n $pm = $month - 1;\n }\n $pms = $u->mealsystems->where('month', $pm)->first();\n if (is_null($pms)){\n // pms does not exist\n $x = 0;\n $pmn = null;\n }else{\n $x = 1;\n $po = \\DateTime::createFromFormat('!m', $pm);\n $pmn = $po->format('F');\n }\n $nmn = null;\n\n $nd = 1;\n\n $u = Auth::user();\n\n return view('exp.index', compact('amounts', 'ms', 'mn', 'pmn', 'x', 'pms', 'nmn', 'nd', 'u'));\n }", "title": "" }, { "docid": "6c2159d419df5bcb5361c65e9a4e6be5", "score": "0.48102623", "text": "function get_total_data($inputArr) {\n\t$section = 0;\n\t$type2input = false;\n\n\t$total_data = array();\n\t$driSectArr = array();\n\t$lapSectArr = array();\n\t$lapSectIndex = array(); \n\t$curr_race = \"\";\n\t\n\tforeach ($inputArr as $line)\n\t{\n\t\tif (trim($line) != \"\" || $section === 2)\n\t\t{\n\t\t\tif (strstr($line, \"Round#\") !== false && strstr($line, \"Race#\") !== false) // title\n\t\t\t{\n\t\t\t\t// start new race\n\t\t\t\t$section = 0;\n\t\t\t\t\n\t\t\t\t$race_name_line_arr = preg_split(\"/[\\s]{5,}/\", $line);\n\t\t\t\t\n\t\t\t\t$curr_race = trim($race_name_line_arr[0]);\n\t\t\t\t$total_data[$curr_race] = array();\n\t\t\t\t\n\t\t\t}\n\t\t\telse if (preg_match('/.*Driver.*Car#.*Laps.*/', $line)) \n\t\t\t{\n\t\t\t\t\n\t\t\t\t$section = 1;\n\t\t\t\t\n\t\t\t\t//echo var_dump($line);\n\t\t\t\t$driSectArr = get_driver_section_header_array($line);\n\t\t\t\t//echo var_dump($driSectArr);\n\t\t\t\t\n\t\t\t\t$finish_position = 1;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if (preg_match('/.*1\\_.+2\\_.+3\\_.*/', $line))\n\t\t\t{\n\t\t\t\t$section = 2;\n\t\t\t\t\n\t\t\t\t$line = $line . \" \";\n\n\t\t\t\t//echo var_dump($line);\n\t\t\t\t$lapSectArr = get_lap_section_header_array($line);\n\t\t\t\t//echo var_dump($lapSectArr);\n\t\t\t\t\n\t\t\t\t$lapSectIndex = get_lap_section_index($line);\n\t\t\t\t//echo var_dump($lapSectIndex);\n\t\t\t}\n\t\t\telse if ($section === 2 && preg_match('/----/', $line))\n\t\t\t{\n\t\t\t\t$section = 3;\n\t\t\t\t//echo $line;\n\t\t\t}\n\t\t\telse if ($section === 1)\n\t\t\t{\n\t\t\t\t//echo var_dump($line);\n\t\t\t\t$elementArr = preg_split('/\\s+/', $line);\n\t\t\t\t//echo var_dump($elementArr);\n\t\t\t\t\n\t\t\t\t$i = 0;\n\t\t\t\t$name = true;\n\t\t\t\t$currData = array();\n\t\t\t\t$currData[\"Driver\"] = \"\";\n\t\t\t\t\n\t\t\t\tforeach ($elementArr as $e)\n\t\t\t\t{\n\t\t\t\t\t// Assuming all start with driver's name\n\t\t\t\t\tif ($name && (! preg_match('/#\\d/', $e)))\n\t\t\t\t\t{\n\t\t\t\t\t\t$currData[\"Driver\"] .= \" \" . $e;\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$name = false;\n\t\t\t\t\t\t$i++;\n\t\t\t\t\t\t$currData[$driSectArr[$i]] = $e;\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t$currData[\"Driver\"] = trim($currData[\"Driver\"]);\n\t\t\t\t//echo var_dump($currData);\n\t\t\t\t\n\t\t\t\t$currData[\"Car#\"] = str_replace(\"#\", \"\", $currData[\"Car#\"]);\n\t\t\t\t$currData[\"laptime_array\"] = array();\n\t\t\t\t//$currData[\"position_array\"] = array();\n\t\t\t\t$currData[\"finish_position\"] = $finish_position;\n\t\t\t\t$finish_position++;\n\t\t\t\t$total_data[$curr_race][$currData[\"Car#\"]] = $currData;\n\t\t\t}\n\t\t\telse if ($section === 2)\n\t\t\t{\n\t\t\t\tif (empty($line)) {\n\t\t\t\t\t$type2input = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$line = $line . \" \";// add ending delimiter\n\t\t\t\t\t\n\t\t\t\t\t$first_ending_splitter_index = 1; // first delimiter is in the beginning of the line, so we start from 1. this index is fixed for $lapSectArr\n\t\t\t\t\t\n\t\t\t\t\tfor ($i = $first_ending_splitter_index; $i < count($lapSectIndex); $i++) {\n\t\t\t\t\t\t$plap_section = substr($line, $lapSectIndex[$i-1], $lapSectIndex[$i] - $lapSectIndex[$i-1]);\n\t\t\t\t\t\t$plap_section = trim($plap_section);\n\t\t\t\t\t\t//echo var_dump($plap_section);\n\t\t\t\t\t\tif (!empty($plap_section)) {\n\t\t\t\t\t\t\t$plap_section = explode(\"/\", $plap_section);\n\t\t\t\t\t\t\tarray_push($total_data[$curr_race][$lapSectArr[$i-1]][\"laptime_array\"], $plap_section[1]); // fill lap time\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//array_push($total_data[$curr_race][$lapSectArr[$i-1]][\"position_array\"], $plap_section[0]); // fill position \n\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\telse if ($section === 3)\n\t\t\t{\n\t\t\t\t// these are not important data\n\t\t\t\t//echo var_dump($line);\n\t\t\t\t//echo var_dump($lapSectArr);\n\t\t\t\t// when new race starts, finish last race first\n\t\t\t\tif ($type2input) { // if it's second type of input, need to remove un-needed lines of data\n\t\t\t\t\tforeach ($lapSectArr as $temp => $carNum) {\n\t\t\t\t\t\tif (isset($total_data[$curr_race][$carNum])) {\n\t\t\t\t\t\t\t$temp_laptime_array = array();\n\t\t\t\t\t\t\t//$temp_position_array = array();\n\t\t\t\t\t\t\t//echo var_dump($total_data[$curr_race][$carNum][\"laptime_array\"]);\n\t\t\t\t\t\t\tfor ($i = 0; $i < count($total_data[$curr_race][$carNum][\"laptime_array\"]); $i += 2) {\n\t\t\t\t\t\t\t\t//echo var_dump($carNum);\n\t\t\t\t\t\t\t\tarray_push($temp_laptime_array, $total_data[$curr_race][$carNum][\"laptime_array\"][$i]);\n\t\t\t\t\t\t\t\t//array_push($temp_position_array, $total_data[$curr_race][$carNum][\"position_array\"][$i]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//echo var_dump($temp_position_array);\n\t\t\t\t\t\t\t//echo var_dump($temp_laptime_array);\n\t\t\t\t\t\t\t$total_data[$curr_race][$carNum][\"laptime_array\"] = $temp_laptime_array;\n\t\t\t\t\t\t\t//$total_data[$curr_race][$carNum][\"position_array\"] = $temp_position_array;\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\t$section = 4; // 4 means end of one race\n\t\t\t}\n\t\t}\n\t}\n\n\treturn $total_data;\n\n}", "title": "" }, { "docid": "397d441f93a32a4d32d56fb5fa8032c4", "score": "0.47951615", "text": "public function getTotalMonthlyJournalEntry(){\n\n try {\n\n $journals = AccountsSummery::select(\n DB::raw('\n tbl_accounts_summery.id')\n )\n ->where(DB::raw('MONTH(tbl_accounts_summery.date)'), '=', date('n'))\n ->where('tbl_accounts_summery.type', '1')\n ->get();\n\n \n $jr = ['cr' => '0.00'];\n if(isset($journals) )\n {\n $amount = 0;\n $debit = 0;\n foreach($journals as $journal)\n {\n $amount += $journal->amount->sum('credit');\n\n }\n \n $jr = ['cr' => $amount];\n \n }\n //print_r($jr);\n return $jr;\n\n\n } catch (ModelNotFoundException $e) {\n \n }\n }", "title": "" }, { "docid": "071c47f5afd5c1c544f1e36be8550830", "score": "0.4784992", "text": "function get_mortality_rates(&$rates)\n\t{\n\t//The mortality rates are in the form of a table of male and female rates sorted by age\n\t//The PA90-1 tables were used\n\n\t\t$place=0;\n\t\t$sql = \"SELECT * FROM mortality_rates\";\n\t\t$result = mysql_query($sql);\n\t\twhile ($row = mysql_fetch_assoc($result)) \n\t\t{\n\t\t\t$rates[$place][1] = $row['age'];\n\t\t\t$rates[$place][2] = $row['mortality_male'];\n\t\t\t$rates[$place][3] = $row['mortality_female'];\n\t\t\t$place++;\n\t\t}\n\t}", "title": "" }, { "docid": "61aac6ff6189a9d0942c6a9f65c94ab8", "score": "0.47764564", "text": "public function getYears()\n\t{\n\t\t//get the details according to years\n\t\t$year = date(\"Y\");\n\n\t\t$minYear = DB::select(DB::raw(\"select min(created_at) as \\\"min\\\" from analysis\"));\n\n\t\t$least_year_in_table = $minYear[0]->min;\n\t\t//$least_year_in_table = explode($least_year_in_table,\"-\")[0];\n\n\t\t$least_year_in_table = substr($least_year_in_table,0,4);\n\t\t$month = date(\"m\");\n\t\t$monthtemp = $month;\n\n\t\t$analysisarrayYear = array();\n\t\twhile($least_year_in_table <= $year ) {\n\t\t\t$analysisarray= array();\n\t\t\tif($least_year_in_table == $year)\n\t\t\t{\n\t\t\t\t$month = date(\"m\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$month = 12;\n\t\t\t}\n\t\t\twhile ($month > 0) {\n\t\t\t\t$analysis = new Analysis();\n\n\t\t\t\tif ($month == $monthtemp || $month >= 10) {\n\t\t\t\t\t$count = DB::select(DB::raw(\"select count(*) as \\\"count\\\" from analysis where created_at >'\".$least_year_in_table.\"-\".$month.\"-01' and created_at < '\".$least_year_in_table.\"-\".$month.\"-31'\"));\n\t\t\t\t\tif($count[0]->count == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$month = $month - 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t$analysis->generateData($month, $least_year_in_table);\n\t\t\t\t} else {\n\n\t\t\t\t\t$count = DB::select(DB::raw(\"select count(*) as \\\"count\\\" from analysis where created_at >'\".$least_year_in_table.\"-\".$month.\"-01' and created_at < '\".$least_year_in_table.\"-\".$month.\"-31'\"));\n\t\t\t\t\tif($count[0]->count == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$month = $month - 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t$analysis->generateData(\"0\" . $month, $least_year_in_table);\n\t\t\t\t}\n\t\t\t\t$month = $month - 1;\n\t\t\t\tarray_push($analysisarray, $analysis);\n\t\t\t}\n\t\t\t$analysisarrayYear[$least_year_in_table] = $analysisarray;\n\t\t\t$least_year_in_table = $least_year_in_table + 1;\n\t\t}\n\t\treturn $analysisarrayYear;\n\t}", "title": "" }, { "docid": "e79864eedd05f5d9fc12a35c3f845660", "score": "0.47711056", "text": "public function run()\n {\n $recordings = AirQualityRecording::get();\n\n $recordings = $recordings->groupBy(function($d) {\n return Carbon::parse($d->taken_at)->format('m');\n });\n\n foreach ($recordings as $monthData)\n {\n $average = aqiAverage($monthData);\n $monthlyAverageRecording = new MonthlyAverageRecording();\n\n $monthlyAverageRecording->air_quality_index_average = $average;\n $monthlyAverageRecording->reading_id = 1;\n $monthlyAverageRecording->taken_at = Carbon::createFromTimeString($monthData[0]->taken_at)->format('Y-m-1 00:00:00');\n\n $healthHazardLevel = HealthHazardLevel::where('air_quality_index_lower_bound', '<=', $average)\n ->where('air_quality_index_upper_bound', '>=', $average)\n ->first();\n\n $monthlyAverageRecording->health_hazard_level_id = $healthHazardLevel->id;\n\n $monthlyAverageRecording->city_id = 1;\n\n $monthlyAverageRecording->save();\n }\n }", "title": "" }, { "docid": "3972ea80cbfda394d5c6713a2dcdf1dd", "score": "0.47694337", "text": "public static function centerAnalysisDetail($id='', $mandal='', $year='', $center='', $outside_projects=false, $full_summary=NULL){\n global $Database, $Session, $Core, $Logs;\n $where = '';\n $output = array();\n $year = empty($year) ? date('Y') : $year;\n // for full summary show data base on filter.\n if($full_summary===true){\n $where = $Session->filter_gender_mandal(\"year='$year'\", '', '');\n $where = $Session->filter_region_center($where, '', '', '');\n }else{\n $gender = $Session->gender;\n $by_who = ($Session->user_level==UL_SANCHALAK) ? 2 : 1;\n\n if(!empty($mandal)){\n $array = $Core->gender_mandal($mandal);\n $gender = $array['gender'];\n $mandal = $array['mandal'];\n }else{\n $mandal = $Session->mandal;\n }\n $where = !empty($id) ? \"center_analysis_id='$id'\" : \"year='$year' AND mandal='$mandal' AND gender='$gender' AND center='$center' AND by_who='$by_who'\";\n }\n // add where cause\n $where = !empty($where) ? \"WHERE \".$where : '';\n // starting query\n $q = \"SELECT ca.gender, ca.mandal, ca.year, (SELECT region FROM \".DB_PREFIX.\"centers WHERE center=ca.center) AS region, ca.center, ca.by_who, ca.challenge, ca.center_analysis_id, cad.center_analysis_detail_id, cad.project_id, cad.people_to_focus, cad.plan_to_help, cad.santo_help, cad.jan, cad.feb, cad.mar, cad.apr, cad.may, cad.jun, cad.jul, cad.aug, cad.sep, cad.oct, cad.nov, cad.dec FROM \".DB_PREFIX.\"center_analysis AS ca LEFT JOIN \".DB_PREFIX.\"center_analysis_details AS cad ON ca.center_analysis_id=cad.center_analysis_id \";\n // join projects for other projects\n $q.= ($outside_projects AND empty($id)) ? \" JOIN \".DB_PREFIX.\"projects AS p ON cad.project_id=p.project_id JOIN \".DB_PREFIX.\"lists as l ON p.project_list_id=l.list_id WHERE l.name LIKE 'Mentoring outside%'\" : \"\";\n // final query\n $q = \"SELECT gender, mandal, year, region, center, by_who, challenge, center_analysis_id, center_analysis_detail_id, project_id, people_to_focus, plan_to_help, santo_help, jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, `dec` FROM ($q) AS z $where ORDER BY gender DESC, mandal, year, region, center, by_who, challenge\";\n // query result\n $result = $Database->result(array(__LINE__, __METHOD__, __FILE__), $q);\n\n if(count($result)>0){\n $row = '';\n for($a=0; $a<count($result); $a++){\n $row = $result[$a];\n $output[$a] = array(\n \"gender\" => $row[\"gender\"],\n \"mandal\" => $row[\"mandal\"],\n \"year\" => $row[\"year\"],\n \"region\" => $row[\"region\"],\n \"center\" => $row[\"center\"],\n \"by_who\" => $row[\"by_who\"],\n \"id\" => $row[\"center_analysis_detail_id\"],\n \"project_id\" => $row[\"project_id\"],\n \"challenge_name\" => $row[\"challenge\"],\n \"people_to_focus\" => $row[\"people_to_focus\"],\n \"plan_to_help\" => $row[\"plan_to_help\"],\n \"santo_help\" => $row[\"santo_help\"],\n \"months\" => array($row[\"jan\"], $row[\"feb\"], $row[\"mar\"], $row[\"apr\"], $row[\"may\"], $row[\"jun\"], $row[\"jul\"], $row[\"aug\"], $row[\"sep\"], $row[\"oct\"], $row[\"nov\"], $row[\"dec\"])\n );\n }\n }\n return $output;\n }", "title": "" }, { "docid": "7163d5ff9fdb314b5b86028f0916a9c9", "score": "0.47622097", "text": "private function calculateAndPopulateData(): void\n {\n $manager = new AlgorithmManager;\n\n $this->algorithm = $manager->getFor($this->data->rater->data()->ageGroup, $this->data->meetings);\n\n // INFO: Get the expected treatment response (etr) for each meeting.\n $flattenMeeting = $this->algorithm->flattenMeeting;\n $maxMeetings = $this->algorithm->maxMeetings;\n $centeredAt20 = $this->data->firstRating->data()->score - 20;\n $interceptMean = $this->algorithm->interceptMean + ($this->algorithm->intake * $centeredAt20);\n $linearMean = $this->algorithm->linearMean + ($this->algorithm->linearByIntake * $centeredAt20);\n $quadraticMean = $this->algorithm->quadraticMean + ($this->algorithm->quadraticByIntake * $centeredAt20);\n $cubicMean = $this->algorithm->cubicMean + ($this->algorithm->cubicByIntake * $centeredAt20);\n $intercept = 1;\n\n // INFO: Make sure that the entire etr is always presented.\n if ($this->data->meetings < $maxMeetings) {\n $this->data->meetings = $maxMeetings;\n }\n\n // INFO: Add the intake session.\n $value = $this->data->firstRating->data()->score;\n $this->data->values[] = $value;\n $this->data->valuesAsString[] = number_format($value, 1);\n\n // INFO: Add the remaining values.\n for ($i = 1; $i < $this->data->meetings; $i++) {\n $meeting = $i;\n\n if ($meeting >= $flattenMeeting) {\n $meeting = $flattenMeeting;\n }\n\n $linear\t= $meeting;\n $quadratic = $linear * $linear;\n $cubic = $linear * $linear * $linear;\n $value = ($interceptMean * $intercept) + ($linearMean * $linear) + ($quadraticMean * $quadratic) + ($cubicMean * $cubic);\n\n $roundedValue = round($value, 1, PHP_ROUND_HALF_UP);\n $this->data->values[] = $roundedValue;\n $this->data->valuesAsString[] = number_format($roundedValue, 1);\n }\n }", "title": "" }, { "docid": "82eba0bf8a65d4542253eb1a34c12d30", "score": "0.47548667", "text": "public function run()\n {\n $data = [\n // savage\n [\n 'name' => 'agility',\n 'items' => [\n 'horsebackRiding',\n 'breaking',\n 'driving',\n 'fight',\n 'concealment',\n 'throwing',\n 'flying',\n 'swimming',\n 'shooting',\n 'navigation',\n ],\n 'type' => Charsheet::TYPE_SAVAGE_WORLD,\n ],\n [\n 'name' => 'intelligence',\n 'items' => [\n 'gambles',\n 'attention',\n 'survival',\n 'espial',\n 'healing',\n 'provocation',\n 'investigation',\n 'street sense',\n ],\n 'type' => Charsheet::TYPE_SAVAGE_WORLD,\n ],\n [\n 'name' => 'character',\n 'items' => [\n 'intimidation',\n 'conviction',\n ],\n 'type' => Charsheet::TYPE_SAVAGE_WORLD,\n ],\n [\n 'name' => 'force',\n 'items' => [\n 'climbing',\n ],\n 'type' => Charsheet::TYPE_SAVAGE_WORLD,\n ],\n [\n 'name' => 'stamina',\n 'items' => [],\n 'type' => Charsheet::TYPE_SAVAGE_WORLD,\n ],\n\n // cyberpunk\n [\n 'name' => 'force',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'agility',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'charisma',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'manipulation',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'appearance',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'perception',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'intellect',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'intelligence',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'athletics',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'attentiveness',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'intimidation',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'street_knowledge',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'leadership',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'hand_fight',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'evasion',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'trick',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'expression',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'empathy',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'safety',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'driving',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'survival',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'execution',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'knowledge_animal',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'crafts',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'stealth',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'shooting',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'fencing',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'etiquette',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'academic',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'laws',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'computers',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'linguistics',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'medicine',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'scientific',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'cybernetics',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'politics',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'investigation',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'finance',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'extensions',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'mods',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'compassion',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'control',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'boldness',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'humanity',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'willpower',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'willpowerGeneral',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n [\n 'name' => 'bioBattery',\n 'type' => Charsheet::TYPE_CYBERPUNK,\n ],\n ];\n\n foreach ($data as $parentData) {\n $parent = Characteristic::updateOrCreate([\n 'name' => __('app.' . $parentData['name']),\n 'is_default' => true,\n 'charsheet_type' => $parentData['type'],\n ]);\n\n $items = $parentData['items'] ?? [];\n\n foreach ($items as $item) {\n Characteristic::updateOrCreate([\n 'name' => __('app.' . $item),\n 'parent_id' => $parent->id,\n 'is_default' => true,\n 'charsheet_type' => $parentData['type'],\n ]);\n }\n }\n }", "title": "" }, { "docid": "15b569e8d57ffc55cace57c24ba52ef5", "score": "0.47515368", "text": "public function process(){\n\t\t/*You can add others data which has been pre-processed into this Array*/\n\t\t/*Place your file to folder ROOT/datasets/ */\n\n\t\t// $corpus = Array('datakompas.txt','datatempo.txt','datatribunn.txt','datajpnn.txt','datamerdeka.txt','datametrotv.txt','dataviva.txt','datarepublika.txt','datasuara.txt');\n\t\t$corpus = Array('datatribunn.txt','datakompas.txt','datatempo.txt','datajpnn.txt','datamerdeka.txt');\n\t\t$this->numOfCorpus = count($corpus);\n\t\t\n\n\t\t/*Learning step to add corpus into Model*/\n\t\tforeach($corpus as $i){\n\t\t\t$this->modelUnigram = $this->Tools->unigramCount(file_get_contents(FCPATH.'datasets/'.$i),$this->modelUnigram);\n\t\t\t$this->modelBigram = $this->Tools->bigramCount(file_get_contents(FCPATH.'datasets/'.$i),$this->modelBigram);\n\t\t\t$this->modelTrigram = $this->Tools->trigramCount(file_get_contents(FCPATH.'datasets/'.$i),$this->modelTrigram);\n\t\t}\n\t\t/*Key error deletion*/\n\t\tunset($this->modelBigram['START END']);\n\n\n\n\t\t/*Selecting top1 Unigram & Bigram*/\n\t\t$this->top10Unigram = $this->modelUnigram;\n\t\tusort($this->top10Unigram, function ($a, $b) {\n\t\t return $a['count'] < $b['count'];\n\t\t});\n\n\t\t$this->top10Bigram = $this->modelBigram;\n\t\tusort($this->top10Bigram, function ($a, $b) {\n\t\t return $a['count'] < $b['count'];\n\t\t});\n\t\t$this->top10Trigram = $this->modelTrigram;\n\t\tusort($this->top10Trigram, function ($a, $b) {\n\t\t return $a['count'] < $b['count'];\n\t\t});\n\n\t\t/*Calculate Probability*/\n\t\tforeach($this->modelBigram as &$row){\n\t\t\t$row['probabilty'] = $row['count']/$this->modelUnigram[$row['first']]['count'];\n\t\t}\n\t\t/*Selecting bigram below the treshold*/\n\t\tforeach($this->modelBigram as $i){\n\t\t\tif($i['count'] > 3){\n\t\t\t\t$this->modelBigramTreshold[$i['words']] = $i;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "344afc9d478fd93f9ba00637d8e7077c", "score": "0.4748086", "text": "public function run()\n {\t\n \t$patients = [\n ['first_name' => 'Brandon', 'last_name' => 'Dinesman', 'street_address' => '100 Elm St', 'apt_ste' => '', 'city' => 'San Antonio', 'state' => 'TX', 'zip_code' => '78212', 'dob' => '1983-08-02', 'height' => '72', 'weight' => '180', 'phone' => '2102876927', 'ssn' => '123456789', 'emergency_contact_name' => 'mom', 'emergency_contact_number' => '1234567890', 'emergency_contact_email' => 'mom@mom.com', 'medication' => 'Vicodin', 'health_insurance' => 'Aetna','sex'=>'M','marital_status'=>'M','race'=>'Caucasian (non-Hispanic)'],\n ['first_name' => 'John', 'last_name' => 'Hernandez', 'street_address' => '100 Elm St', 'apt_ste' => '', 'city' => 'San Antonio', 'state' => 'TX', 'zip_code' => '78212', 'dob' => '1983-08-02', 'height' => '72', 'weight' => '180', 'phone' => '2108888888', 'ssn' => '999999999', 'emergency_contact_name' => 'dad', 'emergency_contact_number' => '1111111111', 'emergency_contact_email' => 'dad@dad.com', 'medication' => 'Zocor', 'health_insurance' => 'BlueCross BlueShield','sex'=>'M','marital_status'=>'M','race'=>'Latino/Hispanic'],\n ['first_name' => 'Tyler', 'last_name' => 'Warren', 'street_address' => '100 Elm St', 'apt_ste' => '1100', 'city' => 'San Antonio', 'state' => 'TX', 'zip_code' => '78212', 'dob' => '1983-08-02', 'height' => '72', 'weight' => '180', 'phone' => '2109199191', 'ssn' => '555555555', 'emergency_contact_name' => 'sister', 'emergency_contact_number' => '3333333333', 'emergency_contact_email' => 'sister@sister.com', 'medication' => 'Abilify', 'health_insurance' => 'Aetna','sex'=>'M','marital_status'=>'M','race'=>'Caucasian (non-Hispanic)']\n\t\t];\n\n foreach($patients as $patient){\n $patient1 = new App\\Patient();\n $patient1->user_id = App\\User::all()->random()->id;\n $patient1->physician_id = '1';//App\\Physician::all()->random()->id;\n $patient1->first_name = $patient['first_name'];\n $patient1->last_name = $patient['last_name'];\n $patient1->street_address = $patient['street_address'];\n $patient1->apt_ste = $patient['apt_ste'];\n $patient1->city = $patient['city'];\n $patient1->state = $patient['state'];\n $patient1->zip_code = $patient['zip_code'];\n $patient1->dob = $patient['dob'];\n $patient1->height = $patient['height'];\n $patient1->weight = $patient['weight'];\n $patient1->phone = $patient['phone'];\n $patient1->ssn = $patient['ssn'];\n $patient1->emergency_contact_name = $patient['emergency_contact_name'];\n $patient1->emergency_contact_number = $patient['emergency_contact_number'];\n $patient1->emergency_contact_email = $patient['emergency_contact_email'];\n $patient1->medication = $patient['medication'];\n $patient1->health_insurance = $patient['health_insurance'];\n $patient1->sex = $patient['sex'];\n $patient1->marital_status = $patient['marital_status'];\n $patient1->race = $patient['race'];\n $patient1->save();\n }\n \n \tfactory(App\\Patient::class, 1000)->create();\n }", "title": "" }, { "docid": "a1af0ce816b65c0c4e625ac5a84ac2fb", "score": "0.47450885", "text": "public function mieprint() {\n $month = $this->input->get('month');\n $year = $this->input->get('year');\n //Get Monthly Income\n $data['incomes'] = $this->cashier_model->getincomemonthly($month, $year);\n //Get Monthly Expense\n $data['expens'] = $this->cashier_model->getexpenmonthly($month, $year);\n //Income Catagory\n $data['income_catagorys'] = $this->cashier_model->getcatwr();\n //Expense Catagory\n $data['expense_catagorys'] = $this->cashier_model->getexcatwr();\n $this->load->view('cashier/monthie', $data);\n }", "title": "" }, { "docid": "515e44716cda3ebb92b0c9f382a88092", "score": "0.4737026", "text": "public function standerlizeData(){\n\n if(is_array($this->ExaStudents)){\n ksort($this->ExaStudents);\n $mkinsub;\n foreach($this->ExaStudents as $Mark){\n $mkinsub[$Mark->Sub_id]=$Mark;\n }\n $this->Total=0;\n $this->Average=0;\n $this->count=0;\n foreach($mkinsub as $mksi){\n $this->Total+=$mksi->Mark;\n $this->count++;\n\n }\n if($this->count!=0){\n $this->Average=($this->Total)/$this->count;\n }\n\n $this->ExaStudents=$mkinsub;\n }\n }", "title": "" }, { "docid": "2ac67aa56e68b5d877e6a1b88b597c61", "score": "0.47368726", "text": "public function run()\n {\n $martialStatuses = [\n 'أعزب/آنسة',\n 'متزوج/ة',\n 'مطلق/ة',\n 'أرمل/ة',\n 'أخرى',\n ];\n\n foreach ($martialStatuses as $martialStatus) {\n \\App\\Models\\MaritalStatus::create(['name' => $martialStatus]);\n }\n }", "title": "" }, { "docid": "7d1027b5ab6fb027a7370dcbf61bfbb0", "score": "0.47351792", "text": "function OEM_PatientInfo($pInfo, $mRecord, $pDetailMap) {\n?>\n<table border=\"1\" width=\"100%\" class=\"InformationTable\">\n\n<tr>\n<th>Age:</th><td><?php echo $pInfo['Age'] ?></td>\n<th>Date of Birth:</th><td><?php echo $pInfo['DOB'] ?></td>\n<th colspan=\"2\">Gender:</th><td colspan=\"2\"><?php echo $pInfo['Gender'] ?></td>\n<!-- <th>DFN:</th><td><?php echo $pInfo['DFN'] ?></td> -->\n</tr>\n\n<tr>\n<th colspan=\"2\">BSA Weight Method:</th><td colspan=\"2\"><?php echo $pDetailMap['WeightFormula'] ?></td>\n<th colspan=\"2\">BSA Method:</th><td colspan=\"2\"><?php echo $pDetailMap['BSAFormula'] ?></td>\n</tr>\n<tr>\n<th>Goal:</th><td><?php echo $pDetailMap['Goal']; ?></td>\n<th>Clinical Trial:</th><td><?php echo (\"\" === $mRecord['ClinicalTrial'] ? \"NOT a clinical trial\" : $mRecord['ClinicalTrial']) ; ?></td>\n<th colspan=\"2\">Performance&nbsp;Status:</th><td colspan=\"2\"><?php echo $mRecord['PerfStatus']; ?></td>\n</tr>\n\n<tr>\n<th colspan=\"2\">Type(s) of Cancer:</th><td colspan=\"2\"><?php echo $mRecord['DiseaseRecord'][0]['Name']; ?></td>\n<th colspan=\"2\">Stage:</th><td colspan=\"2\"><?php echo $mRecord['DiseaseStage']; ?></td>\n</tr>\n\n<tr><th>Allergies:</th><td colspan=\"7\">\n<table width=\"100%\"><tbody><tr><th style=\"text-align: center;\">Name</th><th style=\"text-align: center;\">Type</th><th style=\"text-align: center;\">Comment</th></tr></tbody></table>\n\n</td></tr>\n\n\n<tr><th>Regimen:</th><td colspan=\"7\"><?php echo $pDetailMap['TemplateName']; ?></td></tr>\n<tr><th>Description:</th><td colspan=\"7\"><?php echo $pDetailMap['TemplateDescription']; ?></td></tr>\n<tr><th>Treatment Start</th><td colspan=\"7\"><?php echo $pDetailMap['TreatmentStart']; ?></td></tr>\n<tr><th>Treatment End</th><td colspan=\"7\"><?php echo $pDetailMap['TreatmentEnd']; ?></td></tr>\n<tr>\n<th colspan=\"2\">Regimen Instructions:</th><td colspan=\"4\"><?php echo $mRecord['regimenInstruction']; ?></td>\n<th >Regimen Status:</th><td><?php echo $mRecord['Status']; ?></td></tr>\n\n<tr>\n<th>No.&nbsp;of&nbsp;Cycles:</th><td><?php echo $mRecord['CourseNumMax']; ?></td>\n<th>Cycle&nbsp;Length:</th><td colspan=\"5\"><?php echo $mRecord['length'] . \" \" . $mRecord['CycleLengthUnit']; ?></td>\n</tr>\n\n<tr><th>Neutropenia&nbsp;Risk:</th><td><?php echo $mRecord['fnRisk']; ?>%</td>\n<th>Recommendation:</th>\n<td colspan=\"5\"><?php echo html_entity_decode(htmlspecialchars_decode($mRecord[\"fnrDetails\"])); ?>%</td>\n\n</td></tr>\n<tr>\n<th rowspan=\"2\">Emesis&nbsp;Risk:</th>\n<td rowspan=\"2\"><?php echo $mRecord['emoLevel']; ?></td>\n\n<th>Recommendation:</th><td colspan=\"5\"><?php echo html_entity_decode(htmlspecialchars_decode($mRecord[\"emodetails\"])); ?></td></tr>\n\n</table>\n\n<?php\n}", "title": "" }, { "docid": "e2086b72a72fdfd791bcc92d15ee3910", "score": "0.47344047", "text": "function llenarMatrizMedicos(){\n\t\t\t\n\t\t\tunset($matriz); \n\t\t\tglobal $matriz;\t\n\t\t\t$res = llamarRegistrosMySQLMedicos();\n\t\t\t$posicion=0;\n\t\t\t\t\n\t\t\t\twhile ($fila = mysql_fetch_array($res))\n\t\t\t\t{\t\n\t\t\t\t\t\n\t\t\t\t\t$matriz[\"usuario\"][$posicion] = $fila[\"Nombre\"];\n\t\t\t\t\t$matriz[\"rm\"][$posicion] = $fila[\"RM\"];\n\t\t\t\t\t$matriz[\"cargo\"][$posicion] = $fila[\"Cargo\"];\n\t\t\t\t\t$matriz[\"estadomed\"][$posicion] = $fila[\"Activo\"];\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$posicion++;\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "5b69144c11038c76520f4413b55844ab", "score": "0.4731748", "text": "public function salesByPrincipalData($type,$year,$month){\n $data = new Invoice();\n $data = $data->GetJSonPenjualanByPrincipal($type,$year,$month);\n echo json_encode($data);\n }", "title": "" }, { "docid": "5f74511061fb7c11d817110becabc3ca", "score": "0.4720358", "text": "function magmaCalulation($income,$age,$car_category,$car_segment,$hdfc_car_price, $hdfc_clid, $hdfc_ratecat, $City, $hdfc_car_name, $emp_Stat)\n{\n//echo '<br><br>';\n\t$minIncome = 150000;\n\tlist($term,$print_term)=getdob($age);\n\tif($term>60)\n\t{\n\t\t$term = 60;\n\t\t$print_term = \"5\";\n\t}\n\tif($emp_Stat==1)\n\t{\n\t\n\n\t\tif(($car_segment=='A' && $income>350000) || ($car_segment=='B' && $income>450000) || ($car_segment=='C' && $income>750000))\n\t\t{\n\t\t\t//$loan_amount=$hdfc_car_price;\n\t\t\t$final_ltvmount = $hdfc_car_price;\n\t\t}\n\t\telse if(($car_segment=='A'|| $car_segment=='B') && $income>$minIncome)\n\t\t{\n\t\t\t//$loan_amount=$hdfc_car_price;\n\t\t\t$final_ltvmount = $hdfc_car_price * (90 / 100);\n\t\t}\n\t\telse if(($car_segment=='C') && $income>$minIncome)\n\t\t{\n\t\t\t//$loan_amount=$hdfc_car_price;\n\t\t\t$final_ltvmount = $hdfc_car_price * (85 / 100);\n\t\t}\n\t\telse if(($car_segment=='D'|| $car_segment=='D+') && $income>$minIncome)\n\t\t{\n\t\t\t//$loan_amount=$hdfc_car_price;\n\t\t\t$final_ltvmount = $hdfc_car_price * (80 / 100);\n\t\t}\n\t\t\n\t\tif($term>35)\n\t\t{\n\t\t\tif($car_segment==\"A\")\n\t\t\t{\n\t\t\t\t$intr_rate=11.25;\n\t\t\t}\t\n\t\t\telse if ($car_segment==\"B\")\n\t\t\t{\n\t\t\t\t$intr_rate=11.25;\n\t\t\t}\n\t\t\telse if ($car_segment==\"C\" || $car_segment==\"Suv\")\n\t\t\t{\n\t\t\t\t$intr_rate=11;\n\t\t\t}\n\t\t\telse if ($car_segment==\"D\" || $car_segment==\"D+\")\n\t\t\t{\n\t\t\t\t$intr_rate=10.75;\n\t\t\t}\n\t\t\telse if ($car_segment==\"Muv\")\n\t\t\t{\n\t\t\t\t$intr_rate=11;\n\t\t\t}\t\t\n\t\t}\t\n\t\telse\n\t\t{\n\t\t\tif($hdfc_rate_segment==\"A\")\n\t\t\t{\n\t\t\t\t$intr_rate=12;\n\t\t\t}\t\n\t\t\telse if ($hdfc_rate_segment==\"B\")\n\t\t\t{\n\t\t\t\t$intr_rate=12;\n\t\t\t}\n\t\t\telse if ($hdfc_rate_segment==\"C\" || $hdfc_rate_segment==\"Suv\")\n\t\t\t{\n\t\t\t\t$intr_rate=11.75;\n\t\t\t}\n\t\t\telse if ($hdfc_rate_segment==\"D\" || $hdfc_rate_segment==\"D+\")\n\t\t\t{\n\t\t\t\t$intr_rate=11.25;\n\t\t\t}\n\t\t\telse if ($hdfc_rate_segment==\"Muv\")\n\t\t\t{\n\t\t\t\t$intr_rate=11.75;\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t\n\t}\n\t\t\n\tif(($final_ltvmount>0 && $loan_amount>0) && ($final_ltvmount>$loan_amount))\n\t{\n\t\t $final_loanamt = $loan_amount;\n\t}\n\telse\n\t{\n\t\t$final_loanamt = $final_ltvmount;\n\t}\n\t$final_interest_rate = $intr_rate;\n\t\n\t$nwterm = $term;\n\t$details[]= $nwterm;\n\t$details[]= $print_term;\n\t$details[]= $final_interest_rate;\n\t$details[]= $final_loanamt;\n\treturn($details);\n}", "title": "" }, { "docid": "0ead5b3b1da6563917602eba4415d605", "score": "0.4719469", "text": "public function index()\n {\n //\n if(Auth::user()->getRoleNames()->first() == 'patient')\n {\n $dp = DB::table('prescribes')->where('patient_id', Auth::user()->patient->id)->get(); \n $physician_appt = Auth::user()->patient->appointments()->has('prescribes')->get()->map(function($appointment){\n return ['appointment_id' => $appointment->id, 'physician_id' => $appointment->physician->id];\n });\n $physicians = array();\n foreach ($physician_appt as $value) {\n $value = collect($value);\n $physician = Physician::find($value->get('physician_id'));\n $extras = DB::table('prescribes')\n ->where('patient_id', Auth::user()->patient->id)\n ->where('physician_id', $value->get('physician_id'))\n ->where('appointment_id', $value->get('appointment_id'))\n ->get(['id', 'appointment_id', 'date', 'dose'])->first();\n $appointment = Appointment::find($extras->appointment_id);\n $appointment->end_date_time = Carbon::parse($appointment->end_date_time)\n ->toDayDateTimeString();\n $appointment->start_date_time = Carbon::parse($appointment->start_date_time)\n ->toDayDateTimeString();\n $physician['custom_appointment'] = array_merge($appointment->toArray(), [\n 'physician' => $appointment->physician->user,\n 'nurse' => $appointment->nurse->user\n ]); \n $physician['prescribe_id'] = $extras->id; \n $physician['date'] = new Carbon($extras->date);\n $physician['dose'] = $extras->dose;\n\n $physician['medications'] = Medication::find(DB::table('prescribes')\n ->where('patient_id', Auth::user()->patient->id)\n ->where('physician_id', $value->get('physician_id'))\n ->where('appointment_id', $value->get('appointment_id'))\n ->get('medication_id')->map->medication_id->toArray());\n array_push($physicians, $physician);\n }\n $dp_obj = collect($physicians)->map(function($element){\n return [\n 'physician' => Physician::find($element->id)->user->name,\n 'patient' => Auth::user()->name,\n 'medication' => $element['medications'],\n 'appointment' => $element['custom_appointment'],\n 'url' => url('admin/prescribes'),\n 'id' => $element['prescribe_id'],\n 'dose' => $element['dose'],\n 'date' => $element['date']->toFormattedDateString(),\n ];\n });\n }\n else if(Auth::user()->getRoleNames()->first() == 'physician')\n {\n $dp = DB::table('prescribes')->where('physician_id', Auth::user()->physician->id)->get(); \n $patient_appt = Auth::user()->physician->appointments()->has('prescribes')->get()->map(function($appointment){\n return ['appointment_id' => $appointment->id, 'patient_id' => $appointment->patient->id];\n });\n $patients = array();\n foreach ($patient_appt as $value) {\n $value = collect($value);\n $patient = Patient::find($value->get('patient_id'));\n $extras = DB::table('prescribes')\n ->where('physician_id', Auth::user()->physician->id)\n ->where('patient_id', $value->get('patient_id'))\n ->where('appointment_id', $value->get('appointment_id'))\n ->get(['id', 'appointment_id', 'date', 'dose'])->first();\n $appointment = Appointment::find($extras->appointment_id);\n $appointment->end_date_time = Carbon::parse($appointment->end_date_time)\n ->toDayDateTimeString();\n $appointment->start_date_time = Carbon::parse($appointment->start_date_time)\n ->toDayDateTimeString();\n $patient['custom_appointment'] = array_merge($appointment->toArray(), [\n 'physician' => $appointment->physician->user,\n 'nurse' => $appointment->nurse->user\n ]); \n $patient['prescribe_id'] = $extras->id; \n $patient['date'] = new Carbon($extras->date);\n $patient['dose'] = $extras->dose;\n\n $patient['medications'] = Medication::find(DB::table('prescribes')\n ->where('physician_id', Auth::user()->physician->id)\n ->where('patient_id', $value->get('patient_id'))\n ->where('appointment_id', $value->get('appointment_id'))\n ->get('medication_id')->map->medication_id->toArray());\n array_push($patients, $patient);\n }\n $dp_obj = collect($patients)->map(function($element){\n return [\n 'patient' => Patient::find($element->id)->user->name,\n 'physician' => Auth::user()->name,\n 'medication' => $element['medications'],\n 'appointment' => $element['custom_appointment'],\n 'url' => url('admin/prescribes'),\n 'id' => $element['prescribe_id'],\n 'dose' => $element['dose'],\n 'date' => $element['date']->toFormattedDateString(),\n ];\n });\n }\n else{\n $dp = DB::table('prescribes')->get();\n $dp_obj = $dp->map(function ($element){\n $date = new Carbon($element->date);\n $patient = Patient::find($element->patient_id)->user->name;\n $physician = Physician::find($element->physician_id)->user->name;\n $medication = Medication::find($element->medication_id)->name;\n $appointment = Appointment::find($element->appointment_id);\n $appointment->end_date_time = Carbon::parse($appointment->end_date_time)\n ->toDayDateTimeString();\n $appointment->start_date_time = Carbon::parse($appointment->start_date_time)\n ->toDayDateTimeString();\n return [\n 'patient' => $patient,\n 'physician' => $physician,\n 'medication' => $medication,\n 'appointment' => array_merge($appointment->toArray(), [\n 'physician' => $appointment->physician->user,\n 'nurse' => $appointment->nurse->user\n ]),\n 'url' => url('admin/prescribes'),\n 'id' => $element->id,\n 'dose' => $element->dose,\n 'date' => $date->toFormattedDateString(),\n ];\n });\n }\n $physicians = Physician::all();\n $patients = Patient::all();\n $medications = Medication::all();\n $appointments = Appointment::all();\n return view('backend.prescribes.index', compact('dp_obj', 'patients', 'physicians', 'medications', 'appointments'));\n }", "title": "" }, { "docid": "2f1b14a59d36acb84a48ff73dc21580b", "score": "0.47170514", "text": "public function ani_monthreport() \n\t{\t\n\t\tif($this->session->user_id==\"\" || !isset($this->session->user_id)){redirect('index.php');} \n\t\t\n\t\t$Current_year=date('Y');\n\t\t$start_date=date('Y-01-01');\n\t\t$end_date=date('Y-12-31');\n\t\t\n\t\t$data['yearofMonth']=$this->Dashboard_model->getMonthofYear($start_date,$end_date);\n\t\t$this->load->view('header');\n\t\t$this->load->view('animator/monthwise_report',$data);\n\t\t$this->load->view('footer');\n\t}", "title": "" }, { "docid": "64747cbde64d4f041a780afb7bcc09f3", "score": "0.47165334", "text": "function do_table_income($t){\n global $monthly_balance;\n\n $work = array('משכורת', 'הכנסה מעסק');\n $capital = array('הכנסה מהון');\n $freq = array('חודשי' => 1, 'דו חודשי' => 2 ,'רבעוני' => 4,'שנתי'=> 12);\n $total_monthly = 0;\n $work_income = 0;\n $rights_income = 0;\n $capital_income = 0;\n\n if ($t == false || empty($t) || (count($t) == 1 && empty($t[0]['income_sum']))) // empty table\n return \"0^0^0^0^\";\n \n foreach ($t as $line){\n // assuming income is monthly\n if (!isset($line['income_sum']) || empty($line['income_sum'])) continue;\n\n if (!isset($freq[$line['income_frequency']])) continue; // ignore unknown/missing frequecy values\n $m_in = (int) (intval($line['income_sum']) / intval($freq[$line['income_frequency']])); // normalize frequence to monthly income\n $total_monthly += $m_in;\n if (in_array($line['income_type'], $work))\n $work_income += $m_in;\n else if (in_array($line['income_type'], $capital))\n $capital_income += $m_in;\n else // rights or other\n $rights_income += $m_in;\n }\n $monthly_balance['total_monthly'] = $total_monthly; \n $monthly_balance['work_income'] = $work_income;\n $monthly_balance['rights_income'] = $rights_income;\n $monthly_balance['capital_income'] = $capital_income;\n set_monthly_balance('total_monthly', $total_monthly);\n set_monthly_balance('work_income', $work_income);\n set_monthly_balance('rights_income', $rights_income);\n set_monthly_balance('capital_income', $capital_income);\n return sprintf(\"%d^%d^%d^%d^\", $total_monthly, $work_income, $rights_income, $capital_income);\n}", "title": "" }, { "docid": "b4ef0ddac5e76d0564df2d707dee8b56", "score": "0.47164765", "text": "function getAllYears() {\n\t$name = array();\n\t$team = array();\n\t$songs = array();\n\t$artists = array();\n\t$genre = array();\n\t$ids = array();\n\t$danceability = array();\n\t$energy = array();\n\t$loudness = array();\n\t$tempo = array();\n\t$speechiness = array();\n\t$instrumentalness = array();\n\t$valence = array();\n\t$key = array();\n\t$position = array();\n\t$winperc = array();\n\t$count = 0;\n\tif (($handle = fopen(\"mlb-info.csv\", \"r\")) !== FALSE) {\n\t \twhile (($data = fgetcsv($handle, 1000, \",\")) !== FALSE) {\n\t \t\tif ($data[0] != 'Name' && $data[0] != ''){\n\t \t$name[$count] = $data[0];\n\t\t\t\t$team[$count] = $data[1];\n\t\t\t\t$songs[$count] = $data[2];\n\t\t\t\t$artists[$count] = $data[3];\n\t\t\t\t$genre[$count] = $data[4];\n\t\t\t\t$ids[$count] = $data[5];\n\t\t\t\t$danceability[$count] = $data[6];\n\t\t\t\t$energy[$count] = $data[7];\n\t\t\t\t$loudness[$count] = $data[8];\n\t\t\t\t$tempo[$count] = $data[9];\n\t\t\t\t$speechiness[$count] = $data[10];\n\t\t\t\t$instrumentalness[$count] = $data[11];\n\t\t\t\t$valence[$count] = $data[12];\n\t\t\t\t$key[$count] = $data[13];\n\t\t\t\t$position[$count] = $data[14];\n\t\t\t\t$winperc[$count] =$data[17];\n\n\t\t\t\tif ($ids[$count] == \"No Song\"){\n\t\t\t\t\t$year[$count] = \"No Song\";\n\t\t\t\t}else{\n\t\t\t\t\t$albid = getAlbumOfSong($ids[$count]);\n\t\t\t\t\twhile (sizeof($albid) == 0){\n\t\t \t\techo \"BAD REQUEST ALBUM\\n\";\n\t\t \t\techo \"$ids[$count]\\n\";\n\t\t \t\tsleep(1);\n\t\t \t\t$albid = getAlbumOfSong($ids[$count]);\n\t\t \t}\n\t\t \t$tempyear = getYearOfAlbum($albid);\n\t\t \twhile (sizeof($tempyear) == 0){\n\t\t \t\techo \"BAD REQUEST YEAR\\n\";\n\t\t \t\tsleep(1);\n\t\t \t\t$tempyear = getAlbumOfSong($ids[$count]);\n\t\t \t}\n\t\t \t$year[$count] = $tempyear;\n\t\t\t\t}\n\t\t\t\tprint(\"$count\\n\");\n\t\t\t\techo \"$name[$count]\\n\";\n\t \t$count++;\n \t}\n\t }\n\n\t buildFullCSVDate($name, $team, $songs, $artists, $genre, $ids, $danceability, $energy, $loudness, $tempo, $speechiness, $instrumentalness, $valence, $key, $year, $position, $winperc, \"mlb-info-with-date.csv\");\n\t fclose($handle);\n\t}\n}", "title": "" }, { "docid": "e2338584492836e22cf0d12de6c0a9bb", "score": "0.4716182", "text": "function get_loan_classification_and_dmr($branch_id,$year,$month,$pre_year,$pre_month){\n\t\t//echo \"<pre>,$pre_year,$pre_month\";\n\t\t$branch_condition = \"\";\n\t\tif($branch_id != -1) {\n\t\t\t$branch_condition = \" AND m.branch_id = $branch_id\";\n\t\t}\n\t\t\n\t\t/*$q = \"SELECT m.product_id\nFROM month_end_process_loans AS m\n WHERE (MONTH(m.date) = $pre_month OR MONTH(m.date) = $month) AND (YEAR(m.date) = $pre_year OR YEAR(m.date) = $year) $branch_condition \nGROUP BY m.product_id;\";*/\n/*\n$q = \"SELECT id as product_id,short_name as product_name\nFROM loan_products AS m\n WHERE start_date < '$year-$month-01' ORDER BY code\";\n */\n $q = \"SELECT id as product_id,short_name as product_name\nFROM loan_products AS m\n WHERE 1=1 ORDER BY code\";\n\n\t$query=$this->db->query($q); \n\t$loan_classifications=$query->result_array();\n\t\n\t$loan_classification_drm_info = array();\n\t\n\tforeach($loan_classifications as $loan_classification){\n\t\t$loan_classification_drm_info[$loan_classification['product_id']]['product_name'] = $loan_classification['product_name'];\n\t\t$loan_classification_drm_info[$loan_classification['product_id']]['total_outstanding'] = 0.00;\n\t\t$loan_classification_drm_info[$loan_classification['product_id']]['total_overdue'] =0.00;\n\t\t$loan_classification_drm_info[$loan_classification['product_id']]['current_overdue'] = 0.00;\n\t\t$loan_classification_drm_info[$loan_classification['product_id']]['good_loan_outstanding'] = 0.00;\n\t\t$loan_classification_drm_info[$loan_classification['product_id']]['doubtful_loan_outstanding'] = 0.00;\n\t\t$loan_classification_drm_info[$loan_classification['product_id']]['bad_loan_outstanding'] = 0.00;\n\t}\n\t//print_r($loan_classifications);\t\n\t//\tdie;\n\t\t$pre_q = \"SELECT lp.short_name AS product_name,m.product_id,SUM(m.closing_outstanding_amount) AS outstanding_amount,\nSUM(m.substandard_outstanding) AS substandard_outstanding,SUM(m.substandard_overdue) AS substandard_overdue,\nSUM(m.doubtfull_outstanding) AS doubtfull_outstanding,SUM(m.doubtfull_overdue) AS doubtfull_overdue\n,SUM(m.bad_outstanding) AS bad_outstanding , SUM(m.bad_overdue) AS bad_overdue\nFROM month_end_process_loans AS m\nINNER JOIN loan_products AS lp ON (lp.id = m.product_id)\n\n WHERE MONTH(m.date) = $pre_month $branch_condition AND YEAR(m.date) = $pre_year\nGROUP BY m.product_id,lp.short_name,m.product_id ORDER BY lp.code;\";\n\t//echo $pre_q;\n\t$pre_query=$this->db->query($pre_q); \n\t$pre_loan_classifications=$pre_query->result_array();\n\t\n\t\n\tforeach($pre_loan_classifications as $loan_classification){\n\t\t$loan_classification_drm_info[$loan_classification['product_id']]['product_name'] = $loan_classification['product_name'];\n\t\t$loan_classification_drm_info[$loan_classification['product_id']]['total_outstanding'] = $loan_classification['outstanding_amount'];\n\t\t$loan_classification_drm_info[$loan_classification['product_id']]['total_overdue'] = $loan_classification['substandard_overdue']+$loan_classification['doubtfull_overdue']+$loan_classification['bad_overdue'];\n\t\t$loan_classification_drm_info[$loan_classification['product_id']]['current_overdue'] = 0.00;\n\t\t$loan_classification_drm_info[$loan_classification['product_id']]['good_loan_outstanding'] = $loan_classification['substandard_outstanding']*1/100;\n\t\t$loan_classification_drm_info[$loan_classification['product_id']]['doubtful_loan_outstanding'] = $loan_classification['doubtfull_outstanding']*75/100;\n\t\t$loan_classification_drm_info[$loan_classification['product_id']]['bad_loan_outstanding'] = $loan_classification['bad_outstanding'];\n\t}\n\t//print_r($loan_classification_drm_info);\n\t$current_q = \"SELECT lp.short_name AS product_name,m.product_id,SUM(m.closing_outstanding_amount) AS outstanding_amount,\nSUM(m.substandard_outstanding) AS substandard_outstanding,SUM(m.substandard_overdue) AS substandard_overdue,\nSUM(m.doubtfull_outstanding) AS doubtfull_outstanding,SUM(m.doubtfull_overdue) AS doubtfull_overdue\n,SUM(m.bad_outstanding) AS bad_outstanding , SUM(m.bad_overdue) AS bad_overdue\nFROM month_end_process_loans AS m\nINNER JOIN loan_products AS lp ON (lp.id = m.product_id)\n\n WHERE MONTH(m.date) = $month $branch_condition AND YEAR(m.date) = $year\nGROUP BY m.product_id,lp.short_name,m.product_id ORDER BY lp.code;\";\n\n\t$current_query=$this->db->query($current_q); \n\t$current_loan_classifications=$current_query->result_array();\n\t$current_loan_month_overdue = array();\n\tforeach($current_loan_classifications as $loan_classification){\n\t\t$current_total_overdue = $loan_classification['substandard_overdue']+$loan_classification['doubtfull_overdue']+$loan_classification['bad_overdue'];\n\t\t$pre_total_overdue = isset($loan_classification_drm_info[$loan_classification['product_id']]['total_overdue'])?$loan_classification_drm_info[$loan_classification['product_id']]['total_overdue']:0.00;\n\t\t$loan_classification_drm_info[$loan_classification['product_id']]['current_overdue'] = $current_total_overdue - $pre_total_overdue;\t\n\t}\n\t\t\n\t\t\n\t\t\n\t\t//print_r($loan_classification_drm_info);\n\n\t\t//echo \"</pre>\";\n\t\treturn $loan_classification_drm_info;\n\t}", "title": "" }, { "docid": "5a97756a495e80de3e90899c2f0c4fc4", "score": "0.47160012", "text": "public function index()\n {\n try {\n\n $data = [];\n\n $str_month = date('Y-m'.'-01', time());\n $end_month = date('Y-m'.'-01', strtotime(\"-6 month\"));\n\n $end = strtotime($str_month);\n $start = $month = strtotime($end_month);\n\n $inc = [];\n $exp = [];\n $montly_income = $this->getIncomebymonth();\n $montly_expense = $this->getExpensebymonth();\n\n while ($month <= $end) {\n\n $total_month[] = date('M Y', $month);\n $m = date('m', $month);\n\n $key = \"month\";\n $return = $this->whatever($montly_income, $key, $m);\n if ($return) {\n $inc[] = $return;\n }else{\n $inc[] = '0.00';\n }\n\n $eReturn = $this->whatever($montly_expense, $key, $m);\n if($eReturn)\n {\n $exp[] = $eReturn;\n }else{\n $exp[] = '0.00';\n }\n\n\n $month = strtotime(\"+1 month\", $month);\n }\n\n\n $data['total_month'] = $total_month;\n $data['monthly_income'] = $inc;\n $data['montly_expense'] = $exp;\n\n $data['recents'] = $this->recentsInvoices(5);\n $data['status'] = $this->invoiceStatus();\n $data['payments'] = $this->salesPayments(5);\n $data['vouchers'] = $this->purchasePayments(5);\n $data['total_month_incom'] = $this->getTotalMonthlyIncome();\n $data['total_month_expense'] = $this->getTotalMonthlyExpense();\n\n $data['total_receivable'] = $this->getTotalReceivable();\n $data['total_payable'] = $this->getTotalPayable();\n\n $data['total_month_incom'] = number_format($data['total_month_incom'], 2);\n $data['total_month_expense'] = number_format($data['total_month_expense'], 2);\n\n $data['total_pie'] = [$this->custom->intCurrency($data['total_month_incom']), $this->custom->intCurrency($data['total_month_expense'])];\n $data['total_receivable'] = $this->getTotalReceivable();\n $data['total_payable'] = $this->getTotalPayable();\n $data['today_receivable'] = $this->getTodayReceivable();\n $data['today_payable'] = $this->getTodayPayable();\n $data['today_expense'] = $this->getTodayJournalEntry();\n $data['total_expense'] = $this->getTotalMonthlyJournalEntry();\n $data['today_expense'] = number_format($data['today_expense']['cr'], 2);\n $data['total_expense'] = number_format($data['total_expense']['cr'], 2);\n \n $data['currency'] = $this->custom->currencyFormatSymbol();\n\n return view('accounting.index', $data);\n \n\n } catch (ModelNotFoundException $e) {\n \n }\n }", "title": "" }, { "docid": "6af995e640434bf02aeef431fcde1df9", "score": "0.4713574", "text": "abstract public function outputSummary();", "title": "" }, { "docid": "b73ff17baac536ffce13288efff96518", "score": "0.47131136", "text": "public function run ()\n {\n //\n \n $saleGroup = [\n '整合行銷部' => [\n '2019-11-01' => [133, 153, 174, 188, 200, 201, 204, 205],\n ],\n '業務五部' => [\n '2019-06-01' => [67, 132, 136, 155],\n '2019-07-01' => [67, 122, 131, 132, 136, 155],\n '2019-08-01' => [67, 122, 131, 132, 136, 155],\n '2019-09-01' => [67, 122, 131, 132, 136, 155],\n '2019-10-01' => [67, 131, 132, 136, 155],\n '2019-11-01' => [67, 131, 132, 136],\n ],\n '業務六部' => [\n '2019-06-01' => [84, 156, 170, 181],\n '2019-07-01' => [84, 170, 181, 186],\n '2019-08-01' => [84, 170, 181, 186],\n '2019-09-01' => [84, 170, 181, 186],\n '2019-11-01' => [84, 170, 181, 186]\n ],\n '後勤' => [\n '2018-01-01' => [16, 33, 48, 78, 89]\n ],\n '離職業務' => [\n '2019-07-01' => [97, 156, 161, 175],\n '2019-08-01' => [97, 156, 161, 175],\n '2019-09-01' => [97, 156, 161, 175],\n '2019-10-01' => [97, 122, 156, 161, 175],\n '2019-11-01' => [97, 122, 155, 156, 161, 175]\n ],\n ];\n $convener = [67, 84];\n $saleBonus = [[\n \"achieving_rate\" => 100,\n \"bonus_rate\" => 0,\n 'bonus_direct' => 15000,\n ],\n [\n \"achieving_rate\" => 150,\n \"bonus_rate\" => 0,\n 'bonus_direct' => 20000,\n ]];\n \n foreach ($saleGroup as $name => $item) {\n \n $saleGroups = SaleGroups::create(['name' => $name]);\n \n $dateNow = new DateTime(date('Ym01'));\n \n $date = new DateTime(date('2017-12-01'));\n \n $groupsData = $saleBonus;\n \n while ($date->format('Y-m-d') != $dateNow->format('Y-m-d')) {\n $setDate = $date->modify('+1Month')->format('Y-m-d');\n $nowSetDate = [];\n $allSetDate = array_keys($item);\n \n if(in_array($setDate,$allSetDate)){\n $nowSetDate = $item[$setDate];\n }else{\n if($setDate < $allSetDate[0]){\n $nowSetDate = $item[$allSetDate[0]];\n }else{\n $nowSetDate = last($item);\n }\n }\n \n $userData = array_map(function ($v) use ($setDate, $convener, $saleGroups) {\n \n $tmp = [\n 'erp_user_id' => $v,\n 'set_date' => $setDate,\n 'is_convener' => in_array($v, $convener) ? 1 : 0\n ];\n \n return $tmp;\n }, $nowSetDate, [$setDate, $convener, $saleGroups]);\n \n \n $saleGroups->groupsUsers()->createMany($userData);\n \n $groupsBonus = array_map(function ($v) use ($setDate) {\n $v['set_date'] = $setDate;\n return $v;\n }, $groupsData, [$setDate]);\n \n $saleGroups->groupsBonus()->createMany($groupsBonus);\n \n };\n }\n }", "title": "" }, { "docid": "66a9c3be4f576dd325e3a4e5d7e1be8d", "score": "0.4712077", "text": "public function getLunarData($year, $month, $day, $hour) {\n\n \t\t// [0] Determine Tithi (lunar day)\n\n\t\t// calculate the longitude of the sun and moon then get the difference between the two\n\t\t$sunLong = $this->getSunLongitude($year, $month, $day, $hour);\n\t\t$moonLong = $this->getMoonLongitude($year, $month, $day, $hour);\n\t\t$diff = $this->getDiff($sunLong, $moonLong);\n\n\t\t// Classical calculations involve adding a one here, \n\t\t// but it is omitted because of array position counting\n\t\t$ti = $diff / 12;\n\n\t\t$tithiNames = array(\n\t\t\t\"1. Pratipat\",\n\t\t\t\"2. Dvitiya\",\n\t\t\t\"3. Tritiya\",\n\t\t\t\"4. Chaturthi\",\n\t\t\t\"5. Panchami\",\n\t\t\t\"6. Shashti\",\n\t\t\t\"7. Saptami\",\n\t\t\t\"8. Ashtami\",\n\t\t\t\"9. Navami\",\n\t\t\t\"10. Dashami\",\n\t\t\t\"11. Ekadashi\",\n\t\t\t\"12. Dvadashi\",\n\t\t\t\"13. Trayodashi\",\n\t\t\t\"14. Chaturdashi\",\n\t\t\t\"15. Purnima\",\n\t\t\t\"1. Pratipat\",\n\t\t\t\"2. Dvitiya\",\n\t\t\t\"3. Tritiya\",\n\t\t\t\"4. Chaturthi\",\n\t\t\t\"5. Panchami\",\n\t\t\t\"6. Shashti\",\n\t\t\t\"7. Saptami\",\n\t\t\t\"8. Ashtami\",\n\t\t\t\"9. Navami\",\n\t\t\t\"10. Dashami\",\n\t\t\t\"11. Ekadashi\",\n\t\t\t\"12. Dvadashi\",\n\t\t\t\"13. Trayodashi\",\n\t\t\t\"14. Chaturdashi\",\n\t\t\t\"15. Amavasya\"\n\t\t);\n\n\n\t\t// [1] Determine Paksha (phase of moon)\n\n\t\tif ($ti < 14) {\n\t\t\t// waxing moon phase\n\t\t\t$paksha = \"Shukla\";\n\t\t}\n\t\telse if (15<= $ti && $ti < 29) {\n\t\t\t// waning moon phase\n\t\t\t$paksha = \"Krishna\";\n\t\t}\n\t\telse if ((int)$ti == 14) {\n\t\t\t// full moon\n\t\t\t$paksha = \"Full Moon\";\n\t\t}\n\t\telse if((int)$ti == 29){\n\t\t\t// new moon\n\t\t\t$paksha = \"New Moon\";\n\t\t}\n\n\n\t\t// [2] Determine Lunar Month\n\n\t\t$monthNames = array(\n\t\t\t\"Caitra\",\n\t\t\t\"Vaisakha\",\n\t\t\t\"Jyestha\",\n\t\t\t\"Asadha\",\n\t\t\t\"Sravana\",\n\t\t\t\"Bhadrapada\",\n\t\t\t\"Asvina\",\n\t\t\t\"Kartika\",\n\t\t\t\"Margasirsa\",\n\t\t\t\"Pausa\",\n\t\t\t\"Magha\",\n\t\t\t\"Phalgura\"\n\t\t);\n\n\t\t// Default parameter values\n\t\t$geolat = 0;\n\t\t$pos = 0;\n\t\t$yr=0;\n\t\t$mn=0;\n\t\t$dy=0;\n\t\t$hr=0;\n\n\t\t// To determine which lunar month we are in, we want to know the y/m/d of the full moon for this month\n\t\tif ($ti < 12) {\n\t\t\t// get the difference in days between current day and full moon\n\t\t\t$tDiff = (int)(14 - $ti);\n\t\t\t$temp = mktime($hour, 0, 0, $month, ($day + $tDiff), $year);\n\t\t\t$time = date_parse(date('d-m-Y H:i', $temp));\n\n\t\t\t// modify the input date with new values\n\t\t\t$yr = $time['year'];\n\t\t\t$mn = $time['month'];\n\t\t\t$dy = $time['day'];\n\t\t\t$hr = $time['hour'];\n\t\t}\n\t\telse if ($ti > 16) {\n\t\t\t// get the difference in days between current day and full moon\n\t\t\t$tDiff = (int)($ti - 14);\n\t\t\t$temp = mktime($hour, 0, 0, $month, ($day - $tDiff), $year);\n\t\t\t$time = date_parse(date('d-m-Y H:i', $temp));\n\n\t\t\t// modify the input date with new values\n\t\t\t$yr = $time['year'];\n\t\t\t$mn = $time['month'];\n\t\t\t$dy = $time['day'];\n\t\t\t$hr = $time['hour'];\n\t\t}\n\t\telse {\n\t\t\t// proceed with given date\n\t\t\t$yr = $year;\n\t\t\t$mn = $month;\n\t\t\t$dy = $day;\n\t\t\t$hr = $hour;\n\t\t}\n\n\t\t// Get the house position that the sun is in with the given parameters\n\t\t$pos = $this->getHousePos($yr, $mn, $dy, $hr, $geolat);\n\n\t\t// We subtract 1 from the pos since array indices start at 0 instead of 1\n\t\t$pos -= 1;\n\t\tif($pos < 0) {\n\t\t\t$pos += 12;\n\t\t}\n\n\t\t// Create an array of the resulting tithi, paksha, and lunar month\n\t\t$result = array(\n\t\t\t\"tithi\" => $tithiNames[$ti], \n\t\t\t\"paksha\" => $paksha,\n\t\t\t\"lunarMonth\" => $monthNames[$pos]\n\t\t);\n\t\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "6ea9730dc578d3d2aee377b15a4efc0d", "score": "0.4711254", "text": "public function setMaritalStatus($maritalStatus) \n\t{\n\t\t$this->maritalStatus = $maritalStatus;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "33d86a26f10b45b413a40ab31a448526", "score": "0.47070646", "text": "function display(){\n\n echo \"<table cellspacing='0px' cellpadding='10px' border='1px solid black' >\";\n echo \"<tr><th>name</th><th>DoB</th><th>Grade</th><th>Subjects</th><th>Results</th></tr>\";\n\n //to display the student details in tabular form \n foreach($this->student as $key => $value){\n\n echo \"<td>\".$value->sname.\"</td>\";\n echo \"<td>\".$value->dob.\"</td>\";\n echo \"<td>\".$value->grade.\"</td>\";\n \n foreach($this->marksobtained[$value->sid] as $k => $v){\n\n if($k ==\"submarks\"){\n\n echo \"<td>\";\n foreach($v as $k1=>$v1){\n\n if($v1 == \"\"){\n echo $k1.\" (Not Appeared\"; \n }\n else{\n echo $k1.\" (\".$v1; \n }\n foreach($this->subMinimumMarks as $k2 => $v2 ){\n\n if($v2->subjectcode == $k1){\n\n foreach($v2 as $k3 =>$v3){\n\n if($k3 == 'mm'){\n\n echo \",\".$v3.\")<br>\";\n }\n }\n }\n }\n }\n echo \"</td>\";\n }\n }\n\n echo \"<td>\".$this->result($value->sid).\"</td></tr>\";\n }\n echo \"</table>\";\n\n }", "title": "" }, { "docid": "a421a092d07bdb29792cb60cb9293822", "score": "0.47051632", "text": "function getFinalResults($teammates, $scores, $topics, $team_data) {\n $normalized = calculateNormalizedSurveyResults(array_keys($teammates), $scores, $topics, $team_data);\n \n // Finally, calculate the overall results for each student\n $overall = calculateOverallResults(array_keys($teammates), $scores, $normalized);\n\n // Now generate the array of results to output\n $ret_val = array();\n\n // Create the header row\n $header = array(\"Reviewee Name (Email)\", \"Average Normalized Result\");\n $ret_val[] = $header;\n\n // Then add one row per student who was reviewed\n foreach ($teammates as $id => $name_and_email) {\n $line = array($name_and_email['name'] .' (' . $name_and_email['email'] . ')', $overall[$id]);\n $ret_val[] = $line;\n }\n return $ret_val;\n}", "title": "" }, { "docid": "0812059d22f1aac1073578cd3b64a904", "score": "0.4704621", "text": "public function calculateProvider()\n {\n return array(\n array(\n new Subject(\n array(\n 'name' => 'Mario',\n 'surname' => 'Rossi',\n 'birthDate' => '1985-12-10',\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 0,\n 'RSSMRA85T10A562S',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Roberto',\n 'surname' => 'Santini',\n 'birthDate' => '1963-05-08',\n 'gender' => 'M',\n 'belfioreCode' => 'H501',\n )\n ),\n 0,\n 'SNTRRT63E08H501T',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Davide',\n 'surname' => 'Rossi',\n 'birthDate' => '1989-12-10',\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 0,\n 'RSSDVD89T10A562S',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Maria',\n 'surname' => 'Montessori',\n 'birthDate' => '1870-08-31',\n 'gender' => 'F',\n 'belfioreCode' => 'C615',\n )\n ),\n 0,\n 'MNTMRA70M71C615I',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Mario',\n 'surname' => 'Rossi',\n 'birthDate' => new \\DateTime('1985-12-10'),\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 0,\n 'RSSMRA85T10A562S',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Gianfranco',\n 'surname' => 'Rossi',\n 'birthDate' => '1985-12-10',\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 0,\n 'RSSGFR85T10A562I',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Mario',\n 'surname' => 'Fo',\n 'birthDate' => '1985-12-10',\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 0,\n 'FOXMRA85T10A562G',\n ),\n array(\n new Subject(\n array(\n 'name' => '',\n 'surname' => 'Rossi',\n 'birthDate' => '1985-12-10',\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 0,\n 'RSSXXX85T10A562R',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Mario',\n 'surname' => '',\n 'birthDate' => '1985-12-10',\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 0,\n 'XXXMRA85T10A562B',\n ),\n array(\n new Subject(\n array(\n 'name' => '',\n 'surname' => '',\n 'birthDate' => '1985-12-10',\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 0,\n 'XXXXXX85T10A562A',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Roberto',\n 'surname' => 'Santi',\n 'birthDate' => '1963-05-08',\n 'gender' => 'M',\n 'belfioreCode' => 'H501',\n )\n ),\n 1,\n 'SNTRRT63E08H50ML',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Mario',\n 'surname' => 'Rossi',\n 'birthDate' => '1985-12-10',\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 1,\n 'RSSMRA85T10A56NH',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Mario',\n 'surname' => 'Rossi',\n 'birthDate' => '1985-12-10',\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 3,\n 'RSSMRA85T10A5SNT',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Mario',\n 'surname' => 'De Rossi',\n 'birthDate' => '1990-01-01',\n 'gender' => 'M',\n 'belfioreCode' => 'F839',\n )\n ),\n -1,\n 'DRSMRA90A01F839W',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Anna Paola',\n 'surname' => 'Rossi',\n 'birthDate' => '1990-01-01',\n 'gender' => 'F',\n 'belfioreCode' => 'F839',\n )\n ),\n -1,\n 'RSSNPL90A41F839J',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Mario',\n 'surname' => \"D'Ossi\",\n 'birthDate' => '1990-01-01',\n 'gender' => 'M',\n 'belfioreCode' => 'F839',\n )\n ),\n -1,\n 'DSSMRA90A01F839X',\n ),\n array(\n new Subject(\n array(\n 'name' => \"Lu'ay\",\n 'surname' => \"D'ari\",\n 'birthDate' => '1990-01-01',\n 'gender' => 'M',\n 'belfioreCode' => 'F839',\n )\n ),\n -1,\n 'DRALYU90A01F839U',\n ),\n array(\n new Subject(\n array(\n 'name' => \"Annalisa\",\n 'surname' => \"Lisà\",\n 'birthDate' => '1980-04-04',\n 'gender' => 'F',\n 'belfioreCode' => 'H501',\n )\n ),\n -1,\n 'LSINLS80D44H501F',\n ),\n );\n }", "title": "" }, { "docid": "42095e12345cb1afba497da972b29db4", "score": "0.47028625", "text": "public function run()\n {\n $armors = [\n [\n 'name' => 'Astera Helm',\n 'type' => 'head',\n 'quality' => true,\n 'def' => 2638,\n 'cres' => 21,\n 'str' => 180,\n 'agi' => 90,\n 'int' => 243,\n 'wil' => 80\n ],\n [\n 'name' => 'Astera Mail',\n 'type' => 'chest',\n 'quality' => true,\n 'def' => 2684,\n 'cres' => 25,\n 'str' => 180,\n 'agi' => 90,\n 'int' => 243,\n 'wil' => 80\n ],\n [\n 'name' => 'Astera Greaves',\n 'type' => 'legs',\n 'quality' => true,\n 'def' => 2557,\n 'cres' => 30,\n 'str' => 180,\n 'agi' => 90,\n 'int' => 243,\n 'wil' => 80\n ],\n [\n 'name' => 'Astera Gauntlets',\n 'type' => 'hand',\n 'quality' => true,\n 'def' => 2638,\n 'cres' => 21,\n 'str' => 180,\n 'agi' => 90,\n 'int' => 243,\n 'wil' => 80\n ],\n [\n 'name' => 'Astera Boots',\n 'type' => 'feet',\n 'quality' => true,\n 'def' => 2638,\n 'cres' => 21,\n 'str' => 180,\n 'agi' => 90,\n 'int' => 243,\n 'wil' => 80\n ],\n [\n 'name' => 'Milletian Helm',\n 'type' => 'head',\n 'quality' => true,\n 'bal' => 1,\n 'def' => 3208,\n 'cres' => 24,\n 'str' => 180,\n 'agi' => 90,\n 'int' => 243,\n 'wil' => 80\n ],\n [\n 'name' => 'Milletian Mail',\n 'type' => 'chest',\n 'quality' => true,\n 'bal' => 1,\n 'def' => 3144,\n 'cres' => 29,\n 'str' => 180,\n 'agi' => 90,\n 'int' => 243,\n 'wil' => 80\n ],\n [\n 'name' => 'Milletian Greaves',\n 'type' => 'legs',\n 'quality' => true,\n 'bal' => 1,\n 'def' => 2987,\n 'cres' => 34,\n 'str' => 180,\n 'agi' => 90,\n 'int' => 243,\n 'wil' => 80\n ],\n [\n 'name' => 'Milletian Gauntlets',\n 'type' => 'hand',\n 'quality' => true,\n 'bal' => 1,\n 'def' => 3208,\n 'cres' => 24,\n 'str' => 180,\n 'agi' => 90,\n 'int' => 243,\n 'wil' => 80\n ],\n [\n 'name' => 'Milletian Boots',\n 'type' => 'feet',\n 'quality' => true,\n 'bal' => 1,\n 'def' => 3208,\n 'cres' => 24,\n 'str' => 180,\n 'agi' => 90,\n 'int' => 243,\n 'wil' => 80\n ],\n [\n 'name' => 'Ardri Helm',\n 'type' => 'head',\n 'quality' => true,\n 'bal' => 1,\n 'def' => 3687,\n 'cres' => 27,\n 'str' => 180,\n 'agi' => 90,\n 'int' => 243,\n 'wil' => 80\n ],\n [\n 'name' => 'Ardri Mail',\n 'type' => 'chest',\n 'quality' => true,\n 'bal' => 1,\n 'def' => 3740,\n 'cres' => 34,\n 'str' => 180,\n 'agi' => 90,\n 'int' => 243,\n 'wil' => 80\n ],\n [\n 'name' => 'Ardri Greaves',\n 'type' => 'legs',\n 'quality' => true,\n 'bal' => 1,\n 'def' => 3554,\n 'cres' => 40,\n 'str' => 180,\n 'agi' => 90,\n 'int' => 243,\n 'wil' => 80\n ],\n [\n 'name' => 'Ardri Gauntlets',\n 'type' => 'hand',\n 'quality' => true,\n 'bal' => 1,\n 'def' => 3687,\n 'cres' => 27,\n 'str' => 180,\n 'agi' => 90,\n 'int' => 243,\n 'wil' => 80\n ],\n [\n 'name' => 'Ardri Boots',\n 'type' => 'feet',\n 'quality' => true,\n 'bal' => 1,\n 'def' => 3687,\n 'cres' => 27,\n 'str' => 180,\n 'agi' => 90,\n 'int' => 243,\n 'wil' => 80\n ]\n ];\n foreach ($armors as $item) {\n DB::table('armors')->insert($item);\n };\n }", "title": "" }, { "docid": "5e90f2fd40358d3ea911ae095da9f0e9", "score": "0.46956873", "text": "public function mealDetail(){\n $this->autoRender = false;\n \n $success = true;\n $message = '';\n $respData = []; \n \n $this->loadModel('Nutrition');\n //get user id and check authentication\n $programId = $this->Session->check('User.program_id')?$this->Session->read('User.program_id'):'';\n if(empty($programId)){\n $success = false;\n $message = 'Authentication Failed';\n //prepare response \n $resp = $this->Nutrition->prepareResponse($success, $message, $respData); \n return $resp;\n }\n \n if(!$this->request->is('get')){\n $success = false;\n $message = 'Invalid request method';\n }\n \n $mealId = isset($this->request->query['objectId'])?$this->request->query['objectId']:''; \n $programMealId = isset($this->request->query['programMealId'])?$this->request->query['programMealId']:''; \n \n if(empty($mealId)){\n return;\n }\n \n \n $this->loadModel('ProgramNutrition');\n try{\n \n $mealData = $this->Nutrition->findById($mealId);\n $respData = $mealData;\n $respData['Nutrition']['program_nutrition_id'] = $programMealId;\n } catch (Exception $ex) {\n $message = $ex->getMessage();\n $success = false;\n }\n \n //prepare response \n $resp = $this->Nutrition->prepareResponse($success, $message, $respData); \n return $resp;\n }", "title": "" }, { "docid": "43981640ea8160d50892c21208371cdf", "score": "0.4695416", "text": "public function calculateProvider()\n {\n return array(\n array(\n new Subject(\n array(\n 'name' => 'Mario',\n 'surname' => 'Rossi',\n 'birthDate' => '1985-12-10',\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 0,\n 'RSSMRA85T10A562S',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Roberto',\n 'surname' => 'Santini',\n 'birthDate' => '1963-05-08',\n 'gender' => 'M',\n 'belfioreCode' => 'H501',\n )\n ),\n 0,\n 'SNTRRT63E08H501T',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Davide',\n 'surname' => 'Rossi',\n 'birthDate' => '1989-12-10',\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 0,\n 'RSSDVD89T10A562S',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Maria',\n 'surname' => 'Montessori',\n 'birthDate' => '1870-08-31',\n 'gender' => 'F',\n 'belfioreCode' => 'C615',\n )\n ),\n 0,\n 'MNTMRA70M71C615I',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Mario',\n 'surname' => 'Rossi',\n 'birthDate' => new \\DateTime('1985-12-10'),\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 0,\n 'RSSMRA85T10A562S',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Gianfranco',\n 'surname' => 'Rossi',\n 'birthDate' => '1985-12-10',\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 0,\n 'RSSGFR85T10A562I',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Mario',\n 'surname' => 'Fo',\n 'birthDate' => '1985-12-10',\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 0,\n 'FOXMRA85T10A562G',\n ),\n array(\n new Subject(\n array(\n 'name' => '',\n 'surname' => 'Rossi',\n 'birthDate' => '1985-12-10',\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 0,\n 'RSSXXX85T10A562R',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Mario',\n 'surname' => '',\n 'birthDate' => '1985-12-10',\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 0,\n 'XXXMRA85T10A562B',\n ),\n array(\n new Subject(\n array(\n 'name' => '',\n 'surname' => '',\n 'birthDate' => '1985-12-10',\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 0,\n 'XXXXXX85T10A562A',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Roberto',\n 'surname' => 'Santi',\n 'birthDate' => '1963-05-08',\n 'gender' => 'M',\n 'belfioreCode' => 'H501',\n )\n ),\n 1,\n 'SNTRRT63E08H50ML',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Mario',\n 'surname' => 'Rossi',\n 'birthDate' => '1985-12-10',\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 1,\n 'RSSMRA85T10A56NH',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Mario',\n 'surname' => 'Rossi',\n 'birthDate' => '1985-12-10',\n 'gender' => 'M',\n 'belfioreCode' => 'A562',\n )\n ),\n 3,\n 'RSSMRA85T10ARSNO',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Mario',\n 'surname' => 'De Rossi',\n 'birthDate' => '1990-01-01',\n 'gender' => 'M',\n 'belfioreCode' => 'F839',\n )\n ),\n -1,\n 'DRSMRA90A01F839W',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Anna Paola',\n 'surname' => 'Rossi',\n 'birthDate' => '1990-01-01',\n 'gender' => 'F',\n 'belfioreCode' => 'F839',\n )\n ),\n -1,\n 'RSSNPL90A41F839J',\n ),\n array(\n new Subject(\n array(\n 'name' => 'Mario',\n 'surname' => \"D'Ossi\",\n 'birthDate' => '1990-01-01',\n 'gender' => 'M',\n 'belfioreCode' => 'F839',\n )\n ),\n -1,\n 'DSSMRA90A01F839X',\n ),\n array(\n new Subject(\n array(\n 'name' => \"Lu'ay\",\n 'surname' => \"D'ari\",\n 'birthDate' => '1990-01-01',\n 'gender' => 'M',\n 'belfioreCode' => 'F839',\n )\n ),\n -1,\n 'DRALYU90A01F839U',\n ),\n );\n }", "title": "" }, { "docid": "f475622eddf09a51915ba98eb9e1bdd6", "score": "0.4693633", "text": "function monthly_report($month,$year)\n {\n \n // $param['year'] = $month;\n // $param['month'] = $year;\n\n $year = $year;\n $month = $month;\n\n // $monthName = date('F', strtotime($year.\"-\".$month));\n\n $date = $this->getDateNeed($year, $month);\n\n $arr = array('monthly' => array());\n $arr['monthly'] = array(\n 'mdscsi' => array(),\n 'voice' => $this->queryForMonth($date['year'], $date['month'], $date['from'], $date['to'], 'voice'),\n 'web' => $this->queryForMonth($date['year'], $date['month'], $date['from'], $date['to'], 'web'),\n 'gcashminiprogram' => $this->queryForMonth($date['year'], $date['month'], $date['from'], $date['to'], 'gcashminiprogram'),\n 'mobile_app' => $this->queryForMonth($date['year'], $date['month'], $date['from'], $date['to'], 'mobile_app'),\n 'ctc' => $this->queryForMonth($date['year'], $date['month'], $date['from'], $date['to'], 'ctc'),\n 'fbchatbot' => $this->queryForMonth($date['year'], $date['month'], $date['from'], $date['to'], 'fbchatbot')\n );\n $arr['monthly']['mdscsi'] = $this->forMonth_getOvrAll($arr);\n\n $this->get_csv_report_monthly($arr);\n \n return $arr;\n }", "title": "" }, { "docid": "11145dd23d48b5956ea76680d0b4199c", "score": "0.46913683", "text": "public function selectArchivedMonthlyRainfallReportForTheMonthOfMarch($monthselectedAsANumber,$year,$stationName,$stationNumber,$tablename){\r\n $this->db->select('DAYOFMONTH(Date) as DayOfTheMonth,Rainfall',FALSE);\r\n $this->db->from($tablename);\r\n\r\n $session_data = $this->session->userdata('logged_in');\r\n $userrole=$session_data['UserRole'];\r\n\r\n if($userrole=='Manager'){\r\n\r\n $this->db->where('StationName', $stationName);\r\n $this->db->where('StationNumber', $stationNumber);\r\n\r\n }elseif($userrole=='OC'){\r\n $this->db->where('StationName', $stationName);\r\n $this->db->where('StationNumber', $stationNumber);\r\n\r\n }\r\n\r\n $this->db->where('MONTH(Date)', $monthselectedAsANumber);\r\n $this->db->where('YEAR(Date)', $year);\r\n\r\n\r\n $this->db->order_by('DAYOFMONTH(Date)','ASC');\r\n\r\n // Run the query\r\n $query = $this->db->get();\r\n if($query -> num_rows() > 0)\r\n {\r\n $result = $query->result(); //$query -> result_array();\r\n return $result;\r\n //return $query->result();\r\n }\r\n else\r\n {\r\n //$results = $query->result();\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "153a8c732bf05105b963605717d86301", "score": "0.46892384", "text": "function get_arrears(){\n //\n //The arrears amount is defiend as the sum of teh following summary \n //item names\n $names = [\n 'opening_balance',\n 'payment',\n 'credit',\n 'debit'\n ];\n //\n //Start with no sum\n $sum=0;\n //\n //Sum all the named (arrears) items\n foreach($names as $name){\n //\n //Only available data is considered\n if (isset($this->items[$name]->statements['summary']->results[0][0])){\n //\n //Do teh acculumation\n $sum = $sum + $this->items[$name]->statements['summary']->results[0][0];\n }\n }\n //\n return $sum;\n }", "title": "" }, { "docid": "fa75523869a12b953add0459cbba9541", "score": "0.46873683", "text": "public function mysalaryslip() {\t\t\n\t\treturn view(\"EmployeeSalaryslip::mysalaryslip\");\n\t}", "title": "" }, { "docid": "4f2478aca30a5050e86f99f9d5adedef", "score": "0.4685681", "text": "public function selectArchivedScannedMonthlyRainfallFormReportDataDetailsForAMonth($month,$year,$stationName,$stationNumber,$tablename){\r\n $this->db->select('*');\r\n //$this->db->from('metar');\r\n $this->db->from($tablename);\r\n\r\n $this->db->where('Month', $month);\r\n $this->db->where('Year', $year);\r\n $this->db->where('StationName', $stationName);\r\n $this->db->where('StationNumber', $stationNumber);\r\n // $this->db->order_by('TIME','ASC'); //small to big\r\n $this->db->limit(1);\r\n\r\n\r\n\r\n // Run the query\r\n $query = $this->db->get();\r\n if($query -> num_rows() ==1)\r\n {\r\n $result = $query->result(); //$query -> result_array();\r\n return $result;\r\n //return $query->result();\r\n }\r\n else\r\n {\r\n //$results = $query->result();\r\n return false;\r\n }\r\n\r\n\r\n\r\n }", "title": "" }, { "docid": "e894055468b77e06134b05fa63bb4473", "score": "0.46838245", "text": "public function index()\n {\n $years = Women::selectRaw('YEAR(survey_date)')->distinct()->orderBy('YEAR(survey_date)', 'asc')->get()->toArray();\n if ($years != []) {\n foreach ($years as $year) {\n $marriage_count[$year['YEAR(survey_date)']] = DB::table('marriage_details as m')\n ->join('womens as w', 'w.id', '=', 'm.women_id')\n ->whereYear('survey_date', '=', $year)\n ->count('*');\n $child_marriage_count[$year['YEAR(survey_date)']] = DB::table('marriage_details as m')\n ->join('womens as w', 'w.id', '=', 'm.women_id')\n ->whereYear('survey_date', '=', $year)\n ->where('age_of_marriage', '<', '18')\n ->count('*');\n }\n } else {\n $marriage_count = 0;\n $child_marriage_count = 0;\n }\n $events = Event::orderBy('date', 'DESC')->get()->take(6);\n $total_womens = Women::all()->count();\n if ($total_womens != 0) {\n $average_motherhood = AgeDuringChildBirth::distinct('marriage_detail_id')->sum('age_during_child_birth') / $total_womens;\n $average_marriage_age = MarriageDetail::sum('age_of_marriage') / $total_womens;\n } else {\n $average_motherhood = 0;\n $average_marriage_age = 0;\n }\n $know_about_child_marriage = ChildMarriage::where('know_child_marriage', true)->count();\n $total_events = Event::all()->count();\n if ($total_events != 0)\n $average_participants = Participant::all()->count() / $total_events;\n else\n $average_participants = 0;\n\n return view('home', compact('events', 'total_womens', 'average_motherhood', 'average_marriage_age', 'know_about_child_marriage', 'total_events', 'average_participants', 'marriage_count', 'child_marriage_count'));\n }", "title": "" }, { "docid": "bc8799ef6564b91d271164fedea00223", "score": "0.46831", "text": "protected function getReducedRecordLocalizeSummary() {}", "title": "" }, { "docid": "ff2c18a0afc7b62b25c459f821b010e2", "score": "0.46817964", "text": "function proofreadingTheoicalCostoldAction()\n\t{\n\t\t$request = $this->_request->getParams();\n\t\tif($request['year'])\n\t\t\t$search['year']=$request['year'];\n\t\telse\n\t\t\t$search['year']=date('Y');\n\n\t\t$quoteextract_obj = new Ep_Quote_Extract();\n\t\t$proofmissionDetails=$quoteextract_obj->getProofreadingCost($search);\n\t\t$language = array();\n\t\t//echo \"<pre>\"; print_r($proofmissionDetails); exit;\n\n\t\t$Html='<table border=1>\n\t\t\t\t\t\t\t<tr>\t\n\t\t\t\t\t\t\t\t<th></th>';\n\t\t\t\t\t\t\t\tforeach ($this->month_array_val as $key => $value) {\n\t\t\t\t\t\t\t\t\t$Html .='<th>'.$value.' '.$search['year'].'</th>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t$Html .='</tr>';\n\t\t\t\n\t\t\tforeach($proofmissionDetails as $prodmission)\t\t\t\n\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\tforeach($this->month_array_val as $key => $value)\n\t\t\t\t{\t\n\t\t\t\t\tif($search['year']==$prodmission['year'])\n\t\t\t\t\t{\n\t\t\t\t\t\t$yearmonth=$search['year'].'-'.$key;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$language[$prodmission['language']][$yearmonth] +=$prodmission['cost'];\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t$language[$prodmission['language']]['currency'] =$prodmission['currency'];\n\t\t\t\t\t\t$language[$prodmission['language']]['language']=$this->getLanguageName($prodmission['language_source']);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t}\n\n\t\t\tforeach($language as $displaylang)\n\t\t\t{\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t$Html .=\"<tr>\";\n\t\t\t\t\t$Html .=\"<td>\".$displaylang['language'].\"</td>\";\n\t\t\t\t\tforeach($this->month_array_val as $month => $val)\n\t\t\t\t\t{\n\t\t\t\t\t\t$showyearmonth=$search['year'].'-'.$month;\n\t\t\t\t\t\t$Html .=\"<td>\".$displaylang[$showyearmonth].\" &\".$displaylang['currency'].\";</td>\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$Html .=\"</tr>\";\n\t\t\t\t\n\n\t\t\t}\n\t\t$Html .=\"</table>\";\n\t\techo $Html;\n\t\t\n\t\t\n\n\t}", "title": "" }, { "docid": "5be7d2c7dfd921e92e1070abd300cfeb", "score": "0.46806094", "text": "function recorrerMatrizMedicos() {\n\t\t\t\n\t\t\t\tglobal $res,$matriz;\n\t\t\t\t\tfor($pos=0;$pos < mysql_num_rows($res); $pos++) {\n\n\t\t\t\t\t$usuario= $matriz[\"usuario\"][$pos] ;\n\t\t\t\t\t$usuario = normalizarMedicos($usuario);\n\t\t\t\t\t$usuario = eliminarCaracteresEspeciales($usuario);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$rm= $matriz[\"rm\"][$pos] ;\n\t\t\t\t\t$cargo= $matriz[\"cargo\"][$pos] ;\n\t\t\t\t\t$cargo = normalizarCargos($cargo);\n\t\t\t\t\t$especialidad = normalizarEspecialidades($cargo);\n\t\t\t\t\t$cargo = eliminarCaracteresEspeciales($cargo);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t$compania= $_SESSION[\"compania\"];\n\t\t\t\t\t$estadomed= $matriz[\"estadomed\"][$pos] ;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\tif ($estadomed == 0) {\n\t\t\t\t\t\t\t$estadomed = \"Activo\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ($estadomed == 1) {\n\t\t\t\t\t\t\t$estadomed = \"Inactivo\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ($usuario == \"JUAN CASTRO NAVARRO\" and $cargo == \"PSIQUIATRA\"){\n\t\t\t\t\t\t\t$estadomed = \"Inactivo\";\n\t\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\t\n\t\t\t\t\tinsertarMedicos($usuario, $rm, $cargo, $compania, $estadomed, $especialidad);\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\n\t\t\t}", "title": "" }, { "docid": "757ee489f677298d5a6d47e87dd40142", "score": "0.46804282", "text": "function getFilmTitles($genre) // get the film title\n \t{\n\n\t\t\t$films = array( \n\n\t\t\t\t'genres' => array(\"comedy\",\"tragedy\",\"action\",\"romance\"),\t\t\t\t\n\n=======\n\n function getInfoFromGenres($genre)\n { \n echo \"Genre: $genre<br/>\";\n $films = array(\n\n\t\t\t\t'genres' => array(\"comedy\",\"tragedy\",\"action\",\"romance\"),\t\t\t\t\n\t\t\t\t\n>>>>>>> a987f731f2b6fdf2c53ec295574a9113b3e5bff0\n\t\t\t\t'film_titles' => array(\"Big\",\"Star Wars\",\"Titanic\",\"French Kiss\"),\n\n\t\t\t\t'stars' => array(\"Bill Murray\", \"Mark Hammell\", \"Leonard DiCaprio\", \"Cate Blanchett\"),\n\n\t\t\t\t);\n\n<<<<<<< HEAD\n\n\t\t\t\t\t//Showing Film Genre\n\t\t\t\t\techo \"Film Genre : $genre<br/>\";\n\n \t\t\t\t$counter_key = 0;\n \n\t\t\t\t\t\t\t//search specific genres like comedy and count comedy's key as counter key\n\t\t\t\t\t\t\tforeach ($films as $films_key => $films_value) \n\t\t\t\t\t\t\t\t{\n \n \t\t\t\t\t\t\t\t if($films_key == \"genres\")\n \t\t\t\t\t\t\t\t\t {\n \t\t\t\t\t\t\t\t foreach ($films_value as $genre_key => $genre_value)\n \t\t\t\t\t\t\t\t\t{\n\n \t\t\t\t\t\t\t\t if($genre_value == $genre)\n \t\t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t\t$counter_key = $genre_key; \n \n \t\t\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\t}\n \n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "0a57e29709e01a0631427c89c49e8d36", "score": "0.46765727", "text": "private function fetchMatricData ($member_id)\r\n {\r\n $qualification_name = 'MATRIC';\r\n $qualification_model = new Acad_Model_Qualification();\r\n $qualifications = $qualification_model->fetchQualifications();\r\n $qualification_id = array_search($qualification_name, $qualifications);\r\n $student_model = new Acad_Model_Member_Student();\r\n $student_model->setMember_id($member_id);\r\n $qualification_model = $student_model->fetchQualificationInfo(\r\n $qualification_id);\r\n if ($qualification_model instanceof Acad_Model_Qualification_Matric) {\r\n $matric_data = array();\r\n $matric_data['board'] = $qualification_model->getBoard();\r\n $matric_data['board_roll_no'] = $qualification_model->getBoard_roll_no();\r\n $matric_data['city_name'] = $qualification_model->getCity_name();\r\n $matric_data['institution'] = $qualification_model->getInstitution();\r\n $matric_data['marks_obtained'] = $qualification_model->getMarks_obtained();\r\n $matric_data['passing_year'] = $qualification_model->getPassing_year();\r\n $matric_data['percentage'] = $qualification_model->getPercentage();\r\n $matric_data['school_rank'] = $qualification_model->getSchool_rank();\r\n $matric_data['state_name'] = $qualification_model->getState_name();\r\n $matric_data['total_marks'] = $qualification_model->getTotal_marks();\r\n } else {\r\n $matric_data = false;\r\n }\r\n return $matric_data;\r\n }", "title": "" }, { "docid": "3b3d472e79a48f48d102c57aeb642b2e", "score": "0.46751606", "text": "public function run()\n {\n\n $data = [];\n $arr_title = ['最美校园手绘-第二届卓越杯高校手绘大赛 ','野外生存活动','校园拍客大赛','计算机大赛','环湖跑','荧光夜跑'];\n $arr_content= ['全国大学生【最美校园手绘大赛】,以“弘扬校园文化,展现手绘风采”为主','题,提高艺术与设计类同学手绘专业素养,展现个人手绘魅力','同学们需完成短期野外生存考验,并且,定期到达目标地点,搭建帐篷,获取食材等主要任务。注意:活动期间注','意安全,注意森林防火,与此同时,要注意毒虫等危险生物。活动优势:具有一定的挑战性及吸引力','照片或视频就可以,来记录校园内发生的你所见到的各种“事”,当然可以是美事、喜事、大事,以可以多人组队或个人参赛,如宿舍内拍的宿舍幽默小短片,个人生活中搞怪片段,温情感动的校园生活片段等等....'];\n $arr_adress=['行政楼','图书馆','活动中心','教学楼','田径场','校门口','天狮岭公园'];\n $arr_prize=['1000元现金','留学奖金10000元','现金奖金3000元','证书+奖杯','留学奖金6000元','现金奖金2000元','作品出版书籍副主编+作品出版+'];\n $arr_rule=['作品要求原创校园手绘,尺寸大小表达方式不限,临摹作品将在总分上降低20%(如100-20=80),盗用他人作品取消比赛资格/线上投 票按最终票数的百分比计分,最高分为10分/现场投 票30位专家评委,每人3票,1票为1分/线上投 票积分和专家投 票积分总和评出一等奖 1名、二等奖 2名、三等奖3名/人气奖按在线投 票排名第一位','活动期间注意安全/注意森林防火','作品要单独完成/不准抄袭,一经发现,不授予比赛资格'];\n for($i = 0;$i<17;$i++)\n {\n \n array_push($data,[\n 'user_id' => '4',\n 'title' => $arr_title[array_rand($arr_title,1)],\n 'content' => $arr_content[array_rand( $arr_content,1)],\n 'adress' => $arr_adress[array_rand($arr_adress,1)],\n 'status' => '0',\n 'prize' =>$arr_prize[array_rand($arr_prize,1)],\n 'rule' => $arr_rule[array_rand($arr_rule,1)],\n 'start' => '2020-11-11',\n 'end' => '2020-11-23'\n ]);\n }\n DB::table('activity')->insert($data);\n }", "title": "" }, { "docid": "e2bc1104d9b3fb2f7dc5b82356743764", "score": "0.46677697", "text": "public function get_predective_mentainance() {\r\n $response[\"result\"] = \"RESPONSE_ERROR\";\r\n\t\t\r\n $logged_in_userdata = $this->session->userdata('logged_in');\r\n $logged_in_userdata_ID = $logged_in_userdata['ID'];\r\n\t\t$user_related_to_id_array = $this->User_model->get_related_to_ID($logged_in_userdata_ID);\r\n\t\t\r\n\t\t\t$user_related_to_id = $user_related_to_id_array[\"response_data\"][\"related_to_ID\"][0]['RelatedTo'];\r\n\t\t\tif ($user_related_to_id_array[\"result\"] == \"RESPONSE_OK\") {\r\n\t\t}else{\r\n\t\t\t$user_related_to_id = '';\r\n\t\t}\r\n $units_request = $this->Units_model->get_predective_mentainance($user_related_to_id);\r\n if ($units_request[\"result\"] == \"RESPONSE_OK\") {\r\n $containers = $units_request[\"response_data\"];\r\n if (is_array($containers)) {\r\n $indexed_units = array();\r\n foreach ($containers as $key => $value) {\r\n $indexed_units[$value[\"SerialNo\"]] = $key;\r\n }\r\n }\r\n $response[\"result\"] = \"RESPONSE_OK\";\r\n $response[\"response_data\"][\"units\"] = $containers;\r\n $response[\"response_data\"][\"indexed_units\"] = $indexed_units;\r\n } else {\r\n $response[\"description\"] = $units_request[\"description\"];\r\n }\r\n echo json_encode($response);\r\n }", "title": "" }, { "docid": "6865289b8dee20af2bd3de3acd41fb13", "score": "0.46659094", "text": "function metls()\n {\n $data['taskRecords'] = $this->metl_model->getAllMetl();\n\n $this->global['pageTitle'] = 'InfoSim : หขส./ตขอ. ทั้งหมด';\n\n $this->loadViews(\"metl/index\", $this->global, $data, NULL);\n }", "title": "" }, { "docid": "24879541759a5db707bf7f66befe782a", "score": "0.46616825", "text": "public function populate($programme, $males, $females);", "title": "" }, { "docid": "7acc4b64cf866d1a4520ce09e61de695", "score": "0.46591625", "text": "public function selectArchivedMonthlyRainfallReportForTheMonthOfJune($monthselectedAsANumber,$year,$stationName,$stationNumber,$tablename){\r\n $this->db->select('DAYOFMONTH(Date) as DayOfTheMonth,Rainfall',FALSE);\r\n\r\n $this->db->from($tablename);\r\n\r\n $session_data = $this->session->userdata('logged_in');\r\n $userrole=$session_data['UserRole'];\r\n\r\n if($userrole=='Manager'){\r\n\r\n $this->db->where('StationName', $stationName);\r\n $this->db->where('StationNumber', $stationNumber);\r\n\r\n }elseif($userrole=='OC'){\r\n $this->db->where('StationName', $stationName);\r\n $this->db->where('StationNumber', $stationNumber);\r\n\r\n }\r\n\r\n $this->db->where('MONTH(Date)', $monthselectedAsANumber);\r\n $this->db->where('YEAR(Date)', $year);\r\n\r\n\r\n $this->db->order_by('DAYOFMONTH(Date)','ASC');\r\n\r\n // Run the query\r\n $query = $this->db->get();\r\n\r\n if($query -> num_rows() > 0) //GET DATA FOR A WHOLE MONTH FRM THE DB\r\n {\r\n $result = $query->result(); //$query -> result_array();\r\n return $result;\r\n //return $query->result();\r\n }\r\n else\r\n {\r\n //$results = $query->result();\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "85b244570848064fc96e28fa6b97d360", "score": "0.4658395", "text": "public function getTotalAchievementNational($param)\n {\n\n $region = Region::all();\n\n $totalTarget = 0;\n $totalActual = 0;\n $totalTargetPF = 0;\n $totalActualPF = 0;\n\n foreach ($region as $data) {\n\n $summary = SummaryTargetActual::where('region_id', $data['id'])\n ->where('partner', 0)\n ->where('sell_type', 'Sell In')->get();\n\n if($param == 2){\n $summary = SummaryTargetActual::where('region_id', $data['id'])\n ->where('partner', 0)\n ->where('sell_type', 'Sell Out')->get();\n }\n\n if($summary) {\n\n foreach ($summary as $detail) {\n \n $totalTarget += $detail->target_da;\n $totalTarget += $detail->target_pc;\n $totalTarget += $detail->target_mcc;\n\n $totalActual += $detail->actual_da;\n $totalActual += $detail->actual_pc;\n $totalActual += $detail->actual_mcc;\n\n $totalTargetPF += $detail->target_pf_da;\n $totalTargetPF += $detail->target_pf_pc;\n $totalTargetPF += $detail->target_pf_mcc;\n\n $totalActualPF += $detail->actual_pf_da;\n $totalActualPF += $detail->actual_pf_pc;\n $totalActualPF += $detail->actual_pf_mcc;\n\n }\n\n // $totalTarget += $summary->sum_target_region;\n // $totalActual += $summary->sum_actual_region;\n // $totalTargetPF += $summary->sum_pf_target_region;\n // $totalActualPF += $summary->sum_pf_actual_region;\n }\n }\n\n return response()->json([\n 'total_target' => $totalTarget,\n 'total_actual' => $totalActual,\n 'total_pf_target' => $totalTargetPF,\n 'total_pf_actual' => $totalActualPF,\n ]);\n }", "title": "" }, { "docid": "ce02e3ce94e597a0c850c92a6426de24", "score": "0.46565786", "text": "public function run()\n {\n$data = [['BUTTER,WITH SALT',717, '1 pat, (1 sq, 1/3 high)'],['BUTTER,WHIPPED,WITH SALT',717, '1 pat, (1 sq, 1/3 high)'],['BUTTER OIL,ANHYDROUS',876, '1 tbsp'],['CHEESE,BLUE',353, '1 oz'],['CHEESE,BRICK',371, '1 cup, diced'],['CHEESE,BRIE',334, '1 oz'],['CHEESE,CAMEMBERT',300, '1 oz'],['CHEESE,CARAWAY',376, '1 oz'],['CHEESE,CHEDDAR',406, '1 cup, diced'],['CHEESE,CHESHIRE',387, '1 oz'],['CHEESE,COLBY',394, '1 cup, diced'],['CHEESE,COTTAGE,CRMD,LRG OR SML CURD',98, '4 oz'],['CHEESE,COTTAGE,CRMD,W/FRUIT',97, '4 oz'],['CHEESE,COTTAGE,NONFAT,UNCRMD,DRY,LRG OR SML CURD',72, '1 cup, (not packed)'],['CHEESE,COTTAGE,LOWFAT,2% MILKFAT',81, '4 oz'],['CHEESE,COTTAGE,LOWFAT,1% MILKFAT',72, '4 oz'],['CHEESE,CREAM',342, '1 tbsp'],['CHEESE,EDAM',357, '1 oz'],['CHEESE,FETA',264, '1 cup, crumbled'],['CHEESE,FONTINA',389, '1 cup, diced'],['CHEESE,GJETOST',466, '1 oz'],['CHEESE,GOUDA',356, '1 oz'],['CHEESE,GRUYERE',413, '1 oz'],['CHEESE,LIMBURGER',327, '1 cup'],['CHEESE,MONTEREY',373, '1 cup, diced'],['CHEESE,MOZZARELLA,WHL MILK',300, '1 cup, shredded'],['CHEESE,MOZZARELLA,WHL MILK,LO MOIST',318, '1 oz'],['CHEESE,MOZZARELLA,PART SKIM MILK',254, '1 oz'],['CHEESE,MOZZARELLA,LO MOIST,PART-SKIM',301, '1 cup, diced'],['CHEESE,MUENSTER',368, '1 cup, diced'],['CHEESE,NEUFCHATEL',253, '1 oz'],['CHEESE,PARMESAN,GRATED',420, '1 cup'],['CHEESE,PARMESAN,HARD',392, '1 oz'],['CHEESE,PORT DE SALUT',352, '1 cup, diced'],['CHEESE,PROVOLONE',351, '1 cup, diced'],['CHEESE,RICOTTA,WHOLE MILK',174, '.5 cup'],['CHEESE,RICOTTA,PART SKIM MILK',138, '.5 cup'],['CHEESE,ROMANO',387, '1 oz'],['CHEESE,ROQUEFORT',369, '1 oz'],['CHEESE,SWISS',380, '1 cup, diced'],['CHEESE,TILSIT',340, '1 oz'],['CHEESE,PAST PROCESS,AMERICAN,FORT W/ VITAMIN D',366, '1 oz'],['CHEESE,PAST PROCESS,PIMENTO',375, '1 cup, diced'],['CHEESE,PAST PROCESS,SWISS',334, '1 cup, diced'],['CHEESE FD,COLD PK,AMERICAN',331, '1 oz'],['CHEESE FD,PAST PROCESS,AMERICAN,VITAMIN D FORT',330, '1 cup'],['CHEESE FD,PAST PROCESS,SWISS',323, '1 oz'],['CHEESE SPRD,PAST PROCESS,AMERICAN',290, '1 cup, diced'],['CREAM,FLUID,HALF AND HALF',130, '1 fl oz'],['CREAM,FLUID,LT (COFFEE CRM OR TABLE CRM)',195, '1 fl oz'],['CREAM,FLUID,LT WHIPPING',292, '1 cup, whipped'],['CREAM,FLUID,HVY WHIPPING',345, '1 cup, whipped'],['CREAM,WHIPPED,CRM TOPPING,PRESSURIZED',257, '1 cup'],['CREAM,SOUR,RED FAT,CULTURED',135, '1 tbsp'],['CREAM,SOUR,CULTURED',193, '1 tbsp'],['EGGNOG',88, '1 cup'],['SOUR DRSNG,NON-BUTTERFAT,CULTURED,FILLED CREAM-TYPE',178, '1 tbsp'],['MILK,FILLED,FLUID,W/BLEND OF HYDR VEG OILS',63, '1 cup'],['MILK,FILLED,FLUID,W/LAURIC ACID OIL',63, '1 cup'],['CHEESE,AMERICAN,NONFAT OR FAT FREE',126, '1 serving'],['CREAM SUB,LIQ,W/HYDR VEG OIL&SOY PROT',136, '1 container, individual'],['CREAM SUB,LIQ,W/LAURIC ACID OIL&NA CASEINATE',136, '1 container, individual'],['CREAM SUBSTITUTE,POWDERED',545, '1 cup'],['DESSERT TOPPING,POWDERED',577, '1.5 oz'],['DESSERT TOPPING,PDR,1.5 OZ PREP W/1/2 CUP MILK',194, '1 cup'],['DESSERT TOPPING,PRESSURIZED',264, '1 cup'],['DESSERT TOPPING,SEMI SOLID,FRZ',318, '1 cup'],['SOUR CRM,IMITN,CULTURED',208, '1 oz'],['MILK SUBSTITUTES,FLUID,W/LAURIC ACID OIL',61, '1 cup'],['MILK,WHL,3.25% MILKFAT,W/ ADDED VITAMIN D',61, '1 cup'],['MILK,PRODUCER,FLUID,3.7% MILKFAT',64, '1 cup'],['MILK,RED FAT,FLUID,2% MILKFAT,W/ ADDED VIT A & VITAMIN D',50, '1 cup'],['MILK,RED FAT,FLUID,2% MILKFAT,W/ ADDED NFMS, VIT A & VIT D',51, '1 cup'],['MILK,RED FAT,FLUID,2% MILKFAT,PROT FORT,W/ ADDED VIT A & D',56, '1 cup'],['MILK,LOWFAT,FLUID,1% MILKFAT,W/ ADDED VIT A & VITAMIN D',42, '1 cup'],['MILK,LOWFAT,FLUID,1% MILKFAT,W/ ADD NONFAT MILK SOL,VIT A/ D',43, '1 cup'],['MILK,LOWFAT,FLUID,1% MILKFAT,PROT FORT,W/ ADDED VIT A & D',48, '1 cup'],['MILK,NONFAT,FLUID,W/ ADDED VIT A & VIT D (FAT FREE OR SKIM)',34, '1 cup'],['MILK,NONFAT,FLUID,W/ ADDED NONFAT MILK SOL,VIT A & VIT D',37, '1 cup'],['MILK,NONFAT,FLUID,PROT FORT,W/ ADD VIT A & D (FAT FREE/SKIM)',41, '1 cup'],['MILK,BTTRMLK,FLUID,CULTURED,LOWFAT',40, '1 cup'],['MILK,LO NA,FLUID',61, '1 cup'],['MILK,DRY,WHL,W/ ADDED VITAMIN D',496, '.25 cup'],['MILK,DRY,NONFAT,REG,WO/ ADDED VIT A & VITAMIN D',362, '.25 cup'],['MILK,DRY,NONFAT,INST,W/ ADDED VIT A & VITAMIN D',358, '1 cup'],['MILK,DRY,NONFAT,CA RED',354, '1 oz'],['MILK,BUTTERMILK,DRIED',387, '.25 cup'],['MILK,CND,COND,SWTND',321, '1 fl oz'],['MILK,CND,EVAP,W/ ADDED VITAMIN D & WO/ ADDED VIT A',134, '1 fl oz'],['MILK,CND,EVAP,NONFAT,W/ ADDED VIT A & VITAMIN D',78, '1 fl oz'],['MILK,CHOC,FLUID,COMM,WHL,W/ ADDED VIT A & VITAMIN D',83, '1 cup'],['MILK,CHOC,FLUID,COMM,RED FAT',76, '1 cup'],['MILK,CHOC,FLUID,COMM,LOWFAT,W/ ADDED VIT A & VITAMIN D',71, '1 cup'],['MILK,CHOC BEV,HOT COCOA,HOMEMADE',77, '1 cup'],['MILK,GOAT,FLUID,W/ ADDED VITAMIN D',69, '1 fl oz'],['MILK,HUMAN,MATURE,FLUID',70, '1 fl oz'],['MILK,INDIAN BUFFALO,FLUID',97, '1 cup'],['MILK,SHEEP,FLUID',108, '1 cup'],['MILK SHAKES,THICK CHOC',119, '1 fl oz'],['MILK SHAKES,THICK VANILLA',112, '1 fl oz'],['WHEY,ACID,FLUID',24, '1 cup'],['WHEY,ACID,DRIED',339, '1 cup'],['WHEY,SWEET,FLUID',27, '1 cup'],['WHEY,SWEET,DRIED',353, '1 cup'],['YOGURT,PLN,WHL MILK,8 GRAMS PROT PER 8 OZ',61, '1 container, (6 oz)'],['YOGURT,PLN,LOFAT,12 GRAMS PROT PER 8 OZ',63, '1 container, (6 oz)'],['YOGURT,PLN,SKIM MILK,13 GRAMS PROT PER 8 OZ',56, '1 container, (6 oz)'],['YOGURT,VANILLA,LOFAT,11 GRAMS PROT PER 8 OZ',85, '1 container, (6 oz)'],['YOGURT,FRUIT,LOFAT,9 GRAMS PROT PER 8 OZ',99, '1 container, (6 oz)'],['YOGURT,FRUIT,LOFAT,10 GRAMS PROT PER 8 OZ',102, '1 container, (6 oz)'],['YOGURT,FRUIT,LOFAT,11 GRAMS PROT PER 8 OZ',105, '1 container, (6 oz)'],['EGG,WHL,RAW,FRSH',143, '1 large'],['EGG,WHITE,RAW,FRESH',52, '1 large'],['EGG,YOLK,RAW,FRSH',322, '1 large'],['EGG,YOLK,RAW,FRZ,PAST',299, '1 oz'],['EGG,YOLK,RAW,FRZ,SUGARED,PAST',307, '1 oz'],['EGG,WHL,CKD,FRIED',196, '1 large'],['EGG,WHL,CKD,HARD-BOILED',155, '1 cup, chopped'],['EGG,WHOLE,COOKED,OMELET',154, '1 tbsp'],['EGG,WHL,CKD,POACHED',143, '1 large'],['EGG,WHL,CKD,SCRMBLD',149, '1 large'],['EGG,WHOLE,DRIED',605, '1 cup, sifted'],['EGG,WHL,DRIED,STABILIZED,GLUCOSE RED',615, '1 cup, sifted'],['EGG,WHITE,DRIED,FLAKES,STABILIZED,GLUCOSE RED',351, '1 oz'],['EGG,WHITE,DRIED,PDR,STABILIZED,GLUCOSE RED',376, '1 cup, sifted'],['EGG,YOLK,DRIED',679, '1 cup, sifted'],['EGG,DUCK,WHOLE,FRESH,RAW',185, '1 egg'],['EGG,GOOSE,WHOLE,FRESH,RAW',185, '1 egg'],['EGG,QUAIL,WHOLE,FRESH,RAW',158, '1 egg'],['EGG,TURKEY,WHL,FRSH,RAW',171, '1 egg'],['EGG SUBSTITUTE,POWDER',444, '.35 oz'],['BUTTER,WITHOUT SALT',717, '1 pat, (1 sq, 1/3 high)'],['CHEESE,PARMESAN,SHREDDED',415, '1 tbsp'],['MILK,NONFAT,FLUID,WO/ ADDED VIT A & VIT D (FAT FREE OR SKIM)',34, '1 cup'],['MILK,RED FAT,FLUID,2% MILKFAT,W/ NONFAT MILK SOL,WO/ VIT A',56, '1 cup'],['MILK,CND,EVAP,W/ VIT A',134, '1 fl oz'],['MILK,DRY,NONFAT,REG,W/ ADDED VIT A & VITAMIN D',362, '.25 cup'],['MILK,DRY,NONFAT,INST,WO/ ADDED VIT A & VITAMIN D',358, '1 cup'],['CHEESE,GOAT,HARD TYPE',452, '1 oz'],['CHEESE,GOAT,SEMISOFT TYPE',364, '1 oz'],['CHEESE,GOAT,SOFT TYPE',264, '1 oz'],['EGG,YOLK,RAW,FRZ,SALTED,PAST',275, '1 oz'],['CHEESE SUB,MOZZARELLA',248, '1 cup, shredded'],['CHEESE SAU,PREP FROM RECIPE',197, '2 tbsp'],['CHEESE,MEXICAN,QUESO ANEJO',373, '1 cup, crumbled'],['CHEESE,MEXICAN,QUESO ASADERO',356, '1 cup, diced'],['CHEESE,MEXICAN,QUESO CHIHUAHUA',374, '1 cup, diced'],['CHEESE,LOFAT,CHEDDAR OR COLBY',173, '1 cup, diced'],['CHEESE,LOW-SODIUM,CHEDDAR OR COLBY',398, '1 cup, diced'],['EGG,WHL,RAW,FRZ,PAST',154, '1 oz'],['EGG,WHITE,RAW,FRZ,PAST',46, '1 oz'],['EGG,WHITE,DRIED',382, '1 oz'],['MILK,RED FAT,FLUID,2% MILKFAT,WO/ ADDED VIT A & VIT D',50, '1 cup'],['MILK,FLUID,1% FAT,WO/ ADDED VIT A & VIT D',42, '1 cup'],['SOUR CREAM,REDUCED FAT',181, '1 tablespoon'],['SOUR CREAM,LIGHT',136, '1 tablespoon'],['SOUR CREAM,FAT FREE',74, '1 tablespoon'],['USDA COMMODITY,CHS,CHEDDAR,RED FAT',282, '1 cup, shredded'],['YOGURT,VAN OR LEM FLAV,NONFAT MILK,SWTND W/LOW-CALORIE SWTNR',43, '1 container, (6 oz)'],['PARMESAN CHS TOPPING,FAT FREE',370, '1 tablespoon'],['CHEESE,CREAM,FAT FREE',105, '1 tbsp'],['YOGURT,CHOC,NONFAT MILK',112, '1 container, (6 oz)'],['KRAFT CHEEZ WHIZ PAST PROCESS CHS SAU',276, '2 tbsp'],['KRAFT CHEEZ WHIZ LT PAST PROCESS CHS PRODUCT',215, '2 tbsp'],['KRAFT FREE SINGLES AMERICAN NONFAT PAST PROCESS CHS PRODUCT',148, '1 slice'],['KRAFT VELVEETA PAST PROCESS CHS SPRD',303, '1 oz'],['KRAFT VELVEETA LT RED FAT PAST PROCESS CHS PRODUCT',222, '1 oz'],['KRAFT BREAKSTONES RED FAT SOUR CRM',152, '2 tbsp'],['KRAFT BREAKSTONES FREE FAT FREE SOUR CRM',91, '2 tbsp'],['CREAM,HALF & HALF,FAT FREE',59, '2 tbsp'],['REDDI WIP FAT FREE WHIPPED TOPPING',149, '1 tablespoon'],['MILK,CHOC,FLUID,COMM,RED FAT,W/ ADDED CA',78, '1 cup'],['YOGURT,FRUIT,LOFAT,W/LO CAL SWEETENER',105, '1 6 oz container, (6 oz)'],['CHEESE,PARMESAN,DRY GRATED,RED FAT',265, '1 cup'],['CREAM SUB,FLAV,LIQ',251, '1 tbsp'],['CREAM SUB,FLAV,PDR',482, '4 tsp'],['CHEESE,PROVOLONE,RED FAT',274, '1 cup, diced'],['CHEESE,MEXICAN,BLEND,RED FAT',282, '1 oz'],['EGG MIX,USDA CMDTY',555, '1 tbsp'],['MILK,WHL,3.25% MILKFAT,WO/ ADDED VIT A & VITAMIN D',61, '1 cup'],['MILK,DRY,WHL,WO/ ADDED VITAMIN D',496, '1 cup'],['MILK,CND,EVAP,WO/ ADDED VIT A & VITAMIN D',135, '1 cup'],['CHEESE PRODUCT,PAST PROCESS,AMERICAN,RED FAT,FORT W/ VIT D',240, '1 slice, 3/4 oz'],['YOGURT,FRUIT,LOFAT,9 GRAMS PROT PER 8 OZ,FORT W/ VITAMIN D',99, '1 container, (6 oz)'],['YOGURT,FRUIT,LOFAT,10 GRAMS PROT PER 8 OZ,FORT W/ VITAMIN D',102, '1 container, (6 oz)'],['YOGURT,FRUIT VAR,NONFAT,FORT W/ VITAMIN D',95, '1 container, (6 oz)'],['YOGURT,FRUIT,LOWFAT,W/ LO CAL SWTNR,FORT W/ VITAMIN D',105, '1 6 oz container, (6 oz)'],['YOGURT,VANILLA,LOFAT,11 GRAMS PROT PER 8 OZ,FORT W/ VIT D',85, '1 container, (6 oz)'],['YOGURT,VAN/LEM FLAV,NONFAT MILK,W/ LO-CAL SWTNR,FORT W/VIT D',43, '1 container, (6 oz)'],['YOGURT,CHOC,NONFAT MILK,FORT W/ VITAMIN D',112, '1 container, (6 oz)'],['PROTEIN SUPP,MILK BSD,MUSCLE MILK,PDR',411, '1 tbsp'],['PROTEIN SUPP,MILK BSD,MUSCLE MILK LT,PDR',396, '2 scoop'],['DULCE DE LECHE',315, '1 tbsp'],['EGG SUB,LIQ OR FRZ,FAT FREE',48, '.25 cup'],['CHEESE,DRY WHITE,QUESO SECO',325, '1 cup, grated'],['CHEESE,FRSH,QUESO FRESCO',299, '1 cup, crumbled'],['CHEESE,WHITE,QUESO BLANCO',310, '1 cup, crumbled'],['MILK,BTTRMLK,FLUID,WHL',62, '1 cup'],['YOGURT,VANILLA FLAVOR,LOWFAT MILK,SWTND W/ LO CAL SWTNR',86, '1 container'],['YOGURT,FRZ,FLAVORS NOT CHOC,NONFAT MILK,W/ LOW-CALORIE SWTNR',104, '.5 cup'],['ICE CRM,SOFT SERVE,CHOC',222, '.5 cup'],['ICE CRM,BAR OR STK,CHOC COVERED',331, '1 bar'],['ICE CRM SNDWCH',237, '1 serving'],['ICE CRM COOKIE SNDWCH',240, '1 serving'],['ICE CRM CONE,CHOC COVERED,W/ NUTS,FLAVORS OTHER THAN CHOC',354, '1 unit'],['ICE CRM SNDWCH,MADE W/ LT ICE CRM,VANILLA',186, '1 serving'],['ICE CRM SNDWCH,VANILLA,LT,NO SUGAR ADDED',200, '1 serving'],['FAT FREE ICE CRM,NO SUGAR ADDED,FLAVORS OTHER THAN CHOC',129, '.5 cup'],['MILK DSSRT BAR,FRZ,MADE FROM LOWFAT MILK',147, '1 bar'],['NUTRITIONAL SUPP FOR PEOPLE W/ DIABETES,LIQ',88, '1 can'],['CHEESE,MEXICAN BLEND',358, '.25 cup, shredded'],['DAIRY,CHS PRODUCT,PAST PROCESS,AMERICAN,VITAMIN D FORT',308, '1 slice, 2/3 oz.'],['CHEESE,PAST PROCESS,AMERICAN,WO/ ADDED VITAMIN D',371, '1 oz'],['CHEESE FD,PAST PROCESS,AMERICAN,WO/ ADDED VITAMIN D',330, '1 cup'],['EGG,WHL,RAW,FRZ,SALTED,PAST',138, '1 oz'],['YOGURT,GREEK,PLN,NONFAT',59, '1 container'],['EGG,WHITE,DRIED,STABILIZED,GLUCOSE RED',362, '1 cup, sifted'],['CHEESE SPRD,AMERICAN OR CHEDDAR CHS BASE,RED FAT',176, '1 piece'],['CHEESE,CHEDDAR,RED FAT',309, '1 slice'],['ICE CRM,LT,SOFT SERVE,CHOC',141, '1 medium'],['ICE CRM BAR,STK OR NUGGET,W/ CRUNCH COATING',358, '26 pieces'],['CHEESE,CHEDDAR,NONFAT OR FAT FREE',157, '1 serving'],['CHEESE,SWISS,NONFAT OR FAT FREE',127, '1 serving'],['QUESO COTIJA',366, '2 tsp'],['CHEESE,CHEDDAR,SHARP,SLICED',410, '1 slice, 2/3 oz. slice'],['CHEESE,MOZZARELLA,LO MOIST,PART-SKIM,SHREDDED',304, '1 cup'],['YOGURT,GREEK,NON FAT,VANILLA,CHOBANI',71, '5.3 oz'],['YOGURT,GREEK,STRAWBERRY,DANNON OIKOS',106, '5.3 oz'],['YOGURT,GREEK,NON FAT,VANILLA,DANNON OIKOS',85, '5.3 oz'],['YOGURT,GREEK,NON FAT,STRAWBERRY,DANNON OIKOS',84, '5.3 oz'],['YOGURT,GREEK,NON FAT,STRAWBERRY,CHOBANI',80, '5.3 oz'],['ALLSPICE,GROUND',263, '1 tsp'],['ANISE SEED',337, '1 tsp, whole'],['SPICES,BASIL,DRIED',233, '1 tsp, leaves'],['SPICES,BAY LEAF',313, '1 tsp, crumbled'],['CARAWAY SEED',333, '1 tsp'],['SPICES,CARDAMOM',311, '1 tsp, ground'],['CELERY SEED',392, '1 tsp'],['CHERVIL,DRIED',237, '1 tsp'],['CHILI POWDER',282, '1 tsp'],['CINNAMON,GROUND',247, '1 tsp'],['CLOVES,GROUND',274, '1 tsp'],['CORIANDER LEAF,DRIED',279, '1 tsp'],['CORIANDER SEED',298, '1 tsp'],['CUMIN SEED',375, '1 tsp, whole'],['CURRY POWDER',325, '1 tsp'],['DILL SEED',305, '1 tsp'],['DILL WEED,DRIED',253, '1 tsp'],['FENNEL SEED',345, '1 tsp, whole'],['FENUGREEK SEED',323, '1 tsp'],['GARLIC POWDER',331, '1 tsp'],['GINGER,GROUND',335, '1 tsp'],['MACE,GROUND',475, '1 tsp'],['MARJORAM,DRIED',271, '1 tsp'],['SPICES,MUSTARD SD,GROUND',508, '1 tsp'],['NUTMEG,GROUND',525, '1 tsp'],['ONION POWDER',341, '1 tsp'],['SPICES,OREGANO,DRIED',265, '1 tsp, leaves'],['PAPRIKA',282, '1 tsp'],['PARSLEY,DRIED',292, '1 tsp'],['PEPPER,BLACK',251, '1 tsp, ground'],['PEPPER,RED OR CAYENNE',318, '1 tsp'],['PEPPER,WHITE',296, '1 tsp, ground'],['POPPY SEED',525, '1 tsp'],['POULTRY SEASONING',307, '1 tsp'],['PUMPKIN PIE SPICE',342, '1 tsp'],['ROSEMARY,DRIED',331, '1 tsp'],['SAFFRON',310, '1 tsp'],['SAGE,GROUND',315, '1 tsp'],['SAVORY,GROUND',272, '1 tsp'],['SPICES,TARRAGON,DRIED',295, '1 tsp, leaves'],['SPICES,THYME,DRIED',276, '1 tsp, leaves'],['TURMERIC,GROUND',312, '1 tsp'],['BASIL,FRESH',23, '5 leaves'],['DILL WEED,FRSH',43, '5 sprigs'],['MUSTARD,PREPARED,YELLOW',60, '1 tsp, or 1 packet'],['SALT,TABLE',0, '1 tsp'],['VINEGAR,CIDER',21, '1 tbsp'],['THYME,FRSH',101, '1 tsp'],['VANILLA EXTRACT',288, '1 tsp'],['VANILLA EXTRACT,IMITN,ALCOHOL',237, '1 tsp'],['VANILLA EXTRACT,IMITN,NO ALCOHOL',56, '1 tsp'],['VINEGAR,DISTILLED',18, '1 tbsp'],['CAPERS,CANNED',23, '1 tbsp, drained'],['HORSERADISH,PREPARED',48, '1 tsp'],['ROSEMARY,FRESH',131, '1 tsp'],['PEPPERMINT,FRESH',70, '2 leaves'],['SPEARMINT,FRESH',44, '2 leaves'],['SPEARMINT,DRIED',285, '1 tsp'],['VINEGAR,RED WINE',19, '1 tbsp'],['VINEGAR,BALSAMIC',88, '1 tbsp'],['PACE,DRY TACO SEAS MIX',188, '2 tbsp, (1 serving)'],['SEASONING MIX,DRY,SAZON,CORIANDER & ANNATTO',0, '.25 tsp'],['SEASONING MIX,DRY,TACO,ORIGINAL',322, '2 tsp'],['SEASONING MIX,DRY,CHILI,ORIGINAL',335, '1.33 tbsp'],['BABYFOOD,JUC TREATS,FRUIT MEDLEY,TODD',347, '1 packet'],['BABYFOOD,MEAT,BF,STR',81, '1 tbsp'],['BABYFOOD,MEAT,BF,STR',81, '1 oz'],['BABYFOOD,MEAT,VEAL,STR',81, '1 tbsp'],['BABYFOOD,MEAT,PORK,STR',124, '1 oz'],['BABYFOOD,MEAT,HAM,STR',97, '1 tbsp'],['BABYFOOD,MEAT,HAM,JUNIOR',97, '1 oz'],['BABYFOOD,MEAT,LAMB,STR',87, '1 tbsp'],['BABYFOOD,MEAT,LAMB,JUNIOR',112, '1 oz'],['BABYFOOD,MEAT,CHICK,STR',130, '1 tbsp'],['BABYFOOD,MEAT,CHICK,JR',146, '1 tbsp'],['BABYFOOD,MEAT,CHICK STKS,JR',188, '1 stick'],['BABYFOOD,MEAT,TURKEY,STR',111, '1 tbsp'],['BABYFOOD,MEAT,TURKEY,JR',111, '1 tbsp'],['Babyfood, meat, turkey sticks, junior',188, '1 stick'],['BABYFOOD,SNACK,GERBER GRADUATE FRUIT STRIPS,REAL FRUIT BARS',330, '1 bar'],['BABYFOOD,MEAT,MEAT STKS,JR',184, '1 stick'],['BABYFOOD,DINNER,VEG&DUMPLINGS&BF,STR',48, '1 oz'],['BABYFOOD,DINNER,VEG&DUMPLINGS&BF,JR',48, '1 oz'],['BABYFOOD,DINNER,BF LASAGNA,TODD',77, '1 oz'],['BABYFOOD,DINNER,MACARONI&TOMATO&BF,STR',61, '1 tbsp'],['BABYFOOD,DINNER,MACARONI&TOMATO&BF,JR',59, '1 tbsp'],['BABYFOOD,RAVIOLI,CHS FILLED,W/TOMATO SAU',99, '1 tbsp'],['BABYFOOD,DINNER,BF NOODLE,STR',63, '1 tbsp'],['BABYFOOD,MACARONI&CHS,TODD',82, '1 container'],['BABYFOOD,DINNER,BF&RICE,TODD',82, '1 oz'],['BABYFOOD,DINNER,SPAGHETTI&TOMATO&MEAT,JR',68, '1 tbsp'],['BABYFOOD,DINNER,SPAGHETTI&TOMATO&MEAT,TODD',75, '1 oz'],['BABYFOOD,DINNER,BF STEW,TODD',51, '1 oz'],['BABYFOOD,DINNER,VEG&BF,STR',77, '1 cup'],['BABYFOOD,DINNER,VEG&BF,JR',77, '1 cup'],['BABYFOOD,DINNER,BF W/VEG',96, '1 jar, Beech-Nut Stage 2 (4 oz)'],['BABYFOOD,DINNER,VEG&BACON,STR',69, '1 cup'],['BABYFOOD,DINNER,VEG&HAM,STR',59, '1 cup'],['BABYFOOD,DINNER,VEG&HAM,JR',60, '1 cup'],['BABYFOOD,DINNER,VEG&LAMB,STR',52, '1 cup'],['BABYFOOD,DINNER,VEG&LAMB,JR',51, '1 oz'],['BABYFOOD,DINNER,CHICK NOODLE,STR',66, '1 tbsp'],['BABYFOOD,DINNER,CHICK NOODLE,JR',55, '1 tbsp'],['BABYFOOD,DINNER,CHICK SOUP,STR',50, '1 jar, Beech-Nut Stage 2 (4 oz)'],['BABYFOOD DINNER CHICK STEW TODD',78, '1 tbsp'],['BABYFOOD,DINNER,VEG CHICK,STR',59, '1 cup'],['BABYFOOD,DINNER,VEG,NOODLES&CHICK,STR',63, '1 oz'],['BABYFOOD,DINNER,VEG,NOODLES&CHICK,JR',64, '1 oz'],['BABYFOOD,DINNER,PASTA W/VEG',60, '1 jar, Gerber (4 oz)'],['BABYFOOD,DINNER,VEG&NOODLES&TURKEY,STR',44, '1 oz'],['BABYFOOD,DINNER,VEG&NOODLES&TURKEY,JR',52, '1 oz'],['BABYFOOD,DINNER,TURKEY&RICE,STR',52, '1 tbsp'],['BABYFOOD,DINNER,TURKEY & RICE,JR',56, '1 tbsp'],['BABYFOOD,DINNER,VEG&TURKEY,STR',48, '1 cup'],['BABYFOOD,DINNER,VEG&TURKEY,JR',53, '1 cup'],['BABYFOOD,DINNER,MACARONI&CHS,STR',67, '1 oz'],['BABYFOOD,DINNER,MACARONI&CHS,JR',61, '1 oz'],['BABYFOOD,VEG,GRN BNS,STR',27, '1 cup'],['BABYFOOD,VEG,GRN BNS,JR',24, '1 cup'],['BABYFOOD,GRN BNS,DICES,TODD',29, '1 oz'],['BABYFOOD,VEG,GRN BNS&POTATOES',62, '1 jar, Gerber (4 oz)'],['BABYFOOD,VEG,BEETS,STR',34, '1 cup'],['BABYFOOD,VEG,CARROTS,STR',26, '1 cup'],['BABYFOOD,VEG,CARROTS,JR',32, '1 cup'],['BABYFOOD,VEG,SQUASH,STR',28, '1 tbsp'],['BABYFOOD,VEG,SQUASH,JR',24, '1 tbsp'],['BABYFOOD,VEG,SWT POTATOES,STR',57, '1 cup'],['BABYFOOD,VEG,SWT POTATOES,JR',60, '1 cup'],['BABYFOOD,POTATOES,TODDLER',52, '1 cup'],['BABYFOOD,VEG,BUTTERNUT SQUASH&CORN',50, '1 jar, Gerber (4 oz)'],['BABYFOOD,APPLS,DICES,TODD',51, '1 oz'],['BABYFOOD,FRUIT,APPLSAUC,STR',41, '1 tbsp'],['BABYFOOD,FRUIT,APPLSAUC,JR',37, '1 tbsp'],['BABYFOOD,FRUIT,APRICOT W/TAPIOCA,STR',60, '1 tbsp'],['BABYFOOD,VEG,CORN,CRMD,STR',57, '1 jar'],['BABYFOOD,VEG,CORN,CRMD,JR',65, '1 cup'],['BABYFOOD,VEG,PEAS,STR',50, '1 tbsp'],['BABYFOOD,PEAS,DICES,TODD',64, '1 oz'],['BABYFOOD,VEG,SPINACH,CRMD,STR',37, '1 cup'],['BABYFOOD,FRUIT,APRICOT W/TAPIOCA,JR',63, '1 tbsp'],['BABYFOOD,FRUIT,BANANAS W/TAPIOCA,STR',56, '1 tbsp'],['BABYFOOD,FRUIT,PEACHES,STR',65, '1 tbsp'],['BABYFOOD,FRUIT,PEACHES,JR',65, '1 tbsp'],['BABYFOOD,FRUIT,PEARS,STR',42, '1 tbsp'],['BABYFOOD,FRUIT,PEARS,JR',44, '1 tbsp'],['BABYFOOD,FRUIT,PLUMS W/TAPIOCA,WO/VIT C,STR',71, '1 tbsp'],['BABYFOOD,FRUIT,PLUMS W/TAPIOCA,WO/VIT C,JR',74, '1 tbsp'],['BABYFOOD,FRUIT,PRUNES W/TAPIOCA,WO/VIT C,STR',69, '1 tbsp'],['BABYFOOD,FRUIT,PRUNES W/TAPIOCA,WO/VIT C,JR',70, '1 oz'],['BABYFOOD,PRUNES,WO/VIT C,STR',100, '1 tbsp'],['BABYFOOD,FRUIT DSSRT,MANGO W/ TAPIOCA',70, '1 tbsp'],['BABYFOOD,PEARS,DICES,TODD',57, '1 oz'],['BABYFOOD,FRUIT,APPLSAUC&APRICOTS,STR',44, '1 tbsp'],['BABYFOOD,FRUIT,APPLSAUC&APRICOTS,JR',47, '1 tbsp'],['BABYFOOD,FRUIT,APPLSAUC&CHERRIES,STR',51, '1 oz'],['BABYFOOD,FRUIT,APPLSAUC & CHERRIES,JR',51, '1 oz'],['BABYFOOD,FRUIT,APPLSAUC W/BANANA,JR',66, '1 tbsp'],['BABYFOOD,FRUIT,APPLSAUC&PNAPPL,STR',37, '1 oz'],['BABYFOOD,FRUIT,APPLSAUC&PNAPPL,JR',39, '1 oz'],['BABYFOOD,FRUIT,APPL & RASPBERRY,STR',58, '1 oz'],['BABYFOOD,FRUIT,APPL & RASPBERRY,JR',58, '1 oz'],['BABYFOOD,FRUIT & VEG,APPL & SWT POTATO',64, '1 jar, Gerber (4 oz)'],['BABYFOOD,FRUIT,BANANAS&PNAPPL W/TAPIOCA,JR',68, '1 tbsp'],['BABYFOOD,FRUIT,BANANAS&PNAPPL W/TAPIOCA,STR',65, '1 tbsp'],['BABYFOOD,FRUIT,PEARS&PNAPPL,STR',41, '1 tbsp'],['BABYFOOD,FRUIT,PEARS&PNAPPL,JR',44, '1 tbsp'],['BABYFOOD,FRUIT,GUAVA&PAPAYA W/TAPIOCA,STR',63, '1 oz'],['BABYFOOD,PEACHES,DICES,TODD',51, '1 oz'],['BABYFOOD,FRUIT,PAPAYA&APPLSAUC W/TAPIOCA,STR',70, '1 oz'],['BABYFOOD,FRUIT,BANANAS W/APPLS&PEARS,STR',83, '1 tbsp'],['BABYFOOD,FRUIT,APPL&BLUEBERRY,STR',61, '1 oz'],['BABYFOOD,FRUIT,APPL&BLUEBERRY,JR',62, '1 oz'],['BABYFOOD,JUICE,APPLE',47, '1 fl oz'],['BABYFOOD,APPLE-BANANA JUC',51, '1 fl oz'],['BABYFOOD,JUC,APPL&PEACH',43, '1 fl oz'],['BABYFOOD,APPLE-CRANBERRY JUC',46, '1 fl oz'],['BABYFOOD,JUC,APPL&PLUM',49, '1 fl oz'],['BABYFOOD,JUC,APPL&PRUNE',72, '1 fl oz'],['BABYFOOD,JUICE,ORANGE',45, '1 fl oz'],['BABYFOOD,JUC,ORANGE&APPL',43, '1 fl oz'],['BABYFOOD,JUC,ORANGE&APPL&BANANA',47, '1 fl oz'],['BABYFOOD,JUC,ORANGE&APRICOT',46, '1 fl oz'],['BABYFOOD,JUC,ORANGE&BANANA',50, '1 fl oz'],['BABYFOOD,JUC,ORANGE&PNAPPL',48, '1 fl oz'],['BABYFOOD,JUC,PRUNE&ORANGE',70, '1 fl oz'],['BABYFOOD,JUC,MXD FRUIT',47, '1 fl oz'],['BABYFOOD,CRL,BARLEY,DRY',376, '1 tbsp'],['BABYFOOD,CRL,WHL WHEAT,W/APPLS,DRY',402, '.5 oz'],['BABYFOOD,CEREAL,MIXED,DRY',379, '1 tbsp'],['BABYFOOD,CRL,MXD,W/BANANAS,DRY',391, '1 tbsp'],['BABYFOOD,CRL,MXD,W/APPLSAUC&BANANAS,STR',82, '1 oz'],['BABYFOOD,CRL,MXD,W/ APPLSAUC & BANANAS,JR',83, '1 oz'],['BABYFOOD,CRL,OATMEAL,DRY',393, '1 tbsp'],['BABYFOOD,CRL,OATMEAL,W/BANANAS,DRY',393, '1 tbsp'],['BABYFOOD,CRL,OATMEAL,W/APPLSAUC&BANANAS,STR',74, '1 oz'],['BABYFOOD,CRL,OATMEAL,W/APPLSAUC&BANANAS,JR',75, '1 oz'],['BABYFOOD,CRL,OATMEAL,W/HONEY,DRY',391, '1 tbsp'],['BABYFOOD,CEREAL,RICE,DRY',391, '1 tbsp'],['BABYFOOD,CRL,RICE,W/APPLSAUC&BANANAS,STR',80, '1 tbsp'],['BABYFOOD,CRL,W/EGG YOLKS,STR',51, '1 oz'],['BABYFOOD,CRL,W/EGG YOLKS,JR',52, '1 oz'],['BABYFOOD,CRL,W/EGGS,STR',58, '1 oz'],['BABYFOOD,CRL,EGG YOLKS&BACON,JR',79, '1 oz'],['BABYFOOD,OATMEAL CRL W/FRUIT,DRY,INST,TODD',402, '1 tbsp'],['BABYFOOD,COOKIE,BABY,FRUIT',435, '1 cookie'],['BABYFOOD,CRACKERS,VEG',477, '1 cracker'],['BABYFOOD,CRL,RICE,W/MXD FRUIT,JR',82, '1 tbsp'],['BABYFOOD,CRL,HI PROT,W/APPL&ORANGE,DRY',374, '1 tbsp'],['BABYFOOD,CRL,RICE,W/BANANAS,DRY',404, '1 tbsp'],['BABYFOOD,COOKIES',433, '1 oz'],['BABYFOOD,COOKIES,ARROWROOT',424, '1 oz'],['BABYFOOD,PRETZELS',397, '1 oz'],['BABYFOOD,TEETHING BISCUITS',392, '1 oz'],['ZWIEBACK',426, '1 oz'],['BABYFOOD,DSSRT,DUTCH APPL,STR',75, '1 oz'],['BABYFOOD,DSSRT,DUTCH APPL,JR',79, '1 oz'],['BABYFOOD,CHERRY COBBLER,JR',78, '1 oz'],['BABYFOOD,DSSRT,CHERRY VANILLA PUDD,STR',68, '1 oz'],['BABYFOOD,DSSRT,CHERRY VANILLA PUDD,JR',69, '1 oz'],['BABYFOOD,DSSRT,FRUIT PUDD,ORANGE,STR',80, '1 oz'],['BABYFOOD,DSSRT,PEACH COBBLER,STR',65, '1 tbsp'],['BABYFOOD,DSSRT,PEACH COBBLER,JR',67, '1 tbsp'],['BABYFOOD,DSSRT,PEACH MELBA,STR',60, '1 oz'],['BABYFOOD,DSSRT,PEACH MELBA,JR',60, '1 oz'],['BABYFOOD,DSSRT,FRUIT PUDD,PNAPPL,STR',81, '1 tbsp'],['BABYFOOD,DSSRT,FRUIT DSSRT,WO/VIT C,STR',59, '1 tbsp'],['BABYFOOD,DSSRT,FRUIT DSSRT,WO/VIT C,JR',63, '1 tbsp'],['BABYFOOD,DSSRT,TROPICAL FRUIT,JR',60, '1 oz'],['BABYFOOD,DSSRT,CUSTARD PUDD,VANILLA,STR',85, '1 cup'],['BABYFOOD,DSSRT,CUSTARD PUDD,VANILLA,JR',86, '1 cup'],['BABYFOOD,JUC,APPL&GRAPE',46, '1 fl oz'],['BABYFOOD,JUC,FRUIT PUNCH,W/CA',52, '1 fl oz'],['BABYFOOD,JUC,APPL&CHERRY',41, '1 fl oz'],['BABYFOOD,JUC,APPL,W/CA',46, '1 serving'],['BABYFOOD,DINNER,VEG&CHICK,JR',53, '1 cup'],['BABYFOOD,DINNER,MXD VEG,STR',41, '1 oz'],['BABYFOOD,DINNER,MXD VEG,JR',33, '1 oz'],['BABYFOOD,FRUIT,BANANAS W/TAPIOCA,JR',67, '1 tbsp'],['BABYFOOD,VEG,MIX VEG JR',36, '1 serving, 3.5 oz serving'],['BABYFOOD,VEG,GARDEN VEG,STR',32, '1 oz'],['BABYFOOD,VEG,MIX VEG STR',36, '1 oz'],['BABYFOOD,DINNER,BF NOODLE,JR',57, '1 tbsp'],['BABYFOOD,APPLS W/HAM,STR',62, '1 tbsp'],['BABYFOOD,CARROTS&BF,STR',59, '1 tbsp'],['BABYFOOD,PLUMS,BANANAS&RICE,STR',57, '1 oz'],['BABYFOOD,DINNER,TURKEY,RICE,AND VEG,TODD',60, '1 oz'],['BABYFOOD,DINNER,APPLS&CHICK,STR',65, '1 oz'],['BABYFOOD,DINNER,BROCCOLI & CHICK,JR',62, '1 tbsp'],['Babyfood, beverage, GERBER GRADUATE FRUIT SPLASHERS',31, '4 oz'],['BABYFOOD,SNACK,GERBER GRADUATE YOGURT MELTS',429, '1 serving'],['BABYFOOD,DINNER,SWT POTATOES&CHICK,STR',74, '1 tbsp'],['BABYFOOD,DINNER,POTATOES W/CHS&HAM,TODD',78, '1 oz'],['BABYFOOD,CRL,BARLEY,PREP W/WHL MILK',84, '1 oz'],['BABYFOOD,CRL,HI PROT,PREP W/WHL MILK',111, '1 oz'],['BABYFOOD,CRL,MXD,PREP W/WHL MILK',96, '1 oz'],['BABYFOOD,CRL,MXD,W/BANANAS,PREP W/WHL MILK',86, '1 oz'],['BABYFOOD,CRL,OATMEAL,PREP W/WHL MILK',116, '1 oz'],['BABYFOOD,CRL,OATMEAL,W/BANANAS,PREP W/WHL MILK',86, '1 oz'],['BABYFOOD,CRL,OATMEAL,W/HONEY,PREP W/WHL MILK',115, '1 oz'],['BABYFOOD,CRL,RICE,PREP W/WHL MILK',85, '1 oz'],['BABYFOOD,CRL,RICE,W/HONEY,PREP W/WHL MILK',115, '1 oz'],['BABYFOOD,CRL,MXD,W/HONEY,PREP W/WHL MILK',115, '1 oz'],['BABYFOOD,CRL,HI PROT,W/APPL&ORANGE,PREP W/WHL MILK',112, '1 oz'],['BABYFOOD,CRL,RICE,W/BANANAS,PREP W/WHL MILK',86, '1 oz'],['INF FORMULA,NESTLE,GOOD START SUPREME,W/ IRON,RTF',66, '1 fl oz'],['INF FORMULA,NES,G START SUPR,W/ IRON,LIQ CONC,NOT RECON',127, '1 fl oz'],['INF FORMULA,NESTLE,GOOD START SUPREME,W/ IRON,PDR',509, '1 scoop'],['INF FORMULA, MEAD JOHNSON, ENFAMIL, W/IRON, RTF',63, '1 fl oz'],['INF FORMULA,MEAD JOHNSON,ENFAMIL,W/ IRON,PDR',520, '1 scoop'],['INFANT FORMULA,MEAD JOHNSON,ENFAMIL,LO IRON,RTF',63, '1 fl oz'],['INF FORMULA,MEAD JOHNSON,ENFAMILLIPIL,W/IRN,PDR,W/ ARA & DHA',511, '1 scoop'],['INF FORMULA, MEAD JOHNSON, ENFAMIL, LO IRON, POWD, NOT RECON',511, '1 scoop'],['INF FORMU,MEAD JOHNS,ENFA,LIPIL,W/ IRO,LIQ CONC,W/ ARA & DHA',131, '1 fl oz'],['INF FORMULA,MEAD JOHNSON,ENFAMIL,NUTRAMIGEN,W/ IRON,RTF',66, '1 Serving, 100 ml'],['INF FORM,MEAD JOHNSON,ENFAMIL,NUTRAMIGEN,W/IRON,PDR,NOTRECN',502, '1 scoop'],['INF FORMULA, MEAD JOHN, ENFAMIL LIPIL,W/ IRON,RTF,W/ AR & DH',64, '1 serving, 100 ml'],['INF FORM,MEAD JOHNSON,ENFAMIL,NUTRAMIGEN,W/IRON,LC,NOT RECON',127, '1 fl oz'],['INF FORM,ME JOHNS,ENFAMIL,LIPIL,LO IRON,PDR,W/ ARA & DHA',511, '1 scoop'],['INF FORM,ME JOHNS,ENFAM,LIP,LO IRON,LIQ CONC,W/ ARA & DHA',131, '1 fl oz'],['CHILD FORMULA,MEAD JOHNSON,PORTAGEN,W/ IRON,PDR,NOT RECON',483, '1 scoop'],['CHILD FORMULA,MEAD JOHNSON,PORTAGEN,W/ IRON,PREP FROM PDR',88, '1 fl oz'],['INF FORMULA. MEAD JOHNSON, PREGESTIMIL, W/IRON, PDR,NO RECON',519, '1 scoop'],['INF FORMULA, MEAD JOHNSON, PREGESTIMIL, W/IRON, PREP FRO PDR',67, '1 serving, 100 ml'],['INF FORMULA,MEAD JOHNSON,PROSOBEE,W/ IRON,RTF',63, '1 Serving, 100 ml'],['INF FORMULA, MEAD JOHNSON, PROSOBEE,W/IRON ,LIQ CNC, NOT REC',131, '1 fl oz'],['INF FOR,ME JOHN,ENFAM,LIPIL,LO IRON,READY TO FE,W/ ARA & DHA',64, '1 serving, 100 ml'],['INF FORMULA,MEAD JOHNSON,ENFAMIL,PROSOBEE,IRON,PDR,NOT RECON',510, '1 scoop'],['INF FORMULA, ME JOHN, ENFA, LACF LIP, W/IRO, POW, W/AR AN DH',521, '1 scoop'],['INF FORMU, ME JOH, ENF, LAC, LI, W/ IR,LI CO,N RE,W/ AR & DH',132, '1 fl oz'],['INF FORMULA,MEAD JOHNSON,ENFAMIL,LIPIL,RTF,W/ ARA & DHA',66, '1 serving, 100 ml'],['INF FORMULA, ABBOTT NUTR, SIMILAC, PM 60/40, PDR NOT RECON',524, '1 scoop'],['INF FOR,ME JOH,ENF,NUTR LIPIL,W/ IRO,PDR,NOT RE,W/ ARA & DHA',494, '1 scoop'],['INF FORMULA, ABB NUT,SIMI,NAT CA,AD,RTF,W/ ARA & DHA',78, '1 fl oz'],['INF FORMULA, AB NUT, SIM, SP CA, ADV 24,W/ IR, RT,W/ AR & DH',71, '1 fl oz'],['INF FORMULA, ABBO NUTR, SIMIL,ISOMI,W/ IRON,RTF',66, '1 fl oz'],['INF FORMULA, ABBOTT NUTR, SIMILAC, ISOMIL,W/ IRON,LIQ CONC',128, '1 fl oz'],['INF FORMULA, ABBO NUTR, SIMILA, ISOMI, W/ IRON,PDR,NOT RECON',517, '1 scoop'],['INF FO,ME JO,ENF,NUTR,LIPIL,W/ IR,LIQ CO NOT RE,W/ ARA & DHA',126, '1 fl oz'],['INF FORMU,ME JOHNS,ENFAM,NUTRA,LIPI,W/ IRO,RTF,W/ ARA & DHA',66, '1 serving, 100 ml'],['INF FORMULA, ABBOTT NUTR, SIMILAC, ALIMENTUM, W/ IRON,RTF',66, '1 fl oz'],['INF FORMU, ME JOHNS, ENFAM, ENFA LIP, W/IRO, POW, W/AR/AN DH',514, '1 scoop'],['INF FORMULA, ABBOTT NUTR, SIMILAC, W/ IRON, RTF',65, '1 fl oz'],['INF FORM, AB NUTR, SIMILAC, W/ IRON, LIQ CONC, NOT RECON',127, '1 fl oz'],['INF FORMULA, MEA JOH,EN,PR LIPI,W/ IRO,PD,NO RE,W/ ARA & DHA',510, '1 scoop'],['INF FORMULA, ABBOTT NUTR, SIMILAC, W/ IRON, PDR, NOT RECON',522, '1 scoop'],['INFFORMULA, MEAD JOHNS,ENFAMIL,PROSOB,LIPI,LC,NOTREC,ARA&DHA',131, '1 fl oz'],['INF FORMULA, ABBOTT NUTR, SIMILAC, LO IRON, RTF',65, '1 fl oz'],['INF FORMULA, ABBOTT NUTR, SIMILAC, LO IRON,LIQ CONC,NOT RECO',127, '1 fl oz'],['INF FORMULA,MEJOHN,PROSOBE LIPI,W/ IRO,RE TO FE,W/ ARA & DHA',64, '1 serving, 100 ml'],['INF FORMULA, ABBOTT NUTR, SIMILAC, LO IRON, PDR,NOT RECON',522, '1 scoop'],['INF FORMULA,NESTLE,GOOD START SOY,W/ DHA & ARA,RTF',64, '1 oz'],['CHILD FORMULA,ABBOTT NUTR,PEDIASURE,RTF (FORMERLY ROSS)',99, '1 fl oz'],['INF FORM,MEAD JOHN,NEXT STEP,PROS LIPIL,PDR,W/ ARA & DHA',480, '3 scoop'],['INF FORM,ME JO,NEXT STEP,PROSO,LIPIL,REATO FEED,W/ ARA & DHA',67, '1 serving, 100 ml'],['INF FORMULA,NESTLE,GOOD START SOY,W/ ARA & DHA,PDR',503, '1 scoop'],['INF FORMULA, MEAD JOHNSON, ENFAMIL, LACTOFREE, RTF',63, '1 fl oz'],['INF FORMULA,MEAD JOHNSON,ENFAMIL,LACTOFREE,W/ IRN,PDR,NOTREC',521, '1 scoop'],['CHI FORMU,ABBT NUTR,PEDIASU,RTF,W/ IRON & FIB (FORMER ROSS)',99, '1 fl oz'],['INF FORMULA,NESTLE,GOOD START 2 ESSENTIALS,W/ IRON,RTF',65, '1 fl oz'],['INF FORMULA, NE,GOO STAR 2 ESSENT,W/ IRON,LIQ CONC,NOT RECON',125, '1 fl oz'],['INF FORMULA,NESTLE,GOOD START 2 ESSENTIALS,W/ IRON,PDR',471, '1 scoop'],['INF FORMULA,NESTLE,GOOD START ESSENTIALS SOY,W/ IRON,RTF',65, '1 fl oz'],['INF FORM,NEST,GOOD START ESSENT SOY,W/ IRON,LIQ CON,NOT RECO',128, '1 fl oz'],['INF FORMULA,NESTLE,GOOD START ESSENTIALS SOY,W/ IRON,PDR',502, '1 scoop'],['INF FORMULA, MEAD JOHNSON,NEXT STEP PROSOBEE,PDR,NOT RECON',480, '1 scoop'],['INF FORMULA,MEAD JOHNSON,NEXT STEP PROSOBEE,PREP FROM PDR',67, '1 fl oz'],['BABYFOOD,CORN & SWT POTATOES,STR',68, '1 oz'],['INF FORM, ABBO NUTR, SIMIL, ALIMENT, ADVAN, RTF,W/ ARA & DHA',67, '1 fl oz'],['INF FORM,PBM PRODU,STORE BRAND,RTF (FORM WYETH-AYERST)',63, '1 fl oz'],['INF FORM,PBM PROD,STORE BRAND,LC,NOT REC (FORM WYETH-AYERST)',130, '1 fl oz'],['INF FORMULA,PBM PRODUCTS,STORE BRAND,PDR',524, '1 scoop'],['INF FORMULA,PBM PRODUCTS,STORE BRAND,SOY,RTF',63, '1 fl oz'],['INF FORMU,PBM PRODU,STORE BR,SOY,LIQ CONC,NOT RECON',126, '1 fl oz'],['INF FORMULA,PBM PRODUCTS,STORE BRAND,SOY,PDR',508, '1 scoop'],['INF FORMULA, MEAD JOHNS, ENFAMI, AR LIPIL, RTF,W/ ARA & DHA',68, '1 serving, 100 ml'],['INF FORMULA, MEA JOHNSO, ENFAMI, AR LIPIL, PDR, W/ ARA & DHA',509, '1 scoop'],['INF FORM,ABBOT NUT,SIMIL NEOSU,RTF,W/ ARA & DHA',69, '1 fl oz'],['INF FORMULA, ABBOTT, SIMILAC, NEOSURE, PDR, W/ ARA & DHA',520, '1 fl oz'],['INF FORMULA, ABB NUTR, SIMI,SENS (LACT FRE) RTF,W/ ARA & DHA',68, '1 fl oz'],['INF FORMULA, ABB NUT,SIMIL,SENS,(LACT FR),LIQ CON,W/ AR & DH',128, '1 fl oz'],['INF FORMULA, ABB NUTR,SIMIL,SENS,(LACTO FR), PD, W/ ARA & DH',520, '1 fl oz'],['INF FORMULA, ABBOTT NUTR, SIMILAC, ADVANCE, W/ IRON, RTF',66, '1 fl oz'],['INF FORMULA,ABBOTT NUTR,SIMILAC,ADVANC,W/ IRON,PDR,NOT RECON',522, '1 scoop'],['INF FORMU,ABBO NUTR,SIMILAC,ADVAN,W/ IRON,LIQ CONC,NOT RECON',127, '1 fl oz'],['INF FORMULA, ABB NUTR, SIMIL, ISOMIL, ADVA W/ IRON,LIQ CONC',128, '1 fl oz'],['INF FORMULA, ABBO NUTR,SIMIL,ISOMIL, ADVANCE W/ IRON,RTF',66, '1 fl oz'],['INF FORMULA, ABB NUTR, SIMI, ISOMI, ADVAN W/ IRO ,PD,NOT REC',517, '1 scoop'],['INF FORMULA,MEAD JOHNSON,ENFAMIL,ENFACARE LIPIL,RTF, ARA&DHA',71, '1 fl oz'],['BABYFOOD,YOGURT,WHL MILK,W/ FRUIT,MULTIGRAIN CRL & ADDED DHA',98, '1 oz'],['INF FORM,ABBOTT,ALIMENTUM ADVANCE,IRON,PDR,NOTREC,DHA&ARA',517, '1 scoop'],['BABYFOOD,MSHD CHEDDAR POTATOES&BROCCOLI,TODDLER',48, '1 container'],['INF FORMULA,NESTLE,GOOD START SUPREME,W/ IRON,DHA & ARA,RTF',66, '1 fl oz'],['INF FORM,NESTLE,GOOD START SUPREME,IRON,DHA&ARA,PRP FR LC',66, '1 fl oz'],['INFFORM,MEADJOHNSON,ENFAMIL GENTLEASE LIPIL,W/IRON,PREPFRPDR',63, '1 fl oz'],['BABY FD,FORT CRL BAR,FRUIT FILLING',344, '1 bar'],['BABYFOOD,YOGURT,WHL MILK,W/ FRUIT,MULTIGRAIN CRL & IRON',92, '1 tbsp'],['INF FORMULA,NESTLE,GOOD START SOY,W/ DHA & ARA,LIQ CONC',132, '1 fl oz'],['TODDL FORM,ME JOHN,ENFA,PREM (FORME ENL,LIPIL,NEXT STEP),PDR',501, '1 scoop'],['TODDLER FORMULA, MEAD JOHNSON, ENFAGROW PREMIUM, RTF',64, '1 fl oz'],['INF FORMULA,MEAD JOHNSON,ENFAMIL,GENTLEASE,PDR',514, '1 scoop'],['INF FORMULA, MEAD JOHNS, ENFAMIL, ENFAGROW, GENTLEA,TOD, RTF',66, '5 fl oz'],['INF FORMULA, MEAD JOHNSON, ENFAMIL, ENFAGROW, SOY, TODD RTF',65, '1 fl oz'],['INF FORMULA,MEAD JOHNSON,ENFAMIL,NUTRAMIGEN AA,RTF',66, '1 fl oz'],['INF FORMULA,MEAD JOHNSON,ENFAMIL,PREMATURE,20 CAL RTF',66, '1 fl oz'],['INF FORMULA,MEAD JOHNSON,ENFAMIL,PREMATURE,24 CALO RTF',67, '1 fl oz'],['INF FORMULA,MEAD JOHNSON,ENFAMIL,PREMIUM,NEWBORN,RTF',66, '1 fl oz'],['INF FORMULA, GERBER, GOOD START 2 SOY,W/ IRON,RTF',65, '1 fl oz'],['INF FORMULA,GERBER,GOOD START,PROTECT PLUS,RTF',65, '1 fl oz'],['INF FORMULA,GERBER GOOD START 2,GENTLE PLUS,RTF',66, '1 fl oz'],['INF FORMULA, GERBER, GOOD START 2,PROTECT PLUS, RTF',66, '1 fl oz'],['INF FORMULA, ABBO NU,SIMIL,GO & GR,RTF,W/ ARA & DHA',66, '5 fl oz'],['INF FORMU, ABBO NUTR, SIMIL, EXPERT CARE, DIARRH RT',66, '1 fl oz'],['INF FORMULA, ABBO NUTR, SIMIL, FOR SPIT UP, RTF,W/ ARA & DHA',66, '1 fl oz'],['BABYFD,FRU,BAN AND STRAW, JU',109, '1 bottle'],['BABYFOO,BAN WI MIX BERR,ST',92, '1 packet'],['BABYFOOD,MULTIGRAIN WHL GRAIN CRL,DRY',405, '3 tbsp'],['BABYFOOD,BABY MUM MUM RICE BISCUITS',391, '4 biscuit'],['BABYFD,SNK,GE,GRAD,LIL CRUNCH,BKD,WHLGRN,CORN SNK',503, '18 piece'],['INF FORMULA, ABBOTT NUTRIT, SIMILAC, FOR SPIT UP, POW',514, '1 scoop'],['FAT,BEEF TALLOW',902, '1 tbsp'],['LARD',902, '1 tbsp'],['SALAD DRSNG,KRAFT MAYO LT MAYO',334, '1 tbsp'],['SALAD DRSNG,KRAFT MAYO FAT FREE MAYO DRSNG',70, '1 tbsp'],['SALAD DRSNG,KRAFT MIRACLE WHIP FREE NONFAT DRSNG',84, '1 tbsp'],['SALAD DRSNG,RUSSIAN DRSNG',355, '1 tbsp'],['SALAD DRSNG,SESAME SD DRSNG,REG',443, '1 tablespoon'],['SALAD DRSNG,1000 ISLAND,COMM,REG',379, '1 tbsp'],['SALAD DRSNG,MAYO TYPE,REG,W/SALT',250, '1 tbsp'],['SALAD DRSNG,FRENCH DRSNG,RED FAT',222, '1 tablespoon'],['SALAD DRSNG,ITALIAN DRSNG,COMM,RED FAT',102, '1 tablespoon'],['SALAD DRSNG,RUSSIAN DRSNG,LO CAL',141, '1 tablespoon'],['SALAD DRSNG,1000 ISLAND DRSNG,RED FAT',195, '1 tablespoon'],['SALAD DRSNG,MAYO,REG',680, '1 tbsp'],['SALAD DRSNG,MAYO,SOYBN&SAFFLOWER OIL,W/SALT',717, '1 tablespoon'],['SALAD DRSNG,MAYO,IMITN,SOYBN',232, '1 tbsp'],['SALAD DRSNG,MAYO,IMITN,MILK CRM',97, '1 tablespoon'],['SALAD DRSNG,MAYO,IMITN,SOYBN WO/CHOL',482, '1 tablespoon'],['SANDWICH SPRD,W/CHOPD PICKLE,REG,UNSPEC OILS',389, '1 tablespoon'],['SHORTENING,HOUSEHOLD,PARTIALLY HYDROG SOYBN -COTTONSEED',884, '1 tbsp'],['OIL,SOYBN,SALAD OR COOKING,(PARTIALLY HYDROGENATED)',884, '1 tbsp'],['OIL,RICE BRAN',884, '1 tablespoon'],['OIL,WHEAT GERM',884, '1 tsp'],['OIL,PNUT,SALAD OR COOKING',884, '1 tbsp'],['OIL,SOYBN,SALAD OR COOKING',884, '1 tbsp'],['OIL,COCNT',862, '1 tbsp'],['OIL,OLIVE,SALAD OR COOKING',884, '1 tablespoon'],['OIL,PALM',884, '1 tbsp'],['OIL,SESAME,SALAD OR COOKING',884, '1 tablespoon'],['OIL,SUNFLOWER,LINOLEIC (LESS THAN 60%)',884, '1 tbsp'],['MARGARINE,REG,HARD,SOYBN (HYDR)',719, '1 tsp'],['SALAD DRSNG,ITALIAN DRSNG,COMM,REG',240, '1 tbsp'],['SALAD DRSNG,FRENCH DRSNG,COMM,REG',457, '1 tbsp'],['VEG OIL SPRD,UNSPEC OILS,APPROX 37% FAT,W/ SALT',339, '1 tbsp'],['SALAD DRSNG,FRENCH,HOME RECIPE',631, '1 tablespoon'],['SALAD DRSNG,HOME RECIPE,VINEGAR&OIL',449, '1 tablespoon'],['SALAD DRSNG,FRENCH DRSNG,COMM,REG,WO/ SALT',459, '1 tablespoon'],['SALAD DRSNG,FRENCH DRSNG,RED FAT,WO/ SALT',233, '1 tablespoon'],['SALAD DRSNG,ITALIAN DRSNG,COMM,REG,WO/ SALT',292, '1 tablespoon'],['SALAD DRSNG,ITALIAN DRSNG,RED FAT,WO/ SALT',76, '1 tablespoon'],['SALAD DRSNG,MAYO,SOYBN OIL,WO/SALT',717, '1 tablespoon'],['SALAD DRSNG,FRENCH,CTTNSD,OIL,HOME RECIPE',631, '1 tablespoon'],['SALAD DRSNG,FRENCH DRSNG,FAT-FREE',132, '1 tablespoon'],['OIL,COCOA BUTTER',884, '1 tablespoon'],['OIL,CTTNSD,SALAD OR COOKING',884, '1 tablespoon'],['OIL,SUNFLOWER,LINOLEIC,(APPROX. 65%)',884, '1 tbsp'],['OIL,SAFFLOWER,SALAD OR COOKING,LINOLEIC,(OVER 70%)',884, '1 tbsp'],['OIL,SAFFLOWER,SALAD OR COOKING,HI OLEIC',884, '1 tablespoon'],['VEGETABLE OIL,PALM KERNEL',862, '1 tablespoon'],['OIL,POPPYSEED',884, '1 tablespoon'],['OIL,TOMATOSEED',884, '1 tablespoon'],['OIL,TEASEED',884, '1 tablespoon'],['OIL,GRAPESEED',884, '1 tablespoon'],['OIL,CORN,INDUSTRIAL & RTL,ALLPURP SALAD OR COOKING',900, '1 tbsp'],['FAT,MUTTON TALLOW',902, '1 tbsp'],['OIL,WALNUT',884, '1 tbsp'],['OIL,ALMOND',884, '1 tablespoon'],['OIL,APRICOT KERNEL',884, '1 tablespoon'],['OIL,SOYBN LECITHIN',763, '1 tablespoon'],['OIL,HAZELNUT',884, '1 tablespoon'],['OIL,BABASSU',884, '1 tbsp'],['OIL,SHEANUT',884, '1 tablespoon'],['SALAD DRSNG,BLUE OR ROQUEFORT CHS DRSNG,COMM,REG',484, '1 tbsp'],['OIL,CUPU ASSU',884, '1 tablespoon'],['FAT,CHICKEN',900, '1 tbsp'],['OIL,SOYBN,SALAD OR COOKING,(PARTIALLY HYDROGENATED) & CTTNSD',884, '1 tablespoon'],['SHORTENING,HOUSEHOLD,LARD&VEG OIL',900, '1 tablespoon'],['OIL,SUNFLOWER,LINOLEIC,(PARTIALLY HYDROGENATED)',884, '1 tbsp'],['SHORTENING BREAD,SOYBN (HYDR)&CTTNSD',884, '1 tablespoon'],['SHORTENING CAKE MIX,SOYBN (HYDR)&CTTNSD (HYDR)',884, '1 tbsp'],['SHORTENING INDUSTRIAL,LARD&VEG OIL',900, '1 tbsp'],['SHORTENING FRYING (HVY DUTY),BF TALLOW&CTTNSD',900, '1 tbsp'],['SHORTENING CONFECTIONERY,COCNT (HYDR)&OR PALM KERNEL (HYDR)',884, '1 tbsp'],['SHORTENING INDUSTRIAL,SOYBN (HYDR)&CTTNSD',884, '1 tbsp'],['SHORTENING FRYING (HVY DUTY),PALM (HYDR)',884, '1 tbsp'],['SHORTENING HOUSEHOLD SOYBN (HYDR)&PALM',884, '1 tbsp'],['SHORTENING FRYING HVY DUTY,SOYBN HYDR,LINOLEIC (LESS THAN 1%',884, '1 tbsp'],['SHORTENING,CONFECTIONERY,FRACTIONATED PALM',884, '1 tbsp'],['OIL,NUTMEG BUTTER',884, '1 tbsp'],['OIL,UCUHUBA BUTTER',884, '1 tbsp'],['FAT,DUCK',882, '1 tbsp'],['FAT,TURKEY',900, '1 tbsp'],['FAT,GOOSE',900, '1 tbsp'],['OIL,AVOCADO',884, '1 tbsp'],['OIL,CANOLA',884, '1 tbsp'],['OIL,MUSTARD',884, '1 tbsp'],['OIL,SUNFLOWER,HI OLEIC (70% & OVER)',884, '1 tbsp'],['MARGARINE-LIKE,MARGARINE-BUTTER BLEND,SOYBN OIL & BUTTER',727, '1 tbsp'],['SHORTENING,SPL PURPOSE FOR CAKES&FROSTINGS,SOYBN (HYDR)',884, '1 tbsp'],['SHORTENING,SPL PURPOSE FOR BAKING,SOYBN (HYDR) PALM&CTTNSD',884, '1 tbsp'],['OIL,OAT',884, '1 tbsp'],['FISH OIL,COD LIVER',902, '1 tsp'],['FISH OIL,HERRING',902, '1 tbsp'],['FISH OIL,MENHADEN',902, '1 tbsp'],['FISH OIL,MENHADEN,FULLY HYDR',902, '1 tbsp'],['FISH OIL,SALMON',902, '1 tbsp'],['FISH OIL,SARDINE',902, '1 tbsp'],['SHORTENING,MULTIPURPOSE,SOYBN (HYDR)&PALM (HYDR)',884, '1 tbsp'],['MARGARINE-LIKE,VEG OIL-BUTTER SPRD,TUB,W/ SALT',362, '1 tablespoon'],['BUTTER,LT,STK,W/SALT',509, '1 tablespoon'],['BUTTER,LT,STK,WO/SALT',499, '1 tablespoon'],['MEAT DRIPPINGS (LARD,BF TALLOW,MUTTON TALLOW)',889, '1 tablespoon'],['ANIMAL FAT,BACON GREASE',897, '1 tsp'],['MARGARINE,REG,80% FAT,COMP,STK,W/ SALT',717, '1 tbsp'],['MARGARINE,REG,80% FAT,COMP,TUB,W/ SALT',713, '1 tbsp'],['MARGARINE-LIKE,VEG OIL SPRD,60% FAT,STK,W/ SALT',537, '1 tbsp'],['MARGARINE-LIKE,VEG OIL SPRD,60% FAT,TUB,W/ SALT',533, '1 tbsp'],['MARGARINE-LIKE,VEG OIL SPRD,60% FAT,STICK/TUB/BOTTLE,W/ SALT',526, '1 tbsp'],['SHORTENING,VEG,HOUSEHOLD,COMP',884, '1 tbsp'],['MARGARINE,REG,80% FAT,COMP,STK,WO/ SALT',717, '1 tbsp'],['MARGARINE,REG,80% FAT,COMP,TUB,WO/ SALT',713, '1 tbsp'],['VEG OIL SPRD,60% FAT,STICK/TUB/BOTTLE,WO/ SALT',533, '1 tbsp'],['MARGARINE-LIKE,VEG OIL SPRD,FAT FREE,LIQ,W/ SALT',43, '1 tbsp'],['MARGARINE-LIKE SPRD W/ YOGURT,70% FAT,STK,W/ SALT',630, '1 tablespoon'],['MARGARINE-LIKE SPRD W/ YOGURT,APPROX 40% FAT,TUB,W/ SALT',330, '1 tablespoon'],['MARGARINE,80% FAT,STK,INCL REG & HYDR CORN & SOYBN OILS',717, '1 tbsp'],['MARGARINE, VEG OIL SPRD,70% FAT,SOYBN & PART HYDR SOYBN,STK',628, '1 tbsp, (1 NLEA serving)'],['MARGARINE SPRD,APPROX 48% FAT,TUB',424, '1 tbsp'],['MARGARINE-LIKE,VEG OIL SPRD,FAT-FREE,TUB',44, '1 tbsp'],['MARGARINE-LIKE,VEG OIL SPRD,20% FAT,W/ SALT',175, '1 tbsp'],['MARGARINE-LIKE,VEG OIL SPRD,20% FAT,WO/ SALT',175, '1 tbsp'],['SALAD DRSNG,1000 ISLAND DRSNG,FAT-FREE',132, '1 tbsp'],['SALAD DRSNG,ITALIAN DRSNG,FAT-FREE',47, '1 tbsp'],['SALAD DRSNG,RANCH DRSNG,FAT-FREE',119, '1 tablespoon'],['SALAD DRSNG,RANCH DRSNG,COMM,REG',421, '1 tablespoon'],['SALAD DRSNG,RANCH DRSNG,RED FAT',196, '1 tablespoon'],['SALAD DRSNG,MAYO,LT',238, '1 tablespoon'],['OIL,INDUSTRIAL,MID-OLEIC,SUNFLOWER',884, '1 tablespoon'],['OIL,INDUSTRIAL,CANOLA W/ ANTIFOAMING AGENT',884, '1 tablespoon'],['OIL,INDUSTRIAL,CANOLA FOR SALADS,WOKS & LT FRYING',884, '1 tablespoon'],['OIL,INDUS,CANOLA (PART HYDROG) OIL FOR DEEP FAT FRYING',884, '1 tablespoon'],['OIL,INDUSTRIAL,COCNT',884, '1 tbsp'],['OIL,INDUSTRIAL,SOY (PART HYDR),FOR POPCORN & FLAVORING VEG',884, '1 tbsp'],['SHORTENING,INDUS,SOY (PART HYDROG),POURABLE LIQ FRY',884, '1 tbsp'],['OIL,INDUSTRIAL,SOY,REFINED,FOR WOKS & LT FRYING',884, '1 tbsp'],['OIL,INDUSTRIAL,SOY (PART HYDR),FOR NON-DAIRY BUTTER FLAVOR',884, '1 tbsp'],['OIL,INDUSTRIAL,SOY ( PART HYDROGENATED),ALLPURP',884, '1 tbsp'],['OIL,INDUSTRIAL,SOY (PART HYDR ) & SOY,POURABLE FRY',884, '1 tbsp'],['OIL,INDUS,SOY (PART HYDROG) & CTTNSD,TORTILLA SHORTENING',884, '1 tbsp'],['MARGARINE-LIKE SHORTENING,INDUS,SOY(PART HYDR),CTTNSD,& SOY',628, '1 tbsp'],['OIL,INDUSTRIAL,PALM KERNEL,CONFECTION FAT',884, '1 tbsp'],['OIL,INDUSTRIAL,PALM KERNEL (HYDROGENATED),CONFECTION FAT',884, '1 tbsp'],['OIL,INDUSTRIAL,PALM KERNEL (HYDROGENATED),CONFECTION FAT',884, '1 tbsp'],['OIL,INDUSTRIAL,COCNT,CONFECTION FAT,ICE CRM COATINGS',884, '1 tbsp'],['OIL,INDUSTRIAL,PALM KERNEL (HYDROG) FOR WHIPPED TOPPINGS',884, '1 tbsp'],['OIL,INDUSTRIAL,COCNT (HYDROGENATED),FOR TOPPINGS & WHITENERS',880, '1 tbsp'],['OIL,INDUSTRIAL,PALM & PALM KERNEL,FILLING FAT (NON-HYDROG)',880, '1 tbsp'],['OIL,INDUSTRIAL,PALM KERNEL (HYDROGENATED),FILLING FAT',884, '1 tbsp'],['OIL,INDUSTRIAL,SOY (PARTHYDR ),PALM, ICINGS & FILLINGS',884, '1 tbsp'],['MARGARINE,INDUS,NON-DAIRY,CTTNSD,SOY OIL (PART HYDR )',714, '1 tbsp'],['SHORTENING,INDUSTRIAL,SOY (PARTIALLY HYDR )&CORN FOR FRYING',884, '1 tbsp'],['SHORTENING,INDUS,SOY (PART HYDR ) FOR BAKING & CONFECTIONS',884, '1 tbsp'],['MARGARINE,INDUS,SOY & PART HYDR SOY OIL,BAKING,SAUCES,CANDY',714, '1 tbsp'],['USDA CMDTY FD,OIL,VEG,SOYBN,REFINED',884, '1 tablespoon'],['USDA CMDTY FD,OIL,VEG,LO SATURATED FAT',884, '1 tbsp'],['MARGARINE-LIKE SPRD,SMART BALANCE REG BUTTERY SPRD',583, '1 tablespoon'],['MARGARINE-LIKE SPRD,SMART BALANCE LT BUTTERY SPRD',337, '1 tbsp'],['MARGARINE-LIKE SPRD,SMART BEAT SUPER LT WO/ SATURATED FAT',158, '1 tablespoon'],['MARGARINE-LIKE SPRD,SMART BEAT SMART SQUEEZE',47, '1 tablespoon'],['MARGARINE-LIKE SPRD,SMART BALANCE OMEGA PLUS SPRD',605, '1 tablespoon'],['OIL,VEG,NATREON CANOLA,HI STABILITY,NON TRANS,HI OLEIC (70%)',884, '1 tbsp'],['OIL,PAM COOKING SPRAY,ORIGINAL',792, '1 spray, , about 1/3 second (1 NLEA serving)'],['MARGARINE,MARGARINE-LIKE VEG OIL SPRD,67-70% FAT,TUB',606, '1 tbsp, (1 NLEA serving)'],['MARGARINE,80% FAT,TUB,CANOLA HARVEST SOFT SPRD',730, '1 tablespoon, (1 NLEA serving)'],['OIL,COOKING & SALAD,ENOVA,80% DIGLYCERIDES',884, '1 tbsp, (1 NLEA serving)'],['SALAD DRSNG,HONEY MUSTARD DRSNG,RED CAL',207, '2 tbsp, (1 serving)'],['MARGARINE-LIKE SPRD,BENECOL LT SPRD',357, '1 tablespoon, (1 NLEA serving)'],['SALAD DRSNG,SPRAY-STYLE DRSNG,ASSORTED FLAVORS',165, '1 serving, (approximately 10 sprays)'],['SALAD DRSNG,MAYO,LT,SMART BALANCE,OMEGA PLUS LT',333, '1 tbsp, (1 NLEA serving)'],['VEG OIL SPRD,37% FAT,UNSPEC OILS,W/ SALT,W/ ADDED VITAMIN D',339, '1 tbsp'],['MARGARINE,REG,80% FAT,COMP,STK,W/ SALT,W/ ADDED VITAMIN D',717, '1 tablespoon'],['MARGARINE,REG,80% FAT,COMP,TUB,W/ SALT,W/ ADDED VITAMIN D',713, '1 tbsp'],['VEG OIL SPRD,60% FAT,STK,W/ SALT,W/ ADDED VITAMIN D',537, '1 tbsp'],['VEG OIL SPRD,60% FAT,TUB,W/ SALT,W/ ADDED VITAMIN D',533, '1 tbsp'],['VEG-OIL SPRD,STICK/TUB/BOTTLE,60% FAT,W/ ADDED VITAMIN D',535, '1 tbsp'],['MARGARINE,REG,80% FAT,COMP,STK,WO/ SALT,W/ ADDED VITAMIN D',717, '1 tbsp'],['VEG OIL SPRD,60% FAT,STICK/TUB/BOTTLE,WO/ SALT,W/VIT D',542, '1 tbsp'],['OIL,INDUSTRIAL,CANOLA,HI OLEIC',900, '1 tablespoon'],['OIL,INDUSTRIAL,SOY,LO LINOLENIC',900, '1 tablespoon'],['OIL,INDUSTRIAL,SOY,ULTRA LO LINOLENIC',884, '1 tablespoon'],['OIL,INDUSTRIAL,SOY,FULLY HYDR',884, '1 tablespoon'],['OIL,INDUSTRIAL,CTTNSD,FULLY HYDR',884, '1 tablespoon'],['SALAD DRSNG,HONEY MUSTARD,REG',464, '2 tbsp'],['SALAD DRSNG,POPPYSEED,CREAMY',399, '2 tbsp'],['SALAD DRSNG,CAESAR,FAT-FREE',131, '2 tbsp, (1 NLEA serving)'],['DRESSING,HONEY MUSTARD,FAT-FREE',169, '2 tbsp, (1 NLEA serving)'],['OIL,FLAXSEED,CONTAINS ADDED SLICED FLAXSEED',878, '1 tablespoon'],['MAYONNAISE,RED FAT,W/ OLIVE OIL',361, '1 tbsp'],['CHICKEN,BROILER,ROTISSERIE,BBQ,BREAST MEAT ONLY',144, '3 oz'],['CHICKEN,BROILERS OR FRYERS,MEAT&SKN&GIBLETS&NECK,RAW',213, '3 oz'],['CHICKEN,BROILER OR FRYER,MEAT&SKN&GIBLETS&NECK,FRIED,BATTER',291, '3 oz'],['CHICKEN,BROILERS OR FRYERS,MEAT&SKN&GIBLETS&NECK,FRIED,FLR',272, '3 oz'],['CHICKEN,BROILERS OR FRYERS,MEAT&SKN&GIBLETS&NECK,RSTD',234, '3 oz'],['CHICKEN,BROILERS OR FRYERS,MEAT&SKN&GIBLETS&NECK,STWD',216, '3 oz'],['CHICKEN,BROILERS OR FRYERS,MEAT & SKN,RAW',215, '3 oz'],['CHICKEN,BROILERS OR FRYERS,MEAT&SKN,CKD,FRIED,BATTER',289, '3 oz'],['CHICKEN,BROILERS OR FRYERS,MEAT&SKN,CKD,FRIED,FLR',269, '3 oz'],['CHICKEN,BROILERS OR FRYERS,MEAT&SKN,CKD,RSTD',239, '1 cup, chopped or diced'],['CHICKEN,BROILERS OR FRYERS,MEAT&SKN,CKD,STWD',219, '1 cup, chopped or diced'],['CHICKEN,BROILERS OR FRYERS,MEAT ONLY,RAW',119, '3 oz'],['CHICKEN,BROILERS OR FRYERS,MEAT ONLY,CKD,FRIED',219, '1 cup, chopped or diced'],['CHICKEN,BROILERS OR FRYERS,MEAT ONLY,RSTD',190, '1 cup, chopped or diced'],['CHICKEN,BROILERS OR FRYERS,MEAT ONLY,STWD',177, '1 cup, chopped or diced'],['CHICKEN,BROILERS OR FRYERS,SKN ONLY,RAW',349, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,SKN ONLY,CKD,FRIED,BATTER',394, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,SKN ONLY,CKD,FRIED,FLR',502, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,SKN ONLY,CKD,RSTD',454, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,SKN ONLY,CKD,STWD',363, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,GIBLETS,RAW',124, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,GIBLETS,CKD,FRIED',277, '1 cup, chopped or diced'],['CHICKEN,BROILERS OR FRYERS,GIBLETS,CKD,SIMMRD',157, '1 cup, chopped or dice'],['CHICKEN,GIZZARD,ALL CLASSES,RAW',94, '1 oz'],['CHICKEN,GIZZARD,ALL CLASSES,CKD,SIMMRD',154, '1 cup, chopped or dice'],['CHICKEN,HEART,ALL CLASSES,RAW',153, '1 heart'],['CHICKEN,HEART,ALL CLASSES,CKD,SIMMRD',185, '1 cup, chopped or diced'],['CHICKEN,LIVER,ALL CLASSES,RAW',119, '1 liver'],['CHICKEN,LIVER,ALL CLASSES,CKD,SIMMRD',167, '1 liver'],['CHICKEN,BROILERS OR FRYERS,LT MEAT,MEAT & SKN,RAW',186, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,LT MEAT,MEAT&SKN,CKD,FRIED,BATTER',277, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,LT MEAT,MEAT&SKN,CKD,FRIED,FLR',246, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,LT MEAT,MEAT&SKN,CKD,RSTD',222, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,LT MEAT,MEAT&SKN,CKD,STWD',201, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,DK MEAT,MEAT & SKN,RAW',237, '3 oz'],['CHICKEN,BROILERS OR FRYERS,DK MEAT,MEAT&SKN,CKD,FRIED,BATTER',298, '3 oz'],['CHICKEN,BROILERS OR FRYERS,DK MEAT,MEAT&SKN,CKD,FRIED,FLR',285, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,DK MEAT,MEAT&SKN,CKD,RSTD',253, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,DK MEAT,MEAT&SKN,CKD,STWD',233, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,LT MEAT,MEAT ONLY,RAW',114, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,LT MEAT,MEAT ONLY,CKD,FRIED',192, '1 cup'],['CHICKEN,BROILERS OR FRYERS,LT MEAT,MEAT ONLY,CKD,RSTD',173, '1 cup, chopped or diced'],['CHICKEN,BROILERS OR FRYERS,LT MEAT,MEAT ONLY,CKD,STWD',159, '1 cup, chopped or diced'],['CHICKEN,BROILERS OR FRYERS,DK MEAT,MEAT ONLY,RAW',125, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,DK MEAT,MEAT ONLY,CKD,FRIED',239, '1 cup'],['CHICKEN,BROILERS OR FRYERS,DK MEAT,MEAT ONLY,CKD,RSTD',205, '1 cup, chopped or diced'],['CHICKEN,BROILERS OR FRYERS,DK MEAT,MEAT ONLY,CKD,STWD',192, '1 cup, chopped or diced'],['CHICKEN,BROILERS OR FRYERS,FAT,RAW',629, '1 tbsp'],['CHICKEN,BROILERS OR FRYERS,BACK,MEAT&SKN,RAW',319, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,BACK,MEAT&SKN,CKD,FRIED,BATTER',331, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,BACK,MEAT&SKN,CKD,FRIED,FLR',331, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,BACK,MEAT&SKN,CKD,RSTD',300, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,BACK,MEAT&SKN,CKD,STWD',258, '3 oz'],['CHICKEN,BROILERS OR FRYERS,BACK,MEAT ONLY,RAW',137, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,BACK,MEAT ONLY,CKD,FRIED',288, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,BACK,MEAT ONLY,CKD,RSTD',239, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,BACK,MEAT ONLY,CKD,STWD',209, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,BREAST,MEAT&SKN,RAW',172, '.5 breast, bone removed (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,BREAST,MEAT&SKN,CKD,FRIED,BATTER',260, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,BREAST,MEAT&SKN,CKD,FRIED,FLR',222, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,BREAST,MEAT&SKN,CKD,RSTD',197, '1 cup, chopped or diced'],['CHICKEN,BROILERS OR FRYERS,BREAST,MEAT&SKN,CKD,STWD',184, '1 cup, chopped or diced'],['CHICKEN,BROILER OR FRYERS,BRST,SKINLESS,BNLESS,MEAT ONLY,RAW',120, '3 oz'],['CHICKEN,BROILERS OR FRYERS,BREAST,MEAT ONLY,CKD,FRIED',187, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,BREAST,MEAT ONLY,CKD,RSTD',165, '1 cup, chopped or diced'],['CHICKEN,BROILERS OR FRYERS,BREAST,MEAT ONLY,CKD,STWD',151, '1 cup, chopped or diced'],['CHICKEN,BROILERS OR FRYERS,DRUMSTK,MEAT&SKN,RAW',161, '1 drumstick, with skin'],['CHICKEN,BROILERS OR FRYERS,DRUMSTK,MEAT&SKN,CKD,FRIED,BATTER',268, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,DRUMSTK,MEAT&SKN,CKD,FRIED,FLR',245, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,DRUMSTK,MEAT&SKN,CKD,RSTD',191, '1 drumstick, with skin (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,DRUMSTK,MEAT&SKN,CKD,STWD',204, '1 cup, chopped or diced'],['CHICKEN,BROILERS OR FRYERS,DK MEAT,DRUMSTK,MEAT ONLY,RAW',116, '1 drumstick, with skin'],['CHICKEN,BROILERS OR FRYERS,DRUMSTK,MEAT ONLY,CKD,FRIED',195, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,DK MEAT,DRUMSTK,MEAT ONLY,CKD,RST',155, '1 drumstick, without skin'],['CHICKEN,BROILERS OR FRYERS,DRUMSTK,MEAT ONLY,CKD,STWD',169, '3 oz'],['CHICKEN,BROILERS OR FRYERS,LEG,MEAT&SKN,RAW',214, '3 oz'],['CHICKEN,BROILERS OR FRYERS,LEG,MEAT&SKN,CKD,FRIED,BATTER',273, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,LEG,MEAT&SKN,CKD,FRIED,FLR',254, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,LEG,MEAT&SKN,CKD,RSTD',184, '3 oz'],['CHICKEN,BROILERS OR FRYERS,LEG,MEAT&SKN,CKD,STWD',220, '1 cup, chopped or diced'],['CHICKEN,BROILERS OR FRYERS,LEG,MEAT ONLY,RAW',120, '3 oz'],['CHICKEN,BROILERS OR FRYERS,LEG,MEAT ONLY,CKD,FRIED',208, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,LEG,MEAT ONLY,CKD,RSTD',174, '3 oz'],['CHICKEN,BROILERS OR FRYERS,LEG,MEAT ONLY,CKD,STWD',185, '3 oz'],['CHICKEN,BROILERS OR FRYERS,NECK,MEAT&SKN,RAW',297, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,NECK,MEAT&SKN,CKD,FRIED,BATTER',330, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,NECK,MEAT&SKN,CKD,FRIED,FLR',332, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,NECK,MEAT&SKN,CKD SIMMRD',247, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,NECK,MEAT ONLY,RAW',154, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,NECK,MEAT ONLY,CKD,FRIED',229, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,NECK,MEAT ONLY,CKD,SIMMRD',179, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,THIGH,MEAT&SKN,RAW',221, '1 thigh, without skin (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,THIGH,MEAT&SKN,CKD,FRIED,BATTER',277, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,THIGH,MEAT&SKN,CKD,FRIED,FLR',262, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,THIGH,MEAT&SKN,CKD,RSTD',232, '1 thigh, with skin'],['CHICKEN,BROILERS OR FRYERS,THIGH,MEAT&SKN,CKD,STWD',232, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,DK MEAT,THIGH,MEAT ONLY,RAW',121, '3 oz'],['CHICKEN,BROILERS OR FRYERS,THIGH,MEAT ONLY,CKD,FRIED',218, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,THIGH,MEAT ONLY,CKD,RSTD',179, '1 thigh, without skin'],['CHICKEN,BROILERS OR FRYERS,THIGH,MEAT ONLY,CKD,STWD',195, '1 cup, chopped or diced'],['CHICKEN,BROILERS OR FRYERS,WING,MEAT&SKN,RAW',191, '1 piece'],['CHICKEN,BROILERS OR FRYERS,WING,MEAT&SKN,CKD,FRIED,BATTER',324, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,WING,MEAT&SKN,CKD,FRIED,FLR',321, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,WING,MEAT&SKN,CKD,RSTD',254, '1 piece'],['CHICKEN,BROILERS OR FRYERS,WING,MEAT&SKN,CKD,STWD',249, '1 cup, chopped or diced'],['CHICKEN,BROILERS OR FRYERS,WING,MEAT ONLY,RAW',126, '1 wing, bone and skin removed (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,WING,MEAT ONLY,CKD,FRIED',211, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,WING,MEAT ONLY,CKD,RSTD',203, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,BROILERS OR FRYERS,WING,MEAT ONLY,CKD,STWD',181, '1 cup, chopped or diced'],['CHICKEN,ROASTING,MEAT&SKN&GIBLETS&NECK,RAW',213, '3 oz'],['CHICKEN,ROASTING,MEAT&SKN&GIBLETS&NECK,CKD,RSTD',220, '3 oz'],['CANADA GOOSE,BREAST MEAT,SKINLESS,RAW',133, '3 oz'],['CHICKEN,ROASTING,MEAT&SKN,CKD,RSTD',223, '3 oz'],['CHICKEN,ROASTING,MEAT ONLY,RAW',111, '3 oz'],['CHICKEN,ROASTING,MEAT ONLY,CKD,RSTD',167, '1 cup, chopped or diced'],['CHICKEN,ROASTING,GIBLETS,RAW',127, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,ROASTING,GIBLETS,CKD,SIMMRD',165, '1 cup, chopped or diced'],['CHICKEN,ROASTING,LT MEAT,MEAT ONLY,RAW',109, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,ROASTING,LT MEAT,MEAT ONLY,CKD,RSTD',153, '1 cup, chopped or diced'],['CHICKEN,ROASTING,DK MEAT,MEAT ONLY,RAW',113, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,ROASTING,DK MEAT,MEAT ONLY,CKD,RSTD',178, '1 cup, chopped or diced'],['CHICKEN,STEWING,MEAT&SKN,&GIBLETS&NECK,RAW',251, '3 oz'],['CHICKEN,STEWING,MEAT & SKN,& GIBLETS & NECK,CKD,STWD',214, '3 oz'],['CHICKEN,STEWING,MEAT&SKN,RAW',258, '3 oz'],['CHICKEN,STEWING,MEAT&SKN,CKD,STWD',285, '3 oz'],['CHICKEN,STEWING,MEAT ONLY,RAW',148, '3 oz'],['CHICKEN,STEWING,MEAT ONLY,CKD,STWD',237, '1 cup, chopped or diced'],['CHICKEN,STEWING,GIBLETS,RAW',168, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,STEWING,GIBLETS,CKD,SIMMRD',194, '1 cup, chopped or diced'],['CHICKEN,STEWING,LT MEAT,MEAT ONLY,RAW',137, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,STEWING,LT MEAT,MEAT ONLY,CKD,STWD',213, '1 cup, chopped or diced'],['CHICKEN,STEWING,DK MEAT,MEAT ONLY,RAW',157, '1 unit, (yield from 1 lb ready-to-cook chicken)'],['CHICKEN,STEWING,DK MEAT,MEAT ONLY,CKD,STWD',258, '1 cup, chopped or diced'],['CHICKEN,CAPONS,MEAT&SKN&GIBLETS&NECK,RAW',232, '3 oz'],['CHICKEN,CAPONS,MEAT&SKN&GIBLETS&NECK,CKD,RSTD',226, '3 oz'],['CHICKEN,CAPONS,MEAT&SKN,RAW',234, '3 oz'],['CHICKEN,CAPONS,MEAT&SKN,CKD,RSTD',229, '3 oz'],['CHICKEN,CAPONS,GIBLETS,RAW',130, '1 giblets'],['CHICKEN,CAPONS,GIBLETS,CKD,SIMMRD',164, '1 cup, chopped or diced'],['DUCK,DOMESTICATED,MEAT&SKN,RAW',404, '3 oz'],['DUCK,DOMESTICATED,MEAT&SKN,CKD,RSTD',337, '1 cup, chopped or diced'],['DUCK,DOMESTICATED,MEAT ONLY,RAW',135, '1 unit, (yield from 1 lb ready-to-cook duck)'],['DUCK,DOMESTICATED,MEAT ONLY,CKD,RSTD',201, '1 cup, chopped or diced'],['DUCK,DOMESTICATED,LIVER,RAW',136, '1 liver'],['DUCK,WILD,MEAT&SKN,RAW',211, '3 oz'],['DUCK,WILD,BREAST,MEAT ONLY,RAW',123, '1 unit, (yield from 1 lb ready-to-cook duck)'],['GOOSE,DOMESTICATED,MEAT&SKN,RAW',371, '3 oz'],['GOOSE,DOMESTICATED,MEAT&SKN,CKD,RSTD',305, '1 cup, chopped or diced'],['GOOSE,DOMESTICATED,MEAT ONLY,RAW',161, '3 oz'],['GOOSE,DOMESTICATED,MEAT ONLY,CKD,RSTD',238, '1 unit, (yield from 1 lb ready-to-cook goose)'],['GOOSE,LIVER,RAW',133, '1 liver'],['GUINEA HEN,MEAT&SKN,RAW',158, '3 oz'],['GUINEA HEN,MEAT ONLY,RAW',110, '3 oz'],['PHEASANT,RAW,MEAT&SKN',181, '3 oz'],['PHEASANT,RAW,MEAT ONLY',133, '3 oz'],['PHEASANT,BREAST,MEAT ONLY,RAW',133, '3 oz'],['PHEASANT,LEG,MEAT ONLY,RAW',134, '1 unit, (yield from 1 lb ready-to-eat pheasant)'],['QUAIL,MEAT AND SKIN,RAW',192, '1 quail'],['QUAIL,MEAT ONLY,RAW',134, '1 quail'],['QUAIL,BREAST,MEAT ONLY,RAW',123, '3 oz'],['SQUAB,(PIGEON),MEAT&SKN,RAW',294, '3 oz'],['SQUAB,(PIGEON),MEAT ONLY,RAW',142, '1 unit, (yield from 1 lb ready-to-cook squab)'],['SQUAB,(PIGEON),LT MEAT WO/SKN,RAW',134, '1 breast, bone removed'],['TURKEY,WHL,MEAT & SKN,RAW',143, '3 oz'],['TURKEY,WHL,MEAT & SKN,CKD,RSTD',189, '3 oz'],['TURKEY,WHL,MEAT ONLY,RAW',112, '3 oz'],['TURKEY,WHL,MEAT ONLY,CKD,RSTD',159, '3 oz'],['TURKEY,SKN FROM WHL,(LIGHT & DARK),RAW',407, '1 oz'],['TURKEY,SKN FROM WHL (LIGHT & DARK),RSTD',459, '1 serving'],['TURKEY,WHL,GIBLETS,RAW',124, '3 oz'],['TURKEY,WHL,GIBLETS,CKD,SIMMRD',173, '1 giblets'],['TURKEY,GIZZARD,ALL CLASSES,RAW',111, '1 raw gizzard'],['TURKEY,GIZZARD,ALL CLASSES,CKD,SIMMRD',155, '1 gizzard cooked'],['TURKEY,HEART,ALL CLASSES,RAW',140, '1 piece'],['TURKEY,HEART,ALL CLASSES,CKD,SIMMRD',174, '1 heart'],['TURKEY,LIVER,ALL CLASSES,RAW',128, '1 raw liver'],['TURKEY,LIVER,ALL CLASSES,CKD,SIMMRD',189, '1 liver cooked'],['TURKEY FROM WHL,NECK,MEAT ONLY,RAW',125, '1 oz'],['TURKEY FROM WHL,NECK,MEAT ONLY,CKD,SIMMRD',162, '1 serving'],['TURKEY FROM WHL,LT MEAT,MEAT & SKN,RAW',161, '3 oz'],['TURKEY FROM WHL,LT MEAT,MEAT & SKN,CKD,RSTD',177, '1 serving'],['TURKEY,DK MEAT,MEAT & SKN,RAW',161, '1 oz'],['TURKEY,DK MEAT FROM WHL,MEAT & SKN,CKD,RSTD',206, '1 serving'],['TURKEY FROM WHL,LT MEAT,RAW',114, '1 serving'],['TURKEY,ALL CLASSES,LT MEAT,CKD,RSTD',147, '1 serving'],['Turkey from whole, dark meat, meat only, raw',108, '1 serving'],['TURKEY,FROM WHL,DK MEAT,CKD,RSTD',173, '1 serving'],['TURKEY,ALL CLASSES,BACK,MEAT&SKN,CKD,RSTD',244, '1 cup, chopped or diced'],['TURKEY,ALL CLASSES,BREAST,MEAT&SKN,RAW',157, '1 unit, (yield from 1 lb ready-to-cook turkey)'],['TURKEY,ALL CLASSES,BREAST,MEAT&SKN,CKD,RSTD',189, '1 unit, (yield from 1 lb ready-to-cook turkey)'],['TURKEY,ALL CLASSES,LEG,MEAT&SKN,RAW',144, '1 unit, (yield from 1 lb ready-to-cook turkey)'],['TURKEY,ALL CLASSES,LEG,MEAT&SKN,CKD,RSTD',208, '1 unit, (yield from 1 lb ready-to-cook turkey)'],['TURKEY,ALL CLASSES,WING,MEAT&SKN,RAW',197, '1 unit, (yield from 1 lb ready-to-cook turkey)'],['TURKEY,ALL CLASSES,WING,MEAT&SKN,CKD,RSTD',229, '1 unit, (yield from 1 lb ready-to-cook turkey)'],['TURKEY,FRYER-ROASTERS,MEAT&SKN,CKD,RSTD',172, '3 oz'],['TURKEY,BACK,FROM WHL BIRD,NON-ENHANCED,MEAT ONLY,RAW',113, '3 oz'],['TURKEY,BACK,FROM WHL BIRD,NON-ENHANCED,MEAT ONLY,RSTD',173, '3 oz'],['TURKEY,BREAST,FROM WHL BIRD,NON-ENHANCED,MEAT ONLY,RAW',114, '3 oz'],['TURKEY,BREAST,FROM WHL BIRD,NON-ENHANCED,MEAT ONLY,RSTD',147, '3 oz'],['TURKEY,WING,FROM WHL BIRD,NON-ENHANCED,MEAT ONLY,RAW',114, '3 oz'],['TURKEY,WING,FROM WHL BIRD,NON-ENHANCED,MEAT ONLY,RSTD',147, '3 oz'],['TURKEY,YOUNG HEN,SKN ONLY,CKD,RSTD',482, '1 unit, (yield from 1 lb ready-to-cook turkey)'],['CHICKEN,CND,MEAT ONLY,W/BROTH',165, '1 can, (5 oz)'],['PATE DE FOIE GRAS,CND (GOOSE LIVER PATE),SMOKED',462, '1 tbsp'],['TURKEY,CND,MEAT ONLY,W/BROTH',169, '1 cup, drained'],['TURKEY,DICED,LT&DK MEAT,SEASONED',138, '1 oz'],['TURKEY AND GRAVY,FROZEN',67, '3 oz'],['TURKEY PATTIES,BREADED,BATTERED,FRIED',283, '1 medium, slice (approx 3 x 2 x 1/4)'],['TURKEY BREAST,PRE-BASTED,MEAT&SKN,CKD,RSTD',126, '3 oz'],['TURKEY THIGH,PRE-BASTED,MEAT&SKN,CKD,RSTD',157, '3 oz'],['TURKEY RST,BNLESS,FRZ,SEASONED,LT&DK MEAT,RAW',120, '3 oz'],['TURKEY RST,BNLESS,FRZ,SEASONED,LT&DK MEAT,RSTD',155, '1 cup, chopped or diced'],['TURKEY STKS,BREADED,BATTERED,FRIED',279, '1 stick, (2.25 oz)'],['POULTRY,MECHANICALLY DEBONED,FROM BACKS&NECKS W/SKN,RAW',272, '.5 lb'],['POULTRY,MECHANICALLY DEBONED,FROM BACKS&NECKS WO/SKN,RAW',199, '.5 lb'],['POULTRY,MECHANICALLY DEBONED,FROM MATURE HENS,RAW',243, '.5 lb'],['TURKEY,MECHANICALLY DEBONED,FROM TURKEY FRAMES,RAW',201, '.5 lb'],['GROUND TURKEY,RAW',148, '1 lb'],['GROUND TURKEY,CKD',203, '1 patty, (4 oz, raw) (yield after cooking)'],['CHICKEN,CORNISH GAME HENS,MEAT&SKN,RAW',200, '3 oz'],['CHICKEN,CORNISH GAME HENS,MEAT&SKN,CKD,RSTD',259, '3 oz'],['CHICKEN,CORNISH GAME HENS,MEAT ONLY,RAW',116, '3 oz'],['CHICKEN,CORNISH GAME HENS,MEAT ONLY,CKD,RSTD',134, '3 oz'],['CHICKEN,CANNED,NO BROTH',185, '1 oz'],['CHICKEN,WING,FRZ,GLAZED,BARBECUE FLAV',211, '1 piece'],['CHICKEN,WING,FRZ,GLAZED,BARBECUE FLAV,HTD (MICROWAVE)',248, '1 serving'],['CHKN,BROLRS OR FRYERS,BRST,SKNLSS,BNLESS,MEAT OLY,ENHCED,RAW',108, '3 oz'],['DUCK,YNG DUCKLING,DOM,WH PEKIN,BRST,MEAT&SKN,BNLESS,CKD,RSTD',202, '1 unit, (yield from 1 lb ready-to-cook duck)'],['DUCK,YNG DUCKL,DOM,WH PEKIN,BRST,MEAT,BNLESS,CKD WO/SKN,BRLD',140, '3 oz'],['DUCK,YNG DUCKLING,DOM,WH PEKIN,LEG,MEAT&SKN,BONE IN,CKD,RSTD',217, '1 leg, bone removed (yield after cooking)'],['DUCK,YNG DUCKL,DOM,WH PEKIN,LEG,MEAT,BONE IN,CKD WO/SKN,BRSD',178, '3 oz'],['CHICKEN,BROILER,ROTISSERIE,BBQ,DRUMSTK,MEAT ONLY',172, '1 drumstick'],['CHICKEN,WING,FRZ,GLAZED,BBQ FLAV,HTD (CONVENTIONAL OVEN)',242, '1 serving'],['CHICKEN PATTY,FRZ,UNCKD',292, '1 patty'],['CHICKEN PATTY,FRZ,CKD',287, '1 patty'],['CHICKEN BREAST TENDERS,BREADED,CKD,MICROWAVED',252, '1 piece'],['CHICKEN,GROUND,RAW',143, '4 oz, crumbled'],['CHICKEN,GROUND,CRUMBLES,CKD,PAN-BROWNED',189, '3 oz, crumbled'],['CHICKEN,BROILER,ROTISSERIE,BBQ,THIGH,MEAT ONLY',193, '1 thigh'],['CHICK,FEET,BOILED',215, '1 oz'],['USDA CMDTY CHICK,CND,MEAT ONLY,DRND',162, '1 cup, drained'],['USDA CMDTY,CHICK,CND,MEAT ONLY,W/ H2O',129, '1 cup, drained'],['USDA CMDTY,CHICK,CND,MEAT ONLY,W/ BROTH',133, '1 cup, drained'],['CHICKEN,BROILER,ROTISSERIE,BBQ,WING,MEAT ONLY',184, '1 wing'],['CHICKEN,BROILERS OR FRYERS,BACK,MEAT ONLY,CKD,ROTISSERIE,ORI',205, '1 back'],['CHICKEN,BROILERS OR FRYERS,BREAST,MEAT ONLY,CKD,ROTISSERIE,O',137, '1 breast, breast with skin and bone'],['CHICKEN,BROILERS OR FRYERS,DRUMSTK,MEAT ONLY,CKD,ROTISSERIE,',176, '1 drumstick'],['CHICKEN,BROILERS OR FRYERS,SKN ONLY,CKD,ROTISSERIE,ORIGINAL',406, '1 oz'],['CHICKEN,BROILERS OR FRYERS,THIGH,MEAT ONLY,CKD,ROTISSERIE,OR',196, '1 thigh'],['CHICKEN,BROILERS OR FRYERS,WING,MEAT ONLY,CKD,ROTISSERIE,ORI',197, '1 wing'],['CHICKEN,BROILERS OR FRYERS,BACK,MEAT & SKN,CKD,ROTISSERIE,OR',260, '1 back'],['CHICKEN,BROILERS OR FRYERS,BREAST,MEAT & SKN,CKD,ROTISSERIE,',184, '1 serving, (3 oz)'],['CHICKEN,BROILERS OR FRYERS,DRUMSTK,MEAT & SKN,CKD,ROTISSERIE',215, '1 drumstick'],['CHICKEN,BROILERS OR FRYERS,THIGH,MEAT & SKN,CKD,ROTISSERIE,O',233, '1 thigh'],['CHICKEN,BROILERS OR FRYERS,WING,MEAT & SKN,CKD,ROTISSERIE,OR',266, '1 wing'],['USDA CMDTY,CHICK FAJITA STRIPS,FRZ',135, '1 strip'],['USDA CMDTY,TURKEY TACO MEAT,FRZ,CKD',148, '3 oz'],['CHICKEN,BROILER,ROTISSERIE,BBQ,SKIN',378, '1 serving'],['CHICKEN,BROILER,ROTISSERIE,BBQ,BACK MEAT & SKN',251, '3 oz'],['CHICKEN,BROILER,ROTISSERIE,BBQ,BREAST MEAT & SKN',175, '3 oz'],['CHICKEN,BROILER,ROTISSERIE,BBQ,DRUMSTK MEAT & SKN',206, '1 drumstick'],['CHICKEN,BROILER,ROTISSERIE,BBQ,THIGH MEAT & SKN',226, '1 thigh'],['CHICKEN,BROILER,ROTISSERIE,BBQ,WING MEAT & SKN',257, '1 wing'],['RUFFED GROUSE,BREAST MEAT,SKINLESS,RAW',112, '4 oz'],['USDA COMMODITY,TURKEY HAM,DK MEAT,SMOKED,FRZ',118, '1 oz'],['EMU,GROUND,RAW',134, '1 patty'],['EMU,GROUND,CKD,PAN-BROILED',163, '1 patty, (yield from 135.8 g raw meat)'],['EMU,FAN FILLET,RAW',103, '1 serving, ( 3 oz )'],['EMU,FAN FILLET,CKD,BRLD',154, '1 serving, ( 3 oz )'],['EMU,FLAT FILLET,RAW',102, '3 oz'],['EMU,FULL RUMP,RAW',112, '3 oz'],['EMU,FULL RUMP,CKD,BRLD',168, '1 serving, ( 3 oz )'],['EMU,INSIDE DRUM,RAW',108, '3 oz'],['EMU,INSIDE DRUMS,CKD,BRLD',156, '1 serving, ( 3 oz )'],['EMU,OUTSIDE DRUM,RAW',103, '3 oz'],['EMU,OYSTER,RAW',141, '3 oz'],['EMU,TOP LOIN,CKD,BRLD',152, '1 serving, ( 3 oz )'],['OSTRICH,GROUND,RAW',165, '1 patty'],['OSTRICH,GROUND,CKD,PAN-BROILED',175, '1 patty'],['OSTRICH,FAN,RAW',117, '1 serving, ( cooked from 4oz raw)'],['OSTRICH,INSIDE LEG,RAW',111, '1 serving, ( cooked from 4 oz raw )'],['OSTRICH,INSIDE LEG,CKD',141, '1 serving, ( 3 oz )'],['OSTRICH,INSIDE STRIP,RAW',127, '1 serving, (cooked from 4 oz raw)'],['OSTRICH,INSIDE STRIP,CKD',164, '1 serving, ( 3 oz )'],['OSTRICH,OUTSIDE LEG,RAW',115, '1 serving, (cooked from 4 oz raw)'],['OSTRICH,OUTSIDE STRIP,RAW',120, '1 serving, (cooked from 4 oz raw)'],['OSTRICH,OUTSIDE STRIP,CKD',156, '1 serving, ( 3 oz )'],['OSTRICH,OYSTER,RAW',125, '1 serving, ( cooked from 4 oz raw)'],['OSTRICH,OYSTER,CKD',159, '1 serving, ( 3 oz )'],['OSTRICH,RND,RAW',116, '1 serving, (cooked from 4 oz raw)'],['OSTRICH,TENDERLOIN,RAW',123, '1 serving, (cooked from 4 oz raw)'],['OSTRICH,TIP RAW',114, '1 serving, ( cooked from 4 oz raw)'],['OSTRICH,TIP CKD',145, '1 serving, ( 3 oz )'],['OSTRICH,TOP LOIN,RAW',119, '1 serving, (cooked from 4 oz raw)'],['OSTRICH,TOP LOIN,CKD',155, '1 serving, ( 3 oz )'],['CHICKEN,LIVER,ALL CLASSES,CKD,PAN-FRIED',172, '1 liver'],['GROUND TURKEY,FAT FREE,RAW',112, '1 patty, (cooked from 4 oz raw)'],['GROUND TURKEY,FAT FREE,PAN-BROILED CRUMBLES',151, '3 oz'],['GROUND TURKEY,FAT FREE,PATTIES,BRLD',138, '1 patty'],['GROUND TURKEY,93% LN,7% FAT,RAW',150, '1 oz'],['GROUND TURKEY,93% LN,7% FAT,PAN-BROILED CRUMBLES',213, '3 oz'],['GROUND TURKEY,93% LN,7% FAT,PATTIES,BRLD',207, '3 oz'],['GROUND TURKEY,85% LN,15% FAT,RAW',180, '1 patty, (cooked from 4 oz raw)'],['GROUND TURKEY,85% LN,15% FAT,PAN-BROILED CRUMBLES',258, '3 oz'],['GROUND TURKEY,85% LN,15% FAT,PATTIES,BRLD',249, '3 oz'],['CHICKEN,BROILERS OR FRYERS,DK MEAT,DRUMSTK,MEAT OLY,CKD,BRSD',149, '1 drumstick, without skin'],['CHICKEN,BROILERS OR FRYERS,DK MEAT,THIGH,MEAT ONLY,CKD,BRSD',176, '1 thigh, without skin'],['CHICKEN,SKN (DRUMSTICKS & THIGHS),CKD,BRSD',443, '1 oz'],['CHICKEN,SKN (DRUMSTICKS & THIGHS),RAW',440, '1 oz'],['CHICKEN,SKN (DRUMSTICKS & THIGHS),CKD,RSTD',462, '1 oz'],['CHICKEN,BROILERS OR FRYERS,DK MEAT,DRUMSTK,MT & SKN,CKD,BRSD',187, '1 drumstick, without skin'],['CHICKEN,BROILERS OR FRYERS,DK MEAT,THIGH,MEAT & SKN,CKD,BRSD',229, '1 thigh, without skin'],['CHICKEN,DK MEAT,DRUMSTK,MEAT ONLY,ENHANCED,RAW',106, '1 drumstick, with skin'],['CHICKEN,DK MEAT,DRUMSTK,MEAT ONLY,ENHANCED,CKD,RSTD',146, '1 drumstick, without skin'],['CHICKEN,DK MEAT,DRUMSTK,MEAT ONLY,ENHANCED,CKD,BRSD',149, '1 drumstick, without skin'],['CHICKEN,DK MEAT,THIGH,MEAT ONLY,ENHANCED,CKD,BRSD',164, '3 oz'],['CHICKEN,DK MEAT,THIGH,MEAT ONLY,ENHANCED,RAW',110, '3 oz'],['CHICKEN,DK MEAT,THIGH,MEAT ONLY,ENHANCED,CKD,RSTD',164, '1 thigh, with skin'],['CHICKEN,SKN (DRUMSTICKS & THIGHS),ENHANCED,CKD,BRSD',403, '1 oz'],['CHICKEN,SKN (DRUMSTICKS & THIGHS),ENHANCED,RAW',386, '1 oz'],['CHICKEN,SKN (DRUMSTICKS & THIGHS),ENHANCED,CKD,RSTD',420, '1 oz'],['CHICKEN,DK MEAT,DRUMSTK,MEAT & SKN,ENHANCED,BRSD',183, '1 drumstick, with skin'],['CHICKEN,DK MEAT,DRUMSTK,MEAT & SKN,ENHANCED,RAW,',146, '1 drumstick, with skin'],['CHICKEN,DK MEAT,DRUMSTK,MEAT & SKN,ENHANCED,CKD,RSTD',180, '1 drumstick, with skin'],['CHICKEN,DK MEAT,THIGH,MEAT & SKN,ENHANCED,CKD,BRSD',215, '3 oz'],['CHICKEN,DK MEAT,THIGH,MEAT & SKN,ENHANCED,RAW',197, '3 oz'],['CHICKEN,DK MEAT,THIGH,MEAT & SKN,ENHANCED,CKD,RSTD',214, '1 thigh, with skin'],['CHICKEN,BROILER,ROTISSERIE,BBQ,BACK MEAT ONLY',212, '3 oz'],['TURKEY,DK MEAT FROM WHL,ENHANCED,MEAT ONLY,RAW',114, '1 serving'],['TURKEY,ENHANCED,DK MEAT,MEAT ONLY,CKD,RSTD',158, '1 serving'],['TURKEY FROM WHL,ENHANCED,LT MEAT,MEAT ONLY,RAW',101, '1 serving'],['TURKEY FROM WHL,ENHANCED,LT MEAT,MEAT ONLY,CKD,RSTD',127, '1 serving'],['TURKEY,ENHANCED,SKN FROM WHL (LIGHT & DARK),RAW',381, '1 oz'],['TURKEY,ENHANCED,SKN FROM WHL,(LIGHT & DARK),RSTD',451, '1 serving'],['TURKEY,ENHANCED,DK MEAT FROM WHL,MEAT & SKN,RAW',169, '3 oz'],['TURKEY,ENHANCED,DK MEAT FROM WHL,MEAT & SKN,CKD,RSTD',199, '1 serving'],['TURKEY FROM WHL,ENHANCED,LT MEAT,MEAT & SKN,RAW',147, '3 oz'],['TURKEY FROM WHL,ENHANCED,LT MEAT,MEAT & SKN,CKD,RSTD',157, '1 serving'],['TURKEY,WHL,ENHANCED,MEAT ONLY,RAW',105, '3 oz'],['TURKEY,WHL,ENHANCED,MEAT ONLY,RSTD',140, '3 oz'],['TURKEY,WHL,ENHANCED,MEAT & SKN,RAW',158, '3 oz'],['TURKEY,WHL,ENHANCED,MEAT & SKN,RSTD',176, '3 oz'],['TURKEY,PART S,ENHANCED,BREAST,MEAT ONLY,RAW',111, '1 breast'],['TURKEY,RTL PARTS,ENHANCED,BREAST,MEAT ONLY,CKD,RSTD',130, '3 oz'],['TURKEY,RTL PARTS,BREAST,MEAT ONLY,RAW',114, '3 oz'],['TURKEY,RTL PARTS,BREAST,MEAT ONLY,CKD,RSTD',136, '1 breast'],['TURKEY,RTL PARTS,WING,MEAT ONLY,RAW',112, '3 oz'],['TURKEY,RTL PARTS,WING,MEAT ONLY,CKD,RSTD',170, '3 oz'],['TURKEY,SKN,FROM RTL PARTS,FROM DK MEAT,RAW',380, '1 oz'],['TURKEY,SKN,FROM RTL PARTS,FROM DK MEAT,CKD,RSTD',414, '1 oz'],['TURKEY,RTL PARTS,DRUMSTK,MEAT ONLY,RAW',118, '3 oz'],['TURKEY,RTL PARTS,THIGH,MEAT ONLY,RAW',116, '3 oz'],['TURKEY,BREAST,FROM WHL BIRD,ENHANCED,MEAT ONLY,RSTD',127, '3 oz'],['TURKEY,BACK,FROM WHL BIRD,ENHANCED,MEAT ONLY,RAW',114, '3 oz'],['TURKEY,BACK,FROM WHL BIRD,ENHANCED,MEAT ONLY,RSTD',127, '3 oz'],['TURKEY,BREAST,FROM WHL BIRD,ENHANCED,MEAT ONLY,RAW',101, '3 oz'],['TURKEY,RTL PARTS,THIGH,MEAT ONLY,CKD,RSTD',159, '3 oz'],['TURKEY,RTL PARTS,DRUMSTK,MEAT ONLY,CKD,RSTD',173, '3 oz'],['TURKEY,DRUMSTK,FROM WHL BIRD,ENHANCED,MEAT ONLY,RAW',114, '3 oz'],['TURKEY,DRUMSTK,FROM WHL BIRD,ENHANCED,MEAT ONLY,RSTD',158, '3 oz'],['TURKEY,THIGH,FROM WHL BIRD,ENHANCED,MEAT ONLY,RAW',114, '3 oz'],['TURKEY,RTL PARTS,ENHANCED,BREAST,MEAT & SKN,RAW',144, '3 oz'],['TURKEY,THIGH,FROM WHL BIRD,ENHANCED,MEAT ONLY,RSTD',158, '3 oz'],['TURKEY,WING,FROM WHL BIRD,ENHANCED,MEAT ONLY,RAW',101, '3 oz'],['TURKEY,WING,FROM WHL BIRD,ENHANCED,MEAT ONLY,RSTD',127, '3 oz'],['TURKEY,RTL PARTS,BREAST,MEAT & SKN,RAW',155, '3 oz'],['TURKEY,RTL PARTS,BREAST,MEAT & SKN,CKD,RSTD',164, '3 oz'],['TURKEY,RTL PARTS,WING,MEAT & SKN,RAW',202, '3 oz'],['TURKEY,RTL PARTS,WING,MEAT & SKN,CKD,RSTD',235, '3 oz'],['TURKEY,RTL PARTS,DRUMSTK,MEAT & SKN,RAW',141, '3 oz'],['TURKEY,RTL PARTS,DRUMSTK,MEAT & SKN,CKD,RSTD',197, '3 oz'],['TURKEY,DRUMSTK,FROM WHL BIRD,MEAT ONLY,RAW',108, '3 oz'],['TURKEY,DRUMSTK,FROM WHL BIRD,MEAT ONLY,RSTD',139, '3 oz'],['TURKEY,THIGH,FROM WHL BIRD,MEAT ONLY,RAW',108, '3 oz'],['TURKEY,THIGH,FROM WHL BIRD,MEAT ONLY,RSTD',165, '3 oz'],['TURKEY,RTL PARTS,THIGH,MEAT & SKN,RAW',161, '3 oz'],['TURKEY,RTL PARTS,THIGH,MEAT & SKN,CKD,RSTD',183, '3 oz'],['TURKEY,BACK,FROM WHL BIRD,ENHANCED,MEAT & SKN,RAW',206, '3 oz'],['TURKEY,BACK,FROM WHL BIRD,ENHANCED,MEAT & SKN,RSTD',205, '3 oz'],['CHICkN,BROILR OR FRYRS,BRST,SKNLSS,BNLESS,MEAT ONLY,CKD,BRSD',157, '3 oz'],['CHCKN,BROLR OR FRYRS,BRST,SKNLSS,BNLESS,MEAT ONLY,CKD,GRILLD',151, '3 oz'],['CHIKN,BRLR OR FRYRS,BRST,SKNLSS,BNLSS,MEAT OLY,ENHCD,BRSD',145, '3 oz'],['CHCKN,BRLR OR FRYRS,BRST,SKNLSS,BNLSS,MEAT OLY,ENHCED,GRILLD',148, '3 oz'],['SOUP,CRM OF ASPARAGUS,CND,COND',69, '.5 cup, (4 fl oz)'],['SOUP,BLACK BEAN,CND,COND',91, '1 cup, (8 fl oz)'],['CAMPBELLS RED & WHITE,BEEFY MUSHROOM SOUP,COND',40, '1 serving, 1/2 cup'],['SOUP,BEAN W/ PORK,CND,COND',129, '.5 cup'],['SOUP,BEAN W/ FRANKFURTERS,CND,COND',142, '1 cup, (8 fl oz)'],['SOUP,BEAN W/ HAM,CND,CHUNKY,RTS',95, '1 cup, (8 fl oz)'],['SOUP,BF BROTH OR BOUILLON CND,RTS',7, '1 cup'],['SOUP,BF NOODLE,CND,COND',67, '.5 cup'],['SOUP,CRM OF CELERY,CND,COND',72, '.5 cup'],['SOUP,CHS,CND,COND',82, '.5 cup'],['SOUP,CHICK W/ DUMPLINGS,CND,COND',79, '.5 cup, (4 fl oz)'],['SOUP,CHICK BROTH,CND,COND',31, '.5 cup, (4 fl oz)'],['CAMPBELLS RED & WHITE,BROCCOLI CHS SOUP,COND',81, '1 serving, 1/2 cup'],['SOUP,CHICK,CND,CHUNKY,RTS',71, '1 cup'],['SOUP,CRM OF CHICK,CND,COND',90, '.5 cup, (4 fl oz)'],['SOUP,CHICK GUMBO,CND,COND',45, '.5 cup, (4 fl oz)'],['SOUP,CHUNKY CHICK NOODLE,CND,RTS',41, '1 can'],['SOUP,CHICK NOODLE,CND,COND',48, '.5 cup'],['SOUP,CHICK RICE,CND,CHUNKY,RTS',53, '1 cup'],['SOUP,CHICK W/ RICE,CND,COND',68, '.5 cup'],['SOUP,CHICK & VEG,CND,RTS',33, '1 cup'],['SOUP,CHICK VEG,CND,COND',61, '.5 cup'],['SOUP,CHILI BF,CND,COND',117, '1 cup, (8 fl oz)'],['SOUP,CLAM CHOWDER,MANHATTAN STYLE,CND,CHUNKY,RTS',56, '1 cup, (8 fl oz)'],['SOUP,CLAM CHOWDER,MANHATTAN,CND,COND',61, '.5 cup, (4 fl oz)'],['HEALTHY REQUEST,CHICK W/ RICE,COND',46, '.5 cup'],['SOUP,CLAM CHOWDER,NEW ENGLAND,CND,COND',72, '.5 cup'],['SOUP,BF BROTH BOUILLON & CONSOMME,CND,COND',11, '.5 cup'],['SOUP,CRAB,CND,RTS',31, '1 cup, (8 fl oz)'],['SOUP,ESCAROLE,CND,RTS',11, '1 cup, (8 fl oz)'],['SOUP,LENTIL W/HAM,CND,RTS',56, '1 cup, (8 fl oz)'],['CAMPBELLS,CHEDDAR CHS SOUP,COND',84, '.5 cup, condensed'],['SOUP,MINESTRONE,CND,CHUNKY,RTS',53, '1 cup'],['SOUP,MINESTRONE,CND,COND',68, '.5 cup, (4 fl oz)'],['CAMPBELLS RED&WHITE,CHICK & DUMPLINGS SOUP,COND',56, '1 serving, 1/2 cup'],['SOUP,MUSHROOM BARLEY,CND,COND',61, '.5 cup, (4 fl oz)'],['SOUP,CRM OF MUSHROOM,CND,COND',79, '.5 cup'],['SOUP,MUSHROOM W/ BF STOCK,CND,COND',68, '.5 cup, (4 fl oz)'],['SOUP,ONION,CND,COND',46, '.5 cup, (4 fl oz)'],['SOUP,CRM OF ONION,CND,COND',88, '.5 cup'],['CAMPBELLS RED & WHITE,CHICK & STARS SOUP,COND',56, '1 serving, 1/2 cup'],['SOUP,OYSTER STEW,CND,COND',48, '.5 cup, (4 fl oz)'],['SOUP,PEA,GRN,CND,COND',125, '.5 cup'],['SOUP,PEA,SPLIT W/HAM,CND,CHUNKY,RTS',77, '1 cup'],['SOUP,PEA,SPLIT W/ HAM,CND,COND',141, '.5 cup, (4 fl oz)'],['SOUP,PEPPERPOT,CND,COND',84, '.5 cup, (4 fl oz)'],['SOUP,CRM OF POTATO,CND,COND',74, '.5 cup'],['CAMPBELLS RED & WHITE,CHICK ALPHABET SOUP,COND',56, '1 serving, 1/2 cup'],['SOUP,SCOTCH BROTH,CND,COND',66, '.5 cup, (4 fl oz)'],['SOUP,CRM OF SHRIMP,CND,COND',72, '.5 cup, (8 fl oz)'],['CAMPBELLS RED&WHITE,CHICK BROTH,COND',16, '1 serving, 1/2 cup'],['CAMPBELLS RED & WHITE,CHICK GUMBO SOUP,COND',48, '1 serving, 1/2 cup'],['SOUP,TOMATO BF W/ NOODLE,CND,COND',112, '1 cup, (8 fl oz)'],['CAMPBELLS,RED & WHITE,CHICK NOODLE SOUP,COND',47, '.5 cup'],['SOUP,TOMATO RICE,CND,COND',93, '.5 cup, (4 fl oz)'],['SOUP,TURKEY,CHUNKY,CND,RTS',57, '1 cup, (8 fl oz)'],['SOUP,CHUNKY VEG,CND,RTS',39, '1 cup'],['SOUP,VEGETARIAN VEG,CND,COND',59, '.5 cup'],['SOUP,CHUNKY BF,CND,RTS',66, '1 cup'],['SOUP,VEG BF,CND,COND',63, '.5 cup'],['SOUP,VEG W/ BF BROTH,CND,COND',66, '.5 cup'],['SOUP,BF BROTH OR BOUILLON,PDR,DRY',213, '1 cube'],['SOUP,BEEF BROTH,CUBED,DRY',170, '1 cube'],['SOUP,CHICK BROTH OR BOUILLON,DRY',267, '1 cube'],['SOUP,CHICK BROTH CUBES,DRY',198, '1 cube'],['CAMPBELLS RED & WHITE,CHICK NOODLEOS SOUP,COND',71, '1 serving, 1/2 cup'],['CAMPBELLS RED & WHITE,CHICK VEG SOUP,COND',63, '1 serving, 1/2 cup'],['CAMPBELLS RED & WHITE,BF BROTH,COND',12, '1 serving, 1/2 cup'],['SOUP,ONION,DRY,MIX',293, '1 serving, 1 tbsp'],['CAMPBELLS RED & WHITE,BF CONSOMME,COND',16, '1 serving, 1/2 cup'],['SOUP,CRM OF VEG,DRY,PDR',446, '1 packet'],['SAUCE,TERIYAKI,RTS',89, '1 tbsp'],['GRAVY,AU JUS,CANNED',16, '.25 cup'],['GRAVY,AU JUS,DRY',313, '1 tsp'],['GRAVY,BF,CND,RTS',53, '1 cup'],['CAMPBELLS RED & WHITE,BEAN W/ BACON SOUP,COND',125, '1 serving, 1/2 cup'],['GRAVY,BROWN,DRY',367, '1 tbsp'],['GRAVY,CHICK,CND,RTS',79, '1 cup'],['GRAVY,CHICKEN,DRY',381, '1 tbsp'],['GRAVY,MUSHROOM,CANNED',50, '1 cup'],['GRAVY,MUSHROOM,DRY,PDR',328, '1 cup, (8 fl oz)'],['GRAVY,ONION,DRY,MIX',322, '1 cup, (8 fl oz)'],['GRAVY,PORK,DRY,PDR',367, '1 serving'],['GRAVY,TURKEY,CND,RTS',51, '1 cup'],['GRAVY,TURKEY,DRY',367, '1 serving'],['GRAVY,UNSPEC TYPE,DRY',344, '1 cup, (8 fl oz)'],['SOUP,CHICK NOODLE,DRY,MIX',377, '1 packet'],['SAUCE,SOFRITO,PREP FROM RECIPE',237, '.5 cup'],['USDA COMMODITY,SPAGHETTI SAU,MEATLESS,CND',48, ''],['CAMPBELLS RED & WHITE,BF NOODLE SOUP,COND',56, '1 serving, 1/2 cup'],['CAMPBELLS RED & WHITE,BF W/ VEG & BARLEY SOUP,COND',71, '1 serving, 1/2 cup'],['SOUP,BF MUSHROOM,CND,COND',61, '.5 cup, (4 fl oz)'],['SOUP,CHICK MUSHROOM,CND,COND',100, '.5 cup'],['SAUCE,BARBECUE',172, '1 tbsp'],['SAUCE,PLUM,READY-TO-SERVE',184, '1 tbsp'],['SAUCE,PIZZA,CND,RTS',54, '.25 cup'],['SOUP,TOMATO BISQUE,CND,COND',96, '.5 cup, (4 fl oz)'],['SOUP,TOMATO,CND,COND',66, '1 cup'],['SAUCE,SALSA,RTS',29, '2 tbsp'],['SAUCE,HOMEMADE,WHITE,THIN',105, '1 cup'],['SAUCE,HOMEMADE,WHITE,MED',147, '1 cup'],['SAUCE,HOMEMADE,WHITE,THICK',186, '1 cup'],['SAUCE,RTS,PEPPER OR HOT',11, '1 tsp'],['SAUCE,RTS,PEPPER,TABASCO',12, '1 tsp'],['SOUP,STOCK,BEEF,HOME-PREPARED',13, '1 cup'],['SOUP,STOCK,CHICK,HOME-PREPARED',36, '1 cup'],['SOUP,STOCK,FISH,HOME-PREPARED',16, '1 cup'],['SAUCE,HOISIN,RTS',220, '1 tbsp'],['SAUCE,OYSTER,RTS',51, '1 tbsp'],['SOUP,MINESTRONE,CND,RED NA,RTS',50, '1 cup'],['USDA COMMODITY,SALSA',36, ''],['SAUCE,FISH,READY-TO-SERVE',35, '1 tbsp'],['SOUP,SHARK FIN,REST-PREP',46, '1 cup'],['SOUP,CRM OF MUSHROOM,CND,COND,RED NA',52, '1 cup'],['SOUP,CHICK BROTH,CND,LESS/REDUCED NA',7, '1 cup'],['SAUCE,TERIYAKI,RTS,RED NA',89, '2 Tbsp'],['SOUP,BEAN&HAM,CND,RED NA,PREP W/H2O OR RTS',81, '1 cup'],['SPLIT PEA SOUP,CND,RED NA,PREP W/ H2O OR READY-TO SERVE',71, '1 cup'],['SPLIT PEA W/ HAM SOUP,CND,RED NA,PREP W/ H2O OR RTS',68, '1 cup'],['SOUP,CHICK BROTH,RTS',6, '1 cup'],['CAMPBELLS HEALTHY REQUEST,CRM OF CHICK SOUP,COND',50, '.5 cup, condensed'],['SOUP,CRM OF ASPARAGUS,CND,PREP W/ EQ VOLUME MILK',65, '1 cup, (8 fl oz)'],['SOUP,CHICK VEG W/POTATO&CHS,CHUNKY,RTS',65, '1 cup'],['CAMPBELLS,98% FAT FREE CRM OF BROCCOLI SOUP,COND',56, '.5 cup, condensed'],['SOUP,CRM OF CELERY,CND,PREP W/ EQ VOLUME MILK',66, '1 cup, (8 fl oz)'],['SOUP,CHS,CND,PREP W/ EQ VOLUME MILK',92, '1 cup'],['CAMPBELLS,25% LESS NA CHICK NOODLE SOUP,COND',49, '.5 cup, condensed'],['CAMPBELLS RED&WHITE,25% LESS NA TOMATO SOUP,COND',73, '1 serving, 1/2 cup'],['CAMPBELLS,25% LESS NA CRM OF MUSHROOM SOUP,COND',89, '.5 cup, condensed'],['CAMPBELLS,98% FAT FREE BROCCOLI CHS SOUP,COND',56, '.5 cup, condensed'],['SOUP,CRM OF CHICK,CND,PREP W/ EQ VOLUME MILK',77, '1 cup, (8 fl oz)'],['SOUP,VEG,CND,LO NA,COND',65, '.5 cup'],['CAMPBELLS,98% FAT FREE CRM OF CELERY SOUP,COND',56, '.5 cup, condensed'],['CAMPBELLS,98% FAT FREE CRM OF CHICK SOUP,COND',55, '.5 cup, condensed'],['PREGO PASTA,CHNKY GRD MSHRM & GRN PPPR ITAL SAU,RTS',69, '1 serving, 1/2 cup'],['PREGO PASTA,CHUNKY GARDEN MUSHROOM ITALIAN SAU,RTS',69, '1 serving, 1/2 cup'],['PREGO PASTA,DICED ONION & GARLIC ITAL SAU,RTS',92, '1 serving, 1/2 cup'],['PREGO PASTA,FLAV W/ MEAT ITAL SAU,RTS',62, '1 serving, 1/2 cup'],['PREGO PASTA,FRSH MUSHROOM ITAL SAU,RTS',54, '1 serving, 1/2 cup'],['PREGO PASTA,GARLIC SUPREME ITAL SAU,RTS',85, '1 serving, 1/2 cup'],['PREGO PASTA,ITAL SAUSGE & GARLIC ITAL SAU,RTS',72, '1 serving, 1/2 cup'],['PREGO PASTA,MINI MEATBALL ITAL SAU,RTS',77, '1 serving, 1/2 cup'],['PREGO PASTA,MUSHRM & GRLIC ITAL SAU,RTS',62, '1 serving, 1/2 cup'],['SOUP,CLAM CHOWDER,NEW ENG,CND,PREP W/ EQ VLM LOFAT (2%) MILK',61, '1 serving, 1 cup'],['PREGO PASTA,MUSHRM & PARMESAN ITALIAN SAU,RTS',104, '1 serving, 1/2 cup'],['PREGO PASTA,ORGANIC MUSHROOM ITALIAN SAU,RTS',72, '1 serving, 1/2 cup'],['PREGO PASTA,ORGNIC TOMATO & BASIL ITAL SAU,RTS',72, '1 serving, 1/2 cup'],['PREGO PASTA,HEART SMRT- RICOTTA PMESAN ITLN SAU,RTS',72, '1 serving, 1/2 cup'],['PREGO PASTA,RSTD GARLIC & HERB ITAL SAU,RTS',69, '1 serving, 1/2 cup'],['PREGO PASTA,RSTD GARLIC PARMESAN ITAL SAU,RTS',77, '1 serving, 1/2 cup'],['PREGO PASTA,H ST- RSTD RED PR GRLIC ITLIAN SAU,RTS',56, '1 serving, 1/2 cup'],['PREGO PASTA,TOMATO,BASIL & GARLIC ITAL SAU,RTS',64, '1 serving, 1/2 cup'],['PREGO PASTA,ZESTY MUSHROOM ITALIAN SAU,RTS',85, '1 serving, 1/2 cup'],['CAMPBELLS,CHNKY MICRO BOWLS,BF W/ CONTRY VEG,RTS',61, '1 serving, 1 cup'],['CAMPBELLS CHUNKY MICROWAVABLE BWLS,CHCK DMPLINGS SOUP',78, '1 serving, 1 cup'],['SOUP,CRM OF MUSHROOM,CND,PREP W/ EQ VOLUME LOFAT (2%) MILK',64, '1 serving, 1 cup'],['CAMPBELLS, CHNKY MICRO BOWLS,CLSSC CHIC NOODL,RTS',45, '1 serving, 1 cup'],['CAMPBELLS, CHNKY MICRO BOWL,GRLLD CHIC&SAUS GMBO,RTS',57, '1 serving, 1 cup'],['SOUP,CRM OF ONION,CND,PREP W/ EQ VOLUME MILK',75, '1 cup, (8 fl oz)'],['SOUP,OYSTER STEW,CND,PREP W/ EQ VOLUME MILK',55, '1 cup, (8 fl oz)'],['SOUP,PEA,GRN,CND,PREP W/ EQ VOLUME MILK',94, '1 cup, (8 fl oz)'],['CAMPBELLS, CHNKY MICRO BOWL,NEW ENGL CLM CHOW,RTS',82, '1 serving, 1 cup'],['CAMPBELLS,CHUNKY MICRO BOWLS,OLD FASH VEG BF,RTS',41, '1 serving, 1 cup'],['CAMPBELLS,CHUNKY MICRO BOWLS,SIRL BRGER W/CNTRY VEG,RTS',57, '1 serving, 1 cup'],['SOUP,CRM OF POTATO,CND,PREP W/ EQ VOLUME MILK',60, '1 cup, (8 fl oz)'],['SOUP,CRM OF SHRIMP,CND,PREP W/ EQ VOLUME LOFAT (2%) MILK',61, '1 cup, (8 fl oz)'],['SAUCE,WHITE,THIN,PREPARED-FROM-RECIPE,W/ BUTTER',72, ''],['SAUCE,SWT & SOUR,PREPARED-FROM-RECIPE',79, ''],['SAUCE,BARBECUE,KRAFT,ORIGINAL',172, '1 tbsp'],['CAMPBELLS,CHICK W/ RICE SOUP,COND',68, '.5 cup, condensed'],['CAMPBELLS RED&WHITE,CHICK WON TON SOUP,COND',40, '1 serving, 1/2 cup'],['CAMPBELLS RED & WHITE,CRM OF ASPARAGUS SOUP,COND',89, '1 serving, 1/2 cup'],['SOUP,HEALTHY CHOIC CHICK NOODLE SOUP,CND',41, '1 serving, 1 cup'],['SOUP,HEALTHY CHOIC CHICK & RICE SOUP,CND',37, '1 serving, 1 cup'],['SOUP,HEALTHY CHOIC GARDEN VEG SOUP,CND',51, '1 serving, 1 cup'],['CAMPBELLS FAT FREE BF GRAVY',25, '.25 cup'],['CAMPBELLS COUNTRY STYLE CRM GRAVY',76, '.25 cup'],['CAMPBELLS COUNTRY STYLE SAUSAGE GRAVY',119, '.25 cup'],['CAMPBELLS FAT FREE CHICK GRAVY',25, '.25 cup'],['CAMPBELLS GOLDEN PORK GRAVY',76, '.25 cup'],['CAMPBELLS MUSHROOM GRAVY',34, '.25 cup'],['CAMPBELLS FAT FREE TURKEY GRAVY',33, '.25 cup'],['CAMPBELLS MICROWAVABLE BF GRAVY',42, '.25 cup'],['CAMPBELLS MICROWAVABLE CHICK GRAVY',67, '.25 cup'],['CAMPBELLS TURKEY GRAVY',42, '.25 cup'],['FRANCO-AMERICN FAT FR SLW RST BF GRAVY',34, '.25 cup'],['FRANCO-AMERICAN FT FE SLW RST CHICK GRVY',34, '.25 cup'],['FRANCO-AMERICAN SLOW RST BF GRAVY',42, '.25 cup'],['FRANCO-AMERICAN SLOW RST CHICK GRAVY',34, '.25 cup'],['FRANCO-AMERICAN SLOW RST TURKEY GRAVY',42, '.25 cup'],['CAMPBELLS MICROWAVABLE TURKEY GRAVY',42, '.25 cup'],['CAMPBELLS RED & WHITE,CRM OF BROCCOLI SOUP,COND',73, '1 serving, 1/2 cup'],['CAMPBELLS RED & WHITE,CRM OF CELERY SOUP,COND',73, '1 serving, 1/2 cup'],['CAMPBELLS,CRM OF CHICK SOUP,COND',103, '.5 cup, condensed'],['CAMPBELLS,CRM OF CHICK W/ HERBS SOUP,COND',65, '.5 cup, condensed'],['CAMPBELLS,CRM OF MUSHROOM SOUP,COND',81, '.5 cup, condensed'],['CAMPBELLS,CRM OF MUSHROOM W/ RSTD GARLIC SOUP,COND',56, '.5 cup, condensed'],['CAMPBELLS RED & WHITE,CRM OF ONION SOUP,COND',81, '1 serving, 1/2 cup'],['CAMPBELLS,CRM OF POTATO SOUP,COND',71, '.5 cup, condensed'],['CAMPBELLS RED & WHITE,CRM OF SHRIMP SOUP,COND',81, '1 serving, 1/ 2 cup'],['CAMPBELLS RED&WHITE,CREAMY CHICK NOODLE SOUP,COND',97, '1 serving, 1/2 cup'],['CAMPBELLS RED & WHITE,SCOOBY-DOO SOUP,COND',56, '1 serving, 1/2 cup'],['CAMPBELLS RED & WHITE,DOUBLE NOODLE IN CHICK BROTH SOP,COND',87, '1 serving, 1/ 2 cup'],['CAMPBELLS RED & WHITE,OLD FASHIONED TOMATO RICE SOUP,COND',87, '1 serving, 1/2 cup'],['CAMPBELLS RED & WHITE,FIESTA NACHO CHS SOUP,COND',97, '1 serving, 1/2 cup'],['CAMPBELLS RED & WHITE,FRENCH ONION SOUP,COND',36, '1 serving, 1/2 cup'],['CAMPBELLS RED & WHITE,GOLDEN MUSHROOM SOUP,COND',65, '1 serving, 1/2 cup'],['CAMPBELLS RED & WHITE,GOLDFISH PASTA W/ CHICK',63, '1 serving, 1/2 cup'],['SOUP,TOMATO BISQUE,CND,PREP W/ EQ VOLUME MILK',79, '1 cup, (8 fl oz)'],['SOUP,TOMATO,CND,PREP W/ EQ VOLUME LOFAT (2%) MILK',55, '1 serving, 1 cup'],['CAMPBELLS RED & WHITE,GRN PEA SOUP,COND',141, '1 serving, 1/2 cup'],['CAMPBELLS,HOMESTYLE CHICK NOODLE SOUP,COND',51, '.5 cup, condensed'],['CAMPBELLS RED & WHITE,MANHATTAN CLAM CHOWDER,COND',48, '1 serving, 1/2 cup'],['CAMPBELLS RED & WHITE,MEGA NOODLE IN CHICK BROTH,COND',71, '1 serving, 1/2 cup'],['CAMPBELLS RED & WHITE,MINESTRONE SOUP,COND',71, '1 serving, 1/2 cup'],['CAMPBELLS RED & WHITE,NEW ENGLAND CLAM CHOWDER,COND',71, '1 serving, 1/2 cup'],['CAMPBELLS RED & WHITE,VEGETARIAN VEG SOUP,COND',71, '1 serving, 1/2 cup'],['CAMPBELLS RED & WHITE,VEG SOUP,COND',79, '1 serving, 1/2 cup'],['CAMPBELLS,VEG BF SOUP,COND',65, '.5 cup, condensed'],['CAMPBELLS,TOMATO SOUP,COND',71, '.5 cup, condensed'],['CAMPBELLS RED & WHITE,TOMATO BISQUE,COND',103, '1 serving, 1/2 cup'],['CAMPBELLS RED & WHITE,SPLIT PEA W/ HAM & BACON SOUP,COND',141, '1 serving, 1/2 cup'],['CAMPBELLS CHUNKY SOUPS,BKD POTATO CHEDDAR BACON BITS SOUP',78, '1 cup'],['CAMPBELLS CHUNKY SOUPS,BKD POTATO W/ STEAK & CHS SOUP',82, '1 cup'],['CAMPBELLS CHUNKY SOUPS,BF RIB RST POTATOES HERBS SOUP',44, '1 cup'],['CAMPBELLS CHUNKY SOUPS,BF W/ COUNTRY VEG SOUP',53, '1 cup'],['CAMPBELLS CHUNKY SOUPS,BF W/ WHITE & WILD RICE SOUP',57, '1 cup'],['CAMPBELLS CHUNKY,CREAMY CHICK & DUMPLINGS SOUP',66, '1 cup'],['CAMPBELLS CHUNKY SOUPS,CHICK BROCCOLI CHS & POTATO SOUP',86, '1 cup'],['CAMPBELLS CHUNKY SOUPS,CHICK CORN CHOWDER',82, '1 cup'],['CAMPBELLS CHUNKY,CLASSIC CHICK NOODLE SOUP',47, '1 cup'],['CAMPBELLS CHUNKY SOUPS,FAJITA CHICK W/ RICE & BNS SOUP',53, '1 cup'],['CAMPBELLS CHUNKY SOUPS,FIREHOUSE - HOT SPICY BF BEAN CHILI',95, '1 cup'],['CAMPBELLS CHUNKY SOUPS,GRILLED CHICK SAUSAGE GUMBO SOUP',57, '1 cup'],['CAMPBELLS CHUNKY SOUPS,GRILLED CHICK VEG & PASTA SOUP',41, '1 cup'],['SOUP,CRM OF ASPARAGUS,CND,PREP W/ EQ VOLUME H2O',35, '1 cup, (8 fl oz)'],['SOUP,BLACK BEAN,CND,PREP W/ EQ VOLUME H2O',46, '1 cup'],['CAMPBELLS CHUNKY SOUPS,GRILLED SIRLOIN STEAK HEARTY VEG SP',51, '1 cup'],['SOUP,BEAN W/ PORK,CND,PREP W/ EQ VOLUME H2O',63, '1 serving, 1 cup'],['CAMPBELLS CHUNKY,HEALTHY REQUEST CHICK NOODLE SOUP',41, '1 cup'],['SOUP,BEAN W/ FRANKFURTERS,CND,PREP W/ EQ VOLUME H2O',75, '1 cup, (8 fl oz)'],['CAMPBELLS CHUNKY SOUPS,HEALTHY REQUEST VEG SOUP',49, '1 cup'],['SOUP,BF NOODLE,CND,PREP W/ EQ VOLUME H2O',34, '1 cup, (8 fl oz)'],['SOUP,CRM OF CELERY,CND,PREP W/ EQ VOLUME H2O',37, '1 cup'],['SOUP,CHS,CND,PREP W/ EQ VOLUME H2O',63, '1 cup, (8 fl oz)'],['SOUP,CHICK W/ DUMPLINGS,CND,PREP W/ EQ VOLUME H2O',40, '1 cup, (8 fl oz)'],['SOUP,CHICK BROTH,CND,PREP W/ EQ VOLUME H2O',16, '1 cup, (8 fl oz)'],['CAMPBELLS CHUNKY SOUPS,HEARTY BEAN N HAM SOUP',74, '1 cup'],['CAMPBELLS CHUNKY SOUPS,HEARTY BF BARLEY SOUP',65, '1 cup'],['SOUP,CRM OF CHICK,CND,PREP W/ EQ VOLUME H2O',48, '1 cup'],['SOUP,CHICK GUMBO,CND,PREP W/ EQ VOLUME H2O',23, '1 cup'],['CAMPBELLS CHUNKY SOUPS,HEARTY CHICK W/ VEG SOUP',45, '1 serving'],['SOUP,CHICK NOODLE,CND,PREP W/ EQ VOLUME H2O',25, '1 serving, 1 cup'],['SOUP,CHICK W/ RICE,CND,PREP W/ EQ VOLUME H2O',24, '1 serving, 1 cup'],['SOUP,CHILI BF,CND,PREP W/ EQ VOLUME H2O',57, '1 cup'],['SOUP,CLAM CHOWDER,MANHATTAN,CND,PREP W/EQ VOLUME H2O',30, '1 serving, 1 cup'],['CAMPBELLS CHUNKY SOUPS,MANHATTAN CLAM CHOWDER',52, '1 cup'],['SOUP,CLAM CHOWDER,NEW ENGLAND,CND,PREP W/ EQ VOLUME H2O',35, '1 serving, 1 cup'],['CAMPBELLS CHUNKY,NEW ENGLAND CLAM CHOWDER',81, '1 cup'],['SOUP,BF BROTH,BOUILLON,CONSOMME,PREP W/ EQ VOLUME H2O',12, '1 cup, (8 fl oz)'],['CAMPBELLS CHUNKY SOUPS,OLD FASHIONED POTATO HAM CHOWDER',78, '1 cup'],['CAMPBELLS CHUNKY SOUPS,OLD FASHIONED VEG BF SOUP',49, '1 cup'],['CAMPBELLS CHUNKY SOUPS,ROADHOUSE - BF BEAN CHILI',95, '1 cup'],['CAMPBELLS CHUNKY SOUPS,SALISBURY STEAK MUSHRMS ONIONS SOUP',57, '1 serving'],['CAMPBELLS CHUNKY SOUPS,SAVORY CHICK WHITE WILD RICE SOUP',45, '1 cup'],['SOUP,MINESTRONE,CND,PREP W/ EQ VOLUME H2O',34, '1 cup, (8 fl oz)'],['CAMPBELLS CHUNKY SOUPS,SAVORY POT RST SOUP',49, '1 cup'],['SOUP,MUSHROOM BARLEY,CND,PREP W/ EQ VOLUME H2O',30, '1 cup, (8 fl oz)'],['SOUP,CRM OF MUSHROOM,CND,PREP W/ EQ VOLUME H2O',39, '1 serving, 1 cup'],['SOUP,MUSHROOM W/ BF STOCK,CND,PREP W/ EQ VOLUME H2O',35, '1 cup, (8 fl oz)'],['SOUP,CRM OF ONION,CND,PREP W/ EQ VOLUME H2O',44, '1 cup, (8 fl oz)'],['CAMPBELLS CHUNKY SOUPS,SAVORY VEG SOUP',44, '1 cup'],['SOUP,OYSTER STEW,CND,PREP W/ EQ VOLUME H2O',24, '1 cup, (8 fl oz)'],['SOUP,PEA,GRN,CND,PREP W/ EQ VOLUME H2O',61, '1 serving, 1 cup'],['SOUP,PEA,SPLIT W/ HAM,CND,PREP W/ EQ VOLUME H2O',75, '1 cup, (8 fl oz)'],['SOUP,CRM OF POTATO,CND,PREP W/ EQ VOLUME H2O',30, '1 cup, (8 fl oz)'],['CAMPBELLS CHUNKY SOUPS,GRILLED STEAK- STEAK CHILI W/ BNS',81, '1 cup'],['SOUP,CRM OF SHRIMP,CND,PREP W/ EQ VOLUME H2O',36, '1 cup'],['CAMPBELLS CHUNKY SOUPS,SLOW RSTD BF W/ MUSHROOMS SOUP',48, '1 cup'],['CAMPBELLS CHUNKY SOUPS,SPLIT PEA N HAM SOUP',78, '1 cup'],['SOUP,TOMATO BF W/ NOODLE,CND,PREP W/ EQ VOLUME H2O',56, '1 cup'],['CAMPBELLS CHUNKY SOUPS,STEAK N POTATO SOUP',49, '1 cup'],['SOUP,TOMATO RICE,CND,PREP W/ EQ VOLUME H2O',47, '1 cup'],['SOUP,TURKEY NOODLE,CND,PREP W/ EQ VOLUME H2O',28, '1 cup'],['SOUP,TURKEY VEG,CND,PREP W/ EQ VOLUME H2O',30, '1 cup, (8 fl oz)'],['SOUP,VEGETARIAN VEG,CND,PREP W/ EQ VOLUME H2O',28, '1 cup'],['CAMPBELLS LO NA SOUPS,CHICK BROTH',10, '1 serving, 1 container'],['SOUP,VEG BF,CND,PREP W/ EQ VOLUME H2O',31, '1 cup, (8 fl oz)'],['SOUP,VEG W/ BF BROTH,CND,PREP W/ EQ VOLUME H2O',33, '1 cup, (8 fl oz)'],['SOUP,BF BROTH OR BOUILLON,PDR,PREP W/H2O',3, '1 serving, 1 cup'],['SOUP,BF BROTH,CUBED,PREP W/H2O',3, '1 serving, 1 cup'],['SOUP,CHICK BROTH OR BOUILLON,DRY,PREP W/ H2O',4, '1 cup, 8 fl oz'],['SOUP,CHICK BROTH CUBES,DRY,PREP W/ H2O',5, '1 cup, (8 fl oz)'],['CAMPBELLS LO NA SOUPS,CHICK W/ NOODLES SOUP',52, '1 serving, 1 container'],['SOUP,CRM OF CHICK,DRY,MIX,PREP W/ H2O',41, '1 cup, 8 fl oz'],['CAMPBELLS LO NA SOUPS,CRM OF MUSHROOM SOUP',54, '1 serving, 1 container'],['SOUP,CONSOMME W/ GELATIN,DRY,MIX,PREP W/ H2O',7, '1 cup, 8 fl oz'],['SOUP,ONION,DRY,MIX,PREP W/ H2O',12, '1 serving, 1 cup'],['CAMPBELLS RED & WHITE - MCRWVEABLE BOWLS,CHICK NOODLE SOUP',30, '1 cup'],['SOUP,TOMATO,DRY,MIX,PREP W/ H2O',38, '1 cup, 8 fl oz'],['CAMPBELLS RED & WHITE - MICROWAVEABLE BOWLS,CHICK RICE SOUP',30, '1 cup'],['CAMPBELLS RED & WHITE - MCRWVEABLE BOWLS,CREAMY TOMATO SOUP',64, '1 cup'],['CAMPBELLS RED & WHITE - MICROWAVEABLE BOWLS,TOMATO SOUP',44, '1 cup'],['CAMPBELLS RED & WHITE - MICROWAVEABLE BOWLS,VEG BF SOUP',34, '1 cup'],['CAMPBELLS HOMESTYLE BUTTERNUT SQUASH BISQUE',45, ''],['SOUP,CHICK NOODLE,DRY,MIX,PREP W/ H2O',23, '1 cup'],['CAMPBELLS HOMESTLYE LT NEW ENGLAND CLAM CHOWDER',49, '1 cup'],['CAMPBELLS HOMESTYLE HR MEXICAN STYLE CHICK TORTILLA',53, '1 cup'],['CAMPBELLS HOMESTYLE ITALIAN-STYLE WEDDING SOUP',49, '1 cup'],['CAMPBELLS HOMESTYLE MEXICAN STYLE CHICK TORTILLA SOUP',53, '1 cup'],['CAMPBELLS HOMESTYLE MINESTRONE SOUP',41, '1 cup'],['CAMPBELLS HOMESTYLE NEW ENGLAND CLAM CHOWDER',70, '1 cup'],['CAMPBELLS HOMESTYLE POTATO BROCCOLI CHS SOUP',65, '1 cup'],['SOUP,BF MUSHROOM,CND,PREP W/ EQ VOLUME H2O',30, '1 cup, (8 fl oz)'],['CAMPBELLS HOMESTYLE CHICK W/ WHITE & WILD RICE SOUP',41, '1 cup'],['SOUP,CHICK MUSHROOM,CND,PREP W/ EQ VOLUME H2O',54, '1 cup, (8 fl oz)'],['SOUP,TOMATO BISQUE,CND,PREP W/ EQ VOLUME H2O',50, '1 cup, (8 fl oz)'],['SOUP,TOMATO,CND,PREP W/EQ VOLUME H2O,COMM',30, '1 serving, 1 cup'],['CAMPBELLS HOMESTYLE VEG MEDLEY SOUP',37, '1 cup'],['SOUP,RAMEN NOODLE,ANY FLAVOR,DRY',440, '1 package, without flavor packet'],['SOUP,BROCCOLI CHS,CND,COND,COMM',87, '1 serving, 1/2 cup'],['CAMPBELLS SOUP ON THE GO,VEG W/ MINI RND NOODLES SOUP',33, '1 container'],['CAMPBELLS SOUP ON THE GO,CHICK & STARS SOUP',23, '1 container'],['CAMPBELLS SOUP ON THE GO,CHICK W/ MINI NOODLES SOUP',26, '1 container'],['CAMPBELLS SOUP ON THE GO,CLASSIC TOMATO SOUP',46, '1 container'],['CAMPBELLS SOUP ON THE GO,CREAMY BROCCOLI SOUP',52, '1 container'],['CAMPBELLS SOUP ON THE GO,CREAMY CHICK SOUP',43, '1 container'],['CAMPBELLS SOUP ON THE GO,CREAMY TOMATO SOUP',59, '1 container'],['CAMPBELLS SOUP ON THE GO,NEW ENGLAND CLAM CHOWDER',52, '1 container'],['CAMPBELLS SOUP ON THE GO,VEG BF SOUP',20, '1 container'],['CAMPBELLS SOUP ON THE GO,CHEESY POTATO W/ BACON FLAVOR SOUP',43, '1 container'],['PACE,CHIPOTLE CHUNKY SALSA',25, '1 serving'],['PACE,CILANTRO CHUNKY SALSA',25, '1 serving'],['PACE,ENCHILADA SAU',40, '.25 cup'],['PACE,GRN TACO SAU',25, '1 serving'],['PACE,LIME & GARLIC CHUNKY SALSA',38, '1 serving'],['PACE,ORGANIC PICANTE SAU',25, '1 serving'],['PACE,PICANTE SAU',25, '1 serving'],['PACE,RED TACO SAU',50, '1 tbsp'],['PACE,THICK & CHUNKY SALSA',25, '1 serving'],['SWANSON BROTH,CERT ORGANIC VEG BROTH',5, '1 cup'],['SWANSON BROTH,VEG BROTH',5, '1 cup'],['CAMPBELLS HOMESTYLE LT ITALIAN-STYLE WEDDING SOUP',33, '1 cup'],['SAUCE,PNUT,MADE FROM COCNT,H2O,SUGAR,PNUTS',179, '1 tbsp'],['SMART SOUP,SANTA FE CORN CHOWDER',55, '10 oz, 1 pouch'],['SMART SOUP,FRENCH LENTIL',53, '10 oz, 1 pouch'],['SMART SOUP,GREEK MINESTRONE',40, '10 oz, 1 pouch'],['SMART SOUP,INDIAN BEAN MASALA',57, '10 oz, 1 pouch'],['SMART SOUP,MOROCCAN CHICK PEA',51, '10 oz, 1 pouch'],['SMART SOUP,THAI COCNT CURRY',36, '10 oz, 1 pouch'],['SMART SOUP,VIETNAMESE CARROT LEMONGRASS',44, '10 oz, 1 pouch'],['SAUCE,CHS SAU MIX,DRY',438, ''],['SOUP,CHICK CORN CHOWDER,CHUNKY,RTS,SINGLE BRAND',99, '1 serving'],['SOUP,CHICK MUSHROOM CHOWDER,CHUNKY,RTS,SINGLE BRAND',80, '1 serving'],['SOUP,POTATO HAM CHOWDER,CHUNKY,RTS,SINGLE BRAND',80, '1 serving'],['SOUP,SIRLOIN BURGER W/VEG,RTS,SINGLE BRAND',77, '1 serving'],['SOUP,SPLIT PEA W/ HAM,CHUNKY,RED FAT,RED NA,RTS,SINGLE BRAND',76, '1 serving'],['SOUP,BEAN W/BACON,COND,SINGLE BRAND',117, '1 serving, 1/2 cup'],['SOUP,BF W/VEG&BARLEY,CND,COND,SINGLE BRAND',61, '1 serving'],['SOUP,CHICK W/STAR-SHAPED PASTA,CND,COND,SINGLE BRAND',50, '1 serving'],['SOUP,CRM OF CHICK,CND,COND,SINGLE BRAND',99, '1 serving'],['SOUP,SPLIT PEA W/HAM&BACON,CND,COND,SINGLE BRAND',140, '1 serving'],['SOUP,VEG BF,CND,COND,SINGLE BRAND',53, '1 serving'],['SOUP,CHICK VEG,CHUNKY,RED FAT,RED NA,RTS,SINGLE BRAND',40, '1 serving'],['SOUP,VEG BF,MICROWAVABLE,RTS,SINGLE BRAND',44, '1 serving'],['SOUP,BF & VEG,CND,RTS',48, '1 cup'],['SAUCE,CHS,RTS',174, '.25 cup'],['SAUCE,PASTA,SPAGHETTI/MARINARA,RTS',50, '1 serving, 1/2 cup'],['PREGO PASTA,TRADITIONAL ITALIAN SAU,RTS',54, '1 serving, 1/2 cup'],['SOUP,CRM OF CHICK,CND,COND,RED NA',58, '.5 cup'],['SOUP,TOMATO,CND,COND,RED NA',65, '1 serving, 1/2 cup'],['GRAVY,BROWN INST,DRY',380, '1 serving'],['GRAVY,INST BF,DRY',369, '1 serving'],['GRAVY,INST TURKEY,DRY',409, '1 serving'],['SAUCE,ALFREDO MIX,DRY',535, ''],['SAUCE,PEPPERS,HOT,CHILI,MATURE RED,CND',21, '1 tbsp'],['SAUCE,CHILI,PEPPERS,HOT,IMMAT GRN,CND',20, '1 tbsp'],['FISH BROTH',16, '1 cup'],['SOUP,TOMATO,LO NA,W/H2O',30, '1 serving, 1 cup'],['SOUP,PEA,LO NA,PREP W/ EQ VOLUME H2O',62, '1 cup'],['SOUP,CHICK NOODLE,LO NA,CND,PREP W/ EQ VOLUME H2O',25, '1 serving, 1 cup'],['SOUP,VEG SOUP,COND,LO NA,PREP W/ EQ VOLUME H2O',33, '1 cup'],['SOUP,CRM OF MUSHROOM,LO NA,RTS,CND',53, '1 cup'],['POTATO SOUP,INST,DRY MIX',343, '1 serving, 1/3 cup'],['SOUP,CHICK BROTH,LO NA,CND',16, '1 cup'],['SAUCE,WORCESTERSHIRE',78, '1 tbsp'],['SAUCE,TOMATO CHILI SAU,BTLD,W/SALT',104, '1 packet'],['SOUP,VEG CHICK,CND,PREP W/ H2O,LO NA',69, '1 cup'],['SAUCE,PASTA,SPAGHETTI/MARINARA,RTS,LO NA',51, '1 serving, 1/2 cup'],['GRAVY,MEAT OR POULTRY,LO NA,PREP',53, '1 cup'],['SOUP,BF & MUSHROOM,LO NA,CHUNK STYLE',69, '1 cup'],['SOUP,BF STROGANOFF,CND,CHUNKY STYLE,RTS',98, '1 cup'],['SOUP,BOUILLON CUBES&GRANULES,LO NA,DRY',438, '1 tsp'],['SOUP,RAMEN NOODLE,BF FLAVOR,DRY',441, '1 package, without flavor packet'],['SOUP,RAMEN NOODLE,CHICK FLAVOR,DRY',439, '1 package, without flavor packet'],['SOUP,SWANSON CHICK BROTH 99% FAT FREE',4, '1 serving, 1 cup 8 oz'],['GRAVY,HEINZ HOME STYLE SAVORY BF GRAVY',39, '1 serving, 1/4 cup 2 oz'],['CAMPBELLS HEALTHY REQUEST,CHICK NOODLE SOUP,COND',47, '.5 cup, condensed'],['HEALTHY REQUEST,CRM OF CELERY,COND',56, '1 serving, 1/2 cup'],['CAMPBELLS HEALTHY REQUEST,CRM OF MUSHROOM SOUP,COND',55, '.5 cup, condensed'],['CAMPBELLS HEALTHY REQUEST,HOMESTYLE CHICK NOODLE SOUP,COND',51, '.5 cup, condensed'],['HEALTHY REQUEST,MINESTRONE SOUP,COND',63, '1 serving, 1/2 cup'],['HEALTHY REQUEST,TOMATO SOUP,COND',73, '1 serving, 1/2 cup'],['HEALTHY REQUEST,VEG SOUP,COND',79, '1 serving, 1/2 cup'],['PREGO PASTA,CHUNKY GARDEN COMB ITALIAN SAU,RTS',54, '1 serving, 1/2 cup'],['PREGO PASTA,CHNKY GRDN TMTO,ON & GRLIC ITAL SAU,RTS',72, '1 serving, 1/2 cup'],['CAMPBELLS AU JUS GRAVY',8, '.25 cup'],['CAMPBELLS BF GRAVY',42, '.25 cup'],['CAMPBELLS BROWN GRAVY W/ ONIONS',42, '.25 cup'],['CAMPBELLS CHICK GRAVY',68, '.25 cup'],['BARBECUE LOAF,PORK,BEEF',173, '1 oz'],['BEERWURST,BEER SALAMI,PORK & BF',277, '2 oz'],['BEERWURST,BEER SALAMI,PORK',238, '1 slice, (4 dia x 1/8 thick)'],['SAUSAGE BERLINER PORK BF',230, '1 slice'],['BLOOD SAUSAGE',379, '4 slices'],['BOCKWURST PORK VEAL RAW',301, '1 sausage'],['BOLOGNA,BF',299, '1 slice'],['BOLOGNA,BF & PORK',308, '3.527 oz'],['BOLOGNA,PORK',247, '1 slice, medium (4-1/2 dia x 1/8 thick) (1 oz)'],['BOLOGNA TURKEY',209, '.99 oz, 1 serving'],['BRATWURST,PORK,CKD',333, '1 link, cooked'],['BRAUNSCHWEIGER (A LIVER SAUSAGE),PORK',327, '1 oz'],['BROTWURST,PORK,BF,LINK',323, '1 link'],['CHEESEFURTER,CHS SMOKIE,PORK,BF',328, '2.33 links'],['CHICKEN ROLL LT MEAT',110, '2 slices, (1 serving)'],['CHICKEN SPRD',158, '1 serving, (1 serving)'],['CHORIZO,PORK AND BEEF',455, '1 oz'],['CORNED BEEF LOAF,JELLIED',153, '1 slice, (1 oz) (4 x 4 x 3/32 thick)'],['DUTCH BRAND LOAF,CHICK,PORK & BF',273, '1 slice'],['FRANKFURTER,BF,UNHTD',316, '1 frankfurter'],['FRANKFURTER BF & PORK',305, '1 frankfurter'],['FRANKFURTER,CHICK',223, '1 link'],['FRANKFURTER,TURKEY',223, '1 oz'],['HAM,CHOPPED,CANNED',239, '1 oz'],['HAM,CHOPPED,NOT CANNED',180, '1 slice, (1 oz) (4 x 4 x 3/32 thick)'],['HAM,SLICED,PACKAGED (96% FAT FREE,H2O ADDED)',100, '1 slice'],['HAM,SLICED,REG (APPROX 11% FAT)',163, '56 grams, 1 serving'],['HAM,MINCED',263, '1 oz'],['HAM SALAD SPREAD',216, '1 tbsp'],['HAM&CHS LOAF OR ROLL',241, '1 slice, (1 oz) (4 x 4 x 3/32 thick)'],['HAM AND CHEESE SPREAD',245, '1 tbsp'],['HEADCHEESE,PORK',157, '1 slice, (1 oz) (4 x 4 x 3/32 thick)'],['SAUSAGE,ITALIAN,PORK,RAW',346, '1 link, 4/lb'],['KIELBASA,KOLBASSY,PORK,BF,NONFAT DRY MILK',309, '1 link'],['KNACKWURST KNOCKWURST PORK BF',307, '1 link'],['LEBANON BOLOGNA BF',172, '1 serving, 2 slices'],['LIVER CHEESE,PORK',304, '1 oz'],['LIVER SAUSAGE,LIVERWURST,PORK',326, '1 slice, (2-1/2 dia x 1/4 thick)'],['LUNCHEON MEAT,BEEF,LOAVED',308, '1 slice, (1 oz) (4 x 4 x 3/32 thick)'],['ROAST BF,DELI STYLE,PREPACKAGED,SLICED',115, '1 slice, oval'],['USDA CMDTY,LUNCHEON MEAT,CND',189, '1 serving'],['LUNCHEON MEAT,PORK,CANNED',334, '1 oz'],['TURKEY BREAST,LO SALT,PREPACKAGED OR DELI,LUNCHEON MEAT',116, '1 slice'],['MORTADELLA,BEEF,PORK',311, '1 oz'],['OLIVE LOAF,PORK',235, '1 slice, (1 oz) (4 x 4 x 3/32 thick)'],['PASTRAMI,TURKEY',139, '2 slices'],['PATE,CHICKEN LIVER,CANNED',201, '1 tbsp'],['PATE,GOOSE LIVER,SMOKED,CND',462, '1 tbsp'],['PATE,LIVER,NOT SPECIFIED,CND',319, '1 tbsp'],['PEPPERED LOAF PORK BF',149, '3.52 slices'],['PEPPERONI,PORK,BEEF',494, '1 slice, round'],['PICKLE&PIMIENTO LOAF,PORK',225, '1 slice'],['POLISH SAUSAGE,PORK',326, '3 oz'],['LUXURY LOAF,PORK',141, '1 slice, (1 oz) (4 x 4 x 3/32 thick)'],['MOTHERS LOAF,PORK',282, '1 oz'],['PICNIC LOAF,PORK,BEEF',232, '1 slice, (1 oz) (4 x 4 x 3/32 thick)'],['PORK SAUSAGE,LINK/PATTY,UNPREP',287, '1 link'],['PORK SAUSAGE,LINK/PATTY,CKD,PAN-FRIED',325, '1 patty'],['PORK&BF SAUSAGE,FRSH,CKD',396, '1 link, (raw dimensions: 4 long x 7/8 dia), cooked'],['TURKEY SAUSAGE,RED FAT,BROWN&SERVE,CKD',204, '1 cup'],['POULTRY SALAD SNDWCH SPRD',200, '1 tbsp'],['SALAMI CKD BF',261, '1 slice'],['SALAMI,CKD,BF&PORK',336, '1 slice, round'],['SALAMI,COOKED,TURKEY',172, '1 serving'],['SALAMI,DRY OR HARD,PORK',407, '1 package, (4 oz)'],['SALAMI,DRY OR HARD,PORK,BF',378, '1 slice'],['SANDWICH SPREAD,PORK,BEEF',235, '1 tbsp'],['SMOKED LINK SAUSAGE,PORK',309, '1 link, (4 long x 1-1/8 dia)'],['SAUSAGE,SMOKED LINK SAUSAGE,PORK & BF',320, '3 oz'],['SMOKED LINK SAUSAGE,PORK&BF,FLR&NONFAT DRY MILK',268, '1 link, (4 long x 1-1/8 dia)'],['SMOKED LINK SAUSAGE,PORK&BF,NONFAT DRY MILK',313, '1 link, (4 long x 1-1/8 dia)'],['THURINGER,CERVELAT,SMMR SAUSAGE,BF,PORK',362, '2 oz, 1 serving'],['TURKEY BREAST,SLICED,OVEN RSTD,LUNCHEON MEAT',104, '1 serving'],['TURKEY HAM,CURED TURKEY THIGH MEAT',126, '.99 oz, 1 serving'],['TURKEY BREAST,SLICED,PREPACKAGED',100, '1 slice'],['TURKEY ROLL,LT&DK MEAT',149, '1 oz'],['SAUSAGE,VIENNA,CND,CHICK,BF,PORK',230, '1 sausage, (7/8 dia x 2 long)'],['HONEY ROLL SAUSAGE,BEEF',182, '1 slice, (4 dia x 1/8 thick)'],['SAUSAGE,ITALIAN,PORK,CKD',344, '1 link, 4/lb'],['LUNCHEON SAUSAGE,PORK&BF',260, '1 slice, (4 dia x 1/8 thick)'],['NEW ENGLAND BRAND SAUSAGE,PORK,BF',161, '1 slice, (4 dia x 1/8 thick)'],['OSCAR MAYER,BOLOGNA (CHICK,PORK,BF)',318, '1 serving'],['OSCAR MAYER,BOLOGNA (BEEF)',316, '1 serving, (1 slice)'],['OSCAR MAYER,BOLOGNA (BEEF LIGHT)',200, '1 serving, (1 slice)'],['OSCAR MAYER,BOLOGNA (FAT FREE)',79, '1 serving'],['OSCAR MAYER BOLOGNA LIGHT (PORK CHICK BEEF)',202, '1 serving, (1 slice)'],['OSCAR MAYER. BOLOGNA (WISCONSIN MADE RING)',313, '1 serving'],['OSCAR MAYER,BRAUNSCHWEIGER LIVER SAUSAGE (SLICED)',332, '1 serving, (1 slice)'],['OSCAR MAYER,BRAUNSCHWEIGER LIVER SAUSAGE (SAREN TUBE)',341, '1 serving'],['OSCAR MAYER CHICKEN BREAST (HONEY GLAZED)',109, '1 serving, (4 slices)'],['OSCAR MAYER,CHICK BREAST (OVEN RSTD,FAT FREE)',85, '1 serving'],['OSCAR MAYER HAM & CHEESE LOAF',234, '1 serving'],['OSCAR MAYER,HAM (CHOPPED W/ NAT JUICE)',180, '1 serving, (1 slice)'],['OSCAR MAYER HAM (WATER ADDED BKD CKD 96% FAT FREE)',104, '1 serving, (3 slices)'],['OSCAR MAYER,HAM (H2O ,BLD)',104, '1 serving'],['OSCAR MAYER,HAM (H2O ,HONEY)',111, '1 serving'],['OSCAR MAYER,HAM (H2O ,SMOKED,CKD)',99, '1 serving'],['OSCAR MAYER,HAM (40%HAM/WATER PRODUCT,SMOKED,FAT FREE)',72, '1 serving'],['OSCAR MAYER,HEAD CHEESE',185, '1 serving'],['OSCAR MAYER,LUNCHEON LOAF (SPICED)',234, '1 serving'],['OSCAR MAYER,OLD FASHIONED LOAF',231, '1 serving'],['OSCAR MAYER,OLIVE LOAF (CHICK,PORK,TURKEY)',263, '1 serving'],['OSCAR MAYER,PICKLE PIMIENTO LOAF (W/CHICK)',269, '1 serving'],['OSCAR MAYER,PORK SAUSAGE LINKS (CKD)',343, '1 serving, 2 links'],['OSCAR MAYER,SALAMI BF COTTO',206, '1 serving, 2 slices'],['OSCAR MAYER,SALAMI COTTO (BF,PORK,CHICK)',245, '1 serving, 2 slices'],['OSCAR MAYER,SALAMI (FOR BEER)',225, '1 serving, 2 slices'],['OSCAR MAYER,SALAMI (GENOA)',388, '1 serving, 3 slices'],['OSCAR MAYER,SALAMI (HARD)',368, '1 serving, 3 slices'],['OSCAR MAYER,SNDWCH SPRD (PORK,CHICK,BF)',237, '1 serving'],['OSCAR MAYER,SMOKIE LINKS SAUSAGE',302, '1 serving'],['OSCAR MAYER SMOKIES (BEEF)',296, '1 serving, (1 link)'],['OSCAR MAYER,SMOKIES (CHS)',303, '1 serving'],['OSCAR MAYER,SMOKIES SAUSAGE LITTLE (PORK,TURKEY)',301, '1 link'],['OSCAR MAYER,SMOKIES SAUSAGE LITTLE CHS (PORK,TURKEY)',315, '1 link'],['OSCAR MAYER,SMMR SAUSAGE BF THURINGER CERVELAT',309, '1 serving, 2 slices'],['OSCAR MAYER,SMMR SAUSAGE THURINGER CERVALAT',304, '1 serving, 2 slices'],['OSCAR MAYER,TURKEY BREAST (SMOKED,FAT FREE)',80, '1 serving, 4 slices'],['OSCAR MAYER,WIENERS (PORK,TURKEY)',327, '1 serving, (1 link)'],['OSCAR MAYER,WIENERS (BEEF FRANKS)',329, '1 serving'],['OSCAR MAYER WIENERS (BEEF FRANKS BUN LENGTH)',324, '1 serving, (1 link)'],['OSCAR MAYER,WIENERS (BEEF FRANKS,FAT FREE)',78, '1 serving'],['OSCAR MAYER,WIENERS (BEEF FRANKS,LIGHT)',193, '1 serving'],['OSCAR MAYER,WIENERS (CHEESE HOT DOGS W/ TURKEY)',318, '1 serving'],['OSCAR MAYER,WIENERS (FAT FREE HOT DOGS)',73, '1 serving'],['OSCAR MAYER,WIENERS (LIGHT PORK,TURKEY,BEEF)',194, '1 serving'],['OSCAR MAYER,WIENERS LITTLE (PORK,TURKEY)',311, '1 piece'],['LOUIS RICH,CHICK BREAST CLASSIC BKD /GRILL (CARVING BOARD)',98, '1 serving'],['LOUIS RICH,CHICK BREAST (OVEN RSTD DELUXE)',101, '1 serving'],['LOUIS RICH,CHICK (WHITE,OVEN RSTD)',128, '1 serving'],['LOUIS RICH,FRANKS (TURKEY & CHICK CHEESE)',201, '1 serving'],['LOUIS RICH,FRANKS (TURKEY & CHICKEN)',188, '1 serving'],['TURKEY BACON,UNPREP',224, '1 serving'],['LOUIS RICH,TURKEY BOLOGNA',184, '1 serving'],['LOUIS RICH,TURKEY BREAST & WHITE TURKEY (OVEN ROASTED)',99, '1 serving'],['LOUIS RICH,TURKEY BREAST&WHITE TURKEY (SMOKED SLICED)',100, '1 serving'],['LOUIS RICH,TURKEY (HONEY RSTD,FAT FREE)',102, '1 serving'],['LOUIS RICH,TURKEY BREAST (OVEN RSTD,FAT FREE)',84, '1 serving'],['LOUIS RICH,TURKEY BREAST (OVEN RSTD,PORTION FAT FREE)',90, '1 serving'],['LOUIS RICH,TURKEY BREAST (SMOKED,CARVING BOARD)',94, '1 serving'],['LOUIS RICH,TURKEY BREAST (SMOKED,PORTION FAT FREE)',93, '1 serving'],['LOUIS RICH,TURKEY HAM (10% H2O)',113, '1 serving'],['LOUIS RICH,TURKEY NUGGETS/STICKS (BREADED)',276, '1 piece'],['LOUIS RICH,TURKEY SALAMI',147, '1 serving'],['LOUIS RICH,TURKEY SALAMI COTTO',149, '1 serving'],['LOUIS RICH,TURKEY SMOKED SAUSAGE',161, '1 serving'],['BUTCHER BOY MEATS,INC.,TURKEY FRANKS',239, '1 serving'],['CARL BUDDIG,CKD CORNED BF,CHOPD,PRESSED',142, '1 package'],['CARL BUDDIG,SMOKED SLICED CHICK,LT&DK MEAT',165, '1 serving, 2 oz'],['CARL BUDDIG,SMOKED SLICED BF',139, '1 serving, 2 oz'],['CARL BUDDIG,SMOKED SLICED TURKEY,LT&DK MEAT',160, '1 serving, 2 oz'],['CARL BUDDIG. CKD SMOKED BF PASTRAMI,CHOPD,PRESSED',141, '1 serving, 2 oz'],['CARL BUDDIG,SMOKED SLICED HAM',163, '1 serving, 2 oz'],['HORMEL SPAM LUNCHEON MEAT PORK W/ HAM MINCED CND',310, '1 serving, 2 oz'],['HORMEL SPAM,LT LUNCH MT,PORK & CHICK,MINCED,CND,VIT C ADDED',191, '1 serving, 2 oz'],['HORMEL PILLOW PAK SLICED TURKEY PEPPERONI',243, '1 serving'],['HORMEL WRANGLER BEEF FRANKS',290, '1 frankfurter'],['TURKEY,PORK,&BF SAUSAGE,LOFAT,SMOKED',101, '3 oz'],['USDA COMMODITY,PORK,SAUSAGE,BULK/LINKS/PATTIES,FRZ,CKD',267, '1 oz'],['FRANKFURTER,BF,PORK,& TURKEY,FAT FREE',109, '1 frank, 1 NLEA serving'],['LUNCHEON MEAT,PORK,HAM,&CHICK,MINCD,CND,RED NA,VIT C, (SPAM)',293, '2 oz, 1 NLEA serving'],['USDA COMMODITY,PORK SAUSAGE,BULK/LINKS/PATTIES,FRZ,RAW',231, '1 link'],['LUNCHEON MEAT,PORK W/HAM,MINCED,CND,INCL SPAM (HORMEL)',315, '2 oz, 1 NLEA serving'],['LUNCHEON MEAT,PORK&CHICK,MINCED,CND,INCL SPAM LITE',196, '2 oz, (1 serving)'],['BRATWURST VEAL CKD',341, '1 serving, 2.96 oz'],['LIVERWURST SPRD',305, '.25 cup'],['ROAST BF SPRD',223, '1 serving, .25 cup'],['SALAMI PORK BF LESS NA',396, '3.527 oz'],['SAUSAGE ITALIAN SWT LINKS',149, '1 link, 3 oz'],['SAUSAGE POLISH BF W/ CHICK HOT',259, '1 serving, 5 pieces'],['SAUSAGE POLISH PORK & BF SMOKED',301, '1 serving, 2.67 oz'],['SAUSAGE PORK & BF W/ CHEDDAR CHS SMOKED',296, '12 oz, serving 2.7 oz'],['SAUSAGE SMMR PORK & BF STKS W/ CHEDDAR CHS',426, '1 oz'],['SAUSAGE TURKEY BRKFST LINKS MILD',235, '2 oz, 2 links'],['SWISSWURST PORK & BF W/ SWISS CHS SMOKED',307, '1 serving, 2.7 oz'],['BACON & BF STKS',517, '1 oz'],['BRATWURST BF & PORK SMOKED',297, '1 serving, 2.33 oz'],['BRATWURST,CHICK,CKD',176, '1 serving, 2.96 oz'],['BRATWURST PORK BF & TURKEY LITE SMOKED',186, '1 serving, 2.33 oz'],['PASTRAMI BF 98% FAT-FREE',95, '1 serving, 6 slices'],['SALAMI ITALIAN PORK',425, '1 oz'],['SAUSAGE ITALIAN TURKEY SMOKED',158, '1 serving, 2 oz'],['SAUSAGE CHICK BF PORK SKINLESS SMOKED',216, '1 link'],['SAUSAGE TURKEY HOT SMOKED',158, '2 oz'],['YACHTWURST,W/ PISTACHIO NUTS,CKD',268, '1 serving, 2 oz'],['BEERWURST PORK & BF',276, '1 serving, 2 oz'],['CHICKEN BREAST FAT-FREE MESQ FLAVOR SLICED',80, '1 serving, 2 slices'],['CHICKEN BREAST OVEN-ROASTED FAT-FREE SLICED',79, '1 serving, 2 slices'],['KIELBASA,POLISH,TURKEY & BF,SMOKED',226, '1 serving, 2 oz'],['OVEN-ROASTED CHICK BREAST ROLL',134, '1 serving, 2 oz'],['BOLOGNA PORK & TURKEY LITE',211, '1 serving, 2 oz'],['BOLOGNA PORK TURKEY & BF',336, '1 oz'],['HAM HONEY SMOKED CKD',122, '1.94 oz, (1 serving)'],['FRANKFURTER,PORK',269, '1 link'],['MACARONI & CHS LOAF CHICK PORK & BF',228, '1 slice'],['SALAMI ITALIAN PORK & BF DRY SLICED 50% LESS NA',350, '1 serving, 5 slices'],['PATE TRUFFLE FLAVOR',327, '1 serving, 2 oz'],['TURKEY,BREAST,SMOKED,LEMON PEPPER FLAVOR,97% FAT-FREE',95, '1 slice'],['TURKEY WHITE ROTISSERIE DELI CUT',112, '1.69 oz, (1 serving)'],['FRANKFURTER BF HTD',322, '1 frankfurter'],['FRANKFURTER MEAT HTD',278, '1 serving, (1 hot dog)'],['FRANKFURTER MEAT',290, '1 serving, (1 hot dog)'],['SCRAPPLE,PORK',213, '1 cubic inch'],['BOLOGNA,CHICK,TURKEY,PORK',298, '1 serving'],['PORK SAUSAGE,LINK/PATTY,FULLY CKD,MICROWAVED',437, '1 patty'],['BEEF SAUSAGE,PRE-COOKED',405, '1 serving'],['TURKEY SAUSAGE,FRSH,RAW',155, '1 serving'],['BEEF SAUSAGE,FRSH,CKD',332, '1 serving'],['PORK & TURKEY SAUSAGE,PRE-COOKED',342, '1 serving'],['TURKEY SAUSAGE,FRSH,CKD',196, '1 serving'],['BOLOGNA,CHICK,PORK,BF',272, '1 serving'],['BOLOGNA,CHICK,PORK',336, '1 serving'],['CHICKEN BREAST,DELI,ROTISSERIE SEASONED,SLICED,PREPACKAGED',98, '1 slice'],['Frankfurter, meat and poultry, unheated',277, '1 frankfurter, 1'],['Frankfurter, meat and poultry, cooked, boiled',298, '1 frankfurter, 1'],['Frankfurter, meat and poultry, cooked, grilled',302, '1 frankfurter, 1'],['PORK SAUSAGE,LINK/PATTY,RED FAT,UNPREP',217, '3 oz'],['PORK SAUSAGE,LINK/PATTY,RED FAT,CKD,PAN-FRIED',267, '1 oz'],['PORK SAUSAGE,LINK/PATTY,FULLY CKD,UNHTD',392, '1 link'],['KIELBASA,FULLY CKD,GRILLED',337, '3 oz'],['KIELBASA,FULLY CKD,PAN-FRIED',333, '1 link'],['KIELBASA,FULLY CKD,UNHTD',325, '3 oz'],['BOLOGNA,MEAT & POULTRY',281, '1 slice'],['MEATBALLS,FRZ,ITALIAN STYLE',286, '3 oz'],['TURKEY BACON,MICROWAVED',368, '1 slice'],['CEREALS RTE,KELLOGG,KELLOGGS ALL-BRAN ORIGINAL',260, '.5 cup, (1 NLEA serving)'],['CEREALS RTE,POST,ALPHA-BITS',389, '1 cup, (1 NLEA serving for adults)'],['CEREALS RTE,KELLOGG,KELLOGGS APPL JACKS',375, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS ALL-BRAN BRAN BUDS',257, '.333 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,CAPN CRUNCH',398, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,CAPN CRUNCH W/ CRUNCHBERRIES',397, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,CAPN CRUNCHS PNUT BUTTER CRUNCH',417, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,CHEERIOS',376, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS COCOA KRISPIES',389, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,POST,COCOA PEBBLES',397, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,COOKIE CRISP',380, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,QUAKER CRUNCHY BRAN',331, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS CORN CHEX',370, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS CORN FLAKES',357, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS CRACKLIN OAT BRAN',395, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,RALSTON CRISP RICE',394, '1.25 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS ALL-BRAN COMPLETE WHEAT FLAKES',327, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,POST BRAN FLAKES',328, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS FROOT LOOPS',375, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS FRSTD MINI-WHEATS,BIG BITE',350, '7 biscuit, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS FRSTD RICE KRISPIES',384, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,POST,FRUITY PEBBLES',402, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,GOLDEN GRAHAMS',374, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GRANOLA,HOMEMADE',489, '1 cup'],['CEREALS RTE,POST,GRAPE-NUTS CRL',365, '.5 cup, (1 NLEA serving)'],['CEREALS RTE,POST,GRAPE-NUTS FLAKES',376, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,HONEY NUT CHEERIOS',376, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,POST,HONEYCOMB CRL',396, '1.5 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,KING VITAMAN',381, '1.5 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,KIX',357, '1.25 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,QUAKER OAT LIFE,PLN',374, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,LUCKY CHARMS',380, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,100% NAT GRANOLA,OATS,WHEAT & HONEY',421, '.5 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,HONEY NUT CHEX',375, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS PRODUCT 19',374, '1 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,SWT CRUNCH/QUISP',406, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS RAISIN BRAN',318, '1 cup, ( 1 NLEA serving)'],['CEREALS RTE,POST RAISIN BRAN CRL',324, '1 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,RICE CHEX',375, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS RICE KRISPIES',381, '1.25 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,QUAKER PUFFED RICE',383, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS SPL K',378, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS CORN POPS',387, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS FRSTD FLAKES',369, '.75 cup, ( 1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS HONEY SMACKS',380, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,POST,GOLDEN CRISP',380, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,RALSTON TASTEEOS',357, '1 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,WHL GRAIN TOTAL',320, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,TRIX',383, '1 cup, (1 NLEA serving)'],['CEREALS RTE,POST,HONEY NUT SHREDDED WHEAT',373, '1 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,WHEAT CHEX',345, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,MALT-O-MEAL,CORN BURSTS',384, '1 cup, (1 NLEA serving)'],['CEREALS RTE,WHEAT GERM,TSTD,PLN',382, '1 oz'],['CEREALS RTE,SUN COUNTRY,KRETSCHMER HONEY CRUNCH WHEAT GERM',372, '2 tbsp, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,MULTI-GRAIN CHEERIOS',370, '1 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,WHEATIES',353, '.75 cup, (1 NLEA serving)'],['CEREALS,CORN GRITS,WHITE,REG & QUICK,ENR,DRY',370, '1 tbsp'],['CEREALS,CORN GRITS,WHITE,REG & QUICK,ENR,CKD W/ H2O,WO/ SALT',71, '1 cup'],['CEREALS,QUAKER,CORN GRITS,INST,PLN,DRY',343, '1 packet'],['CEREALS,QUAKER,CORN GRITS,INST,PLN,PREP,WO/ SALT',74, '1 cup'],['CEREALS,QUAKER,CORN GRITS,INST,CHEDDAR CHS FLAVOR,DRY',363, '1 packet, (1 NLEA serving)'],['CEREALS,QUAKER,INST GRITS,COUNTRY BACON FLAVOR,DRY',340, '1 packet, (1 NLEA serving)'],['CEREALS,CRM OF RICE,DRY',370, '.25 cup, (1 NLEA serving)'],['CEREALS,CRM OF RICE,CKD W/H2O,WO/SALT',52, '1 cup'],['CEREALS,CRM OF WHEAT,REG,10 MINUTE COOKING,DRY',370, '1 tbsp'],['CEREALS,CRM OF WHEAT,REG (10 MINUTE),CKD W/ H2O,WO/ SALT',50, '1 cup, (1 serving)'],['CEREALS,FARINA,ENR,ASSORTED BRANDS,DRY',360, '1 tbsp'],['CEREALS,FARINA,ENR,ASSORTED BRANDS,QUICK,CKD W/ H2O,WO/ SALT',55, '1 cup'],['CEREALS,CREAM OF WHEAT,INST,DRY',366, '1 tbsp'],['CEREALS,CREAM OF WHEAT,INST,PREP W/ H2O,WO/ SALT',62, '1 cup'],['CEREALS,FARINA,ENR,CKD W/ H2O,WO/ SALT',53, '1 cup'],['CEREALS,MALT-O-MEAL,ORIGINAL,PLN,DRY',365, '3 tbsp, (1 NLEA serving)'],['CEREALS,OATS,REG & QUICK,NOT FORT,DRY',379, '1 cup'],['CEREALS,OATS,REG & QUICK,UNENR,CKD W/ H2O,WO/ SALT',71, '1 cup'],['CEREALS,OATS,INST,FORT,PLN,DRY',362, '1 packet'],['CEREALS,OATS,INST,FORT,PLN,PREP W/ H2O',68, '1 cup, cooked'],['CEREALS,QUAKER,INST OATMEAL,APPLS & CINN,DRY',366, '1 packet, (1 NLEA serving)'],['CEREALS,OATS,INST,FORT,W/ CINN & SPICE,DRY',369, '1 packet'],['CEREALS,OATS,INST,FORT,W/ CINN & SPICE,PREP W/ H2O',96, '1 cup'],['CEREALS,QUAKER,INST OATMEAL,MAPLE & BROWN SUGAR,DRY',368, '1 packet'],['CEREALS,OATS,INST,FORT,W/ RAISINS & SPICE,DRY',360, '1 packet'],['CEREALS,OATS,INST,FORT,W/ RAISINS & SPICE,PREP W/ H2O',88, '1 cup'],['CEREALS RTE,MALT-O-MEAL,MARSHMLLW MATEYS',394, '1 cup'],['CEREALS,WHEATENA,DRY',357, '.33 cup, (1 NLEA serving)'],['CEREALS,WHEATENA,CKD W/ H2O',56, '1 cup'],['CEREALS,WHL WHEAT HOT NAT CRL,DRY',342, '1 cup'],['CEREALS,WHL WHEAT HOT NAT CRL,CKD W/ H2O,WO/ SALT',62, '1 cup'],['CEREALS RTE,QUAKER,QUAKER PUFFED WHEAT',366, '1 cup, (1 NLEA serving)'],['CEREALS RTE,POST,SHREDDED WHEAT,ORIGINAL BIG BISCUIT',337, '2 biscuits, (1 NLEA serving)'],['CEREALS RTE,POST,SHREDDED WHEAT,ORIGINAL SPOON-SIZE',351, '1 cup, (1 NLEA serving)'],['CEREALS RTE,RICE,PUFFED,FORT',402, '1 cup'],['CEREALS RTE,WHEAT,PUFFED,FORT',364, '1 cup'],['CEREALS,CORN GRITS,YEL,REG & QUICK,ENR,DRY',368, '1 cup'],['CEREALS,CORN GRITS,YEL,REG & QUICK,UNENR,DRY',371, '1 tbsp'],['CEREALS,CORN GRITS,WHITE,REG & QUICK,ENR,CKD W/ H2O,W/ SALT',71, '1 cup'],['CEREALS,CORN GRITS,YEL,REG & QUICK,ENR,CKD W/ H2O,WO/ SALT',65, '1 cup'],['CEREALS,CORN GRITS,YEL,REG,QUICK,ENR,CKD W/ H2O,W/ SALT',65, '1 cup'],['CEREALS,CREAM OF RICE,CKD W/ H2O,W/ SALT',52, '1 cup'],['CEREALS,CRM OF WHEAT,REG (10 MINUTE),CKD W/ H2O,W/ SALT',50, '1 cup, (1 serving)'],['CEREALS,FARINA,UNENR,DRY',369, '1 tbsp'],['CEREALS,FARINA,ENR,CKD W/ H2O,W/ SALT',53, '1 cup'],['CEREALS,MALT-O-MEAL,CHOC,DRY',363, '3 tbsp, (1 NLEA serving)'],['CEREALS,OATS,REG & QUICK & INST,UNENR,CKD W/ H2O,W/ SALT',71, '1 cup'],['CEREALS,WHEATENA,CKD W/ H2O,W/ SALT',59, '1 cup'],['CEREALS,WHL WHEAT HOT NAT CRL,CKD W/ H2O,W/ SALT',62, '1 cup'],['CEREALS RTE,KELLOGG,KELLOGGS LOFAT GRANOLA WO/ RAISINS',389, '.5 cup, (1 NLEA serving)'],['CEREALS RTE,POST,SHREDDED WHEAT,LIGHTLY FRSTD,SPOON-SIZE',352, '1 cup, (1 NLEA serving)'],['CEREALS RTE,POST SELECTS BLUEBERRY MORNING',395, '1.25 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,REESES PUFFS',413, '.75 cup, (1 NLEA serving)'],['CEREALS,QUAKER,QUAKER MULTIGRAIN OATMEAL,DRY',334, '.5 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,OATMEAL CRISP,CRUNCHY ALMOND',390, '1 cup, (1 NLEA serving)'],['CEREALS RTE,CHOCOLATE-FLAVORED FRSTD PUFFED CORN',405, '1 cup'],['CEREALS RTE,MALT-O-MEAL,COCO-ROOS',397, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,QUAKER OAT CINN LIFE',374, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,HONEY GRAHAM OH!S',412, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,OATMEAL SQUARES',379, '1 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,OATMEAL SQUARES,CINN',379, '1 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,TSTD MULTIGRAIN CRISPS',372, '1.25 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,QUAKER GRANOLA W/ OATS,WHEAT& RAISINS',412, '.5 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,LOFAT 100% NAT GRANOLA W/ RAISINS',388, '.666 cup, (1 NLEA serving)'],['CEREALS,QUAKER,INST GRITS,BUTTER FLAVOR,DRY',369, '1 packet, (1 NLEA serving)'],['CEREALS,QUAKER,INST OATMEAL,FRUIT & CRM VAR,DRY',379, '1 packet'],['CEREALS,QUAKER,INST OATMEAL,RAISINS,DATES & WALNUTS,DRY',371, '1 packet'],['CEREALS,QUAKER,OAT BRAN,QUAKER/MOTHERS OAT BRAN,DRY',364, '.5 cup, (1 NLEA serving)'],['CEREALS,QKR,OAT BRAN,PREP W/H2O,NO SALT',43, ''],['CEREALS RTE,GENERAL MILLS,BERRY BURST CHEERIOS,TRIPLE BERRY',378, '.75 cup, (1 NLEA serving)'],['CEREALS,OAT BRAN,QKR,QKR/MOTHERS OAT BRAN,PREP W/H2O,SALT',43, ''],['CEREALS RTE,GENERAL MILLS,HONEY NUT CLUSTERS',374, '1 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,FIBER ONE BRAN CRL',200, '.5 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,OATMEAL CRISP,HEARTY RAISIN',372, '1 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,TOTAL RAISIN BRAN',312, '1 cup, (1 NLEA serving)'],['CEREALS,QUAKER,QUAKER MULTIGRAIN OATMEAL,PREP W/H2O,NO SALT',61, ''],['CEREALS,QUAKER,QUAKER MULTIGRAIN OATMEAL,PREP W/H2O,SALT',61, ''],['CEREALS RTE,KELLOGG,KELLOGGS CRISPIX',369, '1 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,RAISIN NUT BRAN',368, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,BASIC 4',358, '1 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,APPL CINN CHEERIOS',387, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,FRSTD CHEERIOS',378, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,FRANKENBERRY',386, '1 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,COUNT CHOCULA',383, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,COCOA PUFFS',383, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,CINN TOAST CRUNCH',411, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,BOO BERRY',386, '1 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,BERRY BERRY KIX',376, '1.25 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,NATURE VALLEY LOFAT FRUIT GRANOLA',381, '.667 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS LOFAT GRANOLA W/ RAISINS',381, '.667 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS MUESLIX',355, '.67 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS RICE KRISPIES TREATS CRL',395, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,HEALTH VALLEY,FIBER 7 FLAKES',353, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,POST,WAFFLE CRISP',390, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS HONEY CRUNCH CORN FLAKES',385, '.75 cup, (1 NLEA serving)'],['CEREALS,QUAKER,HOMINY GRITS,WHITE,QUICK,DRY',348, '.25 cup'],['CEREALS,QUAKER,HOMINY GRITS,WHITE,REG,DRY',361, '.25 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS SMART START ANTIOXIDANTS CRL',371, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS FRSTD MINI-WHEATS,BITE SIZE',350, '21 biscuits, (1 NLEA serving)'],['CEREALS RTE,MALT-O-MEAL,COLOSSAL CRUNCH',376, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,MALT-O-MEAL,BERRY COLOSSAL CRUNCH',406, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,MALT-O-MEAL,CRISPY RICE',381, '1.25 cup, (1 NLEA serving)'],['CEREALS RTE,MALT-O-MEAL,TOOTIE FRUITIES',401, '1 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,MOTHERS PNUT BUTTER BUMPERS CRL',407, '1 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,MOTHERS TSTD OAT BRAN CRL',372, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,MOTHERS CINN OAT CRUNCH',382, '1 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,MOTHERS GRAHAM BUMPERS',379, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,MOTHERS COCOA BUMPERS',382, '1 cup, (1 NLEA serving)'],['CEREALS RTE,SUN COUNTRY,KRETSCHMER TSTD WHEAT BRAN',200, '.25 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,SHREDDED WHEAT,BAGGED CRL',348, '3 biscuits, (1 NLEA serving)'],['CEREALS RTE,SUN COUNTRY,KRETSCHMER WHEAT GERM,REG',366, '2 tbsp, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,RICE CRUNCHINS',381, '1 bowl, (3/4 cup) (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS MARSHMLLW FROOT LOOPS',376, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS,RAISIN BRAN CRUNCH',355, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS SPL K RED BERRIES',357, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS MINI-WHEATS,UNFROSTED BITE SZE',342, '30 biscuits, (1 NLEA serving)'],['CEREALS RTE,KASHI GOLEAN CRUNCH!',367, '.75 Cup, (1 NLEA serving)'],['CEREALS RTE,KASHI HEART TO HEART,HONEY TSTD OAT',364, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KASHI 7 WHL GRAIN PUFFS',336, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KASHI 7 WHL GRAIN HONEY PUFFS',349, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KASHI GOOD FRIENDS',299, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KASHI GOLEAN',311, '1 cup, (1 NLEA serving)'],['CEREALS,QUAKER,QUICK OATS,DRY',371, '.5 cup'],['CEREALS RTE,MALT-O-MEAL,FRSTD FLAKES',387, '.75 cup, (1 NLEA serving)'],['CEREALS,QUAKER,INST OATMEAL,CINNAMON-SPICE,DRY',369, '1 packet, (1 NLEA serving)'],['CEREALS,QUAKER,INST OATMEAL,DINOSAUR EGGS,BROWN SUGAR,DRY',384, '1 packet, (1 NLEA serving)'],['CEREALS,QUAKER,INST OATMEAL,BANANA BREAD,DRY',368, '1 packet, (1 NLEA serving)'],['CEREALS RTE,UNCLE SAM CRL',346, '.75 cup, (1 NLEA serving)'],['CEREALS,QUAKER,INST OATMEAL,RAISIN & SPICE,DRY',360, '1 packet, (1 NLEA serving)'],['CEREALS,QUAKER,INST GRITS,REDEYE GRVY COUNTRY HAM FLAVOR,DRY',342, '1 packet, (1 NLEA serving)'],['CEREALS,QUAKER,INST GRITS PRODUCT W/ AMERICAN CHS FLAVOR,DRY',360, '1 packet, (1 NLEA serving)'],['CEREALS,QUAKER,INST GRITS,HAM N CHS FLAVOR,DRY',355, '1 packet, (1 NLEA serving)'],['CEREALS,QUAKER,QUICK OATS W/ IRON,DRY',371, '.5 cup'],['CEREALS,QUAKER,WHL WHEAT NAT CRL,DRY',333, '.5 cup'],['CEREALS RTE,KELLOGG,KELLOGGS SPL K CHOCOLATEY STRAWBERRY',368, '.75 Cup, (1 NLEA serving)'],['CEREALS RTE,KELLGS,FRSTD MINI-WHTS,MPLE & BRWN SGR,BTE SZE',351, '25 biscuits, (1 NLEA serving)'],['CEREALS RTE,KASHI,ORGANIC PROMISE AUTUMN WHEAT',338, '29 biscuits, (1 NLEA serving)'],['CEREALS RTE,KASHI ORGANIC PROMISE,STRAWBERRY FIELDS',358, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS,RED SUGAR FRSTD FLAKES CRL',357, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS,SPL K PROT PLUS',359, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,MALT-O-MEAL,HONEY BUZZERS',395, '1.333 cup'],['CEREALS RTE,MALT-O-MEAL,GOLDEN PUFFS',397, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,MALT-O-MEAL,HONEY GRAHAM SQUARES',398, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,MALT-O-MEAL,RAISIN BRAN CRL',320, '1 cup, (1 NLEA serving)'],['CEREALS RTE,MALT-O-MEAL,BLUEBERRY MUFFIN TOPS CRL',443, '.75 cup, (1 NLEA serving)'],['CEREALS,MALT-O-MEAL,FARINA HOT WHEAT CRL,DRY',365, '3 tbsp, (1 NLEA serving)'],['CEREALS,MALT-O-MEAL,MAPLE & BROWN SUGAR HOT WHEAT CRL,DRY',368, '.25 cup, (1 NLEA serving)'],['CEREALS RTE,MALT-O-MEAL,HONEY NUT TOASTY OS CRL',390, '1 cup'],['CEREALS RTE,MALT-O-MEAL,APPL ZINGS',393, '1 cup, (1 NLEA serving)'],['CEREALS RTE,MALT-O-MEAL,CINN TOASTERS',431, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,MALT-O-MEAL,COCOA DYNO-BITES',402, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,MALT-O-MEAL,FRSTD MINI SPOONERS',388, '1 cup, (1 NLEA serving)'],['CEREALS RTE,MALT-O-MEAL,FRUITY DYNO-BITES',404, '.75 cup'],['CEREALS RTE,RALSTON ENR WHEAT BRAN FLAKES',310, '1 serving, (NLEA serving size = 0.75 cup)'],['CEREALS RTE,RALSTON CORN BISCUITS',367, '1 cup, (NLEA serving)'],['CEREALS RTE,RALSTON CORN FLAKES',357, '1 cup, (1 NLEA serving)'],['CEREALS RTE,RALSTON CRISPY HEXAGONS',379, '1 cup, (1 NLEA serving)'],['CEREALS RTE,USDA CMDTY CORN & RICE (INCLUDES ALL BRANDS)',378, '1 cup'],['CEREALS RTE,USDA CMDTY RICE CRISPS (INCLUDES ALL BRANDS)',381, '1 cup, (1 NLEA serving)'],['MILK & CRL BAR',413, '1 bar'],['CEREALS,MALT-O-MEAL,ORIGINAL,PLN,PREP W/ H2O,WO/ SALT',48, '1 serving, (3 T dry cereal plus 1 cup water)'],['CEREALS,MALT-O-MEAL,CHOC,PREP W/ H2O,WO/ SALT',47, '1 serving, (3 T dry cereal plus 1 cup water)'],['CEREALS RTE,GENERAL MILLS,CHOC LUCKY CHARMS',381, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,SPL K,FRUIT & YOGURT',367, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KASHI 7 WHL GRAIN FLAKES',337, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KASHI,HEART TO HEART,OAT FLAKES & BLUEBRY CLSTRS',369, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KASHI ORGANIC PROMISE,CINN HARVEST',336, '28 biscuits, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS,FRSTD MINI-WHEATS BITE SIZE STRAWB DEL',352, '25 biscuits, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS,SPL K VANILLA ALMOND',378, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,POST GREAT GRAINS CRANBERRY ALMOND CRUNCH',384, '.75 cup, (1 NLEA serving)'],['RICE & WHEAT CRL BAR',409, '1 bar'],['CEREALS RTE,QUAKER,QUAKER HONEY GRAHAM LIFE CRL',373, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,CHRISTMAS CRUNCH',397, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,CHEERIOS,YOGURT BURST,STRAWBERRY',400, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,POST SELECTS MAPLE PECAN CRUNCH',413, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KASHI GO LN CRUNCH!,HONEY ALMOND FLAX',379, '.67 Cup, (1 NLEA serving)'],['CEREALS,KASHI GO LN HOT CRL,HEARTY HONEY & CINN,DRY',367, '1 packet, (1 NLEA serving)'],['CEREALS,KASHI GO LN HOT CRL,CREAMY TRULY VANILLA,DRY',360, '1 packet, (1 NLEA serving)'],['CEREALS RTE,KASHI 7 WHL GRAIN NUGGETS',356, '.5 cup, (1 NLEA serving)'],['CEREALS,KASHI HEART TO HEART,INST OATMEAL,APPL CINN,DRY',353, '1 packet, (1 NLEA serving)'],['CEREALS,KASHI HEART TO HEART,INST OATMEAL,GLDN BRWN MPLE,DRY',356, '1 packet, (1 NLEA serving)'],['CEREALS,CRM OF WHEAT,2 1/2 MINUTE COOK TIME,DRY',355, '3 tablespoon, (1 NLEA serving)'],['CEREALS,CRM OF WHT,2 1/2 MIN CK,CKD W/H2O,STOVE-TOP,WO/SALT',56, '1 cup'],['CEREALS,CRM OF WHT,2 1/2 MIN COOK TIME,CKD W/H2O,MW,WO/ SALT',52, '1 cup'],['CEREALS,CRM OF WHEAT,1 MINUTE COOK TIME,DRY',359, '3 tablespoon, (1 serving)'],['CEREALS,CRM OF WHEAT,1 MINUTE,CKD W/ H2O,STOVE-TOP,WO/ SALT',56, '1 cup'],['CEREALS,CRM OF WHEAT,1 MINUTE,CKD W/ H2O,MICROWAVED,WO/ SALT',55, '1 cup'],['CEREALS RTE,GENERAL MILLS,25% LESS SUGAR CINN TOAST CRUNCH',386, '1 bowl, (3/4 cup) (1 NLEA serving)'],['INCAPARINA,DRY MIX (CORN & SOY FLOURS),UNPREP',379, '1 tbsp'],['CEREALS RTE,GENERAL MILLS,DORA THE EXPLORER',366, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,FRUITY CHEERIOS',381, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS SPL K CHOCOLATEY DELIGHT',381, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,25% LESS SUGAR TRIX',383, '1 cup'],['CEREALS RTE,KELLOGG,KELLOGGS SPL K LOFAT GRANOLA',375, '.5 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS CINNABON CRL',410, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KASHI GOLEAN CRISP TSTD BERRY CRUMBLE',368, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KASHI HEART TO HEART,WARM CINN',365, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KASHI ORGANIC PROMISE,ISLAND VANILLA',350, '27 biscuits, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,CHEERIOS,BANANA NUT',375, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,CHEERIOS,CHOC',380, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,CHOC CHEX',412, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS CINN CHEX',403, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,FIBER ONE,CARAMEL DELIGHT',344, '1 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,FIBER ONE,FRSTD SHREDDED WHEAT',321, '1 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,FIBER ONE,HONEY CLUSTERS',323, '1 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,FIBER ONE,RAISIN BRAN CLUSTERS',317, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS SPL K,CINN PECAN',375, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS SPL K BLUEBERRY',363, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KASHI,KASHI U',376, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KASHI BERRY BLOSSOM',322, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KASHI GOLDEN GOODNESS',355, '1.25 cup, (1 NLEA serving)'],['CEREALS RTE,KASHI HONEY SUNSHINE',332, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS FIBERPLUS CINN OAT CRUNCH',354, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS SPL K MULTIGRAIN OATS & HONEY',362, '.666 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS CRUNCHY NUT RSTD NUT & HONEY OS',374, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS CRUNCHY NUT GOLDEN HONEY NUT FLAKES',385, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS FRSTD MINI-WHEATS BITE SZ CINN STREUS',349, '23 biscuits, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS FRSTD MINI-WHEATS BITE SZ BLUEB MUFFIN',352, '25 biscuits, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS FRSTD MINI-WHTS TOUCH FRT MDL MXD BER',342, '24 biscuits, (1 NLEA serving)'],['CEREALS RTE,QUAKER,CAPN CRUNCHS HALLOWEEN CRUNCH',402, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,NAT GRANOLA APPL CRANBERRY ALMOND',418, '.5 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,MAPLE BROWN SUGAR LIFE CRL',373, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER,CAPN CRUNCHS OOPS! ALL BERRIES CRL',395, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS FRSTD MINI-WHEATS LITTLE BITES,CHOC',354, '1 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER OATMEAL SQUARES,GOLDEN MAPLE',380, '1 cup, (1 NLEA serving)'],['CEREALS RTE,POST,HONEY BUNCHES OF OATS W/ VANILLA BUNCHES',394, '1 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,PNUT BUTTER TOAST CRUNCH',410, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,COCOA PUFFS,25% RED SUGAR',382, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,OAT CLUSTER CHEERIOS CRUNCH',378, '.75 cup, (1 NLEA serving)'],['CEREALS,QUAKER,INST OATMEAL,CINN SPICE,RED SUGAR',358, '1 packet, (1 NLEA serving)'],['CEREALS,QUAKER,INST OATMEAL ORGANIC,REG',367, '1 packet'],['CEREALS,QUAKER,INST OATMEAL,FRUIT & CRM,RED SUGAR',376, '1 packet'],['CEREALS,QUAKER,INST OATMEAL,APPL & CINN,RED SUGAR',358, '1 packet, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,HONEY KIX',364, '1.25 cup, (1 NLEA serving)'],['CEREALS RTE,BEAR NAKED NUT CLUSTER CRUNCH,HONEY ALMOND',369, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,BEAR NAKED NUT CLUSTER CRUNCH,MAPLE PECAN WALNUT',374, '1 Cup, (1 NLEA serving)'],['CEREALS RTE,KASHI INDIGO MORNING',364, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KASHI SIMPLY MAIZE',371, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KASHI GOLEAN CRISP CINN CRUMBLE',362, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,FIBER ONE 80 CAL,HONEY SQUARES',248, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS KRAVE CHOC CRL',397, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS RICE KRISPIES,GLUTEN FREE',371, '1 cup, (1 NLEA serving)'],['CEREALS RTE,POST,HONEY BUNCHES OF OATS,JUST BUNCHES,HNY RSTD',433, '.67 cup, (1 NLEA serving)'],['CEREALS RTE,POST,HONEY BUNCHES OF OATS,PECAN BUNCHES',399, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,NATURES PATH,ORGANIC FLAX PLUS FLAKES',350, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,BARBARAS PUFFINS,ORIGINAL',333, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS KRAVE DOUBLE CHOC CRL',397, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS FRSTD FLAKES,CHOCO ZUCARITAS',387, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS APPL JACKS W/ MARSHMALLOWS',378, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS CINN JACKS',397, '1 cup, (1 NLEA serving)'],['CEREALS RTE,POST,HONEY BUNCHES OF OATS,W/ REAL STRAWBERRIES',399, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,KASHI ORGANIC PROMISE,BERRY FRUITFUL',318, '29 biscuits, (1 NLEA serving)'],['CEREALS RTE,POST HONEY BUNCHES OF OATS W/ CINN BUNCHES',400, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,CINN BURST CHEERIOS',375, '1 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,COCOA PUFFS BROWNIE CRUNCH',387, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,FIBER ONE,NUTTY CLUSTERS & ALMONDS',348, '1 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,FIBER ONE 80 CAL,CHOC SQUARES',253, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,HONEY NUT CHEERIOS,MEDLEY CRUNCH',387, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,DULCE DE LECHE CHEERIOS',378, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,MALT-O-MEAL,CHOC MARSHMLLW MATEYS',400, '.75 cup, (1 NLEA serving)'],['CEREALS,RTE,MALT-O-MEAL,BLUEBERRY MINI SPOONERS',350, '1 cup, (1 NLEA serving)'],['CEREALS RTE,MALT-O-MEAL,OAT BLENDERS W/ HONEY',390, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,MALT-O-MEAL,OAT BLENDERS W/ HONEY & ALMONDS',379, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,MALT-O-MEAL,HONEY NUT SCOOTERS',349, '1 cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS FRSTD MINI-WHEATS TOUCH FRUIT MDL,RASP',342, '24 biscuits, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,APPL CINN CHEX',408, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,FRSTD TOAST CRUNCH',410, '.75 cup, (1 NLEA serving)'],['CEREALS,OATS,INST,FORT,MAPLE & BROWN SUGAR,DRY',368, '1 packet'],['CEREALS RTE,CASCADIAN FARM,CINN CRUNCH',407, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,GENERAL MILLS,MULTI GRAIN CHEERIOS,PNUT BUTTER',390, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,CASCADIAN FARM,MULTI-GRAIN SQUARES',387, '1 cup, (1 NLEA serving)'],['CEREALS RTE,CASCADIAN FARM,HONEY NUT OS',371, '1 cup, (1 NLEA serving)'],['CEREALS RTE,QUAKER WHL HEARTS OAT CRL',376, '.75 cup, (1 NLEA serving)'],['CEREALS,QUAKER,WT CONTROL INST OATMEAL,MAPLE & BROWN SUGAR',361, '1 packet, (1 NLEA serving)'],['CEREALS,QUAKER,WEIGHT CONTROL INST OATMEAL,BANANA BREAD',361, '1 packet, (1 NLEA serving)'],['CEREALS,QUAKER,INST OATMEAL,CINN SWIRL,HI FIBER',366, '1 packet, (1 NLEA serving)'],['CEREALS,QUAKER,OATMEAL,REAL MEDLEYS,BLUEBERRY HAZELNUT,DRY',386, '1 package, (1 NLEA serving)'],['CEREALS,QUAKER,OATMEAL,REAL MEDLEYS,APPL WALNUT,DRY',390, '1 package, (1 NLEA serving)'],['CEREALS,QUAKER,OATMEAL,REAL MEDLEYS,SMMR BERRY,DRY',353, '1 package, (1 NLEA serving)'],['CEREALS,QUAKER,OATMEAL,REAL MEDLEYS,PEACH ALMOND,DRY',387, '1 package, (1 NLEA serving)'],['CEREALS,QUAKER,OATMEAL,REAL MEDLEYS,CHERRY PISTACHIO,DRY',394, '1 package, (1 NLEA serving)'],['CEREALS,QUAKER,INST OATMEAL,WEIGHT CONTROL,CINN',361, '1 packet, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS FRSTD MINI-WHEATS,LITTLE BITES',351, '1 Cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS RAISIN BRAN,CINN ALMOND',347, '1.25 cup, (1 NLEA serving)'],['CEREALS RTE,KASHI ORGANIC PROMISE,RAISIN VINEYARD',342, '.75 Cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS FROOT LOOPS TREASURS,STRAWBRY',380, '1 Cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS KRAVE SMORES',401, '.75 Cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG RAISIN BRAN W/ OMEGA-3 FROM FLAXSEED',349, '1 Cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG,KELLOGGS SPL K MULTI-GRAIN',364, '1 Cup, (1 NLEA serving)'],['CEREALS,KELLOGGS SPL K NOURISH,CINN RAISIN PECAN,DRY',370, '1 Container, (1 NLEA serving)'],['CEREALS,KELLOGGS SPL K NOURISH,CRANBERRY ALMOND,DRY',361, '1 Container, (1 NLEA serving)'],['CEREALS,KELLOGGS SPL K NOURISH,MAPLE BROWN SUGAR CRUNCH,DRY',371, '1 Container, (1 NLEA serving)'],['CEREALS RTE,KASHI GOLEAN VANILLA GRAHAM CLUSTERS',330, '1 Cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGG SCOOBY-DOO! CRL',376, '1 Cup, (1 NLEA serving)'],['CEREALS RTE,KELLOGGS SPL K CHOC ALMOND',375, '.67 Cup, (1 NLEA serving)'],['KELLOGG MINI-WHEATS FRSTD BITE SIZE TOUCH OF FRUIT RAISIN',343, '24 Biscuits, (1 NLEA serving)'],['ACEROLA,(WEST INDIAN CHERRY),RAW',32, '1 cup'],['ACEROLA JUICE,RAW',23, '1 cup'],['APPLES,RAW,WITH SKIN',52, '1 cup, quartered or chopped'],['APPLES,RAW,WITHOUT SKIN',48, '1 cup, slices'],['APPLES,RAW,WO/SKN,CKD,BLD',53, '1 cup, slices'],['APPLES,RAW,WO/ SKN,CKD,MICROWAVE',56, '1 cup, slices'],['APPLES,CND,SWTND,SLICED,DRND,UNHTD',67, '1 cup, slices'],['APPLES,CND,SWTND,SLICED,DRND,HTD',67, '1 cup, slices'],['APPLES,DEHYD (LO MOIST),SULFURED,UNCKD',346, '1 cup'],['APPLES,DEHYD (LO MOIST),SULFURED,STWD',74, '1 cup'],['APPLES,DRIED,SULFURED,UNCKD',243, '1 cup'],['APPLES,DRIED,SULFURED,STWD,WO/ SUGAR',57, '1 cup'],['APPLES,DRIED,SULFURED,STWD,W/ SUGAR',83, '1 cup'],['APPLES,FRZ,UNSWTND,UNHTD',48, '1 cup, slices'],['APPLES,FRZ,UNSWTND,HTD',47, '1 cup, slices'],['APPLE JUC,CND OR BTLD,UNSWTND,WO/ ADDED VIT C',46, '1 cup'],['APPLE JUC,FRZ CONC,UNSWTND,UNDIL,WO/ VIT C',166, '1 can, (6 fl oz)'],['APPLE JUC,FRZ CONC,UNSWTND,DIL W/3 VOLUME H2O WO/ VIT C',47, '1 cup'],['APPLESAUCE,CND,UNSWTND,WO/ADDED VIT C (INCLUDES USDA COMMOD)',42, '1 cup'],['APPLESAUCE,CND,SWTND,WO/ SALT (INCLUDES USDA COMMODITY)',68, '1 cup'],['APRICOTS,RAW',48, '1 cup, halves'],['APRICOTS,CND,H2O PK,W/SKN,SOL&LIQUIDS',27, '1 cup, halves'],['APRICOTS,CND,H2O PK,WO/SKN,SOL&LIQUIDS',22, '1 cup, whole, without pits'],['APRICOTS,CND,JUC PK,W/SKN,SOL&LIQUIDS',48, '1 cup, halves'],['APRICOTS,CND,EX LT SYRUP PK,W/SKN,SOL&LIQUIDS',49, '1 cup, halves'],['APRICOTS,CND,LT SYRUP PK,W/SKN,SOL&LIQUIDS',63, '1 cup, halves'],['APRICOTS,CND,HVY SYRUP PK,W/SKN,SOL&LIQUIDS',83, '1 cup, halves'],['APRICOTS,CND,HVY SYRUP PK,WO/SKN,SOL&LIQUIDS',83, '1 cup, whole, without pits'],['APRICOTS,CND,EX HVY SYRUP PK,WO/SKN,SOL&LIQUIDS',96, '1 cup, whole, without pits'],['APRICOTS,DEHYD (LOW-MOISTURE),SULFURED,UNCKD',320, '1 cup'],['APRICOTS,DEHYD (LOW-MOISTURE),SULFURED,STWD',126, '1 cup'],['APRICOTS,DRIED,SULFURED,UNCKD',241, '1 cup, halves'],['APRICOTS,DRIED,SULFURED,STWD,WO/ SUGAR',85, '1 cup, halves'],['APRICOTS,DRIED,SULFURED,STWD,W/ SUGAR',113, '1 cup, halves'],['APRICOTS,FROZEN,SWEETENED',98, '1 cup'],['APRICOT NECTAR,CND,WO/ VIT C',56, '1 cup'],['AVOCADOS,RAW,ALL COMM VAR',160, '1 cup, cubes'],['AVOCADOS,RAW,CALIFORNIA',167, '1 cup, pureed'],['AVOCADOS,RAW,FLORIDA',120, '1 cup, pureed'],['BANANAS,RAW',89, '1 cup, mashed'],['BANANAS,DEHYD,OR BANANA PDR',346, '1 cup'],['BLACKBERRIES,RAW',43, '1 cup'],['BLACKBERRY JUC,CND',38, '1 cup'],['CHERRIES,TART,DRIED,SWTND',333, '.25 cup'],['BLACKBERRIES,CND,HVY SYRUP,SOL&LIQUIDS',92, '1 cup'],['BLACKBERRIES,FRZ,UNSWTND',64, '1 cup, unthawed'],['BLUEBERRIES,RAW',57, '1 cup'],['BLUEBERRIES,CND,HVY SYRUP,SOL&LIQUIDS',88, '1 cup'],['BLUEBERRIES,WILD,FRZ',57, '1 cup, frozen'],['BLUEBERRIES,FRZ,UNSWTND',51, '1 cup, unthawed'],['BLUEBERRIES,FRZ,SWTND',85, '1 cup, thawed'],['BOYSENBERRIES,CND,HVY SYRUP',88, '1 cup'],['BOYSENBERRIES,FRZ,UNSWTND',50, '1 cup, unthawed'],['BREADFRUIT,RAW',103, '1 cup'],['CARAMBOLA,(STARFRUIT),RAW',31, '1 cup, cubes'],['CARISSA,(NATAL-PLUM),RAW',62, '1 cup, slices'],['CHERIMOYA,RAW',75, '1 cup, pieces'],['CHERRIES,SOUR,RED,RAW',50, '1 cup, without pits'],['CHERRIES,SOUR,RED,CND,H2O PK,SOL&LIQUIDS (INCL USDA CMDTY)',36, '1 cup'],['CHERRIES,SOUR,RED,CND,LT SYRUP PK,SOL&LIQUIDS',75, '1 cup'],['CHERRIES,SOUR,RED,CND,HVY SYRUP PK,SOL&LIQUIDS',91, '1 cup'],['CHERRIES,SOUR,RED,CND,EX HVY SYRUP PK,SOL&LIQUIDS',114, '1 cup'],['CHERRIES,SOUR,RED,FRZ,UNSWTND',46, '1 cup, unthawed'],['CHERRIES,SWEET,RAW',63, '1 cup, with pits yields'],['CHERRIES,SWT,CND,H2O PK,SOL&LIQUIDS',46, '1 cup, pitted'],['CHERRIES,SWT,CND,JUC PK,SOL&LIQUIDS',54, '1 cup, pitted'],['CHERRIES,SWT,CND,LT SYRUP PK,SOL&LIQUIDS',67, '1 cup, pitted'],['CHERRIES,SWT,CND,PITTED,HVY SYRUP PK,SOL & LIQUIDS',83, '1 cup'],['CHERRIES,SWT,CND,EX HVY SYRUP PK,SOL&LIQUIDS',102, '1 cup, pitted'],['CHERRIES,SWT,FRZ,SWTND',89, '1 cup, thawed'],['CRABAPPLES,RAW',76, '1 cup, slices'],['CRANBERRIES,RAW',46, '1 cup, chopped'],['CRANBERRIES,DRIED,SWTND',308, '.33 cup'],['CRANBERRY SAU,CND,SWTND',151, '1 cup'],['CRANBERRY-ORANGE RELISH,CND',178, '1 cup'],['CURRANTS,EUROPEAN BLACK,RAW',63, '1 cup'],['CURRANTS,RED&WHITE,RAW',56, '1 cup'],['CURRANTS,ZANTE,DRIED',283, '1 cup'],['CUSTARD-APPLE,(BULLOCKS-HEART),RAW',101, ''],['DATES,DEGLET NOOR',282, '1 cup, chopped'],['ELDERBERRIES,RAW',73, '1 cup'],['FIGS,RAW',74, '1 large, (2-1/2 dia)'],['FIGS,CND,H2O PK,SOL&LIQUIDS',53, '1 cup'],['FIGS,CND,LT SYRUP PK,SOL&LIQUIDS',69, '1 cup'],['FIGS,CND,HVY SYRUP PK,SOL&LIQUIDS',88, '1 cup'],['FIGS,CND,EX HVY SYRUP PK,SOL&LIQUIDS',107, '1 cup'],['FIGS,DRIED,UNCOOKED',249, '1 cup'],['FIGS,DRIED,STEWED',107, '1 cup'],['FRUIT COCKTAIL,CND,H2O PK,SOL&LIQUIDS',32, '1 cup'],['FRUIT COCKTAIL,CND,JUC PK,SOL&LIQUIDS',46, '1 cup'],['FRUIT COCKTAIL,CND,EX LT SYRUP,SOL&LIQUIDS',45, '.5 cup'],['FRUIT COCKTAIL,CND,LT SYRUP,SOL&LIQUIDS',57, '1 cup'],['FRUIT COCKTAIL,CND,HVY SYRUP,SOL&LIQUIDS',73, '1 cup'],['FRUIT COCKTAIL,CND,EX HVY SYRUP,SOL&LIQUIDS',88, '.5 cup'],['FRUIT SALAD,CND,H2O PK,SOL&LIQUIDS',30, '1 cup'],['FRUIT SALAD,CND,JUC PK,SOL&LIQUIDS',50, '1 cup'],['FRUIT SALAD,CND,LT SYRUP,SOL&LIQUIDS',58, '1 cup'],['FRUIT SALAD,CND,HVY SYRUP,SOL&LIQUIDS',73, '1 cup'],['FRUIT SALAD,CND,EX HVY SYRUP,SOL&LIQUIDS',88, '1 cup'],['GOOSEBERRIES,RAW',44, '1 cup'],['GOOSEBERRIES,CND,LT SYRUP PK,SOL&LIQUIDS',73, '1 cup'],['GRAPEFRUIT,RAW,PINK&RED&WHITE,ALL AREAS',32, '1 cup, sections with juice'],['GRAPEFRUIT,RAW,PINK&RED,ALL AREAS',42, '1 cup, sections with juice'],['GRAPEFRUIT,RAW,PINK&RED,CALIFORNIA&ARIZONA',37, '1 cup, sections with juice'],['GRAPEFRUIT,RAW,PINK & RED,FLORIDA',30, '1 cup, sections with juice'],['GRAPEFRUIT,RAW,WHITE,ALL AREAS',33, '1 cup, sections with juice'],['GRAPEFRUIT,RAW,WHITE,CALIFORNIA',37, '1 cup, sections with juice'],['GRAPEFRUIT,RAW,WHITE,FLORIDA',32, '1 cup, sections with juice'],['GRAPEFRUIT,SECTIONS,CND,H2O PK,SOL&LIQUIDS',36, '1 cup'],['GRAPEFRUIT,SECTIONS,CND,JUC PK,SOL&LIQUIDS',37, '1 cup'],['GRAPEFRUIT,SECTIONS,CND,LT SYRUP PK,SOL&LIQUIDS',60, '1 cup'],['GRAPEFRUIT JUC,WHITE,CND,UNSWTND',38, '1 cup'],['GRAPEFRUIT JUC,WHITE,CND,SWTND',46, '1 cup'],['GRAPEFRUIT JUC,WHITE,FRZ CONC,UNSWTND,UNDIL',146, '1 can, (6 fl oz)'],['GRAPEFRUIT JUC,WHITE,FRZ CONC,UNSWTND,DIL W/ 3 VOLUME H2O',41, '1 cup'],['GRAPEFRUIT JUC,WHITE,RAW',39, '1 cup'],['Grapes, muscadine, raw',57, '1 grape'],['GRAPE JUC,CND OR BTLD,UNSWTND,W/ ADDED VIT C',60, '1 cup'],['GRAPES,AMERICAN TYPE (SLIP SKN),RAW',67, '1 cup'],['GRAPES,RED OR GRN (EURO TYPE,SUCH AS THOMPSON SEEDLESS),RAW',69, '1 cup'],['GRAPES,CND,THOMPSON SEEDLESS,H2O PK,SOL&LIQUIDS',40, '1 cup'],['GRAPES,CND,THOMPSON SEEDLESS,HVY SYRUP PK,SOL&LIQUIDS',76, '1 cup'],['GRAPE JUC,CND OR BTLD,UNSWTND,WO/ ADDED VIT C',60, '1 cup'],['GROUNDCHERRIES,(CAPE-GOOSEBERRIES OR POHA),RAW',53, '1 cup'],['GUAVAS,COMMON,RAW',68, '1 cup'],['GUAVAS,STRAWBERRY,RAW',69, '1 cup'],['GUAVA SAUCE,COOKED',36, '1 cup'],['JACKFRUIT,RAW',95, '1 cup, sliced'],['JAVA-PLUM,(JAMBOLAN),RAW',60, '1 cup'],['JUJUBE,RAW',79, ''],['JUJUBE,DRIED',287, ''],['KIWIFRUIT,GRN,RAW',61, '1 cup, sliced'],['KUMQUATS,RAW',71, '1 fruit, without refuse'],['LEMONS,RAW,WITHOUT PEEL',29, '1 cup, sections'],['LEMON JUICE,RAW',22, '1 cup'],['LEMON JUC,CND OR BTLD',21, '1 cup'],['LEMON JUC,FRZ,UNSWTND,SINGLE STRENGTH',22, '1 cup'],['LEMON PEEL,RAW',47, '1 tbsp'],['LIMES,RAW',30, '1 fruit, (2 dia)'],['LIME JUICE,RAW',25, '1 cup'],['LIME JUC,CND OR BTLD,UNSWTND',21, '1 cup'],['BLUEBERRIES,DRIED,SWTND',317, '.25 cup'],['LITCHIS,RAW',66, '1 cup'],['LITCHIS,DRIED',277, '1 fruit'],['LOGANBERRIES,FROZEN',55, '1 cup, unthawed'],['LONGANS,RAW',60, '1 fruit, without refuse'],['LONGANS,DRIED',286, '1 fruit'],['LOQUATS,RAW',47, '1 cup, cubed'],['MAMMY-APPLE,(MAMEY),RAW',51, '1 fruit, without refuse'],['MANGOS,RAW',60, '1 cup, pieces'],['MANGOSTEEN,CND,SYRUP PK',73, '1 cup, drained'],['MELONS,CANTALOUPE,RAW',34, '1 cup, balls'],['MELONS,CASABA,RAW',28, '1 cup, cubes'],['MELONS,HONEYDEW,RAW',36, '1 cup, diced (approx 20 pieces per cup)'],['MELON BALLS,FROZEN',33, '1 cup, unthawed'],['MULBERRIES,RAW',43, '1 cup'],['NECTARINES,RAW',44, '1 cup, slices'],['OHELOBERRIES,RAW',28, '1 cup'],['OLIVES,RIPE,CND (SMALL-EXTRA LRG)',115, '1 tbsp'],['OLIVES,RIPE,CND (JUMBO-SUPER COLOSSAL)',81, '1 super colossal'],['OLIVES,PICKLED,CND OR BTLD,GRN',145, '1 olive'],['ORANGES,RAW,ALL COMM VAR',47, '1 cup, sections'],['ORANGES,RAW,CALIFORNIA,VALENCIAS',49, '1 cup, sections without membranes'],['ORANGES,RAW,NAVELS',49, '1 cup, sections without membranes'],['ORANGES,RAW,FLORIDA',46, '1 cup, sections without membranes'],['ORANGES,RAW,WITH PEEL',63, '1 cup'],['ORANGE JUICE,RAW',45, '1 cup'],['ORANGE JUC,CND,UNSWTND',47, '1 cup'],['ORANGE JUC,CHILLED,INCL FROM CONC',49, '1 cup'],['ORANGE JUC,CHILLED,INCL FROM CONC,W/ ADDED CA & VITAMIN D',47, '1 cup'],['ORANGE JUC,CHILLED,INCL FROM CONC,W/ ADDED CA',47, '1 cup'],['ORANGE JUC,FRZ CONC,UNSWTND,UNDIL,W/ ADDED CA',147, '1 cup'],['ORANGE JUC,FRZ CONC,UNSWTND,UNDIL',148, '1 cup'],['ORANGE JUC,FRZ CONC,UNSWTND,DIL W/3 VOLUME H2O',37, '1 cup'],['ORANGE PEEL,RAW',97, '1 tbsp'],['ORANGE-GRAPEFRUIT JUC,CND OR BTLD,UNSWTND',43, '1 cup'],['TANGERINES,(MANDARIN ORANGES),RAW',53, '1 cup, sections'],['TANGERINES,(MANDARIN ORANGES),CND,JUC PK',37, '1 cup'],['TANGERINES,(MANDARIN ORANGES),CND,LT SYRUP PK',61, '1 cup'],['TANGERINE JUICE,RAW',43, '1 cup'],['TANGERINE JUC,CND,SWTND',50, '1 cup'],['PAPAYAS,RAW',43, '1 cup, 1 pieces'],['PAPAYA,CND,HVY SYRUP,DRND',206, '1 piece'],['PAPAYA NECTAR,CANNED',57, '1 cup'],['PASSION-FRUIT,(GRANADILLA),PURPLE,RAW',97, '1 cup'],['PASSION-FRUIT JUC,PURPLE,RAW',51, '1 cup'],['PASSION-FRUIT JUC,YEL,RAW',60, '1 cup'],['PEACHES,RAW',39, '1 cup, slices'],['PEACHES,CND,H2O PK,SOL&LIQUIDS',24, '1 cup, halves or slices'],['PEACHES,CND,JUC PK,SOL&LIQUIDS',44, '1 cup'],['PEACHES,CND,EX LT SYRUP,SOL&LIQUIDS',42, '1 cup, halves or slices'],['PEACHES,CND,LT SYRUP PK,SOL&LIQUIDS',54, '1 cup, halves or slices'],['PEACHES,CND,HVY SYRUP PK,SOL&LIQUIDS',74, '1 cup'],['PEACHES,CND,EX HVY SYRUP PK,SOL&LIQUIDS',96, '1 cup, halves or slices'],['PEACHES,SPICED,CND,HVY SYRUP PK,SOL&LIQUIDS',75, '1 cup, whole'],['PEACHES,DEHYD (LOW-MOISTURE),SULFURED,UNCKD',325, '1 cup'],['PEACHES,DEHYD (LOW-MOISTURE),SULFURED,STWD',133, '1 cup'],['PEACHES,DRIED,SULFURED,UNCKD',239, '1 cup, halves'],['PEACHES,DRIED,SULFURED,STWD,WO/ SUGAR',77, '1 cup'],['PEACHES,DRIED,SULFURED,STWD,W/ SUGAR',103, '1 cup'],['PEACHES,FRZ,SLICED,SWTND',94, '1 cup, thawed'],['PEACH NECTAR,CND,WO/ VIT C',54, '1 cup'],['PEARS,RAW',57, '1 cup, slices'],['PEARS,CND,H2O PK,SOL&LIQUIDS',29, '1 cup, halves'],['PEARS,CND,JUC PK,SOL&LIQUIDS',50, '1 cup, halves'],['PEARS,CND,EX LT SYRUP PK,SOL&LIQUIDS',47, '1 cup, halves'],['PEARS,CND,LT SYRUP PK,SOL&LIQUIDS',57, '1 cup, halves'],['PEARS,CND,HVY SYRUP PK,SOL&LIQUIDS',74, '1 cup'],['PEARS,CND,EX HVY SYRUP PK,SOL&LIQUIDS',97, '1 cup, halves'],['PEARS,DRIED,SULFURED,UNCKD',262, '1 cup, halves'],['PEARS,DRIED,SULFURED,STWD,WO/ SUGAR',127, '1 cup, halves'],['PEARS,DRIED,SULFURED,STWD,W/ SUGAR',140, '1 cup, halves'],['PEAR NECTAR,CND,WO/ VIT C',60, '1 cup'],['PERSIMMONS,JAPANESE,RAW',70, '1 fruit, (2-1/2 dia)'],['PERSIMMONS,JAPANESE,DRIED',274, '1 fruit, without refuse'],['PERSIMMONS,NATIVE,RAW',127, '1 fruit, without refuse'],['PINEAPPLE,RAW,ALL VAR',50, '1 cup, chunks'],['PINEAPPLE,CND,H2O PK,SOL&LIQUIDS',32, '1 cup, crushed, sliced, or chunks'],['PINEAPPLE,CND,JUC PK,SOL&LIQUIDS',60, '1 cup, crushed, sliced, or chunks'],['PINEAPPLE,CND,LT SYRUP PK,SOL&LIQUIDS',52, '1 cup, crushed, sliced, or chunks'],['PINEAPPLE,CND,HVY SYRUP PK,SOL&LIQUIDS',78, '1 cup, crushed, sliced, or chunks'],['PINEAPPLE,CND,EX HVY SYRUP PK,SOL&LIQUIDS',83, '1 cup, crushed, sliced, or chunks'],['PINEAPPLE,FRZ,CHUNKS,SWTND',86, '1 cup, chunks'],['PINEAPPLE JUC,CND OR BTLD,UNSWTND,WO/ ADDED VIT C',53, '1 cup'],['PINEAPPLE JUC,FRZ CONC,UNSWTND,UNDIL',179, '1 can, (6 fl oz)'],['PINEAPPLE JUC,FRZ CONC,UNSWTND,DIL W/3 VOLUME H2O',51, '1 cup'],['PITANGA,(SURINAM-CHERRY),RAW',33, '1 cup'],['PLANTAINS,RAW',122, '1 cup, sliced'],['PLANTAINS,COOKED',116, '1 cup, mashed'],['PLUMS,RAW',46, '1 cup, sliced'],['PLUMS,CND,PURPLE,H2O PK,SOL&LIQUIDS',41, '1 cup, pitted'],['PLUMS,CND,PURPLE,JUC PK,SOL&LIQUIDS',58, '1 cup, pitted'],['PLUMS,CND,PURPLE,LT SYRUP PK,SOL&LIQUIDS',63, '1 cup, pitted'],['PLUMS,CND,PURPLE,HVY SYRUP PK,SOL&LIQUIDS',89, '1 cup, pitted'],['PLUMS,CND,PURPLE,EX HVY SYRUP PK,SOL&LIQUIDS',101, '1 cup, pitted'],['POMEGRANATES,RAW',83, '.5 cup, arils (seed/juice sacs)'],['PRICKLY PEARS,RAW',41, '1 cup'],['PRUNES,CND,HVY SYRUP PK,SOL&LIQUIDS',105, '1 cup'],['PRUNES,DEHYD (LOW-MOISTURE),UNCKD',339, '1 cup'],['PRUNES,DEHYD (LOW-MOISTURE),STWD',113, '1 cup'],['PLUMS,DRIED (PRUNES),UNCKD',240, '1 cup, pitted'],['PLUMS,DRIED (PRUNES),STWD,WO/ ADDED SUGAR',107, '1 cup, pitted'],['PLUMS,DRIED (PRUNES),STWD,W/ ADDED SUGAR',124, '1 cup, pitted'],['PRUNE JUICE,CANNED',71, '1 cup'],['PUMMELO,RAW',38, '1 cup, sections'],['QUINCES,RAW',57, '1 fruit, without refuse'],['RAISINS,GOLDEN SEEDLESS',302, '1 cup, packed'],['RAISINS,SEEDLESS',299, '1 cup, packed'],['RAISINS,SEEDED',296, '1 cup, packed'],['RAMBUTAN,CND,SYRUP PK',82, '1 cup, drained'],['RASPBERRIES,RAW',52, '1 cup'],['RASPBERRIES,CND,RED,HVY SYRUP PK,SOL&LIQUIDS',91, '1 cup'],['RASPBERRIES,FRZ,RED,SWTND',103, '1 cup, thawed'],['RHUBARB,RAW',21, '1 cup, diced'],['RHUBARB,FROZEN,UNCOOKED',21, '1 cup, diced'],['RHUBARB,FRZ,CKD,W/SUGAR',116, '1 cup'],['ROSELLE,RAW',49, '1 cup, without refuse'],['ROSE-APPLES,RAW',25, ''],['SAPODILLA,RAW',83, '1 cup, pulp'],['SAPOTE,MAMEY,RAW',124, '1 cup, 1 pieces'],['SOURSOP,RAW',66, '1 cup, pulp'],['STRAWBERRIES,RAW',32, '1 cup, halves'],['STRAWBERRIES,CND,HVY SYRUP PK,SOL&LIQUIDS',92, '1 cup'],['STRAWBERRIES,FRZ,UNSWTND',35, '1 cup, thawed'],['STRAWBERRIES,FRZ,SWTND,WHL',78, '1 cup, thawed'],['STRAWBERRIES,FRZ,SWTND,SLICED',96, '1 cup, thawed'],['SUGAR-APPLES,(SWEETSOP),RAW',94, '1 cup, pulp'],['TAMARINDS,RAW',239, '1 cup, pulp'],['FRUIT SALAD,TROPICAL,CND,HVY SYRUP,SOL&LIQUIDS',86, '1 cup'],['WATERMELON,RAW',30, '1 cup, balls'],['MARASCHINO CHERRIES,CND,DRND',165, '1 cherry, (NLEA serving)'],['FEIJOA,RAW',61, '1 cup, pureed'],['PEARS,ASIAN,RAW',42, '1 fruit, 2-1/4 high x 2-1/2 dia'],['FRUIT COCKTAIL,CND,HVY SYRUP,DRND',70, '1 cup'],['BLUEBERRIES,CND,LT SYRUP,DRND',88, '1 cup'],['BLUEBERRIES,WILD,CND,HVY SYRUP,DRND',107, '1 cup'],['PINEAPPLE,CND,JUC PK,DRND',60, '1 cup, chunks'],['APRICOTS,CND,HVY SYRUP,DRND',83, '1 cup, halves'],['CHERRIES,SOUR,CND,H2O PK,DRND',42, '1 cup'],['CHERRIES,SWT,CND,PITTED,HVY SYRUP,DRND',83, '1 cup'],['PEACHES,CND,HVY SYRUP,DRND',72, '1 cup'],['PEARS,CND,HVY SYRUP,DRND',74, '1 cup'],['PLUMS,CND,HVY SYRUP,DRND',89, '1 cup, with pits yields'],['TANGERINES,(MANDARIN ORANGES),CND,JUC PK,DRND',38, '1 cup'],['APPLE JUC,CND OR BTLD,UNSWTND,W/ ADDED VIT C',46, '1 cup'],['APPLESAUCE,CND,UNSWTND,W/ VIT C',42, '1 cup'],['APPLESAUCE,CND,SWTND,W/SALT',76, '1 cup'],['APRICOT NECTAR,CND,W/ VIT C',56, '1 cup'],['GRAPEFRUIT JUICE,PINK,RAW',39, '1 cup'],['PEACH NECTAR,CND,W/ VIT C',54, '1 cup'],['PEAR NECTAR,CND,W/ VIT C',60, '1 cup'],['PINEAPPLE JUC,CND OR BTLD,UNSWTND,W/ ADDED VIT C',53, '1 cup'],['APPLE JUC,FRZ CONC,UNSWTND,UNDIL,W/ VIT C',166, '1 can, (6 fl oz)'],['APPLE JUC,FRZ CONC,UNSWTND,DIL W/3 VOLUME H2O,W/ VIT C',47, '1 cup'],['PEARS,RAW,BARTLETT',63, '1 cup, sliced'],['PEARS,RAW,RED ANJOU',62, '1 small'],['PEARS,RAW,BOSC',67, '1 cup, sliced'],['PEARS,RAW,GRN ANJOU',66, '1 cup, sliced'],['JACKFRUIT,CND,SYRUP PK',92, '1 cup, drained'],['DATES,MEDJOOL',277, '1 date, pitted'],['DURIAN,RAW OR FROZEN',147, '1 cup, chopped or diced'],['PRUNE PUREE',257, '2 tbsp'],['CANDIED FRUIT',322, ''],['ABIYUCH,RAW',69, '.5 cup'],['ROWAL,RAW',111, '.5 cup'],['PINEAPPLE,RAW,TRADITIONAL VAR',45, '1 cup, chunks'],['PINEAPPLE,RAW,EX SWT VAR',51, '1 cup, chunks'],['USDA CMDTY,MXD FRUIT (PEACH,PEARS,GRAPES),CND,LT SYRUP,DRND',57, ''],['USDA CMDTY,MXD FRUIT (PEACH,PEAR,GRAPE),CND,LT SYR,SOL & LIQ',55, ''],['CLEMENTINES,RAW',47, '1 fruit'],['GUANABANA NECTAR,CND',59, '1 cup'],['GUAVA NECTAR,CND',63, '1 cup'],['MANGO NECTAR,CND',51, '1 cup'],['TAMARIND NECTAR,CND',57, '1 cup'],['USDA CMDTY PEACHES,CND,LT SYRUP,DRND',61, ''],['USDA CMDTY PEARS,CND,JUC PK,DRND',51, ''],['USDA CMDTY PEARS,CND,LT SYRUP,DRND',62, ''],['POMEGRANATE JUC,BTLD',54, '1 cup'],['JUICE,APPL & GRAPE BLEND,W/ ADDED VIT C',50, '8 fl oz'],['JUICE,APPL,GRAPE & PEAR BLEND,W/ ADDED VIT C & CA',52, '8 fl oz'],['KIWIFRUIT,GOLD,RAW',60, '1 cup, sliced'],['PLANTAINS,GRN,FRIED',309, '1 cup'],['PLANTAINS,YEL,FRIED,LATINO RESTAURANT',236, '1 cup'],['NANCE,CND,SYRUP,DRND',95, '3 fruit, without pits'],['NANCE,FRZ,UNSWTND',73, '1 cup, without pits thawed'],['NARANJILLA (LULO) PULP,FRZ,UNSWTND',25, '1 cup, thawed'],['HORNED MELON (KIWANO)',44, '1 cup'],['ORANGE PNAPPL JUC BLEND',51, '8 fl oz'],['APPLES,RAW,RED DELICIOUS,W/ SKN',59, '1 cup, sliced'],['APPLES,RAW,GOLDEN DELICIOUS,W/ SKN',57, '1 cup, sliced'],['APPLES,RAW,GRANNY SMITH,W/ SKN',58, '1 cup, sliced'],['APPLES,RAW,GALA,W/ SKN',57, '1 cup, sliced'],['APPLES,RAW,FUJI,W/ SKN',63, '1 cup, sliced'],['ORANGE JUC,CHILLED,INCL FROM CONC,W/ ADD CA & VITAMINS A,D,E',49, '1 cup'],['JUICE SMOOTHIE,NAKED JUC,MIGHTY MANGO',63, '8 fl oz'],['JUICE SMOOTHIE,NAKED JUC,GRN MACHINE',58, '8 fl oz'],['PINEAPPLE JUC,DOLE,CND,NOT FROM CONC,UNSWTND,W/ ADD VITA,C,E',57, '1 cup'],['JUICE SMOOTHIE,NAKED JUC,BLUE MACHINE',71, '8 fl oz'],['GRAPE JUC,CND OR BTLD,W/ ADDED VIT C & CA',62, '1 cup'],['JUICE SMTHIE,ODWALLA,ORIGINAL SUPERFD,FRUIT SMTHIE BLEND',54, '12 fl oz'],['JUICE SMOOTHIE,BOLTHOUSE FARMS,BERRY BOOST',46, '1 cup'],['JUICE SMOOTHIE,BOLTHOUSE FARMS,GRN GOODNESS',56, '1 cup'],['JUICE SMOOTHIE,BOLTHOUSE FARMS,STRAWBERRY BANANA',55, '1 cup'],['APPLE JUC,CND OR BTLD,UNSWTND,W/ ADDED VIT C,CA,& K',48, '6 fl oz'],['RASPBERRIES,FRZ,UNSWTND',52, '1 cup, unthawed'],['PORK,FRSH,ENHANCED,COMP OF FAT,CKD',585, '3 oz'],['PORK,FRSH,CARCASS,LN&FAT,RAW',376, '1 oz'],['PORK,FRSH,COMP OF RTL CUTS (LEG,LOIN,SHLDR),LN,RAW',134, '1 oz'],['PORK,FRSH,COMP OF LEG,LOIN,SHLDR,& SPARERIBS,LN & FAT,RAW',211, '1 oz'],['PORK,FRESH,BACKFAT,RAW',812, '1 oz'],['PORK,FRSH,BELLY,RAW',518, '1 oz'],['PORK,FRSH,FAT,RAW',632, '1 oz'],['PORK,FRSH,FAT,CKD',626, '1 oz'],['PORK,FRSH,LEG (HAM),WHL,LN&FAT,RAW',245, '1 oz'],['PORK,FRSH,LEG (HAM),WHL,LN&FAT,CKD,RSTD',273, '1 cup, diced'],['PORK,FRSH,LEG (HAM),WHL,LN,RAW',136, '1 oz'],['PORK,FRSH,LEG (HAM),WHL,LN,CKD,RSTD',211, '1 cup, diced'],['PORK,FRSH,LEG (HAM),RUMP HALF,LN&FAT,RAW',182, '1 oz'],['PORK,FRSH,LEG (HAM),RUMP HALF,LN&FAT,CKD,RSTD',209, '1 cup, diced'],['PORK,FRSH,LEG (HAM),RUMP HALF,LN,RAW',120, '3 oz'],['PORK,FRSH,LEG (HAM),RUMP HALF,LN,CKD,RSTD',165, '3 oz'],['PORK,FRSH,LEG (HAM),SHANK HALF,LN&FAT,RAW',193, '3 oz'],['PORK,FRSH,LEG (HAM),SHANK HALF,LN&FAT,CKD,RSTD',232, '3 oz'],['PORK,FRSH,LEG (HAM),SHANK HALF,LN,RAW',119, '3 oz'],['PORK,FRSH,LEG (HAM),SHANK HALF,LN,CKD,RSTD',175, '3 oz'],['PORK,FRSH,LOIN,WHL,LN&FAT,RAW',198, '3 oz'],['PORK,FRSH,LOIN,WHL,LN&FAT,CKD,BRSD',239, '3 oz'],['PORK,FRSH,LOIN,WHL,LN&FAT,CKD,BRLD',242, '3 oz'],['PORK,FRSH,LOIN,WHL,LN&FAT,CKD,RSTD',248, '3 oz'],['PORK,FRSH,LOIN,WHL,LN,RAW',143, '3 oz'],['PORK,FRSH,LOIN,WHL,LN,CKD,BRSD',204, '3 oz'],['PORK,FRSH,LOIN,WHL,LN,CKD,BRLD',210, '3 oz'],['PORK,FRSH,LOIN,WHL,LN,CKD,RSTD',209, '3 oz'],['PORK,FRSH,LOIN,BLADE (CHOPS OR ROASTS),BONE-IN,LN&FAT,RAW',194, '3 oz'],['PORK,FRSH,LOIN,BLADE (CHOPS),BONE-IN,LN&FAT,CKD,BRSD',255, '3 oz'],['PORK,FRSH,LOIN,BLADE (CHOPS),BONE-IN,LN&FAT,CKD,BRLD',231, '3 oz'],['PORK,FRSH,LOIN,BLADE (ROASTS),BONE-IN,LN&FAT,CKD,RSTD',254, '3 oz'],['PORK,FRSH,LOIN,BLADE (CHOPS OR ROASTS),BONE-IN,LN,RAW',143, '3 oz'],['PORK,FRSH,LOIN,BLADE (CHOPS),BONE-IN,LN,CKD,BRSD',222, '3 oz'],['PORK,FRSH,LOIN,BLADE (CHOPS),BONE-IN,LN,CKD,BRLD',193, '3 oz'],['PORK,FRSH,LOIN,BLADE (ROASTS),BONE-IN,LN,CKD,RSTD',217, '3 oz'],['PORK,FRSH,LOIN,CNTR LOIN (CHOPS),BONE-IN,LN & FAT,RAW',170, '3 oz'],['PORK,FRSH,LOIN,CNTR LOIN (CHOPS),BONE-IN,LN&FAT,CKD,BRSD',242, '3 oz'],['PORK,FRSH,LOIN,CNTR LOIN (CHOPS),BONE-IN,LN&FAT,CKD,BRLD',209, '3 oz'],['PORK,FRSH,LOIN,CNTR LOIN (ROASTS),BONE-IN,LN&FAT,CKD,RSTD',231, '3 oz'],['PORK,FRSH,LOIN,CNTR LOIN (CHOPS),BONE-IN,LN,RAW',127, '3 oz'],['PORK,FRSH,LOIN,CNTR LOIN (CHOPS),BONE-IN,LN,CKD,BRSD',200, '3 oz'],['PORK,FRSH,LOIN,CNTR LOIN (CHOPS),BONE-IN,LN,CKD,BRLD',180, '1 chop, without refuse (Yield from 1 cooked chop, with refuse, weighing 209g)'],['PORK,FRSH,LOIN,CNTR LOIN (ROASTS),BONE-IN,LN,CKD,RSTD',194, '3 oz'],['PORK,FRSH,LOIN,CNTR RIB (CHOPS OR ROASTS),BONE-IN,LN&FAT,RAW',186, '1 chop, without refuse (Yield from 1 raw chop, with refuse, weighing 201g)'],['PORK,FRSH,LOIN,CNTR RIB (CHOPS),BONE-IN,LN&FAT,CKD,BRSD',261, '3 oz'],['PORK,FRSH,LOIN,CNTR RIB (CHOPS),BONE-IN,LN&FAT,CKD,BRLD',222, '1 chop, without refuse (Yield from 1 cooked chop, with refuse, weighing 172g)'],['PORK,FRSH,LOIN,CNTR RIB (ROASTS),BONE-IN,LN&FAT,CKD,RSTD',248, '3 oz'],['PORK,FRSH,LOIN,CNTR RIB (CHOPS OR ROASTS),BONE-IN,LN,RAW',136, '3 oz'],['PORK,FRSH,LOIN,CNTR RIB (CHOPS),BONE-IN,LN,CKD,BRSD',208, '3 oz'],['PORK,FRSH,LOIN,CNTR RIB (CHOPS),BONE-IN,LN,CKD,BRLD',186, '3 oz'],['PORK,FRSH,LOIN,CNTR RIB (ROASTS),BONE-IN,LN,CKD,RSTD',206, '3 oz'],['PORK,FRSH,LOIN,SIRLOIN (CHOPS OR ROASTS),BONE-IN,LN&FAT,RAW',168, '3 oz'],['PORK,FRSH,LOIN,SIRLOIN (CHOPS),BONE-IN,LN&FAT,CKD,BRSD',234, '3 oz'],['PORK,FRSH,LOIN,SIRLOIN (CHOPS),BONE-IN,LN&FAT,CKD,BRLD',222, '3 oz'],['PORK,FRSH,LOIN,SIRLOIN (ROASTS),BONE-IN,LN&FAT,CKD,RSTD',230, '3 oz'],['PORK,FRSH,LOIN,SIRLOIN (CHOPS OR ROASTS),BONE-IN,LN,RAW',129, '3 oz'],['PORK,FRSH,LOIN,SIRLOIN (CHOPS),BONE-IN,LN,CKD,BRSD',195, '3 oz'],['PORK,FRSH,LOIN,SIRLOIN (CHOPS),BONE-IN,LN,CKD,BRLD',174, '3 oz'],['PORK,FRSH,LOIN,SIRLOIN (ROASTS),BONE-IN,LN,CKD,RSTD',204, '3 oz, (Yield from 1 cooked roast, with refuse, weighing 1515g)'],['PORK FRSH LOIN TENDERLOIN LN ONLY RAW',109, '3 oz'],['PORK,FRSH,LOIN,TENDERLOIN,LN,CKD,RSTD',143, '3 oz'],['PORK,FRSH,LOIN,TOP LOIN (CHOPS),BNLESS,LN & FAT,RAW',155, '3 oz'],['PORK,FRSH,LOIN,TOP LOIN (CHOPS),BNLESS,LN & FAT,CKD,BRSD',200, '1 chop'],['PORK,FRSH,LOIN,TOP LOIN (CHOPS),BNLESS,LN & FAT,CKD,BRLD',196, '1 chop'],['PORK,FRSH,LOIN,TOP LOIN (ROASTS),BNLESS,LN&FAT,CKD,RSTD',192, '3 oz'],['PORK,FRSH,LOIN,TOP LOIN (CHOPS),BNLESS,LN,RAW',127, '3 oz'],['PORK,FRSH,LOIN,TOP LOIN (CHOPS),BNLESS,LN,CKD,BRSD',170, '1 chop'],['PORK,FRSH,LOIN,TOP LOIN (CHOPS),BNLESS,LN,CKD,BRLD',173, '1 chop'],['PORK,FRSH,LOIN,TOP LOIN (ROASTS),BNLESS,LN,CKD,RSTD',173, '3 oz'],['PORK,FRSH,SHLDR,WHL,LN&FAT,RAW',236, '1 oz'],['PORK,FRSH,SHLDR,WHL,LN&FAT,CKD,RSTD',292, '1 cup, diced'],['PORK,FRSH,SHLDR,WHL,LN,RAW',148, '1 oz'],['PORK,FRSH,SHLDR,WHL,LN,CKD,RSTD',230, '1 cup, diced'],['PORK,FRSH,SHLDR,ARM PICNIC,LN&FAT,RAW',193, '3 oz'],['PORK,FRSH,SHLDR,ARM PICNIC,LN&FAT,CKD,BRSD',235, '3 oz'],['PORK,FRSH,SHLDR,ARM PICNIC,LN&FAT,CKD,RSTD',317, '1 cup, diced'],['PORK,FRSH,SHLDR,ARM PICNIC,LN,RAW',120, '3 oz'],['PORK,FRSH,SHLDR,ARM PICNIC,LN,CKD,BRSD',194, '3 oz'],['PORK,FRSH,SHLDR,ARM PICNIC,LN,CKD,RSTD',228, '3 oz'],['PORK,FRSH,SHLDR,(BOSTON BUTT),BLADE (STEAKS),LN & FAT,RAW',186, '3 oz'],['PORK,FRSH,SHLDR,(BOSTON BUTT),BLADE (STKS),LN & FAT,CKD,BRSD',267, '3 oz'],['PORK,FRSH,SHLDR,BLADE,BOSTON (STEAKS),LN&FAT,CKD,BRLD',259, '3 oz'],['PORK,FRSH,SHLDR,BLADE,BOSTON (ROASTS),LN&FAT,CKD,RSTD',269, '3 oz'],['PORK,FRSH,SHLDR,(BOSTON BUTT),BLADE (STEAKS),LN,RAW',132, '3 oz'],['PORK,FRSH,SHLDR,(BOSTON BUTT),BLADE (STEAKS),LN,CKD,BRSD',233, '3 oz'],['PORK,FRSH,SHLDR,BLADE,BOSTON (STEAKS),LN,CKD,BRLD',227, '3 oz'],['PORK,FRSH,SHLDR,BLADE,BOSTON (ROASTS),LN,CKD,RSTD',232, '3 oz'],['PORK,FRSH,SPARERIBS,LN&FAT,RAW',277, '3 oz'],['PORK,FRSH,SPARERIBS,LN&FAT,CKD,BRSD',397, '3 oz'],['PORK,FRSH,COMP OF RTL CUTS (LEG,LOIN,&SHLDR),LN,CKD',201, '3 oz'],['PORK,FRSH,LOIN,CNTR LOIN (CHOPS),BNLESS,LN,RAW',123, '1 chop'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,BRAIN,RAW',127, '1 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,BRAIN,CKD,BRSD',138, '3 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,CHITTERLINGS,RAW',182, '1 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,CHITTERLINGS,CKD,SIMMRD',233, '3 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,EARS,FRZ,RAW',234, '1 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,EARS,FRZ,CKD,SIMMRD',166, '1 ear, (yield after cooking)'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,FEET,RAW',212, '1 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,HEART,RAW',118, '1 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,HEART,CKD,BRSD',148, '1 cup'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,JOWL,RAW',655, '1 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,KIDNEYS,RAW',100, '1 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,KIDNEYS,CKD,BRSD',151, '1 cup'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,LEAF FAT,RAW',857, '1 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,LIVER,RAW',134, '1 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,LIVER,CKD,BRSD',165, '3 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,LUNGS,RAW',85, '1 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,LUNGS,CKD,BRSD',99, '3 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,MECHANICALLY SEPARATED,RAW',304, '1 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,PANCREAS,RAW',199, '1 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,PANCREAS,CKD,BRSD',219, '3 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,SPLEEN,RAW',100, '1 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,SPLEEN,CKD,BRSD',149, '3 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,STOMACH,RAW',159, '1 oz'],['PORK,FRSH,LOIN,BLADE (CHOPS),BONE-IN,LN,CKD,PAN-FRIED',222, '3 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,TONGUE,RAW',225, '1 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,TONGUE,CKD,BRSD',271, '3 oz'],['PORK,CURED,BACON,UNPREP',417, '1 slice, raw'],['PORK,CURED,BRKFST STRIPS,RAW OR UNHTD',388, '3 oz'],['PORK,CURED,BRKFST STRIPS,CKD',459, '3 oz'],['CANADIAN BACON,UNPREP',111, '3 oz'],['PORK,CURED,CANADIAN-STYLE BACON,GRILLED',185, '1 package, (6 oz) yields'],['PORK,CURED,FEET,PICKLED',140, '1 oz'],['PORK,CURED,HAM,BNLESS,EX LN (APPROX 5% FAT),RSTD',145, '1 cup'],['PORK,CURED,HAM,BNLESS,REG (APPROX 11% FAT),RSTD',178, '1 cup'],['PORK,CURED,HAM,EX LN (APPROX 4% FAT),CND,UNHTD',120, '1 cup'],['PORK,CURED,HAM,EX LN (APPROX 4% FAT),CND,RSTD',136, '1 cup'],['PORK,CURED,HAM,REG (APPROX 13% FAT),CND,RSTD',226, '1 cup'],['PORK,CURED,HAM,CNTR SLICE,COUNTRY-STYLE,LN,RAW',195, '1 oz'],['PORK,CURED,HAM,CNTR SLICE,LN&FAT,UNHTD',203, '1 oz'],['PORK,CURED,HAM,PATTIES,UNHTD',315, '1 oz'],['PORK,CURED,HAM,STEAK,BNLESS,EX LN,UNHTD',122, '1 oz'],['PORK,CURED,HAM,WHL,LN&FAT,UNHTD',246, '1 cup'],['PORK,CURED,HAM,WHL,LN,UNHTD',147, '1 cup'],['PORK,CURED,HAM,WHL,LN,RSTD',157, '1 cup'],['USDA CMDTY,PORK,CND',196, '3 oz'],['PORK,FRSH,LOIN,CNTR LOIN (CHOPS),BNLESS,LN,CKD,PAN-BROILED',162, '1 chop'],['PORK,FRSH,LOIN,CNTR LOIN (CHOPS),BNLESS,LN & FAT,RAW',201, '1 chop'],['PORK,CURED,SALT PORK,RAW',748, '1 oz'],['PORK,CURED,FAT (FROM HAM&ARM PICNIC),UNHTD',579, '1 oz'],['PORK,CURED,FAT (FROM HAM&ARM PICNIC),RSTD',591, '1 oz'],['PORK,CURED,SHLDR,ARM PICNIC,LN&FAT,RSTD',280, '1 cup'],['PORK,CURED,SHLDR,ARM PICNIC,LN,RSTD',170, '1 cup'],['PORK,CURED,SHLDR,BLADE ROLL,LN&FAT,UNHTD',269, '1 oz'],['PORK,CURED,SHLDR,BLADE ROLL,LN&FAT,RSTD',287, '3 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,FEET,CKD,SIMMRD',238, '3 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,TAIL,RAW',378, '1 oz'],['PORK,FRSH,VAR MEATS&BY-PRODUCTS,TAIL,CKD,SIMMRD',396, '3 oz'],['PORK,FRSH,LOIN,CNTR LOIN (CHOPS),BONE-IN,LN,CKD,PAN-FRIED',195, '3 oz'],['PORK,FRSH,LOIN,CNTR RIB (CHOPS),BONE-IN,LN,CKD,PAN-FRIED',211, '3 oz'],['PORK,FRSH,LOIN,BLADE (CHOPS),BONE-IN,LN&FAT,CKD,PAN-FRIED',256, '3 oz'],['PORK,FRSH,LOIN,CNTR LOIN CHOPS,BONE-IN,LN&FAT,CKD,PAN-FRIED',238, '3 oz'],['PORK,FRSH,LOIN,CNTR RIB (CHOPS),BONE-IN,LN&FAT,CKD,PAN-FRIED',256, '3 oz'],['PORK,FRSH,LOIN,TOP LOIN (CHOPS),BNLESS,LN,CKD,PAN-FRIED',172, '1 chop'],['PORK,CURED,HAM,BNLESS,EX LN&REG,UNHTD',162, '1 cup'],['PORK,CURED,HAM,BNLESS,EX LN&REG,RSTD',165, '1 cup'],['PORK,CURED,HAM,EX LN&REG,CND,UNHTD',144, '1 cup'],['PORK,CURED,HAM,EX LN&REG,CND,RSTD',167, '1 cup'],['PORK,FRSH,LOIN,TOP LOIN (CHOPS),BNLESS,LN&FAT,CKD,PAN-FRIED',196, '1 chop'],['PORK,FRSH,COMP (LEG,LOIN,SHLDR,&SPARERIBS),LN&FAT,RAW',216, '1 oz'],['PORK,FRSH,COMP (LEG,LOIN,SHLDR,&SPARERIBS),LN&FAT,CKD',238, '3 oz'],['PORK,FRSH,LOIN,CNTR LON (CHPS),BNLESS,LN & FAT,CKD,PAN-BRLED',229, '1 chop'],['PORK,FRSH,BACKRIBS,LN&FAT,RAW',224, '3 oz'],['PORK,FRSH,BACKRIBS,LN&FAT,CKD,RSTD',292, '3 oz'],['PORK,FRSH,LOIN,CNTR RIB (CHOPS OR ROASTS),BNLESS,LN&FAT,RAW',211, '3 oz'],['PORK,FRSH,LOIN,CNTR RIB (CHOPS),BNLESS,LN&FAT,CKD,BRSD',255, '3 oz'],['PORK,FRSH,LOIN,CNTR RIB (CHOPS),BNLESS,LN&FAT,CKD,BRLD',260, '3 oz'],['PORK,FRSH,LOIN,CNTR RIB (CHOPS),BNLESS,LN&FAT,CKD,PAN-FRIED',273, '3 oz'],['PORK,FRSH,LOIN,CNTR RIB (ROASTS),BNLESS,LN&FAT,CKD,RSTD',252, '3 oz'],['PORK,FRSH,LOIN,CNTR RIB (CHOPS OR ROASTS),BNLESS,LN,RAW',152, '3 oz'],['PORK,FRSH,LOIN,CNTR RIB (CHOPS),BNLESS,LN,CKD,BRSD',211, '3 oz'],['PORK,FRSH,LOIN,CNTR RIB (CHOPS),BNLESS,LN,CKD,BRLD',216, '3 oz'],['PORK,FRSH,LOIN,CNTR RIB (CHOPS),BNLESS,LN,CKD,PAN-FRIED',224, '3 oz'],['PORK,FRSH,LOIN,CNTR RIB (ROASTS),BNLESS,LN,CKD,RSTD',214, '3 oz'],['PORK,FRSH,LOIN,COUNTRY-STYLE RIBS,LN&FAT,RAW',189, '1 rib, without refuse (Yield from 1 raw rib, with refuse, weighing 196g)'],['PORK,FRSH,LOIN,COUNTRY-STYLE RIBS,LN&FAT,CKD,BRSD',273, '1 rib, without refuse (Yield from 1 cooked rib, with refuse, weighing 140g)'],['PORK,FRSH,LOIN,COUNTRY-STYLE RIBS,LN & FAT,BONE-IN,CKD,RSTD',359, '1 rack'],['PORK,FRSH,LOIN,COUNTRY-STYLE RIBS,LN,RAW',140, '3 oz'],['PORK,FRSH,LOIN,COUNTRY-STYLE RIBS,LN,CKD,BRSD',247, '1 rib, without refuse (yield from 1 cooked rib, with refuse, weighing 141g)'],['PORK,FRSH,LOIN,COUNTRY-STYLE RIBS,LN,BONE-IN,CKD,RSTD',227, '1 rack'],['PORK,FRSH,LOIN,SIRLOIN (CHOPS OR ROASTS),BNLESS,LN&FAT,RAW',133, '3 oz'],['PORK,FRSH,LOIN,SIRLOIN (CHOPS),BNLESS,LN&FAT,CKD,BRSD',171, '3 oz'],['PORK,FRSH,LOIN,SIRLOIN (CHOPS),BNLESS,LN&FAT,CKD,BRLD',170, '3 oz'],['PORK,FRSH,LOIN,SIRLOIN (ROASTS),BNLESS,LN&FAT,CKD,RSTD',192, '3 oz'],['PORK,FRSH,LOIN,SIRLOIN (CHOPS OR ROASTS),BNLESS,LN,RAW',121, '3 oz'],['PORK,FRSH,LOIN,SIRLOIN (CHOPS),BNLESS,LN,CKD,BRSD',163, '3 oz'],['PORK,FRSH,LOIN,SIRLOIN (CHOPS),BNLESS,LN,CKD,BRLD',161, '3 oz'],['PORK,FRSH,LOIN,SIRLOIN (ROASTS),BNLESS,LN,CKD,RSTD',178, '3 oz'],['PORK,FRSH,LOIN,TENDERLOIN,LN&FAT,RAW',120, '3 oz'],['PORK,FRESH,GROUND,RAW',263, '1 oz'],['PORK,FRESH,GROUND,COOKED',297, '3 oz'],['PORK,FRSH,LOIN,TENDERLOIN,LN&FAT,CKD,BRLD',201, '3 oz'],['PORK,FRSH,LOIN,TENDERLOIN,LN&FAT,CKD,RSTD',147, '3 oz'],['PORK,FRSH,LOIN,TENDERLOIN,LN,CKD,BRLD',187, '3 oz'],['PORK,FRSH,LOIN,TOP LOIN (ROASTS),BNLESS,LN&FAT,RAW',166, '3 oz'],['PORK,FRSH,LOIN,TOP LOIN (ROASTS),BNLESS,LN,RAW',132, '3 oz'],['PORK,FRSH,COMP OF RTL CUTS (LOIN & SHLDR BLADE),LN & FAT,RAW',177, '1 oz'],['PORK,FRSH,COMP OF RTL CUTS (LOIN&SHLDR BLADE),LN&FAT,CKD',235, '3 oz'],['PORK,FRSH,COMP OF RTL CUTS (LOIN&SHLDR BLADE),LN,RAW',144, '1 oz'],['PORK,FRSH,COMP OF RTL CUTS (LOIN&SHLDR BLADE),LN,CKD',211, '3 oz'],['USDA COMMODITY,PORK,CURED,HAM,BNLESS,CKD,HTD',149, '1 oz, boneless'],['USDA COMMODITY,PORK,GROUND,FINE/COARSE,FRZ,CKD',265, '1 oz, grilled patties'],['USDA COMMODITY,PORK,CURED,HAM,BNLESS,CKD,UNHTD',133, '1 oz, boneless'],['USDA COMMODITY,PORK,GROUND,FINE/COARSE,FRZ,RAW',221, '1 oz, crumbles'],['HORMEL,CURE 81 HAM',106, '1 serving'],['HORMEL ALWAYS TENDER,PORK TENDERLOIN,TERIYAKI-FLAVORED',119, '4 oz'],['HORMEL ALWAYS TENDER,PORK TENDERLOIN,PEPPERCORN-FLAVORED',110, '4 oz'],['HORMEL ALWAYS TENDER,PORK LOIN FILETS,LEMON GARLIC-FLAVORED',118, '1 oz'],['HORMEL ALWAYS TENDER,CNTR CUT CHOPS,FRSH PORK',167, '1 oz'],['HORMEL ALWAYS TENDER,BNLESS PORK LOIN,FRSH PORK',145, '1 oz'],['HORMEL CANADIAN STYLE BACON',122, '1 serving'],['PORK,FRSH,LOIN,TOP LOIN (CHOPS),BNLESS,ENH,LN,CKD,PAN-BROIL',169, '1 chop, boneless'],['PRK,FRSH,TOP LOIN (CHPS),BNLESS,ENHCD,LN & FAT,CKD,PAN-BRLD',190, '1 chop, boneless (yield from 189g raw meat)'],['PORK,CURED,BACON,CKD,BKD',548, '1 slice, cooked'],['PORK,CURED,BACON,CKD,MICROWAVED',476, '1 slice, cooked'],['PORK,CURED,BACON,PRE-SLICED,CKD,PAN-FRIED',468, '1 slice'],['PORK,FRSH,VAR MEATS & BY-PRODUCTS,STOMACH,CKD,SIMMRD',157, '3 oz'],['PORK,BACON,RENDERED FAT,CKD',898, '3 oz'],['PORK,CURED,HAM -- H2O ADDED,RUMP,BONE-IN,LN,HTD,RSTD',121, '1 serving, (3 oz)'],['PORK,CURED,HAM -- H2O ADDED,RUMP,BONE-IN,LN,UNHTD',95, '3 oz'],['PORK,CURED,HAM -- H2O ADDED,SHANK,BONE-IN,LN,HTD,RSTD',128, '1 serving, (3 oz)'],['PORK,CURED,HAM -- H2O ADDED,SLICE,BONE-IN,LN,HTD,PAN-BROIL',131, '1 serving, (3 oz)'],['PORK,CURED,HAM & H2O PRODUCT,SLICE,BONE-IN,LN,HTD,PAN-BROIL',122, '1 serving, (3 oz)'],['PORK,CURED,HAM & H2O PRODUCT,SLICE,BNLESS,LN,HTD,PAN-BROIL',123, '1 slice'],['PORK,CURED,HAM & H2O PRODUCT,WHL,BNLESS,LN,HTD,RSTD',123, '1 serving, (3 oz)'],['PORK,CURED,HAM & H2O PRODUCT,WHL,BNLESS,LN,UNHTD',116, '3 oz'],['PORK,CURED,HAM W/ NAT JUICES,RUMP,BONE-IN,LN,HTD,RSTD',137, '1 serving, (3 oz)'],['PORK,CURED,HAM W/ NAT JUICES,SHANK,BONE-IN,LN,HTD,RSTD',145, '1 serving, (3 oz)'],['PORK,CURED,HAM W/ NAT JUICES,SLICE,BONE-IN,LN,HTD,PAN-BROIL',150, '1 serving, (3 oz)'],['PRK,CRD,HAM W/ NAT JUCS,SPRL SLC,MEAT ONLY,BNLES,LN,HTD,RSTD',126, '1 slice'],['PORK,CURED,HAM & H2O PRODUCT,RUMP,BONE-IN,LN,HTD,RSTD',131, '1 serving, (3 oz)'],['PORK,CURED,HAM -- H2O ADDED,SLICE,BNLESS,LN,HTD,PAN-BROIL',119, '1 serving, (3 oz)'],['PORK,CURED,HAM -- H2O ADDED,WHL,BNLESS,LN,HTD,RSTD',117, '3 oz'],['PORK,CURED,HAM -- H2O ADDED,WHL,BNLESS,LN,UNHTD',110, '3 oz'],['PORK,CURED,HAM & H2O PRODUCT,SHANK,BONE-IN,LN,HTD,RSTD',132, '1 serving, (3 oz)'],['PORK,CURED,HAM W/ NAT JUICES,SLICE,BNLESS,LN,HTD,PAN-BROIL',116, '1 serving, (3 oz)'],['PORK,CURED,HAM W/ NAT JUICES,WHL,BNLESS,LN,HTD,RSTD',113, '1 serving, (3 oz)'],['PORK,CURED,HAM W/ NAT JUICES,WHL,BNLESS,LN,UNHTD',110, '1 oz'],['PORK,CURED,HAM -- H2O ADDED,SHANK,BONE-IN,LN,UNHTD',91, '3 oz'],['PORK,CURED,HAM -- H2O ADDED,SLICE,BONE-IN,LN,UNHTD',95, '3 oz'],['PORK,CURED,HAM & H2O PRODUCT,RUMP,BONE-IN,LN,UNHTD',107, '1 oz'],['PORK,CURED,HAM & H2O PRODUCT,SLICE,BONE-IN,LN,UNHTD',103, '3 oz'],['PORK,CURED,HAM & H2O PRODUCT,SHANK,BONE-IN,UNHTD,LN',113, '3 oz'],['PORK,CURED,HAM W/ NAT JUICES,RUMP,BONE-IN,LN,UNHTD',122, '3 oz'],['PORK,CURED,HAM W/ NAT JUICES,SHANK,BONE-IN,LN,UNHTD',130, '3 oz'],['PORK,CURED,HAM W/ NAT JUICES,SLICE,BONE-IN,LN,UNHTD',123, '3 oz'],['PORK,CURED,HAM W/ NAT JUICES,SPIRAL SLICE,BNLESS,LN,UNHTD',109, '1 oz, spiral slice'],['PORK,CURED,HAM,FAT,BNLESS,HTD',507, '3 oz'],['PORK,CURED,HAM,FAT,BNLESS,UNHTD',515, '4 oz'],['PORK,PICKLED PORK HOCKS',171, '3 oz'],['PORK,CURED,HAM,SLICE,BONE-IN,LN,HTD,PAN-BROIL',148, '1 serving, (3 oz)'],['PORK,CURED,HAM W/ NAT JUICES,WHL,BNLESS,LN & FAT,UNHTD',112, '1 oz, whole'],['PORK,CURED,HAM W/ NAT JUICES,SPIRL SLCE,BNLES,LN & FAT,UNHTD',129, '1 oz, spiral slice'],['PORK,CURED,HAM W/ NAT JUICES,SLICE,BONE-IN,LN & FAT,UNHTD',159, '3 oz'],['PORK,CURED,HAM W/ NAT JUICES,SHANK,BONE-IN,LN & FAT,UNHTD',191, '1 oz, shank'],['PORK,CURED,HAM W/ NAT JUICES,RUMP,BONE-IN,LN & FAT,UNHTD',200, '1 oz, rump'],['PORK,CURED,HAM & H2O PRODUCT,WHL,BNLESS,LN & FAT,UNHTD',117, '1 oz, whole'],['PORK,CURED,HAM & H2O PRODUCT,SLICE,BONE-IN,LN & FAT,UNHTD',149, '1 oz'],['PORK,CURED,HAM & H2O PRODUCT,SHANK,BONE-IN,LN & FAT,UNHTD',243, '1 oz, shank'],['PORK,CURED,HAM & H2O PRODUCT,RUMP,BONE-IN,LN & FAT,UNHTD',179, '1 oz, rump'],['PORK,CURED,HAM -- H2O ADDED,WHL,BNLESS,LN & FAT,UNHTD',121, '1 oz, whole'],['PORK,CURED,HAM -- H2O ADDED,SLICE,BONE-IN,LN & FAT,UNHTD',164, '1 oz'],['PORK,CURED,HAM -- H2O ADDED,SHANK,BONE-IN,LN & FAT,UNHTD',167, '1 oz'],['PORK,CURED,HAM -- H2O ADDED,RUMP,BONE-IN,LN & FAT,UNHTD',172, '1 oz'],['PORK,CURED,HAM -- H2O ADDED,RUMP,BONE-IN,LN & FAT,HTD,RSTD',161, '1 serving, (3 oz)'],['PORK,CURED,HAM -- H2O ADDED,SHANK,BONE-IN,LN & FAT,HTD,RSTD',200, '1 serving, (3 oz)'],['PORK,CURED,HAM -- H2O ADDED,SLCE,BNE-IN,LN & FAT,HTD,PAN-BRL',166, '1 serving, (3 oz)'],['PORK,CURED,HAM -- H2O ADDED,SLCE,BNLESS,LN & FAT,HTD,PAN-BRL',125, '1 serving, (3 oz)'],['PORK,CURED,HAM -- H2O ADDED,WHL,BNLESS,LN & FAT,HTD,RSTD',126, '1 serving, (3 oz)'],['PORK,CURED,HAM & H2O PRODUCT,RUMP,BONE-IN,LN & FAT,HTD,RSTD',186, '1 serving, (3 oz)'],['PORK,CURED,HAM & H2O PRODUCT,SHANK,BONE-IN,LN & FAT,HTD,RSTD',234, '1 serving, (3 oz)'],['PORK,CURED,HAM & H2O PRDCT,SLCE,BNE-IN,LN & FAT,HTD,PAN-BRL',155, '1 serving, (3 oz)'],['PORK,CURED,HAM & H2O PRDCT,SLICE,BNLESS,LN & FAT,HTD,PAN-BRL',124, '1 slice'],['PORK,CURED,HAM & H2O PRODUCT,WHL,BNLESS,LN & FAT,HTD,RSTD',123, '1 serving, (3 oz)'],['PORK,CURED,HAM W/ NAT JUICES,RUMP,BONE-IN,LN & FAT,HTD,RSTD',177, '1 serving, (3 oz)'],['PORK,CURED,HAM W/ NAT JUICES,SHANK,BONE-IN,LN & FAT,HTD,RSTD',191, '1 serving, (3 oz)'],['PORK,CURED,HAM W/ NAT JUICS,SLCE,BNE-IN,LN & FAT,HTD,PAN-BRL',180, '1 serving, (3 oz)'],['PORK,CURED,HAM W/ NAT JUICS,SLICE,BNLES,LN & FAT,HTD,PAN-BRL',118, '1 serving, (3 oz)'],['PORK,CURED,HAM W/ NAT JUCS,SPRL SLCE,BNLES,LN & FAT,HTD,RSTD',139, '1 slice'],['PORK,CURED,HAM W/ NAT JUICES,WHL,BNLESS,LN & FAT,HTD,RSTD',114, '1 serving, (3 oz)'],['PORK,CURED,HAM,RUMP,BONE-IN,LN & FAT,HTD,RSTD',177, '1 serving, (3 oz)'],['PORK,CURED,HAM,RUMP,BONE-IN,LN,HTD,RSTD',132, '1 serving, (3 oz)'],['PORK,CURED,HAM,RUMP,BONE-IN,LN,UNHTD',125, '1 oz'],['PORK,CURED,HAM,SHANK,BONE-IN,LN,HTD,RSTD',139, '1 serving, (3 oz)'],['PORK,CURED,HAM,SHANK,BONE-IN,LN,UNHTD',125, '1 oz'],['PORK,CURED,HAM,SHANK,BONE-IN,LN & FAT,HTD,RSTD',191, '1 serving, (3 oz)'],['PORK,CURED,HAM,SHANK,BONE-IN,LN & FAT,UNHTD',177, '1 oz'],['PORK,CURED,HAM,SLICE,BONE-IN,LN & FAT,HTD,PAN-BROIL',180, '1 serving, (3 oz)'],['PORK,CURED,HAM,SLICE,BONE-IN,LN,UNHTD',130, '1 serving, (3 oz)'],['PORK,CURED,HAM,SLICE,BONE-IN,LN & FAT,UNHTD',173, '1 serving, (3 oz)'],['PORK,FRSH,SPARERIBS,LN & FAT,CKD,RSTD',361, '3 oz'],['PORK,FRSH,ENHANCED,COMP OF FAT,RAW',508, '1 oz'],['PORK,FRSH,ENHANCED,LOIN,TENDERLOIN,LN,CKD,RSTD',116, '3 oz'],['PORK,FRSH,ENHANCED,LOIN,TENDERLOIN,LN,RAW',106, '3 oz'],['PORK,FRSH,ENHCED,SHLDR,(BOSTON BUTT),BLDE (STKS),LN,CKD,BRSD',227, '3 oz'],['PORK,FRSH,ENHANCED,SHLDR,(BOSTON BUTT),BLADE (STEAKS),LN,RAW',122, '3 oz'],['PORK,FRSH,ENHANCED,LOIN,TOP LOIN (CHOPS),BNLESS,LN,CKD,BRLD',170, '1 chop'],['PORK,FRSH,ENHANCED,LOIN,TOP LOIN (CHOPS),BNLESS,LN,RAW',117, '1 chop'],['PORK,FRSH,ENHANCED,LOIN,TOP LOIN (CHOPS),BNLESS,LN & FAT,RAW',171, '1 chop'],['PORK,FRSH,ENHCD,LN,TOP LOIN (CHOPS),BNLESS,LN & FAT,CKD,BRLD',198, '1 chop'],['PORK,FRSH,ENHANCED,LOIN,TENDERLOIN,LN & FAT,RAW',114, '3 oz'],['PORK,FRSH,ENHANCED,LOIN,TENDERLOIN,LN & FAT,CKD,RSTD',121, '3 oz'],['PORK,FRSH,ENHCD,SHLDR,(BOSTON BUTT),BLDE (STKS),LN & FAT,RAW',169, '3 oz'],['PORK,FRSH,ENHCED,SHLDR,(BSTN BUTT),BLDE(STKS),LN&FAT,BRSD',263, '3 oz'],['PORK,CURED,HAM,RUMP,BONE-IN,LN & FAT,UNHTD',176, '3 oz'],['PORK,LOIN,LEG CAP STEAK,BNLESS,LN & FAT,CKD,BRLD',158, '3 oz'],['PORK,LEG CAP STEAK,BNLESS,LN & FAT,RAW',123, '3 oz'],['PORK,SHLDR BREAST,BNLESS,LN & FAT,RAW',127, '3 oz'],['PORK,SHLDR BREAST,BNLESS,LN & FAT,CKD,BRLD',162, '3 oz'],['PORK,SHLDR,PETITE TENDER,BNLESS,LN & FAT,CKD,BRLD',155, '1 piece'],['PORK,SHLDR PETITE TENDER,BNLESS,LN & FAT,RAW',128, '1 piece'],['PORK,LEG SIRLOIN TIP RST,BNLESS,LN & FAT,CKD,BRSD',156, '3 oz'],['PORK,LEG SIRLOIN TIP RST,BNLESS,LN & FAT,RAW',113, '3 oz'],['PORK,GROUND,84% LN / 16% FAT,RAW',218, '4 oz'],['PORK,GROUND,96% LN / 4% FAT,RAW',121, '4 oz'],['PORK,GROUND,72% LN / 28% FAT,CKD,CRUMBLES',393, '4 oz'],['PORK,GROUND,84% LN / 16% FAT,CKD,CRUMBLES',289, '3 oz, grilled patties'],['PORK,GROUND,96% LN / 4% FAT,CKD,CRUMBLES',187, '3 oz, grilled patties'],['PORK,GROUND,72% LN / 28% FAT,CKD,PAN-BROILED',377, '3 oz, grilled patties'],['PORK,GROUND,84% LN / 16% FAT,CKD,PAN-BROILED',301, '3 oz, grilled patties'],['PORK,GROUND,96% LN / 4% FAT,CKD,PAN-BROILED',185, '3 oz, grilled patties'],['PORK LOIN,FRSH,BACKRIBS,BONE-IN,RAW,LN',172, '1 ribs'],['PORK LOIN,FRSH,BACKRIBS,BONE-IN,COOKED-ROASTED,LN',255, '3 oz'],['PORK,FRSH,LOIN,BLADE (CHOPS OR ROASTS),BNLESS,LN,RAW',123, '3 oz'],['PORK,FRSH,LOIN,BLADE (ROASTS),BNLESS,LN,CKD,RSTD',175, '3 oz'],['PORK,FRSH,LOIN,BLADE (CHOPS),BNLESS,LN,BNLESS,CKD,BRLD',169, '3 oz'],['PORK,FRSH,LOIN,COUNTRY-STYLE RIBS,LN,BNLESS,CKD,BRLD',216, '1 rack'],['PORK,FRSH,LOIN,COUNTRY-STYLE RIBS,LN,BONE-IN,CKD,BRLD',216, '1 rack'],['PORK,FRSH,LOIN,COUNTRY-STYLE RIBS,LN,BNLESS,CKD,RSTD',219, '1 rack'],['PORK,FRSH,BLADE,(CHOPS),BNLESS,LN & FAT,CKD,BRLD',202, '1 chop'],['PORK,FRSH,LOIN,BLDE (CHOPS OR ROAST),BNLESS,LN & FAT OLY,RAW',157, '3 oz'],['PORK,FRSH,LOIN,BLADE (ROASTS),BNLESS,LN & FAT,CKD,RSTD',199, '3 oz'],['PORK,FRSH,LOIN,COUNTRY-STYLE RIBS,LN & FAT,BNLESS,CKD,BRLD',247, '1 rack'],['PORK,FRSH,LOIN,COUNTRY-STYLE RIBS,LN & FAT,BONE-IN,CKD,BRLD',260, '1 rack'],['PORK,FRSH,LOIN,COUNTRY-STYLE RIBS,LN & FAT,BNLESS,CKD,RSTD',270, '1 rack'],['BACON,PRE-SLICED,REDUCED/LOW NA,UNPREP',407, '1 slice'],['CANADIAN BACON,CKD,PAN-FRIED',146, '1 slice'],['ALFALFA SEEDS,SPROUTED,RAW',23, '1 cup'],['AMARANTH LEAVES,RAW',23, '1 cup'],['AMARANTH LEAVES,CKD,BLD,DRND,WO/SALT',21, '1 cup'],['ARROWHEAD,RAW',99, '1 large'],['ARROWHEAD,CKD,BLD,DRND,WO/SALT',78, '1 medium'],['ARTICHOKES,(GLOBE OR FRENCH),RAW',47, '1 artichoke, medium'],['ARTICHOKES,(GLOBE OR FRENCH),CKD,BLD,DRND,WO/SALT',53, '1 artichoke, medium'],['ARTICHOKES,(GLOBE OR FRENCH),FRZ,UNPREP',38, '.33 package'],['ARTICHOKES,(GLOBE OR FRENCH),FRZ,CKD,BLD,DRND,WO/SALT',45, '1 cup'],['ASPARAGUS,RAW',20, '1 cup'],['ASPARAGUS,CKD,BLD,DRND',22, '.5 cup'],['ASPARAGUS,CND,REG PK,SOL&LIQUIDS',15, '.5 cup'],['ASPARAGUS,CND,DRND SOL',19, '1 cup'],['ASPARAGUS,FRZ,UNPREP',24, '4 spears'],['ASPARAGUS,FRZ,CKD,BLD,DRND,WO/SALT',18, '1 cup'],['BALSAM-PEAR (BITTER GOURD),LEAFY TIPS,RAW',30, '1 leaf'],['BALSAM-PEAR (BITTER GOURD),LEAFY TIPS,CKD,BLD,DRND,WO/SALT',34, '1 cup'],['BALSAM-PEAR (BITTER GOURD),PODS,RAW',17, '1 cup, (1/2 pieces)'],['BALSAM-PEAR (BITTER GOURD),PODS,CKD,BLD,DRND,WO/SALT',19, '1 cup, (1/2 pieces)'],['BAMBOO SHOOTS,RAW',27, '1 cup, (1/2 slices)'],['BAMBOO SHOOTS,CKD,BLD,DRND,WO/SALT',12, '1 cup, (1/2 slices)'],['BAMBOO SHOOTS,CND,DRND SOL',19, '1 cup, (1/8 slices)'],['BEANS,KIDNEY,MATURE SEEDS,SPROUTED,RAW',29, '1 cup'],['BEANS,KIDNEY,MATURE SEEDS,SPROUTED,CKD,BLD,DRND,WO/SALT',33, ''],['LIMA BNS,IMMAT SEEDS,RAW',113, '1 cup'],['LIMA BNS,IMMAT SEEDS,CKD,BLD,DRND,WO/SALT',123, '1 cup'],['BEANS,LIMA,IMMAT SEEDS,CND,REG PK,SOL&LIQUIDS',71, '.5 cup'],['LIMA BNS,IMMAT SEEDS,FRZ,FORDHOOK,UNPREP',106, '1 cup'],['LIMA BNS,IMMAT SEEDS,FRZ,FORDHOOK,CKD,BLD,DRND,WO/SALT',103, '1 cup'],['LIMA BNS,IMMAT SEEDS,FRZ,BABY,UNPREP',132, '1 cup'],['LIMA BNS,IMMAT SEEDS,FRZ,BABY,CKD,BLD,DRND,WO/SALT',105, '1 cup'],['MUNG BNS,MATURE SEEDS,SPROUTED,RAW',30, '1 cup'],['MUNG BNS,MATURE SEEDS,SPROUTED,CKD,BLD,DRND,WO/SALT',21, '1 cup'],['MUNG BNS,MATURE SEEDS,SPROUTED,CKD,STIR-FRIED',50, '1 cup'],['BEANS,NAVY,MATURE SEEDS,SPROUTED,RAW',67, '1 cup'],['BEANS,NAVY,MATURE SEEDS,SPROUTED,CKD,BLD,DRND,WO/SALT',78, ''],['BEANS,PINTO,IMMAT SEEDS,FRZ,UNPREP',170, '.333 package, (10 oz)'],['BEANS,PINTO,IMMAT SEEDS,FRZ,CKD,BLD,DRND,WO/SALT',162, '.333 package, (10 oz) yields'],['BEANS,SHELLIE,CND,SOL & LIQUIDS',30, '1 cup'],['BEANS,SNAP,GREEN,RAW',31, '1 cup, 1/2 pieces'],['BEANS,SNAP,GRN,CKD,BLD,DRND,WO/SALT',35, '1 cup'],['BEANS,SNAP,GRN VAR,CND,REG PK,SOL&LIQUIDS',15, '1 cup'],['BEANS,SNAP,GRN,CND,REG PK,DRND SOL',22, '1 cup'],['BEANS,SNAP,CND,ALL STYLES,SEASONED,SOL&LIQUIDS',16, '.5 cup'],['BEANS,SNAP,GRN,FRZ,ALL STYLES,UNPREP',39, '1 cup'],['BEANS,SNAP,GRN,FRZ,CKD,BLD,DRND WO/SALT',28, '1 cup'],['BEANS,SNAP,GRN,FRZ,ALL STYLES,MICROWAVED',40, '1 cup'],['BEANS,SNAP,GRN,MICROWAVED',39, '1 cup, 1/2 pieces'],['BEETS,RAW',43, '1 cup'],['BEETS,CKD,BLD,DRND',44, '.5 cup, slices'],['BEETS,CND,REG PK,SOL&LIQUIDS',30, '1 cup'],['BEETS,CND,DRND SOL',31, '1 cup, diced'],['BEET GREENS,RAW',22, '1 cup'],['BEET GRNS,CKD,BLD,DRND,WO/SALT',27, '1 cup, (1 pieces)'],['BROADBEANS,IMMAT SEEDS,RAW',72, '1 cup'],['BROADBEANS,IMMAT SEEDS,CKD,BLD,DRND,WO/SALT',62, ''],['BROCCOLI,RAW',34, '1 cup, chopped'],['BROCCOLI,CKD,BLD,DRND,WO/SALT',35, '.5 cup, chopped'],['BROCCOLI,FRZ,CHOPD,UNPREP',26, '1 cup'],['BROCCOLI,FRZ,CHOPD,CKD,BLD,DRND,WO/SALT',28, '1 cup'],['BROCCOLI,FRZ,SPEARS,UNPREP',29, '.33 package, (10 oz)'],['BROCCOLI,FRZ,SPEARS,CKD,BLD,DRND,WO/SALT',28, '.5 cup'],['BROCCOLI RAAB,RAW',22, '1 cup, chopped'],['BROCCOLI RAAB,CKD',33, '1 NLEA serving'],['BRUSSELS SPROUTS,RAW',43, '1 cup'],['BRUSSELS SPROUTS,CKD,BLD,DRND,WO/SALT',36, '1 sprout'],['BRUSSELS SPROUTS,FRZ,UNPREP',41, '.33 package, (10 oz)'],['BRUSSELS SPROUTS,FRZ,CKD,BLD,DRND,WO/SALT',42, '1 cup'],['BURDOCK ROOT,RAW',72, '1 cup, (1 pieces)'],['BURDOCK ROOT,CKD,BLD,DRND,WO/SALT',88, '1 cup, (1 pieces)'],['BUTTERBUR,(FUKI),RAW',14, '1 cup'],['BUTTERBUR,CKD,BLD,DRND,WO/SALT',8, ''],['BUTTERBUR,CANNED',3, '1 cup, chopped'],['CABBAGE,RAW',25, '1 cup, chopped'],['CABBAGE,CKD,BLD,DRND,WO/SALT',23, '.5 cup, shredded'],['CABBAGE,RED,RAW',31, '1 cup, chopped'],['CABBAGE,RED,CKD,BLD,DRND,WO/SALT',29, '1 leaf'],['CABBAGE,SAVOY,RAW',27, '1 cup, shredded'],['CABBAGE,SAVOY,CKD,BLD,DRND,WO/SALT',24, '1 cup, shredded'],['CABBAGE,CHINESE (PAK-CHOI),RAW',13, '1 cup, shredded'],['CABBAGE,CHINESE (PAK-CHOI),CKD,BLD,DRND,WO/SALT',12, '1 cup, shredded'],['CABBAGE,CHINESE (PE-TSAI),RAW',16, '1 cup, shredded'],['CABBAGE,CHINESE (PE-TSAI),CKD,BLD,DRND,WO/SALT',14, '1 cup, shredded'],['CARDOON,RAW',17, '1 cup, shredded'],['CARDOON,CKD,BLD,DRND,WO/SALT',22, ''],['CARROTS,RAW',41, '1 cup, chopped'],['CARROTS,CKD,BLD,DRND,WO/SALT',35, '1 tbsp'],['CARROTS,CND,REG PK,SOL&LIQUIDS',23, '.5 cup, slices'],['CARROTS,CND,REG PK,DRND SOL',25, '1 cup, sliced'],['CARROTS,FROZEN,UNPREPARED',36, '.5 cup, slices'],['CARROTS,FRZ,CKD,BLD,DRND,WO/SALT',37, '1 cup, sliced'],['CASSAVA,RAW',160, '1 cup'],['CAULIFLOWER,RAW',25, '1 cup, chopped (1/2 pieces)'],['CAULIFLOWER,CKD,BLD,DRND,WO/SALT',23, '.5 cup, (1 pieces)'],['CAULIFLOWER,FRZ,UNPREP',24, '.5 cup, (1 pieces)'],['CAULIFLOWER,FRZ,CKD,BLD,DRND,WO/SALT',19, '1 cup, (1 pieces)'],['CELERIAC,RAW',42, '1 cup'],['CELERIAC,CKD,BLD,DRND,WO/SALT',27, '1 cup, pieces'],['CELERY,RAW',16, '1 cup, chopped'],['CELERY,CKD,BLD,DRND,WO/SALT',18, '1 cup, diced'],['CELTUCE,RAW',18, '1 leaf'],['CHARD,SWISS,RAW',19, '1 cup'],['CHARD,SWISS,CKD,BLD,DRND,WO/SALT',20, '1 cup, chopped'],['CHAYOTE,FRUIT,RAW',19, '1 cup, (1 pieces)'],['CHAYOTE,FRUIT,CKD,BLD,DRND,WO/SALT',24, '1 cup, (1 pieces)'],['CHICORY,WITLOOF,RAW',17, '1 head'],['CHICORY GREENS,RAW',23, '1 cup, chopped'],['CHICORY ROOTS,RAW',72, '1 root'],['CHIVES,RAW',30, '1 tbsp, chopped'],['CHRYSANTHEMUM,GARLAND,RAW',24, '1 cup, (1 pieces)'],['CHRYSANTHEMUM,GARLAND,CKD,BLD,DRND,WO/SALT',20, '1 cup, (1 pieces)'],['COLLARDS,RAW',32, '1 cup, chopped'],['COLLARDS,CKD,BLD,DRND,WO/SALT',33, '1 cup, chopped'],['COLLARDS,FRZ,CHOPD,UNPREP',33, '.33 package, (10 oz)'],['COLLARDS,FRZ,CHOPD,CKD,BLD,DRND,WO/SALT',36, '1 cup, chopped'],['CORIANDER (CILANTRO) LEAVES,RAW',23, '.25 cup'],['CORN,SWT,YEL,RAW',86, '1 cup'],['CORN,SWT,YEL,CKD,BLD,DRND,WO/SALT',96, '1 ear, small (5-1/2 to 6-1/2 long)'],['CORN,SWT,YEL,CND,BRINE PK,REG PK,SOL&LIQUIDS',61, '1 cup'],['CORN,SWT,YEL,CND,WHL KERNEL,DRND SOL',67, '1 cup'],['CORN,SWT,YEL,CND,CRM STYLE,REG PK',72, '1 cup'],['CORN,SWT,YEL,CND,VACUUM PK,REG PK',79, '1 cup'],['CORN,SWT,YEL,CND,DRND SOL,RINSED W/ TAP H2O',74, '1 cup, drained, rinsed'],['CORN,SWT,YEL,FRZ,KRNLS CUT OFF COB,UNPREP',88, '1 cup'],['CORN,SWT,YEL,FRZ,KRNLS CUT OFF COB,BLD,DRND,WO/SALT',81, '1 cup'],['CORN,SWT,YEL,FRZ,KRNLS ON COB,UNPREP',98, '1 cup, kernels'],['CORN,SWT,YEL,FRZ,KRNLS ON COB,CKD,BLD,DRND,WO/SALT',94, '1 cup, kernels'],['CORN,YEL,WHL KERNEL,FRZ,MICROWAVED',131, '1 cup'],['CORN W/RED&GRN PEPPERS,CND,SOL&LIQUIDS',75, '1 cup'],['CORNSALAD,RAW',21, '1 cup'],['COWPEAS (BLACKEYES),IMMAT SEEDS,RAW',90, '1 cup'],['COWPEAS (BLACKEYES),IMMAT SEEDS,CKD,BLD,DRND,WO/ SALT',97, '1 cup'],['COWPEAS (BLACKEYES),IMMAT SEEDS,FRZ,UNPREP',139, '1 cup'],['COWPEAS (BLACKEYES),IMMTRE SEEDS,FRZ,CKD,BLD,DRND,WO/SALT',132, '1 cup'],['COWPEAS,YOUNG PODS W/SEEDS,RAW',44, '1 cup'],['COWPEAS,YOUNG PODS W/SEEDS,CKD,BLD,DRND,WO/SALT',34, '1 cup'],['YARDLONG BEAN,RAW',47, '1 cup, slices'],['YARDLONG BEAN,CKD,BLD,DRND,WO/SALT',47, '1 cup, slices'],['COWPEAS,LEAFY TIPS,RAW',29, '1 cup, chopped'],['COWPEAS,LEAFY TIPS,CKD,BLD,DRND,WO/SALT',22, '1 cup, chopped'],['CRESS,GARDEN,RAW',32, '1 cup'],['CRESS,GARDEN,CKD,BLD,DRND,WO/SALT',23, '1 cup'],['CUCUMBER,WITH PEEL,RAW',15, '.5 cup, slices'],['CUCUMBER,PEELED,RAW',12, '1 cup, pared chopped'],['DANDELION GREENS,RAW',45, '1 cup, chopped'],['DANDELION GRNS,CKD,BLD,DRND,WO/SALT',33, '1 cup, chopped'],['EGGPLANT,RAW',25, '1 cup, cubes'],['EGGPLANT,CKD,BLD,DRND,WO/SALT',35, '1 cup, (1 cubes)'],['EDAMAME,FRZ,UNPREP',110, '1 cup'],['EDAMAME,FRZ,PREP',122, '1 cup'],['ENDIVE,RAW',17, '.5 cup, chopped'],['GARLIC,RAW',149, '1 cup'],['GINGER ROOT,RAW',80, '1 tsp'],['GOURD,WHITE-FLOWERED (CALABASH),RAW',14, '.5 cup, (1 pieces)'],['GOURD,WHITE-FLOWERED (CALABASH),CKD,BLD,DRND,WO/SALT',15, '1 cup, (1 cubes)'],['GOURD,DISHCLOTH (TOWELGOURD),RAW',20, '1 cup, (1 pieces)'],['GOURD,DISHCLOTH (TOWELGOURD),CKD,BLD,DRND,WO/SALT',56, '1 cup, (1 pieces)'],['DRUMSTICK LEAVES,RAW',64, '1 cup, chopped'],['DRUMSTICK LEAVES,CKD,BLD,DRND,WO/ SALT',60, '1 cup, chopped'],['HYACINTH-BEANS,IMMAT SEEDS,RAW',46, '1 cup'],['HYACINTH-BEANS,IMMAT SEEDS,CKD,BLD,DRND,WO/SALT',50, '1 cup'],['JERUSALEM-ARTICHOKES,RAW',73, '1 cup, slices'],['JEWS EAR,(PEPEAO),RAW',25, '1 cup, slices'],['PEPEAO,DRIED',298, '1 cup'],['JUTE,POTHERB,RAW',34, '1 cup'],['JUTE,POTHERB,CKD,BLD,DRND,WO/SALT',37, '1 cup'],['KALE,RAW',49, '1 cup, 1 pieces, loosely packed'],['KALE,CKD,BLD,DRND,WO/SALT',28, '1 cup, chopped'],['KALE,FROZEN,UNPREPARED',28, '.333 package, (10 oz)'],['KALE,FRZ,CKD,BLD,DRND,WO/SALT',30, '1 cup, chopped'],['KANPYO,(DRIED GOURD STRIPS)',258, '1 strip'],['MUSHROOMS,SHIITAKE,RAW',34, '1 piece, whole'],['MUSHROOMS,CHANTERELLE,RAW',38, '1 cup'],['MUSHROOMS,MOREL,RAW',31, '1 cup'],['KOHLRABI,RAW',27, '1 cup'],['KOHLRABI,CKD,BLD,DRND,WO/SALT',29, '1 cup, slices'],['MUSHROOMS,PORTABELLA,GRILLED',29, '1 cup, sliced'],['LAMBSQUARTERS,RAW',43, ''],['LAMBSQUARTERS,CKD,BLD,DRND,WO/SALT',32, '1 cup, chopped'],['LEEKS,(BULB&LOWER LEAF-PORTION),RAW',61, '1 cup'],['LEEKS,(BULB&LOWER LEAF-PORTION),CKD,BLD,DRND,WO/SALT',31, '1 leek'],['LENTILS,SPROUTED,RAW',106, '1 cup'],['LENTILS,SPROUTED,CKD,STIR-FRIED,WO/SALT',101, ''],['LETTUCE,BUTTERHEAD (INCL BOSTON&BIBB TYPES),RAW',13, '1 cup, shredded or chopped'],['LETTUCE,COS OR ROMAINE,RAW',17, '1 cup, shredded'],['LETTUCE,ICEBERG (INCL CRISPHEAD TYPES),RAW',14, '1 cup, shredded'],['LETTUCE,GRN LEAF,RAW',15, '1 cup, shredded'],['LOTUS ROOT,RAW',74, '10 slices, (2-1/2 dia)'],['LOTUS ROOT,CKD,BLD,DRND,WO/SALT',66, '.5 cup'],['LETTUCE,RED LEAF,RAW',16, '1 cup, shredded'],['MOUNTAIN YAM,HAWAII,RAW',67, '.5 cup, cubes'],['MOUNTAIN YAM,HAWAII,CKD,STMD,WO/SALT',82, '1 cup, cubes'],['MUSHROOMS,WHITE,RAW',22, '1 cup, pieces or slices'],['MUSHROOMS,WHITE,CKD,BLD,DRND,WO/ SALT',28, '1 cup, pieces'],['MUSHROOMS,WHITE,STIR-FRIED',26, '1 cup, sliced'],['MUSHROOMS,CND,DRND SOL',25, '1 cup'],['MUSHROOMS,PORTABELLA,RAW',22, '1 cup, diced'],['MUSHROOMS,BROWN,ITALIAN,OR CRIMINI,RAW',22, '1 cup, whole'],['MUSHROOMS,SHIITAKE,STIR-FRIED',39, '1 cup, whole'],['MUSHROOMS,SHIITAKE,DRIED',296, '1 mushroom'],['MUSHROOMS,SHIITAKE,CKD,WO/SALT',56, '1 cup, pieces'],['MUSTARD GREENS,RAW',27, '1 cup, chopped'],['MUSTARD GRNS,CKD,BLD,DRND,WO/SALT',26, '1 cup, chopped'],['MUSTARD GRNS,FRZ,UNPREP',20, '1 cup, chopped'],['MUSTARD GRNS,FRZ,CKD,BLD,DRND,WO/SALT',19, '1 cup, chopped'],['MUSTARD SPINACH,(TENDERGREEN),RAW',22, '1 cup, chopped'],['MUSTARD SPINACH,(TENDERGREEN),CKD,BLD,DRND,WO/SALT',16, '1 cup, chopped'],['NEW ZEALAND SPINACH,RAW',14, '1 cup, chopped'],['NEW ZEALAND SPINACH,CKD,BLD,DRND,WO/SALT',12, '1 cup, chopped'],['OKRA,RAW',33, '1 cup'],['OKRA,CKD,BLD,DRND,WO/SALT',22, '.5 cup, slices'],['OKRA,FROZEN,UNPREPARED',30, '.33 package, (10 oz)'],['OKRA,FRZ,CKD,BLD,DRND,WO/SALT',29, '.5 cup, slices'],['ONIONS,RAW',40, '1 cup, chopped'],['ONIONS,CKD,BLD,DRND,WO/SALT',44, '1 cup'],['ONIONS,DEHYDRATED FLAKES',349, '1 tbsp'],['ONIONS,CND,SOL&LIQUIDS',19, '1 onion'],['ONIONS,YEL,SAUTEED',132, '1 cup, chopped'],['ONIONS,FRZ,CHOPD,UNPREP',29, '.33 package, (10 oz)'],['ONIONS,FRZ,CHOPD,CKD,BLD,DRND,WO/SALT',28, '1 tbsp, chopped'],['ONIONS,FRZ,WHL,UNPREP',35, '.33 package, (10 oz)'],['ONIONS,FRZ,WHL,CKD,BLD,DRND,WO/SALT',28, '1 cup'],['ONIONS,SPRING OR SCALLIONS (INCL TOPS&BULB),RAW',32, '1 cup, chopped'],['ONIONS,YOUNG GRN,TOPS ONLY',27, '1 tbsp'],['ONIONS,WELSH,RAW',34, ''],['ONIONS,SWT,RAW',32, '1 NLEA serving'],['ONION RINGS,BREADED,PAR FR,FRZ,UNPREP',258, '6 rings'],['ONION RINGS,BREADED,PAR FR,FRZ,PREP,HTD IN OVEN',276, '1 cup'],['PARSLEY,FRSH',36, '1 cup, chopped'],['PARSNIPS,RAW',75, '1 cup, slices'],['PARSNIPS,CKD,BLD,DRND,WO/SALT',71, '.5 cup, slices'],['PEAS,EDIBLE-PODDED,RAW',42, '1 cup, chopped'],['PEAS,EDIBLE-PODDED,BLD,DRND,WO/ SALT',42, '1 cup'],['PEAS,EDIBLE-PODDED,FRZ,UNPREP',42, '1 cup'],['PEAS,EDIBLE-PODDED,FRZ,CKD,BLD,DRND,WO/SALT',52, '1 cup'],['PEAS,GREEN,RAW',81, '1 cup'],['PEAS,GRN,CKD,BLD,DRND,WO/SALT',84, '1 cup'],['PEAS,GRN,CND,REG PK,SOL&LIQUIDS',58, '.5 cup'],['PEAS,GRN (INCLUDES BABY & LESUER TYPES),CND,DRND SOL,UNPREP',68, '1 cup'],['PEAS,GRN,CND,SEASONED,SOL&LIQUIDS',50, '1 cup'],['PEAS,GRN,CND,DRND SOL,RINSED IN TAP H2O',71, '1 can'],['PEAS,GRN,FRZ,UNPREP',77, '1 cup'],['PEAS,GRN,FRZ,CKD,BLD,DRND,WO/SALT',78, '.5 cup'],['PEAS,MATURE SEEDS,SPROUTED,RAW',124, '1 cup'],['PEAS,MATURE SEEDS,SPROUTED,CKD,BLD,DRND,WO/SALT',98, ''],['PEAS&CARROTS,CND,REG PK,SOL&LIQUIDS',38, '1 cup'],['PEAS&CARROTS,FRZ,UNPREP',53, '.5 cup'],['PEAS&CARROTS,FRZ,CKD,BLD,DRND,WO/SALT',48, '1 package, (10 oz) yields'],['PEAS&ONIONS,CND,SOL&LIQUIDS',51, '1 cup'],['PEAS&ONIONS,FRZ,UNPREP',70, '.5 cup'],['PEAS&ONIONS,FRZ,CKD,BLD,DRND,WO/SALT',45, '1 cup'],['PEPPERS,HOT CHILI,GRN,CND,PODS,EXCLUDING SEEDS,SOL&LIQUIDS',21, '1 pepper'],['PEPPERS,SWT,GRN,RAW',20, '1 cup, chopped'],['PEPPERS,SWT,GRN,CKD,BLD,DRND,WO/SALT',28, '1 cup, chopped or strips'],['PEPPERS,SWT,GRN,CND,SOL&LIQUIDS',18, '1 cup, halves'],['PEPPERS,SWT,GRN,FRZ,CHOPD,UNPREP',20, '.33 package, (10 oz)'],['PEPPERS,SWT,GRN,FRZ,CHOPD,BLD,DRND,WO/SALT',18, ''],['PEPPERS,SWT,GRN,SAUTEED',127, '1 cup, chopped'],['PIGEONPEAS,IMMAT SEEDS,RAW',136, '1 cup'],['PIGEONPEAS,IMMAT SEEDS,CKD,BLD,DRND,WO/SALT',111, '1 cup'],['POI',112, '1 cup'],['POKEBERRY SHOOTS,(POKE),RAW',23, '1 cup'],['POKEBERRY SHOOTS,(POKE),CKD,BLD,DRND,WO/SALT',20, '1 cup'],['POTATOES,FLESH & SKN,RAW',77, '.5 cup, diced'],['POTATOES,RUSSET,FLESH & SKN,RAW',79, '.5 cup, diced'],['POTATOES,WHITE,FLESH & SKN,RAW',69, '.5 cup, diced'],['POTATOES,RED,FLESH & SKN,RAW',70, '.5 cup, diced'],['POTATOES,RUSSET,FLESH & SKN,BKD',97, '1 potato, large (3 to 4-1/4 dia.'],['POTATOES,WHITE,FLESH & SKN,BKD',94, '1 potato, large (3 to 4-1/4 dia)'],['POTATOES,RED,FLESH & SKN,BKD',89, '1 potato, large (3 to 4-1/4 dia.'],['POTATOES,FR FR,CRNKL OR REG,SALT ADDED IN PROC,FRZ,AS PURCH',150, '10 strip'],['POTATOES,FR FR,CRNKL/REG CUT,SALT ADDED IN PROC,FRZ,OVEN-HTD',166, '10 strip'],['POTATOES,RSTD,SALT ADDED IN PROCESSING,FRZ,UNPREP',130, '3 oz'],['POTATOES,RAW,SKIN',58, '1 skin'],['POTATOES,BKD,FLESH,WO/SALT',93, '.5 cup'],['POTATOES,BKD,SKN,WO/SALT',198, '1 skin'],['POTATOES,BLD,CKD IN SKN,FLESH,WO/SALT',87, '.5 cup'],['POTATOES,BLD,CKD IN SKN,SKN,WO/SALT',78, '1 skin'],['POTATOES,BLD,CKD WO/ SKN,FLESH,WO/ SALT',86, '.5 cup'],['POTATOES,MICROWAVED,CKD IN SKN,FLESH,WO/SALT',100, '.5 cup'],['POTATOES,MICROWAVED,CKD IN SKN,SKN,WO/SALT',132, '1 skin'],['POTATOES,HASH BROWN,HOME-PREPARED',265, '1 cup'],['POTATOES,MSHD,HOME-PREPARED,WHL MILK & MARGARINE ADDED',113, '1 cup'],['POTATOES,SCALLPD,HOME-PREPARED W/BUTTER',88, '1 cup'],['POTATOES,AU GRATIN,HOME-PREPARED FROM RECIPE USING BUTTER',132, '1 cup'],['POTATOES,CND,SOL&LIQUIDS',44, '1 cup, whole'],['POTATOES,CND,DRND SOL',60, '1 cup'],['POTATOES,MSHD,DEHYD,FLAKES WO/MILK,DRY FORM',354, '1 cup'],['POTATOES,MSHD,DEHYD,PREP FROM FLAKES WO/ MILK,WHL MILK & BUT',97, '1 cup'],['POTATOES,MSHD,DEHYD,GRANULES WO/MILK,DRY FORM',372, '1 cup'],['POTATOES,MSHD,DEHYD,PREP FR GRNLS WO/MILK,WHL MILK&BUTTER',108, '1 cup'],['POTATOES,MSHD,DEHYD,GRANULES W/MILK,DRY FORM',357, '1 cup'],['POTATOES,MSHD,DEHYD,PREP FROM GRAN W/ MILK,H2O & MARG ADDED',116, '1 cup'],['POTATOES,AU GRATIN,DRY MIX,UNPREP',314, '.167 package, (5.5 oz)'],['POTATOES,AU GRATIN,DRY MIX,PREP W/H2O,WHL MILK&BUTTER',93, '.167 package, (5.5 oz) yields'],['POTATOES,SCALLPD,DRY MIX,UNPREP',358, '.167 package, (5.5 oz)'],['POTATOES,SCALLPD,DRY MIX,PREP W/H2O,WHL MILK&BUTTER',93, '1 cup, (unprepared)'],['POTATOES,HASH BROWN,FRZ,PLN,UNPREP',82, '.5 cup'],['POTATOES,HASH BROWN,FRZ,PLN,PREP,PAN FRIED IN CANOLA OIL',219, '1 cup, prepared'],['POTATOES,HASH BROWN,FRZ,W/ BUTTER SAU,UNPREP',135, '1 package, (6 oz)'],['POTATOES,HASH BROWN,FRZ,W/ BUTTER SAU,PREP',178, ''],['POTATOES,FRENCH FR,SHOESTRING,SALT ADDED IN PROC,FRZ,AS PRCH',167, '10 strip'],['POTATOES,FRENCH FR,SHOESTRNG,SALT ADDED IN PROC,FRZ,OVEN-HTD',199, '10 strip'],['POTATOES,OBRIEN,FRZ,UNPREP',76, ''],['POTATOES,OBRIEN,FRZ,PREP',204, ''],['POTATO PUFFS,FRZ,UNPREP',178, '1 cup'],['POTATO PUFFS,FRZ,OVEN-HEATED',192, '10 puffs'],['POTATOES,FRZ,WHL,UNPREP',78, '1 cup'],['POTATOES,FRZ,WHL,CKD,BLD,DRND,WO/SALT',65, ''],['POTATOES,FRENCH FR,ALL TYPES,SALT ADDED IN PROC,FRZ,UNPREP',147, '10 strip'],['POTATOES,FRENCH FR,ALL TYPES,SALT ADDED IN PROC,FRZ,OVEN HTD',158, '10 fries'],['POTATOES,FRNCH FR,CTTG-CUT,SALT NOT ADDED,FRZ,AS PRCH',153, '10 strips'],['POTATOES,FRENCH FR,COTTAGE-CUT,SALT NOT ADDED,FRZ,OVEN-HTD',218, '10 strips'],['POTATOES,FRZ,FRENCH FR,PAR FR,EXTRUDED,UNPREP',260, '10 strips'],['POTATOES,FRZ,FRCH FR,PAR FR,EXTRUDED,PREP,HTD OVEN,WO/SALT',333, '10 strips'],['USDA COMMODITY,POTATO WEDGES,FRZ',123, ''],['POTATOES,FRENCH FR,STK FRIES,SALT ADDED IN PROC,FRZ,AS PRCH',133, '10 strip'],['POTATOES,FRENCH FR,STK FRIES,SALT ADDED IN PROC,FRZ,OVEN-HTD',152, '10 strip'],['POTATO FLOUR',357, '1 cup'],['POTATO SALAD,HOME-PREPARED',143, '1 cup'],['PUMPKIN FLOWERS,RAW',15, '1 cup'],['PUMPKIN FLOWERS,CKD,BLD,DRND,WO/SALT',15, '1 cup'],['PUMPKIN LEAVES,RAW',19, '1 cup'],['PUMPKIN LEAVES,CKD,BLD,DRND,WO/SALT',21, '1 cup'],['PUMPKIN,RAW',26, '1 cup, (1 cubes)'],['PUMPKIN,CKD,BLD,DRND,WO/SALT',20, '1 cup, mashed'],['PUMPKIN,CND,WO/SALT',34, '1 cup'],['PUMPKIN PIE MIX,CANNED',104, '1 cup'],['PURSLANE,RAW',20, '1 cup'],['PURSLANE,CKD,BLD,DRND,WO/SALT',18, '1 cup'],['RADISHES,RAW',16, '1 cup, slices'],['RADISHES,ORIENTAL,RAW',18, '1 cup, slices'],['RADISHES,ORIENTAL,CKD,BLD,DRND,WO/SALT',17, '1 cup, sliced'],['RADISHES,ORIENTAL,DRIED',271, '1 cup'],['RUTABAGAS,RAW',37, '1 cup, cubes'],['RUTABAGAS,CKD,BLD,DRND,WO/SALT',30, '1 cup, cubes'],['SALSIFY,(VEG OYSTER),RAW',82, '1 cup, slices'],['SALSIFY,CKD,BLD,DRND,WO/SALT',68, '1 cup, sliced'],['SAUERKRAUT,CND,SOL&LIQUIDS',19, '1 cup'],['SEAWEED,AGAR,RAW',26, '2 tbsp, (1/8 cup)'],['SEAWEED,IRISHMOSS,RAW',49, '2 tbsp, (1/8 cup)'],['SEAWEED,KELP,RAW',43, '2 tbsp, (1/8 cup)'],['SEAWEED,LAVER,RAW',35, '10 sheets'],['SESBANIA FLOWER,RAW',27, '1 flower'],['SESBANIA FLOWER,CKD,STMD,WO/SALT',22, '1 cup'],['SOYBEANS,GREEN,RAW',147, '1 cup'],['SOYBEANS,GRN,CKD,BLD,DRND,WO/SALT',141, '1 cup'],['SOYBEANS,MATURE SEEDS,SPROUTED,RAW',122, '.5 cup'],['SOYBEANS,MATURE SEEDS,SPROUTED,CKD,STMD',81, '1 cup'],['SOYBEANS,MATURE SEEDS,SPROUTED,CKD,STIR-FRIED',125, ''],['SPINACH,RAW',23, '1 cup'],['SPINACH,CKD,BLD,DRND,WO/ SALT',23, '1 cup'],['SPINACH,CND,REG PK,SOL&LIQUIDS',19, '1 cup'],['SPINACH,CND,REG PK,DRND SOL',23, '1 cup'],['SPINACH,FRZ,CHOPD OR LEAF,UNPREP',29, '1 cup'],['SPINACH,FRZ,CHOPD OR LEAF,CKD,BLD,DRND,WO/SALT',34, '.5 cup'],['SQUASH,SMMR,CROOKNECK&STRAIGHTNECK,RAW',19, '1 cup, sliced'],['SQUASH,SMMR,CROOKNECK & STRAIGHTNECK,CKD,BLD,DRND,WO/ SALT',23, '1 cup, sliced'],['SQUASH,SMMR,CROOKNECK&STRAIGHTNECK,CND,DRND,SOLID,WO/SALT',13, '1 cup, diced'],['SQUASH,SMMR,CROOKNECK&STRAIGHTNECK,FRZ,UNPREP',20, '1 cup, slices'],['SQUASH,SMMR,CROOKNECK&STRAIGHTNECK,FRZ,CKD,BLD,DRND,WO/SALT',25, '1 cup, slices'],['SQUASH,SUMMER,SCALLOP,RAW',18, '1 cup, slices'],['SQUASH,SMMR,SCALLOP,CKD,BLD,DRND,WO/SALT',16, '1 cup, mashed'],['SQUASH,SMMR,ZUCCHINI,INCL SKN,RAW',17, '1 cup, chopped'],['SQUASH,SMMR,ZUCCHINI,INCL SKN,CKD,BLD,DRND,WO/SALT',15, '1 cup, sliced'],['SQUASH,SMMR,ZUCCHINI,INCL SKN,FRZ,UNPREP',17, '.33 package, (10 oz)'],['SQUASH,SMMR,ZUCCHINI,INCL SKN,FRZ,CKD,BLD,DRND,WO/SALT',17, '1 cup'],['SQUASH,SMMR,ZUCCHINI,ITALIAN STYLE,CND',29, '1 cup'],['SQUASH,WINTER,ACORN,RAW',40, '1 cup, cubes'],['SQUASH,WNTR,ACORN,CKD,BKD,WO/SALT',56, '1 cup, cubes'],['SQUASH,WNTR,ACORN,CKD,BLD,MSHD,WO/SALT',34, '1 cup, mashed'],['SQUASH,WNTR,BUTTERNUT,RAW',45, '1 cup, cubes'],['SQUASH,WNTR,BUTTERNUT,CKD,BKD,WO/SALT',40, '1 cup, cubes'],['SQUASH,WNTR,BUTTERNUT,FRZ,UNPREP',57, '.33 package, (12 oz)'],['SQUASH,WNTR,BUTTERNUT,FRZ,CKD,BLD,WO/SALT',39, '1 cup, mashed'],['SQUASH,WINTER,HUBBARD,RAW',40, '1 cup, cubes'],['SQUASH,WNTR,HUBBARD,BKD,WO/ SALT',50, '1 cup, cubes'],['SQUASH,WNTR,HUBBARD,CKD,BLD,MSHD,WO/SALT',30, '1 cup, mashed'],['SQUASH,WNTR,SPAGHETTI,RAW',31, '1 cup, cubes'],['SQUASH,WNTR,SPAGHETTI,CKD,BLD,DRND,OR BKD,WO/SALT',27, '1 cup'],['SUCCOTASH,(CORN&LIMAS),RAW',99, ''],['SUCCOTASH,(CORN&LIMAS),CKD,BLD,DRND,WO/SALT',115, '1 cup'],['SUCCOTASH,(CORN&LIMAS),CND,W/CRM STYLE CORN',77, '1 cup'],['SUCCOTASH,(CORN&LIMAS),CND,W/WHL KERNEL CORN,SOL&LIQUIDS',63, '1 cup'],['SUCCOTASH,(CORN&LIMAS),FRZ,UNPREP',93, '1 cup'],['SUCCOTASH,(CORN&LIMAS),FRZ,CKD,BLD,DRND,WO/SALT',93, '1 cup'],['SWAMP CABBAGE,(SKUNK CABBAGE),RAW',19, '1 cup, chopped'],['SWAMP CABBAGE,CKD,BLD,DRND,WO/SALT',20, '1 cup, chopped'],['SWEET POTATO LEAVES,RAW',42, '1 cup, chopped'],['SWEET POTATO LEAVES,CKD,STMD,WO/ SALT',41, '1 cup'],['SWEET POTATO,RAW,UNPREP',86, '1 cup, cubes'],['SWEET POTATO,CKD,BKD IN SKN,FLESH,WO/ SALT',90, '1 cup'],['SWEET POTATO,CKD,BLD,WO/ SKN',76, '1 cup, mashed'],['SWEETPOTATO,CND,VACUUM PK',91, '1 cup, mashed'],['SWEET POTATO,CND,MSHD',101, '1 cup'],['SWEET POTATO,FRZ,UNPREP',96, '1 cup, cubes'],['SWEET POTATO,FRZ,CKD,BKD,WO/ SALT',100, '1 cup, cubes'],['TARO,RAW',112, '1 cup, sliced'],['TARO,COOKED,WITHOUT SALT',142, '1 cup, sliced'],['TARO LEAVES,RAW',42, '1 cup'],['TARO LEAVES,CKD,STMD,WO/SALT',24, '1 cup'],['TARO SHOOTS,RAW',11, '.5 cup, slices'],['TARO SHOOTS,CKD,WO/SALT',14, '1 cup, slices'],['TARO,TAHITIAN,RAW',44, '1 cup, slices'],['TARO,TAHITIAN,CKD,WO/SALT',44, '1 cup, slices'],['TOMATOES,GREEN,RAW',23, '1 cup'],['TOMATOES,RED,RIPE,RAW,YEAR RND AVERAGE',18, '1 cup, cherry tomatoes'],['TOMATOES,RED,RIPE,CKD',18, '1 cup'],['TOMATOES,RED,RIPE,CND,PACKED IN TOMATO JUC',16, '1 cup'],['TOMATOES,RED,RIPE,CND,STWD',26, '1 cup'],['TOMATOES,RED,RIPE,CND,W/GRN CHILIES',15, '1 cup'],['TOMATO JUC,CND,W/SALT',17, '1 cup'],['TOMATO PRODUCTS,CND,PASTE,WO/ SALT ADDED',82, '.25 cup'],['TOMATO PRODUCTS,CND,PUREE,WO/SALT',38, '1 cup'],['TOMATO POWDER',302, ''],['TOMATO PRODUCTS,CND,SAU',24, '1 cup'],['TOMATO PRODUCTS,CND,SAU,W/MUSHROOMS',35, '1 cup'],['TOMATO PRODUCTS,CND,SAU,W/ONIONS',42, '1 cup'],['TOMATO PRODUCTS,CND,SAU,W/HERBS&CHS',59, '.5 cup'],['TOMATO PRODUCTS,CND,SAU,W/ONIONS,GRN PEPPERS,&CELERY',41, '1 cup'],['TOMATO PRODUCTS,CND,SAU,W/TOMATO TIDBITS',32, '1 cup'],['TREE FERN,CKD,WO/SALT',40, '.5 cup, chopped'],['TURNIPS,RAW',28, '1 cup, cubes'],['TURNIPS,CKD,BLD,DRND,WO/SALT',22, '1 cup, cubes'],['TURNIPS,FROZEN,UNPREPARED',16, '.333 package, mashed (10 oz)'],['TURNIPS,FRZ,CKD,BLD,DRND,WO/SALT',23, '1 cup'],['TURNIP GREENS,RAW',32, '1 cup, chopped'],['TURNIP GRNS,CKD,BLD,DRND,WO/SALT',20, '1 cup, chopped'],['TURNIP GRNS,CND,SOL&LIQUIDS',14, '.5 cup'],['TURNIP GRNS,FRZ,UNPREP',22, '.5 cup, chopped or diced'],['TURNIP GRNS,FRZ,CKD,BLD,DRND,WO/SALT',29, '1 cup'],['TURNIP GRNS&TURNIPS,FRZ,UNPREP',21, '.33 package, (10 oz)'],['TURNIP GRNS&TURNIPS,FRZ,CKD,BLD,DRND,WO/SALT',35, '1 cup'],['VEGETABLE JUC COCKTAIL,CND',22, '1 cup'],['VEGETABLES,MXD,CND,SOL&LIQUIDS',36, '1 cup'],['VEGETABLES,MXD,CND,DRND SOL',49, '1 cup'],['VEGETABLES,MXD,FRZ,UNPREP',72, '.33 package, (10 oz)'],['VEGETABLES,MXD,FRZ,CKD,BLD,DRND,WO/SALT',65, '.5 cup'],['VEGETABLE JUC COCKTAIL,LO NA,CND',19, '1 cup'],['VINESPINACH,(BASELLA),RAW',19, ''],['WATERCHESTNUTS,CHINESE,(MATAI),RAW',97, '.5 cup, slices'],['WATERCHESTNUTS,CHINESE,CND,SOL&LIQUIDS',50, '.5 cup, slices'],['WATERCRESS,RAW',11, '1 cup, chopped'],['WAXGOURD,(CHINESE PRESERVING MELON),RAW',13, '1 cup, cubes'],['WAXGOURD,(CHINESE PRESERVING MELON),CKD,BLD,DRND,WO/SALT',14, '1 cup, cubes'],['WINGED BNS,IMMAT SEEDS,RAW',49, '1 cup, slices'],['WINGED BNS,IMMAT SEEDS,CKD,BLD,DRND,WO/SALT',38, '1 cup'],['WINGED BEAN LEAVES,RAW',74, ''],['WINGED BEAN TUBER,RAW',148, ''],['YAM,RAW',118, '1 cup, cubes'],['YAM,CKD,BLD,DRND,OR BKD,WO/SALT',116, '1 cup, cubes'],['YAMBEAN (JICAMA),RAW',38, '1 cup, slices'],['YAMBEAN (JICAMA),CKD,BLD,DRND,WO/SALT',38, ''],['BEETS,HARVARD,CND,SOL&LIQUIDS',73, '1 cup, slices'],['BEETS,PICKLED,CND,SOL&LIQUIDS',65, '1 cup, slices'],['BORAGE,RAW',21, '1 cup, (1 pieces)'],['BORAGE,CKD,BLD,DRND,WO/SALT',25, ''],['CHIVES,FREEZE-DRIED',311, '1 tbsp'],['DOCK,RAW',22, '1 cup, chopped'],['DOCK,CKD,BLD,DRND,WO/SALT',20, ''],['EPPAW,RAW',150, '1 cup'],['DRUMSTICK PODS,RAW',37, '1 cup, slices'],['DRUMSTICK PODS,CKD,BLD,DRND,WO/ SALT',36, '1 cup, slices'],['KALE,SCOTCH,RAW',42, '1 cup, chopped'],['KALE,SCOTCH,CKD,BLD,DRND,WO/SALT',28, '1 cup, chopped'],['LEEKS,(BULB&LOWER-LEAF PORTION),FREEZE-DRIED',321, '1 tbsp'],['PARSLEY,FREEZE-DRIED',271, '1 tbsp'],['BEANS,MUNG,MATURE SEEDS,SPROUTED,CND,DRND SOL',12, '1 cup'],['PEPPERS,JALAPENO,CND,SOL&LIQUIDS',27, '1 cup, chopped'],['PEPPERS,SWT,GRN,FREEZE-DRIED',314, '1 tbsp'],['RADISHES,WHITE ICICLE,RAW',14, '.5 cup, slices'],['SHALLOTS,FREEZE-DRIED',348, '1 tbsp'],['SQUASH,SMMR,ALL VAR,RAW',16, '1 cup, sliced'],['SQUASH,SMMR,ALL VAR,CKD,BLD,DRND,WO/SALT',20, '1 cup, sliced'],['SQUASH,WNTR,ALL VAR,RAW',34, '1 cup, cubes'],['SQUASH,WNTR,ALL VAR,CKD,BKD,WO/SALT',37, '1 cup, cubes'],['SWEET POTATO,CND,SYRUP PK,SOL & LIQUIDS',89, '1 cup'],['SWEET POTATO,CND,SYRUP PK,DRND SOL',108, '1 cup'],['TOMATO PRODUCTS,CND,SAU,SPANISH STYLE',33, '1 cup'],['BEANS,PINTO,MATURE SEEDS,SPROUTED,RAW',62, ''],['BEANS,PINTO,MATURE SEEDS,SPROUTED,CKD,BLD,DRND,WO/SALT',22, ''],['CARROT JUICE,CANNED',40, '1 cup'],['CORN PUDD,HOME PREP',131, '1 cup'],['POTATOES,MSHD,HOME-PREPARED,WHL MILK ADDED',83, '1 cup'],['SPINACH SOUFFLE',172, '1 cup'],['SWEET POTATO,CKD,CANDIED,HOME-PREPARED',164, '1 piece, (2-1/2 x 2 dia)'],['TOMATOES,RED,RIPE,CKD,STWD',79, '1 cup'],['SEAWEED,AGAR,DRIED',306, ''],['SEAWEED,SPIRULINA,RAW',26, ''],['SEAWEED,SPIRULINA,DRIED',290, '1 cup'],['SEAWEED,WAKAME,RAW',45, '2 tbsp, (1/8 cup)'],['PEPPERS,HOT CHILI,GRN,RAW',40, '1 pepper'],['POTATOES,OBRIEN,HOME-PREPARED',81, '1 cup'],['POTATO PANCAKES',268, '1 small, 2-3/4 in. dia., 5/8 in. thick.'],['POTATOES,BKD,FLESH & SKN,WO/ SALT',93, '1 NLEA serving'],['POTATOES,MICROWAVED,CKD IN SKN,FLESH&SKN,WO/SALT',105, '1 potato, (2-3/4 dia by 4-3/4 long)'],['RADISH SEEDS,SPROUTED,RAW',43, '1 cup'],['SHALLOTS,RAW',72, '1 tbsp, chopped'],['CARROT,DEHYDRATED',341, '1 cup'],['TOMATOES,CRUSHED,CANNED',32, '.5 cup'],['TOMATOES,ORANGE,RAW',16, '1 cup, chopped'],['TOMATOES,YELLOW,RAW',15, '1 cup, chopped'],['ARROWROOT,RAW',65, '1 cup, sliced'],['CHRYSANTHEMUM LEAVES,RAW',24, '1 cup, chopped'],['AMARANTH LEAVES,CKD,BLD,DRND,W/SALT',21, '1 cup'],['ARROWHEAD,CKD,BLD,DRND,W/SALT',78, '1 corm, medium'],['ARTICHOKES,(GLOBE OR FRENCH),CKD,BLD,DRND,W/SALT',51, '1 artichoke, medium'],['ARTICHOKES,(GLOBE OR FRENCH),FRZ,CKD,BLD,DRND,W/SALT',45, '1 cup'],['ASPARAGUS,CKD,BLD,DRND,W/SALT',22, '.5 cup'],['ASPARAGUS,CND,NO SALT,SOL&LIQUIDS',15, '.5 cup'],['ASPARAGUS,FRZ,CKD,BLD,DRND,W/SALT',18, '1 cup'],['BALSAM-PEAR (BITTER GOURD),LEAFY TIPS,CKD,BLD,DRND,W/SALT',32, '1 cup'],['BALSAM-PEAR (BITTER GOURD),PODS,CKD,BLD,DRND,W/SALT',19, '1 cup, (1/2 pieces)'],['BAMBOO SHOOTS,CKD,BLD,DRND,W/SALT',11, '1 cup, (1/2 slices)'],['BEANS,KIDNEY,MATURE SEEDS,SPROUTED,CKD,BLD,DRND,W/SALT',33, ''],['LIMA BNS,IMMAT SEEDS,CKD,BLD,DRND,W/SALT',123, '1 cup'],['LIMA BNS,IMMAT SEEDS,CND,NO SALT,SOL&LIQUIDS',71, '1 cup'],['LIMA BNS,IMMAT SEEDS,FRZ,BABY,CKD,BLD,DRND,W/SALT',105, '1 cup'],['LIMA BNS,IMMAT SEEDS,FRZ,FORDHOOK,CKD,BLD,DRND,W/SALT',103, '1 cup'],['MUNG BNS,MATURE SEEDS,SPROUTED,CKD,BLD,DRND,W/SALT',19, '1 cup'],['BEANS,NAVY,MATURE SEEDS,SPROUTED,CKD,BLD,DRND,W/SALT',78, ''],['BEANS,PINTO,IMMAT SEEDS,FRZ,CKD,BLD,DRND,W/SALT',162, '.333 package, (10 oz) yields'],['BEANS,PINTO,MATURE SEEDS,SPROUTED,CKD,BLD,DRND,W/SALT',20, ''],['BEANS,SNAP,YELLOW,RAW',31, '1 cup, 1/2 pieces'],['BEANS,SNAP,GRN,CKD,BLD,DRND,W/SALT',35, '1 cup'],['BEANS,SNAP,YEL,CKD,BLD,DRND,WO/SALT',35, '1 cup'],['BEANS,SNAP,YEL,CKD,BLD,DRND,W/SALT',35, '1 cup'],['BEANS,SNAP,GRN,CND,NO SALT,SOL&LIQUIDS',15, '.5 cup'],['BEANS,SNAP,YEL,CND,REG PK,SOL&LIQUIDS',15, '.5 cup'],['BEANS,SNAP,YEL,CND,NO SALT,SOL&LIQUIDS',15, '.5 cup'],['BEANS,SNAP,GRN,CND,NO SALT,DRND SOL',22, '1 cup'],['BEANS,SNAP,YEL,FRZ,ALL STYLES,UNPREP',33, '1 cup'],['BEANS,SNAP,GRN,FRZ,CKD,BLD,DRND,W/SALT',26, '1 cup'],['BEANS,SNAP,YEL,FRZ,CKD,BLD,DRND,WO/SALT',28, '1 cup'],['BEANS,SNAP,YEL,FRZ,CKD,BLD,DRND,W/SALT',26, '1 cup'],['BEETS,CKD,BOILED. DRND,W/SALT',44, '.5 cup, slices'],['BEETS,CND,NO SALT,SOL&LIQUIDS',28, '1 cup'],['BEET GRNS,CKD,BLD,DRND,W/SALT',27, '1 cup, (1 pieces)'],['BORAGE,CKD,BLD,DRND,W/SALT',25, ''],['BROADBEANS,IMMAT SEEDS,CKD,BLD,DRND,W/SALT',62, ''],['BROCCOLI,LEAVES,RAW',28, ''],['BROCCOLI,FLOWER CLUSTERS,RAW',28, '1 cup, flowerets'],['BROCCOLI,STALKS,RAW',28, '1 stalk'],['BROCCOLI,CKD,BLD,DRND,W/SALT',35, '.5 cup, chopped'],['BROCCOLI,FRZ,CHOPD,CKD,BLD,DRND,W/SALT',28, '1 cup'],['BROCCOLI,FRZ,SPEARS,CKD,BLD,DRND,W/SALT',28, '.5 cup'],['BRUSSELS SPROUTS,CKD,BLD,DRND,W/SALT',36, '1 sprout'],['BRUSSELS SPROUTS,FRZ,CKD,BLD,DRND,W/SALT',42, '1 cup'],['BURDOCK ROOT,CKD,BLD,DRND,W/SALT',88, '1 cup, (1 pieces)'],['BUTTERBUR,CKD,BLD,DRND,W/SALT',8, ''],['CABBAGE,COMMON,FRESHLY HARVEST,RAW',24, '.5 cup, shredded'],['CABBAGE,COMMON (DANISH,DOMESTIC,&POINTED TYPES),STORED,RAW',24, '.5 cup, shredded'],['CABBAGE,COMMON,CKD,BLD,DRND,W/SALT',23, '.5 cup, shredded'],['CABBAGE,RED,CKD,BLD,DRND,W/SALT',29, '1 leaf'],['CABBAGE,SAVOY,CKD,BLD,DRND,W/SALT',24, '1 cup, shredded'],['CABBAGE,CHINESE (PAK-CHOI),CKD,BLD,DRND,W/SALT',12, '1 cup, shredded'],['CABBAGE,CHINESE (PE-TSAI),CKD,BLD,DRND,W/SALT',14, '1 cup, shredded'],['CARDOON,CKD,BLD,DRND,W/SALT',20, ''],['CARROTS,CKD,BLD,DRND,W/SALT',35, '1 tbsp'],['CARROTS,CND,NO SALT,SOL&LIQUIDS',23, '.5 cup, slices'],['CARROTS,CND,NO SALT ,DRND SOL',25, '1 cup, sliced'],['CARROTS,FRZ,CKD,BLD,DRND,W/SALT',37, '1 cup, slices'],['CAULIFLOWER,CKD,BLD,DRND,W/SALT',23, '.5 cup, (1 pieces)'],['CAULIFLOWER,FRZ,CKD,BLD,DRND,W/SALT',17, '1 cup, (1 pieces)'],['CELERIAC,CKD,BLD,DRND,W/SALT',27, '1 cup, pieces'],['CELERY,CKD,BLD,DRND,W/SALT',18, '1 cup, diced'],['CHARD,SWISS,CKD,BLD,DRND,W/SALT',20, '1 cup, chopped'],['CHAYOTE,FRUIT,CKD,BLD,DRND,W/SALT',22, '1 cup, (1 pieces)'],['CHRYSANTHEMUM,GARLAND,CKD,BLD,DRND,W/SALT',20, '1 cup, (1 pieces)'],['COLLARDS,CKD,BLD,DRND,W/SALT',33, '1 cup, chopped'],['COLLARDS,FRZ,CHOPD,CKD,BLD,DRND,W/SALT',36, '1 cup, chopped'],['CORN,SWT,YEL,CKD,BLD,DRND,W/SALT',96, '1 ear, small (5-1/2 to 6-1/2 long)'],['CORN,SWT,YEL,CND,NO SALT,SOL&LIQUIDS',61, '1 cup'],['CORN,SWT,YEL,CND,CRM STYLE,NO SALT',72, '1 cup'],['CORN,SWT,YEL,CND,VACUUM PK,NO SALT',79, '1 cup'],['CORN,SWT,YEL,FRZ,KRNLS,CUT OFF COB,BLD,DRND,W/SALT',79, '1 cup'],['CORN,SWT,YEL,FRZ,KRNLS ON COB,CKD,BLD,DRND,W/SALT',94, '1 cup, kernels'],['COWPEAS (BLACKEYES),IMMAT SEEDS,CKD,BLD,DRND,W/ SALT',94, '1 cup'],['COWPEAS (BLACKEYES),IMMAT SEEDS,FRZ,CKD,BLD,DRND,W/ SALT',131, '1 cup'],['COWPEAS,YOUNG PODS W/SEEDS,CKD,BLD,DRND,W/SALT',34, '1 cup'],['COWPEAS,LEAFY TIPS,CKD,BLD,DRND,W/SALT',22, '1 cup, chopped'],['CRESS,GARDEN,CKD,BLD,DRND,W/SALT',23, '1 cup'],['DANDELION GRNS,CKD,BLD,DRND,W/SALT',33, '1 cup, chopped'],['EGGPLANT,CKD,BLD,DRND,W/SALT',33, '1 cup, (1 cubes)'],['GOURD,WHITE-FLOWERED (CALABASH),CKD,BLD,DRND,W/SALT',13, '1 cup, (1 cubes)'],['GOURD,DISHCLOTH (TOWELGOURD),CKD,BLD,DRND,W/SALT',54, '1 cup, (1 pieces)'],['DRUMSTICK LEAVES,CKD,BLD,DRND,W/ SALT',60, '1 cup, chopped'],['DRUMSTICK PODS,CKD,BLD,DRND,W/ SALT',36, '1 cup, slices'],['HYACINTH-BEANS,IMMAT SEEDS,CKD,BLD,DRND,W/SALT',50, '1 cup'],['JUTE,POTHERB,CKD,BLD,DRND,W/SALT',37, '1 cup'],['KALE,CKD,BLD,DRND,W/SALT',28, '1 cup, chopped'],['KALE,FRZ,CKD,BLD,DRND,W/SALT',30, '1 cup, chopped'],['KALE,SCOTCH,CKD,BLD,DRND,W/SALT',28, '1 cup, chopped'],['KOHLRABI,CKD,BLD,DRND,W/SALT',29, '1 cup, slices'],['LAMBS QUARTERS,CKD,BLD,DRND,W/SALT',32, '1 cup, chopped'],['LEEKS,(BULB&LOWER LEAF-PORTION),CKD,BLD,DRND,W/SALT',31, '1 leek'],['LOTUS ROOT,CKD,BLD,DRND,W/SALT',66, '.5 cup'],['MUSHROOMS,WHITE,CKD,BLD,DRND,W/ SALT',28, '1 cup, pieces'],['MUSHROOMS,SHIITAKE,CKD,W/SALT',56, '1 cup, pieces'],['MUSTARD GRNS,CKD,BLD,DRND,W/SALT',26, '1 cup, chopped'],['MUSTARD GRNS,FRZ,CKD,BLD,DRND,W/SALT',19, '1 cup, chopped or diced'],['MUSTARD SPINACH,(TENDERGREEN),CKD,BLD,DRND,W/SALT',16, '1 cup, chopped'],['NEW ZEALAND SPINACH,CKD,BLD,DRND,W/SALT',12, '1 cup, chopped'],['OKRA,CKD,BLD,DRND,W/SALT',22, '.5 cup, slices'],['OKRA,FRZ,CKD,BLD,DRND,W/ SALT',34, '.5 cup, slices'],['ONIONS,CKD,BLD,DRND,W/SALT',42, '1 cup'],['ONIONS,FRZ,CHOPD,CKD,BLD,DRND,W/SALT',26, '1 tbsp, chopped'],['ONIONS,FRZ,WHL,CKD,BLD,DRND,W/SALT',26, '1 cup'],['PARSNIPS,CKD,BLD,DRND,W/SALT',71, '.5 cup, slices'],['PEAS,EDIBLE-PODDED,CKD,BLD,DRND,W/SALT',40, '1 cup'],['PEAS,EDIBLE-PODDED,FRZ,CKD,BLD,DRND,W/SALT',50, '1 cup'],['PEAS,GRN,CKD,BLD,DRND,W/SALT',84, '1 cup'],['PEAS,GRN,CND,NO SALT,SOL&LIQUIDS',53, '.5 cup'],['PEAS,GRN,CND,NO SALT,DRND SOL',69, '.5 cup'],['PEAS,GRN,FRZ,CKD,BLD,DRND,W/SALT',78, '.5 cup'],['PEAS,MATURE SEEDS,SPROUTED,CKD,BLD,DRND,W/SALT',98, ''],['PEAS&CARROTS,CND,NO SALT,SOL&LIQUIDS',38, '1 cup'],['PEAS&CARROTS,FRZ,CKD,BLD,DRND,W/SALT',48, '.5 cup'],['PEAS&ONIONS,FRZ,CKD,BLD,DRND,W/SALT',45, '1 cup'],['PEPPERS,HOT CHILI,RED,RAW',40, '1 pepper'],['PEPPERS,HOT CHILI,RED,CND,EXCLUDING SEEDS,SOL&LIQUIDS',21, '1 pepper'],['PEPPERS,SWT,RED,RAW',31, '1 cup, chopped'],['PEPPERS,SWT,GRN,CKD,BLD,DRND,W/SALT',26, '1 tbsp'],['PEPPERS,SWT,RED,CKD,BLD,DRND,WO/SALT',28, '1 cup, strips'],['PEPPERS,SWT,RED,CKD,BLD,DRND,W/SALT',26, '1 tbsp'],['PEPPERS,SWT,GRN,FRZ,CHOPD,CKD,BLD,DRND,W/SALT',16, '1 cup, chopped or strips'],['PIGEONPEAS,IMMAT SEEDS,CKD,BLD,DRND,W/SALT',111, '1 cup'],['POKEBERRY SHOOTS,(POKE),CKD,BLD,DRND,W/SALT',20, '1 cup'],['POTATOES,BKD,FLESH & SKN,W/ SALT',93, '.5 cup'],['POTATOES,BKD,FLESH,W/SALT',93, '.5 cup'],['POTATOES,BKD,SKN,W/ SALT',198, '1 skin'],['POTATOES,BLD,CKD IN SKN,FLESH,W/SALT',87, '.5 cup'],['POTATOES,BLD,CKD IN SKN,SKN,W/SALT',78, '1 skin'],['POTATOES,BLD,CKD WO/ SKN,FLESH,W/ SALT',86, '.5 cup'],['POTATOES,MICROWAVED,CKD,IN SKN,FLESH&SKN,W/SALT',105, '1 potato, (2-1/3 x 4-3/4)'],['POTATOES,MICROWAVED,CKD IN SKN,FLESH,W/SALT',100, '.5 cup'],['POTATOES,MICROWAVED,CKD,IN SKN,SKN W/SALT',132, '1 skin'],['POTATOES,FRZ,WHL,CKD,BLD,DRND,W/SALT',63, ''],['POTATOES,FRZ,FRCH FR,PAR FR,CTTGE-CUT,PREP,HTD OVEN,W/SALT',218, '10 strips'],['POTATOES,FR FR,ALL TYPES,SALT NOT ADDED IN PROC,FRZ,OVN-HTD',172, '10 strip'],['POTATOES,FR FR,ALL TYPES,SALT NOT ADDED IN PROC,FRZ,AS PURCH',150, '10 strips'],['POTATOES,AU GRATIN,HOME-PREPARED FROM RECIPE USING MARGARINE',132, '1 cup'],['POTATOES,SCALLPD,HOME-PREPARED W/MARGARINE',88, '1 cup'],['PUMPKIN,CKD,BLD,DRND,W/SALT',18, '1 cup, mashed'],['PUMPKIN,CANNED,WITH SALT',34, '1 cup'],['PUMPKIN,FLOWERS,CKD,BLD,DRND,W/SALT',15, '1 cup'],['PUMPKIN LEAVES,CKD,BLD,DRND,W/ SALT',21, '1 cup'],['PURSLANE,CKD,BLD,DRND,W/SALT',18, '1 cup'],['RADISHES,ORIENTAL,CKD,BLD,DRND,W/SALT',17, '1 cup, slices'],['RUTABAGAS,CKD,BLD,DRND,W/SALT',30, '.5 cup, mashed'],['SALSIFY,CKD,BLD,DRND,W/SALT',68, '1 cup, slices'],['SOYBEANS,GRN,CKD,BLD,DRND,W/SALT',141, '1 cup'],['SPINACH,CKD,BLD,DRND,W/SALT',23, '1 cup'],['SPINACH,CND,NO SALT,SOL&LIQUIDS',19, '1 cup'],['SPINACH,FRZ,CHOPD OR LEAF,CKD,BLD,DRND,W/SALT',34, '.5 cup'],['SQUASH,SMMR,ALL VAR,CKD,BLD,DRND,W/SALT',20, '1 cup, slices'],['SQUASH,SMMR,CROOKNECK&STRAIGHTNECK,CKD,BLD,DRND,W/SALT',19, '1 cup, slices'],['SQUASH,SMMR,CROOKNECK&STRAIGHTNECK,FRZ,CKD,BLD,DRND,W/SALT',25, '1 cup, slices'],['SQUASH,SMMR,SCALLOP,CKD,BLD,DRND,W/SALT',16, '.5 cup, slices'],['SQUASH,SMMR,ZUCCHINI,INCL SKN,CKD,BLD,DRND,W/SALT',15, '.5 cup, slices'],['SQUASH,SMMR,ZUCCHINI,INCL SKN,FRZ,CKD,BLD,DRND,W/SALT',14, '1 cup'],['SQUASH,WNTR,ALL VAR,CKD,BKD,W/SALT',37, '1 cup, cubes'],['SQUASH,WNTR,ACORN,CKD,BKD,W/SALT',56, '1 cup, cubes'],['SQUASH,WNTR,ACORN,CKD,BLD,MSHD,W/SALT',34, '1 cup, mashed'],['SQUASH,WNTR,BUTTERNUT,CKD,BKD,W/SALT',40, '1 cup, cubes'],['SQUASH,WNTR,BUTTERNUT,FRZ,CKD,BLD,W/SALT',39, '1 cup, mashed'],['SQUASH,WNTR,HUBBARD,BKD,W/ SALT',50, '1 cup, cubes'],['SQUASH,WNTR,HUBBARD,CKD,BLD,MSHD,W/SALT',30, '1 cup, mashed'],['SQUASH,WNTR,SPAGHETTI,CKD,BLD,DRND,OR BKD,W/SALT',27, '1 cup'],['SUCCOTASH,(CORN&LIMAS),CKD,BLD,DRND,W/SALT',111, '1 cup'],['SUCCOTASH,(CORN&LIMAS),FRZ,CKD,BLD,DRND,W/SALT',93, '1 cup'],['SWAMP CABBAGE,CKD,BLD,DRND,W/SALT',20, '1 cup, chopped'],['SWEET POTATO LEAVES,CKD,STMD,W/ SALT',35, '1 cup'],['SWEET POTATO,CKD,BKD IN SKN,FLESH,W/ SALT',92, '1 medium, (2 dia, 5 long, raw)'],['SWEET POTATO,CKD,BLD,WO/ SKN,W/ SALT',76, '1 cup, mashed'],['SWEET POTATO,FRZ,CKD,BKD,W/ SALT',100, '1 cup, cubes'],['TARO,COOKED,WITH SALT',142, '1 cup, slices'],['TARO,LEAVES,CKD,STMD,W/SALT',24, '1 cup'],['TARO,SHOOTS,CKD,W/SALT',14, '1 cup, slices'],['TARO,TAHITIAN,CKD,W/SALT',44, '1 cup, slices'],['TOMATOES,RED,RIPE,CKD,W/ SALT',18, '1 cup'],['TOMATOES,RED,RIPE,CND,PACKED IN TOMATO JUC,NO SALT ADDED',16, '1 cup'],['TOMATO JUC,CND,WO/ SALT ADDED',17, '1 cup'],['TOMATO PRODUCTS,CND,PASTE,W/SALT',82, '.25 cup'],['TOMATO PRODUCTS,CND,PUREE,W/SALT',38, '1 cup'],['TURNIPS,CKD,BLD,DRND,W/SALT',22, '1 cup, cubes'],['TURNIPS,FRZ,CKD,BLD,DRND,W/SALT',21, '1 cup'],['TURNIP GRNS,CKD,BLD,DRND,W/SALT',20, '1 cup, chopped'],['TURNIP GRNS,FRZ,CKD,BLD,DRND,W/SALT',29, '.5 cup'],['TURNIP GRNS&TURNIPS,FRZ,CKD,BLD,DRND,W/SALT',34, '1 cup'],['VEGETABLES,MXD,FRZ,CKD,BLD,DRND,W/SALT',60, '.5 cup'],['WAXGOURD,(CHINESE PRESERVING MELON),CKD,BLD,DRND,W/SALT',11, '1 cup, cubes'],['WINGED BEAN,IMMAT SEEDS,CKD,BLD,DRND,W/SALT',37, '1 cup'],['YAM,CKD,BLD,DRND,OR BKD,W/SALT',114, '1 cup, cubes'],['YAMBEAN (JICAMA),CKD,BLD,DRND,W/SALT',36, ''],['YARDLONG BEAN,CKD,BLD,DRND,W/SALT',47, '1 cup, slices'],['CORN,SWEET,WHITE,RAW',86, '1 ear, small (5-1/2 to 6-1/2 long)'],['CORN,SWT,WHITE,CKD,BLD,DRND,WO/SALT',97, '1 ear, small (5-1/2 to 6-1/2 long)'],['CORN,SWT,WHITE,CKD,BLD,DRND,W/SALT',97, '1 ear, small (5-1/2 to 6-1/2 long)'],['CORN,SWT,WHITE,CND,WHL KERNEL,REG PK,SOL&LIQUIDS',64, '1 cup'],['CORN,SWT,WHITE,CND,WHL KERNEL,NO SALT,SOL&LIQUIDS',64, '1 cup'],['CORN,SWT,WHITE,CND,WHL KERNEL,DRND SOL',71, '1 cup'],['CORN,SWT,WHITE,CND,CRM STYLE,REG PK',74, '1 cup'],['CORN,SWT,WHITE,CND,CRM STYLE,NO SALT',72, '1 cup'],['CORN,SWT,WHITE,CND,VACUUM PK,REG PK',79, '1 cup'],['CORN,SWT,WHITE,CND,VACUUM PK,NO SALT',79, '1 cup'],['CORN,SWT,WHITE,FRZ,KRNLS CUT OFF COB,UNPREP',88, '1 cup'],['CORN,SWT,WHITE,FRZ,KRNLS CUT OFF COB,BLD,DRND,WO/SALT',80, '1 cup'],['CORN,SWT,WHITE,FRZ,KRNLS CUT OFF COB,BLD,DRND,W/SALT',80, '1 cup'],['CORN,SWT,WHITE,FRZ,KRNLS ON COB,UNPREP',98, '1 cup, kernels'],['CORN,SWT,WHITE,FRZ,KRNLS ON COB,CKD,BLD,DRND,WO/SALT',94, '1 cup, kernels'],['CORN,SWT,WHITE,FRZ,KRNLS ON COB,CKD,BLD,DRND,W/SALT',94, '1 cup, kernels'],['PEPPERS,SWT,RED,CND,SOL&LIQUIDS',18, '1 cup, halves'],['PEPPERS,SWT,RED,FRZ,CHOPD,UNPREP',20, '.33 package, (10 oz)'],['PEPPERS,SWT,RED,FRZ,CHOPD,BLD,DRND,WO/ SALT',16, '1 cup, chopped or strips'],['PEPPERS,SWT,RED,FRZ,CHOPD,BLD,DRND,W/ SALT',16, '1 cup, chopped or strips'],['PEPPERS,SWT,RED,SAUTEED',133, '1 cup, chopped'],['SESBANIA FLOWER,CKD,STMD,W/SALT',21, '1 cup'],['SOYBEANS,MATURE SEEDS,SPROUTED,CKD,STMD,W/SALT',81, '1 cup'],['SOYBEANS,MATURE SEEDS,SPROUTED,CKD,STIR-FRIED,W/SALT',125, ''],['DOCK,CKD,BLD,DRND,W/SALT',20, ''],['LENTILS,SPROUTED,CKD,STIR-FRIED,W/SALT',101, ''],['MOUNTAIN YAM,HAWAII,CKD,STMD,W/ SALT',82, '1 cup, cubes'],['TREE FERN,CKD,W/SALT',40, '1 frond, (6-1/2 long)'],['POTATOES,MSHD,PREP FROM GRANULES,WO/MILK,WHL MILK&MARGARINE',108, '1 cup'],['POTATOES,MSHD,DEHYD,PREP FRM FLKS WO/ MILK,WHL MILK&MARG ADD',113, '1 cup'],['PEPPERS,SWT,RED,FREEZE-DRIED',314, '1 tbsp'],['BEANS,SNAP,YEL,CND,REG PK,DRND SOL',20, '1 cup'],['BEANS,SNAP,YEL,CND,NO SALT,DRND SOL',20, '1 cup'],['POTATOES,MSHD,HOME-PREPARED,WHL MILK & BUTTER ADDED',113, '1 cup'],['Catsup',101, '1 tbsp'],['PICKLES,CUCUMBER,DILL OR KOSHER DILL',12, '1 spear, small'],['MUSHROOMS,PORTABELLA,EXPOSED TO UV LT,GRILLED',29, '1 cup, sliced'],['PICKLES,CUCUMBER,SWT (INCLUDES BREAD & BUTTER PICKLES)',91, '1 cup, chopped'],['PICKLES,CUCUMBER,SOUR',11, '1 cup'],['PIMENTO,CANNED',23, '1 tbsp'],['PICKLE RELISH,HOT DOG',91, '1 tbsp'],['PICKLE RELISH,SWEET',130, '1 tbsp'],['PICKLES,CUCUMBER,SOUR,LO NA',11, '1 cup, chopped or diced'],['PICKLES,CUCUMBER,DILL,RED NA',12, '1 spear, small'],['PICKLES,CUCUMBER,SWT,LO NA (INCLUDES BREAD & BUTTER PICKLES)',122, '1 slice'],['CATSUP,LOW SODIUM',101, '1 tbsp'],['MUSHROOMS,ENOKI,RAW',37, '1 large'],['PEPPERS,SWEET,YELLOW,RAW',27, '1 pepper, large (3-3/4 long, 3 dia)'],['RADICCHIO,RAW',23, '1 cup, shredded'],['SQUASH,ZUCCHINI,BABY,RAW',21, '1 large'],['TOMATILLOS,RAW',32, '1 medium'],['TOMATOES,SUN-DRIED',258, '1 cup'],['TOMATOES,SUN-DRIED,PACKED IN OIL,DRND',213, '1 cup'],['FENNEL,BULB,RAW',31, '1 cup, sliced'],['PICKLE RELISH,HAMBURGER',129, '1 tbsp'],['ARUGULA,RAW',25, '1 leaf'],['CARROTS,BABY,RAW',35, '1 large'],['HEARTS OF PALM,CANNED',28, '1 cup'],['PEPPERS,HOT CHILE,SUN-DRIED',324, '1 cup'],['NOPALES,RAW',16, '1 cup, sliced'],['NOPALES,CKD,WO/SALT',15, '1 cup'],['CAULIFLOWER,GREEN,RAW',31, '1 cup'],['CAULIFLOWER,GRN,CKD,NO SALT ADDED',32, '.2 head'],['CAULIFLOWER,GRN,CKD,W/ SALT',32, '.5 cup, (1 pieces)'],['BROCCOLI,CHINESE,COOKED',22, '1 cup'],['CABBAGE,NAPA,COOKED',12, '1 cup'],['LEMON GRASS (CITRONELLA),RAW',99, '1 cup'],['BEANS,FAVA,IN POD,RAW',88, '1 cup'],['GRAPE LEAVES,RAW',93, '1 cup'],['GRAPE LEAVES,CND',69, '1 leaf'],['PEPPER,BANANA,RAW',27, '1 cup'],['PEPPERS,SERRANO,RAW',32, '1 cup, chopped'],['PEPPERS,ANCHO,DRIED',281, '1 pepper'],['PEPPERS,JALAPENO,RAW',29, '1 cup, sliced'],['PEPPERS,CHILI,GRN,CND',21, '1 cup'],['PEPPERS,HUNGARIAN,RAW',29, '1 pepper'],['PEPPERS,PASILLA,DRIED',345, '1 pepper'],['PICKLES,CHOWCHOW,W/CAULIFLOWER ONION MUSTARD,SWT',121, '1 cup'],['EPAZOTE,RAW',32, '1 tbsp'],['FIREWEED,LEAVES,RAW',103, '1 cup, chopped'],['MALABAR SPINACH,COOKED',23, '1 cup'],['MUSHROOMS,OYSTER,RAW',33, '1 large'],['FUNGI,CLOUD EARS,DRIED',284, '1 cup'],['MUSHROOMS,STRAW,CND,DRND SOL',32, '1 cup'],['WASABI,ROOT,RAW',109, '1 cup, sliced'],['YAUTIA (TANNIER),RAW',98, '1 cup, sliced'],['MUSHROOMS,WHITE,MICROWAVED',35, ''],['MUSHROOMS,MAITAKE,RAW',31, '1 cup, diced'],['FIDDLEHEAD FERNS,RAW',34, ''],['FIDDLEHEAD FERNS,FRZ,UNPREP',34, ''],['MUSHROOMS,PORTABELLA,EXPOSED TO UV LT,RAW',22, '1 cup, diced'],['BREADFRUIT SEEDS,RAW',191, '1 oz'],['BREADFRUIT SEEDS,BOILED',168, '1 oz'],['SEEDS,BREADNUT TREE SEEDS,RAW',217, '1 oz, (8-14 seeds)'],['SEEDS,BREADNUT TREE SEEDS,DRIED',367, '1 cup'],['CHIA SEEDS,DRIED',486, '1 oz'],['COTTONSEED FLR,PART DEFATTED (GLANDLESS)',359, '1 cup'],['COTTONSEED FLR,LOFAT (GLANDLESS)',332, '1 oz'],['COTTONSEED MEAL,PART DEFATTED (GLANDLESS)',367, '1 oz'],['LOTUS SEEDS,DRIED',332, '1 cup'],['PUMPKIN&SQUASH SD KRNLS,DRIED',559, '1 cup'],['PUMPKIN&SQUASH SD KRNLS,RSTD,WO/SALT',574, '1 cup'],['SAFFLOWER SD KRNLS,DRIED',517, '1 oz'],['SAFFLOWER SD MEAL,PART DEFATTED',342, '1 oz'],['SESAME SEEDS,WHOLE,DRIED',573, '1 cup'],['SESAME SEEDS,WHL,RSTD&TSTD',565, '1 oz'],['SESAME SD KRNLS,TSTD,WO/SALT (DECORT)',567, '1 cup'],['SESAME FLR,PART DEFATTED',382, '1 oz'],['SESAME FLOUR,LOW-FAT',333, '1 oz'],['SESAME MEAL,PART DEFATTED',567, '1 oz'],['SUNFLOWER SD KRNLS,DRIED',584, '1 cup, with hulls edible yield'],['SUNFLOWER SD KRNLS,DRY RSTD,WO/SALT',582, '1 cup'],['SUNFLOWER SD KRNLS,OIL RSTD,WO/SALT',592, '1 cup'],['SUNFLOWER SD KRNLS,TSTD,WO/SALT',619, '1 cup'],['SUNFLOWER SD BUTTER,WO/SALT',617, '1 tbsp'],['SUNFLOWER SD FLR,PART DEFATTED',326, '1 cup'],['ACORNS,RAW',387, '1 oz'],['ACORNS,DRIED',509, '1 oz'],['ACORN FLOUR,FULL FAT',501, '1 oz'],['ALMONDS',579, '1 cup, whole'],['ALMONDS,BLANCHED',590, '1 cup, whole kernels'],['ALMONDS,DRY RSTD,WO/SALT',598, '1 cup, whole kernels'],['ALMONDS,OIL RSTD,WO/SALT',607, '1 cup, whole kernels'],['ALMOND PASTE',458, '1 oz'],['BEECHNUTS,DRIED',576, '1 oz'],['BRAZILNUTS,DRIED,UNBLANCHED',659, '1 cup, whole'],['BUTTERNUTS,DRIED',612, '1 cup'],['CASHEW NUTS,DRY RSTD,WO/SALT',574, '1 cup, halves and whole'],['CASHEW NUTS,OIL RSTD,WO/SALT',580, '1 cup, whole'],['NUTS,CASHEW NUTS,RAW',553, '1 oz'],['CASHEW BUTTER,PLN,WO/SALT',587, '1 tbsp'],['CHESTNUTS,CHINESE,RAW',224, '1 oz'],['CHESTNUTS,CHINESE,DRIED',363, '1 oz'],['CHESTNUTS,CHINESE,BLD&STMD',153, '1 oz'],['CHESTNUTS,CHINESE,ROASTED',239, '1 oz'],['CHESTNUTS,EUROPEAN,RAW,UNPEELED',213, '1 cup'],['CHESTNUTS,EUROPEAN,RAW,PEELED',196, '1 oz'],['CHESTNUTS,EUROPEAN,DRIED,UNPEELED',374, '1 oz'],['CHESTNUTS,EUROPEAN,DRIED,PEELED',369, '1 oz'],['CHESTNUTS,EUROPEAN,BLD&STMD',131, '1 oz'],['COCONUT MEAT,RAW',354, '1 cup, shredded'],['COCONUT MEAT,DRIED (DESICCATED),NOT SWTND',660, '1 oz'],['COCONUT MEAT,DRIED (DESICCATED),SWTND,FLAKED,PACKAGED',456, '1 cup'],['COCONUT MEAT,DRIED (DESICCATED),SWTND,FLAKED,CND',443, '1 cup'],['COCONUT MEAT,DRIED (DESICCATED),TSTD',592, '1 oz'],['COCONUT CRM,RAW (LIQ EXPRESSED FROM GRATED MEAT)',330, '1 tbsp'],['NUTS,COCNT CRM,CND,SWTND',357, '1 tbsp'],['COCONUT MILK,RAW (LIQ EXPRESSED FROM GRATED MEAT&H2O)',230, '1 cup'],['COCONUT MILK,CND (LIQ EXPRESSED FROM GRATED MEAT&H2O)',197, '1 cup'],['COCONUT H2O (LIQ FROM COCONUTS)',19, '1 cup'],['HAZELNUTS OR FILBERTS',628, '1 cup, chopped'],['HAZELNUTS OR FILBERTS,BLANCHED',629, '1 oz'],['HAZELNUTS OR FILBERTS,DRY RSTD,WO/SALT',646, '1 oz'],['GINKGO NUTS,RAW',182, '1 oz'],['GINKGO NUTS,DRIED',348, '1 oz'],['GINKGO NUTS,CANNED',111, '1 cup, (78 kernels)'],['HICKORYNUTS,DRIED',657, '1 cup'],['MACADAMIA NUTS,RAW',718, '1 cup, whole or halves'],['MACADAMIA NUTS,DRY RSTD,WO/SALT',718, '1 cup, whole or halves'],['MIXED NUTS,DRY RSTD,W/PNUTS,WO/SALT',594, '1 cup'],['MIXED NUTS,OIL RSTD,W/PNUTS,WO/SALT',607, '1 cup'],['MIXED NUTS,OIL RSTD,WO/PNUTS,WO/SALT',615, '1 cup'],['FORMULATED,WHEAT-BASED,UNFLAVORED,W/SALT',622, '1 oz'],['PECANS',691, '1 cup, chopped'],['PECANS,DRY RSTD,WO/SALT',710, '1 oz'],['PECANS,OIL RSTD,WO/SALT',715, '1 cup'],['NUTS,PILINUTS,DRIED',719, '1 cup'],['NUTS,PINE NUTS,DRIED',673, '1 cup'],['PINE NUTS,PINYON,DRIED',629, '1 oz'],['PISTACHIO NUTS,RAW',562, '1 cup'],['PISTACHIO NUTS,DRY RSTD,WO/SALT',567, '1 cup'],['WALNUTS,BLACK,DRIED',619, '1 cup, chopped'],['WALNUTS,ENGLISH',654, '1 cup, chopped'],['NUTS,WALNUTS,GLAZED',500, '1 oz'],['BREADFRUIT SEEDS,ROASTED',207, '1 oz'],['COTTONSEED KRNLS,RSTD (GLANDLESS)',506, '1 cup'],['PUMPKIN&SQUASH SEEDS,WHL,RSTD,WO/SALT',446, '1 cup'],['SESAME BUTTER,TAHINI,FROM RSTD&TSTD KRNLS (MOST COMMON TYPE)',595, '1 tbsp'],['CHESTNUTS,EUROPEAN,RSTD',245, '1 cup'],['SESAME BUTTER,PASTE',586, '1 tbsp'],['SESAME FLOUR,HIGH-FAT',526, '1 oz'],['SESAME BUTTER,TAHINI,FROM UNROASTED KRNLS',607, '1 tbsp'],['WATERMELON SD KRNLS,DRIED',557, '1 cup'],['CHESTNUTS,JAPANESE,DRIED',360, '1 cup'],['COCONUT MILK,FRZ (LIQ EXPRESSED FROM GRATED MEAT&H2O)',202, '1 cup'],['COCONUT MEAT,DRIED (DESICCATED),CRMD',684, '1 oz'],['COCONUT MEAT,DRIED (DESICCATED),SWTND,SHREDDED',501, '1 cup, shredded'],['SISYMBRIUM SP. SEEDS,WHL,DRIED',318, '1 cup'],['ALMOND BUTTER,PLN,WO/SALT',614, '1 tbsp'],['SESAME BUTTER,TAHINI,FROM RAW&STONE GROUND KRNLS',570, '1 tbsp'],['FORMULATED,WHEAT-BASED,ALL FLAVORS XCPT MACADAMIA,WO/SALT',647, '1 oz'],['SESAME SD KRNLS,DRIED (DECORT)',631, '1 cup'],['CHESTNUTS,JAPANESE,RAW',154, '1 oz'],['CHESTNUTS,JAPANESE,BLD&STMD',56, '1 oz'],['CHESTNUTS,JAPANESE,RSTD',201, '1 oz'],['LOTUS SEEDS,RAW',89, '1 oz'],['ALMONDS,HONEY RSTD,UNBLANCHED',594, '1 cup, whole kernels'],['SEEDS,FLAXSEED',534, '1 tbsp, whole'],['PUMPKIN&SQUASH SD KRNLS,RSTD,W/SALT',574, '1 cup'],['SESAME SD KRNLS,TSTD,W/SALT (DECORT)',567, '1 cup'],['SEEDS,SUNFLOWER SD KRNLS FROM SHELL,DRY RSTD,W/ SALT ADDED',546, '1 cup'],['SUNFLOWER SD KRNLS,DRY RSTD,W/SALT',582, '1 cup'],['SUNFLOWER SD KRNLS,OIL RSTD,W/SALT',592, '1 cup'],['SUNFLOWER SD KRNLS,TSTD,W/SALT',619, '1 cup'],['SUNFLOWER SD BUTTER,W/SALT',617, '1 tbsp'],['ALMONDS,DRY RSTD,W/SALT',598, '1 cup, whole kernels'],['ALMONDS,OIL RSTD,W/SALT',607, '1 cup, whole kernels'],['NUTS,ALMONDS,OIL RSTD,W/ SALT ADDED,SMOKE FLAVOR',607, '1 oz, (28 almonds)'],['CASHEW NUTS,DRY RSTD,W/SALT',574, '1 cup, halves and whole'],['CASHEW NUTS,OIL RSTD,W/SALT',581, '1 cup, whole'],['CASHEW BUTTER,PLN,W/SALT',609, '1 tbsp'],['MACADAMIA NUTS,DRY RSTD,W/SALT',716, '1 cup, whole or halves'],['MIXED NUTS,DRY RSTD,W/PNUTS,W/SALT',594, '1 cup'],['NUTS,MXD NUTS,OIL RSTD,W/ PNUTS,W/ SALT ADDED',607, '1 cup'],['NUTS,MXD NUTS,OIL RSTD,WO/ PNUTS,W/ SALT ADDED',615, '1 cup'],['PECANS,DRY RSTD,W/SALT',710, '1 oz'],['PECANS,OIL RSTD,W/SALT',715, '1 cup'],['PISTACHIO NUTS,DRY RSTD,W/SALT',564, '1 cup'],['PUMPKIN&SQUASH SEEDS,WHL,RSTD,W/SALT',446, '1 cup'],['NUTS,ALMONDS,OIL RSTD,LIGHTLY SALTED',607, '1 cup, whole kernels'],['ALMOND BUTTER,PLN,W/SALT',614, '1 tbsp'],['SESAME BUTTER,TAHINI,KRNLS UNSPEC',592, '1 tbsp'],['NUTS,MXD NUTS,OIL RSTD,W/ PNUTS,LIGHTLY SALTED',607, '1 oz'],['NUTS,MXD NUTS,OIL RSTD,WO/ PNUTS,LIGHTLY SALTED',607, '1 oz'],['BEEF,GRASS-FED,STRIP STEAKS,LN,RAW',117, '3 oz'],['BEEF,CARCASS,LN&FAT,CHOIC,RAW',291, '1 oz'],['BEEF,CARCASS,LN&FAT,SEL,RAW',278, '1 oz'],['BEEF,RTL CUTS,FAT,RAW',674, '1 oz'],['BEEF,RTL CUTS,FAT,CKD',680, '1 oz'],['BEEF,BRISKET,WHL,LN,ALL GRDS,RAW',155, '1 oz'],['BEEF,GRASS-FED,GROUND,RAW',192, '1 serving'],['BEEF,BRISKET,FLAT HALF,LN & FAT,1/8 FAT,SEL,CKD,BRSD',280, '3 oz'],['BEEF,FLANK,STEAK,LN & FAT,0 FAT,CHOIC,RAW',165, '1 oz'],['BEEF,FLANK,STEAK,LN & FAT,0 FAT,CHOIC,CKD,BRSD',263, '3 oz'],['BEEF,FLANK,STEAK,LN & FAT,0 FAT,CHOIC,CKD,BRLD',202, '3 oz'],['BEEF,FLANK,STEAK,LN,0 FAT,CHOIC,RAW',149, '1 oz'],['BEEF,FLANK,STEAK,LN,0 FAT,CHOIC,CKD,BRSD',237, '3 oz'],['BEEF,FLANK,STEAK,LN,0 FAT,CHOIC,CKD,BRLD',194, '3 oz'],['BEEF,RIB,EYE,SML END (RIBS 10-12),LN&FAT,0FAT,CHOIC,RAW',274, '1 oz'],['BF,RIB,EYE,SML END (RIB 10-12),LN & FT,0 FAT,CHOIC,CKD,BRLD',265, '3 oz'],['BEEF,RIB,EYE,SML END (RIBS 10-12),LN,0FAT,CHOIC,RAW',161, '1 oz'],['BEEF,RIB,EYE,SML END (RIBS 10-12),LN,0FAT,CHOIC,CKD,BRLD',205, '3 oz'],['BEEF,RIB,SHORTRIBS,LN&FAT,CHOIC,RAW',388, '1 oz'],['BEEF,RIB,SHORTRIBS,LN&FAT,CHOIC,CKD,BRSD',471, '3 oz'],['BEEF,RIB,SHORTRIBS,LN ONLY,CHOIC,RAW',173, '1 oz'],['BEEF,RIB,SHORTRIBS,LN,CHOIC,CKD,BRSD',295, '1 piece, cooked, excluding refuse (yield from 1 lb raw meat with refuse)'],['BEEF,RND,FULL CUT,LN,1/4FAT,CHOIC,CKD,BRLD',191, '3 oz'],['BEEF,RND,FULL CUT,LN,1/4FAT,SEL,CKD,BRLD',172, '3 oz'],['BEEF,BRISKET,FLAT HALF,LN & FAT,0 FAT,CHOIC,CKD,BRSD',221, '3 oz'],['USDA CMDTY,BF,CND',246, '1 serving'],['BEEF,SHANK CROSSCUTS,LN,1/4FAT,CHOIC,RAW',128, '1 oz'],['BEEF,SHANK CROSSCUTS,LN,1/4FAT,CHOIC,CKD,SIMMRD',201, '3 oz'],['BEEF,SHRT LOIN,PRTRHS STEAK,LN,1/8 FAT,CHOIC,RAW',161, '3 oz'],['BEEF,SHRT LOIN,PRTRHS STEAK,LN,1/8 FAT,CHOIC,CKD,GRILLED',221, '3 oz'],['BEEF,SHRT LOIN,T-BONE STEAK,BONE-IN,LN,1/8 FAT,CHOIC,RAW',160, '3 oz'],['BEEF,SHRT LN,T-BONE STK,BN-IN,LN,1/8 FAT,CHOIC,CKD,GRILLD',217, '3 oz'],['BEEF,RIB EYE,SML END (RIBS 10-12),LN,0 FAT,SEL,RAW',149, '3 oz'],['BEEF,CHUCK,UND BL POT RST,BNLESS,LN,0 FAT,ALL GRDS,CKD',216, '3 oz'],['BEEF,CHK,UND BL POT RST,BNLESS,LN,0 FAT,ALL GRDS,CKD, BRSD',140, '3 oz'],['BEEF,CHCK,UND BL POT RST OR STEAK,BNLESS,LN,0 FAT,CHOIC,RAW',145, '3 oz'],['BEEF,GROUND,PATTIES,FRZ,CKD,BRLD',295, '3 oz'],['BEEF,VAR MEATS&BY-PRODUCTS,BRAIN,RAW',143, '1 oz'],['BEEF,VAR MEATS&BY-PRODUCTS,BRAIN,CKD,PAN-FRIED',196, '3 oz'],['BEEF,VAR MEATS&BY-PRODUCTS,BRAIN,CKD,SIMMRD',151, '3 oz'],['BEEF,VAR MEATS&BY-PRODUCTS,HEART,RAW',112, '1 oz'],['BEEF,VAR MEATS&BY-PRODUCTS,HEART,CKD,SIMMRD',165, '3 oz'],['BEEF,VAR MEATS&BY-PRODUCTS,KIDNEYS,RAW',99, '1 oz'],['BEEF,VAR MEATS&BY-PRODUCTS,KIDNEYS,CKD,SIMMRD',158, '3 oz'],['BEEF,VAR MEATS&BY-PRODUCTS,LIVER,RAW',135, '3 oz'],['BEEF,VAR MEATS & BY-PRODUCTS,LIVER,CKD,BRSD',191, '1 slice'],['BEEF, VAR MEATS&BY-PRODUCTS, LIVER, CKD, PAN-FRIED',175, '1 slice'],['BEEF,VAR MEATS&BY-PRODUCTS,LUNGS,RAW',92, '1 oz'],['BEEF,VAR MEATS&BY-PRODUCTS,LUNGS,CKD,BRSD',120, '3 oz'],['BEEF,VAR MEATS&BY-PRODUCTS,MECHANICALLY SEPARATED BF,RAW',276, '1 oz'],['BEEF,VAR MEATS&BY-PRODUCTS,PANCREAS,RAW',235, '1 oz'],['BEEF,VAR MEATS&BY-PRODUCTS,PANCREAS,CKD,BRSD',271, '3 oz'],['BEEF,VAR MEATS&BY-PRODUCTS,SPLEEN,RAW',105, '1 oz'],['BEEF,VAR MEATS&BY-PRODUCTS,SPLEEN,CKD,BRSD',145, '3 oz'],['BEEF,VAR MEATS & BY-PRODUCTS,SUET,RAW',854, '1 oz'],['BEEF,VAR MEATS&BY-PRODUCTS,THYMUS,RAW',236, '1 oz'],['BEEF,VAR MEATS&BY-PRODUCTS,THYMUS,CKD,BRSD',319, '3 oz'],['BEEF,VAR MEATS&BY-PRODUCTS,TONGUE,RAW',224, '1 oz'],['BEEF,VAR MEATS&BY-PRODUCTS,TONGUE,CKD,SIMMRD',284, '3 oz'],['BEEF,VAR MEATS&BY-PRODUCTS,TRIPE,RAW',85, '1 oz'],['BEEF,SNDWCH STEAKS,FLAKED,CHOPD,FORMED & THINLY SLICED,RAW',309, '3 oz'],['BEEF,BRISKET,FLAT HALF,LN,0 FAT,CHOIC,CKD,BRSD',212, '3 oz'],['BEEF,CURED,BRKFST STRIPS,RAW OR UNHTD',406, '3 slices'],['BEEF,CURED,BRKFST STRIPS,CKD',449, '3 slices'],['BEEF,CURED,CORNED BF,BRISKET,RAW',198, '1 oz'],['BEEF,CURED,CORNED BF,BRISKET,CKD',251, '3 oz'],['BEEF,CURED,CORNED BF,CND',250, '1 oz'],['BEEF,CURED,DRIED',153, '10 slices'],['BEEF,CHUCK,UNDER BLADE CNTR STEAK,BNLESS,DENVER CUT,LN,0 FA',220, '3 oz'],['BEEF,CHUCK,UNDER BLADE CNTR STEAK,BNLESS,DENVER CUT,LN,0 FA',228, '3 oz'],['BEEF,CURED,LUNCHEON MEAT,JELLIED',111, '1 slice, (1 oz) (4 x 4 x 3/32 thick)'],['BEEF,CHK,UND BL CNTR STK,BNLESS,DEN CUT,LN,0 FA, SEL, CKD',209, '3 oz'],['BEEF,CURED,PASTRAMI',147, '1 package, 2.5 oz'],['BEEF,CHK,UNDBL CNTR STK,BNLESS,DENCUT,LN,0 FA, ALL GRD, RAW',170, '3 oz'],['BEEF,CURED,SAUSAGE,CKD,SMOKED',312, '1 sausage'],['BEEF,CURED,SMOKED,CHOPD BF',133, '1 slice, (1 oz)'],['BEEF,CHK,UND BLCNTR STK,BNLESS,DEN CUT,LN,0 FA, CHOICE, RAW',178, '3 oz'],['BEEF,CURED,THIN-SLICED BF',176, '1 oz'],['BEEF,COMP OF RTL CUTS,LN&FAT,0FAT,ALL GRDS,CKD',273, '3 oz'],['BEEF,COMP OF RTL CUTS,LN&FAT,0FAT,CHOIC,CKD',283, '3 oz'],['BEEF,COMP OF RTL CUTS,LN&FAT,0FAT,SEL,CKD',261, '3 oz'],['BEEF,COMP OF RTL CUTS,LN,0 FAT,ALL GRDS,CKD',211, '3 oz'],['BEEF,COMP OF RTL CUTS,LN,0FAT,CHOIC,CKD',219, '3 oz'],['BEEF,COMP OF RTL CUTS,LN,0FAT,SEL,CKD',201, '3 oz'],['BEEF,BRISKET,WHL,LN&FAT,0FAT,ALL GRDS,CKD,BRSD',291, '3 oz'],['BEEF,BRISKET,WHL,LN,0FAT,ALL GRDS,CKD,BRSD',218, '3 oz'],['BEEF,BRISKET,FLAT HALF,LN&FAT,0FAT,ALL GRDS,CKD,BRSD',213, '3 oz'],['BEEF,BRISKET,FLAT HALF,LN,0FAT,ALL GRDS,CKD,BRSD',205, '3 oz'],['BEEF,BRISKET,POINT HALF,LN&FAT,0FAT,ALL GRDS,CKD,BRSD',358, '3 oz'],['BEEF,BRISKET,POINT HALF,LN,0FAT,ALL GRDS,CKD,BRSD',244, '3 oz'],['BEEF,CHUCK,ARM POT RST,LN&FAT,0FAT,ALL GRDS,CKD,BRSD',297, '3 oz'],['BEEF,CHUCK,ARM POT RST,LN & FAT,0 FAT,SEL,CKD,BRSD',283, '3 oz'],['BEEF,CHUCK,ARM POT RST,LN,0FAT,CHOIC,CKD,BRSD',212, '3 oz'],['BEEF,CHUCK,ARM POT RST,LN,0FAT,SEL,CKD,BRSD',195, '3 oz'],['BEEF,CHCK,UNDR BLDE POT RST,BNLS,LN & FAT,0,CHC,CKD,BRSD',306, '3 oz'],['BEEF,CHCK,UNDR BLDE POT RST,BNLS,LN & FAT,0,SEL,CKD,BRSD',288, '3 oz'],['BEEF,CHUCK,BLADE RST,LN,0FAT,ALL GRDS,CKD,BRSD',253, '3 oz'],['BEEF,CHK,UNDER BLADE POT RST,BNLESS,LN,0 FAT,CHOIC,CKD,BRSD',231, '3 oz'],['BEEF,CHUCK,UNDER BLADE POT RST,BNLESS,LN,0 FAT,SEL,CKD,BRSD',216, '3 oz'],['BEEF,RIB,LRG END (RIBS 6-9),LN&FAT,0FAT,CHOIC,CKD,RSTD',372, '3 oz'],['BEEF,RIB,LRG END (RIBS 6-9),LN&FAT,0FAT,SEL,CKD,RSTD',331, '3 oz'],['BEEF,RIB,LRG END (RIBS 6-9),LN,0FAT,ALL GRDS,CKD,RSTD',238, '3 oz'],['BEEF,RIB,LRG END (RIBS 6-9),LN,0FAT,CHOIC,CKD,RSTD',253, '3 oz'],['BEEF,RIB,LRG END (RIBS 6-9),LN,0FAT,SEL,CKD,RSTD',220, '3 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN&FAT,0FAT,ALL GRDS,CKD,BRLD',249, '3 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN&FAT,0FAT,CHOIC,CKD,BRLD',312, '3 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN&FAT,0FAT,SEL,CKD,BRLD',285, '3 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN,0FAT,ALL GRDS,CKD,BRLD',193, '3 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN,0FAT,CHOIC,CKD,BRLD',225, '3 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN,0FAT,SEL,CKD,BRLD',198, '3 oz'],['BEEF,RND,BTTM RND,STEAK,LN & FAT,0 FAT,ALL GRDS,CKD,BRSD',223, '3 oz'],['BEEF,RND,BTTM RND,RST,LN & FAT,0 FAT,ALL GRDS,CKD,RSTD',187, '3 oz'],['BEEF,RND,BTTM RND,STEAK,LN & FAT,0 FAT,CHOIC,CKD,BRSD',230, '3 oz'],['BEEF,RND,BTTM RND,RST,LN & FAT,0 FAT,CHOIC,CKD,RSTD',199, '3 oz'],['BEEF,RND,BTTM RND,STEAK,LN & FAT,0 FAT,SEL,CKD,BRSD',217, '3 oz'],['BEEF,RND,BTTM RND,RST,LN & FAT,0 FAT,SEL,CKD,RSTD',175, '3 oz'],['BEEF,RND,BTTM RND,STEAK,LN,0 FAT,ALL GRDS,CKD,BRSD',214, '3 oz'],['BEEF,RND,BTTM RND,RST,LN,0 FAT,ALL GRDS,CKD,RSTD',177, '3 oz'],['BEEF,RND,BTTM RND,STEAK,LN,0 FAT,CHOIC,CKD,BRSD',223, '3 oz'],['Beef, bottom round, roast,lean only, 0 fat, choice, roasted',185, '3 oz'],['BEEF,RND,BTTM RND,STEAK,LN,0 FAT,SEL,CKD,BRSD',206, '3 oz'],['BEEF,RND,BTTM RND RST,LN,0 FAT,SEL,CKD,RSTD',169, '3 oz'],['BEEF,RND,EYE OF RND RST,BNLESS,L & F,0 FAT,A GRDS,CKD,RSTD',167, '3 oz'],['BEEF,RND,EYE OF RND RST,BNLESS,LN & FT,0 FAT,CHOIC,CKD,RSTD',171, '3 oz'],['BEEF,RND,EYE OF RND RST,BNLESS,LN & FAT,0 FAT,SEL,CKD,RSTD',162, '3 oz'],['BEEF,RND,EYE OF RND RST,BNLESS,LN,0 FAT,ALL GRDS,CKD,RSTD',163, '3 oz'],['BEEF,RND,EYE OF RND RST,BNLESS,LN,0 FAT,CHOIC,CKD,RSTD',166, '3 oz'],['BEEF,RND,EYE OF RND RST,BNLESS,LN,0 FAT,SEL,CKD,RSTD',157, '3 oz'],['BEEF,RND,TIP RND,RST,LN & FAT,0 FAT,ALL GRDS,CKD,RSTD',188, '3 oz'],['BEEF,RND,TIP RND,RST,LN & FAT,0 FAT,CHOIC,CKD,RSTD',196, '3 oz'],['BEEF,RND,TIP RND,RST,LN & FAT,0 FAT,SEL,CKD,RSTD',181, '3 oz'],['BEEF,RND,TIP RND,RST,LN,0 FAT,ALL GRDS,CKD,RSTD',174, '3 oz'],['BEEF,RND,TIP RND,RST,LN,0 FAT,CHOIC,CKD,RSTD',176, '3 oz'],['BEEF,RND,TIP RND,RST,LN,0 FAT,SEL,CKD,RSTD',149, '3 oz'],['BEEF,RND,TOP RND,LN&FAT,0FAT,ALL GRDS,CKD,BRSD',209, '3 oz'],['BEEF,RND,TOP RND,LN&FAT,0FAT,CHOIC,CKD,BRSD',216, '3 oz'],['BEEF,RND,TOP RND,LN&FAT,0FAT,SEL,CKD,BRSD',200, '3 oz'],['BEEF,RND,TOP RND,LN,0FAT,CHOIC,CKD,BRSD',207, '3 oz'],['BEEF,RND,TOP RND,LN,0FAT,SEL,CKD,BRSD',190, '3 oz'],['BEEF,LOIN,TNDRLN STEAK,BNLESS,L & F,0 F,A GRDS,CKD,GRILLED',211, '3 oz'],['BEEF,LOIN,TENDERLOIN STK,BNLESS,L & F,0 F,CHOIC,CKD,GRLLED',217, '3 oz'],['BEEF,LOIN,TENDERLOIN STK,BNLESS,L & F,0 FAT,SEL,CKD,GRILLED',202, '3 oz'],['BEEF,LOIN,TENDERLOIN STK,BNLESS,L,0 F,ALL GRDS,CKD,GRILLED',198, '3 oz'],['BEEF,LOIN,TENDERLOIN STEAK,BNLESS,LN,0 FAT,CHOIC,CKD,GRLLED',211, '3 oz'],['BEEF,LOIN,TENDERLOIN STEAK,BNLESS,LN,0 FAT,SEL,CKD,GRILLED',198, '3 oz'],['BEEF,LOIN,TOPLOINSTK,BNLS,LIPOFF,LN FT,0 FT,ALLGRD,CKD,GRLD',223, '3 oz'],['BEEF,LOIN,TOPLOINSTK,BNLS,LIP OFF,LN FT,0 FT,CHC,CKD,GRLD',233, '3 oz'],['BEEF,LOIN,TOPLOINSTK,BNLS,LIP OFF,LN FAT,0 FT,SEL,CKD,GRLD',207, '3 oz'],['BEEF,LOIN,TOPLOINSTK,BNLS,LIP OFF,LN,0 FT,ALL GRD,CKD,GRLD',202, '3 oz'],['BEEF,LOIN,TOP LOIN STK,BNLS,LIP OFF,LN,0 FAT,CHOIC,CKD,GRLD',211, '3 oz'],['BEEF,LOIN,TOP LOIN STK,BNLS,LIP OFF,LN,0 FAT,SEL,CKD,GRLD',189, '3 oz'],['BEEF,TOP SIRLOIN,STEAK,LN & FAT,0 FAT,ALL GRDS,CKD,BRLD',212, '3 oz'],['BEEF,TOP SIRLOIN,STEAK,LN & FAT,0 FAT,CHOIC,CKD,BRLD',219, '3 oz'],['BEEF,TOP SIRLOIN,STEAK,LN & FAT,0 FAT,SEL,CKD,BRLD',206, '3 oz'],['BEEF,TOP SIRLOIN,STEAK,LN,0 FAT,ALL GRDS,CKD,BRLD',183, '3 oz'],['BEEF,TOP SIRLOIN,STEAK,LN,0 FAT,CHOIC,CKD,BRLD',188, '3 oz'],['BEEF,TOP SIRLOIN,STEAK,LN,0 FAT,SEL,CKD,BRLD',177, '3 oz'],['BEEF,SHRT LOIN,PRTRHS STK,LN & FAT,0 FAT,ALL GRDS,CKD,BRLD',276, '3 oz, ( 1 serving )'],['BEEF,LOIN,PRTRHS STK,LN & FAT,0 FAT,USDA CHOIC,CKD,BRLD',283, '3 oz, ( 1 serving )'],['BEEF,SHRT LOIN,PRTRHS STK,LN & FAT,0 FAT,USDA SEL,CKD,BRLD',267, '3 oz, ( 1serving )'],['BEEF,SHRT LOIN,PRTRHS STEAK,LN,1/8 FAT,ALL GRDS,RAW',155, '3 oz'],['BEEF,SHRT LOIN,PRTRHS STEAK,LN,1/8 FAT,ALL GRDS,CKD,GRILLED',213, '3 oz'],['BEEF,SHRT LOIN,PRTRHS STEAK,LN,0 FAT,ALL GRDS,CKD,BRLD',212, '3 oz, ( 1 serving )'],['BEEF,SHRT LOIN,PRTRHS STEAK,LN,0 FAT,CHOIC,CKD,BRLD',224, '3 oz'],['BEEF,SHRT LOIN,PRTRHS STEAK,LN,1/8 FAT,SEL,RAW',145, '3 oz'],['BEEF,SHRT LOIN,PRTRHS STEAK,LN,1/8 FAT,SEL,CKD,GRILLED',203, '3 oz'],['BEEF,SHRT LOIN,PRTRHS STEAK,LN,0 FAT,SEL,CKD,BRLD',194, '3 oz'],['BEEF,SHRT LOIN,T-BONE STK,LN & FAT,0 FAT,ALL GRDS,CKD,BRLD',247, '3 oz, ( 1 serving )'],['BEEF,LOIN,T-BONE STEAK,LN & FAT,0 FAT,USDA CHOIC,CKD,BRLD',258, '3 oz, ( 1 serving )'],['BEEF,SHRT LOIN,T-BONE STK,LN & FAT,0 FAT,USDA SEL,CKD,BRLD',230, '3 oz, ( 1 serving )'],['BEEF,SHRT LOIN,T-BONE STEAK,BONE-IN,LN,1/8 FAT,ALL GRDS,RAW',153, '3 oz'],['BEEF,SHRT LN,T-BN STK,BN-IN,LN,1/8 FAT,ALL GRDS,CKD,GRILLED',212, '3 oz, ( 1 serving )'],['BEEF,SHRT LOIN,T-BONE STEAK,LN,0 FAT,CHOIC,CKD,BRLD',198, '3 oz'],['BEEF,SHRT LOIN,T-BONE STEAK,BONE-IN,LN,1/8 FAT,SEL,RAW',144, '3 oz'],['BEEF,SHRT LN,T-BONE STK,BONE-IN,LN,1/8 FAT,SEL,CKD,GRILLED',206, '3 oz'],['BEEF,SHRT LOIN,T-BONE STEAK,LN,0 FAT,SEL,CKD,BRLD',177, '3 oz'],['BEEF,BRISKET,FLAT HALF,LN,0 FAT,SEL,CKD,BRSD',198, '3 oz'],['BEEF,RND,TIP RND,RST,LN & FAT,0 FAT,ALL GRDS,RAW',151, '3 oz'],['BEEF,RND,TIP RND,RST,LN & FAT,0 FAT,CHOIC,RAW',156, '3 oz'],['BEEF,RND,TIP RND,RST,LN & FAT,0 FAT,SEL,RAW',145, '3 oz'],['BEEF,RIB,EYE,SML END (RIBS 10- 12) LN,0 FAT,SEL,CKD,BRLD',182, '3 oz'],['BEEF,RND,TOP RND STEAK,BNLESS,LN,0 FAT,ALL GRDS,CKD,GRILLED',162, '3 oz'],['BEEF,RND,TOP RND STEAK,BNLESS,LN,0 FAT,CHOIC,CKD,GRILLED',166, '3 oz'],['BEEF,RND,TOP RND STEAK,BNLESS,LN,0 FAT,SEL,CKD,GRILLED',158, '3 oz'],['BEEF,GROUND,70% LN MEAT / 30% FAT,CRUMBLES,CKD,PAN-BROWNED',263, '3 oz'],['BEEF,GROUND,70% LN MEAT / 30% FAT,LOAF,CKD,BKD',241, '3 oz'],['BEEF,GROUND,70% LN MEAT / 30% FAT,PATTY CKD,PAN-BROILED',238, '3 oz'],['BEEF,GROUND,70% LN MEAT / 30% FAT,PATTY,CKD,BRLD',277, '3 oz'],['BEEF,GROUND,70% LN MEAT / 30% FAT,RAW',332, '4 oz'],['BEEF,CHK,UND BL CNTR STK,BNLESS,DEN CUT,LN,0 FA, SEL, RAW',157, '3 oz'],['BEEF,SHLDR TOP BLADE STEAK,BNLESS,LN,0 FAT,ALL GRDS,CKD,GRI',196, '3 oz'],['BEEF,SHLDR TOP BLADE STEAK,BNLESS,LN,0 FAT,CHOIC,CKD,GRILLE',202, '3 oz'],['BEEF,SHLDR TOP BLADE STEAK,BNLESS,LN,0 FAT,SEL,CKD,GRILLED',187, '3 oz'],['BEEF,SHLDR TOP BLADE STEAK,BNLESS,LN,0 FAT,ALL GRDS,RAW',139, '3 oz'],['BEEF,SHLDR TOP BLADE STEAK,BNLESS,LN,0 FAT,CHOIC,RAW',143, '3 oz'],['BEEF,SHLDR TOP BLADE STEAK,BNLESS,LN,0 FAT,SEL,RAW',133, '3 oz'],['BEEF,BRISKET,FLAT HALF,BNLESS LN,0 FAT,ALL GRDS,RAW',132, '3 oz'],['BEEF,BRISKET,FLAT HALF,BNLESS LN,0 FAT,ALL CHOICE,RAW',137, '3 oz'],['BEEF,BRISKET,FLAT HALF,BNLESS,LN,0 FAT,SEL,RAW',124, '3 oz'],['BEEF,SHLDR TOP BLADE STK,BNLES,LN & FAT,0 ,ALL GRDS,CKD,G',210, '3 oz'],['BEEF,SHLDR POT RST OR STEAK,BNLESS,LN,0 FAT,ALL GRDS,RAW',123, '3 oz'],['BEEF,SHLDR POT RST OR STEAK,BNLESS,LN,0 FAT,CHOIC,RAW',125, '3 oz'],['BEEF,SHLDR POT RST OR STEAK,BNLESS,LN,0 FAT,SEL,RAW',121, '3 oz'],['BEEF,SHLDR TOP BLDE STK,BNS,LN & FAT,0 FAT,CHOIC,CKD,G',220, '3 oz'],['BEEF,CHUCK EYE RST,BNLESS,A BF RST,LN & FAT,0,ALL G,RAW',180, '3 oz'],['BEEF,CHUCK EYE RST,BNLS,A BF RST,LN & FAT,0 FAT,CHOIC,RAW',185, '3 oz'],['BEEF,CHUCK EYE RST,BNLS,A BF RST,LN & FAT,0 FAT,SEL,RAW',173, '3 oz'],['BEEF,COMP OF RTL CUTS,LN&FAT,1/8FAT,ALL GRDS,RAW',234, '1 oz'],['BEEF,COMP OF RTL CUTS,LN&FAT,1/8FAT,ALL GRDS,CKD',291, '3 oz'],['BEEF,COMP OF RTL CUTS,LN&FAT,1/8FAT,CHOIC,RAW',243, '1 oz'],['BEEF,COMP OF RTL CUTS,LN&FAT,1/8FAT,CHOIC,CKD',301, '3 oz'],['BEEF,COMP OF RTL CUTS,LN&FAT,1/8FAT,SEL,RAW',223, '1 oz'],['BEEF,COMP OF RTL CUTS,LN&FAT,1/8FAT,SEL,CKD',278, '3 oz'],['BEEF,COMP OF RTL CUTS,LN&FAT,1/8FAT,PRIME,RAW',265, '1 oz'],['BEEF,COMP OF RTL CUTS,LN&FAT,1/8FAT,PRIME,CKD',299, '3 oz'],['BEEF,BRISKET,WHL,LN&FAT,1/8FAT,ALL GRDS,RAW',251, '1 oz'],['BEEF,BRISKET,WHL,LN&FAT,1/8FAT,ALL GRDS,CKD,BRSD',331, '3 oz'],['BEEF,BRISKET,FLAT HALF,LN&FAT,1/8FAT,ALL GRDS,RAW',277, '3 oz'],['BEEF,BRISKET,FLAT HALF,LN&FAT,1/8FAT,ALL GRDS,CKD,BRSD',289, '3 oz'],['BEEF,BRISKET,POINT HALF,LN&FAT,1/8FAT,ALL GRDS,RAW',265, '1 oz'],['BEEF,BRISKET,POINT HALF,LN&FAT,1/8FAT,ALL GRDS,CKD,BRSD',349, '3 oz'],['BEEF,CHUCK,ARM POT RST,LN&FAT,1/8FAT,ALL GRDS,RAW',244, '1 oz'],['BEEF,CHUCK,ARM POT RST,LN&FAT,1/8FAT,ALL GRDS,CKD,BRSD',302, '3 oz'],['BEEF,CHUCK,ARM POT RST,LN&FAT,1/8FAT,CHOIC,RAW',249, '1 oz'],['BEEF,CHUCK,ARM POT RST,LN&FAT,1/8FAT,CHOIC,CKD,BRSD',309, '3 oz'],['BEEF,CHUCK,ARM POT RST,LN&FAT,1/8FAT,SEL,RAW',239, '1 oz'],['BEEF,CHUCK,ARM POT RST,LN&FAT,1/8FAT,SEL,CKD,BRSD',295, '3 oz'],['BEEF,CHUCK,BLADE RST,LN&FAT,1/8FAT,ALL GRDS,RAW',248, '1 oz'],['BEEF,CHUCK,BLADE RST,LN&FAT,1/8FAT,ALL GRDS,CKD,BRSD',341, '3 oz'],['BEEF,CHUCK,BLADE RST,LN&FAT,1/8FAT,CHOIC,RAW',265, '1 oz'],['BEEF,CHUCK,BLADE RST,LN&FAT,1/8FAT,CHOIC,CKD,BRSD',359, '3 oz'],['BEEF,CHUCK,BLADE RST,LN&FAT,1/8FAT,SEL,RAW',230, '1 oz'],['BEEF,CHUCK,BLADE RST,LN&FAT,1/8FAT,SEL,CKD,BRSD',318, '3 oz'],['BEEF,CHK EYE RST,BNL,AMERICAS BF RST,LN,0 FAT,ALL GRD, CKD',183, '3 oz'],['BEEF,CHK EYE RST,BNLESS,AMERICAS BF RST,LN,0 FAT,CHOIC,CKD',190, '3 oz'],['BEEF,CHUCK EYE RST,BNLESS,AMERICAS BF RST,LN,0 FAT,SEL,CKD',172, '3 oz'],['BEEF,RIB,WHL (RIBS 6-12),LN&FAT,1/8FAT,ALL GRDS,RAW',306, '1 oz'],['BEEF,RIB,WHL (RIBS 6-12),LN&FAT,1/8FAT,ALL GRDS,CKD,BRLD',337, '3 oz'],['BEEF,RIB,WHL (RIBS 6-12),LN&FAT,1/8FAT,ALL GRDS,CKD,RSTD',351, '3 oz'],['BEEF,RIB,WHL (RIBS 6-12),LN&FAT,1/8FAT,CHOIC,RAW',322, '1 oz'],['BEEF,RIB,WHL (RIBS 6-12),LN&FAT,1/8FAT,CHOIC,CKD,BRLD',352, '3 oz'],['BEEF,RIB,WHL (RIBS 6-12),LN&FAT,1/8FAT,CHOIC,CKD,RSTD',365, '3 oz'],['BEEF,RIB,WHL (RIBS 6-12),LN&FAT,1/8FAT,SEL,RAW',288, '1 oz'],['BEEF,RIB,WHL (RIBS 6-12),LN&FAT,1/8FAT,SEL,CKD,BRLD',315, '3 oz'],['BEEF,RIB,WHL (RIBS 6-12),LN&FAT,1/8FAT,SEL,CKD,RSTD',330, '3 oz'],['BEEF,RIB,WHL (RIBS 6-12),LN&FAT,1/8FAT,PRIME,RAW',355, '1 oz'],['BEEF,RIB,WHL (RIBS 6-12),LN&FAT,1/8FAT,PRIME,CKD,BRLD',386, '3 oz'],['BEEF,RIB,WHL (RIBS 6-12),LN&FAT,1/8FAT,PRIME,CKD,RSTD',400, '3 oz'],['BEEF,RIB,LRG END (RIBS 6-9),LN&FAT,1/8FAT,ALL GRDS,RAW',316, '1 oz'],['BEEF,RIB,LRG END (RIBS 6-9),LN&FAT,1/8FAT,ALL GRDS,CKD,BRLD',338, '3 oz'],['BEEF,RIB,LRG END (RIBS 6-9),LN&FAT,1/8FAT,ALL GRDS,CKD,RSTD',355, '3 oz'],['BEEF,RIB,LRG END (RIBS 6-9),LN&FAT,1/8FAT,CHOIC,RAW',333, '1 oz'],['BEEF,RIB,LRG END (RIBS 6-9),LN&FAT,1/8FAT,CHOIC,CKD,BRLD',370, '3 oz'],['BEEF,RIB,LRG END (RIBS 6-9),LN&FAT,1/8FAT,CHOIC,CKD,RSTD',378, '3 oz'],['BEEF,RIB,LRG END (RIBS 6-9),LN&FAT,1/8FAT,SEL,RAW',295, '1 oz'],['BEEF,RIB,LRG END (RIBS 6-9),LN&FAT,1/8FAT,SEL,CKD,BRLD',324, '3 oz'],['BEEF,RIB,LRG END (RIBS 6-9),LN&FAT,1/8FAT,SEL,CKD,RSTD',333, '3 oz'],['BEEF,RIB,LRG END (RIBS 6-9),LN&FAT,1/8FAT,PRIME,RAW',367, '1 oz'],['BEEF,RIB,LRG END (RIBS 6-9),LN&FAT,1/8FAT,PRIME,CKD,BRLD',404, '3 oz'],['BEEF,RIB,LRG END (RIBS 6-9),LN&FAT,1/8FAT,PRIME,CKD,RSTD',393, '3 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN&FAT,1/8FAT,ALL GRDS,RAW',254, '1 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN&FAT,1/8FAT,ALL GRDS,CKD,BR',291, '3 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN&FAT,1/8FAT,ALL GRDS,CKD,RS',341, '3 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN&FAT,1/8FAT,CHOIC,RAW',263, '1 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN&FAT,1/8FAT,CHOIC,CKD,BRLD',304, '3 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN&FAT,1/8FAT,CHOIC,CKD,RSTD',359, '3 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN&FAT,1/8FAT,SEL,RAW',246, '3 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN&FAT,1/8FAT,SEL,CKD,BRLD',278, '3 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN&FAT,1/8FAT,SEL,CKD,RSTD',323, '3 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN&FAT,1/8FAT,PRIME,RAW',335, '1 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN&FAT,1/8FAT,PRIME,CKD,BRLD',354, '3 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN&FAT,1/8FAT,PRIME,CKD,RSTD',411, '3 oz'],['BEEF,SHLDR TOP BLDE STK,BNLS,LN & FAT,0 FAT,SEL,CKD,G',194, '3 oz'],['BEEF,SHLDR TOP BLADE STEAK,BNLS,LN & FAT,0 FAT,ALL GRDS,RAW',146, '3 oz'],['BEEF,RND,FULL CUT,LN&FAT,1/8FAT,CHOIC,RAW',195, '1 oz'],['BEEF,RND,FULL CUT,LN&FAT,1/8FAT,CHOIC,CKD,BRLD',235, '3 oz'],['BEEF,RND,FULL CUT,LN&FAT,1/8FAT,SEL,RAW',184, '1 oz'],['BEEF,RND,FULL CUT,LN&FAT,1/8FAT,SEL,CKD,BRLD',218, '3 oz'],['BEEF,RND,BTTM RND,STEAK,LN & FAT,1/8 FAT,ALL GRDS,RAW',192, '1 oz'],['BEEF,RND,BTTM RND,STEAK,LN & FAT,1/8 FAT,ALL GRDS,CKD,BRSD',247, '3 oz'],['BEEF,RND,BTTM RND,RST,LN & FAT,1/8 FAT,ALL GRDS,CKD,RSTD',218, '3 oz'],['BEEF,RND,BTTM RND,STEAK,LN & FAT,1/8 FAT,CHOIC,RAW',198, '1 oz'],['BEEF,RND,BTTM RND,STEAK,LN & FAT,1/8 FAT,CHOIC,CKD,BRSD',254, '3 oz'],['BEEF,RND,BTTM RND,RST,LN & FAT,1/8 FAT,CHOIC,CKD,RSTD',223, '3 oz'],['BEEF,RND,BTTM RND,STEAK,LN & FAT,1/8 FAT,SEL,RAW',187, '3 oz'],['BEEF,RND,BTTM RND,STEAK,LN & FAT,1/8 FAT,SEL,CKD,BRSD',240, '3 oz'],['BEEF,RND,BTTM RND,RST,LN & FAT,1/8 FAT,SEL,CKD,RSTD',212, '3 oz'],['BEEF,RND,EYE OF RND,RST,LN & FAT,1/8 FAT,ALL GRDS,RAW',166, '1 oz'],['BEEF,RND,EYE OF RND,RST,LN & FAT,1/8 FAT,ALL GRDS,CKD,RSTD',208, '3 oz'],['BEEF,RND,EYE OF RND,RST,LN & FAT,1/8 FAT,CHOIC,RAW',173, '1 oz'],['BEEF,RND,EYE OF RND,RST,LN & FAT,1/8 FAT,CHOIC,CKD,RSTD',212, '3 oz'],['BEEF,RND,EYE OF RND,RST,LN & FAT,1/8 FAT,SEL,RAW',159, '1 oz'],['BEEF,RND,EYE OF RND,RST,LN & FAT,1/8 FAT,SEL,CKD,RSTD',204, '3 oz'],['BEEF,RND,TIP RND,LN&FAT,1/8FAT,ALL GRDS,RAW',189, '1 oz'],['BEEF,RND,TIP RND,RST,LN & FAT,1/8 FAT,ALL GRDS,CKD,RSTD',219, '3 oz'],['BEEF,RND,TIP RND,LN&FAT,1/8FAT,CHOIC,RAW',199, '1 oz'],['BEEF,RND,TIP RND,RST,LN & FAT,1/8 FAT,CHOIC,CKD,RSTD',228, '3 oz'],['BEEF,RND,TIP RND,LN&FAT,1/8FAT,SEL,RAW',178, '1 oz'],['BEEF,RND,TIP RND,RST,LN & FAT,1/8 FAT,SEL,CKD,RSTD',210, '3 oz'],['BEEF,SHLDR TOP BLADE STEAK,BNLESS,LN & FAT,0 FAT,CHOIC,RAW',152, '3 oz'],['BEEF,RND,TOP RND,LN,1/8 FAT,CHOIC,CKD,PAN-FRIED',228, '3 oz'],['BEEF,RND,TOP RND,STEAK,LN & FAT,1/8 FAT,ALL GRDS,RAW',166, '1 oz'],['BEEF,RND,TOP RND,LN&FAT,1/8FAT,ALL GRDS,CKD,BRSD',238, '3 oz'],['BEEF,RND,TOP RND STEAK,LN & FAT,1/8 FAT,ALL GRDS,CKD,BRLD',204, '3 oz'],['BEEF,RND,TOP RND,STEAK,LN & FAT,1/8 FAT,CHOIC,RAW',168, '1 oz'],['BEEF,RND,TOP RND,LN&FAT,1/8FAT,CHOIC,CKD,BRSD',250, '3 oz'],['BEEF,RND,TOP RND,STEAK,LN & FAT,1/8 FAT,CHOIC,CKD,BRLD',224, '3 oz'],['BEEF,RND,TOP RND,LN&FAT,1/8FAT,CHOIC,CKD,PAN-FRIED',266, '3 oz'],['BEEF,RND,TOP RND,STEAK,LN & FAT,1/8 FAT,SEL,RAW',164, '1 oz'],['BEEF,RND,TOP RND,LN&FAT,1/8FAT,SEL,CKD,BRSD',225, '3 oz'],['BEEF,RND,TOP RND,STEAK,LN & FAT,1/8 FAT,SEL,CKD,BRLD',201, '3 oz'],['BEEF,RND,TOP RND,LN&FAT,1/8FAT,PRIME,RAW',173, '1 oz'],['BEEF,RND,TOP RND,STEAK,LN & FAT,1/8 FAT,PRIME,CKD,BRLD',225, '3 oz'],['BEEF,SHLDR TOP BLADE STEAK,BNLESS,LN & FAT,0 FAT,SEL,RAW',137, '3 oz'],['BEEF,BRISKET,FLAT HALF,BNLESS,LN & FAT,0 FAT,ALL GRDS,RAW',165, '3 oz'],['BEEF,SHRT LOIN,PRTRHS STEAK,LN&FAT,1/8FAT,CHOIC,RAW',218, '3 oz'],['BEEF,SHRT LOIN,PRTRHS STK,LN & FAT,1/8 FAT,CHOIC,CKD,GRILLD',284, '3 oz'],['BEEF,SHRT LOIN,T-BONE STEAK,LN&FAT,1/8FAT,CHOIC,RAW',228, '3 oz'],['BEEF,SHRT LN,T-BONE STK,L & F,1/8 FAT,CHOIC,CKD,GRILLED',294, '3 oz'],['BEEF,SHRT LOIN,TOP LOIN,STEAK,LN & FAT,1/8 FAT,ALL GRDS,RAW',228, '3 oz'],['BEEF,LOIN,TOP LOIN,LN & FAT,1/8 FAT,ALL GRDS,CKD,GRILLED',264, '3 oz'],['BEEF,LOIN,TOP LOIN,LN & FAT,1/8 FAT,CHOIC,RAW',237, '3 oz'],['BEEF,SHRT LOIN,TOP LN,STK,LN & FAT,1/8 FAT,CHOIC,CKD,GRLLD',278, '3 oz'],['BEEF,LOIN,TOP LOIN,LN & FAT,1/8 FAT,SEL,RAW',224, '3 oz'],['BEEF,LOIN,TOP LOIN,LN & FAT,1/8 FAT,SEL,CKD,GRILLED',250, '3 oz'],['BEEF,SHRT LOIN,TOP LOIN,STEAK,LN & FAT,1/8 FAT,PRIME,RAW',281, '3 oz'],['BEEF,SHRT LOIN,TOP LOIN,LN&FAT,1/8FAT,PRIME,CKD,BRLD',310, '3 oz'],['BEEF,TENDERLOIN,STEAK,LN & FAT,1/8 FAT,ALL GRDS,RAW',247, '3 oz'],['BEEF,TENDERLOIN,STEAK,LN & FAT,1/8 FAT,ALL GRDS,CKD,BRLD',267, '3 oz'],['BEEF,TENDERLOIN,RST,LN & FAT,1/8 FAT,ALL GRDS,CKD,RSTD',324, '3 oz'],['BEEF,TENDERLOIN,STEAK,LN & FAT,1/8 FAT,CHOIC,RAW',246, '3 oz'],['BEEF,TENDERLOIN,STEAK,LN & FAT,1/8 FAT,CHOIC,CKD,BRLD',273, '1 steak, (yield from 181 g raw meat)'],['BEEF,TENDERLOIN,RST,LN & FAT,1/8 FAT,CHOIC,CKD,RSTD',331, '3 oz'],['BEEF,TENDERLOIN,STEAK,LN & FAT,1/8 FAT,SEL,RAW',249, '1 steak, (yield from 1 raw steak weighing149g)'],['BEEF,TENDERLOIN,STEAK,LN & FAT,1/8 FAT,SEL,CKD,BRLD',262, '1 steak, (yield from 1 raw steak weighing 151g)'],['BEEF,TENDERLOIN,RST,LN & FAT,1/8 FAT,SEL,CKD,RSTD',316, '3 oz'],['BEEF,TENDERLOIN,LN&FAT,1/8FAT,PRIME,RAW',274, '1 oz'],['BEEF,TENDERLOIN,STEAK,LN & FAT,1/8 FAT,PRIME,CKD,BRLD',308, '3 oz'],['BEEF,TENDERLOIN,RST,LN & FAT,1/8 FAT,PRIME,CKD,RSTD',343, '3 oz'],['BEEF,TOP SIRLOIN,STEAK,LN & FAT,1/8 FAT,ALL GRDS,RAW',201, '3 oz'],['BEEF,TOP SIRLOIN,STEAK,LN & FAT,1/8 FAT,ALL GRDS,CKD,BRLD',243, '3 oz'],['BEEF,TOP SIRLOIN,STEAK,LN & FAT,1/8 FAT,CHOIC,RAW',214, '1 oz'],['BEEF,TOP SIRLOIN,STEAK,LN & FAT,1/8 FAT,CHOIC,CKD,BRLD',257, '3 oz'],['BEEF,TOP SIRLOIN,STEAK,LN & FAT,1/8 FAT,CHOIC,CKD,PAN-FRIED',313, '3 oz'],['BEEF,TOP SIRLOIN,STEAK,LN & FAT,1/8 FAT,SEL,RAW',189, '3 oz'],['BEEF,TOP SIRLOIN,STEAK,LN & FAT,1/8 FAT,SEL,CKD,BRLD',230, '3 oz'],['BEEF,CHUCK,CLOD RST,LN,0 FAT,CHOIC,CKD,RSTD',171, '3 oz, ( 1 serving )'],['BEEF,CHUCK,CLOD RST,LN,0 FAT,SEL,CKD,RSTD',172, '3 oz, ( 1 serving )'],['Beef, shoulder steak, boneless, lean only, 0, choice, grill',178, '3 oz, ( 1 serving )'],['BEEF,SHLDR STEAK,BNLESS,LN,0 FAT,SEL,CKD,GRILLED',169, '3 oz, ( 1 serving )'],['BEEF,FLANK,STEAK,LN & FAT,0 FAT,ALL GRDS,CKD,BRLD',192, '3 oz'],['BEEF,FLANK,STEAK,LN & FAT,0 FAT,SEL,CKD,BRLD',183, '3 oz'],['BEEF,BRISKET,FLAT HALF,LN & FAT,0 FAT,SEL,CKD,BRSD',205, '3 oz'],['BEEF,RIB EYE,SML END (RIBS 10-12),LN & FAT,0,SEL,CKD,BRLD',234, '3 oz'],['BEEF,RIBEYE,SML END(RIBS 10-12),LN&FAT,0,ALL GRDS,CKD,BRLD',249, '3 oz'],['BEEF,BTTM SIRLOIN,TRI-TIP RST,LN & FAT,0 FAT,ALL GRDS,RAW',165, '3 oz'],['BEEF,BTTM SIRLOIN,TRI-TIP RST,LN & FAT,0 FAT,CHOIC,CKD,RSTD',221, '3 oz'],['BEEF,BTTM SIRLOIN,TRI-TIP RST,LN & FAT,0 FAT,CHOIC,RAW',174, '3 oz'],['BEEF,BTTM SIRLOIN,TRI-TIP RST,LN & FAT,0 FAT,SEL,CKD,RSTD',201, '3 oz'],['BEEF,BTTM SIRLOIN,TRI-TIP RST,LN & FAT,0 FAT,SEL,RAW',157, '3 oz'],['BEEF,RND,TOP RND STK,BNLS,LN & FAT,0 FAT,ALL GRDS,CKD,GRLD',167, '3 oz'],['BEEF,CHUCK,MOCK TENDER STEAK,LN,0 FAT,CHOIC,CKD,BRLD',161, '3 oz, (1 serving)'],['BEEF,CHUCK,MOCK TENDER STEAK,LN,0 FAT,SEL,CKD,BRLD',157, '3 oz, ( 1 serving )'],['BEEF,CHUCK,TOP BLADE,LN,0 FAT,CHOIC,CKD,BRLD',217, '3 oz, ( 1 serving )'],['BEEF,CHUCK,TOP BLADE,LN,0 FAT,SEL,CKD,BRLD',184, '3 oz, ( 1 serving )'],['BEEF,RND,TOP RND STK,BNLS,LN & FAT,0 FAT,CHOIC,CKD,GRLD',170, '3 oz'],['BEEF,RND,TOP RND STEAK,BNLS,LN & FAT,0 FAT,SEL,CKD,GRLD',162, '3 oz'],['BEEF,FLANK,STEAK,LN & FAT,0 FAT,ALL GRDS,RAW',155, '3 oz'],['BEEF,FLANK,STEAK,LN & FAT,0 FAT,SEL,RAW',145, '3 oz'],['BEEF,CHK EYE RST,BNL,AMERICAS BF RST,LN,0 FAT,ALL GRD, RAW',137, '3 oz'],['BEEF,CHK EYE RST,BNL,AMERICAS BF RST,LN,0 FAT,CHOIC,RAW',139, '3 oz'],['BEEF,CHUCK EYE RST,BNLESS,AMERICAS BF RST,LN,0 FAT,SEL,RAW',133, '3 oz'],['BEEF,BRISKET,FLAT HALF,BNLESS,LN & FAT,0 FAT,CHOIC,RAW',169, '3 oz'],['BEEF,PLATE,INSIDE SKIRT STEAK,LN,0 FAT,ALL GRDS,CKD,BRLD',205, '3 oz, ( 1 serving )'],['BEEF,PLATE,OUTSIDE SKIRT STEAK,LN,0 FAT,ALL GRDS,CKD,BRLD',233, '3 oz, ( 1 serving )'],['BEEF, CHUCK, SHORT RIBS, BNL, 0 FAT, CHOICE, CKED, BR',250, '3 oz'],['BEEF,CHUCK,SHRT RIBS,BNLESS,LN,0 FAT,SEL,CKD,BRSD',224, '3 oz'],['BEEF,CHUCK,SHRT RIBS,BNLESS,LN,0 FAT,ALL GRDS,CKD,BRSD',240, '3 oz'],['BEEF,BRISKET,FLAT HALF,BNLESS,LN & FAT,0 FAT,SEL,RAW',158, '3 oz'],['BF,LOIN,BTTM SIRLOIN BUTT,TRI-TIP,LN,0 FAT,ALL GRD,CKD,RSTD',182, '1 serving'],['ALCOHOLIC BEV,BEER,REG,ALL',43, '1 fl oz'],['ALCOHOLIC BEV,BEER,REG,BUDWEISER',41, '1 fl oz'],['ALCOHOLIC BEV,BEER,LT,BUDWEISER SEL',28, '1 fluid ounce'],['ALCOHOLIC BEV,BEER,LT',29, '1 fl oz'],['ALCOHOLIC BEV,BEER,LT,BUD LT',29, '1 fl oz'],['ALCOHOLIC BEV,DAIQUIRI,CND',125, '1 fl oz'],['ALCOHOLIC BEV,DAIQUIRI,PREPARED-FROM-RECIPE',186, '1 fl oz'],['ALCOHOLIC BEV,BEER,LT,MICHELOB ULTRA',27, '1 fl oz'],['ALCOHOLIC BEV,PINA COLADA,CND',237, '1 fl oz'],['BEVERAGES,ALMOND MILK,SWTND,VANILLA FLAVOR,RTD',38, '8 fl oz'],['ALCOHOLIC BEV,PINA COLADA,PREPARED-FROM-RECIPE',174, '1 fl oz'],['ALCOHOLIC BEV,TEQUILA SUNRISE,CND',110, '1 fl oz'],['BEVERAGES,ENERGY DRK,CITRUS',45, '8 fl oz'],['BEVERAGES,MONSTER ENERGY DRK,LO CARB',5, '8 fl oz'],['WHISKEY SOUR MIX,PDR',383, '1 packet'],['ALCOHOLIC BEV,WHISKEY SOUR,PREP W/ H2O,WHISKEY & PDR MIX',164, '1 fl oz'],['BEVERAGES,ENERGY DRK,SUGAR-FREE W/ GUARANA',4, '16 fl oz'],['ALCOHOLIC BEV,WHISKEY SOUR,CND',119, '1 fl oz'],['WHISKEY SOUR MIX,BTLD',87, '1 fl oz'],['ALCOHOLIC BEV,WHISKEY SOUR,PREP FROM ITEM 14028',153, '1 fl oz'],['BEVERAGES,ENERGY DRK,ORIGINAL,GRAPE,LOADED CHERRY, CITRUS',44, '16 fl oz'],['BEVERAGES,H2O,BTLD,YUMBERRY,POMEGRANATE W/ ANTI-OXIDANTS',5, '8 fl oz'],['BEVERAGES,ABBOTT,EAS WHEY PROT PDR',385, '2 scoop'],['ALCOHOLIC BEV,CREME DE MENTHE,72 PROOF',371, '1 fl oz'],['BEVERAGES,ABBOTT,EAS SOY PROT PDR',405, '1 scoop'],['BEVERAGES,CYTOSPORT,MUSCLE MILK,RTD',49, '14 fl oz'],['ALCOHOLIC BEV,DISTILLED,ALL (GIN,RUM,VODKA,WHISKEY) 80 PROOF',231, '1 fl oz'],['BEVERAGES,OCEAN SPRAY,CRAN-ENERGY,CRANBERRY ENERGY JUC DRK',15, '1 can'],['BEVERAGES,NESTLE,BOOST PLUS,NUTRITIONAL DRK,RTD',138, '1 bottle'],['BEVERAGES,FORT LO CAL FRUIT JUC BEV',4, '16.9 fl oz'],['BEV,NEST,CARN BRKFS ESSEN ,RTD,RH MIK CHOC FLAVOR,NO SUG AD',45, '11 fl oz'],['BEVERAGES,SLIMFAST,MEAL REPLCMNT,HI PROT SHAKE,RTD,3-2-1',58, '1 bottle'],['BEVERAGES,UNILEVER,SLIMFAST,MEAL REPLCMNT,REG,RTD,3-2-1 PLAN',57, '1 bottle'],['BEVERAGES,UNILEVER,SLIMFAST SHAKE MIX,PDR,3-2-1 PLAN',379, '1 scoop'],['ALCOHOLIC BEV,DISTILLED,GIN,90 PROOF',263, '1 fl oz'],['ALCOHOLIC BEV,DISTILLED,RUM,80 PROOF',231, '1 fl oz'],['ALCOHOLIC BEV,DISTILLED,VODKA,80 PROOF',231, '1 fl oz'],['ALCOHOLIC BEV,DISTILLED,WHISKEY,86 PROOF',250, '1 fl oz'],['BEVERAGES,ALMOND MILK,CHOC,RTD',50, '8 fl oz'],['BEVERAGES,UNILEVER,SLIMFAST SHAKE MIX,HI PROT,PDR,3-2-1 PLAN',368, '1 scoop'],['ALCOHOLIC BEV,WINE,DSSRT,SWT',160, '1 fl oz'],['BEVERAGES,WHEY PROT PDR ISOLATE',359, '3 scoop'],['BEVERAGES,KELLOGGS,SPL K PROT SHAKE',64, '1 serving'],['BEVERAGES,ENERGY DRK W/ CARB H2O & HI FRUCTOSE CORN SYRUP',62, '8 fl oz'],['BEVERAGES,ENERGY DRK,SUGAR FREE',4, '8 fl oz'],['BEVERAGES,ABBOTT,ENSURE,NUTRITIONAL SHAKE,RTD',105, '8 fl oz'],['BEVERAGES,CHOC PDR,NO SUGAR ADDED',373, '2 tbsp'],['BEVERAGES,ORANGE JUC,LT,NO PULP',21, '8 fl oz'],['BEVERAGES,HI-C FLASHIN FRUIT PUNCH',45, '6.75 fl oz'],['BEVERAGES,PROT PDR WHEY BSD',352, '.33 cup'],['BEVERAGES,PROT PDR SOY BSD',388, '1 scoop'],['BEVERAGES,KELLOGGS SPL K20,PROT H2O MIX',380, '1 packet'],['BEVERAGES,GRN TEA,LIPTON,BREWED FROM BAGS',1, '1 cup'],['BEVERAGES,GRN TEA,SALADA BREWED FROM BAGS',1, '1 cup'],['BEVERAGES,GRN TEA,BREWED,FROM BAGS',1, '1 cup'],['BEVERAGES,ZEVIA,COLA',0, '1 can'],['BEVERAGES,ZEVIA,COLA,CAFFEINE FREE',0, '1 can'],['BEVERAGES,H2O,BTLD,NATURALLY SPARKLING (CARBONATED),MINERAL',0, '8 fl oz'],['BEVERAGES,ICELANDIC,GLACIAL NAT SPRING H2O',0, '1 serving'],['BEVERAGES,PEPSICO,MOUNTAIN DEW,KICKSTART,BLACK CHERRY',17, '1 cup'],['BEVERAGES,PEPSICO,MOUNTAIN DEW ORIGINAL',49, '16 fl oz'],['BEVERAGES,NESTLE,OVALTINE,RICH CHOC,PDR',364, '2 tbsp'],['BEVERAGES,GEROLSTEINER BRUNNEN GMBH H2O,BTLD,NAT SPARK,MIN',0, ''],['BEVERAGES,CHOC MALT,PDR,PREP W/ FAT FREE MILK',49, '1 serving'],['ALCOHOLIC BEV,WINE,TABLE,ALL',83, '1 serving, 5 fl oz'],['V8 SPLASH SMOOTHIES,PEACH MANGO',37, '1 serving, 8 oz'],['V8 SPLASH SMOOTHIES,STRAWBERRY BANANA',37, '1 serving, 8 oz'],['V8 SPLASH SMOOTHIES,TROPICAL COLADA',41, '1 serving, 8 oz'],['BEVERAGES,COCNT H2O,RTD',18, '1 cup'],['ALCOHOLIC BEV,WINE,TABLE,RED',85, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,RED,CABERNET SAUVIGNON',83, '1 fluid ounce'],['ALCOHOLIC BEV,WINE,TABLE,RED,CABERNET FRANC',83, '1 fluid ounce'],['ALCOHOLIC BEV,WINE,TABLE,RED,PINOT NOIR',82, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,RED,SYRAH',83, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,RED,BARBERA',85, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,RED,ZINFANDEL',88, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,RED,PETITE SIRAH',85, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,RED,CLARET',83, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,WHITE',82, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,RED,LEMBERGER',80, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,RED,SANGIOVESE',86, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,RED,CARIGNANE',74, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,WHITE,PINOT GRIS (GRIGIO)',83, '1 fl oz'],['BEEF BROTH&TOMATO JUC,CND',37, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,WHITE,CHENIN BLANC',80, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,WHITE,FUME BLANC',82, '1 fl oz'],['MIXED VEG & FRUIT JUC DRK,W/ ADDED NUTR',29, '8 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,WHITE,MULLER THURGAU',76, '1 fl oz'],['CARBONATED BEV,CLUB SODA',0, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,WHITE,GEWURZTRAMINER',81, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,WHITE,LATE HARVEST,GEWURZTRAMINER',108, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,WHITE,SEMILLON',82, '1 fl oz'],['CARBONATED BEV,CRM SODA',51, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,WHITE,RIESLING',80, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,WHITE,SAUVIGNON BLANC',81, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,WHITE,LATE HARVEST',112, '1 fl oz'],['CARBONATED BEV,GINGER ALE',34, '1 fl oz'],['TEA,RTD,NESTLE,COOL NESTEA ICE TEA LEMON FLAVOR',36, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,WHITE,PINOT BLANC',81, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,WHITE,MUSCAT',82, '1 fl oz'],['CARBONATED BEV,GRAPE SODA',43, '1 fl oz'],['CARBONATED BEV,LO CAL,OTHER THAN COLA OR PEPPER,WO/ CAFFEINE',0, '1 fl oz'],['CARBONATED BEV,LEMON-LIME SODA,NO CAFFEINE',41, '1 fl oz'],['CARBONATED BEV,SPRITE,LEMON-LIME,WO/ CAFFEINE',40, '1 fl oz'],['CARBONATED BEV,LO CAL,COLA OR PEPPR-TYPE,W/ ASPRT,WO/ CAFFEN',1, '1 fl oz'],['CARBONATED BEV,COLA,WO/CAFFEINE',41, '1 fl oz'],['CARBONATED BEV,COLA',41, '1 fl oz'],['CARBONATED BEV,RED SUGAR,COLA,CONTAINS CAFFEINE & SWEETENERS',20, '1 fl oz'],['CARBONATED BEV,ORANGE',48, '1 fl oz'],['CARB BEV,LO CAL,OTHR THN COLA OR PEPPER,W/ ASPRT,CONTNS CAFF',0, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,RED,BURGUNDY',86, '1 fl oz'],['CARBONATED BEV,PEPPER-TYPE,CONTAINS CAFFEINE',41, '1 fl oz'],['ENGY DRK,RED BULL,W/ ADD CAFFEINE,NIACIN,PANTO,VIT B6 & B12',45, '1 can, 8.4 fl oz'],['CARBONATED BEV,TONIC H2O',34, '1 fl oz'],['ENG DRK,RED BULL,SGR FR,W/ADD CAFF,NIACIN,PANTO,VIT B6 & B12',5, '1 serving, 8.3 fl oz can'],['CARBONATED BEV,ROOT BEER',41, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,RED,GAMAY',78, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,RED,MOUVEDRE',88, '1 fl oz'],['ALCOHOLIC BEV,WINE,TABLE,WHITE,CHARDONNAY',84, '1 fl oz'],['CARBONATED BEV,LO CAL,COLA OR PEPR,W/ NA SACC,CONTAINS CAFFN',0, '1 fl oz'],['CAROB-FLAVOR BEV MIX,PDR',372, '1 tbsp'],['CAROB-FLAVOR BEV MIX,PDR,PREP W/ WHL MILK',75, '1 cup, (8 fl oz)'],['CHOCOLATE-FLAVOR BEV MIX,PDR,PREP W/ WHL MILK',85, '1 cup, (8 fl oz)'],['CHOCOLATE SYRUP',279, '1 serving, 2 tbsp'],['CHOCOLATE SYRUP,PREP W/ WHL MILK',90, '1 cup, (8 fl oz)'],['CLAM&TOMATO JUC,CND',48, '1 fl oz'],['COCOA MIX,PDR',398, '1 serving, (3 heaping tsp or 1 envelope)'],['COCOA MIX,PDR,PREP W/ H2O',55, '1 fl oz'],['COCOA MIX,NESTLE,HOT COCOA MIX RICH CHOC W/ MARSHMALLOWS',400, '1 serving, 1 envelope'],['COCOA MIX,NO SUGAR ADDED,PDR',377, '1 envelope Alba, (.675 oz)'],['COCOA MIX,NESTLE,RICH CHOC HOT COCOA MIX',400, '1 serving, 1 envelope'],['COFFEE,BREWED FROM GROUNDS,PREP W/ TAP H2O,DECAFFEINATED',0, '1 fl oz'],['COFFEE,BREWED,ESPRESSO,REST-PREP,DECAFFEINATED',9, '1 fluid ounce'],['COFFEE,INST,REG,PDR,HALF THE CAFFEINE',352, '1 tsp'],['COFFEE&COCOA (MOCHA) PDR,W/WHTNR&LO CAL SWTNR,DECAFFEINATED',440, '1 tsp, dry'],['COFFEE,BREWED FROM GROUNDS,PREP W/ TAP H2O',1, '1 fl oz'],['COFFEE,BREWED,ESPRESSO,REST-PREP',9, '1 fluid ounce'],['COFFEE,INST,REG,PDR',353, '1 tsp'],['COFFEE,INST,REG,PREP W/H2O',2, '1 fl oz'],['COFFEE,INST,DECAFFEINATED,PDR',351, '1 tsp, rounded'],['COFFEE,INST,DECAFFEINATED,PDR,PREP W/H2O',2, '1 fl oz'],['COFFEE,INST,W/CHICORY,PDR',355, '1 tsp, rounded'],['COFFEE,INST,W/ CHICORY,PREP W/ H2O',3, '1 fl oz'],['COFFEE,INST,W/SUGAR,MOCHA-FLAVOR,PDR',460, '1 serving, 2 tbsp'],['COFFEE SUB,CRL GRAIN BEV,PDR',360, '1 tsp, (1 serving)'],['COFFEE SUB,CRL GRAIN BEV,PREP W/ H2O',6, '1 fl oz'],['CRANBERRY-APPLE JUC DRK,BTLD',63, '1 fl oz'],['CRANBERRY-APRICOT JUC DRK,BTLD',64, '1 fl oz'],['CRANBERRY-GRAPE JUC DRK,BTLD',56, '1 fl oz'],['CRANBERRY JUC COCKTAIL,BTLD',54, '1 fl oz'],['CRANBERRY JUC COCKTAIL,BTLD,LO CAL,W/CA,SACCHARIN&CORN SWTNR',19, '1 fl oz'],['EGGNOG-FLAVOR MIX,PDR,PREP W/ WHL MILK',95, '1 cup, (8 fl oz)'],['CITRUS FRUIT JUC DRK,FRZ CONC',162, '1 fl oz'],['CITRUS FRUIT JUC DRK,FRZ CONC,PREP W/H2O',46, '1 fl oz'],['FRUIT PUNCH DRK,WO/ ADDED NUTR,CND',48, '6.75 fl oz, 1 pouch, 200 ml'],['FRUIT PUNCH DRK,W/ ADDED NUTR,CND',47, '1 fl oz'],['FRUIT PUNCH DRK,FRZ CONC',162, '1 fl oz'],['FRUIT PUNCH DRK,FRZ CONC,PREP W/H2O',46, '1 fl oz'],['GRAPE DRINK,CANNED',61, '1 fl oz'],['GRAPE JUICE DRINK,CANNED',57, '1 fl oz'],['LEMONADE,POWDER',376, '1 serving'],['LEMONADE,PDR,PREP W/H2O',14, '1 fl oz'],['LEMONADE,FRZ CONC,WHITE',196, '1 fl oz'],['LEMONADE,FRZ CONC,WHITE,PREP W/H2O',40, '1 fl oz'],['LEMONADE-FLAVOR DRK,PDR',380, '1 serving'],['LEMONADE-FLAVOR DRK,PDR,PREP W/H2O',27, '1 fl oz'],['LIMEADE,FRZ CONC,PREP W/H2O',52, '1 fl oz'],['MALT BEV,INCL NON-ALCOHOLIC BEER',37, '1 fl oz'],['BEVERAGES,OVALTINE,CLASSIC MALT PDR',372, '1 serving, (4 tbsp or 1 envelope)'],['MALTED DRK MIX,NAT,W/ ADDED NUTR,PDR,PREP W/ WHL MILK',86, '1 cup, (8 fl oz)'],['MALTED DRK MIX,NAT,PDR,HAS MILK',428, '1 serving, (3 heaping tsp or 1 envelope)'],['MALTED DRK MIX,NAT,PDR,PREP W/ WHL MILK',88, '1 cup, (8 fl oz)'],['BEVERAGES,OVALTINE,CHOC MALT PDR',372, '1 cup'],['MALTED DRK MIX,CHOC,W/ ADDED NUTR,PDR,PREP W/ WHL MILK',87, '1 cup, (8 fl oz)'],['MALTED DRK MIX,CHOC,PDR',411, '1 serving, (3 heaping tsp or 1 envelope)'],['MALTED DRK MIX,CHOC,PDR,PREP W/ WHL MILK',85, '1 cup, (8 fl oz)'],['ORANGE DRK,CND,W/ ADDED VIT C',49, '1 fl oz'],['ORANGE&APRICOT JUC DRK,CND',51, '1 fl oz'],['PINEAPPLE&GRAPEFRUIT JUC DRK,CND',47, '1 fl oz'],['PINEAPPLE&ORANGE JUC DRK,CND',50, '1 fl oz'],['SHAKE,FAST FOOD,VANILLA',148, '1 fl oz'],['STRAWBERRY-FLAVOR BEV MIX,PDR',389, '1 serving, (2-3 heaping tsp)'],['STRAWBERRY-FLAVOR BEV MIX,PDR,PREP W/ WHL MILK',88, '1 cup, (8 fl oz)'],['TEA,BLACK,BREWED,PREP W/ TAP H2O,DECAFFEINATED',1, '1 fl oz'],['TEA,INST,UNSWTND,PDR,DECAFFEINATED',315, '1 serving, 2 tsp'],['TEA,BLACK,BREWED,PREP W/ TAP H2O',1, '1 fl oz'],['TEA,INST,SWTND W/ NON-NUTRSWTNR,LEMON-FLAVOR,PDR,DECAFFE',338, '2 tsp'],['TEA,INST,SWTND W/SUGAR,LEMN-FLAV,WO/ VIT C,PDR,DECAFFEINATED',401, '1 serving, (3 heaping tsp)'],['TEA,INST,UNSWTND,PDR',315, '1 serving, 1 tsp'],['TEA,INST,UNSWTND,PDR,PREP',1, '1 fl oz'],['TEA,INST,UNSWTND,LEMON-FLAVORED,PDR',345, '1 tsp, rounded'],['TEA,INST,SWTND W/SUGAR,LEMON-FLAVORED,WO/ VIT C,PDR',401, '1 serving, (3 heaping tsp)'],['TEA,INST,SWTND W/SUGAR,LEMON-FLAVORED,WO/ VIT C,PDR,PREP',35, '1 cup, (8 fl oz)'],['TEA,INST,SWTND W/NA SACCHARIN,LEMON-FLAVORED,PDR',338, '2 tsp'],['TEA,INST,SWTND W/ NON-NUTRITIVE SWTNR,LEMON-FLAVORED,PREP',2, '1 fl oz'],['TEA,HERB,OTHER THAN CHAMOMILE,BREWED',1, '1 fl oz'],['WATER,BTLD,PERRIER',0, '1 fl oz'],['WATER,BTLD,POLAND SPRING',0, '1 fl oz'],['COCOA MIX,W/ ASPRT,PDR,PREP W/ H2O',29, '1 fl oz'],['CARBONATED BEV,COLA,CONTAINS CAFFEINE,FAST-FOOD COLA',37, '1 fl oz'],['FRUIT PUNCH JUC DRK,FRZ CONC',175, '1 fl oz'],['FRUIT PUNCH JUC DRK,FRZ CONC,PREP W/H2O',42, '1 fl oz'],['ORANGE-FLAVOR DRK,BRKFST TYPE,PDR',386, '1 serving, 2 tbsp'],['ORANGE-FLAVOR DRK,BRKFST TYPE,PDR,PREP W/ H2O',49, '1 fl oz'],['BEVERAGES,ORANGE-FLAVOR DRK,BRKFST TYPE,LO CAL,PDR',217, '1 portion, amount of dry mix to make 8 fl oz prepared'],['WATER,TAP,DRINKING',0, '1 fl oz'],['WATER,TAP,WELL',0, '1 fl oz'],['ALCOHOLIC BEV,LIQUEUR,COFFEE,53 PROOF',336, '1 fl oz'],['ALCOHOLIC BEV,LIQUEUR,COFFEE W/CRM,34 PROOF',327, '1 fl oz'],['CARB BEV,LO CAL,COLA OR PEP,W/ ASPRT, CAF',2, '1 fl oz'],['COFFEE SUB,CRL GRAIN BEV,PDR,PREP W/ WHL MILK',65, '6 fl oz'],['DAIRY DRK MIX,CHOC,RED CAL,W/ LOW-CALORIE SWEETENERS,PDR',329, '1 packet, (.75 oz)'],['DAIRY DRK MIX,CHOC,RED CAL,W/ ASPRT,PDR,PREP W/ H2O & ICE',29, '1 serving'],['ORANGE-FLAVOR DRK,BRKFST TYPE,W/PULP,FRZ CONC',172, '1 fl oz'],['ORANGE-FLAVOR DRK,BRKFST TYPE,W/PULP,FRZ CONC,PREP W/H2O',49, '1 fl oz'],['ORANGE DRK,BRKFST TYPE,W/ JUC & PULP,FRZ CONC',153, '1 fl oz'],['ORANGE DRK,BRKFST TYPE,W/JUC&PULP,FRZ CONC,PREP W/H2O',45, '1 fl oz'],['SHAKE,FAST FD,STRAWBERRY',113, '1 fl oz'],['WATER,TAP,MUNICIPAL',0, '1 fl oz'],['CRANBERRY JUC COCKTAIL,FRZ CONC',201, '1 fl oz'],['CRANBERRY JUC COCKTAIL,FRZ CONC,PREP W/ H2O',47, '1 fl oz'],['WATER,BTLD,NON-CARBONATED,DANNON',0, '1 fl oz'],['WATER,BTLD,NON-CARBONATED,PEPSI,AQUAFINA',0, '1 fl oz'],['WATER,BTLD,NON-CARBONATED,DASANI',0, '1 fl oz'],['ORANGE BRKFST DRK,RTD,W/ ADDED NUTR',53, '1 fl oz'],['WATER,BTLD,NON-CARBONATED,CALISTOGA',0, '1 fl oz'],['WATER,BTLD,NON-CARBONATED,CRYSTAL GEYSER',0, '1 fl oz'],['WATER,BTLD,NON-CARBONATED,NAYA',0, '1 fl oz'],['WATER,BTLD,NON-CARBONATED,DANNON FLUORIDE TO GO',0, '1 fl oz'],['DRINK MIX,QUAKER OATS,GATORADE,ORANGE FLAVOR,PDR',388, '1 scoop, powder'],['BEVERAGES,PEPSICO QUAKER,GATORADE,G PERFORMANCE O 2,RTD.',26, '1 fl oz'],['BEVERAGES,COCA-COLA,POWERADE,LEMON-LIME FLAV,RTD',32, '1 fl oz'],['BEVERAGES,PROPEL ZERO,FRUIT-FLAVORED,NON-CARBONATED',5, '1 fluid ounce'],['TEA,RTD,ARIZONA ICED TEA,W/ LEMON FLAVOR',39, '1 fl oz'],['TEA,RTD,LIPTON BRISK ICED TEA,W/ LEMON FLAVOR',35, '1 fl oz'],['WHISKEY SOUR MIX,BTLD,W/ K&NA',84, '1 fl oz'],['BEVERAGES,ALCOHOLIC WHISKEY SOUR',149, '1 fl oz'],['ALCOHOLIC BEV,DISTILLED,ALL (GIN,RUM,VODKA,WHISKEY) 94 PROOF',275, '1 fl oz'],['ALCOHOLIC BEV,DISTILLED,ALL 100 PROOF',295, '1 fl oz'],['ALCOHOLIC BEV,LIQUEUR,COFFEE,63 PROOF',308, '1 fl oz'],['ALCOHOLIC BEV,WINE,DSSRT,DRY',152, '1 fl oz'],['CARBONATED BEV,LOCAL,OTHR THAN COLA OR PEP,W/ NA SAC,WO/ CAF',0, '1 fl oz'],['BEVE,COCA MIX,LO CAL,PDR,W/ ADD CA,P,ASPRT,WO/ ADD NA, VIT A',359, '1 envelope Swiss Miss, (.53 oz)'],['FRUIT PUNCH-FLAVOR DRK,PDR,WO/ NA,PREP W/H2O',37, '1 fl oz'],['LEMONADE,FRZ CONC,PINK',192, '1 fl oz'],['LEMONADE,FRZ CONC,PINK,PREP W/H2O',43, '1 fl oz'],['TEA,BLACK,BREWED,PREP W/ DISTILLED H2O',1, '1 fl oz'],['TEA,HERB,CHAMOMILE,BREWED',1, '1 fl oz'],['TEA,INST,SWTND W/SUGAR,LEMON-FLAVORED,W/ VIT C,PDR',385, '1 serving, (3 heaping tsp)'],['ALCOHOLIC BEV,DISTILLED,ALL (GIN,RUM,VODKA,WHISKEY) 86 PROOF',250, '1 fl oz'],['ALCOHOLIC BEV,DISTILLED,ALL (GIN,RUM,VODKA,WHISKEY) 90 PROOF',263, '1 fl oz'],['CARBONATED BEV,CHOCOLATE-FLAVORED SODA',42, '1 fl oz'],['WINE,NON-ALCOHOLIC',6, '1 fl oz'],['WATER,BTLD,GENERIC',0, '1 fl oz'],['CHOCOLATE-FLAVOR BEV MIX FOR MILK,PDR,W/ ADDED NUTR',400, '1 serving'],['CHOCOLATE-FLAVOR BEV MIX W/ ADDED NUTR,PREP W/ WHL MILK',89, '1 serving'],['WATER,BTLD,NON-CARBONATED,EVIAN',0, '1 fl oz'],['BEVERAGES,POWERADE ZERO ION4,CALORIE-FREE,ASSORTED FLAVORS',0, '8 fl oz'],['TEA,RTD,UNSWTND,WENDYS,FAST FD,WO/ ICE',1, '1 fluid ounce'],['ALCOHOLIC BEV,WINE,TABLE,RED,MERLOT',83, '1 fl oz'],['WATER,NON-CARBONATED,FRUIT FLAVORS,SWTND W/ LO CAL SWTNR',1, '1 fl oz'],['BEV,H2O W/ ADDED VIT & MIN,BOTTLES,SWTND,AST FRUIT FLAVORS',22, '8 fl oz, (1 NLEA serving)'],['V8 SPLASH JUC DRINKS,DIET BERRY BLEND',4, '1 serving, 8 oz'],['V8 SPLASH JUC DRINKS,DIET FRUIT MEDLEY',4, '1 serving, 8 oz'],['V8 SPLASH,DIET STRAWBERRY KIWI',4, '1 serving'],['V8 SPLASH,DIET TROPICAL BLEND',4, '1 serving, 8 oz'],['V8 SPLASH JUC DRINKS,BERRY BLEND',29, '1 serving, 8 oz'],['V8 SPLASH JUC DRINKS,FRUIT MEDLEY',33, '1 serving, 8 oz'],['V8 SPLASH JUC,GUAVA PASSION FRUIT',33, '1 serving, 8 oz'],['V8 SPLASH JUC DRINKS,MANGO PEACH',33, '1 serving, 8 oz'],['V8 SPLASH JUC DRINKS,ORANGE PNAPPL',29, '1 serving, 8 oz'],['V8 SPLASH JUC DRINKS,ORCHARD BLEND',33, '1 serving, 8 oz'],['V8 SPLASH JUC DRINKS,STRAWBERRY BANANA',29, '1 serving, 8 oz'],['V8 SPLASH JUC DRINKS,STRAWBERRY KIWI',29, '1 serving, 8 oz'],['V8 SPLASH JUC DRINKS,TROPICAL BLEND',29, '1 serving, 8 oz'],['V8 V. FUSION JUICES,PEACH MANGO',49, '1 serving, 8 oz'],['V8 V. FUSION JUICES,STRAWBERRY BANANA',49, '1 serving, 8 oz'],['V8 V. FUSION JUICES,TROPICAL',49, '1 serving, 8 oz'],['V8 V. FUSION JUICES,ACAI BERRY',45, '1 serving, 8 oz'],['ENERGY DRK,AMP',46, '1 serving'],['ENERGY DRK,FULL THROTTLE',46, '1 serving, 8 fluid oz'],['ENERGY DRK,MONSTER',42, '1 serving'],['ENERGY DRK,AMP,SUGAR FREE',2, '1 serving, 8 fl oz'],['ENERGY DRK,ROCKSTAR',58, '1 fl oz'],['ENERGY DRK,ROCKSTAR,SUGAR FREE',4, '8 fl oz, (1 serving)'],['HORCHATA,DRY MIX,UNPREP,VAR OF BRANDS,ALL W/ MORRO SEEDS',413, '1 tbsp'],['MEAL SUPP DRK,NESTLE,SUPLIGEN,CND,PNUT FLAVOR',101, '1 cup'],['VEGETABLE & FRUIT JUC DRK,RED CAL,ADDED VIT C',4, '1 serving'],['READY-TO-DRINK RED FAT MILK,FLAV & SWTND,W/CA,VIT A & VIT D',77, '1 cup'],['BEVERAGES,VEG & FRUIT JUC BLEND,W/ ADDED VITAMINS A,C,E',46, '1 serving, 8 oz'],['BEVERAGES,FRUIT JUC DRK,RED SUGAR,W/ VITAMIN E ADDED',39, '1 container'],['WATER,W/ CORN SYRUP AND/OR SUGAR & LO CAL SWTNR,FRUIT FLAV',18, '1 pouch'],['BEVERAGE,HORCHATA,AS SERVED IN RESTAURANT',54, '1 cup'],['RICE DRK,UNSWTND,W/ ADDED CA,VITAMINS A & D',47, '8 fl oz, (approximate weight, 1 serving)'],['ENERGY DRK,VAULT,CITRUS FLAVOR',49, '1 oz'],['ENERGY DRK,VAULT ZERO,SUGAR-FREE,CITRUS FLAVOR',1, '1 serving, (8 fl oz)'],['BEVERAGES,PEPSICO QUAKER,GATORADE G2,LO CAL',8, '8 fl oz'],['FRUIT FLAV DRK,LESS THAN 3% JUC,NOT FORT W/ VIT C',64, '1 cup, (8 fl oz)'],['FRUIT FLAV DRK CONTAINING LESS THAN 3% FRUIT JUC,W/ HI VIT C',27, '1 cup, (8 fl oz)'],['FRUIT FLAV DRK,RED SUGAR,JUC,HI VIT C,ADDED CA',29, '8 fl oz'],['FRUIT JUC DRK,OVER 3% FRUIT JUC,HI VIT C & ADDED THIAMIN',54, '8 fl oz'],['HIBISCUS TEA,BREWED FROM CALYCES',0, '8 fl oz'],['FRUIT JUC DRK,GREATER THAN 3% JUC,HI VIT C',46, '1 cup, (8 fl oz)'],['BEVERAGES,NUTRITIONAL SHAKE MIX,HI PROT,PDR',392, '1 tbsp'],['ANCHOVY,EUROPEAN,RAW',131, '3 oz'],['ANCHOVY,EUROPEAN,CND IN OIL,DRND SOL',210, '1 oz, boneless'],['BASS,FRSH H2O,MXD SP,RAW',114, '1 fillet'],['BASS,STRIPED,RAW',97, '3 oz'],['BLUEFISH,RAW',124, '1 fillet'],['BURBOT,RAW',90, '1 fillet'],['BUTTERFISH,RAW',146, '1 fillet'],['CARP,RAW',127, '3 oz'],['CARP,COOKED,DRY HEAT',162, '3 oz'],['CATFISH,CHANNEL,WILD,RAW',95, '3 oz'],['CATFISH,CHANNEL,CKD,BREADED&FRIED',229, '1 fillet'],['CAVIAR,BLACK&RED,GRANULAR',264, '1 tbsp'],['CISCO,RAW',98, '1 fillet'],['CISCO,SMOKED',177, '1 oz'],['COD,ATLANTIC,RAW',82, '3 oz'],['COD,ATLANTIC,CKD,DRY HEAT',105, '3 oz'],['COD,ATLANTIC,CND,SOL&LIQ',105, '3 oz'],['COD,ATLANTIC,DRIED&SALTED',290, '1 oz'],['COD,PACIFIC,RAW',69, '1 fillet'],['CROAKER,ATLANTIC,RAW',104, '1 fillet'],['CROAKER,ATLANTIC,CKD,BREADED&FRIED',221, '1 fillet'],['CUSK,RAW',87, '1 fillet'],['DOLPHINFISH,RAW',85, '3 oz'],['DRUM,FRESHWATER,RAW',119, '3 oz'],['EEL,MIXED SPECIES,RAW',184, '3 oz'],['EEL,MXD SP,CKD,DRY HEAT',236, '1 oz, boneless'],['FISH,FISH STKS,FRZ,PREP',277, '1 piece, (4 x 2 x 1/2)'],['FLATFISH (FLOUNDER&SOLE SP),RAW',70, '1 oz, boneless'],['FLATFISH (FLOUNDER&SOLE SP),CKD,DRY HEAT',86, '1 fillet'],['GEFILTEFISH,COMM,SWT RECIPE',84, '1 piece'],['GROUPER,MIXED SPECIES,RAW',92, '3 oz'],['GROUPER,MXD SP,CKD,DRY HEAT',118, '3 oz'],['HADDOCK,RAW',74, '3 oz'],['HADDOCK,COOKED,DRY HEAT',90, '1 fillet'],['HADDOCK,SMOKED',116, '1 oz, boneless'],['HALIBUT,ATLANTIC&PACIFIC,RAW',91, '3 oz'],['HALIBUT,ATLANTIC&PACIFIC,CKD,DRY HEAT',111, '3 oz'],['HALIBUT,GREENLAND,RAW',186, '3 oz'],['HERRING,ATLANTIC,RAW',158, '1 oz, boneless'],['HERRING,ATLANTIC,CKD,DRY HEAT',203, '1 fillet'],['HERRING,ATLANTIC,PICKLED',262, '1 cup'],['HERRING,ATLANTIC,KIPPERED',217, '1 oz, boneless'],['HERRING,PACIFIC,RAW',195, '3 oz'],['LING,RAW',87, '3 oz'],['LINGCOD,RAW',85, '3 oz'],['MACKEREL,ATLANTIC,RAW',205, '1 fillet'],['MACKEREL,ATLANTIC,CKD,DRY HEAT',262, '1 fillet'],['MACKEREL,JACK,CND,DRND SOL',156, '1 oz, boneless'],['MACKEREL,KING,RAW',105, '3 oz'],['MACKEREL,PACIFIC&JACK,MXD SP,RAW',158, '3 oz'],['MACKEREL,SPANISH,RAW',139, '3 oz'],['MACKEREL,SPANISH,CKD,DRY HEAT',158, '1 fillet'],['MILKFISH,RAW',148, '3 oz'],['MONKFISH,RAW',76, '3 oz'],['MULLET,STRIPED,RAW',117, '1 oz'],['MULLET,STRIPED,CKD,DRY HEAT',150, '1 fillet'],['OCEAN PERCH,ATLANTIC,RAW',79, '1 oz, boneless'],['OCEAN PERCH,ATLANTIC,CKD,DRY HEAT',96, '1 fillet'],['POUT,OCEAN,RAW',79, '3 oz'],['PERCH,MIXED SPECIES,RAW',91, '1 fillet'],['PERCH,MXD SP,CKD,DRY HEAT',117, '1 fillet'],['PIKE,NORTHERN,RAW',88, '3 oz'],['PIKE,NORTHERN,CKD,DRY HEAT',113, '3 oz'],['PIKE,WALLEYE,RAW',93, '3 oz'],['POLLOCK,ATLANTIC,RAW',92, '3 oz'],['FISH,POLLOCK,ALASKA,RAW',56, '1 fillet'],['FISH,POLLOCK,ALASKA,CKD,DRY HEAT',111, '1 fillet'],['POMPANO,FLORIDA,RAW',164, '1 oz, boneless'],['POMPANO,FLORIDA,CKD,DRY HEAT',211, '1 fillet'],['ROCKFISH,PACIFIC,MXD SP,RAW',90, '3 oz'],['ROCKFISH,PACIFIC,MXD SP,CKD,DRY HEAT',109, '1 fillet'],['ROE,MIXED SPECIES,RAW',143, '1 tbsp'],['ROUGHY,ORANGE,RAW',76, '3 oz'],['SABLEFISH,RAW',195, '3 oz'],['SABLEFISH,SMOKED',257, '1 oz'],['SALMON,ATLANTIC,WILD,RAW',142, '3 oz'],['SALMON,CHINOOK,SMOKED',117, '1 oz, boneless'],['SALMON,CHINOOK,RAW',179, '3 oz'],['SALMON,CHUM,RAW',120, '3 oz'],['SALMON,CHUM,DRND SOL W/BONE',141, '3 oz'],['SALMON,COHO,WILD,RAW',146, '3 oz'],['SALMON,COHO,WILD,CKD,MOIST HEAT',184, '3 oz'],['SALMON,PINK,RAW',127, '3 oz'],['FISH,SALMON,PINK,CND,TOTAL CAN CONTENTS',129, '3 oz'],['SALMON,SOCKEYE,RAW',142, '1 oz, boneless'],['SALMON,SOCKEYE,CKD,DRY HEAT',169, '3 oz'],['FISH,SALMON,SOCKEYE,CND,DRND SOL',167, '3 oz'],['SARDINE,ATLANTIC,CND IN OIL,DRND SOL W/BONE',208, '1 cup, drained'],['SARDINE,PACIFIC,CND IN TOMATO SAU,DRND SOL W/BONE',185, '1 cup'],['SCUP,RAW',105, '3 oz'],['SEA BASS,MXD SP,RAW',97, '1 fillet'],['SEA BASS,MXD SP,CKD,DRY HEAT',124, '1 fillet'],['SEATROUT,MXD SP,RAW',104, '3 oz'],['SHAD,AMERICAN,RAW',197, '3 oz'],['SHARK,MIXED SPECIES,RAW',130, '3 oz'],['SHARK,MXD SP,CKD,BATTER-DIPPED&FRIED',228, '3 oz'],['SHEEPSHEAD,RAW',108, '3 oz'],['SHEEPSHEAD,CKD,DRY HEAT',126, '3 oz'],['SMELT,RAINBOW,RAW',97, '3 oz'],['SMELT,RAINBOW,CKD,DRY HEAT',124, '3 oz'],['SNAPPER,MIXED SPECIES,RAW',100, '3 oz'],['SNAPPER,MXD SP,CKD,DRY HEAT',128, '3 oz'],['SPOT,RAW',123, '1 fillet'],['STURGEON,MXD SP,RAW',105, '3 oz'],['STURGEON,MXD SP,CKD,DRY HEAT',135, '3 oz'],['STURGEON,MXD SP,SMOKED',173, '1 oz'],['SUCKER,WHITE,RAW',92, '3 oz'],['SUNFISH,PUMPKIN SEED,RAW',89, '1 fillet'],['SURIMI',99, '1 oz'],['SWORDFISH,RAW',144, '3 oz'],['SWORDFISH,COOKED,DRY HEAT',172, '3 oz'],['TILEFISH,RAW',96, '3 oz'],['TILEFISH,COOKED,DRY HEAT',147, '.5 fillet'],['TROUT,MIXED SPECIES,RAW',148, '1 fillet'],['TROUT,RAINBOW,WILD,RAW',119, '3 oz'],['TROUT,RAINBOW,WILD,CKD,DRY HEAT',150, '1 fillet'],['TUNA,FRESH,BLUEFIN,RAW',144, '3 oz'],['TUNA,FRSH,BLUEFIN,CKD,DRY HEAT',184, '3 oz'],['TUNA,LT,CND IN OIL,DRND SOL',198, '1 cup, solid or chunks'],['FISH,TUNA,LT,CND IN H2O,DRND SOL',86, '1 oz'],['TUNA,FRESH,SKIPJACK,RAW',103, '3 oz'],['TUNA,WHITE,CND IN OIL,DRND SOL',186, '3 oz'],['TUNA,WHITE,CND IN H2O,DRND SOL',128, '3 oz'],['TUNA,FRESH,YELLOWFIN,RAW',109, '1 oz, boneless'],['TUNA SALAD',187, '3 oz'],['TURBOT,EUROPEAN,RAW',95, '3 oz'],['WHITEFISH,MXD SP,RAW',134, '3 oz'],['WHITEFISH,MXD SP,SMOKED',108, '1 cup, cooked'],['WHITING,MIXED SPECIES,RAW',90, '1 fillet'],['WHITING,MXD SP,CKD,DRY HEAT',116, '1 fillet'],['WOLFFISH,ATLANTIC,RAW',96, '3 oz'],['YELLOWTAIL,MXD SP,RAW',146, '3 oz'],['CRAB,ALASKA KING,RAW',84, '3 oz'],['CRAB,ALASKA KING,CKD,MOIST HEAT',97, '1 leg'],['CRAB,ALASKA KING,IMITN,MADE FROM SURIMI',95, '3 oz'],['CRAB,BLUE,RAW',87, '3 oz'],['CRAB,BLUE,CKD,MOIST HEAT',83, '1 cup, flaked and pieces'],['CRAB,BLUE,CANNED',83, '1 cup'],['CRUSTACEANS,CRAB,BLUE,CRAB CAKES,HOME RECIPE',155, '1 cake'],['CRAB,DUNGENESS,RAW',86, '3 oz'],['CRAB,QUEEN,RAW',90, '3 oz'],['CRAYFISH,MXD SP,WILD,RAW',77, '3 oz'],['CRAYFISH,MXD SP,WILD,CKD,MOIST HEAT',82, '3 oz'],['LOBSTER,NORTHERN,RAW',77, '1 lobster'],['LOBSTER,NORTHERN,CKD,MOIST HEAT',89, '1 cup'],['SHRIMP,MIXED SPECIES,RAW',71, '1 medium'],['SHRIMP,MXD SP,CKD,BREADED&FRIED',242, '3 oz'],['SHRIMP,MXD SP,CKD,MOIST HEAT',119, '3 oz'],['SHRIMP,MXD SP,CND',100, '1 cup'],['SHRIMP,MXD SP,IMITN,MADE FROM SURIMI',101, '3 oz'],['SPINY LOBSTER,MXD SP,RAW',112, '3 oz'],['ABALONE,MIXED SPECIES,RAW',105, '3 oz'],['ABALONE,MXD SP,CKD,FRIED',189, '3 oz'],['CLAM,MIXED SPECIES,RAW',86, '3 oz'],['CLAM,MXD SP,CKD,BREADED&FRIED',202, '3 oz'],['CLAM,MXD SP,CKD,MOIST HEAT',148, '3 oz'],['CLAM,MXD SP,CND,DRND SOL',142, '3 oz'],['CLAM,MXD SP,CND,LIQ',2, '3 oz'],['CUTTLEFISH,MXD SP,RAW',79, '3 oz'],['MUSSEL,BLUE,RAW',86, '1 cup'],['MUSSEL,BLUE,CKD,MOIST HEAT',172, '3 oz'],['OCTOPUS,COMMON,RAW',82, '3 oz'],['OYSTER,EASTERN,WILD,RAW',51, '6 medium'],['OYSTER,EASTERN,CKD,BREADED&FRIED',199, '3 oz'],['OYSTER,EASTERN,WILD,CKD,MOIST HEAT',102, '3 oz'],['OYSTER,EASTERN,CANNED',68, '3 oz'],['OYSTER,PACIFIC,RAW',81, '1 medium'],['SCALLOP,MIXED SPECIES,RAW',69, '1 unit, 2 large or 5 small'],['SCALLOP,MXD SP,CKD,BREADED&FRIED',216, '2 large'],['SCALLOP,MXD SP,IMITN,MADE FROM SURIMI',99, '3 oz'],['SQUID,MIXED SPECIES,RAW',92, '1 oz, boneless'],['SQUID,MXD SP,CKD,FRIED',175, '3 oz'],['WHELK,UNSPECIFIED,RAW',137, '3 oz'],['WHELK,UNSPEC,CKD,MOIST HEAT',275, '3 oz'],['SALMON,CHINOOK,SMOKED,(LOX),REG',117, '1 oz'],['SALMON,CHUM,CND,WO/SALT,DRND SOL W/BONE',141, '3 oz'],['SALMON,PINK,CND,WO/SALT,SOL W/BONE&LIQ',139, '3 oz'],['SALMON,SOCKEYE,CND,WO/SALT,DRND SOL W/BONE',153, '3 oz'],['TUNA,LT,CND IN OIL,WO/SALT,DRND SOL',198, '3 oz'],['TUNA,LT,CND IN H2O,WO/SALT,DRND SOL',116, '3 oz'],['TUNA,WHITE,CND IN OIL,WO/SALT,DRND SOL',186, '3 oz'],['TUNA,WHITE,CND IN H2O,WO/SALT,DRND SOL',128, '3 oz'],['BASS,FRESHWATER,MXD SP,CKD,DRY HEAT',146, '1 fillet'],['BASS,STRIPED,CKD,DRY HEAT',124, '1 fillet'],['BLUEFISH,COOKED,DRY HEAT',159, '1 fillet'],['BURBOT,COOKED,DRY HEAT',115, '1 fillet'],['BUTTERFISH,CKD,DRY HEAT',187, '1 fillet'],['COD,PACIFIC,CKD,DRY HEAT',85, '1 fillet'],['CUSK,COOKED,DRY HEAT',112, '1 fillet'],['DOLPHINFISH,CKD,DRY HEAT',109, '3 oz'],['DRUM,FRESHWATER,CKD,DRY HEAT',153, '3 oz'],['HALIBUT,GREENLAND,CKD,DRY HEAT',239, '3 oz'],['HERRING,PACIFIC,CKD,DRY HEAT',250, '1 fillet'],['LING,COOKED,DRY HEAT',111, '3 oz'],['LINGCOD,COOKED,DRY HEAT',109, '3 oz'],['MACKEREL,KING,CKD,DRY HEAT',134, '3 oz'],['MACKEREL,PACIFIC&JACK,MXD SP,CKD,DRY HEAT',201, '1 oz, boneless'],['MILKFISH,COOKED,DRY HEAT',190, '3 oz'],['MONKFISH,COOKED,DRY HEAT',97, '3 oz'],['PIKE,WALLEYE,CKD,DRY HEAT',119, '1 fillet'],['POLLOCK,ATLANTIC,CKD,DRY HEAT',118, '3 oz'],['POUT,OCEAN,CKD,DRY HEAT',102, '.5 fillet'],['ROE,MXD SP,CKD,DRY HEAT',204, '1 oz'],['SABLEFISH,COOKED,DRY HEAT',250, '3 oz'],['SALMON,ATLANTIC,WILD,CKD,DRY HEAT',182, '3 oz'],['SALMON,CHINOOK,CKD,DRY HEAT',231, '3 oz'],['SALMON,CHUM,CKD,DRY HEAT',154, '3 oz'],['SALMON,PINK,CKD,DRY HEAT',153, '3 oz'],['SCUP,COOKED,DRY HEAT',135, '1 fillet'],['SEATROUT,MXD SP,CKD,DRY HEAT',133, '3 oz'],['SHAD,AMERICAN,CKD,DRY HEAT',252, '1 fillet'],['SPOT,COOKED,DRY HEAT',158, '1 fillet'],['SUCKER,WHITE,CKD,DRY HEAT',119, '1 fillet'],['SUNFISH,PUMPKIN SD,CKD,DRY HEAT',114, '1 fillet'],['TROUT,MXD SP,CKD,DRY HEAT',190, '1 fillet'],['TUNA,SKIPJACK,FRSH,CKD,DRY HEAT',132, '3 oz'],['TUNA,YELLOWFIN,FRSH,CKD,DRY HEAT',130, '3 oz'],['TURBOT,EUROPEAN,CKD,DRY HEAT',122, '3 oz'],['WHITEFISH,MXD SP,CKD,DRY HEAT',172, '3 oz'],['WOLFFISH,ATLANTIC,CKD,DRY HEAT',123, '.5 fillet'],['YELLOWTAIL,MXD SP,CKD,DRY HEAT',187, '.5 fillet'],['CRAB,DUNGENESS,CKD,MOIST HEAT',110, '3 oz'],['CRAB,QUEEN,CKD,MOIST HEAT',115, '3 oz'],['SPINY LOBSTER,MXD SP,CKD,MOIST HEAT',143, '3 oz'],['CUTTLEFISH,MXD SP,CKD,MOIST HEAT',158, '3 oz'],['OCTOPUS,COMMON,CKD,MOIST HEAT',164, '3 oz'],['OYSTER,PACIFIC,CKD,MOIST HEAT',163, '1 medium'],['ROUGHY,ORANGE,CKD,DRY HEAT',105, '3 oz'],['CATFISH,CHANNEL,WILD,CKD,DRY HEAT',105, '1 fillet'],['CATFISH,CHANNEL,FARMED,RAW',119, '3 oz'],['CATFISH,CHANNEL,FARMED,CKD,DRY HEAT',144, '1 fillet'],['SALMON,ATLANTIC,FARMED,RAW',208, '3 oz'],['SALMON,ATLANTIC,FARMED,CKD,DRY HEAT',206, '3 oz'],['SALMON,COHO,FARMED,RAW',160, '3 oz'],['SALMON,COHO,FARMED,CKD,DRY HEAT',178, '1 fillet'],['TROUT,RAINBOW,FARMED,RAW',141, '1 fillet'],['TROUT,RAINBOW,FARMED,CKD,DRY HEAT',168, '1 fillet'],['CRAYFISH,MXD SP,FARMED,RAW',72, '3 oz'],['CRAYFISH,MXD SP,FARMED,CKD,MOIST HEAT',87, '3 oz'],['OYSTER,EASTERN,WILD,CKD,DRY HEAT',79, '3 oz'],['OYSTER,EASTERN,FARMED,RAW',59, '3 oz'],['OYSTER,EASTERN,FARMED,CKD,DRY HEAT',79, '3 oz'],['SALMON,COHO,WILD,CKD,DRY HEAT',139, '3 oz'],['CONCH,BAKED OR BROILED',130, '1 cup, sliced'],['USDA COMMODITY,SALMON NUGGETS,BREADED,FRZ,HTD',212, '1 oz'],['USDA COMMODITY,SALMON NUGGETS,CKD AS PURCHASED,UNHTD',189, '1 oz'],['SALMON,SOCKEYE,CND,TOTAL CAN CONTENTS',153, '3 oz'],['FISH,SALMON,PINK,CND,DRND SOL',138, '3 oz'],['FISH,TILAPIA,RAW',96, '1 fillet'],['FISH,TILAPIA,CKD,DRY HEAT',128, '1 fillet'],['SALMON,SOCKEYE,CND,DRND SOL,WO/ SKN & BONES',158, '3 oz'],['FISH,SALMON,PINK,CND,DRND SOL,WO/ SKN & BONES',136, '3 oz'],['FISH,POLLOCK,ALASKA,UNTREATED,RAW',70, '3 oz'],['FISH,POLLOCK,ALASKA,UNTREATED,CKD',80, '3 oz'],['FISH,COD,PACIFIC,UNTREATED,RAW',72, '3 oz'],['FISH,COD,PACIFIC,UNTREATED,CKD',84, '3 oz'],['CRUSTACEANS,SHRIMP,UNTREATED,RAW',85, '3 oz'],['CRUSTACEANS,SHRIMP,UNTREATED,CKD',99, '3 oz'],['FISH,SALMON,SOCKEYE,UNTREATED,RAW',131, '3 oz'],['FISH,SALMON,SOCKEYE,UNTREATED,CKD',143, '3 oz'],['FISH,TROUT,BROOK,RAW,NEW YORK STATE',110, '1 filet'],['BEANS,ADZUKI,MATURE SEEDS,RAW',329, '1 cup'],['BEANS,ADZUKI,MATURE SEEDS,CKD,BLD,WO/SALT',128, '1 cup'],['BEANS,ADZUKI,MATURE SEEDS,CND,SWTND',237, '1 cup'],['BEANS,ADZUKI,YOKAN,MATURE SEEDS',260, '1 slice'],['BEANS,BAKED,HOME PREPARED',155, '1 cup'],['BEANS,BKD,CND,PLN OR VEGETARIAN',94, '1 cup'],['BEANS,BKD,CND,W/BF',121, '1 cup'],['BEANS,BKD,CND,W/FRANKS',142, '1 cup'],['BEANS,BKD,CND,W/PORK',106, '1 cup'],['BEANS,BKD,CND,W/PORK&SWT SAU',105, '1 cup'],['BEANS,BKD,CND,W/PORK&TOMATO SAU',94, '1 cup'],['BEANS,BLACK,MATURE SEEDS,RAW',341, '1 cup'],['BEANS,BLACK,MATURE SEEDS,CKD,BLD,WO/SALT',132, '1 cup'],['BEANS,BLACK TURTLE,MATURE SEEDS,RAW',339, '1 cup'],['BEANS,BLACK TURTLE,MATURE SEEDS,CKD,BLD,WO/ SALT',130, '1 cup'],['BEANS,BLACK TURTLE,MATURE SEEDS,CND',91, '1 cup'],['BEANS,CRANBERRY (ROMAN),MATURE SEEDS,RAW',335, '1 cup'],['BEANS,CRANBERRY (ROMAN),MATURE SEEDS,CKD,BLD,WO/SALT',136, '1 cup'],['BEANS,CRANBERRY (ROMAN),MATURE SEEDS,CND',83, '1 cup'],['BEANS,FRENCH,MATURE SEEDS,RAW',343, '1 cup'],['BEANS,FRENCH,MATURE SEEDS,CKD,BLD,WO/SALT',129, '1 cup'],['BEANS,GREAT NORTHERN,MATURE SEEDS,RAW',339, '1 cup'],['BEANS,GREAT NORTHERN,MATURE SEEDS,CKD,BLD,WO/SALT',118, '1 cup'],['BEANS,GREAT NORTHERN,MATURE SEEDS,CND',114, '1 cup'],['BEANS,KIDNEY,ALL TYPES,MATURE SEEDS,RAW',333, '1 cup'],['BEANS,KIDNEY,ALL TYPES,MATURE SEEDS,CKD,BLD,WO/SALT',127, '1 cup'],['BEANS,KIDNEY,ALL TYPES,MATURE SEEDS,CND',84, '1 cup'],['BEANS,KIDNEY,CALIFORNIA RED,MATURE SEEDS,RAW',330, '1 cup'],['BEANS,KIDNEY,CALIFORNIA RED,MATURE SEEDS,CKD,BLD,WO/SALT',124, '1 cup'],['BEANS,KIDNEY,RED,MATURE SEEDS,RAW',337, '1 cup'],['BEANS,KIDNEY,RED,MATURE SEEDS,CKD,BLD,WO/SALT',127, '1 cup'],['BEANS,KIDNEY,RED,MATURE SEEDS,CND,SOL & LIQUIDS',81, '1 cup'],['BEANS,KIDNEY,ROYAL RED,MATURE SEEDS,RAW',329, '1 cup'],['BEANS,KIDNEY,ROYAL RED,MATURE SEEDS,CKD,BLD,WO/SALT',123, '1 cup'],['BEANS,NAVY,MATURE SEEDS,RAW',337, '1 cup'],['BEANS,NAVY,MATURE SEEDS,CKD,BLD,WO/SALT',140, '1 cup'],['BEANS,NAVY,MATURE SEEDS,CND',113, '1 cup'],['BEANS,PINK,MATURE SEEDS,RAW',343, '1 cup'],['BEANS,PINK,MATURE SEEDS,CKD,BLD,WO/SALT',149, '1 cup'],['BEANS,PINTO,MATURE SEEDS,RAW',347, '1 cup'],['BEANS,PINTO,MATURE SEEDS,CKD,BLD,WO/SALT',143, '1 cup'],['BEANS,PINTO,MATURE SEEDS,CND,SOL & LIQUIDS',82, '1 cup'],['BEANS,SML WHITE,MATURE SEEDS,RAW',336, '1 cup'],['BEANS,SML WHITE,MATURE SEEDS,CKD,BLD,WO/SALT',142, '1 cup'],['BEANS,YEL,MATURE SEEDS,RAW',345, '1 cup'],['BEANS,YEL,MATURE SEEDS,CKD,BLD,WO/SALT',144, '1 cup'],['BEANS,WHITE,MATURE SEEDS,RAW',333, '1 cup'],['BEANS,WHITE,MATURE SEEDS,CKD,BLD,WO/SALT',139, '1 cup'],['BEANS,WHITE,MATURE SEEDS,CND',114, '1 cup'],['BROADBEANS (FAVA BEANS),MATURE SEEDS,RAW',341, '1 cup'],['BROADBEANS (FAVA BNS),MATURE SEEDS,CKD,BLD,WO/SALT',110, '1 cup'],['BROADBEANS (FAVA BNS),MATURE SEEDS,CND',71, '1 cup'],['CAROB FLOUR',222, '1 cup'],['CHICKPEAS (GARBANZO BNS,BENGAL GM),MATURE SEEDS,RAW',378, '1 cup'],['CHICKPEAS ,MATURE SEEDS,CKD,BLD,WO/SALT',164, '1 cup'],['CHICKPEAS (GARBANZO BNS,BENGAL GRAM),MATURE SDS,CND,SOL&LIQ',88, '1 cup'],['CHILI WITH BEANS,CANNED',112, '1 cup'],['COWPEAS,CATJANG,MATURE SEEDS,RAW',343, '1 cup'],['COWPEAS,CATJANG,MATURE SEEDS,CKD,BLD,WO/SALT',117, '1 cup'],['COWPEAS,COMMON (BLACKEYES,CROWDER,SOUTHERN),MTRE SEEDS,RAW',336, '1 cup'],['COWPEAS,COMMON (BLKEYES,CRWDR,STHRN),MTURE,CKD,BLD,WO/SALT',116, '1 cup'],['COWPEAS,COMMON,MATURE SEEDS,CND,PLN',77, '1 cup'],['COWPEAS,COMMON,MATURE SEEDS,CND W/PORK',83, '1 cup'],['HYACINTH BNS,MATURE SEEDS,RAW',344, '1 cup'],['HYACINTH BNS,MATURE SEEDS,CKD,BLD,WO/SALT',117, '1 cup'],['LENTILS,RAW',352, '1 cup'],['LENTILS,MATURE SEEDS,CKD,BLD,WO/SALT',116, '1 cup'],['LIMA BNS,LRG,MATURE SEEDS,RAW',338, '1 cup'],['LIMA BNS,LRG,MATURE SEEDS,CKD,BLD,WO/SALT',115, '1 cup'],['LIMA BNS,LRG,MATURE SEEDS,CND',79, '1 cup'],['LIMA BNS,THIN SEEDED (BABY),MATURE SEEDS,RAW',335, '1 cup'],['LIMA BNS,THIN SEEDED (BABY),MATURE SEEDS,CKD,BLD,WO/SALT',126, '1 cup'],['LUPINS,MATURE SEEDS,RAW',371, '1 cup'],['LUPINS,MATURE SEEDS,CKD,BLD,WO/ SALT',119, '1 cup'],['MOTHBEANS,MATURE SEEDS,RAW',343, '1 cup'],['MOTHBEANS,MATURE SEEDS,CKD,BLD,WO/SALT',117, '1 cup'],['MUNG BNS,MATURE SEEDS,RAW',347, '1 cup'],['MUNG BNS,MATURE SEEDS,CKD,BLD,WO/SALT',105, '1 cup'],['NOODLES,CHINESE,CELLOPHANE OR LONG RICE (MUNG BNS),DEHYD',351, '1 cup'],['MUNGO BNS,MATURE SEEDS,RAW',341, '1 cup'],['MUNGO BNS,MATURE SEEDS,CKD,BLD,WO/SALT',105, '1 cup'],['PEAS,GRN,SPLIT,MATURE SEEDS,RAW',352, '1 cup'],['PEAS,SPLIT,MATURE SEEDS,CKD,BLD,WO/SALT',118, '1 cup'],['PEANUTS,ALL TYPES,RAW',567, '1 oz'],['PEANUTS,ALL TYPES,CKD,BLD,W/SALT',318, '1 cup, in shell, edible yield'],['PEANUTS,ALL TYPES,OIL-ROASTED,W/SALT',599, '1 cup, chopped'],['PEANUTS,ALL TYPES,DRY-ROASTED,W/SALT',587, '1 oz'],['PEANUTS,SPANISH,RAW',570, '1 cup'],['PEANUTS,SPANISH,OIL-ROASTED,W/SALT',579, '1 cup'],['PEANUTS,VALENCIA,RAW',570, '1 cup'],['PEANUTS,VALENCIA,OIL-ROASTED,W/SALT',589, '1 cup'],['PEANUTS,VIRGINIA,RAW',563, '1 cup'],['PEANUTS,VIRGINIA,OIL-ROASTED,W/SALT',578, '1 cup'],['PEANUT BUTTER,CHUNK STYLE,W/SALT',589, '2 tbsp'],['PEANUT BUTTER,SMOOTH STYLE,W/ SALT',598, '2 tbsp'],['PEANUT FLOUR,DEFATTED',327, '1 cup'],['PEANUT FLOUR,LOW FAT',428, '1 cup'],['PIGEON PEAS (RED GM),MATURE SEEDS,RAW',343, '1 cup'],['PIGEON PEAS (RED GM),MATURE SEEDS,CKD,BLD,WO/SALT',121, '1 cup'],['REFRIED BNS,CND,TRADITIONAL STYLE (INCLUDES USDA COMMODITY)',90, '1 cup'],['BACON,MEATLESS',310, '1 cup'],['MEAT EXTENDER',313, '1 cup'],['SAUSAGE,MEATLESS',257, '1 link'],['SOYBEANS,MATURE SEEDS,RAW',446, '1 cup'],['SOYBEANS,MATURE CKD,BLD,WO/SALT',173, '1 cup'],['SOYBEANS,MATURE SEEDS,RSTD,SALTED',471, '1 cup'],['SOYBEANS,MATURE SEEDS,DRY RSTD',451, '1 cup'],['MISO',199, '1 tbsp'],['NATTO',212, '1 cup'],['TEMPEH',193, '1 cup'],['SOY FLOUR,FULL-FAT,RAW',436, '1 cup, stirred'],['SOY FLR,FULL-FAT,RSTD',441, '1 cup, stirred'],['SOY FLOUR,DEFATTED',330, '1 cup'],['SOY FLOUR,LOW-FAT',375, '1 cup, stirred'],['SOY MEAL,DEFATTED,RAW',339, '1 cup'],['SOYMILK,ORIGINAL & VANILLA,UNFORTIFIED',54, '1 cup'],['SOY PROT CONC,PRODUCED BY ALCOHOL EXTRACTION',331, '1 oz'],['SOY PROTEIN ISOLATE',338, '1 oz'],['SOY SAU MADE FROM SOY&WHEAT (SHOYU)',53, '1 tbsp'],['SOY SAU MADE FROM SOY (TAMARI)',60, '1 tbsp'],['SOY SAU MADE FROM HYDROLYZED VEG PROT',60, '1 tbsp'],['TOFU,FIRM,PREP W/CA SULFATE&MAGNESIUM CHLORIDE (NIGARI)',70, '.5 cup'],['TOFU,SOFT,PREP W/CA SULFATE&MAGNESIUM CHLORIDE (NIGARI)',61, '1 piece, (2-1/2 x 2-3/4 x 1)'],['TOFU,DRIED-FROZEN (KOYADOFU)',480, '1 piece'],['TOFU,FRIED',271, '1 oz'],['OKARA',77, '1 cup'],['TOFU,SALTED&FERMENTED (FUYU)',116, '1 block'],['YARDLONG BNS,MATURE SEEDS,RAW',347, '1 cup'],['YARDLONG BNS,MATURE SEEDS,CKD,BLD,WO/SALT',118, '1 cup'],['WINGED BNS,MATURE SEEDS,RAW',409, '1 cup'],['WINGED BNS,MATURE SEEDS,CKD,BLD,WO/ SALT',147, '1 cup'],['HUMMUS,HOME PREP',177, '1 tablespoon'],['FALAFEL,HOME-PREPARED',333, '1 patty, (approx 2-1/4 dia)'],['SOYMILK,ORIGINAL & VANILLA,W/ ADDED CA,VITAMINS A & D',43, '1 cup'],['LENTILS,PINK OR RED,RAW',358, '1 cup'],['BEANS,RED,KIDNEY,MATURE SEEDS,CND,DRND SOL',124, '1 can, drained solids'],['BEANS,PINTO,CND,DRND SOL',114, '1 can, drained solids'],['VEGGIE BURGERS OR SOYBURGERS UNPREP',177, '1 pattie'],['PEANUT SPRD,RED SUGAR',650, '2 tbsp'],['PEANUT BUTTER,SMOOTH,RED FAT',520, '2 tablespoon'],['PEANUT BUTTER,SMOOTH,VIT & MINERAL FORT',591, '2 tbsp'],['PEANUT BUTTER,CHUNKY,VITAMIN&MINERAL FORT',593, '2 tbsp'],['CHICKPEA FLOUR (BESAN)',387, '1 cup'],['HUMMUS,COMMERCIAL',166, '1 tbsp'],['TOFU,EX FIRM,PREP W/NIGARI',91, '.2 block'],['TOFU,HARD,PREP W/NIGARI',146, '.25 block'],['MORI-NU,TOFU,SILKEN,SOFT',55, '1 slice'],['MORI-NU,TOFU,SILKEN,FIRM',62, '1 slice'],['MORI-NU,TOFU,SILKEN,EX FIRM',55, '1 slice'],['MORI-NU,TOFU,SILKEN,LITE FIRM',37, '1 slice'],['MORI-NU,TOFU,SILKEN,LITE EX FIRM',38, '1 slice'],['SOYMILK,CHOC,UNFORTIFIED',63, '1 cup'],['USDA CMDTY,PNUT BUTTER,SMOOTH',588, '2 tbsp'],['SOYMILK,CHOC,W/ ADDED CA,VITAMINS A & D',63, '1 cup'],['REFRIED BNS,CND,VEGETARIAN',83, '1 cup'],['REFRIED BNS,CND,FAT-FREE',79, '1 cup'],['FRIJOLES ROJOS VOLTEADOS (REFRIED BNS,RED,CANNED)',144, '1 cup'],['TEMPEH,CKD',196, ''],['CAMPBELLS BRN SUGAR&BACON FLAV BKD BNS',123, '.5 cup'],['CAMPBELLS PORK & BNS',108, '.5 cup'],['PACE,TRADITIONAL REFRIED BNS',67, '.5 cup'],['PACE,SALSA REFRIED BNS',60, '.5 cup'],['PACE,SPICY JALAPENO REFRIED BNS',63, '.5 cup'],['VITASOY USA,NASOYA LITE FIRM TOFU',54, '.2 package'],['VITASOY USA,ORGANIC NASOYA SUPER FIRM CUBED TOFU',118, '.2 package'],['VITASOY USA,ORGANIC NASOYA EX FIRM TOFU',98, '.2 package'],['VITASOY USA,ORGANIC NASOYA FIRM TOFU',84, '.2 package'],['VITASOY USA ORGANIC NASOYA SILKEN TOFU',47, '.2 package'],['VITASOY USA,VITASOY ORGANIC CREAMY ORIGINAL SOYMILK',44, '1 cup'],['VITASOY USA,VITASOY ORGANIC CLASSIC ORIGINAL SOYMILK',47, '1 cup'],['VITASOY USA,VITASOY LT VANILLA SOYMILK',30, '1 cup'],['SOYMILK (ALL FLAVORS),UNSWTND,W/ ADDED CA,VITAMINS A & D',33, '1 cup'],['SOYMILK (ALL FLAVORS),ENHANCED',45, '1 cup'],['SOYMILK,ORIGINAL & VANILLA,LT,W/ ADDED CA,VITAMINS A & D',30, '1 cup'],['SOYMILK,CHOC & OTHER FLAVORS,LT,W/ ADDED CA,VITAMINS A & D',47, '1 cup'],['SOYMILK,ORIGINAL & VANILLA,LT,UNSWTND,W/ ADDED CA,VIT A & D',34, '1 cup'],['SOYMILK (ALL FLAVORS),LOWFAT,W/ ADDED CA,VITAMINS A & D',43, '1 cup'],['SOYMILK (ALL FLAVORS),NONFAT,W/ ADDED CA,VITAMINS A & D',28, '1 cup'],['SOYMILK,CHOC,NONFAT,W/ ADDED CA,VITAMINS A & D',44, '1 cup'],['SILK PLN,SOYMILK',41, '1 cup'],['SILK VANILLA,SOYMILK',41, '1 cup'],['SILK CHOC,SOYMILK',58, '1 cup'],['SILK LT PLN,SOYMILK',29, '1 cup'],['SILK LT VANILLA,SOYMILK',33, '1 cup'],['SILK LT CHOC,SOYMILK',49, '1 cup'],['SILK PLUS OMEGA-3 DHA,SOYMILK',45, '1 cup'],['SILK PLUS FOR BONE HEALTH,SOYMILK',41, '1 cup'],['SILK PLUS FIBER,SOYMILK',41, '1 cup'],['SILK UNSWTND,SOYMILK',33, '1 cup'],['SILK VERY VANILLA,SOYMILK',53, '1 cup'],['SILK NOG,SOYMILK',74, '.5 cup'],['SILK CHAI,SOYMILK',53, '1 cup'],['SILK MOCHA,SOYMILK',58, '1 cup'],['SILK COFFEE,SOYMILK',62, '1 cup'],['SILK VANILLA SOY YOGURT (FAMILY SIZE)',79, '1 container'],['SILK VANILLA SOY YOGURT (SINGLE SERVING SIZE)',88, '1 container'],['SILK PLN SOY YOGURT',66, '1 container'],['SILK STRAWBERRY SOY YOGURT',94, '1 container'],['SILK RASPBERRY SOY YOGURT',88, '1 container'],['SILK PEACH SOY YOGURT',94, '1 container'],['SILK BLACK CHERRY SOY YOGURT',88, '1 container'],['SILK BLUEBERRY SOY YOGURT',88, '1 container'],['SILK KEY LIME SOY YOGURT',88, '1 container'],['SILK BANANA-STRAWBERRY SOY YOGURT',88, '1 container'],['SILK ORIGINAL CREAMER',100, '1 tbsp'],['SILK FRENCH VANILLA CREAMER',133, '1 tbsp'],['SILK HAZELNUT CREAMER',133, '1 tbsp'],['VITASOY USA ORGANIC NASOYA,SOFT TOFU',70, '.2 package'],['VITASOY USA NASOYA,LITE SILKEN TOFU',41, '.2 package'],['VITASOY USA ORGANIC NASOYA,TOFU PLUS EX FIRM',92, '3 oz'],['VITASOY USA ORGANIC NASOYA,TOFU PLUS FIRM',74, '3 oz'],['VITASOY USA ORGANIC NASOYA SPROUTED,TOFU PLUS SUPER FIRM',115, '3 oz'],['VITASOY USA AZUMAYA,EX FIRM TOFU',88, '.2 package'],['VITASOY USA AZUMAYA,FIRM TOFU',80, '.2 package'],['VITASOY USA AZUMAYA,SILKEN TOFU',43, '.2 package'],['HOUSE FOODS PREMIUM SOFT TOFU',59, '2 oz'],['HOUSE FOODS PREMIUM FIRM TOFU',85, '2 oz'],['BEANS,ADZUKI,MATURE SD,CKD,BLD,W/SALT',128, '1 cup'],['BEANS,BLACK,MATURE SEEDS,CKD,BLD,W/SALT',132, '1 cup'],['BEANS,BLACK,MATURE SEEDS,CND,LO NA',91, '1 cup'],['BEANS,BLACK TURTLE,MATURE SEEDS,CKD,BLD,W/ SALT',130, '1 cup'],['BEANS,CRANBERRY (ROMAN),MATURE SEEDS,CKD,BLD,W/SALT',136, '1 cup'],['BEANS,FRENCH,MATURE SEEDS,CKD,BLD,W/SALT',129, '1 cup'],['BEANS,GREAT NORTHERN,MATURE SEEDS,CKD,BLD,W/SALT',118, '1 cup'],['BEANS,GREAT NORTHERN,MATURE SEEDS,CND,LO NA',114, '1 cup'],['BEANS,KIDNEY,ALL TYPES,MATURE SEEDS,CKD,BLD,W/SALT',127, '1 cup'],['BEANS,KIDNEY,CALIFORNIA RED,MATURE SEEDS,CKD,BLD,W/SALT',124, '1 cup'],['BEANS,KIDNEY,RED,MATURE SEEDS,CKD,BLD,W/SALT',127, '1 cup'],['BEANS,KIDNEY,RED,MATURE SEEDS,CND,DRND SOL,RINSED IN TAP H2O',121, '1 cup, cup rinsed solids'],['BEANS,KIDNEY,ROYAL RED,MATURE SEEDS,CKD,BLD W/SALT',123, '1 cup'],['BEANS,MATURE,RED KIDNEY,CND,SOL & LIQ,LO NA',81, '1 cup'],['BEANS,NAVY,MATURE SEEDS,CKD,BLD,W/SALT',140, '1 cup'],['BEANS,PINK,MATURE SEEDS,CKD,BLD,W/SALT',149, '1 cup'],['BEANS,PINTO,MATURE SEEDS,CKD,BLD,W/SALT',143, '1 cup'],['BEANS,PINTO,MATURE SEEDS,CND,DRND SOL,RINSED IN TAP H2O',117, '1 cup'],['BEANS,SML WHITE,MATURE SEEDS,CKD,BLD,W/SALT',142, '1 cup'],['BEANS,PINTO,MATURE SEEDS,CND,SOL & LIQUIDS,LO NA',82, '1 cup'],['BEANS,YEL,MATURE SEEDS,CKD,BLD,W/SALT',144, '1 cup'],['BEANS,WHITE,MATURE SEEDS,CKD,BLD,W/ SALT',139, '1 cup'],['BROADBEANS (FAVA BNS),MATURE SEEDS,CKD,BLD,W/SALT',110, '1 cup'],['CHICKPEAS,MATURE SEEDS,CKD,BLD,W/SALT',164, '1 cup'],['CHICKPEAS,MAT SEEDS,CND,DRND SOL',139, '1 can, drained'],['CHICKPEAS,MATURE SEEDS,CND,DRND,RINSED IN TAP H2O',138, '1 can, drained, rinsed'],['CHICKPEAS,MATURE SEEDS,CND,SOL & LIQUIDS,LO NA',88, '1 cup'],['COWPEAS,CATJANG,MATURE SEEDS,CKD,BLD,W/SALT',117, '1 cup'],['COWPEAS,COMMON,MATURE SEEDS,CKD,BLD,W/SALT',116, '1 cup'],['HYACINTH BNS,MATURE SEEDS,CKD,BLD,W/SALT',117, '1 cup'],['LENTILS,MATURE SEEDS,CKD,BLD,W/SALT',114, '1 cup'],['LIMA BNS,LRG,MATURE SEEDS,CKD,BLD,W/SALT',115, '1 cup'],['LIMA BNS,THIN SEEDED (BABY),MATURE SEEDS,CKD,BLD,W/SALT',126, '1 cup'],['LUPINS,MATURE SEEDS,CKD,BLD,W/SALT',116, '1 cup'],['MOTHBEANS,MATURE SEEDS,CKD,BLD,W/SALT',117, '1 cup'],['MUNG BNS,MATURE SEEDS,CKD,BLD,W/SALT',105, '1 cup'],['MUNGO BNS,MATURE SEEDS,CKD,BLD,W/SALT',105, '1 cup'],['PEAS,SPLIT,MATURE SEEDS,CKD,BLD,W/SALT',116, '1 cup'],['PEANUTS,ALL TYPES,OIL-ROASTED,WO/ SALT',599, '1 cup'],['PEANUTS,ALL TYPES,DRY-ROASTED,WO/SALT',587, '1 cup'],['PEANUTS,SPANISH,OIL-ROASTED,WO/SALT',579, '1 cup'],['PEANUTS,VALENCIA,OIL-ROASTED,WO/SALT',589, '1 cup'],['PEANUTS,VIRGINIA,OIL-ROASTED,WO/SALT',578, '1 cup'],['PEANUT BUTTER,CHUNK STYLE,WO/SALT',589, '2 tbsp'],['PEANUT BUTTER,SMOOTH STYLE,WO/SALT',598, '2 tbsp'],['PEANUT BUTTER W/ OMEGA-3,CREAMY',608, '1 tbsp'],['PIGEON PEAS (RED GM),MATURE SEEDS,CKD,BLD,W/SALT',121, '1 cup'],['REFRIED BNS,CND,TRADITIONAL,RED NA',89, '1 cup'],['SOYBEANS,MATURE SEEDS,CKD,BLD,W/SALT',173, '1 cup'],['SOYBEANS,MATURE SEEDS,RSTED,NO SALT ADDED',471, '1 cup'],['SOY FLR,FULL-FAT,RAW,CRUDE PROT BASIS (N X 6.25)',434, '1 cup, stirred'],['SOY FLR,FULL-FAT,RSTD,CRUDE PROT BASIS (N X 6.25)',439, '1 cup, stirred'],['SOY FLR,DEFATTED,CRUDE PROT BASIS (N X 6.25)',372, '1 cup, stirred'],['SOY FLR,LOW-FAT,CRUDE PROT BASIS (N x 6.25)',369, '1 cup, stirred'],['SOY MEAL,DEFATTED,RAW,CRUDE PROT BASIS (N X 6.25)',337, '1 cup'],['SOY PROT CONC,PRODUCED BY ACID WASH',331, '1 oz'],['SOY PROT CONC,CRUDE PROT BASIS (N X 6.25),ACID WASH',328, '1 oz'],['SOY PROT ISOLATE,K TYPE',326, '1 oz'],['SOY PROT ISOLATE,K TYPE,CRUDE PROT BASIS',321, '1 oz'],['SOY SAU MADE FROM SOY&WHEAT (SHOYU),LO NA',57, '1 tbsp'],['SOY SAU,RED NA,MADE FROM HYDROLYZED VEG PROT',90, '1 tbsp'],['TOFU,RAW,FIRM,PREP W/CA SULFATE',145, '.5 cup'],['TOFU,RAW,REG,PREP W/CA SULFATE',76, '.5 cup'],['TOFU,DRIED-FROZEN (KOYADOFU),PREP W/CA SULFATE',472, '1 piece'],['TOFU,FRIED,PREP W/CA SULFATE',271, '1 piece'],['TOFU,SALTED&FERMENTED (FUYU),PREP W/CA SULFATE',116, '1 block'],['YARDLONG BNS,MATURE SEEDS,CKD,BLD,W/ SALT',118, '1 cup'],['WINGED BNS,MATURE SEEDS,CKD,BLD,W/ SALT',147, '1 cup'],['LOMA LINDA LITTLE LINKS,CND,UNPREP',221, '2 links'],['LOMA LINDA LOFAT BIG FRANKS,CND,UNPREP',154, '1 link'],['LOMA LINDA TENDER ROUNDS W/ GRAVY,CND,UNPREP',145, '6 pieces'],['LOMA LINDA SWISS STAKE W/ GRAVY,CND,UNPREP',138, '1 piece'],['LOMA LINDA VEGE-BURGER,CND,UNPREP',114, '.25 cup'],['LOMA LINDA REDI-BURGER,CND,UNPREP',146, '1 slice, , 5/8'],['LOMA LINDA TENDER BITS,CND,UNPREP',135, '6 pieces'],['LOMA LINDA LINKETTS,CND,UNPREP',209, '1 link'],['WORTHINGTON CHILI,CND,UNPREP',126, '1 cup'],['WORTHINGTON CHOPLETS,CND,UNPREP',103, '2 slices'],['WORTHINGTON DICED CHIK,CND,UNPREP',80, '.25 cup'],['WORTHINGTON FRICHIK ORIGINAL,CND,UNPREP',160, '2 pieces'],['WORTHINGTON LOFAT FRI CHIK,CND,UNPREP',102, '2 pieces'],['WORTHINGTON LOFAT VEJA-LINKS,CND,UNPREP',123, '1 link'],['WORTHINGTON MULTIGRAIN CUTLETS,CND,UNPREP',117, '2 slices'],['WORTHINGTON PRIME STAKES,CND,UNPREP',135, '1 piece'],['WORTHINGTON SAUCETTES,CND,UNPREP',219, '1 link'],['WORTHINGTON SUPER LINKS,CND,UNPREP',219, '1 link'],['WORTHINGTON VEG SKALLOPS,CND,UNPREP',109, '.5 cup'],['WORTHINGTON VEG STEAKS,CND,UNPREP',113, '2 slices'],['WORTHINGTON VEGETARIAN BURGER,CND,UNPREP',124, '.25 cup'],['WORTHINGTON VEJA-LINKS,CND,UNPREP',155, '1 link'],['WORTHINGTON CHIC-KETTS,FRZ,UNPREP',200, '2 slices, (3/8 thick)'],['WORTHINGTON MEATLESS CHICK ROLL,FRZ,UNPREP',154, '1 slices, , 3/8'],['WORTHINGTON MEATLESS CORNED BF ROLL,FRZ,UNPREP',245, '2 slices, , 3/8'],['WORTHINGTON DINNER RST,FRZ,UNPREP',213, '1 slice, , 3/4'],['WORTHINGTON FRIPATS,FRZ,UNPREP',209, '1 patty'],['WORTHINGTON PROSAGE LINKS,FRZ,UNPREP',143, '2 links'],['WORTHINGTON PROSAGE ROLL,FRZ,UNPREP',261, '1 slice, , 5/8'],['WORTHINGTON SMOKED TURKEY ROLL,FRZ,UNPREP',251, '1 slice, , 3/8'],['WORTHINGTON STAKELETS,FRZ,UNPREP',211, '1 piece'],['WORTHINGTON STRIPPLES,FRZ,UNPREP',346, '2 strip'],['WORTHINGTON WHAM (ROLL),FRZ,UNPREP',196, '1 slice, , 3/8'],['MORNINGSTAR FARMS BRKFST PATTIE W/ ORGANIC SOY,FRZ,UNPREP',220, '1 Patty'],['MORNINGSTAR FARMS BRKFST BACON STRIPS,FRZ,UNPREP',346, '2 Strips'],['MORNINGSTAR FARMS BRKFST SAUSAGE LINKS,FRZ,UNPREP',159, '2 Links'],['MORNINGSTAR FARMS GRILLERS ORIGINAL,FRZ,UNPREP',213, '1 Burger'],['MORNINGSTAR FARMS GRILLERS PRIME,FRZ,UNPREP',238, '1 Burger'],['MORNINGSTAR FARMS ASIAN VEGGIE PATTIES,FRZ,UNPREP',159, '1 Burger'],['MORNINGSTAR FARMS MUSHROOM LOVERS BURGER,FRZ,UNPREP',168, '1 Burger'],['MORNINGSTAR FARMS TOMATO & BASIL PIZZA BURGER,FRZ,UNPREP',181, '1 Burger'],['MORNINGSTAR FARMS BUFFALO WINGS,FRZ,UNPREP',246, '5 Wings'],['MORNINGSTAR FARMS CHIKN NUGGETS,FRZ,UNPREP',235, '4 nuggets'],['MORNINGSTAR FARMS CHIK PATTIES,FRZ,UNPREP',197, '1 patty'],['MORNINGSTAR FARMS ITALIAN HERB CHIKN PATTIE,FRZ,UNPREP',242, '1 Patty'],['MORNINGSTAR FARMS CORN DOG,FRZ,UNPREP',220, '1 Corn Dog'],['MORNINGSTAR FARMS CORN DOG MINI,FRZ,UNPREP',226, '4 Pieces'],['MORNINGSTAR FARMS SAUSAGE STYLE RECIPE CRUMBLES,FRZ,UNPREP',162, '.66 Cup'],['GARDENBURGER BLACK BEAN CHIPOTLE BURGER,FRZ,UNPREP',149, '1 Patty'],['GARDENBURGER ORIGINAL,FRZ,UNPREP',159, '1 Patty'],['GARDENBURGER FLAME GRILLED BURGER,FRZ,UNPREP',128, '1 Pattie'],['GARDENBURGER SAVORY PORTABELLA VEGGIE BURGER,FRZ,UNPREP',142, '1 Patty'],['GARDENBURGER SUN-DRIED TOMATO BASIL BURGER,FRZ,UNPREP',149, '1 pattie'],['GARDENBURGER VEGGIE MEDLEY BURGER,FRZ,UNPREP',145, '1 Patty'],['MORNINGSTAR FARMS BRKFST SAUSAGE PATTIES MAPLE FLAV,FRZ,UNPR',224, '1 Patty'],['MORNINGSTAR FARMS CHIKN GRILL VEGGIE PATTIES,FRZ,UNPREP',118, '1 patty'],['MORNINGSTAR FARMS VEGGIE ITALIAN STYLE SAUSAGE,FRZ,UNPREP',187, '1 link'],['MORNINGSTAR FARMS BBQ RIBLETS,FRZ,UNPREP',165, '1 Riblet with Sauce'],['WORTHINGTON LEANIES,FRZ,UNPREP',251, '1 link'],['MORNINGSTAR FARMS CALIFORNIA TURKY BURGER,FRZ,UNPREP',155, '1 Burger'],['MORNINGSTAR FARMS HOT & SPICY VEGGIE SAUSGE PATTIES,FRZ,UNP',188, ''],['MORNINGSTAR FARMS LASAGNA W/ VEGGIE SAUSAGE,FRZ,UNPREP',107, '1 EntrΘe'],['MORNINGSTAR FARMS VEGGIE SWT & SOUR CHIKN,FRZ,UNPREP',119, '1 entrΘe'],['MORNINGSTAR FARMS GRILLERS QTR POUND VEGGIE BURGER,FRZ,U',221, '1 Burger'],['MORNINGSTAR FARMS ENTREE CHILI,FRZ,UNPREP',79, '1 Cup'],['MORNINGSTAR FARMS BACON,EGG & CHS BISCUIT,FRZ,UNPREP',261, '1 Biscuit'],['MORNINGSTAR FARMS SESAME CHIKN ENTREE,FRZ,UNPREP',116, '1 package'],['MORNINGSTAR FARMS GRILLERS CHIKN VEGGIE PATTIES,FRZ,UNPREP',135, '1 Patty'],['MORNINGSTAR FARMS MEAL STARTERS VEGGIE MEATBALLS,FRZ,UNPREP',163, '5 Meatballs'],['MORNINGSTAR FARMS BRKFST BSCT SAUSAGE,EGG & CHS,FRZ,UNPRE',260, '1 Biscuit'],['MORNINGSTAR FARMS ENTREE CHIKN ENCHILADA W/ RICE,FRZ,UNPREP',102, '1 package'],['MORNINGSTAR FARMS MEDITERRANEAN CHICKPEA,FRZ,UNPREP',200, '1 Burger'],['MORNINGSTAR FARMS BUFFALO CHIK PATTIES,FRZ,UNPREP',264, '1 Patty'],['MORNINGSTAR FARMS CHIK PATTIES ORIGINAL,FRZ,UNPREP',202, '1 Burger'],['MORNINGSTAR FARMS BRKFST PATTIE,FRZ,UNPREP',205, '1 patty'],['MORNINGSTAR FARMS RSTD GARLIC & QUINOA BURGER,FRZ,UNPREP',223, '1 Burger'],['MORNINGSTAR FARMS PARMESAN GARLIC WINGS,FRZ,UNPREP',231, '5 Wings'],['VEAL,AUSTRALIAN,RIB,RIB RST,LN,RAW',134, '3 oz'],['LAMB,DOM,COMP OF RTL CUTS,LN&FAT,1/4FAT,CHOIC,RAW',267, '1 oz'],['LAMB,DOM,COMP OF RTL CUTS,LN&FAT,1/4FAT,CHOIC,CKD',294, '3 oz'],['LAMB,DOM,COMP OF RTL CUTS,LN,1/4FAT,CHOIC,RAW',134, '1 oz'],['LAMB,DOM,COMP OF RTL CUTS,LN,1/4FAT,CHOIC,CKD',206, '3 oz'],['LAMB,DOM,COMP OF RTL CUTS,FAT,1/4FAT,CHOIC,RAW',665, '1 oz'],['LAMB,DOM,COMP OF RTL CUTS,FAT,1/4FAT,CHOIC,CKD',586, '3 oz'],['LAMB,DOM,FORESHANK,LN&FAT,1/4FAT,CHOIC,RAW',201, '1 oz'],['LAMB,DOM,FORESHANK,LN&FAT,1/4FAT,CHOIC,CKD,BRSD',243, '1 piece, cooked, excluding refuse (yield from 1 lb raw meat with refuse)'],['LAMB,DOM,FORESHANK,LN,1/4FAT,CHOIC,RAW',120, '1 oz'],['LAMB,DOM,FORESHANK,LN,1/4FAT,CHOIC,CKD,BRSD',187, '1 piece, cooked, excluding refuse (yield from 1 lb raw meat with refuse)'],['LAMB,DOM,LEG,WHL (SHK&SIRL),LN&FAT,1/4FAT,CHOIC,RAW',230, '1 oz'],['LAMB,DOM,LEG,WHL (SHK&SIRL),LN&FAT,1/4FAT,CHOIC,CKD,RSTD',258, '3 oz'],['LAMB,DOM,LEG,WHL (SHK&SIRL),LN,1/4FAT,CHOIC,RAW',128, '1 oz'],['LAMB,DOM,LEG,WHL (SHK&SIRL),LN,1/4FAT,CHOIC,CKD,RSTD',191, '3 oz'],['LAMB,DOM,LEG,SHANK HALF,LN&FAT,1/4FAT,CHOIC,RAW',201, '1 oz'],['LAMB,DOM,LEG,SHANK HALF,LN&FAT,1/4FAT,CHOIC,CKD,RSTD',225, '3 oz'],['LAMB,DOM,LEG,SHANK HALF,LN,1/4FAT,CHOIC,RAW',125, '1 oz'],['LAMB,DOM,LEG,SHANK HALF,LN,1/4FAT,CHOIC,CKD,RSTD',180, '3 oz'],['LAMB,DOM,LEG,SIRLOIN HALF,LN&FAT,1/4FAT,CHOIC,RAW',272, '1 oz'],['LAMB,DOM,LEG,SIRLOIN HALF,LN&FAT,1/4FAT,CHOIC,CKD,RSTD',292, '3 oz'],['LAMB,DOM,LEG,SIRLOIN HALF,LN,1/4FAT,CHOIC,RAW',134, '1 oz'],['LAMB,DOM,LEG,SIRLOIN HALF,LN,1/4FAT,CHOIC,CKD,RSTD',204, '3 oz'],['LAMB,DOM,LOIN,LN&FAT,1/4FAT,CHOIC,RAW',310, '1 oz'],['LAMB,DOM,LOIN,LN&FAT,1/4FAT,CHOIC,CKD,BRLD',316, '3 oz'],['LAMB,DOM,LOIN,LN&FAT,1/4FAT,CHOIC,CKD,RSTD',309, '3 oz'],['LAMB,DOM,LOIN,LN,1/4FAT,CHOIC,RAW',143, '1 oz'],['LAMB,DOM,LOIN,LN,1/4FAT,CHOIC,CKD,BRLD',216, '3 oz'],['LAMB,DOM,LOIN,LN,1/4FAT,CHOIC,CKD,RSTD',202, '3 oz'],['LAMB,DOM,RIB,LN&FAT,1/4FAT,CHOIC,RAW',372, '1 oz'],['LAMB,DOM,RIB,LN&FAT,1/4FAT,CHOIC,CKD,BRLD',361, '3 oz'],['LAMB,DOM,RIB,LN&FAT,1/4FAT,CHOIC,CKD,RSTD',359, '3 oz'],['LAMB,DOM,RIB,LN,1/4FAT,CHOIC,RAW',169, '1 oz'],['LAMB,DOM,RIB,LN,1/4FAT,CHOIC,CKD,BRLD',235, '1 piece, cooked, excluding refuse (yield from 1 lb raw meat with refuse)'],['LAMB,DOM,RIB,LN,1/4FAT,CHOIC,CKD,RSTD',232, '3 oz'],['LAMB,DOM,SHLDR,WHL (ARM&BLD),LN&FAT,1/4FAT,CHOIC,RAW',264, '1 oz'],['LAMB,DOM,SHLDR,WHL (ARM&BLD),LN&FAT,1/4FAT,CHOIC,CKD,BRSD',344, '3 oz'],['LAMB,DOM,SHLDR,WHL (ARM&BLD),LN&FAT,1/4FAT,CHOIC,CKD,BRLD',278, '3 oz'],['LAMB,DOM,SHLDR,WHL (ARM&BLD),LN&FAT,1/4FAT,CHOIC,CKD,RSTD',276, '3 oz'],['LAMB,DOM,SHLDR,WHL (ARM&BLD),LN,1/4FAT,CHOIC,RAW',144, '1 oz'],['LAMB,DOM,SHLDR,WHL (ARM&BLD),LN,1/4FAT,CHOIC,CKD,BRSD',283, '3 oz'],['LAMB,DOM,SHLDR,WHL (ARM&BLD),LN,1/4FAT,CHOIC,CKD,BRLD',210, '3 oz'],['LAMB,DOM,SHLDR,WHL (ARM&BLD),LN,1/4FAT,CHOIC,CKD,RSTD',204, '3 oz'],['LAMB,DOM,SHLDR,ARM,LN&FAT,1/4FAT,CHOIC,RAW',260, '1 oz'],['LAMB,DOM,SHLDR,ARM,LN&FAT,1/4FAT,CHOIC,CKD,BRSD',346, '3 oz'],['LAMB,DOM,SHLDR,ARM,LN&FAT,1/4FAT,CHOIC,CKD,BRLD',281, '3 oz'],['LAMB,DOM,SHLDR,ARM,LN&FAT,1/4FAT,CHOIC,CKD,RSTD',279, '3 oz'],['LAMB,DOM,SHLDR,ARM,LN,1/4FAT,CHOIC,RAW',132, '1 oz'],['LAMB,DOM,SHLDR,ARM,LN,1/4FAT,CHOIC,CKD,BRSD',279, '3 oz'],['LAMB,DOM,SHLDR,ARM,LN,1/4FAT,CHOIC,CKD,BRLD',200, '3 oz'],['LAMB,DOM,SHLDR,ARM,LN,1/4FAT,CHOIC,CKD,RSTD',192, '3 oz'],['LAMB,DOM,SHLDR,BLADE,LN&FAT,1/4FAT,CHOIC,RAW',259, '1 oz'],['LAMB,DOM,SHLDR,BLADE,LN&FAT,1/4FAT,CHOIC,CKD,BRSD',345, '3 oz'],['LAMB,DOM,SHLDR,BLADE,LN&FAT,1/4FAT,CHOIC,CKD,BRLD',278, '3 oz'],['LAMB,DOM,SHLDR,BLADE,LN&FAT,1/4FAT,CHOIC,CKD,RSTD',281, '3 oz'],['LAMB,DOM,SHLDR,BLADE,LN,1/4FAT,CHOIC,RAW',151, '1 oz'],['LAMB,DOM,SHLDR,BLADE,LN,1/4FAT,CHOIC,CKD,BRSD',288, '3 oz'],['LAMB,DOM,SHLDR,BLADE,LN,1/4FAT,CHOIC,CKD,BRLD',211, '3 oz'],['LAMB,DOM,SHLDR,BLADE,LN,1/4FAT,CHOIC,CKD,RSTD',209, '3 oz'],['LAMB,DOM,CUBED FOR STEW OR KABOB (LEG&SHLDR),LN,1/4FAT,RAW',134, '1 oz'],['LAMB,DOM,CUBED FOR STEW (LEG&SHLDR),LN,1/4FAT,CKD,BRSD',223, '3 oz'],['LAMB,DOM,CUBED FOR STEW (LEG&SHLDR),LN,1/4FAT,CKD,BRLD',186, '3 oz'],['LAMB,NZ,IMP,FRZ,COMP OF RTL CUTS,LN&FAT,RAW',277, '1 oz'],['LAMB,NZ,IMP,FRZ,COMP OF RTL CUTS,LN&FAT,CKD',305, '3 oz'],['LAMB,NZ,IMP,FRZ,COMP OF RTL CUTS,LN,RAW',128, '1 oz'],['LAMB,NZ,IMP,FRZ,COMP OF RTL CUTS,LN,CKD',206, '3 oz'],['LAMB,NZ,IMP,FRZ,COMP OF RTL CUTS,FAT,RAW',640, '1 oz'],['LAMB,NZ,IMP,FRZ,COMP OF RTL CUTS,FAT,CKD',586, '3 oz'],['LAMB,NZ,IMP,FORE-SHANK,LN & FAT,RAW',183, '1 serving'],['LAMB,NZ,IMP,FORE-SHANK,LN & FAT,CKD,BRSD',256, '1 serving'],['LAMB,NZ,IMP,FORE-SHANK,LN,RAW',122, '1 serving'],['LAMB,NZ,IMP,FORE-SHANK,LN,CKD,BRSD',209, '1 serving'],['LAMB,NZ,IMP,LEG CHOP/STEAK,BONE-IN,LN & FAT,RAW',206, '1 serving'],['LAMB,NZ,IMP,FRZ,LEG,WHL (SHK&SIRL),LN&FAT,CKD,RSTD',246, '3 oz'],['LAMB,NZ,IMP,LEG CHOP/STEAK,BONE-IN,LN,RAW',126, '1 serving'],['LAMB,NZ,IMP,FRZ,LEG,WHL (SHK&SIRL),LN,CKD,RSTD',181, '3 oz'],['LAMB,NZ,IMP,LOIN CHOP,LN & FAT,RAW',298, '1 serving'],['LAMB,NZ,IMP,FRZ,LOIN,LN&FAT,CKD,BRLD',315, '3 oz'],['LAMB,NZ,IMP,LOIN CHOP,LN,RAW',142, '1 serving'],['LAMB,NZ,IMP,FRZ,LOIN,LN,CKD,BRLD',199, '3 oz'],['LAMB,NZ,IMP,RACK - PARTLY FRENCHED,LN & FAT,RAW',240, '1 serving'],['LAMB,NZ,IMP,RACK - PARTLY FRENCHED,LN & FAT,CKD,FAST RSTD',253, '1 serving'],['LAMB,NZ,IMP,RACK - PARTLY FRENCHED,LN,RAW',160, '1 serving'],['LAMB,NZ,IMP,RACK - PARTLY FRENCHED,LN,CKD,FAST RSTD',193, '1 serving'],['LAMB,NZ,IMP,SQUARE-CUT SHLDR,LN & FAT,RAW',272, '1 serving'],['LAMB,NZ,IMP,FRZ,SHLDR,WHL (ARM&BLD),LN&FAT,CKD,BRSD',357, '3 oz'],['LAMB,NZ,IMP,SQUARE-CUT SHLDR,LN,RAW',154, '1 serving'],['LAMB,NZ,IMP,FRZ,SHLDR,WHL (ARM&BLD),LN,CKD,BRSD',285, '3 oz'],['VEAL,COMP OF RTL CUTS,LN&FAT,RAW',144, '1 oz'],['VEAL,COMP OF RTL CUTS,LN&FAT,CKD',231, '3 oz'],['VEAL,COMP OF RTL CUTS,LN,RAW',112, '1 oz'],['VEAL,COMP OF RTL CUTS,LN,CKD',196, '3 oz'],['VEAL,COMP OF RTL CUTS,FAT,RAW',638, '1 oz'],['VEAL,COMP OF RTL CUTS,FAT,CKD',642, '3 oz'],['VEAL,LEG (TOP RND),LN&FAT,RAW',117, '1 oz'],['VEAL,LEG (TOP RND),LN&FAT,CKD,BRSD',211, '3 oz'],['VEAL,LEG (TOP RND),LN&FAT,CKD,PAN-FRIED,BREADED',238, '3 oz'],['VEAL,LEG (TOP RND),LN&FAT,CKD,PAN-FRIED,NOT BREADED',211, '3 oz'],['VEAL,LEG (TOP RND),LN&FAT,CKD,RSTD',160, '3 oz'],['VEAL,LEG (TOP RND),LN,RAW',107, '1 oz'],['VEAL,LEG (TOP RND),LN,CKD,BRSD',203, '3 oz'],['VEAL,LEG (TOP RND),LN,CKD,PAN-FRIED,BREADED',216, '3 oz'],['VEAL,LEG (TOP RND),LN,CKD,PAN-FRIED,NOT BREADED',183, '3 oz'],['VEAL,LEG (TOP RND),LN,CKD,RSTD',150, '3 oz'],['VEAL,LOIN,LN&FAT,RAW',177, '3 oz'],['VEAL,LOIN,LN&FAT,CKD,BRSD',284, '3 oz'],['VEAL,LOIN,LN&FAT,CKD,RSTD',217, '3 oz'],['VEAL,LOIN,LN,RAW',114, '3 oz'],['VEAL,LOIN,LN,CKD,BRSD',226, '3 oz'],['VEAL,LOIN,LN,CKD,RSTD',175, '3 oz'],['VEAL,RIB,LN&FAT,RAW',162, '1 oz'],['VEAL,RIB,LN&FAT,CKD,BRSD',251, '3 oz'],['VEAL,RIB,LN&FAT,CKD,RSTD',228, '3 oz'],['VEAL,RIB,LN,RAW',120, '1 oz'],['VEAL,RIB,LN,CKD,BRSD',218, '3 oz'],['VEAL,RIB,LN,CKD,RSTD',177, '3 oz'],['VEAL,SHLDR,WHL (ARM&BLD),LN&FAT,RAW',130, '1 oz'],['VEAL,SHLDR,WHL (ARM&BLD),LN&FAT,CKD,BRSD',228, '3 oz'],['VEAL,SHLDR,WHL (ARM&BLD),LN&FAT,CKD,RSTD',184, '3 oz'],['VEAL,SHLDR,WHL (ARM&BLD),LN,RAW',112, '1 oz'],['VEAL,SHLDR,WHL (ARM&BLD),LN,CKD,BRSD',199, '3 oz'],['VEAL,SHLDR,WHL (ARM&BLD),LN,CKD,RSTD',170, '3 oz'],['VEAL,SHLDR,ARM,LN&FAT,RAW',132, '1 oz'],['VEAL,SHLDR,ARM,LN&FAT,CKD,BRSD',236, '3 oz'],['VEAL,SHLDR,ARM,LN&FAT,CKD,RSTD',183, '3 oz'],['VEAL,SHLDR,ARM,LN,RAW',105, '1 oz'],['VEAL,SHLDR,ARM,LN,CKD,BRSD',201, '3 oz'],['VEAL,SHLDR,ARM,LN,CKD,RSTD',164, '3 oz'],['VEAL,SHLDR,BLADE CHOP,LN & FAT,RAW',148, '3 oz'],['VEAL,SHLDR,BLADE,LN&FAT,CKD,BRSD',225, '3 oz'],['VEAL,SHLDR,BLADE,LN&FAT,CKD,RSTD',186, '3 oz'],['VEAL,SHLDR,BLADE CHOP,LN,RAW',110, '3 oz'],['VEAL,SHLDR,BLADE,LN,CKD,BRSD',198, '3 oz'],['VEAL,SHLDR,BLADE,LN,CKD,RSTD',171, '3 oz'],['VEAL,SIRLOIN,LN&FAT,RAW',152, '1 oz'],['VEAL,SIRLOIN,LN&FAT,CKD,BRSD',252, '3 oz'],['VEAL,SIRLOIN,LN&FAT,CKD,RSTD',202, '3 oz'],['VEAL,SIRLOIN,LN,RAW',110, '1 oz'],['VEAL,SIRLOIN,LN,CKD,BRSD',204, '3 oz'],['VEAL,SIRLOIN,LN,CKD,RSTD',168, '3 oz'],['VEAL,CUBED FOR STEW (LEG&SHLDR),LN,RAW',109, '1 oz'],['VEAL,CUBED FOR STEW (LEG&SHLDR),LN,CKD,BRSD',188, '3 oz'],['VEAL,GROUND,RAW',197, '3 oz'],['VEAL,GROUND,CKD,BRLD',172, '3 oz'],['GAME MEAT,ANTELOPE,RAW',114, '1 oz'],['GAME MEAT,ANTELOPE,CKD,RSTD',150, '3 oz'],['GAME MEAT,BEAR,RAW',161, '1 oz'],['GAME MEAT,BEAR,CKD,SIMMRD',259, '3 oz'],['BISON,GROUND,GRASS-FED,CKD',179, '3 oz'],['BISON,GROUND,GRASS-FED,RAW',146, '1 patty, (cooked from 4 oz raw)'],['GAME MEAT,BEAVER,RAW',146, '1 oz'],['GAME MEAT,BEAVER,CKD,RSTD',212, '3 oz'],['GAME MEAT,BEEFALO,COMP OF CUTS,RAW',143, '1 oz'],['GAME MEAT,BEEFALO,COMP OF CUTS,CKD,RSTD',188, '3 oz'],['VEAL,AUSTRALIAN,FAT,RAW',509, '1 oz'],['VEAL,AUSTRALIAN,RIB,RIB RST,LN & FAT,RAW',201, '3 oz'],['GAME MEAT,BISON,LN,RAW',109, '1 oz'],['GAME MEAT,BISON,LN,CKD,RSTD',143, '3 oz'],['GAME MEAT,BOAR,WILD,RAW',122, '1 oz'],['GAME MEAT,BOAR,WILD,CKD,RSTD',160, '3 oz'],['GAME MEAT,BUFFALO,H2O,RAW',99, '1 oz'],['GAME MEAT,BUFFALO,H2O,CKD,RSTD',131, '3 oz'],['GAME MEAT,CARIBOU,RAW',127, '1 oz'],['GAME MEAT,CARIBOU,CKD,RSTD',167, '3 oz'],['GAME MEAT,DEER,RAW',120, '1 oz'],['GAME MEAT,DEER,CKD,RSTD',158, '3 oz'],['GAME MEAT,ELK,RAW',111, '1 oz'],['GAME MEAT,ELK,CKD,RSTD',146, '3 oz'],['GOAT,RAW',109, '1 oz'],['GAME MEAT,GOAT,CKD,RSTD',143, '3 oz'],['GAME MEAT,HORSE,RAW',133, '1 oz'],['GAME MEAT,HORSE,CKD,RSTD',175, '3 oz'],['GAME MEAT,MOOSE,RAW',102, '1 oz'],['GAME MEAT,MOOSE,CKD,RSTD',134, '3 oz'],['GAME MEAT,MUSKRAT,RAW',162, '1 oz'],['GAME MEAT,MUSKRAT,CKD,RSTD',234, '3 oz'],['GAME MEAT,OPOSSUM,CKD,RSTD',221, '3 oz'],['GAME MEAT,RABBIT,DOMESTICATED,COMP OF CUTS,RAW',136, '1 oz'],['GAME MEAT,RABBIT,DOMESTICATED,COMP OF CUTS,CKD,RSTD',197, '3 oz'],['GAME MEAT,RABBIT,DOMESTICATED,COMP OF CUTS,CKD,STWD',206, '3 oz'],['GAME MEAT,RABBIT,WILD,RAW',114, '1 oz'],['GAME MEAT,RABBIT,WILD,CKD,STWD',173, '3 oz'],['GAME MEAT,RACCOON,CKD,RSTD',255, '3 oz'],['GAME MEAT,SQUIRREL,RAW',120, '1 oz'],['GAME MEAT,SQUIRREL,CKD,RSTD',173, '3 oz'],['LAMB,VAR MEATS&BY-PRODUCTS,BRAIN,RAW',122, '1 oz'],['LAMB,VAR MEATS&BY-PRODUCTS,BRAIN,CKD,BRSD',145, '3 oz'],['LAMB,VAR MEATS&BY-PRODUCTS,BRAIN,CKD,PAN-FRIED',273, '3 oz'],['VEAL,VAR MEATS&BY-PRODUCTS,BRAIN,RAW',118, '1 oz'],['VEAL,VAR MEATS&BY-PRODUCTS,BRAIN,CKD,BRSD',136, '3 oz'],['VEAL,VAR MEATS&BY-PRODUCTS,BRAIN,CKD,PAN-FRIED',213, '3 oz'],['LAMB,VAR MEATS&BY-PRODUCTS,HEART,RAW',122, '1 oz'],['LAMB,VAR MEATS&BY-PRODUCTS,HEART,CKD,BRSD',185, '3 oz'],['VEAL,VAR MEATS&BY-PRODUCTS,HEART,RAW',110, '1 oz'],['VEAL,VAR MEATS&BY-PRODUCTS,HEART,CKD,BRSD',186, '3 oz'],['LAMB,VAR MEATS&BY-PRODUCTS,KIDNEYS,RAW',97, '1 oz'],['LAMB,VAR MEATS&BY-PRODUCTS,KIDNEYS,CKD,BRSD',137, '3 oz'],['VEAL,VAR MEATS&BY-PRODUCTS,KIDNEYS,RAW',99, '1 oz'],['VEAL,VAR MEATS&BY-PRODUCTS,KIDNEYS,CKD,BRSD',163, '3 oz'],['LAMB,VAR MEATS&BY-PRODUCTS,LIVER,RAW',139, '1 oz'],['LAMB,VAR MEATS&BY-PRODUCTS,LIVER,CKD,BRSD',220, '3 oz'],['LAMB,VAR MEATS&BY-PRODUCTS,LIVER,CKD,PAN-FRIED',238, '3 oz'],['VEAL,VAR MEATS&BY-PRODUCTS,LIVER,RAW',140, '1 oz'],['VEAL,VAR MEATS&BY-PRODUCTS,LIVER,CKD,BRSD',192, '1 slice'],['VEAL,VAR MEATS&BY-PRODUCTS,LIVER,CKD,PAN-FRIED',193, '1 slice'],['LAMB,VAR MEATS&BY-PRODUCTS,LUNGS,RAW',95, '1 oz'],['LAMB,VAR MEATS&BY-PRODUCTS,LUNGS,CKD,BRSD',113, '3 oz'],['VEAL,VAR MEATS&BY-PRODUCTS,LUNGS,RAW',90, '1 oz'],['VEAL,VAR MEATS&BY-PRODUCTS,LUNGS,CKD,BRSD',104, '3 oz'],['LAMB,VAR MEATS&BY-PRODUCTS,MECHANICALLY SEPARATED,RAW',276, '1 oz'],['LAMB,VAR MEATS&BY-PRODUCTS,PANCREAS,RAW',152, '1 oz'],['LAMB,VAR MEATS&BY-PRODUCTS,PANCREAS,CKD,BRSD',234, '3 oz'],['VEAL,VAR MEATS&BY-PRODUCTS,PANCREAS,RAW',182, '1 oz'],['VEAL,VAR MEATS&BY-PRODUCTS,PANCREAS,CKD,BRSD',256, '3 oz'],['LAMB,VAR MEATS&BY-PRODUCTS,SPLEEN,RAW',101, '1 oz'],['LAMB,VAR MEATS&BY-PRODUCTS,SPLEEN,CKD,BRSD',156, '3 oz'],['VEAL,VAR MEATS&BY-PRODUCTS,SPLEEN,RAW',98, '1 oz'],['VEAL,VAR MEATS&BY-PRODUCTS,SPLEEN,CKD,BRSD',129, '3 oz'],['VEAL,VAR MEATS&BY-PRODUCTS,THYMUS,RAW',101, '1 oz'],['VEAL,VAR MEATS&BY-PRODUCTS,THYMUS,CKD,BRSD',125, '3 oz'],['LAMB,VAR MEATS&BY-PRODUCTS,TONGUE,RAW',222, '1 oz'],['LAMB,VAR MEATS&BY-PRODUCTS,TONGUE,CKD,BRSD',275, '3 oz'],['VEAL,VAR MEATS&BY-PRODUCTS,TONGUE,RAW',131, '1 oz'],['VEAL,VAR MEATS&BY-PRODUCTS,TONGUE,CKD,BRSD',202, '3 oz'],['LAMB,GROUND,RAW',282, '1 oz'],['LAMB,GROUND,CKD,BRLD',283, '3 oz'],['LAMB,DOM,COMP OF RTL CUTS,LN&FAT,1/8FAT,CHOIC,RAW',243, '1 oz'],['LAMB,DOM,COMP OF RTL CUTS,LN&FAT,1/8FAT,CHOIC,CKD',271, '3 oz'],['LAMB,DOM,FORESHANK,LN&FAT,1/8FAT,CHOIC,RAW',201, '1 oz'],['LAMB,DOM,FORESHANK,LN&FAT,1/8FAT,CKD,BRSD',243, '1 piece, cooked, excluding refuse (yield from 1 lb raw meat with refuse)'],['LAMB,DOM,LEG,WHL (SHK&SIRL),LN&FAT,1/8FAT,CHOIC,RAW',209, '1 oz'],['LAMB,DOM,LEG,WHL (SHK&SIRL),LN&FAT,1/8FAT,CHOIC,CKD,RSTD',242, '3 oz'],['LAMB,DOM,LEG,SHANK HALF,LN&FAT,1/8FAT,CHOIC,RAW',185, '1 oz'],['LAMB,DOM,LEG,SHANK HALF,LN&FAT,1/8FAT,CHOIC,CKD,RSTD',217, '3 oz'],['LAMB,DOM,LEG,SIRLOIN HALF,LN&FAT,1/8FAT,CHOIC,RAW',261, '1 oz'],['LAMB,DOM,LEG,SIRLOIN HALF,LN&FAT,1/8FAT,CHOIC,CKD,RSTD',284, '3 oz'],['LAMB,DOM,LOIN,LN&FAT,1/8FAT,CHOIC,RAW',279, '1 oz'],['LAMB,DOM,LOIN,LN&FAT,1/8FAT,CHOIC,CKD,BRLD',297, '3 oz'],['LAMB,DOM,LOIN,LN&FAT,1/8FAT,CHOIC,CKD,RSTD',290, '3 oz'],['LAMB,DOM,RIB,LN&FAT,1/8FAT,CHOIC,RAW',342, '1 oz'],['LAMB,DOM,RIB,LN&FAT,1/8FAT,CHOIC,CKD,BRLD',340, '3 oz'],['LAMB,DOM,RIB,LN&FAT,1/8FAT,CHOIC,CKD,RSTD',341, '3 oz'],['LAMB,DOM,SHLDR,WHL (ARM&BLD),LN&FAT,1/8FAT,CHOIC,RAW',244, '1 oz'],['LAMB,DOM,SHLDR,WHL (ARM&BLD),LN&FAT,1/8FAT,CHOIC,CKD,BRSD',338, '3 oz'],['LAMB,DOM,SHLDR,WHL (ARM&BLD),LN&FAT,1/8FAT,CHOIC,CKD,BRLD',268, '3 oz'],['LAMB,DOM,SHLDR,WHL (ARM&BLD),LN&FAT,1/8FAT,CHOIC,CKD,RSTD',269, '3 oz'],['LAMB,DOM,SHLDR,ARM,LN&FAT,1/8FAT,CHOIC,RAW',244, '1 oz'],['LAMB,DOM,SHLDR,ARM,LN&FAT,1/8FAT,CHOIC,CKD,BRSD',337, '3 oz'],['LAMB,DOM,SHLDR,ARM,LN&FAT,1/8FAT,CKD,BRLD',269, '3 oz'],['LAMB,DOM,SHLDR,ARM,LN&FAT,1/8FAT,CHOIC,RSTD',267, '3 oz'],['LAMB,DOM,SHLDR,BLADE,LN&FAT,1/8FAT,CHOIC,RAW',244, '1 oz'],['LAMB,DOM,SHLDR,BLADE,LN&FAT,1/8FAT,CHOIC,CKD,BRSD',339, '3 oz'],['LAMB,DOM,SHLDR,BLADE,LN&FAT,1/8FAT,CHOIC,CKD,BRLD',267, '3 oz'],['LAMB,DOM,SHLDR,BLADE,LN&FAT,1/8FAT,CHOIC,CKD,RSTD',270, '3 oz'],['LAMB,NZ,IMP,FRZ,COMP OF RTL CUTS,LN&FAT,1/8FAT,RAW',232, '1 oz'],['LAMB,NZ,IMP,FRZ,COMP OF RTL CUTS,LN&FAT,1/8FAT,CKD',270, '3 oz'],['LAMB,NZ,IMP,FRZ,FORESHANK,LN&FAT,1/8FAT,RAW',223, '1 oz'],['LAMB,NZ,IMP,FRZ,FORESHANK,LN&FAT,1/8FAT,CKD,BRSD',258, '3 oz'],['LAMB,NZ,IMP,FRZ,LEG,WHL (SHK&SIRL),LN&FAT,1/8FAT,RAW',201, '1 oz'],['LAMB,NZ,IMP,FRZ,LEG,WHL (SHK&SIRL),LN&FAT,1/8FAT,CKD,RSTD',234, '3 oz'],['LAMB,NZ,IMP,FRZ,LOIN,LN&FAT,1/8FAT,RAW',273, '1 oz'],['LAMB,NZ,IMP,FRZ,LOIN,LN&FAT,1/8FAT,CKD,BRLD',296, '3 oz'],['LAMB,NZ,IMP,FRZ,RIB,LN&FAT,1/8FAT,RAW',311, '1 oz'],['LAMB,NZ,IMP,FRZ,RIB,LN&FAT,1/8FAT,CKD,RSTD',317, '3 oz'],['LAMB,NZ,IMP,FRZ,SHLDR,WHL (ARM&BLD),LN&FAT,1/8FAT,RAW',251, '1 oz'],['LAMB,NZ,IMP,FRZ,SHLDR,WHL (ARM&BLD),LN&FAT,1/8FAT,CKD,BRSD',342, '3 oz'],['GAME MEAT,BISON,TOP SIRLOIN,LN,0FAT,RAW',113, '1 oz'],['GAME MEAT,BISON,RIBEYE,LN,0FAT,RAW',116, '1 oz'],['GAME MEAT,BISON,SHLDR CLOD,LN,0FAT,RAW',109, '1 oz'],['VEAL,BREAST,FAT,CKD',521, '1 oz'],['VEAL,BREAST,WHL,BNLESS,LN&FAT,RAW',208, '1 oz'],['VEAL,BREAST,WHL,BNLESS,LN&FAT,CKD,BRSD',266, '3 oz'],['VEAL,BREAST,PLATE HALF,BNLESS,LN&FAT,CKD,BRSD',282, '3 oz'],['VEAL,BREAST,POINT HALF,BNLESS,LN&FAT,CKD,BRSD',248, '3 oz'],['VEAL,BREAST,WHL,BNLESS,LN,CKD,BRSD',218, '3 oz'],['VEAL,SHANK (FORE&HIND),LN&FAT,RAW',113, '1 oz'],['VEAL,SHANK (FORE&HIND),LN&FAT,CKD,BRSD',191, '3 oz'],['VEAL,SHANK (FORE&HIND),LN,RAW',108, '1 oz'],['VEAL,SHANK (FORE&HIND),LN,CKD,BRSD',177, '3 oz'],['LAMB,AUS,IMP,FRSH,COMP OF RTL CUTS,LN&FAT,1/8FAT,RAW',229, '1 oz'],['LAMB,AUS,IMP,FRSH,COMP OF RTL CUTS,LN&FAT,1/8FAT,CKD',256, '3 oz'],['LAMB,AUS,IMP,FRSH,COMP OF RTL CUTS,LN,1/8FAT,RAW',142, '1 oz'],['LAMB,AUS,IMP,FRSH,COMP OF RTL CUTS,LN,1/8FAT,CKD',201, '3 oz'],['LAMB,AUS,IMP,FRSH,FAT,RAW',648, '1 oz'],['LAMB,AUS,IMP,FRSH,FAT,CKD',639, '3 oz'],['LAMB,AUS,IMP,FRSH,FORESHANK,LN&FAT,1/8FAT,RAW',195, '1 oz'],['LAMB,AUS,IMP,FRSH,FORESHANK,LN&FAT,1/8FAT,CKD,BRSD',236, '3 oz'],['LAMB,AUS,IMP,FRSH,FORESHANK,LN,1/8FAT,RAW',123, '1 oz'],['LAMB,AUS,IMP,FRSH,FORESHANK,LN,1/8FAT,CKD,BRSD',165, '3 oz'],['LAMB,AUS,IMP,FRSH,LEG,WHL (SHK&SIRL),LN&FAT,1/8FAT,RAW',215, '1 oz'],['LAMB,AUS,IMP,FRSH,LEG,WHL (SHK&SIRL),LN&FAT,1/8FAT,CKD,RSTD',244, '3 oz'],['LAMB,AUS,IMP,FRSH,LEG,WHL (SHK&SIRL),LN,1/8FAT,RAW',135, '1 oz'],['LAMB,AUS,IMP,FRSH,LEG,WHL (SHK&SIRL),LN,1/8FAT,CKD,RSTD',190, '3 oz'],['LAMB,AUS,IMP,FRSH,LEG,SHANK HALF,LN&FAT,1/8FAT,RAW',201, '1 oz'],['LAMB,AUS,IMP,FRSH,LEG,SHANK HALF,LN&FAT,1/8FAT,CKD,RSTD',231, '3 oz'],['LAMB,AUS,IMP,FRSH,LEG,SHANK HALF,LN,1/8FAT,RAW',133, '1 oz'],['LAMB,AUS,IMP,FRSH,LEG,SHANK HALF,LN,1/8FAT,CKD,RSTD',182, '3 oz'],['LAMB,AUS,IMP,FRSH,LEG,SIRLOIN HALF,BNLESS,LN&FAT,1/8FAT,RAW',254, '1 oz'],['LAMB,AUS,IMP,FRSH,LEG,SIRL HLF,BNLESS,LN&FT,1/8FAT,CKD,RSTD',281, '3 oz'],['LAMB,AUS,IMP,FRSH,LEG,SIRLOIN HALF,BNLESS,LN,1/8FAT,RAW',138, '1 oz'],['LAMB,AUS,IMP,FRSH,LEG,SIRL HALF,BNLESS,LN,1/8FAT,CKD,RSTD',215, '3 oz'],['LAMB,AUS,IMP,FRSH,LEG,SIRL CHOPS,BNLESS,LN&FAT,1/8FAT,RAW',208, '1 oz'],['LAMB,AUS,IMP,FRSH,LEG,SIRL CHPS,BNLESS,LN&FT,1/8FT,CKD,BRLD',235, '3 oz'],['LAMB,AUS,IMP,FRSH,LEG,SIRLOIN CHOPS,BNLESS,LN,1/8FAT,RAW',132, '1 oz'],['LAMB,AUS,IMP,FRSH,LEG,SIRL CHOPS,BNLESS,LN,1/8FAT,CKD,BRLD',188, '3 oz'],['LAMB,AUS,IMP,FRSH,LEG,CNTR SLICE,BONE-IN,LN&FAT,1/8FAT,RAW',195, '1 oz'],['LAMB,AUS,IMP,FRSH,LEG,CNTR SLCE,BNE-IN,LN&FT,1/8FT,CKD,BRLD',215, '3 oz'],['LAMB,AUS,IMP,FRSH,LEG,CNTR SLICE,BONE-IN,LN,1/8FAT,RAW',143, '1 oz'],['LAMB,AUS,IMP,FRSH,LEG,CNTR SLICE,BONE-IN,LN,1/8FAT,CKD,BRLD',183, '3 oz'],['LAMB,AUS,IMP,FRSH,LOIN,LN&FAT,1/8FAT,RAW',203, '1 oz'],['LAMB,AUS,IMP,FRSH,LOIN,LN&FAT,1/8FAT,CKD,BRLD',219, '3 oz'],['LAMB,AUS,IMP,FRSH,LOIN,LN,1/8FAT,RAW',146, '1 oz'],['LAMB,AUS,IMP,FRSH,LOIN,LN,1/8FAT,CKD,BRLD',192, '3 oz'],['LAMB,AUS,IMP,FRSH,RIB,LN&FAT,1/8FAT,RAW',289, '1 oz'],['LAMB,AUS,IMP,FRSH,RIB,LN&FAT,1/8FAT,CKD,RSTD',277, '3 oz'],['LAMB,AUS,IMP,FRSH,RIB,LN,1/8FAT,RAW',160, '1 oz'],['LAMB,AUS,IMP,FRSH,RIB,LN,1/8FAT,CKD,RSTD',210, '3 oz'],['LAMB,AUS,IMP,FRSH,SHLDR,WHL (ARM&BLD),LN&FAT,1/8FAT,RAW',256, '1 oz'],['LAMB,AUS,IMP,FRSH,SHLDR,WHL (ARM&BLD),LN&FAT,1/8FAT,CKD',296, '3 oz'],['LAMB,AUS,IMP,FRSH,SHLDR,WHL (ARM&BLD),LN,1/8FAT,RAW',155, '1 oz'],['LAMB,AUS,IMP,FRSH,SHLDR,WHL (ARM&BLD),LN,1/8FAT,CKD',233, '3 oz'],['LAMB,AUS,IMP,FRSH,SHLDR,ARM,LN&FAT,1/8FAT,RAW',243, '1 oz'],['LAMB,AUS,IMP,FRSH,SHLDR,ARM,LN&FAT,1/8FAT,CKD,BRSD',311, '3 oz'],['LAMB,AUS,IMP,FRSH,SHLDR,ARM,LN,1/8FAT,RAW',137, '1 oz'],['LAMB,AUS,IMP,FRSH,SHLDR,ARM,LN,1/8FAT,CKD,BRSD',238, '3 oz'],['LAMB,AUS,IMP,FRSH,SHLDR,BLADE,LN&FAT,1/8FAT,RAW',262, '1 oz'],['LAMB,AUS,IMP,FRSH,SHLDR,BLADE,LN&FAT,1/8FAT,CKD,BRLD',291, '3 oz'],['LAMB,AUS,IMP,FRSH,SHLDR,BLADE,LN,1/8FAT,RAW',164, '1 oz'],['LAMB,AUS,IMP,FRSH,SHLDR,BLADE,LN,1/8FAT,CKD,BRLD',231, '3 oz'],['GAME MEAT BISON,GROUND,RAW',223, '1 serving, ( 3 oz )'],['GAME MEAT,BISON,GROUND,CKD,PAN-BROILED',238, '1 patty, ( yield from 112.7 g raw meat )'],['GAME MEAT BISON,TOP SIRLOIN,LN,1 STEAK,CKD,BRLD',171, '1 serving, ( 3 oz )'],['GAME MEAT,BISON,CHUCK,SHLDR CLOD,LN,3-5 LB RST,CKD,BRSD',193, '1 serving, ( 3 oz )'],['GAME MEAT,BISON,CHUCK,SHLDR CLOD,LN,3-5 LB RST,RAW',119, '1 serving, ( 3 oz )'],['GAME MEAT,BISON,RIBEYE,LN,1 STEAK,CKD,BRLD',177, '1 serving, ( 3 oz )'],['GAME MEAT,BISON,TOP RND,LN,1 STEAK,CKD,BRLD',174, '1 serving, ( 3 oz )'],['GAME MEAT,BISON,TOP RND,LN,1 STEAK,RAW',122, '1 serving, ( 3 oz )'],['GAME MEAT,ELK,GROUND,RAW',172, '1 patty, ( yield from 102.2 g raw meat )'],['GAME MEAT,ELK,GROUND,CKD,PAN-BROILED',193, '1 patty, ( yield from 104.1 g raw meat )'],['GAME MEAT,ELK,LOIN,LN,CKD,BRLD',167, '1 steak, ( yield from 148.1 g raw meat )'],['GAME MEAT,ELK,RND,LN,CKD,BRLD',156, '1 serving, ( 3 oz )'],['GAME MEAT,ELK,TENDERLOIN,LN,CKD,BRLD',162, '1 steak, ( yield from 123.5 g raw meat )'],['GAME MEAT,DEER,GROUND,RAW',157, '1 patty, (cooked from 4 oz raw)'],['GAME MEAT,DEER,GROUND,CKD,PAN-BROILED',187, '1 patty'],['GAME MEAT,DEER,LOIN,LN,1 STEAK,CKD,BRLD',150, '1 steak'],['GAME MEAT,DEER,SHLDR CLOD,LN,3-5 LB RST,CKD,BRSD',191, '1 serving, ( 3 oz )'],['GAME MEAT,DEER,TENDERLOIN,LN,0.5-1 LB RST,CKD,BRLD',149, '1 serving, ( 3 oz )'],['GAME MEAT,DEER,TOP RND,LN,1 STEAK,CKD,BRLD',152, '1 steak, ( yield from 134.9 g raw meat )'],['VEAL,AUSTRALIAN,SHANK,FORE,BONE-IN,LN,RAW',123, '3 oz'],['VEAL,AUSTRALIAN,SHANK,FORE,BONE-IN,LN & FAT,RAW',145, '3 oz'],['VEAL,AUSTRALIAN,SHANK,HIND,BONE-IN,LN,RAW',122, '3 oz'],['VEAL,AUSTRALIAN,SHANK,HIND,BONE-IN,LN & FAT',144, '3 oz'],['LAMB,AUSTRALIAN,GROUND,85% LN / 15% FAT,RAW',255, '1 serving, (4 oz)'],['LAMB,NZ,IMP,INTERMUSCULAR FAT,CKD',596, ''],['LAMB,NZ,IMP,INTERMUSCULAR FAT,RAW',640, ''],['LAMB,NZ,IMP,SUBCUTANEOUS FAT,RAW',703, ''],['LAMB,NZ,IMP,BRAINS,CKD,SOAKED & FRIED',154, '3 oz'],['LAMB,NZ,IMP,BRAINS,RAW',118, '4 oz'],['LAMB,NZ,IMP,BREAST,LN,CKD,BRSD',270, '3 oz'],['LAMB,NZ,IMP,BREAST,LN,RAW',149, '4 oz'],['LAMB,NZ,IMP,CHUMP,BNLESS,LN,CKD,FAST RSTD',142, '3 oz'],['LAMB,NZ,IMP,SUBCUTANEOUS FAT,CKD',674, ''],['LAMB,NZ,IMP,CHUMP,BNLESS,LN,RAW',121, '4 oz'],['LAMB,NZ,IMP,KIDNEY,CKD,SOAKED & FRIED',112, '3 oz'],['LAMB,NZ,IMP,FLAP,BNLESS,LN,CKD,BRSD',234, '3 oz'],['LAMB,NZ,IMP,FLAP,BNLESS,LN,RAW',180, '4 oz'],['LAMB,NZ,IMP,KIDNEY,RAW',84, '4 oz'],['LAMB,NZ,IMP,LIVER,CKD,SOAKED & FRIED',168, '3 oz'],['LAMB,NZ,IMP,LIVER,RAW',136, '4 oz'],['LAMB,NZ,IMP,GROUND LAMB,CKD,BRSD',192, '3 oz'],['LAMB,NZ,IMP,GROUND LAMB,RAW',193, '4 oz'],['LAMB,NZ,IMP,HEART,CKD,SOAKED & SIMMRD',161, '3 oz'],['LAMB,NZ,IMP,HEART,RAW',105, '4 oz'],['LAMB,NZ,IMP,SWEETBREAD,CKD,SOAKED & SIMMRD',144, '3 oz'],['LAMB,NZ,IMP,SWEETBREAD,RAW',72, '4 oz'],['LAMB,NZ,IMP,TESTES,CKD,SOAKED & FRIED',125, '3 oz'],['LAMB,NZ,IMP,TESTES,RAW',68, '4 oz'],['LAMB,NZ,IMP,TONGUE - SWISS CUT,CKD,SOAKED & SIMMRD',272, '3 oz'],['LAMB,NZ,IMP,TONGUE - SWISS CUT,RAW',225, '4 oz'],['LAMB,NZ,IMP,TUNNEL-BNED LG,CHMP OFF,SHNK OFF,LN,CKD,SLW RSTD',159, '3 oz'],['LAMB,NZ,IMP,TUNNEL-BONED LEG,CHUMP OFF,SHANK OFF,LN,RAW',121, '4 oz'],['LAMB,NZ,IMP,SQUARE-CUT SHLDR CHOPS,LN,CKD,BRSD',255, '3 oz'],['LAMB,NZ,IMP,SQUARE-CUT SHLDR CHOPS,LN,RAW',164, '4 oz'],['LAMB,NZ,IMP,TENDERLOIN,LN,CKD,FAST FRIED',155, '3 oz'],['LAMB,NZ,IMP,TENDERLOIN,LN,RAW',116, '4 oz'],['LAMB,NZ,IMP,LOIN SADDLE,LN,CKD,FAST RSTD',162, '3 oz'],['LAMB,NZ,IMP,LOIN SADDLE,LN,RAW',131, '4 oz'],['LAMB,NZ,IMP,LOIN,BNLESS,LN,CKD,FAST RSTD',156, '3 oz'],['LAMB,NZ,IMP,LOIN,BNLESS,LN,RAW',120, '4 oz'],['LAMB,NZ,IMP,HIND-SHANK,LN,CKD,BRSD',196, '3 oz'],['LAMB,NZ,IMP,HIND-SHANK,LN,RAW',115, '4 oz'],['LAMB,NZ,IMP,NECK CHOPS,LN,RAW',151, '4 oz'],['LAMB,NZ,IMP,NECK CHOPS,LN,CKD,BRSD',264, '3 oz'],['LAMB,NZ,IMP,NETTED SHLDR,ROLLED,BNLESS,LN,CKD,SLOW RSTD',199, '3 oz'],['LAMB,NZ,IMP,NETTED SHLDR,ROLLED,BNLESS,LN,RAW',143, '4 oz'],['LAMB,NZ,IMP,RACK - FULLY FRENCHED,LN,CKD,FAST RSTD',173, '3 oz'],['LAMB,NZ,IMP,RACK - FULLY FRENCHED,LN,RAW',147, '4 oz'],['LAMB,NZ,IMP,LOIN CHOP,LN,CKD,FAST FRIED',208, '3 oz'],['LAMB,NZ,IMP,SQUARE-CUT SHLDR,LN,CKD,SLOW RSTD',192, '3 oz'],['LAMB,NZ,IMP,LEG CHOP/STEAK,BONE-IN,LN,CKD,FAST FRIED',162, '3 oz'],['LAMB,NZ,IMP,FLAP,BNLESS,LN & FAT,CKD,BRSD',376, '3 oz'],['LAMB,NZ,IMP,FLAP,BNLESS,LN & FAT,RAW',337, '4 oz'],['LAMB,NZ,IMP,HIND-SHANK,LN & FAT,CKD,BRSD',247, '3 oz'],['LAMB,NZ,IMP,HIND-SHANK,LN & FAT,RAW',186, '4 oz'],['LAMB,NZ,IMP,LEG CHOP/STEAK,BONE-IN,LN & FAT,CKD,FAST FRIED',212, '3 oz'],['LAMB,NZ,IMP,LOIN CHOP,LN & FAT,CKD,FAST FRIED',332, '3 oz'],['LAMB,NZ,IMP,LOIN SADDLE,LN & FAT,CKD,FAST RSTD',274, '3 oz'],['LAMB,NZ,IMP,LOIN SADDLE,LN & FAT,RAW',273, '4 oz'],['LAMB,NZ,IMP,LOIN,BNLESS,LN & FAT,CKD,FAST RSTD',157, '3 oz'],['LAMB,NZ,IMP,LOIN,BNLESS,LN & FAT,RAW',122, '4 oz'],['LAMB,NZ,IMP,NECK CHOPS,LN & FAT,CKD,BRSD',307, '3 oz'],['LAMB,NZ,IMP,NECK CHOPS,LN & FAT,RAW',231, '4 oz'],['LAMB,NZ,IMP,NETTED SHLDR,ROLLED,BNLESS,L & F,CKD,SLOW RSTD',287, '3 oz'],['LAMB,NZ,IMP,NETTED SHLDR,ROLLED,BNLESS,LN & FAT,RAW',252, '4 oz'],['LAMB,NZ,IMP,SQUARE-CUT SHLDR CHOPS,LN & FAT,CKD,BRSD',322, '3 oz'],['LAMB,NZ,IMP,SQUARE-CUT SHLDR CHOPS,LN & FAT,RAW',275, '4 oz'],['LAMB,NZ,IMP,SQUARE-CUT SHLDR,LN & FAT,CKD,SLOW RSTD',294, '3 oz'],['LAMB,NZ,IMP,TENDERLOIN,LN & FAT,CKD,FAST FRIED',157, '3 oz'],['LAMB,NZ,IMP,RACK - FULLY FRENCHED,LN & FAT,CKD,FAST RSTD',195, '3 oz'],['LAMB,NZ,IMP,RACK - FULLY FRENCHED,LN & FAT,RAW',169, '4 oz'],['LAMB,NZ,IMP,TUN-BND LG,CHMP OFF,SHNK OFF,L & F,CKD,SL RSTD',208, '3 oz'],['LAMB,NZ,IMP,TUNNEL-BONED LG,CHUMP OFF,SHANK OFF,LN & FAT,RAW',121, '4 oz'],['LAMB,NZ,IMP,TENDERLOIN,LN & FAT,RAW',120, '4 oz'],['VEAL,GROUND,CKD,PAN-FRIED',215, '3 oz'],['VEAL,LEG,TOP RND,CAP OFF,CUTLET,BNLESS,CKD,GRILLED',151, '3 oz'],['VEAL,LEG,TOP RND,CAP OFF,CUTLET,BNLESS,RAW',107, '3 oz'],['VEAL,LOIN,CHOP,LN,CKD,GRILLED',159, '3 oz'],['VEAL,SHANK,LN,RAW',94, '3 oz'],['VEAL,FORESHANK,OSSO BUCO,LN,CKD,BRSD',157, '3 oz'],['VEAL,SHLDR,BLADE CHOP,LN,CKD,GRILLED',159, '3 oz'],['VEAL,EXTERNAL FAT ONLY,RAW',503, ''],['VEAL,EXTERNAL FAT ONLY,CKD',540, ''],['VEAL,SEAM FAT ONLY,RAW',444, ''],['VEAL,SEAM FAT ONLY,CKD',505, ''],['VEAL,SHANK,LN & FAT,RAW',107, '3 oz'],['VEAL,FORESHANK,OSSO BUCO,LN & FAT,CKD,BRSD',182, '3 oz'],['VEAL,LOIN,CHOP,LN & FAT,CKD,GRILLED',198, '3 oz'],['VEAL,SHLDR,BLADE CHOP,LN & FAT,CKD,GRILLED',199, '3 oz'],['BAGEL,PLN,TSTD, ENR W/CA PROP(INCLUDE ONION,POPPY,SESAME)',264, '1 bagel'],['BAGELS,PLN,TSTD,ENR W/CA PROP (INCLUDES ONION,POPPY,SESAME)',288, '1 mini bagel, (2-1/2 dia)'],['BAGELS,EGG',278, '1 oz'],['BAGELS,CINNAMON-RAISIN',274, '1 mini bagel, (2-1/2 dia)'],['BAGELS,CINNAMON-RAISIN,TSTD',294, '1 mini bagel, (2-1/2 dia)'],['BAGELS,OAT BRAN',255, '1 mini bagel, (2-1/2 dia)'],['BISCUITS,PLN OR BTTRMLK,FRZ,BKD',338, '1 oz'],['BISCUITS,PLN OR BTTRMLK,DRY MIX',428, '1 cup, purchased'],['BISCUITS,PLN OR BTTRMLK,DRY MIX,PREP',335, '1 oz'],['BISCUITS,PLN OR BTTRMLK,REFR DOUGH,LOWER FAT',270, '1 serving, 1 biscuit'],['BISCUITS,PLN OR BTTRMLK,REFR DOUGH,LOWER FAT,BKD',299, '1 oz'],['BISCUIT, PLN OR BUTMLK, REFRI DOUGH, HIGHER FAT',307, '1 biscuit'],['BISCUITS,PLN OR BTTRMLK,REFR DOUGH,HIGHER FAT,BKD',324, '1 biscuit'],['BISCUITS,PLN OR BTTRMLK,PREP FROM RECIPE',353, '1 oz'],['BISCUITS,MXD GRAIN,REFR DOUGH',263, '1 oz'],['BREAD,BANANA,PREP FROM RECIPE,MADE W/MARGARINE',326, '1 oz'],['BREAD,BOSTON BROWN,CANNED',195, '1 oz'],['BREAD,CORNBREAD,DRY MIX,ENR (INCL CORN MUFFIN MIX)',418, '1 oz'],['BREAD,CORNBREAD,DRY MIX,PREP W/ 2% MILK,80% MARGARINE,& EGGS',330, '1 muffin'],['BREAD,CORNBREAD,PREP FROM RECIPE,MADE W/LOFAT (2%) MILK',266, '1 oz'],['BREAD,CRACKED-WHEAT',260, '1 oz'],['BREAD,EGG',287, '1 oz'],['BREAD,EGG,TOASTED',315, '1 oz'],['Bread, french',272, '1 oz'],['BREAD, FRENCH OR VIENNA, TSTD (IND SOURDOUGH)',319, '1 oz'],['BREAD,IRISH SODA,PREP FROM RECIPE',290, '1 oz'],['BREAD,ITALIAN',271, '1 oz'],['BREAD,MULTI-GRAIN (INCLUDES WHOLE-GRAIN)',265, '1 oz'],['BREAD,MULTI-GRAIN,TSTD (INCLUDES WHOLE-GRAIN)',288, '1 oz'],['BREAD,OAT BRAN',236, '1 oz'],['BREAD,OAT BRAN,TOASTED',259, '1 oz'],['BREAD,OATMEAL',269, '1 oz'],['BREAD,OATMEAL,TOASTED',292, '1 oz'],['BREAD,PITA,WHITE,ENRICHED',275, '1 pita, large (6-1/2 dia)'],['BREAD,PITA,WHOLE-WHEAT',266, '1 pita, large (6-1/2 dia)'],['BREAD,PROT (INCL GLUTEN)',245, '1 oz'],['BREAD,PUMPERNICKEL',250, '1 oz'],['BREAD,PUMPERNICKEL,TSTD',275, '1 oz'],['BREAD,RAISIN,ENRICHED',274, '1 oz'],['BREAD,RAISIN,TSTD,ENR',297, '1 oz'],['BREAD,RED-CAL,OAT BRAN',201, '1 oz'],['BREAD,RED-CAL,OAT BRAN,TSTD',239, '1 oz'],['BREAD,RED-CAL,OATMEAL',210, '1 oz'],['BREAD,REDUCED-CALORIE,RYE',203, '1 oz'],['BREAD,RED-CAL,WHEAT',217, '1 oz'],['BREAD,RED-CAL,WHITE',207, '1 oz'],['BREAD,RICE BRAN',243, '1 oz'],['BREAD,RYE',259, '1 oz'],['BREAD,RYE,TOASTED',284, '1 oz'],['BREAD,WHEAT',267, '1 oz'],['BREAD, WHEAT, TSTD',313, '1 oz'],['BREAD,WHEAT BRAN',248, '1 oz'],['BREAD,WHEAT GERM',261, '1 oz'],['BREAD,WHITE,COMMLY PREP (INCL SOFT BREAD CRUMBS)',266, '1 slice'],['BREAD,WHITE,COMMLY PREP,TSTD',293, '1 oz'],['BREAD,WHITE,PREP FROM RECIPE,MADE W/NONFAT DRY MILK',274, '1 oz'],['BREAD,WHITE,PREP FROM RECIPE,MADE W/LOFAT (2%) MILK',285, '1 oz'],['BREAD,WHOLE-WHEAT,COMM. PREPARED',252, '1 slice'],['BREAD, WHOLE-WHEAT, COMMER PREP, TOASTED',306, '1 oz'],['BREAD,WHOLE-WHEAT,PREP FROM RECIPE',278, '1 oz'],['BREAD,WHOLE-WHEAT,PREP FROM RECIPE,TSTD',305, '1 oz'],['BREAD CRUMBS,DRY,GRATED,PLN',395, '1 oz'],['BREAD STICKS,PLAIN',412, '1 cup, small pieces'],['BREAD STUFFING,BREAD,DRY MIX',386, '1 oz'],['BREAD STUFFING,BREAD,DRY MIX,PREP',177, '1 oz'],['BREAD STUFFING,CORNBREAD,DRY MIX',389, '1 oz'],['BREAD STUFFING,CORNBREAD,DRY MIX,PREP',179, '1 oz'],['CAKE,ANGELFOOD,COMMLY PREP',258, '1 piece, (1/12 of 12 oz cake)'],['CAKE MIX,ANGELFOOD,DRY',366, '1 serving'],['CAKE,ANGELFOOD,DRY MIX,PREP',257, '1 piece, (1/12 of 10 dia)'],['CAKE,BOSTON CRM PIE,COMMLY PREP',252, '1 oz'],['CAKE,CARROT,DRY MIX,PUDDING-TYPE',415, '1 oz'],['CAKE,CHERRY FUDGE W/CHOC FRSTNG',264, '1 oz'],['CAKE,CHOC,COMMLY PREP W/ CHOC FRSTNG,IN-STORE BAKERY',389, '1 piece, (1/12 of a cake)'],['CAKE,CHOC,DRY MIX,PUDDING-TYPE',391, '1 oz'],['CAKE,CHOC,PREP FROM RECIPE WO/FRSTNG',371, '1 piece, (1/12 of 9 dia)'],['CAKE,WHITE,PREP FROM RECIPE W/COCNT FRSTNG',356, '1 oz'],['COFFEECAKE,CHEESE',339, '1 oz'],['COFFEECAKE,CINN W/CRUMB TOPPING,COMMLY PREP,ENR',418, '1 oz'],['COFFEECAKE,CREME-FILLED W/CHOC FRSTNG',331, '1 oz'],['COFFEECAKE,FRUIT',311, '1 oz'],['COFFEECAKE,CINN W/CRUMB TOPPING,DRY MIX',436, '1 oz'],['COFFEECAKE,CINN W/CRUMB TOPPING,DRY MIX,PREP',318, '1 oz'],['CAKE,FRUITCAKE,COMMLY PREP',324, '1 oz'],['CAKE MIX,PUDD,DRY,GERMAN CHOC',350, '1 serving'],['CAKE,GINGERBREAD,DRY MIX',437, '1 oz'],['CAKE,GINGERBREAD,PREP FROM RECIPE',356, '1 oz'],['CAKE,MARBLE,DRY MIX,PUDDING-TYPE',416, '1 oz'],['CAKE,PNAPPL UPSIDE-DOWN,PREP FROM RECIPE',319, '1 oz'],['CAKE,POUND,COMMLY PREP,BUTTER (INCLUDES FRSH & FROZEN)',353, '.167 loaf, 1/6 of the loaf'],['CAKE,POUND,COMMLY PREP,OTHER THAN ALL BUTTER,ENR',389, '1 piece, (1/10 of 10.6 oz cake)'],['CAKE,SHORTCAKE,BISCUIT-TYPE,PREP FROM RECIPE',346, '1 oz'],['CAKE,SNACK CAKES,CREME-FILLED,CHOC W/ FRSTNG',399, '1 oz'],['CAKE,SNACK CAKES,CREME-FILLED,SPONGE',374, '1 oz'],['CAKE,WHITE,DRY MIX,SPL DIETARY (INCL LEMON-FLAVORED)',397, '1 oz'],['CAKE,SPONGE,COMMLY PREP',290, '1 oz'],['CAKE,SPONGE,PREP FROM RECIPE',297, '1 oz'],['CAKE,WHITE,DRY MIX,PUDDING-TYPE,ENR',423, '1 oz'],['CAKE,WHITE,PREP FROM RECIPE WO/FRSTNG',357, '1 piece, (1/12 of 9 dia)'],['CAKE,YEL,COMMLY PREP,W/ CHOC FRSTNG,IN-STORE BAKERY',379, '1 piece, (1/12 of a cake)'],['CAKE,YEL,COMMLY PREP,W/VANILLA FRSTNG',391, '1 serving'],['CAKE,YEL,DRY MIX,PUDDING-TYPE',423, '1 oz'],['CAKE,YEL,DRY MIX,REG,ENR',374, '1 serving'],['CAKE,YEL,PREP FROM RECIPE WO/FRSTNG',361, '1 piece, (1/12 of 8 dia)'],['CHEESECAKE COMMLY PREP',321, '1 oz'],['CHEESECAKE PREP FROM MIX,NO-BAKE TYPE',274, '1 oz'],['COOKIES,ANIMAL CRACKERS (INCL ARROWROOT,TEA BISCUITS,)',446, '1 oz'],['COOKIES,BROWNIES,COMMLY PREP',405, '1 oz'],['COOKIES,BROWNIES,DRY MIX,REG',434, '1 oz'],['COOKIES,BROWNIES,PREP FROM RECIPE',466, '1 oz'],['COOKIES,BUTTER,COMMLY PREP,ENR',467, '1 oz'],['COOKIES,FUDGE,CAKE-TYPE (INCL TROLLEY CAKES)',349, '1 oz'],['COOKIES,CHOCOLATE WAFERS',433, '1 oz'],['COOKIES,CHOC CHIP,COMMLY PREP,REG,LOWER FAT',451, '1 serving, 3 cookies'],['COOKIES,CHOC CHIP,COMMLY PREP,REG,HIGHER FAT,ENR',492, '1 cookie'],['COOKIES,CHOC CHIP,COMMLY PREP,SOFT-TYPE',444, '1 cookie'],['COOKIES,CHOC CHIP,DRY MIX',497, '1 oz'],['COOKIES,CHOC CHIP,REFR DOUGH',451, '1 serving'],['COOKIES,CHOC CHIP,REFR DOUGH,BKD',492, '1 oz'],['COOKIES,CHOC CHIP,PREP FROM RECIPE,MADE W/MARGARINE',488, '1 oz'],['COOKIES,CHOC SNDWCH,W/CREME FILLING,REG',464, '3 cookie'],['COOKIES,CHOC SNDWCH,W/CREME FILLING,REG,CHOCOLATE-COATED',481, '1 oz'],['COOKIES,CHOC SNDWCH,W/EX CREME FILLING',497, '1 oz'],['COOKIES,FIG BARS',348, '1 oz'],['COOKIES,FORTUNE',378, '1 oz'],['COOKIES,GINGERSNAPS',416, '1 oz'],['COOKIES,GRAHAM CRACKERS,PLN OR HONEY (INCL CINN)',430, '1 oz'],['COOKIES,GRAHAM CRACKERS,CHOCOLATE-COATED',500, '3 pieces'],['COOKIES,LADYFINGERS,W/LEMON JUC&RIND',365, '1 oz'],['COOKIES,MARSHMLLW,CHOCOLATE-COATED (INCL MARSHMLLW PIES)',421, '1 oz'],['COOKIES,MOLASSES',430, '1 oz'],['COOKIES,OATMEAL,COMMLY PREP,REG',450, '1 oz'],['COOKIES,OATMEAL,COMMLY PREP,SOFT-TYPE',409, '1 oz'],['COOKIES,OATMEAL,DRY MIX',462, '1 oz'],['COOKIES,OATMEAL,REFR DOUGH',424, '1 oz'],['COOKIES,OATMEAL,REFR DOUGH,BKD',471, '1 oz'],['COOKIES,OATMEAL,PREP FROM RECIPE,W/RAISINS',435, '1 oz'],['COOKIES,PNUT BUTTER,COMMLY PREP,REG',473, '1 oz'],['COOKIES,PNUT BUTTER,COMMLY PREP,SOFT-TYPE',457, '1 oz'],['COOKIES,PNUT BUTTER,REFR DOUGH',458, '1 oz'],['COOKIES,PNUT BUTTER,REFR DOUGH,BKD',503, '1 oz'],['COOKIES,PNUT BUTTER,PREP FROM RECIPE',475, '1 oz'],['COOKIES,PNUT BUTTER SNDWCH,REG',478, '1 oz'],['COOKIES,RAISIN,SOFT-TYPE',401, '1 oz'],['COOKIES,SHORTBREAD,COMMLY PREP,PLN',514, '1 oz'],['COOKIES,SHORTBREAD,COMMLY PREP,PECAN',542, '1 oz'],['COOKIES,BROWNIES,DRY MIX,SPL DIETARY',426, '1 oz'],['COOKIES,CHOC CHIP,COMMLY PREP,SPL DIETARY',450, '1 oz'],['COOKIES,CHOC SNDWCH,W/CREME FILLING,SPL DIETARY',461, '1 oz'],['COOKIES,OATMEAL,COMMLY PREP,SPL DIETARY',449, '1 oz'],['COOKIES,PNUT BUTTER SNDWCH,SPL DIETARY',535, '1 oz'],['COOKIES,SUGAR WAFERS W/CREME FILLING,SPL DIETARY',502, '1 oz'],['COOKIES,SUGAR,COMMLY PREP,REG (INCL VANILLA)',464, '1 oz'],['COOKIES,SUGAR,REFR DOUGH',436, '1 serving'],['COOKIES,SUGAR,REFR DOUGH,BKD',484, '1 oz'],['COOKIES,SUGAR,PREP FROM RECIPE,MADE W/MARGARINE',472, '1 oz'],['COOKIES,SUGAR WAFERS W/CREME FILLING,REG',502, '3 cookies'],['COOKIES,VANILLA SNDWCH W/CREME FILLING',483, '1 oz'],['PUFF PASTRY,FRZ,RTB,BKD',558, '1 oz'],['COOKIES,VANILLA WAFERS,LOWER FAT',441, '1 oz'],['COOKIES,VANILLA WAFERS,HIGHER FAT',473, '1 oz'],['CRACKERS,CHEESE,REGULAR',489, '.5 oz'],['CRACKERS,CHS,SANDWICH-TYPE W/PNUT BUTTER FILLING',496, '.5 oz'],['CRACKERS,CRISPBREAD,RYE',366, '.5 oz'],['CRACKERS,MATZO,PLAIN',395, '.5 oz'],['CRACKERS,MATZO,EGG',391, '.5 oz'],['CRACKERS,MATZO,WHOLE-WHEAT',351, '.5 oz'],['CRACKERS,MELBA TOAST,PLN',390, '.5 oz'],['CRACKERS,MELBA TOAST,RYE (INCL PUMPERNICKEL)',389, '.5 oz'],['CRACKERS,MELBA TOAST,WHEAT',374, '.5 oz'],['CRACKERS,MILK',455, '.5 oz'],['CRACKERS,RUSK TOAST',407, '.5 oz'],['CRACKERS,RYE,SANDWICH-TYPE W/CHS FILLING',481, '.5 oz'],['CRACKERS,RYE,WAFERS,PLAIN',334, '.5 oz'],['CRACKERS,RYE,WAFERS,SEASONED',381, '.5 oz'],['CRACKERS,SALTINES (INCL OYSTER,SODA,SOUP)',418, '5 crackers'],['CRACKERS,STD SNACK-TYPE,REG',510, '5 crackers'],['CRACKERS,STD SNACK-TYPE,SNDWCH,W/CHS FILLING',477, '.5 oz'],['CRACKERS,STD SNACK-TYPE,SNDWCH,W/PNUT BUTTER FILLING',494, '.5 oz'],['CRACKERS,WHEAT,REGULAR',455, '16 crackers, 1 serving'],['CRACKERS,WHEAT,SNDWCH,W/CHS FILLING',497, '.5 oz'],['CRACKERS,WHEAT,SNDWCH,W/PNUT BUTTER FILLING',495, '.5 oz'],['CRACKERS,WHOLE-WHEAT',427, '1 serving'],['CRACKER MEAL',383, '1 oz'],['CREAM PUFF SHELL,PREP FROM RECIPE',362, '1 oz'],['CROISSANTS,BUTTER',406, '1 oz'],['CROISSANTS,APPLE',254, '1 oz'],['CROISSANTS,CHEESE',414, '1 oz'],['CROUTONS,PLAIN',407, '.5 oz'],['CROUTONS,SEASONED',465, '.5 oz'],['DANISH PASTRY,CINN,ENR',403, '1 oz'],['DANISH PASTRY,CHEESE',374, '1 oz'],['DANISH PASTRY,FRUIT,ENR',371, '1 oz'],['DANISH PASTRY,NUT (INCL ALMOND,RAISIN NUT,CINN NUT)',430, '1 oz'],['DOUGHNUTS,CAKE-TYPE,PLN (INCLUDES UNSUGARED,OLD-FASHIONED)',434, '1 donut'],['DOUGHNUTS,CAKE-TYPE,PLN,CHOCOLATE-COATED OR FRSTD',452, '1 oz'],['DOUGHNUTS,CAKE-TYPE,PLN,SUGARED OR GLAZED',426, '1 oz'],['DOUGHNUTS,CAKE-TYPE,CHOC,SUGARED OR GLAZED',417, '1 oz'],['DOUGHNUTS,FRENCH CRULLERS,GLAZED',412, '1 oz'],['DOUGHNUTS,YEAST-LEAVENED,W/CREME FILLING',361, '1 oz'],['DOUGHNUTS, YEAST-LEAVENED, GLAZED, ENRICHED (INC HONEY BUNS)',421, '1 oz'],['DOUGHNUTS,YEAST-LEAVENED,W/JELLY FILLING',340, '1 oz'],['ENGLISH MUFFIN, PLN,ENCHED.W/CA PROP (INCLD SOURDOUGH)',227, '1 oz'],['ENGLISH,MUFFIN,PLN,TSTD,ENR,W/CA PROP(INCL SOURDOUGH)',270, '1 oz'],['ENGLISH MUFFINS,MIXED-GRAIN (INCL GRANOLA)',235, '1 oz'],['ENGLISH MUFFINS,MIXED-GRAIN,TSTD (INCL GRANOLA)',255, '1 oz'],['ENGLISH MUFFINS,RAISIN-CINNAMON (INCLUDES APPLE-CINNAMON)',240, '1 oz'],['ENGLISH MUFFINS,RAISIN-CINNAMON,TSTD (INCL APPLE-CINNAMON)',276, '1 oz'],['ENGLISH MUFFINS,WHEAT',223, '1 oz'],['ENGLISH MUFFINS,WHEAT,TSTD',243, '1 oz'],['ENGLISH MUFFINS,WHOLE-WHEAT',203, '1 oz'],['ENGLISH MUFFINS,WHOLE-WHEAT,TSTD',221, '1 oz'],['FRENCH TOAST,FRZ,RTH',213, '1 oz'],['FRENCH TOAST,PREP FROM RECIPE,MADE W/LOFAT (2%) MILK',229, '1 oz'],['HUSH PUPPIES,PREP FROM RECIPE',337, '1 oz'],['ICE CRM CONES,CAKE OR WAFER-TYPE',417, '1 oz'],['ICE CRM CONES,SUGAR,ROLLED-TYPE',402, '1 oz'],['MUFFINS,PLN,PREP FROM RECIPE,MADE W/LOFAT (2%) MILK',296, '1 oz'],['MUFFINS,BLUEBERRY,COMMLY PREP (INCLUDES MINI-MUFFINS)',375, '1 oz'],['MUFFINS,BLUEBERRY,DRY MIX',293, '1 serving'],['MUFFINS,BLUEBERRY,TOASTER-TYPE',313, '1 oz'],['MUFFINS,BLUEBERRY,PREP FROM RECIPE,MADE W/LOFAT (2%) MILK',285, '1 oz'],['MUFFINS,CORN,COMMLY PREP',305, '1 oz'],['MUFFINS,CORN,DRY MIX,PREP',321, '1 oz'],['MUFFINS,CORN,TOASTER-TYPE',346, '1 oz'],['MUFFINS,CORN,PREP FROM RECIPE,MADE W/LOFAT (2%) MILK',316, '1 oz'],['MUFFINS,OAT BRAN',270, '1 oz'],['MUFFINS,WHEAT BRAN,DRY MIX',396, '1 oz'],['PANCAKES PLN,FRZ,RTH (INCLUDES BUTTERMILK)',233, '1 oz'],['PANCAKES,PLN,DRY MIX,COMPLETE (INCL BTTRMLK)',368, '.333 cup'],['PANCAKES,PLN,DRY MIX,COMPLETE,PREP',194, '1 oz'],['PANCAKES,PLN,DRY MIX,INCOMPLETE (INCL BTTRMLK)',355, '1 oz'],['PANCAKES,PLN,DRY MIX,INCOMPLETE,PREP',218, '1 oz'],['PANCAKES,PLN,PREP FROM RECIPE',227, '1 oz'],['PANCAKES,BLUEBERRY,PREP FROM RECIPE',222, '1 oz'],['PANCAKES,BUCKWHEAT,DRY MIX,INCOMPLETE',340, '1 oz'],['PANCAKES,SPL DIETARY,DRY MIX',349, '1 oz'],['PANCAKES,WHOLE-WHEAT,DRY MIX,INCOMPLETE',344, '1 oz'],['PANCAKES,WHOLE-WHEAT,DRY MIX,INCOMPLETE,PREP',208, '1 oz'],['PIE,APPL,COMMLY PREP,ENR FLR',237, '1 oz'],['PIE,APPL,PREP FROM RECIPE',265, '1 oz'],['PIE,BANANA CRM,PREP FROM MIX,NO-BAKE TYPE',251, '1 oz'],['PIE,BANANA CRM,PREP FROM RECIPE',269, '1 oz'],['PIE,BLUEBERRY,COMMLY PREP',232, '1 oz'],['PIE,BLUEBERRY,PREP FROM RECIPE',245, '1 oz'],['PIE,CHERRY,COMMLY PREP',260, '1 oz'],['PIE,CHERRY,PREP FROM RECIPE',270, '1 oz'],['PIE,CHOC CREME,COMMLY PREP',353, '1 serving, .167 pie'],['PIE,CHOC MOUSSE,PREP FROM MIX,NO-BAKE TYPE',260, '1 oz'],['PIE,COCNT CREME,COMMLY PREP',298, '1 oz'],['PIE,COCNT CRM,PREP FROM MIX,NO-BAKE TYPE',276, '1 oz'],['PIE,COCNT CUSTARD,COMMLY PREP',260, '1 oz'],['PIE,EGG CUSTARD,COMMLY PREP',210, '1 oz'],['PIE,FRIED PIES,FRUIT',316, '1 oz'],['PIE,LEMON MERINGUE,COMMLY PREP',268, '1 oz'],['PIE,LEMON MERINGUE,PREP FROM RECIPE',285, '1 oz'],['PIE,MINCE,PREP FROM RECIPE',289, '1 oz'],['PIE,PEACH',224, '1 oz'],['PIE,PECAN,COMMLY PREP',407, '1 oz'],['PIE,PECAN,PREP FROM RECIPE',412, '1 oz'],['PIE,PUMPKIN,COMMLY PREP',243, '1 oz'],['PIE,PUMPKIN,PREP FROM RECIPE',204, '1 oz'],['PIE,VANILLA CRM,PREP FROM RECIPE',278, '1 oz'],['PIE CRUST,STANDARD-TYPE,DRY MIX',518, '1 oz'],['PIE CRUST,STANDARD-TYPE,DRY MIX,PREP,BKD',501, '1 piece, (1/8 of 9 crust)'],['PIE CRUST,STANDARD-TYPE,FRZ,RTB,ENR',457, '1 piece, (1/8 of 9 crust)'],['PIE CRUST,STANDARD-TYPE,FRZ,RTB,ENR,BKD',508, '1 pie crust, (average weight of 1 baked crust)'],['PIE CRUST,STANDARD-TYPE,PREP FROM RECIPE,BKD',527, '1 piece, (1/8 of 9 crust)'],['PUFF PASTRY,FRZ,RTB',551, '1 oz'],['PHYLLO DOUGH',299, '1 oz'],['POPOVERS,DRY MIX,ENRICHED',371, '1 oz'],['ROLLS, DINNER, PLN,COMM PREPARED (INC BROWN -N- SERVE)',310, '1 roll, (1 oz)'],['ROLLS,DINNER,EGG',307, '1 oz'],['ROLLS,DINNER,OAT BRAN',236, '1 oz'],['ROLLS,DINNER,RYE',286, '1 large, (approx 3-1/2 to 4 dia)'],['ROLLS,DINNER,WHEAT',273, '1 roll, (1 oz)'],['ROLLS,DINNER,WHOLE-WHEAT',266, '1 roll, (1 oz)'],['ROLLS,FRENCH',277, '1 oz'],['ROLLS,HAMBURGER OR HOTDOG,PLN',278, '1 roll'],['ROLLS,HAMBURGER OR HOTDOG,MIXED-GRAIN',263, '1 oz'],['ROLLS,HAMBURGER OR HOTDOG,RED-CAL',196, '1 oz'],['ROLLS,HARD (INCL KAISER)',293, '1 oz'],['STRUDEL,APPLE',274, '1 oz'],['SWEET ROLLS,CHEESE',360, '1 oz'],['SWEET ROLLS,CINN,COMMLY PREP W/RAISINS',372, '1 oz'],['SWEET ROLLS,CINN,REFR DOUGH W/FRSTNG',333, '1 oz'],['SWEET ROLLS,CINN,REFR DOUGH W/FRSTNG,BKD',362, '1 oz'],['TACO SHELLS, BAKED',476, '1 shell'],['TOASTER PASTRIES,BROWN-SUGAR-CINNAMON',370, '1 oz'],['TOASTER PASTRIES,FRUIT',388, '1 oz'],['TORTILLAS,RTB OR -FRY,CORN',218, '1 oz'],['TORTILLAS,RTB OR -FRY,FLR,REFR',293, '1 tortilla'],['WAFFLES,PLN,FRZ,RTH',285, '1 oz'],['WAFFLES,PLN,PREP FROM RECIPE',291, '1 oz'],['WONTON WRAPPERS (INCL EGG ROLL WRAPPERS)',291, '1 oz'],['LEAVENING AGENTS,BAKING PDR,DOUBLE-ACTING,NA AL SULFATE',53, '1 tsp'],['LEAVENING AGENTS,BAKING PDR,DOUBLE-ACTING,STRAIGHT PO4',51, '1 tsp'],['LEAVENING AGENTS,BAKING PDR,LOW-SODIUM',97, '1 tsp'],['LEAVENING AGENTS,BAKING SODA',0, '1 tsp'],['LEAVENING AGENTS,CRM OF TARTAR',258, '1 tsp'],['LEAVENING AGENTS,YEAST,BAKERS,COMPRESSED',105, '1 cake, (0.6 oz)'],['LEAVENING AGENTS,YEAST,BAKERS,ACTIVE DRY',325, '1 tsp'],['BREAD CRUMBS,DRY,GRATED,SEASONED',383, '1 oz'],['COOKIES,OATMEAL,PREP FROM RECIPE,WO/RAISINS',447, '1 oz'],['COOKIES,CHOC CHIP,PREP FROM RECIPE,MADE W/BUTTER',488, '1 oz'],['BREAD,PROT,TSTD (INCL GLUTEN)',270, '1 oz'],['BREAD,RICE BRAN,TOASTED',264, '1 oz'],['BREAD,WHEAT GERM,TOASTED',293, '1 oz'],['MUFFINS,BLUEBERRY,TOASTER-TYPE,TSTD',333, '1 oz'],['MUFFINS,WHEAT BRAN,TOASTER-TYPE W/RAISINS,TSTD',313, '1 oz'],['PANCAKES,BTTRMLK,PREP FROM RECIPE',227, '1 oz'],['ROLLS,DINNER,PLN,PREP FROM RECIPE,MADE W/LOFAT (2%) MILK',316, '1 oz'],['PIE CRUST,COOKIE-TYPE,PREP FR RECIPE,GRAHAM CRACKER,CHILLED',484, '1 piece, (1/8 of 9 crust)'],['CRACKERS,MATZO,EGG&ONION',391, '.5 oz'],['PIE CRUST,COOKIE-TYPE,PREP FROM RECIPE,VANILLA WAFER,CHILLED',531, '1 cup'],['PIE CRUST,STANDARD-TYPE,PREP FROM RECIPE,UNBAKED',469, '1 piece, (1/8 of 9 crust)'],['WAFFLES,PLN,FRZ,READY -TO-HEAT,TSTD',312, '1 oz'],['BAGELS,PLN,ENR,WO/CA PROP (INCL ONION,POPPY,SESAME)',275, '1 oz'],['BAGELS,PLN,UNENR,W/CA PROP (INCL ONION,POPPY,SESAME)',275, '1 oz'],['BAGELS,PLN,UNENR,WO/CA PROP (INCL ONION,POPPY,SESAME)',275, '1 oz'],['BREAD,CORNBREAD,DRY MIX,UNENR (INCL CORN MUFFIN MIX)',418, '1 oz'],['BREAD,PITA,WHITE,UNENR',275, '1 oz'],['BREAD,RAISIN,UNENRICHED',274, '1 oz'],['BREAD,WHITE,COMMLY PREP,LO NA,NO SALT',267, '1 oz'],['COFFEECAKE,CINN W/CRUMB TOPPING,COMMLY PREP,UNENR',418, '1 oz'],['CAKE,POUND,COMMLY PREP,OTHER THAN ALL BUTTER,UNENR',389, '1 piece, (1/10 of 10.6 oz cake)'],['CAKE,WHITE,DRY MIX,PUDDING-TYPE,UNENR',423, '1 oz'],['CAKE,YEL,DRY MIX,REG,UNENR',432, '1 oz'],['COOKIES,BUTTER,COMMLY PREP,UNENR',467, '1 oz'],['COOKIES,CHOC CHIP,COMMLY PREP,REG,HIGHER FAT,UNENR',481, '1 oz'],['COOKIES,LADYFINGERS,WO/LEMON JUC&RIND',363, '1 oz'],['CRACKERS,MELBA TOAST,PLN,WO/SALT',390, '.5 oz'],['CRACKERS,SALTINES,LO SALT (INCL OYSTER,SODA,SOUP)',421, '.5 oz'],['CRACKERS,SALTINES,UNSALTED TOPS (INCL OYSTER,SODA,SOUP)',434, '.5 oz'],['CRACKERS,STD SNACK-TYPE,REG,LO SALT',502, '.5 oz'],['CRACKERS,WHEAT,LOW SALT',473, '.5 oz'],['CRACKERS,WHOLE-WHEAT,LO SALT',443, '.5 oz'],['DANISH PASTRY,CINN,UNENR',403, '1 oz'],['DANISH PASTRY,FRUIT,UNENR (INCL APPL,CINN,RAISIN,STRAWBERRY)',371, '1 oz'],['BREAD,WHITE,COMMLY PREP,TSTD,LO NA NO SALT',293, '1 oz'],['DANISH PASTRY,LEMON,UNENR',371, '1 oz'],['CRACKERS,CHS,LO NA',503, '.5 oz'],['DANISH PASTRY,RASPBERRY,UNENR',371, '1 oz'],['DOUGHNUTS,YEAST-LEAVENED,GLAZED,UNENR (INCL HONEY BUNS)',403, '1 oz'],['ENGLISH MUFFINS,PLN,ENR,WO/CA PROP (INCL SOURDOUGH)',235, '1 oz'],['ENGLISH MUFFINS,PLN,UNENR,W/CA PROP (INCL SOURDOUGH)',235, '1 oz'],['ENGLISH MUFFINS,PLN,UNENR,WO/CA PROP (INCL SOURDOUGH)',235, '1 oz'],['PIE,APPL,COMMLY PREP,UNENR FLR',237, '1 oz'],['PIE,FRIED PIES,CHERRY',316, '1 oz'],['PIE,FRIED PIES,LEMON',316, '1 oz'],['PIE CRUST,STANDARD-TYPE,FRZ,RTB,UNENR',457, '1 crust, single 9'],['POPOVERS,DRY MIX,UNENR',371, '1 oz'],['TACO SHELLS,BKD,WO/ SALT',468, '1 oz'],['TORTILLAS,RTB OR -FRY,CORN,WO/ SALT',222, '1 oz'],['TORTILLAS,RTB OR -FRY,FLR,WO/ CA',325, '1 oz'],['CAKE,POUND,COMMLY PREP,FAT-FREE',283, '1 oz'],['CAKE,YELLOW,DRY MIX,LIGHT',404, '1 oz'],['CRACKERS,SALTINES,FAT-FREE,LOW-SODIUM',393, '3 saltines'],['BREAKFAST TART,LOFAT',372, '1 tart'],['TOASTER PASTRIES,KELLOGG,KELLOGGS POP TARTS,BLUEBERRY',412, '1 pastry'],['TOASTER PASTRIES,KELLOGG,KELLOGGS POP TARTS,FRSTD BLUEBERRY',391, '1 pastry'],['TOASTER PASTRIES,KELLOGG,KELLOGGS POP TARTS,BRWN SUGAR CINN',438, '1 pastry'],['TOASTER PASTRIES,KELLOGG,KELLOGGS POP TRTS,FRSTD BR SGR CIN',417, '1 pastry'],['TOASTER PASTRIES,KELLOGG,KELLOGGS POP TARTS,FRSTD CHERRY',397, '1 pastry'],['TOASTER PASTRIES,KELLOGG,KELLOGGS POP TARTS,FRSTD CHOC FUDG',384, '1 pastry'],['TOASTER PASTRIES,KELLOGG,KELLOGGS POP TARTS,FRSTD RASPBERRY',399, '1 pastry'],['TOASTER PASTRIES,KELLOGG,KELLOGGS POP TARTS,SMORES',392, '1 pastry'],['TOASTER PASTRIES,KELLOGG,KELLOGGS POP TARTS,STRAWBERRY',398, '1 pastry'],['TOASTER PASTRIES,KELLOGG,KELLOGS POP TARTS,FRSTD STRAWBERRY',390, '1 pastry'],['TOASTER PASTRIES,KELLOGG,KELLOGGS POP TARTS,FRSTD WLD BERRY',390, '1 pastry'],['TSTR PSTRS,KELLOGG,KELLOGGS LF POP TRTS,FRSTD BRWN SGR CINN',366, '1 pastry'],['TSTR PSTRS,KELLOGG,KELLOGGS LF POP TARTS,FRSTD STRAWBERRY',363, '1 pastry'],['KELLOGG,KELLOGGS EGGO,BTTRMLK PANCAKE',245, '3 pancakes, (NLEA serving)'],['KELLOGG,KELLOGGS NUTRI-GRAIN CRL BARS,MXD BERRY',370, '1 bar, (NLEA serving)'],['KELLOGGS,EGGO,WAFFLES,HOMESTYLE,LOFAT',229, '2 waffles, 1 serving'],['KELLOGGS,EGGO,NUTRI-GRAIN,WAFFLES,LOFAT',201, '2 waffles, 1 serving'],['KELLOGGS EGGO LOWFAT BLUEBERRY NUTRI - GRAIN WAFFLES',208, '1 waffle, round (4 dia) (include frozen)'],['ARCHWAY HOME STYLE COOKIES,SUGAR FREE OATMEAL',442, '1 serving'],['ARCHWAY Home Style Cookies, Chocolate Chip Ice Box',497, '1 serving'],['ARCHWAY Home Style Cookies, Coconut Macaroon',460, '1 serving'],['ARCHWAY Home Style Cookies, Date Filled Oatmeal',400, '1 serving'],['ARCHWAY Home Style Cookies, Dutch Cocoa',431, '1 serving'],['ARCHWAY HOME STYLE COOKIES,FROSTY LEMON',430, '1 serving'],['ARCHWAY Home Style Cookies, Iced Molasses',420, '1 serving'],['ARCHWAY Home Style Cookies, Iced Oatmeal',435, '1 serving'],['ARCHWAY Home Style Cookies, Molasses',403, '1 serving'],['ARCHWAY Home Style Cookies, Oatmeal',421, '1 serving'],['ARCHWAY Home Style Cookies, Oatmeal Raisin',406, '1 serving'],['ARCHWAY Home Style Cookies, Old Fashioned Molasses',406, '1 serving'],['ARCHWAY Home Style Cookies, Old Fashioned Windmill Cookies',468, '1 serving'],['ARCHWAY HOME STYLE COOKIES,PNUT BUTTER',480, '1 serving'],['ARCHWAY HOME STYLE COOKIES,RASPBERRY FILLED',400, '1 serving'],['ARCHWAY Home Style Cookies, Strawberry Filled',400, '1 serving'],['ARCHWAY Home Style Cookies, Reduced Fat Ginger Snaps',424, '1 serving'],['ARTIFICIAL BLUEBERRY MUFFIN MIX,DRY',407, '1 muffin'],['KRAFT,STOVE TOP STUFFING MIX CHICKEN FLAVOR',381, '1 NLEA serving, (makes 1/2 cup prepared)'],['GEORGE WESTON BAKER,BROWNBERRY SAGE & ONION STUFFING MIX,DRY',390, '1 serving'],['KEEBLER,KEEBLER CHOC GRAHAM SELECTS',465, '1 serving'],['KEEBLER,VANILLA WAFERS',462, '8 cookies'],['KRUSTEAZ ALMOND POPPYSEED MUFFIN MIX,ARTIFICIALLY FLAV,DRY',418, '1 serving'],['MCKEE BAKING,LITTL DEBBI NUT BAR,WAFER W/PNUT BUTE,CHOC COVE',548, '1 serving'],['MARTHA WHITE FOODS,MARTHA WHITES CHEWY FUDGE BROWNIE MX,DRY',407, '1 serving'],['MARTHA WHITE FOODS,MARTHA WHITES BTTRMLK BISCUIT MIX,DRY',388, '1 serving'],['MISSION FOODS,MISSION FLR TORTILLAS,SOFT TACO,8 INCH',287, '1 serving'],['NABISCO,NABISCO GRAHAMS CRACKERS',424, '1 serving'],['NABISCO,NABISCO OREO CRUNCHIES,COOKIE CRUMB TOPPING',476, '1 serving'],['NABISCO,NABISCO RITZ CRACKERS',492, '1 cracker'],['PILLSBURY,BTTRMLK BISCUITS,ART FLAVOR,REFR DOUGH',236, '1 biscuit'],['PILLSBURY,CHOC CHIP COOKIES,REFR DOUGH',450, '1 serving, 2 cookies'],['PILLSBURY,CRUSTY FRENCH LOAF,REFR DOUGH',243, '1 serving'],['PILLSBURY,TRADITIONAL FUDGE BROWNIE MIX,DRY',441, '1 serving'],['PILLSBURY GRANDS,BTTRMLK BISCUITS,REFR DOUGH',293, '1 biscuit'],['PILLSBURY GOLDEN LAYER BTTRMLK BISCUITS,ART FLAVOR,REFR',307, '1 serving'],['PILLSBURY,CINN ROLLS W/ ICING,REFR DOUGH',330, '1 serving, 1 roll with icing'],['KRAFT FOODS,SHAKE N BAKE ORIG RECIPE,COATING FOR PORK,DRY',377, '1 serving'],['GEORGE WESTON BAKERIES,THOMAS ENG MUFFINS',232, '1 serving'],['HEINZ,WEIGHT WATCHER,CHOC ECLAIR,FRZ',241, '1 eclair, frozen'],['INTERSTATE BRANDS CORP,WONDER HAMBURGER ROLLS',273, '1 serving'],['GENERAL MILLS,BETTY CROCKER SUPERMOIST YEL CAKE MIX,DRY',413, '1 serving'],['NABISCO,NABISCO SNACKWELLS FAT FREE DEVILS FD COOKIE CAKES',305, '1 serving'],['CRACKERS,CHS,SANDWICH-TYPE W/ CHS FILLING',490, '6 cracker, 1 cracker = 6.5g'],['USDA CMDTY,BAKERY,FLR MIX',400, ''],['USDA CMDTY,BAKERY,FLR MIX LOW-FAT',361, ''],['WAFFLES,BTTRMLK,FRZ,RTH',273, '1 waffle, square'],['WAFFLE,BTTRMLK,FRZ,RTH,TSTD',309, '1 oz'],['WAFFLE,BTTRMLK,FRZ,RTH,MICROWAVED',289, '1 waffle'],['WAFFLE,PLN,FRZ,RTH,MICROWAVE',298, '1 waffle, round (4dia)'],['PANCAKES,PLN,FRZ,RTH,MICROWAVE(INC BUTTMLK)',239, '1 oz'],['TOASTER PASTRIES,FRUIT,FRSTD',385, '1 piece'],['TSTR PSTRS,FRT,TSTD (INCL APPL,BLUEBERRY,CHERRY,STRAWBERRY)',409, '1 pastry'],['MUFFIN,BLUEBERRY,COMMLY PREP,LOW-FAT',255, '1 muffin, small'],['PIE CRUST,COOKIE-TYPE,GRAHAM CRACKER,READY CRUST',501, '1 oz'],['PIE CRUST,COOKIE-TYPE,CHOC,READY CRUST',484, '1 crust'],['PIE,DUTCH APPL,COMMLY PREP',290, '.125 pie, 1 pie (1/8 of 9 pie)'],['PIE CRUST,DEEP DISH,FRZ,UNBAKED,MADE W/ ENR FLR',468, '1 pie crust, (average weight)'],['PIE CRUST,REFR,REG,BKD',506, '1 pie crust'],['PIE CRUST,DEEP DISH,FRZ,BKD,MADE W/ ENR FLR',521, '1 pie crust, (average weight)'],['PIE CRUST,REFR,REG,UNBAKED',445, '1 pie crust, (average weight)'],['CRACKERS,WHOLE-WHEAT,RED FAT',416, '1 serving'],['CRACKERS,WHEAT,RED FAT',444, '1 serving'],['WAFFLES,CHOC CHIP,FRZ,RTH',297, '2 waffles'],['TOSTADA SHELLS,CORN',474, '1 piece'],['BREAD,SALVADORAN SWT CHS (QUESADILLA SALVADORENA)',374, '1 serving, (approximate serving size)'],['BREAD,POUND CAKE TYPE,PAN DE TORTA SALVADORAN',390, '1 serving'],['BREAD,PAN DULCE,SWT YEAST BREAD',367, '1 slice, (average weight of 1 slice)'],['KEIKITOS (MUFFINS),LATINO BAKERY ITEM',467, '1 piece'],['CAKE,POUND,BIMBO BAKERIES USA,PANQUE CASERO,HOME BKD STYLE',418, '1 slice'],['PAN DULCE,LA RICURA,SALPORA DE ARROZ,COOKIE-LIKE',445, '1 piece, (1 serving)'],['PASTRY,PASTELITOS DE GUAVA (GUAVA PASTRIES)',379, '1 piece'],['CRACKERS,SNACK,GOYA CRACKERS',433, '1 serving, (1 NLEA serving - about 4 crackers)'],['CRACKERS,CRM,GAMESA SABROSAS',484, '11 crackers, (1 NLEA serving)'],['CRACKERS,CRM,LA MODERNA RIKIS CRM CRACKERS',464, '10 crackers, (1 NLEA serving)'],['GARLIC BREAD,FRZ',350, '1 slice, presliced'],['CINNAMON BUNS,FRSTD (INCLUDES HONEY BUNS)',452, '1 bun'],['CRACKERS,CHS,RED FAT',418, '1 serving'],['CRACKERS,SALTINES,WHL WHEAT (INCLUDES MULTI-GRAIN)',398, '1 serving'],['BREAD,WHEAT,WHITE WHEAT',238, '1 slice'],['BAGEL,WHEAT',250, '1 bagel'],['CREAM PUFF,ECLAIR,CUSTARD OR CRM FILLED,ICED',334, '4 oz'],['TORTILLAS,RTB OR -FRY,FLR,SHELF STABLE',297, '1 tortilla'],['BREAD,POTATO',266, '1 slice'],['BREAD,CHS',408, '1 slice'],['FOCACCIA,ITALIAN FLATBREAD,PLN',249, '1 piece'],['KASHI,TLC,HONEY SESAME CRACKERS',398, '15 cracker'],['KASHI,TLC,ORIGINAL 7-GRAIN CRACKERS',385, '15 crackers'],['KASHI,TLC,COUNTRY CHEDDAR CRACKERS',445, '18 cracker'],['KASHI,TLC,TSTD ASIAGO CRACKERS',420, '15 crackers'],['KASHI,BLUEBERRY WAFFLE',192, '2 pieces'],['KASHI,H2H WOVEN WHEAT CRACKER,ORIGINAL',396, '7 cracker'],['KASHI,ORIGINAL WAFFLE',197, '2 pieces'],['KASHI,TLC,FIRE RSTD VEG CRACKERS',389, '15 crackers'],['KASHI,H2H WOVEN WHEAT CRACKER,RSTD GARLIC',440, '7 cracker'],['AUSTIN,CHEDDAR CHS ON WHEAT CRACKERS,SANDWICH-TYPE',495, '1 package'],['AUSTIN,CHEDDAR CHS ON CHS CRACKERS,SANDWICH-TYPE',494, '1 package'],['AUSTIN,CHOCOLATEY PNUT BUTTER CRACKERS,SANDWICH-TYPE',479, '1 package'],['AUSTIN,GRILLED CHS ON WAFER CRACKERS,SANDWICH-TYPE',493, '1 package'],['AUSTIN,CHEDDAR CHS ON CHS CRACKERS,SANDWICH-TYPE,RED FAT',461, '1 package'],['AUSTIN,PNUT BUTTER ON CHS CRACKERS,SANDWICH-TYPE,RED FAT',461, '1 package'],['AUSTIN,PNUT BUTTER ON TOASTY CRACKERS,SANDWICH-TYPE,RED FAT',463, '1 package'],['AUSTIN,PB & J CRACKERS,SANDWICH-TYPE',484, '1 package'],['BARBARA DEE,WNTR MINTS COOKIES',515, '4 cookies'],['KELLOGGS,BEANATURAL,ORIGINAL 3-BEAN CHIPS',487, '12 chips'],['BEAR NAKED,DOUBLE CHOC COOKIES',423, '1 cookie'],['BEAR NAKED,FRUIT & NUT COOKIES',443, '1 cookie'],['KELLOGGS,EGGO,BISCUIT SCRAMBLERS,BACON,EGG & CHS',258, '1 bscuit'],['KELLOGGS,EGGO,BISCUIT SCRAMBLERS,EGG & CHS',254, '1 bscuit'],['KELLOGGS,EGGO,FRENCH TOASTER STKS,CINN',250, '2 pieces'],['KELLOGGS,EGGO,FRENCH TOASTER STKS,ORIGINAL',239, '2 pieces'],['KELLOGGS,EGGO,MINI MUFFIN TOPS,BLUEBERRY',293, '1 set'],['BEEF JERKY,CHOPD&FORMED',410, '1 oz'],['SNACKS,CORN-BASED,EXTRUDED,CHIPS,PLN',538, '1 oz'],['CORN-BASED,EXTRUDED,CHIPS,BARBECUE-FLAVOR',523, '1 oz'],['CORN-BASED,EXTRUDED,CONES,PLN',510, '1 oz'],['SNACKS,CORN-BASED,EXTRUDED,ONION-FLAVOR',499, '1 oz'],['CORN-BASED,EXTRUDED,PUFFS OR TWISTS,CHEESE-FLAVOR',560, '1 oz'],['CORNNUTS,PLAIN',446, '1 oz'],['CRISPED RICE BAR,CHOC CHIP',404, '1 bar, (1 oz)'],['FRUIT LEATHER,PIECES',359, '1 oz'],['FRUIT LEATHER,ROLLS',371, '1 large'],['GRANOLA BARS,HARD,PLAIN',471, '1 bar'],['GRANOLA BARS,HARD,ALMOND',495, '1 oz'],['GRANOLA BARS,HARD,CHOC CHIP',438, '1 oz'],['GRANOLA BARS,SOFT,UNCOATED,PLN',443, '1 bar, (1 oz)'],['GRANOLA BARS,SOFT,UNCOATED,PNUT BUTTER',426, '1 bar, (1 oz)'],['GRANOLA BARS,SOFT,UNCOATED,RAISIN',448, '1 bar, (1.5 oz)'],['GRANOLA BARS,SOFT,COATD,MILK CHOC COATING,CHOC CHIP',466, '1 bar, (1.25 oz)'],['GRANOLA BARS,SOFT,COATD,MILK CHOC COATING,PNUT BUTTER',508, '1 oz'],['GRANOLA BARS,SOFT,UNCOATED,PNUT BUTTER&CHOC CHIP',432, '1 bar, (1 oz)'],['ORIENTAL MIX,RICE-BASED',506, '1 oz'],['SNACKS,GENERAL MILLS,CHEX MIX,TRADITIONAL FLAVOR',424, '1 oz'],['POPCORN,AIR-POPPED',387, '1 cup'],['SNACKS,POPCORN,OIL-POPPED,MICROWAVE,REG FLAVOR,NO TRANS FAT',583, '1 cup'],['POPCORN,CAKES',384, '1 cake'],['POPCORN,CARAMEL-COATED,W/PNUTS',400, '1 oz, (approx 2/3 cup)'],['POPCORN,CARAMEL-COATED,WO/PNUTS',431, '1 oz'],['POPCORN,CHEESE-FLAVOR',526, '1 cup'],['PORK SKINS,PLAIN',544, '1 oz'],['POTATO CHIPS,BARBECUE-FLAVOR',487, '1 oz'],['POTATO CHIPS,SOUR-CREAM-AND-ONION-FLAVOR',531, '1 oz'],['POTATO CHIPS,MADE FROM DRIED POTATOES,LT',502, '1 oz'],['POTATO CHIPS,MADE FR DRIED POTATOES,SOUR-CREAM&ONION-FLAVOR',547, '1 oz'],['PRETZELS,HARD,PLN,SALTED',384, '1 oz'],['PRETZELS,HARD,CONFECTIONERS COATING,CHOCOLATE-FLAVOR',457, '1 oz'],['SNACKS,M&M MARS,COMBOS SNACKS CHEDDAR CHS PRETZEL',463, '1 oz'],['SNACKS,PRETZELS,HARD,WHOLE-WHEAT INCL BOTH SALTED & UNSALTED',362, '1 oz'],['RICE CAKES,BROWN RICE,PLN',387, '1 cake'],['RICE CAKES,BROWN RICE,BUCKWHEAT',380, '1 cake'],['RICE CAKES,BROWN RICE,SESAME SD',392, '1 cake'],['TORTILLA CHIPS,PLAIN',472, '1 oz'],['Snacks, tortilla chips, nacho cheese',519, '1 oz'],['SNACKS,TORTILLA CHIPS,RANCH-FLAVOR',501, '1 oz'],['TRAIL MIX,REGULAR',462, '1 cup'],['TRAIL MIX,TROPICAL',442, '1 cup'],['TRAIL MIX,REG,W/CHOC CHIPS,SALTED NUTS&SEEDS',484, '1 cup'],['TORTILLA CHIPS,TACO-FLAVOR',480, '1 oz'],['CANDIES,TOOTSIE ROLL,CHOCOLATE-FLAVOR ROLL',387, '1 serving, 6 pieces'],['CANDIES,ALMOND JOY CANDY BAR',479, '1 package, 1.76 oz'],['CANDIES,TWIZZLERS CHERRY BITES',338, '18 pieces'],['CANDIES,NESTLE,BIT-O-HONEY CANDY CHEWS',375, '1 serving, 6 pieces'],['CANDIES,NESTLE,BUTTERFINGER BAR',459, '1 serving, 2.1 oz bar'],['CANDIES,BUTTERSCOTCH',391, '1 oz'],['CANDIES,CAROB,UNSWTND',540, '1 oz'],['CANDIES,CARAMELS',382, '1 package, (2.5 oz)'],['CANDIES,CARAMELLO CANDY BAR',462, '1 bar, 1.25 oz'],['CANDIES, CARAMELS, CHOCOLATE-FLAVOR ROLL',387, '1 piece'],['BAKING CHOC,UNSWTND,LIQ',472, '1 oz'],['Baking chocolate, unsweetened, squares',642, '1 oz, square Bakers'],['CANDIES,CONFECTIONERS COATING,YOGURT',522, '1 cup, chips'],['CANDIES,SEMISWEET CHOC',480, '1 serving'],['CANDIES,SWEET CHOCOLATE',507, '1 oz'],['CANDIES,SWT CHOC COATD FONDANT',366, '1 patty, large'],['CANDIES,HERSHEYS GOLDEN ALMOND SOLITAIRES',570, '13 pieces'],['CANDIES,CONFECTIONERS COATING,BUTTERSCOTCH',539, '1 cup, chips'],['CANDIES,CONFECTIONERS COATING,PNUT BUTTER',529, '1 cup, chips'],['CANDIES,WHITE CHOC',539, '1 bar, (3 oz)'],['ICE CREAMS,VANILLA,LT',180, '1 serving, 1/2 cup'],['ICE CREAMS,VANILLA,RICH',249, '.5 cup'],['ICE CREAMS,FRENCH VANILLA,SOFT-SERVE',222, '.5 cup, (4 fl oz)'],['CANDIES,YORK PEPPERMINT PATTIE',384, '1 patty, 1.5 oz'],['CANDIES,TWIZZLERS NIBS CHERRY BITS',347, '27 pieces'],['CANDIES,SYMPHONY MILK CHOC BAR',531, '1 bar, 1.5 oz'],['DESSERTS,FLAN,CARAMEL CUSTARD,PREPARED-FROM-RECIPE',145, '.5 cup'],['ICE CREAMS,VANILLA',207, '1 serving, 1/2 cup'],['ICE CREAMS,VANILLA,LT,SOFT-SERVE',126, '1 serving, 1/2 cup'],['SHERBET,ORANGE',144, '.5 cup, (4 fl oz)'],['CANDIES,5TH AVENUE CANDY BAR',482, '1 bar, 2 oz'],['CANDIES,FONDANT,PREPARED-FROM-RECIPE',373, '1 oz'],['CANDIES,FUDGE,CHOC,PREPARED-FROM-RECIPE',411, '1 piece'],['CANDIES,FUDGE,CHOC,W/ NUTS,PREPARED-FROM-RECIPE',461, '1 oz'],['CANDIES,FUDGE,PNUT BUTTER,PREPARED-FROM-RECIPE',387, '1 piece'],['CANDIES,FUDGE,VANILLA,PREPARED-FROM-RECIPE',383, '1 oz'],['CANDIES,FUDGE,VANILLA W/ NUTS',435, '1 oz'],['CANDIES,NESTLE,GOOBERS CHOC COVERED PNUTS',512, '1 package, 1.375 oz'],['CANDIES,GUMDROPS,STARCH JELLY PIECES',396, '1 cup, gumdrops'],['CANDIES,HARD',394, '1 oz'],['CANDIES,JELLYBEANS',375, '10 small'],['CANDIES,KIT KAT WAFER BAR',518, '1 bar, (1.5 oz)'],['CANDIES,KRACKEL CHOC BAR',512, '1 bar, 1.45 oz'],['CANDIES,NESTLE,BABY RUTH BAR',459, '1 serving, 2.1 oz bar'],['CANDIES,TWIZZLERS STRAWBERRY TWISTS CANDY',350, '2.5 oz, 2.5 oz'],['SYRUPS,TABLE BLENDS,PANCAKE,W/BUTTER',296, '1 tbsp'],['ICE CREAMS,CHOC,LT',187, '1 serving'],['CANDIES,MARS SNACKFOOD US,MARS ALMOND BAR',467, '1 bar, (1.76 oz)'],['CANDIES,MARSHMALLOWS',318, '1 cup, of miniature'],['CANDIES,HALAVAH,PLAIN',469, '1 oz'],['CANDIES,NESTLE,OH HENRY! BAR',462, '1 bar, 2 oz'],['CANDIES,NESTLE,CHUNKY BAR',475, '1 serving, 1.4 oz bar'],['CANDIES,MILK CHOC',535, '1 bar, miniature'],['PUDDINGS,BANANA,DRY MIX,INST,PREP W/ 2% MILK',105, '.5 cup, From 19191'],['PUDDINGS,BANANA,DRY MIX,REG,PREP W/ 2% MILK',101, '.5 cup, From 19211'],['PUDDINGS,CHOC,DRY MIX,INST,PREP W/ 2% MILK',105, '.5 cup, From 19211'],['BAKING CHOC,MEXICAN,SQUARES',426, '1 tablet'],['CHOCOLATE-FLAVORED HAZELNUT SPRD',541, '1 serving, 2 TBSP'],['CANDIES,MILK CHOC COATD PNUTS',519, '1 cup'],['CANDIES,MILK CHOC COATD RAISINS',390, ''],['SYRUPS,TABLE BLENDS,PANCAKE,RED-CAL',165, '1 serving, 1/4 cup'],['SYRUPS,TABLE BLENDS,PANCAKE',234, '1 cup'],['CANDIES,HERSHEYS POT OF GOLD ALMOND BAR',577, '1 bar, 2.8 oz'],['CANDIES,MILK CHOC,W/ALMONDS',526, '1 bar, (1.45 oz)'],['CANDIES,MILK CHOC,W/RICE CRL',511, '1 bar, (1.4 oz)'],['CANDIES,MARS SNACKFOOD US,MILKY WAY BAR',456, '1 serving, 2.05 oz bar'],['CANDIES,SKOR TOFFEE BAR',535, '1 bar, 1.4 oz'],['TOPPINGS,STRAWBERRY',254, '2 tbsp'],['CANDIES,TRUFFLES,PREPARED-FROM-RECIPE',510, '1 piece'],['BAK CHOC,MARS SNACKFOOD US,M&MS SEMISWT CHOC MINI BAK BITS',517, '1 serving, 0.5 oz, about 1 tbsp'],['CANDIES,MARS SNACKFOOD US,M&MS PNUT CHOC CANDIES',515, '1 serving, 1 singles bag'],['CANDIES,MARS SNACKFOOD US,M&MS MILK CHOC CANDIES',492, '1 package, (1.69 oz)'],['CANDIES,MOUNDS CANDY BAR',486, '1 bar, snack size'],['CANDIES,MR. GOODBAR CHOC BAR',538, '1 bar, (1.75 oz)'],['CANDIES,NESTLE,100 GRAND BAR',468, '1 bar, (1.5 oz)'],['CANDIES,NESTLE,CRUNCH BAR&DSSRT TOPPING',500, '1 bar, 1.55 oz'],['BAKING CHOC,MARS SNACKFOOD US,M&MS MILK CHOC MINI BAK BITS',502, '1 serving, 0.5 oz, about 1 tbsp'],['CANDIES,PEANUT BAR',522, '1 oz'],['CANDIES,PNUT BRITTLE,PREPARED-FROM-RECIPE',486, '1 oz'],['CANDIES,NESTLE,RAISINETS CHOC COVERED RAISINS',422, '1 serving, 1.58 oz bag'],['CANDIES,REESES PNUT BUTTER CUPS',515, '1 package, 0.6 oz 1 cup'],['CANDIES,REESES PIECES CANDY',497, '.25 cup'],['CANDIES,ROLO CARAMELS IN MILK CHOC',474, '1 package, 1 package'],['CANDIES,NESTLE,AFTER EIGHT MINTS',432, '1 serving, 5 mints'],['CANDIES,SESAME CRUNCH',516, '1 oz'],['CANDIES,MARS SNACKFOOD US,SNICKERS BAR',491, '1 bar, (2 oz)'],['CANDIES,MARS SNACKFOOD US,STARBURST FRUIT CHEWS,ORIG FRUIT',408, '1 serving, fun size (8 chews)'],['CANDIES,MARS SNACKFOOD US,M&MS MINIS MILK CHOC CANDIES',502, '1 serving, 1.0 oz tube'],['CANDIES,MARS SNACKFOOD US,3 MUSKETEERS BAR',436, '1 serving, 2.13 oz bar'],['CANDIES,MARS SNACKFOOD US,TWIX CARAMEL COOKIE BARS',502, '1 package, (2 oz)'],['CANDIES,MARS SNACKFOOD US,TWIX PNUT BUTTER COOKIE BARS',536, '1 package, (1.89 oz, 2 bars)'],['CANDIES,WHATCHAMACALLIT CANDY BAR',494, '1 bar, 1.7 oz'],['CHEWING GUM',360, '1 stick'],['CANDIES,SPL DK CHOC BAR',556, '1 bar, 1.45 oz'],['COCOA,DRY PDR,UNSWTND',228, '1 cup'],['COCOA,DRY PDR,UNSWTND,PROC W/ALKALI',220, '1 cup'],['DESSERTS,EGG CUSTARD,BKD,PREPARED-FROM-RECIPE',104, '.5 cup'],['EGG CUSTARDS,DRY MIX',410, '1 package, (3 oz)'],['EGG CUSTARDS,DRY MIX,PREP W/ WHL MILK',122, '.5 cup'],['COCOA,DRY PDR,UNSWTND,HERSHEYS EUROPEAN STYLE COCOA',400, '1 tbsp'],['GELATIN DSSRT,DRY MIX',381, '1 package, (3 oz)'],['GELATIN DSSRT,DRY MIX,PREP W/ H2O',62, '.5 cup'],['GELATIN DSSRT,DRY MIX,RED CAL,W/ ASPRT',198, '1 serving'],['GELATIN DSSRT,DRY MIX,RED CAL,W/ ASPRT,PREP W/ H2O',20, '.5 cup'],['GELATINS,DRY PDR,UNSWTND',335, '1 envelope, (1 tbsp)'],['CANDIES,YORK BITES',394, '15 pieces'],['DESSERTS,MOUSSE,CHOC,PREPARED-FROM-RECIPE',225, '1 recipe, yield'],['PUDDINGS,CHOC,RTE',142, '1 oz'],['PUDDINGS,CHOC,DRY MIX,INST',378, '1 package, (3.5 oz)'],['PUDDINGS,CHOC,DRY MIX,INST,PREP W/ WHL MILK',111, '.5 cup'],['DESSERTS,APPL CRISP,PREPARED-FROM-RECIPE',161, '.5 cup'],['FLAN,CARAMEL CUSTARD,DRY MIX',348, '1 package, (3 oz)'],['DESSERTS,PUDD,CHOC,DRY MIX,REG',362, '1 package, (3.5 oz)'],['PUDDINGS,CHOC,DRY MIX,INST,PREP W/ WHOLE MILK',120, '.5 cup'],['PUDDINGS,CHOC,DRY MIX,REG,PREP W/ 2% MILK',111, '.5 cup'],['PUDDINGS,COCNT CRM,DRY MIX,INST,PREP W/ 2% MILK',107, '.5 cup'],['Puddings, rice, ready-to-eat',108, '1 serving, 4 oz pudding cup'],['PUDDINGS,RICE,DRY MIX',376, '1 package'],['PUDDINGS,RICE,DRY MIX,PREP W/ WHL MILK',121, '.5 cup'],['PUDDINGS,TAPIOCA,DRY MIX',369, '1 package, (3.5 oz)'],['PUDDINGS,TAPIOCA,DRY MIX,PREP W/ WHL MILK',115, '.5 cup'],['PUDDINGS,VANILLA,RTE',130, '1 oz'],['PUDDINGS,VANILLA,DRY MIX,INST',377, '1 package, (3.5 oz)'],['PUDDINGS,VANILLA,DRY MIX,INST,PREP W/ WHL MILK',114, '.5 cup'],['PUDDINGS,LEMON,DRY MIX,INST,PREP W/ 2% MILK',107, '1 serving'],['EGG CUSTARDS,DRY MIX,PREP W/ 2% MILK',112, '.5 cup'],['PUDDINGS,VANILLA,DRY MIX,REG',379, '1 package, (3.12 oz)'],['PUDDINGS,VANILLA,DRY MIX,REG,PREP W/ WHL MILK',113, '.5 cup'],['PUDDINGS,RICE,DRY MIX,PREP W/ 2% MILK',111, '.5 cup'],['PUDDINGS,TAPIOCA,DRY MIX,PREP W/ 2% MILK',105, '.5 cup'],['PUDDINGS,VANILLA,DRY MIX,REG,PREP W/ 2% MILK',101, '.5 cup'],['RENNIN,CHOC,DRY MIX,PREP W/ 2% MILK',85, ''],['RENNIN,VANILLA,DRY MIX,PREP W/ 2% MILK',77, ''],['CANDIES,PRALINE,PREPARED-FROM-RECIPE',485, '1 piece'],['FROZEN NOVELTIES,ICE TYPE,FRUIT,NO SUGAR ADDED',24, '1 bar'],['PUDDINGS,TAPIOCA,RTE',130, '1 oz'],['PUDDINGS,COCNT CRM,DRY MIX,REG,PREP W/ 2% MILK',104, '.5 cup'],['DESSERTS,RENNIN,CHOC,DRY MIX',363, '1 tbsp'],['RENNIN,CHOC,DRY MIX,PREP W/ WHL MILK',96, ''],['DESSERTS,RENNIN,VANILLA,DRY MIX',383, '1 tbsp'],['RENNIN,VANILLA,DRY MIX,PREP W/ WHL MILK',89, ''],['DESSERTS,RENNIN,TABLETS,UNSWTND',84, '1 package, (0.35 oz)'],['FROSTINGS,CHOC,CREAMY,RTE',397, '2 tbsp, creamy'],['FROSTINGS,COCONUT-NUT,RTE',433, '.083 package'],['FROSTINGS,CRM CHEESE-FLAVOR,RTE',415, '2 tbsp, creamy'],['FROSTINGS,VANILLA,CREAMY,RTE',418, '.083 package'],['FLAN,CARAMEL CUSTARD,DRY MIX,PREP W/ 2% MILK',103, ''],['FLAN,CARAMEL CUSTARD,DRY MIX,PREP W/ WHL MILK',113, ''],['PUDDINGS,VANILLA,RTE,FAT FREE',89, '1 serving, 3.5 oz shelf stable'],['PUDDINGS,TAPIOCA,RTE,FAT FREE',94, '1 container, refrigerated 4 oz'],['PUDDINGS,CHOC,RTE,FAT FREE',93, '1 serving, 4 oz'],['CANDIES,HERSHEYS MILK CHOC W/ ALMOND BITES',568, '17 pieces'],['CANDIES,REESES BITES',521, '16 pieces'],['CANDIES,REESES NUTRAGEOUS CANDY BAR',517, '1 bar, 1.92 oz'],['FROSTINGS,CHOC,CREAMY,DRY MIX',389, '1 package'],['FROSTINGS,CHOC,CREAMY,DRY MIX,PREP W/ BUTTER',408, '2 tablespoon'],['CANDIES,HEATH BITES',530, '15 pieces'],['FROSTINGS,VANILLA,CREAMY,DRY MIX',410, '1 package'],['FROSTINGS,WHITE,FLUFFY,DRY MIX',371, '1 package'],['FROSTINGS,WHITE,FLUFFY,DRY MIX,PREP W/H2O',244, '1 package, yields'],['CANDIES,HERSHEYS,ALMOND JOY BITES',563, '18 pieces'],['CANDIES,HERSHEY,REESESTICKS CRISPY WAFERS,PNUT BUT,MILK CHOC',521, '1 serving, 1.5 oz'],['CANDIES,HERSHEY,KIT KAT BIG KAT BAR',520, '1 bar, 1.94 oz'],['CANDIES,REESES,FAST BREAK,MILK CHOC PNT BTR & SFT NUGTS',474, '2 oz, bar'],['CANDIES,MARS SNACKFOOD US,DOVE MILK CHOC',546, '1 serving, 1.30 oz bar'],['CANDIES,MARS SNACKFOOD US,DOVE DK CHOC',520, '1 serving, 1.3 oz bar'],['CANDIES,MARS SNACKFOOD US,MILKYWAYCARAML,MILKCHOCOV',463, '1 serving, 5 pieces'],['CANDIES,MARS SNACKFOOD US,MILKY WAY CARML. DKCHOCCOV',458, '1 serving, 5 pieces'],['ICE CREAMS,VANILLA,LT,NO SUGAR ADDED',169, '1 serving, 1/2 cup'],['FROZEN NOVELTIES,FRUIT & JUC BARS',87, '1 bar, (2.5 fl oz)'],['ICE CREAMS,CHOC,LT,NO SUGAR ADDED',173, '1 serving, 1/2 cup'],['CANDIES,DK CHOC COATD COFFEE BNS',540, '1 serving, 28 pieces'],['SNACKS,GENERAL MILLS,BETTY CROCKER FRT RL UPS,BRY FLV,W/VT C',373, '2 rolls'],['ICE CREAMS,CHOC',216, '1 individual, (3.5 fl oz)'],['ICE CREAMS,STRAWBERRY',192, '1 individual, (3.5 fl oz)'],['SNACKS,FARLEY CANDY,FARLEY FRUIT SNACKS,W/VITAMINS A,C,&E',341, '1 pouch'],['SNACKS,SUNKIST,SUNKIST FRUIT ROLL,STRAWBERRY,W/VITMNS A,C,&E',342, '1 roll'],['SNACKS,FRUIT LEATHER,PIECES,W/VIT C',373, '1 serving'],['CANDIES,MILK CHOC COATD COFFEE BNS',549, '1 oz'],['FROZEN NOVELTIES,ICE TYPE,LIME',128, '.5 cup, (4 fl oz)'],['FROZEN NOVELTIES,ICE TYPE,ITALIAN,REST-PREP',53, '1 fl oz'],['FROZEN NOVELTIES,ICE TYPE,POP',79, '1 serving, 1.75 fl oz pop'],['CANDIES,MARS SNACKFOOD US,M&MS CRISPY CHOC CANDIES',475, '1 serving, 1.6 oz bag'],['FROZEN YOGURTS,VANILLA,SOFT-SERVE',159, '.5 cup'],['FRUIT BUTTERS,APPLE',173, '1 tbsp'],['CANDIES,MARS SNACKFOOD US,SNICKERS MUNCH BAR',536, '1 serving, 1.42 oz bar'],['HONEY',304, '1 cup'],['JAMS AND PRESERVES',278, '1 tbsp'],['JELLIES',266, '1 serving, 1 tbsp'],['CANDIES,FUDGE,CHOC MARSHMLLW,W/ NUTS,PREPARED-BY-RECIPE',474, '1 oz'],['CANDIES,MARS SNACKFOOD US,SNICKERS ALMOND BAR',472, '1 serving, 1.76 oz bar'],['MARMALADE,ORANGE',246, '1 tbsp'],['MOLASSES',290, '1 cup'],['CANDIES,MARS SNACKFOOD US,POP SNICKERS BITE SIZE CANDIES',480, '1 serving, 13 pieces'],['CANDIES,MARS SNACKFOOD US,POP MILKY WAY BITE SIZE',463, '1 serving, 13 pieces'],['CANDIES,MARS SNACK US,POPABLES 3 MUSKETEERS BITE SIZE',443, '1 serving, 15 pieces'],['CANDIES,MARS SNACK US,STARBURST FRUIT CHEWS,FRT&CREM',408, '1 serving, fun size (8 chews)'],['PECTIN,UNSWTND,DRY MIX',325, '1 package, (1.75 oz)'],['PIE FILLINGS,APPL,CND',100, '.125 can'],['CANDIES,MARS SNACKFOOD US,STARBURST FRUIT CHEWS,TROP',409, '1 serving, fun size (8 chews)'],['PIE FILLINGS,CND,CHERRY',115, '.125 can'],['CANDIES,MARS SNACKFOOD US,STARBURST SOUR FRUIT CHEWS',400, '1 serving, 2.07 oz pack'],['PUDDINGS,BANANA,DRY MIX,INST',367, '1 package, (3.5 oz)'],['PUDDINGS,BANANA,DRY MIX,INST,PREP W/ WHL MILK',115, '.5 cup'],['PUDDINGS,BANANA,DRY MIX,REG',366, '1 package, (3.12 oz)'],['PUDDINGS,BANANA,DRY MIX,REG,PREP W/ WHL MILK',111, '.5 cup'],['DESSERTS,PUDD,COCNT CRM,DRY MIX,INST',415, '1 package, (3.5 oz)'],['PUDDINGS,COCNT CRM,DRY MIX,INST,PREP W/ WHL MILK',117, '.5 cup'],['PUDDINGS,COCNT CRM,DRY MIX,REG',434, '1 package, (3.12 oz)'],['PUDDINGS,COCNT CRM,DRY MIX,REG,PREP W/ WHL MILK',114, '.5 cup'],['CANDIES,MARS SNACKFOOD US,COCOAVIA CHOC BAR',539, '1 serving, 0.78 oz bar'],['CANDIES,MARS SNACK US,COCOAVIA BLUEBERRY & ALMOND CHOC BAR',525, '1 serving, 0.78 oz bar'],['CANDIES,MARS SNACKFOOD US,COCOAVIA CRISPY CHOC BAR',517, '1 serving, 0.7 oz bar'],['PUDDINGS,LEMON,DRY MIX,INST',378, '1 package, (3.5 oz)'],['PUDDINGS,LEMON,DRY MIX,INST,PREP W/ WHL MILK',115, '.5 cup'],['PUDDINGS,LEMON,DRY MIX,REG',363, '1 package, (3 oz)'],['PUDDING,LEMON,DRY MIX,REG,PREP W/ SUGAR,EGG YOLK & H2O',109, '.5 cup'],['SUGARS,BROWN',380, '1 tsp, unpacked'],['SUGARS,GRANULATED',387, '1 serving, packet'],['SUGARS,POWDERED',389, '1 cup, unsifted'],['SWEETENERS,TABLETOP,ASPRT,EQ,PACKETS',365, '1 tsp'],['SUGARS,MAPLE',354, '1 tsp'],['SYRUPS,CHOC,HERSHEYS GENUINE CHOC FLAV LITE SYRUP',153, '2 tbsp'],['SYRUPS,CHOC,FUDGE-TYPE',350, '1 cup'],['SYRUPS,CORN,DK',286, '1 cup'],['SYRUPS,CORN,LT',283, '1 cup'],['SYRUPS,CORN,HIGH-FRUCTOSE',281, '1 cup'],['SYRUPS,MALT',318, '1 cup'],['SYRUPS,MAPLE',260, '1 tbsp'],['SYRUPS,SORGHUM',290, '1 cup'],['CANDIES,MARS SNACKFOOD US,SNICKERS CRUNCHER',488, '1 serving, 1.66 oz bar'],['SYRUPS,TABLE BLENDS,PANCAKE,W/2% MAPLE',265, '1 tbsp'],['SYRUPS,TABLE BLENDS,CANE&15% MAPLE',278, '1 cup'],['SYRUPS,TABLE BLENDS,CORN,REFINER,&SUGAR',319, '1 cup'],['CANDIES,MARS SNACKFOOD US,SKITTLES WILD BERRY BITE SIZE',402, '1 serving, 2.1 oz bag'],['TOPPINGS,BUTTERSCOTCH OR CARAMEL',252, '2 tbsp'],['TOPPINGS,MARSHMLLW CRM',322, '1 oz'],['TOPPINGS,PINEAPPLE',253, '1 cup'],['TOPPINGS,NUTS IN SYRUP',448, '1 cup'],['CANDIES,MARS SNACKFOOD US,SKITTLES TROPICAL BITE SIZE CAND',405, '1 serving, 2.1 oz bag'],['CANDIES,MARS SNACKFOOD US,SKITTLES SOURS ORIGINAL',401, '1 serving, 1.80 oz bag'],['CANDIES,MARS SNACKFOOD US,SKITTLES ORIGINAL BITE SIZE CAND',405, '1 serving, 2.17 oz pack'],['FROSTINGS,VANILLA,CREAMY,DRY MIX,PREP W/ MARGARINE',413, '2 tablespoon'],['FROSTINGS,CHOC,CREAMY,DRY MIX,PREP W/ MARGARINE',404, '2 tablespoon'],['FROSTINGS,GLAZE,PREPARED-FROM-RECIPE',341, '1 recipe, yield'],['CANDIES,FUDGE,CHOC MARSHMLLW,PREPARED-FROM-RECIPE',453, '1 piece'],['CANDIES,TAFFY,PREPARED-FROM-RECIPE',397, '1 piece'],['CANDIES,TOFFEE,PREPARED-FROM-RECIPE',560, '1 piece'],['CANDIES,DIVINITY,PREPARED-FROM-RECIPE',364, '1 piece'],['FROZEN NOVELTIES,ICE TYPE,PINEAPPLE-COCONUT',113, '.5 cup, (4 fl oz)'],['FROZEN YOGURTS,CHOC,SOFT-SERVE',160, '.5 cup, (4 fl oz)'],['BANANA CHIPS',519, '1 oz'],['CORNNUTS,BARBECUE-FLAVOR',436, '1 oz'],['CRISPED RICE BAR,ALMOND',458, '1 bar, (1 oz)'],['GRANOLA BARS,SOFT,UNCOATED,CHOC CHIP',418, '1 bar, (1.5 oz)'],['GRANOLA BARS,SOFT,UNCOATED,CHOC CHIP,GRAHAM&MARSHMLLW',427, '1 bar, (1 oz)'],['GRANOLA BARS,SOFT,UNCOATED,NUT&RAISIN',454, '1 bar, (1 oz)'],['SNACKS,BF STKS,SMOKED',550, '1 oz'],['PORK SKINS,BARBECUE-FLAVOR',538, '1 oz'],['FROSTING,GLAZ,CHC,PREP-FRM-RCIP,W/ BUTR,NFSMI RECIP NO. C-32',359, '2 tablespoon'],['POTATO CHIPS,MADE FROM DRIED POTATOES,PLN',545, '1 oz'],['POTATO CHIPS,PLAIN,SALTED',532, '1 oz'],['POTATO CHIPS,MADE FROM DRIED POTATOES,CHEESE-FLAVOR',551, '1 oz'],['SNACKS,RICE CAKES,BROWN RICE,CORN',385, '1 cake'],['RICE CAKES,BROWN RICE,MULTIGRAIN',387, '1 cake'],['SNACKS,POTATO STKS',522, '1 oz'],['RICE CAKES,BROWN RICE,RYE',386, '1 cake'],['SESAME STKS,WHEAT-BASED,SALTED',541, '1 oz'],['CORN CAKES',387, '1 cake'],['GRANOLA BARS,HARD,PNUT BUTTER',483, '1 oz'],['POTATO CHIPS,CHEESE-FLAVOR',496, '1 oz'],['SNACKS,POTATO CHIPS,RED FAT',471, '1 oz'],['SNACKS,POTATO CHIPS,FAT-FREE,MADE W/OLESTRA',274, '1 oz'],['SNACKS,TORTILLA CHIPS,NACHO-FLAVOR,RED FAT',445, '1 oz'],['TORTILLA CHIPS,LOFAT,BKD WO/FAT',415, '1 oz'],['CHEESE PUFFS & TWISTS,CORN BSD,BKD,LOFAT',432, '1 oz'],['SNACKS,GRANOLA BAR,FRUIT-FILLED,NONFAT',342, ''],['POPCORN,SUGAR SYRUP/CARAMEL,FAT-FREE',381, '1 oz'],['POTATO CHIPS,FAT FREE,SALTED',379, '1 oz'],['SNACKS,KELLOGG,KELLOGGS RICE KRISPIES TREATS SQUARES',414, '1 serving'],['SNACKS,KELLOGGS LOFAT GRANOLA BAR,CRUNCHY ALMD/BRN SUGAR',390, '1 bar'],['SNACKS,M&M MARS,KUDOS WHL GRAIN BARS,CHOC CHIP',420, '1 bar'],['SNACKS,KELLOGGS,NUTRI-GRAIN CRL BARS,FRUIT',324, '1 bar'],['SNACKS,TORTILLA CHIPS,LOFAT,MADE W/OLESTRA,NACHO CHS',318, '1 oz'],['SNACKS,POTATO CHIPS,FRM DRIED POTATOES,FAT-FREE,W/ OLESTRA',253, '1 oz'],['TARO CHIPS',498, '1 oz'],['CANDIES,SEMISWEET CHOC,MADE W/BUTTER',477, '1 cup, chips (6 oz package)'],['GELATIN DSSRT,DRY MIX,W/ ADDED VIT C,SODIUM-CITRATE & SALT',381, '1 package, (3 oz)'],['GELATIN DSSRT,DRY MIX,RED CAL,W/ ASPRT,ADDED P,K,NA,VIT C',345, '1 tbsp'],['GELATIN DSSRT,DRY MIX,RED CAL,W/ ASPRT,NO ADDED NA',345, '1 tbsp'],['PUDDINGS,BANANA,DRY MIX,INST,W/ ADDED OIL',386, '1 package, (3.5 oz)'],['PUDDINGS,BANANA,DRY MIX,REG,W/ ADDED OIL',387, '1 package, (3.12 oz)'],['PUDDINGS,LEMON,DRY MIX,REG,W/ ADDED OIL,K,NA',366, '1 package, (3 oz)'],['PUDDINGS,TAPIOCA,DRY MIX,W/ NO ADDED SALT',369, '1 package, (3.5 oz)'],['PUDDINGS,VANILLA,DRY MIX,REG,W/ ADDED OIL',369, '1 package, (3.12 oz)'],['JAMS&PRESERVES,APRICOT',242, '1 tbsp'],['SYRUPS,TABLE BLENDS,PANCAKE,W/2% MAPLE,W/ K',265, '1 cup'],['CORN CAKES,VERY LO NA',387, '1 cake'],['SNACKS,CORN-BASED,EXTRDD,PUFFS OR TWISTS,CHEESE-FLAVOR,UNENR',558, '1 oz'],['SNACKS,CORN-BASE,EXTRUD,CHIPS,BARBECUE-FLAVOR,W/ENR MASA FLR',523, '1 oz'],['POPCORN,AIR-POPPED,WHITE POPCORN',382, '1 cup'],['SNACKS,POPCORN,OIL-POPPED,WHITE POPCORN,SALT ADDED',500, '1 cup'],['POTATO CHIPS,PLN,MADE W/PART HYDR SOYBN OIL,SALTED',536, '1 oz'],['POTATO CHIPS,PLN,MADE W/PART HYDR SOYBN OIL,UNSALTED',536, '1 oz'],['POTATO CHIPS,PLN,UNSALTED',536, '1 oz'],['PRETZELS,HARD,PLN,MADE W/UNENR FLR,SALTED',381, '1 oz'],['PRETZELS,HARD,PLN,MADE W/UNENR FLR,UNSALTED',381, '1 oz'],['SNACKS,PRETZELS,HARD,PLN,MADE W/ ENR FLR,UNSALTED',381, '1 oz'],['RICE CAKES,BROWN RICE,PLN,UNSALTED',387, '1 cake'],['RICE CAKES,BROWN RICE,BUCKWHEAT,UNSALTED',380, '1 cake'],['RICE CAKES,BROWN RICE,MULTIGRAIN,UNSALTED',387, '1 cake'],['RICE CAKES,BROWN RICE,SESAME SD,UNSALTED',392, '1 cake'],['SESAME STKS,WHEAT-BASED,UNSALTED',541, '1 oz'],['TRAIL MIX,REG,UNSALTED',462, '1 cup'],['TRAIL MIX,REG,W/CHOC CHIPS,UNSALTED NUTS&SEEDS',484, '1 cup'],['POTATO CHIPS,WO/SALT,RED FAT',487, '1 oz'],['TORTILLA CHIPS,LOFAT,UNSALTED',416, '1 oz'],['FROZEN NOVELTIES,JUC TYPE,POPSICLE SCRIBBLERS',81, '1 serving, 1.2 fl oz pop'],['SNACKS,TORTILLA CHIPS,NACHO-FLAVOR,MADE W/ENR MASA FLR',498, '1 oz'],['CANDIES,SUGAR-COATED ALMONDS',474, '1 piece'],['COCOA,DRY PDR,HI-FAT OR BRKFST,PLN',486, '1 tbsp'],['COCOA,DRY PDR,HI-FAT OR BRKFST,PROC W/ALKALI',479, '1 tablespoon, Ghirardelli label 2011'],['CANDIES,SOFT FRUIT & NUT SQUARES',390, '3 pieces'],['ICE CREAMS,VANILLA,FAT FREE',138, '.5 cup'],['SWEETENERS,TABLETOP,SUCRALOSE,SPLENDA PACKETS',336, '1 serving, 1 packet'],['FROZEN NOVELTIES,NO SUGAR ADDED,FUDGESICLE POPS',105, '1 serving'],['FROZEN NOVELTIES,FAT FREE FUDGESICLE BARS',127, '1 serving, 1 pop'],['FROZ NOVELTIES,ICE TYPE,SUGAR FREE,ORNGE,CHRY,& GRP POPSICLE',21, '1 serving, 1.75 fl oz pop'],['FRZ NVL, KLONDIKE,SLIM-A-BEAR FUDG BR,98% FT FR,NO SGR ADDED',124, '1 serving, 3.5 fl oz bar'],['ICE CREAMS,BREYERS,ALL NAT LT VANILLA',162, '1 serving, 1/2 cup'],['ICE CREAMS,BREYERS,ALL NAT LT FRENCH VANILLA',173, '1 serving, 1/2 cup'],['ICE CREAMS,BREYERS,98% FAT FREE VANILLA',137, '1 serving, 1/2 cup'],['ICE CREAMS,BREYERS,ALL NAT LT VANILLA CHOC STRAWBERRY',161, '1 serving, 1/2 cup'],['ICE CREAMS,BREYERS,ALL NAT LT MINT CHOC CHIP',196, '1 serving, 1/2 cup'],['ICE CREAMS,BREYERS,NO SUGAR ADDED,BUTTER PECAN',180, '1 serving, 1/2 cup'],['ICE CREAMS,BREYERS,NO SUGAR ADDED,FRENCH VANILLA',154, '1 serving, 1/2 cup'],['ICE CREAMS,BREYERS,NO SUGAR ADDED,VANILLA',143, '1 serving, 1/2 cup'],['ICE CREAMS,BREYERS,NO SUGAR ADDED,VANILLA FUDGE TWIRL',153, '1 serving, 1/2 cup'],['ICE CREAMS,BREYERS,NO SUGAR ADDED,VANILLA CHOC STRAWBERRY',143, '1 serving, 1/2 cup'],['FROZEN NOVELTIES,KLONDIKE,SLIM-A-BEAR CHOC CONE',224, '1 serving, 1 cone'],['FROZEN NOVELTIES,KLONDIKE,SLIM-A-BEAR VANILLA SNDWCH',239, '1 serving, 1 sandwich'],['FROZEN NOVL,KLONDIKE,SLIM-A-BEAR,NO SGR ADDED,STICKLESS BAR',242, '1 serving, 1 bar'],['FROZEN NOVELTIES,NO SUGAR ADDED CREAMSICLE POPS',72, '1 serving, 1 pop'],['FROZEN NOVELTIES,SUGAR FREE,CREAMSICLE POPS',49, '1 serving, 2 pops'],['ICE CREAMS,BREYERS,ALL NAT LT FRENCH CHOC',201, '1 serving, 1/2 cup'],['ICE CREAMS,BREYERS,98% FAT FREE CHOC',136, '1 serving, 1/2 cup'],['ICE CREAMS,BREYERS,NO SUGAR ADDED,CHOC CARAMEL',151, '1 serving, 1/2 cup'],['CANDIES,REESES FAST BREAK,CANDY BAR',495, '1 serving, 1 bar'],['CANDIES,MARS SNACKFOOD US,COCOAVIA CHOC COVERED ALMONDS',573, '1 serving, 1oz pack'],['ICE CREAMS,REG,LO CARBOHYDRATE,VANILLA',216, '1 individual, (3.5 fl oz)'],['ICE CREAMS,REG,LO CARBOHYDRATE,CHOC',237, '1 individual, (3.5 fl oz)'],['CHOCOLATE,DK,45- 59% CACAO SOL',546, '1 oz'],['CHOCOLATE,DK,60-69% CACAO SOL',579, '1 oz'],['CHOCOLATE,DK,70-85% CACAO SOL',598, '1 oz'],['CANDIES,CHOC,DK,NFS (45-59% CACAO SOL 90%; 60-69% CACAO SOL',550, '1 oz'],['SWEETENERS,FOR BAKING,BROWN,CONTAINS SUGAR & SUCRALOSE',388, '1 tbsp'],['SWEETENERS,FOR BAKING,CONTAINS SUGAR & SUCRALOSE',398, '1 tbsp'],['SUGAR,TURBINADO',399, '1 tsp'],['SWEETENERS,SUGAR SUB,GRANULATED,BROWN',347, '1 tsp'],['CANDIES,CRISPY BAR W/ PNUT BUTTER FILLING',542, '1 serving, 1.5 oz'],['SYRUP,MAPLE,CANADIAN',270, '60 milliliter'],['Sweetener, syrup, agave',310, '1 tsp'],['Candies, NESTLE, BUTTERFINGER Crisp',465, '1 piece'],['CANDIES,M&M MARS 3 MUSKETEERS TRUFFLE CRISP',538, '1 serving'],['SYRUPS,CHOC,HERSHEYS SUGAR FREE,GENUINE CHOC FLAV,LITE SYRU',43, '2 tbsp'],['CANDIES,M&M MARS PRETZEL CHOC CANDIES',447, '.25 cup'],['SWEETENER,HERBAL EXTRACT PDR FROM STEVIA LEAF',0, '1 package'],['CANDIES,FRUIT SNACKS,W/ HI VIT C',352, '1 serving'],['AMARANTH GRAIN,UNCKD',371, '1 cup'],['AMARANTH GRAIN,CKD',102, '1 cup'],['ARROWROOT FLOUR',357, '1 cup'],['BARLEY,HULLED',354, '1 cup'],['BARLEY,PEARLED,RAW',352, '1 cup'],['BARLEY,PEARLED,COOKED',123, '1 cup'],['BUCKWHEAT',343, '1 cup'],['BUCKWHEAT GROATS,RSTD,DRY',346, '1 cup'],['BUCKWHEAT GROATS,RSTD,CKD',92, '1 cup'],['BUCKWHEAT FLR,WHOLE-GROAT',335, '1 cup'],['BULGUR,DRY',342, '1 cup'],['BULGUR,COOKED',83, '1 cup'],['CORN GRAIN,YEL',365, '1 cup'],['CORN BRAN,CRUDE',224, '1 cup'],['CORN FLR,WHOLE-GRAIN,YEL',361, '1 cup'],['CORN FLR,MASA,ENR,WHITE',363, '1 cup'],['CORN FLR,DEGERMED,UNENR,YEL',375, '1 cup'],['CORN FLR,MASA,UNENR,WHITE',363, '1 cup'],['CORNMEAL,WHOLE-GRAIN,YEL',362, '1 cup'],['CORNMEAL,DEGERMED,ENR,YEL',370, '1 cup'],['CORNMEAL,SELF-RISING,BOLTED,PLN,ENR,YEL',334, '1 cup'],['CORNMEAL,SELF-RISING,BOLTED,W/WHEAT FLR,ENR,YEL',348, '1 cup'],['CORNMEAL,SELF-RISING,DEGERMED,ENR,YEL',355, '1 cup'],['CORNSTARCH',381, '1 cup'],['COUSCOUS,DRY',376, '1 cup'],['COUSCOUS,COOKED',112, '1 cup, cooked'],['HOMINY,CANNED,WHITE',72, '1 cup'],['MILLET,RAW',378, '1 cup'],['MILLET,COOKED',119, '1 cup'],['OAT BRAN,RAW',246, '1 cup'],['OAT BRAN,COOKED',40, '1 cup'],['QUINOA,UNCKD',368, '1 cup'],['RICE,BROWN,LONG-GRAIN,RAW',370, '1 cup'],['RICE,BROWN,LONG-GRAIN,CKD',111, '1 cup'],['OATS',389, '1 cup'],['RICE,BROWN,MEDIUM-GRAIN,RAW',362, '1 cup'],['RICE,BROWN,MEDIUM-GRAIN,CKD',112, '1 cup'],['RICE,WHITE,LONG-GRAIN,REG,RAW,ENR',365, '1 cup'],['RICE,WHITE,LONG-GRAIN,REG,CKD,ENR',130, '1 cup'],['RICE,WHITE,LONG-GRAIN,PARBLD,ENR,DRY',374, '1 cup'],['RICE,WHITE,LONG-GRAIN,PARBLD,ENR,CKD',123, '1 cup'],['RICE,WHITE,LONG-GRAIN,PRECKD OR INST,ENR,DRY',380, '1 cup'],['RICE,WHITE,LONG-GRAIN,PRECKD OR INST,ENR,PREP',124, '1 cup'],['RICE,WHITE,MEDIUM-GRAIN,RAW,ENR',360, '1 cup'],['RICE,WHITE,MEDIUM-GRAIN,CKD',130, '1 cup'],['RICE,WHITE,SHORT-GRAIN,RAW',358, '1 cup'],['RICE,WHITE,SHORT-GRAIN,CKD',130, '1 cup'],['RICE,WHITE,GLUTINOUS,RAW',370, '1 cup'],['RICE,WHITE,GLUTINOUS,CKD',97, '1 cup'],['RICE,WHITE,STMD,CHINESE RESTAURANT',151, '1 cup, loosely packed'],['RICE BRAN,CRUDE',316, '1 cup'],['RICE FLOUR,WHITE',366, '1 cup'],['RYE GRAIN',338, '1 cup'],['RYE FLOUR,DARK',325, '1 cup'],['RYE FLOUR,MEDIUM',349, '1 cup'],['RYE FLOUR,LIGHT',357, '1 cup'],['SEMOLINA,ENRICHED',360, '1 cup'],['SORGHUM GRAIN',329, '1 cup'],['TAPIOCA,PEARL,DRY',358, '1 cup'],['TRITICALE',336, '1 cup'],['TRITICALE FLR,WHOLE-GRAIN',338, '1 cup'],['WHEAT,HARD RED SPRING',329, '1 cup'],['WHEAT,HARD RED WINTER',327, '1 cup'],['WHEAT,SOFT RED WINTER',331, '1 cup'],['WHEAT,HARD WHITE',342, '1 cup'],['WHEAT,SOFT WHITE',340, '1 cup'],['WHEAT,DURUM',339, '1 cup'],['WHEAT BRAN,CRUDE',216, '1 cup'],['WHEAT GERM,CRUDE',360, '1 cup'],['WHEAT FLOUR,WHOLE-GRAIN',340, '1 cup'],['WHEAT FLR,WHITE,ALL-PURPOSE,ENR,BLEACHED',364, '1 cup'],['WHEAT FLR,WHITE,ALL-PURPOSE,SELF-RISING,ENR',354, '1 cup'],['WHEAT FLR,WHITE,BREAD,ENR',361, '1 cup'],['WHEAT FLR,WHITE,CAKE,ENR',362, '1 cup, unsifted, dipped'],['WHEAT FLR,WHITE,TORTILLA MIX,ENR',405, '1 cup'],['WHEAT,SPROUTED',198, '1 cup'],['WILD RICE,RAW',357, '1 cup'],['WILD RICE,COOKED',101, '1 cup'],['RICE FLOUR,BROWN',363, '1 cup'],['PASTA,CORN,DRY',357, '1 cup'],['PASTA,CORN,COOKED',126, '1 cup'],['PASTA,FRESH-REFRIGERATED,PLN,AS PURCHASED',288, '4.5 oz'],['PASTA,FRESH-REFRIGERATED,PLN,CKD',131, '2 oz'],['PASTA,FRESH-REFRIGERATED,SPINACH,AS PURCHASED',289, '4.5 oz'],['PASTA,FRESH-REFRIGERATED,SPINACH,CKD',130, '2 oz'],['PASTA,HOMEMADE,MADE W/EGG,CKD',130, '2 oz'],['PASTA,HOMEMADE,MADE WO/EGG,CKD',124, '2 oz'],['MACARONI,DRY,ENR',371, '1 cup, elbow shaped'],['MACARONI,COOKED,ENRICHED',158, '1 cup, elbow shaped'],['MACARONI,PROTEIN-FORTIFIED,DRY,ENR,(N X 5.70)',375, '1 cup, small shells'],['MACARONI,PROTEIN-FORTIFIED,CKD,ENR,(N X 5.70)',164, '1 cup, small shells'],['MACARONI,VEG,DRY,ENR',367, '1 cup, spiral shaped'],['MACARONI,VEG,CKD,ENR',128, '1 cup, spiral shaped'],['MACARONI,WHOLE-WHEAT,DRY',348, '1 cup, elbow shaped'],['MACARONI,WHOLE-WHEAT,CKD',124, '1 cup, elbow shaped'],['NOODLES,EGG,DRY,ENRICHED',384, '1 cup'],['NOODLES,EGG,CKD,ENR',138, '1 cup'],['NOODLES,EGG,SPINACH,DRY,ENR',382, '1 cup'],['NOODLES,EGG,SPINACH,CKD,ENR',132, '1 cup'],['NOODLES,CHINESE,CHOW MEIN',475, '.5 cup, dry'],['NOODLES,JAPANESE,SOBA,DRY',336, '2 oz'],['NOODLES,JAPANESE,SOBA,CKD',99, '1 cup'],['NOODLES,JAPANESE,SOMEN,DRY',356, '2 oz'],['NOODLES,JAPANESE,SOMEN,CKD',131, '1 cup'],['NOODLES,FLAT,CRUNCHY,CHINESE RESTAURANT',521, '1 cup'],['SPAGHETTI,DRY,ENRICHED',371, '2 oz'],['SPAGHETTI,CKD,ENR,WO/ SALT',158, '1 cup'],['SPAGHETTI,PROTEIN-FORTIFIED,DRY,ENR (N X 5.70)',375, '2 oz'],['SPAGHETTI,PROTEIN-FORTIFIED,CKD,ENR (N X 5.70)',164, '1 cup'],['SPAGHETTI,WHOLE-WHEAT,DRY',348, '2 oz'],['SPAGHETTI,WHOLE-WHEAT,CKD',124, '1 cup'],['SPAGHETTI,SPINACH,DRY',372, '2 oz'],['SPAGHETTI,SPINACH,COOKED',130, '1 cup'],['WHEAT FLOURS,BREAD,UNENR',361, '1 cup, unsifted, dipped'],['BARLEY FLOUR OR MEAL',345, '1 cup'],['BARLEY MALT FLR',361, '1 cup'],['OAT FLR,PART DEBRANNED',404, '1 cup'],['RICE NOODLES,DRY',364, '2 oz'],['RICE NOODLES,CKD',108, '1 cup'],['QUINOA,CKD',120, '1 cup'],['WHEAT,KAMUT KHORASAN,UNCKD',337, '1 cup'],['WHEAT,KAMUT KHORASAN,CKD',132, '1 cup'],['SPELT,UNCKD',338, '1 cup'],['SPELT,CKD',127, '1 cup'],['TEFF,UNCKD',367, '1 cup'],['TEFF,CKD',101, '1 cup'],['MACARONI,PROTEIN-FORTIFIED,DRY,ENR,(N X 6.25)',374, '1 cup, small shells'],['MACARONI,PROTEIN-FORTIFIED,CKD,ENR,(N X 6.25)',164, '1 cup, small shells'],['NOODLES,EGG,CKD,ENR,W/ SALT',138, '1 cup'],['CORN GRAIN,WHITE',365, '1 cup'],['CORN FLR,WHOLE-GRAIN,BLUE (HARINA DE MAIZ MORADO)',364, '1 tbsp'],['CORN FLR,WHOLE-GRAIN,WHITE',361, '1 cup'],['CORN FLR,MASA,ENR,YEL',363, '1 cup'],['CORNMEAL,WHOLE-GRAIN,WHITE',362, '1 cup'],['SPAGHETTI,CKD,ENR,W/ SALT',157, '1 cup'],['CORNMEAL,DEGERMED,ENR,WHITE',370, '1 cup'],['CORNMEAL,SELF-RISING,BOLTED,PLN,ENR,WHITE',334, '1 cup'],['CORNMEAL,SELF-RISING,BOLTED,W/WHEAT FLR,ENR,WHITE',348, '1 cup'],['CORNMEAL,SELF-RISING,DEGERMED,ENR,WHITE',355, '1 cup'],['HOMINY,CANNED,YELLOW',72, '1 cup'],['RICE,WHITE,LONG-GRAIN,REG,CKD,ENR,W/SALT',130, '1 cup'],['WHEAT FLR,WHITE,ALL-PURPOSE,ENR,CALCIUM-FORTIFIED',364, '1 cup'],['MACARONI,CKD,UNENR',158, '1 cup, elbow shaped'],['NOODLES,EGG,DRY,UNENR',384, '1 cup'],['NOODLES,EGG,CKD,UNENR,WO/ SALT',138, '1 cup'],['SPAGHETTI,DRY,UNENRICHED',371, '2 oz'],['SPAGHETTI,CKD,UNENR,WO/ SALT',158, '1 cup'],['CORNMEAL,DEGERMED,UNENR,YEL',370, '1 cup'],['RICE,WHITE,LONG-GRAIN,REG,RAW,UNENR',365, '1 cup'],['RICE,WHITE,LONG-GRAIN,REG,CKD,UNENR,WO/SALT',130, '1 cup'],['RICE,WHITE,LONG-GRAIN,PARBLD,UNENR,DRY',374, '1 cup'],['RICE,WHITE,LONG-GRAIN,PARBLD,UNENR,CKD',123, '1 cup'],['RICE,WHITE,MEDIUM-GRAIN,RAW,UNENR',360, '1 cup'],['RICE,WHITE,MEDIUM-GRAIN,CKD,UNENR',130, '1 cup'],['RICE,WHITE,SHORT-GRAIN,RAW,UNENR',358, '1 cup'],['RICE,WHITE,SHORT-GRAIN,CKD,UNENR',130, '1 cup'],['SEMOLINA,UNENRICHED',360, '1 cup'],['WHEAT FLR,WHITE,ALL-PURPOSE,UNENR',364, '1 cup'],['MACARONI,DRY,UNENRICHED',371, '1 cup, elbow shaped'],['NOODLES,EGG,CKD,UNENR,W/ SALT',138, '1 cup'],['SPAGHETTI,CKD,UNENR,W/ SALT',157, '1 cup'],['CORNMEAL,DEGERMED,UNENR,WHITE',370, '1 cup'],['SPAGHETTI,PROTEIN-FORTIFIED,CKD,ENR (N X 6.25)',164, '1 cup'],['RICE,WHITE,LONG-GRAIN,REG,CKD,UNENR,W/SALT',130, '1 cup'],['WHEAT FLR,WHITE,ALL-PURPOSE,ENR,UNBLEACHED',364, '1 cup'],['SPAGHETTI,PROTEIN-FORTIFIED,DRY,ENR (N X 6.25)',374, '2 oz'],['WHEAT FLR,WHITE (INDUSTRIAL),9% PROT,BLEACHED,ENR',367, ''],['WHEAT FLR,WHITE (INDUSTRIAL),9% PROT,BLEACHED,UNENR',367, ''],['WHEAT FLR,WHITE (INDUSTRIAL),10% PROT,BLEACHED,ENR',366, ''],['WHEAT FLR,WHITE (INDUSTRIAL),10% PROT,BLEACHED,UNENR',366, ''],['WHEAT FLR,WHITE (INDUSTRIAL),10% PROT,UNBLEACHED,ENR',366, ''],['WHEAT FLR,WHITE (INDUSTRIAL),11.5% PROT,BLEACHED,ENR',363, ''],['WHEAT FLR,WHITE (INDUSTRIAL),11.5% PROT,BLEACHED,UNENR',363, ''],['WHEAT FLR,WHITE (INDUSTRIAL),11.5% PROT,UNBLEACHED,ENR',363, ''],['WHEAT FLR,WHITE (INDUSTRIAL),13% PROT,BLEACHED,ENR',362, ''],['WHEAT FLR,WHITE (INDUSTRIAL),13% PROT,BLEACHED,UNENR',362, ''],['WHEAT FLR,WHITE (INDUSTRIAL),15% PROT,BLEACHED,ENR',362, ''],['WHEAT FLR,WHITE (INDUSTRIAL),15% PROT,BLEACHED,UNENR',362, ''],['MILLET FLR',382, '1 cup'],['SORGHUM FLR,WHOLE-GRAIN',359, '1 cup'],['WHEAT FLR,WHOLE-GRAIN,SOFT WHEAT',332, ''],['SORGHUM FLR,REFINED,UNENR',357, '1 cup'],['FAST FOODS BISCUIT W/ EGG',274, '1 biscuit'],['FAST FOODS,BISCUIT,W/EGG&BACON',305, '1 biscuit'],['FAST FOODS,BISCUIT,W/EGG&HAM',233, '1 biscuit'],['BREAKFAST ITEMS,BISCUIT W/EGG&SAUSAGE',312, '1 item'],['FAST FOODS,BISCUIT W/ EGG & STEAK',277, '1 biscuit'],['FAST FOODS,BISCUIT,W/EGG,CHS,&BACON',301, '1 item'],['FAST FOODS,BISCUIT,W/HAM',342, '1 biscuit'],['FAST FOODS,BISCUIT,W/SAUSAGE',371, '1 item'],['FAST FOODS,CROISSANT,W/EGG&CHS',304, '1 croissant'],['FAST FOODS,CROISSANT,W/EGG,CHS,&BACON',320, '1 croissant'],['FAST FOODS,CROISSANT,W/EGG,CHS,&HAM',296, '1 croissant'],['FAST FOODS,CROISSANT,W/EGG,CHS,&SAUSAGE',308, '1 sandwich'],['FAST FOODS,EGG,SCRAMBLED',212, '2 eggs'],['FAST FOODS,ENG MUFFIN,W/BUTTER',300, '1 muffin'],['FAST FOODS,ENG MUFFIN,W/CHS&SAUSAGE',338, '1 item'],['FAST FOODS,ENG MUFFIN,W/EGG,CHS,&CANADIAN BACON',228, '1 sandwich'],['FAST FOODS,ENG MUFFIN,W/EGG,CHS,&SAUSAGE',286, '1 item'],['FAST FOODS,FRENCH TOAST W/ BUTTER',264, '2 slices'],['FAST FOODS,FRENCH TOAST STKS',340, '3 pieces'],['FAST FOODS,POTATOES,HASH BROWNS,RND PIECES OR PATTY',272, '1 round piece'],['FAST FOODS,BROWNIE',405, '1 brownie, (2 square)'],['FAST FOODS,VANILLA,LT,SOFT-SERVE ICE CRM,W/ CONE',163, '1 item'],['FAST FOODS,COOKIES,ANIMAL CRACKERS',446, '1 box'],['FAST FOODS,COOKIES,CHOC CHIP',423, '1 box'],['FAST FOODS,SUNDAE,CARAMEL',196, '1 sundae'],['FAST FOODS,SUNDAE,HOT FUDGE',180, '1 sundae'],['FAST FOODS,SUNDAE,STRAWBERRY',175, '1 sundae'],['FAST FOODS,CHICK,BREADED&FRIED,DK MEAT (DRUMSTK OR THIGH)',291, '2 pieces'],['FAST FOODS,CHICK,BREADED&FRIED,LT MEAT (BREAST OR WING)',303, '2 pieces'],['FAST FOODS,CHILI CON CARNE',101, '1 cup, (8 fl oz)'],['FAST FOODS,CLAMS,BREADED&FRIED',392, '.75 cup'],['ENTREES,CRAB CAKE',266, '1 cake'],['ENTREES,FISH FILLET,BATTERED OR BREADED,&FRIED',232, '1 fillet'],['FAST FOODS,OYSTERS,BATTERED OR BREADED,&FRIED',265, '6 pieces'],['FAST FOODS,SALAD,VEG,TOSSED,WO/DRSNG',16, '.75 cup'],['FAST FOODS,SALAD,VEG,TOSSED,WO/DRSNG,W/CHS&EGG',47, '1.5 cup'],['FAST FOODS,SALAD,VEG,TOSSED,WO/DRSNG,W/CHICK',48, '1.5 cup'],['FAST FOODS,SALAD,VEG,TOSSED,WO/DRSNG,W/PASTA&SEAFOOD',91, '1.5 cup'],['FAST FOODS,SALAD,VEG,TOSSED,WO/DRSNG,W/SHRIMP',45, '1.5 cup'],['FAST FOODS,SALAD,VEG TOSSED,WO/DRSNG,W/TURKEY,HAM&CHS',82, '1.5 cup'],['FAST FOODS,SCALLOPS,BREADED&FRIED',268, '6 pieces'],['FAST FOODS,SHRIMP,BREADED&FRIED',308, '3 pieces, shrimp'],['FAST FOODS,BURRITO,W/BNS',206, '2 pieces'],['FAST FOODS,BURRITO,W/BNS&CHS',205, '1 each, burrito'],['FAST FOODS,BURRITO,W/BNS&CHILI PEPPERS',202, '2 pieces'],['FAST FOODS,BURRITO,W/ BNS & BF',191, '1 item'],['FAST FOODS,BURRITO,W/BNS,CHS,&BF',180, '1 burrito'],['FAST FOODS,BURRITO,W/BNS,CHS,&CHILI PEPPERS',197, '2 pieces'],['FAST FOODS,BURRITO,W/BF',238, '2 pieces'],['FAST FOODS,BURRITO,W/BF&CHILI PEPPERS',212, '2 pieces'],['FAST FOODS,BURRITO,W/BF,CHS,&CHILI PEPPERS',208, '2 pieces'],['FAST FOODS,BURRITO,W/FRUIT (APPL OR CHERRY)',312, '1 burrito, large'],['FAST FOODS,CHIMICHANGA,W/BF',244, '1 chimichanga'],['FAST FOODS,CHIMICHANGA,W/BF&CHS',242, '1 chimichanga'],['FAST FOODS,CHIMICHANGA,W/BF&RED CHILI PEPPERS',223, '1 chimichanga'],['FAST FOODS,CHIMICHANGA,W/BF,CHS,&RED CHILI PEPPERS',202, '1 chimichanga'],['FAST FOODS,ENCHILADA,W/CHS',196, '1 enchilada'],['FAST FOODS,ENCHILADA,W/CHS&BF',168, '1 enchilada'],['FAST FOODS,ENCHIRITO,W/CHS,BF,&BNS',178, '1 enchirito'],['FAST FOODS,FRIJOLES W/CHS',135, '1 cup'],['FAST FOODS,NACHOS,W/CHS',343, '1 serving'],['FAST FOODS,NACHOS,W/ CHS,BNS,GROUND BF,& TOMATOES',219, '1 serving'],['FAST FOODS,TACO W/ BF,CHS & LETTUCE,HARD SHELL',226, '1 each, taco'],['FAST FOODS,TACO SALAD',141, '1.5 cup'],['FAST FOODS,TACO SALAD W/CHILI CON CARNE',111, '1.5 cup'],['FAST FOODS,TOSTADA,W/BNS&CHS',155, '1 piece'],['FAST FOODS,TOSTADA,W/BNS,BF,&CHS',148, '1 piece'],['FAST FOODS,TOSTADA,W/BF&CHS',193, '1 piece'],['TOSTADA WITH GUACAMOLE',138, '2 pieces'],['FAST FOODS,CHEESEBURGER; SINGLE,REG PATTY; PLN',308, '1 sandwich'],['FAST FOODS,CHEESEBURGER; SINGLE,REG PATTY,W/ CONDMNT',270, '1 item'],['FAST FOODS,CHEESEBURGER; SINGLE,REG PATTY,W/ CONDMNT & VEG',254, '1 sandwich'],['FAST FOODS,CHEESEBURGER; DOUBLE,REG PATTY; PLN',308, '1 item'],['FAST FOODS,CHEESEBURGER; DOUBLE,REG PATTY,W/ CONDMNT & VEG',251, '1 sandwich'],['FAST FOODS,CHEESEBURGER,DOUBLE,REG PATTY & BUN,W/ CONDMNT',282, '1 sandwich'],['FAST FOODS,CHSEBURGER; DBLE,REG,PATTY & BN; W/ CONDMNT & VEG',285, '1 sandwich'],['FAST FOODS,CHEESEBURGER; SINGLE,LRG PATTY; PLN',310, '1 sandwich'],['FAST FOODS,CHESEBURGER; SINGLE,LRG PATTY; W/ CONDMNT & BACON',282, '1 item'],['FAST FOODS,CHEESEBURGER; SINGLE,LRG PATTY; W/ CONDMNT & VEG',206, '1 sandwich'],['FAST FOODS,CHSBURGER; SINGLE,LRG PATTY; W/ CONDMNT,VEG & HAM',286, '1 sandwich'],['FAST FOODS,CHEESEBURGER; DOUBLE,LRG PATTY,W/ CONDMNT & VEG',273, '1 sandwich'],['FAST FOODS,CHEESEBURGER; TRIPLE,REG PATTY; PLN',310, '1 item'],['FAST FOODS,CHICK FILLET SNDWCH,PLN',283, '1 sandwich'],['FAST FOODS,EGG&CHS SNDWCH',233, '1 sandwich'],['FAST FOODS,FISH SNDWCH,W/TARTAR SAU',257, '1 sandwich'],['FAST FOODS,FISH SNDWCH,W/TARTAR SAU&CHS',279, '1 sandwich'],['FAST FOODS,HAMBURGER; SINGLE,REG PATTY; PLN',297, '1 sandwich'],['FAST FOODS,HAMBURGER; SINGLE,REG PATTY; W/ CONDMNT',263, '1 sandwich'],['FAST FOODS,HAMBURGER; SINGLE,REG PATTY; W/ CONDMNT & VEG',254, '1 item'],['FAST FOODS,HAMBURGER; DOUBLE,REG,PATTY; PLN',295, '1 item'],['FAST FOODS,HAMBURGER; DOUBLE,REG PATTY; W/ CONDMNT',268, '1 item'],['FAST FOODS,HAMBURGER; SINGLE,LRG PATTY; PLN',311, '1 sandwich'],['FAST FOODS,HAMBURGER; SINGLE,LRG PATTY; W/ CONDMNT & VEG',235, '1 sandwich'],['FAST FOODS,HAMBURGER; DOUBLE,LRG PATTY; W/ CONDMNT & VEG',239, '1 sandwich'],['FAST FOODS,HAMBURGER,LRG,TRIPLE PATTY,W/CONDMNT',267, '1 sandwich'],['FAST FOODS,HAM&CHS SNDWCH',241, '1 sandwich'],['FAST FOODS,HAM,EGG,&CHS SNDWCH',243, '1 sandwich'],['FAST FOODS,HOTDOG,PLAIN',247, '1 sandwich'],['FAST FOODS,HOTDOG,W/CHILI',260, '1 sandwich'],['FAST FOODS,HOTDOG,W/CORN FLR COATING (CORNDOG)',263, '1 sandwich'],['FAST FOODS,SUBMARINE SNDWCH,COLD CUT BRD W/ LETTUCE & TOMATO',213, '6 inch, sub'],['FAST FOODS,SUBMARINE SNDWCH,RST BF BREAD W/ LETTUCE & TOMATO',156, '6 inch, sub'],['FAST FOODS,SUBMARINE SNDWCH,TUNA BREAD W/ LETTUCE & TOMATO',218, '6 inch, sub'],['FAST FOODS, COLESLAW',153, '1 cup'],['FAST FOODS,CORN ON THE COB W/BUTTER',106, '1 ear'],['FAST FOODS,HUSH PUPPIES',296, '1 piece'],['FAST FOODS,ONION RINGS,BREADED&FRIED',411, '1 package, (18 onion rings)'],['FAST FOODS,POTATO,BKD&TOPPED W/CHS SAU',168, '1 piece'],['FAST FOODS,POTATO,BKD&TOPPED W/CHS SAU&BACON',163, '1 piece'],['FAST FOODS,POTATO,BKD&TOPPED W/CHS SAU&BROCCOLI',133, '1 piece'],['FAST FOODS,POTATO,BKD&TOPPED W/CHS SAU&CHILI',131, '1 piece'],['FAST FOODS,POTATO,BKD&TOPPED W/SOUR CRM&CHIVES',141, '1 piece'],['FST FOODS, POTATO, FRNCH FRIED IN VEG OIL',312, '1 serving, small'],['FAST FOODS,POTATO,MASHED',89, '1 cup'],['SIDE DISHES,POTATO SALAD',114, '.333 cup'],['BURGER KING,VANILLA SHAKE',168, '1 fluid ounce'],['FAST FD,BISCUIT',370, '1 biscuit'],['CHICK-FIL-A,CHICK-N-STRIPS',228, '1 strip'],['CHICK-FIL-A,HASH BROWNS',301, '1 piece'],['SLP,BIG DADDYS LS 16 51% WHL GRN RLLD EDGE CHS PIZZA- FRZ',243, '1 slice, 1/8 per pizza'],['SLP,BIG DADDYS LS 16 51% WHL GRN RLLD TRKY PEPP PZZA- FRZ',248, '1 slice, 1/8 per pizza'],['SLP,TONYS SMARTPIZZA WHL GRAIN 4X6 CHS PIZZA 50/50 CHS- FRZ',233, '1 piece, 4 x 6'],['SLP,TONYS SMARTPIZZA WHL GRN 4X6 PEPP PZZ 50/50 CHEESE- FRZ',238, '1 piece, 4x6'],['SCHOOL LUNCH PIZZA,TONYS BRKFST PIZZA SAUSAGE- FRZ',240, '1 piece, 3.2 oz'],['FAST FOODS,HAMBURGER,LRG,SINGLE PATTY,W/CONDMNT',256, '1 item'],['SUBWAY,RST BF SUB ON WHITE BREAD,W/ LETTUCE & TOMATO',155, '6 inch, sub'],['SUBWAY,COLD CUT SUB ON WHITE BREAD,W/ LETTUCE & TOMATO',214, '6 inch, sub'],['SUBWAY,TUNA SUB ON WHITE BREAD,W/ LETTUCE & TOMATO',221, '6 inch, sub'],['PIZZA,CHS TOPPING,REG CRUST,FRZ,CKD',268, '1 serving, 9 servings per 24 oz package'],['PIZZA,CHS TOPPING,RISING CRUST,FRZ,CKD',260, '1 serving, 6 servings per 29.25 oz package'],['PIZZA,MEAT & VEG TOPPING,REG CRUST,FRZ,CKD',276, '1 serving, 5 servings per 24.2 oz package'],['PIZZA,MEAT & VEG TOPPING,RISING CRUST,FRZ,CKD',271, '1 serving, 6 servings per 34.98 oz package'],['MCDONALDS,HAMBURGER',264, '1 sandwich'],['FAST FOODS,CHICK,BREADED & FRIED,BNLESS PIECES,PLN',307, '6 pieces'],['FAST FOODS,CRISPY CHICK FILET SNDWCH,W/ LETTUCE & MAYO',276, '1 sandwich'],['MCDONALDS, FLT-O-FSH',282, '1 sandwich'],['MCDONALDS, CHEESEBURGER',263, '1 item, 4 oz'],['MCDONALDS,QUARTER POUNDER',244, '1 item'],['MCDONALDS,QUARTER POUNDER W/ CHS',258, '1 item, 7.1 oz'],['MCDONALDS,BIG MAC',257, '1 item, 7.6 oz'],['MCDONALDS,FRENCH FR',323, '1 small, serving'],['WENDYS,CLASSIC SINGLE HAMBURGER,NO CHS',213, '1 item'],['WENDYS,CLASSIC SINGLE HAMBURGER,W/ CHS',221, '1 item'],['WENDYS,JR. HAMBURGER,WO/ CHS',243, '1 item'],['WENDYS,JR. HAMBURGER,W/ CHS',256, '1 item'],['WENDYS,CLASSIC DOUBLE,W/ CHS',241, '1 item'],['WENDYS,HOMESTYLE CHICK FILLET SNDWCH',214, '1 item'],['WENDYS,ULTIMATE CHICK GRILL SNDWCH',179, '1 item'],['WENDYS,CHICK NUGGETS',326, '5 pieces'],['WENDYS,FRENCH FR',301, '1 kids meal, Serving'],['WENDYS,FROSTY DAIRY DSSRT',132, '1 junior, 6 oz. cup'],['BURGER KING,FRENCH FR',280, '1 small, serving'],['BURGER KING,HAMBURGER',261, '1 sandwich'],['BURGER KING, CHSBRGR',286, '1 item'],['BURGER KING,WHOPPER,NO CHS',233, '1 item'],['BURGER KING,WHOPPER,W/ CHS',250, '1 item'],['BURGER KING,DOUBLE WHOPPER,NO CHS',252, '1 item'],['BURGER KING,DOUBLE WHOPPER,W/ CHS',266, '1 item'],['BURGER KING,CHICK STRIPS',292, '1 strip'],['BURGER KING,PREMIUM FISH SNDWCH',260, '1 sandwich'],['BURGER KING,ORIGINAL CHICK SNDWCH',286, '1 sandwich'],['TACO BELL,ORIGINAL TACO W/ BF,CHS & LETTUCE',229, '1 each, taco'],['TACO BELL,SOFT TACO W/ BF,CHS & LETTUCE',206, '1 each, taco'],['TACO BELL,SOFT TACO W/ CHICK,CHS & LETTUCE',189, '1 each, taco'],['TACO BELL,SOFT TACO W/ STEAK',225, '1 item'],['TACO BELL,BEAN BURRITO',209, '1 each, burrito'],['TACO BELL,BURRITO SUPREME W/ BF',183, '1 burrito'],['TACO BELL,BURRITO SUPREME W/ CHICK',179, '1 item'],['TACO BELL,BURRITO SUPREME W/ STEAK',183, '1 item'],['TACO BELL,NACHOS',350, '1 serving'],['TACO BELL,NACHOS SUPREME',223, '1 serving'],['TACO BELL,TACO SALAD',170, '1 item'],['PIZZA HUT 12 CHS PIZZA,HAND-TOSSED CRUST',271, '1 slice'],['PIZZA HUT 12 CHS PIZZA,PAN CRUST',280, '1 slice'],['PIZZA HUT 12 CHS PIZZA,THIN N CRISPY CRUST',303, '1 slice'],['PIZZA HUT 12 PEPPERONI PIZZA,HAND-TOSSED CRUST',280, '1 slice'],['PIZZA HUT 12 PEPPERONI PIZZA,PAN CRUST',298, '1 slice'],['PIZZA HUT 12 SUPER SUPREME PIZZA,HAND-TOSSED CRUST',243, '1 slice'],['DOMINOS 14 CHS PIZZA,CLASSIC HAND-TOSSED CRUST',257, '1 slice'],['DOMINOS 14 CHS PIZZA,ULTIMATE DEEP DISH CRUST',265, '1 slice'],['DOMINOS 14 CHS PIZZA,CRUNCHY THIN CRUST',298, '1 slice'],['DOMINOS 14 PEPPERONI PIZZA,CLASSIC HAND-TOSSED CRUST',273, '1 slice'],['DOMINOS 14 PEPPERONI PIZZA,ULTIMATE DEEP DISH CRUST',283, '1 slice'],['DOMINOS 14 EXTRAVAGANZZA FST PIZZA,CLSSIC HAND-TOSSED CRST',244, '1 slice'],['PAPA JOHNS 14 CHS PIZZA,ORIGINAL CRUST',260, '1 slice'],['PAPA JOHNS 14 PEPPERONI PIZZA,ORIGINAL CRUST',275, '1 slice'],['PAPA JOHNS 14 THE WORKS PIZZA,ORIGINAL CRUST',240, '1 slice'],['PAPA JOHNS 14 CHS PIZZA,THIN CRUST',295, '1 slice'],['LITTLE CAESARS 14 ORIGINAL RND CHS PIZZA,REG CRUST',265, '1 slice'],['LITTLE CAESARS 14 ORIGINAL RND PEPPERONI PIZZA,REG CRUST',273, '1 slice'],['LITTLE CAESARS 14 ORIGINAL RND MEAT & VEG PIZZA,REG CRUST',243, '1 slice'],['LITTLE CAESARS 14 CHS PIZZA,LRG DEEP DISH CRUST',263, '1 slice'],['LITTLE CAESARS 14 PEPPERONI PIZZA,LRG DEEP DISH CRUST',265, '1 slice'],['LITTLE CAESARS 14 CHS PIZZA,THIN CRUST',309, '1 slice'],['PIZZA HUT 14 CHS PIZZA,HAND-TOSSED CRUST',275, '1 slice'],['PIZZA HUT 14 CHS PIZZA,PAN CRUST',276, '1 slice'],['PIZZA HUT 14 CHS PIZZA,THIN N CRISPY CRUST',306, '1 slice'],['PIZZA HUT 14 PEPPERONI PIZZA,HAND-TOSSED CRUST',291, '1 slice'],['PIZZA HUT 14 PEPPERONI PIZZA,PAN CRUST',291, '1 slice'],['PIZZA HUT 14 SUPER SUPREME PIZZA,HAND-TOSSED CRUST',248, '1 slice'],['FAST FD,PIZZA CHAIN,14 PIZZA,CHS TOPPING,REG CRUST',266, '1 slice'],['FAST FD,PIZZA CHAIN,14 PIZZA,CHS TOPPING,THICK CRUST',271, '1 slice'],['FAST FD,PIZZA CHAIN,14 PIZZA,CHS TOPPING,THIN CRUST',302, '1 slice'],['FAST FD,PIZZA CHAIN,14 PIZZA,PEPPERONI TOPPING,REG CRUST',282, '1 slice'],['FAST FD,PIZZA CHAIN,14 PIZZA,PEPPERONI TOPPING,THICK CRUST',287, '1 slice'],['FAST FD,PIZZA CHAIN,14 PIZZA,MEAT & VEG TOPPING,REG CRUST',244, '1 slice'],['FAST FOODS,GRIDDLE CAKE SNDWCH,EGG,CHS,& SAUSAGE',291, '1 item, 7.017 oz'],['FAST FOODS,GRIDDLE CAKE SNDWCH,SAUSAGE',318, '1 item, 4.744 oz'],['FAST FOODS,GRIDDLE CAKE SNDWCH,EGG,CHS,& BACON',272, '1 item, 6.1 oz'],['MCDONALDS,CHICK MCNUGGETS',302, '4 pieces'],['MCDONALDS,BARBEQUE SAU',165, '1 package'],['MCDONALDS,CREAMY RANCH SAU',468, '1.5 oz'],['MCDONALDS,HOT MUSTARD SAU',190, '1 package'],['MCDONALDS,SPICY BUFFALO SAU',142, '1.5 oz'],['MCDONALDS,SWT N SOUR SAU',170, '1 package'],['MCDONALDS,TANGY HONEY MUSTARD SAU',167, '1.5 oz'],['MCDONALDS,HASH BROWN',271, '1 serving, 1 patty'],['MCDONALDS,HOTCAKES (PLAIN)',228, '3 hotcakes, 5.3 oz'],['MCDONALDS,BKD APPL PIE',323, '2.7 oz'],['MCDONALDS,BACON,EGG & CHS MCGRIDDLES',272, '1 item, 5.8 oz'],['MCDONALDS,SAUSAGE MCGRIDDLES',312, '1 item, 4.744 oz'],['MCDONALDS,SAUSAGE,EGG & CHS MCGRIDDLES',283, '1 item, 7 oz'],['MCDONALDS,VANILLA RED FAT ICE CRM CONE',162, '1 item, 3.175 oz'],['MCDONALDS,STRAWBERRY SUNDAE',158, '1 item, 6.279 oz'],['MCDONALDS,HOT CARAMEL SUNDAE',188, '1 item, 6.42 oz'],['MCDONALDS,HOT FUDGE SUNDAE',186, '1 item, 6.314 oz'],['MCDONALDS,PNUTS (FOR SUNDAES)',640, '.3 oz'],['MCDONALDS,MCFLURRY W/ M&MS CANDIES',177, '12 fl oz cup, regular'],['MCDONALDS,MCFLURRY W/ OREO COOKIES',165, '12 fl oz cup, regular'],['MCDONALDS,SAUSAGE BURRITO',262, '1 item, 3.993 oz'],['MCDONALDS,BIG BRKFST',285, '1 item, 9.5 oz'],['MCDONALDS,LOFAT CARAMEL SAU',313, '.8 oz'],['MCDONALDS,DOUBLE CHEESEBURGER',282, '1 sandwich'],['MCDONALDS,DOUBLE QUARTER POUNDER W/ CHS',262, '1 item'],['MCDONALDS,NEWMANS OWN COBB DRSNG',196, '2 fl oz'],['MCDONALDS,NEWMANS OWN CREAMY CAESAR DRSNG',319, '2 fl oz'],['MCDONALDS,NEWMANS OWN LOFAT BALSAMIC VINAIGRETTE',86, '2 fl oz'],['MCDONALDS,NEWMANS OWN RANCH DRSNG',313, '2 fl oz'],['MCDONALDS,BIG MAC (WITHOUT BIG MAC SAUCE)',234, '1 item'],['MCDONALDS,MCCHICKEN SNDWCH',273, '1 sandwich'],['MCDONALDS,MCCHICKEN SNDWCH (WITHOUT MAYONNAISE)',240, '1 item'],['MCDONALDS,EGG MCMUFFIN',228, '1 sandwich'],['MCDONALDS,SAUSAGE MCMUFFIN',333, '1 item, 4 oz'],['MCDONALDS,SAUSAGE MCMUFFIN W/ EGG',274, '1 item, 5.8 oz'],['MCDONALDS,BACON EGG & CHS BISCUIT',304, '1 item, 4.9 oz'],['MCDONALDS,SAUSAGE BISCUIT',376, '1 item, 4.1 oz'],['MCDONALDS,SAUSAGE BISCUIT W/ EGG',311, '1 item, 5.7 oz'],['MCDONALDS,DELUXE BRKFST,W/ SYRUP & MARGARINE',285, '1 item, 14.8 oz'],['MCDONALDS,HOTCAKES & SAUSAGE',294, '1 item'],['MCDONALDS,HOTCAKES (WITH 2 PATS MARGARINE & SYRUP)',272, '1 item'],['MCDONALDS,BACON RANCH SALAD W/ GRILLED CHICK',81, '1 item, 10.8 oz'],['MCDONALDS BACON RANCH SALAD W/ CRISPY CHICK',122, '1 item, 11.3 oz'],['MCDONALDS,BACON RANCH SALAD WO/ CHICK',61, '1 item, 7.8 oz'],['MCDONALDS,SIDE SALAD',20, '1 item, 3.1 oz'],['MCDONALDS,FRUIT N YOGURT PARFAIT',105, '1 item, 5.2 oz'],['MCDONALDS,FRUIT N YOGURT PARFAIT (WITHOUT GRANOLA)',90, '1 item'],['MCDONALDS,FILET-O-FISH (WITHOUT TARTAR SAUCE)',243, '1 item'],['BURGER KING,CROISSANWICH W/ SAUSAGE,EGG & CHS',308, '1 sandwich'],['BURGER KING,CROISSANWICH W/ SAUSAGE & CHS',376, '1 item'],['BURGER KING,CROISSANWICH W/ EGG & CHS',283, '1 item'],['BURGER KING,FRENCH TOAST STKS',349, '1 stick'],['BURGER KING,HASH BROWN ROUNDS',302, '1 piece'],['FAST FOODS,MINIATURE CINN ROLLS',403, '1 each'],['FAST FOODS,HAMBURGER; DOUBLE,LRG PATY; W/ CONDMNT,VEG & MAYO',252, '1 item'],['FT FDS, HAMBRGER; SIN, LRG PATTY; W/ CONDMNTS, VEG, MAYO',226, '1 item'],['FAST FOODS,HMBURGR; SNG,REG PTTY; DBL BN W/ CNDMNT & SPL SAU',259, '1 item'],['FAST FOODS,CHEESEBURGER; DOUBLE,REG PATTY; W/ CONDMNT',282, '1 sandwich'],['FAST FOODS,CHEESEBURGER; DOUBLE,LRG PATTY; W/ CONDMNT',272, '1 item'],['FAST FOODS,CHESEBRGER; SING,LRG PATY; W/ CONDMNT,VEG & MAYO',268, '1 sandwich'],['FAST FOODS,CHEESEBURGER; SINGLE,LRG PATTY; W/ CONDMNT',269, '1 item'],['FAST FDS,CHSEBURGER; DOUBLE,LRG PATTY; W/ CONDMNT,VEG & MAYO',253, '1 item'],['FAST FOODS,CHSBURGR; DBL,RG PTTY; DBL BN W/ CNDMNT & SPL SAU',261, '1 item'],['FAST FOODS,CHICK TENDERS',271, '1 strip'],['MCDONALDS,PREMIUM GRILLED CHICK CLASSIC SNDWCH',183, '1 item, 7 oz'],['MCDONALDS,PREMIUM CRISPY CHICK CLASSIC SNDWCH',228, '1 item'],['MCDONALDS,PREMIUM GRILLED CHICK CLUB SNDWCH',221, '1 item, 7.9 oz'],['MCDONALDS,PREMIUM CRISPY CHICK CLUB SNDWCH',250, '1 item, 9 oz'],['MCDONALDS,PREMIUM GRILLED CHICK RANCH BLT SNDWCH',204, '1 item, 7.1 oz'],['MCDONALDS,PREMIUM CRISPY CHICK RANCH BLT SNDWCH',244, '1 item, 8.5 oz'],['FAST FOODS,BAGEL,W/ EGG,SAUSAGE PATTY,CHS,& CONDMNT',295, '1 item'],['FAST FOODS,BAGEL,W/ BRKFST STEAK,EGG,CHS,& CONDMNT',282, '1 item'],['LIGHT ICE CRM,SOFT SERVE,BLENDED W/ MILK CHOC CANDIES',182, '12 fl oz, cup'],['LIGHT ICE CRM,SOFT SERVE,BLENDED W/ COOKIE PIECES',169, '12 fl oz, cup'],['POPEYES,BISCUIT',401, '1 biscuit'],['POPEYES,COLESLAW',161, '1 package'],['POPEYES,MILD CHICK STRIPS,ANALYZED 2006',271, '1 strip'],['POPEYES,SPICY CHICK STRIPS,ANALYZED 2006',253, '1 strip'],['KFC,BISCUIT',358, '1 biscuit'],['KFC,COLESLAW',144, '1 package'],['KFC,CRISPY CHICK STRIPS',274, '1 strip'],['KFC,POPCORN CHICK',351, '1 piece'],['KFC,FRIED CHICK,ORIGINAL RECIPE,SKN & BREADING',384, ''],['KFC,FRIED CHICK,ORIGINAL RECIPE,BREAST,MEAT NLY,SKN BRDNG RD',149, '1 breast, without skin'],['KFC,FRIED CHICK,ORIGINAL RECIPE,DRUMSTK,MEAT ONLY,SKN BRG RD',175, '1 drumstick, bone and skin removed'],['KFC,FRIED CHICK,ORIGINAL RECIPE,THIGH,MEAT ONLY,SKN BRDNG RD',175, '1 thigh, without skin'],['KFC,FRIED CHICK,ORIGINAL RECIPE,WING,MEAT ONLY,SKN BRDNG RD',216, '1 wing, wing without skin'],['KFC,FRIED CHICK,EX CRISPY,SKN & BREADING',464, ''],['KFC,FRIED CHICK,EX CRISPY,BREAST,MEAT ONLY,SKN & BRDING RMVD',153, '1 breast, without skin'],['KFC,FRIED CHICK,EX CRISPY,DRUMSTK,MEAT ONLY,SKN & BRDNG RMVD',170, '1 drumstick, bone and skin removed'],['KFC,FRIED CHICK,EX CRISPY,THIGH,MEAT ONLY,SKN & BRDING RMVD',179, '1 thigh, without skin'],['KFC,FRIED CHICK,EX CRISPY,WING,MEAT ONLY,SKN & BRDING REMOVD',236, '1 wing, without skin'],['KFC,FRIED CHICK,ORIGINAL RECIPE,BREAST,MEAT & SKN W/ BRDING',231, '1 breast, with skin'],['KFC,FRIED CHICK,ORIGINAL RECIPE,DRUMSTK,MEAT & SKN W/ BRDING',239, '1 drumstick, with skin'],['KFC,FRIED CHICK,ORIGINAL RECIPE,THIGH,MEAT & SKN W/ BREADING',269, '1 thigh, with skin'],['KFC,FRIED CHICK,ORIGINAL RECIPE,WING,MEAT & SKN W/ BREADING',297, '1 wing, with skin'],['KFC,FRIED CHICK,EX CRISPY,BREAST,MEAT & SKN W/ BREADING',268, '1 breast, with skin'],['KFC,FRIED CHICK,EX CRISPY,DRUMSTK,MEAT & SKN W/ BREADING',274, '1 drumstick, with skin'],['KFC,FRIED CHICK,EX CRISPY,THIGH,MEAT & SKN W/ BREADING',309, '1 thigh, with skin'],['KFC,FRIED CHICK,EX CRISPY,WING,MEAT & SKN W/ BREADING',337, '1 wing, with skin'],['POPEYES, CHICK,MILD,BREAST,MEAT ONLY,SKN & BRDING REMOVED',157, '1 breast, without skin'],['POPEYES,FRIED CHICK,MILD,DRUMSTK,MEAT ONLY,SKN & BREADING RE',170, '1 drumstick, bone and skin removed'],['POPEYES,FRIED CHICK,MILD,SKN & BREADING',433, ''],['POPEYES,FRIED CHCK,MILD,THIGH,MEAT ONLY,SKN & BRDING REMOVED',188, '1 thigh, thigh without skin'],['POPEYES,FRIED CHICK,MILD,WING,MEAT ONLY,SKN & BRDING REMOVED',212, '1 wing, without skin, bone and breading'],['POPEYES,FRIED CHICK,MILD,BREAST,MEAT & SKN W/ BREADING',274, '1 breast, with skin'],['POPEYES,FRIED CHICK,MILD,DRUMSTK,MEAT & SKN W/ BREADING',293, '1 drumstick, with skin'],['POPEYES,FRIED CHICK,MILD,THIGH,MEAT & SKN W/ BREADING',310, '1 thigh, with skin'],['POPEYES,FRIED CHICK,MILD,WING,MEAT & SKN W/ BREADING',338, '1 wing, with skin'],['GRILLED CHICK,BACON & TOMO CLB SNDWCH,W/ CHS,LETTUCE,& MAYO',220, '1 sandwich'],['CRISPY CHICK,BACON,& TOMATO CLUB SNDWCH,W/ CHS,LETUCE,& MAYO',257, '1 sandwich'],['YOGURT PARFAIT,LOWFAT,W/ FRUIT & GRANOLA',84, '1 item'],['FAST FOODS,FRIED CHICK,BREAST,MEAT ONLY,SKN & BRDING REMOVED',153, '1 breast, without skin'],['FAST FOODS,FRIED CHICK,DRMSTK,MEAT ONLY,SKN & BRDING REMOVED',172, '1 drumstick, bone and skin removed'],['FAST FOODS,FRIED CHICK,THIGH,MEAT ONLY,SKN & BREDING REMOVED',178, '1 thigh, without skin'],['FAST FOODS,FRIED CHICK,WING,MEAT ONLY,SKN & BREADING REMOVED',215, '1 wing, without skin'],['FAST FOODS,FRIED CHICK,SKN & BREADING FROM ALL PIECES',398, ''],['FAST FOODS,FRIED CHICK,BREAST,MEAT & SKN & BREADING',230, '1 breast, with skin'],['FAST FOODS,FRIED CHICK,DRUMSTK,MEAT & SKN W/ BREADING',267, '1 drumstick, with skin'],['FAST FOODS,FRIED CHICK,THIGH,MEAT & SKN & BREADING',274, '1 thigh, with skin'],['FAST FOODS,FRIED CHICK,WING,MEAT & SKN & BREADING',310, '1 wing, with skin'],['DIGIORNO PIZZA,CHS TOPPING,CHS STUFFED CRUST,FRZ,BKD',279, '1 slice, 1/4 of pie'],['DIGIORNO PIZZA,CHS TOPPING,RISING CRUST,FRZ,BKD',256, '1 slice, 1/4 of pie'],['DIGIORNO PIZZA,CHS TOPPING,THIN CRISPY CRUST,FRZ,BKD',247, '1 slice, 1/4 of pie'],['DIGIORNO PIZZA,PEPPERONI TOPPING,CHS STUFFED CRUST,FRZ,BKD',279, '1 slice, 1/4 of pie'],['DIGIORNO PIZZA,PEPPERONI TOPPING,RISING CRUST,FRZ,BKD',265, '1 slice, 1/4 of pie'],['DIGIORNO PIZZA,PEPPERONI TOPPING,THIN CRISPY CRUST,FRZ,BKD',283, '1 slice, 1/4 of pie'],['DIGIORNO PIZZA,SUPREME TOPPING,RISING CRUST,FRZ,BKD',255, '1 slice, 1/4 of pie'],['DIGIORNO PIZZA,SUPREME TOPPING,THIN CRISPY CRUST,FRZ,BKD',255, '1 slice, 1/4 of pie'],['FAST FD,PIZZA CHAIN,14 PIZZA,SAUSAGE TOPPING,THICK CRUST',282, '1 slice'],['FAST FD,PIZZA CHAIN,14 PIZZA,SAUSAGE TOPPING,THIN CRUST',321, '1 slice'],['FAST FD,PIZZA CHAIN,14 PIZZA,SAUSAGE TOPPING,REG CRUST',280, '1 slice'],['FAST FD,PIZZA CHAIN,14 PIZZA,PEPPERONI TOPPING,THIN CRUST',331, '1 slice'],['FAST FOODS,TACO W/ BF,CHS & LETTUCE,SOFT',206, '1 each, taco'],['FAST FOODS,TACO W/ CHICK,LETTUCE & CHS,SOFT',189, '1 each, taco'],['FAST FOODS,QUESADILLA,W/ CHICK',294, '1 each, quesadilla'],['FAST FDS,GRILLED CHICK FILET SNDWCH,W/ LETTUCE,TOMATO & SPRD',182, '1 sandwich'],['PIZZA HUT 14 PEPPERONI PIZZA,THIN N CRISPY CRUST',333, '1 slice'],['DOMINOS 14 PEPPERONI PIZZA,CRUNCHY THIN CRUST',328, '1 slice'],['DOMINOS 14 SAUSAGE PIZZA,CRUNCHY THIN CRUST',319, '1 slice'],['DOMINOS 14 SAUSAGE PIZZA,CLASSIC HAND-TOSSED CRUST',273, '1 slice'],['DOMINOS 14 SAUSAGE PIZZA,ULTIMATE DEEP DISH CRUST',277, '1 slice'],['PIZZA HUT 14 SAUSAGE PIZZA,THIN N CRISPY CRUST',323, '1 slice'],['PIZZA HUT 14 SAUSAGE PIZZA,HAND-TOSSED CRUST',287, '1 slice'],['PIZZA HUT 14 SAUSAGE PIZZA,PAN CRUST',287, '1 slice'],['KASHI PIZZA,RSTD VEG',224, '.33 pizza'],['KASHI Pizza, Mushroom Trio & Spinach',224, '.33 pizza'],['KASHI PIZZA,MARGHERITA',230, '.33 pizza'],['KASHI PIZZA,MEDITERRANEAN',242, '.33 pizza'],['KASHI PIZZA,FOUR CHS',240, '.33 pizza'],['PIZZA,CHS TOPPING,THIN CRUST,FRZ,CKD',263, '1 slice'],['BURGER KING,DOUBLE CHEESEBURGER',282, '1 sandwich'],['WENDYS,DOUBLE STACK,W/ CHS',285, '1 sandwich'],['WENDYS,CRISPY CHICK SNDWCH',278, '1 sandwich'],['BURGER KING,ONION RINGS',417, '1 small'],['WENDYS,DAVES HOT N JUICY 1/4 LB,SINGLE',268, '1 sandwich'],['FAST FD,PIZZA CHAIN,14 PIZZA,CHS TOPPING,STUFFED CRUST',274, '1 slice, 1/8 pizza'],['PIZZA HUT 14 CHS PIZZA,STUFFED CRUST',274, '1 slice'],['KASHI PIZZA,GREEK TZATZIKI,SINGLE SERVE',223, '1 Pizza'],['KASHI PIZZA,TIKKA MASALA,SINGLE SERVE',212, '1 Pizza'],['MORNINGSTAR FARMS PIZZA,BAJA BLACK BEAN,SINGLE SERVE',252, '1 Pizza'],['MORNINGSTAR FARMS GARDEN VEGGIE PATTIES,FRZ,UNPREP',176, '1 cup'],['MORNINGSTAR FARMS VEGGIE DOG,FRZ,UNPREP',126, '1 Link'],['MORNINGSTAR FARMS GRILLERS BURGER STYLE REC CRMBL,FRZ,UNPREP',143, '1 cup'],['WORTHINGTON FOODS,MORNINGSTAR FARMS BETTERN BURGERS,FRZ',132, '1 Burger'],['WORTHINGTON FOODS,MORNINGSTAR FARMS BRKFST PATTIES',210, '1 patty'],['WORTHINGTON FOODS,MORNINGSTAR FARMS,SPICY BLACK BEAN BURGER',190, '1 Burger'],['LOMA LINDA BIG FRANKS,CND,UNPREP',218, '1 link'],['MACARONI & CHS,CND ENTREE',82, '1 serving'],['SPAGHETTI W/ MEAT SAU,FRZ ENTREE',90, '1 serving'],['BEEF MACARONI W/ TOMATO SAU,FRZ ENTREE,RED FAT',113, '1 serving'],['PASTA W/SLICED FRANKS IN TOMATO SAU,CND ENTREE',90, '1 serving, (1 cup)'],['TURKEY POT PIE,FRZ ENTREE',176, '1 package, yields'],['BEEF POT PIE,FRZ ENTREE,PREP',220, '1 pie, cooked (average weight)'],['HOT POCKETS,CROISSANT POCKTS CHIK,BROC&CHDR STUFD SNDWCH,FRZ',235, '1 serving, (1 hot pocket)'],['HOT POCKETS HAM N CHS STUFFED SNDWCH,FRZ',241, '1 serving, (1 hot pocket)'],['RAVIOLI,CHEESE-FILLED,CND',77, '1 cup'],['RAVIOLI,MEAT-FILLED,W/ TOMATO SAU OR MEAT SAU,CND',97, '1 cup'],['TORTELLINI,PASTA W/ CHS FILLING,FRESH-REFRIGERATED',307, '.75 cup'],['PIZZA,PEPPERONI TOPPING,REG CRUST,FRZ,CKD',296, '1 serving'],['CHILI CON CARNE W/BNS,CND ENTREE',107, '1 cup'],['BEEF STEW,CANNED ENTREE',99, '1 cup, (1 serving)'],['CHICKEN POT PIE,FRZ ENTREE,PREP',204, '1 pie'],['BEEF,CORNED BF HASH,W/ POTATO,CND',164, '1 cup'],['LASAGNA,CHS,FRZ,PREP',130, '1 cup, 1 serving'],['CHILI,NO BNS,CND ENTREE',118, '1 cup'],['SPAGHETTI,W/ MEATBALLS IN TOMATO SAU,CND',100, '1 cup'],['PASTA W/ TOMATO SAU,NO MEAT,CND',70, '1 serving, (1 NLEA serving)'],['LASAGNA W/ MEAT & SAU,LOW-FAT,FRZ ENTREE',101, '1 package'],['LASAGNA W/ MEAT & SAU,FRZ ENTREE',124, '1 piece, side'],['BURRITO,BF & BEAN,FRZ',239, '1 burrito, frozen'],['BURRITO, BEAN AND CHEESE, FROZEN',221, '1 burrito'],['MACARONI & CHS,CND,MICROWAVABLE',134, '7.5 oz, 1 serving'],['BURRITO,BF & BEAN,MICROWAVED',298, '1 burrito, cooked'],['CAMPBELLS,SPAGHETTIOS,MINI BF RAVIOLI IN MEAT SAU',99, '1 cup'],['CAMPBELLS,SPAGHETTIOS,SPAGHETTI IN TOMATO & CHS SAU',80, '1 cup, (1 serving)'],['CAMPBELLS,SPAGHETTIOS,SPAGHETTIOS ORIGINAL',67, '1 cup, (1 serving)'],['CAMPBELLS,SPAGHETTIOS,SPAGHETTIOS A TO ZS',67, '1 cup, (1 serving)'],['CAMPBELLS,SPAGHETTIOS,SPAGHETTIOS IN MEAT SAU',69, '1 cup, (1 serving)'],['CAMPBELLS,SPAGHETTIOS,SPAGHETTIOS PLUS CA',67, '1 cup, (1 serving)'],['CAMPBELLS,SPAGHETTIOS RAVIOLIOS BF RAVIOLI IN MEAT SAU',106, '1 cup, (1 serving)'],['SPAGHETTIOS,SPAGHETTIOS W/ MEATBALLS',95, '1 cup, (1 serving)'],['SPAGHETTIOS,SPAGHETTIOS W/ SLICED FRANKS',87, '1 cup, (1 serving)'],['CAMPBELLS,SPAGHETTIOS,SPAGHETTIOS A TO ZS W/ MEATBALLS',95, '1 cup, (1 serving)'],['SUPPER BAKES MEAL,CHEESY CHICK W/ PASTA (CHICK NOT INCLUDED)',198, '.167 box, (NLEA serving size)'],['SUPPER BAKES MEAL KITS,CREAMY STROGANOFF SAU W/ PASTA',147, '1 serving'],['SUPPER BAKES MEAL KITS,GARLIC CHICK W/ PASTA',220, '.167 box, (NLEA serving)'],['SUPPER BAKES MEAL KITS,HERB CHICK W/ RICE',197, '.167 box, (NLEA serving)'],['SUPPER BAKES MEAL KITS,LEMON CHICK W/ HERB RICE',210, '1 serving, (NLEA serving)'],['SUPPER MEAL KITS,SAVORY PORK CHOPS W/ HERB STUFFING',181, '1 serving'],['SUPPER BAKES MEAL KITS,SOUTHWESTERN-STYLE CHICK W/RICE',189, '.167 box, (NLEA serving)'],['SUPPER BAKES MEAL,CHICK W/ STUFFING (CHICK NOT INCLUDED)',190, '1 serving, 1/6 box'],['SWANSON,CHICK A LA KING',71, '1 can, (1 serving)'],['SWANSON,CHICK & DUMPLINGS',93, '1 cup, (1 serving)'],['EGG ROLLS,PORK,REFR,HTD',222, '1 roll'],['EGG ROLLS,CHICK,REFR,HTD',197, '1 roll'],['EGG ROLLS,VEG,FRZ,PREP',214, '1 egg roll'],['LASAGNA,VEG,FRZ,BKD',139, '1 serving'],['TKY,STUFFING,MSHD POTATO W/GRAVY,ASSORTED VEG,FRZ,MICROWAVE',128, '1 serving'],['RICE BOWL W/ CHICK,FRZ ENTREE,PREP',126, '1 bowl'],['MACARONI & CHS DINNER W/ DRY SAU MIX,BOXED,UNCKD',379, '1 serving, (makes about 1 cup prepared)'],['MAC & CHS,DRY MIX,PREP W/ 2% MILK & 80% STK MARGARINE DRY MX',190, '1 cup'],['HOT POCKETS,MEATBALLS & MOZZARELLA STUFFED SNDWCH,FRZ',253, '1 hot pocket, (1 NLEA serving)'],['LEAN POCKETS,HAM N CHEDDAR',230, '1 hot pocket, (1 NLEA serving)'],['LEAN POCKETS,MEATBALLS & MOZZARELLA',240, '1 each'],['CAMPBELLS,SPAGHETTIOS ORIGINAL,EASY OPEN',70, '1 can, (1 serving)'],['CAMPBELLS,SPAGHETTIOS,W/ MEATBALLS -',87, '1 can, (1 serving)'],['CHILI W/ BNS,MICROWAVABLE BOWLS',100, '1 cup'],['MACARONI & CHS,FRZ ENTREE',149, '1 cup'],['POTATO SALAD W/ EGG',157, '.5 cup'],['PULLED PORK IN BARBECUE SAU',168, '1 cup'],['CORN DOGS,FRZ,PREP',250, '1 corndog'],['CHICKEN,NUGGETS,DK & WHITE MEAT,PRECKD,FRZ,NOT REHTD',260, '1 serving'],['CHICKEN,NUGGETS,WHITE MEAT,PRECKD,FRZ,NOT REHTD',261, '1 serving'],['RAVIOLI,CHS W/ TOMATO SAU,FRZ,NOT PREP,INCL REG & LT ENTREES',111, '1 cup'],['LASAGNA W/ MEAT SAU,FRZ,PREP',135, '1 piece, side'],['CHICKEN TENDERS,BREADED,FRZ,PREP',240, '1 piece'],['KASHI BLACK BEAN MANGO,FRZ,UNPREP',111, '1 EntrΘe'],['KASHI,CHICK & CHIPOTLE BBQ SAU W/ MANGO,FRZ ENTREE',108, '1 package'],['KASHI,CHICK ENCHILADA W/ ANCHO SAU,FRZ ENTREE',111, '1 package'],['KASHI,STEAM MEAL,CHICK FETTUCCINE,FRZ ENTREE',99, '1 package'],['KASHI,CHICK FLORENTINE,FRZ ENTREE',106, '1 package'],['KASHI,CHICK PASTA POMODORO,FRZ ENTREE',100, '1 package'],['KASHI,LEMONGRASS COCNT CHICK,FRZ ENTREE',104, '1 package'],['KASHI MAYAN HARVEST BAKE,FRZ,UNPREP',125, '1 EntrΘe'],['KASHI PESTO PASTA PRIMAVERA,FRZ,UNPREP',101, '1 EntrΘe'],['KASHI,PILAF,7 WHL GRAIN,UNPREP',375, '.5 cup'],['KASHI,RED CURRY CHICK,FRZ ENTREE',110, '1 package'],['KASHI,STEAM MEAL,RSTD GARLIC CHICK FARFALLE,FRZ ENTREE',103, '1 package'],['KASHI,STEAM MEAL,SESAME CHICK,FRZ ENTREE',110, '1 package'],['KASHI,SOUTHWEST STYLE CHICK,FRZ ENTREE',109, '1 package'],['KASHI SPICY BLACK BEAN ENCHILADA,FRZ,UNPREP',108, '1 EntrΘe'],['KASHI SPINACH ARTICHOKE PASTA,FRZ,UNPREP',111, '1 EntrΘe'],['KASHI,SWT & SOUR CHICK,FRZ ENTREE',113, '1 package'],['KASHI THREE CHS PENNE,FRZ,UNPREP',126, '1 EntrΘe'],['KASHI,TUSCAN VEGGIE BAKE,FRZ ENTREE',90, '1 package'],['RICE & VERMICELLI MIX,CHICK FLAVOR,UNPREP',358, '.333 cup'],['RICE & VERMICELLI MIX,CHICK FLAVOR,PREP W/ 80% MARGARINE',136, '1 cup'],['BEEF,SHLDR POT RST OR STK,BNLS,LN & FAT,0 FAT,ALL GRDS,R',130, '3 oz'],['BEEF,SHRT LOIN,PRTRHS STEAK,LN&FAT,1/8FAT,ALL GRDS,RAW',214, '3 oz'],['BEEF,SHRT LN,PRTRHS STK,LN & FAT,1/8 FAT,ALL GRDS,CKD,GRLLD',276, '3 oz'],['BEEF,SHRT LOIN,PRTRHS STEAK,LN&FAT,1/8FAT,SEL,RAW',208, '3 oz'],['BEEF,SHRT LOIN,PRTRHS STK,L & F,1/8 F,SEL,CKD,GRILLED',263, '3 oz'],['BEEF,SHRT LOIN,T-BONE STEAK,LN&FAT,1/8FAT,ALL GRDS,RAW',223, '3 oz'],['BEEF,SHRT LN,T-BNE STEK,LN & FAT,1/8 FAT,ALL GRDS,CKD,GRLLD',289, '3 oz'],['BEEF,SHRT LOIN,T-BONE STEAK,LN&FAT,1/8FAT,SEL,RAW',215, '3 oz'],['BEEF,SHRT LOIN,T-BONE STEAK,LN & FAT,1/8 FAT,SEL,CKD,GRLLD',281, '3 oz'],['BEEF,RND,KNUCKLE,TIP SIDE,STEAK,LN & FAT,0 FAT,CHOIC,RAW',133, '3 oz'],['BF,RND,KNUCKLE,TIP SIDE,STEAK,LN & FAT,0 FAT,CH,CKD,GRILLED',174, '1 steak'],['BEEF,RND,KNUCKLE,TIP SIDE,STEAK,LN & FAT 0 FAT,SEL,RAW',124, '3 oz'],['BF,RND,KNUCKLE,TIP SIDE,STEAK,LN & FAT,0 FAT,SE,CKD,GRILLED',160, '1 serving, (3 oz)'],['BF,CHK,CLOD,SHLDR TENDER,MEDALLION,LN & FAT,0 FAT,CHOIC,RAW',145, '1 medallion'],['BF,CHK,CLOD,SHDR TNDR,MED,LN & FAT,0 FAT,CH,CKD,GRILLED',181, '1 medallion'],['BF,CHK,CLOD,SHLDR TENDER,MEDALLION,LN & FAT,0 FAT,SEL,RAW',142, '1 medallion'],['BEEF,CHUCK,SHLDR CLOD,TOP & CNTR ,STK,LN & FAT,0 FAT,CH,RAW',143, '3 oz'],['BF,CHK,SHLDR CLOD,TOP & CNTR,STK,LN & FAT,0 FAT,CH,CKD,GRLD',184, '1 serving, (3 oz)'],['BF,CHUCK,SHLDR CLOD, TOP & CNTR,STK,LN & FAT,0 FAT,SEL,RAW',140, '3 oz'],['BF,CHK, CLOD,TOP & CNTR,STK,LN & FAT,0 FAT,SEL,CKD,GRLD',176, '1 steak'],['BF,CHK,SHLDR CLOD,TOP BLADE,STEAK,LN & FAT,0 FAT,CHOIC,RAW',182, '3 oz'],['BF,CHK,CLOD,TOP BLADE,STEAK,LN & FAT,0 FAT,CH,CKD,GRILLED',228, '1 serving, (3 oz)'],['BF,CHUCK,SHLDR CLOD,TOP BLADE,STEAK,LN & FAT,0 FAT,SEL,RAW',166, '3 oz'],['BF,CHK,CLOD,TOP BLADE,STEAK,LN & FAT,0 FAT,SEL,CKD,GRILLED',212, '1 serving, (3 oz)'],['BEEF,RND,KNUCKLE,TIP CNTR,STEAK,LN & FAT,0 FAT,CHOIC,RAW',150, '3 oz'],['BF,RND,KNUCKLE,TIP CNTR,STK,LN & FAT,0 FAT,CHOIC,CKD,GRLD',188, '3 oz'],['BEEF,RND,KNUCKLE,TIP CNTR,STEAK,LN & FAT,0 FAT,SEL,RAW',137, '3 oz'],['BF,RND,KNUCKLE,TIP CNTR,STEAK,LN & FAT,0 FAT,SE,CKD,GRILLED',162, '3 oz'],['BF,RND,OUTSIDE RND,BTTM RND,STEAK,LN & FAT,0 FAT,CHOIC,RAW',150, '3 oz'],['BF,RND,OUT RND,BTTM RND,STK,LN & FAT,0 FAT,CH,CKD,GRILLED',191, '1 serving, (3 oz)'],['BEEF,RND,OUTSIDE RND,BTTM RND,STEAK,LN & FAT,0 FAT,SEL,RAW',129, '3 oz'],['BEEF,RND,OUT RND,BTTM RND,STK,LN & FAT,0 FAT,SEL,CKD,GRLD',166, '1 serving, (3 oz)'],['BF,CHK,CLD,SHLDR TNDR,MEDALLION,LN & FAT,0 FAT,ALL GRDS,RAW',144, '1 medallion'],['BF,CHK,CLD,SHDR TNDR,MED,LN & FAT,0 FAT,ALL GRDS,CK,GRLD',177, '1 medallion'],['BEEF,RND,KNUCKLE,TIP SIDE,STEAK,LN & FAT,0 FAT,ALL GRDS,RAW',129, '3 oz'],['BF,RND,KNUCK,TIP SIDE,STK,LN & FAT,0 FAT,ALL GRDS,CKD,GRLD',168, '1 serving, (3 oz)'],['BF,CHUCK,CLOD,TOP & CNTR,STEAK,LN & FAT,0 FAT,ALL GRDS,RAW',141, '3 oz'],['BEEF,CHCK,CLOD,SHLDR TOP&CNTR STKS,LN & FT,0,ALL GRDS,GRLD',182, '1 serving, (3 oz)'],['BEEF,CHUCK,CLOD,TOP BLADE,STEAK,LN & FAT,0 FAT,ALL GRDS,RAW',176, '3 oz'],['BF,CHUCK,CLOD,TOP BLADE,STK,LN & FAT,0 FAT,ALL,CKD,GRLD',222, '1 serving, (3 oz)'],['BEEF,RND,KNUCKLE,TIP CNTR,STEAK,LN & FAT,0 FAT,ALL GRDS,RAW',143, '3 oz'],['BF,RND,KNUCKLE,TIP CNTR,STK,LN & FAT,0 FAT,ALL,CKD,GRLD',177, '1 steak'],['BF,RND,OUTSIDE RND,BTTM RND,STEAK,LN & FAT,0 FAT,ALL,RAW',142, '3 oz'],['BF,RND,OUT RND,BTTM RND,STK,LN & FAT,0 FAT,ALL GRDS,CK,GRLD',182, '1 serving, (3 oz)'],['BF,CHK, CLOD,SHLDR TENDER,MED,LN & FAT,0 FAT,SE,CKD,GRILLED',172, '1 medallion'],['BEEF,CHUCK,SHRT RIBS,BNLESS,LN,0 FAT,CHOIC,RAW',175, '3 oz'],['BEEF,CHUCK,SHRT RIBS,BNLESS,LN,0 FAT,SEL,RAW',161, '3 oz'],['BEEF,CHUCK,SHRT RIBS,BNLESS,LN,0 FAT,ALL GRDS,RAW',169, '3 oz'],['BEEF,CHUCK EYE COUNTRY-STYLE RIBS,BNLESS,LN,0 FAT,CHOIC,CKD',234, '3 oz'],['BEEF,CHUCK EYE COUNTRY-STYLE RIBS,BNLESS,LN,0 FAT,SEL,CKD,B',221, '3 oz'],['BF,CHK EYE CNTRY-STL RIBS,BNLS,LN,0 FAT,ALL GRDS, CKD, BRSD',228, '3 oz'],['BEEF,CHUCK EYE COUNTRY-STYLE RIBS,BNLESS,LN,0 FAT,CHOIC,RAW',152, '3 oz'],['BEEF,CHUCK EYE COUNTRY-STYLE RIBS,BNLESS,LN,0 FAT,SEL,RAW',137, '3 oz'],['BEEF,CHK EYE COUNTRY-STYLE RIBS,BNLS,LN,0 FAT,ALL GRDS, RAW',146, '3 oz'],['BEEF,CHUCK EYE STEAK,BNLESS,LN,0 FAT,CHOIC,CKD,GRILLED',215, '3 oz'],['BEEF,CHUCK EYE STEAK,BNLESS,LN,0 FAT,SEL,CKD,GRILLED',199, '3 oz'],['BEEF,CHUCK EYE STEAK,BNLESS,LN,0 FAT,ALL GRDS,CKD,GRILLED',209, '3 oz'],['BEEF,CHUCK EYE STEAK,BNLESS,LN,0 FAT,CHOIC,RAW',160, '3 oz'],['BEEF,CHUCK EYE STEAK,BNLESS,LN,0 FAT,SEL,RAW',143, '3 oz'],['BEEF,CHUCK EYE STEAK,BNLESS,LN,0 FAT,ALL GRDS,RAW',153, '3 oz'],['BEEF,SHLDR POT RST,BNLESS,LN,0 FAT,CHOIC,CKD,BRSD',200, '3 oz'],['BEEF,SHLDR POT RST,BNLESS,LN,0 FAT,SEL,CKD,BRSD',190, '3 oz'],['BEEF,SHLDR POT RST,BNLESS,LN,0 FAT,ALL GRDS,CKD,BRSD',196, '3 oz'],['BEEF,CHUCK,MOCK TENDER STEAK,BNLESS,LN,0 FAT,CHOIC,CKD,BRSD',197, '1 steak'],['BEEF,CHUCK,MOCK TENDER STEAK,BNLESS,LN,0 FAT,SEL,CKD,BRSD',181, '1 steak'],['BEEF,CHK,MOCK TENDER STK,BNLS,LN,0 FAT,ALL GRDS,CKD,BRSD',190, '1 steak'],['BEEF,CHUCK,MOCK TENDER STEAK,BNLESS,LN,0 FAT,CHOIC,RAW',127, '3 oz'],['BEEF,CHUCK,MOCK TENDER STEAK,BNLESS,LN,0 FAT,SEL,RAW',117, '3 oz'],['BEEF,CHUCK,MOCK TENDER STEAK,BNLESS,LN,0 FAT,ALL GRDS,RAW',123, '3 oz'],['BEEF,CHUCK FOR STEW,LN & FAT,ALL GRDS,CKD,BRSD',191, '3 oz'],['BEEF,CHUCK FOR STEW,LN & FAT,SEL,CKD,BRSD',186, '3 oz'],['BEEF,CHUCK FOR STEW,LN & FAT,CHOIC,CKD,BRSD',194, '3 oz'],['BEEF,CHUCK FOR STEW,LN & FAT,ALL GRDS,RAW',128, '3 oz'],['BEEF,CHUCK FOR STEW,LN & FAT,SEL,RAW',124, '3 oz'],['BEEF,CHUCK FOR STEW,LN & FAT,CHOIC,RAW',130, '3 oz'],['BEEF,CHUCK,UNDER BLADE STEAK,BNLESS,LN,0 FAT,CHOIC,CKD,BRSD',222, '3 oz'],['BEEF,CHUCK,UNDER BLADE STEAK,BNLESS,LN,0 FAT,SEL,CKD,BRSD',215, '3 oz'],['BEEF,CHUCK,UND BL STEAK,BNLS,LN,0 FAT,ALL GRDS,CKD,BRSD',219, '3 oz'],['BEEF,CHK,UND BLD, POT RST,BNL,LN & FAT,0 FAT,ALL GR,CKD,BR',291, '3 oz'],['BEEF,RIB EYE STK,BNLES,LIP-ON,LN,1/8 FAT,ALL GRDS,CKD,GRLD',207, '3 oz'],['BEEF,RIB EYE RST,BONE-IN,LIP-ON,LN,1/8 FAT,CHOIC,CKD,RSTD',240, '3 oz'],['BEEF,CHK,UND BL POT RST/STK,BNL,LN & FT,0 FT, All GR, raw',196, '3 oz'],['BEEF,CHK,UND BL POT RST OR STK,BNL,LN & FAT,0 FAT, CH, RAW',202, '3 oz'],['BEEF,CHK,UND BL POT RST/STEAK,BNL,LN & FAT,0 FAT, SEL, RAW',187, '3 oz'],['BEEF,CHK,UND BL CNTR STK,BNL,DEN CUT,LN & FAT, ALL GR, CKD',227, '3 oz'],['BEEF,CHK,UND BLE CNTR STK,BNL,DEN CT,LN&FT, 0 FT,CH,CKD,GLD',236, '3 oz'],['BEEF,CHK,UNDBL CNTR STK,BNL,DEN CT,LN&FAT, 0 FT,SEL,CKD,GLD',215, '3 oz'],['BEEF,CHK,UND BL CNTR STK,BNL,DEN CUT,LN & FT,0FT,All Gr, RW',182, '3 oz'],['BEEF,CHK,UNDBLE CNTR STK,BNL,DENR CUT,LN & FAT,0FAT, CH, RW',189, '3 oz'],['BEEF,CHK,UND BLE CNTR STK,BNL,DEN CUT,LN & FT,0FT, SEL,RW',172, '3 oz'],['BEEF,SHLDR POT RST OR STEAK,BNLESS,LN & FAT,0 FAT,CHOIC,RAW',133, '3 oz'],['BEEF,SHLDR POT RST OR STEAK,BNLESS,LN & FAT,0 FAT,SEL,RAW',127, '3 oz'],['BEEF,CHK EYE RST,BNLS,A BF RST,LN & FAT,0,ALL GRD,CKD,RSTD',236, '3 oz'],['BEEF,CHK EYE RST,BNLS,A BF RST,LN & FAT,0,CH,CKD,RSTD',241, '3 oz'],['BEEF,CHCK EYE RST,BNLS,A BF RST,LN & FAT,0,SEL,C,RSTD',229, '3 oz'],['BEEF,CHUCK,UNDER BLADE STEAK,BNLESS,LN & FAT,0 FAT,ALL GRDS',275, '3 oz'],['BEEF,CHUCK,UNDER BLADE STEAK,BNLESS,LN & FAT,0 FAT,CHOIC,CK',284, '3 oz'],['BEEF,CHUCK,UNDER BLADE STEAK,BNLESS,LN & FAT,0 FAT,SEL,CKD,',261, '3 oz'],['BEEF,CHK,MOCK TNDR STK,BNL,LN & FAT,0 FAT,ALL GRDS, CKD',220, '1 steak'],['BEEF,CHUCK,MOCK TENDER STEAK,BNLESS,LN & FAT,0 FAT,CHOIC,CK',225, '1 steak'],['BEEF,CHUCK,MOCK TENDER STEAK,BNLESS,LN & FAT,0 FAT,SEL,CKD,',211, '1 steak'],['BEEF,CHK,MOCK TEN STK,BNL,LN & FAT,0 FAT,ALL GRDS, CKD',128, '3 oz'],['BEEF,CHK,MOCK TENDER STEAK,BNLESS,LN & FAT,0 FAT,CHOIC,RAW',131, '3 oz'],['BEEF,CHUCK,MOCK TENDER STEAK,BNLESS,LN & FAT,0 FAT,SEL,RAW',122, '3 oz'],['BEEF,CHUCK,SHRT RIBS,BNLESS,LN & FAT,0 FAT,ALL GRDS,CKD,BRS',305, '3 oz'],['BEEF,CHUCK,SHRT RIBS,BNLESS,LN & FAT,0 FAT,CHOIC,CKD,BRSD',317, '3 oz'],['BEEF,CHUCK,SHRT RIBS,BNLESS,LN & FAT,0 FAT,SEL,CKD,BRSD',287, '3 oz'],['BEEF,CHUCK,SHRT RIBS,BNLESS,LN & FAT,0 FAT,ALL GRDS,RAW',235, '3 oz'],['BEEF,CHUCK,SHRT RIBS,BNLESS,LN & FAT,0 FAT,CHOIC,RAW',240, '3 oz'],['BEEF,CHUCK,SHRT RIBS,BNLESS,LN & FAT,0 FAT,SEL,RAW',227, '3 oz'],['BEEF,SHLDR POT RST,BNLESS,LN & FAT,0 FAT,ALL GRDS,CKD,BRSD',204, '3 oz'],['BEEF,SHLDR POT RST,BNLESS,LN & FAT,0 FAT,CHOIC,CKD,BRSD',207, '3 oz'],['BEEF,SHLDR POT RST,BNLESS,LN & FAT,0 FAT,SEL,CKD,BRSD',200, '3 oz'],['BEEF,CHK EYE CTRY-STYLE RIBS,BNL,LN & FAT,0 FAT,ALL GR, CKD',296, '3 oz'],['BEEF,CHK EYE CNTRY-STYL RIBS,BNL,LN & FAT,0 FAT,CHOICE, CKD',303, '3 oz'],['BEEF,CHK EYE CNTRY-STYLE RIBS,BNL,LN & FAT,0 FAT,SEL, CKD',285, '3 oz'],['BEEF,CHK EYE CNTRY-STYLE RIBS,BNL,LN & FAT,0 FAT,ALL GR,RAW',205, '3 oz'],['BEEF,CHK EYE CNTRY-STYLE RIBS,BNL,LN & FAT,0 FAT,CHOICE,RAW',210, '3 oz'],['BEEF,CHK EYE CNTRY-STYLE RIBS,BNL,LN & FAT,0 FAT,SEL,RAW',196, '3 oz'],['BEEF,CHUCK EYE STEAK,BNLESS,LN & FAT,0 FAT,ALL GRDS,CKD,GR',277, '3 oz'],['BEEF,CHK EYE STEAK,BNLESS,LN & FAT,0 FAT,CHOIC,CKD,GRILLED',283, '3 oz'],['BEEF,CHUCK EYE STEAK,BNLESS,LN & FAT,0 FAT,SEL,CKD,GRILLED',267, '3 oz'],['BEEF,CHUCK EYE STEAK,BNLESS,LN & FAT,0 FAT,ALL GRDS,RAW',223, '3 oz'],['BEEF,CHUCK EYE STEAK,BNLESS,LN & FAT,0 FAT,CHOIC,RAW',227, '3 oz'],['BEEF,RIB EYE RST,BNE-IN,LIP-ON,LN,1/8 FT,ALL GRDS,CKD,RSTD',231, '3 oz'],['BEEF,RIB EYE RST,BONE-IN,LIP-ON,LN,1/8 FAT,SEL,CKD,RSTD',219, '3 oz'],['BEEF,RIB EYE STEAK,BNLES,LIP-ON,LN,1/8 FAT,CHOIC,CKD,GRILD',217, '3 oz'],['BEEF,RIB EYE STEAK,BNLESS,LIP-ON,LN,1/8 FAT,SEL,CKD,GRILLED',192, '3 oz'],['BEEF,RIB EYE STK/RST,BONE-IN,LIP-ON,LN,1/8 FAT,ALL GRDS,RAW',166, '3 oz'],['BEEF,RIB EYE STEAK/RST,BONE-IN,LIP-ON,LN,1/8 FAT,CHOIC,RAW',173, '3 oz'],['BEEF,RIB EYE STEAK/ROAST,BONE-IN,LIP-ON,LN,1/8 FAT,SEL,RAW',155, '3 oz'],['BEEF,RIB EYE STK/RST,BNLESS,LIP-ON,LN,1/8 FAT,ALL GRDS,RAW',156, '3 oz'],['BEEF,RIB EYE STEAK/ROAST,BNLESS,LIP-ON,LN,1/8 FAT,CHOIC,RAW',161, '3 oz'],['BEEF,RIB EYE STEAK/ROAST,BNLESS,LIP-ON,LN,1/8 FAT,SEL,RAW',148, '3 oz'],['BEEF,RIB EYE STK,BNE-IN,LIP-ON,LN,1/8 FAT,ALL GRDS,CKD,GRLD',221, '3 oz'],['BEEF,RIB EYE STEAK,BONE-IN,LIP-ON,LN,1/8 FAT,CHOIC,CKD,GRLD',229, '3 oz'],['BEEF,RIB EYE STEAK,BONE-IN,LIP-ON,LN,1/8 FAT,SEL,CKD,GRILD',210, '3 oz'],['BEEF,RIB EYE RST,BNLESS,LIP-ON,LN,1/8 FAT,ALL GRDS,CKD,RSTD',218, '3 oz'],['BEEF,RIB EYE RST,BNLESS,LIP-ON,LN,1/8 FAT,CHOIC,CKD,RSTD',229, '3 oz'],['BEEF,RIB EYE RST,BNLESS,LIP-ON,LN,1/8 FAT,SEL,CKD,RSTD',202, '3 oz'],['BEEF,PLATE STK,BNLE,INSDE SKRT,LN,0 FAT,ALL GRDS,CKD,GRLD',234, '3 oz'],['BEEF,PLATE STEAK,BNLESS,INSIDE SKIRT,LN,0 FAT,ALL GRDS,RAW',164, '3 oz'],['BEEF,PLATE STK,BNLES,INSIDE SKIRT,LN,0 FAT,CHOIC,CKD,GRLD',242, '3 oz'],['BEEF,PLATE STEAK,BNLESS,INSIDE SKIRT,LN,0 FAT,CHOIC,RAW',171, '3 oz'],['BEEF,PLATE STEAK,BNLESS,INSIDE SKIRT,LN,0 FAT,SEL,CKD,GRILD',223, '3 oz'],['BEEF,PLATE STEAK,BNLESS,INSIDE SKIRT,LN,0 FAT,SEL,RAW',153, '3 oz'],['BEEF,PLATE STK,BNLES,OTSDE SKIRT,LN,0 FAT,ALL GRDS,CKD,GRLD',282, '3 oz'],['BEEF,PLATE STEAK,BNLESS,OUTSIDE SKIRT,LN,0 FAT,ALL GRDS,RAW',206, '3 oz'],['BEEF,PLATE STEAK,BNLS,OUTSIDE SKIRT,LN,0 FAT,CHOIC,CKD,GRLD',291, '3 oz'],['BEEF,PLATE STEAK,BNLESS,OUTSIDE SKIRT,LN,0 FAT,CHOIC,RAW',212, '3 oz'],['BEEF,PLATE STEAK,BNLESS,OUTSIDE SKIRT,LN,0 FAT,SEL,CKD,GRLD',268, '3 oz'],['BEEF,PLATE STEAK,BNLESS,OUTSIDE SKIRT,LN,0 FAT,SEL,RAW',198, '3 oz'],['BEEF,RIB EYE STEAK,BNLESS,LIP OFF,LN,0 FAT,ALL GRDS,CKD,GRI',206, '3 oz'],['BEEF,RIB EYE STEAK,BNLESS,LIP OFF,LN,0 FAT,ALL GRDS,RAW',154, '3 oz'],['BEEF,RIB EYE STEAK,BNLESS,LIP OFF,LN,0 FAT,CHOIC,CKD,GRILLE',215, '3 oz'],['BEEF,RIB EYE STEAK,BNLESS,LIP OFF,LN,0 FAT,CHOIC,RAW',162, '3 oz'],['BEEF,RIB EYE STEAK,BNLESS,LIP OFF,LN,0 FAT,SEL,CKD,GRILLED',191, '3 oz'],['BEEF,RIB EYE STEAK,BNLESS,LIP OFF,LN,0 FAT,SEL,RAW',142, '3 oz'],['BEEF,RIB,BACK RIBS,BONE-IN,LN,0 FAT,ALL GRDS,CKD,BRSD',299, '3 oz'],['BEEF,RIB,BACK RIBS,BONE-IN,LN,0 FAT,ALL GRDS,RAW',239, '3 oz'],['BEEF,RIB,BACK RIBS,BONE-IN,LN,0 FAT,CHOIC,CKD,BRSD',306, '3 oz'],['BEEF,RIB,BACK RIBS,BONE-IN,LN,0 FAT,CHOIC,RAW',252, '3 oz'],['BEEF,RIB,BACK RIBS,BONE-IN,LN,0 FAT,SEL,CKD,BRSD',287, '3 oz'],['BEEF,RIB,BACK RIBS,BONE-IN,LN,0 FAT,SEL,RAW',221, '3 oz'],['BEEF,RIB EYE STK,BNE-IN,LIP-ON,LN & FT,1/8 FAT,CHOC,CKD,GRL',313, '3 oz'],['BEEF,RIB EYE STK,BNE-IN,LIP-ON,LN & FT,1/8 FAT,SEL,CKD,GRLD',304, '3 oz'],['BEEF,RIB EYE STK,BN-IN,LIP-ON,LN & FT,1/8 FT,AL GDS,CKD,GRL',309, '3 oz'],['BEEF,RIB EYE RST,BNE-IN,LIP-ON,LN & FAT,1/8 FT,CHC,CKD,RST',307, '3 oz'],['BEEF,RIB EYE RST,BNE-IN,LIP-ON,LN & FAT,1/8 FAT,SEL,CKD,RST',290, '3 oz'],['BEEF,RIB EYE RST,BNE-IN,LP-ON,LN & FT,1/8 FT,AL GRD,CKD,RST',300, '3 oz'],['BEEF,RIB EYE STK/RST,BNE-IN,IP-ON,LN & FT,1/8 FT,AL GRDS,RW',255, '3 oz'],['BEEF,RIB EYE STK/RST,BNE-IN,LIP-ON,LN & FAT,1/8 FAT,CHC,RAW',260, '3 oz'],['BEEF,RIB EYE STK/RST,BONE-IN,LIP-ON,LN & FAT,1/8 FAT,SEL,RW',248, '3 oz'],['BEEF,RIB EYE STEAK,BNLS,LIP-ON,LN & FAT,1/8 FAT,CHC,CKD,GRD',303, '3 oz'],['BEEF,RIB EYE STK,BNLS,LIP-ON,LN & FAT,1/8 FAT,SEL,CKD,GILD',273, '3 oz'],['BEEF,RIB EYE STK,BNLS,LIP-ON,LN & FT,1/8 FT,AL GRD,CKD,GRLD',291, '3 oz'],['BEEF,RIB EYE RST,BNLS,LP-ON,LN & FT,1/8 FT,ALL GRD,CKD,RSTD',292, '3 oz'],['BEEF,RIB EYE RST,BNLES,LIP-ON,LN & FAT,1/8 FAT,CHC,CKD,RSTD',303, '3 oz'],['BEEF,RIB EYE RST,BNLES,LIP-ON,LN & FAT,1/8 FAT,SEL,CKD,RSTD',277, '3 oz'],['BEEF,RIB EYE STK/RST,BNLS,LIP-ON,LN & FAT,1/8 FAT,AL GRD,RW',244, '3 oz'],['BEEF,RIB EYE STEAK/ROST,BNLS,LIP-ON,LN & FAT,1/8 FAT,CHC,RW',253, '3 oz'],['BEEF,RIB EYE STEAK/ROST,BNLS,LIP-ON,LN & FAT,1/8 FAT,SEL,RW',230, '3 oz'],['BEEF,PLTE STK,BNLS,INSD SKRT,LN & FAT,0 FAT,ALL GRD,CKD,GRL',245, '3 oz'],['BEEF,PLATE STK,BNLSS,INSDE SKRT,LN & FAT,0 FAT,CHC,CKD,GRLD',253, '3 oz'],['BEEF,PLATE STK,BNLES,INSDE SKRT,LN & FAT,0 FAT,SEL,CKD,GRLD',233, '3 oz'],['BEEF,PLATE STEK,BNLS,INSDE SKRT,LN & FAT,0 FAT,ALL GRDS,RW',187, '3 oz'],['BEEF,PLATE STEAK,BNLESS,INSIDE SKIRT,LN & FAT,0 FAT,CHOC,RW',195, '3 oz'],['BEEF,PLATE STEAK,BNLESS,INSIDE SKIRT,LN & FAT,0 FAT,SEL,RAW',174, '3 oz'],['BEEF,GROUND,UNSPEC FAT CONTENT,CKD',234, '3 oz'],['BEEF,PLTE STK,BNLS,OUTSD SKRT,LN & FAT,0 FT,AL GRD,CKD,GRLD',292, '3 oz'],['BEEF,PLATE STK,BNLS,OUTSD SKRT,LN & FAT,0 FT,CHC,CKD,GRLD',300, '3 oz'],['BEEF,PLATE STK,BNLS,OTSDE SKRT,LN & FAT,0 FAT,SEL,CKD,GRILD',281, '3 oz'],['BEEF,PLATE STEK,BNLS,OUTSDE SKRT,LN & FAT,0 FAT,ALL GRDS,RW',232, '3 oz'],['BEEF,PLATE STEAK,BNLS,OUTSIDE SKRT,LN & FAT,0 FAT,CHOIC,RAW',238, '3 oz'],['BEEF,PLATE STEAK,BNLESS,OUTSIDE SKIRT,LN & FAT,0 FAT,SEL,RW',222, '3 oz'],['BEEF,RIB EYE STK,BNLS,LIP OF,LN & FAT,0 FT,AL GRDS,CKD,GRLD',271, '3 oz'],['BEEF,RIB EYE STEAK,BNLS,LIP OFF,LN & FAT,0 FAT,CHC,CKD,GRLD',285, '3 oz'],['BEEF,RIB EYE STEK,BNLES,LIP OFF,LN & FAT,0 FAT,SEL,CKD,GRLD',248, '3 oz'],['BEEF,RIB EYE STEAK,BNLESS,LIP OFF,LN & FAT,0 FAT,ALL GRD,RW',228, '3 oz'],['BEEF,RIB EYE STEAK,BNLESS,LIP OFF,LN & FAT,0 FAT,CHOIC,RAW',241, '3 oz'],['BEEF,RIB EYE STEAK,BNLESS,LIP OFF,LN & FAT,0 FAT,SEL,RAW',208, '3 oz'],['BEEF,RIB,BACK RIBS,BONE-IN,LN & FAT,0 FAT,ALL GRDS,CKD,BRSD',360, '3 oz'],['BEEF,RIB,BACK RIBS,BONE-IN,LN & FAT,0 FAT,CHOIC,CKD,BRSD',372, '3 oz'],['BEEF,RIB,BACK RIBS,BONE-IN,LN & FAT,0 FAT,SEL,CKD,BRSD',341, '3 oz'],['BEEF,RIB,BACK RIBS,BONE-IN,LN & FAT,0 FAT,ALL GRDS,RAW',324, '3 oz'],['BEEF,RIB,BACK RIBS,BONE-IN,LN & FAT,0 FAT,CHOIC,RAW',336, '3 oz'],['BEEF,RIB,BACK RIBS,BONE-IN,LN & FAT,0 FAT,SEL,RAW',305, '3 oz'],['BEEF,LOIN,TOP SIRLIN PETITE RST,BNLS,LN,0 FAT,CHOC,CKD,RSTD',173, '3 oz'],['BEEF,LOIN,TOP SIRLOIN PETITE RST/FILET,BNLS,LN,0 FAT,CHC,RW',132, '3 oz'],['BEEF,LOIN,TOP SIRLN CAP STK,BNLS,LN,1/8 FAT,AL GRDS,CKD,GLD',181, '3 oz'],['BEEF,LOIN,TOP SIRLON CAP STK,BNLS,LN,1/8 FAT,CHOIC,CKD,GRLD',189, '3 oz'],['BEEF,LOIN,TOP SIRLOIN CAP STEK,BNLS,LN,1/8 FAT,SEL,CKD,GRLD',170, '3 oz'],['BEEF,LOIN,TOP SIRLOIN CAP STEK,BNLS,LN,1/8 FAT,ALL GRDS,RAW',134, '3 oz'],['BEEF,LOIN,TOP SIRLOIN CAP STEAK,BNLESS,LN,1/8 FAT,CHOIC,RAW',138, '3 oz'],['BEEF,LOIN,TOP SIRLOIN CAP STEAK,BNLESS,LN,1/8 FAT,SEL,RAW',128, '3 oz'],['BEEF,TOP LOIN FILET,BNLESS,LN,1/8 FAT,ALL GRDS,CKD,GRILLED',195, '1 fillet'],['BEEF,TOP LOIN FILET,BNLESS,LN,1/8 FAT,CHOIC,CKD,GRILLED',203, '1 fillet'],['BEEF,TOP LOIN FILET,BNLESS,LN,1/8 FAT,SEL,CKD,GRILLED',184, '1 fillet'],['BEEF,TOP LOIN PETITE RST,BNLSS,LN,1/8 FAT,ALL GRDS,CKD,RSTD',195, '3 oz'],['BEEF,TOP LOIN PETITE RST,BNLESS,LN,1/8 FAT,CHOIC,CKD,RSTD',206, '3 oz'],['BEEF,TOP LOIN PETITE RST,BNLESS,LN,1/8 FAT,SEL,CKD,RSTD',179, '3 oz'],['BEEF,TOP LOIN PETITE RST/FILET,BNLS,LN,1/8 FAT,ALL GRDS,RAW',143, '3 oz'],['BEEF,TOP LOIN PETITE ROAST/FILET,BNLESS,LN,1/8 FAT,CHOC,RAW',149, '3 oz'],['BEEF,TOP LOIN PETITE ROAST/FILET,BNLESS,LN,1/8 FAT,SEL,RAW',135, '3 oz'],['BEEF,LOIN,TOP SIRLOIN FILET,BNLS,LN,0 FAT,ALL GRDS,CKD,GRLD',171, '1 fillet'],['BEEF,LOIN,TOP SIRLOIN FILET,BNLESS,LN,0 FAT,CHOIC,CKD,GRILD',174, '1 fillet'],['BEEF,LOIN,TOP SIRLOIN FILET,BNLESS,LN,0 FAT,SEL,CKD,GRILLED',165, '1 fillet'],['BEEF,LOIN,TOP SIRLON PTIT RST,BLS,LN,0 FAT,AL GRDS,CKD,RSTD',170, '3 oz'],['BEEF,LOIN,TOP SIRLOIN PETITE RST,BNLS,LN,0 FAT,SEL,CKD,RSTD',165, '3 oz'],['BEEF,LOIN,TOP SRLN PETIT RST/FILT,BNLS,LN,0 FAT,AL GRDS,RAW',128, '3 oz'],['BEEF,LOIN,TOP SIRLON PETITE RST/FILET,BNLS,LN,0 FAT,SEL,RAW',122, '3 oz'],['BEEF,RIBEYE PETITE ROAST/FILET,BNLESS,LN,0 FAT,ALL GRDS,RAW',133, '3 oz'],['BEEF,RIBEYE PETITE ROAST/FILET,BNLESS,LN,0 FAT,CHOIC,RAW',138, '3 oz'],['BEEF,RIBEYE PETITE ROAST/FILET,BNLESS,LN,0 FAT,SEL,RAW',125, '3 oz'],['BEEF,RIBEYE CAP STEAK,BNLESS,LN,0 FAT,ALL GRDS,CKD,GRILLED',246, '3 oz'],['BEEF,RIBEYE CAP STEAK,BNLESS,LN,0 FAT,CHOIC,CKD,GRILLED',259, '3 oz'],['BEEF,RIBEYE CAP STEAK,BNLESS,LN,0 FAT,SEL,CKD,GRILLED',226, '3 oz'],['BEEF,RIBEYE CAP STEAK,BNLESS,LN,0 FAT,ALL GRDS,RAW',180, '3 oz'],['BEEF,RIBEYE CAP STEAK,BNLESS,LN,0 FAT,CHOIC,RAW',187, '3 oz'],['BEEF,RIBEYE CAP STEAK,BNLESS,LN,0 FAT,SEL,RAW',169, '3 oz'],['BEEF,RIBEYE FILET,BNLESS,LN,0 FAT,ALL GRDS,CKD,GRILLED',199, '1 fillet'],['BEEF,RIBEYE FILET,BNLESS,LN,0 FAT,CHOIC,CKD,GRILLED',208, '1 fillet'],['BEEF,RIBEYE FILET,BNLESS,LN,0 FAT,SEL,CKD,GRILLED',186, '1 fillet'],['BEEF,RIBEYE PETITE RST,BNLESS,LN,0 FAT,ALL GRDS,CKD,RSTD',178, '3 oz'],['BEEF,RIBEYE PETITE RST,BNLESS,LN,0 FAT,CHOIC,CKD,RSTD',188, '3 oz'],['BEEF,RIBEYE PETITE RST,BNLESS,LN,0 FAT,SEL,CKD,RSTD',164, '3 oz'],['BEEF,LOIN,TOP SRL CP STK,BNLS,LN & FT,1/8 FT,ALGDS,CKD,GRLD',242, '3 oz'],['BEEF,LOIN,TOP SRLN CAP STK,BLS,LN & FAT,1/8 FAT,CHC,CKD,GLD',238, '3 oz'],['BEEF,LOIN,TOP SRLN CAP STK,BLS,LN & FAT,1/8 FAT,SEL,CKD,GLD',249, '3 oz'],['BEEF,LOIN,TOP SIRLN CAP STK,BNLS,LN & FAT,1/8 FAT,AL GDS,RW',191, '3 oz'],['BEEF,LOIN,TOP SIRLOIN CAP STK,BNLS,LN & FAT,1/8 FAT,CHC,RAW',199, '3 oz'],['BEEF,LOIN,TOP SIRLOIN CAP STK,BNLS,LN & FAT,1/8 FAT,SEL,RAW',179, '3 oz'],['BEEF,TOP LOIN FILET,BNLS,LN & FAT,1/8 FAT,ALL GRDS,CKD,GRLD',239, '1 fillet'],['BEEF,TOP LOIN FILET,BNLESS,LN & FAT,1/8 FAT,CHOIC,CKD,GRILD',253, '1 fillet'],['BEEF,TOP LOIN FILET,BNLESS,LN & FAT,1/8 FAT,SEL,CKD,GRILLED',219, '1 fillet'],['BEEF,TOP LOIN PET RST,BNLS,LN & FAT,1/8 FAT,AL GDS,CKD,RSTD',228, '3 oz'],['BEEF,TOP LOIN PETI RST,BNLS,LN & FAT,1/8 FAT,CHOIC,CKD,RSTD',239, '3 oz'],['BEEF,TOP LOIN PETITE RST,BNLS,LN & FAT,1/8 FAT,SEL,CKD,RSTD',213, '3 oz'],['BEEF,TOP LOIN PETIT RST/FILT,BNS,LN & FAT,1/8 FAT,AL GRD,RW',187, '3 oz'],['BEEF,TOP LOIN PETITE RST/FILET,BNLS,LN & FAT,1/8 FAT,CHC,RW',199, '3 oz'],['BEEF,TOP LOIN PETITE RST/FILET,BNLS,LN & FAT,1/8 FAT,SEL,RW',170, '3 oz'],['BEEF,AUSTRALIAN,GRASS-FED,GROUND,85% LN / 15% FAT,RAW',234, '1 serving, (3 oz)'],['BEEF,AUSTRALIAN,GRSSFD,LOIN,TNDRLN STEAK/ROAST,BNLESS,LN,RAW',138, '1 steak'],['BEEF,ASTRLN,WAGYU,LN,TNDRLN STK/RST,BNLS,LN,MRB SCR 4/5,RAW',191, '3 oz'],['BEEF,AUSTRALIAN,GRASS-FED,EXTERNAL FAT,RAW',509, '1 oz'],['BEEF,AUSTRALIAN,GRASS-FED,SEAM FAT,RAW',562, '1 oz'],['BEEF,AUSTRALIAN,WAGYU,EXTERNAL FAT,MRBL SCR 4/5,RAW',596, '1 oz'],['BEEF,AUSTRALIAN,WAGYU,SEAM FAT,MRBL SCR 4/5,RAW',594, '1 oz'],['BEEF,AUSTRALIAN,WAGYU,EXTERNAL FAT,AUST. MARBLE SCORE 9,RAW',639, '1 oz'],['BEEF,AUSTRALIAN,WAGYU,SEAM FAT,AUST. MARBLE SCORE 9,RAW',627, '1 oz'],['BEEF,AUSTRALN,GRS-FED,LOIN,TENDRLN STK/RST,BNLS,LN & FAT,RAW',151, '1 steak'],['BEEF,ASTRLIAN,GRSSFD,LOIN,TOP LOIN STEAK/ROAST,BNLESS,LN,RAW',131, '3 oz'],['BEEF,AUST,WAGYU,LN,TDRLN STK/RST,BNLS,LN&FAT,MRBLSCR 4/5,RAW',206, '3 oz'],['BEEF,AUSTRALN,GRS-FED,LOIN,TOP LOIN STK/RST,BNLS,LN & FAT,RW',199, '3 oz'],['BEEF,AUSTRALIAN,GRSSFD,RIB,RIBEYE STK/RST LIP-ON,BNLS,LN,RAW',160, '3 oz'],['BEEF,AUSTRALIAN,GRSSFD,RND,BTTM RND STEAK/ROAST,BNLSS,LN,RAW',130, '3 oz'],['BEEF,ASTRLN,GRSFD,RND,TOP RND CAP-OFF STEAK/RST,BNLSS,LN,RAW',129, '3 oz'],['BEEF,ASTRLN,WAGYU,LN,TNDRLN STK/RST,BNLESS,LN,MRBL SCR 9,RAW',237, '3 oz'],['BEEF,ASTRL,WGYU,LN,TP LN STK/RST,BNLS LN, AUS MRBL SC 4/5 RW',223, '3 oz'],['BEEF,ASTRLN,WGYU,LOIN,TOP LN STK/RST,BNLS,LN, MRBL SCR 9,RAW',331, '3 oz'],['BEE,ASTRLN,WGYU,RB,SML END RB STK/RST,BLS,LN,MRBLSCR 4/5,RAW',234, '3 oz'],['BEE,ASTRLN,WAGYU,RB,SMLEND RB STK/RST,BNLS,LN,MRBL SCR 9,RAW',330, '3 oz'],['BEEF,ASTRLN,GRSSFD,LN,TPSRLN CAPOFF STK/RST,BNLS,LN & FT,RAW',127, '3 oz'],['BEEF,ASTRLN,GRSFD,RIB,RBEYE STK/RST LIP-ON,BNLS,LN & FAT,RAW',217, '3 oz'],['BEEF,ASTRLN,GRSSFD,RND,BTTM RND STEAK/RST,BNLS,LN & FAT,RAW',140, '3 oz'],['BEEF,ASTRLN,GRSFD,RND,TOPRND CAPOFF STK/RST,BNLS,LN & FT,RAW',129, '3 oz'],['BEEF,ASTRLN,WGYU,LN,TOPLN STK/RST,BLS,LN&FAT,MRBL SCR 4/5,RW',289, '3 oz'],['BEEF,AUSTRALIAN,WAGYU,LOIN,TOP LN STK/RST,LN & FAT,MRBL SCR',392, '3 oz'],['BEEF,ASTRLN,WAGYU,RIB,SMLND RB STK/RST,BNLS,LN &FAT,MRBL SCR',317, '3 oz'],['BEEF,ASTRLN,WGYU,RB,SML END RB STK/RST,BNLS,LN &FAT,MRBL SCR',405, '3 oz'],['BEEF,ASTRLN,WGYU,LN,TNDRLN STK/RST,BNLS,LN&FT,MRBL SCR 9,RAW',248, '3 oz'],['BEEF,RND,TOP RND STEAK,BNLESS,LN & FAT,0 FAT,ALL GRDS,RAW',124, '3 oz'],['BEEF,RND,TOP RND STEAK,BNLESS,LN & FAT,0 FAT,CHOIC,RAW',127, '3 oz'],['BEEF,RND,TOP RND STEAK,BNLESS,LN & FAT,0 FAT,SEL,RAW',120, '3 oz'],['BEEF,RND,TOP RND RST,BNLESS,LN & FAT,0 FAT,ALL GRDS,RAW',125, '3 oz'],['BEEF,RND,TOP RND RST,BNLESS,LN & FAT,0 FAT,CHOIC,RAW',128, '3 oz'],['BEEF,RND,TOP RND RST,BNLESS,LN & FAT,0 FAT,SEL,RAW',121, '3 oz'],['BEEF,RND,EYE OF RND RST,BNLESS,LN & FAT,0 FAT,ALL GRDS,RAW',124, '3 oz'],['BEEF,RND,EYE OF RND RST,BNLESS,LN & FAT,0 FAT,CHOIC,RAW',127, '3 oz'],['BEEF,RND,EYE OF RND RST,BNLESS,LN & FAT,0 FAT,SEL,RAW',120, '3 oz'],['BEEF,RND,EYE OF RND STEAK,BNLESS,LN & FT,0 FAT,ALL GRDS,RAW',124, '3 oz'],['BEEF,RND,EYE OF RND STEAK,BNLESS LN & FAT,0 FAT,CHOIC,RAW',127, '3 oz'],['BEEF,RND,EYE OF RND STEAK,BNLESS,LN & FAT,0 FAT,SEL,RAW',120, '3 oz'],['BEEF,LOIN,TENDERLOIN RST,BNLESS,LN & FAT,0 FAT,ALL GRDS,RAW',149, '3 oz'],['BEEF,LOIN,TENDERLOIN RST,BNLESS,LN & FAT,0 FAT,CHOIC,RAW',153, '3 oz'],['BEEF,LOIN,TENDERLOIN RST,BNLESS,LN & FAT,0 FAT,SEL,RAW',144, '3 oz'],['BEEF,LOIN,TOP LOIN STK,BNLS,LIP OFF,LN & FAT,0 FT,ALLGRD,RW',163, '3 oz'],['BEEF,LOIN,TOP LOIN STK,BNLS,LIP OFF,LN & FAT,0 FT,CHOIC,RAW',171, '3 oz'],['BEEF,LOIN,TOP LOIN STEAK,BNLS,LIP OFF,LN & FAT,0 FAT,SEL,RW',151, '3 oz'],['BEEF,LOIN,TENDERLOIN STEAK,BNLESS,L & F,0 FAT,ALL GRDS,RAW',147, '3 oz'],['BEEF,LOIN,TENDERLOIN STEAK,BNLESS,LN & FAT,0 FAT,CHOIC,RAW',150, '3 oz'],['BEEF,LOIN,TENDERLOIN STEAK,BNLESS,LN & FAT,0 FAT,SEL,RAW',142, '3 oz'],['BEEF,LOIN,TNDRLN RST,BNLESS,L & F,0 FAT,ALL GRDS,CKD,RSTD',183, '3 oz'],['BEEF,LOIN,TENDERLOIN RST,BNLESS,L & F,0 FAT,CHOIC,CKD,RSTD',188, '3 oz'],['BEEF,LOIN,TENDERLOIN RST,BNLESS,LN & FAT,0 FAT,SEL,CKD,RSTD',174, '3 oz'],['BEEF,RND,TOP RND RST,BNLS,LN&FAT,0 FAT,ALLGRD,CKD,RSTD',160, '3 oz'],['BEEF,RND,TOP RND RST,BNLESS,LN & FAT,0 FAT,CHOIC,CKD,RSTD',163, '3 oz'],['BEEF,RND,TOP RND RST,BNLESS,LN & FAT,0 FAT,SEL,CKD,RSTD',157, '3 oz'],['BEEF,RND,EYE OF RND STK,BNLESS,L & F,0 F,A GRDS,CKD,GRILLED',159, '3 oz'],['BEEF,RND,EYE OF RD STEAK,BNLESS,L & F,0 FT,CHOIC,CK,GRLLED',163, '3 oz'],['BEEF,RND,EYE OF RND STEAK,BNLS,LN & FAT,0 FAT,SEL,CKD,GRLD',154, '3 oz'],['BEEF,RND,TOP RND STEAK,BNLESS,LN,0 FAT,ALL GRDS,RAW',121, '3 oz'],['BEEF,RND,TOP RND STEAK,BNLESS,LN,0 FAT,CHOIC,RAW',124, '3 oz'],['BEEF,RND,TOP RND STEAK,BNLESS,LN,0 FAT,SEL,RAW',116, '3 oz'],['BEEF,RND,TOP RND RST,BNLESS,LN,0 FAT,ALL GRDS,RAW',121, '3 oz'],['BEEF,RND,TOP RND RST,BNLESS,LN,0 FAT,CHOIC,RAW',124, '3 oz'],['BEEF,RND,TOP RND RST,BNLESS,LN,0 FAT,SEL,RAW',116, '3 oz'],['BEEF,RND,EYE OF RND RST,BNLESS,LN,0 FAT,ALL GRDS,RAW',121, '3 oz'],['BEEF,RND,EYE OF RND RST,BNLESS,LN,0 FAT,CHOIC,RAW',124, '3 oz'],['BEEF,RND,EYE OF RND RST,BNLESS,LN,0 FAT,SEL,RAW',116, '3 oz'],['BEEF,RND,EYE OF RND STEAK,BNLESS,LN,0 FAT,ALL GRDS,RAW',121, '3 oz'],['BEEF,RND,EYE OF RND STEAK,BNLESS,LN,0 FAT,CHOIC,RAW',124, '3 oz'],['BEEF,RND,EYE OF RND STEAK,BNLESS,LN,0 FAT,SEL,RAW',116, '3 oz'],['BEEF,LOIN,TENDERLOIN RST,BNLESS,LN,0 FAT,ALL GRDS,RAW',139, '3 oz'],['BEEF,LOIN,TENDERLOIN RST,BNLESS,LN,0 FAT,CHOIC,RAW',143, '3 oz'],['BEEF,LOIN,TENDERLOIN RST,BNLESS,LN,0 FAT,SEL,RAW',135, '3 oz'],['BEEF,LOIN,TOP LOIN STK,BNLS,LIP OFF,LN,0 FAT,ALL GRDS,RAW',143, '3 oz'],['BEEF,LOIN,TOP LOIN STEAK,BNLESS,LIP OFF,LN,0 FAT,CHOIC,RAW',149, '3 oz'],['BEEF,LOIN,TOP LOIN STEAK,BNLESS,LIP OFF,LN,0 FAT,SEL,RAW',135, '3 oz'],['BEEF,LOIN,TENDERLOIN STEAK,BNLESS,LN,0 FAT,ALL GRDS,RAW',139, '3 oz'],['BEEF,LOIN,TENDERLOIN STEAK,BNLESS,LN,0 FAT,CHOIC,RAW',143, '3 oz'],['BEEF,LOIN,TENDERLOIN STEAK,BNLESS,LN,0 FAT,SEL,RAW',135, '3 oz'],['BEEF,LOIN,TENDERLOIN RST,BNLESS,LN,0 FAT,ALL GRDS,CKD,RSTD',177, '3 oz'],['BEEF,LOIN,TENDERLOIN RST,BNLESS,LN,0 FAT,CHOIC,CKD,RSTD',183, '3 oz'],['BEEF,LOIN,TENDERLOIN RST,LN,BNLESS,0 FAT,SEL,CKD,RSTD',169, '3 oz'],['BEEF,RND,TOP RND RST,BNLESS,LN,0 FAT,ALL GRDS,CKD,RSTD',162, '3 oz'],['BEEF,RND,TOP RND RST,BNLESS,LN,0 FAT,CHOIC,CKD,RSTD',158, '3 oz'],['BEEF,RND,TOP RND RST,BNLESS,LN,0 FAT,SEL,CKD,RSTD',150, '3 oz'],['BEEF,RND,EYE OF RND STEAK,BNLESS,LN,0 FT,A GRDS,CKD,GRILLED',155, '3 oz'],['BEEF,RND,EYE OF RND STEAK,BNLESS,LN,0 FAT,CHOIC,CKD,GRILLED',158, '3 oz'],['BEEF,RND,EYE OF RND STEAK,BNLESS,LN,0 FAT,SEL,CKD,GRILLED',149, '3 oz'],['BEEF,LOIN,TOP LOIN STEAK,BNLESS,LIP-ON,LN,1/8 FAT,SEL,RAW',135, '3 oz'],['BEEF,LOIN,TOP LOIN STEAK,BNLESS,LIP-ON,LN,1/8 FAT,CHOIC,RAW',149, '3 oz'],['Beef, ln, top ln stk, bneless lip-on, 1/8 fat all grdes raw',143, '3 oz'],['BEEF,LN,TP LN STEAK,BNLESS,LIP-ON,LN & FAT,1/8 FAT,SEL,RAW',191, '3 oz'],['BEEF,LN,TP LN STK,BNLESS,LIPON,LN & FAT,1/8 FAT,ALL GRDS,RW',199, '3 oz'],['BEEF,LN,TP LN STK,BNLESS,LIPON,L & F,1/8 FAT,CHOIC,GRILLED',275, '3 oz'],['BEEF,LN,TP LN STK,BNLESS,LIPON,L & F,1/8 FAT,SeL, CK GRLED',247, '3 oz'],['BEEF,LN,TP LN STK,BNLESS,LIPON,L & F,1/8 FAT,A GRDS, GRILLED',264, '3 oz'],['BEEF,LON,TP LON STK,BNLSS,LIP-ON,LN,1/8 FAT,CHC,CKD,GRILLD',208, '3 oz'],['BEEF,LN,TOP LN STK,BNLESS,LIP-ON,LN,1/8 FAT,SEL,CKD,GRILLD',184, '3 oz'],['BEEF,LN,TOP LN STK,BNLSS,LIP-ON,LN,1/8 FAT,ALL GRDS,,GRLLD',198, '3 oz'],['BEEF,LOIN,TP LN STK,BNLESS,LIP-ON,L&F,1/8 FAT,CHOIC,RAW',205, '3 oz'],['BEEF,NZ,IMP,BOLAR BLADE,LN,CKD,FAST RSTD',193, '3 oz'],['BEEF,NZ,IMP,BOLAR BLADE,LN,RAW',129, '4 oz'],['BEEF,NZ,IMP,BRISKET NAVAL END,LN,CKD,BRSD',265, '3 oz'],['BEEF,NZ,IMP,BRISKET NAVAL END,LN,RAW',194, '4 oz'],['BEEF,NZ,IMP,BRISKET POINT END,LN,CKD,BRSD',202, '3 oz'],['BEEF,NZ,IMP,BRISKET POINT END,LN,RAW',125, '4 oz'],['BEEF,NZ,IMP,CHUCK EYE ROLL,LN,RAW',131, ''],['BEEF,NZ,IMP,CHUCK EYE ROLL,LN,CKD,BRSD',208, '1 serving'],['BEEF,NZ,IMP,CUBE ROLL,LN,CKD,FAST RSTD',239, '3 oz'],['BEEF,NZ,IMP,CUBE ROLL,LN,RAW',161, '4 oz'],['BEEF,NZ,IMP,EYE RND,LN,CKD,SLOW RSTD',164, '3 oz'],['BEEF,NZ,IMP,EYE RND,LN,RAW',116, '4 oz'],['BEEF,NZ,IMP,FLANK,LN,CKD,BRSD',194, '3 oz'],['BEEF,NZ,IMP,FLANK,LN,RAW',142, '4 oz'],['BEEF,NZ,IMP,FLAT,LN,CKD,BRSD',226, '3 oz'],['BEEF,NZ,IMP,FLAT,LN,RAW',154, '4 oz'],['BEEF,NZ,IMP,HEART,CKD,BLD',179, '3 oz'],['BEEF,NZ,IMP,HEART,RAW',105, '4 oz'],['BEEF,NZ,IMP,HIND SHIN,LN,CKD,BRSD',167, '3 oz'],['BEEF,NZ,IMP,HIND SHIN,LN,RAW',114, '4 oz'],['BEEF,NZ,IMP,INSIDE,RAW',128, '4 oz'],['BEEF,NZ,IMP,INTERMUSCULAR FAT,CKD',560, '3 oz'],['BEEF,NZ,IMP,INTERMUSCULAR FAT,RAW',602, '4 oz'],['BEEF,NZ,IMP,KIDNEY,CKD,BLD',157, '3 oz'],['BEEF,NZ,IMP,KNUCKLE,CKD,FAST FRIED',178, '3 oz'],['BEEF,NZ,IMP,KIDNEY,RAW',87, '4 oz'],['BEEF,NZ,IMP,LIVER,CKD,BLD',150, '3 oz'],['BEEF,NZ,IMP,LIVER,RAW',133, '4 oz'],['BEEF,NZ,IMP,MANUFACTURING BF,CKD,BLD',126, '3 oz'],['BEEF,NZ,IMP,MANUFACTURING BF,RAW',119, '4 oz'],['BEEF,NZ,IMP,OYSTER BLADE,LN,CKD,BRSD',196, '3 oz'],['BEEF,NZ,IMP,OYSTER BLADE,LN,RAW',155, '4 oz'],['BEEF,NZ,IMP,RIBS PREP,CKD,FAST RSTD',197, '3 oz'],['BEEF,NZ,IMP,RIBS PREP,RAW',146, '4 oz'],['BEEF,NZ,IMP,RUMP CENTRE,LN,CKD,FAST FRIED',188, '3 oz'],['BEEF,NZ,IMP,STRIPLOIN,LN,CKD,FAST FRIED',217, '3 oz'],['BEEF,NZ,IMP,STRIPLOIN,LN,RAW',150, '4 oz'],['BEEF,NZ,IMP,SUBCUTANEOUS FAT,CKD',731, '3 oz'],['BEEF,NZ,IMP,SUBCUTANEOUS FAT,RAW',685, '4 oz'],['BEEF,NZ,IMP,SWEETBREAD,CKD,BLD',318, '3 oz'],['BEEF,NZ,IMP,SWEETBREAD,RAW',303, '4 oz'],['BEEF,NZ,IMP,TENDERLOIN,LN,CKD,FAST FRIED',200, '3 oz'],['BEEF,NZ,IMP,OYSTER BLADE,LN & FAT,RAW',178, '4 oz'],['BEEF,NZ,IMP,TENDERLOIN,LN,RAW',140, '4 oz'],['BEEF,NZ,IMP,TONGUE,CKD,BLD',271, '3 oz'],['BEEF,NZ,IMP,TONGUE,RAW',243, '4 oz'],['BEEF,NZ,IMP,TRIPE UNCKD,CKD,BLD',103, '3 oz'],['BEEF,NZ,IMP,TRIPE UNCKD,RAW',77, '4 oz'],['BEEF,NZ,IMP,BOLAR BLADE,LN & FAT,CKD,FAST RSTD',228, '3 oz'],['BEEF,NZ,IMP,BOLAR BLADE,LN & FAT,RAW',159, '4 oz'],['BEEF,NZ,IMP,BRISKET NAVAL END,LN & FAT,CKD,BRSD',453, '3 oz'],['BEEF,NZ,IMP,BRISKET NAVAL END,LN & FAT,RAW',345, '4 oz'],['BEEF,NZ,IMP,BRISKET POINT END,LN & FAT,CKD,BRSD',250, '3 oz'],['BEEF,NZ,IMP,BRISKET POINT END,LN & FAT,RAW',163, '4 oz'],['BEEF,NZ,IMP,CHUCK EYE ROLL,LN & FAT,CKD,BRSD',252, '3 oz'],['BEEF,NZ,IMP,CHUCK EYE ROLL,LN & FAT,RAW',181, '4 oz'],['BEEF,NZ,IMP,CUBE ROLL,LN & FAT,CKD,FAST RSTD',286, '3 oz'],['BEEF,NZ,IMP,CUBE ROLL,LN & FAT,RAW',225, '4 oz'],['BEEF,NZ,IMP,EYE RND,LN & FAT,CKD,SLOW RSTD',168, '3 oz'],['BEEF,NZ,IMP,EYE RND,LN & FAT,RAW',129, '4 oz'],['BEEF,NZ,IMP,FLANK,LN & FAT,CKD,BRSD',208, '3 oz'],['BEEF,NZ,IMP,FLANK,LN & FAT,RAW',161, '4 oz'],['BEEF,NZ,IMP,FLAT,LN & FAT,CKD,BRSD',252, '3 oz'],['BEEF,NZ,IMP,FLAT,LN & FAT,RAW',177, '4 oz'],['BEEF,NZ,IMP,HIND SHIN,LN & FAT,CKD,BRSD',196, '3 oz'],['BEEF,NZ,IMP,HIND SHIN,LN & FAT,RAW',147, '4 oz'],['BEEF,NZ,IMP,OYSTER BLADE,LN & FAT,CKD,BRSD',197, '3 oz'],['BEEF,NZ,IMP,RUMP CENTRE,LN & FAT,CKD,FAST FRIED',192, '3 oz'],['BEEF,NZ,IMP,RUMP CENTRE,LN,RAW',141, '4 oz'],['BEEF,NZ,IMP,RUMP CENTRE,LN & FAT,RAW',145, '4 oz'],['BEEF,NZ,IMP,STRIPLOIN,LN & FAT,CKD,FAST FRIED',301, '3 oz'],['BEEF,NZ,IMP,STRIPLOIN,LN & FAT,RAW',252, '4 oz'],['BEEF,NZ,IMP,TENDERLOIN,LN & FAT,CKD,FAST FRIED',202, '3 oz'],['BEEF,NZ,IMP,TENDERLOIN,LN & FAT,RAW',146, '4 oz'],['BEEF,GROUND,93% LN MEAT / 7% FAT',146, '4 oz'],['BEEF,GROUND,93% LN MEAT / 7% FAT,PATTY,CKD,BRLD',185, '3 oz'],['BEEF,GROUND,93% LN MEAT /7% FAT,PATTY,CKD,PAN-BROILED',175, '3 oz'],['BEEF,GROUND,93% LN MEAT / 7% FAT,LOAF,CKD,BKD',184, '3 oz'],['BEEF,GROUND,93% LN MEAT / 7% FAT,CRUMBLES,CKD,PAN-BROWNED',201, '3 oz'],['BEEF,GROUND,97% LN MEAT / 3% FAT,RAW',115, '4 oz'],['BEEF,GROUND,97% LN MEAT / 3% FAT,PATTY,CKD,BRLD',146, '3 oz'],['BEEF,GROUND,97% LN MEAT /3% FAT,PATTY,CKD,PAN-BROILED',137, '3 oz'],['BEEF,GROUND,97% LN MEAT / 3% FAT,LOAF,CKD,BKD',147, '3 oz'],['BEEF,GROUND,97% LN MEAT / 3% FAT,CRUMBLES,CKD,PAN-BROWNED',167, '3 oz'],['USDA COMMODITY,BF PATTIES W/VPP,FRZ,CKD',247, '1 patty'],['USDA COMMODITY,BF,GROUND BULK/COARSE GROUND,FRZ,CKD',259, '1 oz'],['USDA COMMODITY,BF,PATTIES (100%),FRZ,CKD',249, '1 patty'],['USDA COMMODITY,BF PATTIES W/VPP,FRZ,RAW',225, '1 serving'],['USDA COMMODITY,BF,PATTIES (100%),FRZ,RAW',204, '3 oz'],['USDA COMMODITY,BF,GROUND,BULK/COARSE GROUND,FRZ,RAW',228, '1 serving'],['BEEF,CHUCK,MOCK TENDER STK,LN,0 FAT,ALL GRDS,CKD,BRLD',159, '3 oz, ( 1 serving )'],['BEEF,CHUCK,TOP BLADE,LN ONLY,TO 0 FAT,ALL GRDS,CKD,BRLD',203, '3 oz, ( 1 serving )'],['BEEF,CHUCK,CLOD RST,LN,1/4 FAT,ALL GRDS,RAW',129, '1 oz'],['BEEF,CHUCK,CLOD RST,LN,0 FAT,ALL GRDS,CKD,RSTD',172, '3 oz, ( 1 serving )'],['BEEF,CHUCK,CLOD RST,LN ONLY,TO 1/4 FAT,ALL GRDS,CKD,RSTD',173, '3 oz, ( 1 serving )'],['BEEF,SHLDR STEAK,BNLESS,LN,0 FAT,ALL GRDS,CKD,GRILLED',175, '3 oz, ( 1 serving )'],['BEEF,CHUCK,CLOD STEAK,LN ONLY,TO 1/4 FAT,ALL GRDS,CKD,BRSD',189, '3 oz, ( 1 serving )'],['BEEF,CHCK,MCK TENDER STK,LN & FAT,0 FAT,USDA CHOIC,CKD,BRLD',161, '3 oz, ( 1 serving )'],['BEEF,CHUCK,MOCK TENDER STK,LN & FAT,0 FAT,USDA SEL,CKD,BRLD',159, '3 oz, ( 1 serving )'],['BEEF,CHUCK,TOP BLADE,LN & FAT,0 FAT,CHOIC,CKD,BRLD',227, '3 oz, ( 1 serving )'],['BEEF,CHUCK,TOP BLADE,LN & FAT,0 FAT,SEL,CKD,BRLD',200, '3 oz, ( 1 serving )'],['BEEF,CHUCK,CLOD RST,LN & FAT,0 FAT,CHOIC,CKD,RSTD',216, '3 oz, ( 1 serving )'],['BEEF,CHUCK,CLOD RST,LN & FAT,0 FAT,SEL,CKD,RSTD',196, '3 oz, ( 1 serving )'],['BEEF,SHLDR STEAK,BNLESS,LN & FAT,0 FAT,CHOIC,CKD,GRILLED',186, ''],['BEEF,SHLDR STEAK,BNLESS,LN & FAT,0 FAT,SEL,CKD,GRILLED',177, '3 oz, ( 1 serving )'],['BEEF,PLATE,SKIRT STEAK,LN & FAT,0 FAT,ALL GRDS,CKD,BRLD',220, '3 oz, ( 1 serving )'],['BEEF,PLATE,OUTSIDE SKIRT,LN & FAT,0 FAT,ALL GRDS,CKD,BRLD',255, '3 oz, ( 1 serving )'],['BEEF,SIRLOIN,TRI-TIP STK,LN & FAT,0 FAT,ALL GRDS,CKD,BRLD',265, '3 oz, ( 1 serving )'],['BEEF,CHUCK,MOCK TENDER STK,LN & FAT,0 FAT,ALL GRDS,CKD,BRLD',160, '3 oz, ( 1 serving )'],['BEEF,CHUCK,TOP BLADE,LN & FAT,0 FAT,ALL GRDS,CKD,BRLD',216, '3 oz, ( 1 serving )'],['BEEF,CHUCK,CLOD RST,LN & FAT,0 FAT,ALL GRDS,CKD,RSTD',207, '3 oz, ( 1 serving )'],['BEEF,SHLDR STEAK,BNLESS,LN & FAT,0 FAT,ALL GRDS,CKD,GRILLED',182, '3 oz, ( 1 serving )'],['BEEF,GROUND,95% LN MEAT / 5% FAT,RAW',131, '4 oz'],['BEEF,GROUND,95% LN MEAT / 5% FAT,PATTY,CKD,BRLD',174, '3 oz'],['BEEF,GROUND,95% LN MEAT / 5% FAT,PATTY,CKD,PAN-BROILED',164, '3 oz'],['BEEF,GROUND,95% LN MEAT / 5% FAT,CRUMBLES,CKD,PAN-BROWNED',193, '3 oz'],['BEEF,GROUND,95% LN MEAT / 5% FAT,LOAF,CKD,BKD',174, '3 oz'],['BEEF,GROUND,90% LN MEAT / 10% FAT,RAW',176, '4 oz'],['BEEF,GROUND,90% LN MEAT / 10% FAT,PATTY,CKD,BRLD',217, '3 oz'],['BEEF,GROUND,90% LN MEAT / 10% FAT,PATTY,CKD,PAN-BROILED',204, '3 oz'],['BEEF,GROUND,90% LN MEAT / 10% FAT,CRUMBLES,CKD,PAN-BROWNED',230, '3 oz'],['BEEF,GROUND,90% LN MEAT / 10% FAT,LOAF,CKD,BKD',214, '3 oz'],['BEEF,GROUND,85% LN MEAT / 15% FAT,RAW',215, '3 oz'],['BEEF,GROUND,85% LN MEAT / 15% FAT,PATTY,CKD,BRLD',250, '3 oz'],['BEEF,GROUND,85% LN MEAT / 15% FAT,PATTY,CKD,PAN-BROILED',232, '3 oz'],['BEEF,GROUND,85% LN MEAT / 15% FAT,CRUMBLES,CKD,PAN-BROWNED',256, '3 oz'],['BEEF,GROUND,85% LN MEAT / 15% FAT,LOAF,CKD,BKD',233, '3 oz'],['BEEF,GROUND,80% LN MEAT / 20% FAT,RAW',254, '4 oz'],['BEEF,GROUND,80% LN MEAT / 20% FAT,PATTY,CKD,BRLD',270, ''],['BEEF,GROUND,80% LN MEAT / 20% FAT,PATTY,CKD,PAN-BROILED',246, '3 oz'],['BEEF,GROUND,80% LN MEAT / 20% FAT,CRUMBLES,CKD,PAN-BROWNED',272, '3 oz'],['BEEF,GROUND,80% LN MEAT / 20% FAT,LOAF,CKD,BKD',254, '3 oz'],['BEEF,GROUND,75% LN MEAT / 25% FAT,RAW',293, '4 oz'],['BEEF,GROUND,75% LN MEAT / 25% FAT,PATTY,CKD,BRLD',279, '3 oz'],['BEEF,GROUND,75% LN MEAT / 25% FAT,PATTY,CKD,PAN-BROILED',248, '3 oz'],['BEEF,GROUND,75% LN MEAT / 25% FAT,CRUMBLES,CKD,PAN-BROWNED',277, '3 oz'],['BEEF,GROUND,75% LN MEAT / 25% FAT,LOAF,CKD,BKD',254, '3 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN,1/8 FAT,SEL,RAW',134, '1 oz'],['BEEF,TENDERLOIN,STEAK,LN,1/8 FAT,SEL,RAW',148, '1 oz'],['BEEF,TOP SIRLOIN,STEAK,LN,1/8 FAT,SEL,RAW',127, '1 oz'],['BEEF,SHRT LOIN,TOP LOIN,STEAK,LN,1/8 FAT,SEL,RAW',133, '3 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN,1/8 FAT,SEL,CKD,BRLD',188, '1 oz'],['BEEF,TENDERLOIN,STEAK,LN,1/8 FAT,SEL,CKD,BRLD',194, '1 oz'],['BEEF,TOP SIRLOIN,STEAK,LN,1/8 FAT,SEL,CKD,BRLD',170, '1 oz'],['BEEF,SHRT LOIN,TOP LOIN,STEAK,LN,1/8 FAT,SEL,CKD,GRILLED',177, '1 oz'],['BEEF,RND,BTTM RND RST,LN,1/8 FAT,SEL,CKD,RSTD',164, '1 oz'],['BEEF,RND,EYE OF RND,RST,LN,1/8 FAT,SEL,CKD,RSTD',163, '1 oz'],['BEEF,RND,TOP RND,STEAK,LN,1/8 FAT,SEL,CKD,BRLD',177, '1 oz'],['BEEF,RND,BTTM RND,STEAK,LN,1/8 FAT,SEL,CKD,BRSD',205, '1 oz'],['BEEF,RND,BTTM RND,RST,LN,1/8 FAT,ALL GRDS,RAW',128, '1 oz'],['BEEF,BRISKET,FLAT HALF,LN,1/8 FAT,ALL GRDS,CKD,BRSD',196, '1 oz'],['BEEF,BRISKET,FLAT HALF,LN,1/8 FAT,ALL GRDS,RAW',127, '1 oz'],['BEEF,RND,EYE OF RND,RST,LN,1/8 FAT,ALL GRDS,RAW',124, '1 oz'],['BEEF,RND,EYE OF RND,RST,LN,1/8 FAT,ALL GRDS,CKD,RSTD',169, '1 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN,1/8 FAT,ALL GRDS,RAW',141, '1 oz'],['BEEF,TENDERLOIN,STEAK,LN,1/8 FAT,ALL GRDS,CKD,BRLD',200, '1 oz'],['BEEF,TENDERLOIN,STEAK,LN,1/8 FAT,ALL GRDS,RAW',153, '1 oz'],['BEEF,CHUCK,ARM POT RST,LN,1/8 FAT,ALL GRDS,CKD,BRSD',214, '1 oz'],['BEEF,CHUCK,ARM POT RST,LN,1/8 FAT,ALL GRDS,RAW',132, '1 oz'],['BEEF,RND,BTTM RND,RST,LN,1/8 FAT,ALL GRDS,CKD',163, '1 oz'],['BEEF,RND,BTTM RND,STEAK,LN,1/8 FAT,ALL GRDS,CKD,BRSD',216, '1 oz'],['BEEF,SHRT LOIN,TOP LOIN,STEAK,LN,1/8 FAT,ALL GRDS,CKD,BRLD',189, '1 oz'],['BEEF,SHRT LOIN,TOP LOIN STEAK,LN,1/8 FAT,ALL GRDS,RAW',138, '3 oz'],['BEEF,RND,TOP RND,STEAK,LN,1/8 FAT,ALL GRDS,CKD,BRLD',185, '1 oz'],['BEEF,RND,TOP RND,STEAK,LN,1/8 FAT,ALL GRDS,RAW',135, '3 oz'],['BEEF,TOP SIRLOIN,STEAK,LN,1/8 FAT,ALL GRDS,CKD,BRLD',178, '1 oz'],['BEEF,TOP SIRLOIN,STEAK,LN,1/8 FAT,ALL GRDS,RAW',131, '1 oz'],['BEEF,CHUCK,ARM POT RST,LN,1/8 FAT,CHOIC,RAW',139, '1 oz'],['BEEF,BRISKET,FLAT HALF,LN,1/8 FAT,CHOIC,RAW',129, '1 oz'],['BEEF,CHUCK,ARM POT RST,LN,1/8 FAT,CHOIC,CKD,BRSD',224, '1 oz'],['BEEF,BRISKET,FLAT HALF,LN,1/8 FAT,CHOIC,CKD,BRSD',203, '1 oz'],['BEEF,RND,EYE OF RND,RST,LN,1/8 FAT,CHOIC,RAW',128, '1 oz'],['BEEF,RND,TOP RND,STEAK,LN,1/8 FAT,CHOIC,RAW',140, '1 oz'],['BEEF,RND,BTTM RND,RST,LN,1/8 FAT,CHOIC,RAW',140, '1 oz'],['BEEF,RND,BTTM RND,RST,LN,1/8 FAT,CHOIC,CKD,RSTD',179, '1 oz'],['BEEF,RND,EYE OF RND,RST,LN,1/8 FAT,CHOIC,CKD,RSTD',175, '1 oz'],['BEEF,RND,TOP RND,STEAK,LN,1/8 FAT,CHOIC,CKD,BRLD',193, '1 oz'],['BEEF,RND,BTTM RND,STEAK,LN,1/8 FAT,CHOIC,CKD,BRSD',228, '1 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN,1/8 FAT,CHOIC,RAW',148, '1 oz'],['BEEF,TENDERLOIN,STEAK,LN,1/8 FAT,CHOIC,RAW',158, '1 oz'],['BEEF,TOP SIRLOIN,STEAK,LN,1/8 FAT,CHOIC,RAW',135, '1 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN,1/8FAT,CHOIC,CKD,BRLD',202, '1 oz'],['BEEF,SHRT LOIN,TOP LOIN,STEAK,LN,1/8 FAT,CHOIC,RAW',155, '3 oz'],['BEEF,TENDERLOIN,STEAK,LN,1/8 FAT,CHOIC,CKD,BRLD',206, '1 oz'],['BEEF,TOP SIRLOIN,STEAK,LN,1/8 FAT,CHOIC,CKD,BRLD',187, '1 oz'],['BEEF,SHRT LOIN,TOP LOIN,STEAK,LN,1/8 FAT,CHOIC,CKD,BRLD',201, '1 oz'],['BEEF,CHUCK,ARM POT RST,LN,1/8 FAT,SEL,RAW',125, '1 oz'],['BEEF,BRISKET,FLAT HALF,LN,1/8 FAT,SEL,RAW',124, '1 oz'],['BEEF,CHUCK,ARM POT RST,LN,1/8 FAT,SEL,CKD,BRSD',205, '1 oz'],['BEEF,BRISKET,FLAT HALF,LN,1/8 FAT,SEL,CKD,BRSD',189, '1 oz'],['BEEF,RND,EYE OF RND,RST,LN,1/8 FAT,SEL,RAW',119, '1 oz'],['BEEF,RND,TOP RND,STEAK,LN,1/8 FAT,SEL,RAW',129, '1 oz'],['BEEF,RND,BTTM RND,RST,LN,1/8 FAT,SEL,RAW',128, '1 oz'],['BEEF,RIB,SML END (RIBS 10-12),LN,1/8 FAT,ALL GRDS,CKD,BRLD',195, '1 oz'],['BEEF,VAR MEATS & BY-PRODUCTS,TRIPE,CKD,SIMMRD',94, '1 serving'],['BEEF,BTTM SIRLOIN,TRI-TIP RST,LN,0 FAT,ALL GRDS,RAW',142, '3 oz'],['BEEF,BTTM SIRLOIN,TRI-TIP RST,LN,0 FAT,CHOIC,CKD,RSTD',193, '3 oz'],['BEEF,BTTM SIRLOIN,TRI-TIP RST,LN,0 FAT,CHOIC,RAW',154, '3 oz'],['BEEF,BTTM SIRLOIN,TRI-TIP RST,LN,0 FAT,SEL,CKD,RSTD',179, '3 oz'],['BEEF,BTTM SIRLOIN,TRI-TIP RST,LN,0 FAT,SEL,RAW',129, '3 oz'],['BEEF,RND,TIP RND,RST,LN,0 FAT,ALL GRDS,RAW',126, '3 oz'],['BEEF,RND,TIP RND,RST,LN,0 FAT,CHOIC,RAW',130, '3 oz'],['BEEF,RND,TIP RND,RST,LN,0 FAT,SEL,RAW',122, '3 oz'],['BEEF,FLANK,STEAK,LN,0 FAT,ALL GRDS,CKD,BRLD',186, '3 oz'],['BEEF,FLANK,STEAK,LN,0 FAT,SEL,CKD,BRLD',178, '3 oz'],['BEEF,FLANK,STEAK,LN,0 FAT,ALL GRDS,RAW',141, '3 oz'],['BEEF,FLANK,STEAK,LN,0 FAT,SEL,RAW',137, '3 oz'],['BEEF,BRISKET,FLAT HALF,LN & FAT,1/8 FAT,CHOIC,RAW',278, '3 oz'],['BEEF,BRISKET,FLAT HALF,LN & FAT,1/8 FAT,SEL,RAW',276, '3 oz'],['BEEF,BRISKET,FLAT HALF,LN & FAT,1/8 FAT,CHOIC,CKD,BRSD',298, '3 oz'],['POPCORN,OIL-POPPED,LOFAT',402, '1 oz'],['POPCORN,OIL-POPPED,LOFAT',424, '1 oz'],['SNACKS,CANDY ROLLS,YOGURT-COVERED,FRUIT FLAV W/ HI VIT C',359, '1 Roll'],['FORMULATE BAR,MAR SNACKFOO US,SNICKE MARATH CHE CHOC PNUT BA',396, '1 bar'],['FORM BAR,MARS SNKF US,SNICKERS MARATHON MULTIGRNCRUNCH',422, '1 bar'],['FORMULAT BAR,MARSNACKFOO US,SNICKE MARATHO DOUBL CHOC NUT BA',343, '1 bar'],['SNACKS,M&M MARS,KUDOS WHL GRAIN BARS,PNUT BUTTER',463, '1 bar'],['FORMULAT BAR,MAR SNACFOO US,SNICKER MARATHO HONE NUT OAT BAR',378, '1 bar'],['SNACKS,M&M MARS,KUDOS WHL GRAIN BAR,M&MS MILK CHOC',415, '1 bar'],['FORM BAR,MARS SNACKFOOD US,COCOAVIA,CHOC ALMOND',347, '1 bar'],['SNACKS,SWT POTATO CHIPS,UNSALTED',532, '1 oz'],['SNACKS,FRITOLAY,SUNCHIPS,MULTIGRAIN SNACK,ORIGINAL FLAVOR',491, '1 oz'],['SNACKS,POPCORN,MICROWAVE,REG (BUTTER) FLAVOR, W/PARHYD OIL',557, '1 cup'],['FORMBAR,MARSSNACK,SNICKERS MARATHONPROTPERFBAR,CARMELNUTRUSH',415, '1 bar'],['FORMUL BAR,MA SNACKFO US,SNICKE MARATH ENER BAR,ALL FLAVO',386, '1 bar'],['FORMULATED BAR,POWER BAR,CHOC',363, '1 bar'],['FORM BAR,MARS SNACKFOOD US,COCOAVIA,CHOC BLUEBERRY',325, '1 bar'],['FORMULATED BAR,SLIM-FAST OPTIMA MEAL BAR,MILK CHOC PNUT',386, '1 bar'],['FORMULATED BAR,LUNA BAR,NUTZ OVER CHOC',403, '1 bar'],['SNACKS,FRITOLAY,SUNCHIPS,MULTIGRAIN,FRENCH ONION FLAVOR',496, '1 oz'],['SNACKS,FRITOLAY,SUNCHIPS,MULTIGRAIN,HARVEST CHEDDAR',491, '1 oz'],['PRETZELS,SOFT,UNSALTED',345, '1 large'],['SNACKS,SOY CHIPS OR CRISPS,SALTED',385, '1 oz'],['Popcor, microwav, regula (butter) flavo, mad with pal oil',535, '1 cup'],['SNACKS,PLANTAIN CHIPS,SALTED',531, '1 oz'],['Tortilla chips, yellow, plain, salted',497, '1 oz'],['SNACKS,VEG CHIPS,HAIN CELESTIAL GROUP,TERRA CHIPS',517, '1 oz'],['FORM BAR,ZONE PERFECT CLASSIC CRUNCH BAR,MXD FLAVORS',422, '1 bar'],['SNACKS,GRANOLA BAR,KASHI GOLEAN,CHEWY,MXD FLAVORS',390, '1 bar'],['SNACKS,GRANOLA BAR,KASHI TLC BAR,CHEWY,MXD FLAVORS',429, '1 bar'],['SNACKS,GRANOLA BAR,KASHI GOLEAN,CRUNCHY,MXD FLAVORS',393, '1 bar'],['SNACKS,GRANOLA BAR,CHEWY,RED SUGAR,ALL FLAVORS',412, '1 bar'],['SNACKS,GRANOLA BITES,MXD FLAVORS',451, '1 package'],['SNACKS,PITA CHIPS,SALTED',457, '1 oz'],['SNACKS,GRANOLA BARS,SOFT,ALMOND,CONFECTIONERS COATING',455, '1 bar'],['SNACKS,GRANOLA BARS,QUAKER OATMEAL TO GO,ALL FLAVORS',389, '1 bar'],['SNACKS,VEG CHIPS,MADE FROM GARDEN VEG',473, '1 oz'],['SNACKS,GRANOLA BAR,KASHI TLC BAR,CRUNCHY,MXD FLAVORS',446, '2 bar'],['SNACKS,CANDY BITS,YOGURT COVERED W/ VIT C',415, '1 package'],['Formulated bar, high fiber, chewy, oats and chocolate',350, '1 bar'],['SNACKS,BAGEL CHIPS,PLN',451, '1 oz'],['SNACKS,NUTRI-GRAIN FRUIT & NUT BAR',403, '1 bar'],['SNACKS,YUCCA (CASSAVA) CHIPS,SALTED',515, '1 oz'],['Snacks, CLIF BAR, mixed flavors',346, '1 bar'],['SNACKS,GRANOLA BAR,QUAKER,CHEWY,90 CAL BAR',408, '1 bar'],['Snac, grano bar, GENER MILLS NATURE VALL, SWE&SAL NUT, peanu',487, '1 bar'],['Snack,gran bar,GENERAL MILLS, NATURE VALLEY, w yogu coati',423, '1 bar'],['Snac, grano bar, GENER MILLS, NATUR VALLE, CHEWY TRAIL MIX',415, '1 bar'],['Snacks, granola bar, QUAKER, DIPPS, all flavors',480, '1 bar'],['Snacks, brown rice chips',384, '1 cake'],['SNACK,PRETZEL,HARD CHOC COATD',467, '1 serving'],['Snack, Mixed Berry Bar',383, '1 bar'],['Snacks, potato chips, fr dried potatoes, multigrain',505, '1 oz'],['SNACKS,POTATO CHIPS,LIGHTLY SALTED',560, '23 pieces'],['SOUP,EGG DROP,CHINESE RESTAURANT',27, '1 cup'],['SOUP,HOT & SOUR,CHINESE RESTAURANT',39, '1 cup'],['SOUP,WONTON,CHINESE RESTAURANT',32, '1 cup'],['CAMPBELLS CHNKY,HEALTHY REQUST MICROWAVBL ,CHICK NODLE SOUP',49, '1 serving'],['HLTHY RQST MCRWVBL BWL,GRLL CHICK SSAGE GMB',53, '1 cup'],['CAMPBELLS CHUNKY SOUPS,HEALTHY REQUES',53, '1 cup'],['CAMPBELLS RED & WHITE,CHICK BARLEY W/',71, '.5 cup'],['CAMPBELLS RED & WHITE,ITALIAN STYLE W',71, '.5 cup'],['CAMPBELLS RED & WHITE,PHINEAS & FERB SOUP,COND',56, '.5 cup, serving'],['CAMPBELLS HOMESTYLE MICROWAVEABLE BOWLS,HEALTHY REQUEST ITA',41, '1 cup'],['CAMPBELLS HOMESTYLE MICROWAVEABLE BOWLS,HEALTHY REQUEST MEX',53, '1 cup'],['CAMPBELLS HOMESTYLE HARVEST TOMATO W/ BASIL SOUP',45, '1 cup'],['CAMPBELLS HOMESTYLE HR CHICK W/ WHL GRAIN PASTA SOUP',40, '1 cup'],['CAMPBELLS SOUP ON THE GO,HR CHICK W/ MINI NOODLES SOUP',20, '1 container'],['CAMPBELLS SOUP ON THE GO,HEALTHY REQUEST CLASSIC TOMAT SOUP',39, '1 container'],['PACE,PICO DE GALLO',31, '1 serving'],['PACE,SALSA VERDE',47, '1 serving'],['PACE,TEQUILA LIME SALSA',47, '1 serving'],['PACE,TRIPLE PEPPER SALSA',47, '1 serving'],['CAMPBELLS RED & WHITE,LENTIL SOUP,COND',111, '.5 cup'],['PREGO PASTA,HEART SMART- TRADITIONAL S',54, '.5 cup'],['CAMPBELLS,98% FAT FREE CRM OF MUSHROOM SOUP,COND',53, '.5 cup, condensed'],['SOUP,RAMEN NOODLE,DRY,ANY FLAVOR,RED FAT,RED NA',350, '1.41 oz, dry (half noodle block)'],['SOUP,CLAM CHOWDER,NEW ENGLAND,CND,RTS',79, '1 cup'],['SOUP,CLAM CHOWDER,NEW ENGLAND,RED NA,CND,RTS',70, '1 can'],['SOUP,CHICK NOODLE,RED NA,CND,RTS',41, '1 cup'],['SOUP,BF & VEG,RED NA,CND,RTS',42, '1 cup'],['SAUCE,DUCK,RTS',245, '2 Tbsp'],['SAUCE,SALSA,VERDE,RTS',38, '2 Tbsp'],['SAUCE,STEAK,TOMATO BSD',95, '2 Tbsp'],['SAUCE,TARTAR,RTS',211, '2 tablespoons'],['SAUCE,SWT & SOUR,RTS',150, '2 Tbsp'],['SAUCE,COCKTAIL,RTS',124, '.25 cup'],['DIP,SALSA CON QUESO,CHS & SALSA- MED',143, '2 tbsp'],['DIP,OLD EL PASO,CHS N SALSA,MED',129, '2 tbsp'],['DIP,TOSTITOS,SALSA CON QUESO,MED',133, '2 tbsp'],['SAUCE,BARBECUE,SWT BABY RAYS,ORIGINAL',192, '1 tbsp'],['SAUCE,BARBECUE,BULLS-EYE,ORIGINAL',170, '1 tbsp'],['SAUCE,BARBECUE,KC MASTERPIECE,ORIGINAL',160, '1 tbsp'],['SAUCE,BARBECUE,OPEN PIT,ORIGINAL',132, '1 tbsp'],['SAUCE,PNUT,MADE FROM PNUT BUTTER,H2O,SOY SAU',257, '1 tbsp'],['SOUP,CHUNKY VEG,RED NA,CND,RTS',50, '1 cup'],['KELLOGGS,EGGO,MINI MUFFIN TOPS,CHOC CHIP',300, '1 set'],['KELLOGGS,EGGO,NUTRI-GRAIN FRZ FRUIT PIZZA,MXD BERRY GRANOLA',259, '1 pizza'],['KELLOGGS,EGGO,NUTRI-GRAIN FRZ FRUIT PIZZA,STRAWBERRY GRANOL',266, '1 pizza'],['KELLOGGS,EGGO,PANCAKES,BLUEBERRY',245, '3 pancakes'],['KELLOGGS,EGGO,PANCAKES,CHOC CHIP',253, '3 pancakes'],['KELLOGGS,CINNABON,PANCAKES,CARAMEL',255, '3 pancakes'],['KELLOGGS,CINNABON,PANCAKES,ORIGINAL',258, '3 pancakes'],['KELLOGGS,EGGO,WAFFLERS,BROWN SUGAR CINN ROLL',331, '2 waffles'],['KELLOGGS,EGGO,WAFFLERS,STRAWBERRY STRUDEL',318, '2 waffles'],['KELLOGGS,EGGO,WAFFLES,BLUEBERRY',265, '2 waffles'],['KELLOGGS,EGGO,WAFFLES,BTTRMLK',278, '2 waffles'],['KELLOGGS,EGGO,WAFFLES,CINN TOAST',325, '3 sets'],['KELLOGGS,EGGO,FIBERPLUS WAFFLES,BTTRMLK',227, '2 waffles'],['KELLOGGS,EGGO,FIBERPLUS WAFFLES,CHOC CHIP',259, '2 waffles'],['KELLOGGS,EGGO,WAFFLES,FRENCH TOAST',305, '1 waffle'],['KELLOGGS,EGGO,WAFFLES,HOMESTYLE',278, '2 waffles'],['KELLOGGS,EGGO PROT,WAFFLES,HOMESTYLE',281, '2 waffles'],['KASHI,TLC,PITA CRISPS,SEA SALT',381, '11 crisps'],['KELLOGGS,EGGO,NUTRI-GRAIN,WAFFLES,BLUEBERRY',257, '2 waffles'],['KELLOGGS,EGGO,NUTRI-GRAIN,WAFFLES,HONEY OAT',268, '2 waffles'],['KASHI,TLC,PITA CRISPS,ZESTY SALSA',381, '11 crisps'],['KELLOGGS,EGGO,NUTRI-GRAIN,WAFFLES,ORIGINAL',239, '2 waffles'],['KELLOGGS,EGGO SEASONS,WAFFLES,PUMPKIN SPICE',296, '2 waffles'],['KELLOGGS,SIMPLY EGGO,ORIGINAL',294, '2 waffles'],['KELLOGGS,EGGO,WAFFLES,STRAWBERRY',265, '2 waffles'],['KELLOGGS,EGGO,THICK & FLUFFY,WAFFLES,BROWN SUGAR',307, '1 waffle'],['KELLOGGS,EGGO,THICK & FLUFFY,WAFFLES,ORIGINAL',295, '1 waffle'],['FAMOUS AMOS,CHOC CHIP COOKIES',503, '4 cookies'],['FAMOUS AMOS,CHOC CHIP PECAN COOKIES',519, '4 cookies'],['GIRL SCOUTS,CARAMEL DULCE DE LECHE COOKIES',520, '4 cookies'],['GIRL SCOUTS,CHALET COOKIES',478, '3 cookies'],['GIRL SCOUTS,DO-SI-DOS COOKIES',478, '2 cookies'],['GIRL SCOUTS,SAMOAS COOKIES',489, '2 cookies'],['GIRL SCOUTS,TAGALONGS COOKIES',558, '2 cookies'],['GIRL SCOUTS,THANK U BERRY MUNCH COOKIES',491, '2 cookies'],['GIRL SCOUTS,THIN MINTS COOKIES',502, '4 cookies'],['GIRL SCOUTS,TREFOILS COOKIES',498, '5 cookies'],['JACKSONS,OLD FASHIONED LEMON JUMBLE COOKIES',469, '3 cookies'],['JACKSONS,OLD FASHIONED VANILLA WAFERS',453, '8 cookies'],['KASHI,TLC,HAPPY TRAIL MIX COOKIES',453, '1 cookie'],['KASHI,TLC,OATMEAL DK CHOC COOKIES',426, '1 cookie'],['KASHI,TLC,OATMEAL RAISIN FLAX COOKIES',414, '1 cookie'],['KEEBLER,ANIMALS,COOKIES',450, '1 package, 1 serving'],['KEEBLER,ANIMALS,FRSTD COOKIES',506, '8 cookies, 1 serving'],['KEEBLER,ANIMALS,ICED COOKIES',459, '6 cookies, 1 serving'],['KEEBLER,ANIMALS,CRACKERS',450, '8 crackers, 1 serving'],['KEEBLER,BAKERS TREASURES,CHOC CHIP COOKIE,SOFT',437, '2 cookies'],['KEEBLER,BAKERS TREASURES,OATMEAL RAISIN COOKIE,SOFT',420, '2 cookies'],['KEEBLER,CHS & CHEDDAR SNDWCH CRACKERS',502, '1 package'],['KEEBLER,CLUB & CHEDDAR SNDWCH CRACKERS',494, '1 package'],['KEEBLER,CHS ON WHEAT SNDWCH CRACKERS',499, '1 package'],['KEEBLER,CHIPS DELUXE,CHOC LOVERS COOKIES',508, '2 cookies'],['KEEBLER,CHIPS DELUXE,CHOC MALT CHUNK COOKIES',537, '2 cookies'],['KEEBLER,CHIPS DELUXE,COCNT COOKIES',530, '2 cookies'],['KEEBLER,CHIPS DELUXE,DK CHOC CHUNK COOKIES',518, '2 cookies'],['KEEBLER,CHIPS DELUXE,MINI CHOC CHIP COOKIES',498, '1 pouch'],['KEEBLER,CHIPS DELUXE,OATMEAL CHOC CHIP COOKIES',500, '2 cookies'],['KEEBLER,CHIPS DELUXE,ORIGINAL CHOC CHIP COOKIES',517, '2 cookies'],['KEEBLER,CHIPS DELUXE,PNUT BUTTER CUPS COOKIES',519, '2 cookies'],['KEEBLER,CHIPS DELUXE,RAINBOW CHOC CHIP COOKIES',502, '2 cookies'],['KEEBLER,CHIPS DELUXE,RAINBOW CHOC CHIP COOKIES,BITE SIZE',505, '5 cookies, 1 serving'],['KEEBLER,CHIPS DELUXE,SOFT N CHEWY CHOC CHIP COOKIES',464, '2 cookies'],['KEEBLER,CLUB,BUTTERY GARLIC CRACKERS',488, '4 crackers'],['KEEBLER,CLUB,DASH OF SALT CRACKERS',490, '4 crackers'],['KEEBLER,CLUB,MINIS ORIGINAL CRACKERS',479, '17 crackers'],['KEEBLER,CLUB,MINIS MULTIGRAIN CRACKERS',470, '17 crackers'],['KEEBLER,CLUB,MULTIGRAIN CRACKERS',466, '4 crackers'],['KEEBLER,CLUB,ORIGINAL CRACKERS',486, '4 crackers'],['KEEBLER,CLUB,RED FAT CRACKERS',441, '5 crackers'],['KEEBLER,CLUB CRACKERS,SNACK STKS,HONEY WHEAT',471, '12 crackers'],['KEEBLER,CLUB CRACKERS,SNACK STKS,ORIGINAL',475, '12 crackers'],['KEEBLER,COUNTRY STYLE OATMEAL COOKIES W/ RAISINS',482, '2 cookies'],['KEEBLER,DANISH WEDDING COOKIES',504, '4 cookies'],['KEEBLER,E.L. FUDGE,BUTTER FLAV COOKIES',482, '2 cookies'],['KEEBLER,E.L. FUDGE,DOUBLE STUFFED COOKIES',512, '2 cookies'],['KEEBLER,FUDGE SHOPPE,CHEESECAKE MIDDLES,DK CHOC',506, '3 cookies'],['KEEBLER,FUDGE SHOPPE,CHEESECAKE MIDDLES,ORIGINAL GRAHAM COOK',507, '3 cookies'],['KEEBLER,FUDGE SHOPPE,MINT CREME MIDDLES,CHOC GRAHAM COOKIES',516, '3 cookies'],['KEEBLER,FUDGE SHOPPE,COCNT DREAMS COOKIES',499, '2 cookies'],['KEEBLER,FUDGE SHOPPE,DELUXE GRAHAMS COOKIES',511, '3 pieces'],['KEEBLER,FUDGE SHOPPE,CARAMEL FILLED COOKIES',506, '2 cookies'],['KEEBLER,FUDGE SHOPPE,PNUT CREME FILLED COOKIES',537, '2 cookies'],['KEEBLER,FUDGE SHOPPE,TRIPLE FUDGE FILLED COOKIES',533, '2 cookies'],['KEEBLER,FUDGE SHOPPE,FUDGE-DIPPED ICE CRM CUPS',485, '1 cup'],['KEEBLER,FUDGE SHOPPE,FUDGE GRAHAMS,1/2 DIPPED,RED FAT',470, '4 cookies'],['KEEBLER,FUDGE SHOPPE,FUDGE STKS',529, '3 cookies'],['KEEBLER,FUDGE SHOPPE,FUDGE STRIPES,DK CHOC',487, '3 cookies'],['KEEBLER,FUDGE SHOPPE,FUDGE STRIPES,HOLIDAY/SPIDERMAN',498, '3 cookies'],['KEEBLER,FUDGE SHOPPE,FUDGE STRIPES,MINI',497, '1 package'],['KEEBLER,FUDGE SHOPPE,FUDGE STRIPES,OATMEAL',478, '3 cookies'],['KEEBLER,FUDGE SHOPPE,FUDGE STRIPES,ORIGINAL',500, '3 cookies'],['KEEBLER,FUDGE SHOPPE,GRASSHOPPER COOKIES,FUDGE MINT',499, '4 cookies'],['KEEBLER,FUDGE SHOPPE,JUMBO FUDGE STKS,VANILLA',530, '1 cookie'],['KEEBLER,FUDGE SHOPPE,JUMBO FUDGE STKS,PNUT BUTTER',537, '1 cookie'],['KEEBLER,FUDGE SHOPPE,MAGIC MIDDLES FUDGE FILLED COOKIES,ORIG',521, '2 cookies'],['KEEBLER,FUDGE SHOPPE,MERRY MINT PATTIES,HOLIDAY',528, '2 cookies'],['KEEBLER,FUDGE SHOPPE,MAGIC MIDDLES FUDGE FILLED COOKIES,PNUT',514, '2 cookies'],['KEEBLER,FUDGE SHOPPE,JUMBO FUDGE STKS,MINT',525, '1 cookie'],['KEEBLER,FUDGE SHOPPE,FUDGE STKS,PNUT BUTTER',544, '3 cookies'],['KEEBLER,CINN TOAST GRAHAMS',429, '1 package'],['KEEBLER,GRIPZ,CHIPS DELUXE,CHOC CHIP COOKIES,BITE-SIZE',473, '1 pouch'],['KEEBLER,GRIPZ,CHIPS DELUXE,RAINBOW CHOC CHIP COOKIES,BITE-SI',470, '1 pouch'],['KEEBLER,GRIPZ,CHOC CHIP GRAHAMS,BITE-SIZE',433, '1 pouch'],['KEEBLER,GRIPZ,CINN GRAHAMS,BITE-SIZE',415, '1 pouch'],['KEEBLER,ALMOND CRESCENTS COOKIES,HOLIDAY',482, '4 cookies'],['KEEBLER,GINGERBREAD MEN COOKIES,HOLIDAY',444, '5 cookies'],['KEEBLER,HOLIDAY JINGLES COOKIES',470, '6 cookies'],['KEEBLER,ICED OATMEAL COOKIES',467, '2 cookies'],['KEEBLER,TOAST & PNUT BUTTER SNDWCH CRACKERS',489, '1 package'],['KEEBLER,READY CRUST,CHOC PIE CRUST',490, '.125 crust, 1 serving (from 9 shell)'],['KEEBLER,READY CRUST,SHORTBREAD PIE CRUST',502, '.125 crust, 9 crust'],['KEEBLER,100 CAL RIGHT BITES,CHIPS DELUXE,CHOC CHIP COOKIES',452, '1 pouch'],['KEEBLER,100 CAL RIGHT BITES,FUDGE SHOPPE,DK CHOC FUDGE STRIP',479, '1 pouch'],['KEEBLER,100 CAL RIGHT BITES,FUDGE SHOPPE,FUDGE COVERED PRETZ',455, '1 package'],['KEEBLER,100 CAL RIGHT BITES,FUDGE SHOPPE,COOKIES N CREME',471, '1 pouch'],['KEEBLER,100 CAL RIGHT BITES,FUDGE SHOPPE,MINI BROWNIES',455, '1 package'],['KEEBLER,100 CAL RIGHT BITES,FUDGE SHOPPE,MINI FUDGE GRAHAMS',467, '1 pouch'],['KEEBLER,100 CAL RIGHT BITES,FUDGE SHOPPE,MINI FUDGE STRIPES',470, '1 pouch'],['KEEBLER,100 CAL RIGHT BITES,FUDGE SHOPPE,MINI MINTS GRASSHOP',456, '1 pouch'],['KEEBLER,100 CAL RIGHT BITES,SANDIES SHORTBREAD COOKIES,FUDGE',462, '1 package'],['KEEBLER,100 CAL RIGHT BITES,SANDIES SHORTBREAD COOKIES',468, '1 pouch'],['KEEBLER,100 CAL RIGHT BITES,WHITE FUDGE DIPPED PRETZELS',483, '1 pouch'],['KEEBLER,SANDIES,CASHEW SHORTBREAD COOKIES',535, '2 cookies'],['KEEBLER,SANDIES,CHOC CHIP & PECAN SHORTBREAD COOKIES',546, '2 cookies'],['KEEBLER,SANDIES,DK CHOC ALMOND SHORTBREAD COOKIES',540, '2 cookies'],['KEEBLER,SANDIES,PECAN SHORTBREAD COOKIES',541, '2 cookies'],['KEEBLER,SANDIES,PECAN SHORTBREAD COOKIES,BITE SIZE',547, '5 cookies, 28 g package'],['KEEBLER,SANDIES,PECAN SHORTBREAD COOKIES,RED FAT',488, '2 cookies'],['KEEBLER,SOFT BATCH,CHOC CHIP COOKIES',477, '2 cookies'],['KEEBLER,SWT CREMES COOKIES',469, '2 cookies'],['KEEBLER,TSTD COCNT COOKIES',475, '2 cookies'],['KEEBLER,TOASTEDS,BUTTERCRISPS CRACKERS',495, '5 crackers'],['KEEBLER,TOASTEDS,PARTY PK CRACKER ASSORTMENT',483, '5 crackers'],['KEEBLER,TOASTEDS,ONION CRACKERS',479, '5 crackers'],['KEEBLER,TOASTEDS,SESAME CRACKERS',496, '5 crackers'],['KEEBLER,TOASTEDS,WHEAT CRACKERS',466, '5 crackers'],['KEEBLER,TOWN HOUSE,BISTRO MULTIGRAIN CRACKERS',460, '2 crackers'],['KEEBLER,TOWN HOUSE,FLIPSIDES,PRETZEL CRACKERS,CHS',476, '5 crackers'],['KEEBLER,TOWN HOUSE,FLIPSIDES,PRETZEL CRACKERS,GARLIC HERB',486, '5 crackers'],['KEEBLER,TOWN HOUSE,FLIPSIDES,PRETZEL CRACKERS,ORIGINAL',487, '5 crackers'],['KEEBLER,TOWN HOUSE,ORIGINAL CRACKERS',526, '5 crackers'],['KEEBLER,TOWN HOUSE,RED FAT CRACKERS',431, '6 crackers'],['KEEBLER,TOWN HOUSE,FLIPSIDES,PRETZEL CRACKERS,RED FAT',450, '5 crackers'],['KEEBLER,TOWN HOUSE,TOPPERS,GARLIC HERB CRACKERS',483, '3 crackers'],['KEEBLER,TOWN HOUSE,TOPPERS,MULTIGRAIN CRACKERS',462, '3 crackers'],['KEEBLER,TOWN HOUSE,TOPPERS,ORIGINAL CRACKERS',483, '3 crackers'],['KEEBLER,TOWN HOUSE,WHEAT CRACKERS',489, '5 crackers'],['KEEBLER,TOWN HOUSE,FLATBREAD CRISPS,SEA SALT & OLIVE OIL CRA',443, '8 crackers'],['KEEBLER,TRADITIONS,ICED LEMONADE COOKIES',502, '4 cookies'],['KEEBLER,TRADITIONS,ICED OATMEAL COOKIES',463, '4 cookies'],['KEEBLER,VANILLA WAFERS MINIS,RAINBOW',466, '18 cookies'],['KEEBLER,VIENNA FINGERS W/ CREME FILLING',492, '2 cookies'],['KEEBLER,VIENNA FINGERS W/ CREME FILLING,RED FAT',465, '2 cookies'],['KEEBLER,WAFFLE BOWLS',424, '1 waffle'],['KEEBLER,WAFFLE CONES',424, '1 cone'],['KEEBLER,WHEATABLES,HONEY WHEAT CRACKERS',482, '17 crackers'],['KEEBLER,WHEATABLES,NUT CRISP CRACKERS,RSTD ALMOND',472, '16 crackers'],['KEEBLER,WHEATABLES,NUT CRISP CRACKERS,TSTD PECAN',483, '16 crackers'],['KELLOGGS,ALL-BRAN,GARLIC & HERB CRACKERS',467, '18 crackers'],['KELLOGGS,ALL-BRAN,MULTIGRAIN CRACKERS',415, '18 crackers'],['KELLOGGS,CORN FLAKES CRUMBS',367, '6 tbsp'],['KELLOGGS,POP-TARTS,FRSTD APPL STRUDEL TOASTER PASTRIES',395, '1 pastry'],['KELLOGGS,POP-TARTS,FRSTD BLUEBERRY MUFFIN TOASTER PASTRIES',397, '1 pastry'],['KELLOGGS,POP-TARTS,CHOC CHIP COOKIE DOUGH TOASTER PASTRIES',387, '1 pastry'],['KELLOGGS,POP-TARTS,FRSTD CINN ROLL TOASTER PASTRIES',416, '1 pastry'],['KELLOGGS,POP-TARTS,FRSTD CONFETTI CAKE TOASTER PASTRIES',375, '1 pastry'],['KELLOGGS,POP-TARTS,FRSTD COOKIES & CREME TOASTER PASTRIES',379, '1 pastry'],['KELLOGGS,POP-TARTS,FRSTD ORANGE CRM TOASTER PASTRIES',401, '1 pastry'],['KELLOGGS,POP-TARTS,FRSTD PUMPKIN PIE TOASTER PASTRIES',394, '1 pastry'],['KELLOGGS,POP-TARTS,FRSTD SPRING BERRY TOASTER PASTRIES',390, '1 pastry'],['KELLOGGS,POP-TARTS,FRSTD SUGAR COOKIE TOASTER PASTRIES',393, '1 pastry'],['KELLOGGS,POP-TARTS,FRSTD WAFFLE CONE TOASTER PASTRIES',373, '1 pastry'],['KELLOGGS,POP-TARTS,FRSTD WILD FRUIT FUSION TOASTER PASTRIES',391, '1 pastry'],['KELLOGGS,POP-TARTS,FRSTD WILD GRAPE TOASTER PASTRIES',390, '1 pastry'],['KELLOGGS,POP-TARTS,FRSTD WILD STRAWBERRY TOASTER PASTRIES',391, '1 pastry'],['KELLOGGS,POP-TARTS,ICE CRM SHOPPE FRSTD HOT FUDGE SUNDAE TO',391, '1 pastry'],['KELLOGGS,POP-TARTS,ICE CRM SHOPPE FRSTD ICE CREME SNDWCH TO',390, '1 pastry'],['KELLOGGS,POP-TARTS,ICE CRM SHOPPE FRSTD RAINBOW CHIP TOASTE',400, '1 pastry'],['KELLOGGS,POP-TARTS,ICE CRM SHOPPE FRSTD STRAWBERRY MILKSHAK',397, '1 pastry'],['KELLOGGS,POP-TARTS,ICE CRM SHOPPE FRSTD VANILLA MILKSHAKE T',398, '1 pastry'],['KELLOGGS,POP-TARTS MINI CRISPS,CINN BROWN SUGAR BKD BITES',433, '1 pouch'],['KELLOGGS,POP-TARTS MINI CRISPS,FRSTD CHOC BKD BITES',438, '1 pouch'],['KELLOGGS,POP-TARTS MINI CRISPS,FRSTD STRAWBERRY BKD BITES',440, '1 pouch'],['KELLOGGS,SPL K,CRACKER CHIPS,CHEDDAR',382, '27 chips'],['KELLOGGS,SPL K,CRACKER CHIPS,SEA SALT',361, '30 chips'],['KELLOGGS,SPL K,CRACKER CHIPS,SOUR CRM & ONION',365, '27 chips'],['KELLOGGS,SPL K,CRACKER CHIPS,SOUTHWEST RANCH',380, '27 chips'],['KELLOGGS,SPL K,MULTIGRAIN CRACKERS',401, '24 crackers'],['KELLOGGS,SPL K,SAVORY HERB CRACKERS',406, '24 crackers'],['KELLOGGS,POP-TARTS,GINGERBREAD TOASTER PASTRIES',393, '1 pastry'],['KELLOGGS,POP-TARTS,YUM-AZING VANILLA MILKSHAKE TOASTER PAST',398, '1 pastry'],['MOTHERS,4TH OF JULY CIRCUS ANIMAL COOKIES',487, '6 cookies'],['MOTHERS,CHOC CHIP COOKIES',490, '4 cookies'],['MOTHERS,CIRCUS ANIMAL COOKIES',515, '6 cookies'],['MOTHERS,COCNT COCADAS COOKIES',500, '5 cookies'],['MOTHERS,DOUBLE FUDGE CREME SNDWCH COOKIES',457, '2 cookies'],['MOTHERS,ENG TEA SNDWCH COOKIES',469, '2 cookies'],['MOTHERS,HALLOWEEN CIRCUS ANIMALS COOKIES',514, '6 cookies'],['MOTHERS,HOLIDAY CIRCUS ANIMAL COOKIES',515, '6 cookies'],['MOTHERS,ICED LEMONADE COOKIES',502, '4 cookies'],['MOTHERS,ICED OATMEAL COOKIES',463, '4 cookies'],['MOTHERS,JUNGLE ANIMAL COOKIES',514, '6 cookies'],['MOTHERS,MACAROON COOKIES',552, '2 cookies'],['MOTHERS,OLD FASHIONED CHOC CHIP COOKIES',500, '2 cookies'],['MOTHERS,OLD FASHIONED ICED OATMEAL COOKIES',461, '2 cookies'],['MOTHERS,PNUT BUTTER GAUCHOS COOKIES',482, '2 cookies'],['MOTHERS,TAFFY SNDWCH COOKIES',475, '2 cookies'],['MURRAY,SUGAR FREE,VANILLA SUGAR WAFER',458, '4 cookies'],['MURRAY,CHOCOLATEY CHIP THINS COOKIES',466, '8 cookies'],['MURRAY,COOKIE JAR CLASSICS,COCNT BARS COOKIES',461, '6 cookies'],['MURRAY,DUPLEX CREME SNDWCH COOKIES',475, '3 cookies'],['MURRAY,LEMON CREME SNDWCH COOKIES',479, '3 cookies'],['MURRAY,JACKS VANILLA WAFERS',438, '9 cookies'],['MURRAY,OLD FASHIONED ICED OATMEAL COOKIES',459, '5 cookies'],['MURRAY,SOUTHERN KITCHEN,CHOC CHIP COOKIES',493, '2 cookies'],['MURRAY,SOUTHERN KITCHEN,COCNT COOKIES',511, '2 cookies'],['MURRAY,SOUTHERN KITCHEN,ICED OATMEAL COOKIES',467, '2 cookies'],['MURRAY,SUGAR FREE,CHOC BITES COOKIES',363, '1 pouch'],['MURRAY,SUGAR FREE,CHOC CHIP & PECAN COOKIES',497, '3 cookies'],['MURRAY,SUGAR FREE,FUDGE DIPPED GRAHAMS',483, '4 cookies'],['MURRAY,SUGAR FREE,FUDGE DIPPED MINT COOKIES',481, '4 cookies'],['MURRAY,SUGAR FREE,FUDGE DIPPED WAFERS',486, '4 cookies'],['MURRAY,SUGAR FREE,PNUT BUTTER COOKIES',505, '3 cookies'],['MURRAY,SUGAR FREE,PECAN SHORTBREAD COOKIES',514, '3 cookies'],['MURRAY,SUGAR FREE,LEMON CREME SNDWCH COOKIES',469, '3 cookies'],['MURRAY,SUGAR FREE,VANILLA CREME SNDWCH COOKIES',467, '3 cookies'],['MURRAY,SUGAR FREE,SHORTBREAD COOKIES',431, '8 cookies'],['MURRAY,SUGAR FREE,SHORTBREAD BITES',371, '1 pouch'],['MURRAY,SUGAR FREE,VANILLA WAFER',412, '9 cookies'],['MURRAY,VANILLA SUGAR WAFER',527, '5 cookies'],['MURRAY,VANILLA WAFER',461, '8 cookies'],['SUNSHINE,CHEEZ-IT,ASIAGO CRACKERS',502, '25 crackers'],['SUNSHINE,CHEEZ-IT,BABY SWISS CRACKERS',503, '25 crackers'],['SUNSHINE,CHEEZ-IT,BIG CRACKERS',507, '13 crackers'],['SUNSHINE,CHEEZ-IT,CHEDDAR JACK CRACKERS',460, '25 crackers'],['SUNSHINE,CHEEZ-IT,COLBY CRACKERS',512, '25 crackers'],['SUNSHINE,CHEEZ-IT,DUOZ SHARP CHEDDAR PARMESAN CRACKERS',500, '25 crackers'],['SUNSHINE,CHEEZ-IT,DUOZ SMOKED CHEDDAR MONTEREY JACK CRACKERS',507, '25 crackers'],['SUNSHINE,GRIPZ,CHEEZ-IT CRACKERS',491, '1 package'],['SUNSHINE,GRIPZ,CHEEZ-IT MIXX & CHEESY PIZZA CRACKERS',484, '1 pouch'],['SUNSHINE,CHEEZ-IT,HOT & SPICY CRACKERS',513, '25 crackers'],['SUNSHINE,CHEEZ-IT,ITALIAN FOUR CHS CRACKERS',500, '25 crackers'],['SUNSHINE,CHEEZ-IT,CRACKERS (MADE W/ WHL GRAIN)',511, '27 crackers'],['SUNSHINE,CHEEZ-IT,MOZZARELLA CRACKERS',500, '25 crackers'],['SUNSHINE,CHEEZ-IT,PARMESAN GARLIC CRACKERS',503, '25 crackers'],['SUNSHINE,CHEEZ-IT,PEPPER JACK CRACKERS',503, '25 crackers'],['SUNSHINE,CHEEZ-IT,WHITE CHEDDAR,RED FAT CRACKERS',443, '25 crackers'],['SUNSHINE,CHEEZ-IT,100 CAL RIGHT BITES,EX CHEESY PARTY MIX',473, '1 pouch'],['SUNSHINE,CHEEZ-IT,100 CAL RIGHT BITES,RED FAT',452, '1 package'],['SUNSHINE,CHEEZ-IT,SCRABBLE JR. CRACKERS',466, '26 crackers'],['SUNSHINE,CHEEZ-IT,SNACK MIX',438, '.5 cup'],['SUNSHINE,CHEEZ-IT,SNACK MIX,WHITE CHEDDAR',473, '.5 cup, 25 crackers'],['KEEBLER,ZESTA,EXPORT SODAS CRACKERS',414, '3 crackers'],['AUSTIN,PNUT BUTTER ON CHS CRACKERS,SANDWICH-TYPE',492, '1 package'],['AUSTIN,PNUT BUTTER ON TOASTY CRACKERS,SANDWICH-TYPE',489, '1 package'],['AUSTIN,CHEDDAR CHS ON WAFER CRACKERS,SANDWICH-TYPE',489, '1 package'],['KELLOGGS,EGGO MINIS,PANCAKES,BTTRMLK',251, '11 pancakes'],['KELLOGGS,EGGO,WAFFLES,CHOC CHIP',291, '2 waffles'],['FAMOUS AMOS,CHOC SNDWCH CREME COOKIES',474, '3 cookies'],['FAMOUS AMOS,VANILLA SNDWCH CREME COOKIES',485, '3 cookies'],['KEEBLER,GRAHAMS,CINN CRISP',430, '8 crackers'],['KEEBLER,OATMEAL COOKIES',478, '2 cookies'],['KEEBLER,CHS & PNUT BUTTER SNDWCH CRACKERS',492, '1 package'],['KEEBLER,READY CRUST,GRAHAM PIE CRUST (10),RED FAT',472, '.125 crust'],['KEEBLER,SANDIES,SIMPLY SHORTBREAD COOKIES',528, '2 cookies'],['KEEBLER,SUGAR CONES',375, '1 cone'],['MOTHERS,OLD FASHIONED OATMEAL COOKIES',470, '2 cookies'],['MOTHERS,VANILLA SNDWCH COOKIES',469, '2 cookies'],['MURRAY,COOKIE JAR CLASSICS,BUTTER COOKIES',463, '8 cookies'],['MURRAY,CHOC CREME SNDWCH COOKIES',473, '3 cookies'],['MURRAY,VANILLA CREME SNDWCH COOKIES',477, '3 cookies'],['MURRAY,HONEY GRAHAM',445, '8 crackers'],['MURRAY,OLD FASHIONED GINGERSNAPS COOKIES',463, '5 cookies'],['MURRAY,SOUTHERN KITCHEN,OATMEAL COOKIES',478, '2 cookies'],['MURRAY,SUGAR FREE,CHOC CHIP COOKIES',469, '3 cookies'],['MURRAY,SUGAR FREE,OATMEAL COOKIES',451, '3 cookies'],['MURRAY,SUGAR FREE,CHOC CREME SNDWCH COOKIES',465, '3 cookies'],['SUNSHINE,CHEEZ-IT,ORIGINAL CRACKERS',507, '27 crackers'],['SUNSHINE,CHEEZ-IT,RED FAT CRACKERS',449, '29 crackers'],['SUNSHINE,KRISPY,SOUP & OYSTER CRACKERS (LARGE)',416, '16 crackers'],['KEEBLER,ZESTA,SALTINES,ORIGINAL',418, '5 crackers'],['KEEBLER,ZESTA,SALTINES W/ WHL WHEAT',416, '5 crackers'],['BREAD,CHAPATI OR ROTI,WHL WHEAT,FRZ',299, '1 piece'],['BREAD,PARATHA (INDIAN BREAD),WHL WHEAT,FRZ',326, '1 piece'],['BREAD,NAAN (INDIAN BREAD),WHL WHEAT,REFR',286, '1 piece'],['BREAD,ROLL,MEXICAN,BOLLILO',318, '1 piece'],['COOKIE,VANILLA W/ CARAMEL,COCNT,& CHOC COATING',489, '2 cookies'],['COOKIE,W/ PNUT BUTTER FILLING,CHOCOLATE-COATED',558, '2 cookies'],['COOKIES,ANIMAL,W/ FRSTNG OR ICING',509, '8 cookies, 1 serving'],['CRACKERS,MULTIGRAIN',482, '4 crackers'],['COOKIE,BUTTER OR SUGAR,W/ CHOC ICING OR FILLING',503, '3 cookies'],['COOKIE,CHOC,W/ ICING OR COATING',507, '4 cookies'],['TORTILLAS,RTB OR -FRY,WHL WHEAT',310, '1 tortilla, 1 serving'],['CAKE,SNACK CAKES,CREME-FILLED,CHOC W/ FRSTNG,LOW-FAT',409, '1 cake, 1 serving'],['CAKE,SNACK CAKES,NOT CHOC,W/ ICING OR FILLING,LOW-FAT',405, '1 cake, 1 serving'],['COOKIES,BROWNIES,COMMLY PREP,RED FAT',345, '1 brownie, 1 serving'],['COOKIES,CHOC SNDWCH,W/ CREME FILLING,RED FAT',436, '1 serving'],['COOKIES,OATMEAL SNDWCH,W/ CREME FILLING',398, '1 cookie, 1 serving'],['COOKIES,PNUT BUTTER,COMMLY PREP,SUGAR FREE',523, '1 serving, 3 cookies'],['COOKIES,GRAHAM CRACKERS,PLN OR HONEY,LOWFAT',386, '1 serving'],['CRACKERS,CHS,WHL GRAIN',412, '1 serving, 55 pieces'],['WAFFLES,WHL WHEAT,LOWFAT,FRZ,RTH',257, '1 serving, 2 waffles'],['PANCAKES,PLN,RED FAT',269, '1 serving, 3 pancakes'],['BREAD,CHAPATI OR ROTI,PLN,COMMLY PREP',297, '1 piece'],['BREAD,NAAN (INDIAN BREAD),PLN,COMMLY PREP,REFR',291, '1 piece'],['CRACKERS,STD SNACK-TYPE,W/ WHL WHEAT',463, '5 crackers, 1 serving'],['COOKIES,COCNT MACAROON',460, '2 cookie, 1 serving'],['CAMPBELLS,TOMATO JUC',21, '8 fl oz'],['CAMPBELLS, TOMATO JUC,LO NA',21, '8 fl oz'],['V8 VEG JUC,ORGANIC V8',20, '8 fl oz'],['CAMPBELLS,ORGANIC TOMATO JUC',21, '8 fl oz'],['HEALTHY REQUEST TOMATO JUC',21, '8 fl oz'],['CAMPBELLS V8 100% VEG JUC',21, '8 fl oz'],['V8 VEG JUC,ESSENTIAL ANTIOXIDANTS V8',21, '8 oz'],['V8 VEG JUC,CA ENR V8',21, '8 fl oz'],['V8 VEG JUC,LO NA V8',21, '8 fl oz'],['V8 VEG JUC,SPICY HOT V8',21, '8 fl oz'],['PACE,JALAPENOS NACHO SLICED PEPPERS',13, '1 oz'],['PACE,DICED GRN CHILIES',27, '2 tbsp'],['V8 60% VEG JUC,V8 V-LITE',14, '8 fl oz'],['V8 VEG JUC,LO NA SPICY HOT',21, '8 fl oz'],['V8 VEG JUC,HI FIBER V8',25, '8 fl oz'],['SEAWEED,CANADIAN CULTIVATED EMI-TSUNOMATA,DRY',259, '.25 cup'],['SEAWEED,CANADIAN CULTIVATED EMI-TSUNOMATA,REHYDRATED',31, '.25 cup'],['POTATOES,HASH BROWN,REFR,UNPREP',84, '1 cup, unprepared'],['POTATOES,HASH BROWN,REFR,PREP,PAN-FRIED IN CANOLA OIL',242, '1 cup, prepared'],['SWEET POTATOES,FRENCH FR,FRZ,UNPREP',152, '3 oz'],['SWEET POTATOES,FRENCH FR,CROSSCUT,FRZ,UNPREP',209, '3 oz'],['SWEET POTATO PUFFS,FRZ,UNPREP',161, '3 oz'],['POTATOES,YEL FLESHED,RSTD,SALT ADDED IN PROC,FRZ,UNPREP',119, '3 oz'],['POTATOES,YEL FLESHED,FRENCH FR,FRZ,UNPREP',162, '3 oz'],['POTATO,YEL FLSH,HASH BRN,SHRD,SALT ADDED IN PROC,FRZ,UNPREP',81, '3 oz'],['POTATOES,FRENCH FR,WEDGE CUT,FRZ,UNPREP',166, '3 oz'],['POTATOES,FRENCH FR,STK CUT,SALT NOT ADDED IN PROC,FRZ,UNPREP',138, '3 oz'],['POTATOES,FRENCH FR,CROSS CUT,FRZ,UNPREP',193, '3 oz'],['RICE & VERMICELLI MIX,BF FLAVOR,UNPREP',359, '.333 cup'],['RICE & VERMICELLI MIX,BF FLAVOR,PREP W/ 80% MARGARINE',129, '1 cup'],['RICE & VERMICELLI MIX,RICE PILAF FLAVOR,UNPREP',359, '.333 cup'],['RICE & VERMICELLI MIX,RICE PILAF FLAVOR,PREP W/ 80% MARGARIN',148, '1 cup'],['MACARONI & CHS,BOX MIX W/ CHS SAU,UNPREP',334, '3.5 oz, 1 serving'],['MACARONI & CHS,BOX MIX W/ CHS SAU,PREP',164, '1 cup, prepared'],['TAQUITOS,FRZ,CHICK & CHS,OVEN-HEATED',284, '1 piece'],['TAQUITOS,FRZ,BF & CHS,OVEN-HEATED',287, '1 piece'],['PASTA MIX,CLASSIC CHEESEBURGER MACARONI,UNPREP',349, '1 package'],['PASTA MIX,CLASSIC BF,UNPREP',354, '1 package'],['PASTA MIX,ITALIAN LASAGNA,UNPREP',356, '1 package'],['YELLOW RICE W/ SEASONING,DRY PACKET MIX,UNPREP',343, '2 oz, 1 serving'],['PIZZA ROLLS,FRZ,UNPREP',328, '1 serving, 6 rolls'],['POTSTICKER OR WONTON,PORK & VEG,FRZ,UNPREP',136, '5 pieces, 1 serving'],['MACARONI OR NOODLES W/ CHS,MADE FROM RED FAT PACKAGED MIX,UN',297, '3.5 oz, 1 serving'],['TURNOVER,CHEESE-FILLED,TOMATO-BASED SAU,FRZ,UNPREP',235, '1 serving, 4.5 oz'],['MACARONI OR NOODLES W/ CHS,MICROWAVEABLE,UNPREP',388, '1 serving, 1 pouch'],['PASTA MIX,ITALIAN FOUR CHS LASAGNA,UNPREP',355, '1 package'],['SPANISH RICE MIX,DRY MIX,UNPREP',363, '.5 cup'],['LASAGNA,CHS,FRZ,UNPREP',145, '1 cup, 1 serving'],['CHICKEN,THIGHS,FRZ,BREADED,REHTD',334, '1 thigh, with bone and breading'],['SPANISH RICE MIX,DRY MIX,PREP (WITH CANOLA/VEGETABLE OIL BLE',125, '1 cup'],['KASHI THREE CHS RAVIOLI W/ MEDITERRANEAN TOMATO SAU,FRZ,UNPR',139, '.5 Package'],['KASHI MUSHROOM & ASPARAGUS RISOTTO,FRZ,UNPREP',119, '.5 Package'],['INF FORMULA, MEAD JOHNSON, ENFAMIL, PRM, NEWBORN, PWD',514, '1 scoop'],['INF FORMULA,MEAD JOHNSON,ENFAMIL,PREMIUM LIPIL,INFANT,PDR',510, '1 scoop'],['INF FORMU, MEA JOHN, ENFA, PRE LIPIL, INFA, LIQ CON, NOT REC',129, '1 fl oz'],['INF FORMULA,MEAD JOHNSON,ENFA,PREM,INFANT,LIQ CONC,NOT REC',129, '1 fl oz'],['INF FORMULA, MEAD JOHNS, ENFA, ENFA, GENTL, TODD, LIPI, POW',494, '1 scoop'],['INF FORMULA, GERBER, GOOD START, PROTECT PLUS,PDR',512, '1 scoop'],['INF FORMULA,GERBER GOOD START 2,GENTLE PLUS,PDR',492, '1 scoop'],['INF FORMULA, GERBER, GOOD START 2, PROTECT PLUS, PDR',501, '1 scoop'],['INF FORMULA, MEAD JOHNSON, ENFAMI,ENFAGR, SOY,TOD,LIPIL,PDR',470, '1 scoop'],['INF FORMULA, ABB NUTR, SIMIL, GO & GR, PDR, W/ ARA & DHA',512, '1 scoop'],['INF FORMULA, GERBER, GOOD START 2 SOY, W/ IRON,PDR',501, '1 scoop'],['INF FORMU,MEAD JOHNS,ENFAMIL,NUTRAMIG,AA LIPIL,PDR,NOT RECON',500, '1 scoop'],['INF FORMULA,MEAD JOHNSON,ENFAMI,PREMATURE,20 CAL RTF LO IRON',66, '1 fl oz'],['INF FORMULA,MEAD JOHNSON,ENFAML,PREMATURE,24 CAL RTF LO IRON',67, '5 fl oz'],['INF FORMULA,MEAD JOHNSON,ENFAMIL,PREMIUM,INFANT,RTF',66, '1 fl oz'],['INF FORMULA,MEAD JOHNSON,ENFAMIL,PREMIUM,INFANT,PDR',510, '1 scoop'],['AGUTUK,FISH/BERRY W/ SEAL OIL (ICE CREAM) (ALASKA NATIVE)',353, ''],['AGUTUK,MEAT-CARIBOU (ALASKAN ICE CREAM) (ALASKA NATIVE)',258, ''],['ASCIDIANS (TUNUGHNAK) (ALASKA NATIVE)',20, ''],['BEAR,BLACK,MEAT (ALASKA NATIVE)',155, ''],['BEAR,POLAR,MEAT,RAW (ALASKA NATIVE)',130, ''],['WHALE,BELUGA,MEAT,DRIED (ALASKA NATIVE)',327, '1 strip'],['WHALE,BELUGA,EYES (ALASKA NATIVE)',291, ''],['Whale, beluga, meat, raw (Alaska Native)',111, ''],['WHALE,BELUGA,FLIPPER,RAW (ALASKA NATIVE)',271, ''],['WHALE,BELUGA,LIVER,RAW (ALASKA NATIVE)',117, ''],['OIL,BELUGA,WHALE (ALASKA NATIVE)',900, ''],['BLACKBERRIES,WILD,RAW (ALASKA NATIVE)',52, '1 cup'],['FISH,BLACKFISH,WHL (ALASKA NATIVE)',82, ''],['BLUEBERRIES,WILD,FRZ (ALASKA NATIVE)',44, ''],['CARIBOU,BONE MARROW,RAW (ALASKA NATIVE)',786, ''],['CARIBOU,EYE,RAW (ALASKA NATIVE)',326, ''],['CARIBOU,LIVER,RAW (ALASKA NATIVE)',122, ''],['STEW/SOUP,CARIBOU (ALASKA NATIVE)',41, ''],['CARIBOU,TONGUE,RAW (ALASKA NATIVE)',260, ''],['CHITON,LEATHERY,GUMBOOTS (ALASKA NATIVE)',83, ''],['CLOUDBERRIES,RAW (ALASKA NATIVE)',51, ''],['COCKLES,RAW (ALASKA NATIVE)',79, ''],['CRANBERRIES,WILD,BUSH,RAW (ALASKA NATIVE)',55, ''],['CRANBERRY,LO BUSH OR LINGENBERRY,RAW (ALASKA NATIVE)',55, ''],['FISH,DEVILFISH,MEAT (ALASKA NATIVE)',97, ''],['FIREWEED,YOUNG LEAVES,RAW (ALASKA NATIVE)',44, ''],['FISH,HERRING EGGS ON GIANT KELP,PACIFIC (ALASKA NATIVE)',63, ''],['FISH,HERRING EGGS,PACIFIC,DRY (ALASKA NATIVE)',312, ''],['FISH,HERRING EGGS,PACIFIC,PLN (ALASKA NATIVE)',74, ''],['FISH,HERRING,PACIFIC,FLSH,AIR-DRIED,PACK OIL (ALASKA NATIVE)',489, ''],['HUCKLEBERRIES,RAW (ALASKA NATIVE)',37, ''],['FISH,LINGCOD,MEAT,RAW (ALASKA NATIVE)',79, ''],['FISH,LINGCOD,LIVER (ALASKA NATIVE)',424, ''],['STEW,MOOSE (ALASKA NATIVE)',55, ''],['MOOSE,MEAT,RAW (ALASKA NATIVE)',103, ''],['MASHU ROOTS,RAW (ALASKA NATIVE)',135, ''],['MOOSE,LIVER,BRSD (ALASKA NATIVE)',155, ''],['MOUSE NUTS,ROOTS (ALASKA NATIVE)',81, ''],['MOUSE NUTS,SEEDLINGS (ALASKA NATIVE)',104, ''],['OCTOPUS (ALASKA NATIVE)',56, ''],['SEAL,BEARDED (OOGRUK),MEAT,DRIED (ALASKA NATIVE)',351, ''],['SEAL,BEARDED (OOGRUK),MEAT,RAW (ALASKA NATIVE)',110, ''],['OIL,BEARDED SEAL (OOGRUK) (ALASKA NATIVE)',899, ''],['OOPAH (TUNICATE),WHL ANIMAL (ALASKA NATIVE)',67, ''],['OWL,HORNED,FLESH,RAW (ALASKA NATIVE)',136, ''],['FISH,PIKE,NORTHERN,LIVER (ALASKA NATIVE)',156, ''],['RHUBARB,WILD,LEAVES (ALASKA NATIVE)',61, ''],['FISH,SALMON,TIPNUK,FERMENTED (ALASKA NATIVE)',159, ''],['FISH,SALMON,KING,CHINOOK,KIPPERED,CND (ALASKA NATIVE)',266, ''],['FISH,SALMON,KING,CHINOOK,SMOKED & CND (ALASKA NATIVE)',150, ''],['FISH,SALMON,KING,CHINOOK,SMOKED,BRINED (ALASKA NATIVE)',430, ''],['FISH,SALMON,KING,CHINOOK,LIVER (ALASKA NATIVE)',156, ''],['DUCK,SCOTER,WHITE-WINGED,MEAT (ALASKA NATIVE)',84, ''],['SEA CUCUMBER,YANE (ALASKA NATIVE)',56, ''],['SEAL,RINGED,MEAT (ALASKA NATIVE)',142, ''],['SEAL,RINGED,LIVER (ALASKA NATIVE)',116, ''],['SOUP,FISH,HOMEMADE (ALASKA NATIVE)',72, ''],['SOURDOCK,YOUNG LEAVES (ALASKA NATIVE)',42, ''],['SQUIRREL,GROUND,MEAT (ALASKA NATIVE)',111, ''],['TEA,TUNDRA,HERB & LABORADOR COMBINATION (ALASKA NATIVE)',1, ''],['WALRUS,MEAT,DRIED (ALASKA NATIVE)',251, ''],['DEER (VENISON),SITKA,RAW (ALASKA NATIVE)',116, ''],['WALRUS,MEAT,RAW (ALASKA NATIVE)',199, ''],['WALRUS,MEAT & SUBCUTANEOUS FAT RAW (ALASKA NATIVE)',282, ''],['WALRUS,LIVER,RAW (ALASKA NATIVE)',125, ''],['OIL,WALRUS (ALASKA NATIVE)',900, ''],['WHALE,BOWHEAD,SUBCUTANEOUS FAT (BLUBBER) (ALASKA NATIVE)',870, ''],['WHALE,BOWHEAD,SKN & SUBCUTANEOUS FATMUKTUK(ALASKA NATIVE)',465, ''],['OIL,WHALE,BOWHEAD (ALASKA NATIVE)',900, ''],['FISH,WHITEFISH,BROAD,LIVER (ALASKA NATIVE)',104, ''],['FISH,WHITEFISH,MXD SP,RAW (ALASKA NATIVE)',131, ''],['FISH,WHITEFISH,HEAD,EYES,CHEEKS & SOFT BONES (ALASKA NATIVE)',107, ''],['WILLOW,LEAVES IN OIL (ALASKA NATIVE)',592, ''],['WILLOW,YOUNG LEAVES,CHOPD (ALASKA NATIVE)',122, ''],['MUSH,BLUE CORN W/ ASH (NAVAJO)',54, ''],['CORNMEAL,BLUE (NAVAJO)',398, ''],['MELON,BANANA (NAVAJO)',21, ''],['CHILCHEN (RED BERRY BEVERAGE) (NAVAJO)',44, ''],['CORN,DRIED (NAVAJO)',386, ''],['CORN,WHITE,STMD (NAVAJO)',386, ''],['CORNMEAL,WHITE (NAVAJO)',398, ''],['CORNMEAL,YEL (NAVAJO)',384, ''],['SQUASH,INDIAN,RAW (NAVAJO)',26, ''],['SQUASH,INDIAN,CKD,BLD (NAVAJO)',16, '1 oz'],['BREAD,KNEEL DOWN (NAVAJO)',195, '1 oz'],['MUTTON,CKD,RSTD (NAVAJO)',234, '1 oz'],['FRYBREAD,MADE W/ LARD (NAVAJO)',330, '1 piece'],['TORTILLA,INCL PLN & FROM MUTTON SNDWCH (NAVAJO)',237, '1 serving'],['STEW,DUMPLING W/ MUTTON (NAVAJO)',101, '1 serving'],['STEW,HOMINY W/ MUTTON (NAVAJO)',83, '1 serving'],['STEW,MUTTON,CORN,SQUASH (NAVAJO)',103, '1 serving'],['TAMALES (NAVAJO)',153, '1 piece'],['STEW,STMD CORN (NAVAJO)',112, ''],['FISH,HALIBUT,RAW,W/ SKN (ALASKA NATIVE)',116, ''],['FISH,SALMON,COHO (SILVER),RAW (ALASKA NATIVE)',140, ''],['FISH,SALMON,SOCKEYE (RED),RAW (ALASKA NATIVE)',153, ''],['FISH,SALMON,CHUM,RAW (ALASKA NATIVE)',116, ''],['FISH,SALMON,KING (CHINOOK),RAW (ALASKA NATIVE)',187, ''],['SALMONBERRIES,RAW (ALASKA NATIVE)',47, ''],['BLUEBERRIES,WILD,RAW (ALASKA NATIVE)',61, ''],['OIL,SPOTTED SEAL (ALASKA NATIVE)',894, ''],['FISH,SALMON,RED,CND,BONES REMOVED (ALASKA NATIVE)',161, ''],['FISH,WHITEFISH,EGGS (ALASKA NATIVE)',104, ''],['CARIBOU,RUMP MEAT,HALF DRIED (ALASKA NATIVE)',255, ''],['CARIBOU,SHLDR MEAT,DRIED (ALASKA NATIVE)',271, ''],['CARIBOU,HIND QUARTER MEAT,RAW (ALASKA NATIVE)',122, ''],['SEAL,BEARDED (OOGRUK),MEAT,DRIED,IN OIL (ALASKA NATIVE)',367, ''],['FISH,WHITEFISH,DRIED (ALASKA NATIVE)',371, ''],['FISH,SALMON,RED,(SOCKEYE),CND,SMOKED (ALASKA NATIVE)',206, ''],['FISH,SALMON,RED,(SOCKEYE),KIPPERED (ALASKA NATIVE)',141, ''],['FISH,SALMON,KING,W/ SKN,KIPPERED,(ALASKA NATIVE)',209, ''],['FISH,SHEEFISH,RAW (ALASKA NATIVE)',115, ''],['SEAL,BEARDED (OOGRUK),MEAT,LO QUADRANT,RAW (ALASKA NATIVE)',186, ''],['FISH,SALMON,CHUM,DRIED (ALASKA NATIVE)',378, ''],['ELK,FREE RANGE,GROUND,CKD PATTIES (SHOSHONE BANNOCK)',143, ''],['ELK,FREE RANGE,GROUND,RAW (SHOSHONE BANNOCK)',97, ''],['BUFFALO,FREE RANGE,TOP RND STEAK,RAW (SHOSHONE BANNOCK)',97, ''],['SEAL,BEARDED (OOGRUK),MEAT,PART DRIED (ALASKA NATIVE)',270, ''],['BUFFALO,FREE RANGE,TOP RND STEAK,CKD (SHOSHONE BANNOCK)',146, ''],['ELK,FREE RANGE,RST,EYE OF RND,RAW (SHOSHONE BANNOCK)',98, ''],['ELK,FREE RANGE,RST,EYE OF RND,CKD (SHOSHONE BANNOCK)',148, ''],['CHOKECHERRIES,RAW,PITTED (SHOSHONE BANNOCK)',156, ''],['STEELHEAD TROUT,DRIED,FLESH (SHOSHONE BANNOCK)',382, ''],['STEELHEAD TROUT,BLD,CND (ALASKA NATIVE)',159, ''],['ACORN STEW (APACHE)',95, ''],['CORN,DRIED,YEL (NORTHERN PLAINS INDIANS)',419, '1 oz'],['SMELT,DRIED (ALASKA NATIVE)',386, ''],['FRYBREAD,MADE W/ LARD (APACHE)',309, ''],['CORNED BF & POTATOES IN TORTILLA (APACHE)',224, ''],['TENNIS BREAD,PLN (APACHE)',258, ''],['FISH,HALIBUT,CKD,W/ SKN (ALASKA NATIVE)',113, ''],['SALMON,RED (SOCKEYE),FILETS W/ SKN,SMOKED (ALASKA NATIVE)',345, '1 filet'],['AGAVE,RAW (SOUTHWEST)',68, ''],['AGAVE,CKD (SOUTHWEST)',135, ''],['AGAVE,DRIED (SOUTHWEST)',341, ''],['CATTAIL,NARROW LEAF SHOOTS (NORTHERN PLAINS INDIANS)',25, '1 shoot'],['LAMBSQUARTERS,RAW (NORTHERN PLAINS INDIANS)',47, '1 leaf'],['LAMBSQUARTERS,STMD (NORTHERN PLAINS INDIANS)',48, '1 cup'],['PRICKLY PEARS,RAW (NORTHERN PLAINS INDIANS)',42, '1 pad, peeled'],['PRICKLY PEARS,BRLD (NORTHERN PLAINS INDIANS)',91, '1 pad'],['PRAIRIE TURNIPS,RAW (NORTHERN PLAINS INDIANS)',156, '1 bulb, peeled'],['PRAIRIE TURNIPS,BLD (NORTHERN PLAINS INDIANS)',129, '1 bulb'],['RASPBERRIES,WILD (NORTHERN PLAINS INDIANS)',62, '1 cup'],['ROSE HIPS,WILD (NORTHERN PLAINS INDIANS)',162, '1 cup'],['CHOKECHERRIES,RAW,PITTED (NORTHERN PLAINS INDIANS)',162, '1 cup'],['STINGING NETTLES,BLANCHED (NORTHERN PLAINS INDIANS)',42, '1 cup'],['PLUMS,WILD (NORTHERN PLAINS INDIANS)',91, '1 cup'],['PINON NUTS,RSTD (NAVAJO)',541, ''],['CARIBOU,HIND QUARTER,MEAT,CKD (ALASKA NATIVE)',159, '.5 cup'],['AGUTUK,FISH W/ SHORTENING (ALASKAN ICE CREAM) (ALASKA NATIVE',470, ''],['SEA LION,STELLER,LIVER (ALASKA NATIVE)',137, ''],['SEA LION,STELLER,KIDNEY (ALASKA NATIVE)',93, ''],['SEA LION,STELLER,HEART (ALASKA NATIVE)',102, ''],['SEA LION,STELLER,MEAT (ALASKA NATIVE)',120, ''],['SEA LION,STELLER,MEAT W/ FAT (ALASKA NATIVE)',242, ''],['SEA LION,STELLER,FAT (ALASKA NATIVE)',850, ''],['WOCAS,DRIED SEEDS,OREGON,YEL POND LILY (KLAMATH)',361, '1 oz'],['HAZELNUTS,BEAKED (NORTHERN PLAINS INDIANS)',628, '1 nut'],['PIKI BREAD,MADE FROM BLUE CORNMEAL (HOPI)',390, '1 piece'],['WOCAS,TUBER,CKD,OREGON,YEL POND LILY (KLAMATH)',34, '1 oz'],['STEW,PINTO BEAN & HOMINY,BADUFSUKI (HOPI)',32, '8 oz'],['TAMALES,MASA & PORK FILLING (HOPI)',168, '4 oz'],['TEA,HERBAL,BREWED,HOHOYSI (HOPI)',2, ''],['TORTILLA,BLUE CORN,SAKWAVIKAVIKI (HOPI)',276, '1 piece'],['BREAD,BLUE CORN,SOMIVIKI (HOPI)',186, ''],['APPLEBEES,9 OZ HOUSE SIRLOIN STEAK',189, '1 serving'],['APPLEBEES,DOUBLE CRUNCH SHRIMP',323, '1 serving'],['APPLEBEES,FRENCH FR',290, '1 serving'],['APPLEBEES,KRAFT,MACARONI & CHS,FROM KIDS MENU',143, '1 cup'],['APPLEBEES,MOZZARELLA STKS',316, '1 piece'],['APPLEBEES,CHICK TENDERS,FROM KIDS MENU',296, '1 piece'],['T.G.I. FRIDAYS,FRIDAYS SHRIMP,BREADED',302, '1 serving'],['T.G.I. FRIDAYS,FRENCH FR',296, '1 serving'],['T.G.I. FRIDAYS, fried mozzarella',333, '1 piece'],['T.G.I. FRIDAYS,MACARONI & CHS,FROM KIDS MENU',121, '1 cup'],['T.G.I. FRIDAYS,CHICK FINGERS,FROM KIDS MENU',330, '1 piece'],['T.G.I. FRIDAYS, classic sirloin steak (10 oz)',196, '1 serving'],['RESTAURANT,FAMILY STYLE,FRIED MOZZARELLA STKS',325, '1 serving'],['RESTAURANT,FAMILY STYLE,SIRLOIN STEAK',195, '1 serving'],['RESTAURANT,FAMILY STYLE,FRENCH FR',289, '1 serving'],['RESTAURANT,FAMILY STYLE,CHICK FINGERS,FROM KIDS MENU',307, '1 serving'],['RESTAURANT,FAMILY STYLE,SHRIMP,BREADED & FRIED',308, '1 serving'],['RESTAURANT,FAMILY STYLE,MACARONI & CHS,FROM KIDS MENU',151, '1 cup'],['APPLEBEES,FISH,HAND BATTERED',202, '1 serving'],['APPLEBEES,CHILI',157, '1 cup'],['T.G.I. FRIDAYS,CHICK FINGERS',325, '1 serving'],['APPLEBEES,COLESLAW',120, '1 serving'],['APPLEBEES,CRUNCHY ONION RINGS',356, '1 serving'],['APPLEBEES,CHICK TENDERS PLATTER',297, '1 serving'],['CRACKER BARREL,CHICK TENDERLOIN PLATTER,FRIED',293, '1 serving'],['CRACKER BARREL,COLESLAW',175, '1 serving'],['CRACKER BARREL,ONION RINGS,THICK-CUT',327, '1 serving'],['DENNYS,CHICK STRIPS',295, '1 serving'],['DENNYS,COLESLAW',183, '1 serving'],['DENNYS,FISH FILLET,BATTERED OR BREADED,FRIED',234, '1 serving'],['DENNYS,HASH BROWNS',197, '1 serving'],['DENNYS,ONION RINGS',385, '1 serving'],['DENNYS,SPAGHETTI & MEATBALLS',170, '1 serving'],['RESTAURANT,FAMILY STYLE,FISH FILLET,BATTERED OR BREAD,FRIED',219, '1 serving'],['RESTAURANT,FAMILY STYLE,CHICK TENDERS',302, '1 serving'],['RESTAURANT,FAMILY STYLE,COLESLAW',159, '1 serving'],['RESTAURANT,FAMILY STYLE,ONION RINGS',356, '1 serving'],['RESTAURANT,FAMILY STYLE,CHILI W/ MEAT & BNS',157, '1 cup'],['RESTAURANT,FAMILY STYLE,SPAGHETTI & MEATBALLS',170, '1 cup'],['RESTAURANT,FAMILY STYLE,HASH BROWNS',197, '1 cup'],['CRACKER BARREL,MACARONI N CHS',194, '1 serving'],['RESTAURANT,ITALIAN,LASAGNA W/ MEAT',185, '1 serving'],['OLIVE GARDEN,LASAGNA CLASSICO',184, '1 serving'],['CARRABBAS ITALIAN GRILL,LASAGNE',191, '1 serving'],['ON THE BORDER,MEXICAN RICE',195, '1 cup'],['ON THE BORDER,REFRIED BNS',144, '1 cup'],['RESTAURANT,ITALIAN,SPAGHETTI W/ POMODORO SAU (NO MEAT)',104, '1 serving'],['OLIVE GARDEN,SPAGHETTI W/ POMODORO SAU',102, '1 serving'],['CARRABBAS ITALIAN GRILL,SPAGHETTI W/ POMODORO SAU',104, '1 serving'],['ON THE BORDER,CHS ENCHILADA',271, '1 serving, serving size varied from 1 to 3 enchiladas'],['RESTAURANT,MEXICAN,CHS ENCHILADA',273, '1 serving, serving size varied from 1 to 3 enchiladas'],['ON THE BORDER,CHS QUESADILLA',394, '1 serving, 1 quesadilla'],['RESTAURANT,MEXICAN,CHS QUESADILLA',368, '1 serving, serving size varied on diameter and count of quesadila'],['CARRABBAS ITALIAN GRILL,CHS RAVIOLI W/ MARINARA SAU',156, '1 serving, varied from 8 to 10 ravioli per serving'],['OLIVE GARDEN,CHS RAVIOLI W/ MARINARA SAU',159, '1 serving, varied from 7-9 ravioli per serving'],['RESTAURANT,ITALIAN,CHS RAVIOLI W/ MARINARA SAU',154, '1 serving, serving size varied by diameter and count of raviloi'],['RESTAURANT,MEXICAN,CHS TAMALES',216, '1 serving, serving size varied from 1 to 3 tamales'],['CARRABBAS ITALIAN GRILL,CHICK PARMESAN WO/ CAVATAPPI PASTA',206, '1 serving'],['OLIVE GARDEN,CHICK PARMIGIANA WO/ PASTA',211, '1 serving'],['RESTAURANT,ITALIAN,CHICK PARMESAN WO/ PASTA',204, '1 serving'],['ON THE BORDER,SOFT TACO W/ GROUND BF,CHS & LETTUCE',229, '1 serving, varied from 2-3 tacos per serving'],['RESTAURANT,MEXICAN,SOFT TACO W/ GROUND BF,CHS & LETTUCE',219, '1 serving, varied from 1 to 3 tacos per serving'],['RESTAURANT,LATINO,CHICK & RICE,ENTREE,PREP',174, '1 cup'],['RESTAURANT,LATINO,EMPANADAS,BF,PREP',335, '1 piece'],['RESTAURANT,LATINO,ARROZ CON LECHE (RICE PUDDING)',146, '1 serving'],['RESTAURANT,LATINO,ARROZ CON FRIJOLES NEGROS (RICE&BLACK BNS)',151, '1 serving'],['REST,LATINO,ARROZ CON ABICHUELAS COLORADOS (RICE&RED BNS)',142, '1 serving'],['RESTAURANT,LATINO,ARROZ CON GRANDULES (RICE & PIGEONPEAS)',182, '1 serving'],['RESTAURANT,LATINO,PUPUSAS CON FRIJOLES (PUPUSAS,BEAN)',229, '1 piece'],['RESTAURANT,LATINO,PUPUSAS CON QUESO (PUPUSAS,CHEESE)',256, '1 piece'],['RESTAURANT,LATINO,PUPUSAS DEL CERDO (PUPUSAS,PORK)',232, '1 piece'],['RESTAURANT,LATINO,TAMALE,CORN',186, '1 piece'],['RESTAURANT,LATINO,TAMALE,PORK',174, '1 piece'],['RESTAURANT,LATINO,BLACK BEAN SOUP',103, '1 cup'],['RESTAURANT,LATINO,TRIPE SOUP',74, '1 cup'],['RESTAURANT,LATINO,AREPA (UNLEAVENED CORNMEAL BREAD)',219, '1 piece'],['RESTAURANT,LATINO,BUNUELOS (FRIED YEAST BREAD)',462, '1 piece'],['RESTAURANT,MEXICAN,SPANISH RICE',185, '1 cup'],['RESTAURANT,MEXICAN,REFRIED BNS',156, '1 cup'],['RESTAURANT,CHINESE,EGG ROLLS,ASSORTED',250, '1 piece'],['RESTAURANT,CHINESE,FRIED RICE,WO/ MEAT',174, '1 cup'],['RESTAURANT,CHINESE,BF & VEG',105, '1 order'],['CRACKER BARREL,CHICK TENDERLOIN PLATTER,FRIED,FRM KIDS MENU',294, '1 serving'],['CRACKER BARREL,COUNTRY FRIED SHRIMP PLATTER',287, '1 serving'],['CRACKER BARREL,FARM RAISED CATFISH PLATTER',266, '1 serving'],['CRACKER BARREL,STEAK FRIES',255, '1 serving'],['CRACKER BARREL,GRILLED SIRLOIN STEAK',203, '1 steak'],['CRACKER BARREL,MACARONI N CHS PLATE,FROM KIDS MENU',192, '1 serving'],['DENNYS,FRENCH FR',282, '1 serving'],['DENNYS,MOZZARELLA CHS STKS',324, '1 serving'],['DENNYS,GOLDEN FRIED SHRIMP',319, '1 piece'],['DENNYS,MACARONI & CHS,FROM KIDS MENU',150, '1 serving'],['DENNYS,CHICK NUGGETS,STAR SHAPED,FROM KIDS MENU',377, '1 serving, 4 pieces in serving'],['DENNYS,TOP SIRLOIN STEAK',182, '1 steak'],['RESTAURANT,CHINESE,LEMON CHICK',252, '1 order'],['RESTAURANT,CHINESE,GENERAL TSOS CHICK',295, '1 order'],['RESTAURANT,CHINESE,KUNG PAO CHICK',129, '1 order'],['RESTAURANT,CHINESE,SHRIMP & VEG',78, '1 order'],['RESTAURANT,CHINESE,SWT & SOUR CHICK',250, '1 order'],['RESTAURANT,CHINESE,SWT & SOUR PORK',270, '1 order'],['RESTAURANT,CHINESE,CHICK CHOW MEIN',85, '1 order'],['RESTAURANT,CHINESE,VEG CHOW MEIN,WO/ MEAT OR NOODLES',43, '1 order'],['RESTAURANT,CHINESE,VEG LO MEIN,WO/ MEAT',121, '1 order'],['RESTAURANT,CHINESE,CHICK & VEG',95, '1 order'],['RESTAURANT,CHINESE,ORANGE CHICK',262, '1 order'],['RESTAURANT,ITALIAN,SPAGHETTI W/ MEAT SAU',121, '1 serving'],['OLIVE GARDEN,SPAGHETTI W/ MEAT SAU',121, '1 serving'],['CARRABBAS ITALIAN GRILL,SPAGHETTI W/ MEAT SAU',122, '1 serving'],['SYRUPS,GRENADINE',268, '1 tbsp'],['FRUIT-FLAVORED DRK,DRY PDR MIX,LO CAL,W/ ASPRT',218, '1 tsp'],['PECTIN,LIQUID',11, '1 fl oz, assumed specific gravity of honey'],['FROZ NOVLT,ICE CRM,VAN ICE CRM,LT,NO SUGAR ADDED,CHOC COATD',221, '1 bar'],['CREAMY DRSNG,MADE W/SOUR CRM AND/OR BTTRMLK&OIL,RED CAL',160, '1 tbsp'],['IMITATION CHS,AMERICAN OR CHEDDAR,LO CHOL',390, '1 cup, shredded'],['BABYFOOD,BANANA JUC W/LOFAT YOGURT',89, '1 fl oz'],['BABYFOOD,MXD FRUIT JUC W/LOFAT YOGURT',76, '1 fl oz'],['TURKEY HAM,SLICED,EX LN,PREPACKAGED OR DELI-SLICED',124, '1 cup, pieces'],['BOLOGNA,BF&PORK,LOFAT',230, '1 cup, pieces'],['MILK DSSRT,FRZ,MILK-FAT FREE,CHOC',167, '1 cup'],['WHIPPED TOPPING,FRZ,LOFAT',224, '1 cup'],['CREAM SUB,PDR,LT',431, '1 cup'],['SALAD DRSNG,PEPPERCORN DRSNG,COMM,REG',564, '1 tbsp'],['MAYONNAISE,RED-CAL OR DIET,CHOL-FREE',333, '1 tbsp'],['GRANOLA BAR,SOFT,MILK CHOC COATD,PNUT BUTTER',536, '1 oz'],['SALAD DRSNG,ITALIAN DRSNG,RED CAL',200, '1 tbsp'],['CREAM SUB,LIQ,LT',71, '1 fl oz'],['CANDIES,MARS SNACKFOOD US,M&MS PNUT BUTTER CHOC CANDIES',529, '1 serving, 1.63 oz singles bag'],['BABYFOOD,APPL YOGURT DSSRT,STR',96, '1 tbsp'],['VEGETABLE OIL-BUTTER SPRD,RED CAL',465, '1 tbsp'],['SALAD DRSNG,BLUE OR ROQUEFORT CHS DRSNG,LT',86, '1 tbsp'],['CHEESE,MONTEREY,LOW FAT',313, '1 cup, diced'],['CRMY DRSG,MDE W/ SOUR CRM AND/OR BTRMLK & OIL,RED CAL,FTFREE',107, '1 tbsp'],['CREAMY DRSNG,W/SOUR CRM AND/OR BTTRMLK&OIL,RED CAL,CHOL-FREE',140, '1 tbsp'],['BOLOGNA,BEEF,LOW FAT',204, '1 slice'],['SALAD DRSNG,FRENCH DRSNG,RED CAL',200, '1 tbsp'],['TURKEY&PORK SAUSAGE,FRSH,BULK,PATTY OR LINK,CKD',307, '1 cup, cooked'],['MAYONNAISE,MADE WITH TOFU',322, '1 tbsp'],['FRANKFURTER,BF,LO FAT',230, '1 frankfurter'],['BEAN BEVERAGE',34, '1 cup'],['CANDIES,MARS SNACKFOOD US,TWIX CHOC FUDGE COOKIE BARS',550, '2 cookie, 2011 label'],['YOGURT,FRZ,CHOC,NON-FAT MILK,W/LO CAL SWTNR',107, '1 cup'],['FROZEN YOGURTS,CHOC',127, '1 cup'],['FROZEN YOGURTS,FLAVORS OTHER THAN CHOC',127, '1 cup'],['FRANKFURTER,BF & PORK,LO FAT',152, '1 frankfurter'],['MILK,BTTRMLK,FLUID,CULTURED,RED FAT',56, '1 cup'],['PORK SAUSAGE RICE LINKS,BROWN&SERVE,CKD',407, '2 links, 1 NLEA serving'],['SALAD DRSNG,BLUE OR ROQUEFORT CHS DRSNG,FAT-FREE',115, '1 tbsp'],['SALAD DRSNG,MAYONNAISE-LIKE,FAT-FREE',84, '1 tbsp'],['CANDIES,MARS SNACKFOOD US,MILKY WAY MIDNIGHT BAR',443, '1 serving, 1.76 oz bar'],['PAPAD',371, ''],['RICE CAKE,CRACKER (INCL HAIN MINI RICE CAKES)',392, '1 cubic inch'],['CHEESE,PAST PROCESS,CHEDDAR OR AMERICAN,FAT-FREE',148, '1 cubic inch'],['CANDIES,MARS SNACKFOOD US,M&MS ALMOND CHOC CANDIES',522, '1 serving, 1.31 oz bag'],['SALAD DRSNG,COLESLAW DRSNG,RED FAT',329, '1 tbsp'],['OIL,FLAXSEED,COLD PRESSED',884, '1 tbsp'],['CHEESE,COTTAGE,LOWFAT,1% MILKFAT,LACTOSE RED',74, '4 oz'],['CEREALS RTE,FRSTD OAT CRL W/MARSHMALLOWS',400, '.75 cup, (1 NLEA serving)'],['CEREALS RTE,WEETABIX WHL GRAIN CRL',371, '2 biscuits, (1 NLEA serving)'],['CEREALS RTE,POST,HONEY BUNCHES OF OATS,W/ ALMONDS',409, '.75 cup, (1 NLEA serving)'],['TURKEY,PORK,&BF SAUSAGE,RED FAT,SMOKED',241, '1 cup, pieces'],['MARGARINE-LIKE,VEG OIL SPRD,STK OR TUB,SWTND',534, '1 tablespoon'],['CHEESE PRODUCT,PAST PROCESS,CHEDDAR,RED FAT',240, '1 slice, 1 oz'],['SNACKS,POPCORN,HOME-PREPARED,OIL-POPPED,UNSALTED',500, '1 cup'],['CEREALS RTE,POST,GREAT GRAINS CRUNCHY PECAN CRL',403, '.75 cup, (1 NLEA serving)'],['SAUSAGE,CHICK&BF,SMOKED',295, '1 cup, pieces'],['CEREALS RTE,POST,GREAT GRAINS,RAISIN,DATE & PECAN',378, '.75 cup, (1 NLEA serving)'],['BABYFOOD,JUC,APPLE-SWEET POTATO',48, '1 fl oz'],['BABYFOOD,JUC,ORANGE-CARROT',43, '1 fl oz'],['ORANGE JUICE DRINK',54, '1 cup'],['GRANOLA BAR,W/COCNT,CHOC COATD',531, '1 oz'],['BABYFOOD,VEG&BROWN RICE,STR',69, '1 cup'],['BABYFOOD,PEAS&BROWN RICE',64, '1 cup'],['FRANKFURTER,MEAT & POULTRY,LO FAT',121, '1 cup, sliced'],['GUMS,SD GUMS (INCL LOCUST BEAN,GUAR)',332, '1 oz'],['POTATO CHIPS,WHITE,RESTRUCTURED,BKD',469, '1 cup'],['BABYFOOD,BKD PRODUCT,FINGER SNACKS CRL',421, '1 cookie'],['BABYFOOD,CRL,BROWN RICE,DRY,INST',404, '1 tbsp'],['BABYFOOD,GRN BNS&TURKEY,STR',51, '1 tbsp'],['OIL,CORN AND CANOLA',884, '1 tbsp'],['MILK,FLUID,NONFAT,CA FORT (FAT FREE OR SKIM)',35, '1 cup'],['PEANUT BUTTER,RED NA',590, '1 tbsp'],['CEREALS RTE,POST GREAT GRAINS BANANA NUT CRUNCH',390, '1 cup, (1 NLEA serving)'],['CHEESE,MUENSTER,LOW FAT',271, '1 cup, shredded'],['CHEESE,MOZZARELLA,NON-FAT',141, '1 cup, shredded'],['MARGARINE-LIKE,BUTTER-MARGARINE BLEND,80% FAT,STK,WO/ SALT',718, '1 tablespoon'],['MARGARINE-LIKE,VEG OIL-BUTTER SPRD,RED CAL,TUB,W/ SALT',450, '1 tablespoon'],['BABYFOOD,CARROTS,TODDLER',26, '1 oz'],['BABYFOOD,DSSRT,BANANA PUDD,STR',68, '1 tbsp'],['BABYFOOD,FRUIT,TUTTI FRUTTI,STR',66, '1 tbsp'],['BABYFOOD,FRUIT,TUTTI FRUTTI,JR',69, '1 tbsp'],['BABYFOOD,DINNER,CHICK&RICE',51, '1 tbsp'],['SALAD DRSNG,CAESAR DRSNG,REG',542, '1 tbsp'],['SALAD DRESSING,COLESLAW',390, '1 tbsp'],['SALAD DRSNG,GRN GODDESS,REG',427, '1 tbsp'],['SALAD DRSNG,SWT&SOUR',15, '1 tbsp'],['SALAD DRSNG,BLUE OR ROQUEFORT CHS,LO CAL',99, '1 tbsp'],['SALAD DRSNG,CAESAR,LO CAL',110, '1 tbsp'],['SYRUPS,DIETETIC',40, '1 cup'],['JAMS & PRESERVES,DIETETIC (WITH NA SACCHARIN),ANY FLAVOR',132, '1 cup'],['CANDIES,CHOC COVERED,CARAMEL W/NUTS',470, '1 piece'],['CANDIES,NOUGAT,W/ ALMONDS',398, '1 piece'],['CANDIES,GUM DROPS,DIETETIC OR LO CAL (SORBITOL)',162, '1 cup'],['CANDIES,HARD,DIETETIC OR LO CAL (SORBITOL)',394, '1 piece'],['CHEWING GUM,SUGARLESS',268, '1 piece'],['FLUID REPLCMNT,ELECTROLYTE SOLN (INCLUDE PEDIALYTE)',10, '1 fl oz'],['BEVERAGE,MILKSHAKE MIX,DRY,NOT CHOC',329, '1 tbsp'],['PIE FILLINGS,CHERRY,LO CAL',53, '1 serving'],['BREAKFAST BARS,OATS,SUGAR,RAISINS,COCNT (INCL GRANOLA BAR)',464, '1 bar'],['PRETZELS,SOFT',338, '1 large'],['BEANS,CHILI,BARBECUE,RANCH STYLE,CKD',97, '1 cup'],['VERMICELLI,MADE FROM SOY',331, '1 cup'],['BEANS,LIQ FROM STWD KIDNEY BNS',47, '1 cup'],['CHICKEN,MEATLESS',224, '1 cup'],['FISH STICKS,MEATLESS',290, '1 stick'],['FRANKFURTER,MEATLESS',233, '1 cup, sliced'],['LUNCHEON SLICES,MEATLESS',189, '1 slice, thin'],['MEATBALLS,MEATLESS',197, '1 cup'],['VEGETARIAN FILLETS',290, '1 fillet'],['SANDWICH SPREAD,MEATLESS',149, '1 tbsp'],['VEGETARIAN STEW',123, '1 cup'],['VEGETARIAN MEATLOAF OR PATTIES',197, '1 slice'],['RADISHES,HAWAIIAN STYLE,PICKLED',28, '1 cup'],['CABBAGE,JAPANESE STYLE,FRSH,PICKLED',30, '1 cup'],['CABBAGE,MUSTARD,SALTED',28, '1 cup'],['EGGPLANT,PICKLED',49, '1 cup'],['ALCOHOLIC BEV,WINE,COOKING',50, '1 tsp'],['ALCOHOLIC BEV,WINE,LT',49, '1 fl oz'],['SWEETENERS,TABLETOP,SACCHARIN (SODIUM SACCHARIN)',360, '1 serving, 1 packet'],['BEVERAGE,INST BRKFST PDR,CHOC,NOT RECON',353, '1 tbsp'],['BACON BITS,MEATLESS',476, '1 tbsp'],['BUTTER REPLCMNT,WO/FAT,PDR',373, '1 cup'],['SALAD DRSNG,BTTRMLK,LITE',202, '1 tablespoon'],['SWEETENERS,TABLETOP,FRUCTOSE,DRY,PDR',368, '1 cup'],['TOMATO SAU,CND,NO SALT ADDED',24, '1 cup'],['CEREALS RTE,ALPEN',352, '.67 cup, (1 NLEA serving)'],['CEREALS RTE,FAMILIA',388, '1 cup'],['CEREALS RTE,WHEAT&BRAN,PRESWEETENED W/NUTS&FRUITS',385, '1 cup, (1 NLEA serving)'],['BEVERAGE,INST BRKFST PDR,CHOC,SUGAR-FREE,NOT RECON',358, '1 tbsp'],['YOGURT,FRUIT VAR,NON-FAT',95, '1 container, (6 oz)'],['WHIPPED CRM SUB,DIETETIC,MADE FROM PDR MIX',100, '1 cup'],['FROZEN NOVELTIES,ICE CRM TYPE,SUNDAE,PREPACKAGED',185, ''],['CHEESE,COTTAGE,W/VEG',95, '4 oz'],['CHEESE,CREAM,LOW FAT',201, '1 tbsp'],['CHEESE,PAST PROCESS,AMERICAN,LOFAT',180, '1 cup, diced'],['CHEESE SPRD,CRM CHS BASE',295, '1 oz'],['CHEESE,AMERICAN CHEDDAR,IMITN',239, '1 slice'],['QUAIL,COOKED,TOTAL EDIBLE',227, '1 oz'],['PHEASANT,CKD,TOTAL EDIBLE',239, '1 cup, chopped or diced'],['EGGS,SCRMBLD,FRZ MIXTURE',131, '1 oz'],['DOVE,CKD (INCL SQUAB)',213, '1 cup, chopped or diced'],['PORK,ORIENTAL STYLE,DEHYD',615, '1 cup'],['SOYBEAN,CURD CHEESE',151, '1 cup'],['POTATOES,CND,DRND SOL,NO SALT',62, '1 cup'],['VEGETABLES,MXD (CORN,LIMA BNS,PEAS,GRN BNS,CRRT) CND,NO SALT',37, '1 cup'],['PORK,CURED,HAM,BNLESS,LO NA,EX LN & REG,RSTD',165, '1 oz, boneless'],['PORK,CURED,HAM,LO NA,LN & FAT,CKD',172, '1 oz, boneless'],['PORK,CURED,HAM,BNLESS,LO NA,EX LN (APPROXIMATLY 5% FAT),RSTD',145, '1 oz'],['SALAD DRSNG,MAYO & MAYONNAISE-TYPE,LO CAL',263, '1 tbsp'],['SALAD DRSNG,BACON&TOMATO',326, '1 tbsp'],['CHEESE,PARMESAN,LO NA',451, '1 cup, grated'],['FRUIT-FLAVORED DRK,PDR,W/ HI VIT C W/ OTHER ADDED VIT,LO CAL',227, '1 tsp'],['FROZEN NOVELTIES,JUC TYPE,ORANGE',95, '1 fl oz'],['SAUERKRAUT,CND,LO NA',22, '1 cup'],['CHEESE,COTTAGE,LOWFAT,1% MILKFAT,NO NA',72, '4 oz'],['MAYONNAISE,LO NA,LO CAL OR DIET',231, '1 tbsp'],['SNACKS,TORTILLA CHIPS,UNSALTED,WHITE CORN',503, '1 cup'],['TOMATO&VEG JUC,LO NA',22, '1 cup'],['TURKEY,WING,SMOKED,CKD,W/SKN,BONE REMOVED',221, '1 oz, with bone, cooked (yield after bone removed)'],['TURKEY,DRUMSTK,SMOKED,CKD,W/SKN,BONE REMOVED',208, '1 oz, with bone, cooked (yield after bone removed)'],['CHOCOLATE-FLAVORED DRK,WHEY&MILK BSD',49, '1 cup'],['BABYFOOD,DINNER,CHICK&NOODLE W/VEG,TODD',66, '1 tbsp'],['PORK,CURED,BACON,CKD,BRLD,PAN-FRIED OR RSTD,RED NA',541, '1 slice, cooked'],['CHEESE,PAST PROCESS,SWISS,LOFAT',165, '1 cup, diced'],['CRANBERRY JUC,UNSWTND',46, '1 cup'],['BEEF,BOLOGNA,RED NA',310, '1 cup, pieces'],['TURNIP GRNS,CND,NO SALT',19, '1 cup'],['TURKEY,LT OR DK MEAT,SMOKED,CKD,W/SKN,BONE REMOVED',208, '3 oz, boneless'],['TURKEY,LT OR DK MEAT,SMOKED,CKD,SKN & BONE REMOVED',170, '1 medium, slice (approx 3 x 2 x 1/4)'],['HEARTS OF PALM,RAW',115, ''],['CEREALS RTE,POST,SHREDDED WHEAT N BRAN,SPOON-SIZE',339, '1.25 cup, (1 NLEA serving)'],['CHEESE,COTTAGE,LOWFAT,1% MILKFAT,W/VEG',67, '4 oz'],['CHEESE,PAST PROCESS,CHEDDAR OR AMERICAN,LO NA',376, '1 cup, diced'],['COFFEE,DRY,PDR,W/ WHTNR,RED CAL',509, '1 tsp, dry'],['CRANBERRY-APPLE JUC DRK,LO CAL,W/VIT C',19, '1 cup, (8 fl oz)'],['CHEESE,SWISS,LOW SODIUM',374, '1 slice'],['YEAST EXTRACT SPREAD',185, '1 tsp'],['BABYFOOD,JUICE,PEAR',47, '1 fl oz'],['CHICKEN,MEATLESS,BREADED,FRIED',234, '1 cup, diced'],['BABYFOOD,MEAT,BF W/VEG,TODD',68, '1 jar, NFS'],['BABYFOOD,DINNER,MACARONI,BF&TOMATO SAU,TODD',81, '1 tbsp'],['ROLLS,PUMPERNICKEL',277, '1 medium, (2-1/2 dia)'],['SNACKS,CORN-BASED,EXTRUDED,CHIPS,UNSALTED',557, '1 cup, crushed'],['BEANS,BKD,CND,NO SALT ADDED',105, '1 cup'],['FROZEN NOVELTIES,JUC TYPE,JUC W/ CRM',115, '2.5 oz'],['TOFU YOGURT',94, '1 cup'],['ALCOHOLIC BEV,RICE (SAKE)',134, '1 fl oz'],['MILLET,PUFFED',354, '1 cup'],['CEREALS RTE,OAT BRAN FLAKES,HEALTH VALLEY',380, '1 cup, (1 NLEA serving)'],['JELLYFISH,DRIED,SALTED',36, '1 cup'],['ICE CRM BAR,CHOC OR CARAMEL COVERED,W/NUTS',323, '1 bar'],['FRANKFURTER,LO NA',312, '1 frankfurter'],['FROZEN NOVELTIES,ICE TYPE,POP,W/ LO CAL SWTNR',24, '1 serving, 1.75 fl oz pop'],['BABYFOOD,MXD FRUIT YOGURT,STR',75, '1 tbsp'],['BEVERAGES,ABBOTT,ENSURE PLUS,RTD',141, '1 cup'],['BABYFOOD,RICE&APPLS,DRY',396, '1 tbsp'],['BABYFOOD,JUC,APPL - CHERRY',47, '1 fl oz'],['BABYFOOD,DSSRT,PEACH YOGURT',76, '1 tbsp'],['BABYFOOD,DSSRT,BLUEBERRY YOGURT,STR',77, '1 tbsp'],['BABYFOOD,DSSRT,BANANA YOGURT,STR',78, '1 tbsp'],['ICE CREAMS,CHOC,RICH',251, '1 cup'],['MILK,IMITATION,NON-SOY',46, '1 cup'],['BABYFOOD,CRL,RICE W/ PEARS & APPL,DRY,INST',389, '1 serving'],['BABYFOOD,BANANA NO TAPIOCA,STR',91, '1 tbsp'],['BABYFOOD,BANANA APPL DSSRT,STR',68, '1 tbsp'],['SNACKS,TORTILLA CHIPS,LT (BAKED W/ LESS OIL)',465, '1 cup, crushed'],['CEREALS RTE,POST,HONEY BUNCHES OF OATS,HONEY RSTD',401, '.75 cup, (1 NLEA serving)'],['POPCORN,MICROWAVE,LOFAT&NA',429, '1 oz'],['BABYFOOD,FRUIT SUPREME DSSRT',73, '1 tbsp'],['CHEESE,SWISS,LOW FAT',179, '1 slice, (1 oz)'],['BREAKFAST BAR,CORN FLAKE CRUST W/FRUIT',377, '1 oz'],['CHEESE,MOZZARELLA,LO NA',280, '1 cup, diced'],['MAYONNAISE DRSNG,NO CHOL',688, '1 tbsp'],['OIL,CORN,PEANUT,AND OLIVE',884, '1 tablespoon'],['SWEETENERS,TABLETOP,FRUCTOSE,LIQ',279, '1 serving'],['CHEESE FOOD,IMITATION',257, '1 oz'],['CELERY FLAKES,DRIED',319, ''],['PUDDINGS,CHOC FLAVOR,LO CAL,INST,DRY MIX',356, '1 serving'],['BABYFOOD,GRAPE JUC,NO SUGAR,CND',62, '1 fl oz'],['JELLIES,RED SUGAR,HOME PRESERVED',179, '1 tbsp'],['PIE FILLINGS,BLUEBERRY,CND',181, '1 serving'],['COCKTAIL MIX,NON-ALCOHOLIC,CONCD,FRZ',287, '1 fl oz'],['PUDDINGS,CHOC FLAVOR,LO CAL,REG,DRY MIX',365, '1 serving'],['PUDDINGS,ALL FLAVORS XCPT CHOC,LO CAL,REG,DRY MIX',351, '1 serving'],['PUDDINGS,ALL FLAVORS XCPT CHOC,LO CAL,INST,DRY MIX',350, '1 serving'],['VITAL WHEAT GLUTEN',370, ''],['FROG LEGS,RAW',73, '1 leg'],['MACKEREL,SALTED',305, '1 piece, (5-1/2 x 1-1/2 x 1/2)'],['SCALLOP,(BAY&SEA),CKD,STMD',111, '3 oz'],['SYRUP,CANE',269, '1 serving'],['SNAIL,RAW',90, '3 oz'],['TURTLE,GREEN,RAW',89, '3 oz']];\n\n\n\t\t$len = count($data);\n\t\t$len = 10;\n\t\tfor($i=0 ; $i < $len ; $i++){\n\t\t\t$makanan = $data[$i][0];\n\t\t\t$kalori = $data[$i][1];\n\t\t\t$jumlah = $data[$i][2];\n\t\t\t$ing = new Ingredient();\n\t\t\t$ing->calory = $kalori;\n\t\t\t$ing->name = $makanan;\n\t\t\t$ing->size = $jumlah;\n\t\t\t$ing->save();\n\t\t}\n }", "title": "" }, { "docid": "5225aac925f73e6682f2dc94204e7d00", "score": "0.4656468", "text": "public function get_stats() {\r\r\n\t\t# variables\r\r\n\t\t$total=0; $enlisted=0; $enrolled=0; $enlisted1=0; $enrolled1=0; $enlisted2=0; $enrolled2=0; $enlisted3=0; $enrolled3=0; $enlisted4=0; $enrolled4=0;\r\r\n\t\t$cahs=0; $cba = 0; $ccs = 0; $ceas = 0; $chtm = 0;\r\r\n\t\t$cahsEnlisted=0; $cbaEnlisted = 0; $ccsEnlisted = 0; $ceasEnlisted = 0; $chtmEnlisted = 0;\r\r\n\t\t$cahsEnrolled=0; $cbaEnrolled = 0; $ccsEnrolled = 0; $ceasEnrolled = 0; $chtmEnrolled = 0;\r\r\n\r\r\n\t\t$cahsL1=0; $cbaL1 = 0; $ccsL1 = 0; $ceasL1 = 0; $chtmL1 = 0;\r\r\n\t\t$cahsR1=0; $cbaR1 = 0; $ccsR1 = 0; $ceasR1 = 0; $chtmR1 = 0;\r\r\n\r\r\n\t\t$cahsL2=0; $cbaL2 = 0; $ccsL2 = 0; $ceasL2 = 0; $chtmL2 = 0;\r\r\n\t\t$cahsR2=0; $cbaR2 = 0; $ccsR2 = 0; $ceasR2 = 0; $chtmR2 = 0;\r\r\n\r\r\n\t\t$cahsL3=0; $cbaL3 = 0; $ccsL3 = 0; $ceasL3 = 0; $chtmL3 = 0;\r\r\n\t\t$cahsR3=0; $cbaR3 = 0; $ccsR3 = 0; $ceasR3 = 0; $chtmR3 = 0;\r\r\n\r\r\n\t\t$cahsL4=0; $cbaL4 = 0; $ccsL4 = 0; $ceasL4 = 0; $chtmL4 = 0;\r\r\n\t\t$cahsR4=0; $cbaR4 = 0; $ccsR4 = 0; $ceasR4 = 0; $chtmR4 = 0;\r\r\n\r\r\n\t\t$bsn=0; $bsm=0;\r\r\n\t\t$bsa=0; $bsca=0; $bsbafm=0; $bsbamkt=0; $bsbahrm=0; $bsbahrdm=0;\r\r\n\t\t$bscs=0; $bsit=0; $bsemc=0; $act=0; \r\r\n\t\t$bacom=0; $bcaed=0; $beced=0; $beed=0; $bped=0; $beedgen=0; $bsedbio=0; $bsedmapeh=0; $bsede=0; $bsedfil=0; $bsedm=0; $bsedsci=0; $bsedsoc=0; $profed=0; \r\r\n\t\t$bshm=0; $bshrm=0; $bstm=0;\r\r\n\r\r\n\t\t$bsnEnlisted=0; $bsmEnlisted=0;\r\r\n\t\t$bsaEnlisted=0; $bscaEnlisted=0; $bsbafmEnlisted=0; $bsbamktEnlisted=0; $bsbahrmEnlisted=0; $bsbahrdmEnlisted=0;\r\r\n\t\t$bscsEnlisted=0; $bsitEnlisted=0; $bsemcEnlisted=0; $actEnlisted=0; \r\r\n\t\t$bacomEnlisted=0; $bcaedEnlisted=0; $becedEnlisted=0; $beedEnlisted=0; $bpedEnlisted=0; $beedgenEnlisted=0; $bsedbioEnlisted=0; $bsedmapehEnlisted=0; $bsedeEnlisted=0; $bsedfilEnlisted=0; $bsedmEnlisted=0; $bsedsciEnlisted=0; $bsedsocEnlisted=0; $profedEnlisted=0; \r\r\n\t\t$bshmEnlisted=0; $bshrmEnlisted=0; $bstmEnlisted=0;\r\r\n\r\r\n\t\t$bsnL1=0; $bsmL1=0;\r\r\n\t\t$bsaL1=0; $bscaL1=0; $bsbafmL1=0; $bsbamktL1=0; $bsbahrmL1=0; $bsbahrdmL1=0;\r\r\n\t\t$bscsL1=0; $bsitL1=0; $bsemcL1=0; $actL1=0; \r\r\n\t\t$bacomL1=0; $bcaedL1=0; $becedL1=0; $beedL1=0; $bpedL1=0; $beedgenL1=0; $bsedbioL1=0; $bsedmapehL1=0; $bsedeL1=0; $bsedfilL1=0; $bsedmL1=0; $bsedsciL1=0; $bsedsocL1=0; $profedL1=0; \r\r\n\t\t$bshmL1=0; $bshrmL1=0; $bstmL1=0;\r\r\n\r\r\n\t\t$bsnL2=0; $bsmL2=0;\r\r\n\t\t$bsaL2=0; $bscaL2=0; $bsbafmL2=0; $bsbamktL2=0; $bsbahrmL2=0; $bsbahrdmL2=0;\r\r\n\t\t$bscsL2=0; $bsitL2=0; $bsemcL2=0; $actL2=0; \r\r\n\t\t$bacomL2=0; $bcaedL2=0; $becedL2=0; $beedL2=0; $bpedL2=0; $beedgenL2=0; $bsedbioL2=0; $bsedmapehL2=0; $bsedeL2=0; $bsedfilL2=0; $bsedmL2=0; $bsedsciL2=0; $bsedsocL2=0; $profedL2=0; \r\r\n\t\t$bshmL2=0; $bshrmL2=0; $bstmL2=0;\r\r\n\r\r\n\t\t$bsnL3=0; $bsmL3=0;\r\r\n\t\t$bsaL3=0; $bscaL3=0; $bsbafmL3=0; $bsbamktL3=0; $bsbahrmL3=0; $bsbahrdmL3=0;\r\r\n\t\t$bscsL3=0; $bsitL3=0; $bsemcL3=0; $actL3=0; \r\r\n\t\t$bacomL3=0; $bcaedL3=0; $becedL3=0; $beedL3=0; $bpedL3=0; $beedgenL3=0; $bsedbioL3=0; $bsedmapehL3=0; $bsedeL3=0; $bsedfilL3=0; $bsedmL3=0; $bsedsciL3=0; $bsedsocL3=0; $profedL3=0; \r\r\n\t\t$bshmL3=0; $bshrmL3=0; $bstmL3=0;\r\r\n\r\r\n\t\t$bsnL4=0; $bsmL4=0;\r\r\n\t\t$bsaL4=0; $bscaL4=0; $bsbafmL4=0; $bsbamktL4=0; $bsbahrmL4=0; $bsbahrdmL4=0;\r\r\n\t\t$bscsL4=0; $bsitL4=0; $bsemcL4=0; $actL4=0; \r\r\n\t\t$bacomL4=0; $bcaedL4=0; $becedL4=0; $beedL4=0; $bpedL4=0; $beedgenL4=0; $bsedbioL4=0; $bsedmapehL4=0; $bsedeL4=0; $bsedfilL4=0; $bsedmL4=0; $bsedsciL4=0; $bsedsocL4=0; $profedL4=0; \r\r\n\t\t$bshmL4=0; $bshrmL4=0; $bstmL4=0;\r\r\n\r\r\n\t\t$bsnEnrolled=0; $bsmEnrolled=0;\r\r\n\t\t$bsaEnrolled=0; $bscaEnrolled=0; $bsbafmEnrolled=0; $bsbamktEnrolled=0; $bsbahrmEnrolled=0; $bsbahrdmEnrolled=0;\r\r\n\t\t$bscsEnrolled=0; $bsitEnrolled=0; $bsemcEnrolled=0; $actEnrolled=0; \r\r\n\t\t$bacomEnrolled=0; $bcaedEnrolled=0; $becedEnrolled=0; $beedEnrolled=0; $bpedEnrolled=0; $beedgenEnrolled=0; $bsedbioEnrolled=0; $bsedmapehEnrolled=0; $bsedeEnrolled=0; $bsedfilEnrolled=0; $bsedmEnrolled=0; $bsedsciEnrolled=0; $bsedsocEnrolled=0; $profedEnrolled=0; \r\r\n\t\t$bshmEnrolled=0; $bshrmEnrolled=0; $bstmEnrolled=0;\r\r\n\r\r\n\t\t$bsnR1=0; $bsmR1=0;\r\r\n\t\t$bsaR1=0; $bscaR1=0; $bsbafmR1=0; $bsbamktR1=0; $bsbahrmR1=0; $bsbahrdmR1=0;\r\r\n\t\t$bscsR1=0; $bsitR1=0; $bsemcR1=0; $actR1=0; \r\r\n\t\t$bacomR1=0; $bcaedR1=0; $becedR1=0; $beedR1=0; $bpedR1=0; $beedgenR1=0; $bsedbioR1=0; $bsedmapehR1=0; $bsedeR1=0; $bsedfilR1=0; $bsedmR1=0; $bsedsciR1=0; $bsedsocR1=0; $profedR1=0; \r\r\n\t\t$bshmR1=0; $bshrmR1=0; $bstmR1=0;\r\r\n\r\r\n\t\t$bsnR2=0; $bsmR2=0;\r\r\n\t\t$bsaR2=0; $bscaR2=0; $bsbafmR2=0; $bsbamktR2=0; $bsbahrmR2=0; $bsbahrdmR2=0;\r\r\n\t\t$bscsR2=0; $bsitR2=0; $bsemcR2=0; $actR2=0; \r\r\n\t\t$bacomR2=0; $bcaedR2=0; $becedR2=0; $beedR2=0; $bpedR2=0; $beedgenR2=0; $bsedbioR2=0; $bsedmapehR2=0; $bsedeR2=0; $bsedfilR2=0; $bsedmR2=0; $bsedsciR2=0; $bsedsocR2=0; $profedR2=0; \r\r\n\t\t$bshmR2=0; $bshrmR2=0; $bstmR2=0;\r\r\n\r\r\n\t\t$bsnR3=0; $bsmR3=0;\r\r\n\t\t$bsaR3=0; $bscaR3=0; $bsbafmR3=0; $bsbamktR3=0; $bsbahrmR3=0; $bsbahrdmR3=0;\r\r\n\t\t$bscsR3=0; $bsitR3=0; $bsemcR3=0; $actR3=0; \r\r\n\t\t$bacomR3=0; $bcaedR3=0; $becedR3=0; $beedR3=0; $bpedR3=0; $beedgenR3=0; $bsedbioR3=0; $bsedmapehR3=0; $bsedeR3=0; $bsedfilR3=0; $bsedmR3=0; $bsedsciR3=0; $bsedsocR3=0; $profedR3=0; \r\r\n\t\t$bshmR3=0; $bshrmR3=0; $bstmR3=0;\r\r\n\r\r\n\t\t$bsnR4=0; $bsmR4=0;\r\r\n\t\t$bsaR4=0; $bscaR4=0; $bsbafmR4=0; $bsbamktR4=0; $bsbahrmR4=0; $bsbahrdmR4=0;\r\r\n\t\t$bscsR4=0; $bsitR4=0; $bsemcR4=0; $actR4=0; \r\r\n\t\t$bacomR4=0; $bcaedR4=0; $becedR4=0; $beedR4=0; $bpedR4=0; $beedgenR4=0; $bsedbioR4=0; $bsedmapehR4=0; $bsedeR4=0; $bsedfilR4=0; $bsedmR4=0; $bsedsciR4=0; $bsedsocR4=0; $profedR4=0; \r\r\n\t\t$bshmR4=0; $bshrmR4=0; $bstmR4=0;\r\r\n\r\r\n\r\r\n\t\t# ./variables\r\r\n\r\r\n\r\r\n\t\t$sql = \"SELECT students_tbl.dept_fld, students_tbl.program_fld, accounts_tbl.studyrlevel_fld, accounts_tbl.isenlisted_fld, accounts_tbl.isenrolled_fld FROM students_tbl INNER JOIN accounts_tbl USING (studnum_fld) WHERE accounts_tbl.isdeleted_fld=0\";\r\r\n\t\t$res = $this->gm->execute_query($sql, \"No records found\");\r\r\n\t\tif ($res['code']==200) {\r\r\n\t\t\tforeach ($res['data'] as $key=>$value) {\r\r\n\t\t\t\t$total+=1;\r\r\n\t\t\t\tif($value['isenlisted_fld']==2) { $enlisted+=1; }\r\r\n\t\t\t\tif($value['isenrolled_fld']==2) { $enrolled+=1; }\r\r\n\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $enlisted1+=1; }\r\r\n\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $enrolled1+=1; }\r\r\n\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $enlisted2+=1; }\r\r\n\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $enrolled2+=1; }\r\r\n\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $enlisted3+=1; }\r\r\n\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $enrolled3+=1; }\r\r\n\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $enlisted4+=1; }\r\r\n\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $enrolled4+=1; }\r\r\n\r\r\n\t\t\t\tswitch ($value['dept_fld']) {\r\r\n\t\t\t\t\tcase \"CAHS\": \r\r\n\t\t\t\t\t\t$cahs+=1; \r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $cahsEnlisted+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $cahsEnrolled+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $cahsL1+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $cahsR1+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $cahsL2+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $cahsR2+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $cahsL3+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $cahsR3+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $cahsL4+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $cahsR4+=1; }\r\r\n\r\r\n\t\t\t\t\t\tswitch ($value['program_fld']) {\r\r\n\t\t\t\t\t\t\tcase \"BSM\": \r\r\n\t\t\t\t\t\t\t\t$bsm+=1;\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bsmEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bsmEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bsmL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bsmR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bsmL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bsmR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bsmL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bsmR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bsmL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bsmR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BSN\": \r\r\n\t\t\t\t\t\t\t\t$bsn+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bsnEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bsnEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bsnL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bsnR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bsnL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bsnR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bsnL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bsnR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bsnL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bsnR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tdefault: break;\r\r\n\t\t\t\t\t\t}\r\r\n\t\t\t\t\t\tbreak;\r\r\n\r\r\n\t\t\t\t\tcase \"CBA\": \r\r\n\t\t\t\t\t\t$cba+=1;\r\r\n\t\t\t\t\t \tif($value['isenlisted_fld']==2) { $cbaEnlisted+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $cbaEnrolled+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $cbaL1+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $cbaR1+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $cbaL2+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $cbaR2+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $cbaL3+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $cbaR3+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $cbaL4+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $cbaR4+=1; }\r\r\n\r\r\n\t\t\t\t\t\tswitch ($value['program_fld']) {\r\r\n\t\t\t\t\t\t\tcase \"BSA\": \r\r\n\t\t\t\t\t\t\t\t$bsa+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bsaEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bsaEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bsaL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bsaR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bsaL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bsaR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bsaL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bsaR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bsaL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bsaR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BSCA\": \r\r\n\t\t\t\t\t\t\t\t$bsca+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bscaEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bscaEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bscaL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bscaR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bscaL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bscaR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bscaL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bscaR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bscaL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bscaR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BSBA-FM\": \r\r\n\t\t\t\t\t\t\t\t$bsbafm+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bsbafmEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bsbafmEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bsbafmL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bsbafmR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bsbafmL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bsbafmR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bsbafmL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bsbafmR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bsbafmL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bsbafmR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BSBA-MKT\": \r\r\n\t\t\t\t\t\t\t\t$bsbamkt+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bsbamktEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bsbamktEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bsbamktL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bsbamktR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bsbamktL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bsbamktR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bsbamktL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bsbamktR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bsbamktL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bsbamktR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BSBA-HRM\": \r\r\n\t\t\t\t\t\t\t\t$bsbahrm+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bsbahrmEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bsbahrmEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bsbahrmL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bsbahrmR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bsbahrmL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bsbahrmR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bsbahrmL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bsbahrmR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bsbahrmL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bsbahrmR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BSBA-HRDM\": \r\r\n\t\t\t\t\t\t\t\t$bsbahrdm+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bsbahrdmEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bsbahrdmEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bsbahrdmL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bsbahrdmR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bsbahrdmL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bsbahrdmR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bsbahrdmL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bsbahrdmR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bsbahrdmL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bsbahrdmR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tdefault: break;\r\r\n\t\t\t\t\t\t}\r\r\n\t\t\t\t\t\tbreak;\r\r\n\r\r\n\t\t\t\t\tcase \"CCS\": \r\r\n\t\t\t\t\t\t$ccs+=1; \r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $ccsEnlisted+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $ccsEnrolled+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $ccsL1+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $ccsR1+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $ccsL2+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $ccsR2+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $ccsL3+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $ccsR3+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $ccsL4+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $ccsR4+=1; }\r\r\n\r\r\n\t\t\t\t\t\tswitch ($value['program_fld']) {\r\r\n\t\t\t\t\t\t\tcase \"BSCS\": \r\r\n\t\t\t\t\t\t\t\t$bscs+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bscsEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bscsEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bscsL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bscsR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bscsL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bscsR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bscsL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bscsR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bscsL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bscsR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BSIT\": \r\r\n\t\t\t\t\t\t\t\t$bsit+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bsitEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bsitEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bsitL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bsitR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bsitL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bsitR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bsitL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bsitR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bsitL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bsitR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BSEMC\": \r\r\n\t\t\t\t\t\t\t\t$bsemc+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bsemcEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bsemcEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bsemcL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bsemcR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bsemcL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bsemcR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bsemcL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bsemcR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bsemcL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bsemcR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"ACT\": \r\r\n\t\t\t\t\t\t\t\t$act+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $actEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $actEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $actL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $actR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $actL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $actR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $actL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $actR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $actL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $actR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tdefault: break;\r\r\n\t\t\t\t\t\t}\r\r\n\t\t\t\t\t\tbreak;\r\r\n\r\r\n\t\t\t\t\tcase \"CEAS\": \r\r\n\t\t\t\t\t\t$ceas+=1; \r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $ceasEnlisted+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $ceasEnrolled+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $ceasL1+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $ceasR1+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $ceasL2+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $ceasR2+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $ceasL3+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $ceasR3+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $ceasL4+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $ceasR4+=1; }\r\r\n\r\r\n\t\t\t\t\t\tswitch ($value['program_fld']) {\r\r\n\t\t\t\t\t\t\tcase \"BACOM\": \r\r\n\t\t\t\t\t\t\t\t$bacom+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bacomEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bacomEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bacomL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bacomR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bacomL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bacomR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bacomL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bacomR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bacomL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bacomR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BCAEd\": \r\r\n\t\t\t\t\t\t\t\t$bcaed+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bcaedEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bcaedEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bcaedL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bcaedR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bcaedL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bcaedR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bcaedL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bcaedR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bcaedL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bcaedR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BECEd\": \r\r\n\t\t\t\t\t\t\t\t$beced+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $becedEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $becedEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $becedL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $becedR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $becedL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $becedR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $becedL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $becedR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $becedL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $becedR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BEEd\": \r\r\n\t\t\t\t\t\t\t\t$beed+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $beedEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $beedEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $beedL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $beedR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $beedL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $beedR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $beedL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $beedR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $beedL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $beedR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BPEd\": \r\r\n\t\t\t\t\t\t\t\t$bped+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bpedEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bpedEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bpedL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bpedR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bpedL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bpedR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bpedL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bpedR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bpedL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bpedR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BEEd-GEN\": \r\r\n\t\t\t\t\t\t\t\t$beedgen+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $beedgenEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $beedgenEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $beedgenL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $beedgenR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $beedgenL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $beedgenR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $beedgenL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $beedgenR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $beedgenL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $beedgenR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BSEd-BIO\": \r\r\n\t\t\t\t\t\t\t\t$bsedbio+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bsedbioEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bsedbioEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bsedbioL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bsedbioR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bsedbioL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bsedbioR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bsedbioL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bsedbioR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bsedbioL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bsedbioR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BSEd-MAPEH\": \r\r\n\t\t\t\t\t\t\t\t$bsedmapeh+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bsedmapehEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bsedmapehEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bsedmapehL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bsedmapehR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bsedmapehL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bsedmapehR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bsedmapehL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bsedmapehR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bsedmapehL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bsedmapehR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BSEd-E\": \r\r\n\t\t\t\t\t\t\t\t$bsede+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bsedeEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bsedeEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bsedeL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bsedeR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bsedeL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bsedeR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bsedeL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bsedeR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bsedeL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bsedeR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BSEd-FIL\": \r\r\n\t\t\t\t\t\t\t\t$bsedfil+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bsedfilEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bsedfilEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bsedfilL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bsedfilR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bsedfilL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bsedfilR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bsedfilL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bsedfilR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bsedfilL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bsedfilR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BSEd-M\": \r\r\n\t\t\t\t\t\t\t\t$bsedm+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bsedmEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bsedmEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bsedmL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bsedmR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bsedmL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bsedmR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bsedmL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bsedmR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bsedmL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bsedmR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BSEd-SCI\": \r\r\n\t\t\t\t\t\t\t\t$bsedsci+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bsedsciEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bsedsciEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bsedsciL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bsedsciR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bsedsciL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bsedsciR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bsedsciL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bsedsciR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bsedsciL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bsedsciR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BSEd-SOC\": \r\r\n\t\t\t\t\t\t\t\t$bsedsoc+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bsedsocEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bsedsocEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bsedsocL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bsedsocR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bsedsocL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bsedsocR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bsedsocL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bsedsocR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bsedsocL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bsedsocR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"PROFED\": \r\r\n\t\t\t\t\t\t\t\t$profed+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $profedEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $profedEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $profedL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $profedR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $profedL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $profedR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $profedL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $profedR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $profedL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $profedR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tdefault: break;\r\r\n\t\t\t\t\t\t}\r\r\n\t\t\t\t\t\tbreak;\r\r\n\r\r\n\t\t\t\t\tcase \"CHTM\": \r\r\n\t\t\t\t\t\t$chtm+=1; \r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $chtmEnlisted+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $chtmEnrolled+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $chtmL1+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $chtmR1+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $chtmL2+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $chtmR2+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $chtmL3+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $chtmR3+=1; }\r\r\n\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $chtmL4+=1; }\r\r\n\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $chtmR4+=1; }\r\r\n\r\r\n\t\t\t\t\t\tswitch ($value['program_fld']) {\r\r\n\t\t\t\t\t\t\tcase \"BSHM\": \r\r\n\t\t\t\t\t\t\t\t$bshm+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bshmEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bshmEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bshmL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bshmR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bshmL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bshmR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bshmL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bshmR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bshmL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bshmR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BSHRM\": \r\r\n\t\t\t\t\t\t\t\t$bshrm+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bshrmEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bshrmEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bshrmL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bshrmR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bshrmL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bshrmR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bshrmL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bshrmR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bshrmL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bshrmR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tcase \"BSTM\": \r\r\n\t\t\t\t\t\t\t\t$bstm+=1; \r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2) { $bstmEnlisted+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2) { $bstmEnrolled+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==1) { $bstmL1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==1) { $bstmR1+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==2) { $bstmL2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==2) { $bstmR2+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==3) { $bstmL3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==3) { $bstmR3+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenlisted_fld']==2 && $value['studyrlevel_fld']==4) { $bstmL4+=1; }\r\r\n\t\t\t\t\t\t\t\tif($value['isenrolled_fld']==2 && $value['studyrlevel_fld']==4) { $bstmR4+=1; }\r\r\n\t\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t\t\tdefault: break;\r\r\n\t\t\t\t\t\t}\r\r\n\t\t\t\t\t\tbreak;\r\r\n\r\r\n\t\t\t\t\tdefault: break;\r\r\n\t\t\t\t}\r\r\n\t\t\t}\r\r\n\t\t\t$remarks = \"success\";\r\r\n\t\t\t$message = \"Successfully retrieved requested data\";\r\r\n\t\t}\r\r\n\r\r\n\t\t\r\r\n\r\r\n\t\t#arrays\r\r\n\t\t//CAHS\r\r\n\t\t$cahsProgramsEnlisted = array(\r\r\n\t\t\t'all'=>$cahsEnlisted,'bsm'=>$bsmEnlisted, 'bsn'=>$bsnEnlisted, \r\r\n\t\t\t'bsn1'=>$bsnL1, 'bsn2'=>$bsnL2, 'bsn3'=>$bsnL3, 'bsn4'=>$bsnL4, 'bsnAll'=>$bsn,\r\r\n\t\t\t'bsm1'=>$bsmL1, 'bsm2'=>$bsmL2, 'bsm3'=>$bsmL3, 'bsm4'=>$bsmL4, 'bsmAll'=>$bsm\r\r\n\t\t);\r\r\n\t\t$cahsProgramsEnrolled = array('all'=>$cahsEnrolled,'bsm'=>$bsmEnrolled, 'bsn'=>$bsnEnrolled, \r\r\n\t\t\t'bsn1'=>$bsnR1, 'bsn2'=>$bsnR2, 'bsn3'=>$bsnR3, 'bsn4'=>$bsnR4, \r\r\n\t\t\t'bsm1'=>$bsmR1, 'bsm2'=>$bsmR2, 'bsm3'=>$bsmR3, 'bsm4'=>$bsmR4\r\r\n\t\t);\r\r\n\t\t$cahs_arr = array('total'=>$cahs, 'enlisted'=>$cahsProgramsEnlisted, 'enrolled'=>$cahsProgramsEnrolled, 'R1'=>$cahsR1, 'R2'=>$cahsR2, 'R3'=>$cahsR3, 'R4'=>$cahsR4, 'L1'=>$cahsL1, 'L2'=>$cahsL2, 'L3'=>$cahsL3, 'L4'=>$cahsL4);\r\r\n\r\r\n\t\t//CBA\r\r\n\t\t$cbaProgramsEnlisted = array('all'=>$cbaEnlisted,'bsa'=>$bsaEnlisted, 'bsca'=>$bscaEnlisted, 'bsbafm'=>$bsbafmEnlisted, 'bsbamkt'=>$bsbamktEnlisted, 'bsbahrm'=>$bsbahrmEnlisted,'bsbahrdm'=>$bsbahrdmEnlisted, \r\r\n\t\t\t'bsa1'=>$bsaL1, 'bsa2'=>$bsaL2, 'bsa3'=>$bsaL3, 'bsa4'=>$bsaL4, 'bsaAll'=>$bsa,\r\r\n\t\t\t'bsca1'=>$bscaL1, 'bsca2'=>$bscaL2, 'bsca3'=>$bscaL3, 'bsca4'=>$bscaL4, 'bscaAll'=>$bsca,\r\r\n\t\t\t'bsbafm1'=>$bsbafmL1, 'bsbafm2'=>$bsbafmL2, 'bsbafm3'=>$bsbafmL3, 'bsbafm4'=>$bsbafmL4, 'bsbafmAll'=>$bsbafm,\r\r\n\t\t\t'bsbamkt1'=>$bsbamktL1, 'bsbamkt2'=>$bsbamktL2, 'bsbamkt3'=>$bsbamktL3, 'bsbamkt4'=>$bsbamktL4, 'bsbamktAll'=>$bsbamkt,\r\r\n\t\t\t'bsbahrm1'=>$bsbahrmL1, 'bsbahrm2'=>$bsbahrmL2, 'bsbahrm3'=>$bsbahrmL3, 'bsbahrm4'=>$bsbahrmL4, 'bsbahrmAll'=>$bsbahrm,\r\r\n\t\t\t'bsbahrdm1'=>$bsbahrdmL1, 'bsbahrdm2'=>$bsbahrdmL2, 'bsbahrdm3'=>$bsbahrdmL3, 'bsbahrdm4'=>$bsbahrdmL4, 'bsbahrdmAll'=>$bsbahrdm\r\r\n\t\t);\r\r\n\t\t$cbaProgramsEnrolled = array('all'=>$cbaEnrolled,'bsa'=>$bsaEnrolled, 'bsca'=>$bscaEnrolled, 'bsbafm'=>$bsbafmEnrolled, 'bsbamkt'=>$bsbamktEnrolled, 'bsbahrm'=>$bsbahrmEnrolled,'bsbahrdm'=>$bsbahrdmEnrolled, \r\r\n\t\t\t'bsa1'=>$bsaR1, 'bsa2'=>$bsaR2, 'bsa3'=>$bsaR3, 'bsa4'=>$bsaR4, \r\r\n\t\t\t'bsca1'=>$bscaR1, 'bsca2'=>$bscaR2, 'bsca3'=>$bscaR3, 'bsca4'=>$bscaR4, \r\r\n\t\t\t'bsbafm1'=>$bsbafmR1, 'bsbafm2'=>$bsbafmR2, 'bsbafm3'=>$bsbafmR3, 'bsbafm4'=>$bsbafmR4, \r\r\n\t\t\t'bsbamkt1'=>$bsbamktR1, 'bsbamkt2'=>$bsbamktR2, 'bsbamkt3'=>$bsbamktR3, 'bsbamkt4'=>$bsbamktR4, \r\r\n\t\t\t'bsbahrm1'=>$bsbahrmR1, 'bsbahrm2'=>$bsbahrmR2, 'bsbahrm3'=>$bsbahrmR3, 'bsbahrm4'=>$bsbahrmR4, \r\r\n\t\t\t'bsbahrdm1'=>$bsbahrdmR1, 'bsbahrdm2'=>$bsbahrdmR2, 'bsbahrdm3'=>$bsbahrdmR3, 'bsbahrdm4'=>$bsbahrdmR4\r\r\n\t\t);\r\r\n\t\t$cba_arr = array('total'=>$cba, 'enlisted'=>$cbaProgramsEnlisted, 'enrolled'=>$cbaProgramsEnrolled, 'R1'=>$cbaR1, 'R2'=>$cbaR2, 'R3'=>$cbaR3, 'R4'=>$cbaR4, 'L1'=>$cbaL1, 'L2'=>$cbaL2, 'L3'=>$cbaL3, 'L4'=>$cbaL4);\r\r\n\r\r\n\t\t//CCS\r\r\n\t\t$ccsProgramsEnlisted = array(\r\r\n\t\t\t'all'=>$ccsEnlisted,'bscs'=>$bscsEnlisted, 'bsit'=>$bsitEnlisted,'bsemc'=>$bsemcEnlisted, 'act'=>$actEnlisted,\r\r\n\t\t\t'bscs1'=>$bscsL1, 'bscs2'=>$bscsL2, 'bscs3'=>$bscsL3, 'bscs4'=>$bscsL4, 'bscsAll'=>$bscs,\r\r\n\t\t\t'bsit1'=>$bsitL1, 'bsit2'=>$bsitL2, 'bsit3'=>$bsitL3, 'bsit4'=>$bsitL4, 'bsitAll'=>$bsit,\r\r\n\t\t\t'bsemc1'=>$bsemcL1, 'bsemc2'=>$bsemcL2, 'bsemc3'=>$bsemcL3, 'bsemc4'=>$bsemcL4, 'bsemcAll'=>$bsemc,\r\r\n\t\t\t'act1'=>$actL1, 'act2'=>$actL2, 'act3'=>$actL3, 'act4'=>$actL4, 'actAll'=>$act\r\r\n\t\t);\r\r\n\t\t$ccsProgramsEnrolled = array(\r\r\n\t\t\t'all'=>$ccsEnrolled,'bscs'=>$bscsEnrolled, 'bsit'=>$bsitEnrolled,'bsemc'=>$bsemcEnrolled, 'act'=>$actEnrolled,\r\r\n\t\t\t'bscs1'=>$bscsR1, 'bscs2'=>$bscsR2, 'bscs3'=>$bscsR3, 'bscs4'=>$bscsR4,\r\r\n\t\t\t'bsit1'=>$bsitR1, 'bsit2'=>$bsitR2, 'bsit3'=>$bsitR3, 'bsit4'=>$bsitR4,\r\r\n\t\t\t'bsemc1'=>$bsemcR1, 'bsemc2'=>$bsemcR2, 'bsemc3'=>$bsemcR3, 'bsemc4'=>$bsemcR4,\r\r\n\t\t\t'act1'=>$actR1, 'act2'=>$actR2, 'act3'=>$actR3, 'act4'=>$actR4\r\r\n\t\t);\r\r\n\t\t$ccs_arr = array('total'=>$ccs, 'enlisted'=>$ccsProgramsEnlisted, 'enrolled'=>$ccsProgramsEnrolled, 'R1'=>$ccsR1, 'R2'=>$ccsR2, 'R3'=>$ccsR3, 'R4'=>$ccsR4, 'L1'=>$ccsL1, 'L2'=>$ccsL2, 'L3'=>$ccsL3, 'L4'=>$ccsL4);\r\r\n\r\r\n\r\r\n\r\r\n\t\t//CEAS\r\r\n\t\t$ceasProgramsEnlisted = array(\r\r\n\t\t\t'all'=>$ceasEnlisted,'bacom'=>$bacomEnlisted, 'bcaed'=>$bcaedEnlisted, 'beced'=>$becedEnlisted, 'beed'=>$beedEnlisted, 'bped'=>$bpedEnlisted, 'beedgen'=>$beedgenEnlisted, 'bsedbio'=>$bsedbioEnlisted, 'bsedmapeh'=>$bsedmapehEnlisted, 'bsede'=>$bsedeEnlisted, 'bsedfil'=>$bsedfilEnlisted, 'bsedm'=>$bsedmEnlisted, 'bsedsci'=>$bsedsciEnlisted, 'bsedsoc'=>$bsedsocEnlisted, 'profed'=>$profedEnlisted,\r\r\n\t\t\t'bacom1'=>$bacomL1, 'bacom2'=>$bacomL2, 'bacom3'=>$bacomL3, 'bacom4'=>$bacomL4, 'bacomAll'=>$bacom,\r\r\n\t\t\t'bcaed1'=>$bcaedL1, 'bcaed2'=>$bcaedL2, 'bcaed3'=>$bcaedL3, 'bcaed4'=>$bcaedL4, 'bcaedAll'=>$bcaed,\r\r\n\t\t\t'beced1'=>$becedL1, 'beced2'=>$becedL2, 'beced3'=>$becedL3, 'beced4'=>$becedL4, 'becedAll'=>$beced,\r\r\n\t\t\t'beed1'=>$beedL1, 'beed2'=>$beedL2, 'beed3'=>$beedL3, 'beed4'=>$beedL4, 'beedAll'=>$beed,\r\r\n\t\t\t'bped1'=>$bpedL1, 'bped2'=>$bpedL2, 'bped3'=>$bpedL3, 'bped4'=>$bpedL4, 'bpedAll'=>$bped,\r\r\n\t\t\t'beedgen1'=>$beedgenL1, 'beedgen2'=>$beedgenL2, 'beedgen3'=>$beedgenL3, 'beedgen4'=>$beedgenL4, 'beedgenAll'=>$beedgen,\r\r\n\t\t\t'bsedmapeh1'=>$bsedmapehL1, 'bsedmapeh2'=>$bsedmapehL2, 'bsedmapeh3'=>$bsedmapehL3, 'bsedmapeh4'=>$bsedmapehL4, 'bsedmapehAll'=>$bsedmapeh,\r\r\n\t\t\t'bsede1'=>$bsedeL1, 'bsede2'=>$bsedeL2, 'bsede3'=>$bsedeL3, 'bsede4'=>$bsedeL4, 'bsedeAll'=>$bsede,\r\r\n\t\t\t'bsedbio1'=>$bsedbioL1, 'bsedbio2'=>$bsedbioL2, 'bsedbio3'=>$bsedbioL3, 'bsedbio4'=>$bsedbioL4, 'bsedbioAll'=>$bsedbio,\r\r\n\t\t\t'bsedfil1'=>$bsedfilL1, 'bsedfil2'=>$bsedfilL2, 'bsedfil3'=>$bsedfilL3, 'bsedfil4'=>$bsedfilL4, 'bsedfilAll'=>$bsedfil,\r\r\n\t\t\t'bsedm1'=>$bsedmL1, 'bsedm2'=>$bsedmL2, 'bsedm3'=>$bsedmL3, 'bsedm4'=>$bsedmL4, 'bsedmAll'=>$bsedm,\r\r\n\t\t\t'bsedsci1'=>$bsedsciL1, 'bsedsci2'=>$bsedsciL2, 'bsedsci3'=>$bsedsciL3, 'bsedsci4'=>$bsedsciL4, 'bsedsciAll'=>$bsedsci,\r\r\n\t\t\t'bsedsoc1'=>$bsedsocL1, 'bsedsoc2'=>$bsedsocL2, 'bsedsoc3'=>$bsedsocL3, 'bsedsoc4'=>$bsedsocL4, 'bsedsocAll'=>$bsedsoc,\r\r\n\t\t\t'profed1'=>$profedL1, 'profed2'=>$profedL2, 'profed3'=>$profedL3, 'profed4'=>$profedL4, 'profedAll'=>$profed\r\r\n\t\t);\r\r\n\t\t$ceasProgramsEnrolled = array(\r\r\n\t\t\t'all'=>$ceasEnrolled,'bacom'=>$bacomEnrolled, 'bcaed'=>$bcaedEnrolled, 'beced'=>$becedEnrolled, 'beed'=>$beedEnrolled, 'bped'=>$bpedEnrolled, 'beedgen'=>$beedgenEnrolled, 'bsedbio'=>$bsedbioEnrolled, 'bsedmapeh'=>$bsedmapehEnrolled, 'bsede'=>$bsedeEnrolled, 'bsedfil'=>$bsedfilEnrolled, 'bsedm'=>$bsedmEnrolled, 'bsedsci'=>$bsedsciEnrolled, 'bsedsoc'=>$bsedsocEnrolled, 'profed'=>$profedEnrolled,\r\r\n\t\t\t'bacom1'=>$bacomR1, 'bacom2'=>$bacomR2, 'bacom3'=>$bacomR3, 'bacom4'=>$bacomR4,\r\r\n\t\t\t'bcaed1'=>$bcaedR1, 'bcaed2'=>$bcaedR2, 'bcaed3'=>$bcaedR3, 'bcaed4'=>$bcaedR4,\r\r\n\t\t\t'beced1'=>$becedR1, 'beced2'=>$becedR2, 'beced3'=>$becedR3, 'beced4'=>$becedR4,\r\r\n\t\t\t'beed1'=>$beedR1, 'beed2'=>$beedR2, 'beed3'=>$beedR3, 'beed4'=>$beedR4,\r\r\n\t\t\t'bped1'=>$bpedR1, 'bped2'=>$bpedR2, 'bped3'=>$bpedR3, 'bped4'=>$bpedR4,\r\r\n\t\t\t'beedgen1'=>$beedgenR1, 'beedgen2'=>$beedgenR2, 'beedgen3'=>$beedgenR3, 'beedgen4'=>$beedgenR4,\r\r\n\t\t\t'bsedmapeh1'=>$bsedmapehR1, 'bsedmapeh2'=>$bsedmapehR2, 'bsedmapeh3'=>$bsedmapehR3, 'bsedmapeh4'=>$bsedmapehR4,\r\r\n\t\t\t'bsede1'=>$bsedeR1, 'bsede2'=>$bsedeR2, 'bsede3'=>$bsedeR3, 'bsede4'=>$bsedeR4,\r\r\n\t\t\t'bsedbio1'=>$bsedbioR1, 'bsedbio2'=>$bsedbioR2, 'bsedbio3'=>$bsedbioR3, 'bsedbio4'=>$bsedbioR4,\r\r\n\t\t\t'bsedfil1'=>$bsedfilR1, 'bsedfil2'=>$bsedfilR2, 'bsedfil3'=>$bsedfilR3, 'bsedfil4'=>$bsedfilR4,\r\r\n\t\t\t'bsedm1'=>$bsedmR1, 'bsedm2'=>$bsedmR2, 'bsedm3'=>$bsedmR3, 'bsedm4'=>$bsedmR4,\r\r\n\t\t\t'bsedsci1'=>$bsedsciR1, 'bsedsci2'=>$bsedsciR2, 'bsedsci3'=>$bsedsciR3, 'bsedsci4'=>$bsedsciR4,\r\r\n\t\t\t'bsedsoc1'=>$bsedsocR1, 'bsedsoc2'=>$bsedsocR2, 'bsedsoc3'=>$bsedsocR3, 'bsedsoc4'=>$bsedsocR4,\r\r\n\t\t\t'profed1'=>$profedR1, 'profed2'=>$profedR2, 'profed3'=>$profedR3, 'profed4'=>$profedR4\r\r\n\t\t);\r\r\n\t\t$ceas_arr = array('total'=>$ceas, 'enlisted'=>$ceasProgramsEnlisted, 'enrolled'=>$ceasProgramsEnrolled, 'R1'=>$ceasR1, 'R2'=>$ceasR2, 'R3'=>$ceasR3, 'R4'=>$ceasR4, 'L1'=>$ceasL1, 'L2'=>$ceasL2, 'L3'=>$ceasL3, 'L4'=>$ceasL4);\r\r\n\r\r\n\t\t\t\t// $bshm=0; $bshrm=0; $bstm=0;\r\r\n\t\t//CHTM\r\r\n\t\t$chtmProgramsEnlisted = array(\r\r\n\t\t\t'all'=>$chtmEnlisted,'bshm'=>$bshmEnlisted, 'bshrm'=>$bshrmEnlisted, 'bstm'=>$bstmEnlisted,\r\r\n\t\t\t'bshm1'=>$bshmL1, 'bshm2'=>$bshmL2, 'bshm3'=>$bshmL3, 'bshm4'=>$bshmL4, 'bshmAll'=>$bshm,\r\r\n\t\t\t'bshrm1'=>$bshrmL1, 'bshrm2'=>$bshrmL2, 'bshrm3'=>$bshrmL3, 'bshrm4'=>$bshrmL4, 'bshrmAll'=>$bshrm,\r\r\n\t\t\t'bstm1'=>$bstmL1, 'bstm2'=>$bstmL2, 'bstm3'=>$bstmL3, 'bstm4'=>$bstmL4, 'bstmAll'=>$bstm,\r\r\n\t\t);\r\r\n\t\t$chtmProgramsEnrolled = array(\r\r\n\t\t\t'all'=>$chtmEnrolled,'bshm'=>$bshmEnrolled, 'bshrm'=>$bshrmEnrolled, 'bstm'=>$bstmEnrolled,\r\r\n\t\t\t'bshm1'=>$bshmR1, 'bshm2'=>$bshmR2, 'bshm3'=>$bshmR3, 'bshm4'=>$bshmR4,\r\r\n\t\t\t'bshrm1'=>$bshrmR1, 'bshrm2'=>$bshrmR2, 'bshrm3'=>$bshrmR3, 'bshrm4'=>$bshrmR4,\r\r\n\t\t\t'bstm1'=>$bstmR1, 'bstm2'=>$bstmR2, 'bstm3'=>$bstmR3, 'bstm4'=>$bstmR4\r\r\n\t\t);\r\r\n\t\t$chtm_arr = array('total'=>$chtm, 'enlisted'=>$chtmProgramsEnlisted, 'enrolled'=>$chtmProgramsEnrolled, 'R1'=>$chtmR1, 'R2'=>$chtmR2, 'R3'=>$chtmR3, 'R4'=>$chtmR4, 'L1'=>$chtmL1, 'L2'=>$chtmL2, 'L3'=>$chtmL3, 'L4'=>$chtmL4);\r\r\n\r\r\n\r\r\n\t\t// test here;\r\r\n\t\t$stats_arr = array('total'=>$total, 'enlisted'=>$enlisted, 'enrolled'=>$enrolled, 'L1'=>$enlisted1, 'R1'=>$enrolled1, 'L2'=>$enlisted2, 'R2'=>$enrolled2, 'L3'=>$enlisted3, 'R3'=>$enrolled3, 'L4'=>$enlisted4, 'R4'=>$enrolled4,'cahs'=>$cahs_arr,'cba'=>$cba_arr,'ccs'=>$ccs_arr,'ceas'=>$ceas_arr,'chtm'=>$chtm_arr);\r\r\n\t\t// $enlisted_arr = array('cahs'=>$cahsEnlisted,'cba'=>$cbaEnlisted,'ccs'=>$ccsEnlisted,'ceas'=>$ceasEnlisted,'chtm'=>$chtmEnlisted);\r\r\n\t\t// $enrolled_arr = array('cahs'=>$cahsEnrolled,'cba'=>$cbaEnrolled,'ccs'=>$ccsEnrolled,'ceas'=>$ceasEnrolled,'chtm'=>$chtmEnrolled);\r\r\n\r\r\n\t\t// $payload = array('stats'=>$stats_arr);\r\r\n\t\t$remarks = \"success\";\r\r\n\t\t$message = \"Successfully retrieved requested data\";\r\r\n\t\t$code = 200;\r\r\n\t\treturn $this->gm->api_result($stats_arr, $remarks, $message, $code);\r\r\n\t}", "title": "" }, { "docid": "c306853711130138c5d689e696b3d19f", "score": "0.4649903", "text": "public static function getMarcas($data){\n //Array temporário para atribuição\n $marcas = array();\n\n //checa se existe registros de marca\n if(isset($data['PRODUCAO-TECNICA']['MARCA'])){\n $marcasRaw = $data['PRODUCAO-TECNICA']['MARCA'];\n\n //Caso exista apenas um registro de marca\n if(array_keys($marcasRaw)[0] === '@attributes')\n $marcasRaw = array($marcasRaw);\n\n //Percorrer lista\n foreach ($marcasRaw as $marca) {\n //Classe temporária para atribuição\n $marca_ = new self();\n //Definição de caminhos\n $dadosB = attr($marca['DADOS-BASICOS-DA-MARCA']);\n $details = attr($marca['DETALHAMENTO-DA-MARCA']);\n $register = attr($marca['DETALHAMENTO-DA-MARCA']['REGISTRO-OU-PATENTE']);\n $autores = $marca['AUTORES'];\n //Atribuições\n $marca_->titulo = $dadosB['TITULO'];\n $marca_->ano = $dadosB['ANO-DESENVOLVIMENTO'];\n $marca_->natureza = $details['NATUREZA'];\n $marca_->tipo = $register['TIPO-PATENTE'];\n $marca_->codigo = $register['CODIGO-DO-REGISTRO-OU-PATENTE'];\n $marca_->tituloPatente = $register['TITULO-PATENTE'];\n $marca_->dataConcessao = $register['DATA-DE-CONCESSAO'];\n $marca_->instDeposito = $register['INSTITUICAO-DEPOSITO-REGISTRO'];\n $marca_->autores = getAutores($autores);\n\n array_push($marcas, $marca_);\n }\n }\n return $marcas;\n }", "title": "" }, { "docid": "f6e229ca4026519e6b223055b7d3c2dc", "score": "0.46487784", "text": "public function statistics(Request $request) {\n $tableau = array(\"01\" => 0,\"02\" => 0,\"03\" => 0,\"04\" => 0,\n \"05\" => 0,\"06\" => 0,\"07\" => 0,\"08\" => 0,\n \"09\" => 0,\"10\" => 0,\"11\" => 0,\"12\" => 0);\n $date = $request->input('date');\n $year = explode('-',$date);\n $avancesEmploye = AvanceEmploye::where([['user_id','=',JWTAuth::parseToken()->toUser()->id]])->whereYear('date', '=', $year[0])->get();\n $charges = Charge::where([['user_id','=',JWTAuth::parseToken()->toUser()->id]])->whereYear('date', '=', $year[0])->get();\n $avancesEntree = AvanceEntree::where([['user_id','=',JWTAuth::parseToken()->toUser()->id]])->whereYear('date', '=', $year[0])->get();\n $avancesSortie = AvanceSortie::where([['user_id','=',JWTAuth::parseToken()->toUser()->id]])->whereYear('date', '=', $year[0])->get();\n $sortieDetails = SortieDetails::where([['user_id','=',JWTAuth::parseToken()->toUser()->id]])->whereYear('date', '=', $year[0])->get();\n foreach($avancesEmploye as $avanceEmploye)\n {\n $month = explode('-',$avanceEmploye['date'])['1'];\n $tableau[$month] = $tableau[$month] - $avanceEmploye['montant'];\n }\n foreach($charges as $charge)\n {\n $month = explode('-',$charge['date'])['1'];\n $tableau[$month] = $tableau[$month] - $charge['montant_total'];\n }\n foreach($avancesEntree as $avanceEntree)\n {\n $month = explode('-',$avanceEntree['date'])['1'];\n $tableau[$month] = $tableau[$month] - $avanceEntree['montant'];\n }\n foreach($avancesSortie as $avanceSortie)\n {\n $month = explode('-',$avanceSortie['date'])['1'];\n $tableau[$month] = $tableau[$month] + $avanceSortie['montant'];\n }\n foreach($sortieDetails as $sortie)\n {\n $month = explode('-',$sortie['date'])['1'];\n $tableau[$month] = $tableau[$month] + $sortie['prix_de_vente_2']*$sortie['nombre'];\n }\n return response()->json(['benifices' => $tableau], 200);\n }", "title": "" }, { "docid": "a221bb411388483554afc9ae8b1bd3bf", "score": "0.46464005", "text": "public function retrieveSummaryData() {\n\n $rewards_sent_yesterday = 0;\n $rewards_claimed_yesterday = 0;\n $num_gc_sent_more_than_7days_ago = 0;\n $num_gc_send_less_than_7days_ago = 0;\n $num_gc_notready = 0;\n $num_gc_available = 0;\n $num_gc_awarded = 0;\n $num_gc_claimed = 0;\n $today = strtotime(date('Y-m-d'));\n\n // Make sure we only retrieve the records that pertain to this configuration (based on gift card amount) and title\n $filter = \"[amount] = '\" . $this->amount . \"'\";\n\n $data = REDCap::getData($this->gcr_pid, 'array', null, null, $this->gcr_event_id, null, null, null, null, $filter);\n if (!empty($data)) {\n $brand_type = array();\n foreach ($data as $record_id => $event_info) {\n foreach ($event_info as $event_id => $record) {\n\n $status = $record['status'];\n if ($record['reward_name'] == $this->title) {\n // Convert timestamps so we can do date math\n $datetime_sent = strtotime(date($record['reserved_ts']));\n $date_sent = strtotime(date(\"Y-m-d\", $datetime_sent));\n\n if ($record['claimed_ts'] !== '') {\n $datetime_claimed = strtotime(date($record['claimed_ts']));\n $date_claimed = strtotime(date(\"Y-m-d\", $datetime_claimed));\n } else {\n $date_claimed = '';\n }\n\n $num_days_sent = intval(($today - $date_sent) / 86400);\n if ($date_claimed != '') {\n $num_days_claimed = intval(($today - $date_claimed) / 86400);\n } else {\n $num_days_claimed = 0;\n }\n\n // Num of gift cards sent yesterday\n if (($num_days_sent == 1) && (!empty($record['reserved_ts']))) {\n $rewards_sent_yesterday++;\n }\n\n // Num of gift cards claimed yesterday\n if (($num_days_claimed == 1) && ($status == 3)) {\n $rewards_claimed_yesterday++;\n }\n\n // Num of gift cards sent > 7 days ago and have not been viewed\n if (($num_days_sent > 7) && ($status == 2)) {\n $num_gc_sent_more_than_7days_ago++;\n }\n\n // Num of gift cards sent < 7 days ago and have not been viewed\n if (($num_days_sent <= 7) && ($status == 2)) {\n $num_gc_send_less_than_7days_ago++;\n }\n\n // Num of gift cards in total have been awarded\n if (($status == 2) || ($status == 3)) {\n $num_gc_awarded++;\n }\n\n // Num of gift cards in total have been claimed\n if ($status == 3) {\n $num_gc_claimed++;\n }\n }\n\n // Num of gift cards with NOT Ready status (value of 0)\n if ($status == 0) {\n $num_gc_notready++;\n }\n\n // Num of gift cards with Ready status (value of 1 means Ready)\n if ($status == 1) {\n $brand = $record['brand'];\n $num_gc_available++;\n if (empty($brand_type[$brand])) {\n $brand_type[$brand] = 1;\n } else {\n $brand_type[$brand]++;\n }\n }\n }\n }\n\n } else {\n $this->module->emError(\"No data was found for DailySummary from gc library [pid:$this->gcr_pid/event id:$this->gcr_event_id]\");\n }\n\n $results = array(\n \"sent_yesterday\" => $rewards_sent_yesterday,\n \"claimed_yesterday\" => $rewards_claimed_yesterday,\n \"sent_gt7days_ago\" => $num_gc_sent_more_than_7days_ago,\n \"sent_lt7days_ago\" => $num_gc_send_less_than_7days_ago,\n \"not_ready\" => $num_gc_notready,\n \"num_available\" => $num_gc_available,\n \"num_awarded\" => $num_gc_awarded,\n \"num_claimed\" => $num_gc_claimed,\n \"brand\" => $brand_type\n );\n\n return $results;\n }", "title": "" }, { "docid": "ef1146752e7f461354d929026b9bc29b", "score": "0.4646237", "text": "public function getROIData($data){\n\t\t\ttry{\n\t\t\t\t$previousMonth = date(\"Y-m-01\",mktime(0,0,0,date('m')-1,date('d'),date('Y')));\n\t\t\t\t$financialYear = date(\"Y-m-d\",mktime(0,0,0,date('m')-12,date('d'),date('Y')));\n\t\t\t\t\n\t\t\t\t$where \t\t = 1;\n\t\t\t\t$filterparam = '';\n\t\t\t\tif ($_SESSION['AdminLevelID'] != 1) {\n\t\t\t\t\t$this->getHeadquarters($_SESSION['AdminLoginID']);\n\t\t\t\t\t$where = 'DT.headquater_id IN ('.implode(',',array_unique($this->_headquarters)).')';\n\t\t\t\t}\t\n\t\t\t\t\t\t\n\t\t\t\t//Filter With ZBM Data\n\t\t\t\tif(!empty($data['token6'])){\n\t\t\t\t\t$where = '1';$this->_headquarters = array();\n\t\t\t\t\t$this->getHeadquarters(Class_Encryption::decode($data['token6']));\n\t\t\t\t\t$filterparam .= ' AND DT.headquater_id IN ('.implode(',',array_unique($this->_headquarters)).')';\n\t\t\t\t}\t\t\t\n\t\t\t\t//Filter With RBM Data\n\t\t\t\tif(!empty($data['token5'])){\n\t\t\t\t\t$where = '1';$this->_headquarters = array();\n\t\t\t\t\t$this->getHeadquarters(Class_Encryption::decode($data['token5']));\n\t\t\t\t\t$filterparam .= ' AND DT.headquater_id IN ('.implode(',',array_unique($this->_headquarters)).')';\n\t\t\t\t}\t\t\t\n\t\t\t\t//Filter With ABM Data\n\t\t\t\tif(!empty($data['token4'])){\n\t\t\t\t\t$where = '1';$this->_headquarters = array();\n\t\t\t\t\t$this->getHeadquarters(Class_Encryption::decode($data['token4']));\n\t\t\t\t\t$filterparam .= ' AND DT.headquater_id IN ('.implode(',',array_unique($this->_headquarters)).')';\n\t\t\t\t}\t\t\t\n\t\t\t\t//Filter With BE Data\n\t\t\t\tif(!empty($data['token3'])){\n\t\t\t\t\t$where = '1';$this->_headquarters = array();\n\t\t\t\t\t$this->getHeadquarters(Class_Encryption::decode($data['token3']));\n\t\t\t\t\t$filterparam .= ' AND DT.headquater_id IN ('.implode(',',array_unique($this->_headquarters)).')';\n\t\t\t\t}\t\t\t\n\t\t\t\t//Filter With Headquarter Data\n\t\t\t\tif(!empty($data['token2'])){\n\t\t\t\t\t$where = '1';\n\t\t\t\t\t$filterparam .= \" AND DT.headquater_id='\".Class_Encryption::decode($data['token2']).\"'\";\n\t\t\t\t}\t\t\t\n\t\t\t\t//Filter With Doctor Data\n\t\t\t\tif(!empty($data['token1'])){\n\t\t\t\t\t$filterparam .= \" AND DT.doctor_id='\".Class_Encryption::decode($data['token1']).\"'\";\n\t\t\t\t}\t\t\t\n\t\t\t\t//Filter With Date Range\n\t\t\t\tif(!empty($data['from_date']) && !empty($data['to_date'])){\n\t\t\t\t\t$filterparam .= \" AND DATE(RT.roi_month) BETWEEN '\".$data['from_date'].\"' AND '\".$data['to_date'].\"'\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$query = \"SELECT sums.HQ,sums.AprilCRM,sums.MayCRM,sums.JuneCRM,sums.JulyCRM,sums.AprilCRM + sums.MayCRM + sums.JuneCRM + sums.JulyCRM AS CRMSum,\n\t\t\t\t\t\t\t\t sums.AprilROI,sums.MayROI,sums.JuneROI,sums.JulyROI,sums.AprilROI + sums.MayROI + sums.JuneROI + sums.JulyROI AS ROISum\n\t\t\t\t\t\t\tFROM \n\t\t\t\t\t\t\t ( SELECT HT.headquater_name AS HQ, \n\t\t\t\t\t\t\t\t SUM(IF(EXTRACT(YEAR_MONTH FROM AT.created_date)='201404',AT.total_value,0)) AS 'AprilCRM', \n\t\t\t\t\t\t\t\t SUM(IF(RT.roi_month='2014-04-01',RT.roi_total_amount,0)) AS 'AprilROI', \n\t\t\t\t\t\t\t\t SUM(IF(EXTRACT(YEAR_MONTH FROM AT.created_date)='201405',AT.total_value,0)) AS 'MayCRM', \n\t\t\t\t\t\t\t\t SUM(IF(RT.roi_month='2014-05-01',RT.roi_total_amount,0)) AS 'MayROI', \n\t\t\t\t\t\t\t\t SUM(IF(EXTRACT(YEAR_MONTH FROM AT.created_date)='201406',AT.total_value,0)) AS 'JuneCRM',\n\t\t\t\t\t\t\t\t SUM(IF(RT.roi_month='2014-06-01',RT.roi_total_amount,0)) AS 'JuneROI',\n\t\t\t\t\t\t\t\t SUM(IF(EXTRACT(YEAR_MONTH FROM AT.created_date)='201407',AT.total_value,0)) AS 'JulyCRM',\n\t\t\t\t\t\t\t\t SUM(IF(RT.roi_month='2014-07-01',RT.roi_total_amount,0)) AS 'JulyROI' \n\t\t\t\t\t\t\t\tFROM crm_roi AS RT \n\t\t\t\t\t\t\t\tINNER JOIN crm_doctors AS DT ON DT.doctor_id=RT.doctor_id \n\t\t\t\t\t\t\t\tINNER JOIN crm_appointments AS AT ON AT.doctor_id=RT.doctor_id\n\t\t\t\t\t\t\t\tINNER JOIN headquater AS HT ON HT.headquater_id=DT.headquater_id\n\t\t\t\t\t\t\t\t WHERE \".$where.$filterparam.\"\n\t\t\t\t\t\t\t\t GROUP BY DT.headquater_id WITH ROLLUP \n\t\t\t\t\t\t\t ) AS sums\"; //echo $query;die;\n\t\t\t\t\t\t\t\n\t\t\t\t$exportData = $this->getAdapter()->fetchAll($query); //echo \"<pre>\";print_r($exportData);die;\t\t\t\n\t\t\t\t$totalRowData = count($exportData);\n\t\t\t\t$CRMData = array();\n\t\t\t\t$ROIData = array();\n\t\t\t\tif($totalRowData>0) {\n\t\t\t\t\t$j=1;\n\t\t\t\t\tforeach($exportData as $index=>$rowData)\n\t\t\t\t\t{\n\t\t\t\t\t\tif($j<$totalRowData) {\n\t\t\t\t\t\t\t$CRMData[$rowData['HQ']] = $rowData['CRMSum'];\n\t\t\t\t\t\t\t$ROIData[$rowData['HQ']] = $rowData['ROISum'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$j++;\n\t\t\t\t\t} //echo \"<pre>\";print_r(array($CRMData,$ROIData));die;\n\t\t\t\t}\n\t\t\t\treturn array($CRMData,$ROIData);\n\t\t\t}\n\t\t\tcatch(Exception $e){\n\t\t\t $_SESSION[ERROR_MSG] = 'There is Some Error Please try again'; \n\t\t\t}\t\t \n\t\t}", "title": "" }, { "docid": "1abda61bca90c51793f567c4be8553d5", "score": "0.46458268", "text": "public function calculate_totals()\n {\n }", "title": "" } ]
a954c34f9ed2139675bba9807c451edd
Get the services provided by the provider.
[ { "docid": "a5de448b9538100ce3291ba40a7009fa", "score": "0.59977794", "text": "public function provides()\n {\n return array();\n }", "title": "" } ]
[ { "docid": "a50ec3259dd929ba822b60ae3e1231dd", "score": "0.7470691", "text": "public function getServices();", "title": "" }, { "docid": "c2edbab5c1f9b4a638a3c3c6906e9a18", "score": "0.7423859", "text": "public function getServices()\n {\n return $this->services;\n }", "title": "" }, { "docid": "c2edbab5c1f9b4a638a3c3c6906e9a18", "score": "0.7423859", "text": "public function getServices()\n {\n return $this->services;\n }", "title": "" }, { "docid": "c2edbab5c1f9b4a638a3c3c6906e9a18", "score": "0.7423859", "text": "public function getServices()\n {\n return $this->services;\n }", "title": "" }, { "docid": "c2edbab5c1f9b4a638a3c3c6906e9a18", "score": "0.7423859", "text": "public function getServices()\n {\n return $this->services;\n }", "title": "" }, { "docid": "e5a219bef9194f3e2409161af0e3625a", "score": "0.7421707", "text": "public function getServiceProviders()\r\n {\r\n //set service providers for providers property\r\n $providers = $this->app->serviceProviders();\r\n\r\n if(count($providers)){\r\n $this->providers = $providers;\r\n }\r\n\r\n return $this->providers;\r\n }", "title": "" }, { "docid": "c9181cdff8132c2ffe3d846eaafce430", "score": "0.7390133", "text": "public function getServiceProviders()\r\n {\r\n return array(\r\n );\r\n }", "title": "" }, { "docid": "d1aae99b03100ab1a55c9256ac8b0d91", "score": "0.73811316", "text": "public function get_services() {\n\t\treturn $this->services;\n\t}", "title": "" }, { "docid": "21e446987269d7a9484ddf8dc0344429", "score": "0.736475", "text": "public function getServices() {\n return $this->services;\n }", "title": "" }, { "docid": "d1cfea3af02c333d7d29e647f508d967", "score": "0.73511237", "text": "public function getServices() {\n\n return $this->services;\n }", "title": "" }, { "docid": "ac50b689a12cc264661861630e905ad7", "score": "0.73333025", "text": "public function getServices()\r\n {\r\n return $this->services;\r\n }", "title": "" }, { "docid": "bdbfae29f3173fe70691a8b0e64e2fdc", "score": "0.7264176", "text": "public function getServices()\n {\n return self::$services;\n }", "title": "" }, { "docid": "957113ce3204d2d8e9718fd7b54bc4ce", "score": "0.7221397", "text": "public static function providers()\n {\n return IOC::providers();\n }", "title": "" }, { "docid": "faa1d3fa257720cab245abc4154cc206", "score": "0.7216841", "text": "public static function get_services()\n {\n return [\n Views\\Admin::class,\n Base\\Enqueue::class,\n Base\\SettingsLinks::class\n ];\n }", "title": "" }, { "docid": "662ee2b7e1cad401f030df9c67b811a9", "score": "0.71822375", "text": "public function getAllServices()\n {\n return $this->_services;\n }", "title": "" }, { "docid": "b9a0de464e9b2440adf2a6f8ab425b42", "score": "0.710483", "text": "public function getServices(){\n\t\treturn $this->services;\n\t}", "title": "" }, { "docid": "017c310748eaaeedd53cf42a31e77a64", "score": "0.7079069", "text": "public static function get_services(){\n\t\treturn array(\n\t\t\tPages\\Dashboard::class,\n\t\t\tBase\\Enqueue::class,\n\t\t\tBase\\SettingsLinks::class,\n\t\t\tApi\\Ajax::class,\n\t\t\tBase\\Database::class,\n\t\t\tPages\\Search::class,\n\t\t\tPages\\Network::class,\n\t\t\tPages\\OCR::class,\n\t\t\tFunctions\\TemplateController::class,\n\t\t);\n\t}", "title": "" }, { "docid": "72f2fb1a5a51685c56de961421ffbfe3", "score": "0.70582014", "text": "public function getServices(): ArrayCollection\n {\n return $this->services;\n }", "title": "" }, { "docid": "a98def1eaac094bb465f2a2da208a3d5", "score": "0.7055981", "text": "public function getServices(): array\n {\n return [\n RouterContainer::class => $this->getRouterContainer(),\n Map::class => $this->getMap(),\n Matcher::class => $this->getMatcher(),\n Generator::class => $this->getGenerator()\n ];\n }", "title": "" }, { "docid": "a30629a9fdf2e85122a82a6a00da5bca", "score": "0.7013689", "text": "protected function getServices(): array\n {\n return [\n 'apcu' => Apcu::class,\n 'libmemcached' => Libmemcached::class,\n 'memory' => Memory::class,\n 'redis' => Redis::class,\n 'stream' => Stream::class,\n ];\n }", "title": "" }, { "docid": "e5c9871b589a9ba1e813ddc80576d5be", "score": "0.6992426", "text": "public static function get_services(){\n\t\treturn [\n\t\t\tBase\\AuthenticateEnqueue::class,\n\t\t\tBase\\AuthenticateShortcode::class\n\t\t];\n\t}", "title": "" }, { "docid": "a2aa25189ed8f2831151f71afe9e4814", "score": "0.6983066", "text": "public static function get_services() {\n return array(\n pages\\Admin::class,\n base\\Enqueue::class,\n base\\SettingsLinks::class\n );\n }", "title": "" }, { "docid": "5d2aa10018673ed23bea504b00b4d50c", "score": "0.6977649", "text": "public static function get_services() {\n return [ \n Pages\\Dashboard::class,\n Base\\Enqueue::class,\n Base\\SettingsLinks::class,\n Base\\CustomPostTypeController::class,\n Base\\CustomTaxonomyController::class,\n Base\\WidgetController::class,\n Base\\GalleryController::class,\n Base\\TestimonialController::class,\n Base\\TemplateController::class,\n Base\\AuthController::class,\n Base\\MembershipController::class,\n Base\\ChatController::class\n ];\n }", "title": "" }, { "docid": "e7dd062fd89a86d752909d24a9bb8575", "score": "0.696108", "text": "final public static function services():Main\\Services\n {\n return static::boot()->services();\n }", "title": "" }, { "docid": "4f7d5d770c0920b20274472953ff86d1", "score": "0.6893491", "text": "public function getServices(): Collection\n {\n return $this->services;\n }", "title": "" }, { "docid": "352b20c5b9018710b9ff156ab9f3f5b0", "score": "0.6863469", "text": "public function getServices()\n {\n if (null === $this->services) {\n $services = $this->cache->load(self::CACHE_ID);\n if ($services && is_string($services)) {\n $this->services = $this->serializer->unserialize($services);\n } else {\n $this->services = $this->getBulkServicesConfig();\n $this->cache->save($this->serializer->serialize($this->services), self::CACHE_ID);\n }\n }\n\n return $this->services;\n }", "title": "" }, { "docid": "6763dd24e590b4d86a5f92085ab20911", "score": "0.6862141", "text": "public function getCoreServiceProviders(): array;", "title": "" }, { "docid": "8991236ca54fac05fbfb1f2e090ae33b", "score": "0.6823228", "text": "public function services(): array\n {\n $list = \\Common::getServicesOfUser($this->id);\n return $list;\n }", "title": "" }, { "docid": "072d982be0bd9f3d81667afe3790d174", "score": "0.6811316", "text": "public function provides()\n {\n return [NotificationService::class, TransactionUploadService::class,\n FileManagerService::class, CsvValidatorService::class];\n }", "title": "" }, { "docid": "1b0e04974d4b9c19c0b7e17b61535cc0", "score": "0.6804473", "text": "public function getServiceProvider();", "title": "" }, { "docid": "36c6e056a62a40ef8c07a3aa42180168", "score": "0.67996866", "text": "public function provides(): array\n {\n return [\n ScoutServiceProvider::class,\n ActiveServiceProvider::class,\n IconServiceProvider::class,\n BreadcrumbsServiceProvider::class,\n RouteServiceProvider::class,\n EventServiceProvider::class,\n PlatformServiceProvider::class,\n ];\n }", "title": "" }, { "docid": "944e27724a1c40a526b8fd86b84df267", "score": "0.67466414", "text": "public function getServices()\n {\n return Controllers\\ServicesController::getInstance();\n }", "title": "" }, { "docid": "dc0b8a84689c94b3f415bb502685e95e", "score": "0.67404985", "text": "public function provideServiceList()\n {\n $config = include __DIR__ . '/../../config/module.config.php';\n $serviceConfig = array_merge(\n isset($config['service_manager']['factories'])?$config['service_manager']['factories']:array(),\n isset($config['service_manager']['invokables'])?$config['service_manager']['invokables']:array()\n );\n $services = array();\n foreach ($serviceConfig as $key => $val) {\n $services[] = array($key);\n }\n return $services;\n }", "title": "" }, { "docid": "3233133aed91d70b70430470c849d6f7", "score": "0.673258", "text": "function moduleServices()\n {\n $root = '/module/'.$this->_getModuleName();\n $s = $this->services()->from($root);\n return $s;\n }", "title": "" }, { "docid": "ef7306508537495c3c6d991f828f552d", "score": "0.6701558", "text": "public function slimServicesProvider()\n {\n return [\n ['environment', Environment::class],\n ['request', Request::class],\n ['response', Response::class],\n ['router', Router::class],\n ['foundHandler', RequestResponse::class],\n ['phpErrorHandler', PhpError::class],\n ['errorHandler', Error::class],\n ['notFoundHandler', NotFound::class],\n ['notAllowedHandler', NotAllowed::class],\n ['callableResolver', CallableResolver::class],\n ];\n }", "title": "" }, { "docid": "eda43859890022d3d63524723c4419b3", "score": "0.6690618", "text": "public static function providers()\n {\n return [\n Categories\\CategoriesServiceProvider::class,\n Companies\\CompanyServiceProvider::class,\n Users\\UsersServiceProvider::class,\n ];\n }", "title": "" }, { "docid": "7413794379a5408dcf22fb5add5c4f8d", "score": "0.6665128", "text": "public function provides()\n {\n return [SrbijaNaseljaService::class];\n }", "title": "" }, { "docid": "af00e7d4d1356e4fdae5c09fe8897b25", "score": "0.66599697", "text": "public function getProviders(): array\n {\n return \\array_reduce(\\array_keys($this->providers->getProvidedServices()), function ($carry, $index) {\n return $carry + [$index => $this->providers->get($index)];\n }, []);\n }", "title": "" }, { "docid": "8f5d0aa03dc7cf88f64cea43aa167944", "score": "0.66416013", "text": "public function provides()\n {\n return [\n 'exchange-web-services',\n 'exchange-web-services.factory',\n 'exchange-web-services.connection',\n ];\n }", "title": "" }, { "docid": "5cfefa71e8fd62215886cc9406a8bfae", "score": "0.6638176", "text": "public function discoverServices( )\n {\n return $this->dispatchRequest( __FUNCTION__ );\n }", "title": "" }, { "docid": "c9dd54cbed27f72724d5fafacc5ffbda", "score": "0.66324407", "text": "public function getProviders();", "title": "" }, { "docid": "1f89cff21ddf1cda4f2eda83d4589e1d", "score": "0.6631544", "text": "public function getServices(): array\n {\n return [\n Pool::class => function (ContainerInterface $container) {\n $driver = new FileSystem(['path' => $container->get('stash.cache.dir')]);\n $pool = new Pool($driver);\n\n return $pool;\n }\n ];\n }", "title": "" }, { "docid": "66c96a4d680bbf7b98ec38c0b53cd280", "score": "0.6611415", "text": "public function getServiceProvider()\n {\n return $provider = $this->getServiceProviders()\n ->findOneBy(['slug' => Providers::AUTOMATIC]);\n }", "title": "" }, { "docid": "da1c665f11d48cb2d3a5ea1918251826", "score": "0.65926933", "text": "public function getServices(): array\n {\n return array_keys($this->services);\n }", "title": "" }, { "docid": "b307f7b496c0cbfb6e6b674853d2fdec", "score": "0.65895146", "text": "final public function getServices() {\n\t\treturn $this->map;\n\t}", "title": "" }, { "docid": "a61d56dcfc58e49a2225081b16875873", "score": "0.6579195", "text": "public function getServices()\n\t{\n\t\treturn array_keys($this->_services);\n\t}", "title": "" }, { "docid": "7afdd2ff17a404dda42a8702fe380a84", "score": "0.6563583", "text": "function services()\n {\n if (!$services = $this->services)\n throw new \\RuntimeException('Services Container Not Set.');\n\n return $services;\n }", "title": "" }, { "docid": "39ed57ae6b1c18e74c6267e024882679", "score": "0.65422213", "text": "public function provides()\n\t{\n\t\treturn array('tenant_profile_services');\n\t}", "title": "" }, { "docid": "4e3a8aa28811ec278dfd152aa1585c2c", "score": "0.65281165", "text": "public function all()\n {\n return $this->send(\"services\")->services;\n }", "title": "" }, { "docid": "573b705fc82030cbd6392a3dafb55249", "score": "0.6502234", "text": "public function services() {\n\n if($serviceList = ServiceType::all()) {\n return $serviceList;\n } else {\n return response()->json(['error' => trans('api.services_not_found')], 500);\n }\n\n }", "title": "" }, { "docid": "9da8576d12a5c5a0a408a4ee909578ec", "score": "0.6473884", "text": "public function all()\n {\n return $this->providers;\n }", "title": "" }, { "docid": "350c505286dcfa37fbb62bf9f003bc9f", "score": "0.6466856", "text": "public function getServices(): array\n {\n $result = [];\n foreach ($this->classes->getClasses(ServiceInterface::class) as $service) {\n if (!$service->isInstantiable()) {\n continue;\n }\n\n $instance = $this->container->get($service->getName());\n\n foreach ($service->getInterfaces() as $interface) {\n if ($interface->isSubclassOf(ServiceInterface::class)) {\n $result[$interface->getName()] = $instance;\n }\n }\n }\n\n return $result;\n }", "title": "" }, { "docid": "5b6b7613e3a895d4702eba03e217840c", "score": "0.6410517", "text": "protected function registerServiceProviders(){\n\n\t\t// Fields\n\t\t// -----------------------------------------------------------------------------\n\t\t$this->app->register('Congraph\\EntityElastic\\Fields\\FieldsServiceProvider');\n\n\t\t// Services\n\t\t// -----------------------------------------------------------------------------\n\t\t$this->app->register('Congraph\\EntityElastic\\Services\\ServicesServiceProvider');\n\n\t\t// Validators\n\t\t// -----------------------------------------------------------------------------\n\t\t$this->app->register('Congraph\\EntityElastic\\Validators\\ValidatorsServiceProvider');\n\n\t\t// Repositories\n\t\t// -----------------------------------------------------------------------------\n\t\t$this->app->register('Congraph\\EntityElastic\\Repositories\\RepositoriesServiceProvider');\n\n\t\t// Commands\n\t\t// -----------------------------------------------------------------------------\n\t\t$this->app->register('Congraph\\EntityElastic\\Commands\\CommandsServiceProvider');\n\n\t\t\n\n\t\t\n\t}", "title": "" }, { "docid": "eae69c5838e99663a62c1fdc61593bbc", "score": "0.63509434", "text": "public function getAllServices()\n {\n return OurService::select('id','slug','title','description','image')\n ->where('status','=',\\DB::raw(1))\n ->get();\n }", "title": "" }, { "docid": "be5ae07718dc15aa7c889a2d10cb1fd9", "score": "0.6331184", "text": "protected function getServiceProvider(): ServiceProviderInterface\n {\n return new class extends AbstractServiceProvider implements BootableServiceProviderInterface {\n use ContainerAwareTrait;\n\n protected $provides = [\n 'SomeService',\n 'AnotherService'\n ];\n\n public $booted = 0;\n public $registered = 0;\n\n public function boot()\n {\n $this->booted++;\n\n return true;\n }\n\n public function register()\n {\n $this->registered++;\n\n $this->getLeagueContainer()->add('SomeService', function ($arg) {\n return $arg;\n });\n\n return true;\n }\n };\n }", "title": "" }, { "docid": "296404515c93cfa383a6def839b8e4fc", "score": "0.63309044", "text": "public function provides()\n {\n return [\n ConnectionFactory::class, 'api.factory',\n ApiManager::class, 'api',\n 'api.connection'\n ];\n }", "title": "" }, { "docid": "aee19f4cc34a617d36d67a32718f67c5", "score": "0.6313778", "text": "public function provides()\n {\n return [\n 'league-api',\n 'league-api.factory',\n 'league-api.connection',\n ];\n }", "title": "" }, { "docid": "d867b96dcd347535e41320c270588b0e", "score": "0.63063645", "text": "private function get_theme_services() : void {\n\n if( $this->services == null ) {\n\n $this->services = $this->themeclass->get_service_classes();\n\n }\n \n }", "title": "" }, { "docid": "a4df06f7c22facfb56ec99facbb09ba4", "score": "0.63037306", "text": "public function provides()\n {\n $provides = $this->provides;\n\n foreach ($this->providers as $provider) {\n $instance = $this->app->resolveProviderClass($provider);\n\n $provides = array_merge($provides, $instance->provides());\n }\n\n return $provides;\n }", "title": "" }, { "docid": "da1597cf104ee6f44e48b94cd873dcdb", "score": "0.6264424", "text": "public function getProviders()\n {\n return $this->providers;\n }", "title": "" }, { "docid": "da1597cf104ee6f44e48b94cd873dcdb", "score": "0.6264424", "text": "public function getProviders()\n {\n return $this->providers;\n }", "title": "" }, { "docid": "da1597cf104ee6f44e48b94cd873dcdb", "score": "0.6264424", "text": "public function getProviders()\n {\n return $this->providers;\n }", "title": "" }, { "docid": "da1597cf104ee6f44e48b94cd873dcdb", "score": "0.6264424", "text": "public function getProviders()\n {\n return $this->providers;\n }", "title": "" }, { "docid": "5825a75e25e214b53bd122b70c44503c", "score": "0.62594086", "text": "public static function getServices() {\n return Database::getInstance()->fetch_all('SELECT serviceid AS value, name AS text, enabled\n FROM myury.services ORDER BY name ASC');\n }", "title": "" }, { "docid": "c01eb1b81b3f3d836e672c0f78d3f868", "score": "0.6252555", "text": "public function getProviders(): array\n {\n return $this->providers;\n }", "title": "" }, { "docid": "d6b5cbdf2ce01d83438ee1844872dc07", "score": "0.6185613", "text": "public function getDeferredServices()\n {\n return $this->deferredServices;\n }", "title": "" }, { "docid": "1316905459df6a4c781ed9025424630b", "score": "0.61824197", "text": "public function provides()\n {\n return [\n 'vineq',\n 'vineq.factory',\n ];\n }", "title": "" }, { "docid": "7c90c125898d82ac1ed36328902193f1", "score": "0.6170779", "text": "protected function registerServices()\n {\n $services = array_filter($this->config->get('app.services'), function ($service) {\n return class_exists($service);\n });\n\n foreach ($services as $service) {\n /** @var \\Fyuze\\Kernel\\Service $obj */\n $obj = new $service($this->container);\n $obj->services();\n\n $this->services[] = $obj;\n }\n }", "title": "" }, { "docid": "47ffe8bd83831082370187cc8fa9dbad", "score": "0.61529726", "text": "public function provides()\n {\n return array('Cartalyst\\Sentry\\SentryServiceProvider');\n }", "title": "" }, { "docid": "35125360a1a8adb967bb809454cbd3ba", "score": "0.61516166", "text": "protected function defaultServices() {\n\t\t$serviceCollection = Yii::app()->getComponent($this->serviceCollectionComponentName);\n\t\treturn $serviceCollection->getServices();\n\t}", "title": "" }, { "docid": "754c9941ac9a2f9187e8459d76271e70", "score": "0.6137674", "text": "public function provides()\n {\n return ['App\\Cart', 'App\\Store', 'App\\Theme'];\n }", "title": "" }, { "docid": "2741d0bf42d8ae97f8bc63578a8ba03c", "score": "0.6122245", "text": "public function registerServices()\n {\n /** @var Di $di */\n $di = $this->getDI();\n\n foreach ($this->providers as $name => $provider) {\n if (is_string($name)) {\n $service = new Di\\Service($name, $provider, true);\n\n $di->setRaw($name, $service);\n $di->setRaw($provider, $service);\n\n continue;\n }\n\n /* @var \\Neutrino\\Interfaces\\Providable $prv */\n $prv = new $provider();\n\n $prv->registering();\n }\n }", "title": "" }, { "docid": "fc482d2980deedb0f707a46dfdfbd531", "score": "0.6101469", "text": "public function provides()\n {\n return [\n 'lexoffice',\n 'lexoffice.client',\n 'lexoffice.api'\n ];\n }", "title": "" }, { "docid": "14f0fffc61b2207469590fa93528f3db", "score": "0.60836864", "text": "public static function getServicesToPreload(): array\n {\n return [\n 'router' => 'getMatcher,getGenerator',\n 'event_dispatcher' => null,\n 'request_stack' => null,\n 'http_kernel' => null,\n 'kernel' => null,\n 'twig' => null,\n ];\n }", "title": "" }, { "docid": "dc4ca113d57684ea479b0c1a8fe9e19e", "score": "0.6083591", "text": "private function availableServices() : array\n {\n $availableServices = [];\n $availableServices[] = Service::where(['product_code' => 'H1'])\n ->with('defaultSalesTariff')\n ->first();\n return $availableServices;\n }", "title": "" }, { "docid": "365be1a46868c8bdf20ba55351e67b59", "score": "0.6083401", "text": "protected static function getDefaultServices()\n {\n if (!self::isTestingMode()) {\n return self::getConfig()->getItem('DI.Services', null, true);\n } else {\n return array();\n }\n }", "title": "" }, { "docid": "b0e6406c72627959db771b9ee79cc346", "score": "0.6081737", "text": "public function provides()\n {\n return [\n 'throttle',\n 'throttle.factory',\n 'throttle.transformer',\n ];\n }", "title": "" }, { "docid": "66c773c933464b231db2045a20364b29", "score": "0.6073353", "text": "public function getServices($type) {\n\t\tif(!isset($this->isServiceTypeLoaded[$type])) {\n\t\t\t$file = new File(self::getServicesDiskLocation().'/'.$type);\n\t\t\tif($file->isDirectory()) {\n\t\t\t\t$files = $file->getFiles(new PHPFileFilter());\n\t\t\t\tif(is_array($files)) {\n\t\t\t\t\tforeach($files as $file) {\n\t\t\t\t\t\t$name = strtolower(str_replace('.'.$file->getExtension(),'',$file->getName()));\n\t\t\t\t\t\t$this->getService($type,$name);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->isServiceTypeLoaded[$type] = true;\n\t\t}\n\t\treturn $this->services[$type];\n\t}", "title": "" }, { "docid": "59f79074cf6176615b2836d7e0c7a217", "score": "0.6073046", "text": "public function getProviders($provider)\n {\n $name = is_string($provider) ? $provider : get_class($provider);\n\n return Arr::where($this->serviceProviders, function ($value) use ($name) {\n return $value instanceof $name;\n });\n }", "title": "" }, { "docid": "dc025be89aef09b0f7a077e8a0d3eb1b", "score": "0.6065951", "text": "public function getAllServices() {\n\t\t$all = array();\n\t\t$types = $this->getServiceTypes();\n\t\tif(is_array($types) && count($types) > 0) {\n\t\t\t$remote = $this->getRemoteServices();\n\t\t\tforeach($types as $type) {\n\t\t\t\t$local = $this->getServices($type);\n\t\t\t\t$all[$type] = array_merge($local,$remote[$type]);\n\t\t\t}\n\t\t}\n\t\treturn $all;\n\t}", "title": "" }, { "docid": "05ec38c747ea2e88b017e5805bb77917", "score": "0.6060265", "text": "public function provides()\n {\n $provides = $this->provides;\n\n $this->fireCallbacks('provides', null, function (Closure $callback) use (&$provides) {\n $result = $callback->call($this, $this->app, $provides);\n if (is_array($result)) {\n $provides = array_merge($provides, $result);\n }\n });\n\n// foreach ( $this->providers as $provider ) {\n// $instance = $this->app->resolveProviderClass($provider);\n\n// $provides = array_merge($provides, $instance->provides());\n// }\n\n// $commands = [ ];\n// foreach ( $this->commands as $k => $v ) {\n// if ( is_string($k) ) {\n// $commands[] = $k;\n// }\n// }\n\n// return array_merge(\n// $provides,\n// array_keys($this->aliases),\n// array_keys($this->bindings),\n// array_keys($this->share),\n// array_keys($this->shared),\n// array_keys($this->singletons),\n// array_keys($this->weaklings),\n// $commands\n// );\n return $provides;\n }", "title": "" }, { "docid": "f8a45ab72010fa7dc6d800d8b1331827", "score": "0.60442454", "text": "public function discoverServices(): array {\n\t\t\t\n\t\t\t$services = [];\n\t\t\tforeach ($this->upgrades as $upgrade) {\n\t\t\t\t$services[] = [\n\t\t\t\t 'name' => $upgrade->service->name,\n\t\t\t\t 'slug' => $upgrade->service->slug,\n\t\t\t\t 'selected' => true,\n\t\t\t\t 'price_per_night' => $upgrade->price_per_night,\n\t\t\t\t];\n\t\t\t}\n\t\t\t$notSelectedServices = Service::notSelectedIn($this->id);\n\t\t\tforeach ($notSelectedServices as $notSelectedService) {\n\t\t\t\t$services[] = [\n\t\t\t\t 'name' => $notSelectedService->name,\n\t\t\t\t 'slug' => $notSelectedService->slug,\n\t\t\t\t 'selected' => false,\n\t\t\t\t 'price_per_night' => null,\n\t\t\t\t];\n\t\t\t}\n\t\t\treturn $services;\n\t\t}", "title": "" }, { "docid": "52e100fedaff2613b1c26e14079c1415", "score": "0.60414076", "text": "public function getProviders(): array\n\t{\n\t\treturn [];\n\t}", "title": "" }, { "docid": "45b41e531541d0391c878dbc371b8b1f", "score": "0.6040619", "text": "function get_services()\n\t{\n\t\t$pub_services = array();\n\t\t$modules = glob(MYBB_ROOT.'/inc/plugins/mybbpublisher/modules/*.php');\n\t\tforeach($modules as $module)\n\t\t{\n \t\t\trequire_once($module);\n \t\t}\n \treturn $pub_services;\n\t}", "title": "" }, { "docid": "e6c200d37929419ab1afeb5cdf16e319", "score": "0.603805", "text": "public function getDeferredServices(): array;", "title": "" }, { "docid": "89398c41c9396c82e11e079559354f00", "score": "0.6036029", "text": "public function provides()\n {\n return [\n CacheManager::class,\n EntityManagerInterface::class,\n EntityManager::class,\n ClassMetadataFactory::class,\n DriverMapper::class,\n AuthManager::class,\n ];\n }", "title": "" }, { "docid": "5a0eeab7f0082fd5a7278f8df9ac3f5f", "score": "0.6018375", "text": "public function provides(): array\n {\n return [\n FloorplannerClient::class,\n ];\n }", "title": "" }, { "docid": "11966db13af169ff50b8f5488c397223", "score": "0.6015083", "text": "public static function getAllServices()\n {\n try {\n // CommonComponent::activityLog(\"GET_STATE\", GET_STATE, 0, HTTP_REFERRER, CURRENT_URL);\n $allservices = [];\n $allservices[0] = 'Services (ALL)';\n $roleId = Auth::User()->lkp_role_id;\n $allservice = DB::table('lkp_services');\n $allservice->orderBy('service_name', 'asc');\n $allservice->where('is_active', '1');\n $allservice = $allservice->lists('service_name', 'id');\n foreach ($allservice as $id => $servicename) {\n $allservices[$id] = $servicename;\n }\n return $allservices;\n } catch (Exception $ex) {\n\n }\n }", "title": "" }, { "docid": "10f62895bbfba12b63cfb304feee5a50", "score": "0.60131526", "text": "public function provides() {\n return array();\n }", "title": "" }, { "docid": "28b0ee49e12a900309765dfec8b66b60", "score": "0.60120356", "text": "public function provides() {\n\t\treturn [\n\t\t\t'reporter',\n\t\t\t'reporter.monolog',\n\t\t\t'reporter.timer',\n\t\t];\n\t}", "title": "" } ]
c82256930caa1cd7a8aaa4da10b0e770
Crea un nuevo password aleatorio
[ { "docid": "c0bf0bc493d393ebf801ad67d73c465b", "score": "0.0", "text": "public function Cambiar_Pass($id, $pass_act, $pass_new) {\n\t\t$res=0;\n\t\ttry {\n\t\t\t//encriptar el password actual y nuevo:\n\t\t\t$pass_act_enc = md5($pass_act);\n\t\t\t$pass_new_enc = md5($pass_new);\n\n\t\t\t$sql=\"update usuarios set password= '$pass_new_enc' \n\t\t\t\twhere id_usuario='$id' and password='$pass_act_enc'\";\n\t\t\t$res = $this->CE($sql,false);\n\t\t\t/*\n\t\t\tif ($res<=0) {\n\t\t\t\tthrow new Exception(\"No se ha podido cambiar tu password\");\n\t\t\t}\n\t\t\t*/\n\t\t}catch (Exception $e) {\n\t\t\tthrow $e;\n\t\t}\n\t\treturn $res;\n\t}", "title": "" } ]
[ { "docid": "8fa3af2bdd922e2777e95389def73911", "score": "0.78120214", "text": "public function regeneratePassword();", "title": "" }, { "docid": "7a96d244722aa37c8e4b3683750d2422", "score": "0.7359209", "text": "public function generatePass() {\n $generatePass = Str::random(6);\n $this->password = $generatePass;\n }", "title": "" }, { "docid": "737232e19ad984e52744cf38b2188dcd", "score": "0.7343791", "text": "function create_new_pass(){\n $factory = new RandomLib\\Factory;\n $generator = $factory->getMediumStrengthGenerator();\n $temppass = $generator->generateString(10, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+/!@\\\"#$%&[]{}?|');\n return $temppass;\n }", "title": "" }, { "docid": "7958007ed8c64e21f83d5717fe093804", "score": "0.7220364", "text": "public function generaPassword() {\n $cadena = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890\";\n // Obtenemos la longitud de la cadena de caracteres\n $longitudCadena = strlen ( $cadena );\n \n // Se define la variable que va a contener la contrase�a\n $pass = \"\";\n // Se define la longitud de la contrase�a, en mi caso 10, pero puedes poner la longitud que quieras\n $longitudPass = 10;\n \n // Creamos la contrase�a\n for($i = 1; $i <= $longitudPass; $i ++) {\n // Definimos numero aleatorio entre 0 y la longitud de la cadena de caracteres-1\n $pos = rand ( 0, $longitudCadena - 1 );\n \n // Vamos formando la contrase�a en cada iteraccion del bucle, a�adiendo a la cadena $pass la letra correspondiente a la posicion $pos en la cadena de caracteres definida.\n $pass .= substr ( $cadena, $pos, 1 );\n }\n return $pass;\n }", "title": "" }, { "docid": "8e13a910fa38687efb7695504054dbf5", "score": "0.7196275", "text": "public function createTempPassword() {\n\t\t//generate password\n\t\t$alphabet = \"abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789\";\n\t $pass = array(); \n\t $alphaLength = strlen($alphabet) - 1;\n\n\t for ($i = 0; $i < 10; $i++) {\n\t $n = rand(0, $alphaLength);\n\t $pass[] = $alphabet[$n];\n\t }\n\n\t //convert array to string\n\t $temppass = implode($pass);\n\n\t //select the user with the wright email adres\n\t $user = User::where('email', '=', Input::get('email'))->first();\n\t \n\t $user->password = Hash::make($temppass);\n\n\t //store the new password\n\t $user->save();\n\n\t //return the generate password\n\t return $temppass;\n\t}", "title": "" }, { "docid": "18c8e955476b392361f4e9baaea0ff89", "score": "0.71209383", "text": "public function createRandomPassword()\n\t{\n\t\t$this->password = $this->urlFriendlyGibberish(12);\n\t\treturn $this->password;\n\t}", "title": "" }, { "docid": "05d08dfeae5a3c12567dc122433b055e", "score": "0.7104807", "text": "function genPass(){\n //Os recomiendo desordenar las minúsculas, mayúsculas y números para mejorar la probabilidad.\n $string = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890@\";\n //Obtenemos la longitud de la cadena de caracteres\n $stringLong = strlen($string);\n \n //Definimos la variable que va a contener la contraseña\n $pass = \"\";\n //Se define la longitud de la contraseña, puedes poner la longitud que necesites\n //Se debe tener en cuenta que cuanto más larga sea más segura será.\n $longPass=10;\n \n //Creamos la contraseña recorriendo la cadena tantas veces como hayamos indicado\n for($i=1 ; $i<=$longPass ; $i++){\n //Definimos numero aleatorio entre 0 y la longitud de la cadena de caracteres-1\n $pos = rand(0,$stringLong-1);\n \n //Vamos formando la contraseña con cada carácter aleatorio.\n $pass .= substr($string,$pos,1);\n }\n return $pass;\n}", "title": "" }, { "docid": "4d93fad5083879dbf65bfd68e0bf93da", "score": "0.7049047", "text": "function createPassword() {\n $chars = \"abcdefghijkmnopqrstuvwxyz023456789\";\n srand( (double) microtime() * 1000000 );\n $i = 0;\n $pass = '' ;\n while ( $i <= 7 ) {\n $num = rand() % 33;\n $tmp = substr( $chars, $num, 1 );\n $pass = $pass . $tmp;\n $i++;\n }\n return $pass;\n }", "title": "" }, { "docid": "83fffdb884b5a58efef92c37a7234b02", "score": "0.700974", "text": "function createPassword($pass){\n\t\t$salt = rand(32,511);\n\t\t$protect_form = $salt.hash('sha256', $salt.$pass); \n\t\treturn $protect_form;\n\t}", "title": "" }, { "docid": "058734088b18f9b801efa15a89eeacf8", "score": "0.7009305", "text": "function createRandomPassword() {\n\n $chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz0123456789\";\n $i = 0;\n $pass = '' ;\n\n while ($i <= 8) {\n $num = mt_rand(0,58);\n $tmp = substr($chars, $num, 1);\n $pass = $pass . $tmp;\n $i++;\n }\n return $pass;\n \n }", "title": "" }, { "docid": "bbe6a28315b7fac852e9ab78635991d0", "score": "0.7007121", "text": "function generaPass(){\n $cadena = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890\";\n //Obtenemos la longitud de la cadena de caracteres\n $longitudCadena=strlen($cadena);\n \n //Se define la variable que va a contener la contraseña\n $pass = \"\";\n //Se define la longitud de la contraseña, en mi caso 10, pero puedes poner la longitud que quieras\n $longitudPass=10;\n //Creamos la contraseña\n for($i=1 ; $i<=$longitudPass ; $i++){\n //Definimos numero aleatorio entre 0 y la longitud de la cadena de caracteres-1\n $pos=rand(0,$longitudCadena-1);\n //Vamos formando la contraseña en cada iteraccion del bucle, añadiendo a la cadena $pass la letra correspondiente a la posicion $pos en la cadena de caracteres definida.\n $pass .= substr($cadena,$pos,1);\n }\n return $pass;\n}", "title": "" }, { "docid": "0814239c48f90b67f87df77fc5e861af", "score": "0.6994374", "text": "public function createPassword()\n\t{\n\t\tsetcookie(\"auth_token_admin\", md5($this->getPass()), time() + 86400, \"/\", \"localhost\", false);\n\t}", "title": "" }, { "docid": "012ab1a014b095935eeb96b55acb04a6", "score": "0.6971504", "text": "function generaPass(){\n $cadena = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\n //Obtenemos la longitud de la cadena de caracteres\n $longitudCadena=strlen($cadena);\n\n //Se define la variable que va a contener la contraseña\n $pass = \"\";\n //Se define la longitud de la contraseña, en mi caso 10, pero puedes poner la longitud que quieras\n $longitudPass=8;\n\n //Creamos la contraseña\n for($i=1 ; $i<=$longitudPass ; $i++){\n //Definimos numero aleatorio entre 0 y la longitud de la cadena de caracteres-1\n $pos=rand(0,$longitudCadena-1);\n\n //Vamos formando la contraseña en cada iteraccion del bucle, añadiendo a la cadena $pass la letra correspondiente a la posicion $pos en la cadena de caracteres definida.\n $pass .= substr($cadena,$pos,1);\n }\n return $pass;\n}", "title": "" }, { "docid": "086872db8a5b2d223fae9cd07d7d75ae", "score": "0.6899669", "text": "public static function makePassword()\n\t{\n\t\t$pass = \"\";\n\n\t\t// Want it random you say, eh?\n\t\t// (enter evil laugh)\n\n\t\t$unique_id \t= uniqid( mt_rand(), TRUE );\n\t\t$prefix\t\t= IPSMember::generatePasswordSalt();\n\t\t$unique_id .= md5( $prefix );\n\n\t\tusleep( mt_rand(15000,1000000) );\n\t\t// Hmm, wonder how long we slept for\n\n\t\t$new_uniqueid = uniqid( mt_rand(), TRUE );\n\n\t\t$final_rand = md5( $unique_id . $new_uniqueid );\n\n\t\tfor ($i = 0; $i < 15; $i++)\n\t\t{\n\t\t\t$pass .= $final_rand{ mt_rand(0, 31) };\n\t\t}\n\n\t\treturn $pass;\n\t}", "title": "" }, { "docid": "8fc68098df8382c83d4533a876d58c56", "score": "0.68891585", "text": "function modifyPassword(){}", "title": "" }, { "docid": "61c8723848e30e863c6f27a9d5c8999a", "score": "0.6884704", "text": "private function generatePassword()\n {\n $sPassword = \"\";\n foreach(self::PASSWORD_SCHEME as $nTypeChar ) {\n switch ($nTypeChar) {\n case self::MAJUSCULE:\n $sPassword .= self::majusculeAleatoire();\n break;\n case self::MINUSCULE:\n $sPassword .= self::minusculeAleatoire();\n break;\n case self::CHIFFRE:\n $sPassword .= self::chiffreAleatoire();\n break;\n case self::SYMBOLE:\n $sPassword .= self::symboleAleatoire();\n break;\n default:\n $sPassword .= self::symboleAleatoire();\n break;\n }\n }\n\n return($sPassword);\n }", "title": "" }, { "docid": "cad8cae37619d00a1eb0c15f4512d002", "score": "0.6842068", "text": "public function generatePassword()\n {\n return substr(md5(uniqid()), 0, 7);\n }", "title": "" }, { "docid": "ef31ade5e49fda0c11617630f2d27eb2", "score": "0.68004495", "text": "function generatePassword() {\n $set = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';\n for ($i = 0, $psw = ''; $i < 6; $i++) {\n $psw .= $set[mt_rand(0, 35)];\n }\n return $psw;\n}", "title": "" }, { "docid": "ce8e9f1ee5d27f8d17f08a72bbb0b553", "score": "0.67942464", "text": "public function create_password(){\n return static::index(['{login.error}' => 'Sorry, this function is not available right now.']);\n }", "title": "" }, { "docid": "7720418c0733eb359630a3271de5fb26", "score": "0.6778309", "text": "function createPassword() {\n$chars = \"abcdefghijkmnopqrstuvwxyz023456789\";\nsrand((double)microtime()*1000000);\n$i = 0;\n$pass = '' ;\nwhile ($i <= 7) {\n$num = rand() % 33;\n$tmp = substr($chars, $num, 1);\n$pass = $pass . $tmp;\n$i++;\n}\nreturn $pass;\n}", "title": "" }, { "docid": "9af7d630a96222eaa6093380fa83a1c9", "score": "0.67597175", "text": "private function createRandomPassword() {\n\t\t$chars = array_merge(\n\t\t\trange(0,9),\n\t\t\trange('a','z'),\n\t\t\trange('A','Z'),\n\t\t\tarray('!','@','$','%','^','&','*')\n\t\t\t);\n\t\t\n\t\tshuffle($chars);\n\t\t\n\t\t$password = '';\n\t\tfor($i=0; $i<8; $i++) {\n\t\t\t$password .= $chars[$i];\n\t\t}\n\t\treturn $password;\n\t}", "title": "" }, { "docid": "be98a7a2bb3410477c9ff1f1a63343ef", "score": "0.67545146", "text": "function generarPassword(){ // Revidada\n\n\t\t//LLAMAMOS A LA FUNCION QUE GENERAR EL SAL\n\t\t$salAleatorio \t\t\t= $this->generarsal();\n\t\t//GENERAMOS EL PASS CIFRADO CON EL SAL\n\t\t$passwordHaseado \t\t= hash('SHA256', \"-\".$salAleatorio.\"-\".$this->jsonPHP['password'].\"-\");\n\t\t//RETORNAMOS EL HASH Y PASS HASEADO PARA GUARDARLOS EN LA BD \n\t\treturn $packEncriptado \t= array('0' => $salAleatorio,'1' => $passwordHaseado);\n\t\n\t}", "title": "" }, { "docid": "f525c20659dd8f67a7f8d4f5e65048d7", "score": "0.67360055", "text": "public function generateNewPassword()\n {\n $result = $this->sendRequest('partner10.generateNewPassword');\n\n if ($result['resultCode'] == self::API_SUCCESS) {\n return $result['newPassword'];\n } else {\n throw new Services_Parallels_KA_Exception(\n $result['resultCode'],\n $result['resultDesc']\n );\n }\n }", "title": "" }, { "docid": "1c7503ba7a064c1213fe95fb88fe0683", "score": "0.6704334", "text": "private function _generateNewId()\n {\n $pass = new Password();\n $this->_id = $pass->makeRandomPassword(30);\n $this->_generateTmpPath($this->_id);\n }", "title": "" }, { "docid": "a9e3dcbd8f7358966c56ba2db9966dec", "score": "0.66978204", "text": "function generatePassword($qtyCaraceters = 60){\n\n\t //Letras minúsculas embaralhadas\n\t $smallLetters = str_shuffle('abcdefghijklmnopqrstuvwxyz');\n\t \n\t //Letras maiúsculas embaralhadas\n\t $capitalLetters = str_shuffle('ABCDEFGHIJKLMNOPQRSTUVWXYZ');\n\t \n\t //Números aleatórios\n\t $numbers = (((date('Ymd') / 12) * 24) + mt_rand(800, 9999));\n\t $numbers .= 1234567890;\n\t \n\t //Caracteres Especiais\n\t $specialCharacters = str_shuffle('!@#$%*-');\n\t \n\t //Junta tudo\n\t $characters = $capitalLetters.$smallLetters.$numbers.$specialCharacters;\n\t \n\t //Embaralha e pega apenas a quantidade de caracteres informada no parâmetro\n\t $password = substr(str_shuffle($characters), 0, $qtyCaraceters);\n\t \n\t //Retorna a senha\n\t return $password;\n }", "title": "" }, { "docid": "5398d8a4baefccc2139f64b10405305a", "score": "0.66951454", "text": "private function getPassword()\n\t\t{\n\n\t\t\treturn Hashes::randomBytes(rand(6, 18));\n\t\t}", "title": "" }, { "docid": "5805e8e19a04a4b44145b68602199310", "score": "0.66916233", "text": "private function GeneratePassword()\n {\n $chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\n return substr(str_shuffle($chars), 0, rand(8, 15));\n }", "title": "" }, { "docid": "7b69a5c67b87382c2788d7ae9b4b60b4", "score": "0.66772246", "text": "public function generate(): string\n {\n return $this->generator->generatePassword();\n }", "title": "" }, { "docid": "44a9ffffab53882897e87868120e6606", "score": "0.6671734", "text": "function genPass(){\n\t$passLength = 8;\n\t//list of characters from which password is created from\n\t$passSet = \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t$createdPass = \"\";\n\t\n\n\tfor ($i = 0; $i <= $passLength; $i++) {\n\t\t//shuffling the character set\n\t\t$passSet = str_shuffle($passSet);\n\t\t//choosing the first character of the shuffled character set\n\t\t$createdPass .= $passSet[0];\n\t\t\n\t}\n\treturn $createdPass;\n}", "title": "" }, { "docid": "3e9b44078a970aa32f3db9b65cb0271f", "score": "0.66574025", "text": "public static function generatePassword( $length );", "title": "" }, { "docid": "fa0dc22da9f166fd481bf83c91d06ea2", "score": "0.6647803", "text": "public static function generatePassword() {\n $consonants = array(\"b\", \"c\", \"d\", \"f\", \"g\", \"h\", \"j\", \"k\", \"l\", \"m\", \"n\", \"p\", \"r\", \"s\", \"t\", \"v\", \"w\", \"x\", \"y\", \"z\");\n $vocals = array(\"a\", \"e\", \"i\", \"o\", \"u\");\n\n $password = '';\n\n srand((double) microtime() * 1000000);\n for ($i = 1; $i <= 4; $i++) {\n $password .= $consonants[rand(0, 19)];\n $password .= $vocals[rand(0, 4)];\n }\n $password .= rand(0, 9);\n\n return $password;\n }", "title": "" }, { "docid": "7c3af9950da957f22b2c964103c1253f", "score": "0.6643306", "text": "function CreatePasswd() {\n\t\t\n\t\t$pattern = \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t\t$passwd = null;\n\t\t\n\t\tfor($i=0;$i<10;$i++){\n\t\t\t$random = rand() % 62;\n\t\t\t$substring = substr($pattern, $random, 1);\n\t\t\t\n\t\t\t$passwd = $passwd . $substring;\n\t\t}\n\n\t\treturn $passwd;\n\t}", "title": "" }, { "docid": "364a7bc68c6140204c439256a6a77f35", "score": "0.6631403", "text": "function random_password(){\n //Os recomiendo desordenar las minúsculas, mayúsculas y números para mejorar la probabilidad.\n $cadena = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890@#!€%&()\";\n //Obtenemos la longitud de la cadena de caracteres\n $longitudCadena=strlen($cadena);\n \n //Definimos la variable que va a contener la contraseña\n $pass = \"\";\n //Se define la longitud de la contraseña, puedes poner la longitud que necesites\n //Se debe tener en cuenta que cuanto más larga sea más segura será.\n $longitudPass=10;\n \n //Creamos la contraseña recorriendo la cadena tantas veces como hayamos indicado\n for($i=1 ; $i<=$longitudPass ; $i++){\n //Definimos numero aleatorio entre 0 y la longitud de la cadena de caracteres-1\n $pos=rand(0,$longitudCadena-1);\n \n //Vamos formando la contraseña con cada carácter aleatorio.\n $pass .= substr($cadena,$pos,1);\n }\n return $pass;\n}", "title": "" }, { "docid": "3bab9970b8d4e59d6562b2807d12506f", "score": "0.6610032", "text": "public function generetaRandomPassword(){\n $alphabet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890?(){}[]+*%&?!';\n $pass = array();\n for ($i = 0; $i < 8; $i++) {\n $n = rand(0, strlen($alphabet) - 1);\n $pass[] = $alphabet[$n];\n }\n return implode($pass);\n }", "title": "" }, { "docid": "1e60c8288604eafdb0ad8466669d4a07", "score": "0.6595065", "text": "public function getNewPassword()\n\t{\n\t\treturn utils::tplprotect(connexion::$newPassword);\n\t}", "title": "" }, { "docid": "4c49950800fa7223d442d504fcc98223", "score": "0.6577994", "text": "function passwordRandom(){\n\t\t$cadena=\"ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\";\n\t\t//Obtenemos la longitud de la cadena de caracteres\n\t\t$longitudCadena=strlen($cadena);\n\t\t//Se define la variable que va a contener la contraseña\n\t\t$password=\"\";\n\t\t//Se define la longitud de la contraseña, para este caso 7\n\t\t$longitudPassword=7;\n\t\t//Creamos la contraseña\n\t\tfor($i=1; $i<=$longitudPassword; $i++){\n\t\t\t//Definimos numero aleatorio entre 0 y la longitud de la cadena de caracteres-1\n\t\t\t$pos=rand(0,$longitudCadena-1);\n\t\t\t//Vamos formando la contraseña en cada iteraccion del bucle, añadiendo a la cadena $pass la letra correspondiente a la posicion $pos en la cadena de caracteres definida.\n\t\t\t$password.=substr($cadena,$pos,1);\n\t\t}\n\t\t\treturn $password;\n\t}", "title": "" }, { "docid": "a7fb75618399ec8c03b36b5ca7907496", "score": "0.6560978", "text": "function generatePassword() {\r\n\r\n\t\t// Set the random id length\r\n\t\t$random_id_length = 8;\r\n\r\n\t\t// Generate a random id, encrypt it, and store it in $rnd_id\r\n\t\t$rnd_id = crypt(uniqid(rand(), 1));\r\n\r\n\t\t// Remove any slashes that might have come\r\n\t\t$rnd_id = strip_tags(stripslashes($rnd_id));\r\n\r\n\t\t// Remove any . or / and reverse the string\r\n\t\t$rnd_id = str_replace(\".\", \"\", $rnd_id);\r\n\t\t$rnd_id = strrev(str_replace(\"/\", \"\", $rnd_id));\r\n\r\n\t\t// Take the first 10 characters from the $rnd_id\r\n\t\t$rnd_id = substr($rnd_id, 0, $random_id_length);\r\n\r\n\t\t// Shuffle characters\r\n\t\t$rnd_id = str_shuffle($rnd_id);\r\n\r\n\t\t// Remove caps\r\n\t\t$rnd_id = strtolower($rnd_id);\r\n\r\n\t\t// Return generated password\r\n\t\treturn $rnd_id;\r\n\t}", "title": "" }, { "docid": "44c013fc268015b6a11456f5d21bbba1", "score": "0.6542833", "text": "function makeRandomPassword() { \n\t $scheme = \"abchefghjkmnpqrstuvwxyz0123456789\"; \n\t srand((double)microtime()*1000000); \n\t\t $i = 0; \n\t\t while ($i <= 7) { \n\t\t\t\t$num = rand() % 33; \n\t\t\t\t$tmp = substr($scheme, $num, 1); \n\t\t\t\t$pass = $pass . $tmp; \n\t\t\t\t$i++; \n\t\t } \n\t\t return $pass; \n\t}", "title": "" }, { "docid": "55523cf625cbd379444699723ce08191", "score": "0.65375966", "text": "public function createPassword(UserPassword $auth ){\n return $auth->createPassword();\n }", "title": "" }, { "docid": "b403c47b4a0cda3442356892964a766f", "score": "0.650928", "text": "private function create_key_pass($table = 'login'){\n\t\t$abc = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_[]{}';\n\t\t$k = substr(str_shuffle($abc), 0, 60);\n\n\t\t//Verifies that it doesn't exist\n\t\t$v = $this->validate_key_pass($table, $k);\n\t\tif(!$v){\n\t\t\treturn $k;\n\t\t}else{\n\t\t\treturn $this->create_key_pass();\n\t\t}\n\t}", "title": "" }, { "docid": "0d508ac717c836a4ad7d37d4b067cb7e", "score": "0.6503706", "text": "public function generateRandPassword()\n {\n return Security::generateRandomKey(8);\n }", "title": "" }, { "docid": "11291f3e5b23c76a3b0b7e6a22d4abe7", "score": "0.6502592", "text": "function generate_password($username, $password1, $password2) {\n $password1 = $password2 = $this->_get_password();\n }", "title": "" }, { "docid": "890c9d5a9ee1c9afa067cc72185910a2", "score": "0.6497912", "text": "public function generatepwd(){\r\n\t\t$pass = Tools::uniqID(16);\r\n\t\treturn array($pass, Tools::cryptString($pass));\r\n\t}", "title": "" }, { "docid": "d68ea765c1a8111e1e333039e134d5a6", "score": "0.6496125", "text": "function generateEncryptedPassword($userinfo) {\r\n }", "title": "" }, { "docid": "dd656e2308c782fef6c9c0b6b6d93862", "score": "0.64952856", "text": "function makeRandomPassword() {\n\tglobal $log;\n\t$log->debug('> makeRandomPassword');\n\t$salt = 'abcdefghijklmnopqrstuvwxyz0123456789';\n\tsrand((double) microtime() * 1000000);\n\t$i = 0;\n\t$pass = '';\n\twhile ($i <= 7) {\n\t\t$num = rand() % 33;\n\t\t$tmp = substr($salt, $num, 1);\n\t\t$pass = $pass . $tmp;\n\t\t$i++;\n\t}\n\t$log->debug('< makeRandomPassword');\n\treturn $pass;\n}", "title": "" }, { "docid": "b5a078c18d583ea3aeb204d31a652f59", "score": "0.6493848", "text": "protected function generateAdminPassword()\n {\n return\n Util::getRandomString(1, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ') .\n Util::getRandomString(1, '0123456789') .\n Util::getRandomString(1, '@*^%#()<>') .\n Util::getRandomString();\n }", "title": "" }, { "docid": "035563edf4e5ec66993f5a760378be58", "score": "0.64807856", "text": "function makeRandomPassword() {\n $salt = \"abchefghjkmnpqrstuvwxyz0123456789\";\n srand((double)microtime()*1000000);\n \t$i = 0;\n \twhile ($i <= 7) {\n \t\t$num = rand() % 33;\n \t\t$tmp = substr($salt, $num, 1);\n \t\t$pass = $pass . $tmp;\n \t\t$i++;\n \t}\n \treturn $pass;\n}", "title": "" }, { "docid": "ca616db04e0072bc21421e569014dc1e", "score": "0.6475892", "text": "function makeRandomPassword() {\n\t $salt = \"abchefghjkmnpqrstuvwxyz0123456789\";\n\t srand((double)microtime()*1000000); \n\t\t$i = 0;\n\t\twhile ($i <= 7) {\n\t\t\t\t$num = rand() % 33;\n\t\t\t\t$tmp = substr($salt, $num, 1);\n\t\t\t\t$pass = $pass . $tmp;\n\t\t\t\t$i++;\n\t\t}\n\t\treturn $pass;\n\t}", "title": "" }, { "docid": "b947c5a104448bd86ba516b62606813d", "score": "0.6472583", "text": "function createRandomPassword() {\n\n $chars = \"abcdefghijkmnopqrstuvwxyz023456789\";\n srand((double)microtime()*1000000);\n $i = 0;\n $pass = '' ;\n\n while ($i <= 7) {\n $num = rand() % 33;\n $tmp = substr($chars, $num, 1);\n $pass = $pass . $tmp;\n $i++;\n }\n\n return $pass;\n\n}", "title": "" }, { "docid": "5d4b9b37f5b88f481c0547249142eb7c", "score": "0.64650655", "text": "function setup_password($username) {\n // return new password or false, if failed\n\n // load random word\n $new_pass = load_random_password(6, 16);\n\n if ($new_pass == false) {\n // if error, create new default pass\n $new_pass = \"changeMe\";\n }\n\n // setting up new password in data base or returning false\n $dbConn = dbConnection();\n $result = $dbConn->query(\"UPDATE users SET pass = sha1('\".$new_pass.\"')\n WHERE user_name = '\".$username.\"'\");\n\n if (!$result) {\n throw new Exception('Cannot create new password. Please try again later'); // pass not changed\n } else {\n return $new_pass; // password changed\n }\n }", "title": "" }, { "docid": "0ee85905255b78925ed2426930e3bb81", "score": "0.64649093", "text": "private function generatePass(): string {\n $supported = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789#!@?~\";\n $pass = \"\";\n for ($i=0; $i<rand(8, 12); $i++) {\n $pass .= $supported[rand(0, strlen($supported)-1)];\n }\n return $pass;\n }", "title": "" }, { "docid": "00075296597c96ddd0f3a5c9f25782e2", "score": "0.6461278", "text": "public function createPassword($passwordLength)\r\n\t{\r\n\t\t$chars = \"abcdefghijkmnopqrstuvwxyz023456789\";\r\n\t\tsrand((double)microtime() * 1000000);\r\n\t\t$password = \"\";\r\n\t\t\r\n\t\tfor($i = 0; i < $passwordLength + 1; $i++)\r\n\t\t{\r\n\t\t\t$num = rand() % 33;\r\n\t\t\t$tmp = substr($chars, $num, 1);\r\n\t\t\t$password = $password . $tmp;\r\n\t\t}\r\n\t\t\r\n\t\treturn $password;\r\n\t}", "title": "" }, { "docid": "920f938913473042dfea0625fdf71909", "score": "0.64608866", "text": "function GeneratePassword ($password_length = 12) {\n\tsrand(make_seed());\n\t$alfa = \"1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM\";\n\t$token = \"\";\n\tfor($i = 0; $i < $password_length; $i ++) {\n\t\t$token .= $alfa[rand(0, strlen($alfa))];\n\t}\n\treturn $token;\n}", "title": "" }, { "docid": "9df8a0c9dd77c117e11c20315633edb2", "score": "0.6459968", "text": "function generateEncryptedPassword($userinfo)\r\n {\r\n }", "title": "" }, { "docid": "0894bad97b9a2bcbec5c3c6d0d2c0e38", "score": "0.6445049", "text": "function generatePassword() {\n\t$characters = \"aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ0123456789!?&\";\n\t$generatedPassword = substr( str_shuffle($characters),0,8);\n\treturn $generatedPassword;\n}", "title": "" }, { "docid": "11c0b8fc04493765f9fb115dc48f37ed", "score": "0.64304656", "text": "public function asPassword(): string;", "title": "" }, { "docid": "7e896886e85156367903afcc3f04f217", "score": "0.64293474", "text": "public static function generatePassword() {\n\t\n\t\t$character_set_array = array();\n\t\t$character_set_array[] = array('count' => 3, 'characters' => 'abcdefghijklmnopqrstuvwxyz');\n\t\t$character_set_array[] = array('count' => 2, 'characters' => '0123456789');\n\t\t$character_set_array[] = array('count' => 2, 'characters' => 'ABCDEFGHIJKLMNOPQRSTUVWXYZ');\n\t\t$character_set_array[] = array('count' => 1, 'characters' => '!@#$%^&*()?');\n\t\t$temp_array = array();\n\t\t\n\t\tforeach ($character_set_array as $character_set) {\n\t\t\t\n\t\t\tfor ($i = 0; $i < $character_set['count']; $i++) {\n\t\t\t\t\n\t\t\t\t$temp_array[] = $character_set['characters'][mt_rand(0, strlen($character_set['characters']) - 1 )];\n\t\t\t}\n\t\t}\n\t\t\n\t\tshuffle($temp_array);\n\t\t\n\t\treturn (implode( '', $temp_array ));\n\t}", "title": "" }, { "docid": "80dd2b3fa4f65aa936adbb2a14b660f9", "score": "0.6426326", "text": "function make_password( $length = 8 ){\n $chars = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h',\n 'i', 'j', 'k', 'l','m', 'n', 'o', 'p', 'q', 'r', 's',\n 't', 'u', 'v', 'w', 'x', 'y','z', 'A', 'B', 'C', 'D',\n 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L','M', 'N', 'O',\n 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y','Z',\n '0', '1', '2', '3', '4', '5', '6', '7', '8', '9');\n // Randomly get $length array element key names in $chars\n $keys = array_rand($chars, $length);\n $password = '';\n for($i = 0; $i < $length; $i++)\n {\n // Join $length array elements into a string\n $password .= $chars[$keys[$i]];\n }\n return $password;\n}", "title": "" }, { "docid": "5ab5a97f6c5f0437090f46bc199d2561", "score": "0.6413888", "text": "function generatePassword($psw)\n{\n\treturn password_hash($psw, PASSWORD_BCRYPT);\n}", "title": "" }, { "docid": "59c12a15efcbdea65088ef428d4efe79", "score": "0.63985056", "text": "function generate_password ($length) {\n\t$list = '123467890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()_-+=~:;|<>[]{}?\"\\'';\n\t$pass = '';\n\twhile (strlen ($pass) < $length) {\n\t\t$pass .= substr ($list, mt_rand (0, strlen ($list)), 1);\n\t}\n\treturn $pass;\n}", "title": "" }, { "docid": "b29b57a2a90c6e66c9f278de25f48408", "score": "0.63975656", "text": "function create_random_password() {\n\t$pass1 = array(\"little\",\"big\",\"loud\",\"quiet\",\"short\",\"tall\",\"tiny\",\"huge\",\"old\",\"young\",\"nice\",\"mean\",\"scary\",\"sneaky\",\"snooty\",\"pretty\",\"happy\",\"sneezy\",\"itchy\");\n\t$rnd1 = array_rand($pass1);\n\tsrand ((double) microtime( )*1000000);\n\t$pass2 = rand(1,9);\n\t$pass3 = array(\"cat\",\"dog\",\"chicken\",\"mouse\",\"deer\",\"snake\",\"fawn\",\"rat\",\"lion\",\"tiger\",\"chipmunk\",\"owl\",\"bear\",\"rooster\",\"whale\",\"fish\",\"puma\",\"panther\",\"horse\");\n\t$rnd3 = array_rand($pass3);\n\treturn $pass1[$rnd1] . $pass2 . $pass3[$rnd3];\n}", "title": "" }, { "docid": "245cf644799f6ab00619bfcb6aa5fbf5", "score": "0.63907874", "text": "private function createPasswordHash()\n\t{\n\t\t// prevent DoS attacks\n\t\tif(strlen($this->password) > 72)\n\t\t\tthrow new CException('Passwords must be 72 characters or less');\n\n\t\t$hasher = $this->getPasswordHasher();\n\t\t$hash = $hasher->HashPassword($this->password);\n\t\tif(strlen($hash) < 20)\n\t\t\tthrow new CException(\"Internal error in password hashing\");\n\t\t$this->password = $hash;\n\t}", "title": "" }, { "docid": "608c7ee23864d58a646404963509bd1d", "score": "0.63889414", "text": "function generatePassword()\n {\n srand((double)microtime()*1000000);\n $unique_str = substr(md5(rand(0,9999999)), 0, 8);\n return $unique_str; \n }", "title": "" }, { "docid": "21f4ae77ecec2420d9c276f2c76c4512", "score": "0.6378384", "text": "function password_make($value, array $options = [])\n {\n /**\n * @var $hashing \\Zilf\\Security\\Hashing\\PasswordHashing\n */\n $hashing = Zilf::$app->get('hashing');\n return $hashing->make($value, $options);\n }", "title": "" }, { "docid": "b70348adbca062b51704b0a8fd8a6f90", "score": "0.637534", "text": "function create_password($password, $salt)\n {\n return $this->crypt->HashPassword($password . $salt);\n }", "title": "" }, { "docid": "ddab36574432f86703f172dbffc0167e", "score": "0.637258", "text": "function resetPassword(){\n\n\t$passwordAleatorio = md5(uniqid(rand()));\n \n\t//toma los primeros 8 digitos\n\t$password = substr($passwordAleatorio, 0, 8);\n\n\treturn $password;\n}", "title": "" }, { "docid": "25b0e4f1c4086b8e5ce836e10799d3f7", "score": "0.6370073", "text": "function createRandomPassword($length = 5) {\n $chars = \"abcdefghijkmnopqrstuvwxyz023456789@#$\";\n srand((double)microtime()*1000000);\n $i = 0;\n $pass = '' ;\n while ($i < $length) {\n $num = rand() % 36;\n $tmp = substr($chars, $num, 1);\n $pass = $pass . $tmp;\n $i++;\n }\n return strtoupper($pass);\n}", "title": "" }, { "docid": "0ecbdddb0a455961e994a8c7f0a134d8", "score": "0.6361284", "text": "public function generate_password() { \n $str_password = '';\n $arr_values = array();\n $arr_might = array();\n // use Alpha Upper \n if( password_rules::$instance->arr_rules['mustUseUppercase'] ) {\n $arr_values[] = password_rules::$instance->arr_alpha_upper; \n }else{\n $arr_might[] = password_rules::$instance->arr_alpha_upper;\n } \n // use Alpha Lower \n if( password_rules::$instance->arr_rules['mustUseLowercase'] ) {\n $arr_values[] = password_rules::$instance->arr_alpha_lower ; \n }else{\n $arr_might[] = password_rules::$instance->arr_alpha_lower;\n } \n // use Numbers \n if( password_rules::$instance->arr_rules['mustUseNumber'] ) {\n $arr_values[] = password_rules::$instance->arr_number; \n } else{\n $arr_might[] = password_rules::$instance->arr_number;\n } \n // use Symbols \n if( password_rules::$instance->arr_rules['mustUseSymbol'] ) {\n $arr_values[] = password_rules::$instance->arr_symbol; \n } else{\n $arr_might[] = password_rules::$instance->arr_symbol;\n } \n \n // mix the in use rules array\n if(!empty($arr_values)){\n shuffle($arr_values); \n }\n if(!empty($arr_might)){\n shuffle($arr_might);\n $arr_values = $arr_values + $arr_might; \n }\n $loop = count($arr_values);\n $x=0;\n $length = rand(password_rules::$instance->arr_rules['minLength'], (password_rules::$instance->arr_rules['minLength']+2) );\n while ($length>0) {\n $length--; \n $x = $x>=$loop?0:$x;\n shuffle( $arr_values[$x] ); \n $str_password .= $arr_values[$x][0]; \n $x++;\n } \n // mix the Password \n return str_shuffle($str_password); \n }", "title": "" }, { "docid": "ee2e80f53637f42f84291c29a29c19e5", "score": "0.6351598", "text": "function password_make($value, array $options = [])\n {\n /**\n * @var $hashing \\Zilf\\Security\\Hashing\\PasswordHashing\n */\n $hashing = \\Zilf\\System\\Zilf::$container->get('hashing');\n return $hashing->make($value, $options);\n }", "title": "" }, { "docid": "dfcf08f70f6e6b0067fe1c9926c32321", "score": "0.63430065", "text": "function generatePassword() {\n\n $alpha = \"abcdefghikmnopqrstuvqxyz\";\n\n $alpha .= \"23456789\";\n\n $alpha .= \"ABCDEFGHKLMNOPQRSTUVWXYZ\";\n\n $alpha .= \"!$%&/()=\";\n\n srand((double) microtime() * 1000000);\n\n for ($index = 0; $index < 7; $index++) {\n $password .= substr($alpha, (rand() % (strlen($alpha))), 1);\n }\n return $password;\n}", "title": "" }, { "docid": "4e7cd5a13bab1c7b2e53666797972eb8", "score": "0.63325197", "text": "function password() {\r\n $oneOrZero = rand(0, 1);\r\n\r\n if($oneOrZero) {\r\n return 'test';\r\n } else {\r\n return 'guest';\r\n }\r\n}", "title": "" }, { "docid": "18f26bd350388910c1573d209f51e69b", "score": "0.6310811", "text": "function generate_password($length = 8) # {{{\n { \n // start with a blank password\n $password = \"\";\n // define possible characters (does not include l, number relatively likely)\n $possible = \"123456789abcdefghjkmnpqrstuvwxyz123456789\";\n // add random characters to $password until $length is reached\n for ($i = 0; $i < $length; $i++)\n { \n // pick a random character from the possible ones\n $char = substr($possible, mt_rand(0, strlen($possible)-1), 1);\n $password .= $char;\n }\n return $password;\n }", "title": "" }, { "docid": "0c30ca49c7e59ecfba39096260ff78e2", "score": "0.62877446", "text": "function new_password($number){\r\n\t\t$characters=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890\";\r\n\t\t$password=\"\";\r\n\t\t$aux=1;\r\n\t\twhile($aux<=$number){\r\n\t\t\t//here we extract a random character from var $characters\r\n\t\t\t$password .= substr($characters,rand(0,strlen($characters)),1); //runing php substr (which substracts a character) function to get $password. tutorial B\r\n\t\t\t$aux++;\r\n\t\t}\r\n\t\treturn $password;\r\n\t}", "title": "" }, { "docid": "09079ed89bc850d47eab29b3686015cd", "score": "0.62875754", "text": "function nuovapassword($cognome)\n{\n\t$pass = md5($cognome . rand() . \"ALDOIGJISGJSFSFJSOIGJF4543643tGgjaksjfl245436t3kl\" . date(\"Y-m-t H:i:s\"));\n\t$pass = substr($pass, 5, 10);\n\t\n\treturn $pass;\n}", "title": "" }, { "docid": "890995053df37b9c65c853afae778408", "score": "0.6269832", "text": "private function makePasswordFile()\n\t{\n\t\t// Get the path to the new secret key file.\n\t\t$filePath = $this->getPasswordFilePath();\n\n\t\t// I can't get the path to the file. Sorry.\n\t\tif (empty($filePath))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$phpFunc = new \\FOF30\\Utils\\Phpfunc();\n\t\t$randval = new Randval($phpFunc);\n\t\t$secretKey = $randval->getRandomPassword(64);\n\t\t$constantName = $this->getConstantName();\n\n\t\t$fileContent = \"<?\" . 'ph' . \"p\\n\\n\";\n\t\t$fileContent .= <<< END\ndefined('_JEXEC') or die;\n\n/**\n * This file is automatically generated. It contains a secret key used for encrypting data by the component. Please do\n * not remove, edit or manually replace this file. It will render your existing encrypted data unreadable forever.\n */\n \ndefine('$constantName', '$secretKey');\n\nEND;\n\n\t\t$this->container->filesystem->fileWrite($filePath, $fileContent);\n\t}", "title": "" }, { "docid": "023419ff7f6927a63fcfb6440142f837", "score": "0.62569135", "text": "function generate_password($maxlen=10) {\n\n\t$C = \"bcdfghjkmnpqrstvwxz\";\n\t$V = \"aeiouy\";\n\t$totalC = strlen($C)-1;\n\t$totalV = strlen($V)-1;\n\n\t$pw = \"\";\n\twhile (strlen($pw) < $maxlen) {\n\t\t$pw .= substr($C, rand(0, $totalC), 1)\n\t\t\t. substr($V, rand(0, $totalV), 1)\n\t\t\t. substr($V, rand(0, $totalV), 1);\n\t}\n\n\t$pw = substr($pw, 0, $maxlen);\n\t$pw[rand(0, strlen($pw) - 1)] = rand(2, 9);\n\treturn $pw;\n}", "title": "" }, { "docid": "96e3931cc719ae4ce9b1187f93f70afe", "score": "0.6252387", "text": "function generarSal(){ // Revidada\n\n\t\t//DECLARAMOS LAS VARIABLES CON LAS CUALES GENERAREMOS EL SAL PARA CODIFICAR EL PASSWORD\n\t\t$salAleatorio \t\t= \"\";\n\t\t$length \t\t\t= 64; //INDICAMOS QUE EL TAMAÑO ES DE 64 CHARS\n\t\t$indice \t\t\t= \"\";\n\t\t$charElegido \t\t= \"\";\n\t\t$listaCaracteres \t= \"1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\"; //LISTA DE CARACTERES PARA HACER EL SAL\n\t\t\n\t\tsettype($length \t\t, \"integer\");\n\t\tsettype($salAleatorio\t, \"string\");\n\t\tsettype($indice\t\t\t, \"integer\");\n\t\tsettype($charElegido\t, \"integer\");\n\t\t\n\t\t//GENERAMOS EL SAL CHAR A CHAR\n\t\tfor ($indice = 0; $indice <= $length; $indice++) {\n\t\t\t\n\t\t\t$charElegido = rand(0, strlen($listaCaracteres) - 1);\n\t\t\t$salAleatorio .= $listaCaracteres[$charElegido];\n\t\t\n\t\t}\n\t\t\n\t\t//RETORNAMOS EL SAL PARA GENERAR EL PASS, CADA USUARIO TIENE UN SAL DIFERENTE\t\t\n\t\treturn $salAleatorio;\n\n\t}", "title": "" }, { "docid": "b7e4d8c6330521e39abf260766c45262", "score": "0.62514436", "text": "public function generate_encrypted_password($str) { \t\t\n\t\t\t$new_pword = md5(SECRET.$str); \n\t\t\treturn substr($new_pword, strlen($str), 40); \n\t}", "title": "" }, { "docid": "dcb9ad44d3a6cfc97e5b22e7f68b07bd", "score": "0.62504995", "text": "function generatePassword($input)\n{\n\n return password_hash($input, passwordAlgo, options);\n}", "title": "" }, { "docid": "30f45fa74b8b4c2beece0f6f601f7f15", "score": "0.6246854", "text": "function randomPassword() {\n $alphabet = \"abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789,.()=*/@#-_{}\";\n $pass = array();\n $alphaLength = strlen($alphabet) - 1;\n for ($i = 0; $i < 8; $i++) {\n $n = rand(0, $alphaLength);\n $pass[] = $alphabet[$n];\n }\n return implode($pass);\n }", "title": "" }, { "docid": "1f605e997a65aed60474ade9b56eafc7", "score": "0.62294847", "text": "function ensurePassword(){\n if(!$this->pass){\n $this->setPassword($this->generatePassword());\n }\n }", "title": "" }, { "docid": "056097f062a17c66fddd0fda637066f1", "score": "0.6229042", "text": "function _generatePassword($length=9, $strength=4) {\n $vowels = 'aeiouy';\n $consonants = 'bcdfghjklmnpqrstvwxz';\n if ($strength & 1) {\n $consonants .= 'BCDFGHJKLMNPQRSTVWXZ';\n }\n if ($strength & 2) {\n $vowels .= \"AEIOUY\";\n }\n if ($strength & 4) {\n $consonants .= '23456789';\n }\n if ($strength & 8) {\n $consonants .= '@#$%';\n }\n\n $password = '';\n $alt = time() % 2;\n for ($i = 0; $i < $length; $i++) {\n if ($alt == 1) {\n $password .= $consonants[(rand() % strlen($consonants))];\n $alt = 0;\n } else {\n $password .= $vowels[(rand() % strlen($vowels))];\n $alt = 1;\n }\n }\n\n return $password;\n}", "title": "" }, { "docid": "9ea69f5d1ef3a92ae25afa47c62729d7", "score": "0.62275976", "text": "function generatePassword($length = 8)\n{\n $chars = 'zaqwsxcderfvbgtyhnmjuiklop0147852369_-.#$%@'.\n 'QAZWSXEDCRFVTGBYHNUJMIKLOP';\n $password = '';\n for ($i = 0; $i < $length; $i++) {\n $password .= $chars[(rand() % strlen($chars))];\n }\n return $password;\n}", "title": "" }, { "docid": "638dd0f0f39c2964b9babcc8b6f3002d", "score": "0.62270874", "text": "public function createPhp ($h = 'tototoo') {\n\t\t\n\t\t/*\n\t\t$d = $this->cryptPassword($h . 'ndrtQ9J1BF');\n\t\techo $d;*/\n//echo $aa = $this->cryptPassword('tototoo' . 'ndrtQ9J1BF');\n\n\t\t\n\n\t}", "title": "" }, { "docid": "9cdb50d62ef21a1a5a29f849af8e8cbd", "score": "0.62171245", "text": "function setRandomPasswordById($id, $length);", "title": "" }, { "docid": "0968252a74332cec885e2423b5258868", "score": "0.6211445", "text": "function generatePassword($length = 8) {\r\n $chars = '0123456789@#$!()*^{}[]abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\r\n $char_length = strlen($chars);\r\n srand((double) microtime() * 1000000);\r\n for ($i = 0; $i < $length; $i++) {\r\n $num = rand() % $char_length;\r\n $password .= $chars[$num];\r\n }\r\n return $password;\r\n }", "title": "" }, { "docid": "e3516fbb1d83956460381d9c40146f79", "score": "0.6210133", "text": "public function generatePassword($length = 10) {\n // Seed\n srand((double) microtime()*1000000);\n \n $vowels = array('a', 'e', 'i', 'o', 'u');\n $cons = array('b', 'c', 'd', 'g', 'h', 'j', 'k', 'l', 'm', 'n',\n 'p', 'r', 's', 't', 'u', 'v', 'w', 'tr',\n 'cr', 'br', 'fr', 'th', 'dr', 'ch', 'ph',\n 'wr', 'st', 'sp', 'sw', 'pr', 'sl', 'cl');\n \n $num_vowels = count($vowels);\n $num_cons = count($cons);\n \n $password = '';\n for ($i = 0; $i < $length; $i++){\n $password .= $cons[rand(0, $num_cons - 1)] . $vowels[rand(0, $num_vowels - 1)];\n }\n \n return substr($password, 0, $length);\n }", "title": "" }, { "docid": "1e2a75f65d85581a6af828cbcb435de6", "score": "0.6209727", "text": "function createRandomPassword($length) {\n $chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\n $password = substr(str_shuffle($chars), 0, $length);\n $this->pw_hash = sha1($password);\n\n return $password;\n }", "title": "" }, { "docid": "63a7bbd6f70829b7c731d2a3e55319bb", "score": "0.620728", "text": "public function testCreateRequiredPasswordRepeat() {\n\t\n\t\t$data = array(\n\t\t\t'username' => 'test',\n\t\t\t'first_name' => 'Firstname',\n\t\t\t'last_name' => 'Lastname',\n\t\t\t'mail' => 'test@example.org',\n\t\t\t'pass' => 'asdfasdf'\n\t\t);\n\t\t\n\t\t$this->BackendUser->create();\n\t\t$result = $this->BackendUser->save(array('BackendUser'=>$data));\n\t\t$this->assertEqual($result, false);\n\t\t$this->assertTrue(array_key_exists('pass2', $this->BackendUser->validationErrors));\n\t}", "title": "" }, { "docid": "a3fd8d0105da9630a01b293ea5213bec", "score": "0.6199975", "text": "function generateSecurePassword($length)\n {\n $alphaNumericPassword = PasswordGenerator::getAlphaNumericPassword($length);\n return $alphaNumericPassword;\n }", "title": "" }, { "docid": "87b94a99a9b3773f1e42c14cb9adbe33", "score": "0.61946785", "text": "public function createPassword($string_)\n {\n if ($string_){\n return Hash::make($string_);\n }\n return false;\n }", "title": "" }, { "docid": "0cb70b395632c11824bc80bd611281b1", "score": "0.6189723", "text": "function generate_password($length) {\n // irgendein Algorithmus, findet man per Suchmaschine.\n $range = array_merge(range('0','9'), range('a','z'), range('A','Z'), array('.','_','+'));\n mt_srand((double)microtime()*1000000);\n for ($i = 1; $i <= (count($range)*2); $i++) {\n $swap = mt_rand(0, count($range)-1);\n $tmp = $range[$swap];\n $range[$swap] = $range[0];\n $range[0] = $tmp;\n }\n\n return substr(implode('',$range),0,$length);\n }", "title": "" }, { "docid": "dab4909b2ac545dee4b68970f8f1a283", "score": "0.618966", "text": "private function setPassword() {\n\t\tif(isset($this->data[$this->alias]['newPassword'])) {\n\t\t\t$this->data[$this->alias]['password'] = $this->data[$this->alias]['newPassword'];\n\t\t}\n\t}", "title": "" }, { "docid": "588b245afcd19a39049dbc5bcf0fb0d8", "score": "0.6184475", "text": "function new_hash($pword = NULL){\n\t\t\tif($pword === NULL){\n\t\t\t\tthrow new Exception(\"UserMgmt tried to create a new hash, and the password is not set.\");\n\t\t\t}\n\t\t\t//$salt = mcrypt_create_iv(22, MCRYPT_DEV_URANDOM);\n\t\t\t$salt = random_bytes(22);\n\t\t\t$salt = base64_encode($salt);\n\t\t\t$salt = str_replace('+', '.', $salt);\n\t\t\t$pepper = md5(uniqid(rand(),true));\n\t\t\t$saltedHash = crypt($pword, '$2y$11$'.$salt.'$');\n\t\t\t$pepperedHash = substr($saltedHash,7) . $pepper;\n\t\t\treturn $pepperedHash;\n\t\t}", "title": "" }, { "docid": "db185347b5b9e41945f925fc6ba8ef2d", "score": "0.6184405", "text": "function _generate_random_password(){\n\t$characters = \"abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789\";\n\t$pass = array();\n\t$alpha_length = strlen($characters) - 1;\n\tfor ($i = 0; $i < 8; $i++){\n\t\t$n = rand(0, $alpha_length);\n\t\t$pass[] = $characters[$n];\n\t}\n\treturn implode($pass);\n}", "title": "" }, { "docid": "f440bf4b354cdf233bd7bced5ef394f7", "score": "0.6184199", "text": "public static function generatePassword($length=12) {\n $password = '';\n $salt = 'ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz123456789';\n srand((double) microtime() * 1000000);\n for ($i=0; $i < $length; $i++) {\n $num = rand() % 33;\n $tmp = substr($salt, $num, 1);\n $password .= $tmp;\n }\n return $password;\n }", "title": "" }, { "docid": "5e97c3ae7e654f85c5760645dda7e7f2", "score": "0.6182365", "text": "public static function getPassword();", "title": "" }, { "docid": "6c599639871e2089ca993a253f59582b", "score": "0.6176909", "text": "function randomPassword() {\n $alphabet = \"abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789\";\n $pass = array(); //remember to declare $pass as an array\n $alphaLength = strlen($alphabet) - 1; //put the length -1 in cache\n for ($i = 0; $i < 6; $i++) {\n $n = rand(0, $alphaLength);\n $pass[] = $alphabet[$n];\n }\n return implode($pass); //turn the array into a string\n }", "title": "" }, { "docid": "9b672d047938fc95ee3f97442849abc2", "score": "0.6174723", "text": "function generatePassword($length = 10) {\r\n // Seed\r\n srand((double) microtime()*1000000);\r\n\r\n $vowels = array('a', 'e', 'i', 'o', 'u');\r\n $cons = array('b', 'c', 'd', 'g', 'h', 'j', 'k', 'l', 'm', 'n',\r\n 'p', 'r', 's', 't', 'u', 'v', 'w', 'tr',\r\n 'cr', 'br', 'fr', 'th', 'dr', 'ch', 'ph',\r\n 'wr', 'st', 'sp', 'sw', 'pr', 'sl', 'cl');\r\n\r\n $num_vowels = count($vowels);\r\n $num_cons = count($cons);\r\n\r\n $password = '';\r\n for ($i = 0; $i < $length; $i++){\r\n $password .= $cons[rand(0, $num_cons - 1)] . $vowels[rand(0, $num_vowels - 1)];\r\n }\r\n\r\n return substr($password, 0, $length);\r\n}", "title": "" }, { "docid": "6b1f5afb798d785576ab6402e5f34983", "score": "0.61727935", "text": "function GenPassword($size = 8)\n{\n\t$possible = \"123456789abcdfghjkmnpqrstvwxyzACDEFGHJKLMNPQRSTVWXYZ\";\n\t$code = '';\n\n\tfor ($i = 0; $i < $size; $i++) {\n\t\t$code .= substr($possible, mt_rand(0, strlen($possible) - 1), 1);\n\t}\n\treturn $code;\n}", "title": "" }, { "docid": "10f6f932174979172d539f650820333c", "score": "0.6172079", "text": "function generatePassword($password)\n{\n $password = hash('sha256', hash('sha256', $password)); // . \"brightisagoodguy1234567890\" . strtolower($password));\n \n return $password;\n \n}", "title": "" } ]
b9b4df927df7a17cf431466a5a9ed826
Returns the fully qualified name of this class.
[ { "docid": "b86eaf4f8de400601154067466a7d203", "score": "0.72219074", "text": "public static function className()\n {\n return get_called_class();\n }", "title": "" } ]
[ { "docid": "621c383d736a32ee856f8e3afab6fd23", "score": "0.8252124", "text": "public function getClassName()\n {\n return $this->namespace . '\\\\' . $this->name;\n }", "title": "" }, { "docid": "76ce6e81d7dfbc91e0f3a03def0e0144", "score": "0.81564385", "text": "public function getClassName()\n\t{\n\t\treturn $this->get('ClassRef FullName');\n\t}", "title": "" }, { "docid": "d05e04206a92f50b41c91de9cfbfe502", "score": "0.8105374", "text": "public function ClassName()\n {\n return str_replace('\\\\', '_', get_class($this));\n }", "title": "" }, { "docid": "5703df888c576c8896eace34d4fe3a52", "score": "0.80764455", "text": "final public function getName(): string{\n\t\t\t# Return the name of the class\n\t\t\t# This is some hacky way...\n\t\t\treturn substr(get_class($this), strripos(get_class($this), '\\\\') + 1);\n\t\t}", "title": "" }, { "docid": "0958b7e620de31e001fec5df1e6050a9", "score": "0.7982014", "text": "final public function getName()\r\n {\r\n if (null !== $this->name) {\r\n return $this->name;\r\n }\r\n\r\n $name = get_class($this);\r\n $pos = strrpos($name, '\\\\');\r\n\r\n return $this->name = false === $pos ? $name : substr($name, $pos + 1);\r\n }", "title": "" }, { "docid": "fb97fd080e03908842142ba3d3d07006", "score": "0.7980512", "text": "protected function getClassName()\n {\n return class_basename($this->namespace);\n }", "title": "" }, { "docid": "ba5d17c6a4204850125b2f2c09348d0d", "score": "0.79594135", "text": "public function getClassName()\n {\n $full_class_name = $this->getClass();\n $pos = strrpos($full_class_name, '\\\\');\n\n return substr($full_class_name, $pos + 1);\n }", "title": "" }, { "docid": "4ba30ba3eec73d8358538d64bd13e0ab", "score": "0.78874785", "text": "protected function getClassName(): string\n {\n return class_basename($this);\n }", "title": "" }, { "docid": "ce9d3f3f12f67cf7620f214d980a2e45", "score": "0.7854339", "text": "public function getClassName()\n {\n return $this->__get(\"class_name\");\n }", "title": "" }, { "docid": "b3444f464203ee0d7beee050b7b6a997", "score": "0.7819241", "text": "public function getClassName()\n {\n return $this->get(self::CLASS_NAME);\n }", "title": "" }, { "docid": "54f343c1844cbc524fc98a9453875429", "score": "0.7814041", "text": "public function getClassName()\n {\n return '\\\\'. get_class($this);\n }", "title": "" }, { "docid": "ccd2a56b05cf16cda769235dbe2ad3d8", "score": "0.7775326", "text": "public function getName()\n\t{\n\t\treturn substr(__CLASS__, 7);\n\t}", "title": "" }, { "docid": "ccd2a56b05cf16cda769235dbe2ad3d8", "score": "0.7775326", "text": "public function getName()\n\t{\n\t\treturn substr(__CLASS__, 7);\n\t}", "title": "" }, { "docid": "ccd2a56b05cf16cda769235dbe2ad3d8", "score": "0.7775326", "text": "public function getName()\n\t{\n\t\treturn substr(__CLASS__, 7);\n\t}", "title": "" }, { "docid": "3895ab9b64d696f469dc735919a598e9", "score": "0.775533", "text": "private function GetClassName() : string\n {\n $namespace = explode('\\\\', get_class($this->className));\n return end($namespace);\n }", "title": "" }, { "docid": "d1eea2544b6ec799c900e2d1ae3ade82", "score": "0.7755179", "text": "public function getName()\n\t{\n\t\treturn __CLASS__;\n\t}", "title": "" }, { "docid": "962b47d499c26a2ba826bee8911966a9", "score": "0.77516437", "text": "public function fullyQualifiedClassName() : string;", "title": "" }, { "docid": "ea96e7453aaa35be13879efdef4d6c40", "score": "0.7746785", "text": "public function getName()\n {\n return __CLASS__;\n }", "title": "" }, { "docid": "d055c05b895f852813792cb4e55524c7", "score": "0.7736091", "text": "protected function getClass(): string\n {\n $name = $this->qualifyClass($this->getNameInput());\n $namespace = $this->getNamespace($name);\n\n return \\str_replace($namespace.'\\\\', '', $name);\n }", "title": "" }, { "docid": "08bfd1cbe8c2e656c32423fd85d0227e", "score": "0.77285266", "text": "public function getClass()\n {\n $str = get_class($this);\n $name = substr(strrchr($str,'\\\\'),1);\n return $name;\n }", "title": "" }, { "docid": "27c2fa395648f0b76d0dcb41d8416f79", "score": "0.76895416", "text": "public function getName()\n {\n return $this->class;\n }", "title": "" }, { "docid": "71f1d2b0116ea2175a33287f51388cd5", "score": "0.7687081", "text": "public function getName()\n\t{\n\t\t$className = get_class($this);\n\t\tif (preg_match(\"/([^\\\\\\]+)_[^_]+$/\", $className, $m))\n\t\t{\n\t\t\treturn $m[1];\n\t\t}\n\t\treturn $className;\n\t}", "title": "" }, { "docid": "bf5601605dce8265b28870f871419f04", "score": "0.7658231", "text": "public function getClassName() {\n\t\t$path = $this->getClass();\n\t\treturn Path::basename($path);\n\t}", "title": "" }, { "docid": "e3ab3f7f91b6c7e1e42eebca89fe5b2b", "score": "0.7641925", "text": "public function getClassName() : string {\n try {\n $reflect = new ReflectionClass($this);\n return strtolower ($reflect->getShortName());\n } catch (\\ReflectionException $e) {\n echo ($e);\n }\n return \"\";\n }", "title": "" }, { "docid": "9655cfa1e1db3fb165cab725fcaa8ae7", "score": "0.76410806", "text": "public function getClassName()\n {\n return $this->class_name;\n }", "title": "" }, { "docid": "9655cfa1e1db3fb165cab725fcaa8ae7", "score": "0.76410806", "text": "public function getClassName()\n {\n return $this->class_name;\n }", "title": "" }, { "docid": "e75c7877403517ae532e6458e958c9b4", "score": "0.76304245", "text": "public final function getName()\n {\n return get_class($this);\n }", "title": "" }, { "docid": "f04e19a246c0e1ca9613705499ed35d5", "score": "0.7628381", "text": "public function getFullName()\n {\n return ltrim($this->namespace . '\\\\' . $this->name, '\\\\');\n }", "title": "" }, { "docid": "eda7626d2cb83d476c2b04fa383d1288", "score": "0.7604919", "text": "public function getName()\n\t{\n\t\t$class = get_called_class();\n\t\t$slashPos = strrpos($class, \"\\\\\");\n\t\t$className = trim(substr($class, $slashPos), \"\\\\\");\n\t\tif (Strings::endsWith($className, self::NAME_SUFFIX)) {\n\t\t\t$className = substr($className, 0, strlen($className) - strlen(self::NAME_SUFFIX));\n\t\t}\n\t\treturn lcfirst($className);\n\t}", "title": "" }, { "docid": "8b91bfcd738dec3b1cc228297e4f976d", "score": "0.76040524", "text": "public function getName()\n {\n $reflection = new \\ReflectionClass($this);\n return $reflection->getShortName();\n }", "title": "" }, { "docid": "9b8b02cd0c98e33fc039d3f9e8ebbf08", "score": "0.7602667", "text": "public function get_name() {\n\t\t\treturn get_class($this);\n\t\t}", "title": "" }, { "docid": "e7058a8780b0b5652a834f7efb6d0607", "score": "0.7592604", "text": "public function getName(): string\n {\n return (new ReflectionClass($this))->getShortName();\n }", "title": "" }, { "docid": "be8ed6f3670dd9c84fcb8e37f968a52b", "score": "0.7581747", "text": "public function class_name() {\n return strtolower(get_class($this));\n }", "title": "" }, { "docid": "4f7f73019ac8ff645f57285c176bb59d", "score": "0.75753754", "text": "public static function get_class_name() {\n\t\treturn self::$class_name;\n\t}", "title": "" }, { "docid": "f1366bbf1a2318eff42bf77c73ce9f01", "score": "0.757065", "text": "public function getClassname() {\n return __CLASS__;\n }", "title": "" }, { "docid": "ebda83c4944e86d3851f692426e42412", "score": "0.75703233", "text": "protected function getClassName() {\n $class_name = get_class($this);\n return $class_name;\n }", "title": "" }, { "docid": "884e27c3927906b317ce10124410a57b", "score": "0.7569807", "text": "public function get_class_name() {\n return ucfirst($this->className);\n }", "title": "" }, { "docid": "dcfe115adfdaf93f6ff2621b7ce98fcd", "score": "0.7568766", "text": "public static function className()\n\t{\n\t\treturn self::class;\n\t}", "title": "" }, { "docid": "5db04ca9ba5ad87ba4f32c170b97753c", "score": "0.756615", "text": "public function getClassName()\n {\n return $this->name;\n }", "title": "" }, { "docid": "6f75eea0e988d0ffb15bf221995e3f78", "score": "0.75628346", "text": "public static function get_name()\n {\n return static::class_name(false, false);\n }", "title": "" }, { "docid": "75c5646f92ded7b297d29b52c9e836c8", "score": "0.75577414", "text": "public function getClass():string\n {\n return $this->name;\n }", "title": "" }, { "docid": "c2efae9eab63e1dab4ba2035ac5c70a9", "score": "0.75374407", "text": "public function getClass() {\n\t\t$name = $this->getClassInputName();\n\t\t$name = $this->getClassPrefix() . $name;\n\n\t\tif ($this->namespace !== null) {\n\t\t\t$name = rtrim($this->namespace, '/\\\\') . '\\\\' . $name;\n\t\t}\n\n\t\t// The ! character is a secret way to disable suffixes\n\t\tif (ends_with($name, '!')) {\n\t\t\t$name = substr($name, 0, -1);\n\t\t\t$suffix = null;\n\t\t}\n\n\t\tif (isset($this->classNameSuffix)) {\n\t\t\t$suffix = str_replace('\\\\', '/', $this->classNameSuffix);\n\n\t\t\tif (!ends_with($name, $suffix, true)) {\n\t\t\t\t$name .= $suffix;\n\t\t\t}\n\t\t}\n\n\t\treturn str_replace('/', '\\\\', $name);\n\t}", "title": "" }, { "docid": "edab279f89c43ca76d93301873c6dc5b", "score": "0.7530163", "text": "public function __toString()\n {\n $reflect = new \\ReflectionClass($this);\n\n return $reflect->getShortName();\n }", "title": "" }, { "docid": "ff55bbc5bd2ab5271c8b58995eb1b62f", "score": "0.752334", "text": "public static function className()\n {\n $className = get_called_class();\n // Remove all namespaces in class name\n while (strpos($className, '\\\\'))\n {\n $className = trim(substr($className, strpos($className, '\\\\') + 1));\n }\n return $className;\n }", "title": "" }, { "docid": "d5c45176adb6b8cb666eb172cad63218", "score": "0.7522954", "text": "public function getClassShortName() {\n return last(explode(\"\\\\\",$this->getClass()));\n }", "title": "" }, { "docid": "fecc00c3d327ba25026b0032f05b8efb", "score": "0.74956924", "text": "public function getClassname();", "title": "" }, { "docid": "bc642b73e2cb91c529e50af509dddb7c", "score": "0.7484837", "text": "public static function getClassName()\n {\n return static::THIS_CLASS_NAME;\n }", "title": "" }, { "docid": "eeb8d7e0f5c18987b85f31cee4e3da39", "score": "0.7480476", "text": "public function __toString()\n {\n $reClass = new \\ReflectionClass($this);\n\n return $reClass->getShortName();\n }", "title": "" }, { "docid": "7d41d260e85768b81222fded991a3e20", "score": "0.74711406", "text": "protected function class_basename()\n {\n return lcfirst(basename(str_replace('\\\\', '/', get_class($this))));\n }", "title": "" }, { "docid": "9eea7818850b8fd4e061a37710003af7", "score": "0.7456783", "text": "public function getClassName()\n\t{\n\t\t$namespace = preg_quote( $this->_reflection_class->getNamespaceName(), '#' );\n\t\t$class_name = $this->_reflection_class->getName();\n\n\t\treturn preg_replace( \"#^{$namespace}\\\\\\#\", '', $class_name );\n\t}", "title": "" }, { "docid": "4c539d59a40c25d8691850b25593f242", "score": "0.7455327", "text": "protected function name()\n {\n return Str::lower(str_replace('\\\\', '_', get_class($this)));\n }", "title": "" }, { "docid": "5e547a28699c93cfba246dd55712dfe4", "score": "0.74376976", "text": "public static function getClassName()\n\t{\n\t\treturn self::CLASS_NAME;\n\t}", "title": "" }, { "docid": "e0ad8e7672b4dbfb916206538694ae2b", "score": "0.74246985", "text": "public function getClassName(): string\n\t{\n\t\treturn get_class($this);\n\t}", "title": "" }, { "docid": "ef9c96c37233304dbc7f831dd11623d1", "score": "0.7414849", "text": "public static function class_name()\n {\n return get_called_class();\n }", "title": "" }, { "docid": "78881a6c19204ae9a4d431f09ddc4004", "score": "0.739427", "text": "public function fullClassName();", "title": "" }, { "docid": "de4c93afc00f3db7bdf12e623a2d4f45", "score": "0.739356", "text": "public function getName()\n {\n return get_class($this);\n }", "title": "" }, { "docid": "a113ab5be563df3b3a6c4c176570bf98", "score": "0.7390734", "text": "public static function getClassName(): string {\n return self::$className;\n }", "title": "" }, { "docid": "4eb9e3ea38a41ce7622ad4c9b5775c7c", "score": "0.7388668", "text": "public function getClassName()\n {\n if (is_null($this->_className)) {\n $this->_className = get_called_class();\n }\n return $this->_className;\n }", "title": "" }, { "docid": "dd24378e4262257d290cbc8f7eda83b7", "score": "0.7387496", "text": "public function getShortClassName()\n {\n $className = get_class($this);\n $slashPos = strrpos($className, '\\\\');\n\n if ($slashPos) {\n $className = substr($className, $slashPos + 1);\n }\n\n return $className;\n }", "title": "" }, { "docid": "fb7d6be4779cdd3554a4bcb840aae73a", "score": "0.737462", "text": "protected static function getClassName() {\n return strtolower(preg_replace('#([a-zA-Z]+\\\\\\\\)+([a-zA-Z]+)#i', '$2', get_called_class()));\n }", "title": "" }, { "docid": "c51a4858b00204c0730a971560fc2721", "score": "0.73682606", "text": "public static function getClassName()\n {\n return static::CLASS_NAME;\n }", "title": "" }, { "docid": "e16c6cd1fe0f03978c9d94fe995a4f17", "score": "0.73655504", "text": "public function className(): string\n {\n return $this->className;\n }", "title": "" }, { "docid": "830a1cbc1bb1b4571373115af6685634", "score": "0.7354453", "text": "protected static function getClassName() {\r\n\t\t\t// $classname = get_called_class();\r\n\t\t\t$classname = get_class($this);\r\n\t\t\treturn $classname;\r\n\t\t}", "title": "" }, { "docid": "9e6cf5a0d77f191d01a10711faf5c735", "score": "0.73497504", "text": "public function getName()\n\t{\n\t\treturn get_class($this);\n\t}", "title": "" }, { "docid": "a7ce4f5f3958bc13a7634715caf458ba", "score": "0.7338603", "text": "public function getClassName()\n {\n return get_called_class();\n }", "title": "" }, { "docid": "452036e5d44c1f0f271a59392e721f23", "score": "0.7335882", "text": "public function getClassName() { return __CLASS__; }", "title": "" }, { "docid": "f06efc32085d6ee11954771b62d13bab", "score": "0.7310353", "text": "function getName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.7307949", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.7307949", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.7307949", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.7307949", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.7307949", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.7307949", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.7307949", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.7307949", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.7307949", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.7307949", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.7307949", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.7307949", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "e5ccaecbf49dfc3f1cba6fb7ef9d360b", "score": "0.7307949", "text": "public function getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "28d6c823be8d283081294ca5640aefd4", "score": "0.73055553", "text": "protected static function _name() {\n\t\treturn basename(str_replace('\\\\', '/', get_called_class()));\n\t}", "title": "" }, { "docid": "8fa0128bb6d40b065b045b0c402be342", "score": "0.7304046", "text": "protected static function className()\n {\n $name = (new \\ReflectionClass(static::class))->getShortName();\n return strtolower($name);\n }", "title": "" }, { "docid": "33eee84343cb2d1ad96013d7953bde03", "score": "0.73031723", "text": "public function getClassName()\n\t{\n\t\t\n\t\techo __CLASS__;\n\t}", "title": "" }, { "docid": "68aae96388710c2981769caca96675fc", "score": "0.730302", "text": "public static function get_class_name() {\n\t\treturn __CLASS__;\n\t}", "title": "" }, { "docid": "68aae96388710c2981769caca96675fc", "score": "0.730302", "text": "public static function get_class_name() {\n\t\treturn __CLASS__;\n\t}", "title": "" }, { "docid": "49df58ef0b6394657411dc8662f77ba1", "score": "0.73027897", "text": "public function getClassName() {\n return $this->className;\n }", "title": "" }, { "docid": "49df58ef0b6394657411dc8662f77ba1", "score": "0.73027897", "text": "public function getClassName() {\n return $this->className;\n }", "title": "" }, { "docid": "d62c7b58dda81deeb0eb749ca2e5a9cd", "score": "0.7301413", "text": "public function getFullyQualifiedName()\n {\n $name = $this->getName();\n\n if (null !== ($belongsTo = $this->getBelongsTo())) {\n $name = $belongsTo . '[' . $name . ']';\n }\n\n if ($this->isArray()) {\n $name .= '[]';\n }\n\n return $name;\n }", "title": "" }, { "docid": "ee965659b72be63433f61cf99e08d114", "score": "0.7299039", "text": "public function formName()\n {\n $reflector = new \\ReflectionClass($this);\n return $reflector->getShortName();\n }", "title": "" }, { "docid": "f091644d78a62f98dcd8fa57b0918faf", "score": "0.72816396", "text": "public function display_name() {\n return get_class($this);\n }", "title": "" }, { "docid": "861244f8974ee223c872ffc17bb0ed7b", "score": "0.7275464", "text": "public function getClassName()\n {\n // TODO: Implement getClassName() method.\n }", "title": "" }, { "docid": "2129b8c2068b106e5cfefacff82db807", "score": "0.72720563", "text": "public function __getClassName()\n {\n return $this->className;\n }", "title": "" }, { "docid": "22646fd24a9767f0a7e584d6e6541489", "score": "0.7266499", "text": "public static function className() {\n return get_called_class();\n }", "title": "" }, { "docid": "0a9ceaf296d567a158d1f42e1c0908a0", "score": "0.7259915", "text": "public function getClassName() {\n\t\t$this->checkDisposed();\n\t\t\t\n\t\tif ($this->_className === null)\n\t\t\t$this->load();\n\t\treturn $this->_className;\t\n\t}", "title": "" }, { "docid": "1ac2d8c7d30d0776e927b6104d26f36a", "score": "0.725684", "text": "public function getName(): string\n {\n return self::class;\n }", "title": "" }, { "docid": "6ddde56c68f88f3bb5c46a6b6ae2657f", "score": "0.7242391", "text": "public function name()\n {\n return basename(\n str_replace('\\\\', '/', static::class)\n );\n }", "title": "" }, { "docid": "ba192ddb427286ee71bd0b52e0aa60e9", "score": "0.7240941", "text": "public static function className()\n\t{\n\t\treturn get_called_class();\n\t}", "title": "" }, { "docid": "ba192ddb427286ee71bd0b52e0aa60e9", "score": "0.7240941", "text": "public static function className()\n\t{\n\t\treturn get_called_class();\n\t}", "title": "" }, { "docid": "505f32e3effe71b7361726664271979e", "score": "0.72231466", "text": "public function getUnprefixedClassname()\n {\n return $this->getBuildProperty('basePrefix') . $this->getStubNodePeerBuilder()->getUnprefixedClassname();\n }", "title": "" } ]
ace3793792cfcdfe4e1428b691498f10
Get the limit from the request. It also gets value from the POST request.
[ { "docid": "29f48f90325f5394ec71ffad7894d525", "score": "0.7305367", "text": "private function getLimit(Request $request): int\n {\n $limit = $request->query->getInt('limit', 0);\n\n if ($request->isMethod(Request::METHOD_POST)) {\n $limit = $request->request->getInt('limit', $limit);\n }\n\n return $limit <= 0 ? self::DEFAULT_LIMIT : $limit;\n }", "title": "" } ]
[ { "docid": "17c3b88a512f7526b711d228023fe52d", "score": "0.80250365", "text": "private function getLimit(ConduitAPIRequest $request) {\n return $request->getValue('limit', 4096);\n }", "title": "" }, { "docid": "1032e4d9666453e7f47e82e1da882784", "score": "0.75962806", "text": "private function getLimit(Request $request) : int\n {\n $limit = (int)$request->get('limit', 50);\n\n if (!($limit >= 1 && $limit <= 500))\n {\n abort(400, 'Malformed limit parameter! Allowed limit values are from 1 to 500.');\n }\n\n return $limit;\n }", "title": "" }, { "docid": "f6f8d45b389c5c7c453f6003683c3614", "score": "0.7469983", "text": "function GetLimit() {\r\n\t\treturn $this->limit;\r\n\t}", "title": "" }, { "docid": "d507ed0d4b430e37b857a6decdc86e6d", "score": "0.74350834", "text": "function getLimit () {\n\t\t\n\t\t\treturn ( $this -> limit );\n\t\t\n\t\t}", "title": "" }, { "docid": "c6d9b34c3ecbca2bc6dde4adc7e14651", "score": "0.73362195", "text": "public function getLimit() {\n return $this->limit;\n }", "title": "" }, { "docid": "f8319e0ea66f04299801fa890d39f97b", "score": "0.7329378", "text": "public function get_limit();", "title": "" }, { "docid": "37df1657723864494418015618893c7d", "score": "0.73240435", "text": "private function get_limit()\n {\n }", "title": "" }, { "docid": "d167ac80e5304007eed11475e75f7950", "score": "0.7318749", "text": "public function limit() {\n return $this->limit;\n }", "title": "" }, { "docid": "f6ad4b6204fae8723dd407d1a426b4ce", "score": "0.7317759", "text": "public function getLimit()\n {\n return $this->limit;\n }", "title": "" }, { "docid": "f6ad4b6204fae8723dd407d1a426b4ce", "score": "0.7317759", "text": "public function getLimit()\n {\n return $this->limit;\n }", "title": "" }, { "docid": "f6ad4b6204fae8723dd407d1a426b4ce", "score": "0.7317759", "text": "public function getLimit()\n {\n return $this->limit;\n }", "title": "" }, { "docid": "f6ad4b6204fae8723dd407d1a426b4ce", "score": "0.7317759", "text": "public function getLimit()\n {\n return $this->limit;\n }", "title": "" }, { "docid": "f6ad4b6204fae8723dd407d1a426b4ce", "score": "0.7317759", "text": "public function getLimit()\n {\n return $this->limit;\n }", "title": "" }, { "docid": "f6ad4b6204fae8723dd407d1a426b4ce", "score": "0.7317759", "text": "public function getLimit()\n {\n return $this->limit;\n }", "title": "" }, { "docid": "f6ad4b6204fae8723dd407d1a426b4ce", "score": "0.7317759", "text": "public function getLimit()\n {\n return $this->limit;\n }", "title": "" }, { "docid": "f6ad4b6204fae8723dd407d1a426b4ce", "score": "0.7317759", "text": "public function getLimit()\n {\n return $this->limit;\n }", "title": "" }, { "docid": "f6ad4b6204fae8723dd407d1a426b4ce", "score": "0.7317759", "text": "public function getLimit()\n {\n return $this->limit;\n }", "title": "" }, { "docid": "f6ad4b6204fae8723dd407d1a426b4ce", "score": "0.7317759", "text": "public function getLimit()\n {\n return $this->limit;\n }", "title": "" }, { "docid": "f6ad4b6204fae8723dd407d1a426b4ce", "score": "0.7317759", "text": "public function getLimit()\n {\n return $this->limit;\n }", "title": "" }, { "docid": "4e606ec5afc5d90a686e4dec61bd21dd", "score": "0.7304856", "text": "public function getLimit() {\n return $this->limit;\n }", "title": "" }, { "docid": "4e606ec5afc5d90a686e4dec61bd21dd", "score": "0.7304856", "text": "public function getLimit() {\n return $this->limit;\n }", "title": "" }, { "docid": "4e606ec5afc5d90a686e4dec61bd21dd", "score": "0.7304856", "text": "public function getLimit() {\n return $this->limit;\n }", "title": "" }, { "docid": "a8643b2adf971a5974e2afb6097eae01", "score": "0.73043776", "text": "public function getLimit() {\n\t\treturn $this->limit;\n\t}", "title": "" }, { "docid": "a8643b2adf971a5974e2afb6097eae01", "score": "0.73043776", "text": "public function getLimit() {\n\t\treturn $this->limit;\n\t}", "title": "" }, { "docid": "785b1007f8a25119215db4a09d77247b", "score": "0.7302165", "text": "public function getLimit() {\r\n return $this->limit;\r\n }", "title": "" }, { "docid": "6cad3d44153d91445e3ade82de88dea0", "score": "0.730182", "text": "public final function getLimit() {\n\t\treturn $this->limit;\n\t}", "title": "" }, { "docid": "273a6af786474febed43bf6359e18e6e", "score": "0.727076", "text": "public function get_limit(){\n return $this->limit;\n }", "title": "" }, { "docid": "81e8ecbd8d8ff548dbffe0aa1dfbf4be", "score": "0.7267678", "text": "public function getLimit(){\n\n return $this->limit;\n\n }", "title": "" }, { "docid": "3af90a05e4d04412176230b3d1da1a61", "score": "0.7241629", "text": "protected function calculateLimit()\n {\n $limit = (int) $this->request->input('limit', $this->defaultLimit);\n\n return ($this->maximumLimit && $this->maximumLimit < $limit) ? $this->maximumLimit : $limit;\n }", "title": "" }, { "docid": "9764504b86dea885dcb7a66577a80bf3", "score": "0.72195417", "text": "public function getLimit()\n\t{\n\t\treturn $this->limit;\n\t}", "title": "" }, { "docid": "09b6527c7b4f8d9817864e13b3244983", "score": "0.7204823", "text": "public function getLimit()\n {\n return $this->_limit;\n }", "title": "" }, { "docid": "27f171dd16f4c11a63cfa216e2640efc", "score": "0.71012163", "text": "public function get_limit()\n {\n }", "title": "" }, { "docid": "27f171dd16f4c11a63cfa216e2640efc", "score": "0.7100952", "text": "public function get_limit()\n {\n }", "title": "" }, { "docid": "27f171dd16f4c11a63cfa216e2640efc", "score": "0.7100952", "text": "public function get_limit()\n {\n }", "title": "" }, { "docid": "27f171dd16f4c11a63cfa216e2640efc", "score": "0.7100952", "text": "public function get_limit()\n {\n }", "title": "" }, { "docid": "27f171dd16f4c11a63cfa216e2640efc", "score": "0.7100952", "text": "public function get_limit()\n {\n }", "title": "" }, { "docid": "27f171dd16f4c11a63cfa216e2640efc", "score": "0.7100952", "text": "public function get_limit()\n {\n }", "title": "" }, { "docid": "27f171dd16f4c11a63cfa216e2640efc", "score": "0.7100952", "text": "public function get_limit()\n {\n }", "title": "" }, { "docid": "27f171dd16f4c11a63cfa216e2640efc", "score": "0.7100952", "text": "public function get_limit()\n {\n }", "title": "" }, { "docid": "27f171dd16f4c11a63cfa216e2640efc", "score": "0.7100952", "text": "public function get_limit()\n {\n }", "title": "" }, { "docid": "fae9d0bba3045bf852f1a9cf561bec8e", "score": "0.70791733", "text": "public function getLimitNumber();", "title": "" }, { "docid": "b7a8400b362bd3471b712539c2e266b7", "score": "0.7054663", "text": "public function getLimit();", "title": "" }, { "docid": "b7a8400b362bd3471b712539c2e266b7", "score": "0.7054663", "text": "public function getLimit();", "title": "" }, { "docid": "b7a8400b362bd3471b712539c2e266b7", "score": "0.7054663", "text": "public function getLimit();", "title": "" }, { "docid": "b7a8400b362bd3471b712539c2e266b7", "score": "0.7054663", "text": "public function getLimit();", "title": "" }, { "docid": "b7ac62273ec9daaa92ccd9411bfa0005", "score": "0.70464253", "text": "protected function getLimit() : int\n {\n return (int)$this->getData('limit');\n }", "title": "" }, { "docid": "4dbc7c01f55ea5fb31cddd7f9cadaeeb", "score": "0.6991184", "text": "protected function getLimit()\n {\n return $this->bo->getLimit();\n }", "title": "" }, { "docid": "1e4145a649c34ebea1c8861893d393c1", "score": "0.6978413", "text": "public static function resolveCurrentLimit(Request $request)\n {\n static $limit = null;\n\n if ($limit === null) {\n $limit = $request->input('limit', null);\n }\n\n return $limit;\n }", "title": "" }, { "docid": "41b54d48a9f756bd4d8d6424fdbf5067", "score": "0.69499785", "text": "public function getLimit(): int\n {\n return $this->limit;\n }", "title": "" }, { "docid": "41b54d48a9f756bd4d8d6424fdbf5067", "score": "0.69499785", "text": "public function getLimit(): int\n {\n return $this->limit;\n }", "title": "" }, { "docid": "f5be29c5260ca5fd7fbf6c72303e3d27", "score": "0.692343", "text": "public function getLimit(): int {\n\t\treturn $this->limit;\n\t}", "title": "" }, { "docid": "2c9c9519c3ff93095fac6b33ea9be32a", "score": "0.6864708", "text": "public function getLimit() : int;", "title": "" }, { "docid": "ed221264d787a733547574a0c7eba584", "score": "0.68423104", "text": "protected static function limit ( $request )\n {\n $limit = '';\n if ( isset($request['start']) && $request['length'] != -1 )\n {\n $limit = \" LIMIT \".intval($request['start']).\", \".intval($request['length']);\n }\n return $limit;\n }", "title": "" }, { "docid": "92e179c1b22e72f1448eb3c0b8e7120c", "score": "0.6832889", "text": "public function getCountLimit() { return $this->data['countLimit']; }", "title": "" }, { "docid": "e9b3602ec828eb96c5e2cefca9565d93", "score": "0.6824958", "text": "public function get_limit()\n\t{\n\t\treturn static::$limit['attempt'];\n\t}", "title": "" }, { "docid": "d17dbb04e8e8ac833ec52359af5cb2e1", "score": "0.67817384", "text": "public function getLimitParameter()\n {\n return 'limit';\n }", "title": "" }, { "docid": "876c504cf6bc43c69f70c706370abfa6", "score": "0.67667246", "text": "public function getLimit5(Request $request);", "title": "" }, { "docid": "1cc2a8c917f86e24848b55f9504296a5", "score": "0.6749055", "text": "public function getLimit(): int;", "title": "" }, { "docid": "1cc2a8c917f86e24848b55f9504296a5", "score": "0.6749055", "text": "public function getLimit(): int;", "title": "" }, { "docid": "1cc2a8c917f86e24848b55f9504296a5", "score": "0.6749055", "text": "public function getLimit(): int;", "title": "" }, { "docid": "3f71f7451a8d463cd0cef1b7c3b5ad31", "score": "0.67469496", "text": "protected function extactLimits()\n {\n $this->limit = $this->request->get('length', 0);\n $this->offset = $this->request->get('start', 0);\n }", "title": "" }, { "docid": "2022ffb2dec3ba103ad01ad7c0baa01a", "score": "0.66879755", "text": "public function getLimit() {\n return variable_get('feeds_process_limit', FEEDS_PROCESS_LIMIT);\n }", "title": "" }, { "docid": "db3e0f44fda1e871ef41a3a74ab111f5", "score": "0.665044", "text": "function getLimit() \r\n {\r\n return $this->paginate[$this->id]['item_limit'];\r\n }", "title": "" }, { "docid": "7b7ba08f414a6bfd486cc3d0d8e6f366", "score": "0.66308767", "text": "public function getLimit()\n {\n if (!$this->getData('limit')) {\n $limit = ($this->getConfig('limit')) ? $this->getConfig('limit') : self::DEFAULT_COLLECTION_LIMIT;\n $this->setData('limit', $limit);\n }\n return $this->getData('limit');\n }", "title": "" }, { "docid": "ece048180eec59ecbf7677f014fd0cfb", "score": "0.66218644", "text": "private function setLimit()\n {\n if (empty($_GET['limit'])) return;\n $this->limit = intval($_GET['limit']);\n }", "title": "" }, { "docid": "9d0abfa427500d666b0b83026c720b7d", "score": "0.66176337", "text": "public function limit($request, $size);", "title": "" }, { "docid": "4e5017d62218a6b9e3ff6c4e86fcf7d4", "score": "0.6531934", "text": "public function get_limit(){\n return $this->items_per_page;\n }", "title": "" }, { "docid": "4271cb220567db530c069f6d32d1f9f0", "score": "0.64397234", "text": "public function getLimit(): ?string\n {\n return $this->_limit;\n }", "title": "" }, { "docid": "02a33aca2abb6d72daaacd480e47e491", "score": "0.6406128", "text": "public function getLimitParameter(): string\n {\n return $this->options['limit_param'];\n }", "title": "" }, { "docid": "89fc778d4eaa9f95ce56b3341230abe6", "score": "0.639076", "text": "public function getLimitType()\n {\n return $this->limit_type;\n }", "title": "" }, { "docid": "b5ee3ac3ea263b63ba7700d32d839122", "score": "0.6390403", "text": "public function getMaxLimit(): int\n {\n return $this->options['limit_max'];\n }", "title": "" }, { "docid": "200b76d408d8b9c9636c3421b0351bc5", "score": "0.6361568", "text": "public function getPageLimit()\n {\n return $this->pageLimit;\n }", "title": "" }, { "docid": "30855c197eaf13399d4d71519090838f", "score": "0.63465595", "text": "public function limit();", "title": "" }, { "docid": "8820dc151dabef520acdf6f2d50d4877", "score": "0.6292071", "text": "public function getLimit(): ?int\n {\n return $this->limit;\n }", "title": "" }, { "docid": "84647c9f0546530741957bc346408550", "score": "0.6277473", "text": "protected function getLimit() {\n if ($this->_limit instanceof Zend_Measure_Binary) {\n return $this->_limit;\n } else {\n return $this->setLimit($this->_limit)->getLimit();\n }\n }", "title": "" }, { "docid": "6d0fb0263b83166992153b155990682c", "score": "0.6261717", "text": "protected function limit()\r\n {\r\n \r\n }", "title": "" }, { "docid": "e51b1694a0d7d5a3fef9bb7517ba31ec", "score": "0.6255739", "text": "public function getContentLimit()\n {\n return $this->maxContentLength;\n }", "title": "" }, { "docid": "7ba7359d9d9571f7efc8385bfc52991f", "score": "0.6255472", "text": "public function limit()\n {\n return $this->per_page;\n }", "title": "" }, { "docid": "4eb1f401df6513bb4c4b94545dc7f4c9", "score": "0.6252819", "text": "public function getMaxLimit() {\n\t\treturn is_numeric(Mage::getStoreConfig(self::MAX_LIMIT)) ? Mage::getStoreConfig(self::MAX_LIMIT) : 3;\n\t}", "title": "" }, { "docid": "bdac12bad62b06d4faf81e8451aec010", "score": "0.6235411", "text": "public function getPageLimit() {\n $pageLimit = (string) $this->xml->page_limit;\n return $pageLimit;\n }", "title": "" }, { "docid": "aa18eb419b1d62d2fffa10b67d5dc079", "score": "0.6235319", "text": "function get_limit(){\n $limit_from = $this -> page_length * ($this -> current_page-1);\n $limit = $limit_from . \", \".$this -> page_length;\n //echo $limit;\n return $limit;\n }", "title": "" }, { "docid": "4cde642955adcb95c1f771d9e7478d87", "score": "0.6235055", "text": "public function getSizeLimit() {\n return $this->sizeLimit;\n }", "title": "" }, { "docid": "8256d60c880a633c06a39069ffbf4eff", "score": "0.6215636", "text": "function getMax()\n\t{\n\t\t$post_value \t= $this->_return_bytes( ini_get('post_max_size'));\n\t\t$upload_value \t= $this->_return_bytes( ini_get('upload_max_filesize'));\n\t\t$value = min( $post_value, $upload_value);\n\t\t$value = $value / 1024;\n\t\treturn $value;\n\t}", "title": "" }, { "docid": "d95387a9f9a1172075419fbaf738cc74", "score": "0.61865294", "text": "public function limit($limit){\n $this->request['limit'] = $limit;\n return $this;\n }", "title": "" }, { "docid": "d95387a9f9a1172075419fbaf738cc74", "score": "0.61865294", "text": "public function limit($limit){\n $this->request['limit'] = $limit;\n return $this;\n }", "title": "" }, { "docid": "d95387a9f9a1172075419fbaf738cc74", "score": "0.61865294", "text": "public function limit($limit){\n $this->request['limit'] = $limit;\n return $this;\n }", "title": "" }, { "docid": "b02aa812a10e0293fe62353a041e86ac", "score": "0.61775106", "text": "public function resolvePaginationLimit(Request $request): int\n {\n $limit = (int) $request->get('limit', $this->defaultLimit);\n return $limit > 0 ? $limit : $this->defaultLimit;\n }", "title": "" }, { "docid": "28308f407c469ed946f023cbb893c478", "score": "0.61740494", "text": "public static function getLimitKey(): string\n {\n return config('apitizer.query_parameters.limit');\n }", "title": "" }, { "docid": "ee80bd7b6f9428668cd83be8952d1254", "score": "0.6116529", "text": "public function getFeeLimit()\n {\n return $this->fee_limit;\n }", "title": "" }, { "docid": "f8561f80c26e738e67331a17b87a9d13", "score": "0.6110839", "text": "protected function getLimit()\n {\n $limit = $this->activeState()->getLimit();\n if (!in_array($limit, $this->limits)) {\n //We are using lowest limit by default\n return $this->limits[0];\n }\n\n return $limit;\n }", "title": "" }, { "docid": "3b63ab87da2a4b7f412296d876e94aca", "score": "0.6106816", "text": "public function limits()\n {\n return self::$availableLimits;\n }", "title": "" }, { "docid": "35279a95c1cfdcca397b8092bffa6abb", "score": "0.60726005", "text": "public function setLimit( $v ){\n return $this->limit = intval( $v );\n }", "title": "" }, { "docid": "35279a95c1cfdcca397b8092bffa6abb", "score": "0.60726005", "text": "public function setLimit( $v ){\n return $this->limit = intval( $v );\n }", "title": "" }, { "docid": "1b589648f908488a8b4ef141e48527d6", "score": "0.6060065", "text": "public function getUseLimit()\n {\n return $this->use_limit;\n }", "title": "" }, { "docid": "218aa8aaf28085e3fa3a256de748b01b", "score": "0.6058934", "text": "public function getLimit() : IntegerInterface\n {\n return $this->limit;\n }", "title": "" }, { "docid": "979e15287c702e21c6f27e8a79ade738", "score": "0.6051194", "text": "public function getLimit5();", "title": "" }, { "docid": "bc5a6b5df342b95aab1958689dd1e65e", "score": "0.60432637", "text": "public function requestValidate()\n {\n $request = $this->api->request;\n\n $request->limit = (int) $request->limit ?: 50;\n if ($request->limit < 0 || $request->limit > 500) {\n $request->limit = 50;\n }\n\n $request->page = (int) $request->page ?: 1;\n if ($request->page < 0) {\n $request->page = 50;\n }\n }", "title": "" }, { "docid": "545f47feddcdce928cf37279132e73a9", "score": "0.60370946", "text": "public function getLimitOptions();", "title": "" }, { "docid": "af7ba4973e0a79537be8cb3035ca94e5", "score": "0.6034852", "text": "public function limit($limit = 10)\r\n {\r\n $this->limit = $limit;\r\n }", "title": "" }, { "docid": "80afa8f5c4caa2057a4d3e3568675510", "score": "0.6031843", "text": "public function limit($iLimit = NULL) {\n\t\t\tif (!is_null($iLimit)) $this->iLimit = $iLimit; \n\t\t\treturn $this->iLimit; \t\t\t\n\t\t}", "title": "" } ]
aa9eac4f9cdf0d3a402e2feed25b112e
getUserByName Get user by user name username, string: The name that needs to be fetched. Use user1 for testing. (required)
[ { "docid": "659616d65ed595ca3b63925edd473c6c", "score": "0.7216822", "text": "public function getUserByName($username) {\n\n \t\t//parse inputs\n \t\t$resourcePath = \"/user.{format}/{username}\";\n \t\t$resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\n \t\t$method = \"GET\";\n $queryParams = array();\n $headerParams = array();\n\n if($username != null) {\n \t\t\t$resourcePath = str_replace(\"{\" . \"username\" . \"}\",\n \t\t\t $username, $resourcePath);\n \t\t}\n \t\t//make the API Call\n if (! isset($body)) {\n $body = null;\n }\n \t\t$response = $this->apiClient->callAPI($resourcePath, $method,\n \t\t $queryParams, $body,\n \t\t $headerParams);\n\n\n if(! $response){\n return null;\n }\n\n \t\t$responseObject = $this->apiClient->deserialize($response,\n \t\t 'User');\n \t\treturn $responseObject;\n\n }", "title": "" } ]
[ { "docid": "1eeb646ff419385068eeda6db8b5ca38", "score": "0.79153967", "text": "public function getUserByName($name)\n {\n $db = $this->dbConnect();\n $req = $db->prepare('SELECT * FROM users WHERE name_user = ?');\n $req->execute(array($name));\n $user = $req->fetch();\n return $user;\n }", "title": "" }, { "docid": "05ab57a6e9b9bb713e793c73d032331d", "score": "0.7727977", "text": "public function getUserByName($name)\n {\n return $this->searchUser('name', $name);\n }", "title": "" }, { "docid": "94a2bee4f305dbb2ad905380146eff6c", "score": "0.7677546", "text": "public function getUserByName($username);", "title": "" }, { "docid": "94a2bee4f305dbb2ad905380146eff6c", "score": "0.7677546", "text": "public function getUserByName($username);", "title": "" }, { "docid": "a2373d7cf22f5be497f37b5a44606a2a", "score": "0.7392418", "text": "public static function getUserByName($name)\n {\n return static::where('name', str_replace('%20', ' ', $name))->first();\n }", "title": "" }, { "docid": "92e40dfa365301137512cf362df5d17c", "score": "0.73678637", "text": "public function getUserByUserName($username);", "title": "" }, { "docid": "c19a142a6740ee5d2f15e94eb613bd53", "score": "0.7367304", "text": "public function getUserByName($userName){\n $db = $this->getDb();\n $query = $db->prepare(\"SELECT * FROM users WHERE name=?\");\n $query->execute([$userName]);\n $query->setFetchMode(PDO::FETCH_CLASS, \"user\");\n $result = $query->fetch();\n return $result;\n }", "title": "" }, { "docid": "40d54bf5aea77ca259fcf139f3b65742", "score": "0.72267586", "text": "public static function getUserByName($name) {\r\n $consulta = \"select * from users where users.name=:user\";\r\n //instancia y conexion a base de datos\r\n $dataBase = new DemoDB();\r\n try {\r\n // preparar el DML a ejecutar\r\n $query = $dataBase->prepare($consulta);\r\n $query->bindValue(':user', $name,PDO::PARAM_STR);\r\n // ejecutar la consulta\r\n $query->execute();\r\n // procesamos el resultado de la consulta\r\n $resultados = $query->fetch(PDO::FETCH_OBJ);\r\n return $resultados;\r\n } catch (PDOException $exc) {\r\n //echo $exc->getTraceAsString();\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "aca14dbf9b5c4ad3a48054f704793bc8", "score": "0.7196318", "text": "public function getByName($name) {\n return $this->curl->get('users/find', array('term' => $name, 'search_by_email' => 0));\n }", "title": "" }, { "docid": "778037862325d2e4eed1af0cb0c5ca78", "score": "0.71252674", "text": "function getUserByName($username)\n {\n $sql = \"SELECT * FROM user WHERE username= '$username'\";\n return $this->db->query($sql);\n }", "title": "" }, { "docid": "bf340566a1adcdd4439c9062faecfd6f", "score": "0.7117935", "text": "public function getUserByUsername($username);", "title": "" }, { "docid": "193e7bf8628ee469e7165f35a034602f", "score": "0.7103558", "text": "public function getUserName($userName){\n $qry = \"SELECT userName FROM hy_user WHERE userName='$userName'\";\n $result=$this->get($qry, 1);\n if($result){\n $result=true;\n }\n return $result; \n }", "title": "" }, { "docid": "0be6722c3249f89cc6eef51335507538", "score": "0.692454", "text": "function find_user_by_user_name_action($api_key, $user_name) {\n \n $user = Studip_User::find_by_user_name($user_name);\n \n if (!$user)\n return new Studip_Ws_Fault('No such user.');\n \n $entry = KuferMapping::findOneByStudip_id($user->id);\n $user->id = $entry->id;\n\n return $user;\n }", "title": "" }, { "docid": "51b9eee521151511070ce4515de0cd54", "score": "0.68971366", "text": "public function get_user_by_display_name($name)\n\t{\n\t\t//form the query\n\t\t$row = $this->select()->from('users')->where('name = ?', $name);\n\n\t\t//execute the query\n\t\t$query = $row->query();\n\t\t$obj = $query->fetchObject();\n\t\t//grab display name column\n\t\t$result = $obj->display_name;\n\n\t\t//send it back to the controller\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "faac77982c47d268a601179b0389bd05", "score": "0.68818486", "text": "function get_member_from_username($name)\n\t{\n\t\treturn $this->connection->query_value_null_ok('members','id',array('members_display_name'=>$name));\n\t}", "title": "" }, { "docid": "788e4c1725c4aa0ba29ee01cf77248ff", "score": "0.6875058", "text": "function getname($user)\n{\n\tglobal $db_user, $db_host, $db_name;\n\t$db = new mysqli($db_host, $db_user, \"\", $db_name);\n\tif (mysqli_connect_errno())\n\t\tfail('MySQL connect', mysqli_connect_error());\n\n\t($stmt = $db->prepare('SELECT name FROM users WHERE email=?')) ||\n\tfail('Prepare users', $db->error);\n\t$stmt->bind_param('s', $user) || fail('Bind user', $db->error);\n\t$stmt->execute();\n\t$stmt->store_result();\n\tif($stmt->num_rows > 0) { //have valid username\n\t\t$stmt->bind_result($name) || fail('Bind name', $db->error);\n\t\tif(!$stmt->fetch() && $db->errno)\n\t\t\tfail('Fetch name', $db->error);\n\n\t\treturn $name;\n\n\t}\n\treturn \"$user\";\n}", "title": "" }, { "docid": "b948e06aed4f30d1857e5d47325c0e57", "score": "0.68727905", "text": "private function getUserName(){\n $condition = FIELD_ID.\"=$this->id\";\n $userName = $this->db->getAllOnCondition(TABLE_USERS,FIELD_NAME,$condition);\n\n if($userName){\n return [\"userName\" =>$userName['NAME']];\n }\n\n }", "title": "" }, { "docid": "4ca5e0f5bbea81f16027e313043686a6", "score": "0.6866606", "text": "function get($username)\n {\n \t$this->db->where('user_name',$username);\n \t$query = $this->db->get('users');\n \tif ($query && $query->num_rows() > 0)\n\t\t\t\n \t\treturn $query->row(0,'User');\n \telse\n \t\treturn null;\n }", "title": "" }, { "docid": "e936fe40db6566d6ecf06434da5c7b71", "score": "0.6862107", "text": "public static function get_by_name($username){\n\t\t$user = new User();\n\t\t$query = sprintf('SELECT user_id,password FROM table_register WHERE username = \\'%s\\'',pg_escape_string($username));\n\t\t$result=pg_query($GLOBALS['DB'],$query);\n\t\tif(pg_num_rows($result)!=0){//check if query exist\n\t\t\t$row = pg_fetch_assoc($result); //fetch contends\n\t\t\t$user->username=$username;\n\t\t\t$user->password=$row['password'];\n\t\t\t$user->uid = $row['user_id'];\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t\t//free result memory\n\t\treturn $user;\n\t}", "title": "" }, { "docid": "35f18021ec611a1eaf5a858d547cf97d", "score": "0.6854373", "text": "function findUserByName ($name) {\n\t\t$found = null;\n\t\tforeach ($this->users as $user) {\n\t\t\tif (strtolower ($user->name) == strtolower ($name)) {\n\t\t\t\t$found = $user;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $found;\n\t}", "title": "" }, { "docid": "0ada4c5ad8076770695973375f132074", "score": "0.6816673", "text": "public static function getUserName($username) {\n $dbh = DBInit::getInstance();\n $stmt = $dbh->prepare(\"SELECT id, is_admin, username, password FROM job_users_shadow \n WHERE username = :username\");\n $stmt->bindValue(\":username\", $username);\n $stmt->execute();\n\n return $user = $stmt->fetch();\n }", "title": "" }, { "docid": "9b5a9c490b13708cc0a46b5a5c74115d", "score": "0.6798886", "text": "function fetchUserByUserName($userName=null) {\n MyOOS_CoreApi::requireOnce('modules/core/classes/helpers/GalleryUserHelper_medium.class');\n return GalleryUserHelper_medium::fetchUserByUserName($userName);\n }", "title": "" }, { "docid": "a1c87a9b6f976f55d91e59aaa8259091", "score": "0.6791616", "text": "function getUserByUsername($username) {\n $db_handle = new DBController();\n $query = \"Select * from account where Username = ?\";\n $result = $db_handle->runQuery($query, 's', array($username));\n return $result;\n }", "title": "" }, { "docid": "72c027c5d377874e6b538e5f209125c9", "score": "0.67908996", "text": "public function getUserByName($uname) {\n $qs = \"SELECT `id`, name, admin, lastactive FROM users\" . \" WHERE name=:name\";\n $stmt = $this->dbo->prepare($qs);\n $stmt->bindValue(':name', $uname, PDO::PARAM_STR);\n $stmt->execute();\n return $stmt->fetch(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "53a5a0f8ead4f730c4c7ce42f13fd17d", "score": "0.6782056", "text": "public function getUserDetails($name)\n {\n $user = new User($this->di->get(\"db\"));\n return $user->getUser($name);\n }", "title": "" }, { "docid": "f315fa2358ccb4f876c121a6b2b28ec6", "score": "0.67776674", "text": "public function getUserByUsername($username) {\r\n\t\t$query = \"SELECT id, name, username, email, usertype, picturefilename, picturemimetype FROM users WHERE username = '\" . $username . \"'\";\r\n\t\t\t\t\r\n\t\t$result = $this->dbaccess->run_query($query);\r\n\t\t\r\n\t\twhile($user = $result->fetchObject('User')) {\r\n\t\t\treturn $user; // this only happens once as usernames are unique, while loop handles 0 results \r\n\t\t} \t\t\r\n\t}", "title": "" }, { "docid": "6edae23a00e7794e50d4c9397a2dec24", "score": "0.6766185", "text": "public function getUserByName($userName=NULL) {\n try {\n $q = Doctrine_Query :: create()\n ->from('User u')\n ->where('u.username = ?', $userName);\n\n return $q->fetchOne();\n } catch (Exception $e) {\n throw new DaoException($e->getMessage());\n }\n }", "title": "" }, { "docid": "15732b11d4b88350d1710ba1b98c2fd0", "score": "0.67368114", "text": "function nc__db__getUserName($id){\n\n\t\t//output function name\n\t\tnc__util__func('db', 'nc__db__getUserName');\n\n\t\t//establish connection\n\t\t$conn = nc__db__getDBCon();\n\n\t\t//select user with specified user name\n\t\t$qrs = $conn->query(\"SELECT name FROM netcmp_access_user WHERE id = \".$id);\n\n\t\t//initialize return id\n\t\t$tmpResName = NULL;\n\n\t\t//if user is found\n\t\tif( $qrs && $qrs->num_rows > 0 ){\n\n\t\t\t//get results row\n\t\t\t$row = $qrs->fetch_assoc();\n\n\t\t\t//retrieve user id\n\t\t\t$tmpResName = $row['name'];\n\n\t\t}\t//end if user is found\n\n\t\t//close connection\n\t\tnc__db__closeCon($conn);\n\n\t\t//return user id\n\t\treturn $tmpResName;\n\n\t}", "title": "" }, { "docid": "77ded151eab1099c9924cf139ac5d280", "score": "0.6722251", "text": "public function findUserByName($name){\n $this->db->query('SELECT * FROM login WHERE name = :name');\n $this->db->bind(':name', $name);\n \n $row = $this->db->single();\n if ($this->db->rowCount() > 0){\n return $row;\n }\n else\n return false;\n \n }", "title": "" }, { "docid": "9b1d5f8b1b1b929256a0f59d8bfb787a", "score": "0.6720974", "text": "function &getUser($username)\n {\n $db = JFusionFactory::getDatabase($this->getJname());\n\n // Get user info from database\n $query = 'SELECT b.id as userid, b.name as username, email as email, members_display_name as name, temp_ban as block, converge_pass_hash as password, converge_pass_salt as password_salt FROM #__members_converge as a INNER JOIN #__members as b ON a.converge_email = b.email WHERE b.name = ' . $db->Quote($username);\n $db->setQuery($query);\n $result = $db->loadObject();\n\n return $result;\n }", "title": "" }, { "docid": "bdaa4f362fa791b90c57dbdb0c077669", "score": "0.67167795", "text": "function get_user($username) {\n $conn = connect();\n\n // Build the query, execute the query and close the connection\n $sql = \"SELECT * FROM `users` WHERE `user_name` = '\" . $username . \"';\";\n $result = $conn->query($sql);\n $conn->close();\n\n // Validate and return the result\n if ($result->num_rows == 1) {\n return $result->fetch_object();\n }\n else if ($result->num_rows > 1) {\n return \"More than one user returned which should not be possible.\";\n }\n\n return \"No user found.\";\n}", "title": "" }, { "docid": "6337c885833f630d6ba6089a12032e32", "score": "0.66801065", "text": "function getUserByName($name)\n { \n $name = $name.\"%\";\n $user = DB::table('users')->where('name', 'like', $name)->get();\n\n if(empty($user))\n {\n return response()->json(['message'=>'Nobody found with this name']);\n }\n return response()->json($user);\n }", "title": "" }, { "docid": "30e0cf3e183a341b4128c46f2fb5f5e5", "score": "0.667405", "text": "function getUserByUsername($username) {\n \tglobal $db;\n\n $stmt = $db->prepare('SELECT * FROM user WHERE username = ?');\n $stmt->execute(array($username));\n return $stmt->fetch();\n }", "title": "" }, { "docid": "6324067b9056aa3e259ea7461f120d2a", "score": "0.66693205", "text": "function get_user($username) {\n return null;\n }", "title": "" }, { "docid": "e84eae7863bee06426fa15d3bb9f14e5", "score": "0.6648981", "text": "static function getByUsername($username);", "title": "" }, { "docid": "aa053f91ed26e126c2e97eeb10278c98", "score": "0.66451716", "text": "function wcorg_get_user_by_canonical_names( $name ) {\n\tif ( ! $user = get_user_by( 'login', $name ) ) { // user_login\n\t\t$user = get_user_by( 'slug', $name ); // user_nicename\n\t}\n\n\treturn $user;\n}", "title": "" }, { "docid": "89a43605169bf6008f01602cad54d9bf", "score": "0.663783", "text": "public function getUserByLoginname($name)\n {\n $this->db->setStatement(\"SELECT * FROM t:lw_in_user WHERE name = :loginname \");\n $this->db->bindParameter(\"loginname\", \"s\", $name);\n \n return $this->db->pselect();\n }", "title": "" }, { "docid": "cfdcac94c9653d046b47fa08fe8a3471", "score": "0.663722", "text": "public function getUserByName($name, $nocase = false) {\n $user = new cbg_user($this);\n $user->loadByUsername($name, $nocase);\n return $user;\n }", "title": "" }, { "docid": "fc74a2ad20844f0ae5292abc5539b618", "score": "0.6625796", "text": "function getUser($str){\n\t\t$usr = $this->userContext->findBy(array('username'=>$str));\n\t\treturn ($usr) ? $usr[0] : null ;\n\t}", "title": "" }, { "docid": "039a4577fda6a0cac572ac575cac2a30", "score": "0.66113824", "text": "public function getUserByUserName($usr_name_in) {\n $stmt = $this->conn->prepare(\"SELECT usr_name, usr_full_name, usr_email, usr_phone_number, usr_api_key, ou_status,ou_recode_added_at,ucat_name,ucat_description FROM operational_user_view_release WHERE usr_name = ?\");\n $stmt->bind_param(\"s\", $usr_name_in);\n if ($stmt->execute()) {\n // $user = $stmt->get_result()->fetch_assoc();\n $stmt->bind_result($usr_name, $usr_full_name, $usr_email, $usr_phone_number, $usr_api_key, $ou_status, $ou_recode_added_at, $ucat_name, $ucat_description);\n $stmt->fetch();\n $user = array();\n $user[\"usr_name\"] = $usr_name;\n $user[\"usr_full_name\"] = $usr_full_name;\n $user[\"usr_email\"] = $usr_email;\n $user[\"usr_phone_number\"] = $usr_phone_number;\n\t\t\t$user[\"usr_api_key\"] = $usr_api_key;\n $user[\"ou_status\"] = $ou_status;\n\t\t\t$user[\"ou_recode_added_at\"] = $ou_recode_added_at;\n $user[\"ucat_name\"] = $ucat_name;\n $user[\"ucat_description\"] = $ucat_description;\n\n $stmt->close();\n return $user;\n } else {\n return NULL;\n }\n }", "title": "" }, { "docid": "3ad46210a08e6332b125de1252eeedfc", "score": "0.65984625", "text": "public function getUserByUsername($name)\n {\n return $this->user->getUserByName($name)?:[];\n }", "title": "" }, { "docid": "c2029831390d514cca4022ab637ba37b", "score": "0.65944946", "text": "public function getUserByUsername($username){\n\t\t$username = mysql_real_escape_string($username);\n\t\t$usr = $GLOBALS['db']->select(\"select * from user u where u.username = '\" . strtolower($username) . \"'\");\n\t\tif($usr && count($usr) >= 1){\n\t\t\treturn $usr[0];\n\t\t}else{\n\t\t\treturn false;\n\t\t}\t\n\t}", "title": "" }, { "docid": "b0cf15df7e15bc8f2d896c688261ba6e", "score": "0.6583984", "text": "function GetUserName($userId){\n\n $link = GetConnection();\n\n if($link == NULL){\n return \"Anonyme\";\n }\n else\n {\n\n $res = $link->query(\"SELECT Nom FROM user WHERE UserId='{$userId}'\");\n $link->close();\n\n if(empty($res) ){ \n return \"Anonyme\";\n }\n \n $row = $res->fetch_assoc();\n return $row['Nom'];\n \n }\n }", "title": "" }, { "docid": "4fe25ac83d96533032f7d6bf137916bf", "score": "0.65677977", "text": "public function findNameUser($name){\n $query = \"SELECT name FROM users WHERE name=?\";\n // prepare query\n $this->db->query($query);\n\n // bind value\n $this->db->bind(1, $name);\n $this->db->execute();\n\n if($this->db->rowCount() > 0){\n return true;\n }else {\n return false;\n }\n }", "title": "" }, { "docid": "b81deb6753351849e26e0a16a7f34997", "score": "0.6558029", "text": "function getUser(string $name, string $password){\n\t$req=\"SELECT * from user where name=:name and password=:password\";\n\t$query = ($this->db)->query($req);\n\n $prep = ($this->db)->prepare($req);\n\n $query = $prep->execute(array(\n 'name' => htmlspecialchars($name),\n 'password' => htmlspecialchars($password),\n\n ));\n\n\t$tab = $prep->fetchAll(PDO::FETCH_CLASS|PDO::FETCH_PROPS_LATE,'User');\n if (isset($tab[0]))\n return $tab[0];\n return NULL;\n}", "title": "" }, { "docid": "547b1dea13576d8d7de82a22e1e2bb24", "score": "0.65400106", "text": "function getUser($username) {\n\t\t\n\t\tif($username == null || trim($username) == \"\") {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$username = urlencode($username);\n\t\t\n\t\t$url = $this->base . '/users/info/' . '?apikey=' . $this->key . '&username=' . $username;\n\t\t$data = $this->fetch($url);\n\t\t\n\t\tif($data === false) {\n\t\t\treturn false;\n\t\t}\n\t\t\t\t\n\t\treturn $this->decode($data);\n\t\t\n\t}", "title": "" }, { "docid": "7a7199fe170e6f6f196a725c5a30f451", "score": "0.65386915", "text": "function get_user($username)\r\n{\r\n $dataArr = get_from_database(\"users\", constant('USER_USERNAME_COLUMN'), $username);\r\n if ($dataArr == null) {\r\n return null;\r\n }\r\n return new user($dataArr[0], $dataArr[1], $dataArr[2], json_decode($dataArr[3], true), json_decode($dataArr[4], true), json_decode($dataArr[5], true));\r\n}", "title": "" }, { "docid": "cd5cb0062488bafc47b04b18db70722e", "score": "0.6538333", "text": "public function getUser($user){\t\r\n\t\t$this->username = $user;\r\n\t\t\r\n\t\ttry {\r\n\t\t$this->get_user = $this->conn->connect();\r\n\t\t$this->stm = $this->get_user->prepare(\"SELECT username FROM users WHERE username = '\".$this->username.\"'\");\r\n\t\t$this->stm->execute();\r\n\t\t$this->result = $this->stm->fetch(PDO::FETCH_ASSOC);\r\n\t\t}\r\n\t\t\tcatch(PDOException $e)\r\n\t\t{\r\n\t\techo \"Error: \" . $e->getMessage();\r\n\t\t}\r\n\t\treturn $this->result;\r\n\t}", "title": "" }, { "docid": "5efaecf3d8f86d54bfc2992ab1f0dcb7", "score": "0.65368366", "text": "function getUser($userName) {\n\tswitch ( $userName ) {\n\t\tcase 1:\n\t\t\techo \"patient\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\techo \"doctor\";\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\techo \"admin\";\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\techo \"support\";\n\t\t\tbreak;\n\t}\n}", "title": "" }, { "docid": "6d74dd0798d90115bbe924fa2381dbd8", "score": "0.652268", "text": "function getUserInfo($userName = null) {\n !$userName && $userName = $this->_username;\n $data = $this->_query('users/search', array('q' => $userName));\n return $data[0];\n }", "title": "" }, { "docid": "430daeea3dffd25dfe79f2e04deaf21e", "score": "0.65136003", "text": "function findUserByUsername($username) {\n\t\treturn $this->userMapper->findUserByUsername($username);\t\n\t}", "title": "" }, { "docid": "fdb73c0ac6dfc0b5a1d2beff15d6898b", "score": "0.6511527", "text": "public static function getByUsername($username)\n {\n $stmt = DB::conn()->prepare(\n \"SELECT user_id,\n user_name,\n user_email,\n user_password_hash,\n user_active,\n user_deleted,\n user_suspension_timestamp,\n user_account_type,\n user_failed_logins,\n user_last_failed_login,\n user_fbid\n FROM users\n WHERE (user_name = :user_name OR user_email = :user_name)\n AND user_provider_type = :provider_type\n LIMIT 1\"\n );\n $stmt->execute(array(':user_name' => $username, ':provider_type' => 'DEFAULT'));\n return $stmt->fetch(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "18aef147ac5947e5a3f0879661dc4471", "score": "0.6507546", "text": "public function loadUserByUsername($username)\n\t{\t\n\t\t//fetch username\n\t\t//where username can be username or email\n\t\t$user = $this->createQueryBuilder('u')\n\t\t\t->where('u.username = :username OR u.email = :email')\n\t\t\t->setParameter('username', $username)\n\t\t\t->setParameter('email', $username)\n\t\t\t->getQuery()\n\t\t\t->getOneorNullResult();\n\t\t\t\n\t\treturn $user; //return user\n\t}", "title": "" }, { "docid": "a60e75409a5d2f3224b5198fa5b790a9", "score": "0.650195", "text": "public function getUserFromID($userID){\n $qry = \"SELECT userName FROM hy_user WHERE userID='$userID'\";\n $results=$this->get($qry, 1);\n return $results['userName']; \n }", "title": "" }, { "docid": "a057234cf93d107bc700fd3539382e3d", "score": "0.6499614", "text": "function getOneUser($username)\n{\n $query = \"SELECT * FROM `persons` WHERE username=username\";\n $params = ['username' => $username];\n return Query($query, $params, false);\n}", "title": "" }, { "docid": "73d7c82ee75fd4c18d69f405c7863d1f", "score": "0.6494597", "text": "private function fetchUser($username)\n {\n $userData = $this->userRep->findOneBy(['username' => $username]);\n\tif(!$userData){\n return false;\n }\n // pretend it returns an array on success, false if there is no user\n\n if ($userData) {\n $password = $userData->getPassword();\n\n // ...\n\n return new ApiUser($username, $password, '', [], $userData->getActive(), $userData->getCountry());\n }\n\n throw new UsernameNotFoundException(\n sprintf('Username \"%s\" does not exist.', $username)\n );\n }", "title": "" }, { "docid": "0571f3cd763c296687b5120c6e363d68", "score": "0.6482182", "text": "public function getUser($username) {\n\t\t$db = $this->db;\n\t\t\n\t\t$stmt = $db->prepare('SELECT * FROM users WHERE username = ?');\n\t\t$stmt->execute(array($username));\n\t\treturn $stmt->fetch(PDO::FETCH_OBJ);\n\t}", "title": "" }, { "docid": "b8b616e7b53b8f21863152f581bc84dc", "score": "0.647403", "text": "function findUsersByName($str){\n\t\t$usr = $this->dbContext->findBy(array('username'=>$str));\n\t\t\n\t\treturn ($usr) ? $usr : null;\n\t}", "title": "" }, { "docid": "2bb9dbb423fe8ee4ca50bf62f5f2b06a", "score": "0.64724547", "text": "function getUser($username)\r\n {\r\n $users = $this->listUsers();\r\n if($users === AUTH_METHOD_NOT_SUPPORTED){\r\n return(AUTH_METHOD_NOT_SUPPORTED);\r\n }\r\n for($i=0;$c = count($users),$i<$c;$i++){\r\n if($users[$i]['username'] == $username){\r\n return($users[$i]);\r\n }\r\n }\r\n return(false);\r\n \r\n }", "title": "" }, { "docid": "03b1d87e9078a43b8507c333e6d56ca7", "score": "0.64641935", "text": "public function get_username($user_Name){\n $sqluname=\"SELECT username FROM users WHERE user_id = $user_Name\";\n $result = mysqli_query($this->db,$sqluname);\n $user_data = mysqli_fetch_array($result);\n echo $user_data['username'];\n }", "title": "" }, { "docid": "c3573317cbc39021089379f5bb2c64ed", "score": "0.6457487", "text": "public function getUserInfoByUsername($username){\n\t\t\n\t\t$username=$this->db->escape($username);\n\t\t$sql='select * from users where \n\t\t\tusername=\\''.$username.'\\'\n\t\t\tlimit 1';\n\t\t\n\t\treturn $this->db->fetchFirst($sql);\n\t}", "title": "" }, { "docid": "80d612e5d736c3379665d24baa306426", "score": "0.6454483", "text": "public function getByUsername($username);", "title": "" }, { "docid": "431a8f4b4330e3512282b6e58b938ec2", "score": "0.6451836", "text": "public function getByUsername(string $username)\r\n {\r\n $user = null;\r\n\r\n // Check if the user is already in the cache.\r\n foreach(self::$cache as $userId => $cachedUser)\r\n {\r\n if(strcmp($cachedUser->username, $username) === 0)\r\n {\r\n $user = $cachedUser;\r\n break;\r\n }\r\n }\r\n\r\n if($user == null)\r\n {\r\n // Query database for user.\r\n $qUsername = '\\''.$this->database->prepareStatement($username).'\\'';\r\n\r\n $queryStr = 'SELECT users.*, ('. \r\n 'SELECT GROUP_CONCAT(participants.conversation_id) FROM participants '. \r\n 'WHERE participants.user_id=users.user_id) AS conversations '. \r\n 'FROM users WHERE users.username='.$qUsername;\r\n\r\n if (($result = $this->database->query($queryStr)) !== false)\r\n {\r\n if ($result->num_rows > 0)\r\n {\r\n $userData = $result->fetch_assoc();\r\n self::$cache[$userData['user_id']] = new User($userData);\r\n $user = self::$cache[$userData['user_id']];\r\n }\r\n }\r\n }\r\n\r\n return $user;\r\n }", "title": "" }, { "docid": "e83bd0f2903d7a9a3d1f7a5a17ee84e9", "score": "0.6451", "text": "function getByUsername($username) {\r\n\t\t$user = AffiliateUserQuery::create()->setIgnoreCase(1)->findOneByUsername($username);\r\n\t\treturn $user;\r\n\t}", "title": "" }, { "docid": "f496ab4dfe249114db10399e61d24a0f", "score": "0.6445658", "text": "function get_one_user($username, $password){\n global $db;\n $query = \"SELECT * FROM users\n WHERE userName = :username AND\n password = :password\";\n $statement = $db->prepare($query);\n $statement->bindValue(':username', $username);\n $statement->bindValue(':password', $password);\n $statement->execute();\n $user = $statement->fetch();\n $statement->closeCursor();\n return $user;\n }", "title": "" }, { "docid": "683067a954fdbc10aafa256ca338ea75", "score": "0.6419452", "text": "public function get_user($username)\n\t{\t\n\n\t\t//return the username\n\t\t$user_data = $this->db->select(\"user.name,user.id,user.email,user.phone,user.identitynumber,\n\t\t\tlogin.id as loginid,login.password,login.expireTime,\n\t\t\trole.id as roleid, role.role\")\n\t\t->from(\"user\")\n\t\t->join(\"login\",\"login.user_id = user.id\")\t\t\n\t\t->join(\"role\",\"role.id = login.role_id\")\t\t\n\t\t->where('email',$username)\n\t\t->where('delete',0)\n\t\t->where('deceased',0)\n\t\t->get()->row();\n\n\t\treturn isset($user_data)? $user_data : null; \n\t}", "title": "" }, { "docid": "46d85ed52c5f353c27b87e657afc38aa", "score": "0.64137757", "text": "public function getByUsername($username){\n\t\t$db = Database::getInstance();\n\t\t$user = new User();\n\t\t$reflection = new ReflectionClass($user);\n\t\t$usernameProp = $reflection->getProperty(\"username\");\t\n\t\t\n\t\t$sql = \"SELECT * FROM \".$user->getTableName();\n\t\t$sql .= \" WHERE \".$usernameProp->getName().\" = '\".mysql_real_escape_string($username).\"'\";\n\t\t$db->setQuery($sql);\n\t\treturn $db->loadObject(get_class($user));\t\t\t\n\t}", "title": "" }, { "docid": "d6969475e6ac2315a10370529f134ac0", "score": "0.64069384", "text": "public function getUserByUsername(string $username)\n {\n $username = strtolower(trim($username));\n return $this->userEntity->getEntityQuery()\n ->setCondition('username', $username)\n ->getOne();\n }", "title": "" }, { "docid": "13dcfeed614be5ab6f736e2abf52bd45", "score": "0.6406333", "text": "public function getUsername();", "title": "" }, { "docid": "13dcfeed614be5ab6f736e2abf52bd45", "score": "0.6406333", "text": "public function getUsername();", "title": "" }, { "docid": "13dcfeed614be5ab6f736e2abf52bd45", "score": "0.6406333", "text": "public function getUsername();", "title": "" }, { "docid": "13dcfeed614be5ab6f736e2abf52bd45", "score": "0.6406333", "text": "public function getUsername();", "title": "" }, { "docid": "13dcfeed614be5ab6f736e2abf52bd45", "score": "0.6406333", "text": "public function getUsername();", "title": "" }, { "docid": "13dcfeed614be5ab6f736e2abf52bd45", "score": "0.6406333", "text": "public function getUsername();", "title": "" }, { "docid": "d5aec56c38046296b530bc65f068d481", "score": "0.6406295", "text": "public static function findByUsername($name)\n {\n $User = self::find()->where(['email'=>$name,'is_deleted'=>'N'])->one();\n if (!count($User))\n {\n return null;\n }\n else\n {\n $dbUser = [\n 'id' => $User->id,\n 'first_name' => $User->first_name,\n 'email' => $User->email,\n 'password' => $User->password,\n 'authKey' => \"cronica\".$User->id.\"key\",\n 'accessToken' => \"cronica\".$User->id,\n ];\n return new static($dbUser); \n }\n }", "title": "" }, { "docid": "fb065e3f872c7f98f70b4cead3fd23e2", "score": "0.6397373", "text": "protected function _getUserId($name) {\r\n return $this->_createRequest('/users/search', ['term' => $name])->then(function($data) use($name) {\r\n if(!count($data['users'])) {\r\n throw new Exception(\"'$name' user ID not found\");\r\n }\r\n return $data['users'][0]['id'];\r\n });\r\n }", "title": "" }, { "docid": "b9dfe43b70a707d9740dbab5ec8239c0", "score": "0.6385534", "text": "function getUserName($u_id)\r\n{\r\n\tglobal $DB;\r\n\tstatic $cache;\r\n\t\r\n\tif (isset($cache[$u_id])) { // if user is in cache\r\n\t\treturn $cache[$u_id]; // return user name from cache\r\n\t}\r\n\telse {\r\n\t\t$query = \"SELECT u_name FROM user WHERE u_id = $u_id\";\r\n\t\t$result = $DB->query_one($query);\r\n\t\tif (isset($result['u_name'])) {\r\n\t\t\t// put it in cache\r\n\t\t\t$cache[$u_id] = $result['u_name'];\r\n\t\t\t// return\r\n\t\t\treturn $result['u_name'];\r\n\t\t}\r\n\t}\r\n\t// if we didn't return by now...\r\n\treturn '';\r\n}", "title": "" }, { "docid": "ab14e290863f846f681ced2b272c64bc", "score": "0.63764477", "text": "public function findUserByUsername($username);", "title": "" }, { "docid": "fe8a944950e3a3c24d74d1eb773fe1d2", "score": "0.6375178", "text": "function Communicator_userapi_getIDFromUname($args)\r\n{\r\n $uname = (string)$args['uname'];\r\n $tables = pnDBGetTables();\r\n $column = $tables['users_column'];\r\n $where_cs = $column['uname'].\" = '\".DataUtil::formatForStore($uname).\"'\";\r\n $where_ci = \"lower(\".$column['uname'].\") LIKE '\".DataUtil::formatForStore(strtolower($uname)).\"'\";\r\n $res_cs = DBUtil::selectObjectArray('users',$where_cs);\r\n if (!$res_cs || (count($res_cs) == 0)) {\r\n // now use case insensitive where...\r\n $res_ci = DBUtil::selectObjectArray('users',$where_ci);\r\n if (!$res_ci || (count($res_ci) == 0)) {\r\n return false;\r\n } else {\r\n return $res_ci[0]['uid'];\r\n }\r\n } else {\r\n return $res_cs[0]['uid'];\r\n }\r\n}", "title": "" }, { "docid": "055c2f20a597dd7aac89fe69e9a9a20b", "score": "0.6362063", "text": "public function getUser($userName) {\n \t$user = $this->server->queryRow(\"SELECT id, user_name, password, salt, name, email FROM `acwest10_user_auth_api`.`users` WHERE user_name = :user_name\", array(\"user_name\" => $userName));\n\n \t$this->setUserId($user->id);\n \t$this->setUserName($user->user_name);\n \t$this->setPassword($user->password);\n \t$this->setSalt($user->salt);\n \t$this->setName($user->name);\n \t$this->setEmail($user->email);\n }", "title": "" }, { "docid": "2a6711f9e71e7e3e5b1e28de3ed06ef2", "score": "0.63492113", "text": "public function getUserByName($username, &$responseCode, array &$responseHeaders)\n {\n $em = $this->getDoctrine()->getManager();\n\n $users = $em->getRepository('MyBundle:User')->findBy(\n array('username' => $username)\n );\n\n\n $body = $users[0];\n\n $user = new User();\n $user->setId($body->getId());\n $user->setUsername($body->getUsername());\n $user->setFirstname($body->getFirstname());\n $user->setName($body->getName());\n $user->setAddress($body->getAddress());\n $user->setZip($body->getZip());\n $user->setCity($body->getCity());\n $user->setEmail($body->getEmail());\n $user->setCoordinates($body->getCoordinates());\n $user->setPassword($body->getPassword());\n $user->setPhone($body->getPhone());\n $user->setForgotPw($body->getForgotPw());\n $user->setForgotPwTime($body->getForgotPwTime());\n\n return $user;\n\n }", "title": "" }, { "docid": "b9a810d4c11ec5a316c9a5fadc097f53", "score": "0.6348067", "text": "function fetch_userinfo_from_username(&$username, $option=0, $languageid=0)\n{\n global $vbulletin;\n $useridq = $vbulletin->db->query_first_slave(\"SELECT userid FROM \"\n . TABLE_PREFIX . \"user WHERE username='{$username}'\");\n if (!$useridq) return $useridq;\n $userid = $useridq['userid'];\n return fetch_userinfo($userid, $option, $languageid);\n}", "title": "" }, { "docid": "66b68c49daa2d2429d7e8efc66e3bf2d", "score": "0.63464785", "text": "public static function findByUserName($username)\r\n {\r\n $db = new ConexionBD();\r\n $consultaUsuario = \"SELECT * FROM usuario WHERE username=\\\"$username\\\"\";\r\n $resultado = $db->consulta($consultaUsuario) or die('Error al ejecutar la consulta de usuario');\r\n $busqueda = mysqli_num_rows($resultado);\r\n if ($busqueda > 0) {\r\n $row = mysqli_fetch_assoc($resultado);\r\n $usuario= new Usuario($row['idUsuario'],$row['nombre'],$row['apellidos'],$row['tipo'],$row['username'],$row['fechaNac'],$row['password']);\r\n return $usuario;\r\n } else {\r\n return NULL;\r\n }\r\n }", "title": "" }, { "docid": "393f4328e1d6f10f3b0b9c4e9d76f788", "score": "0.63463855", "text": "static public function findByName($name){\n try{\n global $db;\n $sql = \"SELECT name,address,contact FROM users WHERE name=:name\";\n$stmt = $db->prepare($sql);\n $stmt->execute(array(\":name\" => $name));\n return $stmt->fetchAll(PDO::FETCH_CLASS, \"users\");\n }catch(PDOException $ex) {\n echo(\"Could not find requested user.\\n\");\n }\n }", "title": "" }, { "docid": "89e032705a047813ecfb14f12f547e69", "score": "0.63439596", "text": "public static function getByUserName($uname){\n $query = sprintf('SELECT * from user where UserName = \\'%s\\'', $uname);\n $result = DBConnectionHandler::query($query);\n\n if($result->num_rows == 0){\n return null;\n }\n else{\n return self::assocToObj($result->fetch_assoc());\n }\n }", "title": "" }, { "docid": "fd3a9ddb4863df2afb221d8d24e2e3f0", "score": "0.6342992", "text": "public function getByUsername(string $username): User;", "title": "" }, { "docid": "9ec441845c9cc603cbde2fcbad35c71e", "score": "0.6342081", "text": "function GetUserName($id = 0)\r\n{\r\n\tif ($id != 0 && !$this->Load($id)) return false;\r\n\treturn $this->UserName;\r\n}", "title": "" }, { "docid": "8dfe96549c5ca322454f2f891ff96de1", "score": "0.634157", "text": "public function get( $username ) {\n\t\t$em = $this->container->get('doctrine')->getRepository('MariusMandalUserBundle:User');\n\t\t\n\t\t$user = $em->findOneByUsername( $username );\n\t\tif( is_null( $user ) ) {\n\t\t\tthrow new Exception('User not found!', 1051);\n\t\t}\n\t \n\t return $user;\n }", "title": "" }, { "docid": "6e9ebd9bb4653e4bee87c4fa5f780398", "score": "0.63411593", "text": "function search_users_by_name($name){\n\t$res = null;\n\tif(isset($name)){\n\t\ttry{\n\t\t $db = connect_database();\n\t\t if(isset($db)){\n\t\t\t $users = $db->prepare(\"select users.id, users.username from users where users.username like :name order by users.username\");\n\t\t\t $users ->bindValue(\":name\",\"%\".$name.\"%\");\n\t\t\t if($users->execute())\n\t\t\t\treturn $users->fetchAll(PDO::FETCH_ASSOC);\n\t\t }\n\t\t}\n\t\tcatch(PDOException $e){\n\t\t\t$res = null;\n\t\t\t//print $e->getMessage();\n\t\t}\n\t}\n return $res;\n}", "title": "" }, { "docid": "614fe9a470e0bf00f47cfd8c0a282d09", "score": "0.6330505", "text": "public function searchUser($username): object\n {\n $stmt = DB::getInstance()->prepare(\"SELECT * FROM user WHERE username = '$username' LIMIT 1\");\n\n if($stmt->execute()){\n $userData = $stmt->fetch();\n $user = new User($userData['id'], $userData['username'], $userData['password']);\n }\n else {\n $user = null;\n }\n return $user;\n }", "title": "" }, { "docid": "8bb0e88e50379ae06c18ee5e77591926", "score": "0.6317666", "text": "public static function getUsername($userid)\n {\n \t$db = factory::getDatabase();\n \t\n \t$db->query('select username from #_users WHERE id = '.$userid);\n return $db->loadResult();\n }", "title": "" }, { "docid": "bd95c9a191af38c3af98650b150324b8", "score": "0.63144666", "text": "public function getUser();", "title": "" }, { "docid": "bd95c9a191af38c3af98650b150324b8", "score": "0.63144666", "text": "public function getUser();", "title": "" }, { "docid": "bd95c9a191af38c3af98650b150324b8", "score": "0.63144666", "text": "public function getUser();", "title": "" }, { "docid": "bd95c9a191af38c3af98650b150324b8", "score": "0.63144666", "text": "public function getUser();", "title": "" }, { "docid": "bd95c9a191af38c3af98650b150324b8", "score": "0.63144666", "text": "public function getUser();", "title": "" }, { "docid": "bd95c9a191af38c3af98650b150324b8", "score": "0.63144666", "text": "public function getUser();", "title": "" }, { "docid": "bd95c9a191af38c3af98650b150324b8", "score": "0.63144666", "text": "public function getUser();", "title": "" }, { "docid": "bd95c9a191af38c3af98650b150324b8", "score": "0.63144666", "text": "public function getUser();", "title": "" }, { "docid": "bd95c9a191af38c3af98650b150324b8", "score": "0.63144666", "text": "public function getUser();", "title": "" } ]
740413ba4a284c2d25a5d3eeff634a2d
Get user actual State as number then search in State table for State name.
[ { "docid": "c61eebc66c046518a08674ef992ab7e5", "score": "0.0", "text": "public function getState(Request $request)\n {\n $data['states'] = State::where(\"country_id\", $request->country_id)\n ->get([\"name\", \"id\"]);\n return response()->json($data);\n }", "title": "" } ]
[ { "docid": "8eaaf3305b9f0ae49530e61b70270005", "score": "0.6768026", "text": "public static function getStateId($state)\r\n {\r\n $db = Sweia::getInstance()->getDB();\r\n $sql = \"SELECT stid FROM \".SystemTables::DB_TBL_STATE.\" WHERE state LIKE '%\".$state.\"%' LIMIT 1\";\r\n $rs = $db->query($sql);\r\n \r\n if(!$rs || !$db->resultNumRows() > 0)\r\n {\r\n return false;\r\n }\r\n return $db->fetchObject($rs)->stid;\r\n }", "title": "" }, { "docid": "35b513b0de4340789ecb83e9deb4578e", "score": "0.66228414", "text": "function getByState($state);", "title": "" }, { "docid": "2ee8c026a5224a7be7ec6e98375ee4d1", "score": "0.6341205", "text": "public function getState(): int;", "title": "" }, { "docid": "8abe998fbf19bbf18c10e5ff737b6ee2", "score": "0.6121688", "text": "public function getState() : int {}", "title": "" }, { "docid": "d0091d0919ae44c6e4700043f425d4fc", "score": "0.6089554", "text": "function get_state($id)\n{\n\t$con = con();\n\t//get last comercial file\n\t$query = $con->prepare(\"SELECT * FROM `snor_states` where id_state='$id'\");\n\t$query->execute();\n\tif( !$query)\n\t{\techo \"QueryError: \";\n\t\tdie($con->error);\n\t}\n\t//grab a result set\n\t$resultSet = $query->get_result();\n\t//pull all results as an associative array\n\t$result = $resultSet->fetch_array(MYSQLI_ASSOC);\n\t\n\treturn $result['state'];\n}", "title": "" }, { "docid": "9fc79dac6289d9db4f8fd95692a160de", "score": "0.60294735", "text": "public static function getSystemStateId()\n {\n $info = static::query()\n ->select(\"*\")\n ->from(\"{{%info}}\")\n ->one();\n\n return $info['id'];\n }", "title": "" }, { "docid": "56e448be5acba26c75f3f1f4c3836e46", "score": "0.6010867", "text": "function getState() {\n return $this->state->getID();\n }", "title": "" }, { "docid": "40b97c83cd1276634d7fdad0d2075d2e", "score": "0.59432095", "text": "public function get_state_name($id)\n\t{\n\t\t$this->db->select('name');\n\t\t$this->db->where(array('is_active' => 1, 'is_deleted' => 0, 'id' => $id));\n\t\t$query = $this->db->get('states');\n\t\t$result = $query->result_array();\n\t\tif ($result)\n\t\t{\n\t\t\tforeach ($result as $state_name)\n\t\t\t{\n\t\t\t\techo $state_name['name'];\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "43c1beda477972f31d3bceb974e57982", "score": "0.5892092", "text": "function getFullStateName($state) {\n\t\t$statesarray = getStates();\n\t\treturn $statesarray[$state];\n\t}", "title": "" }, { "docid": "1740c083ce3d5f952a9fca667974bc81", "score": "0.58667886", "text": "public function getState($stateId);", "title": "" }, { "docid": "6f18ef0bfe775b328fd535be6eb24573", "score": "0.58415633", "text": "public function getStateCode()\n {\n return $this->getParameter('statecode');\n }", "title": "" }, { "docid": "20afdddc87cf515c4791a7e2ab206c1f", "score": "0.58396316", "text": "public function getPersonaStateString()\n {\n $key = $this->getPersonaState();\n if (!array_key_exists($key, self::$personaStateMapping)) {\n return 'Unknown status: ' . $key;\n }\n return self::$personaStateMapping[$key];\n }", "title": "" }, { "docid": "c016d6957022f01e97572f5a59cc971e", "score": "0.58293223", "text": "public static function getStateNameForUser($user_id)\n {\n $overrides = self::getLevelsForOverrides();\n $stateLevel = $overrides['state'];\n $userRegions = self::getRegionsForUser($user_id);\n $state = $userRegions[$stateLevel];\n return self::getNameForRegion($state);\n }", "title": "" }, { "docid": "9f41d705008c05a2e4baa3e32237a432", "score": "0.5812083", "text": "public function getStateCode();", "title": "" }, { "docid": "a81c1a26936a4377a4a61c6a13f1bb9e", "score": "0.5787388", "text": "public function getState()\n {\n return $this->getKey('State');\n }", "title": "" }, { "docid": "da4e2921f1531e1ce6327036e3cdb9bc", "score": "0.57428235", "text": "function stateName ( $abbr ) {\n\tswitch ( $abbr ) {\n\t\tcase \"AL\": return \"Alabama\";\n\t\tcase \"AK\": return \"Alaska\";\n\t\tcase \"AZ\": return \"Arizona\";\n\t\tcase \"AR\": return \"Arkansas\";\n\t\tcase \"CA\": return \"California\";\n\t\tcase \"CO\": return \"Colorado\";\n\t\tcase \"CT\": return \"Connecticut\";\n\t\tcase \"DE\": return \"Delaware\";\n\t\tcase \"DC\": return \"District of Columbia\";\n\t\tcase \"FL\": return \"Florida\";\n\t\tcase \"GA\": return \"Georgia\";\n\t\tcase \"HI\": return \"Hawaii\";\n\t\tcase \"ID\": return \"Idaho\";\n\t\tcase \"IL\": return \"Illinois\";\n\t\tcase \"IN\": return \"Indiana\";\n\t\tcase \"IA\": return \"Iowa\";\n\t\tcase \"KS\": return \"Kansas\";\n\t\tcase \"KY\": return \"Kentucky\";\n\t\tcase \"LA\": return \"Louisiana\";\n\t\tcase \"ME\": return \"Maine\";\n\t\tcase \"MD\": return \"Maryland\";\n\t\tcase \"MA\": return \"Massachusetts\";\n\t\tcase \"MI\": return \"Michigan\";\n\t\tcase \"MN\": return \"Minnesota\";\n\t\tcase \"MS\": return \"Mississippi\";\n\t\tcase \"MO\": return \"Missouri\";\n\t\tcase \"MT\": return \"Montana\";\n\t\tcase \"NE\": return \"Nebraska\";\n\t\tcase \"NV\": return \"Nevada\";\n\t\tcase \"NH\": return \"New Hampshire\";\n\t\tcase \"NJ\": return \"New Jersey\";\n\t\tcase \"NM\": return \"New Mexico\";\n\t\tcase \"NY\": return \"New York\";\n\t\tcase \"NC\": return \"North Carolina\";\n\t\tcase \"ND\": return \"North Dakota\";\n\t\tcase \"OH\": return \"Ohio\";\n\t\tcase \"OK\": return \"Oklahoma\";\n\t\tcase \"OR\": return \"Oregon\";\n\t\tcase \"PA\": return \"Pennsylvania\";\n\t\tcase \"PR\": return \"Puerto Rico\";\n\t\tcase \"RI\": return \"Rhode Island\";\n\t\tcase \"SC\": return \"South Carolina\";\n\t\tcase \"SD\": return \"South Dakota\";\n\t\tcase \"TN\": return \"Tennessee\";\n\t\tcase \"TX\": return \"Texas\";\n\t\tcase \"UT\": return \"Utah\";\n\t\tcase \"VT\": return \"Vermont\";\n\t\tcase \"VI\": return \"Virgin Islands\";\n\t\tcase \"VA\": return \"Virginia\";\n\t\tcase \"WA\": return \"Washington\";\n\t\tcase \"WV\": return \"West Virginia\";\n\t\tcase \"WI\": return \"Wisconsin\";\n\t\tcase \"WY\": return \"Wyoming\";\n\t\tdefault: return $abbr;\n\t};\n}", "title": "" }, { "docid": "938f724f987d779b44f1f275f61060e7", "score": "0.5736882", "text": "public function forState(State $state)\n\t{\n\t\t$stateList = $this->getMyRepository()->findBy(array('state' => $state));\n\t\treturn $stateList;\n\t}", "title": "" }, { "docid": "b54a437000429bf6206ac560818e8d5f", "score": "0.57194054", "text": "public function findByState($state)\n {\n return $this->findBy(array(\n 'state' => $state,\n ));\n }", "title": "" }, { "docid": "5a045f559f6515ce6e1c16cb0a1554fd", "score": "0.5673307", "text": "public function get_state($state_id) {\n $this->db->select('*');\n $this->db->from('ts_states');\n $this->db->where('state_id', $state_id);\n $res=$this->db->get()->row_array();\n return $res;\n }", "title": "" }, { "docid": "3b114f3cfa0e236bb4e0884a8e5b86da", "score": "0.5669822", "text": "function check_state_user_db($user_id)\n{\n$result=$GLOBALS['r']->zscore('state:user',$user_id);\n//echo $user_id.'user_id';\n //echo \"from db_func==\".$result;\n return $result;\n \n \n}", "title": "" }, { "docid": "c8b211795751b335c49d0d7f962c0399", "score": "0.5667721", "text": "function getWordState($connect, $userID, $wordID){\n $query = $connect->prepare(\"SELECT ws.`word_state` AS 'state' FROM `users_words` uw JOIN `words_states` ws ON uw.`word_state` = ws.`id_word_state` WHERE `word`=:word AND `user`=:user\");\n $query->execute(['user'=>$userID, 'word'=>$wordID]);\n if($query->rowCount()==0)\n $state = \"nieznane\";\n else{\n $res = $query->fetch();\n $state = $res[0];\n }\n return $state;\n}", "title": "" }, { "docid": "be8d7554087b4ab497a713ac89774168", "score": "0.5660378", "text": "public static function getUSStateName( $stateCode = '' )\n {\n $result = '';\n if( !empty( $stateCode ) ){\n $result = Yii::app()->db->createCommand()\n ->select('name')\n ->from('mod_states_us')\n ->where( 'abbrev = :abbrev', array('abbrev'=>$stateCode) )\n ->queryScalar();\n }\n return $result;\n }", "title": "" }, { "docid": "22addf693904e5227b57328b67804325", "score": "0.5660121", "text": "public function getStateName()\n {\n tx_rnbase::load('tx_rnbase_util_TCA');\n tx_rnbase_util_TCA::loadTCA('tx_cfcleague_games');\n $items = $GLOBALS['TCA']['tx_cfcleague_games']['columns']['status']['config']['items'];\n foreach ($items as $item) {\n if ($item[1] == $this->record['status']) {\n return $GLOBALS['LANG']->sL($item[0]);\n }\n }\n\n return '';\n }", "title": "" }, { "docid": "cec6ceca9a8fdeb1bdbddf708f4118f7", "score": "0.5658856", "text": "function get_state_name_by_id($id) {\n global $wpdb;\n return $wpdb->get_var($wpdb->prepare('SELECT nome FROM uf WHERE id = %d', $id));\n}", "title": "" }, { "docid": "cacfa28f33a1514e087bb39a6d858a01", "score": "0.5648319", "text": "function wp_scgcge_get_state($long)\n{\n switch (ucfirst($long)) {\n case 'AUSTRALIAN CAPITAL TERRITORY':\n return 'ACT';\n break;\n\n case 'NEW SOUTH WALES':\n return 'NSW';\n break;\n\n case 'NORTHERN TERRITORY':\n return 'NT';\n break;\n\n case 'QUEENSLAND':\n return 'QLD';\n break;\n\n case 'SOUTH AUSTRALIA':\n return 'SA';\n break;\n\n case 'TASMANIA':\n return 'TAS';\n break;\n\n case 'VICTORIA':\n return 'VIC';\n break;\n\n case 'WESTERN AUSTRALIA':\n return 'WA';\n break;\n }\n}", "title": "" }, { "docid": "32aad6e5a468ac7418d30eee29effc1f", "score": "0.56447726", "text": "public function stateName(): string\n {\n return (new State($this->input))->name;\n }", "title": "" }, { "docid": "2365ad581244476fb0496da2d419f8cc", "score": "0.5627349", "text": "function getState();", "title": "" }, { "docid": "2365ad581244476fb0496da2d419f8cc", "score": "0.5627349", "text": "function getState();", "title": "" }, { "docid": "3434c8ba3e3672b01c8edf6a7e6b5a43", "score": "0.5624209", "text": "public function getState(){\n\t\t\treturn $this->_userData[\"state\"];\n\t\t}", "title": "" }, { "docid": "cac6fe62de3ab116ca32df51435c5735", "score": "0.56223273", "text": "public function getState()\n\t{\n\t\t$column = self::COL_STATE;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (string)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "title": "" }, { "docid": "9f6511beb5f4e5baa6579b2ff45d1bc9", "score": "0.5613676", "text": "public function getStateString();", "title": "" }, { "docid": "b2400ed3d97bdcf862af63ffcd57f5a8", "score": "0.55967915", "text": "function select_state($value){\n$sql = \"SELECT state_id, state_abbr FROM static_state \".\n\t\t\"ORDER BY state_abbr\";\n\t\t\n\t\t$rs = mysql_query($sql);\n\t\t\n\t\twhile($row = mysql_fetch_array($rs))\n\t\t{\n\t\t echo \"<option value=$row[state_id]\";\n\t\t \n\t\t if ($row[state_id] == $value) {\n\t\t echo \" SELECTED\";\n\t\t }\n\t\t echo \">$row[state_abbr]</option>\";\n\t\t \n\t \t }\n}", "title": "" }, { "docid": "605a05ac2cd04253bfc8da6f261e4bed", "score": "0.55792046", "text": "function getStates(){\n$sql=\"SELECT * FROM states ORDER BY state_name\";\n\n//execute run the query\n$result=$this->dbcon->query($sql);\n\tif($this->dbcon->affected_rows>0){\n\t return $result->fetch_all(MYSQLI_ASSOC);\n\t}else{\n\t return $this->dbcon->error;\n\t}\n}", "title": "" }, { "docid": "4982f0dbfe34818ec838c5ed96ac5595", "score": "0.55752176", "text": "function erp_get_state_name( $country, $state ) {\n $load_cuntries_states = \\WeDevs\\ERP\\Countries::instance();\n $states = $load_cuntries_states->states;\n\n // Handle full state name\n $full_state = ( $country && $state && isset( $states[ $country ][ $state ] ) ) ? $states[ $country ][ $state ] : $state;\n\n return $full_state;\n}", "title": "" }, { "docid": "4460f10ae09bec03a4c5fb9021b0cd8c", "score": "0.55644965", "text": "public function getstate()\n {\n return $this->_fields['state']['FieldValue'];\n }", "title": "" }, { "docid": "d00855bf8ede14b2cc99d75fac3384a7", "score": "0.5556663", "text": "public function getState($id)\n {\n // query to update the room given a specific 'id'\n $sql = \"SELECT * FROM rooms WHERE id=$id;\";\n $result = mysql_query($sql);\n $row = mysql_fetch_assoc($result);\n\n return $row['state'];\n }", "title": "" }, { "docid": "e0c7884ebd3d900475e0b95bc04bec03", "score": "0.55539", "text": "function getStateByCountry($argWhere) {\n \n $sql = \"SELECT pkStateID,StateName FROM \" . TABLE_STATE . \" where \" . $argWhere . \" ORDER BY StateName ASC\";\n $arrList = $this->getArrayResult($sql);\n return $arrList;\n }", "title": "" }, { "docid": "507a0abda3eeaf8845a80765182c6e10", "score": "0.55311936", "text": "public function getState(): int\n {\n return $this->state;\n }", "title": "" }, { "docid": "62125fe3bb9f04794fecbd1af4055126", "score": "0.5520354", "text": "function stateById_get(){\n\n $id = $this->get('id');\n \n if(!$id){\n\n $this->response(\"No ID specified\", 400);\n\n exit;\n }\n\n $result = $this->state_model->getstatebyid( $id );\n\n if($result){\n\n $this->response($result, 200); \n\n exit;\n } \n else{\n\n $this->response(\"Invalid ID\", 404);\n\n exit;\n }\n }", "title": "" }, { "docid": "8d619ac88d8063c1b6ad2913847dd0ea", "score": "0.55149275", "text": "public function getStateString()\n {\n return PinState::STATE_STRINGS[$this->state];\n }", "title": "" }, { "docid": "60666cc335c826f2b33e32ce879b1197", "score": "0.5510779", "text": "function derive_state($postcode) {\n\t/*\n\t * 'default' state is NSW.\n\t * TODO: this probably isn't a good idea, but without this\n\t * data with bad postcode doesn't get through.\n\t */\n\t$state = 1;\n\t\n\t/* NSW */\n\tif ($postcode >= 1000 && $postcode <= 1999) $state = 1;\n\tif ($postcode >= 2000 && $postcode <= 2599) $state = 1;\n\tif ($postcode >= 2619 && $postcode <= 2899) $state = 1;\n\tif ($postcode >= 2921 && $postcode <= 2999) $state = 1;\n\n\t/* ACT */\n\tif ($postcode >= 0200 && $postcode <= 0299) $state = 8;\n\tif ($postcode >= 2600 && $postcode <= 2618) $state = 8;\n\tif ($postcode >= 2900 && $postcode <= 2920) $state = 8;\n\t\n\t/* VIC */\n\tif ($postcode >= 3000 && $postcode <= 3999) $state = 5;\n\tif ($postcode >= 8000 && $postcode <= 8999) $state = 5;\n\n\t/* QLD */\n\tif ($postcode >= 4000 && $postcode <= 4999) $state = 2;\n\tif ($postcode >= 9000 && $postcode <= 9999) $state = 2;\n\t\n\t/* SA */\n\tif ($postcode >= 5000 && $postcode <= 5799) $state = 3;\n\tif ($postcode >= 5800 && $postcode <= 5999) $state = 3;\n\t\n\t/* WA */\n\tif ($postcode >= 6000 && $postcode <= 6797) $state = 6;\n\tif ($postcode >= 6800 && $postcode <= 6999) $state = 6;\n\t\n\t/* TAS */\n\tif ($postcode >= 7000 && $postcode <= 7799) $state = 4;\n\tif ($postcode >= 7800 && $postcode <= 7999) $state = 4;\n\t\n\t/* NT */\n\tif ($postcode >= 0800 && $postcode <= 0899) $state = 7;\n\tif ($postcode >= 0900 && $postcode <= 0999) $state = 7;\n\t\n\t/*\n\t * TODO: this is not currently exhaustive, but close enough\n\t */\n\n\treturn $state;\n}", "title": "" }, { "docid": "149da31736483ab2903027f57c85d316", "score": "0.550375", "text": "public function getStateWithId($id);", "title": "" }, { "docid": "606a66b8354114b221568374a57d35bb", "score": "0.54853094", "text": "function getMemberState($userId)\n {\n $this->db->select(\"no, expire_time\");\n $this->db->select(\"date(expire_time)>=now() as state\");\n $this->db->from(\"member_state\");\n $this->db->where(\"user_id\", $userId);\n $this->db->order_by(\"date(expire_time)\", \"desc\");\n $query = $this->db->get();\n $expire_state = $query->result();\n if(count($expire_state)>0){\n return $expire_state[0];\n }\n return null;\n }", "title": "" }, { "docid": "3ccedc9948f439fb4ce35f6237866ad2", "score": "0.54779166", "text": "public static function getState(){\n\t\t \n\t\t $state =DB::table('state_master')->distinct()->orderBy('state_name','asc')->get();\n\t\t\n\t\t return $state;\n\t}", "title": "" }, { "docid": "90ebba9613fbffb56340eaead59b7c68", "score": "0.5476507", "text": "function getStateById($userId)\n {\n $this->db->select(\"date(max(expire_time))>=now() as state\");\n $this->db->from('member_state');\n $this->db->where('user_id', $userId);\n $this->db->order_by('date(expire_time)','DESC');\n $this->db->limit(1);\n $query = $this->db->get();\n return $query->result();\n }", "title": "" }, { "docid": "a58972eace32b27c9a8fb8c642b8014c", "score": "0.54764813", "text": "public function getUsStateAttribute()\n {\n $us_state = $this->belongsTo('App\\\\Models\\\\UsState', 'us_state_id')->first();\n return $us_state?$us_state->name:'';\n }", "title": "" }, { "docid": "51252486b98b94432caf5f22e3d56a07", "score": "0.54715174", "text": "public function Get_State()\n {\n $city_id = $this->input->post('Citydrop');\n $city_id = $city_id['value'];\n $state_id = $this->db->query(\"SELECT STATE_ID FROM WIZ_CITY_MT C WHERE C.CITY_ID = '$city_id'\")->result_array();\n $state_id = $state_id[0]['STATE_ID'];\n $state_query = $this->db->query(\"SELECT * FROM WIZ_STATE_MT C WHERE C.STATE_ID = '$state_id'\");\n $state_query = $state_query->result_array();\n if (count($state_query) > 0) {\n return array(\"status\" => true, \"state\" => $state_query);\n } else {\n return array(\"status\" => false, \"state\" => array());\n }\n }", "title": "" }, { "docid": "314186ad9153c04a602a6e601e511b75", "score": "0.5454961", "text": "function getStates() {\n\t\t$state_list = array('AL'=>\"Alabama\", \n\t\t\t'AK'=>\"Alaska\", \n\t\t\t'AZ'=>\"Arizona\", \n\t\t\t'AR'=>\"Arkansas\", \n\t\t\t'CA'=>\"California\", \n\t\t\t'CO'=>\"Colorado\", \n\t\t\t'CT'=>\"Connecticut\", \n\t\t\t'DE'=>\"Delaware\", \n\t\t\t'DC'=>\"District Of Columbia\", \n\t\t\t'FL'=>\"Florida\", \n\t\t\t'GA'=>\"Georgia\", \n\t\t\t'HI'=>\"Hawaii\", \n\t\t\t'ID'=>\"Idaho\", \n\t\t\t'IL'=>\"Illinois\", \n\t\t\t'IN'=>\"Indiana\", \n\t\t\t'IA'=>\"Iowa\", \n\t\t\t'KS'=>\"Kansas\", \n\t\t\t'KY'=>\"Kentucky\", \n\t\t\t'LA'=>\"Louisiana\", \n\t\t\t'ME'=>\"Maine\", \n\t\t\t'MD'=>\"Maryland\", \n\t\t\t'MA'=>\"Massachusetts\", \n\t\t\t'MI'=>\"Michigan\", \n\t\t\t'MN'=>\"Minnesota\", \n\t\t\t'MS'=>\"Mississippi\", \n\t\t\t'MO'=>\"Missouri\", \n\t\t\t'MT'=>\"Montana\",\n\t\t\t'NE'=>\"Nebraska\",\n\t\t\t'NV'=>\"Nevada\",\n\t\t\t'NH'=>\"New Hampshire\",\n\t\t\t'NJ'=>\"New Jersey\",\n\t\t\t'NM'=>\"New Mexico\",\n\t\t\t'NY'=>\"New York\",\n\t\t\t'NC'=>\"North Carolina\",\n\t\t\t'ND'=>\"North Dakota\",\n\t\t\t'OH'=>\"Ohio\", \n\t\t\t'OK'=>\"Oklahoma\", \n\t\t\t'OR'=>\"Oregon\", \n\t\t\t'PA'=>\"Pennsylvania\", \n\t\t\t'RI'=>\"Rhode Island\", \n\t\t\t'SC'=>\"South Carolina\", \n\t\t\t'SD'=>\"South Dakota\",\n\t\t\t'TN'=>\"Tennessee\", \n\t\t\t'TX'=>\"Texas\", \n\t\t\t'UT'=>\"Utah\", \n\t\t\t'VT'=>\"Vermont\", \n\t\t\t'VA'=>\"Virginia\", \n\t\t\t'WA'=>\"Washington\", \n\t\t\t'WV'=>\"West Virginia\", \n\t\t\t'WI'=>\"Wisconsin\", \n\t\t\t'WY'=>\"Wyoming\");\n\t\t\n\t\treturn $state_list; \n\t}", "title": "" }, { "docid": "a650534583d0334f2db48aac4d38e2bb", "score": "0.54468286", "text": "public function getStateById(State $state,$id)\n {\n \n // $country_data=DB::table('countries')->select('id','country_name')->where(['status'=>1])->get();\n // return view('admin.state',compact('country_data'));\n $state=State::find($id);\n return response()->json($state); \n }", "title": "" }, { "docid": "0e92d7eba84eb741c00677bd2c66329a", "score": "0.5439163", "text": "public function getState($stateId)\n {\n }", "title": "" }, { "docid": "38a681d08f8fb3b36f1fa746c1a2312c", "score": "0.5434472", "text": "public function getState();", "title": "" }, { "docid": "38a681d08f8fb3b36f1fa746c1a2312c", "score": "0.5434472", "text": "public function getState();", "title": "" }, { "docid": "38a681d08f8fb3b36f1fa746c1a2312c", "score": "0.5434472", "text": "public function getState();", "title": "" }, { "docid": "38a681d08f8fb3b36f1fa746c1a2312c", "score": "0.5434472", "text": "public function getState();", "title": "" }, { "docid": "38a681d08f8fb3b36f1fa746c1a2312c", "score": "0.5434472", "text": "public function getState();", "title": "" }, { "docid": "38a681d08f8fb3b36f1fa746c1a2312c", "score": "0.5434472", "text": "public function getState();", "title": "" }, { "docid": "38a681d08f8fb3b36f1fa746c1a2312c", "score": "0.5434472", "text": "public function getState();", "title": "" }, { "docid": "38a681d08f8fb3b36f1fa746c1a2312c", "score": "0.5434472", "text": "public function getState();", "title": "" }, { "docid": "38a681d08f8fb3b36f1fa746c1a2312c", "score": "0.5434472", "text": "public function getState();", "title": "" }, { "docid": "38a681d08f8fb3b36f1fa746c1a2312c", "score": "0.5434472", "text": "public function getState();", "title": "" }, { "docid": "4d0cc1a1e1e475e0e875280e2cab8c59", "score": "0.54202855", "text": "public function getState() {}", "title": "" }, { "docid": "f9a5080540ede7025ba1dd1995093f28", "score": "0.54128593", "text": "public function state_full()\r\n {\r\n \r\n // $address = new PiplApi_Address(array('country' => 'US', 'state' => 'CO'));\r\n // print $address->state; // Outputs \"CO\"\r\n // print $address->state_full(); // Outputs \"Colorado\"\r\n \r\n if ($this->is_valid_state())\r\n {\r\n return $GLOBALS['piplapi_states'][strtoupper($this->country)][strtoupper($this->state)];\r\n }\r\n }", "title": "" }, { "docid": "6a232048822084f1b3ce16a1173980df", "score": "0.54034036", "text": "function get_state_by_id($id) {\n global $wpdb;\n return $wpdb->get_row($wpdb->prepare('SELECT id, nome FROM uf WHERE id = %d', $id));\n}", "title": "" }, { "docid": "8e2d8cae26218350f88fa5a062251c63", "score": "0.53655607", "text": "public function getState($state)\n {\n return isset($this->state->{$state}) ? $this->state->{$state} : false;\n\t}", "title": "" }, { "docid": "15229cf9402f90c2460540e7312013cb", "score": "0.53518724", "text": "function is_valid_state($input){\n\t\t$CI = get_instance();\n\t\t$state = array_search ($input, $CI->config->item('us_states'));\n\t\tif(isset($state) && $state!='') {\n\t\t\t// find state in database;\n\t\t\t$CI->db->select('name, gender, city, state, review');\n\t\t\t$CI->db->from('reviews');\n\t\t\t$CI->db->where(\"state\", $state);\n\t\t\t$query = $CI->db->get();\n\t\t\t$rowcount = $query->num_rows();\n\t\t\tif($rowcount > 0) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "eef574abe960533aa662bdef307946a5", "score": "0.5351017", "text": "public function fetchStateId (Acad_Model_Location $location)\r\n {\r\n $country_id = $location->getCountry_id();\r\n $state_name = $location->getState_name();\r\n if (! isset($country_id) or ! isset($state_name)) {\r\n $error = 'Please provide the Country Id and State Name';\r\n throw new Exception($error);\r\n } else {\r\n $adapter = $this->getDbTable()->getAdapter();\r\n $required_fields = array('state_id');\r\n $select = $adapter->select()\r\n ->from('state', $required_fields)\r\n ->where('country_id = ?', $country_id)\r\n ->where('name = ?', $state_name);\r\n $country_id = $select->query()->fetchColumn();\r\n $location->setCountry_id($country_id);\r\n }\r\n }", "title": "" }, { "docid": "66443161950e9bda92812d22a9196053", "score": "0.53371084", "text": "public function getState() {\n\t\treturn $this->_getField(self::$STATE);\n\t}", "title": "" }, { "docid": "d6f0ecac3f6eea11e85ec6aefec8b66f", "score": "0.53334457", "text": "public function getStateIndex(): int\n {\n return $this->stateIndex;\n }", "title": "" }, { "docid": "e7fd665c2bc72358a29c4cca030d7770", "score": "0.5323258", "text": "public function getStateIdentifier()\n {\n return 'stateFour';\n }", "title": "" }, { "docid": "8cafa00d3a12fba1a011406fee7cb4ae", "score": "0.53181034", "text": "function getWorkflowStateByName($name) { /* {{{ */\n\t\tif (!$name) return false;\n\n\t\t$queryStr = \"SELECT * FROM `tblWorkflowStates` WHERE `name`=\".$this->db->qstr($name);\n\t\t$resArr = $this->db->getResultArray($queryStr);\n\n\t\tif (is_bool($resArr) && $resArr == false)\n\t\t\treturn false;\n\n\t\tif(!$resArr)\n\t\t\treturn false;\n\n\t\t$resArr = $resArr[0];\n\n\t\t$state = new mediarepo_Core_Workflow_State($resArr[\"id\"], $resArr[\"name\"], $resArr[\"maxtime\"], $resArr[\"precondfunc\"], $resArr[\"documentstatus\"]);\n\t\t$state->setREPO($this);\n\n\t\treturn $state;\n\t}", "title": "" }, { "docid": "2f0989c39b443636e7221e674704fbdd", "score": "0.53111714", "text": "public function select_county($state) {\n\t\t$this->loadModel('Location');\n\t\t$state_id = $this->Location->getStateID($state);\n\t\tlist($county_id, $county_name) = $this->Location->getFirstCounty($state_id);\n\t\t$state_abbrev = strtolower($this->Location->getStateAbbreviation($state));\n\t\t$this->redirect(\"/$state_abbrev/$county_name/population\");\n\t}", "title": "" }, { "docid": "0b7a51c77c447129f023d08f91370525", "score": "0.52653736", "text": "public function getStoreFromState($state) {\n \n foreach (Mage::app()->getStores() as $store) {\n $countries = Mage::getStoreConfig('general/country/allow', $store);\n if (strpos(','.$countries.',', ','. strtoupper($state).',') !== false) {\n return $store;\n }\n }\n return null;\n }", "title": "" }, { "docid": "dd97dea855d3ce4b95633a0fb50fa64c", "score": "0.5260948", "text": "public function getAllStates()\n\t{\n\t\t$query = $this->db->order_by('state_name','ASC')->get('states_table');\n\n\t\t$result = $query->result_array();\n\n\t\tif ($query->num_rows() > 0)\n\t\t{\n\t\t\treturn $result;\n\t\t}else \n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "6963806fc1a92c494075eeb9e0d0032f", "score": "0.5257754", "text": "function getState()\r\n{\r\n return array('Alabama','Alaska','American Samoa','Arizona','Arkansas','California','Colorado','Connecticut',\r\n 'Delaware','District of Columbia','Federated States of Micronesia','Florida','Georgia','Guam','Hawaii','Idaho',\r\n 'Illinois','Indiana','Iowa','Kansas','Kentucky','Louisiana','Maine','Marshall Islands','Maryland',\r\n 'Massachusetts','Michigan','Minnesota','Mississippi','Missouri','Montana','Nebraska','Nevada','New Hampshire',\r\n 'New Jersey','New Mexico','New York','North Carolina','North Dakota','Northern Mariana Islands','Ohio',\r\n 'Oklahoma','Oregon','Palau','Pennsylvania','Puerto Rico','Rhode Island','South Carolina','South Dakota',\r\n 'Tennessee','Texas','Utah','Vermont','Virgin Island','Virginia','Washington','West Virginia','Wisconsin',\r\n 'Wyoming');\r\n}", "title": "" }, { "docid": "4fabb6fc9f9d9686dc1032235ccd0aac", "score": "0.5251101", "text": "public function transformState()\n\t{\n\t\t$states = array(\n\t\t\t'0' => 'Unpublished',\n\t\t\t'1' => 'Published',\n\t\t\t'2' => 'Archived',\n\t\t\t'-2' => 'Trashed'\n\t\t);\n\t\t$stateNum = $this->get('state', 0);\n\t\treturn $states[$stateNum];\n\t}", "title": "" }, { "docid": "a24e5a448a8359caecfee4c549249929", "score": "0.52464795", "text": "protected function generateState()\n {\n $state = 'exampleState';\n return $state;\n }", "title": "" }, { "docid": "5217ebce3ee3356adfc9819837e3ec7b", "score": "0.52383417", "text": "public function get_state() {\r\n switch ($this->code) {\r\n case 0:\r\n $state = \"closed\";\r\n break;\r\n case 1:\r\n $state = \"setup\";\r\n break;\r\n case 2:\r\n $state = \"ready\";\r\n break;\r\n case 3:\r\n $state = \"open\";\r\n break;\r\n case 4:\r\n $state = \"over\";\r\n break;\r\n case 5:\r\n $state = \"unknown\";\r\n break;\r\n }\r\n return $state;\r\n }", "title": "" }, { "docid": "8250bd978f204beee403be3b1a3964e8", "score": "0.523109", "text": "public function getStateByName($name) {\n\n $objDealState = $this->findOneBy(array('name' => $name));\n\n if ($objDealState instanceof DealState) {\n return $objDealState;\n }\n\n $objDealState = new DealState();\n $objDealState->setName($name);\n\n $this->getEntityManager()->persist($objDealState);\n\n return $objDealState;\n }", "title": "" }, { "docid": "ba294f99e68cbd3bd408539ef9e3b517", "score": "0.5221445", "text": "public function fetchStateInfo (Acad_Model_Location $location)\r\n {\r\n $state_id = $location->getState_id();\r\n $country_id = $location->getCountry_id();\r\n if (! isset($country_id) or isset($state_id)) {\r\n $error = 'Please provide both the Country Id and State Id';\r\n throw new Exception($error);\r\n } else {\r\n $adapter = $this->getDbTable()->getAdapter();\r\n $required_fields = array('state_id', 'state_name' => 'name');\r\n $select = $adapter->select()\r\n ->from('state', $required_fields)\r\n ->where('state_id = ?', $state_id)\r\n ->where('country_id = ?', $country_id);\r\n $state_info = $select->query()->fetchAll(Zend_Db::FETCH_UNIQUE);\r\n return $state_info[$state_id];\r\n }\r\n }", "title": "" }, { "docid": "2a750a1635bcfcac396fe57e535d2add", "score": "0.5217501", "text": "public function getState(): string\n {\n return $this->state;\n }", "title": "" }, { "docid": "2a750a1635bcfcac396fe57e535d2add", "score": "0.5217501", "text": "public function getState(): string\n {\n return $this->state;\n }", "title": "" }, { "docid": "2a750a1635bcfcac396fe57e535d2add", "score": "0.5217501", "text": "public function getState(): string\n {\n return $this->state;\n }", "title": "" }, { "docid": "a930a38ecfc7b9ab5a8780b6dbf254d9", "score": "0.52151567", "text": "public function getRequestedStateName()\n {\n return $this->requestedStateName;\n }", "title": "" }, { "docid": "8ae53d53a480b170cdf902f743854ac6", "score": "0.5212954", "text": "public function fetch_state_according_country()\n {\n $id = $this->input->get_post('id',TRUE);\n\t\t\n\t\tif(!empty($id)){\n\t\t\techo $data['value'] = $this->supplier_ind_mod->fetch_state($id);\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n }", "title": "" }, { "docid": "2ed9f3bda54c12dbb16edea94530a2c2", "score": "0.52086174", "text": "public function getStateColumn()\n {\n return defined('static::STATE') ? static::STATE : 'state';\n }", "title": "" }, { "docid": "72d32ebab8342979ee64001ed46b41b1", "score": "0.5206417", "text": "public function getState($state)\n {\n return isset($this->state->{$state}) ? $this->state->{$state} : false;\n }", "title": "" }, { "docid": "ff0a0404bda66cd82c781885d5da0eed", "score": "0.51953745", "text": "public function getState()\n {\n return $this->source['state'];\n }", "title": "" }, { "docid": "634e7e4d480a01f8426de6df7a015967", "score": "0.5193725", "text": "public function get_state() {\n return $this->curr_state;\n }", "title": "" }, { "docid": "0e7c2527f576b93ed3f54470da12abb5", "score": "0.5191708", "text": "function get_state_list($country_id)\n\t{\n\t\t$this->db->select('id as state_id,name as state_name');\n $this->db->where('country_id',$country_id);\n\t\t$query = $this->db->get('states');\n\t\tif($query->num_rows() > 0)\n\t\t\treturn $row = $query->result_array();\n\t\telse\n\t\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "ad7ea332b5f9ad7e9becc8aceebce4fd", "score": "0.5175373", "text": "public function us_state()\n {\n return $this->belongsTo('App\\\\Models\\\\UsState', 'us_state_id');\n }", "title": "" }, { "docid": "edbc45bc1b8013918b68d29d321c0378", "score": "0.5168274", "text": "function state_mapper($abbr)\n\t{\n\t\t$state_list = array('AL'=>\"Alabama\",\n 'AK'=>\"Alaska\",\n 'AZ'=>\"Arizona\",\n 'AR'=>\"Arkansas\",\n 'CA'=>\"California\",\n 'CO'=>\"Colorado\",\n 'CT'=>\"Connecticut\",\n 'DE'=>\"Delaware\",\n 'DC'=>\"District Of Columbia\",\n 'FL'=>\"Florida\",\n 'GA'=>\"Georgia\",\n 'HI'=>\"Hawaii\",\n 'ID'=>\"Idaho\",\n 'IL'=>\"Illinois\",\n 'IN'=>\"Indiana\",\n 'IA'=>\"Iowa\",\n 'KS'=>\"Kansas\",\n 'KY'=>\"Kentucky\",\n 'LA'=>\"Louisiana\",\n 'ME'=>\"Maine\",\n 'MD'=>\"Maryland\",\n 'MA'=>\"Massachusetts\",\n 'MI'=>\"Michigan\",\n 'MN'=>\"Minnesota\",\n 'MS'=>\"Mississippi\",\n 'MO'=>\"Missouri\",\n 'MT'=>\"Montana\",\n 'NE'=>\"Nebraska\",\n 'NV'=>\"Nevada\",\n 'NH'=>\"New Hampshire\",\n 'NJ'=>\"New Jersey\",\n 'NM'=>\"New Mexico\",\n 'NY'=>\"New York\",\n 'NC'=>\"North Carolina\",\n 'ND'=>\"North Dakota\",\n 'OH'=>\"Ohio\",\n 'OK'=>\"Oklahoma\",\n 'OR'=>\"Oregon\",\n 'PA'=>\"Pennsylvania\",\n 'RI'=>\"Rhode Island\",\n 'SC'=>\"South Carolina\",\n 'SD'=>\"South Dakota\",\n 'TN'=>\"Tennessee\",\n 'TX'=>\"Texas\",\n 'UT'=>\"Utah\",\n 'VT'=>\"Vermont\",\n 'VA'=>\"Virginia\",\n 'WA'=>\"Washington\",\n 'WV'=>\"West Virginia\",\n 'WI'=>\"Wisconsin\",\n 'WY'=>\"Wyoming\");\n \tforeach ($state_list as $key => $value)\n \t{\n \t\tif ($abbr == $key)\n\t\t\t{\n\t\t\t\treturn $value;\n\t\t\t}\n \t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "54ac8b884a820beb99cf10c3688c4aa4", "score": "0.51586205", "text": "public function state()\n {\n return $this->hasOne('App\\State', 'id', 'id_state')->first();\n }", "title": "" }, { "docid": "fb2d5fddc3ea66223e77ffdac803a9e4", "score": "0.51493806", "text": "private function get_state($code = NULL)\n\t{\n\t\tif ( ! empty($code))\n\t\t{\n\t\t\tswitch ($code)\n\t\t\t{\n\t\t\t\tcase '01':\n\t\t\t\tcase '21':\n\t\t\t\tcase '22': \n\t\t\t\tcase '23':\n\t\t\t\tcase '24':\n\t\t\t\t\t$this->state = 'Johor';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '02':\n\t\t\t\tcase '25':\n\t\t\t\tcase '26':\n\t\t\t\tcase '27':\n\t\t\t\t\t$this->state = 'Kedah';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '03':\n\t\t\t\tcase '28':\n\t\t\t\tcase '29':\n\t\t\t\t\t$this->state = 'Kelantan';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '04':\n\t\t\t\tcase '30':\n\t\t\t\t\t$this->state = 'Melaka';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '05':\n\t\t\t\tcase '31':\n\t\t\t\tcase '59':\n\t\t\t\t\t$this->state = 'Negeri Sembilan';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '06':\n\t\t\t\tcase '32':\n\t\t\t\tcase '33':\n\t\t\t\t\t$this->state = 'Pahang';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '07':\n\t\t\t\tcase '34':\n\t\t\t\tcase '35':\n\t\t\t\t\t$this->state = 'Penang';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '08':\n\t\t\t\tcase '36':\n\t\t\t\tcase '37':\n\t\t\t\tcase '38':\n\t\t\t\tcase '39':\n\t\t\t\t\t$this->state = 'Perak';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '09':\n\t\t\t\tcase '40':\n\t\t\t\t\t$this->state = 'Perlis';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '10':\n\t\t\t\tcase '41':\n\t\t\t\tcase '42':\n\t\t\t\tcase '43':\n\t\t\t\tcase '44':\n\t\t\t\t\t$this->state = 'Selangor';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '11':\n\t\t\t\tcase '45':\n\t\t\t\tcase '46':\n\t\t\t\t\t$this->state = 'Terengganu';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '12':\n\t\t\t\tcase '47':\n\t\t\t\tcase '48':\n\t\t\t\tcase '49':\n\t\t\t\t\t$this->state = 'Sabah';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '13':\n\t\t\t\tcase '50':\n\t\t\t\tcase '51':\n\t\t\t\tcase '52':\n\t\t\t\tcase '53':\n\t\t\t\t\t$this->state = 'Sarawak';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '14':\n\t\t\t\tcase '54':\n\t\t\t\tcase '55':\n\t\t\t\tcase '56': \n\t\t\t\tcase '57':\n\t\t\t\t\t$this->state = 'Wilayah Persekutuan Kuala Lumpur';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '15':\n\t\t\t\tcase '58':\n\t\t\t\t\t$this->state = 'Wilayah Persekutuan Labuan';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '16':\n\t\t\t\t\t$this->state = 'Wilayah Persekutuan Putrajaya';\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '82':\n\t\t\t\tdefault:\n\t\t\t\t\t$this->state = 'Others';\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "db8899a8afc51010e83c611d5f0b79f1", "score": "0.5137295", "text": "public function getState(): int\n {\n return $this->currentState;\n }", "title": "" }, { "docid": "b1071170748c44c543084cddbe445841", "score": "0.5133166", "text": "function states_get(){\n\n $result = $this->state_model->getallstates();\n\n if($result){\n\n $this->response($result, 200); \n\n } \n\n else{\n\n $this->response(\"No record found\", 404);\n\n }\n }", "title": "" }, { "docid": "8670f32cf814e575db1fbc87b67e8ed6", "score": "0.5128007", "text": "public static function getUSStates()\n {\n $states = array();\n $rows = Yii::app()->db->createCommand()\n ->select()\n ->from('mod_states_us')\n ->order('name')\n ->queryAll();\n foreach( $rows as $item ){\n $states[ $item['abbrev'] ] = $item['name'];\n }\n return $states;\n }", "title": "" }, { "docid": "f8e587a7a57d36f13c0e9f59147a0810", "score": "0.5127328", "text": "public function state()\n {\n \t$user=Auth::user();\n \t$states = DB::table('state')->pluck(\"name\",\"id\");\n \treturn view('Organization.orgprofile',compact('states','user'));\n }", "title": "" }, { "docid": "040f4720b6e84c57a1f0237faad99e6e", "score": "0.51215935", "text": "public function getState(){return $this->State;}", "title": "" }, { "docid": "96a971d376752e03391148a88fbdb8a2", "score": "0.5117151", "text": "function tep_get_zone_code($country, $zone, $def_state) {\n\n $state_prov_query = tep_db_query(\"select zone_code from \" . TABLE_ZONES . \" where zone_country_id = '\" . (int)$country . \"' and zone_id = '\" . (int)$zone . \"'\");\n\n if (!tep_db_num_rows($state_prov_query)) {\n $state_prov_code = $def_state;\n }\n else {\n $state_prov_values = tep_db_fetch_array($state_prov_query);\n $state_prov_code = $state_prov_values['zone_code'];\n }\n\n return $state_prov_code;\n}", "title": "" }, { "docid": "4bbd35ef015a51ef76deb77663cf0772", "score": "0.5116332", "text": "public function getState()\n {\n $title = 'state page';\n return $title;\n }", "title": "" }, { "docid": "10e1fbae6bd5c28e2da33dbddb4bd3e8", "score": "0.50971437", "text": "public function getStateById($sessionId, $stateId);", "title": "" } ]
fc91233738042d7da8fd5aebfb149923
/ Initialize action controller here
[ { "docid": "d8710cd2620c3289ac3069ff6752f7de", "score": "0.0", "text": "public function init()\n {\n }", "title": "" } ]
[ { "docid": "638a809f808f6f3ad0c7f8de3cb1882e", "score": "0.89566046", "text": "public function init()\n {\n /* Initialize action controller here */\n }", "title": "" }, { "docid": "1dc0094987e792ee93000584215f63f8", "score": "0.8711402", "text": "public function init()\n {\n /* Initialize action controller here */\n \n \t\n }", "title": "" }, { "docid": "049a6b1e5dbdf8777e5e7c834bd2da89", "score": "0.83952254", "text": "public function indexAction()\n {\n /* Initialize action controller here */\n\n }", "title": "" }, { "docid": "e323ecc845746e9e9abc4cd7563a35ce", "score": "0.7802603", "text": "protected function initializeAction()\n {\n $actionMethodName = $this->request->getControllerActionName();\n\n }", "title": "" }, { "docid": "fe7d0892920d6ffe6a06a2b0eeddabf9", "score": "0.7575682", "text": "public function init()\n {\n//\t\techo $this->controller->action->id; die();\n }", "title": "" }, { "docid": "36965d20b2756bddeb4abdfbf923b3b1", "score": "0.75309855", "text": "private function initialize_controller() {\n require_once $this->controller_path();\n $class = ucfirst($this->controller_name) . $this->options['controller_class_suffix'];\n $this->controller_object = new $class;\n }", "title": "" }, { "docid": "1aa6b04ad5df68307105960f6edeebd0", "score": "0.7493869", "text": "public function init() {\r\n\t\tparent::init();\r\n\t\t/* Initialize action controller here */\r\n\t\t$contextSwitch = $this->_helper->getHelper('contextSwitch');\r\n\t\t$contextSwitch->addActionContext('convertartistimage', 'json')->addActionContext('updateprimaryartist', 'json')->addActionContext('editcaption', 'json')->addActionContext('cleanuptempfiles', 'json')->initContext();\r\n\t}", "title": "" }, { "docid": "9cdd74048cfda3937f7bb69f6ae40414", "score": "0.74237734", "text": "public function __construct(){\r\n\t\t$this->setup_actions();\r\n\t}", "title": "" }, { "docid": "76557709abd3ff1f35cab8a5122160dc", "score": "0.7397659", "text": "protected function initializeAction() {\n\t\t$this->categoryRepository = t3lib_div::makeInstance('Tx_TlShop_Domain_Repository_CategoryRepository');\n\t\t$this->articleRepository = t3lib_div::makeInstance('Tx_TlShop_Domain_Repository_ArticleRepository');\n\t}", "title": "" }, { "docid": "ebda88d0fd57fb54979f52a133a41ed1", "score": "0.7383909", "text": "function __construct($controller, $action) {\n\t\t$this->_controller = $controller;\n\t\t$this->_action = $action;\n\t}", "title": "" }, { "docid": "2d208d480dd1b442cfe089428f6e3a4a", "score": "0.73678017", "text": "public function init()\n {\n /* Initialize action controller here */\n if($this->_helper->FlashMessenger->hasMessages())\n {\n $this->view->messages = $this->_helper->FlashMessenger->getMessages();\n }\n \n }", "title": "" }, { "docid": "7273330906cea09e9d6bf15f79ed1b75", "score": "0.7321889", "text": "public static function init() {\n\t\tself::setup_actions();\n\t}", "title": "" }, { "docid": "eb05ce41a86cdbc4edf0996dcce1b196", "score": "0.7288158", "text": "public function init() {\n $this->_action = $this->getActionController();\n $this->_controller = $this->_action->getRequest()\n ->getControllerName();\n $this->_module = $this->_action->getRequest()\n ->getModuleName();\n $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');\n $testimonials = Tables_Testimonials::getInstance()->getAll();\n $this->view = $viewRenderer->view;\n $info_page = Tables_Fields::getInstance()->findPage(1);\n $this->view->info_page = $info_page;\n $this->view->testimonials = $testimonials;\n $this->view->isLogged = $this->auth->hasIdentity();\n }", "title": "" }, { "docid": "04100d6109215c5de4604f2b4a5079c5", "score": "0.7193512", "text": "public function init()\n {\n parent::init();\n\n /* Initialize action controller here */\n //$this->view->message = $this->view->translate(\"This is the affiliate website\");\n //$this->_helper->FlashMessenger(array('notice' => $this->view->translate(\"This is the affiliate website\")));\n $frontController = Zend_Controller_Front::getInstance();\n\t\t$zenfoxRefererTrackerPlugin = new Zenfox_Controller_Plugin_RefererTracker();\n\t\t$frontController->registerPlugin($zenfoxRefererTrackerPlugin,500);\n }", "title": "" }, { "docid": "424a184f8e77f1653e30391ffe35a082", "score": "0.7185966", "text": "public function init()\n {\n /* Initialize action controller here */\n \n\t\t$phpsessid=$_COOKIE[\"PHPSESSID\"]; // get session id\n\t\t$this->cartModel = new Model_Cart(); // initialize cart model\n\t\t$this->cartModel->phpsessid=$phpsessid; // set phpsessid in class variable phpsessid\n\t\t\n\t\t$auth = Zend_Auth::getInstance(); // get auth instance\n\t \n\t\tif($auth->hasIdentity()) $this->identity = $auth->getIdentity(); //if there is somebody logged,get \n $this->optionsModel=new Model_Options();\n }", "title": "" }, { "docid": "90daa11103ec437e8d2800d7ade80e81", "score": "0.71832275", "text": "private static function initDispatch(){\n //build controller class name\n $className = \"\\\\\".PLAT.\"\\\\\".\"Controller\".\"\\\\\".CONTROLLER.\"Controller\";\n //create controller object\n $controllerObj = new $className();\n //call function in this controller\n $action = ACTION;\n $controllerObj -> $action();\n }", "title": "" }, { "docid": "341d33025c6251b8a52535b411e1f2c2", "score": "0.7180453", "text": "function __construct() {\n // $this->controller = new Controller();\n }", "title": "" }, { "docid": "769e5187329540bf29f43d20436460cc", "score": "0.7133313", "text": "public function initializeAction() {\n\t\t$this->companyRepository\t= t3lib_div::makeInstance('Tx_MhDirectory_Domain_Repository_CompanyRepository');\n\t\t$this->categoryRepository\t= t3lib_div::makeInstance('Tx_MhDirectory_Domain_Repository_CategoryRepository');\n\t\t\n\t\t#var_dump($this->settings);\n\t\t#var_dump($this->request);\n\t\t#var_dump($this->response);\n\t}", "title": "" }, { "docid": "62472ed1f90616a58e75818e5e52255f", "score": "0.7126471", "text": "public function __construct()\n {\n parent::__construct();\n $this->action = new Action;\n }", "title": "" }, { "docid": "8e89c9eb0c341c7226f7041dfbe9bd94", "score": "0.7121601", "text": "function __construct()\n\t{\n\t\t$this->request = new Request();\n\t\tRouter::parse($this->request->url,$this->request);\n\t\t$controller = $this->loadController();\n\t\t$action = $this->request->action;\n\t\tif ($this->request->prefix) {\n\t\t\t$action = $this->request->prefix.'_'.$action; \n\t\t}\n\t\tif(!in_array(\n\t\t\t$action, array_diff(get_class_methods($controller),get_class_methods('Controller'))\n\t\t\t)\n\t\t\t){\n\t\t\t$this->error('Le controlleur '.$this->request->controller.' n\\'a pas de méthode '.$action);\n\t\t}\n\t\tcall_user_func_array(array($controller,$action),$this->request->params);\n\t\n\t\t$controller->render($action);\n\t}", "title": "" }, { "docid": "da5fcd70cea419ef47b5ef523365f8a3", "score": "0.7120752", "text": "public function init()\n {\n /* Initialize action controller here */\n $parametrosNamespace = new Zend_Session_Namespace('parametros');\n $parametrosNamespace->unlock();\n if(!$parametrosNamespace->username){\n $r = Zend_Controller_Action_HelperBroker::getStaticHelper('redirector');\n $r->gotoUrl('/menus/menu')->redirectAndExit();\n }\n $parametrosNamespace->lock();\n }", "title": "" }, { "docid": "364ff26e89c5abc4ca09b896b22cfd42", "score": "0.7080282", "text": "public function __construct()\n {\n parent::__construct();\n parent::controller();\n }", "title": "" }, { "docid": "21a2e5a224bde8abab7df146127235ed", "score": "0.70740056", "text": "function initialize()\n {\n \tApp::import('Core', array('Router', 'Controller'));\n \tinclude CONFIGS . 'routes.php';\n \t\n $this->Controller =& new Controller();\n $this->Controller->components = array('MexcMail');\n $this->Controller->uses = array();\n $this->Controller->constructClasses();\n $this->Controller->Component->initialize($this->Controller);\n }", "title": "" }, { "docid": "5ee037c10be1543297e78b6e61dc8d1d", "score": "0.7048942", "text": "protected function _initControllers()\n\t{\n\t\treturn;\n\t}", "title": "" }, { "docid": "5ee037c10be1543297e78b6e61dc8d1d", "score": "0.7048942", "text": "protected function _initControllers()\n\t{\n\t\treturn;\n\t}", "title": "" }, { "docid": "a9a063ed6ca31405f266ac479986b431", "score": "0.70420396", "text": "public function __construct() {\n \n $this->request = new Request();\n \n Router::parse($this->request->url, $this->request);\n \n $controller = $this->loadController();\n \n if($this->request->isApiUrl){\n $controller->_activeAPI = true;\n }\n \n if(!in_array($this->request->action, get_class_methods($controller))){\n $this->error();\n }\n \n call_user_func_array( array($controller, $this->request->action), $this->request->params);\n \n //$controller->render($this->request->action);\n \n }", "title": "" }, { "docid": "3894a767c79c3232e16215f2fa0e566f", "score": "0.70257115", "text": "public function init()\n\t{\n\t\t$request = $this->getRequest();\n\t\t$this->_controller = strtolower($request->getControllerName());\n\t\t$this->_module = strtolower($request->getModuleName());\n\n\t\t$this->_service->setURLChunks(\n\t\t\t$this->_module, $this->_controller\n\t\t);\n $this->_hasCache = $this->_helper->cacheInjector($this->_service);\n $this->_helper->cacheInjector()->setCacheTags($this->_cacheTags);\n\n\t\t$this->_namespace = new Zend_Session_Namespace('crud');\n\t\t$this->_redirector = $this->getHelper('redirector');\n\t\t$this->_viewRenderer = $this->getHelper('viewRenderer');\n\n $config = Zend_Registry::get('config');\n $perPage = $config->get('customOptions')->get('lists')->get('perpage', $this->_entriesPerPage);\n $this->_entriesPerPage = $perPage;\n }", "title": "" }, { "docid": "686664a5586fdc3cf26626a15dc4f391", "score": "0.7009888", "text": "public function init()\n {\n//will be available in all actions\n\n//\t$this->view->baseUrl = $this->_request->getBaseUrl();\n\n//\t$this->view->baseUrl = $this->_request->getBaseUrl();\n//\t$this->view->user = Zend_Auth::getInstance()->getIdentity();\n\n//\t$this->client_id_seq = Zend_Auth::getInstance()->getIdentity()->client_id_seq;\n//\t$this->user_id_seq = Zend_Auth::getInstance()->getIdentity()->id;\n\n\n\tZend_Loader::loadClass('Zend_Json');\n }", "title": "" }, { "docid": "e706a5a90078f2d297098989ea531981", "score": "0.7009654", "text": "public function init()\n {\n $this->_temporizador = new Trf1_Admin_Timer ();\n $this->_temporizador->Inicio ();\n\n /* Initialize action controller here */\n $this->view->titleBrowser = \"e-Admin\";\n }", "title": "" }, { "docid": "4f337445ddc122c57650aff3d59c0756", "score": "0.69985986", "text": "public function __construct()\r\n\t{\r\n\t\r\n\t\t// Hook into routing\r\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\r\n\t\t\r\n\t}", "title": "" }, { "docid": "88d1dec579711da45cb3532c39777a9f", "score": "0.6991502", "text": "protected function init(){\n \t$this->init_post = array(\n \t\t'action' => 'string'\n \t);\n \t\n \tparent::init();\n }", "title": "" }, { "docid": "633d5f8d99301fb704fce97f8fb0418a", "score": "0.69749105", "text": "public function init() {\n\t$publicActions = array('index');\n\t$this->_helper->_acl->allow('flos',null);\n\t$this->_helper->_acl->allow('member',array('add','edit','delete'));\n\t$this->_helper->_acl->allow('public',$publicActions);\n\t$this->_flashMessenger = $this->_helper->getHelper('FlashMessenger');\n\t}", "title": "" }, { "docid": "d8a22121c1e8c806d5cbab44b8d3eb82", "score": "0.69611484", "text": "public function init(){\n\t\t$this->_arrParam = $this->_request->getParams();\n\t\t\n\t\t//Duong dan cua Controller\n\t\t$this->_currentController = '/' . $this->_arrParam['module'] . '/' \n\t\t\t\t\t\t\t\t\t. $this->_arrParam['controller'];\n\t\t\n\t\t//Duong dan cua Action chinh\n\t\t$this->_actionMain = '/' . $this->_arrParam['module'] . '/' \n\t\t\t\t\t\t\t\t. $this->_arrParam['controller'] . '/index';\n\t\t\n\t\t//Truyen ra ngoai view\n\t\t$this->view->arrParam = $this->_arrParam;\n\t\t$this->view->currentController = $this->_currentController;\n\t\t$this->view->actionMain = $this->_actionMain;\n\t\t\n\t\t$siteConfig = Zend_Registry::get('siteConfig');\n\t\t$template_path = TEMPLATE_PATH . \"/admin/\" . $siteConfig['template']['admin'];\n\t\t$this->loadTemplate($template_path, 'template.ini', 'template');\n\t}", "title": "" }, { "docid": "0d5589a628c5b72407fad81799c15653", "score": "0.6958021", "text": "public function initialize()\n {\n parent::initialize();\n\n $this->loadComponent('RequestHandler');\n $this->loadComponent('Flash');\n $this->loadComponent('Auth', [\n 'authorize'=> 'Controller',\n 'authenticate' => [\n 'Form' => [\n 'fields' => ['username' => 'email', 'password' => 'password'],\n 'userModel' => 'Users'\n ]\n ],\n 'loginAction' => [\n 'controller' => 'Users',\n 'action' => 'login'\n ],\n 'config' => [\n 'params' => ['class' => 'alert alert-warning']\n ],\n //'unauthorizedRedirect' => $this->referer()\n 'unauthorizedRedirect' => false\n ]);\n\n // Allow the display action so our pages controller\n // continues to work.\n $this->log('App Controller initialize', 'debug');\n $this->Auth->allow(['display']);\n //$this->Auth->allow();\n }", "title": "" }, { "docid": "77ff36f518a2152509a58f8d5f94e03b", "score": "0.6956978", "text": "public function init ()\n {\n $params = $this->_request->getParams ();\n $action = $params ['action'];\n unset ($params ['module'], $params ['controller'], $params ['action'], $params ['MAX_FILE_SIZE']); \n $this->params = $params;\n\n if ($action == 'new' OR $action == 'edit' OR $action == 'delete')\n {\n $this->_helper->_layout->disableLayout ();\n $this->_helper->viewRenderer->setNoRender (true);\n } \n \n $this->model = new Model_DbTable_WhitepaperData ();\n }", "title": "" }, { "docid": "9cb7464ff6b9fa94a81fa9998fe6c4ea", "score": "0.694756", "text": "public function init()\r\n {\r\n /* Initialize action controller here */\r\n\r\n //=====================================must add in all Controller class constructor ===================================//\r\n if(defined('SITEURL')) $this->site_url = SITEURL;\r\n if(defined('SITEASSET')) $this->site_asset = SITEASSET;\r\n $this->view->site_url = $this->site_url;\r\n $this->view->site_asset = $this->site_asset;\r\n\r\n\r\n //-----------------------------------------------authenticate logged in user---------------------------------------------//\r\n Zend_Loader::loadClass('LoginAuth');\r\n $this->sessionAuth = new LoginAuth();\r\n $this->sessionAuth->login_user_check();\r\n $this->sessionAuth->cookie_check();\r\n //-----------------------------------------------authenticate logged in user---------------------------------------------//\r\n\r\n //______________________________________must add in all Controller class constructor _____________________________________//\r\n require $_SERVER['DOCUMENT_ROOT'].'/library/fpdf/fpdf.php';\r\n require $_SERVER['DOCUMENT_ROOT'].'/library/PHPExcel/PHPExcel.php';\r\n require $_SERVER['DOCUMENT_ROOT'].'/library/PHPExcel/PHPExcel/IOFactory.php';\r\n\r\n }", "title": "" }, { "docid": "f194e3243517091ba32e27da50c43996", "score": "0.6934657", "text": "public function __construct()\n\t{\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\n\t\t\n\t}", "title": "" }, { "docid": "8106c3e96feebf27ce0ee3449bbe4102", "score": "0.6924312", "text": "public function init()\n\t{\n\t\t// you may place code here to customize the module or the application\n\t\t$this->controllerNamespace = 'dm\\helpsystem\\controllers';\n\t}", "title": "" }, { "docid": "dc220830bbb6fe6a6921c082f6705940", "score": "0.69237524", "text": "function __construct(){\n\t\t# FIXME give the type param to the controller\n\t}", "title": "" }, { "docid": "94ebc2c891fdd5bc3a09536e9a22c600", "score": "0.6911456", "text": "public function initializeAction() {\n\t\t$this->logger = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('TYPO3\\\\CMS\\\\Core\\\\Log\\\\LogManager')->getLogger(__CLASS__);\n\t}", "title": "" }, { "docid": "97e2bd1e7a3797d155bb4e8d18f34ab3", "score": "0.6909758", "text": "public function __construct()\n {\n $this->setAction('index', array('idle', 'toggleEnabled', 'expunge'));\n }", "title": "" }, { "docid": "d86b0a6213ac2065691d2c6db080da83", "score": "0.6893953", "text": "public function initializeAction() {\n//\t\t$this->newsRepository = t3lib_div::makeInstance('Tx_News2_Domain_Repository_NewsRepository');\n\n\t\t$this->newsRepository->setCategories($this->settings['category']);\n\t\t$this->newsRepository->setCategorySettings($this->settings['categoryMode']);\n\t\t$this->newsRepository->setTopNewsRestriction($this->settings['topNews']);\n\t\t$this->newsRepository->setArchiveSettings($this->settings['archive']);\n\t\t$this->newsRepository->setOrder($this->settings['orderBy'] . ' ' . $this->settings['orderAscDesc']);\n\t\t$this->newsRepository->setOrderRespectTopNews($this->settings['orderByRespectTopNews']);\n\t\t$this->newsRepository->setLimit($this->settings['limit']);\n\t\t$this->newsRepository->setOffset($this->settings['offset']);\n\t\t$this->newsRepository->setSearchFields($this->settings['search']['fields']);\n\t\t$this->newsRepository->setStoragePage(Tx_News2_Service_RecursivePidListService::find($this->settings['startingpoint'], $this->settings['recursive']));\n\n\t\tif (isset($this->settings['format'])) {\n\t\t\t$this->request->setFormat($this->settings['format']);\n\t\t}\n\t\t$this->requestOverrule();\n//\t\tt3lib_div::print_array($this->settings);\n\t}", "title": "" }, { "docid": "d23e74df9d76a70a39c9cfa4ce12b6cc", "score": "0.688387", "text": "protected function initializeAction()\n\t{\n\t\t$this->loadSessionData();\n \n if( $this->isFinalAction() && !$this->passedMandatoryActions() )\n\t\t{\n\t\t\t$this->redirect( $this->firstActionMethodName );\n\t\t}\n \n\t\tif( $this->formData === NULL )\n\t\t{\n\t\t if( !$this->isFirstAction() ) \n\t\t {\n\t\t $this->redirect( $this->firstActionMethodName );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->formData = array();\n\t\t\t}\n\t\t}\n \n\t\t$requestArguments = $this->request->getArguments();\n \n\t\tforeach( $this->arguments->getArgumentNames() as $argumentName )\n\t\t{\n\t\t\tif( array_key_exists( $argumentName, $requestArguments ) )\n\t\t\t{\n\t\t\t\t$this->formData[ $argumentName ] = $requestArguments[ $argumentName ];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif( array_key_exists( $argumentName, $this->formData ) )\n\t\t\t\t{\n\t\t\t\t\t$requestArguments[ $argumentName ] = ( string )$this->formData[ $argumentName ];\n\t\t\t\t\t\n\t\t\t\t\t$key = 'tx_' . strtolower( $this->extensionName )\n\t\t\t\t\t . '_' . strtolower( $this->request->getPluginName() );\n\t\t\t\t\t \n\t\t\t\t\t$_POST[ $key ][ $argumentName ] = ( string )$this->formData[ $argumentName ];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \n\t\t$this->request->setArguments( $requestArguments );\n \n\t\t$this->storeSessionData();\n\t}", "title": "" }, { "docid": "4998ddac4203b30908eb0a5b9fbf0ce3", "score": "0.6877832", "text": "public function __construct($controller = 'index', $action = 'index')\n\t{\n\t\t$this->_controller = $this->_origController = $controller;\n\t\t$this->_action = $this->_origAction = $action;\n\t\t\n\t\t$uriParts = explode('?', $_SERVER['REQUEST_URI']);\n\t\t$this->_parameters = explode('/', $uriParts[0]);\n\t\tarray_shift($this->_parameters);\n\t\tarray_shift($this->_parameters);\n\t\tarray_shift($this->_parameters);\n\t\tfor ($i=0; $i < count($this->_parameters); $i++) {\n\t\t\tif (isset($this->_parameters[$i+1])) {\n\t\t\t\t$this->_parameters[$this->_parameters[$i]] = $this->_parameters[$i+1];\n\t\t\t\tunset($this->_parameters[$i+1]);\n\t\t\t}\n\t\t\tunset($this->_parameters[$i]);\n\t\t\t$i++;\n\t\t}\n\t\t\n\t\t$this->_parameters = array_merge($this->_parameters, $_GET);\n\t\t$this->_headers = apache_request_headers();\n\t}", "title": "" }, { "docid": "969b7ff4e0c7c27830f81e857bab92cd", "score": "0.6874168", "text": "public function initializeAction() {\n\t\t$this->galleryRepository = t3lib_div::makeInstance('Tx_Yagal_Domain_Repository_GalleryRepository');\n\t\t$this->administratorRepository = t3lib_div::makeInstance('Tx_Yagal_Domain_Repository_AdministratorRepository');\n\t\t$this->galleryBusiness = t3lib_div::makeInstance('Tx_Yagal_Business_GalleryBusiness');\n\t\t\n\t}", "title": "" }, { "docid": "95aa1bdb5bb400100d8b22571ea4bdc8", "score": "0.6871872", "text": "public function initializeAction() {\n $this->init();\n $this->galleryRepository = t3lib_div::makeInstance('Tx_Yagal_Domain_Repository_GalleryRepository');\n $this->albumRepository = t3lib_div::makeInstance('Tx_Yagal_Domain_Repository_AlbumRepository');\n $this->administratorRepository = t3lib_div::makeInstance('Tx_Yagal_Domain_Repository_AdministratorRepository');\n }", "title": "" }, { "docid": "e1e2cd7c7482256439f9676e7652bc2c", "score": "0.68700373", "text": "public function __construct()\n\t{\t\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "title": "" }, { "docid": "0f886372f40eb61c1cdf4071496ea4da", "score": "0.68548864", "text": "protected function loadController()\r {\r }", "title": "" }, { "docid": "7c82e7c5c540f36ea7ea9d084f77467a", "score": "0.6852548", "text": "protected function initializeAction() {\n\t\t$this->persistenceManager = $this->objectManager->get('TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\PersistenceManager');\n\t\t$this->querySettings = $this->objectManager->get('TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\Typo3QuerySettings');\n\t\t$this->subscriberRepository = $this->objectManager->get('Aijko\\\\DmailManagement\\\\Domain\\\\Repository\\\\SubscriberRepository');\n\t\t$this->querySettings->setStoragePageIds(array($this->settings['persistence']['storagePid']));\n\t\t$this->subscriberRepository->setDefaultQuerySettings($this->querySettings);\n\t}", "title": "" }, { "docid": "cb9fd8ebed45f64605bed5cdb87b00ab", "score": "0.684184", "text": "public function __construct() {\r\n //Get data from url.\r\n $this->splitUrl();\r\n //Check if such controller exist.\r\n if (file_exists(DIR_CONTROLLER . $this->controller . FILE_PHP)) {\r\n //Load this file.\r\n require_once DIR_CONTROLLER . $this->controller . FILE_PHP;\r\n //Workaround for dynamicly create object from string.\r\n $controllerName = ucfirst($this->controller) . Controller::SUFFIX_FOR_CONTROLLERS;\r\n //Create this controller object.\r\n $this->controller = new $controllerName();\r\n //Create method name from recived action.\r\n $actionMethod = Controller::PREFIX_FOR_ACTIONS . $this->action;\r\n //Check for method: does such a method exist in the controller?\r\n if (method_exists($this->controller, $actionMethod)) {\r\n //Call the method and pass the arguments to it.\r\n $this->controller->{$actionMethod}($this->parameters);\r\n } else {\r\n //Default fallback: call the index() method of a selected controller.\r\n $this->controller->action_index();\r\n }\r\n } else {\r\n //Invalid URL, so simply show home/index\r\n require DIR_CONTROLLER . 'home.php';\r\n $home = new HomeController(false);\r\n $home->action_index();\r\n }\r\n }", "title": "" }, { "docid": "223a483f9b3043681512772ed6742477", "score": "0.6824601", "text": "function __construct() {\n\t\t$this->set_resource();\n\t\t$this->set_action();\n\t}", "title": "" }, { "docid": "4ca82f1f0ac77b91cca3f709b9ed80d5", "score": "0.68099964", "text": "function __construct() {\n parent::__construct();\n\n // this controller should only be visible/usable by logged in users, so we put login-check here\n Auth::handleLogin();\n }", "title": "" }, { "docid": "9092829a47500484b233155381c82197", "score": "0.6798566", "text": "function __construct() {\n\t\t$this->allActions = array();\n\t}", "title": "" }, { "docid": "b23544a1b502a6e62761909a51280eb4", "score": "0.67852086", "text": "function initialize(Controller $controller) { }", "title": "" }, { "docid": "f997644d7fa454a43e79ebc8c533bf4d", "score": "0.67805195", "text": "public function indexAction() {\n //Dummy action\n }", "title": "" }, { "docid": "2f525e8ee9cded48c6ca43e7a4628d07", "score": "0.67727166", "text": "public function initializeAction()\n {\n $this->pageUid = (int)\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::_GET('id');\n $this->pageInformation = BackendUtilityCore::readPageAccess($this->pageUid, '');\n $this->setTsConfig();\n parent::initializeAction();\n }", "title": "" }, { "docid": "6727b8080fd54db1bd54085356c5dce4", "score": "0.677008", "text": "public function initializeAction()\n {\n $this->pageUid = (int)GeneralUtility::_GET('id');\n $this->setTsConfig();\n parent::initializeAction();\n\n $this->service = GeneralUtility::makeInstance(DbOperationsService::class);\n $this->service->setTsConfiguration($this->tsConfiguration);\n }", "title": "" }, { "docid": "9cda3df18e9216a18529a368234d194d", "score": "0.6764606", "text": "public function init()\n {\n\t\t$this->_temporizador = new Trf1_Admin_Timer ();\n\t\t$this->_temporizador->Inicio ();\n\t\t\n /* Initialize action controller here */\n\t\t$this->view->titleBrowser = 'e-Sosti';\n }", "title": "" }, { "docid": "f3121803dbfa32cf85f4f11338f11ec5", "score": "0.67628753", "text": "public function initializeShowAction() {\n\t\t$this->initializePropertyMappingConfigurationForShowActions();\n\t}", "title": "" }, { "docid": "590f1498979ed72128e79a40a472369e", "score": "0.676125", "text": "public function init()\n {\n // this method is called by CController::beginWidget()\n\t\t$this->_controller = $this->getController();\n\n\t\tparent::init();\n\t}", "title": "" }, { "docid": "08c532bfa075d2fbafd948fe47fc026e", "score": "0.6758238", "text": "public function initialize() {\n\t\t\t$method = $this->method;\n\t\t\tif (class_exists($this->controller)) {\n\t\t\t\t$userController = new $this->controller;\n\t\t\t\tif (method_exists($userController,$method)) {\n\t\t\t\t\tcall_user_func_array(array($userController, $method), $this->params);\n\t\t\t\t\treturn; \n\t\t\t\t} else {\n\t\t\t\t\techo \"Method doesn't exist.\";\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "92c5cbabfcd1063d06d3f777598e0f8a", "score": "0.67565215", "text": "public function init()\t\n\t{ \n\t\t// this method is called when the module is being created\n\t\t// you may place code here to customize the module or the application\n\t\t$this->controllerNamespace = 'dm\\helpsystem\\admin\\controllers';\n\t\t$this->registerAsset();\n\t\t\n\t}", "title": "" }, { "docid": "f3c73ca583e229d791e673c6283d24e3", "score": "0.67543346", "text": "public function initializeCreateAction() {\n\t\t$this->initializePropertyMappingConfigurationForCreateActions();\n\t}", "title": "" }, { "docid": "4f1607586ce3f67d698337b74cf78644", "score": "0.6750748", "text": "public function initializeAction()\n {\n $this->agent = $GLOBALS['TSFE']->fe_user->user['uid']; \n }", "title": "" }, { "docid": "86bd71b5a94c359a0b70e37b2b090a77", "score": "0.67474496", "text": "function initialize(&$controller, $settings = array()) {\n\t\t// for index actions\n\t\tif (!isset($settings['actions']) || empty($settings['actions'])) {\n\t\t\t$actions = array('index', 'admin_index');\n\t\t} else {\n\t\t\t$actions = $settings['actions'];\n\t\t}\n\t\tforeach($actions as $action){\n\t\t\t$this->processAction($controller, $action);\n\t\t}\n\t}", "title": "" }, { "docid": "a48a52638b4cd3466378e1a77c868f27", "score": "0.6741903", "text": "public function init(){\n\t\tif(get_class($this)==\"Controller\") return ;\n\t\t# init session\n\t\t$this->session=$_SESSION;\n\t\tsession_unset();\n\n\t\t# init flash\n\t\tif(!empty($this->session[\"flash\"])){\n\t\t\t$this->flash=$this->session[\"flash\"];\n\t\t\t$this->old_flash=$this->session[\"flash\"];\n\t\t}else{\n\t\t\t$this->flash=array();\n\t\t\t$this->old_flash=array();\n\t\t}\n\n\t\t# init cookies\n\t\tif(!empty($_COOKIE)) $this->init_cookies();\n\t\t# init filters\n\t\t$this->init_filters();\n\t\t# init header\n\t\t$this->header=array();\n\t}", "title": "" }, { "docid": "2562e8af5d86e35be2e8a99b1b93fbd1", "score": "0.6739188", "text": "public function __construct()\n\t{\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'addHooks'));\n\t}", "title": "" }, { "docid": "abd0e5986b8353d9d2195df261a1bf40", "score": "0.6727098", "text": "public function __construct()\n\t{\t\n\t\t// Hook into routing\n\t\t$this->db = Database::instance();\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "title": "" }, { "docid": "29fa67577918b676123871640ea60258", "score": "0.67196625", "text": "function initialize(Controller $controller) {\n $this->controller = $controller;\n }", "title": "" }, { "docid": "b04339395984de4ca2bcf7acd7393d6d", "score": "0.67089564", "text": "protected function _initAction()\n {\n $this->loadLayout();\n return $this;\n }", "title": "" }, { "docid": "fe7c2a5634b6f477fe213f3ce98957ba", "score": "0.66976416", "text": "protected function initialise()\n\t{\n\t\t$actions = Services::Configuration()->getFile('Application', 'Actions');\n\t\tif (count($actions) == 0) {\n\t\t\t//echo '<br />Error in AuthorisationService -- Application Actions table returned no rows <br />';\n\t\t\t//error\n\t\t}\n\n\t\tforeach ($actions->action as $t) {\n\t\t\tServices::Registry()->set('action_to_authorisation', (string)$t['name'], (string)$t['authorisation']);\n\t\t\tServices::Registry()->set('action_to_controller', (string)$t['name'], (string)$t['controller']);\n\t\t}\n\n\t\t$items = Services::Registry()->get('Actions');\n\t\tforeach ($items as $title => $id) {\n\t\t\tServices::Registry()->set('action_to_authorisation_id', $title, (int)$id);\n\t\t}\n\n\t\treturn;\n\t}", "title": "" }, { "docid": "82b740765c91d3c45074402b67226123", "score": "0.6696148", "text": "protected function initializeAction()\n {\n parent::initializeAction();\n\n $tikaConfiguration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['tika']);\n $this->setTikaConfiguration($tikaConfiguration);\n $this->tikaService = ServiceFactory::getTika($this->tikaConfiguration['extractor']);\n }", "title": "" }, { "docid": "19742ab0cc4c3539234b840f48b6460e", "score": "0.6691168", "text": "public function action_init()\r\n \t{\r\n \t\t$this->class_name = strtolower( get_class( $this ) );\r\n \t}", "title": "" }, { "docid": "bb03cc53c32e80c3807b7c1444e744d2", "score": "0.6684884", "text": "public function __construct( &$controller = null ) \n\t{ $this->controller = $controller; }", "title": "" }, { "docid": "b5861dca8376b66fe16c8a0333240506", "score": "0.6673857", "text": "public function initialize()\n { parent::initialize(); \n $this->loadComponent('RequestHandler');\n $this->loadComponent('Flash');\n $this->loadComponent('Auth', [\n 'authorize' => ['Controller'],\n 'authenticate' => [\n 'Form' => [\n 'fields' => [\n 'username' =>'email',\n 'password' => 'password'\n ]\n ]\n ],\n 'loginRedirect' => [\n 'controller' => 'Clubs',\n 'action' => 'index'\n ],\n 'logoutRedirect' => [\n 'controller' => 'Pages',\n 'action' => 'display',\n 'home'\n ],\n 'loginAction' => [\n 'controller' => 'Users',\n 'action' => 'login'\n ]\n ]);\n \n $this->Auth->allow(['display',\n 'home']);\n\n }", "title": "" }, { "docid": "95c131b23e23cc9b5cf80907419ef905", "score": "0.6672159", "text": "public function __construct()\n {\n\n //1.router\n $tokens = explode('/', rtrim($_SERVER['REQUEST_URI'], '/'));\n\n //2.dispatcher\n $controllerName = ucfirst($tokens[2]);\n if (file_exists('controllers/' . $controllerName . '.php'))\n {\n require_once('controllers/' . $controllerName . '.php');\n $controller = new $controllerName;\n if(isset($tokens[3]))\n {\n if(isset($tokens[4]))\n {\n $controller->{$tokens[3]}($tokens[4]);\n } else {\n $controller->{$tokens[3]}();\n }\n\n } else {\n //default action\n// require_once('controllers/VehicleCon.php');\n// $controllerName = 'VehicleCon';\n// $controller = new $controllerName;\n $controller->Index();\n }\n } else {\n\n //called if root/folder does not exist\n require_once('controllers/MyErrorCon.php');\n $controllerName = 'MyErrorCon';\n $controller = new $controllerName;\n $controller->IndexAction();\n }\n }", "title": "" }, { "docid": "9dbf49c1a97f8c4c85265e0d428c050f", "score": "0.66636777", "text": "public function init()\n\t{\n\t parent::init();\n\t \n\t $this->setAction($this->getView()->baseUrl('/admin/session/login'));\n\t}", "title": "" }, { "docid": "9da0f762974250e0c2717a293a65a2cb", "score": "0.665734", "text": "public function init()\r\n\t{\r\n\t\t// for every contoller in module here\r\n\t}", "title": "" }, { "docid": "799cf39a58b4baccafcb44add52f713a", "score": "0.6650181", "text": "public function init()\n {\n $current_path = $this->splitPath(); /// Get the current path\n $this->setPath($current_path); /// Getup the controller properly\n $this->reRoute($current_path); /// Start rewrouting\n $this->loadController(); /// Lets try loading the current controller if exists\n }", "title": "" }, { "docid": "f6bf8774d6dafc8ea8e3e633c1a4c4f9", "score": "0.6647112", "text": "public function __construct() {\n // Set default controller/action to start page\n $this->_routes['controller'] = \"Home\";\n $this->_routes['action'] = \"index\";\n }", "title": "" }, { "docid": "6e6b28cc775bd51fc4d78f83eecac177", "score": "0.6637131", "text": "function __construct()\n {\n $arr = $this->UrlProcess();\n\n //Xu ly controller\n if (file_exists(\"./sub_mvc/controllers/\" . $arr[0] . \".php\")) {\n $this->controller = $arr[0];\n unset($arr[0]);\n }\n require_once(\"./sub_mvc/controllers/\" . $this->controller . \".php\");\n $this->controller = new $this->controller;\n\n //Xu li ACtion/Function\n if (isset($arr[1])) {\n if(method_exists($this->controller, $arr[1]))\n {\n $this->action = $arr[1];\n }\n unset($arr[1]);\n }\n\n //Xu li Params\n $this->params = $arr?array_values($arr):[];\n\n //Gọi controller - action ra\n call_user_func_array([$this->controller, $this->action], $this->params);\n \n }", "title": "" }, { "docid": "6c136b4a330d57681a8adec04667f9f9", "score": "0.66275495", "text": "public function init()\r\n {\r\n\t$this->_customactionhelper = Zend_Controller_Action_HelperBroker::getExistingHelper('CustomActionHelper');\r\n }", "title": "" }, { "docid": "c4375a1e5ebc90edceccda39d9bf18c5", "score": "0.6625437", "text": "public function initialize()\n {\n $this->loadComponent('Flash');\n $this->loadComponent('Auth', [\n\t\t'authorize' => ['Controller'],\n 'loginRedirect' => [\n 'controller' => 'pages',\n 'action' => 'home2'\n ],\n 'logoutRedirect' => [\n 'controller' => 'Users',\n 'action' => 'login'\n \n ],\n\t\t\t'unauthorizedRedirect' => $this->referer()\n ]);\n }", "title": "" }, { "docid": "549f0ae01309a4e8676ebb39485e2dc9", "score": "0.66211104", "text": "public function __construct() {\n\t\tparent::__construct();\n\t\t\n\t\t# Make sure user is logged in if they want to use anything in this controller\n\t\tif(!$this->user) {\n\t\t\tRouter::redirect('/users/login');\n\t\t}\n\t}", "title": "" }, { "docid": "a8f21167033668164b5cb24fabb8dc54", "score": "0.6616209", "text": "protected function beforeAction()\n {\n }", "title": "" }, { "docid": "3c9f5dd7f5f1666c8ada273f6173af04", "score": "0.66131604", "text": "public function __construct() {\n $this->controller_name = \"permisos\";\n parent::__construct($this->controller_name);\n }", "title": "" }, { "docid": "0ca3e1c8b6e5b9f550ef682465fbc816", "score": "0.6610141", "text": "public function initialize()\n {\n parent::initialize();\n\n $this->loadComponent('RequestHandler');\n $this->loadComponent('Flash'); \n\t\t//$this->loadComponent('Auth');\n $this->loadComponent('Auth',['authorize' => ['Controller']]);\n /*\n * Enable the following components for recommended CakePHP security settings.\n * see http://book.cakephp.org/3.0/en/controllers/components/security.html\n */\n //$this->loadComponent('Security');\n //$this->loadComponent('Csrf');\n $this->set('authUser', $this->Auth->user());//set a variable for view, for check userloged in or not\n $this->set('payment_status',[\n \t\t1=>'pending',2=>'informed to supplier',\n \t\t3=>'products_ready',4=>'delivery tookover',\n\t\t\t\t5=>'delivered',6=>'completed',\n \t\t7=>'driver informed', 9=>'cancelled'\n \t\t\n ]);\n }", "title": "" }, { "docid": "faa64035a3a04718327d1ac530f1ba00", "score": "0.66062886", "text": "public function __construct() {\n\t\tparent::__construct();\n\t\t$this->view = new ViewController();\t\t\n\t}", "title": "" }, { "docid": "829a12f1807549461fd7c47c56db366e", "score": "0.66018015", "text": "function __construct($request, $controller, $action) {\n $this->_setRequest($request);\n $this->_setController($controller);\n $this->_setAction($action);\n $this->_setParams($request->params);\n $this->_set_REQUEST($request->_REQUEST);\n $this->_set_POST($request->_POST);\n $this->_set_GET($request->_GET);\n $this->Model = new Model(SimPHPfy::getDatasource(), $this->getController());\n $this->View = new View($this);\n register_shutdown_function('_shutdown', $this);\n }", "title": "" }, { "docid": "2647e44326162256aba5366085d62f18", "score": "0.6601637", "text": "function __construct() {\n\t\t$this->Bootstrap();\n\n\t\t// Reads query param to pick appropriate Actions\n\t\t$action = isset( $_GET['action'] ) ? Actions::ToEnum( $_GET['action'] ) : Actions::Songbook;\n\n\t\t$user = $this->DoAuthenticate( $action );\n\t\tif ( !$user->IsAllowAccess ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t$builder = $this->GetBuilder( $action, $user );\n\t\t$model = $builder->Build();\n\n\t\t// all done, time to render\n\t\tif ( $model->IsJson ) {\n\t\t\t$this->RenderJson( $model );\n\t\t}\n\t\telse {\n\t\t\t$model->SiteUser = $user;\n\t\t\t$this->RenderView( $model, $action );\n\t\t}\n\t}", "title": "" }, { "docid": "5cbab6be2535c50b9ad2f272f75e9744", "score": "0.6600774", "text": "public function init()\n {\n $this->service = Service::factory('User');\n $this->service->setCacheManager($this->getCacheManager());\n $doctrine = $this->getInvokeArg('bootstrap')->getResource('doctrine');\n $this->service->setDoctrineManager($doctrine);\n $actions = $this->_helper->actionsBuilder($this->getRequest());\n $this->view->actions = $actions;\n }", "title": "" }, { "docid": "667d312a87061a0d612dfbb9e0f60dc2", "score": "0.65939766", "text": "public function init(){\n // Calls the BaseController init() method\n if(is_callable([parent::class, 'init'])) parent::init();\n }", "title": "" }, { "docid": "df45140a63ec43fc12c20ea2ad4c721e", "score": "0.659207", "text": "public function __construct()\n {\n //creates the controller when the interface is created\n \t\t$this->controller = new CreateQuoteController;\n \t}", "title": "" }, { "docid": "ab4577ab4fdddcf8d3c65b3f611b0255", "score": "0.65912604", "text": "public function __construct()\n {\n parent::__construct();\n $this->ImageChapterMangaController = new ImageChapterMangaController();\n }", "title": "" }, { "docid": "6447074dfe59ede8d886910a2328927f", "score": "0.6589027", "text": "public function initialize() {\n\t\t$controllerClassReflection = new ReflectionClass($this);\n\t\t$methodReflection = $controllerClassReflection->getProperty('controller');\n\t\t$docComment = $methodReflection->getDocComment();\n\t\t$matches = array();\n\t\tpreg_match('/@var[\\s]{1,}([a-zA-Z_\\\\^\\s]+)/', $docComment, $matches);\n\t\t$controllerClassName = trim($matches[1]);\n\t\tif (class_exists($controllerClassName) === FALSE) {\n\t\t\tthrow new Exception('Unknown Controller class: ' . $controllerClassName, 1351355695);\n\t\t}\n\t\t// fallback enabled for Singleton Controllers; however, the initializeContorller method is\n\t\t// also enabled for use by classes which have not yet removed their controller inject methods.\n\t\tif (method_exists($this, 'injectController') && is_a($controllerClassName, 't3lib_Singleton')) {\n\t\t\t$controllerInstance = $this->objectManagerNative->get($controllerClassName);\n\t\t\t$this->injectController($controllerInstance);\n\t\t} else {\n\t\t\t$controllerInstance = $this->objectManagerNative->get($controllerClassName);\n\t\t}\n\t\t$this->controller = $controllerInstance;\n\t}", "title": "" }, { "docid": "b1104ef86623f6e9b499813454c1dece", "score": "0.65882117", "text": "function initialize(&$controller) {\n $this->controller =& $controller;\n }", "title": "" }, { "docid": "1c5db844321218ee382063fcb0bbe62d", "score": "0.6584813", "text": "public function init()\n {\n // setting the protected $_url\n $this->_getUrl();\n \n // loading default controller if no URL is set\n if(empty($this->_url[0]))\n {\n // calling the index controller in case url is empty\n // (that happens when we type /localhost/mvc)\n // if is empty we call the default controller\n $this->_loadDefaultController();\n \n // we return here to prevent the rest of the code below \n // to be processed\n return false;\n }\n\n // at this point we can load the existing controller\n $this->_loadExistingController();\n\n // calling the controller method\n $this->_callControllerMethod();\n }", "title": "" }, { "docid": "397c774d7b03e8300f6969d64a21309d", "score": "0.65822893", "text": "public function __construct() {\n $url = $this->parseUrl();\n\n if(file_exists('../app/controllers/' . $url[0] . '.php')) {\n $this->controller = $url[0];\n unset($url[0]);\n }\n\n require_once '../app/controllers/' . $this->controller . '.php';\n\n $this-> controller = new $this->controller;\n\n if(isset($url[1])) {\n if(method_exists($this->controller, $url[1])) {\n $this->method = $url[1];\n unset($url[1]);\n }\n }\n\n /**\n * if(!isEmpty($url)) {\n * $this->params = array_values($url);\n * }\n * else {\n * $this->params = [];\n * }\n */\n $this->params = $url ? array_values($url) : [];\n\n call_user_func_array([$this->controller, $this->method], $this->params);\n\n\n }", "title": "" }, { "docid": "b4780942e1e8edf2243c9ec38a119d8d", "score": "0.65667397", "text": "private function _init() {\n\t\t$this->_add_actions();\n\t\t$this->_add_filters();\n\t}", "title": "" }, { "docid": "754fb7b00d3fd7c8a817fff2c5267ffb", "score": "0.65643734", "text": "protected function _initControllers()\n\t{\n\t\t// instanciando controladores utilzados pelo controlador\n\t\t$this->_moduloOPController = Basico_OPController_ModuloOPController::getInstance();\n\t\t$this->_cvcOPController = Basico_OPController_CVCOPController::getInstance();\n\t\t$this->_categoriaOPController\t\t\t\t = Basico_OPController_CategoriaOPController::getInstance();\n\t\t$this->_dicionarioDadosSchemaOPController = Basico_OPController_DicionarioDadosSchemaOPController::getInstance();\n\t\t$this->_dicionarioDadosAssocTableOPController = Basico_OPController_DicionarioDadosAssocTableOPController::getInstance();\n\t\t$this->_dicionarioDadosAssocFieldOPController = Basico_OPController_DicionarioDadosAssocFieldOPController::getInstance();\n\n\t\treturn;\n\t}", "title": "" }, { "docid": "bcd7b8eca9ae10e125bca1124ab84729", "score": "0.65518326", "text": "public function init(){\n\t\t$this->_arrParam = $this->_request->getParams();\n\t\t\n\t\t//Duong dan cua Controller\n\t\t$this->_currentController = '/' . $this->_arrParam['module'] \n\t\t\t\t\t\t\t\t\t . '/' . $this->_arrParam['controller'];\t\t\n\t\t//Duong dan cua Action chinh\t\t\n\t\t$this->_actionMain = '/' . $this->_arrParam['module'] \n\t\t\t\t\t\t\t . '/' . $this->_arrParam['controller']\t. '/index';\t\n\t\t\t\t\t\t\t \n\t\t$this->_paginator['currentPage'] = $this->_request->getParam('page',1);\n\t\t$this->_arrParam['paginator'] = $this->_paginator;\n\t\t\n\t\t//Luu cac du lieu filter vao SESSION\n\t\t//Dat ten SESSION\n\t\t$this->_namespace = $this->_arrParam['module'] . '-' . $this->_arrParam['controller'];\n\t\t$ssFilter = new Zend_Session_Namespace($this->_namespace);\n\t\t//$ssFilter->unsetAll();\n\t\tif(empty($ssFilter->col)){\n\t\t\t$ssFilter->keywords \t= '';\n\t\t\t$ssFilter->col \t\t\t= 'g.id';\n\t\t\t$ssFilter->order \t\t= 'DESC';\n\t\t\t$ssFilter->lang \t\t= '';\n\t\t}\n\t\t$this->_arrParam['ssFilter']['keywords'] \t= $ssFilter->keywords;\n\t\t$this->_arrParam['ssFilter']['col'] \t\t= $ssFilter->col;\n\t\t$this->_arrParam['ssFilter']['order'] \t\t= $ssFilter->order;\n\t\t$this->_arrParam['ssFilter']['lang'] \t\t= $this->_arrParam['lang'];\n\t\t\n\t\t/*====================================================\n\t\t * Load Zendvn Translate for Controller\n\t\t *====================================================*/\n\t\t/*$this->_langObj->setLangFile(array('default.language.tmx'));\t\t\n\t\tZend_Registry::set('Zend_Translate', $this->_langObj->generate());*/\n\t\t\n\t\t$info = new Zendvn_System_Info();\n\t\t$language = $info->getLanguage('admin');\n\t\tif(empty($language)){\n\t\t\t$language = 'vi';\n\t\t}\n\t\t$translate = array(\n\t\t\t\t\t\t\t'adapter' => 'tmx',\n\t\t\t\t\t\t\t'content' => LANG_PATH . '/' . $language . '/admin/menu.tmx',\n\t\t\t\t\t\t\t'locale' => $language,\n\t\t\t\t\t\t\t);\n\t\t$translate = new Zend_Translate($translate);\n\t\tZend_Registry::set('Zend_Translate', $translate);\n\t\t\n\t\t//Truyen ra view\n\t\t$this->view->arrParam = $this->_arrParam;\n\t\t$this->view->currentController = $this->_currentController;\n\t\t$this->view->actionMain = $this->_actionMain;\t\t\n\t\t$template_path = TEMPLATE_PATH . \"/admin/system\";\n\t\t$this->loadTemplate($template_path,'template.ini','template');\n\t}", "title": "" } ]
d42624fe78b10d71aa8202b507ff7f05
end function the WholeLt allCourses collects all the BP statements as an array $arr[module][category][level][statement1,statement2,...] $id to get one module only $arrProgramme = array( 1=> array( 'courseName'=> 'WE01', 'categories' => array( 1=>array( 'catName'=>'Cat1', 'excel'=> array( 0=>array( 1=>'bp1', 2=>'bp2' ), 1=>array( 15=>'bp15', 18=>'bp18' ) ) ),
[ { "docid": "a5f8fb2468a7a58f1d43c8262bd0d442", "score": "0.66280246", "text": "function allCourses($courseID=0){\n $arrAll = array();\n\n $arrAll = $this->getAllModules($courseID);\n foreach($arrAll as $key=>$row){\n $arrCats = $this->getCatsByCourse($row['id']);\n foreach($arrCats as $catID => $catRow){\n $arrBPsa = $this->getBPbyCat($catID, 0);\n array_push($arrCats[$catID],$arrBPsa);\n $arrBPsb = $this->getBPbyCat($catID, 1);\n array_push($arrCats[$catID],$arrBPsb);\n \n //array_push($arrCats[$catID],$arrBPsa,$arrBPsb); \n } \n array_push($arrAll[$key], $arrCats);\n }\n return $arrAll;\n}", "title": "" } ]
[ { "docid": "c8ea8cdd6b9193df7d6d6f1281fe40b6", "score": "0.6610246", "text": "function theWholeLot($moduleID=0){\n $arrAll = array();\n\n $arrModules = $this->getAllModules($moduleID);\n // set the module name as the key of the $arrAll\n // we will assign the value of the array of categories for this module in the first step,\n foreach($arrModules as $rowModule){\n \n $arrAll[$rowModule['name']] = array(); // sets the module name as the key\n \n $arrCats = $this->getCatsById($rowModule['id']); // get array of categories\n foreach($arrCats as $id => $rowCats){\n $bpPass = $this->getBPbyCat($rowCats['id'], 0);\n $bpDistinction = $this->getBPbyCat($rowCats['id'], 1);\n if(count($bpPass)>0)\n {\n $arrAll[$rowModule['name']][$rowCats['name']]['PASS'] = $bpPass; // PASS set in index.php\n }\n if(count($bpDistinction)>0)\n {\n $arrAll[$rowModule['name']][$rowCats['name']]['BETTER'] = $bpDistinction; // ditto B\n }\n }\n }\n return $arrAll;\n}", "title": "" }, { "docid": "8a9e3e727bf34a7e4de391a1872761cb", "score": "0.6245161", "text": "function allBPs() {\n $arrAll = array();\n\n $arrModules = $this->getAllModules($moduleID);\n // set the module name as the key of the $arrAll\n // we will assign the value of the array of categories for this module in the first step,\n foreach($arrModules as $rowModule){\n \n $arrAll[$rowModule['name']] = array(); // sets the module name as the key\n \n $arrCats = $this->getCatsById($rowModule['id']); // get array of categories\n foreach($arrCats as $id => $rowCats){\n $bpPass = $this->getBPbyCat($rowCats['id'], 0);\n $bpDistinction = $this->getBPbyCat($rowCats['id'], 1);\n if(count($bpPass)>0)\n {\n $arrAll[$rowModule['name']][$rowCats['name']]['PASS'] = $bpPass; // PASS set in index.php\n }\n if(count($bpDistinction)>0)\n {\n $arrAll[$rowModule['name']][$rowCats['name']]['BETTER'] = $bpDistinction; // ditto B\n }\n }\n }\n return $arrAll;\n}", "title": "" }, { "docid": "923772dd69ec91115bb5334b8feb4290", "score": "0.5992385", "text": "function get_course_module_accesses_breakdown($courseid)\n{\n global $CFG, $DB, $LOG, $MODE;\n global $FILTERDATES, $from, $to;\n \n $flags = array('check_view_access_only'=>true, 'check_duplicates'=>false);\n \n if( ! isset($LOG))\n $LOG = getLog($courseid, 5); \n \n// show_Log(); \n\n $module_types = get_reportable_module_types($courseid);\n /*\n $module_types[] = 'url';\n $module_types[] = 'resource'; \n */\n \n $last = array ( // to store previously counted access to try prevent duplicate counting\n 'module_type' => NULL,\n 'moduleid' => NULL,\n 'date' => NULL,\n 'userid' => NULL,\n );\n $module_records = array();\n foreach($LOG['Index'] as $index)\n {\n // check date filters\n if($FILTERDATES && $from && $to)\n {\n if ($LOG['Unix_Date/Time'][$index] < $from) continue;\n if ($LOG['Unix_Date/Time'][$index] > $to) break;\n } \n \n // get activity details\n $view_access = strpos($LOG['Action'][$index],'view') > -1;\n $module_type = strtolower($LOG['Activity'][$index]);\n //$moduleid = parse_moduleid_from_actionurl($LOG['ActionURL'][$index]);\n $moduleid = $LOG['cmid'][$index];\n \n // check for inclusions\n if ($moduleid == 0 || $moduleid == NULL) { continue; } \n if (!in_array($module_type,$module_types)) { continue; } \n if ($flags['check_view_access_only'] && !($view_access)) { continue; }\n if ($flags['check_duplicates']) {\n if (\n $last->module_type == $module_type\n && \n $last->moduleid == $moduleid\n && \n $last->date == $LOG['DateOnly']['Index']\n && \n $last->userid == $LOG['UserID']['Index']\n ) {\n continue;\n }\n else {\n $last->module_type = $module_type;\n $last->moduleid = $moduleid;\n $last->date = $LOG['DateOnly']['Index'];\n $last->userid = $LOG['UserID']['Index'];\n }\n }\n\n // create module record if not already exists\n if (!array_key_exists($moduleid,$module_records)) {\n \t$module_records[$moduleid] = array();\n \t$module_records[$moduleid]['student_pageviews'] = 0;\n \t$module_records[$moduleid]['other_pageviews'] = 0;\n $module_records[$moduleid]['students'] = array();\n \t$module_records[$moduleid]['others'] = array();\n \t//$module_records[$moduleid]['accessed'] = $LOG['Unix_Date/Time'][$index];\n }\n \n // check and set last access \n\t if ($module_records[$moduleid]['accessed'] < $LOG['Unix_Date/Time'][$index]) {\n $module_records[$moduleid]['accessed'] = $LOG['Unix_Date/Time'][$index]; \n }\n \n\n // compute accesses\n if(is_student_on_course($courseid, $LOG['UserID'][$index])) {\n \t$module_records[$moduleid]['student_pageviews']++;\n \tif (!in_array($LOG['UserID'][$index],$module_records[$moduleid]['students'])) $module_records[$moduleid]['students'][] = $LOG['UserID'][$index];\n }\n else {\n \t$module_records[$moduleid]['other_pageviews']++;\n \tif (!in_array($LOG['UserID'][$index],$module_records[$moduleid]['others'])) $module_records[$moduleid]['others'][] = $LOG['UserID'][$index];\n }\n }\n\n return $module_records;\n}", "title": "" }, { "docid": "9a04707151ba7d94a7827d34b8bb8421", "score": "0.5901274", "text": "public function get_all_courses($program)\n\t{\n\t$db = db_connect();\n $statement = $db->prepare(\"select * from courses where program = :program ;\");\n\t$statement->bindValue(':program',$program);\t\n $statement->execute();\n $rows = $statement->fetchAll(PDO::FETCH_ASSOC);\n\treturn $rows;\n\t}", "title": "" }, { "docid": "567af7bc58dceeeb37c659e6e2e3e1ac", "score": "0.5859118", "text": "public function getLessonCourse($idCourse) {\n $sql = $this->db->prepare(\"SELECT l.id as id_lesson, l.title as title_lesson, l.description as description_lesson, c.id as id_content, c.title as title_content FROM lesson l INNER JOIN lesson_has_content lhc ON lhc.idLesson = l.id INNER JOIN content c ON c.id = lhc.idContent INNER JOIN course_has_lesson chl ON chl.idLesson = l.id INNER JOIN course cc ON cc.id = chl.idCourse WHERE cc.id = ?\");\n $sql->bindValue(1, $idCourse);\n $sql->execute();\n\n if($sql->rowCount() > 0) {\n return $sql->fetchAll(PDO::FETCH_ASSOC);\n } \n }", "title": "" }, { "docid": "c38d0dbd5773935d7f137b7fdc5d76a5", "score": "0.5854746", "text": "public static function get_courses_by_category($categoryid)\n {\n global $DB;\n $query = \"SELECT id, fullname, shortname from {course} where category = \" . $categoryid;\n $courselist = $DB->get_records_sql($query);\n if ($courselist) {\n foreach ($courselist as $course) {\n $context = context_course::instance($course->id);\n $query = \"select count(u.id) as count from {role_assignments} as a, {user} as u where contextid=\" . $context->id . \" and roleid=5 and a.userid=u.id;\";\n $count = $DB->get_records_sql($query);\n $count = key($count);\n $courselist[$course->id]->count = $count;\n }\n usort($courselist, function ($variable1, $variable2) {\n return $variable2->count - $variable1->count;\n });\n $labels = $data = $background_color = $hoverBackground_color = array();\n $colors = array('#2196f3', '#00bcd4', '#009688', '#4caf50', '#8bc34a', '#ffeb3b', '#ff9800', '#f44336', '#9c27b0', '#673ab7', '#3f51b5');\n $others = $othersCount = 0;\n foreach ($courselist as $index => $course) {\n if ($index > 9) {\n $others = 1;\n $othersCount += $course->count;\n } else {\n array_push($labels, $course->shortname);\n array_push($data, $course->count);\n array_push($background_color, $colors[$index]);\n array_push($hoverBackground_color, $colors[$index]);\n }\n }\n if ($others > 0) {\n array_push($labels, get_string('others', 'theme_remui'));\n array_push($data, $othersCount);\n array_push($background_color, $colors[10]);\n array_push($hoverBackground_color, $colors[10]);\n }\n return array('labels' => $labels, 'data' => $data, 'background_color' => $background_color, 'hoverBackground_color' => $hoverBackground_color);\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "fc5d14baf84f955a2c653bd36bce60c2", "score": "0.58390033", "text": "public function moduleguidestructure($cid) {\n global $DB, $COURSE;\n $course = $DB->get_record('course', array('id' => $cid));\n $courseformat = course_get_format($course);\n $mods = get_fast_modinfo($course);\n $numsections = course_get_format($course)->get_last_section_number();\n\n $sections = $mods->get_sections();\n\n $secinfo = array();\n $totsec = 0;\n foreach ($mods->get_section_info_all() as $section => $thissection) {\n $name = get_section_name($course, $thissection);\n $secinfo[$thissection->section]['id'] = $thissection->id;\n $secinfo[$thissection->section]['section'] = $thissection->section;\n if ($name !== '' || !is_null($name)) {\n $secinfo[$thissection->section]['title'] = $name;\n } else {\n $secinfo[$thissection->section]['title'] = get_string('defaultsectiontitle',\n 'theme_uogateen').' '.$thissection->section;\n }\n $secinfo[$thissection->section]['summary'] = $thissection->summary;\n $secinfo[$thissection->section]['visible'] = $thissection->visible;\n\n $totsec = $totsec + 1;\n }\n\n // Whitelist titles for sections not included in Mod Guide.\n $notshown = explode(',', get_string('titlesnotdisplayed', 'theme_uogateen'));\n\n $content = '';\n for ($i = 0; $i <= $numsections; $i++) {\n $name = $secinfo[$i]['title'];\n foreach ($notshown as $ns) {\n if (strpos($name, $ns) !== false) {\n $secinfo[$i]['visible'] = 0;\n }\n }\n if ($secinfo[$i]['visible'] == 1) {\n $sectionurl = new moodle_url('/course/view.php', array('id' => $course->id, 'section' => $secinfo[$i]['section']));\n $id = $secinfo[$i]['section'];\n $title = $secinfo[$i]['title'];\n $summary = $secinfo[$i]['summary'];\n $content .= \"<a href = '\".$sectionurl.\"' alt = 'Section link - \".$title.\"' >\";\n $content .= '<h4>'.$title.'</h4>';\n $content .= '</a>';\n $content .= $summary;\n }\n }\n\n return $content;\n }", "title": "" }, { "docid": "e4298287175359e5558aecf5e043e8e1", "score": "0.58044666", "text": "private function getDueCourses() {\t\n\n\t\t$this->relevantCourses = array();\n\n\t\t$courses = array();\n\t\t//get available courses by sections\n\t\tforeach ($this->jCustomer->checkAvailableCourses as $section => $ref_id) {\n\t\t\t$courses = $courses + $this->noUICM->getAvailableCourses($ref_id);\n\t\t}\n\n\t\t//only programs relevant on this level:\n\t\tforeach ($courses as $obj_id => $crs_data) {\n\t\t\t$crs_type = $crs_data['type'];\n\t\t\tif($crs_type === 'prg') {\n\t\t\t\t$prg_ref_id = $crs_data['refId'];\n\t\t\t\t$this->getCoursesBelowPrg($prg_ref_id); //fills this->relevantCourses\n\t\t\t}\n\t\t}\n\t\t\n\n\t\t$ret = array();\n\t\tforeach ($this->relevantCourses as $crs) {\n\t\t\n\t\t\t$crs_start_date = $crs['courseStart']; //dd.mm.YYYY\n\t\t\t$crs_start_time = $crs['courseStartTime']; //hh:MM\n\t\t\t$start_date_str = $crs_start_date .' ' .$crs_start_time;\n\n\n\t\t\t//webinars: 1 hour;\n\t\t\t//f2f: 3 days\n\t\t\t$ctype = str_replace('prg_amd_type_', '', $crs['in_subtype']);\n\t\t\tif( in_array($ctype, array(\n\t\t\t\t\t'od01','od02','od03','od04'\n\t\t\t\t\t,'fk01','fk02','fk03','fk04','fk05'\n\t\t\t\t))) {\n\t\t\t\t$ctype = 'webinar';\n\t\t\t}\n\t\t\tif( in_array($ctype, array(\n\t\t\t\t\t'odfinal'\n\t\t\t\t\t,'fkfinal'\n\t\t\t\t))) {\n\t\t\t\t$ctype = 'f2f';\n\t\t\t}\n\n\t\t\t$start_date = DateTime::createFromFormat('d.m.Y H:i', $start_date_str);\n\t\t\t$today = new DateTime('NOW');\n\n\t\t\tif ($start_date > $today) { //only future dates\n\t\t\t\t\n\t\t\t\t$diff = $today->diff($start_date);\n\n\t\t\t\t$hours = $diff->h;\n\t\t\t\t$hours = $diff->h + ($diff->d * 24);\n\n\t\t\t\tif($diff->m == 0 && $diff->y == 0) {\n\t\t\t\t\tif($ctype == 'webinar' && $hours == 1) {\n\t\t\t\t\t\tarray_push($ret, $crs);\n\t\t\t\t\t}\n\n\t\t\t\t\tif($ctype == 'f2f' && $hours == 72) {\n\t\t\t\t\t\tarray_push($ret, $crs);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "4c9566b358c64653bf2d8da7b5710538", "score": "0.5796616", "text": "function GetDeptReport($connection,$id){\n $query = $connection->query(\"SELECT distinct ass_param_cat FROM assessment WHERE usr_typ = 'dept' \") ; \n while ($row = $query->fetch()) {\n\n $cat = $row['ass_param_cat'] ; \n // foreach ($row as $key ) {\n // Get Cummulative for a staff and their performance \n GetCumParam($connection,$id,$cat) ;\n\n // }\n }\n}", "title": "" }, { "docid": "95c01d5fc53d3d81e87a156aac64a763", "score": "0.5700418", "text": "function mycampus_grid_coursestatisticsALL($html)\t\t{\n\tglobal $dbA,$adodbcacheseconds,$indexshowcoursenumber,$CFG;\n\t$indexshowcoursenumber\t= $html->indexshowcoursenumber;\n\t$adodbcacheseconds\t\t= $html->adodbcacheseconds;\n\n\t$MetaTables = $dbA->MetaTables();\n\t//print_R($adodbcacheseconds);exit;\n\n\t$mycampus_grid_GetCourseQuizNumber = array();\n\t$sql = \"select COUNT(*) AS NUM,course from mdl_quiz group by course\";\n\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t$rsC_a\t= $rs->GetArray();\n\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t$NUM\t\t= $rsC_a[$i]['NUM'];\n\t\t$course\t\t= $rsC_a[$i]['course'];\n\t\t$mycampus_grid_GetCourseQuizNumber[$course] = $NUM;\n\t}\n\n\t$mycampus_grid_GetCourseSectionNumber = array();\n\t$sql = \"select COUNT(*) AS NUM,course from `mdl_course_sections` where visible=1 and name is not null group by course\";\n\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t$rsC_a\t= $rs->GetArray();\n\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t$NUM\t\t= $rsC_a[$i]['NUM'];\n\t\t$course\t\t= $rsC_a[$i]['course'];\n\t\t$mycampus_grid_GetCourseSectionNumber[$course] = $NUM;\n\t}\n\n\t$mycampus_grid_GetCourseEnrollmentStudentNumber = array();\n\t$sql = \"SELECT COUNT(userid) AS NUM,mdl_context.instanceid AS course FROM mdl_role_assignments, mdl_context where mdl_role_assignments.contextid=mdl_context.id group by mdl_context.instanceid\";\n\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t$rsC_a\t= $rs->GetArray();\n\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t$NUM\t\t= $rsC_a[$i]['NUM'];\n\t\t$course\t\t= $rsC_a[$i]['course'];\n\t\t$mycampus_grid_GetCourseEnrollmentStudentNumber[$course] = $NUM;\n\t}\n\n\n\tfunction 得到某课程下面文件的数量($id)\t\t{\n\t\tglobal $dbA,$adodbcacheseconds,$indexshowcoursenumber;\t//\n\n\t\t$sql = \"SELECT id FROM mdl_course_modules WHERE course = '$id'\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\t$contextid_list = array();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$contextid_list[]\t\t= $rsC_a[$i]['id'];\n\t\t}\n\t\tif(count($contextid_list)==0)\t\t\t\t{\n\t\t\t$contextid_list = array('9999999999');\n\t\t}\n\n\t\t$sql = \"SELECT id FROM mdl_context WHERE instanceid in (\".join(',',$contextid_list).\")\";\n\t\t//print $sql.\"<BR>\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\t$id_list = array();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$id_list[]\t\t= $rsC_a[$i]['id'];\n\t\t}\n\t\t //!='' and component!='' and component!=''\n\t\t$sql = \"SELECT count(distinct contenthash) AS NUM FROM mdl_files WHERE component not in ('backup','theme_more','user','blog','badges','group') and contextid in (\".join(',',$id_list).\")\";\n\t\t//print $sql.\"<BR>\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$NUM = $rs->fields['NUM'];\n\t\treturn $NUM;\n\t}\n\n\tfunction 得到某课程下面文件的数量FLV($id)\t\t{\n\t\tglobal $dbA,$adodbcacheseconds,$indexshowcoursenumber;\n\t\t$sql = \"SELECT id FROM mdl_course_modules WHERE course = '$id'\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\t$contextid_list = array();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$contextid_list[]\t\t= $rsC_a[$i]['id'];\n\t\t}\n\t\tif(count($contextid_list)==0)\t\t\t\t{\n\t\t\t$contextid_list = array('9999999999');\n\t\t}\n\n\t\t$sql = \"SELECT id FROM mdl_context WHERE instanceid in ('\".join(\"','\",$contextid_list).\"')\";\n\t\t//print $sql.\"<BR>\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\t$id_list = array();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$id_list[]\t\t= $rsC_a[$i]['id'];\n\t\t}\n\n\t\t$sql = \"SELECT count(distinct contenthash) AS NUM FROM mdl_files WHERE component not in ('backup','theme_more','user','blog','badges','group') and contextid in ('\".join(\"','\",$id_list).\"') and source like '%.flv%'\";\n\t\t//print $sql.\"<BR>\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$NUM = $rs->fields['NUM'];\n\t\treturn $NUM;\n\t}\n\n\tfunction 得到某课程下面文件的数量SWF($id)\t\t{\n\t\tglobal $dbA,$adodbcacheseconds,$indexshowcoursenumber;\n\t\t$sql = \"SELECT id FROM mdl_course_modules WHERE course = '$id'\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\t$contextid_list = array();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$contextid_list[]\t\t= $rsC_a[$i]['id'];\n\t\t}\n\t\tif(count($contextid_list)==0)\t\t\t\t{\n\t\t\t$contextid_list = array('9999999999');\n\t\t}\n\n\t\t$sql = \"SELECT id FROM mdl_context WHERE instanceid in (\".join(',',$contextid_list).\")\";\n\t\t//print $sql.\"<BR>\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\t$id_list = array();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$id_list[]\t\t= $rsC_a[$i]['id'];\n\t\t}\n\n\t\t$sql = \"SELECT count(distinct contenthash) AS NUM FROM mdl_files WHERE component not in ('backup','theme_more','user','blog','badges','group') and contextid in ('\".join(\"','\",$id_list).\"') and source like '%.swf%'\";\n\t\t//print $sql.\"<BR>\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$NUM = $rs->fields['NUM'];\n\t\treturn $NUM;\n\t}\n\n\tfunction 得到某课程下面文件的数量XLS($id)\t\t{\n\t\tglobal $dbA,$adodbcacheseconds,$indexshowcoursenumber;\n\t\t$sql = \"SELECT id FROM mdl_course_modules WHERE course = '$id'\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\t$contextid_list = array();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$contextid_list[]\t\t= $rsC_a[$i]['id'];\n\t\t}\n\t\tif(count($contextid_list)==0)\t\t\t\t{\n\t\t\t$contextid_list = array('9999999999');\n\t\t}\n\n\t\t$sql = \"SELECT id FROM mdl_context WHERE instanceid in (\".join(',',$contextid_list).\")\";\n\t\t//print $sql.\"<BR>\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\t$id_list = array();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$id_list[]\t\t= $rsC_a[$i]['id'];\n\t\t}\n\n\t\t$sql = \"SELECT count(distinct contenthash) AS NUM FROM mdl_files WHERE component not in ('backup','theme_more','user','blog','badges','group') and contextid in ('\".join(\"','\",$id_list).\"') and source like '%.xls%'\";\n\t\t//print $sql.\"<BR>\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$NUM = $rs->fields['NUM'];\n\t\treturn $NUM;\n\t}\n\n\tfunction 得到某课程下面文件的数量PPT($id)\t\t{\n\t\tglobal $dbA,$adodbcacheseconds,$indexshowcoursenumber;\n\t\t$sql = \"SELECT id FROM mdl_course_modules WHERE course = '$id'\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\t$contextid_list = array();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$contextid_list[]\t\t= $rsC_a[$i]['id'];\n\t\t}\n\t\tif(count($contextid_list)==0)\t\t\t\t{\n\t\t\t$contextid_list = array('9999999999');\n\t\t}\n\n\t\t$sql = \"SELECT id FROM mdl_context WHERE instanceid in (\".join(',',$contextid_list).\")\";\n\t\t//print $sql.\"<BR>\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\t$id_list = array();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$id_list[]\t\t= $rsC_a[$i]['id'];\n\t\t}\n\n\t\t$sql = \"SELECT count(distinct contenthash) AS NUM FROM mdl_files WHERE component not in ('backup','theme_more','user','blog','badges','group') and contextid in ('\".join(\"','\",$id_list).\"') and source like '%.ppt%'\";\n\t\t//print $sql.\"<BR>\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$NUM = $rs->fields['NUM'];\n\t\treturn $NUM;\n\t}\n\n\tfunction 得到某课程下面文件的数量DOC($id)\t\t{\n\t\tglobal $dbA,$adodbcacheseconds,$indexshowcoursenumber;\n\t\t$sql = \"SELECT id FROM mdl_course_modules WHERE course = '$id'\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\t$contextid_list = array();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$contextid_list[]\t\t= $rsC_a[$i]['id'];\n\t\t}\n\t\tif(count($contextid_list)==0)\t\t\t\t{\n\t\t\t$contextid_list = array('9999999999');\n\t\t}\n\n\t\t$sql = \"SELECT id FROM mdl_context WHERE instanceid in ('\".join(\"','\",$contextid_list).\"')\";\n\t\t//print $sql.\"<BR>\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\t$id_list = array();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$id_list[]\t\t= $rsC_a[$i]['id'];\n\t\t}\n\n\t\t$sql = \"SELECT count(distinct contenthash) AS NUM FROM mdl_files WHERE component not in ('backup','theme_more','user','blog','badges','group') and contextid in ('\".join(\"','\",$id_list).\"') and source like '%.doc%'\";\n\t\t//print $sql.\"<BR>\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$NUM = $rs->fields['NUM'];\n\t\treturn $NUM;\n\t}\n\n\tfunction 得到某课程下面文件的数量PDF($id)\t\t{\n\t\tglobal $dbA,$adodbcacheseconds,$indexshowcoursenumber;\n\t\t$sql = \"SELECT id FROM mdl_course_modules WHERE course = '$id'\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\t$contextid_list = array();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$contextid_list[]\t\t= $rsC_a[$i]['id'];\n\t\t}\n\t\tif(count($contextid_list)==0)\t\t\t\t{\n\t\t\t$contextid_list = array('9999999999');\n\t\t}\n\n\t\t$sql = \"SELECT id FROM mdl_context WHERE instanceid in ('\".join(\"','\",$contextid_list).\"')\";\n\t\t//print $sql.\"<BR>\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\t$id_list = array();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$id_list[]\t\t= $rsC_a[$i]['id'];\n\t\t}\n\n\t\t$sql = \"SELECT count(distinct contenthash) AS NUM FROM mdl_files WHERE component not in ('backup','theme_more','user','blog','badges','group') and contextid in ('\".join(\"','\",$id_list).\"') and source like '%.pdf%'\";\n\t\t//print $sql.\"<BR>\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$NUM = $rs->fields['NUM'];\n\t\treturn $NUM;\n\t}\n\n\n\t$mycampus_grid_GetCourseOneMouthActivesNumber = array();\n\t$datetime = mktime(0,1,1,date('m'),date('d')-60,date('Y'));\n\t$sql = \"select COUNT(*) AS NUM,courseid from mdl_logstore_standard_log where timecreated > '$datetime' group by courseid\";\n\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t$rsC_a\t= $rs->GetArray();\n\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t$NUM\t\t= $rsC_a[$i]['NUM'];\n\t\t$course\t\t= $rsC_a[$i]['courseid'];\n\t\t$mycampus_grid_GetCourseOneMouthActivesNumber[$course] = $NUM;\n\t}\n\n\n\t$得到课程的讨论区数量\t\t= array();\n\t$得到课程的讨论区数量ALL\t= array();\n\t$sql = \"select COUNT(*) AS NUM,course,type from mdl_forum group by course,type order by type\";\n\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t$rsC_a\t= $rs->GetArray();\n\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t$NUM\t\t= $rsC_a[$i]['NUM'];\n\t\t$course\t\t= $rsC_a[$i]['course'];\n\t\t$type\t\t= $rsC_a[$i]['type'];\n\t\t$得到课程的讨论区数量[$course]\t\t.= $type.\":\".$NUM.\" \";\n\t\t$得到课程的讨论区数量ALL[$course]\t+= $NUM;\n\t}\n\n\n\t$得到课程的讨论帖子数量 = array();\n\t$sql = \"select COUNT(*) AS NUM,course from mdl_forum_discussions group by course\";\n\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t$rsC_a\t= $rs->GetArray();\n\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t$NUM\t\t= $rsC_a[$i]['NUM'];\n\t\t$course\t\t= $rsC_a[$i]['course'];\n\t\t$得到课程的讨论帖子数量[$course] = $NUM;\n\t}\n\n\n\t$得到课程的词汇表数量 = array();\n\tif(in_array(\"mdl_glossary\",$MetaTables))\t\t\t\t{\n\t\t$sql = \"select COUNT(*) AS NUM,course from mdl_glossary group by course\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$NUM\t\t= $rsC_a[$i]['NUM'];\n\t\t\t$course\t\t= $rsC_a[$i]['course'];\n\t\t\t$得到课程的词汇表数量[$course] = $NUM;\n\t\t}\n\t}\n\n\t$得到课程的LESSON数量 = array();\n\tif(in_array(\"mdl_lesson\",$MetaTables))\t\t\t\t{\n\t\t$sql = \"select COUNT(*) AS NUM,course from mdl_lesson group by course\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$NUM\t\t= $rsC_a[$i]['NUM'];\n\t\t\t$course\t\t= $rsC_a[$i]['course'];\n\t\t\t$得到课程的LESSON数量[$course] = $NUM;\n\t\t}\n\t}\n\n\t$得到课程的SCORM数量 = array();\n\tif(in_array(\"mdl_scorm\",$MetaTables))\t\t\t\t{\n\t\t$sql = \"select COUNT(*) AS NUM,course from mdl_scorm group by course\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$NUM\t\t= $rsC_a[$i]['NUM'];\n\t\t\t$course\t\t= $rsC_a[$i]['course'];\n\t\t\t$得到课程的SCORM数量[$course] = $NUM;\n\t\t}\n\t}\n\n\t$得到课程的SURVEY数量 = array();\n\tif(in_array(\"mdl_survey\",$MetaTables))\t\t\t\t{\n\t\t$sql = \"select COUNT(*) AS NUM,course from mdl_survey group by course\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$NUM\t\t= $rsC_a[$i]['NUM'];\n\t\t\t$course\t\t= $rsC_a[$i]['course'];\n\t\t\t$得到课程的SURVEY数量[$course] = $NUM;\n\t\t}\n\t}\n\n\t$得到课程的标签数量 = array();\n\tif(in_array(\"mdl_tab\",$MetaTables))\t\t\t\t{\n\t\t$sql = \"select COUNT(*) AS NUM,course from mdl_tab group by course\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$NUM\t\t= $rsC_a[$i]['NUM'];\n\t\t\t$course\t\t= $rsC_a[$i]['course'];\n\t\t\t$得到课程的标签数量[$course] = $NUM;\n\t\t}\n\t}\n\n\t$得到课程的WIKI数量 = array();\n\tif(in_array(\"mdl_wiki\",$MetaTables))\t\t\t\t{\n\t\t$sql = \"select COUNT(*) AS NUM,course from mdl_wiki group by course\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$NUM\t\t= $rsC_a[$i]['NUM'];\n\t\t\t$course\t\t= $rsC_a[$i]['course'];\n\t\t\t$得到课程的WIKI数量[$course] = $NUM;\n\t\t}\n\t}\n\n\t$得到课程的feedback数量 = array();\n\tif(in_array(\"mdl_feedback\",$MetaTables))\t\t\t\t{\n\t\t$sql = \"select COUNT(*) AS NUM,course from mdl_feedback group by course\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$NUM\t\t= $rsC_a[$i]['NUM'];\n\t\t\t$course\t\t= $rsC_a[$i]['course'];\n\t\t\t$得到课程的feedback数量[$course] = $NUM;\n\t\t}\n\t}\n\n\t$得到课程的event数量 = array();\n\tif(in_array(\"mdl_event\",$MetaTables))\t\t\t\t{\n\t\t$sql = \"select COUNT(*) AS NUM,courseid from mdl_event group by courseid\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$NUM\t\t= $rsC_a[$i]['NUM'];\n\t\t\t$course\t\t= $rsC_a[$i]['courseid'];\n\t\t\t$得到课程的event数量[$course] = $NUM;\n\t\t}\n\t}\n\n\t$得到课程的chat数量 = array();\n\tif(in_array(\"mdl_chat\",$MetaTables))\t\t\t\t{\n\t\t$sql = \"select COUNT(*) AS NUM,course from mdl_chat group by course\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$NUM\t\t= $rsC_a[$i]['NUM'];\n\t\t\t$course\t\t= $rsC_a[$i]['course'];\n\t\t\t$得到课程的chat数量[$course] = $NUM;\n\t\t}\n\t}\n\n\t$得到课程的book数量 = array();\n\tif(in_array(\"mdl_book\",$MetaTables))\t\t\t\t{\n\t\t$sql = \"select COUNT(*) AS NUM,course from mdl_book group by course\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$NUM\t\t= $rsC_a[$i]['NUM'];\n\t\t\t$course\t\t= $rsC_a[$i]['course'];\n\t\t\t$得到课程的book数量[$course] = $NUM;\n\t\t}\n\t}\n\n\t$得到课程的assign数量 = array();\n\tif(in_array(\"mdl_assign\",$MetaTables))\t\t\t\t{\n\t\t$sql = \"select COUNT(*) AS NUM,course from mdl_assign group by course\";\n\t\t$rs = $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t\t$rsC_a\t= $rs->GetArray();\n\t\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t\t$NUM\t\t= $rsC_a[$i]['NUM'];\n\t\t\t$course\t\t= $rsC_a[$i]['course'];\n\t\t\t$得到课程的assign数量[$course] = $NUM;\n\t\t}\n\t}\n\n\t$sql\t= \"select id,name,parent from mdl_course_categories order by sortorder\";\n\t$rs\t\t= $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t$rsC_a\t= $rs->GetArray();\n\t$USER_MAP = array();\n\tfor($i=0;$i<sizeof($rsC_a);$i++)\t\t\t{\n\t\t$parent = $rsC_a[$i]['parent'];\n\t\t$id\t\t= $rsC_a[$i]['id'];\n\t\t$name\t= $rsC_a[$i]['name'];\n\t\t$CATE_DIR[$parent][]\t= $id;\n\t\t$CATE_MAP[$id]\t\t\t= $name;\n\t\t$CATE_GROUP[$id]\t\t\t= $parent;\n\t}\n\n\n\t//print_R($CATE_DIR);\n\t//print_R($COURSE_DIR);\n\tglobal $SITE;\n\tprint \"<link rel=\\\"stylesheet\\\" type=\\\"text/css\\\" href=\\\"/theme/mycampus_grid/style/style_4.css\\\" />\";\n\tprint \"<link rel=\\\"stylesheet\\\" type=\\\"text/css\\\" href=\\\"/theme/mycampus_grid/style/style_table.css\\\" />\";\n\tprint \"<Table class=TableBlock width=960>\";\n\tprint \"\n\t\t<Tr class='TableContent'>\n\t\t\t<td colspan=31>课程开设情况一览表【\".$SITE->shortname.\"】 数据更新:\".date('Y-m-d').\" 排序规则:目录号,课程信息里面的排序号</td>\n\t\t</tr>\n\t\t\";\n\tprint \"\n\t\t\t<Tr class='TableContent' align=center>\n\t\t\t\t<td colspan=1 nowrap>院系(一级目录)</td>\n\t\t\t\t<td colspan=1 nowrap>专业(二级目录)</td>\n\t\t\t\t<td colspan=1 nowrap>课程id</td>\n\t\t\t\t<td colspan=1 nowrap>课程名称</td>\n\t\t\t\t<td colspan=1 nowrap>教师信息</td>\n\t\t\t\t<td colspan=1 nowrap>章节数</td>\n\t\t\t\t<td colspan=1 nowrap>文件总数</td>\n\t\t\t\t<td colspan=1 nowrap>文档</td>\n\t\t\t\t<td colspan=1 nowrap>PPT</td>\n\t\t\t\t<td colspan=1 nowrap>XLS</td>\n\t\t\t\t<td colspan=1 nowrap>DOC</td>\n\t\t\t\t<td colspan=1 nowrap>PDF</td>\n\t\t\t\t<td colspan=1 nowrap>FLV</td>\n\t\t\t\t<td colspan=1 nowrap>SWF</td>\n\t\t\t\t<td colspan=1 nowrap>选修用户数</td>\n\t\t\t\t<td colspan=1 nowrap>测验数</td>\n\t\t\t\t<td colspan=1 nowrap>题库数</td>\n\t\t\t\t<td colspan=1 nowrap title='最近60天用户登录次数'>用户登录</td>\n\t\t\t\t<td colspan=1 nowrap title='讨论区类型:数量'>讨论区</td>\n\t\t\t\t<td colspan=1 nowrap title='讨论区所有类别帖子合计'>讨论数</td>\n\t\t\t\t<td colspan=1 nowrap title=''>词汇表</td>\n\t\t\t\t<td colspan=1 nowrap title=''>作业</td>\n\t\t\t\t<td colspan=1 nowrap title=''>LESSON</td>\n\t\t\t\t<td colspan=1 nowrap title=''>SCORM</td>\n\t\t\t\t<td colspan=1 nowrap title=''>SURVEY</td>\n\t\t\t\t<td colspan=1 nowrap title=''>LABEL</td>\n\t\t\t\t<td colspan=1 nowrap title=''>WIKI</td>\n\t\t\t\t<td colspan=1 nowrap title=''>FEEDBACK</td>\n\t\t\t\t<td colspan=1 nowrap title=''>EVENT</td>\n\t\t\t\t<td colspan=1 nowrap title=''>CHAT</td>\n\t\t\t\t<td colspan=1 nowrap title=''>BOOK</td>\n\t\t\t</tr>\n\t\t\t\";\n\n\n\n\n\t$sql\t= \"select * from mdl_course order by category,sortorder\";\n\t$rs\t\t= $dbA->CacheExecute($adodbcacheseconds,$sql);\n\t$rs_a\t= $rs->GetArray();\n\tfor($i=0;$i<sizeof($rs_a);$i++)\t\t\t{\n\t\t$category\t= $rs_a[$i]['category'];\n\t\t$id\t\t\t= $rs_a[$i]['id'];\n\t\t$fullname\t= $rs_a[$i]['fullname'];\n\t\t$专业名称\t= $CATE_MAP[$category];\n\t\t$院系id = $CATE_GROUP[$category];\n\t\t$院系名称\t= $CATE_MAP[$院系id];\n\t\tif($院系id==0)\t\t{\n\t\t\t$院系名称\t= $专业名称;\n\t\t}\n\t\t$mycampus_grid_GetCourseTeacherNumber\t\t= mycampus_grid_GetCourseTeacherNumber($id);\n\t\t$mycampus_grid_GetCourseTeacherNumber_TEXT\t= join(',',$mycampus_grid_GetCourseTeacherNumber);\n\t\t//<td colspan=1 nowrap title='文件数量'>\".得到某课程下面文件的数量($id).\"</td>\n\t\t//$统计汇总 = array();\n\t\tif($专业名称!=\"\")\t\t\t{\n\t\t\t$得到某课程下面文件的文档数量 = 0;\n\t\t\t$得到某课程下面文件的数量\t\t= 得到某课程下面文件的数量($id);\n\t\t\t$得到某课程下面文件的文档数量\t+= $得到某课程下面文件的数量PPT = 得到某课程下面文件的数量PPT($id);\n\t\t\t$得到某课程下面文件的文档数量\t+= $得到某课程下面文件的数量XLS = 得到某课程下面文件的数量XLS($id);\n\t\t\t$得到某课程下面文件的文档数量\t+= $得到某课程下面文件的数量DOC = 得到某课程下面文件的数量DOC($id);\n\t\t\t$得到某课程下面文件的文档数量\t+= $得到某课程下面文件的数量PDF = 得到某课程下面文件的数量PDF($id);\n\t\t\t$得到某课程下面文件的文档数量\t+= $得到某课程下面文件的数量FLV = 得到某课程下面文件的数量FLV($id);\n\t\t\t$得到某课程下面文件的文档数量\t+= $得到某课程下面文件的数量SWF = 得到某课程下面文件的数量SWF($id);\n\n\t\t\t$统计汇总[$院系名称][$id]\t\t = $得到某课程下面文件的文档数量;\n\t\t\tif($得到某课程下面文件的文档数量>0)\t\t\t\t\t{\n\t\t\t\t$统计汇总_2[$院系名称][$id]\t\t = $得到某课程下面文件的文档数量;\n\t\t\t}\n\t\t\tprint \"<Tr class='TableData' align=center>\n\t\t\t\t\t\t<td colspan=1 nowrap>$院系名称</td>\n\t\t\t\t\t\t<td colspan=1 nowrap>$专业名称</td>\n\t\t\t\t\t\t<td colspan=1 nowrap align=left>$id</td>\n\t\t\t\t\t\t<td colspan=1 nowrap align=left>$fullname</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title='mycampus_grid_GetCourseTeacherNumber_TEXT'>\".$mycampus_grid_GetCourseTeacherNumber_TEXT.\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title='mycampus_grid_GetCourseSectionNumber'>\".$mycampus_grid_GetCourseSectionNumber[$id].\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title='得到某课程下面文件的数量'>\".$得到某课程下面文件的数量.\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title='得到某课程下面文件的文档数量'>\".$得到某课程下面文件的文档数量.\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title='得到某课程下面文件的数量PPT'>\".$得到某课程下面文件的数量PPT.\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title='得到某课程下面文件的数量XLS'>\".$得到某课程下面文件的数量XLS.\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title='得到某课程下面文件的数量DOC'>\".$得到某课程下面文件的数量DOC.\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title='得到某课程下面文件的数量PDF'>\".$得到某课程下面文件的数量PDF.\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title='得到某课程下面文件的数量FLV'>\".$得到某课程下面文件的数量FLV.\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title='得到某课程下面文件的数量SWF'>\".$得到某课程下面文件的数量SWF.\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title='mycampus_grid_GetCourseEnrollmentStudentNumber'>\".$mycampus_grid_GetCourseEnrollmentStudentNumber[$id].\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title='mycampus_grid_GetCourseQuizNumber'>\".$mycampus_grid_GetCourseQuizNumber[$id].\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title='mycampus_grid_GetCourseQuestionNumber'>\".mycampus_grid_GetCourseQuestionNumber($id,$fullname).\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title='mycampus_grid_GetCourseOneMouthActivesNumber'>\".$mycampus_grid_GetCourseOneMouthActivesNumber[$id].\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title='\".$得到课程的讨论区数量[$id].\"'>\".$得到课程的讨论区数量ALL[$id].\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title='得到课程的讨论帖子数量'>\".$得到课程的讨论帖子数量[$id].\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title='得到课程的词汇表数量'>\".$得到课程的词汇表数量[$id].\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title=''>\".$得到课程的assign数量[$id].\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title=''>\".$得到课程的LESSON数量[$id].\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title=''>\".$得到课程的SCORM数量[$id].\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title=''>\".$得到课程的SURVEY数量[$id].\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title=''>\".$得到课程的标签数量[$id].\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title=''>\".$得到课程的WIKI数量[$id].\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title=''>\".$得到课程的feedback数量[$id].\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title=''>\".$得到课程的event数量[$id].\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title=''>\".$得到课程的chat数量[$id].\"</td>\n\t\t\t\t\t\t<td colspan=1 nowrap title=''>\".$得到课程的book数量[$id].\"</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\";\n\t\t}\n\t}\n\n\n\tprint \"</table>\";\n\n\n}", "title": "" }, { "docid": "61f95260bd0156470a145e69fb90c765", "score": "0.5695632", "text": "public function get_courses($classid) {\n\n $query = $this->db->select(array('id', 'course'))\n ->from('course')\n ->where('course.class_id',$classid)\n ->get();\n\n if ($query->num_rows() > 0)\n {\n foreach ($query->result() as $row)\n {\n $course_data[$row->id] = $row->course;\n };\n return $course_data; \n }\n \n else\n {\n return false;\n };\n }", "title": "" }, { "docid": "bd2bce9f6fdb3d1672cf92f7192a472b", "score": "0.56842566", "text": "function get_prerequisite_courses($courseid) {\n \n $connection_manager = new connection_manager();\n $conn = $connection_manager->connect();\n \n $stmt = $conn->prepare(\"SELECT child_course FROM prerequisite WHERE parent_course=:parent_course\");\n \n $stmt->bindParam(\":parent_course\", $courseid);\n \n $stmt->setFetchMode(PDO::FETCH_ASSOC);\n \n $stmt->execute();\n \n $result = [];\n \n while($row = $stmt->fetch()) {\n array_push($result, array_values($row)[0]);\n }\n return $result;\n }", "title": "" }, { "docid": "0db159282c2eef09dfe7490719cdee7f", "score": "0.56713814", "text": "public function get_all_courses()\n\t{\n\t\t$myconn = $this->establish_connection();\n\n\t\t/* Prepared statement, stage 1: prepare */\n\n\t\tif(!($stmt=$myconn->prepare(\"SELECT `course_id`, `course`, course.department_id, department FROM `course` \n\t\t\t\t\t\t\t\t\t\tINNER JOIN department on course.department_id= department.department_id\")))\n\t\t{\n\t\t\treturn \"Prepare failed: (\" . $myconn->errno . \") \" . $myconn->error;\n\t\t}\n\t\t\n\t\t/* \n\t\t * Exectuing Query against MySql\n\t\t *\n\t\t*/ \n\t\tif (!$stmt->execute()) \n\t\t{\n\t\t\t return \"Execute failed: (\" . $stmt->errno . \") \" . $stmt->error;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$stmt->bind_result($course_id, $course, $department_id, $department);\n\t\t\t/*\n\t\t\t * MySqli_stmt_fetch()\n\t\t\t * TRUE\tSuccess. Data has been fetched\n\t\t\t * FALSE\tError occurred\n\t\t\t * NULL\tNo more rows/data exists or data truncation occurred\n\t\t\t */\n\t\t\t//$result = array();\n\t\t\twhile($stmt->fetch())\n\t\t\t{\n\t\t\t\t//Adding result to an array.\n\t\t\t\t$result[] = array(\"course_id\" => $course_id, \"course\"=>$course, \"department_id\" => $department_id, \n\t\t\t\t\t\"department\"=>$department);\n\t\t\t}\n\t\t\treturn $result;\n\t\t}\n\t\t/* explicit close recommended */\n\t\t$stmt->close();\n\n\t\t$myconn->close();\n\t}", "title": "" }, { "docid": "a3b87c97902abf4602c3e19622bb617b", "score": "0.5661642", "text": "function get_dependent_courses($course_id, $program_id) {\n if (!$course_id || !$program_id) {\n return array();\n }\n\n $dbh = DB::connect();\n\n $q = \"SELECT c.code code, c.number number \";\n $q.= \"FROM Prerequisites p \";\n $q.= \"LEFT JOIN Courses c ON c.id = p.course_id \";\n $q.= \"WHERE p.prerequisite_id = \" . $course_id . \" \";\n $q.= \"AND IN (SELECT c.id \";\n $q.= \" FROM Courses c \";\n $q.= \" LEFT JOIN MapCourse mc ON mc.course_id = c.id \";\n $q.= \" LEFT JOIN MapSemesters m ON m.id = mc.map_id \";\n $q.= \" LEFT JOIN Maps p ON p.id = m.program_id \";\n $q.= \" WHERE p.id = \" . $program_id . \")\";\n\n $result = $dbh->query($q);\n\n if (!$result) {\n return array();\n }\n\n $courses = array();\n while ($row = $result->fetch(PDO::FETCH_ASSOC)) {\n $courses[] = $row;\n }\n\n return $courses;\n}", "title": "" }, { "docid": "3cd67af48dc683ffd0bf416ea9b20416", "score": "0.5649718", "text": "public function getPisByPlanId($id)\n {\n $pis2 = array();\n $pis = PiSmc::where([\n //STATE_ID_STATE = '5' outcome de estado activo\n ['PLAN_ID_PLAN', '=', $id],\n ])->get();\n\n for ($i = 0; $i < $pis->count(); $i++) {\n\n $Idpi = $pis[$i]->ID_PI;\n $CodePi = $pis[$i]->CODE;\n $DescriptionPi = $pis[$i]->DESCRIPTION;\n $pis2[$i] = new PiCdioAssessmentSource($Idpi, $CodePi, $DescriptionPi);\n\n $cdios2 = array();\n $cdios = CdioSkillPi::where([\n ['PI_ID_PI', '=', $Idpi],\n ])->get();;\n\n for ($j = 0; $j < $cdios->count(); $j++) {\n $idcdio = $cdios[$j]->CDIO_SKILL_ID_CDIO_SKILL;\n $cdioSkill = CdioSkill::where('ID_CDIO_SKILL', '=', $idcdio)->first();\n $cdios2[$j] = $cdioSkill;\n }\n\n $pis2[$i]->Cdios = $cdios2;\n\n $courses = array();\n $mapeo = array();\n $cdios = CdioSkillPi::where([\n ['PI_ID_PI', '=', $Idpi],\n ])->get();;\n\n for ($j = 0; $j < count($cdios); $j++) {\n $idcdio = $cdios[$j]->CDIO_SKILL_ID_CDIO_SKILL;\n\n $coursesmtx = CdioCourseMtx::where([\n ['ID_CDIO_SKILL', '=', $idcdio],\n ])->get();\n\n for ($k = 0; $k < count($coursesmtx); $k++) {\n $mapeo[] = $coursesmtx[$k];\n }\n }\n\n for ($j = 0; $j < count($mapeo); $j++) {\n $idcourse = $mapeo[$j]->ID_COURSE;\n $course = Course::where('ID_COURSE', '=', $idcourse)->first();\n\n $courses[$j] = $course;\n }\n\n // $courses = array_slice($courses, 0, 6);\n // $courses = array_unique($courses);\n $pis2[$i]->MappingCourses = $courses;\n\n\n $assessmentSources = AsSrc::where([\n ['PI_ID_PI', '=', $Idpi]\n ])->get();\n\n $courses = array();\n\n for ($j = 0; $j < $assessmentSources->count(); $j++) {\n\n $idCourse = $assessmentSources[$j]->COURSE_ID_COURSE;\n $AssessmentCourse = Course::where('ID_COURSE', '=', $idCourse)->first();\n\n $idMethodAssessment = $assessmentSources[$j]->METHOD_ID_AS_METHOD;\n $methodAssessment = Method::where('ID_AS_METHOD', '=', $idMethodAssessment)->first();\n\n $idpersonInCharge = $assessmentSources[$j]->USER_CIP_ID_USER;\n $personInCharge = UserCip::where('ID_USER', '=', $idpersonInCharge)->first();\n\n $nameCourse = $AssessmentCourse->NAME_COURSE;\n $nameMethod = $methodAssessment->NAME;\n $dateCollection = $assessmentSources[$j]->COLLECTION_DATE;\n $namePersonCharge = $personInCharge->NAME_USER . \" \" . $personInCharge->LAST_NAME;\n\n $AssessmentSourceBasic = new AssessmentSourceBasic($nameCourse, $nameMethod, $dateCollection, $namePersonCharge);\n $courses[$j] = $AssessmentSourceBasic;\n\n\n }\n\n $pis2[$i]->AssessmentCourses = $courses;\n\n\n }\n\n $response = Response::json($pis2, 200);\n return $response;\n }", "title": "" }, { "docid": "88dbb0234c87a8610b3b308567e841a5", "score": "0.563034", "text": "function getCourse($id){\n $sql = \"SELECT * FROM course WHERE id='$id'\";\n $result = mysqli_query($this->connection, $sql);\n $resultArray = mysqli_fetch_all($result, MYSQLI_ASSOC);\n return $resultArray;\n }", "title": "" }, { "docid": "b5a41197b1bc096dac2873053df00b0b", "score": "0.5601037", "text": "function getDepartmentCoursesProgess($department_id){\n\t\tcheckConnectivity();\n\n $list= array();\n $query =sprintf(\"select * from course where department_id = %s\",$department_id);\n $result =mysqli_query($GLOBALS['connection_link'],$query);\n while($row = mysqli_fetch_assoc($result)){\n\t\t $row['progress']=getCourseProgress($row['ID']);\n $list[]=$row;\n }\n\n return $list;\n }", "title": "" }, { "docid": "2e79470ed3c304281b0e26938436f14a", "score": "0.5582155", "text": "function CatsbyModule()\n {\n $modID= $this->uri->segment(3);\n $queryAllCats = \"SELECT tbl_category.id as catID, tbl_category.name as catName, tbl_module.name as moduleName ,tbl_category.moduleID , tbl_module.id \n FROM tbl_category\n JOIN tbl_module\n HAVING tbl_category.moduleID = tbl_module.id\n AND tbl_category.moduleID = $modID \n ORDER BY tbl_category.moduleID ASC, tbl_category.sortorder ASC\";\n\n $query = $this->db->query($queryAllCats);\n $arrCats = $query->result_array($query);\n \n $a='';\n foreach($arrCats as $row)\n {\n $a .= '<h2>';\n $a .= $row['catName'];\n $a .= '</h2>';\n $a .= '<p>';\n $a .= $row['moduleName'];\n $a .= '</p>';\n \n $a .= $this->getAllBPs($row['catID']);\n }\n$a .= '<hr />';\n// now repeat the above, but with the module id < $moduleID\n\n $queryAllCats = \"SELECT tbl_category.id as catID, tbl_category.name as catName, tbl_module.name as moduleName ,tbl_category.moduleID , tbl_module.id \n FROM tbl_category\n JOIN tbl_module\n HAVING tbl_category.moduleID = tbl_module.id\n AND tbl_category.moduleID < $modID \n ORDER BY tbl_category.moduleID ASC, tbl_category.sortorder ASC\"; \n \n $query = $this->db->query($queryAllCats);\n $arrCats = $query->result_array($query);\n \n foreach($arrCats as $row)\n {\n $a .= '<h2>';\n $a .= $row['catName'];\n $a .= '</h2>';\n $a .= '<p>';\n $a .= $row['moduleName'];\n $a .= '</p>';\n \n $a .= $this->getAllBPs($row['catID']);\n }\n return $a;\n }", "title": "" }, { "docid": "8195b204c91d011f85d565bf17129863", "score": "0.55749345", "text": "function certrt_get_mods() {\n global $COURSE, $DB;\n\n $strtopic = get_string(\"topic\");\n $strweek = get_string(\"week\");\n $strsection = get_string(\"section\");\n\n // Collect modules data\n $modinfo = get_fast_modinfo($COURSE);\n $mods = $modinfo->get_cms();\n\n $modules = array();\n $sections = $modinfo->get_section_info_all();\n for ($i = 0; $i <= count($sections) - 1; $i++) {\n // should always be true\n if (isset($sections[$i])) {\n $section = $sections[$i];\n if ($section->sequence) {\n switch ($COURSE->format) {\n case \"topics\":\n $sectionlabel = $strtopic;\n break;\n case \"weeks\":\n $sectionlabel = $strweek;\n break;\n default:\n $sectionlabel = $strsection;\n }\n\n $sectionmods = explode(\",\", $section->sequence);\n foreach ($sectionmods as $sectionmod) {\n if (empty($mods[$sectionmod])) {\n continue;\n }\n $mod = $mods[$sectionmod];\n $instance = $DB->get_record($mod->modname, array('id' => $mod->instance));\n if ($grade_items = grade_get_grade_items_for_activity($mod)) {\n $mod_item = grade_get_grades($COURSE->id, 'mod', $mod->modname, $mod->instance);\n $item = reset($mod_item->items);\n if (isset($item->grademax)){\n $modules[$mod->id] = $sectionlabel . ' ' . $section->section . ' : ' . $instance->name;\n }\n }\n }\n }\n }\n }\n\n return $modules;\n}", "title": "" }, { "docid": "fe7052b10860fcf18c257ae67ec4776b", "score": "0.5572965", "text": "public static function get_ltis_by_courses($courseids = array()) {\n global $CFG;\n\n $returnedltis = array();\n $warnings = array();\n\n $params = self::validate_parameters(self::get_ltis_by_courses_parameters(), array('courseids' => $courseids));\n\n $mycourses = array();\n if (empty($params['courseids'])) {\n $mycourses = enrol_get_my_courses();\n $params['courseids'] = array_keys($mycourses);\n }\n\n // Ensure there are courseids to loop through.\n if (!empty($params['courseids'])) {\n\n list($courses, $warnings) = external_util::validate_courses($params['courseids'], $mycourses);\n\n // Get the ltis in this course, this function checks users visibility permissions.\n // We can avoid then additional validate_context calls.\n $ltis = get_all_instances_in_courses(\"lti\", $courses);\n\n foreach ($ltis as $lti) {\n\n $context = context_module::instance($lti->coursemodule);\n\n // Entry to return.\n $module = array();\n\n // First, we return information that any user can see in (or can deduce from) the web interface.\n $module['id'] = $lti->id;\n $module['coursemodule'] = $lti->coursemodule;\n $module['course'] = $lti->course;\n $module['name'] = external_format_string($lti->name, $context->id);\n\n $viewablefields = [];\n if (has_capability('mod/lti:view', $context)) {\n $options = array('noclean' => true);\n list($module['intro'], $module['introformat']) =\n external_format_text($lti->intro, $lti->introformat, $context->id, 'mod_lti', 'intro', null, $options);\n\n $module['introfiles'] = external_util::get_area_files($context->id, 'mod_lti', 'intro', false, false);\n $viewablefields = array('launchcontainer', 'showtitlelaunch', 'showdescriptionlaunch', 'icon', 'secureicon');\n }\n\n // Check additional permissions for returning optional private settings.\n if (has_capability('moodle/course:manageactivities', $context)) {\n\n $additionalfields = array('timecreated', 'timemodified', 'typeid', 'toolurl', 'securetoolurl',\n 'instructorchoicesendname', 'instructorchoicesendemailaddr', 'instructorchoiceallowroster',\n 'instructorchoiceallowsetting', 'instructorcustomparameters', 'instructorchoiceacceptgrades', 'grade',\n 'resourcekey', 'password', 'debuglaunch', 'servicesalt', 'visible', 'groupmode', 'groupingid');\n $viewablefields = array_merge($viewablefields, $additionalfields);\n\n }\n\n foreach ($viewablefields as $field) {\n $module[$field] = $lti->{$field};\n }\n\n $returnedltis[] = $module;\n }\n }\n\n $result = array();\n $result['ltis'] = $returnedltis;\n $result['warnings'] = $warnings;\n return $result;\n }", "title": "" }, { "docid": "51832db5de7f9cf57156e718e14539a0", "score": "0.5564232", "text": "public function getCoursesTaught() // {{{\n {\n global $CCV_CONST;\n $records = array();\n $elements = $this->m_xpath->query(\"//section[@id='9dc74140d0ff4b26a2d4a559bc9b5a2b']\");\n for ($i = 0; !is_null($elements) && $i < $elements->length; $i++)\n {\n $record = array();\n $id = $this->get_xpath(\"@recordId\", $elements->item($i));\n $record[\"role\"] = $this->get_xpath(\"field[@id='cefdb78ecd9e43fb8554d21e7d454132']/value\", $elements->item($i));\n $record[\"department\"] = $this->get_xpath(\"field[@id='b532bb9be90e4a93a879f23e79cfd652']/value\", $elements->item($i));\n $record[\"semester\"] = $this->get_xpath(\"field[@id='bab7abad3efb404897984bee6ed33692']/value\", $elements->item($i));\n $record[\"code\"] = $this->get_xpath(\"field[@id='d62dd205bef0463a8a23436c75f83f41']/value\", $elements->item($i));\n $record[\"title\"] = $this->get_xpath(\"field[@id='95728285a48242a896b5727c98a7c0c5']/value\", $elements->item($i));\n $record[\"level\"] = $this->get_xpath(\"field[@id='6db7aff8daf74420abcca56f8e6d6cc3']/lov/@id\", $elements->item($i));\n $date = $this->get_xpath(\"field[@id='76f08a7bda38475bb15660d4fc57745f']/value\", $elements->item($i));\n @list($record[\"start_date_year\"], $record[\"start_date_month\"], $record[\"start_date_day\"]) = explode(\"-\", $date);\n $date = $this->get_xpath(\"field[@id='c87587a998c04d3bbb23e853516d2f94']/value\", $elements->item($i));\n @list($record[\"end_date_year\"], $record[\"end_date_month\"], $record[\"end_date_day\"]) = explode(\"-\", $date);\n $record[\"nb_students\"] = $this->get_xpath(\"field[@id='c2b79aa4e9e0431db8f3c4e2c32db3b0']/value\", $elements->item($i));\n $record[\"nb_credits\"] = $this->get_xpath(\"field[@id='c2b79aa4e9e0431db8f3c4e2c32db3b0']/value\", $elements->item($i));\n $record[\"nb_credits\"] = $this->get_xpath(\"section[@id='05b1c7c941194144b786690d89ba7c8c']/field[@id='97231512141a452a82151cc162e9a59c']/value\", $elements->item($i));\n $records[$id] = $record;\n }\n return $records;\n }", "title": "" }, { "docid": "8401b7932cf9570ecb81df0008a0dba6", "score": "0.5561905", "text": "function selectCoreAssignments($conn,$is_act,$core_id){\n\t\t$assignments = array();\n\t\tif($is_act == 0){\n\t\t\t$query = \"SELECT kl.key_loc_id,kl.key_loc_startdt,kl.key_loc_enddt,kl.key_id,kl.loc_id,l.loc_unit_num,l.loc_desc,l.loc_type,b.bldg_num,b.bldg_prop,c.core_num,c.core_id\n\t\t\t\tFROM key_loc kl INNER JOIN location l ON kl.loc_id = l.loc_id INNER JOIN ktkey k ON kl.key_id = k.key_id INNER JOIN core c ON k.core_id = c.core_id\n\t\t\t\tINNER JOIN building b ON l.bldg_id = b. bldg_id\n\t\t\t\tWHERE kl.key_loc_enddt IS NOT NULL AND c.core_id = '$core_id' ORDER BY kl.key_loc_id DESC\";\n\t\t}elseif($is_act == 1){\t\n\t\t\t$query = \"SELECT kl.key_loc_id,kl.key_loc_startdt,kl.key_loc_enddt,kl.key_id,kl.loc_id,l.loc_unit_num,l.loc_desc,l.loc_type,b.bldg_num,b.bldg_prop,c.core_num,c.core_id\n\t\t\t\tFROM key_loc kl INNER JOIN location l ON kl.loc_id = l.loc_id INNER JOIN ktkey k ON kl.key_id = k.key_id INNER JOIN core c ON k.core_id = c.core_id\n\t\t\t\tINNER JOIN building b ON l.bldg_id = b. bldg_id\n\t\t\t\tWHERE kl.key_loc_enddt IS NULL AND c.core_id = '$core_id' ORDER BY kl.key_loc_id DESC\";\n\t\t}elseif($is_act == 2){\n\t\t\t$query = \"SELECT kl.key_loc_id,kl.key_loc_startdt,kl.key_loc_enddt,kl.key_id,kl.loc_id,l.loc_unit_num,l.loc_desc,l.loc_type,b.bldg_num,b.bldg_prop,c.core_num,c.core_id\n\t\t\t\tFROM key_loc kl INNER JOIN location l ON kl.loc_id = l.loc_id INNER JOIN ktkey k ON kl.key_id = k.key_id INNER JOIN core c ON k.core_id = c.core_id\n\t\t\t\tINNER JOIN building b ON l.bldg_id = b. bldg_id\n\t\t\t\tWHERE c.core_id = '$core_id' ORDER BY kl.key_loc_id DESC\";\n\t\t}\n\t\t$result = mysqli_query($conn, $query);\n\t\tif(!$result){\n\t\t echo \"Record not found\" . mysqli_error($conn);\n\t\t exit;\n\t\t}\n\t\t$rows = $result->num_rows;\n\t\tfor($j=0; $j<$rows; $j++){\n\t\t\twhile($row = $result->fetch_array(MYSQLI_ASSOC)){\n\t\t\t\tarray_push($assignments, $row);\n\t\t\t}\n\t\t}\n\t\treturn $assignments;\n\t}", "title": "" }, { "docid": "4f9d7e336cb267d4f952b11ea3978d44", "score": "0.5513536", "text": "function buildSemCourseOptions($programmId = '', $semesterId = '', $classId = '') {\n\nif (isset($_GET['programId']) && (int)$_GET['programId'] > 0) {\n\t$programmId = (int)$_GET['programId'];\n\t$semesterId = (int)$_GET['sem'];\n}\n\nif (isset($_GET['courseId']) && (int)$_GET['courseId'] > 0) {\n\t$courseId = (int)$_GET['courseId'];\n}\n\nif (isset($_GET['classId']) && (int)$_GET['classId'] > 0) {\n\t$classId = (int)$_GET['classId'];\n}\n\n\t$sql = \"SELECT *\n\t\t\tFROM semestercourses sc, course c\n\t\t\tWHERE sc.sccourseid = c.courseid AND sc.scprogramid = $programmId AND sc.scsemester = $semesterId\n\t\t\tORDER BY coursename\";\n\n\t$result = dbQuery($sql) or die('Cannot get data. ' . mysql_error());\n\t\n\t\n\t\n\t$list = '';\n\twhile($row = dbFetchAssoc($result)) {\n\t\n\t// build combo box options\n\t$list .= \"<option value='\" . $row['courseid'] .\"'\";\n\t\t\tif (@$row['courseid'] == @$courseId) {\n\t\t\t\t$list.= \" selected\";\n\t\t\t}\n\t\t\t\n\t\techo \t$sqlCourse = \"SELECT *\n\t\t\t\t\t\t FROM resultinfo\n\t\t\t\t\t\t WHERE resultclassid = $classId AND resultsemester = $semesterId\";\n\n\t\t\t$resultCourse = dbQuery($sqlCourse) or die('Cannot get data. ' . mysql_error());\n\t\t\twhile ($rowCourse = dbFetchAssoc($resultCourse)) {\n\t\t\t\n\t\t\t\tif (@$row['courseid'] == @$rowCourse['resultcourseid']) {\n\t\t\t\t\t$list.= \" disabled='disabled'\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} //end course while\n\t\t\t\n\t\t\t$list .= \">\" . $row['coursecode'] . \": \" . ucwords($row['coursename']) . @$resultcourseid . \"</option>\\r\\n\";\n\t} //end while\n\t\n\treturn $list;\n}", "title": "" }, { "docid": "cb3fce4628d2bd782f3ee0399aa807d6", "score": "0.5511036", "text": "function get_semester_courses($map_id) {\n if (!$map_id) {\n return array();\n }\n\n $dbh = DB::connect();\n\n $q = \"SELECT c.code code, c.number number, c.title title, c.credits credits, \";\n $q.= \"m.milestone_activity milestone, m.type type\";\n $q.= \"FROM MapCourse m\";\n $q.= \"LEFT JOIN Courses c ON m.course_id = c.id\";\n $q.= \"WHERE m.map_id = \" . $map_id;\n\n $result = $dbh->query($q);\n\n if (!$result) {\n return array();\n }\n\n $courses = array();\n while ($row = $result->fetch(PDO::FETCH_ASSOC)) {\n $courses[] = $row;\n }\n\n return $courses;\n}", "title": "" }, { "docid": "734e4aaa7ada99c9db6f0f7872352d6b", "score": "0.55008435", "text": "public function getSectionArrayofferedprogram($data){\n \n if(!empty($data)){\n $this->db->where('campusId',$data['campusId']);\n $this->db->where('mediumId',$data['mediumId']);\n $this->db->where('programId',$data['programId']);\n $this->db->where('groupId',$data['groupId']);\n $this->db->where('shiftId',$data['shiftId']);\n $this->db->where('sessionId',$data['sessionId']); \n $this->db->where('classStatus',1); \n\n $qu = $this->db->get($this->_offertable);\n $result= $qu->result_array();\n if(!empty($result)){\n return $result;\n }\n \n }\n }", "title": "" }, { "docid": "c5c08c30c870e8cc8b75c90e53ec87d6", "score": "0.54950553", "text": "function show_module_accesses_breakdown($courseid)\n{\n global $OUTPUT, $MODE;\n\n $arrayListAssign= array();\n $arrayListForum= array();\n $arrayListPage= array();\n $arrayListResource= array();\n $arrayListURL= array();\n $arrayListQuiz= array();\n //$arrayElse= array();\n\n $arrayListData= array();\n\n $staffArrayListAssign= array();\n $staffArrayListForum= array();\n $staffArrayListPage= array();\n $staffArrayListResource= array();\n $staffArrayListURL= array();\n $staffArrayListQuiz= array();\n $staffArrayListData= array();\n\n\t$module_accesses = get_course_module_accesses_breakdown($courseid);\n \t\n $module_types = get_reportable_module_types($courseid);\n \n echo '<h3>'.'Activity accesses'.'</h3>' . \"\\n\";\n \n echo '<p><small>Showing activity types: ';\n $output = \"\";\n foreach($module_types as $module)$output .= $module . ', ';\n $output = substr($output, 0, strlen($output) - 2); // remove ', '\n echo $output;\n echo '</small></p>'; \n \n\techo '<table width=\"100%\" cellpadding=\"3\" cellspacing=\"0\" class = \"datatable format_table\">';\t\t\n\techo '\n <thead>\n <tr>\n <th rowspan=\"2\">Activity</th>\n <th colspan=\"2\">Students</th>\n <th colspan=\"2\">Others *</th>\n <th rowspan=\"2\">Last accessed</th>\n </tr>\n <tr> \n <th>Total accesses</th>\n <th>Individuals</th>\n <th>Total accesses</th>\n <th>Individuals</th>\n </tr>\n </thead>';\n\n echo \"\\n\"; \n echo '<tbody>';\n echo \"\\n\"; \n foreach ($module_accesses as $key => $module_access) { \n // get user details for hover info // for dev only\n $students = array_map(function($value) { return get_username_from_userid($value); }, $module_access['students']);\n $others = array_map(function($value) { return get_username_from_userid($value); }, $module_access['others']);\n \n \t$module_info = get_course_module_info($courseid, $key);\n \n \t//if ( trim($module_info->name) == \"\" || $module_info->name == NULL) continue;\n \tif (!in_array($module_info->modname,$module_types)) continue;\n \n\t\techo '<tr>';\n echo \"\\n\"; \n \n\t \techo '<td>';\n echo '<a href=\"' . $module_info->href . '\" title = \"' . $module_info->name. '\">';\n echo '<img src = \"' . $OUTPUT->pix_url('icon', $module_info->modname) . '\" alt = \"' . $module_info->modname . '\" title = \"' . $module_info->modname . '\"/>' . '&nbsp;';\n if ($module_info->modname == \"assign\") {\n # code...\n array_push($arrayListAssign, $module_info->name, $module_info->modname);\n //array_push($staffArrayListAssign, $module_info->name, $module_info->modname);\n }\n elseif ($module_info->modname == \"forum\") {\n # code...\n array_push($arrayListForum, $module_info->name, $module_info->modname);\n //array_push($staffArrayListAssign, $module_info->name, $module_info->modname);\n }\n elseif ($module_info->modname == \"page\") {\n # code...\n array_push($arrayListPage, $module_info->name, $module_info->modname);\n // array_push($staffArrayListAssign, $module_info->name, $module_info->modname);\n }\n elseif ($module_info->modname == \"resource\") {\n # code...\n array_push($arrayListResource, $module_info->name, $module_info->modname);\n //array_push($staffArrayListAssign, $module_info->name, $module_info->modname);\n }\n elseif ($module_info->modname == \"url\") {\n # code...\n\n array_push($arrayListURL, $module_info->name, $module_info->modname);\n //array_push($staffArrayListAssign, $module_info->name, $module_info->modname);\n }\n elseif ($module_info->modname == \"quiz\") {\n # code...\n\n array_push($arrayListQuiz, $module_info->name, $module_info->modname);\n //array_push($staffArrayListAssign, $module_info->name, $module_info->modname);\n }\n else\n {\n goto av;\n }\n\n array_push($arrayListData, $module_info->name, $module_info->modname);\n array_push($staffArrayListData, $module_info->name, $module_info->modname);\n\n av:\n echo $module_info->name;\n echo '</a>';\n \techo '</td>';\n echo \"\\n\"; \n \techo '<td>';\n\n if ($module_info->modname == \"assign\") {\n # code...\n array_push($arrayListAssign, $module_access['student_pageviews']);\n }\n elseif ($module_info->modname == \"forum\") {\n # code...\n array_push($arrayListForum, $module_access['student_pageviews']);\n }\n elseif ($module_info->modname == \"page\") {\n # code...\n array_push($arrayListPage, $module_access['student_pageviews']);\n }\n elseif ($module_info->modname == \"resource\") {\n # code...\n array_push($arrayListResource, $module_access['student_pageviews']);\n }\n elseif ($module_info->modname == \"url\") {\n # code...\n array_push($arrayListURL, $module_access['student_pageviews']);\n }\n elseif ($module_info->modname == \"quiz\") {\n # code...\n array_push($arrayListQuiz, $module_access['student_pageviews']);\n }\n else\n {\n goto a;\n }\n\n array_push($arrayListData, $module_access['student_pageviews']);\n a:\n\n \techo $module_access['student_pageviews'];\n \techo '</td>';\n echo \"\\n\"; \n \techo '<td>';\n // echo '<span title = \"'; foreach ($students as $user) echo $user.' '; echo '\">'; // for dev only\n \techo count($module_access['students']);\n \t//echo '</span>';\n \techo '</td>';\n echo \"\\n\"; \n \techo '<td>';\n if ($module_info->modname == \"assign\") {\n # code...\n array_push($staffArrayListAssign, $module_access['other_pageviews']);\n }\n elseif ($module_info->modname == \"forum\") {\n # code...\n array_push($staffArrayListForum, $module_access['other_pageviews']);\n }\n elseif ($module_info->modname == \"page\") {\n # code...\n array_push($staffArrayListPage, $module_access['other_pageviews']);\n }\n elseif ($module_info->modname == \"resource\") {\n # code...\n array_push($staffArrayListResource, $module_access['other_pageviews']);\n }\n elseif ($module_info->modname == \"url\") {\n # code...\n array_push($staffArrayListURL, $module_access['other_pageviews']);\n }\n elseif ($module_info->modname == \"quiz\") {\n # code...\n array_push($staffArrayListQuiz, $module_access['other_pageviews']);\n }\n else\n {\n goto b;\n }\n array_push($staffArrayListData, $module_access['other_pageviews']);\n b:\n \techo $module_access['other_pageviews'];\n \techo '</td>';\n echo \"\\n\"; \n \techo '<td>';\n \t//echo '<span title = \"'; foreach ($others as $user) echo $user.' '; echo '\">';\n \techo count($module_access['others']);\n \t//echo '</span>';\n \techo '</td>';\n echo \"\\n\"; \n \techo '<td>';\n \techo date(\"D, j F Y H:i\", $module_access['accessed']);\n \techo '</td>';\n echo \"\\n\"; \n \techo '</tr>';\n echo \"\\n\"; \n }\n echo '</tbody>'; \n echo '</table>'; \n echo '<br/><br/><p><small>* Others may include unknown user types if enrolments have changed.</small></p>';\n $finalURL = \"['Learning Resource', 'Information','Accessed'],\\n\";\n $finalURL = $finalURL . \"['Learning Resource', null, 0],\\n\";\n foreach ($module_types as $modType) {\n # code...\n if ($modType == \"assign\") {\n $numberOfItems = count($arrayListAssign)/3;\n $finalURL=$finalURL.\"['\".$modType.\"', 'Learning Resource',\".$numberOfItems.\"],\\n\";\n }\n elseif ($modType == \"forum\") {\n $numberOfItems = count($arrayListForum)/3;\n $finalURL=$finalURL.\"['\".$modType.\"','Learning Resource',\".$numberOfItems.\"],\\n\";\n }\n elseif ($modType == \"page\") {\n $numberOfItems = count($arrayListPage)/3;\n $finalURL=$finalURL.\"['\".$modType.\"','Learning Resource',\".$numberOfItems.\"],\\n\";\n }\n elseif ($modType == \"resource\") {\n $numberOfItems = count($arrayListResource)/3;\n $finalURL=$finalURL.\"['\".$modType.\"','Learning Resource',\".$numberOfItems.\"],\\n\";\n }\n elseif ($modType == \"url\") {\n $numberOfItems = count($arrayListURL)/3;\n $finalURL=$finalURL.\"['\".$modType.\"','Learning Resource',\".$numberOfItems.\"],\\n\";\n }\n elseif ($modType == \"quiz\") {\n $numberOfItems = count($arrayListQuiz)/3;\n $finalURL=$finalURL.\"['\".$modType.\"','Learning Resource',\".$numberOfItems.\"],\\n\";\n }\n }\n\n for ($i=0; $i < count($arrayListData); $i++) { \n\n $vowels = array(\",\",\"'\",\"/\",\"\\\\\");\n $onlyconsonants = str_replace($vowels, \"\", $arrayListData[$i]);\n # code...\n $finalURL=$finalURL.\"['\".$onlyconsonants.\" \".$i.\" (\".$arrayListData[$i+2].\")\".\"','\".$arrayListData[$i+1].\"',\".$arrayListData[$i+2].\"],\\n\";\n $i+=2;\n }\n //Calculating and printing the forums views\n $numberOfFormViews=0;\n for ($i=0; $i < count($arrayListForum); $i++) {\n $numberOfFormViews+=$arrayListForum[$i+2];\n $i+=2;\n }\n\n $numberOfItems = count($arrayListForum)/3;\n $numberOfItems = \"'Forum View (Number of forums: \".$numberOfItems.\", Total Views: \".$numberOfFormViews.\")'\";\n $finalURL = str_replace(\"'forum'\", $numberOfItems, $finalURL);\n\n //Calculating and printing the Assign views\n $numberOfAssignViews=0;\n for ($i=0; $i < count($arrayListAssign); $i++) {\n $numberOfAssignViews+=$arrayListAssign[$i+2];\n $i+=2;\n }\n\n $numberOfItems = count($arrayListAssign)/3;\n $numberOfItems = \"'Assign View (Number of assigns: \".$numberOfItems.\", Total Views: \".$numberOfAssignViews.\")'\";\n $finalURL = str_replace(\"'assign'\", $numberOfItems, $finalURL);\n\n //Calculating and printing the url views\n $numberOfUrlViews=0;\n for ($i=0; $i < count($arrayListURL); $i++) {\n $numberOfUrlViews+=$arrayListURL[$i+2];\n $i+=2;\n }\n\n $numberOfItems = count($arrayListURL)/3;\n $numberOfItems = \"'URL View (Number of URLS: \".$numberOfItems.\", Total Views: \".$numberOfUrlViews.\")'\";\n $finalURL = str_replace(\"'url'\", $numberOfItems, $finalURL);\n\n //Calculating and printing the page views\n $numberOfPageViews=0;\n for ($i=0; $i < count($arrayListPage); $i++) {\n $numberOfPageViews+=$arrayListPage[$i+2];\n $i+=2;\n }\n\n $numberOfItems = count($arrayListPage)/3;\n $numberOfItems = \"'Page View (Number of Pages: \".$numberOfItems.\", Total Views: \".$numberOfPageViews.\")'\";\n $finalURL = str_replace(\"'page'\", $numberOfItems, $finalURL);\n\n //Calculating and printing the Resource views\n $numberOfResourceViews=0;\n for ($i=0; $i < count($arrayListResource); $i++) {\n $numberOfResourceViews+=$arrayListResource[$i+2];\n $i+=2;\n }\n\n $numberOfItems = count($arrayListResource)/3;\n\n $numberOfItems = \"'Resource View (Number of Resources: \".$numberOfItems.\", Total Views: \".$numberOfResourceViews.\")'\";\n $finalURL = str_replace(\"'resource'\", $numberOfItems, $finalURL);\n\n //Calculating and printing the Quiz views\n $numberOfQuizViews=0;\n for ($i=0; $i < count($arrayListQuiz); $i++) {\n $numberOfQuizViews+=$arrayListQuiz[$i+2];\n $i+=2;\n }\n\n $numberOfItems = count($arrayListQuiz)/3;\n $numberOfItems = \"'Quiz View (Number of Resources: \".$numberOfItems.\", Total Views: \".$numberOfQuizViews.\")'\";\n $finalURL = str_replace(\"'quiz'\", $numberOfItems, $finalURL);\n\necho '<script type=\"text/javascript\" src=\"https://www.google.com/jsapi\"></script>\n <script type=\"text/javascript\">google.load(\"visualization\", \"1\", {packages:[\"treemap\"]});\n google.setOnLoadCallback(drawChart);\n function drawChart() {\n // Create and populate the data table.\n var data = google.visualization.arrayToDataTable([';\necho $finalURL;\necho \"]);\n // Create and draw the visualization.\n var tree = new google.visualization.TreeMap(document.getElementById('students_chart_div_New1'));\n tree.draw(data, {\n minColor: '#f00',\n midColor: '#ddd',\n maxColor: '#0d0',\n headerHeight: 15,\n fontColor: 'black',\n showScale: true});\n }\n </script>\n <h1>Students TreeMap Chart:</h1>\n <center>\n <div id=\\\"students_chart_div_New1\\\" style=\\\"width: 910px; height: 480px;\\\"></div></center><br />\";\n\n$staffTreeData = \"['Learning Resource', 'Information','Accessed'],\\n\";\n $staffTreeData = $staffTreeData . \"['Learning Resource', null, 0],\\n\";\n foreach ($module_types as $modType) {\n # code...\n if ($modType == \"assign\") {\n $numberOfItems = count($staffArrayListAssign)/3;\n $staffTreeData=$staffTreeData.\"['\".$modType.\"', 'Learning Resource',\".$numberOfItems.\"],\\n\";\n }\n elseif ($modType == \"forum\") {\n $numberOfItems = count($staffArrayListForum)/3;\n $staffTreeData=$staffTreeData.\"['\".$modType.\"','Learning Resource',\".$numberOfItems.\"],\\n\";\n }\n elseif ($modType == \"page\") {\n $numberOfItems = count($staffArrayListPage)/3;\n $staffTreeData=$staffTreeData.\"['\".$modType.\"','Learning Resource',\".$numberOfItems.\"],\\n\";\n }\n elseif ($modType == \"resource\") {\n $numberOfItems = count($staffArrayListResource)/3;\n $staffTreeData=$staffTreeData.\"['\".$modType.\"','Learning Resource',\".$numberOfItems.\"],\\n\";\n }\n elseif ($modType == \"url\") {\n $numberOfItems = count($staffArrayListURL)/3;\n $staffTreeData=$staffTreeData.\"['\".$modType.\"','Learning Resource',\".$numberOfItems.\"],\\n\";\n }\n elseif ($modType == \"quiz\") {\n $numberOfItems = count($staffArrayListQuiz)/3;\n $staffTreeData=$staffTreeData.\"['\".$modType.\"','Learning Resource',\".$numberOfItems.\"],\\n\";\n }\n }\n\n for ($i=0; $i < count($staffArrayListData); $i++) { \n $vowels = array(\",\",\"'\",\"/\",\"\\\\\");\n $onlyconsonants = str_replace($vowels, \"\", $staffArrayListData[$i]);\n # code...\n $staffTreeData=$staffTreeData.\"['\".$onlyconsonants.\" \".$i.\" (\".$staffArrayListData[$i+2].\")\".\"','\".$staffArrayListData[$i+1].\"',\".$staffArrayListData[$i+2].\"],\\n\";\n $i+=2;\n }\n\n //Calculating and printing the forums views\n $numberOfFormViews=0;\n for ($i=0; $i < count($staffArrayListForum); $i++) {\n $numberOfFormViews+=$staffArrayListForum[$i];\n }\n $numberOfItems = count($staffArrayListForum);\n $numberOfItems = \"'Forum View (Number of forums: \".$numberOfItems.\", Total Views: \".$numberOfFormViews.\")'\";\n $staffTreeData = str_replace(\"'forum'\", $numberOfItems, $staffTreeData);\n\n //Calculating and printing the Assign views\n $numberOfAssignViews=0;\n for ($i=0; $i < count($staffArrayListAssign); $i++) {\n $numberOfAssignViews+=$staffArrayListAssign[$i];\n }\n $numberOfItems =count($staffArrayListAssign);\n $numberOfItems = \"'Assign View (Number of assigns: \".$numberOfItems.\", Total Views: \".$numberOfAssignViews.\")'\";\n $staffTreeData = str_replace(\"'assign'\", $numberOfItems, $staffTreeData);\n\n //Calculating and printing the url views\n $numberOfUrlViews=0;\n for ($i=0; $i < count($staffArrayListURL); $i++) {\n $numberOfUrlViews+=$staffArrayListURL[$i];\n }\n\n $numberOfItems = count($staffArrayListURL);\n $numberOfItems = \"'URL View (Number of URLS: \".$numberOfItems.\", Total Views: \".$numberOfUrlViews.\")'\";\n $staffTreeData = str_replace(\"'url'\", $numberOfItems, $staffTreeData);\n\n //Calculating and printing the page views\n $numberOfPageViews=0;\n for ($i=0; $i < count($staffArrayListPage); $i++) {\n $numberOfPageViews+=$staffArrayListPage[$i];\n }\n\n $numberOfItems = count($staffArrayListPage);\n $numberOfItems = \"'Page View (Number of Pages: \".$numberOfItems.\", Total Views: \".$numberOfPageViews.\")'\";\n $staffTreeData = str_replace(\"'page'\", $numberOfItems, $staffTreeData);\n\n\n //Calculating and printing the Resource views\n $numberOfResourceViews=0;\n for ($i=0; $i < count($staffArrayListResource); $i++) {\n $numberOfResourceViews+=$staffArrayListResource[$i];\n }\n\n $numberOfItems = count($staffArrayListResource);\n $numberOfItems = \"'Resource View (Number of Resources: \".$numberOfItems.\", Total Views: \".$numberOfResourceViews.\")'\";\n $staffTreeData = str_replace(\"'resource'\", $numberOfItems, $staffTreeData);\n\n//Calculating and printing the Quiz views\n $numberOfQuizViews=0;\n for ($i=0; $i < count($staffArrayListQuiz); $i++) {\n $numberOfQuizViews+=$staffArrayListQuiz[$i];\n }\n\n $numberOfItems = count($staffArrayListQuiz);\n $numberOfItems = \"'Quiz View (Number of Resources: \".$numberOfItems.\", Total Views: \".$numberOfQuizViews.\")'\";\n $staffTreeData = str_replace(\"'quiz'\", $numberOfItems, $staffTreeData);\n\necho '<script type=\"text/javascript\" src=\"https://www.google.com/jsapi\"></script>\n <script type=\"text/javascript\">google.load(\"visualization\", \"1\", {packages:[\"treemap\"]});\n google.setOnLoadCallback(drawChart);\n function drawChart() {\n // Create and populate the data table.\n var data = google.visualization.arrayToDataTable([';\necho $staffTreeData;\necho \"]);\n // Create and draw the visualization.\n var tree = new google.visualization.TreeMap(document.getElementById('staff_chart_div_NewStaff'));\n tree.draw(data, {\n minColor: '#f00',\n midColor: '#ddd',\n maxColor: '#0d0',\n headerHeight: 15,\n fontColor: 'black',\n showScale: true});\n }\n </script>\n <h1>Staff and Other Users TreeMap Chart:</h1>\n <center>\n <div id=\\\"staff_chart_div_NewStaff\\\" style=\\\"width: 910px; height: 480px;\\\"></div></center><br />\";\n}", "title": "" }, { "docid": "d9177af091a04aa912e3e003c60659c2", "score": "0.54852724", "text": "public static function getCollPrograms($collegeid) {\n $departments = Department::select('unitid')->where('parentunitid', $collegeid)->groupBy('unitid')->get();\n $departmentids = [];\n\n foreach ($departments as $department) {\n array_push($departmentids, $department->unitid);\n }\n\n $programs = Program::select('programid')->whereIn('unitid', $departmentids)->where('degreelevel', 'U')->groupBy('programid')->get();\n $programids = [];\n\n foreach ($programs as $program) {\n array_push($programids, $program->programid);\n }\n\n return $programids;\n }", "title": "" }, { "docid": "209b7653828e004920585593e783d785", "score": "0.5479336", "text": "public function compileAction() {\n\t\t$probid = $this->_request->getParam('problem');\n\t\tif(!empty($probid)) {\n\t\t\t$explode = explode(\".\",$probid);\n\t\t\t$pblBlock = (int)$explode[0];\n\t\t\t$pblBlockWeek = (int)$explode[1];\n\t\t\t$sbs = new StageBlockSeqs();\n\t\t\t$pblBlock = $sbs->getBlockId($pblBlock);\n\t\t\t$this->view->summaryfor = \"Problem \".$probid;\n\t\t}\n\t\t$blockid = $this->_request->getParam('block');\n\t\tif(!empty($blockid)) {\n\t\t\t$sbs = new StageBlockSeqs();\n\t\t\t$pblBlock = $sbs->getBlockId($blockid);\n\t\t\t$this->view->summaryfor = \"Block \".$blockid;\n\t\t\t$pblBlockWeek = null;\n\t\t\t\n\t\t}\n\t\t$indexer = Compass_Search_Lucene::open(SearchIndexer::getIndexDirectory());\n\t\t$querystr = SearchQueryService::getReleaseDateQuery($pblBlock,$pblBlockWeek);\n\t\t//echo $querystr;exit();\n\t\t$LOs = $indexer->find($querystr,'lo_discipline_ids');\n\t\t$loids = array();\n\t\t$lodata = array();\n\t\tforeach ($LOs as $LO) {\n\t\t\t//print_r($LO);exit();\n\t\t\t$loids[] = $LO->lo_loid;\n\t\t\t$lodata[$LO->lo_loid]['title'] = $LO->lo_title;\n\t\t\t//echo $LO->lo_title.'<br><hr>';\n\t\t}\n\t\tStudentResourceService::prepStudentResourceView($this, $this->_request, $loids);\n\t\tforeach($this->view->studentresources as $sr) {\n\t\t\t$lodata[$sr['loid']]['studentresources'][] = $sr;\n\t\t}\n\t\t\n\t\t$this->view->lodata = $lodata;\n\t\t\n\t}", "title": "" }, { "docid": "2f32addcd1c51e1e5c83fa88a66b7b31", "score": "0.5477223", "text": "public function run()\n {\n $courses = array(\n array(\n 'name_kh' => 'Géométrie',\n 'name_en' => 'Géométrie',\n 'name_fr' => 'Géométrie',\n 'code' => null,\n 'time_course' => 16,\n 'time_td' => 32,\n 'time_tp' => 0,\n 'credit' => 2,\n 'degree_id' => 1,\n 'grade_id' => 1,\n 'department_id' => 8,\n 'semester_id' => 1,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ),\n array(\n 'name_kh' => 'Mécaniques1',\n 'name_en' => 'Mécaniques1',\n 'name_fr' => 'Mécaniques1',\n 'code' => null,\n 'time_course' => 32,\n 'time_td' => 24,\n 'time_tp' => 0,\n 'credit' => 2.75,\n 'degree_id' => 1,\n 'grade_id' => 1,\n 'department_id' => 8,\n 'semester_id' => 1,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ),\n array(\n 'name_kh' => 'Gestion&Comptabilité',\n 'name_en' => 'Gestion&Comptabilité',\n 'name_fr' => 'Gestion&Comptabilité',\n 'code' => null,\n 'time_course' => 48,\n 'time_td' => 0,\n 'time_tp' => 0,\n 'credit' => 3,\n 'degree_id' => 1,\n 'grade_id' => 1,\n 'department_id' => 8,\n 'semester_id' => 1,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ),\n array(\n 'name_kh' => 'Philosophie',\n 'name_en' => 'Philosophie',\n 'name_fr' => 'Philosophie',\n 'code' => null,\n 'time_course' => 32,\n 'time_td' => 0,\n 'time_tp' => 0,\n 'credit' => 2,\n 'degree_id' => 1,\n 'grade_id' => 1,\n 'department_id' => 8,\n 'semester_id' => 1,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ),\n array(\n 'name_kh' => 'Environnement',\n 'name_en' => 'Environnement',\n 'name_fr' => 'Environnement',\n 'code' => null,\n 'time_course' => 32,\n 'time_td' => 0,\n 'time_tp' => 0,\n 'credit' => 2,\n 'degree_id' => 1,\n 'grade_id' => 1,\n 'department_id' => 8,\n 'semester_id' => 1,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ),\n array(\n 'name_kh' => 'Histoire',\n 'name_en' => 'Histoire',\n 'name_fr' => 'Histoire',\n 'code' => null,\n 'time_course' => 32,\n 'time_td' => 0,\n 'time_tp' => 0,\n 'credit' => 2,\n 'degree_id' => 1,\n 'grade_id' => 1,\n 'department_id' => 8,\n 'semester_id' => 1,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ),\n\n // ----------- Semester 2 Year 1 -------------\n array(\n 'name_kh' => 'Mécaniques1',\n 'name_en' => 'Mécaniques1',\n 'name_fr' => 'Mécaniques1',\n 'code' => null,\n 'time_course' => 0,\n 'time_td' => 0,\n 'time_tp' => 8,\n 'credit' => 0.25,\n 'degree_id' => 1,\n 'grade_id' => 1,\n 'department_id' => 8,\n 'semester_id' => 2,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ),\n array(\n 'name_kh' => 'Analyse 1',\n 'name_en' => 'Analyse 1',\n 'name_fr' => 'Analyse 1',\n 'code' => null,\n 'time_course' => 32,\n 'time_td' => 32,\n 'time_tp' => 0,\n 'credit' => 3,\n 'degree_id' => 1,\n 'grade_id' => 1,\n 'department_id' => 8,\n 'semester_id' => 2,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ),\n array(\n 'name_kh' => 'Themodynamique',\n 'name_en' => 'Themodynamique',\n 'name_fr' => 'Themodynamique',\n 'code' => null,\n 'time_course' => 32,\n 'time_td' => 24,\n 'time_tp' => 8,\n 'credit' => 3,\n 'degree_id' => 1,\n 'grade_id' => 1,\n 'department_id' => 8,\n 'semester_id' => 2,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ),\n array(\n 'name_kh' => 'Dessin Technique',\n 'name_en' => 'Dessin Technique',\n 'name_fr' => 'Dessin Technique',\n 'code' => null,\n 'time_course' => 16,\n 'time_td' => 32,\n 'time_tp' => 0,\n 'credit' => 2,\n 'degree_id' => 1,\n 'grade_id' => 1,\n 'department_id' => 8,\n 'semester_id' => 2,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ),\n array(\n 'name_kh' => 'Marketing',\n 'name_en' => 'Marketing',\n 'name_fr' => 'Marketing',\n 'code' => null,\n 'time_course' => 32,\n 'time_td' => 0,\n 'time_tp' => 0,\n 'credit' => 2,\n 'degree_id' => 1,\n 'grade_id' => 1,\n 'department_id' => 8,\n 'semester_id' => 2,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ),\n array(\n 'name_kh' => 'Informatique',\n 'name_en' => 'Informatique',\n 'name_fr' => 'Informatique',\n 'code' => null,\n 'time_course' => 16,\n 'time_td' => 0,\n 'time_tp' => 32,\n 'credit' => 2,\n 'degree_id' => 1,\n 'grade_id' => 1,\n 'department_id' => 8,\n 'semester_id' => 2,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ),\n // ----------- Semester 1 Year 2 -------------\n array(\n 'name_kh' => 'Analyse 2',\n 'name_en' => 'Analyse 2',\n 'name_fr' => 'Analyse 2',\n 'code' => null,\n 'time_course' => 32,\n 'time_td' => 32,\n 'time_tp' => 0,\n 'credit' => 3,\n 'degree_id' => 1,\n 'grade_id' => 2,\n 'department_id' => 8,\n 'semester_id' => 1,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ),\n array(\n 'name_kh' => 'Mécaniques 2',\n 'name_en' => 'Mécaniques 2',\n 'name_fr' => 'Mécaniques 2',\n 'code' => null,\n 'time_course' => 32,\n 'time_td' => 32,\n 'time_tp' => 0,\n 'credit' => 3,\n 'degree_id' => 1,\n 'grade_id' => 2,\n 'department_id' => 8,\n 'semester_id' => 1,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ),\n array(\n 'name_kh' => 'Électricité',\n 'name_en' => 'Électricité',\n 'name_fr' => 'Électricité',\n 'code' => null,\n 'time_course' => 32,\n 'time_td' => 24,\n 'time_tp' => 0,\n 'credit' => 2.75,\n 'degree_id' => 1,\n 'grade_id' => 2,\n 'department_id' => 8,\n 'semester_id' => 1,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ),\n array(\n 'name_kh' => 'Chimie',\n 'name_en' => 'Chimie',\n 'name_fr' => 'Chimie',\n 'code' => null,\n 'time_course' => 32,\n 'time_td' => 32,\n 'time_tp' => 0,\n 'credit' => 3,\n 'degree_id' => 1,\n 'grade_id' => 2,\n 'department_id' => 8,\n 'semester_id' => 1,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ),\n // ----------- Semester 2 Year 2 -------------\n array(\n 'name_kh' => 'Électricité',\n 'name_en' => 'Électricité',\n 'name_fr' => 'Électricité',\n 'code' => null,\n 'time_course' => 0,\n 'time_td' => 0,\n 'time_tp' => 8,\n 'credit' => 0.25,\n 'degree_id' => 1,\n 'grade_id' => 2,\n 'department_id' => 8,\n 'semester_id' => 2,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ),\n array(\n 'name_kh' => 'Probabilité',\n 'name_en' => 'Probabilité',\n 'name_fr' => 'Probabilité',\n 'code' => null,\n 'time_course' => 32,\n 'time_td' => 32,\n 'time_tp' => 0,\n 'credit' => 3,\n 'degree_id' => 1,\n 'grade_id' => 2,\n 'department_id' => 8,\n 'semester_id' => 2,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ),\n array(\n 'name_kh' => 'Équations différentielles',\n 'name_en' => 'Équations différentielles',\n 'name_fr' => 'Équations différentielles',\n 'code' => null,\n 'time_course' => 32,\n 'time_td' => 32,\n 'time_tp' => 0,\n 'credit' => 3,\n 'degree_id' => 1,\n 'grade_id' => 2,\n 'department_id' => 8,\n 'semester_id' => 2,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n ),\n array(\n 'name_kh' => 'Vibration&Onde',\n 'name_en' => 'Vibration&Onde',\n 'name_fr' => 'Vibration&Onde',\n 'code' => null,\n 'time_course' => 32,\n 'time_td' => 24,\n 'time_tp' => 8,\n 'credit' => 3,\n 'degree_id' => 1,\n 'grade_id' => 2,\n 'department_id' => 8,\n 'semester_id' => 2,\n 'department_option_id' => null,\n 'create_uid' => 1,\n 'created_at' => \\Carbon\\Carbon::now()\n )\n );\n foreach($courses as $course){\n // Insert course program into database\n $course_id = DB::table('courses')->insertGetId($course);\n\n\n if($course['grade_id'] == 2) {\n for($i = 0;$i<26;$i++){ // 26 groups for I2\n $this->create_course_annual($course,$i+1,$course_id);\n }\n } else {\n for($i = 0;$i<30;$i++){ // 30 groups for I1\n $this->create_course_annual($course,$i+1,$course_id);\n }\n }\n }\n }", "title": "" }, { "docid": "9c88498d39576d7f0ddc252fdeeeccd0", "score": "0.54733807", "text": "public function ShowCS_MENU()\n { \n $programs=$this->getAllSections();\n $courses=$this->getAllCourses();\n \n foreach($programs as $program){\n $programid= $program['idprogram'];\n \n \n\n if($program['page_type']=='CS' && $program['status']==1)\n {\n //DS: 15.09.2019: Include all course types\n include \"courseTypes.inc.php\";\n\n }\n }\n \n }", "title": "" }, { "docid": "058bea4e4403d49f4e35be6bc925509e", "score": "0.5468319", "text": "function GetCabineteCategories ($id, $active, $cabinet_id)\r\n{\r\n\tglobal $db;\r\n\t$cats = array();\r\n\tswitch ($active)\r\n\t{\r\n\t\tdefault :\r\n\t\t\t$status = \" AND active = '\".$active.\"' Order by cat_name ASC\";\r\n\t\tbreak;\r\n\r\n\t\tcase '-1':\r\n\t\t\t$status = \"Order by cat_name ASC\";\r\n\t\tbreak;\r\n\t}\r\n\tif ($cabinet_id != \"\")\r\n\t{\r\n\t\t#select the parent_module\r\n\t\t$query = \"SELECT parent_module FROM cabinete WHERE id = '\".$cabinet_id.\"'\";\r\n\t\t$db->query($query);\r\n\t\t$db->next_record();\r\n\t\tif ($db->f('parent_module') != '0')\r\n\t\t{\r\n\t\t\t$query = \"SELECT * FROM cabinete_categories\r\n\t\t\t\t\t\t\t\tWHERE parent_module = '\".$db->f('parent_module').\"'\".$status;\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t$query = \"SELECT cat_id FROM cabinete_cat WHERE cabinet_id = '\".$cabinet_id.\"'\";\r\n\t\t\t$db->query($query);\r\n\t\t\t$db->next_record();\r\n\t\t\t$query = \"SELECT parent_module FROM cabinete_categories\r\n\t\t\t\t\t\t\t\tWHERE id_cat = '\".$db->f('cat_id').\"'\";\r\n\t\t\t$db->query($query);\r\n\t\t\t$db->next_record();\r\n\t\t\t$query = \"SELECT * FROM cabinete_categories\r\n\t\t\t\t\t\t\t\tWHERE parent_module = '\".$db->f('parent_module').\"'\".$status;\r\n\t\t}\r\n\t}\r\n\telse \r\n\t{\r\n\t\t$query = \"SELECT * FROM cabinete_categories\r\n\t\t\t\t\t\tWHERE parent_module = '\".$id.\"'\".$status;\r\n\t}\r\n\t$db->query($query);\r\n\t$i = 0;\r\n\t\r\n\twhile ($db->next_record())\r\n\t{\r\n\t\t$cats[$i]['id_cat'] = $db->f('id_cat');\r\n\t\t$cats[$i]['cat_name'] = $db->f('cat_name');\r\n\t\t$cats[$i]['active'] = $db->f('active');\r\n\t\t$cats[$i]['cat_code'] = $db->f('cat_code');\r\n\t\t$cats[$i]['ahref_title'] = $db->f('ahref_title');\r\n\t\t$cats[$i]['parent_module'] = $db->f('parent_module');\r\n\t\t$i++;\r\n\t}\r\n\t\r\n\treturn $cats;\r\n}", "title": "" }, { "docid": "1542675338df8707a97d3d52447003fd", "score": "0.5459416", "text": "public function load() {\r\n $retval = array();\r\n $sql = \"SELECT course_code, short_title, full_title, course_type, OUCourseLevel, \".\r\n \"activelink, parent_course_code, classification, url, last_modified_utc \".\r\n \"FROM course \".\r\n \"WHERE course_code = ?\";\r\n $results = $this->doSQL( $sql, array($this->course_code), 'course_code');\r\n foreach ($results as $row) {\r\n \t $this->course_code = htmlentities($row['course_code']);\r\n $this->short_title = htmlentities($row['short_title']);\r\n $this->full_title = htmlentities($row['full_title']);\r\n $this->activelink = $row['activelink'];\r\n $this->course_type =$row['course_type'];\r\n $this->OUCourseLevel = $row['OUCourseLevel'];\r\n $this->parent_course_code =$row['parent_course_code'];\r\n $this->classification = $row['classification'];\r\n $this->url = $row['url'];\r\n $this->last_modified_utc = $row['last_modified_utc'];\r\n }\r\n \t\r\n }", "title": "" }, { "docid": "6a817d689c57e69254c8b4a7b5a46b8f", "score": "0.5446705", "text": "function get_courses_categories($veranstid, $update_helptables_if_necessary = true) {\n global $pgDB, $DB, $CFG;\n $helpfuntion1 = function ($array_el) {\n return $array_el->origin;\n };\n $helpfuntion2 = function ($array_el) {\n return $array_el->name;\n };\n $helpfuntion3 = function ($array_el) {\n return $array_el->mdlid;\n };\n $q = pg_query($pgDB->connection, \n \"SELECT ueid FROM \" . HIS_UEBERSCHRIFT . \" WHERE veranstid=\" . $veranstid . \"\");\n $choices = array();\n $categories = array();\n while ($hislsf_title = pg_fetch_object($q))\n $ueids = (empty($ueids) ? \"\" : ($ueids . \", \")) . (\"\" . $hislsf_title->ueid . \"\");\n $other_ueids_sql = \"SELECT parent FROM \" . $CFG->prefix .\n \"local_lsf_categoryparenthood WHERE child in (\" . $ueids . \")\";\n $origins_sql = \"SELECT origin FROM \" . $CFG->prefix . \"local_lsf_category WHERE ueid in (\" .\n $other_ueids_sql . \") OR ueid in (\" . $ueids . \")\";\n $origins = implode(\", \", array_map($helpfuntion1, $DB->get_records_sql($origins_sql)));\n if (!empty($origins)) {\n $categories_sql = \"SELECT mdlid, name FROM (\" . $CFG->prefix . \"local_lsf_category JOIN \" .\n $CFG->prefix . \"course_categories ON \" . $CFG->prefix .\n \"local_lsf_category.mdlid = \" . $CFG->prefix .\n \"course_categories.id) WHERE ueid in (\" . $origins . \") ORDER BY sortorder\";\n if (get_config('local_lsf_unification', 'subcategories')) {\n $maincourses = implode(\", \", \n array_map($helpfuntion3, $DB->get_records_sql($categories_sql)));\n if (empty($maincourses)) {\n $maincourses = get_config('local_lsf_unification', 'defaultcategory');\n }\n $categories_sql = \"SELECT id, name FROM \" . $CFG->prefix .\n \"course_categories WHERE id in (\" . $maincourses . \") OR parent in (\" .\n $maincourses . \") ORDER BY sortorder\";\n }\n $categories = array_map($helpfuntion2, $DB->get_records_sql($categories_sql));\n }\n if ($update_helptables_if_necessary && (count($categories) == 0)) {\n insert_missing_helptable_entries(false);\n return get_courses_categories($veranstid, false);\n }\n return $categories;\n}", "title": "" }, { "docid": "2170f1cae2a767e176b54086f31ec102", "score": "0.5434561", "text": "public function courseManagement($userid, $courseid)\n {\n $URL = $this->_getCourse->getAddress() . '/course/course/'.$courseid;\n $answer = Request::custom('GET', $URL, array(), '');\n $response['course'] = json_decode($answer['content'], true);\n\n // returns all exerciseTypes\n $URL = $this->_getExerciseType->getAddress() . '/exercisetype';\n $answer = Request::custom('GET', $URL, array(), '');\n $response['exerciseTypes'] = json_decode($answer['content'], true);\n\n // returns all possible exerciseTypes of the course\n $URL = $this->_getApprovalCondition->getAddress() . '/approvalcondition/course/' . $courseid;\n $answer = Request::custom('GET', $URL, array(), '');\n $approvalConditions = json_decode($answer['content'], true);\n\n // returns all users of the given course\n $URL = $this->_getUser->getAddress() . '/user/course/'.$courseid;\n $answer = Request::custom('GET', $URL, array(), '');\n $allUsers = json_decode($answer['content'], true);\n\n // returns all notifications of the given course\n $URL = $this->_getNotification->getAddress() . '/notification/course/'.$courseid;\n $answer = Request::custom('GET', $URL, array(), '');\n $notifications = json_decode($answer['content'], true);\n foreach($notifications as $key => $elem){\n $notifications[$key]['innerId'] = Notification::getIdFromNotificationId($elem['id']);\n }\n $notifications = LArraySorter::orderby($notifications,'innerId',SORT_DESC);\n $response['notifications'] = $notifications;\n \n // load course redirects\n $URL = $this->_getRedirect->getAddress() . '/redirect/course/'.$courseid;\n $answer = Request::custom('GET', $URL, array(), '');\n $redirects = json_decode($answer['content'], true);\n $response['redirect'] = $redirects;\n \n unset($answer);\n unset($URL);\n\n // adds an 'inCourse' flag to the exerciseType if there is\n // an approvalCondition with the same id in the same course\n\n /**\n * @todo Improve running time.\n */\n if(!empty($approvalConditions)) {\n foreach ($approvalConditions as &$approvalCondition) {\n foreach ($response['exerciseTypes'] as &$exerciseType) {\n if ($approvalCondition['exerciseTypeId'] == $exerciseType['id']) {\n $exerciseType['inCourse'] = true;\n }\n }\n }\n }\n\n // only selects the users whose course-status is student, tutor, lecturer or admin\n if(!empty($allUsers)) {\n foreach($allUsers as $user) {\n if ($user['courses'][0]['status'] >= 0 && $user['courses'][0]['status'] < 4) {\n\n // adds the course-status to the user objects in the response\n $user['statusName'] = $this->getStatusName($user['courses'][0]['status']);\n\n // removes unnecessary data from the user object\n unset($user['password']);\n unset($user['salt']);\n unset($user['failedLogins']);\n unset($user['courses']);\n\n // adds the user to the response\n $response['users'][] = $user;\n }\n }\n }\n\n $this->flag = 1;\n\n // adds the user_course_data to the response\n $response['user'] = $this->userWithCourse($userid, $courseid);\n\n $this->app->response->setBody(json_encode($response));\n }", "title": "" }, { "docid": "9c9f6c7e30bd9c9f6b9e005c6c1afff2", "score": "0.54278976", "text": "public function actionPrograms() {\n $content = array();\n $url = html_entity_decode(\\app\\components\\Utilities::getPageUrl());\n $url_sections = explode('/', $url);\n if (isset($url_sections[1]) && isset($url_sections[2]) && ($url_sections[1] == 'centre' OR $url_sections[1] == 'centres' )) {\n ///getting pgae details\n $unit_abbreviation = trim($url_sections[2]);\n if (!empty($unit_abbreviation)) {\n $Academic_unit_details = \\app\\models\\AcademicAdministrativeUnit::find()->where(array('UnitAbreviationCode' => $unit_abbreviation, 'ParentUnitId' => 0))->one();\n if ($Academic_unit_details) {\n ////getting sie menu if any\n $content['side_menus'] = MenuItem::getActiveMenuItemsByMenuTypeRegionAndTemplateByUnitID(Menu::MENU_TYPE_SIDE_MENU, SiteRegions::CUSTOM_PAGE_CONTENT_SIDE_MENU, $Academic_unit_details->Id, $url);\n //var_dump($content['side_menus']);\n $content['side_blocks'] = CustomBlocks::getActiveBlocksByRegionId(SiteRegions::CUSTOM_PAGE_CONTENT_SIDE_MENU, CustomBlocks::BLOCK_TYPE_CUSTOM_PAGE, $url, $Academic_unit_details->Id);\n $language = Yii::$app->language;\n $content['unit_details'] = $Academic_unit_details;\n if (Yii::$app->request->post()) {\n $Keyword = Yii::$app->request->post('ProgrameName');\n $UnitID = $Academic_unit_details->Id;\n $FieldOfStudy = Yii::$app->request->post('FieldStudy');\n $programmeType = Yii::$app->request->post('PTYpe');\n\n $page_content = \\app\\models\\Programmes::getProgrammesByKeyWordUnitTypeFieldsOfStudy($Keyword, $UnitID, $programmeType, $FieldOfStudy, $language);\n $content['page_content'] = $page_content;\n } else {\n $programmeType = $Keyword = $UnitID = $FieldOfStudy = NULL;\n $UnitID = $Academic_unit_details->Id;\n $url_section = explode('/', $url);\n $Keyword = NULL;\n // var_dump($url_section);\n if (count($url_section) == 5 && isset($url_section[4]) && isset($url_section[3]) && ($url_section[3] == 'programs' OR $url_section[3] == 'programmes')) {\n $Keyword = $url_section[4];\n }\n\n if (strlen($Keyword) > 1) {\n $page_content = \\app\\models\\Programmes::getProgrameDetailsByProgrammeUrl($Keyword);\n $content['page_content'] = $page_content;\n return $this->render('//site/college/programme_details', $content);\n } else {\n $page_content = \\app\\models\\Programmes::getProgrammesByKeyWordUnitTypeFieldsOfStudy($Keyword, $UnitID, $programmeType, $FieldOfStudy, $language);\n $content['page_content'] = $page_content;\n }\n }\n\n ////////////////\n } else {\n $content['no_details'] = 'The requested page or section is not found';\n }\n } else {\n $content['no_details'] = 'The requested page or section is not found';\n }\n }\n\n return $this->render('//site/college/programmes', $content);\n }", "title": "" }, { "docid": "2ece5130409fdd7659fc39d9f678ecec", "score": "0.53776246", "text": "function getCourses($cat_id) {\n $CI = & get_instance();\n\n $CI->db->select(\"*\");\n $CI->db->from('courses');\n $CI->db->where(array('category_id' => $cat_id));\n $q = $CI->db->get();\n $data = array();\n if ($q->num_rows() > 0) {\n $data = $q->result();\n return $data;\n }\n\n return $data;\n}", "title": "" }, { "docid": "d25b2b622555568bf2e88a93195b9ef0", "score": "0.53354573", "text": "function learndash_get_courses_for_step( $step_id = 0, $return_flat_array = false ) {\n\tglobal $wpdb;\n\n\t$course_ids = array();\n\t$course_ids['primary'] = array();\n\t$course_ids['secondary'] = array();\n\n\tif ( ! empty( $step_id ) ) {\n\t\t$post_post_meta = get_post_meta( $step_id );\n\t\tforeach ( $post_post_meta as $meta_key => $meta_values ) {\n\t\t\tif ( 'course_id' === $meta_key ) {\n\t\t\t\tforeach ( $meta_values as $course_id ) {\n\t\t\t\t\t$course_id = absint( $course_id );\n\t\t\t\t\tif ( ! isset( $course_ids['primary'][ $course_id ] ) ) {\n\t\t\t\t\t\t$course_post = get_post( $course_id );\n\t\t\t\t\t\tif ( ( $course_post ) && ( is_a( $course_post, 'WP_Post' ) ) && ( learndash_get_post_type_slug( 'course' ) === $course_post->post_type ) ) {\n\t\t\t\t\t\t\t$course_ids['primary'][ $course_id ] = get_the_title( $course_id );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} elseif ( substr( $meta_key, 0, strlen( 'ld_course_' ) ) === 'ld_course_' ) {\n\t\t\t\tforeach ( $meta_values as $course_id ) {\n\t\t\t\t\t$course_id = absint( $course_id );\n\t\t\t\t\tif ( ! isset( $course_ids['secondary'][ $course_id ] ) ) {\n\t\t\t\t\t\t$course_post = get_post( $course_id );\n\t\t\t\t\t\tif ( ( $course_post ) && ( is_a( $course_post, 'WP_Post' ) ) && ( learndash_get_post_type_slug( 'course' ) === $course_post->post_type ) ) {\n\t\t\t\t\t\t\t$course_ids['secondary'][ $course_id ] = get_the_title( $course_id );\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\n\t\t// LEARNDASH-6567 : If shared steps is not enabled then clear the array node.\n\t\tif ( ! learndash_is_course_shared_steps_enabled() ) {\n\t\t\t$course_ids['secondary'] = array();\n\t\t}\n\n\t\t// Ensure the primary course is also part of the secondary courses.\n\t\tif ( ! empty( $course_ids['primary'] ) ) {\n\t\t\tforeach ( $course_ids['primary'] as $p_course_id => $p_course_title ) {\n\t\t\t\tif ( ! isset( $course_ids['secondary'][ $p_course_id ] ) ) {\n\t\t\t\t\tupdate_post_meta( $step_id, 'ld_course_' . $p_course_id, $p_course_id );\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tforeach ( $course_ids['secondary'] as $s_course_id => $s_course_title ) {\n\t\t\t\t$course_ids['primary'][ $s_course_id ] = $s_course_title;\n\t\t\t\tlearndash_update_setting( $step_id, 'course', $s_course_id );\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// Now ensure the primary course IDs are not included in the secondary listing.\n\t\tforeach ( $course_ids['primary'] as $p_course_id => $p_course_title ) {\n\t\t\tif ( isset( $course_ids['secondary'][ $p_course_id ] ) ) {\n\t\t\t\tunset( $course_ids['secondary'][ $p_course_id ] );\n\t\t\t}\n\t\t}\n\n\t\tif ( true === $return_flat_array ) {\n\t\t\t$course_ids_flat = array();\n\t\t\tforeach ( $course_ids['primary'] as $course_id => $course_title ) {\n\t\t\t\tif ( ! isset( $course_ids_flat[ $course_id ] ) ) {\n\t\t\t\t\t$course_ids_flat[ $course_id ] = $course_title;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tforeach ( $course_ids['secondary'] as $course_id => $course_title ) {\n\t\t\t\tif ( ! isset( $course_ids_flat[ $course_id ] ) ) {\n\t\t\t\t\t$course_ids_flat[ $course_id ] = $course_title;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$course_ids = $course_ids_flat;\n\t\t}\n\n\t\treturn $course_ids;\n\t}\n\n\treturn array();\n}", "title": "" }, { "docid": "3b3246d60b24dfc9137e0efb0b9ebbf4", "score": "0.5316879", "text": "function getCourseList($idCentro) {\n $this->db->select('a.plr_id, a.description')\n ->from('plused_roster_supplements as a')\n ->join('plused_roster_supplement_types as b', 'a.supl_id=b.id')\n ->where('a.centri_id', $idCentro);\n $result = $this->db->get();\n if ($result->num_rows() > 0) {\n return $result->result_array();\n } else {\n return FALSE;\n }\n }", "title": "" }, { "docid": "21484f2d857ee9cef78d8bc84aaca24b", "score": "0.5306885", "text": "public static function get_with_course($id){\n\t\t$sql = \"SELECT * FROM lesson WHERE course_id = $id ORDER BY number ASC\";\n\t\t$stmt = self::$conn->prepare($sql);\n\t\t$stmt->execute();\n\t\t$lessons = $stmt->fetchAll();\n\n\t\treturn $lessons;\n\t}", "title": "" }, { "docid": "90cb2936650dc41e3c691fb61407ffed", "score": "0.52984726", "text": "public function edit_courses($course_id)\n\t{\n\t\t$where_array = array(\n\t\t\t'GROUP_NAME'=>'COURSE',\n\t\t\t'KEY_NAME'=>'TYPE',\n\t\t\t'STATUS'=>'ACTIVE',\n\t\t);\n\t\t$crtl_drd_data['course_type'] = $this->KeyValue->listWhere($where_array);\n\t\t\n\t\t/* Get course type from keyvalue model */\n\t\t$ctrl_drd_ce_course_type_id = $this->KeyValue->getKeyvalueId('COURSE','TYPE','CONTINUING EDUCATION');\n\t\t\n\t\t/* Get CE course cost fron course cost model */\n\t\t$ctrl_drd_ce_course_cost_data = $this->CourseCost->findByUniqueKey($ctrl_drd_ce_course_type_id);\n\t\t$crtl_drd_data['ce_course_cost'] = $ctrl_drd_ce_course_cost_data['COST']; \n\t\t\n\t\t/* Get course type from keyvalue model */\n\t\t$ctrl_drd_dn_course_type_id = $this->KeyValue->getKeyvalueId('COURSE','TYPE','DIPLOMATE PROGRAM');\n\t\t\n\t\t/* Get CE course cost fron course cost model */\n\t\t$ctrl_drd_dn_course_cost_data = $this->CourseCost->findByUniqueKey($ctrl_drd_dn_course_type_id);\n\t\t$crtl_drd_data['dn_course_cost'] = $ctrl_drd_dn_course_cost_data['COST']; \n\t\t\n\t\t/* Get course list from course model */\n\t\t$crtl_drd_data['courses'] = $this->CourseMaster->findByPrimaryKey($course_id);\n\t\t$crtl_drd_data['course_credit'] = $crtl_drd_data['courses']['COURSE_CREDIT'];\n\t\t$crtl_drd_calculate_time =$crtl_drd_data['course_credit'] * 60.00;\n\t\t$crtl_drd_data['time'] =\"00.\".$crtl_drd_calculate_time.\".00\";\n\t\t\n\t\tif($crtl_drd_data['courses']['COURSE_TYPE'] ==$ctrl_drd_ce_course_type_id)\n\t\t{\n\t\t\t$crtl_drd_calculate_cost =$crtl_drd_data['ce_course_cost'];\n\t\t\t$crtl_drd_data['course_type_name']='CE';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$crtl_drd_calculate_cost =0;\n\t\t\t$crtl_drd_data['course_type_name']='DN';\n\t\t}\n\t\t$crtl_drd_data['cost']= $crtl_drd_calculate_cost;\n\t\t/* Get course type from keyvalue model */\n\t\t$ctrl_drd_quest_type_id = $this->KeyValue->getKeyvalueId('QUESTION','TYPE','OBJECTIVE');\n\t\t\n\t\t/* Get course type from keyvalue model */\n\t\t$ctrl_drd_quest_status_id = $this->KeyValue->getKeyvalueId('GENERAL','STATUS','ACTIVE');\n\t\t\n\t\t/* Get course list from course quiz question model */\n\t\t$crtl_drd_course_questions = $this->CourseQuizQuestion->listWhere(array('QUIZ_QUESTION_STATUS_ID'=>$ctrl_drd_quest_status_id,'COURSE_ID'=>$course_id));\n\t\tforeach($crtl_drd_course_questions as $crtl_drd_course_questions)\n\t\t{\n\t\t\tif($crtl_drd_course_questions['QUESTION_TYPE'] == $ctrl_drd_quest_type_id)\n\t\t\t{\n\t\t\t\t$obj_questions[] = $crtl_drd_course_questions;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$sub_questions[] = $crtl_drd_course_questions;\n\t\t\t\t$crtl_drd_data['question_type'] = 'SUBJECTIVE';\n\t\t\t}\n\t\t}\n\t\t$crtl_drd_data['obj_questions'] =$obj_questions;\n\t\t$crtl_drd_data['sub_questions'] =$sub_questions[0];\t\t\n\t\t\n\t\t/* Get course states from course states model */\n\t\t$crtl_drd_data['course_states'] = $this->CourseStates->getcoursestates(array('COURSE_ID'=>$course_id));\n\t\t\n\t\t/* Get course documents coursedocumentss model */\n\t\t$crtl_drd_data['course_doc'] = $this->CourseDocuments->listWhere(array('COURSE_ID'=>$course_id));\n\t\t\n\t\tlog_message('info','Return View Data '.print_r($crtl_drd_data,TRUE));\n\t\t\n\t\t$this->load->view('admin/header');\n\t\t$this->load->view('admin/leftmenu');\n\t\t$this->load->view('admin/admin-editcourse',$crtl_drd_data);\n\t\t$this->load->view('admin/footer');\t\t\n\t}", "title": "" }, { "docid": "cf55d089dcfd97e5b96ce4a4d8e38098", "score": "0.52775437", "text": "public function get_courses() {\n if ($this->session->userdata('user_login') != true) {\n redirect(site_url('login'), 'refresh');\n }\n $this->user_model->check_plan(true);\n $courses = array();\n // Filter portion\n $filter_data['selected_category_id'] = $this->input->post('selected_category_id');\n $filter_data['selected_instructor_id'] = $this->input->post('selected_instructor_id');\n $filter_data['selected_price'] = $this->input->post('selected_price');\n $filter_data['selected_status'] = $this->input->post('selected_status');\n\n // Server side processing portion\n $columns = array(\n 0 => '#',\n 1 => 'title',\n 2 => 'category',\n 3 => 'lesson_and_section',\n 4 => 'enrolled_student',\n 5 => 'status',\n 6 => 'price',\n 7 => 'actions',\n 8 => 'course_id'\n );\n\n // Coming from databale itself. Limit is the visible number of data\n $limit = html_escape($this->input->post('length'));\n $start = html_escape($this->input->post('start'));\n $order = \"\";\n $dir = $this->input->post('order')[0]['dir'];\n\n $totalData = $this->lazyload->count_all_courses($filter_data);\n $totalFiltered = $totalData;\n\n // This block of code is handling the search event of datatable\n if(empty($this->input->post('search')['value'])) {\n $courses = $this->lazyload->institute_courses($limit, $start, $order, $dir, $filter_data);\n }\n else {\n $search = $this->input->post('search')['value'];\n $courses = $this->lazyload->course_search($limit, $start, $search, $order, $dir, $filter_data);\n $totalFiltered = $this->lazyload->course_search_count($search);\n }\n\n // Fetch the data and make it as JSON format and return it.\n $data = array();\n if(!empty($courses)) {\n foreach ($courses as $key => $row) {\n $instructor_details = $this->user_model->get_all_user($row->user_id)->row_array();\n $category_details = $this->crud_model->get_category_details_by_id($row->sub_category_id)->row_array();\n $sections = $this->crud_model->get_section('course', $row->id);\n $lessons = $this->crud_model->get_lessons('course', $row->id);\n $enroll_history = $this->crud_model->enrol_history($row->id);\n\n $status_badge = \"badge-success-lighten\";\n if ($row->status == 'pending') {\n $status_badge = \"badge-danger-lighten\";\n }elseif ($row->status == 'draft') {\n $status_badge = \"badge-dark-lighten\";\n }\n\n $price_badge = \"badge-dark-lighten\";\n $price = 0;\n if ($row->is_free_course == null){\n if ($row->discount_flag == 1) {\n $price = currency($row->discounted_price);\n }else{\n $price = currency($row->price);\n }\n }elseif ($row->is_free_course == 1){\n $price_badge = \"badge-success-lighten\";\n $price = get_phrase('free');\n }\n\n $view_course_on_frontend_url = site_url('home/course/'.slugify($row->title).'/'.$row->id);\n $edit_this_course_url = site_url('institute/course_form/course_edit/'.$row->id);\n $section_and_lesson_url = site_url('institute/course_form/course_edit/'.$row->id);\n\n if ($row->status == 'active' || $row->status == 'pending') {\n $course_status_changing_action = \"confirm_modal('\".site_url('institute/course_actions/draft/'.$row->id).\"')\";\n $course_status_changing_message = get_phrase('mark_as_drafted');\n }else{\n $course_status_changing_action = \"confirm_modal('\".site_url('institute/course_actions/publish/'.$row->id).\"')\";\n $course_status_changing_message = get_phrase('publish_this_course');\n }\n\n $delete_course_url = \"confirm_modal('\".site_url('institute/course_actions/delete/'.$row->id).\"')\";\n\n $action = '\n <div class=\"dropright dropright\">\n <button type=\"button\" class=\"btn btn-sm btn-outline-primary btn-rounded btn-icon\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\n <i class=\"mdi mdi-dots-vertical\"></i>\n </button>\n <ul class=\"dropdown-menu\">\n <li><a class=\"dropdown-item\" href=\"'.$view_course_on_frontend_url.'\" target=\"_blank\">'.get_phrase(\"view_course_on_frontend\").'</a></li>\n <li><a class=\"dropdown-item\" href=\"'.$edit_this_course_url.'\">'.get_phrase(\"edit_this_course\").'</a></li>\n <li><a class=\"dropdown-item\" href=\"'.$section_and_lesson_url.'\">'.get_phrase(\"section_and_lesson\").'</a></li>\n <li><a class=\"dropdown-item\" href=\"javascript::\" onclick=\"'.$course_status_changing_action.'\">'.$course_status_changing_message.'</a></li>\n <li><a class=\"dropdown-item\" href=\"javascript::\" onclick=\"'.$delete_course_url.'\">'.get_phrase(\"delete\").'</a></li>\n </ul>\n </div>\n ';\n\n $nestedData['#'] = $key+1;\n\n $nestedData['title'] = '<strong><a href=\"'.site_url('institute/course_form/course_edit/'.$row->id).'\" title=\"'.$row->title.'\">'.substr($row->title,0,25).'</a></strong><br>\n <small class=\"text-muted\">'.get_phrase('instructor').': <b>'.$instructor_details['first_name'].' '.$instructor_details['last_name'].'</b></small>';\n\n $nestedData['category'] = '<span class=\"badge badge-dark-lighten\">'.$category_details['name'].'</span>';\n\n $nestedData['lesson_and_section'] = '\n <small class=\"text-muted\"><b>'.get_phrase('total_section').'</b>: '.$sections->num_rows().'</small><br>\n <small class=\"text-muted\"><b>'.get_phrase('total_lesson').'</b>: '.$lessons->num_rows().'</small><br>';\n\n $nestedData['enrolled_student'] = '<small class=\"text-muted\"><b>'.get_phrase('total_enrolment').'</b>: '.$enroll_history->num_rows().'</small>';\n\n $nestedData['status'] = '<span class=\"badge '.$status_badge.'\">'.get_phrase($row->status).'</span>';\n\n $nestedData['price'] = '<span class=\"badge '.$price_badge.'\">'.get_phrase($price).'</span>';\n\n $nestedData['actions'] = $action;\n\n $nestedData['course_id'] = $row->id;\n\n $data[] = $nestedData;\n }\n }\n\n $json_data = array(\n \"draw\" => intval($this->input->post('draw')),\n \"recordsTotal\" => intval($totalData),\n \"recordsFiltered\" => intval($totalFiltered),\n \"data\" => $data\n );\n\n echo json_encode($json_data);\n }", "title": "" }, { "docid": "2b6984405055aff4cfdb2f98de29d1ae", "score": "0.52685213", "text": "function getcascadingmoduleproperties($module_id,$contentarea,$cat_id,$modulename=False)\n\t\t{\n\t\t\t$cat_ancestorlist = ($cat_id != CURRENT_SITE_ID) ? $GLOBALS['Common_BO']->cats->getCategoryancestorids($cat_id) : array();\n\t\t\t$cat_ancestorlist[] = CURRENT_SITE_ID;\n\n\t\t\t$cat_ancestorlist_temp = $cat_ancestorlist;\n\n\t\t\tdo\n\t\t\t{\n\t\t\t\t$cat_id = array_shift($cat_ancestorlist_temp);\n\n\t\t\t\twhile($cat_id !== NULL)\n\t\t\t\t{\n\t\t\t\t\t$properties = $this->so->getmoduleproperties($module_id,$contentarea,$cat_id,$modulename);\n\t\t\t\t\t//we have to check for type identity since properties can be NULL in case of unchecked checkbox\n\t\t\t\t\tif ($properties !== false)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn $properties;\n\t\t\t\t\t}\n\t\t\t\t\t$cat_id = array_shift($cat_ancestorlist_temp);\n\t\t\t\t}\n\t\t\t\t$contentarea = ($contentarea != \"__PAGE__\") ? \"__PAGE__\" : False;\n\t\t\t\t$cat_ancestorlist_temp = $cat_ancestorlist;\n\t\t\t} while($contentarea);\n\t\t}", "title": "" }, { "docid": "d57684bb11e976f8a042e1a6be64d1aa", "score": "0.52669966", "text": "function GetParamCatAss($connection,$id)\n{\n $query = $connection->query(\"SELECT aspcat_id FROM assessment_params_category WHERE ass_typ = '$id'\") ;\n while ($row = $query->fetch()) {\n\n // foreach ($row as $key) {\n # code...\n \n $k = $row['aspcat_id'] ;\n // echo \"\" ;\n /*echo \"\n <div id='$id' class='panel-collapse collapse in' role='tabpanel' aria-labelledby='headingOne'>\n <div class='panel-body'> \n <table class='table table-striped ' border='2px' width='90%'>\n <thead align='left'>\n <tr>\n <th width='70%' height='30'>Personality</th>\n <th> </th>\n </tr>\n </thead>\n <tbody>\n \"; */\n GetAallPara($connection,$k); \n // echo \"\";\n // echo \"\";\n // }\n }/*echo \" </tbody>\n </table>\n </div>\n </div>\";*/\n}", "title": "" }, { "docid": "408e7958aae61c84048770bf70412419", "score": "0.5261735", "text": "function getAllCoursesByManagerID($manager_id){\n\t\tcheckConnectivity();\n\n $list= array();\n $query =sprintf(\"select * from course where department_id = %s\",getDepartmentIDByManagerID($manager_id));\n $result =mysqli_query($GLOBALS['connection_link'],$query);\n while($row = mysqli_fetch_assoc($result)){\n $list[]=$row;\n }\n\n return $list;\n }", "title": "" }, { "docid": "da90e5abf191b3c6c71c2adf26df59dc", "score": "0.5259499", "text": "function getcascadingmodulepermissions($contentarea,$cat_id)\n\t\t{\n\t\t\t$cat_ancestorlist = ($cat_id != CURRENT_SITE_ID) ? $GLOBALS['Common_BO']->cats->getCategoryancestorids($cat_id) : array();\n\t\t\t$cat_ancestorlist[] = CURRENT_SITE_ID;\n\n\t\t\t$cat_ancestorlist_temp = $cat_ancestorlist;\n\n\t\t\tdo\n\t\t\t{\n\t\t\t\t$cat_id = array_shift($cat_ancestorlist_temp);\n\n\t\t\t\twhile($cat_id !== NULL)\n\t\t\t\t{\n\t\t\t\t\t$permitted = $this->so->getpermittedmodules($contentarea,$cat_id);\n\t\t\t\t\tif ($permitted)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn $permitted;\n\t\t\t\t\t}\n\t\t\t\t\t$cat_id = array_shift($cat_ancestorlist_temp);\n\t\t\t\t}\n\t\t\t\t$contentarea = ($contentarea != \"__PAGE__\") ? \"__PAGE__\" : False;\n\t\t\t\t$cat_ancestorlist_temp = $cat_ancestorlist;\n\t\t\t} while($contentarea);\n\t\t\treturn array();\n\t\t}", "title": "" }, { "docid": "aae41eb562165be49c98aff6dd03e16b", "score": "0.5259275", "text": "static function getAllByLearner($learnerId) {\n global $db;\n try {\n $stmt = $db->prepare(\"Select courseId From assignments Where learnerId = ?;\");\n $stmt->execute(array($learnerId));\n $allRows = array();\n while ($row = $stmt->fetchObject()) {\n $assignCourse = new stdClass();\n $assignCourse->assignment = new Assignment($learnerId, $row->courseId);\n $assignCourse->course = new Course($row->courseId);\n $allRows[] = $assignCourse;\n }\n $stmt->closeCursor();\n return $allRows;\n } catch(PDOException $e) {\n crcDebug('Assignment / getAllByLearner() / ' . $e->getMessage());\n return array(); //pass back an empty array.\n }\n }", "title": "" }, { "docid": "c95fe080187f3c0c19fc925574849283", "score": "0.52525795", "text": "public function run()\n {\n $course = [\n //coursenya user id 1\n [\n 'judul' => 'Basic Laravel 5.6',\n 'harga' => 100000,\n 'deskripsi' => 'Pelajari framework MVC laravel 5.6',\n 'user_id' => 1,\n 'category_id' => 9\n ],\n [\n 'judul' => 'Basic Code Igniter 3.1',\n 'harga' => 100000,\n 'deskripsi' => 'Pelajari framework PHP dengan komunitas terbesar',\n 'user_id' => 1,\n 'category_id' => 9\n ],\n [\n 'judul' => 'Express.js',\n 'harga' => 150000,\n 'deskripsi' => 'Pelajari framework backend dengan bahasa javascipt',\n 'user_id' => 1,\n 'category_id' => 9\n ],\n [\n 'judul' => 'Graph QL',\n 'harga' => 150000,\n 'deskripsi' => 'Pelajari cara baru melakukan query',\n 'user_id' => 1,\n 'category_id' => 9\n ],\n [\n 'judul' => 'React + Redux',\n 'harga' => 200000,\n 'deskripsi' => 'Pelajari single thruth state pada SPA ',\n 'user_id' => 1,\n 'category_id' => 9\n ],\n //course user id 2 \n [\n 'judul' => 'Biology',\n 'harga' => 100000,\n 'deskripsi' => 'Belajar dengan cara mudah hafal',\n 'user_id' => 2,\n 'category_id' => 5\n ],\n [\n 'judul' => 'Fisika',\n 'harga' => 100000,\n 'deskripsi' => 'Fisika itu mudah',\n 'user_id' => 2,\n 'category_id' => 5\n ],\n [\n 'judul' => 'Kimia',\n 'harga' => 100000,\n 'deskripsi' => 'Belajar kimia itu asik ',\n 'user_id' => 2,\n 'category_id' => 5\n ],\n [\n 'judul' => 'Matematika',\n 'harga' => 100000,\n 'deskripsi' => 'Metode cepat menghitung',\n 'user_id' => 2,\n 'category_id' => 5\n ],\n [\n 'judul' => 'Bahasa Ingriss',\n 'harga' => 100000,\n 'deskripsi' => 'Belajar seru bahasa ingrris',\n 'user_id' => 2,\n 'category_id' => 5\n ],\n //course user id 3 \n [\n 'judul' => 'Sejarah',\n 'harga' => 100000,\n 'deskripsi' => 'Belajar dengan cara mudah hafal',\n 'user_id' => 3,\n 'category_id' => 4\n ],\n [\n 'judul' => 'Sosiologi',\n 'harga' => 100000,\n 'deskripsi' => 'Belajar dengan cara mudah hafal',\n 'user_id' => 3,\n 'category_id' => 4\n ],\n [\n 'judul' => 'Bahasa Indonesia',\n 'harga' => 100000,\n 'deskripsi' => 'Belajar dengan cara mudah hafal',\n 'user_id' => 3,\n 'category_id' => 4\n ],\n [\n 'judul' => 'Biology',\n 'harga' => 100000,\n 'deskripsi' => 'Belajar dengan cara mudah hafal',\n 'user_id' => 3,\n 'category_id' => 4\n ],\n //course user id 4\n [\n 'judul' => 'Matematika',\n 'harga' => 100000,\n 'deskripsi' => 'Belajar dengan cara mudah hafal',\n 'user_id' => 4,\n 'category_id' => 3\n ],\n [\n 'judul' => 'IPA',\n 'harga' => 100000,\n 'deskripsi' => 'Belajar dengan cara mudah hafal',\n 'user_id' => 4,\n 'category_id' => 3\n ],\n [\n 'judul' => 'IPS',\n 'harga' => 100000,\n 'deskripsi' => 'Belajar dengan cara mudah hafal',\n 'user_id' => 4,\n 'category_id' => 3\n ],\n [\n 'judul' => 'Bahasa Ingriss',\n 'harga' => 100000,\n 'deskripsi' => 'Belajar dengan cara mudah hafal',\n 'user_id' => 4,\n 'category_id' => 3\n ],\n ];\n\n Course::insert($course);\n }", "title": "" }, { "docid": "42229af491342d7f311275859ab78eb9", "score": "0.52505314", "text": "function makeCourseModule($data)\t{\n\t\t$courseModule = array('startdate'=>$data[$this->alias]['startdate']);\n\t\tif($data['Course']['repeats'])\t{\n\t\t\t$courseModule['enddate'] = $data[$this->alias]['enddate'] = date('Y-m-d', strtotime($data[$this->alias]['startdate'] . ' +' . $data[$this->alias]['frequency'] . ' months'));\n\t\t}\n\t\t//pr($courseModule);\n\t\treturn $courseModule;\n\t\t\n\t}", "title": "" }, { "docid": "ea7bfb2986787c440ed7f3be0b4c00d1", "score": "0.52474934", "text": "public function get_course($id) {\n return $this->db->select('*')\n ->where('id', $id)\n ->get('tbl_course')\n ->row_array();\n }", "title": "" }, { "docid": "a9e30f4c47e27f629e979cec92965bb3", "score": "0.52460915", "text": "function mod_bongo_create_course_module($courseid, $sectionid, $ltitypeid, $ltimoduleid) {\n $moduleinfo = mod_bongo_create_course_module_object($ltitypeid, $courseid, $sectionid, $ltimoduleid);\n\n $course = new stdClass();\n $course->id = $courseid;\n $coursemodule = add_moduleinfo($moduleinfo, $course);\n\n return $coursemodule->coursemodule;\n}", "title": "" }, { "docid": "296f050fa6126b08c10bcfffe5bb11f8", "score": "0.5233772", "text": "function get_prerequisites($course_id) {\n if (!$course_id) {\n return array();\n }\n\n $dbh = DB::connect();\n\n $q = \"SELECT c.code code, c.number number \";\n $q.= \"FROM Prerequisites p \";\n $q.= \"LEFT JOIN Courses c ON c.id = p.prerequisite_id \";\n $q.= \"WHERE p.course_id = \" . $course_id;\n\n $result = $dbh->query($q);\n\n if (!$result) {\n return array();\n }\n\n\n $courses = array();\n while ($row = $result->fetch(PDO::FETCH_ASSOC)) {\n $courses[] = $row;\n }\n\n return $courses;\n}", "title": "" }, { "docid": "05d18c0e62fbf5154b39298171069e4c", "score": "0.52336234", "text": "public function getCourseDetails($courseId){\n $course = Course::where('id', $courseId)->first();\n\n $deptAdminMap = Auth::user()->departmentAdminMap;\n $courseDepartment = $course?$course->department:'';\n\n if(!$course || !$deptAdminMap || $courseDepartment->id != $deptAdminMap->department_id){\n return view('departmentadmin.access_denied');\n }\n\n $courseDetails = array(\n 'id' => $courseId,\n 'students_count' => UserCourseMap::where('course_id', $courseId)->count(),\n 'name' => $course->name,\n 'code' => $course->code,\n 'term' => $course->term_number,\n 'type' => $course->type->name,\n 'start_date' => $course->start_date,\n 'end_date' => $course->end_date,\n 'description' => $course->description,\n 'year' => explode('-', $course->start_date)[0]\n );\n\n $crswrks = $course->courseworks;\n $courseworks = [];\n foreach($crswrks as $crswrk){\n $coursework = [];\n $coursework['id'] = $crswrk->id;\n $coursework['name'] = $crswrk->name;\n $coursework['type'] = CourseworkType::where('id', $crswrk->coursework_type_id)->first()->name;\n $coursework['display_to_students'] = $crswrk->display_to_students;\n $coursework['weighting_in_classrecord'] = $crswrk->weighting_in_classrecord;\n $coursework['weighting_in_yearmark'] = $crswrk->weighting_in_yearmark;\n\n $subcrswrks = $crswrk->subcourseworks;\n $subcourseworks = [];\n\n foreach ($subcrswrks as $subcrswrk){\n $subcoursework = [];\n $subcoursework['id'] = $subcrswrk->id;\n $subcoursework['name'] = $subcrswrk->name;\n $subcoursework['display_to_students'] = $subcrswrk->display_to_students;\n $subcoursework['display_marks'] = $subcrswrk->display_marks;\n $subcoursework['display_percentage'] = $subcrswrk->display_percentage;\n $subcoursework['weighting'] = $subcrswrk->weighting_in_coursework;\n $subcoursework['max_marks'] = $subcrswrk->max_marks;\n\n $sections = [];\n foreach($subcrswrk->sections as $sctn){\n $section = [];\n $section['id'] = $sctn->id;\n $section['name'] = $sctn->name;\n $section['max_marks'] = $sctn->max_marks;\n $sections[] = $section;\n }\n $subcoursework['sections'] = $sections;\n $subcourseworks[] = $subcoursework;\n }\n $coursework['subcourseworks'] = $subcourseworks;\n $courseworks[] = $coursework;\n }\n $courseDetails['courseworks'] = $courseworks;\n\n $subminimums = [];\n foreach($course->subminimums as $subm){\n $submininum = [];\n $subminimum['id'] = $subm->id;\n $subminimum['name'] = $subm->name;\n $subminimum['for_dp'] = $subm->for_dp;\n $subminimum['threshold'] = $subm->threshold;\n\n $rows = [];\n foreach ($subm->subminimumRows as $rw){\n $row = [];\n $row['id'] = $rw->id;\n $row['coursework'] = Coursework::where('id', $rw->coursework_id)->first()->name;\n $row['coursework_id'] = $rw->coursework_id;\n $subcwrk = SubCoursework::where('id', $rw->subcoursework_id)->first();\n $row['subcoursework_id'] = $subcwrk?$subcwrk->id:-1;\n $row['subcoursework'] = $subcwrk? $subcwrk->name : '';\n $row['weighting'] = $rw->weighting;\n $rows[] = $row;\n }\n $subminimum['rows'] = $rows;\n $subminimums[] = $subminimum;\n }\n $courseDetails['subminimums'] = $subminimums;\n return view('departmentadmin.course_details')->with('course', $courseDetails);;\n\n }", "title": "" }, { "docid": "0f34c3025d61bb39f7d603262ecd7028", "score": "0.52330345", "text": "public function view_course_summary(){\n //pag save delete session of courseName, sectorDetails, modules,\n \n //print_r($_SESSION['modules']);\n if(!isset($_SESSION['modules']) || $_SESSION['modules'] == NULL){\n $this->session->set_flashdata('error', 'There are no modules');\n redirect('admin/syllabus/add_modules');\n }\n \n foreach($_SESSION['modules'] as $modules){\n \n if(empty($modules['lessonlist'])){\n $this->session->set_flashdata('error', 'There are no lessons in '.$modules['module'][0]);\n redirect('admin/syllabus/add_modules'); \n }\n elseif(!isset($modules['lessonlist'])){\n $this->session->set_flashdata('error', 'There are no lessons in '.$modules['module'][0]);\n redirect('admin/syllabus/add_modules'); \n }\n }\n \n $modules = $_SESSION['modules'];\n $parentcourse = $_SESSION['courseid'];\n \n // print_r($modules);\n $this->template\n ->title('View Course Summary')\n ->set('ctitle',$_SESSION['sectorDetails'])\n ->set('course', $_SESSION['courseName']) \n ->set('modules',$modules)\n \n ->build('admin/courseSummary');\n }", "title": "" }, { "docid": "5000db37f02da2b4afa7cf865b823673", "score": "0.5230699", "text": "function ciniki_courses_courseTypes($ciniki) {\n // \n // Find all the required and optional arguments\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'prepareArgs');\n $rc = ciniki_core_prepareArgs($ciniki, 'no', array(\n 'tnid'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Tenant'), \n 'limit'=>array('required'=>'no', 'blank'=>'no', 'name'=>'Limit'), \n )); \n if( $rc['stat'] != 'ok' ) { \n return $rc;\n } \n $args = $rc['args'];\n \n // \n // Make sure this module is activated, and\n // check permission to run this function for this tenant\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'courses', 'private', 'checkAccess');\n $rc = ciniki_courses_checkAccess($ciniki, $args['tnid'], 'ciniki.courses.courseTypes'); \n if( $rc['stat'] != 'ok' ) { \n return $rc;\n } \n\n //\n // Build the query to get the list of course types\n //\n $strsql = \"SELECT DISTINCT ciniki_courses.type AS name \"\n . \"FROM ciniki_courses \"\n . \"WHERE ciniki_courses.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"ORDER BY name \";\n if( isset($args['limit']) && is_numeric($args['limit']) && $args['limit'] > 0 ) {\n $strsql .= \"LIMIT \" . ciniki_core_dbQuote($ciniki, $args['limit']) . \" \"; // is_numeric verified\n }\n\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbHashQueryTree');\n $rc = ciniki_core_dbHashQueryTree($ciniki, $strsql, 'ciniki.courses', array(\n array('container'=>'types', 'fname'=>'name', 'name'=>'type',\n 'fields'=>array('name')),\n ));\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( !isset($rc['types']) ) {\n return array('stat'=>'ok', 'types'=>array());\n }\n\n foreach($rc['types'] as $cat => $type) {\n $rc['types'][$cat]['type']['settings_name'] = preg_replace('/[^a-z0-9]/', '', strtolower($type['type']['name']));\n }\n \n return array('stat'=>'ok', 'types'=>$rc['types']);\n}", "title": "" }, { "docid": "b6152a9fc342f15c536f31c07bc9ca14", "score": "0.5222845", "text": "function block_news_get_course_mod_info($blockinstanceid) {\n global $DB;\n\n $cse = null;\n $csemod = new StdClass();\n\n // Context instance.\n $cibi = context_block::instance($blockinstanceid);\n if (!$cibi) {\n return null;\n }\n\n $ctxa = explode('/', $cibi->path); // E.g: /1/46/53/318.\n unset($ctxa[0]);\n $ctxin = implode(', ', $ctxa); // E.g: 1, 46, 53, 318.\n\n // Create \"IN\" SQL.\n list($insql, $params) = $DB->get_in_or_equal($ctxa, SQL_PARAMS_QM);\n\n // Get course related to the context.\n $sql = 'SELECT {course}.* FROM {context}\n INNER JOIN {course} ON {context}.instanceid = {course}.id\n WHERE {context}.contextlevel = '.CONTEXT_COURSE;\n $sql .= \" AND {context}.id $insql\";\n $cse = $DB->get_record_sql($sql, $params);\n\n // Get module info via course_module table to get extra info if block is\n // called from a module (glossary, page etc).\n $sql = 'SELECT * FROM {context}\n INNER JOIN {course_modules} ON {context}.instanceid = {course_modules}.id\n WHERE {context}.contextlevel = '.CONTEXT_MODULE;\n $sql .= \" AND {context}.id $insql\";\n $cmrec = $DB->get_record_sql($sql, $params);\n\n if (!empty($cmrec)) {\n $csemodid = $cmrec->instanceid;\n }\n\n $mi = get_fast_modinfo($cse);\n $coursecategory = $DB->get_record('course_categories', array('id' => $cse->category));\n\n // Build info object.\n $csemod->course = $cse;\n $csemod->context = $cibi;\n $csemod->cseid = $cse->id;\n $csemod->cseshortname = $cse->shortname;\n $csemod->csefullname = $cse->fullname;\n $csemod->categoryid = $coursecategory->id;\n $csemod->categoryname = $coursecategory->name;\n if (!empty($csemodid)) {\n $csemod->modid = $mi->cms[$csemodid]->id;\n $csemod->modtype = $mi->cms[$csemodid]->modname;\n $csemod->modname = $mi->cms[$csemodid]->name;\n }\n\n return $csemod;\n}", "title": "" }, { "docid": "a7ef0065ddd119d6f68033c0052d8b9d", "score": "0.5220464", "text": "public function get_none_module_lessons( $course_id ){\n\n $non_module_lessons = array();\n\n //exit if there is no course id passed in\n if( empty( $course_id ) || 'course' != get_post_type( $course_id ) ) {\n\n return $non_module_lessons;\n }\n\n //save some time and check if we already have the saved\n if( get_transient( 'sensei_'. $course_id .'_none_module_lessons') ){\n\n return get_transient( 'sensei_'. $course_id .'_none_module_lessons');\n\n }\n\n // create terms array which must be excluded from other arrays\n $course_modules = $this->get_course_modules( $course_id );\n\n //exit if there are no module on this course\n if( empty( $course_modules ) || ! is_array( $course_modules ) ){\n\n return Sensei()->course->course_lessons( $course_id );\n\n }\n\n $terms = array();\n foreach( $course_modules as $module ){\n\n array_push( $terms , $module->term_id );\n\n }\n\n $args = array(\n 'post_type' => 'lesson',\n 'post_status' => 'publish',\n 'posts_per_page' => -1,\n 'meta_query' => array(\n array(\n 'key' => '_lesson_course',\n 'value' => intval( $course_id ),\n 'compare' => '='\n )\n ),\n 'tax_query' => array(\n array(\n 'taxonomy' => 'module',\n 'field' => 'id',\n 'terms' => $terms,\n 'operator' => 'NOT IN'\n )\n ),\n 'orderby' => 'menu_order',\n 'order' => 'ASC',\n 'suppress_filters' => 0\n );\n\n $wp_lessons_query = new WP_Query( $args );\n\n if( isset( $wp_lessons_query->posts) && count( $wp_lessons_query->posts ) > 0 ){\n $non_module_lessons = $wp_lessons_query->get_posts();\n set_transient( 'sensei_'. $course_id .'_none_module_lessons', $non_module_lessons, 10 * DAY_IN_SECONDS );\n }\n\n return $non_module_lessons;\n }", "title": "" }, { "docid": "d8d19d758f2d3af1166dbf3dcc2e9728", "score": "0.5217967", "text": "public function getcourse ($id_course){\n $coursesDetail = $this -> restfullDAO -> getcoursesByid_course ($id_course );\n return $coursesDetail [0];\n }", "title": "" }, { "docid": "d620e63e88ec460bd01c9edf8b2e9bf8", "score": "0.5211697", "text": "function cma_pla_college()\n {\n drupal_set_title('College Courses Title');\n $includePath=$_SERVER['DOCUMENT_ROOT'].base_path().drupal_get_path('module','vcn_cma').\"/vcn_cma_pla.theme.inc\";\n include_once($includePath);\n $output .= displayCollegeCourses();\n return($output);\n }", "title": "" }, { "docid": "aaf64dca665fd18e07fad7d3ffe1b77e", "score": "0.52075356", "text": "function getDepartmentCoursesProgessBySemester($department_id,$year,$semester){\n\t\tcheckConnectivity();\n\n $list= array();\n $query =sprintf(\"select * from course where department_id = %s and year = '%s' and semster = '%s' \",$department_id,$year,$semester);\n $result =mysqli_query($GLOBALS['connection_link'],$query);\n while($row = mysqli_fetch_assoc($result)){\n\t\t $row['progress']=getCourseProgress($row['ID']);\n $list[]=$row;\n }\n\n return $list;\n }", "title": "" }, { "docid": "415356f226ca5c0657400ca93474923f", "score": "0.5205079", "text": "function SetCourseByTerm($term_filter, $course_array)\n {\n $sql = \"SELECT DISTINCT asset.course_module_course.id, asset.course_module_course.name, asset.course_module_course.course_number, asset.course_module_course.section_number\n FROM asset.course_module_course_materials\n JOIN asset.course_module_course ON asset.course_module_course_materials.course = asset.course_module_course.id\n WHERE asset.course_module_course_materials.item = $this->copy_id\";\n\n $result = pg_query($this->db, $sql);\n\n while ($course_row = pg_fetch_row($result))\n {\n $course_id = $course_row[0];\n $course_name = $course_row[1];\n $course_number = $course_row[2];\n $section_number = $course_row[3];\n\n //now get the instrustor if there is onExecute()\n $use_instructor = false;\n $instructor_name = \"\";\n\n $instructor_sql = \"SELECT actor.usr.family_name\n FROM asset.course_module_course_users\n JOIN actor.usr ON actor.usr.id = asset.course_module_course_users.usr\n WHERE asset.course_module_course_users.course = $course_id\n AND asset.course_module_course_users.usr_role = 1\";\n $instructor_result = pg_query($this->db, $instructor_sql);\n\n while ($instructor_row = pg_fetch_row($instructor_result))\n {\n $use_instructor = true;\n $instructor_name = $instructor_row[0];\n }\n\n if (strlen($section_number) > 0) $course_display_name = $course_number.\"-\".$section_number.\":\".$course_name;\n else $course_display_name = $course_number.\":\".$course_name;\n\n if ($use_instructor) $course_display_name .= \"-\".$instructor_name;\n\n //now get all the terms this courtse is in\n $term_sql = \"SELECT DISTINCT asset.course_module_term.name, asset.course_module_term.id\n FROM asset.course_module_term\n JOIN asset.course_module_term_course_map ON asset.course_module_term_course_map.term = course_module_term.id\n WHERE asset.course_module_term_course_map.course = $course_id\";\n\n $term_result = pg_query($this->db, $term_sql);\n\n while ($term_row = pg_fetch_row($term_result))\n {\n $term_name = $term_row[0];\n $term = $term_row[1];\n\n //only add if in the input array\n if ($term == $term_filter && in_array($course_id, $course_array) )\n {\n $this->course[] = $course_display_name;\n }\n }\n }\n\n }", "title": "" }, { "docid": "ba91c6ee5f62fe4e5de28d6b70138697", "score": "0.5202965", "text": "public function actionCompany($id) {\n /* ----- No of learners ----- */\n $query = \"SELECT COUNT(*) AS `count_learners`, b.`branch_name` FROM `branch_managers` AS a, `branches` AS b, `user` AS c WHERE a.`branch_id` = b.`id` AND b.`id` = '\" . $id . \"' AND a.`created_by` = \" . Yii::$app->user->identity->id . \" AND a.`user_id` = c.`created_by` AND c.`role_type` = 4 AND c.`added_by` = 1 AND c.`status` =10\";\n $connection = Yii::$app->db;\n $command = $connection->createCommand($query);\n $result = $command->queryOne();\n\n /* ----- No of courses ----- */\n $query1 = \"SELECT COUNT(*) AS `count_courses` FROM `branch_managers` AS a, `branches` AS b, `courses_assigned` AS c, `courses` AS d, `user` AS e WHERE a.`branch_id` = b.`id` AND a.`branch_id` = '\" . $id . \"' AND a.`user_id` = c.`user_id` AND c.`user_id` = e.`id` AND c.`courses_assigned` = d.`id` AND c.`blocked_status` = 1\";\n $connection1 = Yii::$app->db;\n $command1 = $connection1->createCommand($query1);\n $result1 = $command1->queryOne();\n\n\n $final_result = [];\n $combined_arrays = [];\n array_push($final_result, $result);\n array_push($final_result, $result1);\n\n foreach ($final_result as $key => $value) {\n if (is_array($value)) {\n $combined_arrays = array_merge($combined_arrays, $value);\n } else {\n $combined_arrays[$key] = $value;\n }\n }\n echo \\yii\\helpers\\Json::encode($combined_arrays);\n }", "title": "" }, { "docid": "0cb5413020a44fa1ed155796d0ae965f", "score": "0.5188744", "text": "function get_active_course_info($id = ''){\n \n $this->db->select('*');\n $this->db->from('ftc_courses_master');\n $this->db->where('status', 1); \n $this->db->group_by(\"course\");\n //$this->db->join('ftc_course_category_master Category ', 'Category.id= Course.category_id'); \n $query = $this->db->get();\n return $query->result();\n }", "title": "" }, { "docid": "3d3af5fbd483307f2e573d28308a6ea3", "score": "0.5187526", "text": "public function getCourseInfoURL() {\r\n $url = $this->url;\r\n if (empty($url)) {\r\n $url = str_replace('%course_code%', \r\n\t $this->course_code, \r\n\t ($this->activelink ? COURSE_INFO_URL : COURSE_OLD_INFO_URL));\r\n\t }\r\n\t else {\r\n\t $url = $url.\"?LKCAMPAIGN=FBA01\"; \r\n\t } \r\n\t \r\n\t if ( $this->activelink ) {\r\n\t // work out the level part of the info url\r\n\t // undergraduate is default\r\n\t $level = \"undergraduate\";\r\n\t \r\n\t // postgraduate\r\n\t if ($this->OUCourseLevel == 'M') {\r\n\t $level = \"postgraduate\";\r\n\t }\r\n\t \r\n\t if ( $this->classification == Course::CLASS_OU_CORRES ) {\r\n\t // cpd courses start with a G\r\n\t if ( substr($this->course_code, 0, 1) == 'G') {\r\n\t $level = \"professional-skills\"; \r\n\t } \r\n\t if (empty($this->url)) {\r\n\t $href = str_replace('%course_code%', $this->course_code, COURSE_INFO_URL);\r\n\t $href = str_replace('%level%', $level, $href);\r\n }\r\n else {\r\n $href = $this->url.\"?LKCAMPAIGN=FBA01\";\r\n }\r\n\t $retval = array('title' => 'Course Details',\r\n 'href' => $href,\r\n 'target' => '_blank',\r\n 'description' => 'View information on The Open University website about this course.');\r\n }\r\n else if ( $this->classification == Course::CLASS_OPENLEARN ) {\r\n\t if (empty($this->url)) {\r\n\t $href = sprintf(OPENLEARN_URL, $this->course_code);\r\n }\r\n else {\r\n $href = $this->url.\"?LKCAMPAIGN=FBA01\";\r\n } \r\n $retval = array('title' => 'View on OpenLearn', \r\n 'href' => $href,\r\n 'target' => '_blank',\r\n 'description' => 'View or enrol on this course on OpenLearn');\r\n }\r\n else if ( $this->classification == Course::CLASS_OU_QUAL ) {\r\n\t if (empty($this->url)) {\r\n\t $href = str_replace('%course_code%', $this->course_code, QUAL_INFO_URL);\r\n\t $href = str_replace('%level%', $level, $href);\r\n }\r\n else {\r\n $href = $this->url.\"?LKCAMPAIGN=FBA01\";\r\n } \r\n\t $retval = array('title' => 'Qualification Details', \r\n 'href' => $href,\r\n 'target' => '_blank',\r\n 'description' => 'View information on The Open University website about this qualification.');\r\n }\t\t\r\n\t }\r\n\t else {\r\n\t if (empty($this->url)) {\r\n\t $href = str_replace('%course_code%', $this->course_code, COURSE_OLD_INFO_URL);\r\n }\r\n else {\r\n $href = $this->url.\"?LKCAMPAIGN=FBA01\";\r\n } \r\n\t $retval = array('title' => 'Course Details', \r\n 'href' => $href,\r\n 'target' => '_self',\r\n 'description' => 'Sorry, no course details are available as this course has ended.');\t\t\t\r\n }\r\n\t return $retval;\r\n }", "title": "" }, { "docid": "84d2f192825af1b5f826e95c8efadf29", "score": "0.51869094", "text": "function readLayout($section_arr)\n {\n # create an anonymous function to define children categories\n $layout = array();\n $direct_categories = array();\n foreach ($section_arr as $option => $value)\n {\n $option = _ml_strtolower($option);\n if ($option == \"default\")\n {\n $layout['default'] = $value;\n }\n elseif ($option == 'https') {}\n else\n {\n # find out a keyword\n $end = _ml_strpos($option, '{');\n $key = trim(_ml_substr($option, 0, $end));\n\n # parse the ids\n $begin = _ml_strpos($option, '{') + 1;\n $end = _ml_strpos($option, '}');\n $ids = str_replace(\" \", \"\", trim(_ml_substr($option, $begin, $end - $begin)));\n $ids = explode(\",\", $ids);\n\n # create a key, if it hasn't been created yet\n if (!array_key_exists($key, $layout))\n {\n $layout[$key] = array();\n }\n foreach ($ids as $id)\n {\n # check if the nesting symbol exists\n if (_ml_strpos($id, '+'))\n {\n $id = _ml_substr($id, 0, _ml_strlen($id) - 1);\n if ($key == \"categories\" && ! modApiFunc('Catalog', 'isCorrectCategoryId', $id))\n continue;\n $id = modApiFunc('Catalog', 'getSubcategoryIdsWithParent', $id);\n }\n else\n {\n if ($key == \"categories\" && ! modApiFunc('Catalog', 'isCorrectCategoryId', $id))\n continue;\n $direct_categories[] = $id;\n }\n if (is_array($id))\n {\n foreach ($id as $_id)\n {\n if (!in_array($_id['id'], $direct_categories))\n {\n $layout[$key][$_id['id']] = $value;\n }\n }\n }\n else\n {\n $layout[$key][$id] = $value;\n }\n }\n }\n }\n return $layout;\n }", "title": "" }, { "docid": "911d4fd32adeeb1d62881cee47e356d3", "score": "0.5185471", "text": "private function getCoursesBelowPrg($a_prg_ref_id, $subtype=0) {\n\t\t\n\t\tilCronManager::ping($this->getId());\n\n\t\t$children = $this->noUICM->getAvailableCourses($a_prg_ref_id);\n\t\tforeach($children as $obj_id => $entry) {\n\n\t\t\tif ($entry['type'] === 'prg' \n\t\t\t\t&& (\n\t\t\t\t\t\t$entry['subtype_id'] != 0 \n\t\t\t\t\t\t|| \n\t\t\t\t\t\t$this->noUICM->getStudyProgram($obj_id)->getAmountOfChildren() > 0\n\t\t\t\t\t)\n\t\t\t\t) {\n\t\t\t\t\n\t\t\t\t$subtype = $this->axaSettings->getConstById($entry['subtype_id']);\n\t\t\t\t$this->getCoursesBelowPrg($entry['refId'], $subtype);\n\t\t\t}\n\n\t\t\tif ($entry['type'] === 'crs') {\n\t\t\t\t$entry['objId'] = $obj_id;\n\t\t\t\t$entry['in_subtype'] = $subtype;\n\n\t\t\t\tarray_push($this->relevantCourses, $entry);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2da446f082dbc72d6fa8b7cccb69fb63", "score": "0.51836187", "text": "function getAllCourses($cid){\n\t\t$query = $this->db->get('courses');\n\t}", "title": "" }, { "docid": "8ef6743ba0e1138c0ca7cdc2d95e00eb", "score": "0.5181596", "text": "public function details($course_id, $id)\n {\n $user = User::findOrFail(Auth::User()->id);\n $course = Course::findOrFail($course_id);\n $step = ProgramStep::findOrFail($id);\n $tasks = [];\n \\App\\ActionLog::record(Auth::User()->id, 'step', $id);\n\n\n if ($user->role=='teacher' || $user->role=='admin')\n {\n $tasks = $step->tasks;\n }\n else {\n $student = $course->students->filter(function($value, $key) use ($user) {\n return $value->id == $user->id;\n })->first();\n if ($student->pivot->is_remote)\n {\n $tasks = $step->remote_tasks;\n }\n else {\n $tasks = $step->class_tasks;\n }\n }\n\n $zero_theory = $step->theory == null || $step->theory == \"\";\n $one_tasker = $step->tasks->count() == 1 && $zero_theory;\n $empty = $zero_theory && $step->tasks->count() == 0;\n\n $quizer = true;\n foreach ($tasks as $task)\n if (!$task->is_quiz) $quizer = false;\n \n $quizer = $quizer && $zero_theory && !$empty;\n\n //Tasks Solutions\n $tasksSolutions = [];\n foreach ($tasks as $key => $task) {\n //Make a class\n $tasksSolutions[$key] = new \\stdClass();\n //User solutions\n $tasksSolutions[$key]->userSolutions = $task->solutions->where('user_id', Auth::User()->id);\n //Shown solutions\n $tasksSolutions[$key]->shownSolutions = $tasksSolutions[$key]->userSolutions\n ->filter(function($sol) use ($tasksSolutions, $key) {\n return $sol->checked == null || $sol->mark == 0 || $sol->mark == $tasksSolutions[$key]->userSolutions->max('mark');\n });\n //Hidden solutions\n $tasksSolutions[$key]->hiddenSolutions = $tasksSolutions[$key]->userSolutions\n ->filter(function($sol, $k) use ($tasksSolutions, $key){\n return !isset($tasksSolutions[$key]->shownSolutions[$k]);\n });\n }\n\n \n return view('steps.details', compact('tasksSolutions', 'step', 'user', 'tasks', 'zero_theory', 'one_tasker', 'empty', 'quizer', 'course'));\n }", "title": "" }, { "docid": "bd7c0d4bf7ec3e60aef1cd4a92cc07f9", "score": "0.51790214", "text": "function get_class_sec_stu($crns_list)\n{\n $conn = get_Db_Connection();\n $array_course_ids = array();\n for ($i = 0; $i < count($crns_list); $i++) {\n $sql_courses_id = \"SELECT * FROM Class WHERE Class_crn = '$crns_list[$i]';\";\n $result_classes_ids = $conn->query($sql_courses_id);\n $rows_classes_crns = $result_classes_ids->fetch_assoc();\n $array_course_ids[] = $rows_classes_crns['Class_Section'];\n }\n //var_dump($array_list);\n return $array_course_ids;\n}", "title": "" }, { "docid": "28b3aaaea7f78331c15056b00fb3ec44", "score": "0.5174752", "text": "public function programlist(){\n\t\t$pgid = $this->input->post('programcategory');\t\n\t \t$this->depmodel->get_programlist($pgid);\n\t}", "title": "" }, { "docid": "df3a4a8dbf7e9f111fa2cea77273898e", "score": "0.5157972", "text": "function getUserSubjs($userId)\n\t{\n\t\t$this->db->select('*')->from('subjects')->where('UserId',$userId);\n\t\t$query = $this->db->get();\n\t\t\n\t\tif (!$query->num_rows() > 0) {\n \treturn;\n \t}\n \t$res = $query->row();\n \t$subjs = array();\n \tforeach ($query->result() as $row) \n \t{\n \t\t//fetch sections based on SubjectId in database\n \t\t$this->db->select('*')->from('class')->where('SubjectId',$row->Id);\n \t\t$queryClass = $this->db->get();\n \t\t$i = 0;\n \t\t$j = 0;\n \t\t$class = array();\n \t\t$modules = array();\n \t\t$ClassId = array();\n \t\t\n \t\tforeach ($queryClass->result() as $rowClass) \n \t\t{\n \t\t\t$mod = $rowClass->ModuleType;\n \t\t\t$class[$i] = array(\n \t\t\t\t'c_block' => $rowClass->ClassBlock,\n \t\t\t\t'c_id' => $rowClass->Id,\n \t\t\t\t'c_isUploaded' => $rowClass->IsUploaded,\n \t\t\t\t'c_dateUploaded' => $rowClass->DateUploaded\n \t\t\t);\n\n \t\t\t//fetch modules\n\t \t\t//if subject on that section is lecture type\n\t \t\tif ($rowClass->ModuleType == \"Lec\")\n\t \t\t{\n\t \t\t\t$this->db->select('*')->from('lectmodperc')->where('Id',1);\n\t \t\t\t$queryModules = $this->db->get();\n\t \t\t\t//convert into one dimensional object array using row()\n\t \t\t\t$rowModules = $queryModules->row();\n\t \t\t\t$modules[$j] = array(\n\t \t\t\t\t'Attendance' => $rowModules->Attendance,\n\t \t\t\t\t'ClassStanding' => $rowModules->ClassStanding,\n\t \t\t\t\t'QuizzesLExam\t' => $rowModules->QuizzesLExam,\n\t \t\t\t\t'MajorExam' => $rowModules->MajorExam\n\t \t\t\t);\n\t \t\t}\n\t \t\t//else get lab modules\n\t \t\telse \n\t \t\t{\n\t \t\t\t$this->db->select('*')->from('labmodperc')->where('Id',1);\n\t \t\t\t$queryModules = $this->db->get();\n\t \t\t\t$rowModules = $queryModules->row();\n\t \t\t\t$modules[$j] = array(\n\t \t\t\t\t'PracExam\t' => $rowModules->PracExam,\n\t \t\t\t\t'Project' => $rowModules->Project,\n\t \t\t\t\t'Lab_MachineEx' => $rowModules->Lab_MachineEx,\n\t \t\t\t);\n\t \t\t}\n \t\t\t$i++;\n \t\t\t$j++;\n \t\t}\n \t$subjs[$row->SubjectTitle.\"-\".$mod]['title'] = $row->SubjectTitle;\n \t$subjs[$row->SubjectTitle.\"-\".$mod]['class'] = $class;\n \t$subjs[$row->SubjectTitle.\"-\".$mod]['modules'] = $modules;\n \t}\n \treturn $subjs;\n\t}", "title": "" }, { "docid": "e4aa18e697b63f87cd4a43d1581104d0", "score": "0.515719", "text": "public static function fetch_all($params){\n\t\treturn gescompeval_object::fetch_all_helper('block_gesc_skill_course', 'skill_course', $params);\n\t}", "title": "" }, { "docid": "1542cf90b1484b501869684dfd73a13d", "score": "0.51563066", "text": "public static function get_ltis_by_courses_returns() {\n\n return new external_single_structure(\n array(\n 'ltis' => new external_multiple_structure(\n new external_single_structure(\n array(\n 'id' => new external_value(PARAM_INT, 'External tool id'),\n 'coursemodule' => new external_value(PARAM_INT, 'Course module id'),\n 'course' => new external_value(PARAM_INT, 'Course id'),\n 'name' => new external_value(PARAM_RAW, 'LTI name'),\n 'intro' => new external_value(PARAM_RAW, 'The LTI intro', VALUE_OPTIONAL),\n 'introformat' => new external_format_value('intro', VALUE_OPTIONAL),\n 'introfiles' => new external_files('Files in the introduction text', VALUE_OPTIONAL),\n 'timecreated' => new external_value(PARAM_INT, 'Time of creation', VALUE_OPTIONAL),\n 'timemodified' => new external_value(PARAM_INT, 'Time of last modification', VALUE_OPTIONAL),\n 'typeid' => new external_value(PARAM_INT, 'Type id', VALUE_OPTIONAL),\n 'toolurl' => new external_value(PARAM_URL, 'Tool url', VALUE_OPTIONAL),\n 'securetoolurl' => new external_value(PARAM_RAW, 'Secure tool url', VALUE_OPTIONAL),\n 'instructorchoicesendname' => new external_value(PARAM_TEXT, 'Instructor choice send name',\n VALUE_OPTIONAL),\n 'instructorchoicesendemailaddr' => new external_value(PARAM_INT, 'instructor choice send mail address',\n VALUE_OPTIONAL),\n 'instructorchoiceallowroster' => new external_value(PARAM_INT, 'Instructor choice allow roster',\n VALUE_OPTIONAL),\n 'instructorchoiceallowsetting' => new external_value(PARAM_INT, 'Instructor choice allow setting',\n VALUE_OPTIONAL),\n 'instructorcustomparameters' => new external_value(PARAM_RAW, 'instructor custom parameters',\n VALUE_OPTIONAL),\n 'instructorchoiceacceptgrades' => new external_value(PARAM_INT, 'instructor choice accept grades',\n VALUE_OPTIONAL),\n 'grade' => new external_value(PARAM_INT, 'Enable grades', VALUE_OPTIONAL),\n 'launchcontainer' => new external_value(PARAM_INT, 'Launch container mode', VALUE_OPTIONAL),\n 'resourcekey' => new external_value(PARAM_RAW, 'Resource key', VALUE_OPTIONAL),\n 'password' => new external_value(PARAM_RAW, 'Shared secret', VALUE_OPTIONAL),\n 'debuglaunch' => new external_value(PARAM_INT, 'Debug launch', VALUE_OPTIONAL),\n 'showtitlelaunch' => new external_value(PARAM_INT, 'Show title launch', VALUE_OPTIONAL),\n 'showdescriptionlaunch' => new external_value(PARAM_INT, 'Show description launch', VALUE_OPTIONAL),\n 'servicesalt' => new external_value(PARAM_RAW, 'Service salt', VALUE_OPTIONAL),\n 'icon' => new external_value(PARAM_URL, 'Alternative icon URL', VALUE_OPTIONAL),\n 'secureicon' => new external_value(PARAM_URL, 'Secure icon URL', VALUE_OPTIONAL),\n 'section' => new external_value(PARAM_INT, 'course section id', VALUE_OPTIONAL),\n 'visible' => new external_value(PARAM_INT, 'visible', VALUE_OPTIONAL),\n 'groupmode' => new external_value(PARAM_INT, 'group mode', VALUE_OPTIONAL),\n 'groupingid' => new external_value(PARAM_INT, 'group id', VALUE_OPTIONAL),\n ), 'Tool'\n )\n ),\n 'warnings' => new external_warnings(),\n )\n );\n }", "title": "" }, { "docid": "8e8c27f4f221ea13d63831e2c714aa28", "score": "0.5155978", "text": "function GetData(){\n $arr = array();\n $CatalogL = new CatalogLayout();\n $c_settings = $this->GetSettings(); // Catalog Settings\n\n $sSQL = \"\n SELECT \n `\".TblModCatalogProp.\"`.id,\n `\".TblModCatalogProp.\"`.id_cat,\n `\".TblModCatalogProp.\"`.price,\n `\".TblModCatalogProp.\"`.price_currency,\n `\".TblModCatalogPropSprName.\"`.name,\n `\".TblModCatalogSprName.\"`.name AS cat_name\n FROM\n `\".TblModCatalogProp.\"`,\n `\".TblModCatalogPropSprName.\"`,\n `\".TblModCatalog.\"`,\n `\".TblModCatalogSprName.\"` \n WHERE\n `\".TblModCatalogProp.\"`.`id_cat`=`\".TblModCatalog.\"`.`id`\n AND\n `\".TblModCatalogProp.\"`.id=`\".TblModCatalogPropSprName.\"`.cod\n AND\n `\".TblModCatalog.\"`.id=`\".TblModCatalogSprName.\"`.cod\n AND\n `\".TblModCatalogPropSprName.\"`.lang_id='\"._LANG_ID.\"'\n AND\n `\".TblModCatalogSprName.\"`.lang_id='\"._LANG_ID.\"'\n ORDER BY `\".TblModCatalog.\"`.`move`, `\".TblModCatalogProp.\"`.`move` \n \";\n\n\n $res = $this->db->db_Query($sSQL);\n //echo \"<br />sSQL = \".$sSQL.\" res = \".$res.\"<br><br><br>\";\n $rows = $this->db->db_GetNumRows();\n for($i=0;$i<$rows;$i++){\n $offer = $this->db->db_FetchAssoc();\n $click = $CatalogL->Link($offer['id_cat'], $offer['id']);\n //echo \"<br>\".$click;\n // $name = $offer['name'];\n $tm = explode(\" \", $offer['name']);\n if(isset($tm[0])) {$type = $tm[0];}\n else { $type = '';}\n //echo \"<br>\".$type;\n \n if(isset($offer['price']) and !empty($offer['price'])) $price = $offer['price'];\n else $price = '1';\n // echo \"<br> price = \".$price;\n \n array_push($arr,\n array(\n 'id' => $offer['id'], // ИД товара\n 'category' => stripslashes($offer['cat_name']), // ИД категории в которой находится товар\n 'click' => $click, // Адрес(URL) куда должен перейти пользователь на ваш сайт при клике на товар\n 'name' => stripslashes($offer['name']), // Название товара\n 'currency' => $offer['price_currency'], // Буквенный код валюты, например UAH\n 'price' => $price, // Цена товара в указаной валюте\n )\n ); \n }\n // print_r($arr);\n return $arr;\n }", "title": "" }, { "docid": "a813995a14cd43f30f19866c177cb2ca", "score": "0.5150004", "text": "public function getCourse(int $id) {\n $sql = \"SELECT * FROM courses WHERE id= '$id'\";\n $result = $this->db->query($sql);\n return mysqli_fetch_all($result, MYSQLI_ASSOC);\n }", "title": "" }, { "docid": "f723d94b9e17d0d93b081bedde037271", "score": "0.5135707", "text": "public function get_all_course_details()\n\t{\n\t\t$sql = \"SELECT * \n\t\t\t\tFROM COURSE;\";\n\t\t$query = $this->db->query($sql);\n\t\treturn $query->result_array();\n\t}", "title": "" }, { "docid": "e13d26c60a51200f5d713abf947f9940", "score": "0.51341546", "text": "public function actionCompanyone($id) {\n /* ----- No of learners ----- */\n $query1 = \"SELECT b.`course_name`, a.`user_id` AS `learner_id` FROM `courses_assigned` AS a, `courses` AS b, `user` AS c, `branch_managers` AS d WHERE a.`user_id` = c.`id` AND c.`role_type` = 4 AND c.`status` = 10 AND a.`courses_assigned` = b.`id` AND b.`id` = '\" . $id . \"' AND a.`created_by` = d.`user_id` AND d.`created_by` = \" . Yii::$app->user->identity->id . \" AND a.`blocked_status` = 1\";\n $connection1 = Yii::$app->db;\n $command1 = $connection1->createCommand($query1);\n $result1 = $command1->queryAll();\n $no_of_learners = count($result1);\n\n $total_result = array(\"count_learners\" => $no_of_learners);\n\n $total_marks = 0;\n $query2 = \"SELECT sum(ques.grade) as totalmarks FROM questions ques, sections sect, lessons lss, courses cour WHERE (ques.section_id=sect.id) AND (sect.lesson_id=lss.id) AND (lss.course_id=cour.id) AND (lss.course_id=\" . $id . \")\";\n $connection2 = Yii::$app->db;\n $command2 = $connection2->createCommand($query2);\n $result2 = $command2->queryAll();\n\n foreach ($result2 as $record) {\n $total_marks = $total_marks + $record['totalmarks'];\n }\n\n $total_scored = 0;\n foreach ($result1 as $record) {\n\n //Total marks scored by each learner for that course\n $query3 = \"SELECT sum(learn_s.score) individualscore FROM questions ques, sections sect, lessons lss, courses cour, learner_scoring learn_s WHERE (ques.section_id=sect.id) AND (sect.lesson_id=lss.id) AND (lss.course_id=cour.id) AND (lss.course_id=\" . $id . \") AND learn_s.question_id = ques.id and learn_s.learner_id =\" . $record['learner_id'];\n $connection3 = Yii::$app->db;\n $command3 = $connection3->createCommand($query3);\n $result3 = $command3->queryAll();\n foreach ($result3 as $record) {\n if ($record['individualscore'] != null) {\n $total_scored = $total_scored + $record['individualscore'];\n }\n }\n }\n\n if ($total_scored === 0) {\n $scoreindex = 0;\n } else {\n $scoreindex = ($total_scored / ($total_marks * $no_of_learners)) * 100;\n }\n $scoreindexarr = array(\"count_score\" => round($scoreindex));\n $final_result1 = [];\n $combined_arrays1 = [];\n array_push($final_result1, $total_result);\n array_push($final_result1, $scoreindexarr);\n\n foreach ($final_result1 as $key => $value) {\n if (is_array($value)) {\n $combined_arrays1 = array_merge($combined_arrays1, $value);\n } else {\n $combined_arrays1[$key] = $value;\n }\n }\n echo \\yii\\helpers\\Json::encode($combined_arrays1);\n }", "title": "" }, { "docid": "1390da6dbe92172699f465ca20fbd949", "score": "0.5116637", "text": "public function program() {\n\t\t$hasil = $this->db->query(\"SELECT * FROM cc_program order by status ASC\");\n\t\tif($hasil->num_rows() > 0){\n\t\t\treturn $hasil->result();\n\t\t}\n\t\telse {\n\t\t\treturn array();\n\t\t}\n\t}", "title": "" }, { "docid": "201b5760741ff0de161fe13052ea97fb", "score": "0.5108429", "text": "function certrt_get_grade_categories($courseid) {\n $grade_category_options = array();\n\n if ($grade_categories = grade_category::fetch_all(array('courseid' => $courseid))) {\n foreach ($grade_categories as $grade_category) {\n if (!$grade_category->is_course_category()) {\n $grade_category_options[-$grade_category->id] = get_string('category') . ' : ' . $grade_category->get_name();\n }\n }\n }\n\n return $grade_category_options;\n}", "title": "" }, { "docid": "4b6a3c6d98195ef86c2a9be42f61c90d", "score": "0.51076317", "text": "public function run()\n {\n $data = [\n '0' => [\n 'id' => 1,\n 'title' => 'Аварийно-диспетчерские службы',\n 'module_id' => 1,\n 'alias' => 'safety_emergency'\n ],\n '1' => [\n 'id' => 2,\n 'title' => 'Опорные пункты полиции',\n 'module_id' => 1,\n 'alias' => 'safety_police_stations'\n ],\n '2' => [\n 'id' => 3,\n 'title' => 'Участковые',\n 'module_id' => 1,\n 'alias' => 'safety_police_men'\n ],\n '3' => [\n 'id' => 4,\n 'title' => 'Маршруты следования',\n 'module_id' => 2,\n 'alias' => 'transport_routes'\n ],\n '4' => [\n 'id' => 5,\n 'title' => 'Остановки',\n 'module_id' => 2,\n 'alias' => 'transport_stops'\n ],\n '5' => [\n 'id' => 6,\n 'title' => 'Объекты торговли',\n 'module_id' => 3,\n 'alias' => 'trading_objects'\n ],\n '6' => [\n 'id' => 7,\n 'title' => 'Управляющие компании',\n 'module_id' => 4,\n 'alias' => 'utilities_companies'\n ],\n '7' => [\n 'id' => 8,\n 'title' => 'Программа капитального ремонта',\n 'module_id' => 4,\n 'alias' => 'utilities_prog_repair'\n ],\n '8' => [\n 'id' => 9,\n 'title' => 'Программа благоустройства дворов',\n 'module_id' => 4,\n 'alias' => 'utilities_prog_development'\n ],\n '9' => [\n 'id' => 10,\n 'title' => 'Плановые',\n 'module_id' => 5,\n 'alias' => 'disconnections_planned'\n ],\n '10' => [\n 'id' => 11,\n 'title' => 'Аварийные',\n 'module_id' => 5,\n 'alias' => 'disconnections_emergency'\n ],\n '11' => [\n 'id' => 12,\n 'title' => 'ТОСы',\n 'module_id' => 6,\n 'alias' => 'tos_area'\n ],\n '12' => [\n 'id' => 13,\n 'title' => 'Избирательные участки',\n 'module_id' => 7,\n 'alias' => 'elections_points'\n ]\n\n ];\n\n foreach ($data as $value) {\n DB::table('geo_layers')->insert($value);\n }\n }", "title": "" }, { "docid": "e180b830f3b8d6005d6b8c85cfd65d68", "score": "0.50999", "text": "function getactivityList($module,$target_field,$client_id=NULL,$country_id=NULL)\n\t{\n\t\t$tablenm_meta = \"tbl_mst_\".$module.\"_meta\";\n\t\t\t\n\t\t//$value=$this->Mastermodel->getCustomeFieldValue($tablenm_meta,\"list_order\",1,\"field_name\");\n\t\t//$key=$this->Mastermodel->getCustomeFieldValue($tablenm_meta,\"field_type\",12,\"field_name\");\n\t\t\n\t\t$value=$this->Masterjson->getjson($tablenm_meta,5); // list order\n\t\t$key=$this->Masterjson->getjson($tablenm_meta,1); // primary key\n\t\t\n\t\t\t\n\t\t$this->db->join('tbl_mst_'.$module,TABLE_MST_CASE.'.case_'.$target_field.'=tbl_mst_'.$module.'.'.$target_field,'left');\n\t\tif($country_id>0)\n\t\t{\n\t\t\t$this->db->where('(case_country_id = '.$country_id.')');\n\t\t}\n\t\t\n\t\tif(!empty($_POST['client_id']))\n\t\t{\n\t\t\t$wh = array();\n\t\t\tforeach($_POST['client_id'] as $s=>$t)\n\t\t\t{\n\t\t\t\tif($t!=\"\")\n\t\t\t\t$wh[] = \"case_client_id = \".$t;\n\t\t\t}\n\t\t\tif(@$_SESSION['sess_admin_type']!=2)\n\t\t\t{\n\t\t\t\t\t\n\t\t\t\tif($module=='cluster' && $_SESSION['sess_top_assigned_cluster']!=\"\")\n\t\t\t\t{\n\t\t\t\t\t$this->db->where(' cluster_id in('.$_SESSION['sess_top_assigned_cluster'].') ',NULL,FALSE);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif($module=='centre' && $_SESSION['sess_top_assigned_centers']!=\"\")\n\t\t\t\t{\n\t\t\t\t\t$this->db->where(' centre_id in('.$_SESSION['sess_top_assigned_centers'].') ',NULL,FALSE);\n\t\t\t\t}\n\t\t\t\tif($module=='subcentre' && $_SESSION['sess_top_assigned_subcenters']!=\"\")\n\t\t\t\t{\n\t\t\t\t\t$this->db->where(' subcentre_id in('.$_SESSION['sess_top_assigned_subcenters'].') ',NULL,FALSE);\n\t\t\t\t}\n\t\t\t\tif($module=='client' && $_SESSION['sess_top_assigned_clients']!=\"\")\n\t\t\t\t{\n\t\t\t\t\t$this->db->where(' client_id in('. $_SESSION['sess_top_assigned_clients'].') ',NULL,FALSE);\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif($module=='product' && $_SESSION['sess_top_assigned_products']!=\"\")\n\t\t\t\t{\n\t\t\t\t\t$this->db->where(' product_id in('. $_SESSION['sess_top_assigned_products'].') ',NULL,FALSE);\n\t\t\t\t}\n\t\t\t\tif($module=='verificationtype' && $_SESSION['sess_top_assigned_verifications']!=\"\")\n\t\t\t\t{\n\t\t\t\t\t$this->db->where(' veriftype_id in('. $_SESSION['sess_top_assigned_verifications'].') ',NULL,FALSE);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif($module=='activity' && $_SESSION['sess_user_emp_id']!='7')\n\t\t\t\t{\n\t\t\t\t\t$this->db->where('activity_status',1,NULL);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\n\t\t\tif(!empty($wh))\n\t\t\t$this->db->where('('.implode(' OR ',$wh).')',NULL,FALSE);\n\t\t\t\n\t\t\t$this->db->where($target_field.' IS NOT NULL',NULL,FALSE);\n\t\t\t$this->db->order_by($value,'asc');\n\t\t\t$query = $this->db->get(TABLE_MST_CASE);\n\t\t\t\n\t\t\t$records=$query->result_array();\n\t\t\t//echo $this->db->last_query();die();\n\t\t\tif($records)\n\t\t\tforeach($records as $rec)\n\t\t\t{\n\t\t\t\tif(@$rec[$value]!=\"\")\n\t\t\t\t{\n\t\t\t\t\t$result_arr[$rec[$key]]=$rec[$value]; //.((@$tmodule_arr['Dropdown']['value1']!=\"\")?\"(\".$rec[$tmodule_arr['Dropdown']['value1']].\")\":\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t$activity = $result_arr;\n\t\t\n\t\t$t_arr=array();\n\t\tif(!empty($activity))\n\t\t{\n\t\t\tforeach($activity as $key=>$rec)\n\t\t\t{\n\t\t\t $t_arr[]=$key.\"|\".$rec;\n\t\t\t}\n\t\t}\n\t\techo implode(\"#\",$t_arr);\t\n\t}", "title": "" }, { "docid": "2210c60ab1539bcb21360382825078f6", "score": "0.509906", "text": "function getActiveCompetences()\n {\n $competencesNode = atkgetNode('competency.competences');\n $competences = $competencesNode->select(\"person_id=\" . $this->user['id'])->includes(array('niveau_id','competency_id','person_id'));\n $level = array();\n $comp = array();\n foreach ($competences as $competency)\n {\n $level[] = $competency[\"niveau_id\"]['id'];\n $comp[] = $competency[\"competency_id\"]['id'];\n }\n $output = array(\n \"level\" => $level ,\n \"comp\" => $comp);\n return ($output);\n }", "title": "" }, { "docid": "bfcb9e57027da0fd8b25c930e266c616", "score": "0.5091655", "text": "public function getCourseSectionNames($courseid, $sectionid)\n {\n global $DB;\n \n /* get the actual course and section sequence numbers */\n $sequence = $DB->get_field_sql('SELECT sequence\n FROM {course_sections} \n WHERE \n visible = 1 and course = :courseid and section = :sectionid' , array('courseid' => $courseid, 'sectionid' => $sectionid));\n \n \n /* create an array from the string */\n $seqArr = explode(',', $sequence);\n /* get the formats of the modules -> F.e.: page, forum, quiz */\n foreach($seqArr as $s){\n $name[$s] = $DB->get_records_sql('Select m.name, cm.instance FROM course_modules as cm LEFT JOIN modules as m ON m.id = cm.module WHERE cm.visible = 1 and cm.id = :moduleid', array('moduleid' => $s)); \n }\n /* */\n foreach($name as $key => $value)\n {\n $seqID = $key;\n $value = (array)$value;\n \n foreach($value as $v){\n $v = (array)$v; \n $moduleName = $v[\"name\"];\n $instanceID = $v[\"instance\"];\n \n \n $str = $DB->get_field_sql('SELECT name\n FROM {'.$moduleName.'} \n WHERE \n id = :instanceid' , array('instanceid' => $instanceID));\n \n //$sequenceArr[] = '<a href=\"/&modulename='.$moduleName.'&instanceid='.$instanceID.'\" id=\"menu_course_section_value\">'.$str.'</a>';\n $sequenceArr[] = '<button type=\"button\" value=\"'.$moduleName.'/'.$seqID.'\" id=\"menu_course_section_value\" class=\"menu_course_section_value\" name=\"menu_course_section_value\">'.$str.'</button>';\n //modulename - instanceid\n }\n \n }\n \n return $sequenceArr; \n }", "title": "" }, { "docid": "c5f37e241bcb3b4188c0b4afeaa132e3", "score": "0.50862634", "text": "public function getOfferedTermCourses($id)\n\t{\n\n\t\t$dalCourseOffer = new DALCourseOffer;\n\t\t$result = $dalCourseOffer->get();\n\n\t\t$post = \"\";\n\t\twhile ($res = mysqli_fetch_assoc($result))\n\t\t {\n\n\t\t \t$post.= '<option value=\"'.$res['id'].'\">';\n\t\t\t$post.= $varsity;\n\t\t\t$post.= ' -> '.$degree;\n\t\t\t$post.= ' -> '.$session;\n\t\t\t$post.= ' -> '.$year.' - '.$term;\n\t\t \t$post.= '</option>';\n\n\t\t }\n\t\t return $post;\n\t}", "title": "" }, { "docid": "9740a327b3a6dedab655cd1e2b6b3252", "score": "0.5081472", "text": "public function get_class_details($parm = array()) {\n $classid = $parm[class_id];\n $courseid = $parm[course_id];\n $output = array();\n// $class_status=array(IN_PROG,YT_STRT); ### commented by sankar\n if ($classid && $courseid) {\n $this->db->select('cc.class_id, cc.class_name, cc.class_start_datetime, cc.class_end_datetime, \n cc.total_classroom_duration, cc.class_fees, cc.class_discount, cc.class_pymnt_enrol, cc.classroom_location');\n $this->db->from('course_class cc');\n// $this->db->where_in('cc.class_status', $class_status); ### commented by sankar\n $this->db->where('cc.class_id', $classid);\n $this->db->where('cc.course_id', $courseid);\n $this->db->where('cc.tenant_id', TENANT_ID);\n $res = $this->db->get()->result_array();\n $output['class'] = $res[0];\n $course_det = $this->get_course_name($courseid);\n $output['course'] = array('name' => $course_det[0]['crse_name'],\n 'id' => $courseid,\n 'isgst' => $this->get_course_gst($courseid),\n );\n $output['refrals'] = $this->get_referrals();\n $output['gst'] = $this->get_gst_rate();\n $output['tanant'] = $this->get_tanant();\n \n }\n \n\n return $output;\n }", "title": "" }, { "docid": "f11b6806754417bb7af5865b9e4dd168", "score": "0.50785416", "text": "function getAllCoursesByInstructorID($instructor_id){\n checkConnectivity();\n\n $list= array();\n $query =sprintf(\"select * from course where instructor_id = %s order by year DESC\",$instructor_id);\n $result =mysqli_query($GLOBALS['connection_link'],$query);\n while($row = mysqli_fetch_assoc($result)){\n $list[]=$row;\n }\n return $list;\n }", "title": "" }, { "docid": "b5236cc545d517630c7a109dafc0d0c7", "score": "0.50762093", "text": "function mod_bongo_create_course_module_object($ltitypeid, $courseid, $sectionid, $ltimoduleid) {\n // Module test values.\n $moduleinfo = new stdClass();\n\n // Always mandatory generic values to any module.\n $moduleinfo->name = get_string('bongoactivity', 'mod_bongo');;\n $moduleinfo->showdescription = 0;\n $moduleinfo->showtitlelaunch = 1;\n $moduleinfo->typeid = $ltitypeid;\n $moduleinfo->urlmatchedtypeid = $ltitypeid;\n $moduleinfo->launchcontainer = 1;\n $moduleinfo->instructorchoicesendname = 1;\n $moduleinfo->instructorchoicesendemailaddr = 1;\n $moduleinfo->instructorchoiceacceptgrades = 1;\n $moduleinfo->grade = 100;\n $moduleinfo->visible = true;\n $moduleinfo->visibleoncoursepage = true;\n $moduleinfo->course = $courseid;\n $moduleinfo->section = $sectionid; // This is the section number in the course. Not the section id in the database.\n $moduleinfo->module = $ltimoduleid;\n $moduleinfo->modulename = constants::MOD_BONGO_LTI;\n $moduleinfo->instance = $ltitypeid;\n $moduleinfo->add = constants::MOD_BONGO_LTI;\n $moduleinfo->update = 0;\n $moduleinfo->return = 0;\n\n return $moduleinfo;\n}", "title": "" }, { "docid": "993dac97d04781ee3c19383cfcee145d", "score": "0.50696665", "text": "public function getCourseList($dbCondition=array(), $limit){\n\n $joins = array( \n array(\n 'table' => 'college',\n 'alias' => 'C',\n 'match' => 'C.collegeId = CO.collegeId'\n ), \n array(\n 'table' => 'studylevel',\n 'alias' => 'SL',\n 'match' => 'SL.studyLevelId = CO.studyLevelId'\n ),\n array(\n 'table' => 'studyarea',\n 'alias' => 'SA',\n 'match' => 'SA.studyAreaId = CO.studyAreaId'\n ), \n array(\n 'table' => 'branches',\n 'alias' => 'B',\n 'match' => 'CO.branchId = B.branchId',\n 'type' => 'LEFT'\n ),\n array(\n 'table' => 'courseallrating',\n 'alias' => 'CR',\n 'match' => 'CO.courseId = CR.courseId',\n 'type' => 'LEFT'\n ),\n array(\n 'table' => 'modeofstudy',\n 'alias' => 'M',\n 'match' => 'CO.modeOfStudy = M.modeOfStudyId',\n 'type' => 'LEFT'\n ), \n array(\n 'table' => 'city',\n 'alias' => 'CI',\n 'match' => 'C.cityId=CI.cityId',\n 'type' => 'LEFT'\n ),\n array(\n 'table' => 'state',\n 'alias' => 'S',\n 'match' => 'C.stateId=S.stateId',\n 'type' => 'LEFT'\n ),\n array(\n 'table' => 'institution',\n 'alias' => 'I',\n 'match' => 'C.institutionType=I.institutionId',\n 'type' => 'LEFT'\n )\n );\n\n //basic filters\n $defaultCondition['COMMON'] = array(\n 'CO.status =' => 0,\n 'CO.isDeleted =' => 0,\n 'CO.isVisible =' => 1,\n 'C.isDeleted =' => 0,\n );\n\n //if group by flag appear means (for get studyarea count)\n if(isset($dbCondition['groupBy='])){\n $groupBy = array($dbCondition['groupBy=']); \n unset($dbCondition['groupBy=']);\n }\n\n //merge both filters\n $dbCondition = array_merge($defaultCondition['COMMON'],$dbCondition);\n \n $arguments = array(\n 'table' => \"course\",\n 'tableAlias' => \"CO\",\n 'returnData' => \"CO.courseId, C.collegeId, C.collegeName, C.establishedYear, C.logo, SL.studyLevelId, SL.name as studyLevel, CR.totalReviews, CR.avgRating, CO.studyAreaId, SA.name as studyAreaName, SA.seoURI, CO.seoURI as courseURI, CO.courseName, CO.branchId,B.branchName, SA.seoURI as studyAreaURI, CO.courseDuration, CO.intakesId, CO.localFeesAmount, CO.localFeesCurrency, M.modeOfStudy, CO.description, C.seoURI as collegeURI,CO.seoURI as courseURI, SL.seoURI as studyLevelURI, count(CO.courseId) as courseCount, CO.entryRequirementsData,S.name as state, CI.name as city, I.name AS institutionType,C.seoURI as collegeSeoURI,C.collegeCode\", \n\n 'dbCondition' => $dbCondition ? $dbCondition : '',\n 'limit' => $limit ? $limit : '',\n 'joins' => $joins,\n 'groupBy' => isset($groupBy) ? $groupBy : array('CO.courseId'),\n 'orderBy' => array('CO.courseId' => 'ASC'),\n 'returnType' => isset($dbCondition['CO.courseId=']) ? 1 : ''\n\n );\n \n $courseList = $this->getMasterList($arguments);\n return $courseList;\n \n }", "title": "" }, { "docid": "5aa16eb920007e56fca0de2454dc245a", "score": "0.5067447", "text": "public function getGrades($courseid, $coursemoduleid, $moduleinstance, $groupid){\r\n global $DB;\r\n\r\n if($groupid>0){\r\n list($groupswhere, $groupparams) = $DB->get_in_or_equal($groupid);\r\n $sql = \"select pa.id as attemptid,\r\n u.lastname,\r\n u.firstname,\r\n p.name,\r\n p.transcriber,\r\n pat.words as tw, \r\n pat.turns as tt,\r\n pat.avturn as atl,\r\n pat.longestturn as ltl,\r\n pat.targetwords as tv,\r\n pat.totaltargetwords as ttv,\r\n pat.questions as qa,\r\n par.accuracy,\r\n pa.pchat,\r\n pat.aiaccuracy as aia,\r\n pa.grade,\r\n pa.userid\r\n from {pchat} as p\r\n inner join {pchat_attempts} pa on p.id = pa.pchat\r\n inner join {course_modules} as cm on cm.course = p.course and cm.id = ?\r\n inner join {groups_members} gm ON pa.userid=gm.userid\r\n inner join {user} as u on pa.userid = u.id\r\n inner join {pchat_attemptstats} as pat on pat.attemptid = pa.id and pat.userid = u.id\r\n left outer join {pchat_ai_result} as par on par.attemptid = pa.id and par.courseid = p.course\r\n where p.course = ?\r\n AND pa.pchat = ?\r\n AND gm.groupid $groupswhere \r\n order by pa.id DESC\";\r\n\r\n $alldata = $DB->get_records_sql($sql, array_merge([$coursemoduleid, $courseid, $moduleinstance] , $groupparams));\r\n\r\n //not groups\r\n }else {\r\n $sql = \"select pa.id as attemptid,\r\n u.lastname,\r\n u.firstname,\r\n p.name,\r\n p.transcriber,\r\n pat.words as tw, \r\n pat.turns as tt,\r\n pat.avturn as atl,\r\n pat.longestturn as ltl,\r\n pat.targetwords as tv,\r\n pat.totaltargetwords as ttv,\r\n pat.questions as qa,\r\n par.accuracy,\r\n pa.pchat,\r\n pat.aiaccuracy as aia,\r\n pa.grade,\r\n pa.userid\r\n from {pchat} as p\r\n inner join {pchat_attempts} pa on p.id = pa.pchat\r\n inner join {course_modules} as cm on cm.course = p.course and cm.id = ?\r\n inner join {user} as u on pa.userid = u.id\r\n inner join {pchat_attemptstats} as pat on pat.attemptid = pa.id and pat.userid = u.id\r\n left outer join {pchat_ai_result} as par on par.attemptid = pa.id and par.courseid = p.course\r\n where p.course = ?\r\n AND pa.pchat = ?\r\n order by u.lastname, pa.id DESC\";\r\n $alldata = $DB->get_records_sql($sql, [$coursemoduleid, $courseid, $moduleinstance]);\r\n }\r\n\r\n //loop through data getting most recent attempt\r\n $results=array();\r\n if ($alldata) {\r\n $user_attempt_totals = array();\r\n foreach ($alldata as $thedata) {\r\n\r\n //we ony take the most recent attempt\r\n if (array_key_exists($thedata->userid, $user_attempt_totals)) {\r\n $user_attempt_totals[$thedata->userid] = $user_attempt_totals[$thedata->userid] + 1;\r\n continue;\r\n }\r\n $user_attempt_totals[$thedata->userid] = 1;\r\n\r\n $results[] = $thedata;\r\n }\r\n foreach ($results as $thedata) {\r\n $thedata->totalattempts = $user_attempt_totals[$thedata->userid];\r\n }\r\n }\r\n return $results;\r\n }", "title": "" }, { "docid": "a03bb356a2b7378c2f12f81a8008db3f", "score": "0.50671864", "text": "abstract function listDescendantCourses();", "title": "" }, { "docid": "256fa47aeeb7792c87fd2dccbe0da83a", "score": "0.50671434", "text": "public function get_class_courses_all($tenant_id) {\n\n if ($this->data['user']->role_id == 'TRAINER') {\n\n $this->db->select(\"c.course_id, c.crse_name, c.crse_type, c.class_type, \"\n\n . \"c.language, c.pre_requisite, c.certi_level, c.crse_manager\");\n\n $this->db->from(\"course c\");\n\n $this->db->where(\"c.tenant_id\", $tenant_id);\n\n $this->db->where(\"c.crse_status\", 'ACTIVE');\n\n $this->db->join('course_class ccl', 'ccl.course_id = c.course_id'\n\n . ' AND FIND_IN_SET(' . $this->data['user']->user_id . ',ccl.classroom_trainer)');\n\n $result = $this->db->get(); \n\n $courses = $result->result();\n\n foreach ($courses as $item) {\n\n $tenant_courses[$item->course_id] = $item->crse_name;\n\n }\n\n }else{\n\n $this->db->select(\"c.course_id, c.crse_name, c.crse_type, c.class_type, c.language, c.pre_requisite, c.certi_level, c.crse_manager\");\n\n $this->db->from('course_class cl');\n\n $this->db->join(\"course c\", \"c.course_id = cl.course_id\");\n\n $this->db->where(\"cl.tenant_id\", $tenant_id);\n\n $cur_page = $this->uri->segment(2);\n\n $filter_arr = array('attendance','mark_attendance');\n\n if(!in_array($cur_page, $filter_arr)){\n\n $this->db->where('DATE(cl.class_start_datetime) <=', date('Y-m-d'));\n\n }\n\n $this->db->where('cl.class_status !=', 'INACTIV');\n\n $this->db->order_by(\"c.crse_name\");\n\n $this->db->group_by(\"c.course_id\");\n\n if ($this->data['user']->role_id == 'SLEXEC') {\n\n $this->traineelist_querychange();\n\n }\n\n $result = $this->db->get();\n\n $courses = $result->result();\n\n $tenant_courses = array();\n\n $current_page = $this->uri->segment(2);\n\n $filter_array = array('certificates','attendance','mark_attendance');\n\n if ($this->data['user']->role_id == 'CRSEMGR' && in_array($current_page, $filter_array)) {\n\n $logged_in_user_id = $this->data['user']->user_id;\n\n foreach ($courses as $item) {\n\n $crse_manager_arr = explode(',', $item->crse_manager);\n\n if (in_array($logged_in_user_id, $crse_manager_arr)) {\n\n $tenant_courses[$item->course_id] = $item->crse_name;\n\n }\n\n }\n\n } else { \n\n foreach ($courses as $item) {\n\n $tenant_courses[$item->course_id] = $item->crse_name;\n\n }\n\n }\n\n }\n\n return $tenant_courses;\n\n }", "title": "" }, { "docid": "09e816ce0a3d1e0c152eddd75bca4fb1", "score": "0.5063742", "text": "public function actionBranch($id) {\n /* ----- No of learners ----- */\n $query1 = \"SELECT a.`user_id` AS `learner_id`, b.`course_name` FROM `courses_assigned` AS a, `courses` AS b, `user` AS c, `branch_managers` AS d WHERE a.`user_id` = c.`id` AND c.`role_type` = 4 AND c.`status` = 10 AND a.`courses_assigned` = b.`id` AND b.`id` = '\" . $id . \"' AND a.`created_by` = d.`user_id` AND d.`user_id` = \" . Yii::$app->user->identity->id . \" AND a.`blocked_status` = 1\";\n $connection1 = Yii::$app->db;\n $command1 = $connection1->createCommand($query1);\n $result1 = $command1->queryAll();\n $no_of_learners = count($result1);\n\n $total_result = array(\"count_learners\" => $no_of_learners);\n\n $total_marks = 0;\n //Total marks for all learners\n $query2 = \"SELECT sum(ques.grade) as totalmarks FROM questions ques, sections sect, lessons lss, courses cour WHERE (ques.section_id=sect.id) AND (sect.lesson_id=lss.id) AND (lss.course_id=cour.id) AND (lss.course_id=\" . $id . \")\";\n $connection2 = Yii::$app->db;\n $command2 = $connection2->createCommand($query2);\n $result2 = $command2->queryAll();\n foreach ($result2 as $record) {\n $total_marks = $total_marks + $record['totalmarks'];\n }\n\n $total_scored = 0;\n //Loop through all the learners of the Branch\n foreach ($result1 as $record) {\n //Total marks scored by each learner for that course\n $query3 = \"SELECT sum(learn_s.score) individualscore FROM questions ques, sections sect, lessons lss, courses cour, learner_scoring learn_s WHERE (ques.section_id=sect.id) AND (sect.lesson_id=lss.id) AND (lss.course_id=cour.id) AND (lss.course_id=\" . $id . \") AND learn_s.question_id = ques.id and learn_s.learner_id =\" . $record['learner_id'];\n $connection3 = Yii::$app->db;\n $command3 = $connection3->createCommand($query3);\n $result3 = $command3->queryAll();\n foreach ($result3 as $record) {\n if ($record['individualscore'] != null) {\n $total_scored = $total_scored + $record['individualscore'];\n }\n }\n }\n\n\n if ($total_scored === 0) {\n\n $scoreindex = 0;\n } else {\n $scoreindex = ($total_scored / ($total_marks * $no_of_learners)) * 100;\n }\n $scoreindexarr = array(\"count_score\" => round($scoreindex));\n\n $final_result = [];\n $combined_arrays = [];\n array_push($final_result, $total_result);\n array_push($final_result, $scoreindexarr);\n\n foreach ($final_result as $key => $value) {\n if (is_array($value)) {\n $combined_arrays = array_merge($combined_arrays, $value);\n } else {\n $combined_arrays[$key] = $value;\n }\n }\n echo \\yii\\helpers\\Json::encode($combined_arrays);\n }", "title": "" }, { "docid": "90b496840a9bcf3204d6dd1cabcd4aeb", "score": "0.50628114", "text": "public function ShowCA_MENU()\n { \n $programs=$this->getAllSections();\n $courses=$this->getAllCourses();\n \n foreach($programs as $program)\n {\n if($program['page_type']=='CA' && $program['status']==1)\n {\n //DS: 15.09.2019: Include all course types\n include \"courseTypes.inc.php\";\n }\n\n }\n \n }", "title": "" }, { "docid": "de66e2845174f7682410fd9dd11ae268", "score": "0.50572985", "text": "private function get_courses($courses, $category_id) {\n\n global $DB;\n\n $courses = $DB->get_records('course', array('category' => $category_id));\n\n $sub_categories = $DB->get_records('course_categories', array('parent' => $category_id));\n\n foreach($sub_categories as $sub_category) {\n $courses = array_merge($courses, $this->get_courses($courses, $sub_category->id));\n }\n\n return $courses;\n }", "title": "" }, { "docid": "233d37b07b0017f7ba823ba10c7d7973", "score": "0.5055612", "text": "public function getCourse($id)\n {\n $this->Execute(\"SELECT `{$this->table}`.`course_id` , `{$this->table}`.`course_name` , `courses_categories`.`category_name` , `users`.`username`,`{$this->table}`.`course_description`, `{$this->table}`.`course_cover` FROM `{$this->table}` \n JOIN `courses_categories` ON `{$this->table}`.`course_category`= `courses_categories`.`category_id`\n JOIN `users` ON `{$this->table}`.`course_instructor`=`users`.`id`\n WHERE `{$this->table}`.`course_id` = $id \");\n return $this->GetRow();\n }", "title": "" }, { "docid": "6abd6ace306d22aeed2e90f01c7209b8", "score": "0.50545186", "text": "private function course()\n {\n $date = new DateBr();\n $course = new Course();\n $course = $course->courseAuth(0); \n $text = \"\";\n foreach($course as $item){\n $text .= empty($item->CourseType->description) ? '' : '<br><br><strong>'.$item->CourseType->description.'</strong><br>';\n $text .= empty($item->description) ? '' : ' '.$item->description;\n $text .= empty($item->institution) ? '' : ' - '.$item->institution;\n $text .= empty($item->start) ? '' : '<br> '.$date->convert($item->start);\n $text .= empty($item->end) ? '' : ' - '.$date->convert($item->end);\n $text .= empty($item->courseStatus->description) ? '' : ' - '.$item->courseStatus->description;\n }\n return $text;\n }", "title": "" }, { "docid": "7d4a65a8010f8eb706f37b6c292eaba8", "score": "0.5049653", "text": "public static function all_courses($all_courses){\n ?>\n <div id=\"side_courses\">\n <a href=\"api.php?action=add_course\"><button class=\"btn btn-success\">course +</button></a>\n <form name=\"courst_pik\" action=\"api.php\" method=\"POST\">\n <?php\n \n foreach($all_courses as $row){ \n ?> <button class=\"student_panel\" value=\"<?=$row->Id?>\" type=\"submit\" name=\"course_id\">\n <img class=\"small_img\" src=\"<?=$row->Image_path?>\">\n <span><?=$row->Name ?><br>\n Price: <?=$row->Price?></span>\n </button> <?php\n }\n \n ?>\n </form>\n </div>\n <?php }", "title": "" }, { "docid": "e72d1806f72bac6e6abd11dd53da9202", "score": "0.5044943", "text": "function GetJudeteForModule($module_id)\r\n{\r\n\tglobal $db;\r\n\t$query=\"SELECT distinct judet FROM cabinete WHERE category_id='\".$module_id.\"' AND status='1' order by judet ASC \";\r\n\t$db->query($query);\r\n\t$judete = array();\r\n\t$i=0;\r\n\twhile ($db->next_record())\r\n\t{\r\n\t\t$judete[$i]= $db->f('judet');\r\n\t\t$i++;\r\n\t}\r\n\treturn $judete;\r\n}", "title": "" }, { "docid": "76ad11fa083f8bc790c20f8cae5d5819", "score": "0.50438917", "text": "function get_assignment_details($id) {\n global $course_id;\n return Database::get()->querySingle(\"SELECT * FROM assignment WHERE course_id = ?d AND id = ?d\", $course_id, $id);\n}", "title": "" }, { "docid": "cc7dc7c3b95e43c34581e4832575ce03", "score": "0.50428694", "text": "function getMgsCegDescCate($idArr) {\n $result = array();\n $tmp = getCegBaseByIdArr($idArr);\n foreach ($tmp as $row) {\n $cegDescCate['cluster'] = $row['access_num'];\n $cegDescCate['description'] = $row['description'];\n $cegDescCate['category'] = deterCegBaseCate($row);\n array_push($result, $cegDescCate);\n }\n return $result;\n}", "title": "" }, { "docid": "0843f7450a1b3c55877520e1bb3e1a6d", "score": "0.50407374", "text": "function adh_get_edition_mes_courses($mypseudo){\n $mypseudo= sqli_escape($mypseudo);\n echo \"3232\";\n $query0 = \"SELECT idAdherent,nom, prenom WHERE pseudo ='$mypseudo'; \"; //nom prenom de logged in user\n $query1 = \"SELECT * \" ; //for nom,prenom, find les editions des courses aux quelles il a participe \n $query = \"SELECT * FROM Course NATURAL JOIN Edition WHERE \n GROUP BY C.idCourse;\";\n $res=traiterRequeteK($query);\n \n return Array2Table($res);\n\n}", "title": "" } ]
ac093d8259475b9889ec69c28d65b0fb
Register the service provider.
[ { "docid": "d9279da90d9187bb72b2ab85f949dbff", "score": "0.0", "text": "public function register()\n {\n parent::register();\n\n $this->registerPolicyAfterResolvingHandler();\n }", "title": "" } ]
[ { "docid": "6f496b17ae380315dc46c5eaa33f9641", "score": "0.7630685", "text": "public function register( ServiceProvider $provider );", "title": "" }, { "docid": "ea5c5920837f597f68c19d0963bacb1f", "score": "0.73735887", "text": "public function register()\n {\n // register providers\n }", "title": "" }, { "docid": "bf07a6ccbc1940e2be8abff91e94a2f6", "score": "0.71774215", "text": "public function register()\n {\n $this->registerServices();\n }", "title": "" }, { "docid": "44600508cffb5884be0d7e50b7ec91ee", "score": "0.71317965", "text": "public function register()\n {\n // Register services\n }", "title": "" }, { "docid": "6fe087d80ab0a7f2b4b09f6f4d74e10d", "score": "0.70364803", "text": "public function register()\n {\n $this->registerFactory();\n }", "title": "" }, { "docid": "c6cd32f9c1116dc508c2b4f4384734b5", "score": "0.692605", "text": "public function register()\n {\n $this->registerCommands();\n $this->registerServiceProviders();\n }", "title": "" }, { "docid": "78cf347dd35bde1ab8ebdba6c4626ac4", "score": "0.6922078", "text": "public function register()\n {\n //\n\n $this->registerProduct();\n $this->registerFacade();\n $this->registerBinding();\n }", "title": "" }, { "docid": "a6fa49f7bb43bd901a9605a1a586b16b", "score": "0.68906504", "text": "public function register()\n {\n // ...\n }", "title": "" }, { "docid": "c8999d1f1b6e82b16a745c0195e550fd", "score": "0.6878704", "text": "public function register()\n {\n $this->registerLaravelTmdb();\n }", "title": "" }, { "docid": "78e5ec0f6b204649211cb6f772c2a5e6", "score": "0.6874109", "text": "public function register()\n {\n //\n $this->app->singleton('dataTableScript',function($app){\n\n return new DataTableScriptService();\n\n });\n }", "title": "" }, { "docid": "1b2e5072ce30a18a5f6802a2ad17a8c9", "score": "0.68733615", "text": "public function register()\n {\n $this->registerHelpers();\n\n $this->registerServices();\n }", "title": "" }, { "docid": "bcad270834b358033d342425577247b8", "score": "0.68624485", "text": "public function register()\n {\n $this->registerContracts();\n }", "title": "" }, { "docid": "ad1362b8b7b1d1f85d0547d1cfccba32", "score": "0.6856885", "text": "public function register()\n {\n $this->loadProvidersDependency();\n $this->registerAliases();\n }", "title": "" }, { "docid": "cc62c59d2fd05d85cc2cd2cf07302acf", "score": "0.68519855", "text": "public function register()\n {\n parent::register();\n\n $this->app->register(\\MikesLumenRepository\\Providers\\ValidatorServiceProvider::class);\n }", "title": "" }, { "docid": "c78367f75ccd9718705849837e2130f5", "score": "0.68486387", "text": "public function register() {\n \n }", "title": "" }, { "docid": "0a89d5bcf03c7b16b4bbc0324deaa126", "score": "0.68458885", "text": "public function register()\n {\n $this->registerMessenger();\n $this->registerView();\n }", "title": "" }, { "docid": "70f5dc40294e4151c234a2b148148e49", "score": "0.68445903", "text": "public function register() {\n\n }", "title": "" }, { "docid": "16f8ae35454c42bc26488d3340e289cf", "score": "0.68319166", "text": "public function register()\n {\n\n }", "title": "" }, { "docid": "b1b96989f50da2109252c899ee98f169", "score": "0.6829393", "text": "public function register()\n{\n\t$this->setConfig();\n $this->app->singleton('orient', function($app)\n\t{\n\t\treturn new OrientClient;\n\t});\n}", "title": "" }, { "docid": "19dc464bbcbf7b12ae70537cfde7c917", "score": "0.681956", "text": "public function register() {\n //\n }", "title": "" }, { "docid": "19dc464bbcbf7b12ae70537cfde7c917", "score": "0.681956", "text": "public function register() {\n //\n }", "title": "" }, { "docid": "19dc464bbcbf7b12ae70537cfde7c917", "score": "0.681956", "text": "public function register() {\n //\n }", "title": "" }, { "docid": "19dc464bbcbf7b12ae70537cfde7c917", "score": "0.681956", "text": "public function register() {\n //\n }", "title": "" }, { "docid": "19dc464bbcbf7b12ae70537cfde7c917", "score": "0.681956", "text": "public function register() {\n //\n }", "title": "" }, { "docid": "19dc464bbcbf7b12ae70537cfde7c917", "score": "0.681956", "text": "public function register() {\n //\n }", "title": "" }, { "docid": "19dc464bbcbf7b12ae70537cfde7c917", "score": "0.681956", "text": "public function register() {\n //\n }", "title": "" }, { "docid": "19dc464bbcbf7b12ae70537cfde7c917", "score": "0.681956", "text": "public function register() {\n //\n }", "title": "" }, { "docid": "19dc464bbcbf7b12ae70537cfde7c917", "score": "0.681956", "text": "public function register() {\n //\n }", "title": "" }, { "docid": "19dc464bbcbf7b12ae70537cfde7c917", "score": "0.681956", "text": "public function register() {\n //\n }", "title": "" }, { "docid": "19dc464bbcbf7b12ae70537cfde7c917", "score": "0.681956", "text": "public function register() {\n //\n }", "title": "" }, { "docid": "19dc464bbcbf7b12ae70537cfde7c917", "score": "0.681956", "text": "public function register() {\n //\n }", "title": "" }, { "docid": "19dc464bbcbf7b12ae70537cfde7c917", "score": "0.681956", "text": "public function register() {\n //\n }", "title": "" }, { "docid": "a1f254d60844b74afc407797c9e2a6d1", "score": "0.6813785", "text": "public function register()\n {\n $this->registerSingleton();\n }", "title": "" }, { "docid": "d1a624568619da8785c2198c7dbd0980", "score": "0.6812121", "text": "public function register()\n {\n $repoProvider = new RepoServiceProvider($this->app);\n $repoProvider->register();\n\n $formServiceProvider = new FormServiceProvider($this->app);\n $formServiceProvider->register();\n }", "title": "" }, { "docid": "506f632fb873978163aa18ba2df64938", "score": "0.68117565", "text": "public function register()\n {\n $this->initService();\n }", "title": "" }, { "docid": "fe491b5ed0e024a8519c29b8012fb31f", "score": "0.68075466", "text": "public function register()\n\t{\n\t\t$this->registerConfig();\n\t}", "title": "" }, { "docid": "6fb2602de9d711f37da7d15fa815640e", "score": "0.68043405", "text": "public function register()\n {\n $this->app->register(WagerProvider::class);\n $this->app->register(OrderProvider::class);\n }", "title": "" }, { "docid": "f0a38251d5a9bedae324c6bbfc6e8b0a", "score": "0.6802659", "text": "public function register()\n {\n //\n $this->app->singleton(Facebook::class, function ($app) {\n return new Facebook(config('facebook.config'));\n });\n\n $this->app->singleton(ScrapedProducts::class);\n\n \n }", "title": "" }, { "docid": "b8b3a53edff54139e76aabdf02752456", "score": "0.67963666", "text": "public function register()\n {\n $this->app['oauthclient'] = $this->app->share(function($app){\n return new OAuthClient();\n });\n }", "title": "" }, { "docid": "64d44fe1d4d46c909a93ac72f5ef5712", "score": "0.679182", "text": "public function register()\n {\n $this->mergeConfigs();\n // $this->app->singleton(PayuClientInterface::class, $this->getCreatePayuClientClosure());\n }", "title": "" }, { "docid": "c7b7ea75f91ae43bbe1572f56dbd0502", "score": "0.67874634", "text": "public function register()\n {\n \n }", "title": "" }, { "docid": "c7b7ea75f91ae43bbe1572f56dbd0502", "score": "0.67874634", "text": "public function register()\n {\n \n }", "title": "" }, { "docid": "f432b92c843501f94147e37017e550bd", "score": "0.67873853", "text": "public function register()\n {\n $this->app->register(\\Spatie\\Permission\\PermissionServiceProvider::class);\n }", "title": "" }, { "docid": "83f7b051be461fe065e608bdb0daf22a", "score": "0.67842853", "text": "public function register()\n {\n\n // Bind pdf maker\n $this->app->singleton('pdf', function(){\n return new DOMPDF;\n });\n\n // Validator instance for the app-wide validation\n $this->app->bind('aforance.validator', function(){\n return new Validator;\n });\n\n \n }", "title": "" }, { "docid": "634642c800d7fa3783deb4b297af5373", "score": "0.6776094", "text": "public function register()\n {\n $this->app->singleton(QueryService::class, function($app) {\n return new QueryService($app->request, $app->config);\n });\n }", "title": "" }, { "docid": "f8acb99e212f1f75b7e60843d794046f", "score": "0.6774611", "text": "public function register()\n {\n $this->registerAccess();\n $this->registerBindings();\n $this->registerFacade();\n }", "title": "" }, { "docid": "40965b47e2566309756d39016132fa3f", "score": "0.6770336", "text": "public function register()\n {\n $this->registerHttpClientFactory();\n $this->registerAuthFactory();\n $this->registerWhmcsFactroy();\n $this->registerManager();\n $this->registerBindings();\n }", "title": "" }, { "docid": "cbbb6e652da70f7e02cba674b180e973", "score": "0.6760802", "text": "public function register()\n\t{\n\t\t$this->shareWithApp();\n\t\t$this->loadConfig();\n\t\t$this->registerViews();\n\t\t$this->registerAliases();\n\t}", "title": "" }, { "docid": "c27e3c40c9ac24566f54da32b697af31", "score": "0.6757141", "text": "public function register() {\n\n }", "title": "" }, { "docid": "c27e3c40c9ac24566f54da32b697af31", "score": "0.6757141", "text": "public function register() {\n\n }", "title": "" }, { "docid": "c27e3c40c9ac24566f54da32b697af31", "score": "0.6757141", "text": "public function register() {\n\n }", "title": "" }, { "docid": "17d7285c7b12100dd23ee99537078655", "score": "0.67547435", "text": "public function register()\n {\n $this->mergeConfigFrom(__DIR__ . '/../config/matomotracker.php', 'matomotracker');\n\n // Register the service the package provides.\n $this->app->singleton('laravelmatomotracker', function ($app) {\n return new LaravelMatomoTracker(\n $this->request,\n Config::get('matomotracker.idSite'),\n Config::get('matomotracker.url'),\n Config::get('matomotracker.tokenAuth')\n );\n });\n }", "title": "" }, { "docid": "29aba258cdd2fcbf1eae66164daf235d", "score": "0.6753871", "text": "public function register()\n {\n $this->registerBrute();\n $this->registerProviders();\n }", "title": "" }, { "docid": "23e4b01cea2829e352512486c80ced30", "score": "0.6753231", "text": "public function register()\n {\n $this->setUpProviders();\n\n // Register facade\n $this->app->singleton('za-sms', function () {\n return $this->app->make(SMSProviderContract::class);\n });\n }", "title": "" }, { "docid": "44e2af131f4429072e6356d53d8aaa2c", "score": "0.67504245", "text": "public function register() {\n }", "title": "" }, { "docid": "2eeb3a6f6fe8f34dddf9635fb39162a6", "score": "0.6750175", "text": "public function register()\n {\n $this->setupConfiguration();\n\n $this->app->bind('Tmdb\\Laravel\\Adapters\\EventDispatcherAdapter', 'Tmdb\\Laravel\\Adapters\\EventDispatcherLaravel');\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" }, { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.6749705", "text": "public function register()\n {\n //\n }", "title": "" } ]
aa47b49d18c4bb7bdad4eed239d43120
Return the elapsed time between the start() and end() calls, if end() was not called, return the elapsed time since the start() call and now.
[ { "docid": "2b78f7b9978845cdba266406d5e7cdc1", "score": "0.7447363", "text": "public function elapsed(): float\n {\n return ($this->end === null)\n ? microtime(true) - $this->start\n : $this->end - $this->start\n ;\n }", "title": "" } ]
[ { "docid": "16bb10e14e4623b25a8ea9e3be06fcc1", "score": "0.7909271", "text": "function GetElapsedTime(){\n return $this->end - $this->start;\n }", "title": "" }, { "docid": "1d2fbb113a65f56d956d1b5c557abfc4", "score": "0.77569515", "text": "function timeElapsed($start = 'Start', $end = 'Stop') {\n if ($end == 'Stop' && !isset($this->markers['Stop'])) {\n $this->markers['Stop'] = $this->_getMicrotime();\n }\n $end = isset($this->markers[$end]) ? $this->markers[$end] : 0;\n $start = isset($this->markers[$start]) ? $this->markers[$start] : 0;\n\n if (extension_loaded('bcmath')) {\n return bcsub($end, $start, 6);\n } else {\n return $end - $start;\n }\n }", "title": "" }, { "docid": "2ea81630524adb2bc9bda0cf525f6ebb", "score": "0.7334895", "text": "public function getElapsedTime();", "title": "" }, { "docid": "39197b8d44a6f302fc4b2c3bf44ee09f", "score": "0.7218603", "text": "public function getElapsedTime()\n {\n return 0 === $this->elapsedTime ? microtime(true) - $this->startTime : $this->elapsedTime;\n }", "title": "" }, { "docid": "7c6b4047b1c9843dd4f3f576b895bfe0", "score": "0.71942174", "text": "function elapsed()\r\n {\r\n \tlist($usec, $sec) = explode(\" \", $this->StartTime);\r\n $Start = (float)$usec + (float)$sec;\r\n \tlist($usec, $sec) = explode(\" \", $this->StopTime);\r\n $Stop = (float)$usec + (float)$sec;\r\n\r\n $elapsed = $Stop - $Start;\r\n $elapsed = number_format( ( $elapsed ), 2 );\r\n return $elapsed;\r\n }", "title": "" }, { "docid": "85d03e950dcf57a55f3d6cb74a868ed9", "score": "0.7182893", "text": "public function getElapsedTime()\n\t{\n\t\treturn time() - $this->time;\n\t}", "title": "" }, { "docid": "98775bbbddbfbed12aa0833b56827cf5", "score": "0.70209104", "text": "public static function elapsedTime($end, $start)\n {\n return sprintf(\"%.2f sec.\", abs($end - $start));\n }", "title": "" }, { "docid": "9ff232ae12676281b49e0da82acda123", "score": "0.69214547", "text": "function elapsed()\n\t{\n\n\t\t$time_1 = explode( \" \", $this->StartTime );\n\t\tif ($this->StopTime)\n\t\t\t$time_2 = explode( \" \", $this->StopTime );\n\t\telse\n\t\t\t$time_2 = explode( \" \", microtime() );\n\n\t\tpreg_match( \"/0\\.([0-9]+)/\", \"\" . $time_1[0], $t1 );\n\t\tpreg_match( \"/0\\.([0-9]+)/\", \"\" . $time_2[0], $t2 );\n\n\t\t$dsec = intval($time_2[1]) - intval($time_1[1]);\n\t\t$t2 = doubleval(\"$dsec.\" . $t2[1]);\n\t\t$t1 = doubleval(\"0.\" . $t1[1]);\n\n\t\t$result = floatval($t2 - $t1);\n\t\tif ($result < 0.0) {\n\t\t\techo p('Error! Debug time was less than 0 seconds:') . ul(array(\n\t\t\t\t\"Dsec: $dsec\",\n\t\t\t\t\"Start: $this->StartTime, $t1\",\n\t\t\t\t\"Stop: $this->StopTime, $t2\"\n\t\t\t));\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "34e57b6deef66ab72b8fa7a7335b8ddf", "score": "0.69038194", "text": "function elapsed_time($start, $end=null) {\t\n\treturn unit_decomposer(($end ? (is_numeric($end) ? $end : strtotime($end)) : time()) - (is_numeric($start) ? $ini : strtotime($start)), array(\n\t\t86400 => array('%s day',\t'%s days'),\n\t\t 3600 => array('%s hour',\t'%s hours'),\n\t\t 60 => array('%s minute',\t'%s minutes'),\n\t));\n}", "title": "" }, { "docid": "36d89e4bfe78ee657587f28171b51be6", "score": "0.6887102", "text": "public function getElapsed()\n {\n return $this->elapsed;\n }", "title": "" }, { "docid": "91ecb703b40e2e644093ed4cfdf3ff0e", "score": "0.68345785", "text": "public function getTotalElapsed(): float;", "title": "" }, { "docid": "63d6d304185edf3d79a3bade27387c1c", "score": "0.677156", "text": "public function getElapsedTime($start)\n {\n return parent::getElapsedTime($start);\n }", "title": "" }, { "docid": "b3291a2a7660c9baf0444d7ab769b973", "score": "0.673325", "text": "protected function getElapsedTime($start)\n {\n return round((microtime(true) - $start) * 1000, 2);\n }", "title": "" }, { "docid": "b3291a2a7660c9baf0444d7ab769b973", "score": "0.673325", "text": "protected function getElapsedTime($start)\n {\n return round((microtime(true) - $start) * 1000, 2);\n }", "title": "" }, { "docid": "a6db9483916eec9c81fe013457777ddd", "score": "0.6706555", "text": "public function getElapsedTime()\n {\n return $this->elapsedTime;\n }", "title": "" }, { "docid": "f0f845968b4704bb941f69fbc06fb9b9", "score": "0.6677925", "text": "public function getElapsedSecs()\n {\n if (null === $this->_endedMicrotime) {\n return false;\n }\n\n return $this->_endedMicrotime - $this->_startedMicrotime;\n }", "title": "" }, { "docid": "1d505f3baa771fc9ec4041b6d920f378", "score": "0.6659228", "text": "public static function get_elapsed_time()\n {\n return microtime( true ) - $_SESSION['time']['script_start_time'];\n }", "title": "" }, { "docid": "43ee3b435e24b94ae2474a00f307b4f0", "score": "0.66131675", "text": "public function getElapsedTime()\n {\n return $this->get(self::ELAPSEDTIME);\n }", "title": "" }, { "docid": "43ee3b435e24b94ae2474a00f307b4f0", "score": "0.66131675", "text": "public function getElapsedTime()\n {\n return $this->get(self::ELAPSEDTIME);\n }", "title": "" }, { "docid": "f52b843663dc4502eaf1c8e88d91162e", "score": "0.6584636", "text": "public function getTimeUsage()\n\t{\n\t\t$time = 0;\n\t\tfor($i = 0, $j = count($this->time_start); $i < $j; ++$i)\n\t\t{\n\t\t\tif(isset($this->time_end[$i]))\n\t\t\t{\n\t\t\t\t$tmp_start = explode(' ', $this->time_start[$i]);\n\t\t\t\t$tmp_stop = explode(' ', $this->time_end[$i]);\n\t\t\t\t$time += ($tmp_stop[0] + $tmp_stop[1]) - ($tmp_start[0] + $tmp_start[1]);\n\t\t\t}\n\t\t}\n\t\treturn $time;\n\t}", "title": "" }, { "docid": "e9204490d194b277b380da5463159e54", "score": "0.6556416", "text": "function elapsed_time() {\n return round( microtime(TRUE) - TI_TIMER_START, 5);\n}", "title": "" }, { "docid": "85e403a96a23cc4492ce4ebd993e4b26", "score": "0.6502942", "text": "public function end()\n\t{\n\t\tif (!isset($this->start_time)) {\n\t\t\t$this->start_time = $_SERVER['REQUEST_TIME_FLOAT'];\n\t\t}\n\t\treturn (microtime(true) - $this->start_time);\n\t}", "title": "" }, { "docid": "ccc1b5d964c0ca13ba4ba028fc331cb1", "score": "0.6499419", "text": "function getDiffTime() {\n return ($this->getmicrotime() - $this->timeStart);\n }", "title": "" }, { "docid": "23540f366adefbbab179dc3c6c1b8b03", "score": "0.64792055", "text": "public function getElapsedTime()\n {\n return microtime(true) - YII_BEGIN_TIME;\n }", "title": "" }, { "docid": "aa1bf75fd73e3ba988ac6ac60f230322", "score": "0.64536065", "text": "public function getElapsedSecs() {\n\t\treturn $this->totalTime;\n\t}", "title": "" }, { "docid": "8d684c845c8b79d40f7293e2ac3636bb", "score": "0.64514756", "text": "public function getTime() {\n\t\t$current = microtime(true);\n\t\t$this->time = $current - $this->started;\n\t\treturn $this->time;\n\t}", "title": "" }, { "docid": "7bbe9185f972cd229c7260f6d19ecb14", "score": "0.6422086", "text": "public function exec_time(){\n return microtime(true) - $this->start_time;\n }", "title": "" }, { "docid": "b93b59d140c6522386755b5fae8ee322", "score": "0.63868827", "text": "public function getElapsedTime(){\n\n switch($this->getState()){\n\n case AssessmentState::STARTED:\n if($this->locked()){\n return intval($this->getValue($this->timeDiffQuery('asm_last_request_time')));\n }\n else{\n $r=intval($this->getValue($this->timeDiffQuery('NOW()')));\n\n //define params\n $dcpExt=new DisciplineExt($this->connection, $this->getDiscipline()->getId());\n $cm_conf=$dcpExt->getControlMechanismConfByPolicyId($this->getEvent()->getPolicy()->getId());\n $params=$cm_conf->getParams();\n\n if($params->getTimeLimitMethod()==TimeLimitMethod::UNLIMITED){\n return $r;\n }\n elseif($params->getTimeLimitMethod()==TimeLimitMethod::OVERALL_LIMIT){\n if($params->getTotalTimeLimit()>0 && $r>$params->getTotalTimeLimit()){\n return $params->getTotalTimeLimit();\n }\n return $r;\n }\n }\n break;\n\n case AssessmentState::PAUSED:\n return intval($this->getValue($this->timeDiffQuery('asm_last_request_time')));\n break;\n\n case AssessmentState::FINISHED:\n return intval($this->getValue($this->timeDiffQuery('asm_end_time')));\n break;\n\n }\n return 0;\n }", "title": "" }, { "docid": "03232cd76722d4dda6cdd819bf41b9fa", "score": "0.63582903", "text": "public function getTime(){\n\t\t$end_time = explode(' ', microtime());\n\n\t\t$diff_time = $end_time[0] - $this->start_time[0];\n\n\t\treturn round($diff_time, 5);\n\t}", "title": "" }, { "docid": "5f8d3e4cdc43bdcf12b70ad4c3a0f62c", "score": "0.6339518", "text": "function Duration()\n\t\t{\n\t\t\tif ($this->end)\n\t\t\t{\n\t\t\t\treturn $this->end->time->UnixTime() - $this->time->UnixTime();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "26ee9587e3a502dd07489a6a9e179613", "score": "0.6327919", "text": "public function getTime() {\n if ($this->isGameStart()) {\n return time() - $this->timeStart;\n } elseif ($this->isGameFinish()) {\n return $this->timeFinish - $this->timeStart;\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "b6be661b099fd1eed99357a242f23071", "score": "0.6313243", "text": "public function get_endtime() {\n return $this->data->starttime + $this->data->duration * MINSECS;\n }", "title": "" }, { "docid": "98ad1a45218c9d4071a168d6242bd7bc", "score": "0.62861896", "text": "public static function elapsed(): float\n {\n if (empty(self::$started)) {\n throw TimerException::notStarted();\n }\n\n return (self::$stopped ?? microtime(true)) - self::$started;\n }", "title": "" }, { "docid": "34c7c8c11e763af0f0608c36fcae5d85", "score": "0.6278204", "text": "function get_ms() {\n if ($this->runtime_ms >= 0) //end_watch() called yet?\n return $this->runtime_ms;\n else //timing still running\n return intval((microtime(true) - $this->start_tm) * 1000);\n }", "title": "" }, { "docid": "232996668bb16e5efcda3d3542c29f2f", "score": "0.6249535", "text": "public function EventTime()\n {\n $start = $this->start_date;\n $end = $this->end_date;\n $newtime= $start-$end;\n\n return $newtime;\n }", "title": "" }, { "docid": "01fc9d24942435e245bacd82ceb64f19", "score": "0.6224761", "text": "protected static function getElapsedTime($start,$stop){\n\n $time_array5 = explode(':', $start);\n $hours5 = (int)$time_array5[0];\n $minutes5 = (int)$time_array5[1];\n $seconds5 = (int)$time_array5[2];\n\n $total_secondsTCstart5 = ($hours5 * 3600) + ($minutes5 * 60) + $seconds5;\n\n $time_array25 = explode(':', $stop);\n $hours25 = (int)$time_array25[0];\n $minutes25 = (int)$time_array25[1];\n $seconds25 = (int)$time_array25[2];\n\n $total_secondsTCstop5 = ($hours25 * 3600) + ($minutes25 * 60) + $seconds25;\n\n if (($total_secondsTCstop5) - ($total_secondsTCstart5) < 0) {\n\n $total_secondsTCstop5 = ($total_secondsTCstop5 + 86400);\n\n //----------\n\n $totaltime = $total_secondsTCstop5 - $total_secondsTCstart5;\n return $totaltime;\n\n //echo $totaltime.'<br>';\n\n } else {\n $time_array = explode(':', $start);\n $hours = (int)$time_array[0];\n $minutes = (int)$time_array[1];\n $seconds = (int)$time_array[2];\n\n $total_secondsTCstart = ($hours * 3600) + ($minutes * 60) + $seconds;\n\n $time_array2 = explode(':', $stop);\n $hours2 = (int)$time_array2[0];\n $minutes2 = (int)$time_array2[1];\n $seconds2 = (int)$time_array2[2];\n\n $total_secondsTCstop = ($hours2 * 3600) + ($minutes2 * 60) + $seconds2;\n\n $totaltime = $total_secondsTCstop - $total_secondsTCstart;\n\n return $totaltime;\n }\n }", "title": "" }, { "docid": "1204d04ec6acee7ed50471cf7d5afeac", "score": "0.62231755", "text": "public function getTotalElapsed( $timer = '' );", "title": "" }, { "docid": "6101f9a44c556a4215694cebadeb4a0d", "score": "0.6220152", "text": "public function spentExecutionTime();", "title": "" }, { "docid": "e9a88e2f929bf22a4c604cf237694f36", "score": "0.61972266", "text": "public static function timer($reset = true) {\n $elapsed = 0;\n if(self::$started_at) $elapsed = microtime(true) - self::$started_at; \n if($reset) self::$started_at = microtime(true);\n return $elapsed;\n }", "title": "" }, { "docid": "732c4ebfe2c0684b69379bc86be87420", "score": "0.6183127", "text": "public static function timeDiff($start)\n {\n return time() - $start;\n }", "title": "" }, { "docid": "f00e9904a34a923e2fe547eea1c52b31", "score": "0.6153353", "text": "public function getInvocationTiming()\n {\n return $this->invocation_timing;\n }", "title": "" }, { "docid": "456444ce6cbedebf280f3f7544cb4879", "score": "0.6150988", "text": "public function getElapsed( $timer = '' );", "title": "" }, { "docid": "3121db397e064c0abeaf8c5bc1d26c52", "score": "0.60145044", "text": "function microtime_diff( $start, $end=NULL ) { \n if( !$end ) { \n $end= microtime(); \n } \n list($start_usec, $start_sec) = explode(\" \", $start); \n list($end_usec, $end_sec) = explode(\" \", $end); \n $diff_sec= intval($end_sec) - intval($start_sec); \n $diff_usec= floatval($end_usec) - floatval($start_usec); \n return floatval( $diff_sec ) + $diff_usec; \n}", "title": "" }, { "docid": "8eae7eee57eadc4e4058d4aa64f57e7f", "score": "0.6002454", "text": "public function getUseElapsedDuration()\n {\n return $this->use_elapsed_duration;\n }", "title": "" }, { "docid": "4b195e7e63a09b4c44e28d8dd0d17af2", "score": "0.59604406", "text": "public function getTimeFinish() {\n\n\t\treturn $this->timeFinish;\n\t}", "title": "" }, { "docid": "bbe9f0a24af6e52bd9fc588c90a318b3", "score": "0.59584177", "text": "function diffTime($start, $end){\n\t\t\t$start_date = new DateTime('2012-09-11 '.$start);\n\t\t\t$since_start = $start_date->diff(new DateTime('2012-09-11 '.$end));\n\t\t\treturn $since_start->h.':'.$since_start->i.':00';\n\t}", "title": "" }, { "docid": "e882ff16a5149acde49c3457ad2e28ad", "score": "0.59277743", "text": "public function getCallDuration()\n {\n if ($this->start_at == null || $this->end_at == null) {\n return 0;\n }\n $start = Carbon::parse($this->start_at);\n $end = Carbon::parse($this->end_at);\n return $end->diffInMinutes($start);\n }", "title": "" }, { "docid": "45d55fd2bde7cd8db5999bcc32586617", "score": "0.59153944", "text": "public function getTotalTimeTaken()\n {\n return $this->totalTimeTaken;\n }", "title": "" }, { "docid": "ce1b7614be8375799b51ee50e0c25116", "score": "0.5911944", "text": "public function getTotalTime()\n {\n \treturn $this->totalTime;\n }", "title": "" }, { "docid": "badf2d7215de1d2a08f9da1e43a620c0", "score": "0.58950526", "text": "function timediff($start, $end = null)\n{\n if (is_null($end)) {\n $end = time();\n }\n $diff = $end - $start;\n if ($diff < 60) {\n return $diff . \" second\" . plural($diff);\n }\n $diff = round($diff/60);\n if ($diff < 60) {\n return $diff . \" minute\" . plural($diff);\n }\n $diff = round($diff/60);\n if ($diff < 24) {\n return $diff . \" hour\" . plural($diff);\n }\n $diff = round($diff/24);\n\n return $diff . \" day\" . plural($diff);\n}", "title": "" }, { "docid": "d7729cf0c24693017a1fff4f7427cef6", "score": "0.58903486", "text": "public function getElapsed( bool $total = false ): float;", "title": "" }, { "docid": "547e56a70746bbfff2083a86edbab3ad", "score": "0.5868215", "text": "public function getEnd(): Time\n {\n return $this->end;\n }", "title": "" }, { "docid": "2d48ec89d9ebab35da100606c7a56614", "score": "0.5846046", "text": "private function calculateDiff()\n {\n if (null === $this->date_end) {\n throw new Exception(\"Can't calculate duration without the date_end\");\n }\n return ($this->date_end->getTimestamp() - $this->date_start->getTimestamp());\n }", "title": "" }, { "docid": "f94ccf6b22fab8771b99fb2cec9fa412", "score": "0.5830434", "text": "public function getDuration()\n {\n return $this->begin->diff($this->end);\n }", "title": "" }, { "docid": "0d5e2bb7adffc40ccd4276e527a4a6f0", "score": "0.5818781", "text": "public static function startTime()\n {\n $start = round(microtime(true) * 1000);\n echo $start . \"\\n\";\n return $start;\n }", "title": "" }, { "docid": "ef7d959e1befe7128bb04159567320c6", "score": "0.5806249", "text": "public static function getExecutionTime() : float\n {\n return microtime(true) - START_ALEPH_TS;\n }", "title": "" }, { "docid": "bf6f3e600a8fefd958cc4759cf63be37", "score": "0.5805233", "text": "public function getTotalTime()\n {\n return $this->total_time;\n }", "title": "" }, { "docid": "86102728eb62b266f592ac67ea583791", "score": "0.57962924", "text": "function endTimer(){\n\t\t$this->end = microtime(true);\n\t\treturn $this->end - $this->start;\n\t}", "title": "" }, { "docid": "21413ee6310c0d17e2f8171c60c0b821", "score": "0.5789119", "text": "function timeRun ($startTime)\r\n\t{\r\n\t\tif ($startTime == 0) {\r\n\t\t\treturn microtime(true);\r\n\t\t} else {\r\n\t\t\treturn microtime(true) - $startTime;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1b71741e4dc5d69c3b5e6f007ff3d86f", "score": "0.5777044", "text": "public static function getElapsedHumanReadableTime($start, $stop){\n return static::secToString(static::getElapsedTime($start,$stop));\n }", "title": "" }, { "docid": "d6ccf2d74b1cd7a2fc00c6c156d1a8a4", "score": "0.57670695", "text": "public function runtime() {\n switch($this->status) {\n case Mediator::RUNNING:\n return microtime(true) - $this->time[Mediator::RUNNING];\n\n case Mediator::RETURNED:\n return $this->time[Mediator::RETURNED] - $this->time[Mediator::RUNNING];\n\n default:\n return 0;\n }\n }", "title": "" }, { "docid": "c39b4496637898c240f1fb4606094e5e", "score": "0.5766404", "text": "public function getTotalTime()\n {\n if ( ! $this->total_time ) {\n $this->setTotalTime();\n }\n return $this->total_time;\n }", "title": "" }, { "docid": "d90593f8ff20c45dad1a54f0f357b4b8", "score": "0.57553965", "text": "public function getEnd_time()\n\t {\n\t return $this->end_time;\n\t }", "title": "" }, { "docid": "e6c4d54121534289c5aafab6f7cd76ee", "score": "0.5754482", "text": "function get_current_time () {\r\r\n\tglobal $timingStart;\r\r\n\t$stop_time = explode(' ', microtime());\r\r\n\t$current = $stop_time[1] - $timingStart[1];\r\r\n\t$current += $stop_time[0] - $timingStart[0];\r\r\n\treturn $current;\r\r\n}", "title": "" }, { "docid": "91040cd92063fe456f3eff40bc9ab40e", "score": "0.57487303", "text": "function &stopTime()\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $date = new eZDateTime();\n $date->setMySQLTimeStamp( $this->Date );\n\n $start = $this->startTime();\n $time = $start->add( $this->duration() );\n\n return $time;\n }", "title": "" }, { "docid": "9aeb66261d2dbdcc79ccb460067cd608", "score": "0.5746855", "text": "public function getElapsedTime($format = false)\n {\n $elapsed = microtime(true) - $this->startTime;\n\n if ($format && $elapsed >= 1) {\n $elapsed = gmdate(\"H:i:s\", $elapsed);\n }\n\n return $elapsed;\n }", "title": "" }, { "docid": "7dee1aeab19c60d08980e5f32cd17fcb", "score": "0.5742435", "text": "function computeElapsedTime($time1, $time2)\n{\n if (is_null($time1))\n return NULL;\n if (is_null($time2))\n return NULL;\n\n $time1Sec = strtotime($time1);\n $time2Sec = strtotime($time2);\n\n $diffTimeSec = 0;\n if ($time1Sec > $time2Sec) // Cross midnight\n $diffTimeSec = 24 * 60 * 60 - $time1Sec + $time2Sec;\n else\n $diffTimeSec = $time2Sec - $time1Sec;\n return $diffTimeSec;\n}", "title": "" }, { "docid": "62804ad3e104b8123e127b5605c33c40", "score": "0.57371944", "text": "public function getCompletedTime();", "title": "" }, { "docid": "6095b8d169db555f902887c7b8a0199a", "score": "0.57229626", "text": "function runtime($start = null, $end = null)\n{\n static $cache = [];\n if (is_null($start)) {\n return $cache;\n } elseif (is_null($end)) {\n return $cache[$start] = microtime(true);\n } else {\n $end = $cache[$end] ?? microtime(true);\n return round($end - $cache[$start],3);\n }\n}", "title": "" }, { "docid": "ad3a9561a7aea2d340947b996920b311", "score": "0.5684275", "text": "public function getTime()\n {\n $time = 0;\n foreach ($this->data['commands'] as $command) {\n $time += $command['executionMS'];\n }\n\n return $time;\n }", "title": "" }, { "docid": "7332727e929792d2143e7a83e2193dc2", "score": "0.5683852", "text": "public function elapsed($timeUnit = self::MS) {\n if (!$this->running) {\n // if stopped\n $elapsedMS = $this->stop - $this->start;\n } else {\n // if running\n $elapsedMS = $this->now() - $this->start;\n }\n \n switch ($timeUnit) {\n case self::SEC:\n return (int) ceil($elapsedMS / 1000.0);\n case self::MIN:\n return (int) ceil(($elapsedMS / 1000.0) / 60.0);\n case self::HOUR:\n return (int) ceil((($elapsedMS / 1000.0) / 60.0) / 60.0);\n default:\n return (int) ceil($elapsedMS);\n }\n }", "title": "" }, { "docid": "a8e3827527367677b4d50538015ff38a", "score": "0.56820947", "text": "public function getDuration(){\n $duration = 0;\n\n /** @var Section $section */\n foreach($this->getSections() as $section){\n /** @var StopwatchEvent $event */\n foreach($section->getEvents() as $event){\n $duration += $event->getDuration();\n }\n }\n\n return $duration;\n }", "title": "" }, { "docid": "6eb057e5fec4d54659cb6730a71c9919", "score": "0.56809634", "text": "public function getEndTime()\n {\n return $this->end;\n }", "title": "" }, { "docid": "91b8357432c6c2ef76190cfd5d674ddc", "score": "0.56584334", "text": "public function getElapsedTime($unit = NULL)\n {\n }", "title": "" }, { "docid": "dd4aef3f012dfcc7633cbdb15c4617c8", "score": "0.56363565", "text": "public static function outputDuration( $start_time )\n {\n $end_time = time();\n \n if( isset( $start_time ) )\n echo S_P, \"Total time taken: \" . ( $end_time - $start_time ) . \" seconds\" . E_P;\n }", "title": "" }, { "docid": "293edd6a2b8ceb20155579a5e41e9e36", "score": "0.563373", "text": "public function getTotalTime()\n {\n $totalTime = $this->getMeta('prep_time') + $this->getMeta('inactive_time') + $this->getMeta('cook_time');\n return $this->convertTime($totalTime);\n }", "title": "" }, { "docid": "3cacae752e46e3a7ad6f1e49b47665e3", "score": "0.5629272", "text": "public function getExecutionTime()\n\t{\n\t\treturn microtime(true)-YII_BEGIN_TIME;\n\t}", "title": "" }, { "docid": "7732196bc10d0609902763c483c4dc3e", "score": "0.56117666", "text": "public static function requestTime()\n {\n $start = self::requestStartTime();\n $now = microtime(true);\n\n return ($now - $start);\n }", "title": "" }, { "docid": "b94591d73d3b53450f4e6aaab5975aab", "score": "0.56104195", "text": "public function getFinishTime()\n {\n return $this->finish_time;\n }", "title": "" }, { "docid": "ca02c130af6ef876ba0fbc66d8b3e51b", "score": "0.55913913", "text": "public function get_timeleft() {\n return ($this->wait - (time() - $this->original_time));\n }", "title": "" }, { "docid": "47c8bf52a3ccb0550aa6c1a4c6499a8c", "score": "0.5583053", "text": "public function getTime($autoreset = false)\n {\n $time = $this->stopTime - $this->startTime;\n\n if ($autoreset === true) {\n $this->reset();\n }\n\n return $time;\n }", "title": "" }, { "docid": "cc30988ee05a2aba0fef6029c91be280", "score": "0.5581281", "text": "public function getPassingTime()\n {\n return round($this->_end_time * 1000 - $this->_start_time * 1000, 3) >= 0? round($this->_end_time * 1000 - $this->_start_time * 1000, 3) : 0;\n }", "title": "" }, { "docid": "777aa26595f64cfbdf748206ac07f900", "score": "0.5567027", "text": "function insertTimerString($start, $end) {\n $total = $end - $start;\n return '<h4>Total Execution Time</h4><div>'.$total.' s</div>';\n }", "title": "" }, { "docid": "a15f4309debe65eba6083cd334aea703", "score": "0.55653256", "text": "public function totalTime()\n {\n return date('h:i', strtotime($this->arrive_at) - strtotime($this->depart_at));\n }", "title": "" }, { "docid": "2d33ca775adfe9e0b16430b7965d8cc0", "score": "0.55653054", "text": "function ElapsedTime($startUtime) {\n $tsecs = utime() - $startUtime;\n if ($tsecs >= 1)\n $t = round($tsecs, 1) . ' secs';\n else if ($tsecs >= 0.001)\n $t = round($tsecs*1000, 0) . ' msecs';\n else\n $t = round($tsecs*1000000, 0) . ' usecs';\n return $t;\n}", "title": "" }, { "docid": "fd8d135a2488651f90dcece6c18b7819", "score": "0.55569434", "text": "static public function getTotalTime()\n {\n return static :: $_totalTime;\n }", "title": "" }, { "docid": "bc34d1e79c0135be5f70e41672685580", "score": "0.55271846", "text": "function results()\n\t{\n\t\t$elapsed = $this->elapsed();\n\t\treturn p('Time elapsed: ' . number_format($elapsed,3).' seconds');\n\t}", "title": "" }, { "docid": "2dc03de6cfe7168ea7be8a71be00a236", "score": "0.55102026", "text": "public static function sinceStart (\n\t)\t\t\t\t\t// RETURNS <float> The duration (in seconds) since the script began.\n\t\n\t// Benchmark::sinceStart();\n\t{\n\t\t$benchmark = (microtime(true) - $_SERVER['REQUEST_TIME_FLOAT']);\n\t\t\n\t\treturn (float) number_format($benchmark, 4);\n\t}", "title": "" }, { "docid": "10bdbefaa24e315316db7ae99a9ba4c0", "score": "0.55029774", "text": "public function runtime(): float\n {\n return round(microtime(true) - START_TIME, 4);\n }", "title": "" }, { "docid": "3257967813409104f4976552d2d49fc6", "score": "0.54925853", "text": "function GetTimeDiffInUsec($end_time,$start_time)\n\t{\n\t\t$interval = ($end_time-$start_time);\n\t\treturn $interval*1000;\n\t}", "title": "" }, { "docid": "fa94e16e03011f2c9d2d5cd44b0220d1", "score": "0.54809374", "text": "protected function endDebugTimer()\n {\n $mtime = microtime();\n $mtime = explode(\" \", $mtime);\n $mtime = $mtime[1] + $mtime[0];\n $tend = $mtime;\n\n $totalTime = ($tend - $this->debugTimer);\n $totalTime = sprintf(\"%2.4f s\", $totalTime);\n\n $this->debugTimer = false;\n\n return $totalTime;\n }", "title": "" }, { "docid": "ccfac0783622de60d4487f668acaf285", "score": "0.54707175", "text": "private function _getTime()\n {\n /* detect the time */\n $timeNow = microtime();\n /* separates seconds and milliseconds in array */\n $arrayTime = explode(' ', $timeNow);\n /* we put together seconds and milliseconds */\n $timeReturn = floatval($arrayTime[1]) + floatval($arrayTime[0]);\n\n return $timeReturn;\n }", "title": "" }, { "docid": "3cb8273c74396d79c6a76a714f74efc6", "score": "0.5464554", "text": "public function getCallTime()\n {\n return $this->callTime;\n }", "title": "" }, { "docid": "28ba5a284e52d20e86116316c0fbde21", "score": "0.54638666", "text": "protected function endDebugTimer() {\n $mtime= microtime();\n $mtime= explode(\" \", $mtime);\n $mtime= $mtime[1] + $mtime[0];\n $tend= $mtime;\n $totalTime= ($tend - $this->debugTimer);\n $totalTime= sprintf(\"%2.4f s\", $totalTime);\n $this->debugTimer = false;\n return $totalTime;\n }", "title": "" }, { "docid": "b685652cbea032ae3b097d7a96de7d3e", "score": "0.54491657", "text": "public function getEndTime()\n {\n return $this->endTime;\n }", "title": "" }, { "docid": "b685652cbea032ae3b097d7a96de7d3e", "score": "0.54491657", "text": "public function getEndTime()\n {\n return $this->endTime;\n }", "title": "" }, { "docid": "e8a61f52201d36f06d8d4110f098f209", "score": "0.5449085", "text": "function poll_time($start, $end)\n\t{\n\t\tif (is_string($start))\t$start\t= strtotime($start);\n\t\tif (is_string($end))\t$end\t= strtotime($end);\n\n\t\treturn ceil((($end - $start) / 3600) / 24);\n\t}", "title": "" }, { "docid": "87b35768f6d78d873b52db61590be098", "score": "0.5440575", "text": "public function getTiming()\n {\n return $this->timing;\n }", "title": "" }, { "docid": "732434699e7327552f95cbe2a7d3de62", "score": "0.5439287", "text": "public function execution_time($halt = false) {\n $execution_time = microtime(true) - $this->start_time;\n echo '<b>Total Execution Time:</b> '.$execution_time.' Seconds';\n if ($halt) {\n die();\n }\n }", "title": "" }, { "docid": "4dce548607c0ed3e6b74fb6440f03eb0", "score": "0.5437766", "text": "public function getTimeout(): float {\n return microtime(true) - $this->_start;\n }", "title": "" } ]
6e2e7849590a1922afd96f30ef4b457d
Outputs specified text to the console window and appends a line break
[ { "docid": "f1408f719cd68b99f648a9e961f6e4c3", "score": "0.6122511", "text": "protected function outputLine(string $text = '', array $arguments = [])\n {\n $this->output->outputLine($text, $arguments);\n }", "title": "" } ]
[ { "docid": "26e8fc7063d15195d699bfa378d5b6d7", "score": "0.803591", "text": "protected function console($text)\n {\n echo $text . self::CRLF;\n }", "title": "" }, { "docid": "e217100866fa29402fd5a7767dd593c0", "score": "0.7278323", "text": "final protected function writeConsole($text)\n\t{\n\t\tConsole::println('['.Console::getDatestamp().'|'.$this->id.'] '.$text);\n\t}", "title": "" }, { "docid": "8274fe322e078ca93a8b1285104464b6", "score": "0.7123997", "text": "protected function _println($text)\n\t{\n\t\t$this->_text .= $text . \"\\n\";\n\t\tif ($this->echo) {\n\t\t\techo $text . \"\\n\";\n\t\t}\n\t}", "title": "" }, { "docid": "3025b68f39b19140bd84953d5cb9f13a", "score": "0.6943078", "text": "public static function write($text)\n {\n echo $text . \"\\n\";\n }", "title": "" }, { "docid": "20e7a28896a818e2a21e2e14d9b51d9b", "score": "0.6781399", "text": "function printToConsole($__text, $__line_wrap = true) {\n\t\t//Switch the colors, which are set in the as a global in the config.php\n\t\tswitch(CONSOLE_COLOR) {\n\t\t\tcase 'black':\n\t\t\t\t$ansi_color = \"\\033[01;30m\";\n\t\t\t\tbreak;\n\t\t\tcase 'red':\n\t\t\t\t$ansi_color = \"\\033[01;31m\";\n\t\t\t\tbreak;\n\t\t\tcase 'green':\n\t\t\t\t$ansi_color = \"\\033[01;32m\";\n\t\t\t\tbreak;\n\t\t\tcase 'blue':\n\t\t\t\t$ansi_color = \"\\033[01;34m\";\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t//If it set to true, set some breaks\n\t\tif($__line_wrap) {\n\t\t\t$break = \"\\n\";\n\t\t}\n\t\t\t\t\n\t\t// echo $break . $ansi_color . $__text . $break . \"\\033[0m\";\n\t\techo $break . $__text;\n\t}", "title": "" }, { "docid": "9947f53eb09701383704a38c2929b00a", "score": "0.67635", "text": "public function write(string $text): void\n {\n echo $text . PHP_EOL;\n }", "title": "" }, { "docid": "f368a035636aca1fee88d03dec2e3e39", "score": "0.6676476", "text": "function nl(){\r\n\tprint(\"\\n\");\r\n}", "title": "" }, { "docid": "640bc8ad9be1ef4b8eec6e0fd87416a4", "score": "0.6557806", "text": "public function newline(): void\n {\n $this->rawOutput(\"\\n\");\n }", "title": "" }, { "docid": "058ef469738534af7a4228fc05a0855f", "score": "0.64978915", "text": "protected function writeln($msg = '')\n {\n \t$ln = Director::is_cli() ? PHP_EOL : '<br>';\n \t$this->write($msg.$ln);\n }", "title": "" }, { "docid": "4e3b5b8d19796da86405fa9373c4a558", "score": "0.6495107", "text": "public static function line($text = ''){\n\t\t$args = func_get_args();\n\t\t$args[0] = $text ? \"$text\\n\" : \"\\n\";\n\t\treturn call_user_func_array('static::write', $args);\n\t}", "title": "" }, { "docid": "3909053418dba05c68c4f30f767c0f3f", "score": "0.6471083", "text": "function sayNL()\n {\n if(! $this->debug || ! $this->controller) return;\n $this->controller->writeOut(\"\\n\");\n }", "title": "" }, { "docid": "699cf60e180ac82f3a89a1eb7a55e06b", "score": "0.6434483", "text": "public function writeLine($output = \"\") {\n $this->write($output);\n echo PHP_EOL;\n }", "title": "" }, { "docid": "aab6046c3d06fb6fe16664b22b7a0f45", "score": "0.64165914", "text": "function ncurses_insertln() {}", "title": "" }, { "docid": "4e314a8cd89ddc07bc998a431e07a6c2", "score": "0.6380947", "text": "public function newline();", "title": "" }, { "docid": "4e8dde954526932166e9241522bcde44", "score": "0.6367096", "text": "function nl()\n\t{\n\t\techo \"<br />\";\n\t}", "title": "" }, { "docid": "8de52c7389416e4120d8e135a19c3cf0", "score": "0.63423574", "text": "protected function printText($text)\n {\n if ($this->app->isCli()) {\n $text = strip_tags($text);\n }\n\n echo $text;\n }", "title": "" }, { "docid": "cd98942e15e31e394576afe9dac68036", "score": "0.63283676", "text": "function add($text) {\n\t\tif ($this->level) {\n\t\t\techo $text.\"\\n\";\n\t\t}\n\t}", "title": "" }, { "docid": "86efd9f9cff27204bfaf2d32b5d76e9a", "score": "0.6322862", "text": "private function logToConsole(string $text){\t\n if ($this->logConsole) echo \"\\n\\t[WebServiceIncofisa] $text\";\n }", "title": "" }, { "docid": "fedd8e62537ec27fcc7df5c77897f717", "score": "0.62918234", "text": "Function DisplayFlush($Text) \n\t{\n\t\tprint \"$Text\"; flush();\n\t}", "title": "" }, { "docid": "6df166823ad38e841470d892f3cc76fd", "score": "0.62605953", "text": "public function coutLine($output) {\r\n $this->cout(\"{$output}\\n\");\r\n }", "title": "" }, { "docid": "e9f54962c95f281e3d2a1b56407fdaa0", "score": "0.62555385", "text": "function print_ln($str) {\r\n\t$str .= $str.\"\\r\\n\";\r\n\tprint($str);\r\n}", "title": "" }, { "docid": "43b71d69400141bbc2fd90b5afa2588f", "score": "0.624038", "text": "function add($text) {\n $this->text .= $text . \"<br>\";\n }", "title": "" }, { "docid": "bf2fdf737e545de87d74d8cdf998d6ef", "score": "0.6240265", "text": "private function add_line($text = \"\", $should_wordwrap = true)\r\n {\r\n $text = $should_wordwrap ? wordwrap($text, $this->printer_width) : $text;\r\n $this->printer->text($text.\"\\n\");\r\n }", "title": "" }, { "docid": "c8af41fd0b97ca24555a29fbba2883b4", "score": "0.62263525", "text": "function WriteLine($line, $br=0) {\n echo $line.\"\\n\";\n if ( $br ) HtmlBR($br);\n }", "title": "" }, { "docid": "3670ed074db4d58d6fe26053b7ba68f5", "score": "0.61885977", "text": "function prnt ($text) {\n echo \"$text<br>\\n\";\n}", "title": "" }, { "docid": "58e4c3dd60e99d7c54a6b3a35f32f0f6", "score": "0.61740756", "text": "private function console($text, $exit = false)\n {\n $text = date('[Y-m-d H:i:s] ') . $text . \"\\r\\n\";\n if ($exit) {\n die($text);\n }\n\n if ($this->verboseMode) {\n echo $text;\n }\n }", "title": "" }, { "docid": "554cf960c9c36105e14e3388a86b9eac", "score": "0.617239", "text": "protected function outputLine($text = '', array $arguments = array()) {\n\t\t// Check if we should show something at all\n\t\tif ($this->quiet === TRUE) {\n\t\t\t// do not output anything\n\t\t} else {\n\t\t\t$this->output($text . PHP_EOL, $arguments);\n\t\t}\n\n\t\treturn;\n\t}", "title": "" }, { "docid": "709ff21caca7efd8cf63fcb15137ea64", "score": "0.6153952", "text": "public function nl() {\n\t\treturn ($this->isCli()) ? PHP_EOL : '<br>' . PHP_EOL;\n\t}", "title": "" }, { "docid": "f68425cba8c1dd08dd75c5642c2565d4", "score": "0.6132795", "text": "public function emitln()\n {\n for ($i = 0, $l = func_num_args(); $i < $l; ++$i)\n $this->buff .= func_get_arg($i);\n \n $this->buff .= \"\\n\";\n $this->buff .= str_repeat(' ', $this->tabs);\n }", "title": "" }, { "docid": "82c09b3c92994e13d4b08097fb8ff3ff", "score": "0.61276656", "text": "public function line($string)\n {\n $this->output->writeln($string);\n }", "title": "" }, { "docid": "4f28e02c3c38917c8fce7822d779bac7", "score": "0.61130655", "text": "public function writeText()\n {\n }", "title": "" }, { "docid": "40db651e966c3baf65a803680674261b", "score": "0.61025023", "text": "public function newLine($count = 1) {\n $this->output->newLine($count);\n\n if ($this->shouldUseEvents() == true) {\n $this->getApplication()->getEvents()->dispatch(new Events\\Output\\NewLine($count, $this));\n }\n }", "title": "" }, { "docid": "be6ecead9936f0ebec36e66c5e347399", "score": "0.6095491", "text": "public function show_cli_message ($text=\"No value provided\") {\n\t\t// array - join\n\t\tif (is_array($text) && sizeof($text)>0) {\n\t\t\t// 1 element\n\t\t\tif(sizeof( $text )==1) {\n\t\t\t\t$text = $text[0];\n\t\t\t}\n\t\t\t// multiple - format\n\t\t\telse {\n\t\t\t\tforeach( $text as $l ) { $out[] = \"\\t* $l\"; }\n\t\t\t\t// join\n\t\t\t\t$text = implode(\"\\n\", $out);\n\t\t\t}\n\t\t}\n\t\t# print\n\t\treturn $text.\"\\n\";\n\t}", "title": "" }, { "docid": "9ff4b37c974304ce5941176c38b99ce1", "score": "0.6094726", "text": "function println($str)\n {\n echo \"$str <BR/>\";\n }", "title": "" }, { "docid": "3377f81009e83fffdf632d3acd037d5a", "score": "0.6089955", "text": "function addText($text) {\n\t\t$text = str_replace(\"\\n\", \"\", $text);\n\t\t$text = str_replace(\"\\t\", \"\", $text);\n\t\t$text = str_replace(\"\\r\", \"\", $text);\n\t\t\n\t\t$this->document .= $text;\n\t}", "title": "" }, { "docid": "1ccd2aab88ef35d4ba3b36dcbc7d1343", "score": "0.60602236", "text": "public final function drawLine() {\n\t\t$prompt = $this->getPrompt();\n\t\tif ($prompt !== null) {\n\t\t\t$this->_print($prompt);\n\t\t}\n\n\t\t$this->_print($this->buf->buffer->__toString());\n\n\t\tif ($this->buf->length() !== $this->buf->cursor) { // not at end of line\n\t\t\t$this->back($this->buf->length() - $this->buf->cursor - 1);\n\t\t}\n\t\t// force drawBuffer to check for weird wrap (after clear screen)\n\t\t$this->drawBuffer();\n\t}", "title": "" }, { "docid": "b76b2e778aced9ba89a266b29e0a8dfd", "score": "0.60258865", "text": "function ncurses_putp($text) {}", "title": "" }, { "docid": "c0851c839643249768eadc4c1c0e9ffd", "score": "0.6016067", "text": "function nbn(){\r\n\tprint(\"\\n <br /> \\n\");\r\n}", "title": "" }, { "docid": "2a3ed9b5022067cb77a2b7d3c9189dab", "score": "0.60128564", "text": "public function nl()\n {\n $this->write(\n PHP_EOL, str_repeat($this->tab, $this->indentation));\n }", "title": "" }, { "docid": "7e002541e71ba4ee9fec42f449d101eb", "score": "0.5999991", "text": "public static function out ($text, $type = 'default', $newline = \"\\n\") {\n\t\tif (! isset (self::$colors[$type])) {\n\t\t\t$type = 'default';\n\t\t}\n\n\t\tprintf (self::$colors[$type] . $newline, $text);\n\t}", "title": "" }, { "docid": "7ef114d336ffb12948d9d0cf74c4e9ff", "score": "0.594888", "text": "public static function println($message)\n {\n if (!self::isCli())\n {\n $message .= '<br />';\n }\n\n print $message . PHP_EOL;\n }", "title": "" }, { "docid": "a8939a517b4567852aaa8cf4f2bf52f4", "score": "0.59195757", "text": "public function console($text = null)\n {\n // No processing.\n if ($this->console_output == 'off') {return;}\n\n if (!isset($this->console_output)) {\n\n $this->console_output = 'on';\n echo \"Thing console started. Turn off in private/settings.\\n\";\n }\n\n if (!isset($this->console_output)) {\n return;\n }\n if ($this->console_output != 'on') {\n return;\n }\n echo $text;\n }", "title": "" }, { "docid": "9750fa961e6ed29646555b10b297b5a4", "score": "0.5914097", "text": "public static function flush ($text = '')\n\t\t{\n\t\tif (! empty ($text))\n\t\t\t{\n\t\t\techo $text;\n\t\t\t}\n\t\t\n\t\tob_flush (); flush ();\n\t\t}", "title": "" }, { "docid": "e7ed1d677d100864c171211eab05ba15", "score": "0.5914039", "text": "public function writeDebugLn($text)\n {\n if ($this->debugWriter) {\n $this->debugWriter->write(\"${text}\\n\");\n } else {\n fwrite(STDERR, \"${text}\\n\");\n }\n }", "title": "" }, { "docid": "4a8bef1a2fc2c50aaac95b8714c92a51", "score": "0.5908222", "text": "function bn(){\r\n\tprint(\"<br /> \\n\");\r\n}", "title": "" }, { "docid": "e00a8fbd05e8e2cfc2a3c6c928582135", "score": "0.59048545", "text": "public static function line():void\n {\n echo \"\\n\";\n return;\n }", "title": "" }, { "docid": "06bef4e38cef01fc1c04f859ffb8b519", "score": "0.5901872", "text": "protected function line( $str )\n {\n echo \"\\033[38;5;82m\" . $str;\n echo \"\\033[0m\\n\";\n }", "title": "" }, { "docid": "50f9d568fb1156840493f691183144a0", "score": "0.5900316", "text": "public function test_output()\n {\n $term = new BasicTerminal(\"vt100\");\n\n $term->setBold()->setUnderscore()->setTextColor(\"ansiCyan\")->setFillColor(\"black\")->display(\"Hello World!\")->clear(true);\n\n $this->expectOutputString(\"\\e[1;4;36;40mHello World!\\e[0m\");\n }", "title": "" }, { "docid": "1035ecd3e13d1c80904bc06217f51067", "score": "0.58734024", "text": "public function lineBreak(): void\n {\n echo $this->color->__invoke(str_repeat('─', $this->terminal->getWidth()))->yellow();\n }", "title": "" }, { "docid": "53d4c78f29f9bcf2403aaf2c828d95d5", "score": "0.5866126", "text": "public static function writeLine($content)\n {\n echo $content . \"\\r\\n\";\n }", "title": "" }, { "docid": "6dab686d7e6e16f38851752f4c25d593", "score": "0.5865906", "text": "public function logLine($text = null) {\n \t$this->buffer .= ($text.PHP_EOL);\n\t}", "title": "" }, { "docid": "b86659acbac2c824182950e056a5e09d", "score": "0.58632594", "text": "function printtext( $text ) {\n\tif ($_SERVER[\"DOCUMENT_ROOT\"]) {\n\t\techo \"<BR>\".$text;\n\t}\n\telse {\n\t\techo \"\\n\".$text;\n\t}\n}", "title": "" }, { "docid": "34526e11ea0e08f346c36ef7922d7d1d", "score": "0.58608973", "text": "function output(string $message): void\n{\n\n echo $message, PHP_EOL;\n}", "title": "" }, { "docid": "95f3e9468ed7c21959583ad89e50b7d0", "score": "0.5852923", "text": "function nb(){\r\n\tprint(\"\\n <br />\");\r\n}", "title": "" }, { "docid": "04ecf2874752318615139f3514a9aad6", "score": "0.583892", "text": "function newline(){\n echo \"<br>\\n\";\n}", "title": "" }, { "docid": "e43b2d9cc4a9d6211581a2f8df962868", "score": "0.58387744", "text": "public function setOutput($text) { }", "title": "" }, { "docid": "0691772ee4aa32debdbcc263f7c1cc47", "score": "0.5837306", "text": "function enter($string)\n{ \n\t$string = str_replace(array(\"\\r\\n\", \"\\r\", \"\\n\"), \"<br>\", $string); \n\treturn $string; \n}", "title": "" }, { "docid": "db196a723777bd4874f74848d6018a9b", "score": "0.582292", "text": "public function output($string, $options = [], $newline = true)\n {\n printf(\"\\033[%sm%s%s\".($newline ? PHP_EOL : null), $this->parseSetCodes($this->foregroundColours['default'], $options), $string, $this->stringTerminator);\n }", "title": "" }, { "docid": "20350365617459ad0f869387db57e8a6", "score": "0.5821112", "text": "function writeln() {\n call_user_func_array('write', func_get_args());\n fwrite(STDOUT, \"\\n\");\n}", "title": "" }, { "docid": "d2c9dca1b42443fdfaf32847cdd72f36", "score": "0.58072245", "text": "public function write($text = '', $foreground = null, $background = null)\n\t{\n\t\t$this->write_nobreak($text.PHP_EOL, $foreground, $background);\n\t}", "title": "" }, { "docid": "27ec93e8408d1fe837c931c5bf4f4540", "score": "0.58058125", "text": "public function getLine($text = null) {\n return $text.PHP_EOL;\n }", "title": "" }, { "docid": "9c3c56d574b52833c3abb0685cdfd5e6", "score": "0.57977575", "text": "function pl($text) {\n\techo \"| $text |\\r\\n\";\n}", "title": "" }, { "docid": "9c3c56d574b52833c3abb0685cdfd5e6", "score": "0.57977575", "text": "function pl($text) {\n\techo \"| $text |\\r\\n\";\n}", "title": "" }, { "docid": "aba7f19dac94af5402215b1bdfee7bd7", "score": "0.57800514", "text": "static function line($message = '') {\n\t\t\\cli\\line($message);\n\t}", "title": "" }, { "docid": "fd0aad62129f25b63d2213133f5bb41e", "score": "0.5770601", "text": "function nhn(){\r\n\tprint(\"\\n <hr /> \\n\");\r\n}", "title": "" }, { "docid": "653e28e805bad7127496b369335d031e", "score": "0.57688415", "text": "protected function outputLine($text = '', array $arguments = [])\n\t{\n\t\t$text = '[FLOW] ' . $text;\n\t\tparent::outputLine($text, $arguments);\n\t}", "title": "" }, { "docid": "8992d8f384c0168445432174ea2c95e8", "score": "0.575652", "text": "function ncurses_echo() {}", "title": "" }, { "docid": "a0b396fdf666d3ff35493e5ab64bedd4", "score": "0.5730243", "text": "public static function end($text = '')\n {\n echo $text;\n Yii::app()->end();\n }", "title": "" }, { "docid": "37fa1ff8e670230ac797ea6e915c3325", "score": "0.57178974", "text": "public function println($ln)\n {\n echo $ln . PHP_EOL;\n }", "title": "" }, { "docid": "c93f7cc1d7f8d1384d7eb5c7297ba019", "score": "0.57019055", "text": "function consolelog ($message) {\n echo $message.PHP_EOL;\n ob_flush();\n flush();\n}", "title": "" }, { "docid": "5cb881cc42ebdf4dc908565088961ad4", "score": "0.56902313", "text": "function SendParagraph($Text)\n{\n print(\"<p>${Text}</p>\\n\");\n}", "title": "" }, { "docid": "80708e008bd2ab19982b25ea8a57557c", "score": "0.5678257", "text": "function ncurses_addstr($text) {}", "title": "" }, { "docid": "bef54e563d2695e9dfc2eaf584efcd52", "score": "0.5666111", "text": "function ncurses_nl() {}", "title": "" }, { "docid": "8180144685eac343b41074696bea9b1d", "score": "0.56622", "text": "public static function write($text){\n\t\treturn fwrite(static::$stdOut, call_user_func_array('static::render', func_get_args()));\n\t}", "title": "" }, { "docid": "7a2ee5d4cd50e9f8043d52f2e8726c43", "score": "0.563158", "text": "public function out($text, $color = null, $newLine = true) {\n if (DIRECTORY_SEPARATOR == '\\\\') {\n $hasColorSupport = false !== getenv('ANSICON');\n }\n else {\n $hasColorSupport = true;\n }\n\n $styles = array(\n 'success' => \"\\033[0;32m%s\\033[0m\",\n 'error' => \"\\033[31;31m%s\\033[0m\",\n 'info' => \"\\033[33;33m%s\\033[0m\"\n );\n\n $format = '%s';\n\n if (isset($styles[$color]) && $hasColorSupport) {\n $format = $styles[$color];\n }\n\n if ($newLine) {\n $format .= PHP_EOL;\n }\n\n printf($format, $text);\n }", "title": "" }, { "docid": "de67dbe10c590cc4595614a58328c3d8", "score": "0.5629731", "text": "function br(){\r\n\tprint(\"<br />\");\r\n}", "title": "" }, { "docid": "9a74978b115d0c6956874aa750784505", "score": "0.5603077", "text": "function encho($text)\n\t{\n\t\techo htmlspecialchars($text);\n\t}", "title": "" }, { "docid": "dd3d03806f9b7d8ed6f85136447df9a5", "score": "0.560214", "text": "protected function println($line)\n {\n echo $line . \"\\n\";\n }", "title": "" }, { "docid": "c52fd6c856337f4bb8649e02f36676a3", "score": "0.55908495", "text": "function outln() {\n\t$args = func_get_args();\n\tOutputBuffer::$buffers['out'] .= implode(\"\\n\", $args) .\"\\n\";\n}", "title": "" }, { "docid": "e2ca14e679f81889255b168c61da4e5d", "score": "0.55768275", "text": "protected function endOutput()\n {\n $this->info(\"\\n\\n\");\n }", "title": "" }, { "docid": "d2c4e1f184fb95f12e4cfbf2a90feb2b", "score": "0.55766803", "text": "public function writeLine(string $line): void\n {\n echo sprintf(\"%s\\n\", $line);\n }", "title": "" }, { "docid": "462e42cc4003c1c0b46dfcbf0c5ac8b8", "score": "0.55711466", "text": "function echoLine($str = \"\") {\n echo(\"$str\\n\");\n}", "title": "" }, { "docid": "a0adaafd90d2c210b8d5bf6a3c20c0b1", "score": "0.5555126", "text": "public static function block ($text) {\n\t\techo strtr (\n\t\t\t$text,\n\t\t\tarray (\n\t\t\t\t'<success>' => \"\\033[0;32m\",\n\t\t\t\t'</success>' => \"\\033[0m\",\n\t\t\t\t'<error>' => \"\\033[31;31m\",\n\t\t\t\t'</error>' => \"\\033[0m\",\n\t\t\t\t'<info>' => \"\\033[33;33m\",\n\t\t\t\t'</info>' => \"\\033[0m\"\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "796a180b7542d84c16440090d18df848", "score": "0.5554354", "text": "public function setText($text){\n\t\tprint(\"<msg>\".htmlspecialchars($text).\"</msg>\\n\");\n\t\tself::flush();\n\t}", "title": "" }, { "docid": "6ffe8262e8c8f41fac6afee70286b15e", "score": "0.5543498", "text": "private function myecho($buffer, $newline = false)\n {\n echo utf8_encode($buffer);\n if ($newline) {\n echo PHP_EOL;\n }\n }", "title": "" }, { "docid": "e0f0927114437129773af24ec9ecccde", "score": "0.55390286", "text": "function ncurses_mvwaddstr($window, $y, $x, $text) {}", "title": "" }, { "docid": "1a3ee47d3038e5d09723fb19040db25d", "score": "0.5536189", "text": "function consoleOut(string $message) : void {\n fwrite(\n STDOUT,\n ord($message[strlen($message) - 1]) !== 10 ? $message . \"\\x0a\" : $message\n );\n}", "title": "" }, { "docid": "41316e1563faf79551a4523f50741299", "score": "0.5520159", "text": "function hr() {\r\n echo '<hr />'.PHP_EOL;\r\n}", "title": "" }, { "docid": "0282aa9d50dae8ba3e4393baa9514262", "score": "0.55194485", "text": "public function echoText()\n {\n echo 'testText';\n }", "title": "" }, { "docid": "0d308913ef6c930cdd5ca80669d6e946", "score": "0.5513075", "text": "protected function line($string = '')\n\t{\n\t\t$args = func_get_args();\n\t\t$args[0] .= \"\\n\";\n\t\treturn call_user_func_array([$this, 'stdout'], $args);\n\t}", "title": "" }, { "docid": "ed03dd443ba0f79bf462d516c4ef1865", "score": "0.5512681", "text": "public function log($text) {\n \t$this->buffer .= $text;\n\t}", "title": "" }, { "docid": "4aa682a065a1fa4658b324086393276f", "score": "0.55097747", "text": "private static function output($string)\r\n {\r\n if (self::is_cli()) {\r\n return $string . PHP_EOL;\r\n } else {\r\n $string = trim($string);\r\n if (!self::$use_pre) {\r\n return $string;\r\n }\r\n\r\n return $string;\r\n }\r\n }", "title": "" }, { "docid": "6364097856ea71cd17c253a589fa8b2d", "score": "0.5502906", "text": "public static function text($data)\n {\n echo $data;\n die();\n }", "title": "" }, { "docid": "e3a8bbb5e5e9336c98f495c427ef0f3f", "score": "0.5481366", "text": "public function AppendLine($value){\n $this->_AddElement(\"\\r\\n$value\");\n }", "title": "" }, { "docid": "e97cbf529e711263427dd7665a531a13", "score": "0.5476319", "text": "public function appendText($text)\n {\n $this->content .= $text;\n }", "title": "" }, { "docid": "9f90c55fb8584d25fc551bd8867b5bdb", "score": "0.5474371", "text": "private function addBreaks() {\n $this->output(\"\");\n }", "title": "" }, { "docid": "a740b3211bb3e76a165e7956926de737", "score": "0.5467745", "text": "public function emptyLine(): void\n {\n echo \"\\n\";\n }", "title": "" }, { "docid": "46db0b3b14bbe739ace0aed664c6204f", "score": "0.54615283", "text": "function printLine($message)\n{\n\techo $message.\"\\n\";\n}", "title": "" }, { "docid": "80293ab6c9e34a0fc899962b949e7445", "score": "0.5451847", "text": "function addText($value)\n {\n\t\t$value = trim($value);\n\t\t$value = implode(PHP_EOL, array_map('ltrim', explode(PHP_EOL, $value)));\n $this->value = $value;\n }", "title": "" }, { "docid": "243bfad13f94fd70a620cf1cf4ee1253", "score": "0.5448867", "text": "function write($text)\n{\n $debug = false;\n if ($debug) {\n echo $text;\n }\n}", "title": "" } ]
d5f80109fc63b86072cb3d6573dbd687
end of retail role Count records Sub Area.
[ { "docid": "7753d508026baca8fb0dba716c3baeba", "score": "0.0", "text": "function CountAllDataSubArea($param = [])\n {\n\n if (is_array($param) && isset($param['search_value']) && $param['search_value'] != '') {\n $this->db->group_start();\n $i = 0;\n foreach ($param['search_field'] as $row => $val) {\n if ($val['searchable'] == 'true') {\n if ($i == 0) {\n $this->db->like('LCASE(`'.$val['data'].'`)', strtolower($param['search_value']));\n } else {\n $this->db->or_like('LCASE(`'.$val['data'].'`)', strtolower($param['search_value']));\n }\n $i++;\n }\n }\n $this->db->group_end();\n }\n $total_records = $this->db\n ->where('master_subarea.is_delete',0)\n ->join('master_area','master_area.id=master_subarea.id_area')\n ->from('master_subarea')\n ->count_all_results();\n\n return $total_records;\n }", "title": "" } ]
[ { "docid": "8d985d10d3ac501a1d54cea8cdac22d1", "score": "0.5694449", "text": "public function pageEnd() {\r\n\t\t$intReturn = ($this->getCurrentPage() * $this->__pageItems);\r\n\t\tif ($intReturn > count($this->collection)) $intReturn = count($this->collection);\r\n\r\n\t\treturn $intReturn;\r\n\t}", "title": "" }, { "docid": "ebe6f6449640b9a3bb2d54c7fb9e5e22", "score": "0.5543275", "text": "public function nexitos(){\n if(count($this->nregistros()) >0 ){\n return ImportLogCargamasiva::find()->\n where(['level'=>'1','user_id'=>h::userId()])->count();\n }else{\n return 0;\n }\n }", "title": "" }, { "docid": "aabd07f1e791ad573ba04f5efccb3434", "score": "0.5543045", "text": "function endSubMenu() {\n\t\treturn html_ac(html_ap() - 1);\n\t}", "title": "" }, { "docid": "8c03d8b1024e3167abbbeb43af60b67d", "score": "0.54312456", "text": "public static function getSubCount(): int\n {\n return self::$subCount;\n }", "title": "" }, { "docid": "545ef7e82d184f2bb541be9a441947f4", "score": "0.54306924", "text": "public function getEnd(): int\n {\n return $this->end;\n }", "title": "" }, { "docid": "9e970f50e4d27401804d47f9d572efc5", "score": "0.5408951", "text": "function COXYMallCountDown() {\r\n\t}", "title": "" }, { "docid": "0f6e41808b91e6fa2d36915264acf199", "score": "0.53692454", "text": "protected abstract function fetchTotalCount();", "title": "" }, { "docid": "3a251b8f9dfb802491155ec16ba2e084", "score": "0.5327829", "text": "function close_issue_count()\n {\n $sql = \" SELECT count(*) as cnt\n\t\t\t\t\tFROM tbl_issue a\n\t\t\t\t\tINNER JOIN tbl_issue_assign b ON a.issue_id = b.issue_id \";\n\t\t\t\t\tif($_SESSION['group']!='Administrator')\n\t\t\t\t\t{\n\t\t\t\t\t\t$sql .= \"WHERE (\n\t\t\t\t\t\ta.assigned_by =\".$_SESSION['emp_id'].\" || b.assigned_to =\".$_SESSION['emp_id'].\"\n\t\t\t\t\t\t)\n\t\t\t\t\t\tAND a.status_id =2\n\t\t\t\t\t\tGROUP BY a.issue_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$sql .=\"where a.status_id =2\";\n\t\t\t\t\t}\n\t\t\t\t\t \n\t\t\t\t\t$sql .=\" ORDER BY cnt DESC\n\t\t\t\t\tLIMIT 1\n\t\t\t\t\t \";\n\t\t$cnt = db_scalar($sql);\n\t\treturn($cnt);\n }", "title": "" }, { "docid": "bf6eb757f636a4b2104388c7d3507d00", "score": "0.5304173", "text": "public function getEnd(): int;", "title": "" }, { "docid": "dc30c5d67df8280c26858e2e1ac679d5", "score": "0.52904147", "text": "public function getTotalqueryCount() //for all assigned quires\n\t\t{\n\t\t\t\n\t\t\t\t$this->load->model('admin/Users_model', 'users');\n\t\t\t\t$data['queryCount'] = $this->users->getQueryTotalCount();\n\t\t\t\techo $data['queryCount'];\n\t\t\t\n\t\t}", "title": "" }, { "docid": "ab4289e7ed42062e229822c7e0ca713e", "score": "0.5286093", "text": "public function saveTotalRecordCount() {\n $sqlCount = 'SELECT FOUND_ROWS() AS total_records_count';\n $stmtCount = $this->conn->query($sqlCount);\n $recordCount = $stmtCount->fetch();\n\t\n\t//App::pre($recordCount);\n\t\n self::$TOTAL_RECORD_COUNT = $recordCount['total_records_count'];\n }", "title": "" }, { "docid": "dba290ed9d825a8ed90cab9b1c081233", "score": "0.5277471", "text": "private function count()\n\t\t{\n\t\t\t$query = \"\tSELECT count(1) AS 'total'\n\t\t\t\t\t\tFROM\n\t\t\t\t\t\t\t`\".$this->tree_node.\"` `MTN`\n\t\t\t\t\t\tWHERE 1 = 1\n\t\t\t\t\t\t\tAND `MTN`.`application_release`\t= '\".$this->application_release.\"'\n\t\t\t\t\t\";\n\t\t\t$result = $this->link_mt->query($query);\n\n\t\t\t$row = $result->fetch_array(MYSQLI_ASSOC);\t\n\t\t\treturn $row['total'];\t\t\n\t\t}", "title": "" }, { "docid": "700431095bb8ca5afbddd40be31f6e24", "score": "0.52769357", "text": "function _endpage()\n\t\t{\n\t\t\t$this->state=1;\n\t\t}", "title": "" }, { "docid": "6da546436d59e51197effc843a7808b4", "score": "0.51912564", "text": "function total_itineraries()\n\t{\n\t\treturn $this->_tour_voucher_contents['total_itineraries'];\n\t}", "title": "" }, { "docid": "aceb05513f0d95f6c8f2d30a601ba88a", "score": "0.518868", "text": "public function endCounter($identifier='') {\n // First step: get the current exact time\n $time = self::getExactTime();\n\n if (!empty($this->data[$identifier]['endTime'])) {\n $totalTime = $this->data[$identifier]['endTime'] - $this->data[$identifier]['startTime'];\n } else if (array_key_exists($identifier, $this->data)) {\n $this->data[$identifier]['endTime'] = $time;\n $this->data[$identifier]['endMemorySize'] = memory_get_usage();\n $this->data[$identifier]['endMemoryPeakSize'] = memory_get_peak_usage();\n }\n\n return $this->getDiff($identifier, 'time');\n }", "title": "" }, { "docid": "9ab9e084d9908fc3af254d8b9396e1f2", "score": "0.5180378", "text": "public function getActiveEmergencyCount();", "title": "" }, { "docid": "701b90f2891e65ba70f898ce5da41955", "score": "0.5165828", "text": "public function visitEnd()\n {\n if (($this->cv != null)) {\n $this->cv->visitEnd();\n }\n }", "title": "" }, { "docid": "4f59b9f05e8bf029ad879fafeeb38a01", "score": "0.51619023", "text": "public function lendingform_total_count() {\r\n $query = db_select(LENDINGFORM_BASE_TABLE, 'gle')\r\n ->fields('gle');\r\n // execute the query\r\n $result = $query->execute();\r\n \r\n return $result->rowCount();\r\n }", "title": "" }, { "docid": "4f5a950906ed181537b82d8022a86865", "score": "0.515742", "text": "public function realEnd()\r\n\t{\r\n\t\treturn parent::end();\r\n\t}", "title": "" }, { "docid": "f13f3fdd51995f7b3890e18aaaa4f1ee", "score": "0.514689", "text": "public function getTotalOccupiedLots() {}", "title": "" }, { "docid": "923daa6989174d93841a4846f92787e9", "score": "0.51412284", "text": "public function visitEnd()\n {\n }", "title": "" }, { "docid": "1ace57ccc54241a99b57d2e3b9fedc5f", "score": "0.5133837", "text": "public function getCount()\r\n {\r\n throw new Warecorp_ICal_Exception('This method is not emplement now'); \r\n }", "title": "" }, { "docid": "801466c50b029773e5e2760bd0f971cc", "score": "0.51275915", "text": "public function sectionEnd() {}", "title": "" }, { "docid": "801466c50b029773e5e2760bd0f971cc", "score": "0.51275915", "text": "public function sectionEnd() {}", "title": "" }, { "docid": "fc22cc9bfb52787fd4b3f246289a149a", "score": "0.5123182", "text": "public function get_count_company_invoice_no_subsidy() {\n $invoice_id = $this->input->post('invoice');\n $subsidy = $this->input->post('subsidy');\n if (empty($subsidy)) {\n $result = $this->classtraineemodel->get_company_invoice_no_subsidy($invoice_id);\n } else {\n $result = $this->classtraineemodel->get_company_invoice_subsidy($invoice_id);\n }\n echo count($result);\n }", "title": "" }, { "docid": "6649d44ed70f4cf0fcb0c400ea88eaa4", "score": "0.51186055", "text": "public function Subtotal(){\n $this->Subtotal= $this->carro->Total();\n return $this->Subtotal;\n }", "title": "" }, { "docid": "b915395dcd2e17a2ad523769386c3f7b", "score": "0.5117159", "text": "public function getEnd() {\n return $this->end;\n }", "title": "" }, { "docid": "810975692e4f5dd41d30c8da7a0670ed", "score": "0.5110004", "text": "public function totalRecords();", "title": "" }, { "docid": "632c6916e19469819d71e455ff9de0f3", "score": "0.51038027", "text": "public function getEnd()\n {\n return $this->end;\n }", "title": "" }, { "docid": "632c6916e19469819d71e455ff9de0f3", "score": "0.51038027", "text": "public function getEnd()\n {\n return $this->end;\n }", "title": "" }, { "docid": "632c6916e19469819d71e455ff9de0f3", "score": "0.51038027", "text": "public function getEnd()\n {\n return $this->end;\n }", "title": "" }, { "docid": "632c6916e19469819d71e455ff9de0f3", "score": "0.51038027", "text": "public function getEnd()\n {\n return $this->end;\n }", "title": "" }, { "docid": "632c6916e19469819d71e455ff9de0f3", "score": "0.51038027", "text": "public function getEnd()\n {\n return $this->end;\n }", "title": "" }, { "docid": "632c6916e19469819d71e455ff9de0f3", "score": "0.51038027", "text": "public function getEnd()\n {\n return $this->end;\n }", "title": "" }, { "docid": "632c6916e19469819d71e455ff9de0f3", "score": "0.51038027", "text": "public function getEnd()\n {\n return $this->end;\n }", "title": "" }, { "docid": "59eaa17652ffe4879d298ace4ae56178", "score": "0.5098618", "text": "public function count() {\n return $this->total;\n }", "title": "" }, { "docid": "d6062d74d61ba2b840d441eb7a3a1362", "score": "0.5095392", "text": "public function getTotalContactCount() //for all assigned quires\n\t\t{\n\t\t\t\n\t\t\t\t$this->load->model('admin/Users_model', 'users');\n\t\t\t\t$data['queryCount'] = $this->users->getContactTotalCount();\n\t\t\t\techo $data['queryCount'];\n\t\t\t\n\t\t}", "title": "" }, { "docid": "9aebf2e3de05a43338e9a61507725378", "score": "0.5092605", "text": "public function getEnd() {}", "title": "" }, { "docid": "b19a96d555f170e9a7e9f0ba02135057", "score": "0.5083145", "text": "public function getTotalCount();", "title": "" }, { "docid": "b19a96d555f170e9a7e9f0ba02135057", "score": "0.5083145", "text": "public function getTotalCount();", "title": "" }, { "docid": "4a5ac2ebd4831f4a4e5c855865b3e866", "score": "0.507203", "text": "public function getEnd();", "title": "" }, { "docid": "4a5ac2ebd4831f4a4e5c855865b3e866", "score": "0.507203", "text": "public function getEnd();", "title": "" }, { "docid": "b25ddacba2cbed225100ad74b80e00f0", "score": "0.50687534", "text": "public function total_rsegments()\n\t{\n\t\treturn count($this->rsegments);\n\t}", "title": "" }, { "docid": "2f03585892cd5d7acc6aa282179f815c", "score": "0.50675774", "text": "private function endLap() {\n $lapCount = count( $this->laps ) - 1;\n if ( count( $this->laps ) > 0 ) {\n $this->laps[$lapCount]['end'] = $this->getCurrentTime();\n $this->laps[$lapCount]['total'] = $this->laps[$lapCount]['end'] - $this->laps[$lapCount]['start'];\n }\n }", "title": "" }, { "docid": "81a4393c02e513aab6db67be688a1cdc", "score": "0.50583404", "text": "public function end_trace()\n {\n }", "title": "" }, { "docid": "2038ab2dfbd4130eb3a1673aa9c1aea5", "score": "0.5047697", "text": "public function getEndRow(): int\n {\n return $this->end;\n }", "title": "" }, { "docid": "fef38cc78cc2b33bf30eccc6686ee03b", "score": "0.5045065", "text": "function count_rollingroad_runs($cid)\n\t{\n\t\tglobal $db;\n\n\t\t$sql = \"SELECT count(id) AS total FROM \" . GARAGE_ROLLINGROAD_TABLE . \" WHERE garage_id = $cid\";\n\n\t\tif ( !($result = $db->sql_query($sql)) )\n\t\t{\n\t\t\tmessage_die(GENERAL_ERROR, 'Error Getting Total Vehicles', '', __LINE__, __FILE__, $sql);\n\t\t}\n\n\t\t$row = $db->sql_fetchrow($result);\n\t\t$db->sql_freeresult($result);\n\n\t\treturn $row;\n\t}", "title": "" }, { "docid": "d7ef1f69fa01ada1dfaa7a3fe15a2361", "score": "0.5044842", "text": "function MyRightLegMemberTotal($userKey)\n\t{\n\t\tif(isset($userKey))\n\t\t{\n\t\t\n\t\t\t$sql = \"SELECT count(id) \n\t\t\t\t\t FROM \".WPMLM_TABLE_RIGHT_LEG.\" \n\t\t\t\t\t WHERE pkey = '\".$userKey.\"'\n\t\t\t\t\t\";\n\t\t\t$rs= mysql_query($sql); \t\t\t\t\n\t\t\tif(mysql_num_rows($rs)>0)\n\t\t\t{\n\t\t\t\t$row = mysql_fetch_array($rs); \n\t\t\t\t$myRight = $row['count(id)'];\n\t\t\t}else{\n\t\t\t\t$myRight=0;\n\t\t\t}\n\t\t\treturn $myRight;\n\t\t}\n\t}", "title": "" }, { "docid": "2f57a5b3a7c9124fb5c4627c5f7af9b3", "score": "0.5040026", "text": "public function countquery(){ \n\t\treturn $this->query_total; \n\t}", "title": "" }, { "docid": "2f61ed7d0a60b0ef9617686d817d6d8b", "score": "0.5033569", "text": "public function hasLastCounts(){\n return $this->_has(8);\n }", "title": "" }, { "docid": "7a663095ee3f2ac9a9ed3fb08933e0e3", "score": "0.5033421", "text": "public static function end()\n {\n return self::END;\n }", "title": "" }, { "docid": "5c264a5dbb2d5866a2920a54d7161697", "score": "0.5030451", "text": "private function ending()\n {\n if ($this->boundaries > 1) {\n $first = $this->total_pages - $this->boundaries + 1;\n for ($i = $first; $i < $this->total_pages + 1; $i ++) {\n $this->pages[$i - 1] = 1;\n }\n } else {\n $this->pages[$this->total_pages - 1] = 1;\n }\n }", "title": "" }, { "docid": "9b2af8248461f057931425512f2c4a9d", "score": "0.5030399", "text": "protected function MeasuringClosureEnd() {\n global $wpdb;\n $this->Controller->AddInClosureStat(\n microtime(true) - $this->MeasuringInfo[0],\n $wpdb->num_queries - $this->MeasuringInfo[1]\n );\n }", "title": "" }, { "docid": "b6916f7d0ecb1720efd5bf697dab1947", "score": "0.5019866", "text": "function end()\n {\n parent::end();\n }", "title": "" }, { "docid": "73a1749b50a9d1939ab7703aaafa593d", "score": "0.5014844", "text": "public function endReached(){\n\t\t\t$query = \"SELECT COUNT(*)\";\n\t\t\t$query .= $this->getQueryFrom();\n\t\t\t$result = $this->dbi->query($query);\n\t\t\t$size = mysql_result($result,0);\n\t\t\t\n\t\t\t$tableLast = $this->tableSize * (($this->tablePage - 1) + 1);\n\t\t\t\n\t\t\tif ($tableLast >= $size){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "5d862d0cf949980685ca86254936f674", "score": "0.50143206", "text": "function count ()\n\t{\n\t\treturn $this->_length ;\n\t}", "title": "" }, { "docid": "fea8e29a879f7edc8de28f172298f35d", "score": "0.50097245", "text": "function calcNumActiveGuests(){\r\n\t /* Calculate number of GUESTS at site */\r\n\t $sql = $this->connection->query(\"SELECT * FROM \".TBL_ACTIVE_GUESTS);\r\n\t $this->num_active_guests = $sql->rowCount(); \r\n\t}", "title": "" }, { "docid": "f2341e73e8a1ed9241dc1d4ab5d851db", "score": "0.5008819", "text": "public function prepareTotalCount()\n {\n }", "title": "" }, { "docid": "f87201e69eb113228d59f8ee5b8f9e81", "score": "0.50073665", "text": "public function subtotal();", "title": "" }, { "docid": "45369bc0deeaebeb965e7944f72f26f4", "score": "0.500507", "text": "public function CountRow()\n\t{\n\treturn HDB::hus()->Hcount(H_SYSTEM_ACCESS);\t\n\t}", "title": "" }, { "docid": "140212bb0ad04156a88573c8e5d64b6e", "score": "0.50048274", "text": "public function countOutbounds(){\r\n\t\t$sql = \"SELECT count(*) AS broj, state,\r\n\t\t\t\t\tSUM(IF(type = '1', 1,0)) AS `sumACall`,\r\n\t\t\t\t\tSUM(IF(type = '5', 1,0)) AS `sumABrake`,\r\n\t\t\t\t\tSUM(IF(type = '3', 1,0)) AS `sumUpsell`,\r\n\t\t\t\t\tSUM(IF(type = '2', 1,0)) AS `sumCancel`,\r\n\t\t\t\t\tSUM(IF(type = '6', 1,0)) AS `sumOBrake`,\r\n\t\t\t\t\tSUM(IF(type = '7', 1,0)) AS `sumReorder`,\r\n\t\t\t\t\tSUM(IF(type = '8', 1,0)) AS `sumBulk`,\r\n\t\t\t\t\tSUM(IF(type = '9', 1,0)) AS `sumUndec`,\r\n\t\t\t\t\tSUM(IF(type = '10', 1,0)) AS `sumRemail`,\r\n\t\t\t\t\tSUM(IF(type = '11', 1,0)) AS `sumSLink`,\r\n\t\t\t\t\tMAX(submitDate) AS noviDatum\r\n\t\t\t\tFROM phone_order_outbound\r\n\t\t\t\tWHERE 1\r\n\t\t\t\tAND Date(called_time) = Date(NOW())\r\n\t\t\t\tGROUP BY state\";\r\n\t\t//print_r($sql);die();\r\n\r\n\t\t$results=$this->db->query($sql,2);\r\n\t\treturn $results;\r\n\t}", "title": "" }, { "docid": "1969de234601fd3e2b3bb6e1b8b61dfb", "score": "0.5003684", "text": "public static function traceEnd($res = '') \n\t{\n\t\tacPhpCas::setReporting();\n\t\tphpCAS::traceEnd($res = '');\t\t\n\t}", "title": "" }, { "docid": "0c141e7f4e2c85cf0ef7e89a97c723ae", "score": "0.50003624", "text": "public function countAgritax()\n\t{\n\t\t$farmer = \"select id from users_roles where name = 'agritax' \";\n\t\t$f = DB::query($farmer)->execute()->as_array();\n\t\t$f_id = @$f[0]['id']; \n\t\t\n\t\t//got it, lets proceed\n\t\tif(!is_null($f_id)){\n\t\t\t\n\t\t\t//lets count number of users subscribed to the contractor role\n\t\t\t$pple = \"select count(distinct(user_id)) as tmpvar from users_user_roles\nwhere role_id = $f_id \";\n\n\t\t\t$tmp \t= DB::query($pple)->execute()->as_array();\n\t\t\t$fcount = @$tmp[0]['tmpvar'];\n\t\t\treturn $fcount;\n\t\t}\n\t\treturn 0;\n\t\n\t\t\n\t}", "title": "" }, { "docid": "152a0d6380703ab41288e4f897019e11", "score": "0.49992475", "text": "public function total_part()\n\t{\n\t\t$this->db->select('iIdUsuario');\n\t\t$this->db->from('Usuario');\n\t\t$this->db->where('iIdRol',2);\n\t\t$query = $this->db->get();\n\n\t\tif($query!=false) return $query->num_rows();\n\t\telse return false;\n\t}", "title": "" }, { "docid": "85f106e6df9e310c4666294136cfcda9", "score": "0.49851525", "text": "public function count(){\n return $this->_count;\n }", "title": "" }, { "docid": "a8a4f0d927a845ff89637add4771cd28", "score": "0.49727467", "text": "function record_count() { return count($this->records);\n }", "title": "" }, { "docid": "2096b726781aa21807a3620a9df0dee9", "score": "0.4970681", "text": "public function count() {}", "title": "" }, { "docid": "2096b726781aa21807a3620a9df0dee9", "score": "0.4970681", "text": "public function count() {}", "title": "" }, { "docid": "2096b726781aa21807a3620a9df0dee9", "score": "0.4970681", "text": "public function count() {}", "title": "" }, { "docid": "2096b726781aa21807a3620a9df0dee9", "score": "0.4970681", "text": "public function count() {}", "title": "" }, { "docid": "2096b726781aa21807a3620a9df0dee9", "score": "0.4970681", "text": "public function count() {}", "title": "" }, { "docid": "2096b726781aa21807a3620a9df0dee9", "score": "0.4970681", "text": "public function count() {}", "title": "" }, { "docid": "2096b726781aa21807a3620a9df0dee9", "score": "0.4970681", "text": "public function count() {}", "title": "" }, { "docid": "2096b726781aa21807a3620a9df0dee9", "score": "0.4970681", "text": "public function count() {}", "title": "" }, { "docid": "b06b273d91bf0dc6907560cd961336b8", "score": "0.49704427", "text": "function getEnrollmentCount()\r\n {\r\n $count = $this->DB->database_count('enrollment_requests');\r\n return $count;\r\n }", "title": "" }, { "docid": "2096b726781aa21807a3620a9df0dee9", "score": "0.49701414", "text": "public function count() {}", "title": "" }, { "docid": "6e35c332003f1edf87e2db25e8067074", "score": "0.49679077", "text": "function _totalrows(){\n \t$this->load->database(); \n return $this->db->count_all('intro');\n }", "title": "" }, { "docid": "170185cedaddcb230c295acfa1458861", "score": "0.49664342", "text": "abstract public function count();", "title": "" }, { "docid": "170185cedaddcb230c295acfa1458861", "score": "0.49664342", "text": "abstract public function count();", "title": "" }, { "docid": "170185cedaddcb230c295acfa1458861", "score": "0.49664342", "text": "abstract public function count();", "title": "" }, { "docid": "170185cedaddcb230c295acfa1458861", "score": "0.49664342", "text": "abstract public function count();", "title": "" }, { "docid": "656d799c3e53a6c3b2d3ad7ba3b91199", "score": "0.4962931", "text": "public function end() {\n return $this->end;\n }", "title": "" }, { "docid": "5be3eace0b2c1e89c7b53bf13f0b33d7", "score": "0.4959199", "text": "function getTotalUsers(){\n\t\trequire_once('conf.php');\n\t\t$query=\"select * from member where worktype='student' or worktype='staff' or worktype='guest' or worktype='community'\";\n\t\t$result=mysqli_query($con,$query) or die(mysqli_error($con));\n\t\t$counter=0;\n\t\twhile($row=mysqli_fetch_array($result)){\n\t\t\t$counter++;\n\t\t}\n\t\treturn $counter;\n\t}", "title": "" }, { "docid": "021fb7370803fc8730990a2414a6fd13", "score": "0.49582893", "text": "public function getRecordsTotal(): int;", "title": "" }, { "docid": "5908272f8087d6f27cb6affb52a55fb9", "score": "0.49561185", "text": "public function end_game() {\r\n\t\t$max = 0;\r\n\t\tforeach($this->players as $p) {\r\n\t\t\tif ($p['role']['gold'] > $max)\r\n\t\t\t\t$max = $p['role']['gold'];\r\n\t\t}\r\n\t\tforeach($this->players as $p) {\r\n\t\t\tif ($p['role']['gold'] == $max) {\r\n\t\t\t\t$status = array('winner' => 1);\r\n\t\t\t\t$this->ci->roles_m->add_status($p['player_id'], $status);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b804dd3e0b4153f479ef701780d210f5", "score": "0.4952342", "text": "function count ()\r\n\t{\r\n\t\treturn parent::count(array(\r\n\t\t\t'pid' => $this->pid \r\n\t\t));\r\n\t}", "title": "" }, { "docid": "566c1b60d94ca562464ca0bf2c8f2b7d", "score": "0.49522248", "text": "function RecordCount() {}", "title": "" }, { "docid": "5174ffd41c49906f31656cfe8a874439", "score": "0.4949174", "text": "function last_records($rcount)\n{\n \n}", "title": "" }, { "docid": "56d5033dcbb0d073bc92660a979c7038", "score": "0.49462464", "text": "public function countContrat(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n return $this->db->getRows(array(\"return_type\"=>\"count\"));\n\t\t\t\t\t }", "title": "" }, { "docid": "ef18767ac617300531bb7aacba078f5f", "score": "0.4930853", "text": "public function getEnd()\n {\n $value = $this->get(self::END);\n return $value === null ? (integer)$value : $value;\n }", "title": "" }, { "docid": "1fc7fcf787439108c456b49e9b3b59da", "score": "0.49299854", "text": "public function controllerEnd() \n {\n }", "title": "" }, { "docid": "3cb4ae7c104bcc5714994744322ce035", "score": "0.49286643", "text": "public function countEmployee(){\n\t\t\t\t\t return count($this->listeEmployee());\n\t\t\t\t\t }", "title": "" }, { "docid": "8aab33d19139128b0fab59194891aa53", "score": "0.49255508", "text": "public function end() {\n return $this->_end;\n }", "title": "" }, { "docid": "8854f61f0d2b997b1fb05b4e5779afef", "score": "0.49212608", "text": "public function record_count() {\r\n return $this->db->count_all(\"administradores\");\r\n }", "title": "" }, { "docid": "862920f0d8652de510938e18182b8fb9", "score": "0.49173948", "text": "public function recordCount();", "title": "" }, { "docid": "1c6d4088c70500467c08aee389d50ac7", "score": "0.49172613", "text": "function ListRecordCount() {\n\t\t$filter = $this->getSessionWhere();\n\t\tew_AddFilter($filter, $this->CurrentFilter);\n\t\t$filter = $this->ApplyUserIDFilters($filter);\n\t\t$this->Recordset_Selecting($filter);\n\t\t$select = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlSelect() : \"SELECT * FROM \" . $this->getSqlFrom();\n\t\t$groupBy = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlGroupBy() : \"\";\n\t\t$having = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlHaving() : \"\";\n\t\t$sql = ew_BuildSelectSql($select, $this->getSqlWhere(), $groupBy, $having, \"\", $filter, \"\");\n\t\t$cnt = $this->TryGetRecordCount($sql);\n\t\tif ($cnt == -1) {\n\t\t\t$conn = &$this->Connection();\n\t\t\tif ($rs = $conn->Execute($sql)) {\n\t\t\t\t$cnt = $rs->RecordCount();\n\t\t\t\t$rs->Close();\n\t\t\t}\n\t\t}\n\t\treturn intval($cnt);\n\t}", "title": "" }, { "docid": "fa4f9aee5d690c9c59db657cfb10eef0", "score": "0.4916257", "text": "public function end()\n\t{\n\t\tif($this->profiling)\n\t\t{\n\t\t\tPiwik::printLogStatsSQLProfiling();\n\t\t}\n\t}", "title": "" }, { "docid": "4c9380bef46d8942d8a0560f00e0be2e", "score": "0.49114385", "text": "public function getAssignedqueryCount() //for all assigned quires\n\t\t{\n\t\t\t\n\t\t\t\t$this->load->model('admin/Users_model', 'users');\n\t\t\t\t$data['queryCount'] = $this->users->getQueryAssignedCount();\n\t\t\t\techo $data['queryCount'];\n\t\t\t\n\t\t}", "title": "" }, { "docid": "7dab49319c4b7525444b3b05fd2a8f8e", "score": "0.49112386", "text": "public function count()\n {\n }", "title": "" }, { "docid": "7dab49319c4b7525444b3b05fd2a8f8e", "score": "0.49112386", "text": "public function count()\n {\n }", "title": "" }, { "docid": "7dab49319c4b7525444b3b05fd2a8f8e", "score": "0.49112386", "text": "public function count()\n {\n }", "title": "" } ]
13dd4076b1f2e33d72ba6cbdd2ab6893
Sets a new eMailMessage
[ { "docid": "46a3f974e3d14054a7e487b876f2b5b8", "score": "0.567147", "text": "public function setEMailMessage(\\GoetasWebservices\\Client\\UPS\\Ship\\Data\\PreAlertEMailMessageType $eMailMessage)\n {\n $this->eMailMessage = $eMailMessage;\n return $this;\n }", "title": "" } ]
[ { "docid": "12b07def72d95cc95cf4de244f4bb786", "score": "0.6967275", "text": "function setMail( $value )\r\n {\r\n $this->Mail = $value;\r\n }", "title": "" }, { "docid": "c358c9b654ee4e7dcda3c90235eeeaaa", "score": "0.6860407", "text": "public function setMessage($message)\n {\n if (!$message instanceof self) {\n throw new \\InvalidArgumentException('setMessage expects an instance of EmailMessage');\n }\n $this->from = $message->getFrom();\n $this->fromName = $message->getFromName();\n $this->subject = $message->getSubject();\n $this->body = $message->getBody();\n $this->replyTo = $message->getReplyTo();\n $this->isPlain = $message->isPlain();\n\n return $this;\n }", "title": "" }, { "docid": "2a2491962ca08f04a3a1df6c44c817d5", "score": "0.68095404", "text": "public function setMail($value) { $this->mail = $value; }", "title": "" }, { "docid": "40271085c49976e9727b8d77ff1c4733", "score": "0.67331403", "text": "function EmailMessage()\n\t\t{\n\t\t\t$this->obTemplate->clear_cache('electedrepresentative/ihtml/message.html');\n\t\t\t$this->obTemplate->assign('message', $this->message);\n\t\t\t$this->obTemplate->assign('extraVar1', $this->extraVar1);\n\t\t\t$this->obTemplate->assign('Content',$this->obTemplate->fetch('electedrepresentative/ihtml/message.html'));\n\t\t\t$this->parse();\n\t\t}", "title": "" }, { "docid": "53381e8d2534b720fcd4181f0647796e", "score": "0.65854937", "text": "public function setEMail($newEMail) {\n\t\t// Checks if $newEMail is empty\n\t\tif(empty ($newEMail) === true) {\n\t\t\tthrow(new InvalidArgumentException(\"Email field cannot be empty\"));\n\t\t}\n\t\t// Trim any white space\n\t\t$newEMail = trim($newEMail);\n\n\t\t// Remove all characters except letters, digits, and !#$%&'*+-/=?^_`{|}~@.[].\n\t\t$newEMail = (filter_var($newEMail, FILTER_SANITIZE_EMAIL));\n\n\t\t// Validate e-mail format\n\t\tif(filter_var($newEMail, FILTER_VALIDATE_EMAIL) === false) {\n\t\t\tthrow(new InvalidArgumentException(\"Submitted eMail $newEMail is not in a valid format\"));\n\t\t}\n\n\t\t// Convert and store the eMail\n\t\t$this->eMail = $newEMail;\n\t}", "title": "" }, { "docid": "4dab158f1c39b4eca48c737589363635", "score": "0.632966", "text": "function setEmailAddress($e)\n {\n $this->__emailaddress = $e;\n }", "title": "" }, { "docid": "8750a9a7f00d6783c0555fe5fd8bcfcd", "score": "0.6224245", "text": "public function setMessage($message)\n {\n $this->mailer->Body = $message;\n\n return $this;\n }", "title": "" }, { "docid": "c78ac623bde0d9af1f4d0768c7d8f0b4", "score": "0.61971295", "text": "public function newEmail()\n {\n $e = new Email();\n if($this->default_sender) {\n $e->setSender($this->default_sender);\n }\n \n return $e;\n }", "title": "" }, { "docid": "3d18b131f2d4edefab3e9a4bd7586723", "score": "0.617544", "text": "public function setEmail($newEmail){\n $this->email = $newEmail;\n }", "title": "" }, { "docid": "3d18b131f2d4edefab3e9a4bd7586723", "score": "0.617544", "text": "public function setEmail($newEmail){\n $this->email = $newEmail;\n }", "title": "" }, { "docid": "ea9a56dd89b359a53a6c1328ea2a9f6d", "score": "0.61603665", "text": "public function setContent($data){\n\t\t$this->emaildata = $data;\n\t}", "title": "" }, { "docid": "839e67f7aa0e582d31d98fe46f634771", "score": "0.60770065", "text": "public function setMessage( $message );", "title": "" }, { "docid": "59e1af4de7fd3246510c37dc81ff7cf9", "score": "0.60711163", "text": "protected function setEmail()\n {\n if ( ! isset( $_POST['email'] ) ) {\n $this->error = true;\n $this->data['error']['email'] = 'Please provide your email address.';\n return;\n }\n \n $this->email = strip_tags( trim( $_POST['email'] ) );\n \n if ( ! filter_var( $this->email, FILTER_VALIDATE_EMAIL ) ) {\n $this->error = true;\n $this->data['error']['email'] = 'Please provide a valid email address.';\n return;\n }\n \n $this->data['email'] = htmlspecialchars( $this->email );\n }", "title": "" }, { "docid": "9bab4f407825a4792c8241c5c7783215", "score": "0.60621786", "text": "public function __construct($msg)\n {\n $this->emailMessageObj = $msg;\n }", "title": "" }, { "docid": "ad16a62c3eb0416e94d80cc6b95db30c", "score": "0.6053114", "text": "public function messageSet($message)\n {\n $this->Message = $message;\n\n return $this;\n }", "title": "" }, { "docid": "31d832fa14843c34f6571c9c8739d269", "score": "0.6043728", "text": "public function set_email($email) {\n\n if ( ! empty($email) ) {\n if (is_object($email) ) {\n $this->id = $email->id;\n $this->subject = $email->subject;\n $this->body = $email->body;\n $this->timecreated = $email->timecreated;\n // Get writer.\n if ( ! isset($email->writer) ) {\n $this->userid = $email->userid;\n } else {\n $this->userid = $email->writer;\n }\n $this->course = $email->course;\n } else if (is_int($email) ) {\n if ( $mail = $DB->get_record('binerbo_mail', array('id' => $email)) ) {\n $this->id = $mail->id;\n $this->subject = $mail->subject;\n $this->body = $mail->body;\n $this->timecreated = $mail->timecreated;\n $this->userid = $mail->userid;\n $this->course = $mail->course;\n }\n }\n }\n\n }", "title": "" }, { "docid": "bcec9eddd669d2ccef6145a9549010a0", "score": "0.6025559", "text": "public function setEmail($newEmail) {\n\t\t// verify the email address is correct\n\t\t$newEmail = trim($newEmail);\n\t\t$newEmail = filter_var($newEmail, FILTER_SANITIZE_EMAIL);\n\t\tif(empty($newEmail) === true) {\n\t\t\tthrow(new InvalidArgumentException(\"user information is insecure or empty\"));\n\t\t}\n\t\t// verify the email can fit into the database.\n\t\tif(strlen($newEmail) > 128) {\n\t\t\tthrow(new RangeException(\"Email is to long\"));\n\t\t}\n\t\t//store the tweet content\n\t\t$this->email = $newEmail;\n\t}", "title": "" }, { "docid": "0c5bedb86371e5ef0236b043407ef65b", "score": "0.60191196", "text": "public function set_email($value){\n\t\t\t$this->email_to_notify = $value;\n\t\t}", "title": "" }, { "docid": "1b4f112169f2be7f52462c34ca15e193", "score": "0.6013047", "text": "function set_contact_email($new_contact_email){\n\t\t$this->detail_info_is_loaded=true;\n\t\t$this->contact_email=$new_contact_email;\n\t}", "title": "" }, { "docid": "a48e9b0cce61fd424d653fdf8b9c35dc", "score": "0.5978248", "text": "private function setMail() {\n $this->Assunto = \"O cliente ({$this->Data['user_fullname']}) efetuou cadastro no Site!\";\n $this->RemetenteNome = $this->Data['user_fullname'];\n $this->RemetenteEmail = $this->Data['user_email'];\n $this->UserDDD = $this->Data['user_ddd'];\n $this->UserTelefone = $this->Data['user_telefone'];\n $this->UserCPF = $this->Data['user_cpf_cnpj'];\n $this->UserAddress = $this->Data['user_endereco'];\n $this->UserAddressNumber = $this->Data['end_numero'];\n $this->UserAddressComp = $this->Data['end_complemento'];\n $this->UserAddressBairro = $this->Data['end_bairro'];\n $this->UserAddressCEP = $this->Data['cep'];\n $this->UserAddressCidade = $this->Data['end_cidade'];\n $this->UserAddressEstado = $this->Data['end_estado'];\n $this->UserSubDomain = $this->Data['user_username'];\n $this->UserDomain = $this->Data['user_domain'];\n $this->UserComoConheceu = $this->Data['como_conheceu'];\n $this->UserTema = $this->Data['theme_id'];\n $this->UserPlanoEscolhido = $this->Data['plano_id'];\n $this->FormaPagamento = ($this->Data['forma_pagamento'] == 'boleto' ? 'Boleto Bancário' : 'Cartão de Crédito');\n $this->UserTotalPagar = $this->Data['total_pagar'];\n\n $this->DestinoNome = 'Contato Retratum';\n $this->DestinoEmail = 'contato@retratum.com';\n\n\n $this->Data = null;\n $this->setMsg();\n }", "title": "" }, { "docid": "cd334028284004163a6417ec1ca51af5", "score": "0.5967452", "text": "public function setMail(Zend_Mail $mail) {\n\t\t$this->_mail = $mail;\n\t}", "title": "" }, { "docid": "49a17513be6be52b5ba741d5bb4fba8f", "score": "0.5964114", "text": "public function _set($recipient_fullname, $recipient_email, $mail_subject, $mail_body, $wordWrap = 50) {\n\n # Set \"TO\" address\n $this->phpMail->addAddress($recipient_email, $recipient_fullname);\n\n # Email settings\n $this->phpMail->WordWrap = $wordWrap;\n $this->phpMail->Subject = $mail_subject;\n $this->phpMail->Body = $mail_body;\n\n # Confirms that this method has been used\n $this->_set = true;\n\n }", "title": "" }, { "docid": "07d1587590829f9c3198383ec4913e06", "score": "0.5949347", "text": "function addEmail() {\n\t\t$email = new email;\n\t\t$controller = new emailsController;\n\t\t$headers = emailSectionsController::getSections('header');\n\t\t$headers[0] = 'None';\n\t\tksort($headers);\n\t\t$footers = emailSectionsController::getSections('footer');\n\t\t$footers[0] = 'None';\n\t\tksort($footers);\n\t\t$template = new template;\n\t\t$template->assignClean('_TITLE', systemSettings::get('SITENAME').' Emails Admin');\n\t\t$template->assignClean('email', $email->fetchArray());\n\t\t$template->assignClean('headers', $headers);\n\t\t$template->assignClean('footers', $footers);\n\t\t$template->assignClean('propertyMenuItem', getRequest('propertyMenuItem'));\n\t\t$template->assignClean('mode', 'add');\n\t\t$template->assignClean('admin', adminCore::getAdminUser());\n\t\t$template->setSystemDataGateway();\n\t\t$template->getSystemMessages();\n\t\t$template->display('admin/emailEdit.htm');\n\t}", "title": "" }, { "docid": "c5b20a47e9e907e8fb95ea6255cfc5cc", "score": "0.5898855", "text": "function setMessage($message)\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "10cc3b94b04b73b271cbe54b85db2e0a", "score": "0.5888288", "text": "public function setMessage($value)\n {\n $this->params['messageForRecipient'] = $value;\n return $this;\n }", "title": "" }, { "docid": "ff47a374bd22d9474d9d79c75861d134", "score": "0.5879145", "text": "public function setMessage($value){\n\t\t$this->message = $value;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "9bc6260cc66927f9b3b14e93c04b2951", "score": "0.5874536", "text": "public function set_message($message)\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "db45fa7d54d76fef4bb115381b846c43", "score": "0.5851491", "text": "public function setEmail($email)\r\n {\r\n \r\n if (gettype($email) == 'string') // S'il ne s'agit pas d'un string.\r\n {\r\n trigger_error('Le mail n\\'est pas du type String' , E_USER_WARNING);\r\n return;\r\n }\r\n \r\n $this->_email = $email;\r\n }", "title": "" }, { "docid": "1766a4066fbdafb1d9f034eb877032c1", "score": "0.5844985", "text": "public function setMail($m = 'nomail@dom.es') //podemos poner un valor por defecto si no nos lo pasan.\n {\n $this->mail = $m;\n\n return $this;\n }", "title": "" }, { "docid": "631b184d3d578dc85a6d5123ac8f9212", "score": "0.58262515", "text": "function setMessage($message)\n\t\t{\n\n\t\t\t$this->message=$message;\n\t\t}", "title": "" }, { "docid": "a744321313ebc53e1c000fdc44f5ebd2", "score": "0.5814747", "text": "public function setMessage($message)\n {\n $this->message = $message; \n }", "title": "" }, { "docid": "5911e180bdd06d29e2db4ddd3bb1b84f", "score": "0.5809327", "text": "#[@xmlmapping(element= 'msg')]\n public function setMessage($m) {\n $this->message= $m;\n }", "title": "" }, { "docid": "2d4d28338421c6513c3b555dd4b3c04c", "score": "0.58090824", "text": "private function initMessage() {\n if (empty($this->message)) {\n $this->message = Swift_Message::newInstance($this->subject);\n }\n\n $this->message->setSubject($this->subject)\n ->setFrom($this->parseMail($this->from))\n ->setTo($this->to);\n\n if (!empty($this->replyTo)) {\n $this->message->setReplyTo($this->parseMail($this->replyTo));\n }\n\n if (!empty($this->cc)) {\n $this->message->setCc($this->parseMail($this->cc));\n }\n\n if (!empty($this->bcc)) {\n $this->message->setBcc($this->parseMail($this->bcc));\n }\n\n // Body\n if ($this->sendAs == 'text') {\n $this->message->setBody($this->textMessage, $this->getContentType($this->sendAs));\n } else {\n // If both or html..\n $mess = '';\n if (!empty($this->__message)) {\n foreach ($this->__message as $val) {\n $mess .= $val;\n $mess .= \"\\n\";\n }\n }\n $this->message->setBody($mess, $this->getContentType($this->sendAs));\n //$this->message->setBody(implode(\"\\n\", $this->__message), $this->getContentType($this->sendAs));\n }\n if ($this->sendAs == 'both') {\n $this->message->addPart($this->textMessage, 'text/plain');\n }\n }", "title": "" }, { "docid": "d2f60d8af28b6eaba4d988ca430f1633", "score": "0.5799579", "text": "function set_email($arg) {\n $this->email = $arg;\n }", "title": "" }, { "docid": "74daede4c67fd13d645958729b71210e", "score": "0.5788507", "text": "public function setMessage($message) {\n $this->message = $message;\n }", "title": "" }, { "docid": "9153095d7f2e413490b8fb2ef06e2b1e", "score": "0.5776978", "text": "public function message( $message ) {\n\n\t\t$this->message = \\apply_filters( 'wpforms_emails_mailer_message', $message, $this );\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "b2c3f0a1c503bbaa7d0252906fe7115e", "score": "0.5766198", "text": "public function setEmail($email)\n {\n //set to 'bad email' if more than 30 chars\n if (strlen($email) > 30)\n {\n $this->email = \"Bad email\";\n\n }\n else\n {\n $this->email = $email;\n }\n }", "title": "" }, { "docid": "96d32300d7e1f57aebdc95415ba8731b", "score": "0.5762533", "text": "public function setEmail($value)\n {\n $element = $this->query('atom:email', self::SINGLE);\n if (null === $element) {\n $element = $this->getDomElement()->ownerDocument->createElementNS($this->ns(), 'email');\n $this->getDomElement()->appendChild($element);\n }\n $element->nodeValue = $value;\n $this->setCachedProperty('email', $value);\n\n return $this;\n }", "title": "" }, { "docid": "34017b5b1f2dd3a97901f4068a228584", "score": "0.57619405", "text": "public function setMailBody(array $mailBody): self;", "title": "" }, { "docid": "3f257440d3b7fc22416a1ebbe49712b7", "score": "0.5756384", "text": "function SetEmail($id, $email){\n\t}", "title": "" }, { "docid": "870f509cdac86073868245e4b998a924", "score": "0.575401", "text": "public function setMessage($message);", "title": "" }, { "docid": "a17fc54e70f6b9966d07b39f1c107f05", "score": "0.57489604", "text": "public function __construct()\n\t {\n\t\t $this->_emailer = Yii::app()->mailer;\n\t\t $this->_emailMessageModel = new EmailMessages();\n\t }", "title": "" }, { "docid": "be70d3296e879f465d25cf08cd5d12e8", "score": "0.5733788", "text": "function setEmail($email) {\n\t\t$this->_email = $email;\n\t\t$this->logMsg ( sprintf ( \"setEmail\", $email ), MM_ALL );\n\t\treturn $this->_email;\n\t}", "title": "" }, { "docid": "eaf907a883593c8bdb3e8253e1dd0574", "score": "0.57304525", "text": "function setEmail($email=\"\") \r\n\t\t{\r\n\t\t\t\t$this->email=$email;\r\n\t\t}", "title": "" }, { "docid": "458fbc811a2c156df99efc023dd92d77", "score": "0.5712203", "text": "private function initEmail() {\r\n\t\t$this->mail = new PHPMailer ();\r\n\t\t\r\n\t\t// please look into the config/config.php for much more info on how to use this!\r\n\t\t// use SMTP or use mail()\r\n\t\tif (EMAIL_USE_SMTP) {\r\n\t\t\t// Set mailer to use SMTP\r\n\t\t\t$this->mail->IsSMTP ();\r\n\t\t\t// useful for debugging, shows full SMTP errors\r\n\t\t\t// $mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only\r\n\t\t\t// Enable SMTP authentication\r\n\t\t\t$this->mail->SMTPAuth = EMAIL_SMTP_AUTH;\r\n\t\t\t// Enable encryption, usually SSL/TLS\r\n\t\t\tif (defined ( EMAIL_SMTP_ENCRYPTION )) {\r\n\t\t\t\t$this->mail->SMTPSecure = EMAIL_SMTP_ENCRYPTION;\r\n\t\t\t}\r\n\t\t\t// Specify host server\r\n\t\t\t$this->mail->Host = EMAIL_SMTP_HOST;\r\n\t\t\t$this->mail->Username = EMAIL_SMTP_USERNAME;\r\n\t\t\t$this->mail->Password = EMAIL_SMTP_PASSWORD;\r\n\t\t\t$this->mail->Port = EMAIL_SMTP_PORT;\r\n\t\t} else {\r\n\t\t\t$this->mail->IsMail ();\r\n\t\t}\r\n\t\t\r\n\t\t$this->mail->From = EMAIL_VERIFICATION_FROM;\r\n\t\t$this->mail->FromName = EMAIL_VERIFICATION_FROM_NAME;\r\n\t}", "title": "" }, { "docid": "40b70e7c7711dcae858866bb8d4b6951", "score": "0.5708179", "text": "public function set_message( string $message ): self {\n\t\t$this->message = $message;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "da61e0b389e476d7eee7aea303be9f2a", "score": "0.5706771", "text": "public function __construct($email, $message)\n {\n $this->email = $email;\n $this->message = $message;\n }", "title": "" }, { "docid": "cb3bec388c2edebca26a503764ffbe57", "score": "0.5696474", "text": "public function setBody()\n {\n $to = $this->cleanEmail( $this->to );\n $to = urlencode( $to );\n \n $body = '';\n \n $body .= \"Hey there,\\n\\n\";\n $body .= \"Thank you for registering to meditate.\\n\\n\";\n $body .= \"Please confirm your email address and activate your account by clicking the link:\\n\";\n $body .= \"http://$this->url/activate/\";\n $body .= $to . '/' . $this->activation_key;\n $body .= \"\\n\\nHappy meditating\";\n \n $this->body = $body;\n }", "title": "" }, { "docid": "469abae1c0695ab706d0a88dbb000bd5", "score": "0.56956905", "text": "function setMessage($inMessage) {\n\t\tif ( $inMessage !== $this->_Message ) {\n\t\t\t$this->_Message = $inMessage;\n\t\t}\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "b66160e79b103dc9bcd2d1811a8b8422", "score": "0.5694833", "text": "public function setMessage( $message )\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "39ae6fd3e0d23f98f6c064c32f0bc897", "score": "0.56929225", "text": "public function __construct(Message $message = null) {\n if ($message === null) {\n $message = new Message();\n $message->setEncoding('UTF-8');\n }\n $this->setMessage($message);\n $this->sendmail = new Sendmail();\n }", "title": "" }, { "docid": "bc9c2593ae53eac2a272fe12de48f3f4", "score": "0.569029", "text": "public function setMessage($string = '')\n {\n if (empty($string)) {\n throw new \\Exception('Message should not be empty.');\n }\n\n $this->_message = $string;\n\n return $this;\n }", "title": "" }, { "docid": "2909706f985ce66853214c70c2f3c10c", "score": "0.5687067", "text": "public static function set_mail (Array $array)\r\n\t{\r\n\t\tglobal $INI;\r\n\r\n\t\t// extract all the key values into variables\r\n\t\tif (is_array($array))\r\n\t\t\textract($array, EXTR_OVERWRITE);\r\n\r\n\t\t$from_email = isset($from_email) ? $from_email : '';\r\n\t\t$from_name \t= isset($from_name) ? $from_name : '';\r\n\t\t$wordwrap \t= isset($wordwrap) ? $wordwrap : 100;\r\n\t\t$smtp \t\t= isset($smtp) ? $smtp : !empty($INI['SMTP']) ? $INI['SMTP'] : '';\r\n\t\t$text \t\t= isset($text) ? $text : false;\r\n\r\n\t\t// SMTP setting\r\n\t\tif (!$to_email || !$subject || !$body || !$from_email || !$from_name)\r\n\t\t\tthrow new Exception('App::set_mail - Please set the required values');\r\n\r\n\t\t$mail = new phpmailer();\r\n\t\t$mail->IsMail();\r\n\r\n\t\tif ($smtp)\r\n\t\t\t$mail->Host = $smtp; // SMTP server\r\n\r\n\t\tif ($wordwrap)\r\n\t\t\t$mail->WordWrap = $wordwrap;\r\n\r\n\t\t$mail->From = $from_email;\r\n\t\t$mail->FromName = $from_name;\r\n\t\t$mail->Subject = $subject;\r\n\r\n\t\t// set to email\r\n\t\tif (empty($to_name))\r\n\t\t\t$mail->AddAddress($to_email);\r\n\t\telse\r\n\t\t\t$mail->AddAddress($to_email, $to_name);\r\n\r\n\t\t// set the body\r\n\t\tif ($text === true)\r\n\t\t\t$mail->Body = $body;\r\n\t\telse {\r\n\t\t\t$mail->IsHTML(true);\r\n\t\t\t$mail->Body = $body;\r\n\t\t}\r\n\t\tif (strlen($text) > 4)\r\n\t\t\t$mail->AltBody = $text;\r\n\r\n\t\tif (!empty($return_class))\r\n\t\t\treturn $mail;\r\n\t\telse\r\n\t\t\treturn $mail->send();\r\n\t}", "title": "" }, { "docid": "7f0fad9064513951148c773c54bcd3de", "score": "0.5665422", "text": "protected function createMailMessage()\n {\n return $this->objectManager->get(MailMessage::class);\n }", "title": "" }, { "docid": "7d24d12434322dc4155c5d12cffb047f", "score": "0.56587845", "text": "public function setMessage(Message $message) {\r\n $this->_message = $message;\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "e1ec3b643b2affb931ec624f37ce6f30", "score": "0.5656805", "text": "private function init(){\n\t\t\n\t\t$this->_mailInstance = new Zend_Mail();\n\t\t$this->_mailInstance->setDate( Zend_Date::now(Zend_Locale::BROWSER) )\n\t\t\t\t\t\t\t->setFrom( $this->_replay_account, $this->_replay_name )\n\t\t\t\t\t\t\t->setReplyTo( $this->_replay_account );\n\t\t\n\t}", "title": "" }, { "docid": "982ccfe3da3d8e75248fd7d72ba28da2", "score": "0.56511027", "text": "public function setMessage(string $message): ContactMessage {\n $this->message = $message;\n return $this;\n }", "title": "" }, { "docid": "e8ea04d13624bfe3eb225a27da761892", "score": "0.56448674", "text": "public function __construct($email,$message)\n {\n $this->email= $email;\n $this->message= $message;\n }", "title": "" }, { "docid": "0608e388472e7d6b2f087821a8863199", "score": "0.5643314", "text": "public function message($Str_Message)\n\t{\n\t\t//If the message is not a string handle exception.\n\t\tif (!is_string($Str_Message))\n\t\t{\n\t\t\tglobal $CMD;\n\t\t\t$CMD->handle_exception('Email message is not a string', 'MW:1010');\n\t\t\treturn $this;\n\t\t}\n\t\t\n\t\t//Filter potential headers from message.\n\t\t//*!*I need to go back to these regular expressions, they look a little weak case-wise to me.\n\t\t$Arr_IllegalHeaders = array(\"/to\\:/i\", \"/from\\:/i\", \"/bcc\\:/i\", \"/cc\\:/i\", \"/Content\\-Transfer\\-Encoding\\:/i\", \"/Content\\-Type\\:/i\", \"/Mime\\-Version\\:/i\");\n\t\t$Str_Message = preg_replace($Arr_IllegalHeaders, '', $Str_Message);\n\n\t\t//Set message.\n\t\t$this->Str_EmailMessage = $Str_Message;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "aea891afba06b1ced68c91104abad084", "score": "0.5642034", "text": "public function reset_inner_message()\n\t{\n\t\t$this->_message = new MessageEntity();\n\t}", "title": "" }, { "docid": "d55f7cc80c8041e61e1df808e7dd3799", "score": "0.5632663", "text": "public function setBody($body)\n {\n if (!is_string($body) && $body !== null)\n {\n if (!is_object($body))\n {\n throw new MailException(sprintf(\n '%s expects a string or object argument; received \"%s\"',\n __METHOD__,\n gettype($body)\n ));\n }\n if (!$body instanceof Mime\\Message)\n {\n if (!method_exists($body, '__toString'))\n {\n throw new MailException(sprintf(\n '%s expects object arguments of type Wedeto\\Mail\\Mime\\Message or implementing __toString();'\n . ' object of type \"%s\" received',\n __METHOD__,\n get_class($body)\n ));\n }\n $body = (string)$body;\n }\n }\n $this->body = $body;\n\n if (!$this->body instanceof Mime\\Message)\n return $this;\n\n // Get headers, and set Mime-Version header\n $this->addHeader('Mime-Version', '1.0');\n\n // Multipart content headers\n if ($this->body->isMultiPart())\n {\n $mime = $this->body->getMime();\n $this->header->setContentType('multipart/mixed; boundary=\"' . $mime->boundary() . '\"');\n return $this;\n }\n\n // MIME single part headers\n $parts = $this->body->getParts();\n if (!empty($parts))\n {\n $part = array_shift($parts);\n foreach ($part->getHeadersArray(Header::EOL) as $vals)\n {\n $name = $vals[0];\n $value = $vals[1];\n $this->addHeader($vals[0], $vals[1]);\n }\n }\n return $this;\n }", "title": "" }, { "docid": "013822b1fd5bdce3a1dca93511145c90", "score": "0.56228375", "text": "public function setMessage($message)\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "013822b1fd5bdce3a1dca93511145c90", "score": "0.56228375", "text": "public function setMessage($message)\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "e43c5c4e343ee8a045ed36abc73aefbe", "score": "0.56191957", "text": "public function setMessage($message) {\n self::$message = $message;\n }", "title": "" }, { "docid": "8021a33e80d6edb59cef03d3a0686d29", "score": "0.56068665", "text": "public function setEmail($value)\n {\n $this->email = $value;\n }", "title": "" }, { "docid": "c35fdb36d590b0c9a3dab580a3560186", "score": "0.5603233", "text": "public function __construct(Mailable $email)\n {\n $this->email = $email;\n }", "title": "" }, { "docid": "fa59aabbfbd7888968fed262c69494bf", "score": "0.5592502", "text": "public function setEmail($newEmail) {\n\t\t$newEmail = filter_var($newEmail, FILTER_VALIDATE_EMAIL);\n\n\t\t//Exception if not a valid email address\n\t\tif($newEmail === false) {\n\t\t\tthrow (new InvalidArgumentException(\"email is not a valid email\"));\n\t\t}\n\n\t\t//Exception if email will not fit in the database\n\t\tif(strlen($newEmail) > 128) {\n\t\t\tthrow(new RangeException(\"email address is too large\"));\n\t\t}\n\t}", "title": "" }, { "docid": "af63d1f35a4ff34d752766c821d2b6e7", "score": "0.5590083", "text": "public function testSetAndGetEmail()\n {\n /*\n //Expect Exception - 'It is not a valid email address'\n $this->expectException(\\Exception::class);\n $this->person->setEmail('');\n\n //Expect Exception - 'It is not a valid email address'\n $this->expectException(\\Exception::class);\n $this->person->setEmail('jhon.snow');\n\n //Expect Success\n $this->assertEquals(null, $this->person->getEmail());\n $this->assertInstanceOf(Person::class, $this->person->setEmail('jhon.snow@test.com'));\n $this->assertEquals('jhon.snow@test.com', $this->person->getEmail());\n */\n\n $this->person->email = '';\n $this->assertEquals('', $this->person->email);\n\n $this->person->email = 'jhon.snow@test.com';\n $this->assertEquals('jhon.snow@test.com', $this->person->email);\n }", "title": "" }, { "docid": "07487977c7b493e221b9dd70ffd8aa25", "score": "0.55862594", "text": "public function setEmail($val)\n {\n $this->_propDict[\"email\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "e7e4334ec9528a74d9d370e2e612f29c", "score": "0.55816793", "text": "public function _setMail($mail)\n {\n $this->mail = $mail;\n }", "title": "" }, { "docid": "d00f1f83b44636a8270b1db719b7fc4d", "score": "0.5570889", "text": "function setMessage(mofilmUserPrivateMessage $inMessage) {\n\t\t$this->_Message = $inMessage;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "63950232d5a04a9dd91cad71d62f5934", "score": "0.5566407", "text": "public function testSetErrorNonSmtp()\n {\n self::assertFalse($this->Mail->isError(), 'Errors found after class initialization');\n\n // \"Abuse\" the `PHPMailer::set()` method to register an error.\n self::assertFalse($this->Mail->set('nonexistentproperty', 'value'));\n\n self::assertTrue($this->Mail->isError(), 'Error count not incremented');\n self::assertSame(\n 'Cannot set or reset variable: nonexistentproperty',\n $this->Mail->ErrorInfo,\n 'Error info not correctly set'\n );\n }", "title": "" }, { "docid": "64afae3e5bc213cbcc6d85686cda1530", "score": "0.5546357", "text": "public function setMessage($message) : void\n {\n $this->message = $message;\n }", "title": "" }, { "docid": "f8e0fd1f033097a7871480e3e71f3f41", "score": "0.554489", "text": "public function set_email($email) {\n\t\t$this->_email = email;\n\t}", "title": "" }, { "docid": "3565c8f4f6bb47b9b0208d5a5f908d5b", "score": "0.5535076", "text": "public function setMail(string $mail)\r\n {\r\n $this->mail = $mail;\r\n }", "title": "" }, { "docid": "da57635cc9d68c8342f0c357d4251614", "score": "0.55322576", "text": "public function setEmail(string $email) : self\n {\n $this->initialized['email'] = true;\n $this->email = $email;\n return $this;\n }", "title": "" }, { "docid": "9c04936928369787d77eae4d05c9237d", "score": "0.55270225", "text": "public function testSetErrorNonSmtpWithMailerSmtp()\n {\n $this->Mail->Mailer = 'smtp';\n\n $this->testSetErrorNonSMTP();\n }", "title": "" }, { "docid": "5a7c0bf4173019429394a350fc7f903d", "score": "0.5526607", "text": "public function setMessage(string $m): void {\r\n\t\t$this->message = $m;\r\n\t}", "title": "" }, { "docid": "84944f0772be774f0eae707ef5a62035", "score": "0.551892", "text": "public function testEmailAddressFailure()\n {\n $Mail = new \\Idexx\\EdsServicePhp\\Message();\n\n $Mail->setTo( 'invalidEmail' );\n }", "title": "" }, { "docid": "031b7763dfe1308d72e10793503237bb", "score": "0.55179477", "text": "public function setEmail($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->email !== $v) {\n\t\t\t$this->email = $v;\n\t\t\t$this->modifiedColumns[] = PessoaPeer::EMAIL;\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "3e70433edd17d5ca8d44d68b9e72d6ac", "score": "0.55159265", "text": "function setEmail($email)\n\t\t{\n\n\t\t\t$this->email=$email;\n\t\t}", "title": "" }, { "docid": "b0334e21cd24246fff0945d0b4157388", "score": "0.55156815", "text": "public function setMail($Mail) {\n \t$this->BD->update(\"MAIL\",$Mail,\"iduser\",$this->ID);\n \t$this->MAIL = $Mail;\n }", "title": "" }, { "docid": "f9ec84e1b9bacd08065882306e5fbb4a", "score": "0.5508579", "text": "public function setEmailAddress(string $emailAddress) : self\n {\n $this->initialized['emailAddress'] = true;\n $this->emailAddress = $emailAddress;\n return $this;\n }", "title": "" }, { "docid": "8242bc9166167ce6a93e0f42b72853d1", "score": "0.5504573", "text": "public function setEmail($anEmail) {\n\t\t$this->_email = $anEmail;\n\t}", "title": "" }, { "docid": "2f08f3b1c87d318dc45aac5e1bad5346", "score": "0.54981834", "text": "public function setText(string $text): Mail\n {\n $this->config['text'] = $text;\n\n return $this;\n }", "title": "" }, { "docid": "8cedd0cb3e46f8126cec879307c27157", "score": "0.54925865", "text": "public function setRecipientEmail($val)\n {\n $this->_propDict[\"recipientEmail\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "eb4be96bfa5eab992f35423e1ab28414", "score": "0.5488649", "text": "public function setEmail($email)\n { \n if(!filter_var($email, FILTER_VALIDATE_EMAIL))\n {\n $this->error = '<p>Saisissez un email</p>';\n return $this->error;\n }\n else\n {\n $this->email = $email;\n return $this;\n }\n }", "title": "" }, { "docid": "0e1e7f543a61104e3ab22cf7e6f17ab8", "score": "0.5487527", "text": "public function setEmail($value)\r\n {\r\n return $this->set(self::EMAIL, $value);\r\n }", "title": "" }, { "docid": "c0653b3cde46777f1d7312e3ba3120d4", "score": "0.54861206", "text": "public function setEmail($value)\n {\n return $this->set('Email', $value);\n }", "title": "" }, { "docid": "23ebfb252cba48cf3e4b5290ca6d2ede", "score": "0.5483948", "text": "public function setEmail($email){\n $this->email = $email;\n //return $this;\n }", "title": "" }, { "docid": "b0bdc44e65a321408fbedc3702d9dd9b", "score": "0.54824674", "text": "public function setMessage($message) {\n\t\t$this->message = $message;\n\n\t\t$this->view->setError($message);\n\t}", "title": "" }, { "docid": "de036f81341438e5fe89fdbc07cd08bc", "score": "0.54792094", "text": "public function setMessage(string $message): void\n {\n $this->_message = $message;\n }", "title": "" }, { "docid": "c296ddd71164b2c935dee493c29c5875", "score": "0.5475522", "text": "public function setEmail(string $value): self\n {\n $this->email = $value;\n return $this;\n }", "title": "" }, { "docid": "fcf822f36a5dec20f9ee5dc18dca3878", "score": "0.5469945", "text": "public function setMessage(string $_message)\n {\n $this->message = $_message;\n }", "title": "" }, { "docid": "c8b84ac222690204303b65ad044e4e9f", "score": "0.5461281", "text": "public function setEmailAddress(?string $emailAddress) : self\n {\n $this->initialized['emailAddress'] = true;\n $this->emailAddress = $emailAddress;\n return $this;\n }", "title": "" }, { "docid": "a1d5b3132c617cac9087d7cafa095436", "score": "0.54612494", "text": "public function setMessage($message = ''){\n // typecheck\n if ( is_string($message) ) {\n $this->currentMessage = $message;\n }\n\n return $this;\n }", "title": "" }, { "docid": "0a6533aa37773a5f461da6f611720b73", "score": "0.5461206", "text": "public function setMessage($value)\n {\n return $this->set('Message', $value);\n }", "title": "" }, { "docid": "b284852dd6322841410494cf9a4f54b5", "score": "0.5458501", "text": "public function setMessage($value)\n {\n $this->validateNotNull('Message', $value);\n $this->validateString('Message', $value);\n\n if ($this->data['message'] === $value) {\n return;\n }\n\n $this->data['message'] = $value;\n\n $this->setModified('message');\n }", "title": "" }, { "docid": "49ac209a4bbb9c23a34486026aa2637c", "score": "0.54504865", "text": "public function message($message) {\n $this->message = $message;\n }", "title": "" }, { "docid": "97645e678f859379c265c7d06eade744", "score": "0.544626", "text": "function setRecipientEmail($value) {\n return $this->setFieldValue('recipient_email', $value);\n }", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "8e8e03727ca6544a2d009483f6d1aca9", "score": "0.0", "text": "public function destroy($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "ef853768d92b1224dd8eb732814ce3fa", "score": "0.7318632", "text": "public function deleteResource(Resource $resource);", "title": "" }, { "docid": "32d3ed9a4be9d6f498e2af6e1cf76b70", "score": "0.6830789", "text": "public function removeResource($resource)\n {\n // Remove the Saved Resource\n $join = new User_resource();\n $join->user_id = $this->user_id;\n $join->resource_id = $resource->id;\n $join->list_id = $this->id;\n $join->delete();\n\n // Remove the Tags from the resource\n $join = new Resource_tags();\n $join->user_id = $this->user_id;\n $join->resource_id = $resource->id;\n $join->list_id = $this->id;\n $join->delete();\n }", "title": "" }, { "docid": "d9f10892d48fdfd7debb2a97681f0912", "score": "0.6659381", "text": "public function destroy(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "c3b6a958d3ad1b729bfd6e4353c3feba", "score": "0.6540415", "text": "public function deleteFile(ResourceObjectInterface $resource);", "title": "" }, { "docid": "00aa681a78c0d452ad0b13bfb8d908dd", "score": "0.64851683", "text": "public function removeResource(IResource $resource): void {\n\t\t$this->resources = array_filter($this->getResources(), function (IResource $r) use ($resource) {\n\t\t\treturn !$this->isSameResource($r, $resource);\n\t\t});\n\n\t\t$query = $this->connection->getQueryBuilder();\n\t\t$query->delete(Manager::TABLE_RESOURCES)\n\t\t\t->where($query->expr()->eq('collection_id', $query->createNamedParameter($this->id, IQueryBuilder::PARAM_INT)))\n\t\t\t->andWhere($query->expr()->eq('resource_type', $query->createNamedParameter($resource->getType())))\n\t\t\t->andWhere($query->expr()->eq('resource_id', $query->createNamedParameter($resource->getId())));\n\t\t$query->execute();\n\n\t\tif (empty($this->resources)) {\n\t\t\t$this->removeCollection();\n\t\t} else {\n\t\t\t$this->manager->invalidateAccessCacheForCollection($this);\n\t\t}\n\t}", "title": "" }, { "docid": "e63877a9259e2bac051cf6c3de5eca30", "score": "0.6431514", "text": "public function deleteResource(Resource $resource) {\n\t\t$pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n\t\ttry {\n\t\t\t$result = $this->filesystem->delete($pathAndFilename);\n\t\t} catch (\\Exception $e) {\n\t\t\treturn FALSE;\n\t\t}\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "680170dae622eedce573be6ddf82f8db", "score": "0.6371304", "text": "public function removeStorage($imgName,$storageName);", "title": "" }, { "docid": "95caa506b86f6d24869dcb0b83d598e5", "score": "0.63126063", "text": "public function unlink(IEntity $source, IEntity $target, string $relation): IStorage;", "title": "" }, { "docid": "2f5ddf194cad1d408d416d31cae16f05", "score": "0.6301321", "text": "public function delete()\n {\n Storage:: delete();\n }", "title": "" }, { "docid": "b907271045dec6299e819d6cb076ced8", "score": "0.6288393", "text": "abstract protected function doRemove(ResourceInterface $resource, $files);", "title": "" }, { "docid": "90bf57c42b6c381768022b254ea3b8e9", "score": "0.62784326", "text": "public static function remove ($resource, $data) {\n // Retrieve resource.\n $list = self::retriveJson($resource);\n // If resource is not availabe.\n if ($list == 1) return 1;\n\n // Iterate through list.\n foreach($list as $i => $object) {\n // If an object with the given id exists, remove it.\n if ($object['id'] == $data['id']) {\n array_splice($list, $i, 1);\n return 0;\n }\n }\n\n // If object does not exists.\n return 2;\n }", "title": "" }, { "docid": "5eda1f28deed9cc179d6350748fe7164", "score": "0.62480205", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n activity()\n ->performedOn(Auth::user())\n ->causedBy($resource)\n ->withProperties(['remove user' => 'customValue'])\n ->log('Resource Deleted successfully');\n $notification = array(\n 'message' => 'Resource Deleted successfully', \n 'alert-type' => 'success'\n );\n \n return back()->with($notification); \n }", "title": "" }, { "docid": "42a9b004cc56ed1225f545039f158828", "score": "0.6130072", "text": "function delete_resource($ref)\n\t{\n\t\n\tif ($ref<0) {return false;} # Can't delete the template\n\n\t$resource=get_resource_data($ref);\n\tif (!$resource) {return false;} # Resource not found in database\n\t\n\t$current_state=$resource['archive'];\n\t\n\tglobal $resource_deletion_state, $staticsync_allow_syncdir_deletion, $storagedir;\n\tif (isset($resource_deletion_state) && $current_state!=$resource_deletion_state) # Really delete if already in the 'deleted' state.\n\t\t{\n\t\t# $resource_deletion_state is set. Do not delete this resource, instead move it to the specified state.\n\t\tsql_query(\"update resource set archive='\" . $resource_deletion_state . \"' where ref='\" . $ref . \"'\");\n\n # log this so that administrator can tell who requested deletion\n resource_log($ref,'x','');\n\t\t\n\t\t# Remove the resource from any collections\n\t\tsql_query(\"delete from collection_resource where resource='$ref'\");\n\t\t\t\n\t\treturn true;\n\t\t}\n\t\n\t# Get info\n\t\n\t# Is transcoding\n\tif ($resource['is_transcoding']==1) {return false;} # Can't delete when transcoding\n\n\t# Delete files first\n\t$extensions = array();\n\t$extensions[]=$resource['file_extension']?$resource['file_extension']:\"jpg\";\n\t$extensions[]=$resource['preview_extension']?$resource['preview_extension']:\"jpg\";\n\t$extensions[]=$GLOBALS['ffmpeg_preview_extension'];\n\t$extensions[]='icc'; // also remove any extracted icc profiles\n\t$extensions=array_unique($extensions);\n\t\n\tforeach ($extensions as $extension)\n\t\t{\n\t\t$sizes=get_image_sizes($ref,true,$extension);\n\t\tforeach ($sizes as $size)\n\t\t\t{\n\t\t\tif (file_exists($size['path']) && ($staticsync_allow_syncdir_deletion || false !== strpos ($size['path'],$storagedir))) // Only delete if file is in filestore\n\t\t\t\t {unlink($size['path']);}\n\t\t\t}\n\t\t}\n\t\n\t# Delete any alternative files\n\t$alternatives=get_alternative_files($ref);\n\tfor ($n=0;$n<count($alternatives);$n++)\n\t\t{\n\t\tdelete_alternative_file($ref,$alternatives[$n]['ref']);\n\t\t}\n\n\t\n\t// remove metadump file, and attempt to remove directory\n\t$dirpath = dirname(get_resource_path($ref, true, \"\", true));\n\tif (file_exists(\"$dirpath/metadump.xml\")){\n\t\tunlink(\"$dirpath/metadump.xml\");\n\t}\n\t@rmdir($dirpath); // try to delete directory, but if it has stuff in it fail silently for now\n\t\t\t // fixme - should we try to handle if there are other random files still there?\n\t\n\t# Log the deletion of this resource for any collection it was in. \n\t$in_collections=sql_query(\"select * from collection_resource where resource = '$ref'\");\n\tif (count($in_collections)>0){\n\t\tif (!function_exists(\"collection_log\")){include (\"collections_functions.php\");}\n\t\tfor($n=0;$n<count($in_collections);$n++)\n\t\t\t{\n\t\t\tcollection_log($in_collections[$n]['collection'],'d',$in_collections[$n]['resource']);\n\t\t\t}\n\t\t}\n\n\thook(\"beforedeleteresourcefromdb\",\"\",array($ref));\n\n\t# Delete all database entries\n\tsql_query(\"delete from resource where ref='$ref'\");\n\tsql_query(\"delete from resource_data where resource='$ref'\");\n\tsql_query(\"delete from resource_dimensions where resource='$ref'\");\n\tsql_query(\"delete from resource_keyword where resource='$ref'\");\n\tsql_query(\"delete from resource_related where resource='$ref' or related='$ref'\");\n\tsql_query(\"delete from collection_resource where resource='$ref'\");\n\tsql_query(\"delete from resource_custom_access where resource='$ref'\");\n\tsql_query(\"delete from external_access_keys where resource='$ref'\");\n\tsql_query(\"delete from resource_alt_files where resource='$ref'\");\n\t\t\n\thook(\"afterdeleteresource\");\n\t\n\treturn true;\n\t}", "title": "" }, { "docid": "d9b3f9cbdf088b174df39b489f05872c", "score": "0.6087595", "text": "public function delete(UriInterface $uri, \\stdClass $resource)\n {\n $this->cachePool->deleteItem($this->createCacheKey($uri));\n\n if(!property_exists($resource, '_links')) {\n return;\n }\n\n $links = $resource->_links;\n\n if($links) {\n foreach ($links as $link) {\n if(is_object($link) && property_exists($link, 'href')) {\n $uri = Client::getInstance()\n ->getDataStore()\n ->getUriFactory()\n ->createUri($link->href);\n }\n\n $this->cachePool->deleteItem($this->createCacheKey($uri));\n }\n }\n\n }", "title": "" }, { "docid": "9b39cbd70aa1aa97e5e5907676b3271e", "score": "0.60398406", "text": "public function removeResource ($name)\n\t{\n\t\t\n\t\tif (isset ($this->resources[$name]))\n\t\t{\n\t\t\t\n\t\t\tunset ($this->resources[$name]);\n\t\t\t\n\t\t\tif (isset ($this->$name))\n\t\t\t{\n\t\t\t\tunset ($this->$name);\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "21644a433a62c5fd1c528ea36afc90b8", "score": "0.6036098", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n return redirect()->route('resource.index');\n }", "title": "" }, { "docid": "ba57ef5b5809e7e9dff4ab48e18b343a", "score": "0.603003", "text": "public function delete()\n\t{\n\t\t$this->fs->remove($this->file);\n\t}", "title": "" }, { "docid": "d0b2a4440bb64c6f1cf160d3a82d7633", "score": "0.60045654", "text": "public function destroy($id)\n {\n $student=Student::find($id);\n //delete related file from storage\n $student->delete();\n return redirect()->route('student.index');\n }", "title": "" }, { "docid": "73c704a80ae4a82903ee86a2b821245a", "score": "0.5944851", "text": "public function delete()\n {\n unlink($this->path);\n }", "title": "" }, { "docid": "b4847ad1cd8f89953ef38552f8cdddbe", "score": "0.5935105", "text": "public function remove($identifier)\n {\n $resource = $this->repository->findOneByIdentifier($identifier);\n $this->repository->remove($resource);\n }", "title": "" }, { "docid": "b3d5aa085167568cd1836dd269d2e8dc", "score": "0.59211266", "text": "public function delete(User $user, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "b1845194ffa32f9bcc26cc1bed8ee573", "score": "0.5896058", "text": "public function destroy()\n {\n $item = Item::find(request('id'));\n if ($item) {\n if ($item->image_url != '' && file_exists(public_path().'/uploads/item/'.$item->image_url)) {\n unlink(public_path().'/uploads/item/'.$item->image_url);\n }\n $item->delete();\n return response()->json(['success'=>'Record is successfully deleted']);\n }\n}", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "53eee40f2e33c1c3b53b819bb59d254d", "score": "0.58634996", "text": "public function delete()\n {\n Storage::delete($this->path);\n return parent::delete();\n }", "title": "" }, { "docid": "28f192e8f4063c3aaceba80a5680f10b", "score": "0.5845638", "text": "public function deleteResource(Resource $resource)\n {\n $whitelist = ['id'];\n $reflObj = new \\ReflectionClass($resource);\n\n //null out all fields not in the whitelist\n foreach ($reflObj->getProperties() as $prop) {\n if (!in_array($prop->getName(), $whitelist)) {\n $prop->setAccessible(true);\n $prop->setValue($resource, null);\n }\n }\n\n //set delete date and status\n $resource->setDateDeleted(new \\DateTime());\n $resource->setStatus(Resource::STATUS_DELETED);\n\n return $resource;\n }", "title": "" }, { "docid": "90ed2fbe159714429baa05a4796e3ed0", "score": "0.58285666", "text": "public function destroy() { return $this->rm_storage_dir(); }", "title": "" }, { "docid": "62415c40499505a9895f5a25b8230002", "score": "0.58192986", "text": "public function destroy($id)\n {\n $storage = Storage::find($id);\n $storage->delete();\n return redirect()->route('storage.index')->with('success', 'Data Deleted');\n }", "title": "" }, { "docid": "a2754488896ea090fe5191a49d9d85b9", "score": "0.58119655", "text": "public function deleteFile()\n { \n StorageService::deleteFile($this);\n }", "title": "" }, { "docid": "368230bb080f8f6c51f1832974a498e2", "score": "0.58056664", "text": "public function destroy($id)\n {\n $product = Product::where('id',$id)->first();\n $photo = $product->image;\n if($photo){\n unlink($photo);\n $product->delete();\n }else{\n $product->delete();\n }\n\n }", "title": "" }, { "docid": "31e5cc4a0b6af59482a96519deaba446", "score": "0.5797684", "text": "public function delete()\r\n {\r\n $directory = rtrim(config('infinite.upload_path'), \"/\");\r\n\r\n Storage::delete($directory . '/' . $this->file_name . '.' . $this->extension);\r\n }", "title": "" }, { "docid": "5760f6df7c6ebd5440da74e84ef8e734", "score": "0.57779175", "text": "public function remove($identifier);", "title": "" }, { "docid": "c473e5d9c679fa421932f0d830432589", "score": "0.5770938", "text": "abstract public function destroyResource(\n DrydockBlueprint $blueprint,\n DrydockResource $resource);", "title": "" }, { "docid": "80ccefee911dbbebc88e3854b170acf7", "score": "0.5765826", "text": "public function removeRecord();", "title": "" }, { "docid": "22ecee59028ed62aa46bfb196c94d320", "score": "0.5745101", "text": "function remove_from_set($setID, $resource) {\n\tglobal $wpdb;\n\t$resource_table = $wpdb->prefix . 'savedsets_resources';\n\t\n\t$wpdb->delete( $resource_table, array( 'set_id' => $setID, 'resource_id' => $resource ), array( '%d','%d' ) );\n\t\n}", "title": "" }, { "docid": "80279a1597fc869ef294d03bcd1a6632", "score": "0.5721846", "text": "public function rm($id)\n {\n }", "title": "" }, { "docid": "f1357ea9bb8630aa33594f5035e30b53", "score": "0.57217026", "text": "public function drop() {\n global $DB;\n\n if (!$DB->count_records('amos_stashes', array('id' => $this->id, 'hash' => $this->hash, 'ownerid' => $this->ownerid))) {\n throw new coding_exception('Attempt to delete non-existing stash (record)');\n }\n if (!is_writable($this->get_storage_filename())) {\n throw new coding_exception('Attempt to delete non-existing stash (file)');\n }\n\n $DB->delete_records('amos_stashes', array('id' => $this->id, 'hash' => $this->hash, 'ownerid' => $this->ownerid));\n // if the stash file is not referenced any more, delete it\n if (!$DB->record_exists('amos_stashes', array('hash' => $this->hash))) {\n $filename = $this->get_storage_filename();\n unlink($filename);\n @rmdir(dirname($filename));\n @rmdir(dirname(dirname($filename)));\n }\n }", "title": "" }, { "docid": "45fc5fca7261f9ee05d7a7cfb701d0c1", "score": "0.5717582", "text": "public function destroy($id)\n {\n $del = File::find($id);\n\n if ($del->user_id == Auth::id()) {\n Storage::delete($del->path);\n $del->delete();\n return redirect('/file');\n } else {\n echo \"Its not your file!\";\n }\n }", "title": "" }, { "docid": "19b2a562afcef7db10ce9b75c7e6a8dc", "score": "0.57099277", "text": "public function deleteFromDisk(): void\n {\n Storage::cloud()->delete($this->path());\n }", "title": "" }, { "docid": "493060cb88b9700b90b0bdc650fc0c62", "score": "0.5700126", "text": "public function drop() {\n global $DB;\n\n if (!$DB->count_records('amos_stashes', array('id' => $this->id, 'hash' => $this->hash, 'ownerid' => $this->ownerid))) {\n throw new coding_exception('Attempt to delete non-existing stash (record)');\n }\n if (!is_writable($this->get_storage_filename())) {\n throw new coding_exception('Attempt to delete non-existing stash (file)');\n }\n\n $DB->delete_records('amos_stashes', array('id' => $this->id, 'hash' => $this->hash, 'ownerid' => $this->ownerid));\n // If the stash file is not referenced any more, delete it.\n if (!$DB->record_exists('amos_stashes', array('hash' => $this->hash))) {\n $filename = $this->get_storage_filename();\n unlink($filename);\n @rmdir(dirname($filename));\n @rmdir(dirname(dirname($filename)));\n }\n }", "title": "" }, { "docid": "a85f5bb361425e120c2b1c92b82b2fe9", "score": "0.56977797", "text": "public function destroy($id)\n {\n $file = File::findOrFail($id);\n Storage::disk('public')->delete(str_replace('/storage/','',$file->path));\n $file->delete();\n return redirect('/admin/media');\n }", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "c553ef667073b35a27db9e6a3bae3be3", "score": "0.56575704", "text": "public function unlink() {\n\t\t$return = unlink($this->fullpath);\n\t\t// destroy object ...testing :)\n\t\tunset($this);\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "0532947b7106b0e9285319a9eaf76b8e", "score": "0.56488144", "text": "public function destroy($id)\n\t{\n $entry = Fileentry::find($id);\n Storage::disk('local')->delete($entry->filename);\n $entry->delete();\n\n return redirect()->back();\n\t}", "title": "" }, { "docid": "c29cf340a7685b50d4992018f03a1a37", "score": "0.5645965", "text": "public function destroy() {\n return $this->resource->destroy();\n }", "title": "" }, { "docid": "0b78e5e9a8d5d2a166659b0988261da1", "score": "0.5633292", "text": "public function destroy($id)\n {\n //\n //\n $slider = Slider::findOrFail($id);\n// if(Storage::exists($slider->image_path))\n// {\n// Storage::delete($slider->image_path);\n// }\n $slider->delete();\n return redirect()->back()->with('success', 'Slider was deleted successfully!');\n }", "title": "" }, { "docid": "e56ffdb12b7e8ce9ce9b709dd82f37f7", "score": "0.56325144", "text": "public function removeById($id);", "title": "" }, { "docid": "f0bca51252baaca5a816eef1c2c06fc0", "score": "0.56296647", "text": "public function detach()\n {\n $oldResource=$this->resource;\n fclose($this->resource);\n $this->resource=NULL;\n return $oldResource;\n }", "title": "" }, { "docid": "41660f6084f57c1f6d52218d45380858", "score": "0.5612277", "text": "public function destroy($id)\n {\n $destroy = File::find($id);\n Storage::delete('public/img/'.$destroy->src);\n $destroy->delete();\n return redirect('/files');\n }", "title": "" }, { "docid": "b6093338d60ff2644649eac3d576e7d9", "score": "0.5606613", "text": "public function delete($resource, array $options = [])\n {\n return $this->request('DELETE', $resource, $options);\n }", "title": "" }, { "docid": "59de27765b5cb766d8d7c06e25831e55", "score": "0.5604046", "text": "function delete() {\n\n return unlink($this->path);\n\n }", "title": "" }, { "docid": "547eb07f41c94e071fb1daf6da02654d", "score": "0.55980563", "text": "public function destroy($id)\n {\n $product = Product::findOrFail($id);\n unlink(public_path() .'/images/'.$product->file->file);\n session(['Delete'=>$product->title]);\n $product->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "2b68a0dafbed1898fb849c8102af4ac1", "score": "0.55952084", "text": "public function destroy($id){\n $book = Book::withTrashed()->where('id', $id)->firstOrFail(); \n\n if ($book->trashed()) {\n session()->flash('success', 'El libro se a eliminado exitosamente');\n Storage::delete($book->image); \n $book->forceDelete();\n }else{\n session()->flash('success', 'El libro se envio a la papelera exitosamente');\n $book->delete();\n }\n return redirect(route('books.index'));\n }", "title": "" }, { "docid": "0354eb11a59ab56fb4c68c1ca1a34f9e", "score": "0.55922675", "text": "public function removeUpload(){\n if($file = $this->getAbsolutePath()){\n unlink($file);\n }\n \n }", "title": "" }, { "docid": "8a2965e7fd915ac119635055a709e09f", "score": "0.5591116", "text": "public function destroy($id, Request $request)\n {\n $imagePath = DB::table('game')->select('image')->where('id', $id)->first();\n\n $filePath = $imagePath->image;\n\n if (file_exists($filePath)) {\n\n unlink($filePath);\n\n DB::table('game')->where('id',$id)->delete();\n\n }else{\n\n DB::table('game')->where('id',$id)->delete();\n }\n\n return redirect()->route('admin.game.index');\n }", "title": "" }, { "docid": "954abc5126ecf3e25d5e32fc21b567ff", "score": "0.55901456", "text": "public function remove( $resourceId )\n {\n unset( $this->resourceList[ $resourceId ] );\n \n $this->database->exec( \"\n DELETE FROM\n `{$this->tbl['library_collection']}`\n WHERE\n collection_type = \" . $this->database->quote( $this->type ) . \"\n AND\n ref_id = \" . $this->database->quote( $this->refId ) . \"\n AND\n resource_id = \" . $this->database->escape( $resourceId ) );\n \n return $this->database->affectedRows();\n }", "title": "" }, { "docid": "f7194357aa4e137cfa50acffda93fc27", "score": "0.55829436", "text": "public static function delete($path){}", "title": "" }, { "docid": "a22fc9d493bea356070527d5c377a089", "score": "0.5578515", "text": "public function remove($name) { return IO_FS::rm($this->full_path_for($name)); }", "title": "" }, { "docid": "8a6c54307038aeccb488677b49209dac", "score": "0.5574026", "text": "public function destroy($id)\n {\n //\n //\n $resource = Resource::find($id);\n $resource->delete();\n return redirect()->back();\n\n }", "title": "" }, { "docid": "97914eb78d7cf648246f9bcd6ac69124", "score": "0.5573565", "text": "public function destroy($id)\n {\n /*\n\n = R::load( '', $id );\n R::trash( );*/\n }", "title": "" }, { "docid": "fa9a2e384d55e25ff7893069c00561f7", "score": "0.5568524", "text": "public function destroy($id)\n {\n $data = Crud::find($id);\n $image_name = $data->image;\n unlink(public_path('images'.'/'.$image_name));\n $data->delete();\n return redirect('crud')->with('success','record deleted successfully!');\n\n\n }", "title": "" }, { "docid": "9e4e139799275c6ed9f200c63b6d4a6d", "score": "0.55617994", "text": "public function delete($resource)\n {\n // Make DELETE Http request\n $status = $this->call('DELETE', $resource)['Status-Code'];\n if ($status) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "2160551c2833f1a763a1634fee961123", "score": "0.5560052", "text": "public function deleteItem($path, $options = null)\n {\n $this->_rackspace->deleteObject($this->_container,$path);\n if (!$this->_rackspace->isSuccessful()) {\n throw new Zend_Cloud_StorageService_Exception('Error on delete: '.$this->_rackspace->getErrorMsg());\n }\n }", "title": "" }, { "docid": "684ee86436e720744df6668b707a5ac0", "score": "0.5557478", "text": "public function deleteImage()\n {\n Storage::delete($this->image);\n }", "title": "" }, { "docid": "1bc9bf0c3a8c77c07fcaf9de0c876d86", "score": "0.5555183", "text": "public function destroy($id)\n { \n $record = Post::findOrFail($id); \n\n if($record->thumbnail !== 'default.png'){\n Storage::delete('Post/'.$record->thumbnail); \n } \n \n $done = Post::destroy($id); \n\n return back()->with('success' , 'Record Deleted');\n }", "title": "" }, { "docid": "9e9a9d9363b0ac3e68a1243a8083cd0b", "score": "0.55495435", "text": "public function destroy($id)\n {\n \n $pro=Product::find($id);\n $one=$pro->image_one;\n \n $two=$pro->image_two;\n $three=$pro->image_three;\n $four=$pro->image_four;\n $five=$pro->image_five;\n $six=$pro->image_six;\n $path=\"media/products/\";\n Storage::disk('public')->delete([$path.$one,$path.$two,$path.$three,$path.$four,$path.$five,$path.$six]);\n\n\n\n $pro->delete();\n Toastr()->success('Product Deleted successfully');\n return redirect()->back();\n \n }", "title": "" }, { "docid": "2c6776be63eac31e1729852dfa8745a9", "score": "0.5548924", "text": "public function destroy($id)\n {\n $partner = Partner::findOrFail($id);\n\n if($partner->cover && file_exists(storage_path('app/public/' . $partner->cover))){\n \\Storage::delete('public/'. $partner->cover);\n }\n \n $partner->delete();\n \n return redirect()->route('admin.partner')->with('success', 'Data deleted successfully');\n }", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "fb75e67696c980503f7ebd09ae729fe9", "score": "0.5538126", "text": "final public function delete() {}", "title": "" }, { "docid": "aa31cbc566ad4ff78241eb4b0f49fe1e", "score": "0.5536226", "text": "public function destroy($id)\n\t{\n\t\t$this->resource->find($id)->delete();\n\n\t\treturn Redirect::route('backend.resources.index');\n\t}", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "ec759861dd3d396dcc09d5e1bfcf628b", "score": "0.5521281", "text": "public function unlink($path);", "title": "" }, { "docid": "b896244b5af3e4822537d0d1d7ab8fdf", "score": "0.5519644", "text": "public function destroy($id)\n {\n $input = $request->all();\n \t$url = parse_url($input['src']);\n \t$splitPath = explode(\"/\", $url[\"path\"]);\n \t$splitPathLength = count($splitPath);\n \tImageUploads::where('path', 'LIKE', '%' . $splitPath[$splitPathLength-1] . '%')->delete();\n }", "title": "" }, { "docid": "0d93adedaef8f05d9f7cbb129944a438", "score": "0.55152917", "text": "public function delete()\n {\n imagedestroy($this->image);\n $this->clearStack();\n }", "title": "" }, { "docid": "ceab6acdbc23ed7a9a41503580c0a747", "score": "0.55148435", "text": "public function delete()\n {\n $this->value = null;\n $this->hit = false;\n $this->loaded = false;\n $this->exec('del', [$this->key]);\n }", "title": "" }, { "docid": "28797da9ff018d2e75ab89e4bc5cd50d", "score": "0.5511856", "text": "public function destroy($id)\n {\n $user= Auth::user();\n\n $delete = $user->profileimage;\n $user->profileimage=\"\";\n $user->save();\n $image_small=public_path().'/Store_Erp/books/profile/'.$delete ;\n unlink($image_small);\n Session::flash('success',' Profile Image Deleted Succesfully!');\n return redirect()->route('user.profile'); \n \n }", "title": "" }, { "docid": "a92d57f4ccac431a9299e4ad1f0d1618", "score": "0.54956895", "text": "public function destroy($id)\n {\n //\n\n $personaje=Personaje::findOrFail($id);\n\n if(Storage::delete('public/'.$personaje->Foto)){\n \n Personaje::destroy($id);\n }\n\n\n\n\n\n return redirect('personaje')->with('mensaje','Personaje Borrado');\n }", "title": "" }, { "docid": "48a57deb7c791b1ea810616329e3805e", "score": "0.54922575", "text": "abstract public function delete($path);", "title": "" }, { "docid": "48a57deb7c791b1ea810616329e3805e", "score": "0.54922575", "text": "abstract public function delete($path);", "title": "" }, { "docid": "df0b2bf2ed8277a4cd77f933418a9cd1", "score": "0.5491558", "text": "public function deleteFile()\n\t{\n\t\tif($this->id)\n\t\t{\n\t\t\t$path = $this->getFileFullPath();\n\t\t\tif($path)\n\t\t\t{\t\t\t\n\t\t\t\t@unlink($path);\n\t\t\t\t$this->setFile(null);\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
54cf3431abe39f98bdee71b37a9ed3db
For some reason Freemius is redirecting some customers to a page that doesnt exist. So we catch that page and redirect them back to the actual page that we are using to setup the plugins integration.
[ { "docid": "73a9eaa0d3c5917df8f0eab5ead9e325", "score": "0.6627187", "text": "public function action_redirect_incorrect_page() {\n\t\t$action = tribe_get_request_var( 'fs_action', false );\n\n\t\tif ( 'sync_user' !== $action ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$page = tribe_get_request_var( 'page', false );\n\n\t\tif ( 'tribe-common-account' !== $page ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$url = admin_url( 'admin.php' );\n\t\t$url = add_query_arg( [\n\t\t\t'fs_action' => $action,\n\t\t\t'page' => $this->page,\n\t\t\t'_wpnonce' => tribe_get_request_var( '_wpnonce' ),\n\t\t], $url );\n\n\t\twp_safe_redirect( $url );\n\t\ttribe_exit();\n\t}", "title": "" } ]
[ { "docid": "09f43bc6db07a0e7aa9435674897415b", "score": "0.6836897", "text": "function redirectHandler() {\n $id = $_GET['id'];\n $result = ChargeBee_HostedPage::retrieve($id);\n if( $result->hostedPage()->state == \"succeeded\" ) {\n header(\"Location: /ssp-php/subscription\"); \n } else {\n \tcustomError400();\n }\n}", "title": "" }, { "docid": "828932cb203f5ca2aaf813b5439a24d3", "score": "0.6806832", "text": "public function maybe_redirect() {\n\t\tif ( ! empty( $_POST ) ) {\n\t\t\treturn; // don't interrupt anything the user's trying to do\n\t\t}\n\n\t\tif ( ! is_admin() || defined( 'DOING_AJAX' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( defined( 'IFRAME_REQUEST' ) && IFRAME_REQUEST ) {\n\t\t\treturn; // probably the plugin update/install iframe\n\t\t}\n\n\t\tif ( isset( $_GET[ $this->welcome_slug ] ) || isset( $_GET[ $this->update_slug ] ) ) {\n\t\t\treturn; // no infinite redirects\n\t\t}\n\n\t\tif ( isset( $_GET['tribe-skip-welcome'] ) ) {\n\t\t\treturn; // a way to skip these checks and\n\t\t}\n\n\t\t// bail if we aren't activating a plugin\n\t\tif ( ! get_transient( $this->args['activation_transient'] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tdelete_transient( $this->args['activation_transient'] );\n\n\t\tif ( ! current_user_can( Tribe__Settings::instance()->requiredCap ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( $this->showed_update_message_for_current_version() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// the redirect might be intercepted by another plugin, but\n\t\t// we'll go ahead and mark it as viewed right now, just in case\n\t\t// we end up in a redirect loop\n\t\t// see #31088\n\t\t$this->log_display_of_message_page();\n\n\t\tif ( $this->is_new_install() ) {\n\t\t\t$this->redirect_to_welcome_page();\n\t\t}\n\t}", "title": "" }, { "docid": "c75ca51d65bb2caf9690326b0dc3e4f3", "score": "0.66184056", "text": "function redirectHandler() {\n \n $id = $_GET['id'];\n $result = ChargeBee_HostedPage::retrieve($id);\n $hostedPage = $result->hostedPage();\n if( $hostedPage->state != \"succeeded\") {\n header(\"HTTP/1.0 400 Error\");\n include($_SERVER[\"DOCUMENT_ROOT\"].\"/error_pages/400.html\"); \n } else {\n header(\"Location: thankyou.php?subscription_id=\".URLencode($hostedPage->content()->subscription()->id));\n \n }\n \n}", "title": "" }, { "docid": "b09914ff201d58d4f51a904f95cf416b", "score": "0.65851253", "text": "public function redirect_to_custom_register()\n {\n if ('GET' == $_SERVER['REQUEST_METHOD']) {\n wp_redirect(home_url());\n exit;\n }\n }", "title": "" }, { "docid": "6004c31f7467ee32889208df11879ca9", "score": "0.64956015", "text": "public function paymentRedirect()\n {\n Header::redirect(\n Uri::get('payment', 'main', 'index'),\n $this->upgradeMembershipMsg(),\n Design::WARNING_TYPE\n );\n }", "title": "" }, { "docid": "169bbee974e576c431b52a6b888728f3", "score": "0.64659405", "text": "function eager_EagerWordpressBasePlugin_cms_v2_1_pace_deactivate_page() {\n $plugin = 'eager-pace/base.php';\n if (is_plugin_active($plugin)) {\n deactivate_plugins($plugin);\n }\n $url = admin_url('plugins.php');\n add_settings_error(\n 'eager_app_deactivated',\n esc_attr( 'eager_app_deactivated' ),\n 'PACE successfully deactivated. Redirecting you to plugins page now...',\n 'updated'\n );\n echo settings_errors();\n echo '<script>window.location = \"' . $url . '\";</script>';\n}", "title": "" }, { "docid": "8242c986ba0effe5ac7d4546d97fbd0e", "score": "0.6418712", "text": "public function onPageNotFound()\n {\n }", "title": "" }, { "docid": "1aa005c9617e8768c56ec586ccf8f03d", "score": "0.64067763", "text": "public function redirect_to_coupons() {\n\t\t/* phpcs:disable WordPress.Security.NonceVerification */\n\t\tif (\n\t\t\t! isset( $_GET['page'] ) ||\n\t\t\t'wc-admin' !== $_GET['page'] ||\n\t\t\t! isset( $_GET['action'] ) ||\n\t\t\t'remove-coupon-menu' !== $_GET['action'] ||\n\t\t\t! defined( 'WC_ADMIN_PLUGIN_FILE' )\n\t\t) {\n\t\t\treturn;\n\t\t}\n\t\t/* phpcs:enable */\n\t\t$this->display_legacy_menu( false );\n\t\twp_safe_redirect( self::get_management_url( 'coupons' ) );\n\t\texit;\n\t}", "title": "" }, { "docid": "9246e4588e015c145ac63bb98e5961da", "score": "0.6382095", "text": "public function redirect()\n\t{\n\t\t$url = Piwik_Common::getRequestVar('url', '', 'string', $_GET);\n\n\t\t// validate referrer\n\t\t$referrer = Piwik_Url::getReferer();\n\t\tif(!empty($referrer) && !Piwik_Url::isLocalUrl($referrer))\n\t\t{\n\t\t\tdie('Invalid Referer detected - check that your browser sends the Referer header. <br/>The link you would have been redirected to is: '.$url);\n\t\t\texit;\n\t\t}\n\n\t\t// mask visits to *.piwik.org\n\t\tif(self::isPiwikUrl($url))\n\t\t{\n\t\t\techo\n'<html><head>\n<meta http-equiv=\"refresh\" content=\"0;url=' . $url . '\" />\n</head></html>';\n\t\t}\n\t\texit;\n\t}", "title": "" }, { "docid": "1209cd6d2d7653cbfd0ec6ba0691e803", "score": "0.63507897", "text": "function my_redirect_function() {\n\tif( !current_user_can( 'administrator' ) && is_user_logged_in() ){\n // Check if Clients page is being displayed\n if ( is_page(9) ) {\n global $userdata;\n get_currentuserinfo();\n $username = $userdata->user_login;\n $url = home_url() . '/clients/' . $username;\n\n wp_redirect( $url );\n exit;\n }\n }\n}", "title": "" }, { "docid": "9f0705ebc2105ea8d3415cc3c18cacbb", "score": "0.6322487", "text": "function wpcom_vip_maybe_skip_old_slug_redirect(){\n\n\t//We look to see if a malformed url (represented by 'http:' ) is right after the starting / in DOCUMENT_URI hence position 1\n\tif ( is_404() && ( false !== strpos( $_SERVER['DOCUMENT_URI'], parse_url( get_option( 'siteurl' ), PHP_URL_HOST ) ) || 1 === strpos( $_SERVER['DOCUMENT_URI'], 'http:') || 1 === strpos( $_SERVER['DOCUMENT_URI'], 'https:') || false !== strpos( $_SERVER['DOCUMENT_URI'], 'https:/' ) || false !== strpos( $_SERVER['DOCUMENT_URI'], 'http:/' ) ) ) {\n\t\tremove_action( 'template_redirect', 'wp_old_slug_redirect' );\n\t\tremove_action( 'template_redirect', 'wpcom_vip_wp_old_slug_redirect', 8 );\n\t}\n\n}", "title": "" }, { "docid": "303236d0101478de52b6655a3eefdf02", "score": "0.6319027", "text": "protected function fallback() {\r\n\t\t\r\n\t\tif (isset($this->data['base_uri']) && !empty($this->data['base_uri'])) {\r\n\t\t\t$url = $this->data['base_uri'].$this->fallback_page;\r\n\t\t} else if (isset($this->data['book']) && !empty($this->data['book']) && isset($this->data['book']->slug)) {\r\n\t\t\t$url = confirm_slash(base_url()).confirm_slash($this->data['book']->slug).$this->fallback_page;\r\n\t\t} else {\r\n\t\t\t$this->kickout();\r\n\t\t}\r\n\t\theader('Location: '.$url);\r\n\t\texit;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0ea4087c0a2fb0beb5808c5f871947ee", "score": "0.631539", "text": "private function warning_page() {\n\t\tif ( $this->result->getImpact() < $this->warning_threshold ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// End user's session if they are in the wp admin\n\t\tif ( is_admin() AND $this->warning_wp_admin == true ) {\n\t\t\twp_logout();\n\t\t\twp_safe_redirect( '/wp-login.php?loggedout=true' );\n\t\t\texit;\n\t\t}\n\n\t\t// Load custom error page\n\t\tadd_action( 'template_redirect', array( $this, 'load_template' ) );\n\n\t\t// Catch wp-login.php requests\n\t\tadd_action( 'mscr_wp_login', array( $this, 'load_template' ) );\n\t}", "title": "" }, { "docid": "3c4e5170c647058982db038bca031557", "score": "0.6304873", "text": "function after_provisioning_redirect() {\n // TODO: see if get_site_url is available when doing add_action instead\n if (!get_site_url() == MAIN_SITE_URL) {\n if (isset($_COOKIE['conext_redirect'])) {\n setcookie('conext_redirect', '', 1, '', WORDPRESS_DOMAIN);\n }\n error_log(\"Not main site, skipping.\");\n return;\n }\n\n if (isset($_REQUEST['conext_redirect']) && is_user_logged_in()) {\n error_log(\"new_site in request, user logged in.\");\n sync_group_resources($GLOBALS['userdata']->user_login); \n // TODO: unsafe?\n wp_redirect('https://' . $_REQUEST['conext_redirect'] . WORDPRESS_DOMAIN);\n exit;\n } else if (isset($_REQUEST['conext_redirect']) && !is_user_logged_in()) {\n error_log(\"new site in request, user not logged in - setting cookie\");\n setcookie('conext_redirect', $_REQUEST['conext_redirect'], 0, '', WORDPRESS_DOMAIN);\n wp_redirect(get_site_url() . '/wp-login.php');\n exit;\n } else if (isset($_COOKIE['conext_redirect']) && ($_COOKIE['conext_redirect']) && is_user_logged_in()) {\n error_log(\"cookie set, user logged in...\");\n // Assuming resources were synced & the user just logged in.\n $target = $_COOKIE['conext_redirect'];\n setcookie('conext_redirect', '', 1, '', WORDPRESS_DOMAIN);\n wp_redirect('https://' . $target . WORDPRESS_DOMAIN);\n exit;\n } \n}", "title": "" }, { "docid": "19534d49be9ae21c1af2c66609eaa666", "score": "0.630456", "text": "function is_redirect_page()\n{\n\treturn true;\n}", "title": "" }, { "docid": "3779f6abc5e3ea6a897bd40f13197ab0", "score": "0.63014615", "text": "public function dashboard_page_redirect() {\n\n\t if( ! get_transient( 'llar_dashboard_redirect' ) || isset( $_GET['activate-multi'] ) || is_network_admin() ) {\n\t return;\n }\n\n\t\tdelete_transient( 'llar_dashboard_redirect' );\n\n\t wp_redirect( admin_url( 'index.php?page=' . $this->_options_page_slug ) );\n\t exit();\n }", "title": "" }, { "docid": "4148cc40fd576e7b9cd43ff46d8715f3", "score": "0.6299198", "text": "public function check_page() {\n\t\t// If the user hits plain /wp-admin/ then disable Calypso styles.\n\t\t$page = wp_basename( esc_url( $_SERVER['REQUEST_URI'] ) );\n\n\t\tif ( false !== strpos( 'index.php', $page ) || false !== strpos( 'wp-admin', $page ) ) {\n\t\t\tupdate_user_meta( get_current_user_id(), 'calypsoify', 0 );\n\t\t\twp_safe_redirect( admin_url() );\n\t\t\tdie;\n\t\t}\n\t}", "title": "" }, { "docid": "b6bd42fee32e064b34a77250e2013734", "score": "0.629763", "text": "public function redirect() {\n\t\t$this->controller->redirect(Configure::read('Clickandbuy.Clickandbuy_URL') .\n\t\tRouter::querystring(array('cmd' => '_express-checkout')),\n\t\t'302'\n\t);\n\t}", "title": "" }, { "docid": "b96d1cc97593b9ed4ab138ba19566198", "score": "0.6286477", "text": "public function return_page_redirect()\n\t{\n\t\t// is_return_page also checks for order-receive endpoint.\n\t\t// so we force this with the checkout page id.\n\t\tif ($this->is_return_page(woocommerce_get_page_id('checkout')))\n\t\t{\n\t\t\t$order_id = $this->get_order_id_from_request();\n\t\t\t$key = (isset($_GET['key'])) ? $_GET['key'] : null;\n\t\t\t\t\t\t// only when we dont have id or key we redirect..\n\t\t\tif ($order_id == null || $key == null)\n\t\t\t{\n\t\t\t\twp_redirect(get_permalink(woocommerce_get_page_id('checkout')));\n\t\t\t\texit;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ba7b091adf0c76226f4ca9f4d39d7cec", "score": "0.6281936", "text": "function netrics_activation_redirect( $plugin ) {\n if ( $plugin === NEWSNETRICS_BASENAME ) {\n $redirect_uri = add_query_arg(\n array(\n 'page' => 'newsnetrics' ),\n admin_url( 'options-general.php' )\n );\n wp_safe_redirect( $redirect_uri );\n exit;\n }\n}", "title": "" }, { "docid": "5859123202239534be63d64963ccb5e8", "score": "0.62384146", "text": "function release_mgt_successful_redirect( $p_redirect_to ) {\n print_successful_redirect( plugin_page( $p_redirect_to, true ) );\n}", "title": "" }, { "docid": "ab18fd681252e8d3c7f58303354b1107", "score": "0.62132686", "text": "public function template_redirect() {\n\t\tif ( ! is_page() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// When default permalinks are enabled, redirect award page to post type archive url\n\t\tif ( ! empty( $_GET['page_id'] ) && '' === get_option( 'permalink_structure' ) && $_GET['page_id'] == get_option( $this->option . '_page_id' ) ) {\n\t\t\twp_safe_redirect( get_post_type_archive_link( $this->post_type ) );\n\t\t\texit;\n\t\t}\n\t}", "title": "" }, { "docid": "4f1abffe530d9ed93c70c2afb14babff", "score": "0.62070364", "text": "function _redirect() {\r\n\t\t\t$page = isset( $_GET['page'] ) ? $_GET['page'] : '';\r\n\t\t\tif ( 'learn_press_settings' == $page ) {\r\n\t\t\t\t$current_tab = isset( $_GET['tab'] ) ? $_GET['tab'] : '';\r\n\t\t\t\t$tabs = learn_press_settings_tabs_array();\r\n\r\n\t\t\t\tif ( !$current_tab || ( $tabs && empty( $tabs[$current_tab] ) ) ) {\r\n\t\t\t\t\tif ( $tabs ) {\r\n\t\t\t\t\t\t$tab_keys = array_keys( $tabs );\r\n\t\t\t\t\t\t$current_tab = reset( $tab_keys );\r\n\t\t\t\t\t\twp_redirect( admin_url( 'options-general.php?page=learn_press_settings&tab=' . $current_tab ) );\r\n\t\t\t\t\t\texit();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "9aefd7e5452ee54fef48caeeb55584e1", "score": "0.62058145", "text": "private function successRedirect() {\n\t\t$redirect = Loader::helper('navigation')->getCollectionURL(Page::getCurrentPage()); //Get absolute url (location headers should be absolute URL's -- see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30)\n\t\t$redirect .= (strstr($redirect, '?') ? '&' : '?') . 'thanks=1';\n\t\theader(\"Location: \" . $redirect);\n\t\tdie;\n\t}", "title": "" }, { "docid": "672debbea3adf6adbebf60ae5ee24297", "score": "0.61744857", "text": "public function optimizme_redirect_404() {\n $objRedirection = $this->getRedirection( $_SERVER['REQUEST_URI'], 0 );\n if ($objRedirection){\n Tools::redirectLink('http://www.google.fr');\n exit;\n }\n }", "title": "" }, { "docid": "d0de67bd0c888d30b714a13178878962", "score": "0.61741", "text": "public function action_redirect()\n\t{\n\t\treturn;\n\t}", "title": "" }, { "docid": "622a5379f82663eafb5409875ecf0a41", "score": "0.6158341", "text": "protected function redirect_to_update_page() {\n\t\t$url = $this->get_message_page_url( $this->update_slug );\n\t\twp_safe_redirect( $url );\n\t\texit();\n\t}", "title": "" }, { "docid": "7c27dd382160aa4bd22d23869b2453f4", "score": "0.61399674", "text": "function redirect() {\n\t\theader('Location: admin.php');\n\t\texit();\n\t}", "title": "" }, { "docid": "64811fbb4c5e6a18099736cbab02cf47", "score": "0.61244416", "text": "public function disablePagesFront()\n {\n if (\n !defined('DOING_CRON') &&\n is_page()\n ) {\n nocache_headers();\n wp_safe_redirect(home_url(), 301);\n exit();\n }\n }", "title": "" }, { "docid": "e6dac2d1da307b1dae65fd5b74c0a623", "score": "0.61185014", "text": "function show404()\n {\n redirectTo('http://www.maybank.com/');\n }", "title": "" }, { "docid": "318e9418174385c0e0740cb78f37a5ef", "score": "0.61182594", "text": "private function showErrorPage() {\n header('Location: ' . _CLIENT_URL_ . 'error404/');\n }", "title": "" }, { "docid": "81e1d6bfcb99ece3f67d438cb5420413", "score": "0.6116367", "text": "function return_url_response_check() {\n\t\tif ( is_order_received_page() && self::get_field( 'paysafe-hosted-return', $_GET ) ) {\n\t\t\t$init_gateway = new Gateways\\Redirect\\Gateway();\n\t\t\t$order = wc_get_order( (int) self::get_field( 'paysafe-hosted-return', $_GET ) );\n\t\t\t\n\t\t\t$redirect_url = add_query_arg( 'paysafe-payment-status', self::get_field( 'transaction_status', $_GET ), $init_gateway->get_return_url( $order ) );\n\t\t\t\n\t\t\twc_get_template(\n\t\t\t\t'paysafe/iframe-break.php',\n\t\t\t\tarray(\n\t\t\t\t\t'redirect_url' => $redirect_url,\n\t\t\t\t),\n\t\t\t\t'',\n\t\t\t\tPaysafe::plugin_path() . '/templates/'\n\t\t\t);\n\t\t\texit;\n\t\t}\n\t}", "title": "" }, { "docid": "036eebc0da7e7338985e44cff070953e", "score": "0.61128676", "text": "function wpse12535_redirect_sample() {\n\tif (is_singular('product') || is_post_type_archive('product')) {\n\t\texit( wp_redirect( home_url( '/pricing' ) ) );\n\t}\n}", "title": "" }, { "docid": "636c69a66e72d285173ed4a5a942c511", "score": "0.61089015", "text": "function bryce_wc_register_redirect( $redirect ) {\n $redirect = home_url('/step-2');\n return $redirect;\n}", "title": "" }, { "docid": "a3648927693c638d0209faf48de99d78", "score": "0.6089173", "text": "function redirects() {\n\t\tif ( ! is_404() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Learn.WordPress.org category changed from social-learning to online workshops.\n\t\tif ( str_starts_with( $_SERVER['REQUEST_URI'], '/category/social-learning' ) ) {\n\t\t\t$url = str_replace( '/social-learning', '/learn-wordpress-online-workshops', $_SERVER['REQUEST_URI'] );\n\t\t\twp_safe_redirect( $url, 301 );\n\t\t\tdie();\n\t\t}\n\n\t\t// Redirect /upload to submit-video\n\t\tif ( 'upload' === trim( $_SERVER['REQUEST_URI'], '/' ) ) {\n\t\t\twp_safe_redirect( '/submit-video/', 301 );\n\t\t\tdie();\n\t\t}\n\t}", "title": "" }, { "docid": "edd38ab517a36ff7c887f01abe285f44", "score": "0.60868305", "text": "function fellow_custome_url_redirect() \n\t{\n\t\tglobal $current_user;\n\t\t$current_user = wp_get_current_user();\n\t\t$userrole=$current_user->roles[0];\n\n\t\tif (!is_user_logged_in())\n\t\t{\n\t\t\twp_redirect( wp_login_url());\n\t\t}\n\t\telseif(is_user_logged_in() && $userrole == \"administrator\")\n\t\t{\t\t\t\n\t\t\twp_redirect(admin_url(\"admin.php?page=agencies\"));\n\t\t\texit();\n\t\t}\n\t\telseif( is_user_logged_in() && $userrole == \"agencyadmin\")\n\t\t{\n\t\t\twp_redirect(admin_url(\"admin.php?page=subscribers\"));\n\t\t\texit();\n\t\t}\n\t\telse {\n\t\t\twp_redirect(admin_url());\n\t\t\texit();\n\t\t}\n\t}", "title": "" }, { "docid": "a1bc6312fc6f3a0a4b470e0fd734ffcf", "score": "0.6065005", "text": "function redirect() {\n\t\theader( 'location: admin.php');\n\t\texit();\n\t}", "title": "" }, { "docid": "3ba9a81575326bab07eb355320775829", "score": "0.6044568", "text": "private function goToNextPage() {\n $redirectURL = $this->getRequest()->requestVar('Redirect');\n\n //Check if on site URL, if so redirect there, else redirect back\n if ($redirectURL && Director::is_site_url($redirectURL)) Director::redirect(Director::absoluteURL(Director::baseURL() . $redirectURL));\n else Director::redirectBack();\n }", "title": "" }, { "docid": "2c0ec48e283d58dd4c29495f948ba057", "score": "0.60228235", "text": "public function redirectAction()\n {\n $this->_helper->getCheckoutSession()->setPaymentsenseOrderId(null);\n if (!$this->_hosted->isOrderAvailable()) {\n $this->executeFailureAction(\n $this->_helper->__('Your session has expired or you have no items in your shopping cart.')\n );\n } else {\n $this->getResponse()->setBody(\n $this->getLayout()->createBlock('paymentsense/redirect_hosted')->toHtml()\n );\n }\n }", "title": "" }, { "docid": "91001f53c4aea066ef513af6fd651832", "score": "0.601431", "text": "public function return_404() {\n redirect('pages/page_not_found');\n }", "title": "" }, { "docid": "e4e34f66991d86ed28673a30c19f1b59", "score": "0.5997557", "text": "function eager_EagerWordpressBasePlugin_cms_v2_1_pace_activate_page() {\n global $eagerBugsnag;\n\n $optin = update_option('eager_optin', 'true');\n if ($optin) {\n $url = admin_url(\"admin.php?page=eager_app_\" . EAGER_EagerWordpressBasePlugin_cms_v2_1_pace_ID . \"_options\");\n echo '<h1>Awesome!</h1>';\n echo '<h3>Taking you to the PACE configuration now...</h3>';\n echo '<script>window.location = \"' . $url . '\";</script>';\n } else {\n $eagerBugsnag->notifyError('activate_plugin', 'Error activating plugin after opt-in.', null, 'error');\n wp_die('There was an error when trying to install the Eager plugin. You can reload this page to try again. If this error persists, please contact Eager at help@eager.io.');\n }\n}", "title": "" }, { "docid": "97690793a1075256e1b32d2396a5084e", "score": "0.59782094", "text": "protected function redirect_to_welcome_page() {\n\t\t$url = $this->get_message_page_url( $this->welcome_slug );\n\t\twp_safe_redirect( $url );\n\t\texit();\n\t}", "title": "" }, { "docid": "0e76efc290e819fea41a1ebd3175c1ca", "score": "0.5967642", "text": "public function tpg_redirect(){\r\n\t\tif (!is_user_logged_in()) {\r\n\t\t\t$new_site='http://'.$this->rd_opts['rd-path'];\r\n\t\t\twp_redirect($new_site); \r\n\t\t\texit;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c2e4fecf124a22530b708a499006f783", "score": "0.59635437", "text": "function snax_do_welcome_redirect() {\n\tif ( get_transient( '_snax_do_activation_redirect' ) ) {\n\t\tdelete_transient( '_snax_do_activation_redirect' );\n\n\t\tif ( ! filter_input( INPUT_GET, 'activate-multi' ) ) {\n\t\t\t$query_args = array( 'page' => 'snax-about' );\n\n\t\t\twp_safe_redirect( add_query_arg( $query_args, admin_url( 'index.php' ) ) );\n\t\t}\n\t}\n}", "title": "" }, { "docid": "b28db50dd20e09f95a2d9a2fbfa9205c", "score": "0.59584355", "text": "function loginPageRedirect(){\n\t$redirect_url = site_url('nationswell-council');\n\theader( 'Location: ' . $redirect_url );\n\tdie();\n}", "title": "" }, { "docid": "95864938731bfeb81646c2662ef6c3ee", "score": "0.5944124", "text": "function sendTo404Page($requestedURL, $reason = '') {\n $abj404dao = ABJ_404_Solution_DataAccess::getInstance();\n $abj404logic = new ABJ_404_Solution_PluginLogic();\n $abj404logging = ABJ_404_Solution_Logging::getInstance();\n\n // this may be used later when displaying suggestions.\n $cookieName = ABJ404_PP . '_REQUEST_URI';\n try {\n setcookie($cookieName, urldecode($_SERVER['REQUEST_URI']), time() + (60 * 4), \"/\");\n \n } catch (Exception $e) {\n $abj404logging->debugMessage(\"There was an issue setting a cookie: \" . $e->getMessage());\n // This javascript redirect will only appear if the header redirect did not work for some reason.\n // document.cookie = \"username=John Doe; expires=Thu, 18 Dec 2013 12:00:00 UTC\";\n $expireTime = date(\"D, d M Y H:i:s T\", time() + (60 * 4));\n $c = \"\\n\" . '<script>document.cookie = \"' . $cookieName . '=' . \n urldecode($_SERVER['REQUEST_URI']) . \n '; expires=' . $expireTime . '\";</script>' . \"\\n\";\n echo $c;\n }\n \n $_REQUEST[ABJ404_PP][$cookieName] = urldecode($_SERVER['REQUEST_URI']);\n \n $options = $abj404logic->getOptions();\n \n // ---------------------------------------\n // if there's a default 404 page specified then use that.\n $dest404page = (array_key_exists('dest404page', $options) && isset($options['dest404page']) ? \n $options['dest404page'] : \n ABJ404_TYPE_404_DISPLAYED . '|' . ABJ404_TYPE_404_DISPLAYED);\n if (($dest404page != ABJ404_TYPE_404_DISPLAYED . '|' . ABJ404_TYPE_404_DISPLAYED) && \n ($dest404page != ABJ404_TYPE_404_DISPLAYED)) {\n $permalink = ABJ_404_Solution_Functions::permalinkInfoToArray($dest404page, 0);\n \n // get the existing redirect before adding a new one.\n $redirect = $abj404dao->getExistingRedirectForURL($requestedURL);\n if (!isset($redirect['id']) || $redirect['id'] == 0) {\n $abj404dao->setupRedirect($requestedURL, ABJ404_STATUS_CAPTURED, $permalink['type'], $permalink['id'], $options['default_redirect'], 0);\n }\n \n $abj404dao->logRedirectHit($requestedURL, $permalink['link'], 'user specified 404 page. ' . $reason);\n $abj404logic->forceRedirect(esc_url($permalink['link']), esc_html($options['default_redirect']));\n exit;\n }\n\n // ---------------------------------------\n // give up. log the 404.\n if (@$options['capture_404'] == '1') {\n // get the existing redirect before adding a new one.\n $redirect = $abj404dao->getExistingRedirectForURL($requestedURL);\n if (!isset($redirect['id']) || $redirect['id'] == 0) {\n $abj404dao->setupRedirect($requestedURL, ABJ404_STATUS_CAPTURED, ABJ404_TYPE_404_DISPLAYED, ABJ404_TYPE_404_DISPLAYED, $options['default_redirect'], 0);\n }\n $abj404dao->logRedirectHit($requestedURL, '404', 'gave up. ' . $reason);\n } else {\n $abj404logging->debugMessage(\"No permalink found to redirect to. capture_404 is off. Requested URL: \" . $requestedURL .\n \" | Redirect: \" . wp_kses_post(json_encode($redirect)) . \" | is_single(): \" . is_single() . \" | \" .\n \"is_page(): \" . is_page() . \" | is_feed(): \" . is_feed() . \" | is_trackback(): \" .\n is_trackback() . \" | is_preview(): \" . is_preview() . \" | options: \" . wp_kses_post(json_encode($options)));\n }\n }", "title": "" }, { "docid": "4f5f038a8e9911294dfc502dd76ab7f4", "score": "0.5940694", "text": "public function maybe_redirect() {\n\n\t\tif ( isset( $_GET['optml_nonce'] ) && isset( $_GET['optml_hide_optin'] ) && $_GET['optml_hide_optin'] === 'yes' && wp_verify_nonce( $_GET['optml_nonce'], 'hide_nonce' ) ) {\n\t\t\tupdate_option( 'optml_notice_optin', 'yes' );\n\t\t}\n\n\t\tif ( isset( $_GET['optml_nonce'] ) && isset( $_GET['optml_hide_upg'] ) && $_GET['optml_hide_upg'] === 'yes' && wp_verify_nonce( $_GET['optml_nonce'], 'hide_nonce' ) ) {\n\t\t\tupdate_option( 'optml_notice_hide_upg', 'yes' );\n\t\t}\n\n\t\tif ( ! get_transient( 'optml_fresh_install' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {\n\t\t\treturn;\n\t\t}\n\n\t\tdelete_transient( 'optml_fresh_install' );\n\n\t\tif ( is_network_admin() || isset( $_GET['activate-multi'] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( $this->settings->is_connected() ) {\n\t\t\treturn;\n\t\t}\n\t\twp_safe_redirect( admin_url( 'upload.php?page=optimole' ) );\n\t\texit;\n\t}", "title": "" }, { "docid": "99ec3fb59f98b4908c3596072886b40a", "score": "0.593534", "text": "function wp_redirection( $link, $url ) {\n \n global $wp;\n\n if (strpos($_SERVER['REQUEST_URI'], $link)) {\n wp_redirect($url);\n exit();\n }\n\n}", "title": "" }, { "docid": "62b596c49db4fd68e85b128ca84898ad", "score": "0.5933576", "text": "function redirect($url)\r\n{\r\n if ( strpos($_SERVER[\"SERVER_SOFTWARE\"], 'Microsoft-IIS') === false )\r\n {\r\n header('Location: '.$url);\r\n exit();\r\n }\r\n else\r\n die('<meta http-equiv=\"refresh\" content=\"0;URL='.$url.'\" />');\r\n}", "title": "" }, { "docid": "56998c7b5c47088a3673cbea459ee3a3", "score": "0.5930429", "text": "function buckys_redirect($url, $msg = null, $msg_type = MSG_TYPE_SUCCESS){\n if($msg){\n buckys_add_message($msg, $msg_type);\n }\n header(\"Location: \" . $url);\n exit;\n}", "title": "" }, { "docid": "7d4674d56dc010e582d79d8ce410aa4a", "score": "0.5912038", "text": "public function CatchAll() {\n if($this->request->method == 'step5') {\n $this->views->SetTitle(t('Home'))\n ->AddInclude(__DIR__ . '/installed.tpl.php', array(), 'primary');\n } else {\n $this->ShowErrorPage(404, t('Page is not found.'));\n }\n }", "title": "" }, { "docid": "358def98cd527c87b576d5b07658a3c2", "score": "0.59050393", "text": "function performRedirect() {\n if($this->action == 'add' && !empty($this->request->data['Cluster']['plugin'])) {\n // Redirect to the appropriate plugin to set up whatever it wants\n \n $pluginName = filter_var($this->request->data['Cluster']['plugin'],FILTER_SANITIZE_SPECIAL_CHARS);\n $modelName = $pluginName;\n \n $target = array();\n $target['plugin'] = Inflector::underscore($pluginName);\n $target['controller'] = Inflector::tableize($modelName);\n $target['action'] = 'edit';\n $target[] = $this->Cluster->_targetid;\n \n $this->redirect($target);\n } elseif(!empty($this->request->params['named']['copersonid'])) {\n // Redirect to the CO Person's authenticator status page\n \n $target = array();\n $target['controller'] = 'clusters';\n $target['action'] = 'status';\n $target['copersonid'] = filter_var($this->request->params['named']['copersonid'],FILTER_SANITIZE_SPECIAL_CHARS);\n \n $this->redirect($target);\n } else {\n parent::performRedirect();\n }\n }", "title": "" }, { "docid": "91dd106c4661d29fe036bc8bc6d8b635", "score": "0.5903214", "text": "function ap_register_redirect( $redirect ) {\n return site_url('/');\n}", "title": "" }, { "docid": "81f51f947afe29babfe73d836c03baf2", "score": "0.589953", "text": "public function plugin_page() {\n\t\techo 'This page appears in the Forms menu';\n\t}", "title": "" }, { "docid": "192d6c981b0447809522d84f3746e14c", "score": "0.5889594", "text": "function performRedirect() {\n // Figure out where to redirect back to based on how we were called\n \n if(isset($this->ieid)) {\n $params = array(\n 'plugin' => 'identifier_enroller',\n 'controller' => 'identifier_enroller_identifiers',\n 'action' => 'index',\n 'ieid' => $this->ieid\n );\n } else {\n // A perhaps not ideal default, but we shouldn't get here\n $params = array(\n 'plugin' => null,\n 'controller' => 'co_enrollment_flows',\n 'action' => 'index',\n 'co' => $this->cur_co['Co']['id']\n );\n }\n \n $this->redirect($params);\n }", "title": "" }, { "docid": "e32d995840983f94b6cff4d62a18d123", "score": "0.5887177", "text": "private function redirect(){\n\t\t//send admins to the admin area \n\t\tif($this->cred->hasRead(\"ADMIN_LOGIN\")){\n\t\t\theader(\"Location: /admin/zAdmin\");\n\t\t\texit();\n\t\t}\n\n\t\t//health coach send them to their area\n\t\tif($this->cred->hasRead(\"LOGIN_HEALTH_COACH\")){\n\t\t\theader(\"Location: /HealthCoach/Index\");\n\t\t\texit();\n\t\t}\n\n\t\t//send users to the user area\n\t\tif($this->cred->hasRead(\"LOGIN_USER\")){\n\t\t\t\n\t\t\t$company = \"SELECT p.url FROM p_company as p \n\t\t\t\t\t\tINNER JOIN u_profile as u ON p.id = u.company_id\n\t\t\t\t\t\tWHERE u.z_user_id = \".$this->cred->getId();\n\t\t\t$url = $this->dbOb->query($company);\n\t\t\t\n\t\t\t\n\t\t\t$sql = \"SELECT count(*) FROM u_profile WHERE z_user_id = \" . $this->cred->getId() . \" AND status like 'pre-loaded'\";\n\t\t\t$is_preloaded = $this->dbOb->getOne($sql);\n\t\t\t\n\t\t\theader(\"Location: \" . ($is_preloaded ? '/Register/'.$url[0]['url'].'/'.$this->cred->getId() : '/User/Index') );\n\t\t\t//header(\"Location: \" . ($is_preloaded ? '/Register/'.$url[0]['url'] : '/User/Index') );\n\t\t\texit();\n\t\t}\n\t}", "title": "" }, { "docid": "c5b24289215f77eac28c619f3e5a0e63", "score": "0.5886257", "text": "public function activation_redirect() {\n\n\t\t\theader( 'Location:' . admin_url() . 'admin.php?page=zage' );\n\n\t}", "title": "" }, { "docid": "ca79c1d19d090c1e6e6d87826fc25af5", "score": "0.5884303", "text": "function machete_do_activation_redirect() {\n if ( ! get_transient( '_machete_welcome_redirect' ) ) {\n return;\n }\n // Delete the redirect transient\n delete_transient( '_machete_welcome_redirect' );\n\n // Bail if activating from network, or bulk\n if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) {\n return;\n }\n // Redirect to about page\n wp_safe_redirect( add_query_arg( array( 'page' => 'machete' ), admin_url( 'admin.php' ) ) );\n}", "title": "" }, { "docid": "f16fd7f5d983ff9dcc53ab9d54eeb114", "score": "0.58840907", "text": "public function coupon_menu_moved() {\n\t\twp_safe_redirect( $this->get_legacy_coupon_url(), 301 );\n\t\texit();\n\t}", "title": "" }, { "docid": "d05c728eed726246e46650426f367b2a", "score": "0.58837897", "text": "protected function _redirectToRequestPage()\n {\n $url = $_SERVER['HTTP_REFERER'];\n $this->_redirector->gotoUrlAndExit($url);\n }", "title": "" }, { "docid": "4d2d8635f9740a248784b056a4ce13bb", "score": "0.5883449", "text": "function geoip_redirect(){\n if (is_admin())\n return;\n\n $current_user = wp_get_current_user();\n if (user_can( $current_user, 'administrator' ))\n return;\n\n if (!is_page('pricing'))\n return;\n\n if (!function_exists('geoip_detect2_get_info_from_current_ip'))\n return;\n\n $userInfo = geoip_detect2_get_info_from_current_ip();\n $countryCode = $userInfo->country->isoCode;\n if($countryCode == 'IN'){\n $url = '/pricing-india';\n wp_redirect(get_site_url(null, $url));\n exit;\n }\n}", "title": "" }, { "docid": "b3be08ad94ed77bd3a451ddee57eea25", "score": "0.5882156", "text": "function thrive_redirect_to_login() {\n\n\tglobal $post;\n\n\t$login_page_id = intval( get_option( 'thrive_login_page' ) );\n\n\t$excluded_page = thrive_get_excluded_page_id_collection();\n\n\n\t// Already escaped inside 'thrive_get_redirect_page_url'.\n\t$redirect_page = thrive_get_redirect_page_url();\n\n\n\t// Check if redirect page is empty or not.\n\tif ( empty( $redirect_page ) ) { \n\t\treturn; \n\t}\n\n\t// Check if buddypress activate page.\n\tif ( function_exists( 'bp_is_activation_page' ) ) {\n\t\tif ( bp_is_activation_page() ) {\n\t\t\treturn;\n\t\t}\n\t}\n\n\t// Check if buddypress registration page.\n\tif ( function_exists('bp_is_register_page')) {\n\t\tif ( bp_is_register_page() ) {\n\t\t\treturn;\n\t\t}\n\t}\n\n\n\t// In case their is no post ID assign a 0 value to\n\t// $post->ID. This pages applies to custom WordPress pages\n\t// like BuddyPress Members and Groups.\n\tif ( empty( $post ) ) \n\t{\n\t\t$post = new stdclass;\n\t\t$post->ID = 0;\n\t}\n\n\t// Check if current page is locked down or not.\n\t$current_page_id = intval( $post->ID );\n\n\t// Check if $current_page_id && $selected_blog_id is equal to each other\n\t// If that's the case, get the page ID instead of global $post->ID that returns\n\t// the ID of the first post object inside the loop\n\t$blog_id = intval( get_option('page_for_posts') );\n\n\tif ( is_home() ) {\n\t\tif ( $blog_id === $login_page_id ) {\n\t\t\t$current_page_id = $blog_id;\n\t\t}\n\t}\n\t\n\t// Only execute the script for non-loggedin visitors.\n\tif ( ! is_user_logged_in() ) {\n\n\t\tif ( $current_page_id !== $login_page_id ) {\n\n\t\t\tif ( ! in_array( $current_page_id, $excluded_page ) ) {\n\n\t\t\t\twp_safe_redirect ( add_query_arg(array('_redirected'=>'yes'), $redirect_page ) );\n\t\t\t\t\n\t\t\t\tdie();\n\n\t\t\t}\n\n\t\t}\n\t\t\n\t}\n\n\treturn;\n\n}", "title": "" }, { "docid": "49e49624a057059d620ed73c6f85616a", "score": "0.58779085", "text": "function ap_login_redirect( $redirect ) {\n $redirect_page_id = url_to_postid( $redirect );\n $checkout_page_id = wc_get_page_id( 'checkout' );\n\n if( $redirect_page_id == $checkout_page_id ) {\n return $redirect;\n }\n\n return site_url('/');\n}", "title": "" }, { "docid": "85f1f8ab93b9f04be586bf7eb44777ef", "score": "0.58668447", "text": "function pageNotFound()\n {\n flash('Ooops..!', 'page_not_found', 'error');\n return '';\n }", "title": "" }, { "docid": "7ea0e6f2fe5170918682d8be2a35bf6f", "score": "0.58652854", "text": "function login_page(){\n\t\t$this->setRedirect('index.php?option=com_webfonts&controller=webfontslogin');\n\t}", "title": "" }, { "docid": "230b1eb3155a628b0acd87640a96145b", "score": "0.58598906", "text": "private function _redirect() {\n\n // return header(\"Location:index.php\");\n }", "title": "" }, { "docid": "4b14af9e8241a73c30aff7e388b1383c", "score": "0.5858072", "text": "public function redirect_customizer() {\n\t\tif ( ! empty( $_GET['page'] ) ) { // Input var okay.\n\t\t\tif ( 'colorlib-login-customizer_settings' === $_GET['page'] ) { // Input var okay.\n\n\t\t\t\t// Generate the redirect url.\n\t\t\t\t$url = add_query_arg(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'autofocus[panel]' => 'clc_main_panel',\n\t\t\t\t\t),\n\t\t\t\t\tadmin_url( 'customize.php' )\n\t\t\t\t);\n\n\t\t\t\twp_safe_redirect( $url );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "810f9d95bac910b3281f9ac8a570a3e4", "score": "0.5855327", "text": "protected function _redirectNotFoundPage()\n {\n throw new Zend_Controller_Action_Exception('page not found', 404);\n }", "title": "" }, { "docid": "199c49d83dbda3c10c459302f9f33aa5", "score": "0.5854944", "text": "public function index(){\n if($this->ion_auth->is_admin()){\n redirect('/admin/carrier_pigeon_server/');\n die();\n }\n redirect('/open-source/carrier-pigeon/');\n die();\n }", "title": "" }, { "docid": "6be5550c6d66a9ea9e1d963ce2cc1283", "score": "0.58541775", "text": "function redirect_non_admin_users() {\n\t\tif ( ! current_user_can( 'manage_options' ) && '/wp-admin/admin-ajax.php' != $_SERVER['PHP_SELF'] ) {\n\t\t\twp_redirect( home_url() );\n\t\t\texit;\n\t\t}\n\t}", "title": "" }, { "docid": "f7a3720cfa4cc6db422672f9a520dc71", "score": "0.5847227", "text": "function ges_redirect( $url )\r\n{\r\n if( getsessionvar(\"user_header302_relocation\") == true )\r\n { \r\n header( \"302 Moved\" ); \r\n }\r\n\r\n if( strpos( $url, \"Location\" ) === false )\r\n\t$url = \"Location:\" . $url;\r\n \r\n header( $url );\r\n}", "title": "" }, { "docid": "9b45cfc0f34ac40a40f5d08a4dc7de99", "score": "0.58454454", "text": "function plugin_edit_cancel()\n{\n\t//global $vars;\n\tpkwk_headers_sent();\n\t// modified for Magic3 by naoki on 2008/10/6\n\t//header('Location: ' . get_script_uri() . '?' . rawurlencode($vars['page']));\n\theader('Location: ' . get_script_uri() . WikiParam::convQuery('?' . rawurlencode(WikiParam::getPage()), false));\n\texit;\n}", "title": "" }, { "docid": "801d67a3dfbf4c87671f5d0e781b69b7", "score": "0.58436763", "text": "function redirect_to_front_page() {\r\n\tglobal $redirect_to;\r\n\tif (!isset($_GET['redirect_to'])) {\r\n\t\t$redirect_to = get_option('siteurl');\r\n\t}\r\n}", "title": "" }, { "docid": "44826bbda3a6ce2103907f619f73b59f", "score": "0.5841103", "text": "function template_redirect() {\n\t\tif ( !is_single() && !is_page() )\n\t\t\treturn;\n\n\t\tglobal $wp_query;\n\n\t\t$link = get_post_meta( $wp_query->post->ID, '_links_to', true );\n\n\t\tif ( !$link )\n\t\t\treturn;\n\n\t\twp_redirect( $link, 301 );\n\t\texit;\n\t}", "title": "" }, { "docid": "705db7ee13fa7f75285e97e2a57fc2b1", "score": "0.5834697", "text": "public function xtw_fmcontent_redirect() {\n\t\t$url = home_url();\n\t\tif ( self::xtw_get_url() === '/modules/fmcontent/' ):\n\t\t\tself::xtw_url_redirect( $url );\n\t\tendif;\n\t}", "title": "" }, { "docid": "522b75c361121aece04a5eef1a77bc45", "score": "0.58323234", "text": "public function redirect_memory() {\n\t\t\t$page_viewed = basename($_SERVER['REQUEST_URI']);\n\t\t\t$login_page = 'http://memory.tsuru.qdqmedia.com//login/v1/wordpress/?referer=' . site_url().'/';\n\t\t\t\tif( $page_viewed == \"optimiza-login\" && $_SERVER['REQUEST_METHOD'] == 'GET') {\n\t\t\t\t\twp_redirect($login_page);\n\t\t\t\texit();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "1615494d4a49c1808d8904c1c68c825a", "score": "0.58313096", "text": "function return_to_checkout() {\n\t\tglobal $wpdb;\n\n\t\twp_redirect( get_option( 'shopping_cart_url' ) );\n\n\t\texit(); // follow the redirect with an exit, just to be sure.\n\t}", "title": "" }, { "docid": "b8ef737dd658b4ecbb8fb681040c3605", "score": "0.58253133", "text": "function fallback($location) {\n\theader(\"Location: \".$location);\n\texit;\n}", "title": "" }, { "docid": "f57bf47217f934dbe6610e294e581d86", "score": "0.5821241", "text": "function wpcom_vip_wp_old_slug_redirect(){\n\tglobal $wp_query;\n\tif ( is_404() && '' !== $wp_query->query_vars['name'] ) {\n\n\t\t$redirect = wp_cache_get('old_slug'. $wp_query->query_vars['name'] );\n\n\t\tif ( false === $redirect ){\n\t\t\t// Run the caching callback as the very firts one in order to capture the value returned by WordPress from database. This allows devs from using `old_slug_redirect_url` filter w/o polluting the cache\n\t\t\tadd_filter( 'old_slug_redirect_url', 'wpcom_vip_set_old_slug_redirect_cache', -9999, 1 );\n\t\t\t//If an old slug is not found the function returns early and does not apply the old_slug_redirect_url filter. so we will set the cache for not found and if it is found it will be overwritten later in wpcom_vip_set_old_slug_redirect_cache()\n\t\t\twp_cache_set( 'old_slug'. $wp_query->query_vars['name'], 'not_found', 'default', 12 * HOUR_IN_SECONDS + mt_rand(0, 12 * HOUR_IN_SECONDS ) );\n\t\t} elseif ( 'not_found' === $redirect ){\n\t\t\t//wpcom_vip_set_old_slug_redirect_cache() will cache 'not_found' when a url is not found so we don't keep hammering the database\n\t\t\tremove_action( 'template_redirect', 'wp_old_slug_redirect' );\n\t\t\treturn;\n\t\t} else {\n\t\t\t/** This filter is documented in wp-includes/query.php. */\n\t\t\t$redirect = apply_filters( 'old_slug_redirect_url', $redirect );\n\t\t\twp_redirect( $redirect, 301 ); //this is kept to not safe_redirect to match the functionality of wp_old_slug_redirect\n\t\t\texit;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "813e36cbe7675e9e90f9350f31826844", "score": "0.5819483", "text": "function redirect_non_admin_users() {\n\t\tif ( !current_user_can( 'manage_options') && '/wp-admin/admin-ajax.php' != $_SERVER['PHP_SELF'] ) {\n\t\t\twp_redirect( home_url() );\n\t\t\texit;\n\t\t}\n\t}", "title": "" }, { "docid": "e24f536a2141751053dce9666f69f7ca", "score": "0.58188474", "text": "function yp_admin_headr() {\r\n\r\n if(!isset($_GET['page'])){\r\n return false;\r\n }\r\n\r\n if($_GET['page'] != 'yellow-pencil'){\r\n return false;\r\n }\r\n \r\n // Home URL\r\n $yellow_pencil_uri = yp_get_uri();\r\n\r\n // Basic\r\n $frontpage_id = get_option('page_on_front');\r\n\r\n if($frontpage_id == 0 || $frontpage_id == null){\r\n $page_id = \"home\";\r\n $yp_page_type = \"home\";\r\n $yp_mode = \"single\";\r\n }else{\r\n $page_id = $frontpage_id;\r\n $yp_page_type = get_post_type($frontpage_id);\r\n $yp_mode = \"single\"; \r\n }\r\n\r\n // Redirect Link\r\n $href = add_query_arg(array('href' => yp_urlencode(get_home_url().'/'), 'yp_page_id' => $page_id, 'yp_page_type' => $yp_page_type, 'yp_mode' => $yp_mode, 'yp_load_popup' => \"1\"), $yellow_pencil_uri);\r\n \r\n // Redirect\r\n wp_safe_redirect($href);\r\n \r\n}", "title": "" }, { "docid": "4d190979fe9c019dff43f8bf6f348879", "score": "0.5818024", "text": "public function pageNotFound() {\r\n\t $this->error('<b>[Die aufgerufene Seite existiert nicht]</b><br />\r\n Bitte überprüfen Sie den Link oder die eingegebene URL in ihrem Browser.');\r\n\t}", "title": "" }, { "docid": "8fc01c35e587e943f29ac007608848b8", "score": "0.58139247", "text": "public function redirect(){\n $this->registerProfile();\n //header(\"Location: http://localhost/offersView.AdminSites/profile.php\");\n header(\"Location: http://offesview.bugs3.com/profile.php\");\n }", "title": "" }, { "docid": "1f8e55e1707f3920915d790c40175fd2", "score": "0.58005154", "text": "public function redirect15Action()\n {\n return $this->redirect('http://www.viemonjob.com/metier/e-galeriste');\n }", "title": "" }, { "docid": "bb4b812e3da8d2cc5c9f8cbfb19891a2", "score": "0.57967097", "text": "public function redirect_to_login() {\n\t\twp_redirect( wp_login_url( $_SERVER['REQUEST_URI'] ) );\n\t\texit;\n\t}", "title": "" }, { "docid": "7a4dba211ec7603841e64d82468701b5", "score": "0.57960147", "text": "function public_profile(){\n\t\twp_die('redirect didn\\'t work');\n\t}", "title": "" }, { "docid": "3cd4a90e808151d05e4f25b9bc0f05c9", "score": "0.5790731", "text": "function wpse_lost_password_redirect() {\r\r\r\n wp_redirect('https://'.$_SERVER['HTTP_HOST'].'/sign-in/'); \r\r\r\n exit;\r\r\r\n}", "title": "" }, { "docid": "3fdf61dc26ebc052af2323253a1f4d29", "score": "0.5783076", "text": "function redirect_last() {\n\tpreserve_warnings();\n\t// simple redirect to the last 'good' page\n\t// exclude login, logout, stuff like that.\n\t// any url that uses a POST cannot be redirected to.\n\theader(\"Location: \" . $_SERVER['HTTP_REFERER'] . \"\\n\\n\");\n\texit();\n\t\n}", "title": "" }, { "docid": "fb38c008d8f6a0d0497924ba50610975", "score": "0.5780025", "text": "public function wss_avoid_resend() {\n\t\t$this->support_page = get_option( 'wss-page' );\n\t\t$this->support_page_url = get_the_permalink( $this->support_page );\n\n\t\tif ( isset( $_GET['sent'] ) ) {\n\t\t\theader( 'Location: ' . $this->support_page_url );\n\t\t\texit;\n\t\t}\n\t}", "title": "" }, { "docid": "79a4edef9ec8e7cba8babb917768bd56", "score": "0.577551", "text": "public function onPostInstall() {\n\t\t\t$actionName = Zend_Controller_Front::getInstance()->getRequest()->getActionName();\n\t\t\t$controllerName = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();\n\t\t\tif ($controllerName == 'manage' && ($actionName == 'install' || $actionName == 'query')) {\n\t\t\t\t\t$view = new Zend_View();\n\t\t\t\t\t$baseUrl = (!empty($_ENV[\"HTTPS\"]) && 'on' == strtolower($_ENV[\"HTTPS\"]) ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . str_replace('install/', '', $view->url(array(), 'default', true));\n\t\t\t\t\t$redirector = Zend_Controller_Action_HelperBroker::getStaticHelper('redirector');\n\t\t\t\t\tif ($actionName == 'install') {\n\t\t\t\t\t\t\t$redirector->gotoUrl($baseUrl . 'admin/siteevent/settings/language/redirect/install');\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$redirector->gotoUrl($baseUrl . 'admin/siteevent/settings/language/redirect/query');\n\t\t\t\t\t}\n\t\t\t}\n }", "title": "" }, { "docid": "1c1b6123630a880fe6a7b9e6fd2a1944", "score": "0.5773937", "text": "public function fails_to_load() {\n\n\t\t\t$screen = get_current_screen();\n\n\t\t\tif ( ! wcf()->utils->is_step_post_type() ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( ! wcf()->utils->check_is_woo_required_page() ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$skip_notice = false;\n\n\t\t\twp_localize_script( 'wcf-global-admin', 'cartflows_woo', array( 'show_update_post' => $skip_notice ) );\n\n\t\t\t$class = 'notice notice-warning';\n\t\t\t/* translators: %s: html tags */\n\t\t\t$message = sprintf( __( 'This %1$sCartFlows%2$s page requires %1$sWooCommerce%2$s plugin installed & activated.', 'cartflows' ), '<strong>', '</strong>' );\n\n\t\t\t$plugin = 'woocommerce/woocommerce.php';\n\n\t\t\tif ( _is_woo_installed() ) {\n\t\t\t\tif ( ! current_user_can( 'activate_plugins' ) ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t$action_url = wp_nonce_url( 'plugins.php?action=activate&amp;plugin=' . $plugin . '&amp;plugin_status=all&amp;paged=1&amp;s', 'activate-plugin_' . $plugin );\n\t\t\t\t$button_label = __( 'Activate WooCommerce', 'cartflows' );\n\n\t\t\t} else {\n\t\t\t\tif ( ! current_user_can( 'install_plugins' ) ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t$action_url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=woocommerce' ), 'install-plugin_woocommerce' );\n\t\t\t\t$button_label = __( 'Install WooCommerce', 'cartflows' );\n\t\t\t}\n\n\t\t\t$button = '<p><a href=\"' . $action_url . '\" class=\"button-primary\">' . $button_label . '</a></p><p></p>';\n\n\t\t\tprintf( '<div class=\"%1$s\"><p>%2$s</p>%3$s</div>', esc_attr( $class ), $message, $button );\n\t\t}", "title": "" }, { "docid": "5f12e7f8650684186cdf43747f91658a", "score": "0.57701135", "text": "function glv_login_redirect( $redirect_to, $request, $user ) {\t\tif ( class_exists( 'WooCommerce' ) ) {\n\t\t\tif ( WC()->cart->get_cart_contents_count() != 0 ) {\n\t\t\t\t$redirect_to = get_permalink( get_option( 'woocommerce_myaccount_page_id' ) );\n\n//\t\t\t Do something fun\n\t\t\t}\n\t\t}\n\n\t\treturn $redirect_to;\n\t}", "title": "" }, { "docid": "e2338f856b40227c640aa2c9abf9f1c1", "score": "0.575567", "text": "private function _redirect()\n {\n $location = $this->_mainPage->getAttribute('redirect');\n\n if ($location) {\n header('Location: ' . $location);\n exit;\n }\n }", "title": "" }, { "docid": "6d78eecaafa2b00484b2e80b8671ca63", "score": "0.57544655", "text": "function WebpageCallback($location) {\n \t header(\"Location: callback.php?cb=\". $location);\n \t die(\"Redirecting to callback!\");\n }", "title": "" }, { "docid": "f045f62adf49131dd85d0604428071bb", "score": "0.57491994", "text": "function wc_empty_cart_redirect_url() {\n return $_SERVER['HTTP_REFERER'];\n}", "title": "" }, { "docid": "a2bff650c1298c94b83cffbe14fa8d77", "score": "0.57483417", "text": "function Redirect($url, $permanent = 302) {\n wp_redirect($url, $permanent);\n exit();\n }", "title": "" }, { "docid": "2f8d7495f41c9070a8082c78dd11f50b", "score": "0.57480896", "text": "function sr_redirect( $action ) {\n\tif ( $action['post_id'] == get_the_ID() ) {\n\t\twp_redirect( $action['redirect_url'] );\n\t\texit;\n\t}\n}", "title": "" }, { "docid": "79dda74fe34ce4fb5926faa073e1dcc9", "score": "0.5742046", "text": "public static function redirectToReferringPage() {\n $uri = (array_key_exists('HTTP_REFERER', $_SERVER))\n ? $_SERVER['HTTP_REFERER']\n : '/';\n header('Location: '.$uri);\n exit;\n }", "title": "" }, { "docid": "1f0f5d48b79fb3732341dcf694d0527c", "score": "0.5726397", "text": "function nicholls_fs_do_theme_redirect($url) {\n global $post, $wp_query;\n if (have_posts()) {\n include($url);\n die();\n } else {\n $wp_query->is_404 = true;\n }\n}", "title": "" }, { "docid": "2cab3a4a89a8c9fc8d1a1d1752eb9aff", "score": "0.57211447", "text": "function redirect_404($redirect = TRUE)\n{\n\t$CI =& get_instance();\n\t$CI->fuel->redirects->execute($redirect);\n}", "title": "" } ]
7165aab76dada46ea81bf243478b686d
Insert form data into db..
[ { "docid": "12408fd0695cd86b8c3d34d0532245bf", "score": "0.0", "text": "private static function getBrowser() {\n //global $user_agent;\n $user_agent = $_SERVER['HTTP_USER_AGENT'];\n $browser = \"Unknown Browser\";\n $browser_array = array(\n '/msie/i' => 'Internet Explorer',\n '/firefox/i' => 'Firefox',\n '/safari/i' => 'Safari',\n '/chrome/i' => 'Chrome',\n '/edge/i' => 'Edge',\n '/opera/i' => 'Opera',\n '/netscape/i' => 'Netscape',\n '/maxthon/i' => 'Maxthon',\n '/konqueror/i' => 'Konqueror',\n '/mobile/i' => 'Handheld Browser'\n );\n\n foreach ($browser_array as $regex => $value) { \n if (preg_match($regex, $user_agent)) {\n $browser = $value;\n }\n }\n\n return $browser;\n }", "title": "" } ]
[ { "docid": "6c1ed9b65a3288ddab824e2312582bbf", "score": "0.7509223", "text": "function form_insert($data){\n\t\t$this->db->insert('congee', $data);\n\t}", "title": "" }, { "docid": "d1097bf5802119547d1dce6ac58e064e", "score": "0.730383", "text": "function dbRowInsert($table_name, $form_data)\n {\n $fields = array_keys($form_data);\n \n $sql = \"INSERT INTO \".$table_name.\"(`\".implode('`,`', $fields).\"`)\n VALUES('\".implode(\"','\", $form_data).\"')\";\n \n\n $inserted = $this->conn->prepare($sql);\n $row = $inserted->execute();\n \n // run and return the query result resource\n if ($row) {\n \n // header(\"Location: index.php\");\n // echo \"New record created successfully\";\n }\n else\n {\n echo \"Error: \" . $sql;\n return 0;\n }\n\n }", "title": "" }, { "docid": "a403535257c5f3467a8bb78bebc74b6e", "score": "0.7253363", "text": "function insert() {\n\t insert_customdb($_POST['first_name'], $_POST['last_name'], $_POST['email'],$_POST['password'],$_POST['birth_day'],$_POST['phonenumber'] );\n }", "title": "" }, { "docid": "50100fbd6145bc9130817e6bfdaba4ae", "score": "0.72013974", "text": "public function addContactFormToDatabase(){\n\t\tif(empty($this->_data)){\n\t\t\t$this->errors = ['error' => 'Please submit all fields'];\n\t\t\treturn false;\n\t\t}\n\t\t$insertCols = \"\";\n\t\t$insertVals = \"\";\n\t\t//insert values string\n\t\tforeach($this->_data as $column => $value){\n\t\t\t$insertCols .= $this->_db->real_escape_string($column).\",\";\n\t\t\t$insertVals .= \"'\".$value.\"'\".\",\";\n\t\t}\n\t\t$insertCols = substr($insertCols, 0, -1);\n\t\t$insertVals = substr($insertVals, 0, -1);\n\n\t\t$insertContactFormSQL = \"INSERT INTO contact_form (\".$insertCols.\") VALUES (\".$insertVals.\")\";\n\t\tif($this->_db->query($insertContactFormSQL) !== true){\n\t\t\t$this->errors = ['error' => 'An unkonwn error has occured'];\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "b576f75f1836f463347a63c7f1cd0ec9", "score": "0.7148122", "text": "function form_insert($data){\n$this->db->insert('taches', $data);\n }", "title": "" }, { "docid": "2f7fddaf10623586d7a38af07c1936c9", "score": "0.705204", "text": "function insertDbGeneric($conn, $table, $form_data) {\n\t\t$fields = array_keys($form_data);\n\t\t$sql = \"INSERT INTO \".$table.\"(`\".implode('`,`', $fields).\"`) VALUES ('\".implode(\"','\", $form_data).\"')\";\n\t\tif(mysqli_query($conn, $sql)) {\n\t\t\techo \"<p class='confirm'>New agent has been successfully added</p>\";\n\t\t}\n\t}", "title": "" }, { "docid": "410cd7ccee36a47d5b660d509829483f", "score": "0.70431167", "text": "function dbRowInsert($table_name, $form_data)\n{\n\tglobal $database;\n\t\n\t$conn = getConnection();\n\tif(! $conn )\n\t{\n\t\tdie('Could not connect: ' . mysql_error());\n\t}\n\t$fields = array_keys($form_data);\n\t$sql = \"INSERT INTO \".$table_name.\"\n (`\".implode('`,`', $fields).\"`)\n VALUES('\".implode(\"','\", $form_data).\"')\";\n\tmysql_select_db($database);\n\t\n\t$retval = mysql_query( $sql, $conn );\n\tif(! $retval )\n\t{\n\t\tdie('Could not enter data: ' . mysql_error());\n\t}\n\tmysql_close($conn);\n\t\n}", "title": "" }, { "docid": "7273500beaf9abb22d62eba3457b6d54", "score": "0.7018595", "text": "function submit_form_to_database()\n\t{\n\t\tglobal $submission;\n\t\tglobal $message;\n\t\t// Use php filter_var() (hopefully preventing XSS, SQL injection, etc.)\n\t\t$submission['description'] = filter_var($_POST[\"description\"], FILTER_SANITIZE_SPECIAL_CHARS);\n\t\t\t\n\t\t// Add form fields to the database \n\t\t$query_id = insert($submission);\n\t\t\n\t\t$submission['picture_id'] = (string) $query_id;\n\t\t\n\t\treturn $query_id;\n\t}", "title": "" }, { "docid": "b06d398bd4c369abeb617c3d36620285", "score": "0.70000476", "text": "public function dbInsert($table_name, $form_data) {\r\n\t\t$fields = array_keys($form_data);\r\n\t\t// build the query\r\n\t\t$sql = \"INSERT INTO \".$table_name.\"(`\".implode('`,`', $fields).\"`) VALUES('\".implode(\"','\", $form_data).\"')\";\r\n\t\t// run and return the query result resource\r\n\t\t\r\n\t\t//echo $sql; exit();\r\n\r\n\t\t$res = $this->conn->query($sql);\r\n\r\n\t\tif($res) {\r\n\t\t\treturn $this->conn->insert_id;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "641c011f29ee78cdeee027e9292582d8", "score": "0.69899404", "text": "function dbRowInsert($table_name, $form_data)\n{\n $fields = array_keys($form_data);\n\n // build the query\n $sql = \"INSERT INTO \".$table_name.\"\n (`\".implode('`,`', $fields).\"`)\n VALUES('\".implode(\"','\", $form_data).\"')\";\n\t//echo $sql;\n //die;\n // run and return the query result resource\n return mysql_query($sql);\n}", "title": "" }, { "docid": "d4db3c9721e78aeddeff7429f93b65b5", "score": "0.698904", "text": "function insert(){\n\t\t$data = $this->security->xss_clean($_POST);\n\n\t\t//if the primary key is empty, unset it. EMPTY == Auto Increment, otherwise a value is expected.\n\t\tif (empty($data[$data['table_key']])){\n\t\t\tunset($data[$data['table_key']]);\n\t\t}\n\n\t\t$table_name = $data['table_name'];\n\t\tunset($data['table_name']);\n\t\tunset($data['table_key']);\n\n\t\t$this->result->isError = true;\n\t\t$this->result->errorStr = 'There was a problem creating the new record. Please try again later.';\n\n\t\t$this->result->isError = !$this->db->insert($table_name, $data);\n\n\t\tif ($this->result->isError){\n\t\t\t$this->output->set_output($this->result->errorStr);\n\t\t}else{\n\t\t\tredirect($_SERVER['HTTP_REFERER']);\n\t\t}\n\t}", "title": "" }, { "docid": "af3471801102f5bbc7d54c65f0bcb8af", "score": "0.69666684", "text": "public function insert_process() {\n\n\t\t$category \t= $_POST['category'];\n\t\t$description \t= $_POST['description'];\n\t\t$price = $_POST['price'];\n\t\t$qty = $_POST['qty'];\n\n\t\t$dbq = new DataBaseQuery( \"INSERT INTO products (category,description,price,qty) VALUES (\\\"$category\\\", \\\"$description\\\", \\\"$price\\\", \\\"$qty\\\" ) \");\n\t\t\n\t\t$dbq->update_db();\n\n\t}", "title": "" }, { "docid": "d6a83e09fa489fafd4aed622ce2ed58d", "score": "0.6941478", "text": "function insertToDatabase(){\r\n\t\t$id = $this->getSignupId();\r\n\t\t$questionString = $this->getQuestion();\r\n\t\t$type = $this->getType();\r\n\t\t$options = CommonTools::arrayToSql($this->getOptions());\r\n\t\t$public = CommonTools::booleanToSql($this->getPublic());\r\n\t\t$required = CommonTools::booleanToSql($this->getRequired());\r\n\r\n\t\t$sql = \"INSERT INTO ilmo_questions \" . \r\n\t \t\t\"(ilmo_id, question, type, options, public, required) \" . \r\n\t \t\t\"VALUES \" .\r\n\t \t\t\"($id, '$questionString', '$type', '$options', \" .\r\n\t \t\t\"$public, $required)\";\r\n\t \t\t\r\n\t \t// do query\r\n\t\t$this->database->doQuery($sql);\r\n\t}", "title": "" }, { "docid": "1ce135c852cbd2b62d2bcc151773f6ab", "score": "0.6927587", "text": "function dbRowInsert($table_name, $form_data)\n{\n $fields = array_keys($form_data);\n\n // build the query\n $sql = \"INSERT INTO \".$table_name.\"\n (\".implode(\",\", $fields).\")\n VALUES('\".implode(\"','\", $form_data).\"')\";\n // run and return the query result resource\n\n return mysql_query($sql);\n}", "title": "" }, { "docid": "5bef3e85e92ca2b600dce131a1bbf52b", "score": "0.6857479", "text": "function insertPostDatasIntoForm(AnimalForm &$form)\n\t{\n\t\t$form->setNom(@$_POST['nom']);\n\t\t$form->setIdRace(@$_POST['race']);\n\t\t$form->setPuce(@$_POST['puce']);\n\t\t$form->setDateNaissance(@$_POST['dob']);\n\t\t$form->setsigneDistinctif(@$_POST['signe']);\n\t\t$form->setCommentaire(@$_POST['commentaire']);\n\t}", "title": "" }, { "docid": "852ffe85918c0d312cbe73d66bcb99e1", "score": "0.68556255", "text": "function interim()\n {\n $this->crud->insert2($this->controller, $_POST); \n }", "title": "" }, { "docid": "f70900899f8cac2c5eeb26a1edd42f5f", "score": "0.6849276", "text": "function create( $data )\n\t{\n\t\t$form_fields = array_keys( $data );\n\t\t$this\t-> SQL()\n\t\t\t-> insert( $data, $form_fields)\n\t\t\t-> fetch();\n\t}", "title": "" }, { "docid": "5d99767a0706cc7ec52f81d128861fd7", "score": "0.6801378", "text": "function InsertFormFields($db,$fd_title,$fd_form,$fd_type,$fd_discrip,$datetime){ \n \n $fd_name = CreateUnderscoreSlug($fd_title) ;\n\n $rows = $db->insert(\"form_fields\",array('fd_title' => \"$fd_title\",'fd_name' => \"$fd_name\",'fd_form' => \"$fd_form\",'fd_type' => \"$fd_type\",'fd_discrip' => \"$fd_discrip\",'registered_at' => \"$datetime\" ), array('fd_title', 'fd_form') );\n\n if ($rows['status'] == \"success\") {\n return true ;\n }\n else{\n return false ;\n }\n}", "title": "" }, { "docid": "cf4ba90c0cb00707f96b2a22f12b105c", "score": "0.6800565", "text": "function dbRowInsert($mysqli,$table_name, $form_data)\r\n{\r\n\t$fields = array_keys($form_data);\r\n\t $sql = \"INSERT INTO \".$table_name.\"\r\n\t(`\".implode('`,`', $fields).\"`)\r\n\tVALUES('\".implode(\"','\", $form_data).\"')\";\r\n\treturn mysqli_query($mysqli,$sql);\r\n}", "title": "" }, { "docid": "ba4d2576110859c009567f41d8af405e", "score": "0.6783158", "text": "public function insert($tblForm1601e);", "title": "" }, { "docid": "c41ba24f15da273668a513c06f6f5220", "score": "0.67717826", "text": "function form_insert($data){\n$this->db->insert('customers', $data);\n }", "title": "" }, { "docid": "4b9be5469cf27e88553a1dbe75ed5ad5", "score": "0.66909987", "text": "public function insert_to_table() {\n\t\t$data = array(\n\t\t\t'name' => $this->input->post('name'),\n\t\t\t'color' => $this->input->post('color'),\n\t\t);\n\n\t\t// call control and insert to db\n\t\t$this->control->insert_to_table($data);\n\n\t\t// redirect to tempalte \n\t\tredirect('control/template'); \n\t}", "title": "" }, { "docid": "93bd168b4ee8b5b4614aef261aae9e7e", "score": "0.6676073", "text": "function insert_form($args) {\n\t$args \t= _args_helper(input_check($args), 'insert');\n\t$insert = $args['insert'];\n\n\tif(!isset($insert['date'])) { $insert['date'] = date('Y-m-d H:i'); }\n\n\t@form_validation($insert['date'], 'date', 'Tarih', 'datetime', __FUNCTION__);\n\n\tif( !is_alert(__FUNCTION__) ) {\n\t\tif( $q_insert = db()->query(\"INSERT INTO \".dbname('forms').\" \".sql_insert_string($insert).\" \") ) {\n\t\t\tif( $insert_id = db()->insert_id ) {\n\t\t\t\treturn $insert_id;\n\t\t\t}\n\t\t} else { add_mysqli_error_log(__FUNCTION__); }\n\t} else { return false; }\n}", "title": "" }, { "docid": "45d40f3d5e4e1ce55a1b1764eddca9d4", "score": "0.66710055", "text": "public function Insert($formdata){ \n $this->db->insert('lm_contatto', $formdata);\n $this->db->last_query();\n $insert_id = $this->db->insert_id(); \n }", "title": "" }, { "docid": "3de76e9551402ab39328b75221d8f4dd", "score": "0.66688824", "text": "function insert_data()\n\t{\n\t\tglobal $db;\n\t\t//Insert Info into database\n\t\tif(is_array($this->input_details))\n\t\t{\n\t\t\tforeach($this->input_details as $field=>$value)\n\t\t\t{\n\t\t\t\t$fields[] = 'src_'.$field;\n\t\t\t\t$values[] = $value;\n\t\t\t}\n\t\t\t$fields[] = 'src_ext';\n\t\t\t$values[] = getExt($this->input_details['path']);\n\t\t\t$fields[] = 'src_name';\n\t\t\t$values[] = getName($this->input_details['path']);\n\t\t\t\n\t\t\t$db->insert(tbl($this->tbl),$fields,$values);\t\n\t\t\t$this->row_id = $db->insert_id();\n\t\t}\n\t}", "title": "" }, { "docid": "dd08cc3e0c4c88ea5fb95be0664b67d9", "score": "0.66566133", "text": "function insert($fields);", "title": "" }, { "docid": "0da5ac1fa7453bbe3dcc27c2df674340", "score": "0.66487116", "text": "public function insert()\n {\n if ($_POST) {\n # jika tombol submit ditekan\n $data = $_POST['data'];\n $data = (object)$data;\n $this->Jenis_pohon_model->insert($data);\n }else{\n redirect('jenis_pohon');\n }\n redirect('jenis_pohon');\n }", "title": "" }, { "docid": "238e8591f8b2d98320d25afdd7f47276", "score": "0.66405684", "text": "function insert(){\r\n\t\t\t$dbo = database::getInstance();\r\n\t\t\t$sql = $this->buildQuery('insert');\r\n\t\t\t$dbo->doQuery($sql);\r\n\r\n\t\t}", "title": "" }, { "docid": "b4cf293e770e24722acf640c0d2ab6be", "score": "0.6634162", "text": "private function persistToDatabase() {\n\n\t\tglobal $wpdb;\n\n\t\t/** @var \\OrganicContactForm\\FormData $form_data */\n\t\t$form_data = $this->getFormData();\n\n\t\t$table = OCF_TABLE_PREFIX . OCF_TABLE;\n\n\t\t$today = date(\"Y-m-d H:i:s\");\n\n\t\t$name = $form_data->getName();\n\t\t$email = $form_data->getEmail();\n\t\t$enquiry = $form_data->getEnquiry();\n\t\t$tel = $form_data->getTel();\n\t\t$form_id = $_POST['form_id'];\n\n\t\t$data = array(\n\t\t\t'date' => $today,\n\t\t\t'ref_page' => $form_data->getRefPage(),\n\t\t);\n\n\n\t\t$format = array(\n\t\t\t'%s',\n\t\t\t'%s'\n\t\t);\n\n\t\tif ( $name !== false && !is_null( $name ) ) :\n\t\t\t$data['name'] = $name;\n\t\t\t$format[] = '%s';\n\t\telse :\n\t\t\t$_SESSION['error_container'][$form_id]['name'] = 'Need to supply a valid name';\n\t\tendif;\n\n\t\tif ( $email !== false && !is_null( $email ) ) :\n\t\t\t$data['email'] = $email;\n\t\t\t$format[] = '%s';\n\t\telse :\n\t\t\t$_SESSION['error_container'][$form_id]['email'] = 'Need to supply a valid email';\n\t\tendif;\n\n\t\tif ( $enquiry !== false && !is_null( $enquiry ) ) :\n\t\t\t$data['enquiry'] = $enquiry;\n\t\t\t$format[] = '%s';\n\t\telse :\n\t\t\t$_SESSION['error_container'][$form_id]['enquiry'] = 'Need to supply a valid enquiry';\n\t\tendif;\n\n\t\tif ( $tel !== false ) :\n\t\t\t$data['tel'] = $tel;\n\t\t\t$format[] = '%d';\n\t\telse :\n\t\t\t$_SESSION['error_container'][$form_id]['tel'] = 'Need to supply a valid number';\n\t\tendif;\n\n\n\t\tif (\n\t\t\t!empty( $_SESSION['error_container'] )\n\t\t\t|| !$wpdb->insert(\n\t\t\t\t$table,\n\t\t\t\t$data,\n\t\t\t\t$format\n\t\t\t)\n\t\t) {\n\n\t\t\t$_SESSION['form_submitted'][$form_id] = false;\n\t\t\t$this->submitted = false;\n\n\t\t\t$_SESSION['form_data'][$form_id] = array(\n\t\t\t\t'name' => $form_data->getName(),\n\t\t\t\t'email' => $form_data->getEmail(),\n\t\t\t\t'tel' => $form_data->getTel(),\n\t\t\t\t'enquiry' => $form_data->getEnquiry()\n\t\t\t);\n\t\t}\n\n\t\telse {\n\t\t\t$_SESSION['form_submitted'][$form_id] = true;\n\t\t\t$this->submitted = true;\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "36771b1023a1e09ddf7f66fe3406f2c4", "score": "0.6575061", "text": "public function insertAction()\n {\n $request = $this->getRequest();\n $form = new Application_Form_Book();\n\t\t\n\t\tif ($this->getRequest()->isPost()) {\n if ($form->isValid($request->getPost())) {\n $book = new Application_Model_Book($form->getValues());\n $mapper = new Application_Model_BookMapper();\n $mapper->save($book);\n return $this->_helper->redirector('view');\n }\n }\n\n $this->view->form = $form;\n }", "title": "" }, { "docid": "d7c861595f5c02464e57d0e1667fafb7", "score": "0.6572076", "text": "protected function insert()\n\t{\n\t\t$this->autofill();\n\n\t\tparent::insert();\n\n\t}", "title": "" }, { "docid": "0935911c46928f73dc1b97e389122b40", "score": "0.6514311", "text": "function SubmitForm($db,$form,$field,$value,$datetime){\n\n $rows = $db->insert(\"submited_forms\",array('sf_form' => \"$form\",'sf_form_field' => \"$field\",'sf_value' => \"$value\",'registered_at' => \"$datetime\" ), array('sf_form') );\n\n if ($rows['status'] == \"success\") {\n return true ;\n }\n else{\n return false ;\n }\n}", "title": "" }, { "docid": "a3d13da531b7aa792dda5459d2b4265f", "score": "0.6503868", "text": "public function insertUserForm(){\n \n $req = array(\n 'name' => $_POST['name'],\n 'email' => $_POST['email'],\n 'password' => $_POST['password']\n );\n \n \n if(count($req) == 0){\n echo \"The fild can't be null:\" . \"<br>\";\n }else{\n echo \"The filds can't be null:\" . \"<br>\";\n }\n \n $erro = false;\n \n if(empty($req['name']) || $req['name'] == null){\n echo \"&bull; Name can't be null <br>\";\n $erro = true;\n }\n if(empty($req['email']) || $req['email'] == null){\n echo \"&bull; Email can't be null <br>\";\n $erro = true;\n }\n if(empty($req['password']) || $req['password'] == null){\n echo \"&bull; Password can't be null <br>\";\n $erro = true;\n }\n\n if($erro == false){\n $userModel = $this->model('User');\n $userModel->insertUser($req['name'], $req['email'], $req['password']) ? \"Insert with success!\" : \"Erro to insert user\"; \n }\n }", "title": "" }, { "docid": "be36095aff62d3e0832b21140826e77d", "score": "0.65015346", "text": "public function insert($data){\n\t\t// Process field validation rules\n\t\tif(!$this->validate($data)) return self::ERR_VALIDATION;\n\n\t\t// Start database transaction\n\t\t$this->db->beginTransaction();\n\n\t\ttry{\n\t\t\t$fields = array();\n\t\t\t$deferredLinkedToFields = array();\n\t\t\t$multiTextFields = array();\n\n\t\t\tforeach($data as $field => $value){\n\t\t\t\t$field = $this->fields->getField($field);\n\t\t\t\tif(!($field instanceof fieldBuilder)) continue;\n\n\t\t\t\tif ($field->type == \"multitext\") {\n\t \t\t\t // save this field for later after we get an ID\n\t \t\t\t // similar usage for linked table\n\t \t\t\t $multiTextFields[] = $field;\n\t \t\t\t} else if($field->usesLinkTable()) {\n \t\t\t\t\t// Process the link table, no local field to process\n\t \t\t\t\t$deferredLinkedToFields[] = $field;\n\t \t\t\t} else {\n\t\t\t\t\t// Don't add this field if it's NULL\n\t\t\t\t\tif (isnull($data[ $field->name ])) continue;\n\n\t\t\t\t\t// Field doesn't use a link field, normalize arrays for single query\n\t\t\t\t\t$fields[ $field->name ] = $field->formatValue($data[ $field->name ]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(sizeof($fields)){\n\t\t\t\t$sql = sprintf('INSERT INTO `%s` (`%s`) VALUES (%s)',\n\t\t\t\t\t$this->dbTable,\n\t\t\t\t\timplode('`,`',array_keys($fields)),\n\t\t\t\t\timplode(',',array_fill(0,sizeof($fields),'?')));\n\t\t\t\t$stmt = $this->db->query($sql, $fields);\n\t\t\t\tif($stmt->errorCode()){\n\t\t\t\t\terrorHandle::newError(__METHOD__.\"() SQL Error! {$stmt->errorCode()}:{$stmt->errorMsg()} ($sql)\", errorHandle::HIGH);\n\t\t\t\t\tthrow new Exception(\"Internal database error!\", self::ERR_SYSTEM);\n\t\t\t\t}\n\n\t\t\t\t// Save the insertID for later usage\n\t\t\t\t$this->insertID = $stmt->insertId();\n\n\t\t\t\t// process multi text fields if there are some\n\t\t\t\tif(sizeof($multiTextFields)){\n\t\t\t\t\tforeach($multiTextFields as $mtField){\n\t\t\t\t\t\t$this->processMultiText($mtField, $data, $this->insertID);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// If there's any deferred linkedTo fields, process them\n\t\t\t\tif(sizeof($deferredLinkedToFields)){\n\t\t\t\t\t$primaryField = array_shift( $this->fields->listPrimaryFields()); // Shift 1st item off the array, ensures we get the 1st defined primary field\n\t\t\t\t\t$data[ $primaryField ] = $this->insertID;\n\n\t\t\t\t\tforeach($deferredLinkedToFields as $deferredLinkedToField){\n\t\t\t\t\t\t$this->processLinkedField($deferredLinkedToField, $data);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Commit the transaction\n\t\t\t$this->db->commit();\n\n\t\t}catch(Exception $e){\n\t\t\t// Record the error\n\t\t\t$this->formError($e->getMessage(), errorHandle::ERROR);\n\n\t\t\t// Rollback the transaction\n\t\t\t$this->db->rollback();\n\n\t\t\t// Return the error code\n\t\t\treturn $e->getCode();\n\t\t}\n\n\t\t// If we're here then all went well!\n\t\treturn self::ERR_OK;\n\t}", "title": "" }, { "docid": "04c6890e24c8c7bde15f38a502ebe612", "score": "0.6498489", "text": "public function insertDB() \n {\n // unpack the data from POST request\n $pData = $_POST[\"data\"];\n\n $firstname = $pData[\"Fname\"];\n $lastname = $pData[\"Lname\"];\n $role = $pData[\"Role\"];\n $salary = $pData[\"Salary\"];\n\n $inList = false;\n\n // Check if the employee exists\n foreach($this->employeeList as $obj)\n {\n if($firstname == $obj->getFname() and $lastname == $obj->getLname())\n {\n $inList = true;\n }\n }\n\n // If it doesn't exist, add it\n if ($inList == false)\n {\n $this->empFactory->makeEmployee($role,$firstname,$lastname,$salary,true,NULL);\n }\n }", "title": "" }, { "docid": "dc8d8b673d4cbd96a6ef8bb7d1ad7462", "score": "0.64740837", "text": "function insertData()\n\t\t {\n\t\t\t $cols = \"\" ;\n\t\t\t $vals = \"\" ;\n\t\t\t\n\t\t\t foreach( $this->userPostedData as $key=>$value )\n\t\t\t {\n\t\t\t \n\t\t\t\t if($key!=\"PHPSESSID\")\n\t\t\t\t {\n\t\t\t\t\t $cols .= str_replace(\"txt\" , \"\" , $key).\",\" ;\n\t\t\t\t\t \n\t\t\t\t\t $vals .= \"'\".$value .\"',\" ;\n\t\t\t\t }\n\t\t\t }\n\t\t \n\t\t\t $cols = substr($cols , 0 , strlen($cols)-1) ;\n\t\t\t $vals = substr($vals , 0 , strlen($vals)-1) ;\n\n\t\t\t $this->sql = \"INSERT INTO \".$this->table_name. \" ( \".$cols.\" ) VALUES \".\" ( \". $vals .\" ) \" ; \n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t if(!mysql_query($this->sql))\n\t\t\t {\n\t\t\t\t echo mysql_error() ;\n\t\t\t\t die() ;\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t $insert = \"success\" ;\n\t\t\t }\n\n\t\t\t return $insert ;\n\t\t }", "title": "" }, { "docid": "0d9c8b92b8037a1088c3db2eb9e3a524", "score": "0.64642704", "text": "function rowInsert($table_name, $form_data)\n{\n $fields = array_keys($form_data);\n\n // build the query\n $sql = \"INSERT INTO \".$table_name.\"\n (`\".implode('`,`', $fields).\"`)\n VALUES('\".implode(\"','\", $form_data).\"')\";\n\n // run and return the query result resource\n return mysqli_query($databaseConnection,$sql);\n}", "title": "" }, { "docid": "f9001f252497b877c8c2c9f6eda88d01", "score": "0.6462845", "text": "public function insert(){\n if(isset($_POST['enviar'])){\n\n $sql = \"INSERT INTO $this->table {$this->inserirStr()}\";\n $sth = $this->pdo->prepare($sql); \n\n for($x=1;$x < $this->numFields();$x++){\n $field = $this->fieldName($x);\n\t\t $sth->bindParam(\":$field\", $_POST[\"$field\"], PDO::PARAM_INT);\n\t }\n $execute = $sth->execute();\n\n if($execute){\n print \"<script>location='index.php?table=$this->table';</script>\";\n }else{\n echo 'Error insert dates';\n }\n }\n }", "title": "" }, { "docid": "27b83cd5daffa26e230eba0f80e2bef1", "score": "0.64513284", "text": "public function pelanggaraninsert_post()\n {\n $dpost = $this->input->post(null,true);\n $this->main->setTable(\"tbl_pelanggaran\");\n $ins = $this->main->insert($dpost);\n if ($ins) {\n $this->response([\"status\"=>1]);\n }else{\n $this->response([\"status\"=>0]);\n }\n }", "title": "" }, { "docid": "b32fb613aeab03208bdb47d09a493094", "score": "0.6425128", "text": "public function post()\n\t{\n\t\t$this->load->model('user_model', 'reg_model');\n\t\t$r = $this->reg_model->insert_db($_POST);\n\t\tvar_dump($_POST);\n\t\tif($r){\n\t\t\tredirect(base_url('login'));\n\t\t}else{\n\t\t\techo 'Error';\n\t\t}\n\t}", "title": "" }, { "docid": "7b073717086364084d45d8d9b3dc56b3", "score": "0.6403783", "text": "public function save() {\n $fields = $this->getDbFields();\n\n db_merge('sm_form_submission')\n ->key([\n 'sid' => $this->getSid(),\n ])\n ->fields($fields)\n ->execute();\n }", "title": "" }, { "docid": "74bc44b0795657747507915059d37af1", "score": "0.6386702", "text": "function insert()\n\t{\n\t\t$this->before_insert();\n\t\t$this->before_save();\n\t\t\n\t\tif($this->validate())\n\t\t{\n\t\t\t$this->before_save_after_validate();\n\t\t\t\n\t\t\t$fields = $this->field_names_as_array();\n\t\t\t$values = $this->field_values_as_array();\n\t\t\t\t\n\t\t\t//Create a new record\n\t\t\t$sql = 'INSERT INTO \"'.$this->get_table_name().'\" (\"'.implode('\",\"',$fields).'\") VALUES('.implode(',',$values).')';\n\t\t\t$this->_db->query($sql);\n\t\t\t$this->id = $this->_db->get_last_insert_id($this->get_table_name());\t\n\t\t\t\n\t\t\t$this->after_save();\t\n\t\t\t$this->after_insert();\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "fe57f60e47019d0e354862feccab44e4", "score": "0.6382718", "text": "public function insert()\n\t{\n\t\t$data['username'] = $this->input->post('username');\n\t\t$data['address'] = $this->input->post('address');\n\t\t$data['email'] = $this->input->post('email');\n\n\t\t$this->member->add($data);\n\t}", "title": "" }, { "docid": "4de525ca2bcc5ec4d72328d4f0d6b682", "score": "0.637566", "text": "public function addFileUploadToDb(){\r\n $fname = $_POST['fname'];\r\n $this->load->model('operator/ApplicationFormModel');\r\n $this->ApplicationFormModel->addNewFileUpload($fname);\r\n }", "title": "" }, { "docid": "5872760876c2f076a7be82efad0fb686", "score": "0.6375565", "text": "public function insert()\n {\n include('model/patient.php');\n $patient = new Patient($_POST[\"username\"],$_POST[\"password\"],$_POST[\"name\"],$_POST[\"age\"],$_POST[\"contact\"],$_POST[\"doctor\"],$_POST[\"hospital\"]);\n // var_dump($patient);\n // die();\n $patient->save();\n \n \n header('location: view/patient/registered.php');\n\n }", "title": "" }, { "docid": "8fc1c0897c31b98f866a94c8f3fc6012", "score": "0.63674164", "text": "public function postInsert ()\r\n {\r\n }", "title": "" }, { "docid": "0a7902eafc6f601b96e069a155531d55", "score": "0.63658345", "text": "public function insert() {\n\t\t$db = new DB();\n\t\t$statement = $db->prepare(SQL_FIELD_INSERT);\n\t\t$statement->bind_param('sii', $this->getFieldLabel(),\n\t\t\t\t\t\t\t$this->getFieldType(),\n\t\t\t\t\t\t\t$this->isRequired());\n\t\t$statement->execute();\n\t\t$db->close();\n\t\treturn true;\n\t}", "title": "" }, { "docid": "2208857a276b82e204c971b6d1948f21", "score": "0.63588864", "text": "public function Do_insert_And_Update_hotel(){\n $formdata = $this->input->post('formdata');\n $send_commnd = $this->input->post('send_commnd');\n $client_id_ses = $this->session->userdata('client_user_id');\n $get_formdata = array();\n\t\tparse_str($formdata, $get_formdata);\n $Result = $this->Hotel_model->Add_update_data($get_formdata,$send_commnd,$client_id_ses);\n\t\techo $Result;\n\t}", "title": "" }, { "docid": "c4486cb392dfd7fa63ee3898c12dff7b", "score": "0.63587606", "text": "function InsertForm($db,$fm_title,$fm_discrip,$datetime){ \n\n $rows = $db->insert(\"forms\",array('fm_title' => \"$fm_title\",'fm_discrip' => \"$fm_discrip\",'registered_at' => \"$datetime\" ), array('fm_title') );\n\n if ($rows['status'] == \"success\") {\n return true ;\n }\n else{\n return false ;\n }\n}", "title": "" }, { "docid": "c6fc37b73f4841477de017e410206b5c", "score": "0.63581854", "text": "function save() {\n\t\t \n\t\t$fields = \"\";\n\t\t$values = \"\"; \n\t\tforeach ($this->fields as $key=>$field) {\n\n\t\t\tif ($field[\"dbStore\"]) {\n\t\t\t\t\n\t\t\t\tif ($fields != \"\") {\n\t\t\t\t\n\t\t\t\t\t$fields.= \", \";\n\t\t\t\t\t$values.= \", \";\n\t\t\t\t}\n\t\t\t\t$fields .= \"`\".$key.\"`\";\n\t\t\t\tif ($field[\"type\"] == \"password\") {\n\t\t\t\t\n\t\t\t\t\t$values .= \"PASSWORD('[[[\".$_POST[$key].\"]]]')\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\n\t\t\t\t\t$values .= \"'[[[\".$_POST[$key].\"]]]'\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$db_util = new DBUtil();\n\t\t$result = $db_util->insert(\"INSERT INTO `\".$this->table.\"` (\".$fields.\") VALUES (\".$values.\")\");\t\t\n\t\treturn $result;\t\n\t}", "title": "" }, { "docid": "ae2b72de2e659ac014a30004587812b9", "score": "0.6343602", "text": "public function insertarForm()\n {\n if($this->validadorFormulario($_POST)){\n if($this->usuarioModelo->insertar($_POST)){\n $this->cargarArrayResponse(true,\"Usuario registrado con exito\");\n }else{\n $this->cargarArrayResponse(false,\"Error, se presento un problema al registrar el usuario, por favor intentelo de nuevo y verifique que no exista un registro con la misma cédula\");\n }\n } else {\n $this->cargarArrayResponse(false,\"Error, faltaron campos por diligenciar\");\n }\n responderJson($this->response);\n }", "title": "" }, { "docid": "342ef96531eb8e21a1df106bb20160c4", "score": "0.63434684", "text": "function insert_form_item($args) {\n\t$args \t= _args_helper(input_check($args), 'insert');\n\t$insert = $args['insert'];\n\n\n\tif(!isset($args['uniquetime'])) { $args['uniquetime'] = ''; }\n\tif(!isset($insert['form_id'])) { add_alert('Parametre Hatası: Form ID bos olamaz.'); return false; }\n\n\tif(!have_log($args['uniquetime'])) { // eger daha onceden eklenmemis ise log kaydi bulunmayacaktir.\n\n\t\tif(!$form = get_form($insert['form_id'])) {\n\t\t\tadd_alert(_b($insert['form_id']).' Form ID bulunamadı.', 'warning', __FUNCTION__); return false; }\n\n\t\t\n\t\t@form_validation($insert['date'], 'date', 'Tarih', 'datetime', __FUNCTION__);\t\n\t\t@form_validation($insert['item_code'], 'item_code', 'Ürün Kodu', 'min_length[3]|max_length[32]', __FUNCTION__);\t\n\t\t@form_validation($insert['quantity'], 'quantity', 'Adet', 'required|number|min_length[1]|max_length[10]', __FUNCTION__);\n\t\t@form_validation($insert['price'], 'price', 'Fiyat', 'money|min_length[1]|max_length[10]', __FUNCTION__);\n\t\t@form_validation($insert['vat'], 'vat', 'KDV', 'number|min_length[1]|max_length[10]', __FUNCTION__);\n\t\tprint_alert();\n\t\tif(!is_alert(__FUNCTION__)) {\n\n\t\t\t# gerekli kontroller\n\t\t\tif(!isset($insert['date'])) { $insert['date'] = date('Y-m-d H:i:s'); }\n\t\t\tif(!isset($insert['price'])) { $insert['price'] = '0.00'; }\n\t\t\tif(!isset($insert['price'])) { $insert['price'] = '0.00'; }\n\t\t\tif(!isset($insert['vat'])) { $insert['vat'] = '0'; }\n\n\t\t\t$insert['price'] \t\t= get_set_decimal_db($insert['price']);\n\t\t\t$insert['total'] \t\t= $insert['price'] * $insert['quantity'];\n\t\t\t$insert['vat_total'] \t= $insert['total'] - ($insert['total'] / get_set_vat($insert['vat']) );\n\n\n\t\t\tif($q_insert = db()->query(\"INSERT INTO \".dbname('form_items').\" \".sql_insert_string($insert).\" \")) {\n\t\t\t\tif($insert_id = db()->insert_id) {\n\t\t\t\t\treturn $insert_id;\n\t\t\t\t} else { return false; }\n\t\t\t} else { add_mysqli_error_log(__FUNCTION__); return false; }\n\t\t} else { return false; }\n\t} else { repetitive_operation(__FUNCTION__); } // !have_log()\n}", "title": "" }, { "docid": "c8189fa1878eb49865c53ccdea3db91e", "score": "0.63394415", "text": "public function valuesDB_toInsert();", "title": "" }, { "docid": "cae98e0c4a0509f3fcdf7d10b801f91e", "score": "0.6337708", "text": "public function insert()\n {\n include('model/doctor.php');\n \n \n\n //echo \"saving\";\n $doctor = new Doctor($_POST[\"aadhaar\"],$_POST[\"username\"],$_POST[\"password\"],$_POST[\"name\"],$_POST[\"age\"],$_POST[\"hospital\"],$_POST[\"qualification\"],$_POST[\"speciality\"]);\n $doctor->save();\n \n \n \n \n \n header('location: view/doctor/registered.php');\n\n }", "title": "" }, { "docid": "4a2f7c191ee247398ac4947054e5fcb2", "score": "0.6335815", "text": "public function insert() {\r\n\t\tif( !$this->targetUrl ) {\r\n\t\t\tthrow new \\ErrorException( 'The target URL for the form is not set, please use setTarget / setTargetUrl' );\r\n\t\t}\r\n\t\t$cssClass = $this->cssClass ? $this->cssClass : 'generic_form';\r\n\t\t\r\n\t\t$this->insertFormBody( $this->targetUrl, $cssClass );\r\n\t\t$this->insertFields();\r\n\t\t\r\n\t\t$this->insertNonceField();\r\n\t\t$this->_insertReferrerField();\r\n\t\t$this->insertSubmitButton( $this->submitButtonName, $this->submitButtonDescription );\r\n\t\t\r\n\t\t// doing this stuff after the insertion, allow the fields to register javascript within insert function\r\n\t\t// not really good in term of conception but work for the moment\r\n\t\t$jss = array_unique( $this->jsFiles );\r\n\t\tforeach( $jss as $js ) {\r\n\t\t\t$this->frontController->getViewHelper()->addJavascriptFile( $js );\r\n\t\t}\r\n\t\t\r\n\t\t$jsVars = $this->javascriptVars;\r\n\t\tforeach( $jsVars as $jsKey => $jsVar ){\r\n\t\t\t$this->frontController->getViewHelper()->addJavascriptVar( $jsKey, $jsVar );\r\n\t\t}\r\n\t\t\r\n\t\t$this->frontController->getViewHelper()->addCssFile( 'form.css' );\r\n\t\t$csss = array_unique( $this->cssFiles );\r\n\t\tforeach( $csss as $cssFile ){\r\n\t\t\t$this->frontController->getViewHelper()->addCssFile( $cssFile );\r\n\t\t}\r\n\t\t$this->frontController->getViewHelper()->addJavascriptVar( '_error_messages', Field::getErrorMessages() );\r\n\t\t\r\n\t\t$this->insertFormBodyEnd();\r\n\t}", "title": "" }, { "docid": "f060bacd7437b26983e7c9030c12aebc", "score": "0.63291323", "text": "function insert_record()\n {\n $dbname=$this->dbname;\n $DB1=$this->__connect($dbname,$this->table_name);\n $fields_data=$this->__list_fields_data($dbname,$this->table_name);\n // echo_array($fields_data);\n $index=$this->_get_primary($fields_data);\n //echo $index;\n //echo_array($_POST);\n\n\n //since we are coming from a form there\n //are $_POST values\n foreach ($fields_data->name as $key=>$value)\n {\n $data[$value['name']]=$_POST[$value['name']];\n }\n\n //needs checking if a FOREIGN FIELD\n //insert into database\n $this->db->insert($this->table_name, $data);\n\n $keys=(array_keys($data));\n $values=(array_values($data));\n\n //prepare some data for the form controls\n //in this case the Tdataset control\n\n $i=0;\n $num_fields=count($keys);\n for ($i=0;$i<$num_fields;$i++){\n $this->table->add_row($keys[$i],$values[$i]);\n }\n $this->table->set_heading('field','Value');\n $this->table->set_caption('Insert');\n $this->table->set_template($this->tmpl);\n $s=$this->table->generate();\n $s.='<a href=\"http://localhost/CodeIgniter/admin/dbutil/browse/'.$dbname.'/'.$this->table_name.'\">Click to Edit More</a>';\n return $s;\n }", "title": "" }, { "docid": "6155c03b8da2c97e31545b6507bf9f73", "score": "0.63254356", "text": "public function do_insert()\n {\n\n $request = $this->getRequest();\n $console = $this->getConsole();\n\n $workarea = $console->tpl->getWorkArea( );\n $workarea->addTemplate( 'usermgmt/create' );\n\n }", "title": "" }, { "docid": "7a9cd93f486393bcf3ed03db02ba08bc", "score": "0.6324062", "text": "public function insertRecord($formData)\n {\n }", "title": "" }, { "docid": "2d9acb665d9f56e832da38e8ac0903a4", "score": "0.6322522", "text": "function dbRowInsert($con, $table_name, $form_data)\r\n{\r\n $fields = array_keys($form_data);\r\n\r\n // build the query\r\n $sql = \"INSERT INTO \".$table_name.\"\r\n (`\".implode('`,`', $fields).\"`)\r\n VALUES('\".implode(\"','\", $form_data).\"')\";\r\n // run and return the query result resource\r\n\techo \"hello\";\r\n return mysqli_query($connection, $sql);\r\n}", "title": "" }, { "docid": "c2a42e3e4f7d37145a38708b0dfc4e7d", "score": "0.63222456", "text": "public function insert()\r\n {\r\n // Get Post Variables\r\n $type = ( isset($_POST['type']) ) ? $_POST['type'] : '';\r\n $description = ( isset($_POST['description']) ) ? $_POST['description'] : '';\r\n $amount = ( isset($_POST['amount']) ) ? $_POST['amount'] : 0;\r\n $date = ( isset($_POST['date']) ) ? $_POST['date'] : '';\r\n\r\n BudgetDB::insertTransaction($type, $description, $amount, $date);\r\n\r\n require_once 'pages.controller.php';\r\n $home = new PagesController();\r\n $home->overview();\r\n }", "title": "" }, { "docid": "66e252531a7c9045781bf6993b700ace", "score": "0.63056934", "text": "function _insert($data) {\n\t\t$table = $this->get_table2();\n\t\t$this->db->insert($table, $data);\n\t}", "title": "" }, { "docid": "3fd1fd57c960fd570eea2de75f187b7d", "score": "0.6305669", "text": "public function insertFormUser() {\n \n include(\"views/user/insert.php\");\n }", "title": "" }, { "docid": "7903affb2c87a527e7198961b489df56", "score": "0.63049406", "text": "static function save(){\n\n\t\t$user_id = $_SESSION['user_id'];\n\t\t$conn = connectDB();\n\t\t\n\n\t\t$query = \"INSERT INTO formfills(user_id, title, firstname, lastname, username, email, birthdate, gender, address) VALUES ('$user_id', '$this->title', '$this->firstname', '$this->lastname', '$this->username', '$this->email', '$this->birthdate', '$this->gender', '$this->address')\";\n\t\tif($conn->query($query)){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "90a17d3cde2518a08c09f3bf8b328a89", "score": "0.6286316", "text": "public function insert()\n {\n $conn = LibrarianDB::getConnection();\n $conn->prepare(\n \"INSERT INTO book (id_book, title, pages, ISBN, borrowed, \n genre) VALUES (?, ?, ?, ?, ?, ?, ?, ?)\",\n [$this->id_book, $this->title, $this->pages, $this->ISBN,\n $this->borrowed, $this->genre]\n );\n }", "title": "" }, { "docid": "aba19362db505977833a6d78b299c680", "score": "0.6273194", "text": "public function insert($entity)\n {\n if($this->pdo = $this->connector->getConnection()) {\n $this->logBook->startLog('Insert of form into database');\n $this->logBook->setProvider('Cnetworks\\Eyevent\\Dal\\Form');\n try {\n $this->preparedStatement = $this->pdo->prepare('CALL FormInsert(@pId, :pName, :pEventId)');\n $this->preparedStatement->bindValue(':pName', $entity->getName(), \\PDO::PARAM_STR);\n $this->preparedStatement->bindValue(':pEventId', $entity->getEventId(), \\PDO::PARAM_INT);\n if ($this->preparedStatement->execute()) {\n $entity->setId($this->pdo->query('select @pId')->fetchColumn());\n $this->logBook->setMessage(\"The form with id=\" . $entity->getId() . \" was inserted successfully.\");\n $this->feedback->setIsError(false);\n $this->feedback->setResult($entity->getName());\n }\n }\n catch (\\PDOException $ex) {\n $this->logBook->setProvider('\\PDO');\n $this->logBook->setIsError(TRUE);\n $this->logBook->setMessage($ex->getMessage());\n $this->logBook->setErrorCodeProvider($ex->getCode());\n $this->feedback->setIsError(true);\n $this->feedback->setResult($ex->getCode());\n }\n $this->logBook->endLog();\n $this->logBook->writeLogBook();\n $this->connector->closeConnection();\n }\n $this->resetPreparedStatement();\n }", "title": "" }, { "docid": "f31ddde18950b1521130c7e7a717056a", "score": "0.6270424", "text": "function add() {\n $data = $_POST['data'];\n $this->set('title','Success - GAMMA MVC');\n $this->set('data',$this->{$this->_model}->query('insert into '.$this->{$this->_model}->_table.' (item_name) values (\\''.$this->{$this->_model}->escape_string($data).'\\')')); \n }", "title": "" }, { "docid": "37368302e875efc10ff1006033bbfd0c", "score": "0.6261245", "text": "public function createformAction()\n {\n\n $insData = $_POST;\n if ($_POST['courseName'] == '' || $_POST['applicantName'] == '' || $_POST['txtDateOfBirthYear'] == '') {\n header('Location: ' . $_SERVER['HTTP_REFERER'] . '?message=Pls fill up all required fields');\n exit;\n }\n\n $insData = $_POST;\n\t\t\n $insData['created'] = date(\"Y-m-d : h:i:s\");\n $insData['imgMAS'] = '';\n\t\t$domainId = $_POST['domain_id'];\n $domain = NpfDomains::findFirst(\"id = $domainId\");\n $domain_id = $domain->id;\n $domain_subdomain = $domain->subdomain;\n if ($this->request->hasFiles() == true) {\n $uploadPath = dirname(dirname(dirname(dirname(__FILE__)))) . \"/npfadmin/app/cache/files/$domain_subdomain/applications/\";\n foreach ($this->request->getUploadedFiles() as $file) {\n $fileName = md5(uniqid(rand(), true)). '-' . strtolower($file->getname());\n $insData[$file->getKey()] = $fileName;\n $file->moveTo($uploadPath . $fileName);\n }\n }\n\n\t\t\n $fields = serialize($insData);\n $domainId = $_POST['domain_id'];\n\n $createDateTime = date('Y-m-d H:i:s');\n $sql = \"INSERT INTO `npf_online_applications` (`domain_id`, `fields`, `created`) VALUES ( $domainId, '$fields', '$createDateTime')\";\n $this->db->execute($sql);\n header('Location: ' . $_SERVER['HTTP_REFERER'] . '?message=success');\n exit;\n }", "title": "" }, { "docid": "0de3c602de856111f33976b08e5144f5", "score": "0.62547195", "text": "function Insert(){\n\t\t$HayForm = true;\n\t\t// Si viene con post\n\t\tif ($_SERVER[\"REQUEST_METHOD\"] == \"POST\"){\n\t\t\t// Si trabaja con transacciones\n\t\t\tif($this->UsarTrnx === true){\n\t\t\t\t$this->StartTransaction();\t\n\t\t\t}\n\t\t\t\n\t\t\t// Cargo desde el formulario\n\t\t\t$this->_GetFrm();\n\t\t\t// Si tiene definido control\n\t\t\tif (method_exists($this,'beforeInsert'))\n\t\t\t\t$this->beforeInsert();\n\t\t\t// Si no hay errores\n\t\t\tif ($this->Error == ''){\n\t\t\t\t// Agrego a la base de datos\n\t\t\t\t$this->Error .= $this->TablaDB->addRegistro($this->Registro);\n\t\t\t\t// Insert OK\n\t\t\t\tif ($this->Error == ''){\n\t\t\t\t\t// Si tiene definido metodo after y metodo de ultimo id\n\t\t\t\t\tif ((method_exists($this,'afterInsert')) && \n\t\t\t\t\t\t\t(method_exists($this,'getLastId'))){ \n\t\t\t\t\t\t$Aux = $this->getLastId();\n\t\t\t\t\t\t$this->afterInsert($Aux);\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ($this->Error == '') $HayForm =false;\n\t\t\t}\n\t\t\tif($this->UsarTrnx === true){\n\t\t\t\t$this->CompleteTransaction();\n\t\t\t}\n\t\t}\n\t\t// Si hay que hacer formulario\n\t\tif ($HayForm){\n\t\t\treturn($this->_Frm(ACC_ALTA));\n\t\t}\n\t\telse{\n\t\t\treturn(true);\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "7534b4964965bd97e6f2945caa7159b0", "score": "0.6250467", "text": "function insertdata() {\n\n\t\t$this->load->model('poll_model');\n\t\t$this->poll_model->insertdb();\n\t\t$this->index();\n\n\t}", "title": "" }, { "docid": "f956fb95e6185c6f394c848e5b7a9bf7", "score": "0.62470245", "text": "function SaveForm($form_data,$tabla)\n\t{\n\t\t//$this->db->insert($tabla, $form_data);\n\n\t\t/*$CI = & get_instance();\n\t\t\n\t\tif ($this->db->affected_rows() == '1')\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\t\t\n\t\treturn FALSE;*/\n\t}", "title": "" }, { "docid": "da23ef28c901c5c66a3ea3a63b53b3ce", "score": "0.6241601", "text": "function saveForm() {\n\tinclude('inc/ge_connexion.php');\n\t$id_form = clean($_POST['id_form']);\n\t$num_dep = clean($_POST['num_dep']);\n\t\n\t$titre = clean($_POST['titre']);\n\t$email = clean($_POST['email']);\n\t$remarque = cleanTextarea($_POST['remarque']);\n\t\n\t//\n\tif ($id_form > 0) {\n\t\t$sql = \"UPDATE fm_form SET titre='$titre', email='$email', remarque='$remarque' WHERE id_form='$id_form'\";\n\t\t$result = mysqli_query($connexion, $sql) or die(mysqli_error());\n\t\t\t\n\t} else {\n\t\t$sql = \"INSERT INTO fm_form (titre, email, remarque, num_dep)\n\t\t\tVALUES ('$titre', '$email', '$remarque', '$num_dep')\";\n\t\t$result = mysqli_query($connexion, $sql) or die(mysqli_error());\n\t}\n}", "title": "" }, { "docid": "0d689505f3a452b221c40f1257f0fdc8", "score": "0.62338406", "text": "public function insert() {\n\n\t\tif ($this->authenticated===false) {\n\t\t\t$this->index();\n\t\t} \n\t\telse if (isset($_POST['save']) && $_POST['save']==true) { \n\n\t\t\t// Get the model type and id\n\t\t\t$this->requestParser();\n\n\t\t\t// Create the model, for example 'Article'\n\t\t\t$model = new $this->model($this->db);\n\n\t\t\t// Create the post. Function is in the model file, ie 'models/Article.php'\n\t\t\t$res = $model->create( $_POST );\n\n\t\t\t// If creating failed, go back to add View and show error message\n\t\t\tif ($res==0) {\n\t\t\t\t$this->message = \"Det gick ej att lägga till, vänligen kontrollera databasen\";\n\t\t\t\t$this->id = null;\n\t\t\t\t$this->reroute('add', $this->model);\n\t\t\t}\n\t\t\telse { // Insert successful\n\t\t\t\tswitch ($this->model) {\n\t\t\t\t\n\t\t\t\tcase \"Article\":\n\t\t\t\t\t$this->message = \"Artikeln har lagts till.\";\n\t\t\t\tbreak;\n\n\t\t\t\tcase \"Object\":\n\t\t\t\t\t$this->message = \"Objektet har lagts till.\";\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// Reroute to edit View with the new post id\n\t\t\t\t$this->reroute('edit', $this->model, $res);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "11484c4fb3ca2be974f7b0e36f752253", "score": "0.62327343", "text": "public function insertRecord(){/* */\n $name = $_POST['name'];\n $email = $_POST['email'];\n $sql = \"INSERT INTO users(name,email)VALUES('$name','$email')\";\n $result = $this->conn->exec($sql);\n if($result){\n header('location:index.php?msg=ins');\n }else{\n echo \"Error \" . $sql . \"<br>\" . $this->conn->error;\n }\n }", "title": "" }, { "docid": "dcfb8e1e21786ab139a77a603984ecf1", "score": "0.6203473", "text": "public function intoDB($_POST){\r\n\t\t try{\r\n // Verbindung aufbauen, Zugangsdaten kommmen aus dem Data-Objekt\r\n $db = new mysqli($this->getHostname(), $this->getUsername(), $this->getPassword(), $this->getDatabase());\r\n \r\n\t\t\t// Abfrage erstellen\r\n\t\t\t$insert = \"INSERT INTO faq (question, answer, sorting) VALUES ('\".$_POST['frage'].\"', '\".$_POST['antwort'].\"', '\".$_POST['sort'].\"')\";\r\n\t\t\t\r\n // Abfrage ausführen\r\n $result = $db->query($insert);\r\n \r\n // Ergebnis der Abfrage ausgeben\r\n echo $result;\r\n \r\n } catch(Exception $e){\r\n echo $e->getMessage();\r\n }\r\n\t}", "title": "" }, { "docid": "21367e95b497cd6a0c18daebc4fb33ef", "score": "0.6196278", "text": "public function add()\n {\n $this->tarea->insert($_POST);\n }", "title": "" }, { "docid": "fcb46e07f33adf1e34dd6efbe1a6f48e", "score": "0.61954474", "text": "public function insert()\n {\n if (Auth::isAdmin()) {\n $data = $_POST;\n $table = $this->table('users');\n $table->insert($data);\n header(\"Refresh:0\");\n }\n }", "title": "" }, { "docid": "62d582c541f094addd1a1503b332df80", "score": "0.61918306", "text": "public function submit_data()\n {\n $data = array('cid' => $this->input->post('cid'),\n\t\t\t 'title' => $this->input->post('title'),\n\t\t\t 'cperson' => $this->input->post('cperson'),\n\t\t\t 'des' => $this->input->post('des'),\n\t\t\t\t 'tel' => $this->input->post('tel'),\n\t\t\t\t 'mobile' => $this->input->post('mobile'),\n\t\t\t\t 'fax' => $this->input->post('fax'),\n\t\t\t\t 'email' => $this->input->post('email'));\n \n $insert = $this->welcome->insert_data($data);\n $this->session->set_flashdata('message', 'Your data inserted Successfully..');\n redirect('welcome/index');\n }", "title": "" }, { "docid": "da2b594cf3932cf7d3fa29641a1d1367", "score": "0.61855376", "text": "function insert() {\n $jugador=new jugadores_model();\n\n if (isset($_POST['insert'])) {\n\n $jugador->setNombre( $_POST['nombre'] );\n $jugador->setApellidos( $_POST['apellidos'] );\n $jugador->setEmail( $_POST['email'] );\n $jugador->setSexo( $_POST['sexo'] );\n $jugador->setDorsal( $_POST['dorsal'] );\n $jugador->setId_Equipo( $_POST['id_equipo'] );\n \n\n $error = $jugador->insertar();\n\n if (!$error) {\n header( \"Location: index.php?controller=jugadores&action=view\");\n }\n else {\n echo $error;\n }\n }\n}", "title": "" }, { "docid": "e408776fc0ab2ec460ecf48c57d45008", "score": "0.6182722", "text": "public function insert()\n\t{\n\t\t//print_r($this->cu_fields);\n\t\tforeach($this->cu_fields as $field=>$v)\n\t\t$ins[] = ':'.$field;\n\n\t\t$ins = implode(',' , $ins);\n\t\t$fields = implode(',',array_keys($this->cu_fields));\n\t\t$sql = \"INSERT INTO $this->table ($fields) VALUES ($ins)\";\n\n\t\t$this->result = $this->db->prepare($sql);\n\t\tforeach($this->cu_fields as $f=>$v)\n\t\t{\n\t\t\t$this->result->bindValue(':'.$f , $v);\n\t\t}\n\t\t$this->result->execute();\n\t\t//print_r($this->result->errorInfo());\n\t\t// 'Insert Cat';\n\t}", "title": "" }, { "docid": "8c40e97e05c56d6f6ca04f20008836cd", "score": "0.61815846", "text": "public function insert_into_db(){\n if($this->db->insert('doctors',$this->signup_data)){ return true;\n } else {return false;}\n\n }", "title": "" }, { "docid": "d73169330e1ad66cbc8c96e75aaff483", "score": "0.6174099", "text": "public function add_form_data($data){\n //print_r($data);\n // $retrun_data=FALSE;\n $data['BDPercentage']= $this->Basic_Demographics_Percentage($data);\n $data['CSPercentage']=$this->Client_Specific_Percentage($data);\n $data['RInformation']=$this->Rejection_Information($data);\n $data['total_score']=$this->Total_score($data);\n $data['ErrorsCount']=$this->ErrorsCount($data);\n $data['ErrorPercentage']=$this->ErrorPercentage($data);\n //$data['QSPercentage']='';\n \n $this->db->insert('checking_form', $data); \n return $this->db->insert_id();\n }", "title": "" }, { "docid": "fb33c24371bd8417f587f02694e069b0", "score": "0.616604", "text": "public function create_form( $form_data ) {\r\n\t\t// Include default form data\r\n\t\t$form_data = yikes_deep_parse_args( $form_data, $this->get_form_defaults() );\r\n\r\n\t\t// If there is an ID set, remove it\r\n\t\tunset( $form_data['id'] );\r\n\r\n\t\t// Prepare the data for the database\r\n\t\t$save_data = $this->prepare_data_for_db( $form_data );\r\n\t\t$formats = $this->get_format_array( $save_data );\r\n\r\n\t\t$result = $this->wpdb->insert(\r\n\t\t\t$this->prefixed_table_name,\r\n\t\t\t$save_data,\r\n\t\t\t$formats\r\n\t\t);\r\n\r\n\t\tif ( false === $result ) {\r\n\t\t\treturn $result;\r\n\t\t}\r\n\r\n\t\treturn $this->wpdb->insert_id;\r\n\t}", "title": "" }, { "docid": "0a5b1b1d293d9b2280df515986f25e97", "score": "0.6159642", "text": "public function Insert()\n {\n //$this->db->query (\"Select from USER where username=? and password=?\", array($username,$password));\n $this->db->query(\"INSERT INTO user (uid,username,password, name, user_type, user_role,user_status,user_timestamp) VALUES(?,?,?,?,?,?,?,?)\",array($this->uid,$this->username, $this->password,$this->name,$this->user_type,$this->user_role,$this->user_status,$this->user_timestamp));\n }", "title": "" }, { "docid": "8342af6679ea3f0f06c27e8abc4445b9", "score": "0.6154961", "text": "function processData() \n {\n // save the value of the Foriegn Key(s)\n /*[RAD_ADMINBOX_FOREIGNKEY]*/\t \n \n// echo '<pre>'.print_r($this->formValues,true).'</pre>'; \t\n \n // TODO: store settings in the saved form table??\t\t\t \t \n \n // store values in table manager object.\n/*** $this->dataManager->loadFromArray( $this->formValues ); ***/\n// \n// // now update the DB with the values\n// if (!$this->dataManager->isLoaded()) {\n// //\t echo \"PERSONID = \".$this->person_id;\n// \t $this->dataManager->setPersonID($this->person_id);\n// $this->dataManager->createNewEntry(true);\n// \n// $this->assignCampus($this->person_id);\n// } else {\n// $this->dataManager->updateDBTable();\n// }\n \n \n }", "title": "" }, { "docid": "63d121257e39c47625e83f84a8845983", "score": "0.6150925", "text": "function input_data($data,$table){ \n\t\t$this->db->insert($table,$data);\n\t}", "title": "" }, { "docid": "3d41d9e4592045b8bb8467fee6090fb5", "score": "0.614549", "text": "protected function insert()\n\t{\n\t\tif(!isset($_POST[self::INPUT_PREFIX]) && !isset($_FILES[self::INPUT_PREFIX]))\n\t\t\tthrow new CHttpException(400);\n\t\t$affected = 0;\n\n\t\t$this->fillFieldsWithForm();\n\t\t$values = array();\n\t\tforeach($this->_data->fields as $field)\n\t\t{\n\t\t\tif(!is_null($field->value))\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif(!$field->validateValue($field->value))\n\t\t\t\t\t\t$this->processFormError($field, Yii::t('AutoAdmin.form', 'Incorrect value'));\n\t\t\t\t}\n\t\t\t\tcatch(AAException $e)\n\t\t\t\t{\t//Validation rule may be set incorrectly\n\t\t\t\t\tthrow new AAException(Yii::t('AutoAdmin.errors', 'Incorrect validation condition for field \"{fieldName}\"', array('fieldName'=>$field->name)));\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$values[$field->name] = $field->valueForSql();\n\t\t\t}\n\t\t\tcatch(AAException $e)\n\t\t\t{\n\t\t\t\t$this->processFormError($field, $e->getMessage());\n\t\t\t}\n\t\t}\n\t\tif($values)\n\t\t{\n\t\t\t$transaction = $this->_db->beginTransaction();\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$this->_trigger->execute(null, 'before', 'insert');\n\t\t\t\t$affected = $this->_db->insert($values);\n\t\t\t\tif($affected)\n\t\t\t\t{\n\t\t\t\t\t$pk = $this->_db->getInsertedPKs($values);\n\t\t\t\t\t$this->_trigger->execute($pk, 'after', 'insert');\n\t\t\t\t}\n\t\t\t\t$this->_db->transactionCommit($transaction);\n\t\t\t}\n\t\t\tcatch(AAException $e)\n\t\t\t{\n\t\t\t\t$this->_db->transactionRollback($transaction);\n\t\t\t\t$this->processQueryError($e);\n\t\t\t}\n\t\t\n\t\t\tif($affected)\n\t\t\t{\n\t\t\t\t$this->cache->updateDependency();\n\n\t\t\t\tif($this->logMode)\n\t\t\t\t\t$this->_access->log('INSERT', array('pk'=>$pk, 'values'=>$values));\n\t\t\t}\n\t\t}\n\t\treturn $affected;\n\t}", "title": "" }, { "docid": "86aae8af1ef88bbe3fd6cd4a695277da", "score": "0.61430675", "text": "public function add()\n\t\t{\n\t\t\t$view_fields = array();\n\t\t $i = 0;\n\t\t\t$fields = $this->modules['Db']->getFields( $this->name );\n\n\t\t\tforeach ( $fields as $field )\n\t\t\t{\n\t\t\t\tif ( in_array( $field, $this->skip_fields ) ) continue;\n\t\t\t\t$view_fields[$i]['name'] = $field;\n\t\t\t\t$view_fields[$i]['required'] = $this->modules['Db']->isRequired( strtolower ( $this->name ), $field );\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * Return the table fields if not processing a form\n\t\t\t */\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif ( empty( $this->form_data ) )\n\t\t\t\t\treturn $view_fields;\n\t\t\t}\n\t\t\tcatch( Exception $e )\n\t\t\t{\n\t\t\t\tthrow $e;\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * Insert the record\n\t\t\t */\n\t\t\ttry\n\t\t\t{\n\t\t\t if ( !empty( $this->form_data ) )\n\t\t\t {\n\t\t\t \tforeach ( $view_fields as $field )\n\t\t\t \t if ( $field['required'] && empty( $this->form_data[$field['name']] ) ) throw new Exception( $this->name . ' ' . $field['name'] . ' is required.' );\n\n\t\t\t \t$result = $this->modules['Db']->insert( strtolower( $this->name ), $this->form_data );\n\t\t\t }\n\t\t\t if ( $result )\n\t\t\t $this->modules['Message']->addMessage( $this->name, $this->name . ' ' . $this->modules['Db']->getLastInsertId() . ' created.' );\n\t\t\t}\n\t\t\tcatch( Exception $e )\n\t\t\t{\n\t\t\t throw $e;\n\t\t\t}\n\t\t\t\n\t\t\t$this->modules['Router']->redirect( ROOT_DIR . strtolower( $this->name ) );\n\t\t}", "title": "" }, { "docid": "9e87847fbeeb6a917ce3d837f881cb68", "score": "0.6139604", "text": "private function get_insert_form_data_query()\n {\n $table_name = $this->table_name;\n $form_data = $this->form_data;\n // check to see if there was a point (spatial) field in table definition\n // TODO get_point field assumes there is only one spatial field created\n if ($field_name = $this->Xform_model->get_point_field($table_name)) {\n log_message(\"debug\", \"Form data \" . json_encode($form_data));\n // spatial field detected\n // extract spatial field components\n // Removed _point because it was appended during table creation, it's part of the form definition\n $field_name = str_replace(\"_point\", \"\", $field_name);\n $geopoints = explode(\" \", $form_data [$field_name]);\n $lat = $geopoints [0];\n $lon = $geopoints [1];\n $acc = $geopoints [3];\n $alt = $geopoints [2];\n $point = \"GeomFromText('POINT($lat $lon)')\";\n // build up query field names for spatial data\n $fn = '`' . $field_name . '_lat`,`';\n $fn .= $field_name . '_lng`,`';\n $fn .= $field_name . '_acc`,`';\n $fn .= $field_name . '_alt`,`';\n $fn .= $field_name . '_point`';\n // build up query data values for spatial data\n $fd = \"'\" . $lat . \"',\";\n $fd .= \"'\" . $lon . \"',\";\n $fd .= \"'\" . $acc . \"',\";\n $fd .= \"'\" . $alt . \"',\";\n $fd .= $point;\n } else {\n log_message(\"debug\", 'error getting point field');\n return FALSE;\n }\n $field_names = \"(`\" . implode(\"`,`\", array_keys($this->form_data)) . \"`,$fn)\";\n $field_values = \"('\" . implode(\"','\", array_values($this->form_data)) . \"',$fd)\";\n $query = \"INSERT INTO {$table_name} {$field_names} VALUES {$field_values}\";\n return $query;\n }", "title": "" }, { "docid": "db1511c7485078e5b7f8c579281367ad", "score": "0.61242956", "text": "function insert(){\n $sql = \"INSERT INTO `user_info` (`user_id`, `name`, `passwd`, `grp`, `type`, `scid`, `ipaddr`)\n VALUES (?, ?, ?, ?, ?, ?, ?)\";\n $this->db->query($sql,array($this->user_id, $this->name, $this->passwd, $this->grp, $this->type, $this->scid, $this->ipaddr));\n }", "title": "" }, { "docid": "2b2b23e2eb548740f31c25b9ae7d8e47", "score": "0.6123517", "text": "public function registeradmin($formdata)\n\t{\n\t\t$this->db->insert('admin',$formdata);\n\t}", "title": "" }, { "docid": "9e4ec9b8536f1731c1bd224f99d09f62", "score": "0.61217314", "text": "public function Insert()\n\t{\n\n\t\tif(isset($_POST['add'])) {\n\n \t$this -> load -> database();\n\t\t\t \t$dataInput = array('FilmID'=> $this ->input->post('FilmID'),\n\t\t \t'FilmName'=> $this ->input->post('FilmName'),\n\t\t 'FilmReleaseDate' =>$this ->input->post('FilmReleaseDate'),\n\t\t\t\t\t\t\t\t\t\t\t'FilmDirectorID' =>$this ->input->post('FilmDirectorID'),\n\t\t\t\t\t\t\t\t\t\t\t'FilmLanguageID' =>$this ->input->post('FilmLanguageID'),\n\t\t\t\t\t\t\t\t\t\t\t'FilmCountryID' =>$this ->input->post('FilmCountryID'),\n\t\t\t\t\t\t\t\t\t\t\t'FilmStudioID' =>$this ->input->post('FilmStudioID'),\n\t\t\t\t\t\t\t\t\t\t\t'FilmSynopsis' =>$this ->input->post('FilmSynopsis'));\n $this->db->insert('tblfilm',$dataInput);\n\t\t\t\t\t\t\t\t\t\t\t redirect('Welcome/Show');\n\t\t\t\t}\n\n\t\t$this -> load -> view('Insert');\n\t}", "title": "" }, { "docid": "d151ee5d2f1870fafc6c17892dab54da", "score": "0.6120189", "text": "private function insertInDatabase()\n {\n $this->created_at = date(\"Y-m-d H:i:s\");\n $this->updated_at = date(\"Y-m-d H:i:s\");\n\n $db = Application::getInstance()->databaseConnection()->pdo();\n\n $attributes = implode(', ', $this->attributes);\n $values = '';\n $executeValues = [];\n\n foreach ($this->attributes as $attribute) {\n if ($values != '') {\n $values .= ', ';\n }\n\n $values .= '?';\n $executeValues[] = $this->{$attribute};\n }\n\n $stmt = $db->prepare('INSERT INTO ' . static::$table . '(' . $attributes . ') VALUES (' . $values . ')');\n $stmt->execute($executeValues);\n }", "title": "" }, { "docid": "b6e7960248d82be1762910345951e670", "score": "0.61191607", "text": "function plataforma_admin_insertar ( ) {\n\t\n\t$form[ 'insertar' ][ 'title' ] = array\n\t(\n\t\t'#type' => 'textfield',\n\t\t'#title' => t( 'Nombre' ),\n\t\t'#required' => TRUE,\n\t\t'#weight' => -8,\n\t);\t\n\t\t\n\t$form[ 'insertar' ][ 'submit' ] = array(\n\t\t'#type' => 'submit',\n\t\t'#value' => t( 'Insertar' ),\n\t);\n\t\n\t\n\t\n\treturn $form;\n}", "title": "" }, { "docid": "f25f9ea23ee093a0b9c6451ea9eaaf91", "score": "0.61179006", "text": "public function insertIntoDb() {\n\t\tDb::query('INSERT INTO hunter (user, name, health, ability, available) VALUES (?, ?, ?, ?, ?)', [$this->user, $this->name, $this->health, $this->ability, $this->available]);\n\t}", "title": "" }, { "docid": "b7868738ad1347b68a99f09d264d777f", "score": "0.6115775", "text": "public function insertData()\n\t{\n\t\t$data = array(\n\t\t\t/* 'perfume_id' yang dikiri harus sama seperti di table\n\t\t\t'perfume_id' yang dikanan harus menurut name inputnya */\n\t\t\t'perfume_id' => $this->input->post('perfume_id'),\n\t\t\t'perfume_name' => $this->input->post('perfume_name'),\n\t\t\t'perfume_costperkilo' => $this->input->post('perfume_costperkilo')\n\t\t);\n\t\t/* eksekusi query insert into \"perfume\" diisi dengan variable $data\n\t\tface2face ae lek bingung :| */\n\t\t$insert = $this->soap_client->insertData(json_encode(array(\"table\"=>\"perfume\",\"data\"=>$data)));\n\t\n\t}", "title": "" }, { "docid": "f6ff3d4d7225e4f0a680035282cd8784", "score": "0.6107549", "text": "public function submit() {\r\n // TODO: Handle Exception\r\n $SqlSrv = new SQL();\r\n // TODO: Choose SQL or MySql Server\r\n $SqlSrv->SqlServer_Insert($_POST, \"10.0.0.205\", \"sa\", \"1234\", \"TestDB\", \"dbo.TestTable\");\r\n\r\n return array(\"success\" => \"\");\r\n }", "title": "" }, { "docid": "7659593257575682bcc446dcf7b1f82b", "score": "0.61067325", "text": "function save_form($wpcf7){\n global $wpdb;\n\n $submission = WPCF7_Submission::get_instance();\n\n if($submission){\n $submission = $submission->get_posted_data();\n $name = $submission['your-name'];\n $email = $submission['your-email'];\n $subject = $submission['your-subject'];\n $message = $submission['your-message'];\n } \n else{\n echo 'error';\n }\n\n $table_name = $wpdb->prefix . \"contact_form_7_data\";\n $result = $wpdb->insert($table_name, array(\"name\" => $name, \"email\" => $email, \"subject\" => $subject, \"message\" => $message), array(\"%s\", \"%s\", \"%s\", \"%s\"));\n\n if(!$result){\n die('Invalid query: $insert_query : ' . mysqli_error($db));\n }\n }", "title": "" }, { "docid": "a61a2ea47fd3eb6dabdac28e1c164174", "score": "0.6103878", "text": "private function actionInsertIntoOrders() {\n\n include_once $_SERVER['DOCUMENT_ROOT'] . '/Storage.php';\n $db = Storage::getInstance();\n $mysqli = $db->getConnection();\n\n if(isset($_POST['name'])){\n $name = $_POST['name'];\n }\n if(isset($_POST['street'])){\n $street = $_POST['street'];\n }\n if(isset($_POST['city'])){\n $city = $_POST['city'];\n }\n if(isset($_POST['state'])){\n $state = $_POST['state'];\n }\n if(isset($_POST['zip'])){\n $zip = $_POST['zip'];\n }\n if(isset($_POST['country'])){\n $country = $_POST['country'];\n }\n if(isset($_POST['giftwrap'])){\n $giftwrap = $_POST['giftwrap'];\n }\n\n $order_id = $this->model->getOrderId();\n\n $sql_query = \"INSERT INTO orders VALUES ('$order_id', '$name', '$street', '$city', '$state', '$zip', '$country', '$giftwrap')\";\n\n $sql = $mysqli->prepare($sql_query);\n\n $sql->execute();\n }", "title": "" }, { "docid": "3bb2396b05ad679589b90dd1033d738e", "score": "0.61007047", "text": "function sadd( )\r\n{\r\n\t\tglobal $db;\r\n\t\tglobal $web_dbtop;\r\n\t\t$db->query( \"INSERT INTO \".$web_dbtop.\"commodities (typeid,name,price,link,pic,points,discount,hot,tj,shoptype,content) VALUES ({$_POST['typeid']},'{$_POST['name']}',{$_POST['price']},'{$_POST['link']}','{$_POST['pic']}',{$_POST['points']},\".intval( $_POST['discount'] ).\",\".intval( $_POST['hot'] ).\",\".intval( $_POST['tj'] ).(\",\".$_POST['shoptype'].\",'{$_POST['content']}')\" ) );\r\n}", "title": "" }, { "docid": "94859f5824cb42f23afed58f0e3c094e", "score": "0.6098648", "text": "function insertForms($conn){\n $uid = $_SESSION['user'];\n\n // org selected by user via dropdown\tmenu, values of\torgs are orgid\n // generated via selecting orgids from database: no XSS attack vulnerability\n $orgid = $_POST['orgs'];\n\n // auto-inputted via\tphp to get current date: no XSS\tattack vulnerability\n $date_prepared = $_POST['date_prepared'];\n\n // gets reimbursement person's bnumber \n $reimb_bnum = htmlspecialchars($_POST['reimb_bnum']);\n //echo (\"<script>console.log('$reimb_bnum');</script>\");\n // uses helper function to get userid from person's bnumber\n $reimb_id = getUserId($conn, $reimb_bnum);\n // echo (\"<script>console.log('$reimb_id');</script>\");\n \n \n $purpose = htmlspecialchars($_POST['purpose']);\n $sofc_amnt = htmlspecialchars($_POST['sofc_amnt']);\n $sofc_loc = htmlspecialchars($_POST['sofc_loc']);\n $profit_amnt = htmlspecialchars($_POST['profit_amnt']);\n $profit_loc = htmlspecialchars($_POST['profit_loc']);\n $clce_amnt = htmlspecialchars($_POST['clce_amnt']);\n $clce_loc = htmlspecialchars($_POST['clce_loc']);\n $ttl_amnt = $sofc_amnt+$profit_amnt+$clce_amnt;\n echo (\"<script>console.log('Total: $ttl_amnt');</script>\");\n $status = 'submitted';\n\n try{\n\n $insertsql = \"INSERT INTO forms(uid, orgid, date_prepared, reimb_id, purpose, sofc_amnt, sofc_loc, profit_amnt, profit_loc, clce_amnt, clce_loc, ttl_amnt, status) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?)\";\n\n $resultset = prepared_query($conn, $insertsql, array($uid, $orgid, $date_prepared, $reimb_id, $purpose, $sofc_amnt, $sofc_loc, $profit_amnt, $profit_loc, $clce_amnt, $clce_loc, $ttl_amnt, $status));\n\n } catch (PDOException $e){\n echo (\"<script>console.log('insertForms Insertion Error: $e');</script>\");\n }\n\n echo (\"<script>console.log('Form submitted');</script>\");\n \n // Gets this form's formid \n $fid = $conn->lastInsertId();\n \n return $fid;\n}", "title": "" }, { "docid": "2b539cb8fcb2f48b4174ca236be2ca62", "score": "0.6097745", "text": "public function insert($table_name, $form_data, $last_id = 'N')\r\n\t{\r\n\t\t$fields = array_keys($form_data);\r\n\r\n\t\t$sql = \"INSERT INTO \" . $table_name . \"(`\" . implode('`,`', $fields) . \"`) VALUES ('\" . implode(\"','\", $form_data) . \"')\";\r\n\r\n\t\ttry {\r\n\t\t\t$statement = $this->pdo->prepare($sql);\r\n\t\t\t$statement->execute();\r\n\r\n\t\t\t$this->listen[] = \"INSERT INTO \" . $table_name . \"(`\" . implode('`,`', $fields) . \"`) VALUES ('\" . implode(\"','\", $form_data) . \"')\";\r\n\t\t\t$lastID = $this->pdo->lastInsertId();\r\n\t\t\tif ($last_id == 'Y') {\r\n\t\t\t\tif ($statement) {\r\n\t\t\t\t\treturn $lastID;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif ($statement) {\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception $e) {\r\n\t\t\tthrowException(\"Whoops! error occurred.\", $e);\r\n\t\t}\r\n\t}", "title": "" } ]
8e79bf0aa7458c440717fe1a52672ed3
Initialize from DER data.
[ { "docid": "414d0961a902c8c66d61b541d0e5b567", "score": "0.678356", "text": "public static function fromDER(string $data): self\n {\n return self::fromASN1(UnspecifiedType::fromDER($data)->asSequence());\n }", "title": "" } ]
[ { "docid": "a1998dccad9a52c4e23f8237b63d1652", "score": "0.5985738", "text": "public function __construct($data)\n {\n $this->dataArray = BitArray::load($data);\n }", "title": "" }, { "docid": "e61f8b07b9ee8f8382d52b6b1a6c9f89", "score": "0.5851525", "text": "public static function fromDER(string $data, int &$offset = null): self\n {\n $idx = $offset ?? 0;\n $datalen = mb_strlen($data, '8bit');\n if ($idx >= $datalen) {\n throw new DecodeException('Invalid offset.');\n }\n $byte = ord($data[$idx++]);\n // bits 8 and 7 (class)\n // 0 = universal, 1 = application, 2 = context-specific, 3 = private\n $class = (0b11000000 & $byte) >> 6;\n // bit 6 (0 = primitive / 1 = constructed)\n $pc = (0b00100000 & $byte) >> 5;\n // bits 5 to 1 (tag number)\n $tag = (0b00011111 & $byte);\n // long-form identifier\n if ($tag === 0x1f) {\n $tag = self::decodeLongFormTag($data, $idx);\n }\n if (isset($offset)) {\n $offset = $idx;\n }\n return self::create($class, $pc, $tag);\n }", "title": "" }, { "docid": "80f959c7697d1a94fee7bbe0abb307e6", "score": "0.5798773", "text": "public function loadFromBinary(string $data): self;", "title": "" }, { "docid": "14fd876c61a106e418f9bf72d656bba7", "score": "0.57098454", "text": "public function __construct($data, $type = 1) {\n\t\t$this->hexcode = static::unpack($data, $type);\n\t\t$this->length = -1;\n\t}", "title": "" }, { "docid": "5ff0804f4dea735bd9626e89bd145564", "score": "0.56002975", "text": "public function init(array $data);", "title": "" }, { "docid": "455f6d628a5010ac31ecda5c1224915b", "score": "0.5543668", "text": "public function init(array $data) {\n\t}", "title": "" }, { "docid": "236843c1daa9272d6b033aabea02d8b9", "score": "0.54929405", "text": "public function initialize()\n {\n $this->data = new stdClass();\n $this->data->holder = new stdClass();\n $this->data->holder->taxDocument = new stdClass();\n }", "title": "" }, { "docid": "5b1a35df9b749ae0fb3c28358a8aa42b", "score": "0.545156", "text": "protected function initData()\n {\n parent::initData();\n }", "title": "" }, { "docid": "99f53140b2a77f93ff6ab1ba24b670c6", "score": "0.54305285", "text": "public function __construct($rawdata = null, $len = 0)\n\t{\n\t\t$this->data = $rawdata;\n\t\t$this->bytesUsed = ($len == 0) ? strlen($rawdata) : $len;\n\t}", "title": "" }, { "docid": "c1d579e9e4770031ba1a947166b5f33a", "score": "0.5400519", "text": "public function __construct($data='')\r\n\t{\r\n\t\r\n\t\t$this->mail_configuration = $this->decrypt_email_config_data();\r\n\t}", "title": "" }, { "docid": "809e1446550f5678a9f93db5ceb047b1", "score": "0.5344691", "text": "function load($data)\n {\n $this->rawData = $data;\n\n if($data == NULL) return;\n \n $this->type = substr($data , 0, 1);\n $this->codFor = substr($data, 1, 6);\n $this->ragSoc = substr($data, 7, 40);\n \n }", "title": "" }, { "docid": "128d04f42db673c35e08a524b85f0998", "score": "0.52889496", "text": "static public function fromData(string $data);", "title": "" }, { "docid": "cb2c9d1fa75149e53eac61310a76708e", "score": "0.52654284", "text": "protected function _init()\n\t{\n\t\tparent::_init();\n\t\t$this->_data = array();\n\t}", "title": "" }, { "docid": "cb2c9d1fa75149e53eac61310a76708e", "score": "0.52654284", "text": "protected function _init()\n\t{\n\t\tparent::_init();\n\t\t$this->_data = array();\n\t}", "title": "" }, { "docid": "0f8379b8cca6780e6f6a7fbdbd11a05c", "score": "0.5251537", "text": "public function __construct($data){\n\t\t \n\t\t $this->hydrate($data);\n\t }", "title": "" }, { "docid": "daca11eb14f78c72378b261183fb6be2", "score": "0.5241966", "text": "public function __construct($data)\n {\n //\n /*\n PARAMS:\n from\n */\n\n $this->fromAddress = $data['fromAddress'];\n $this->messageSubject = $data['messageSubject'];\n $this->elements = $data['elements'];\n if(is_null($this->elements)){\n $this->elements = array();\n }\n $this->images = $data['images'];\n }", "title": "" }, { "docid": "06e8d64b037fc3d28a822444ddadf45a", "score": "0.5213386", "text": "public function __construct($data, string $pdf)\n {\n $this->data = $data;\n $this->pdf = base64_encode($pdf);\n }", "title": "" }, { "docid": "2a45e65e07e74e081a0bc30c12366030", "score": "0.52087575", "text": "public function __construct( $data )\n {\n\n $this->hydratation($data);\n }", "title": "" }, { "docid": "6e45239efc9ec161e230f2810045d73f", "score": "0.52081513", "text": "private function init()\n {\n foreach ($this->originalData as $key => $value) {\n $field = new DataField($key, $value, ['errors' => []]);\n\n $this->fields[$field->getName()] = $field;\n }\n\n $this->keys = array_keys($this->originalData);\n }", "title": "" }, { "docid": "4e95e86c00a36f267679d8d0ecef2722", "score": "0.51945305", "text": "abstract public function initDataFields();", "title": "" }, { "docid": "d515bd2cbf819db6685758417da3b2da", "score": "0.5176343", "text": "public static function x509FromDER($der)\n\t{\n\t\t$cert = new X509(chunk_split(\"-----BEGIN CERTIFICATE-----\\n\" . base64_encode($der), 64, \"\\n\") . \"-----END CERTIFICATE-----\\n\");\n\t\tif($cert->info === null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn $cert;\n\t}", "title": "" }, { "docid": "21734baa123bac9a1c972b52d9079d06", "score": "0.51665676", "text": "public function __construct($data)\n {\n $this->data = (object)$data;\n }", "title": "" }, { "docid": "b13c43116eed612ca6b2b62be9ca2633", "score": "0.5166024", "text": "public function __construct($data) {\n\t\t\n\t\t// parent constructor\n\t\tparent::__construct($data);\n\t}", "title": "" }, { "docid": "de524c537358bd2482bf126c648f1d7d", "score": "0.51522106", "text": "function __construct($data)\n {\n $this->cardEdges = array();\n\n foreach ($data[\"cardEdges\"] as $cardEdgeData) {\n array_push($this->cardEdges, new CardEdgeData($cardEdgeData));\n }\n }", "title": "" }, { "docid": "1eb32fd5bec8a04d5b63144b0352a0a2", "score": "0.51331794", "text": "function __construct( $datasrc ) {\n\n\t\t$data = $this->get_json_data_from_file( $datasrc );\n\t\t$this->set_data( $data );\n\n\t}", "title": "" }, { "docid": "651e506aa1f8b94ba63077fdb9fd9a2f", "score": "0.51310056", "text": "public function __construct(string $data)\n {\n if ($data) $this->load($data);\n }", "title": "" }, { "docid": "f5e65cb0a7a4fcf4620ce97f4b83aeae", "score": "0.5122271", "text": "public static function initialize() {\n Base64VLQ::$CHAR_TO_INT = array();\n Base64VLQ::$INT_TO_CHAR = array();\n\n foreach (str_split('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/') as $i => $char) {\n Base64VLQ::$CHAR_TO_INT[$char] = $i;\n Base64VLQ::$INT_TO_CHAR[$i] = $char;\n }\n }", "title": "" }, { "docid": "b8514c12b2975e105591c9bce5fcb581", "score": "0.51169586", "text": "public function init()\n {\n if ($this->cdh === null) {\n $this->cdh = new Crypt_DiffieHellman(\n self::DH_DEFAULT_MODULUS, self::DH_DEFAULT_GENERATOR\n );\n $this->cdh->generateKeys();\n }\n\n // Set public key\n $this->message->set(\n 'openid.dh_consumer_public',\n base64_encode($this->cdh->getPublicKey(Crypt_DiffieHellman::BTWOC))\n );\n\n // Set modulus\n $prime = $this->cdh->getPrime(Crypt_DiffieHellman::BTWOC);\n $this->message->set('openid.dh_modulus', base64_encode($prime));\n\n // Set prime\n $gen = $this->cdh->getGenerator(Crypt_DiffieHellman::BTWOC);\n $this->message->set('openid.dh_gen', base64_encode($gen));\n }", "title": "" }, { "docid": "3a573bb191fb062c8f453299fc462757", "score": "0.5104898", "text": "public function __construct($data)\n {\n $this->inData = $data;\n }", "title": "" }, { "docid": "7c7e98cad3c688666531785b39d3a98b", "score": "0.51022774", "text": "public function __construct($data)\n\t{\n\t\tparent::__construct();\n\n\t\tif( empty(self::$tele) )\n\t\t{\n\t\t\t$types = PSU::db('banner')->CacheGetAll(\"SELECT stvtele_code, stvtele_desc FROM stvtele\");\n\t\t\tforeach($types as $type)\n\t\t\t{\n\t\t\t\tself::$tele[$type['stvtele_code']] = $type['stvtele_desc'];\n\t\t\t}\n\t\t}\n\n\t\tif( $this->sprtele_columns === null )\n\t\t{\n\t\t\t$rset = PSU::db('banner')->CacheExecute(\"SELECT * FROM sprtele WHERE 1 = 2\");\n\n\t\t\t$this->sprtele_columns = array();\n\n\t\t\t$i = 0;\n\t\t\twhile( $field = $rset->FetchField($i++) )\n\t\t\t{\n\t\t\t\t$this->sprtele_columns[] = substr( $field->name, 8 );\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->parse($data);\n\t}", "title": "" }, { "docid": "1305a73519c9e6c19db1c2eaf12814a7", "score": "0.5073745", "text": "public function __construct($data = ''){\n $this->buffer = $data;\n $this->pointer = 0;\n }", "title": "" }, { "docid": "bfb6629b47cecaf16f1a1c8ebcfb9558", "score": "0.5073333", "text": "public function from_data() {\n\t\t$data = $this->data;\n\n\t\t// Instantiate a new Certificate validator if none is injected\n\t\t// as our dependency.\n\t\tif ( ! isset( $this->certificate ) ) {\n\t\t\t$this->certificate = new Certificate( $_SERVER['HTTP_SIGNATURECERTCHAINURL'], $_SERVER['HTTP_SIGNATURE'] );\n\t\t}\n\t\tif ( ! isset( $this->application ) ) {\n\t\t\t$this->application = new Application( $this->application_id );\n\t\t}\n\n\t\t// We need to ensure that the request Application ID matches our Application ID.\n\t\t$this->application->validate_application_id( $data['session']['application']['applicationId'] );\n\t\t// Validate that the request signature matches the certificate.\n\t\t$this->certificate->validate_request( $this->raw_data );\n\n\t\t$request_type = $data['request']['type'];\n\t\tif ( ! class_exists( '\\\\Alexa\\\\Request\\\\' . $request_type ) ) {\n\t\t\tthrow new RuntimeException( sprintf( esc_html__( 'Unknown request type: %s', 'voicewp' ), $request_type ) );\n\t\t}\n\n\t\t$class_name = '\\\\Alexa\\\\Request\\\\' . $request_type;\n\n\t\t$request = new $class_name( $this->raw_data, $this->application_id );\n\t\treturn $request;\n\t}", "title": "" }, { "docid": "fd8789f663cbefb42427addd29b75fe6", "score": "0.50719976", "text": "public function __construct($data) {\n $this->data = json_decode($data);\n }", "title": "" }, { "docid": "e9b6fc8ac8452bc7eb803348a3a3b1e5", "score": "0.50715184", "text": "function __construct()\n {\n // section -64--88-0-2-3801fad4:15f2a911f28:-8000:0000000000000BD0 begin\n // section -64--88-0-2-3801fad4:15f2a911f28:-8000:0000000000000BD0 end\n }", "title": "" }, { "docid": "c389cc3db2b4d9426f45acf288b06339", "score": "0.506224", "text": "public function __construct()\n\t{\n\t\tparent::__construct();\n\n\t\t$this->_serializers->item = array(\n\t\t\tnew Erlang_Serializer_Array_Item_Numeric,\n\t\t\tnew Erlang_Serializer_Array_Item_Assoc\n\t\t);\n\t}", "title": "" }, { "docid": "0151cb8ba147f1ef05f4d5aeb2c8fcdd", "score": "0.5058072", "text": "public function unserialize($data) {\n\t\t$this->__construct(unserialize($data));\n\t}", "title": "" }, { "docid": "aa05eb15047cc3999ec3548b2329194b", "score": "0.5023879", "text": "public function init($data)\n {\n $this->rawExcelData = $data;\n $this->fields = $this->rawExcelData->fields;\n $this->rows = $this->rawExcelData->rows;\n $this->fieldsKey = array_keys($this->fields);\n }", "title": "" }, { "docid": "4e82ee658f25086c91258ffefb357dd9", "score": "0.5021475", "text": "public function decode($data)\n {\n }", "title": "" }, { "docid": "77581ab87658937e783b9ed762ecc23b", "score": "0.50206333", "text": "public function initialize()\n {\n $this->setSchema(\"lashca\");\n $this->setSource(\"v_holdingnotes\");\n }", "title": "" }, { "docid": "a87a8f43e1665cb094e85c0d3063a558", "score": "0.5015914", "text": "function __construct($message)\n {\n $this->message = substr($message, 7);\n $this->decompressed = $this->decompress($this->message);\n $this->decodeMessage();\n }", "title": "" }, { "docid": "4ef7349fe2e859dbacdb9589f70a620f", "score": "0.50075024", "text": "public function __construct($data = array()) {\n\t\t$this->import($data);\n\t}", "title": "" }, { "docid": "53988ba7137569804d0bbd49fc3225ab", "score": "0.5003141", "text": "protected function _construct()\n {\n $this->_init('Blockonomics\\Merchant\\Model\\BitcoinTransaction', 'Blockonomics\\Merchant\\Model\\ResourceModel\\BitcoinTransaction');\n }", "title": "" }, { "docid": "5f3c3d19d730d219c7f7a2e1b2fcee12", "score": "0.49991283", "text": "public function decode($data);", "title": "" }, { "docid": "5f3c3d19d730d219c7f7a2e1b2fcee12", "score": "0.49991283", "text": "public function decode($data);", "title": "" }, { "docid": "5f3c3d19d730d219c7f7a2e1b2fcee12", "score": "0.49991283", "text": "public function decode($data);", "title": "" }, { "docid": "6c23ec1625be57983bbd9093e93178a9", "score": "0.49956048", "text": "public function __construct(array $data)\n {\n $this->hydrate($data);\n }", "title": "" }, { "docid": "3e2280b6032fb585ba82bfc47eeeabdd", "score": "0.49914992", "text": "function __construct(&$xmlArr)\n {\n $this->readMetadata($xmlArr);\n $this->inheritParentObj();\n }", "title": "" }, { "docid": "e184a9b25de3d07d7add04104a406293", "score": "0.49861225", "text": "public function initialize(array &$data): void\n {\n\t\t$this->data = &$data;\n\t}", "title": "" }, { "docid": "c72d7760d856fc872880e31aa220544c", "score": "0.4985642", "text": "public function initialize()\n {\n $this->setSchema(\"itooridb\");\n $this->setSource(\"shukka_vws\");\n }", "title": "" }, { "docid": "109a9dee723c38045f19358ee6e7991f", "score": "0.49845576", "text": "protected function initialize()\r\n\t\t{\r\n\t\t\t$this->alicuotas = AlicuotaCollector::getInstance();\r\n\t\t\t$this->authDate = NULL;\r\n\t\t\t$this->authStatus = DataAuthorizationStatusEnum::SCHEDULED;\r\n\t\t\t$this->cae = NULL;\r\n\t\t\t$this->concept = NULL;\r\n\t\t\t$this->billingTarget = NULL;\r\n\t\t\t$this->documentNumber = 0;\r\n\t\t\t$this->documentType = NULL;\r\n\t\t\t$this->errors = ErrorCollectionHelper::getInstance();\r\n\t\t\t$this->id = NULL;\r\n\t\t\t$this->invoiceDate = NULL;\r\n\t\t\t$this->invoiceNumber = NULL;\r\n\t\t\t$this->invoiceType = NULL;\r\n\t\t\t$this->taxableNetAmount = 0;\r\n\t\t\t$this->taxAmount = 0;\r\n\t\t\t$this->taxExemptAmount = 0;\r\n\t\t\t$this->untaxedNetAmount = 0;\r\n\t\t}", "title": "" }, { "docid": "b0650b17a788fe97dcd6d5ba3771748c", "score": "0.49816194", "text": "public function unpack($data);", "title": "" }, { "docid": "511b3a8e2ada396791d8298b19ee87d9", "score": "0.49780795", "text": "abstract public function decode($data);", "title": "" }, { "docid": "d9378523bd0b214189b50dcf5ee6127b", "score": "0.49483517", "text": "protected function _construct()\n {\n $this->_init(\n \\Reach\\Payment\\Model\\Carrier\\CsvHsCode::class,\n \\Reach\\Payment\\Model\\ResourceModel\\Carrier\\CsvHsCode::class\n );\n }", "title": "" }, { "docid": "58ab86c70242831b039b7db7e13a13f4", "score": "0.4940871", "text": "public function __construct(DataHandler $dataHandler)\n {\n $this->dataHandler = $dataHandler;\n\n if (!$this->dataHandler->is64bit()) {\n /*\n * GMP isn't required for 64-bit machines as we're handling signed ints. We can use native math instead.\n * We still need to use GMP for 32-bit builds of PHP though.\n */\n if (!extension_loaded('gmp')) {\n trigger_error(\n 'The NBT class requires the GMP extension for 64-bit number handling on 32-bit PHP builds. '\n .'Execution will continue, but will halt if a 64-bit number is handled.',\n E_USER_NOTICE\n );\n }\n }\n }", "title": "" }, { "docid": "dd1a27c2f30fbd73fec977eeaaae9de5", "score": "0.49335074", "text": "public function __construct($data) {\n\t\t\t$this->data = static::useArrays($data, true);\n\t\t\t$this->metadata = array(\n\t\t\t\t'encoding' => array(Core\\Data\\Charset::UTF_8_ENCODING, Core\\Data\\Charset::UTF_8_ENCODING),\n\t\t\t\t'eol' => \"\\r\\n\", // defaults to CRLF because this is the most common EOL for the file type\n\t\t\t\t'escape' => function($value) {\n\t\t\t\t\treturn preg_replace(\"/(\\r|\\n)+/\", '', $value);\n\t\t\t\t},\n\t\t\t\t'ext' => '.txt',\n\t\t\t\t'mime' => 'text/plain',\n\t\t\t\t'template' => '',\n\t\t\t\t'uri' => null,\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "6ff4f4418690ff877808572196204094", "score": "0.49238673", "text": "public function __construct($data)\n {\n $this->sender_name = $data['sender_name'];\n $this->sender_email = $data['sender_email'];\n $this->telephone = $data['telephone'];\n $this->subject = $data['subject'];\n $this->body = $data['body'];\n }", "title": "" }, { "docid": "7ece7dfb3b22b3d65b9681d944f0c87c", "score": "0.49157128", "text": "public function __construct(array $data)\n {\n $this->hydrate($data);\n }", "title": "" }, { "docid": "4c867bc5244c67fde07747502f878f92", "score": "0.4913471", "text": "public function __construct(array $data)\n {\n $this->setCachePool($data['cache']);\n $this->setFactory($data['factory']);\n $this->setObjType($data['obj_type']);\n\n if (isset($data['obj_key'])) {\n $this->setObjKey($data['obj_key']);\n }\n }", "title": "" }, { "docid": "6d20c7c279161c108ae043c2388ef3ea", "score": "0.48956218", "text": "public function __construct($raw)\n {\n if ($raw instanceof \\stdClass) {\n $raw = get_object_vars($raw);\n }\n $this->backingData = $raw;\n\n if (isset($this->backingData['data']) && count($this->backingData) === 1) {\n if ($this->backingData['data'] instanceof \\stdClass) {\n $this->backingData = get_object_vars($this->backingData['data']);\n } else {\n $this->backingData = $this->backingData['data'];\n }\n }\n }", "title": "" }, { "docid": "3494909147e139e91132e20931494280", "score": "0.48927847", "text": "public function __construct($certificate) {\n if (!extension_loaded('openssl')) {\n throw new OpenSSLExtensionNotLoadedException('The openssl module is not loaded.');\n }\n $x509 = new X509();\n $this->x509 = $x509->loadX509($certificate);\n\n $this->clearText = $certificate;\n $this->certResource = openssl_x509_read($this->clearText);\n if ($this->certResource === FALSE) {\n throw new CertificateParsingFailedException(\n 'The certificate to not be parsed by openssl. Make sure it is cleartext and base64 encoded with delimiters.');\n }\n $this->info = openssl_x509_parse($this->clearText);\n { // Validity period\n $GMT = new \\DateTimeZone('Europe/London');\n $this->validFrom = new \\DateTime(self::formatValidityString($this->info['validFrom']),\n $GMT);\n $this->validTo = new \\DateTime(self::formatValidityString($this->info['validTo']),\n $GMT);\n }\n $this->CRL = new CertificateRevocationList($this->crlURI);\n $this->publicKey = new PublicKey($this->certResource);\n }", "title": "" }, { "docid": "1850b6741e025f8f3533a13bb24abebc", "score": "0.4888272", "text": "public function __construct($attributes)\n\t{\n\t\tparent::__construct($attributes);\n\t\t$this->version = $attributes['Version'];\n\t\t$this->recordTypeStart = $attributes['RecordTypeStart'];\n\t\t$this->recordTypeLength = $attributes['RecordTypeLen'];\n\t\t$this->positioning = $attributes['Positions'];\n\t\t$this->zeroFill = $attributes['ZeroFill'];\n\t\t$this->decimalChar = $attributes['DecimalChar'];\n\t\t$this->levels = $attributes['Level'];\n\t\t$this->languages = $attributes['Languages'];\n\t\t$this->relations = $attributes['Relation'];\n\t}", "title": "" }, { "docid": "f52b0fb4cfb83f8ea3b0b9ca53bbdc03", "score": "0.48879713", "text": "public function __construct($raw)\r\r\n {\r\r\n if ($raw instanceof \\stdClass) {\r\r\n $raw = get_object_vars($raw);\r\r\n }\r\r\n $this->backingData = $raw;\r\r\n\r\r\n if (isset($this->backingData['data']) && count($this->backingData) === 1) {\r\r\n if ($this->backingData['data'] instanceof \\stdClass) {\r\r\n $this->backingData = get_object_vars($this->backingData['data']);\r\r\n } else {\r\r\n $this->backingData = $this->backingData['data'];\r\r\n }\r\r\n }\r\r\n }", "title": "" }, { "docid": "e0d31eb5a1d0d8c89f97996ab2d62ab9", "score": "0.4877491", "text": "public function __construct(array $data) {\n parent::__construct($data);\n $this->star = (int)$data['star'];\n $this->idAccount = (int)$data['idAccount'];\n $this->idProduct = (int)$data['idProduct'];\n $this->content = (string)$data['content'];\n }", "title": "" }, { "docid": "0f5e679919c87999ed4aa5772e8b7a4f", "score": "0.48725113", "text": "public function __construct($data)\n\t{\n\t\t$this->data = $data;\n\t}", "title": "" }, { "docid": "b43e89c4ff298bdd6ef64541a6e0bf14", "score": "0.48668253", "text": "public function __construct() {\r\n\t\t// La he cambiado a una m�s molona :D\r\n\t\t$this->key = base64_encode ( \"pUpu_VegEtal32\" );\r\n\t}", "title": "" }, { "docid": "6597f083e4d363d1d1a1b4b7d34aee2b", "score": "0.48664582", "text": "function wddx_deserialize($packet) {}", "title": "" }, { "docid": "406d96301154547eccf57c8667a120c9", "score": "0.48658997", "text": "function _initialize() {\n\t\t//$this->assign ( $data );\n\t}", "title": "" }, { "docid": "996150ce63b28593ddca13c701a18242", "score": "0.48569915", "text": "public function init()\n {\n extract($this->data);\n\n $this->data['tags'] = $this->arrayCleanUp($tags);\n }", "title": "" }, { "docid": "bb3a532daa9ad693c5749904dabec719", "score": "0.48565412", "text": "public function init($authData)\n {\n $this->authData = $authData;\n $this->parse();\n }", "title": "" }, { "docid": "2ff0f535ee11b95bcd7621669eeb306d", "score": "0.48432517", "text": "public function __construct()\n {\n $this->datas = new \\Light\\Stdlib\\Parameters();\n }", "title": "" }, { "docid": "2312bb58e9d1c4ad831ae4b8efd20904", "score": "0.48412612", "text": "public function __construct($data)\n {\n //\n $this->name = $data['name'];\n $this->email = $data['email'];\n $this->md5 = $data['md5'];\n $this->pass = $data['pass'];\n }", "title": "" }, { "docid": "233e2bfe1a0e555c1154096f2d51de6d", "score": "0.48314828", "text": "function __construct($data = array()) {\n $this->_data = $data;\n }", "title": "" }, { "docid": "74434736ec7d06e9eb532978e2c2af47", "score": "0.48257244", "text": "public function deserialize($data);", "title": "" }, { "docid": "094683f3750f3eaeff74ffe2ae3a4fc2", "score": "0.48252454", "text": "public function __construct($data, $key)\n {\n $this->data = $data;\n $this->key = sha1($key);\n $this->str = '';\n }", "title": "" }, { "docid": "cb759c74337b6068cd1d5a99166f3023", "score": "0.48251244", "text": "public function __construct($data) {\r\n $this->data = $data;\r\n }", "title": "" }, { "docid": "c3ef5d4e06bf017377d8c638dde372cd", "score": "0.4823729", "text": "public function __construct(Data $data)\n {\n $this->data = $data;\n //\n }", "title": "" }, { "docid": "9e1e7f9914dd105a357bae310a959bed", "score": "0.48234734", "text": "public function fromArray($data) {\n $this->strength = $data[\"strength\"];\n $this->identity = new \\snac\\data\\Constellation($data[\"identity\"]);\n $this->vector = $data[\"vector\"];\n $this->properties = $data[\"properties\"];\n }", "title": "" }, { "docid": "6c86368f7c29ebb8905d78f040cedfeb", "score": "0.48178533", "text": "private function sen_init($data){\n\t\t$this->set_ciph($data);\n\n\t\t$this->sen_handle=mcrypt_module_open($this->set_cipher, $this->lib_dir, 'ofb', '');\n\t\t$this->check_cipher();\n\t\t$this->iv_size=mcrypt_enc_get_iv_size($this->sen_handle);\n\t\t$this->key_size= mcrypt_enc_get_key_size($this->sen_handle);\n\t\treturn NULL;\n\t}", "title": "" }, { "docid": "5ed1a2adefb2603d38fa4d358714f8f8", "score": "0.48138377", "text": "public function __construct($data = [])\n {\n $this->data = $this->getDataAsArray($data);\n }", "title": "" }, { "docid": "e0acb19fbcb3593fe55dd348cdee35cc", "score": "0.4807918", "text": "final public function __construct($dataObject)\n {\n // Store the data from the database in its own variable\n $this->data = clone $dataObject;\n $this->originalData = clone $dataObject;\n\n // If an extensionConstruct method exists, call it\n if (method_exists($this, '__extensionConstruct')) {\n $this->__extensionConstruct();\n }\n }", "title": "" }, { "docid": "0c769b31e0e236c40bcae45ba509ad05", "score": "0.48070827", "text": "public function __construct(DataHandler $dataHandler)\n\t{\n\t\t$this->dataHandler = $dataHandler;\n\t\tif (!$this->dataHandler->is64bit() && !extension_loaded('gmp'))\n\t\t{\n\t\t\ttrigger_error(\n\t\t\t\t'The NBT class requires the GMP extension for 64-bit number handling on 32-bit PHP builds. '.\n\t\t\t\t'Execution will continue, but will halt if a 64-bit number is handled.',\n\t\t\t\tE_USER_NOTICE\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "20908db43442ebf89deda29a3567ef19", "score": "0.48066753", "text": "public static function init() {\n\t\tif (!self::$config instanceof \\Bdlm\\Core\\Utility\\Config\\Iface\\Base) {\n\t\t\tself::$config = new \\Bdlm\\Core\\Utility\\Config();\n\t\t}\n\t\tif (!self::$data instanceof \\Bdlm\\Core\\Object\\Iface\\Base) {\n\t\t\tself::$data = new \\Bdlm\\Core\\Object();\n\t\t}\n\t}", "title": "" }, { "docid": "249674dcc88574d4943ba7320767f29a", "score": "0.47962874", "text": "public function init() {\n parent::init();\n\n $this->transport = $this->_getTransport();\n $this->message = \\Swift_Message::newInstance();\n $this->mailer = \\Swift_Mailer::newInstance($this->transport);\n }", "title": "" }, { "docid": "383596c4d1d61825fe6c280093666f9a", "score": "0.479617", "text": "function __construct() {\n $numargs = func_num_args();\n $args = func_get_args();\n if( $numargs == 0 )\n $this->fromNothing();\n else if( $numargs == 1 )\n $this->fromRawData( $args[0] );\n else if( $numargs == 4 )\n $this->fromAllInfo( $args[0], $args[1], $args[2], $args[3] );\n \n }", "title": "" }, { "docid": "29f0cf0a645aea07873b9f428898c340", "score": "0.4795958", "text": "public function __construct($data)\n {\n\t $this->data= $data;\n }", "title": "" }, { "docid": "fea400d738688cde947bdfcebad67a5e", "score": "0.4795241", "text": "public function __construct($data)\n {\n\n $this->data = $data;\n }", "title": "" }, { "docid": "8f618d5dfb91c71164c457aff5afbb61", "score": "0.4778355", "text": "public function __construct($xmlObject)\n\t{\n\t\t$xmlArray = (array)$xmlObject;\n\t\t$xmlArray = $xmlArray['@attributes'];\n\t\t\n\t\t// store data in member variables\n\t\tsscanf((string)$xmlArray['format'], '%[^,],%d,%d,%d,%d', $format, $bitrate, $x1, $x2, $x3); // ignoring $x1, $x2 and $x3 because I don't know what these values are\n\t\t$this->id = (string)$xmlArray['id'];\n\t\t$this->audioFormat = $format;\n\t\t$this->audioBitrate = $bitrate;\n\t}", "title": "" }, { "docid": "263b866fdc72a56f746628a84d2022d2", "score": "0.47759756", "text": "public function __construct($data)\n {\n $this->data = $data;\n }", "title": "" }, { "docid": "263b866fdc72a56f746628a84d2022d2", "score": "0.47759756", "text": "public function __construct($data)\n {\n $this->data = $data;\n }", "title": "" }, { "docid": "263b866fdc72a56f746628a84d2022d2", "score": "0.47759756", "text": "public function __construct($data)\n {\n $this->data = $data;\n }", "title": "" }, { "docid": "263b866fdc72a56f746628a84d2022d2", "score": "0.47759756", "text": "public function __construct($data)\n {\n $this->data = $data;\n }", "title": "" }, { "docid": "263b866fdc72a56f746628a84d2022d2", "score": "0.47759756", "text": "public function __construct($data)\n {\n $this->data = $data;\n }", "title": "" }, { "docid": "263b866fdc72a56f746628a84d2022d2", "score": "0.47759756", "text": "public function __construct($data)\n {\n $this->data = $data;\n }", "title": "" }, { "docid": "263b866fdc72a56f746628a84d2022d2", "score": "0.47759756", "text": "public function __construct($data)\n {\n $this->data = $data;\n }", "title": "" }, { "docid": "263b866fdc72a56f746628a84d2022d2", "score": "0.47759756", "text": "public function __construct($data)\n {\n $this->data = $data;\n }", "title": "" }, { "docid": "263b866fdc72a56f746628a84d2022d2", "score": "0.47759756", "text": "public function __construct($data)\n {\n $this->data = $data;\n }", "title": "" }, { "docid": "263b866fdc72a56f746628a84d2022d2", "score": "0.47759756", "text": "public function __construct($data)\n {\n $this->data = $data;\n }", "title": "" }, { "docid": "263b866fdc72a56f746628a84d2022d2", "score": "0.47759756", "text": "public function __construct($data)\n {\n $this->data = $data;\n }", "title": "" }, { "docid": "263b866fdc72a56f746628a84d2022d2", "score": "0.47759756", "text": "public function __construct($data)\n {\n $this->data = $data;\n }", "title": "" }, { "docid": "263b866fdc72a56f746628a84d2022d2", "score": "0.47759756", "text": "public function __construct($data)\n {\n $this->data = $data;\n }", "title": "" } ]
09432434664f4bb87c748fe49baa89b2
Check that we recognise the pipeline name
[ { "docid": "be5968f301ad400d0f62b75aa4b01fb0", "score": "0.4674557", "text": "function launch_pipeline_web($pipeline, $release) {\n global $pipelines;\n global $nxf_flag_schema;\n if (!array_key_exists($_GET['pipeline'], $pipelines)) {\n return [\"Error - Pipeline name <code>$pipeline</code> not recognised\"];\n }\n // Set release to latest if not given\n if ($release === false) {\n $release = $pipelines[$pipeline][0];\n }\n // Check that we recognise the release / branch name\n if (!in_array($release, $pipelines[$pipeline])) {\n return [\n \"Error - Pipeline release <code>$release</code> not recognised.\",\n \"Available <code>$pipeline</code> releases: <ul><li>\" .\n implode('</li><li>', $pipelines[$pipeline]) .\n '</li></ul>',\n ];\n }\n // Make cache file names\n $gh_pipeline_schema_fn = dirname(dirname(__FILE__)) . \"/api_cache/json_schema/{$pipeline}/{$release}.json\";\n $gh_pipeline_no_schema_fn = dirname(dirname(__FILE__)) . \"/api_cache/json_schema/{$pipeline}/{$release}.NO_SCHEMA\";\n // Build directories if needed\n if (!is_dir(dirname($gh_pipeline_schema_fn))) {\n mkdir(dirname($gh_pipeline_schema_fn), 0777, true);\n }\n // Load from cache if not 'dev', otherwise build\n if (file_exists($gh_pipeline_no_schema_fn) && $release != 'dev') {\n return [\n \"Error - Could not find a pipeline schema for <code>$pipeline</code> - <code>$release</code>\",\n \"Please launch using the command line tool instead: <code>nf-core launch $pipeline -r $release</code>\",\n \"<!-- URL attempted: $gh_launch_schema_url -->\",\n ];\n } elseif (file_exists($gh_pipeline_schema_fn) && $release != 'dev') {\n $gh_launch_schema_json = file_get_contents($gh_pipeline_schema_fn);\n } else {\n $api_opts = stream_context_create(['http' => ['method' => 'GET', 'header' => ['User-Agent: PHP']]]);\n $gh_launch_schema_url = \"https://api.github.com/repos/nf-core/{$pipeline}/contents/nextflow_schema.json?ref={$release}\";\n $gh_launch_schema_json = file_get_contents($gh_launch_schema_url, false, $api_opts);\n if (strpos($http_response_header[0], 'HTTP/1.1 200') === false) {\n # Remember for next time\n file_put_contents($gh_pipeline_no_schema_fn, '');\n echo '<script>console.log(\"Sent request to ' .\n $gh_launch_schema_url .\n '\",\" got http response header:\",' .\n json_encode($http_response_header, JSON_HEX_TAG) .\n ')</script>';\n return [\n \"Error - Could not find a pipeline schema for <code>$pipeline</code> - <code>$release</code>.\",\n \"Please launch using the command line tool instead: <code>nf-core launch $pipeline -r $release</code>\",\n \"<!-- URL attempted: $gh_launch_schema_url -->\",\n ];\n } else {\n # Save cache\n file_put_contents($gh_pipeline_schema_fn, $gh_launch_schema_json);\n }\n }\n // Build the POST data\n $gh_launch_schema_response = json_decode($gh_launch_schema_json, true);\n $gh_launch_schema = json_decode(base64_decode($gh_launch_schema_response['content']), true);\n // Add in the core nextflow options to the schema\n if (!isset($gh_launch_schema['definitions'])) {\n $gh_launch_schema['definitions'] = [];\n }\n $gh_launch_schema['definitions'] = $nxf_flag_schema + $gh_launch_schema['definitions'];\n if (!isset($gh_launch_schema['allOf'])) {\n $gh_launch_schema['allOf'] = [];\n }\n array_unshift($gh_launch_schema['allOf'], ['$ref' => '#/definitions/coreNextflow']);\n // Set the remaining POST keys\n $_POST['post_content'] = 'json_schema_launcher';\n $_POST['api'] = 'false';\n $_POST['version'] = 'web_launcher';\n $_POST['status'] = 'waiting_for_user';\n $_POST['cli_launch'] = false;\n $_POST['nxf_flags'] = '{}';\n $_POST['input_params'] = '{}';\n $_POST['pipeline'] = 'nf-core/' . $pipeline;\n $_POST['revision'] = $release;\n $_POST['nextflow_cmd'] = \"nextflow run nf-core/$pipeline -r $release\";\n $_POST['schema'] = json_encode($gh_launch_schema);\n return [];\n}", "title": "" } ]
[ { "docid": "2172ec70bf63c70dbf1eaefbb802756a", "score": "0.5546926", "text": "private function is_name () {\n\t\t$failer_error = 0;\n\t\tswitch ($this->name) {\n\t\t\tcase \"\":\n\t\t\t\t$failer_error = 2;\n\t\t\t\tbreak;\n\t\t\tcase strlen($this->name) < 3:\n\t\t\t\t$failer_error = 2;\n\t\t\t\tbreak;\n\t\t}\n\t\t$this->failer_error+=$failer_error;\n\t}", "title": "" }, { "docid": "d1a3c1848216c70da4b79bb55171f557", "score": "0.5225081", "text": "protected function validateName() {\n \t\tif (empty($this->templatePackName) || str_replace('/', '', $this->templatePackName) == '') {\n\t\t\tthrow new UserInputException('templatePackName');\n\t\t}\n\t\t\n\t\t$sql = \"SELECT\tCOUNT(*) AS count\n\t\t\tFROM\twcf\".WCF_N.\"_template_pack\n\t\t\tWHERE\ttemplatePackName = '\".escapeString($this->templatePackName).\"'\";\n\t\t$row = WCF::getDB()->getFirstRow($sql);\n\t\tif ($row['count']) {\n\t\t\tthrow new UserInputException('templatePackName', 'notUnique');\n\t\t}\n \t}", "title": "" }, { "docid": "dbfd87adfcee1dc37cd8c18398f900c6", "score": "0.52216196", "text": "public function hasSpecName()\n {\n return $this->get(self::SPEC_NAME) !== null;\n }", "title": "" }, { "docid": "2ec877470e2b352f14073231fa304bf2", "score": "0.51511645", "text": "private function _validateParameterName($name) {\n return (preg_match('/^[a-zA-Z0-9_]+$/', $name));\n }", "title": "" }, { "docid": "5fd0a32919b1216221ef92c8956bd40f", "score": "0.5114199", "text": "function _psm_valid_machine_name($name) {\n return preg_match('/^[a-z0-9][a-z0-9_-]*$/', $name) && !preg_match('/(_|-){2,}/', $name);\n}", "title": "" }, { "docid": "1f5025dc4ba5a8f7e7b74bcde1f52486", "score": "0.5112493", "text": "private static function valid($name) {\n\t\tif (preg_match('/^\\w+(?:\\[[^\\]]+\\]|\\.\\w+)*$/',$name))\n\t\t\treturn TRUE;\n\t\t// Invalid variable name\n\t\tself::$global['CONTEXT']=var_export($name,TRUE);\n\t\ttrigger_error(self::TEXT_Illegal);\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "fcf9c1a70606ec2618e4fd255a7abbaa", "score": "0.5092287", "text": "public function hasName();", "title": "" }, { "docid": "f4c084fb9f0028b8cf9e284a2a4ef074", "score": "0.5073601", "text": "public function setPipeline($var)\n {\n $arr = GPBUtil::checkMapField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->pipeline = $arr;\n\n return $this;\n }", "title": "" }, { "docid": "dabb4ff154e0157a5b9d7c57cecf2562", "score": "0.5033987", "text": "public function hasPipeResult(string $name)\n {\n return isset($this->results[$name]);\n }", "title": "" }, { "docid": "6bd3bf639fa45692a2e614a6f3b0b0d2", "score": "0.5004771", "text": "private function __validate_name() {\n if (isset($this->initial_data[\"name\"])) {\n if ($this->get_schedule_id_by_name($this->initial_data[\"name\"], true)) {\n $this->id = $this->get_schedule_id_by_name($this->initial_data[\"name\"]);\n } else {\n $this->errors[] = APIResponse\\get(4150);\n }\n } else {\n $this->errors[] = APIResponse\\get(4146);\n }\n }", "title": "" }, { "docid": "290d0e04ee22cfe7fe5b686e960a1bdb", "score": "0.5002781", "text": "public static function isValidCommandName( $name ) {\n\t\treturn preg_match('/^[a-zA-Z_][-\\w]*$/', $name);\n\t}", "title": "" }, { "docid": "2a4e458f9e1e4c2772fe6881346311c9", "score": "0.49927607", "text": "protected function validateName($name)\n {\n }", "title": "" }, { "docid": "46f8d45a4a93e719bc11a246a11fec23", "score": "0.49894458", "text": "public function testGetNameException()\n\t{\n\t\t$object = new FakeComponentURLCreator($this->object->app, $this->object->menu);\n\t\t$object->getName();\n\t}", "title": "" }, { "docid": "03bbd523863c96bb7add65223d2a3317", "score": "0.4970204", "text": "public function getPipelineMode() : string\n {\n return $this->pipelineMode;\n }", "title": "" }, { "docid": "4668c4361297b0da599df6a1995a5e11", "score": "0.4931502", "text": "function\tget_team_name($arg)\n{\n if ($arg == \"GRAPHIC\" || $arg == \"graphic\")\n {\n aff_error(\"name \\\"GRAPHIC\\\" or \\\"graphic\\\" is reserved !!!\");\n return (-1);\n }\n if ($arg == \"-p\" || $arg == \"-n\" || $arg == \"-h\")\n return (-1);\n return ($arg);\n}", "title": "" }, { "docid": "5782588a08a27ddfc7ad0179137f9a01", "score": "0.4927818", "text": "public function gitRepoNameValidate($git_repo) {\n if(empty($git_repo)) return false;\n if(strlen($git_repo)>100) return false;\n if (!preg_match('/^[A-Za-z0-9\\.\\-\\_]*$/', $git_repo)) return false;\n return true;\n }", "title": "" }, { "docid": "99d67116e444f008ca5f5c71673c10a8", "score": "0.49269065", "text": "public function test_filter_concatenated_name() {\n\t\t$this->assertContainsSubstring( \"Invalid concatenated hook name for filter ''invalid_concatenated_name' . \" . '$filter' . \"'\", $this->logs );\n\t}", "title": "" }, { "docid": "18561a72bf9a18ea1d90cb9422bbded8", "score": "0.49225083", "text": "public function getIsStageName()\n {\n return $this->isStageName;\n }", "title": "" }, { "docid": "c91b7aa955a71c461aadbd4d1d817c85", "score": "0.4921535", "text": "public function getPipeline()\n {\n return $this->pipeline;\n }", "title": "" }, { "docid": "c91b7aa955a71c461aadbd4d1d817c85", "score": "0.4921535", "text": "public function getPipeline()\n {\n return $this->pipeline;\n }", "title": "" }, { "docid": "a256f5dfe9a3aee989a0f0c50abe60c5", "score": "0.49202168", "text": "protected function validateName()\n {\n $packageName = $this->getName();\n if (preg_match('/[a-zA-Z0-9_\\-]+\\/[a-zA-Z0-9_\\-]+/', $packageName) == 0) {\n throw new InvalidPackageNameException(\"Invalid package name: $packageName\");\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "d7f96250189bc90519b8474f77c93861", "score": "0.4917066", "text": "function taxonomy_csv_vocabulary_machine_name_check($name) {\n return (taxonomy_vocabulary_machine_name_load($name) != FALSE);\n}", "title": "" }, { "docid": "35d850a591f4d3e37636a86ca2c395d5", "score": "0.49016348", "text": "protected function hasPipeViewer()\n {\n return OperatingSystem::isProgramInstalled('pv');\n }", "title": "" }, { "docid": "50e2660ac11dfb5407ddd51fc41ef1a8", "score": "0.4856507", "text": "function validateName($name){\n\t\t\tglobal $validForm, $nameErr, $sanName;\t//Use the GLOBAL Version of these variables instead of making them local\n\t\t\tif($name==\"\"){\n\t\t\t\t$nameErr = \"*Name is required\";\n\t\t\t\t$validForm = false;\n\t\t\t}else{ \n\t\t\t\t// Remove all illegal characters from name\n\t\t\t\t$sanName = filter_var($name, FILTER_SANITIZE_STRING);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "d1d1102c6153f86a0d1a1d414e8af783", "score": "0.48401675", "text": "public function hasName()\n {\n return $this->get(self::NAME) !== null;\n }", "title": "" }, { "docid": "d1d1102c6153f86a0d1a1d414e8af783", "score": "0.48401675", "text": "public function hasName()\n {\n return $this->get(self::NAME) !== null;\n }", "title": "" }, { "docid": "d1d1102c6153f86a0d1a1d414e8af783", "score": "0.48401675", "text": "public function hasName()\n {\n return $this->get(self::NAME) !== null;\n }", "title": "" }, { "docid": "308f81e942a46f5e89c674467a6dda48", "score": "0.48289412", "text": "function validName($name){\r\n return ctype_alpha($name);\r\n }", "title": "" }, { "docid": "46382eae7325d6baff747a514f47a499", "score": "0.4817493", "text": "public function validateModuleName()\n {\n if ($this->isReservedKeyword($this->moduleName)) {\n $this->addError('moduleName', \"模块名不能使用PHP保留的关键字.\");\n } elseif (!preg_match('/^[a-z][a-z0-9]*$/', $this->moduleName)) {\n $this->addError('moduleName', \"模块名不合法.\");\n }\n }", "title": "" }, { "docid": "79b04f171e5ab7c002e5bf85b2736d88", "score": "0.48117498", "text": "static function checkName($name = null) {\n return $name ? $name : 'root';\n }", "title": "" }, { "docid": "dbd123480146225fde0c86acf5bddea1", "score": "0.47973186", "text": "function circlename_check($string){\n\t\t\t\t\n\t\t\tif ($string == 'test'){\n\t\t\t\t$this->form_validation->set_message('circlename_check', 'The %s field can not be the word \"test\".');\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t\t\t\n\t\t\t$document = $this->circle_model->get_Circle($string);\n\t\t\t\t\n\t\t\tif($document['name'] == $string){\n\t\t\t\t$this->form_validation->set_message('circlename_check', 'This circle name is already taken.');\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t\treturn TRUE;\n\t\t}", "title": "" }, { "docid": "ffdea132d7bfbfaa096ba5e0be031fe4", "score": "0.47897428", "text": "public function isNameNeeded()\n {\n return true;\n }", "title": "" }, { "docid": "cd27fa008b784ea60a402c7f68dcae1d", "score": "0.47886443", "text": "public function hasCommand($name);", "title": "" }, { "docid": "7cfb183659445d602e70b48f7354b939", "score": "0.4781268", "text": "public function __isset($name): bool {\n\t\tif(strrpos($name, 'facet_', -strlen($name)) !== false) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7fb8e599ddbe418e4285d014e6230bde", "score": "0.4761827", "text": "public static function hasComponent($name)\n {\n return \\Collective\\Html\\FormBuilder::hasComponent($name);\n }", "title": "" }, { "docid": "335e2777f201d1e69342b268c35341cc", "score": "0.47532713", "text": "public function testCloudName()\n {\n self::assertMediaFromParamsUrl(\n self::IMAGE_NAME\n );\n }", "title": "" }, { "docid": "9bc838186ffab61cbf7013ea833a20ac", "score": "0.47483107", "text": "private static final function ___validName($name)\n\t{\n\t\tif (!preg_match('/^[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*$/', $name)) {\n\t\t\t// invalid name\n\t\t\treturn false;\n\t\t}\n\t\t$test = '<?' . $name;\n\t\t$tokens = (token_get_all($test));\n\t\tif ($tokens[1][0]!==T_STRING) {\n\t\t\t// reserved keyword\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c86cc910b9089ee6ac47e8992e898d8a", "score": "0.47479805", "text": "public function valid_key_name($name) {\n return preg_match(OmegaTest::file_name_re, $name);\n }", "title": "" }, { "docid": "09459a25f3f11281446b33199c51a2cc", "score": "0.47309956", "text": "public function testNoName() {\n\t\t$this->expectException('HttpSourceConfigException');\n\t\t$this->Condition->name();\n\t}", "title": "" }, { "docid": "d460ee23b4e719bdddbb0d54b3cbb01f", "score": "0.47243217", "text": "public function testInvalidGetName() {\n $module_handler = $this->container->get('module_handler');\n $this->assertSame('module_nonsense', $module_handler->getName('module_nonsense'));\n }", "title": "" }, { "docid": "7ed8ccfc9988d65ae7d0f94552ca1e12", "score": "0.47191745", "text": "public function getPipelinePosition(): string;", "title": "" }, { "docid": "e93ac72ec9b1023906b99f17744e8cac", "score": "0.4711183", "text": "public function checkName(){\r\n if(empty(strip_tags($this->getPost()[\"nameIn\"]))){\r\n $this->getGame()->setNameSet(false);\r\n $this->setRedirect($this->getSite()->getRoot() . \"/index.php\");\r\n return false;\r\n }\r\n else{\r\n $this->getGame()->setNameSet(true);\r\n return true;\r\n }\r\n }", "title": "" }, { "docid": "ec372baa7a2d26e8a7ffde32b2021be7", "score": "0.47092128", "text": "public static function nameIsValid($name) {\r\n return ( is_string($name) && !empty($name) ); \r\n }", "title": "" }, { "docid": "9ddebf67528050aae3322dedbc344a7d", "score": "0.47033334", "text": "private function takeName() {\n $matche = [];\n $pattern = '/^# (.+)(?:\\n|$)/m';\n if (\\preg_match($pattern, $this->sourceString, $matche)) {\n $this->sourceString = \\preg_replace($pattern, '', $this->sourceString);\n $this->regulationName = $matche[1];\n } else {\n throw new \\Exception('The name of regulation not found.');\n }\n }", "title": "" }, { "docid": "f00eef6d247dd8f45c063ceb7fe29f1c", "score": "0.47022504", "text": "public function valid() {\n\n\t\tif ( ! preg_match( '/^[A-Za-z0-9-.]*$/', $this->container['source_id'] ) ) {\n\t\t\treturn false;\n\t\t}\n\t\tif ( null === $this->container['publishing_status'] ) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "67d37ac0fa2accdfe0816c05df3f4269", "score": "0.47018132", "text": "function validate_username($send_name) {\n\t$error = null;\n\t$format_error = username_format_validate($send_name);\n\tif($format_error){\n\t\t$error = 'Phase 1 Incomplete: Ninja name: '.$error;\n\t}\n\treturn $error;\n}", "title": "" }, { "docid": "c355026858a8122e41082ce85f5dfade", "score": "0.46912643", "text": "protected function _is_valid_post_type_name() {\n\t\t$name_valid = true;\n\n\t\t// Maximum 20 characters long\n\t\tif ( strlen( $this->name ) > 20 ) :\n\t\t\ttrigger_error( sprintf( \"Post type name '%s' can be no more than 20 characters long\", $this->name ), E_USER_WARNING );\n\t\t\t$name_valid = false;\n\t\tendif;\n\n\t\t// No capital letters or spaces\n\t\tif ( preg_match( '/[A-Z\\s]/', $this->name ) ) :\n\t\t\ttrigger_error( sprintf( \"Post type name '%s' can not contain capital letters or spaces\", $this->name ), E_USER_WARNING );\n\t\t\t$name_valid = false;\n\t\tendif;\n\n\t\treturn $name_valid;\n\t}", "title": "" }, { "docid": "4f440ec9bd63aaeb84824440e5560c8c", "score": "0.46912527", "text": "function checkName ($name) { \n\tif (Agency::chkName($name)) {\n\t\treturn 0;\n\t}\n\telse {\n\t\treturn 1;\n\t}\n}", "title": "" }, { "docid": "77e9e8ce466a0fb5347409de0baeb464", "score": "0.46896777", "text": "public function reponameValidate(array $element, FormStateInterface $form_state) {\n $reponame = $element['#value'];\n $plugin = $this->createPlugin($form_state);\n $plugin->setRepository($reponame);\n\n if ($reponame) {\n $part = '[0-9a-z_-]+';\n $repoRegex = \"#{$part}/{$part}#i\";\n if (!preg_match($repoRegex, $reponame)) {\n $form_state->setError($element, $this->t('Invalid repository name'));\n return;\n }\n\n if (!$plugin->repoExists()) {\n $form_state->setError($element, $this->t('The repository does not exists'));\n return;\n }\n }\n }", "title": "" }, { "docid": "aaef6783d01962fdfe1d66121749e772", "score": "0.46861526", "text": "function validName($name)\r\n{\r\n return !empty($name);\r\n}", "title": "" }, { "docid": "c4e56131fd9c058905e76963edbccf57", "score": "0.46853974", "text": "static function validName($name)\r\n {\r\n return ctype_alpha($name);\r\n }", "title": "" }, { "docid": "6d8736367f8144118172d0f658ff21e9", "score": "0.46832648", "text": "public function testCreatePipelineAnalyzer()\n {\n $data = [ \"pipeline\" => [\n [ \"type\" => \"delimiter\", \"properties\" => [ \"delimiter\" => \" \" ] ],\n [ \"type\" => \"norm\", \"properties\" => [ \"locale\" => \"en.UTF-8\", \"accent\" => false, \"case\" => \"lower\" ] ],\n [ \"type\" => \"stopwords\", \"properties\" => [ \"stopwords\" => [\"foo\", \"bar\", \"baz\", \"dead\"] ] ]\n ] ];\n\n $analyzer = new Analyzer('Analyzer1' . '_' . static::$testsTimestamp, 'pipeline', $data);\n $result = $this->analyzerHandler->create($analyzer);\n\n static::assertEquals('Analyzer1' . '_' . static::$testsTimestamp, $result['name']);\n static::assertEquals('pipeline', $result['type']);\n static::assertEquals($data, $analyzer->getProperties());\n static::assertEquals([], $analyzer->getFeatures());\n }", "title": "" }, { "docid": "269c40da11a9623273f778a0aadbdb9e", "score": "0.46756253", "text": "function validName($name)\n{\n return (!empty($name) && ctype_alpha($name));\n}", "title": "" }, { "docid": "1d0266288b04331875ebab4682ea50a0", "score": "0.46717227", "text": "public function testGetName()\n {\n $this->assertEquals(\n 'SHA-512',\n Method::invoke($this->algorithm, 'getName'),\n 'Make sure we get the right name.'\n );\n }", "title": "" }, { "docid": "9b7a2efc2ae14e62ca42816e3eb28b07", "score": "0.46585795", "text": "protected function validateName($name) {\n\t\tif (preg_match('/^[0-9a-zA-Z\\_\\-\\ \\/\\\\\\.]*$/', $name, $matches) && strlen($name)) {\n\t\t\treturn $this->checkNameformat($name);\n\t\t} else {\n\t\t\tprint \"Name '$name' doesn't match with Centreon naming rules.\\n\";\n\t\t\texit (1);\n\t\t}\n\t}", "title": "" }, { "docid": "af1163474c3697cf0a706e3a4e500308", "score": "0.46484822", "text": "public function hasName()\n {\n return ! empty($this->name);\n }", "title": "" }, { "docid": "110ff575dd99bac5b94eb7c93c232d9c", "score": "0.46294573", "text": "function validate_name($name) {\r\n return preg_match('/^[A-Za-z]/', $name) === 1;\r\n}", "title": "" }, { "docid": "f83e1c5303ae9bccdb41e6f2d0fad7f4", "score": "0.4628766", "text": "public function hasName(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "f83e1c5303ae9bccdb41e6f2d0fad7f4", "score": "0.4628766", "text": "public function hasName(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "f83e1c5303ae9bccdb41e6f2d0fad7f4", "score": "0.4628766", "text": "public function hasName(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "f83e1c5303ae9bccdb41e6f2d0fad7f4", "score": "0.4628766", "text": "public function hasName(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "f83e1c5303ae9bccdb41e6f2d0fad7f4", "score": "0.4628766", "text": "public function hasName(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "f83e1c5303ae9bccdb41e6f2d0fad7f4", "score": "0.4628766", "text": "public function hasName(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "3e299b82e916b7d3e8a2974135f611d3", "score": "0.46272558", "text": "public function hasName(){\r\n return $this->_has(1);\r\n }", "title": "" }, { "docid": "d5a74f0809f6803487b02b67d52c38ba", "score": "0.46241546", "text": "public function detectEnvName()\r\n {\r\n // Return if env name is detected, or, or continue detecting by IP\r\n if ($this->detector && $this->name = call_user_func($this->detector)) {\r\n return;\r\n }\r\n\r\n // Executes in web server, like Apache, Nginx\r\n if (isset($this->server['SERVER_ADDR'])) {\r\n $ip = $this->server['SERVER_ADDR'];\r\n if (isset($this->ipMap[$ip])) {\r\n $this->name = $this->ipMap[$ip];\r\n } else {\r\n $this->name = 'prod';\r\n }\r\n return;\r\n }\r\n\r\n // Executes in CLI\r\n if (php_sapi_name() == 'cli' && $ips = $this->getServerIps()) {\r\n foreach ($ips as $ip) {\r\n if (isset($this->ipMap[$ip])) {\r\n $this->name = $this->ipMap[$ip];\r\n return;\r\n }\r\n }\r\n }\r\n\r\n $this->name = 'prod';\r\n return;\r\n }", "title": "" }, { "docid": "67ca5f5adb25f68acee429ce58d645d5", "score": "0.46233413", "text": "public function valid_bin_name($name) {\n return preg_match(OmegaTest::file_path_re, $name);\n }", "title": "" }, { "docid": "81c62c5a658d715e6f5abb62e57ae34a", "score": "0.46149185", "text": "function ValidateName($name){\n\t\t\tif (@preg_match('/^.+$/', $name))\n\t\t\t\treturn true;\n\t\t\telse {\n\t\t\t\techo \"<p><font color='red'>\" . $name . \" is not a valid name. Please enter a valid name.</font></p></br>\";\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "1daa044eb3a13957c2fac4eae5faaa27", "score": "0.46146286", "text": "function isMachineName( $pString ) {\n\t\treturn( preg_match( '/(^[0-9][-0-9 ]*$)|(^[-0-9 ]*(img|dsc|dscn|pict|htg|dscf|p)[-0-9 ][-0-9 ]*.*$)/i', trim( $pString ) ) );\n\t}", "title": "" }, { "docid": "2f85624f16220a85b7c6fd13116332c6", "score": "0.4609363", "text": "protected function validArgument($name)\n {\n return in_array($name, $this->grammar->getArguments());\n }", "title": "" }, { "docid": "443ac0c39dac25f3664d7d0788b419fc", "score": "0.45979297", "text": "public function testInvalidGetName() {\n $this->expectException(UnknownExtensionException::class);\n $this->expectExceptionMessage('The module module_nonsense does not exist.');\n $module_handler = $this->container->get('module_handler');\n $module_handler->getName('module_nonsense');\n }", "title": "" }, { "docid": "fe00ed4d5a0d4331e8c8afbca0b305f5", "score": "0.4596786", "text": "private function validateProviderName($name)\n {\n if (!preg_match(\"/^[\\w]+$/\", $name)) {\n throw new InvalidArgumentException(\n 'Supplied formatter name \"'.$name.'\" contains invalid characters'\n );\n }\n return true;\n }", "title": "" }, { "docid": "88010f3a7a38b9bd2f9ac26d9e90505f", "score": "0.45912218", "text": "function isa_name($data) {\n return (strlen($data) < 65 && preg_match(\"/^[a-zA-Z \\-\\']*$/\",$data));\n }", "title": "" }, { "docid": "5099184c41a6d9c8adbdec995b2f33e5", "score": "0.45899415", "text": "function bcg_is_component () {\n\t\n\t$bp = buddypress();\n\n\tif ( bp_is_current_component( $bp->groups->slug ) && bp_is_current_action( BCG_SLUG ) ) {\n\t\treturn true;\n\t}\n\n\treturn false;\n}", "title": "" }, { "docid": "d3e237e6910dfc6be1894767a89017dc", "score": "0.45846885", "text": "public function isTargetInput($input_name);", "title": "" }, { "docid": "a36991e70c441aebcbc6be6b93dd6738", "score": "0.4584595", "text": "final public static function isValidName($name)\n {\n return '' === $name || null === $name || preg_match('/^[a-zA-Z0-9_][a-zA-Z0-9_\\-:]*$/D', $name);\n }", "title": "" }, { "docid": "d2af71142d57640d538c3c840062cb54", "score": "0.45814413", "text": "function validTherapistName($name)\r\n{\r\n return !empty($name) && ctype_alpha($name);\r\n}", "title": "" }, { "docid": "81bdc195c02c12b3dcf73828ed7b00c9", "score": "0.45783958", "text": "private function validateName($name)\n {\n if (preg_match('/[^a-z_\\-0-9]/i', $name)) {\n throw new \\InvalidArgumentException(sprintf('Worker name `%s` is invalid.', $name));\n }\n }", "title": "" }, { "docid": "b07705b90c2b545a93778e2ff9bd0175", "score": "0.45736435", "text": "function taxonomy_csv_vocabulary_name_check($name) {\n return (taxonomy_vocabulary_load_multiple(FALSE, array('name' => $name)) != FALSE);\n}", "title": "" }, { "docid": "b858ca41e6f7d1e058727c364f4457de", "score": "0.45665336", "text": "function validName($name) {\n\n return ctype_alpha($name);\n}", "title": "" }, { "docid": "44e0968ab1379e3a4132e0f5cc7a0ce2", "score": "0.45659813", "text": "protected function _isValidName($name)\n\t\t{\n\t\t\t$valid_string = \"/^[a-zA-Z0-9\\\"\\'\\.\\s\\-]+$/\";\n\t\t\treturn preg_match($valid_string, $name) ? true : false;\n\t\t}", "title": "" }, { "docid": "bb11154cee97d432d2815a6f7acf9ccf", "score": "0.4565762", "text": "public function validateUniqueProductName()\n {\n\n if ($_SERVER['REQUEST_METHOD'] === 'GET') {\n if (isset($_GET['productName']) && !empty($_GET['productName'])) {\n\n $productName = trim($_GET['productName']);\n\n echo ValidationRules::isUniqueProductName(\n $productName,\n (isset($_GET['productId']) && !empty($_GET['productId'])) ?\n $_GET['productId'] : null) ?\n json_encode(['response' => 'true']) :\n json_encode(['response' => 'false']);\n }\n\n }\n }", "title": "" }, { "docid": "4b388cf00cd117aaba2d8c2764810e42", "score": "0.45642996", "text": "public function valid()\n {\n return $this->url() && $this->name();\n }", "title": "" }, { "docid": "05785ad202feb37981bc42de1914121e", "score": "0.45543545", "text": "public function hasName(){\n return $this->_has(26);\n }", "title": "" }, { "docid": "92133bebabeb32df838e27fcee4a898a", "score": "0.4532997", "text": "function devshop_projects_create_environment_form_validate_name($element, &$form_state, $form) {\n\n if (!empty($element['#value'])) {\n $project_node = node_load($form_state['values']['project_nid']);\n $project = $project_node->project;\n\n // Check existence of the environment name\n if (!empty($project->environments[$element['#value']])) {\n form_set_error('environment_name', t('There is already an environment named %name in this project. Please choose a different name.', array('%name' => $form_state['values']['environment_name'])));\n }\n\n // Check for illegal chars\n if (!preg_match('!^[a-z0-9_]+$!', $element['#value'])) {\n form_set_error('environment_name', t('The environment name must contain only lowercase letters, numbers, and underscores.'));\n }\n\n // Generate field prefix and suffix using domain name pattern.\n $form_state['environment_name'] = $element['#value'];\n form_set_value($form['title'], devshop_environment_url($project, $element['#value']), $form_state);\n\n // Attach a new platform node.\n $platform_node = devshop_prepare_platform_node($project, $element['#value'], $form_state['values']['git_ref'], $form_state['values']['web_server']);\n $platform_node->no_verify = TRUE;\n\n // Set value in form_state.\n form_set_value($form['platform_node'], $platform_node, $form_state);\n form_set_value($form['platform'], 0, $form_state);\n }\n}", "title": "" }, { "docid": "c51ec97e16eaa351b10858d2f1458b69", "score": "0.4532633", "text": "function isValidCodeName($str){\n $pattern = \"/^[a-zA-Z0-9_ ~\\-]+$/\";\n if( preg_match_all($pattern, $str))\n return true;\n else\n return false;\n}", "title": "" }, { "docid": "fb5e7be75b6463a3a62b24dab8123294", "score": "0.45256156", "text": "function resource_name_check($resource_name, $not_resource_id = 0)\n\t{\n\t\tif ($this->resource_model->get_by_name($resource_name, $not_resource_id)) {\n\t\t\t$this->form_validation->set_message('resource_name_check', lang('resource_name_taken'));\n\t\t\treturn FALSE;\n\t\t} else\n\t\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "89240c0af2e522678be0b3311be01feb", "score": "0.45244324", "text": "public function hasName(){\r\n return $this->_has(2);\r\n }", "title": "" }, { "docid": "7a40c9503c758faf702347b0ca467cf4", "score": "0.45210323", "text": "function IsValidName($name) {\n return ! preg_match('/[^A-Za-z0-9]/', $name);\n }", "title": "" }, { "docid": "46469f528bdd8a57691aa47002b03d94", "score": "0.45197034", "text": "function isOP($name) {\n $haystack = $name;\n $needle = \"_OP\";\n return (substr($haystack, -strlen($needle)) === $needle) && $name !== \"ASM_OP\";\n }", "title": "" }, { "docid": "b78f77601ded22c31f378dc84a6f61f1", "score": "0.45161906", "text": "function validate_name($name) {\n $nameErr = '';\n // check if name only contains letters and whitespace\n if (!preg_match(\"/^[a-zA-Z ]*$/\",$name)) {\n $nameErr = \"Only letters and white space allowed\";\n }\n\n return $nameErr;\n }", "title": "" }, { "docid": "48cacf8c74bc6744728fb8efe1750981", "score": "0.45106578", "text": "public function checkUniqueTemplateName($qstage)\r\n {\r\n $result = $this->db->query(\"CALL checkUniqueTemplateName('\".$qstage.\"')\")->row();\r\n save_query_in_log();\r\n return $result;\r\n }", "title": "" }, { "docid": "9ceadd6ec1ffcc0061538e0f3997c5ae", "score": "0.45095673", "text": "protected function isValidSource($name)\n {\n return ($this->container->has($name) && \\is_subclass_of($this->container->get($name), SourceInterface::class))\n || (\\class_exists($name) && \\is_subclass_of($name, SourceInterface::class));\n }", "title": "" }, { "docid": "a9fd427e74f1440e37d580c1c0659767", "score": "0.45095658", "text": "public static function validate(string $name) {\n\n\t\t\treturn (preg_match(static::$regex_name, $name) ? $name : false);\n\t\t}", "title": "" }, { "docid": "bc2ba74450e7e20a7e283c1840da7a6a", "score": "0.45095098", "text": "private function validate() {\r\n \r\n if (empty($this->name)) {\r\n throw new Exception(\"Camera name is empty\"); \r\n }\r\n \r\n if (empty($this->manufacturer)) {\r\n throw new Exception(\"Manufacturer name is empty\"); \r\n }\r\n \r\n if (empty($this->slug)) {\r\n $this->slug = ContentUtility::generateUrlSlug(sprintf(\"%s %s\", $this->manufacturer, $this->name)); \r\n \r\n try {\r\n $count = $this->db->fetchAll(\"SELECT id FROM image_camera WHERE url_slug = ?\", $this->slug); \r\n \r\n if (count($count)) {\r\n $this->slug .= count($count); \r\n }\r\n } catch (Exception $e) {\r\n // Don't care\r\n }\r\n \r\n }\r\n \r\n return true;\r\n \r\n }", "title": "" }, { "docid": "00d56d02665e8f86c94ef1406ad10d29", "score": "0.45030397", "text": "public function testMethodNameDetection() {\n\t\t$this->Shell->expects($this->any())\n\t\t\t->method('in')->will($this->returnValue('q'));\n\t\t$this->Shell->expects($this->at(0))\n\t\t\t->method('out')->with('Controller');\n\n\t\t$this->Shell->expects($this->at(2))\n\t\t\t->method('out')\n\t\t\t->with($this->logicalAnd(\n\t\t\t\t$this->contains('8. beforeFilter($event)'),\n\t\t\t\t$this->contains('24. render($view = NULL, $layout = NULL)')\n\t\t\t));\n\n\t\t$this->Shell->args = ['controller'];\n\t\t$this->Shell->paths['controller'] = CAKE . 'Controller/';\n\t\t$this->Shell->main();\n\t}", "title": "" }, { "docid": "e3190e4997ebec6a74edaa51c428be99", "score": "0.45018", "text": "public function hasName(): bool\n {\n return isset($this->name);\n }", "title": "" }, { "docid": "13311eb9474cd8be11e03c159637418d", "score": "0.44980547", "text": "private function controllerNameWasDefined() {\n\t\tif (is_null($this->controllerNameWasDefined))\n\t\t\t$this->controllerNameWasDefined = array_key_exists(0, $this->unusedRequestParts) && !empty($this->unusedRequestParts[0]);\n\t\treturn $this->controllerNameWasDefined;\n\t}", "title": "" }, { "docid": "d6e0cb379644efc1d0671a76734024b6", "score": "0.4493517", "text": "public function setPipeline($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Cloud\\LifeSciences\\V2beta\\Pipeline::class);\n $this->pipeline = $var;\n\n return $this;\n }", "title": "" }, { "docid": "57a05bdf80b5879478de73eb8129c981", "score": "0.4489594", "text": "protected function processName()\n\t{\n\t\t$token = $this->stream->getCurrent();\n\n\t\t// must be a name token\n\t\t$this->stream->expect(Token::NAME);\n\t\t$this->variable[] = $token->getValue();\n\n\t\t$token = $this->stream->next();\n\n\t\t// allowed values are: \"|\" or \".\" or VAR_END\n\t\t$value = $token->getValue();\n\n\t\t// expecting keys\n\t\tif($token->test(Token::PUNCTUATION, '.'))\n\t\t{\n\t\t\t// skip '.'\n\t\t\t$this->stream->next();\n\t\t\t$this->processKey();\n\t\t}\n\n\t\t// expecting modifiers\n\t\telseif($token->test(Token::PUNCTUATION, '|'))\n\t\t{\n\t\t\t// skip '|'\n\t\t\t$this->stream->next();\n\t\t\t$this->processModifier();\n\t\t}\n\n\t\t// only thing allowed now is the end of the variable\n\t\telse\n\t\t{\n\t\t\t$this->stream->expect(Token::VAR_END);\n\t\t}\n\t}", "title": "" }, { "docid": "d5daf75034345c2ec1a7418bca1cbf83", "score": "0.44875294", "text": "function checkName($p_name)\n\t{\n\t\tif( $statement = \\DatabaseManager\\prepare('SELECT id FROM project WHERE name=:name;') )\n\t\t{\n\t\t\tif( \\DatabaseManager\\execute($statement , array(':name' => $p_name) ) )\n\t\t\t{\n\t\t\t\tif( $statement->fetch() )\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" } ]
45bd9903091a409e3b069f55d1f5690d
Perform actions after object load
[ { "docid": "05e63b4062fcebc72c9043ad19d163ea", "score": "0.0", "text": "protected function _afterLoad(Core_Model_Abstract $object)\n {\n return $this;\n }", "title": "" } ]
[ { "docid": "7aac48e556d9dc1cc00f48d06ff444ed", "score": "0.7829557", "text": "public function postLoad() {}", "title": "" }, { "docid": "956d6ef0c8018382bd0ccfcdaa7774aa", "score": "0.7779768", "text": "protected function postLoad(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "e9002392b41aba3411134368baa26c2e", "score": "0.77455133", "text": "public function postLoad() { }", "title": "" }, { "docid": "300f065c92eac8a3c258be213c39cba7", "score": "0.7673928", "text": "public function afterLoad() { }", "title": "" }, { "docid": "50f10c2748905b9f46ed8600fdb9eb02", "score": "0.7557121", "text": "protected function afterLoad()\n {\n }", "title": "" }, { "docid": "09fb58b477c99a5192007bf96ebaea7f", "score": "0.72613233", "text": "public function afterLoad(){\n $this->getType()->afterLoadProcess($this);\n return parent::afterLoad();\n }", "title": "" }, { "docid": "759869410dfa524482f976db3e900a0c", "score": "0.70952743", "text": "public function __load()\r\n {\r\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\r\n }", "title": "" }, { "docid": "759869410dfa524482f976db3e900a0c", "score": "0.70952743", "text": "public function __load()\r\n {\r\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\r\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.7079521", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" }, { "docid": "c35195e42313eb23815870948e9103fb", "score": "0.7055038", "text": "protected function _afterLoadPostProcess(BTS_Model $obj) {}", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" }, { "docid": "0bf105ff61561b1f6a2b13c41fda961d", "score": "0.70436895", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());\n }", "title": "" } ]
747af998600465a8ba6d46a77049c7ef
Generated from protobuf field repeated .xchange.BlockData collidedBlocks = 12;
[ { "docid": "730919288a086191f6b767e515ffd4e3", "score": "0.716156", "text": "public function getCollidedBlocks()\n {\n return $this->collidedBlocks;\n }", "title": "" } ]
[ { "docid": "cf3e5028ce28b6faef5d32b764da5fef", "score": "0.7942958", "text": "public function setCollidedBlocks($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\prokits\\xyron\\BlockData::class);\n $this->collidedBlocks = $arr;\n\n return $this;\n }", "title": "" }, { "docid": "bfb94ea1f142bfeae5cf8d516a65863d", "score": "0.6088081", "text": "public function setIntersectedBlocks($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\prokits\\xyron\\BlockData::class);\n $this->intersectedBlocks = $arr;\n\n return $this;\n }", "title": "" }, { "docid": "6913c91b04818288fd7bf8f95f4b3c08", "score": "0.5690443", "text": "public function getBlocks()\n {\n return $this->blocks;\n }", "title": "" }, { "docid": "b4187513f97dd7ebe6c6bdd4edfaa991", "score": "0.5665837", "text": "public function getBlocks(): array\n {\n return $this->blocks;\n }", "title": "" }, { "docid": "4a76f208e1c19f77b559071a618ca598", "score": "0.5611321", "text": "public function getBlocks() {\n\t\treturn $this->blocks;\n\t}", "title": "" }, { "docid": "264579a8a78f9d646c893a2c64200bc3", "score": "0.55491203", "text": "public function getBlocks()\n {\n return $this->aBlocks;\n }", "title": "" }, { "docid": "1d572cfce699d464b1b3eab0db09f8ad", "score": "0.5543035", "text": "public function getBlocks(): array {\n\t\treturn $this->blocks;\n\t}", "title": "" }, { "docid": "f4225b689d62fba603bcea7ce5737375", "score": "0.5452528", "text": "function addBlocks($blocks, $gameId) {\n\t\t$sql = \"INSERT INTO gameBlock (x, y, colorId, gameId, gameUserId) VALUES \";\n\n\t\t$query_parts = array();\n\t\t$height = count($blocks);\n\t\tfor ($y = 0; $y < $height; $y++) {\n\t\t\tfor ($x = 0; $x < \tcount($blocks[$y]); $x++) {\n\t\t\t\t$block = $blocks[$y][$x];\n\t\t\t\t$color = $block[\"colorId\"];\n\t\t\t\t$user = $block[\"gameUserId\"];\n\t\t\t\tif ($user == NULL) {\n\t\t\t\t\t$query_parts[] = \"($x,$y,$color,$gameId,'')\";\n\t\t\t\t} else {\n\t\t\t\t\t$query_parts[] = \"($x,$y,$color,$gameId,'$user')\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$sql .= implode(\",\", $query_parts);\n\t\t$sql .= \";\";\n\n\t\t$this->mdb->query($sql);\n\t}", "title": "" }, { "docid": "5fa40c7f5e6c1a9a852ada59473eb45c", "score": "0.5394531", "text": "public function &getBlocks() {\n return $this->blocks;\n }", "title": "" }, { "docid": "c1c1902f28f8d100163bb9fa6483cd05", "score": "0.5360689", "text": "public static function getBlocks()\n {\n return static::$blocks;\n }", "title": "" }, { "docid": "e1be3eb545f4fb222c104429a6ba9a99", "score": "0.5322596", "text": "public static function getBlocks()\n {\n global $user_info;\n\n if (self::$blocks_cache == null)\n {\n self::$blocks_cache = WePortal::fetchContentProviders(false, null, $user_info['groups']);\n foreach (self::$blocks_cache as $k => $v)\n if (substr($v['holder'], 0, 3) != 'bar')\n unset(self::$blocks_cache[$k]);\n }\n\n return self::$blocks_cache;\n }", "title": "" }, { "docid": "924df40af2481df29712b3358d155271", "score": "0.5318894", "text": "public function checkBlocks();", "title": "" }, { "docid": "d69697ef8ed5b028902183c697c8fb73", "score": "0.53120476", "text": "public function blocks()\n {\n $blocks = array();\n foreach ( $this->properties as $property ) {\n foreach ( $property->block as $blk ) {\n $blocks[] = $blk;\n }\n }\n\n return array_unique( $blocks );\n }", "title": "" }, { "docid": "83ce0ace2ee4e80ebb21aac78fb3259f", "score": "0.5188317", "text": "public function blocks() : \\Generator{\n\t\tfor($x = 0; $x < $this->width; $x++){\n\t\t\tfor($z = 0; $z < $this->length; $z++){\n\t\t\t\tfor($y = 0; $y < $this->height; $y++){\n\t\t\t\t\t$index = $this->blockIndex($x, $y, $z);\n\t\t\t\t\t$id = isset($this->blocks[$index]) ? ord($this->blocks[$index]) & 0xff : 0;\n\t\t\t\t\t$data = isset($this->data[$index]) ? ord($this->data[$index]) & 0x0f : 0;\n\t\t\t\t\t$block = BlockFactory::getInstance()->get($id, $data);\n\t\t\t\t\t[$block->getPos()->x, $block->getPos()->y, $block->getPos()->z] = [$x, $y, $z];\n\t\t\t\t\tif($this->materials !== self::MATERIALS_POCKET){\n\t\t\t\t\t\t$block = $this->fixBlock($block);\n\t\t\t\t\t}\n\t\t\t\t\tyield $block;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "852787db0d8cc8a74996bfa68296acd5", "score": "0.5148331", "text": "public function setBlockArray(array $blocks) : void{\n\t\t$min = new Vector3(0, 0, 0);\n\t\t$max = new Vector3(0, 0, 0);\n\t\tforeach($blocks as $block){\n\t\t\tif($block->getPos()->x < $min->x){\n\t\t\t\t$min->x = $block->getPos()->x;\n\t\t\t}elseif($block->getPos()->x > $max->x){\n\t\t\t\t$max->x = $block->getPos()->x;\n\t\t\t}\n\t\t\tif($block->getPos()->y < $min->y){\n\t\t\t\t$min->y = $block->getPos()->y;\n\t\t\t}elseif($block->getPos()->y > $max->y){\n\t\t\t\t$max->y = $block->getPos()->y;\n\t\t\t}\n\t\t\tif($block->getPos()->z < $min->z){\n\t\t\t\t$min->z = $block->getPos()->z;\n\t\t\t}elseif($block->getPos()->z > $max->z){\n\t\t\t\t$max->z = $block->getPos()->z;\n\t\t\t}\n\t\t}\n\t\t$this->height = $max->y - $min->y + 1;\n\t\t$this->width = $max->x - $min->x + 1;\n\t\t$this->length = $max->z - $min->z + 1;\n\n\t\tforeach($blocks as $block){\n\t\t\t$pos = $block->getPos()->subtractVector($min);\n\t\t\t$index = $this->blockIndex($pos->x, $pos->y, $pos->z);\n\t\t\tif(strlen($this->blocks) <= $index){\n\t\t\t\t$this->blocks .= str_repeat(chr(0), $index - strlen($this->blocks) + 1);\n\t\t\t}\n\t\t\t$this->blocks[$index] = chr($block->getId());\n\t\t\t$this->data[$index] = chr($block->getMeta());\n\t\t}\n\t}", "title": "" }, { "docid": "3dd1ff9b5f18f3f28e90e0100113c215", "score": "0.51380473", "text": "private function identifyBlocks()\r\n\t{\r\n\t\tpreg_match_all('/<!-- bb_([a-z_]+) -->/smi', $this->tpl, $block_names);\r\n\t\t\t\t\r\n\t\t/* extract blocks content */\r\n\t\tforeach ($block_names[1] as $block_name)\r\n\t\t{\r\n\t\t\t$block_search = '/<!-- bb_' . $block_name . ' -->(.*)<!-- eb_' . $block_name . ' -->/smi';\r\n\t\t\tpreg_match($block_search, $this->tpl, $block);\r\n\t\t\t\r\n\t\t\tisset($block[1]) or die('Template: Block &lt;' . $block_name . '&gt; badly formed');\r\n\t\t\t\r\n\t\t\t$this->blocks[$block_name] = $block[1];\r\n\t\t}\r\n\r\n\t\tforeach ($block_names[1] as $block_name)\r\n\t\t{\r\n\t\t\t/* replaces blocks for your reference */\r\n\t\t\t$block_search = '/<!-- bb_' . $block_name . ' -->(.*)<!-- eb_' . $block_name . ' -->/smi';\r\n\t\t\t$this->tpl = preg_replace($block_search, '<!-- block_' . $block_name . ' -->', $this->tpl);\t\r\n\t\t\t\r\n\t\t\t/* searches children blocks to replace for your reference */\r\n\t\t\tif (mb_strpos($this->blocks[$block_name], '<!-- eb_') > 0)\r\n\t\t\t{\t\t\r\n\t\t\t\tpreg_match_all('/<!-- bb_([a-z_]+) -->/smi', $this->blocks[$block_name], $child_names);\r\n\r\n\t\t\t\tforeach ($child_names[1] as $child_name)\r\n\t\t\t\t{\t\t\t\t\t\r\n\t\t\t\t\t$this->childBlocks[$block_name][] = $child_name;\r\n\t\t\t\t\t$block_search = '/<!-- bb_' . $child_name . ' -->(.*)<!-- eb_' . $child_name . ' -->/smi';\r\n\t\t\t\t\t$this->blocks[$block_name] = preg_replace($block_search, '<!-- block_' . $child_name . ' -->', $this->blocks[$block_name]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "044854f09b5fabbb59e8a85594244726", "score": "0.511584", "text": "public function getBlocks()\n {\n return $this->hasMany(Block::class, ['group_id' => 'id']);\n }", "title": "" }, { "docid": "326401eec041a7d22464cca4e05ab83c", "score": "0.5114648", "text": "protected function replaceBlocks()\n {\n $finalBlocks = array();\n foreach ($this->blocks as $blockVersions) {\n $append = 'none';\n $content = '';\n foreach ($blockVersions as $k => $v) {\n switch ($append) {\n case 'none' : $content = $v['content']; break;\n case 'replace': break;\n case 'append' : $content = $v['content'] . $content; break;\n case 'prepend': $content .= $v['content']; break;\n default: break;\n }\n\n $append = isset($v['params']['append']) ? $v['params']['append'] : 'replace';\n }\n\n $finalBlocks[$v['params']['name']] = $content;\n }\n\n $this->fillBlocks($finalBlocks);\n\n unset($this->blocks);\n }", "title": "" }, { "docid": "2db3db74b9de9d5ec3ba3c9590155e88", "score": "0.51133233", "text": "public function validateBlocks(array $blocks);", "title": "" }, { "docid": "dadb4778abcf4b6c321a715a69b98a98", "score": "0.5111919", "text": "public function getMatchingBlocks()\n {\n if ($this->matchingBlocks === null) {\n $this->matchingBlocks = $this->calculateMatchingBlocks();\n }\n\n return $this->matchingBlocks;\n }", "title": "" }, { "docid": "5edf221296e8256c8383f152cc1b0b1d", "score": "0.5082155", "text": "private function set_blocks($sudoku = null)\n {\n $original = $sudoku ? true : false;\n $sudoku = $sudoku ?: $this->_unsolved_sudoku;\n if ($original) {\n $this->_blocks_to_traverse = [];\n } else {\n $this->_blocks = [];\n }\n\n //get biggest block\n // $this->_block_WO_biggest_block = $this->_trim_blocks;\n\n foreach ($sudoku as $key => $columns) {\n $row = 1;\n if ($row != 2 && $key > 2) $row = 2;\n if ($row != 3 && $key > 5) $row = 3;\n\n $col = 1;\n foreach ($columns as $col_key => $cols) {\n if ($col != 2 && $col_key > 2) $col = 2;\n if ($col != 3 && $col_key > 5) $col = 3;\n if ($original) {\n $this->_blocks_to_traverse[$row][$col][] = $cols;\n } else {\n $this->_blocks[$row][$col][] = $cols;\n }\n }\n }\n // print_r($this->_blocks);\n // print_r($this->_blocks);\n //get trimmed blocks\n // foreach ($this->_blocks as $k => $v) {\n // foreach ($v as $kk => $vv) {\n // $this->_trim_blocks[$k][$kk] = array_filter($vv);\n // }\n // }\n }", "title": "" }, { "docid": "f5e0aa155371ca662b16a63cf2ac3094", "score": "0.50788325", "text": "function retrieve_blocks($post_id,$saved_blocks = array()) {\n\n\n\t\t\t// Get serialized data\n\t\t\t// $builder_key = 'aq_datakey_' . $post_id;\n\t\t\t// $template_serialized_data = get_post_meta($post_id, $builder_key);\n\n\t\t\t// $template_serialized_data=$template_serialized_data[0];\n\n\t\t\t// parse_str($template_serialized_data, $params);\n\n\t\t\t// $template_transient_data=$params;\n\n\n\t\t\t$new_build_data = get_post_meta($post_id);\n\t\t\t$multibuilder_key = 'aq_multidatakey_' . $post_id;\n\t\t\t$template_serialized_multidata = get_post_meta($post_id, $multibuilder_key);\n\n\t\t\t$final_dataset=array();\n\t\t\tif (isSet($template_serialized_multidata) && !empty($template_serialized_multidata)) {\n\t\t\t\tforeach ($template_serialized_multidata[0] as $key => $data_set ) {\n\t\t\t\t\twp_parse_str($data_set, $multiparams);\n\t\t\t\t\tif (isSet($multiparams['aq_blocks'])) {\n\t\t\t\t\t\tforeach ($multiparams['aq_blocks'] as $mkey => $mdata_set ) {\n\t\t\t\t\t\t\tif (isSet($mdata_set)) {\n\t\t\t\t\t\t\t\t$final_dataset[$mkey] = $mdata_set;\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\n\t\t\t$template_transient_data = $final_dataset;\n\n\n\t\t\t$jQserialized = $template_transient_data;\n\n\t\t\t// echo '<pre>';\n\t\t\t// print_r($jQserialized);\n\t\t\t// echo '</pre>';\n\n\t\t\t$blocks=array();\n\t\t\tif (isSet($jQserialized) ) {\n\t\t\t\tforeach($jQserialized as $jqkey => $jqblock) {\n\t\t\t\t\t$serialized_str = serialize($jqblock);\n\t\t\t\t\t//echo '------' . $jqkey . '-------';\n\t\t\t\t\tif (!empty($serialized_str) && isSet($serialized_str)) {\n\t\t\t\t\t\t$blocks[$jqkey][0]=$serialized_str;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// echo '<pre>*************';\n\t\t\t// print_r($blocks);\n\t\t\t// echo '</pre>';\n\n\t\t\t//sort by order\n\t\t\t$sort = array();\n\t\t\t$block_mod_array = array();\n\n\t\t\tforeach($blocks as $key => $block) {\n\t\t\t\tif(isset($block[0])) {\n\t\t\t\t\t$saving_template = false;\n\t\t\t\t\t$temp = unserialize($block[0]);\n\t\t\t\t} else {\n\t\t\t\t\t$saving_template = true;\n\t\t\t\t\tif(is_array($block)) {\n\t\t\t\t\t\t$temp = $block;\n\t\t\t\t\t\t$blocks[$key] = array(serialize($block));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$temp = unserialize($block);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(isset($temp['order']))\n\t\t\t\t\t$sort[] = $temp['order'];\n\t\t\t\telse\n\t\t\t\t\t$sort[] = '';\n\t\t\t}\n\t\t\tarray_multisort($sort, SORT_NUMERIC, $blocks);\n\n\t\t\t// echo '<pre>';\n\t\t\t// print_r($blocks);\n\t\t\t// echo '</pre>';\n\t\t\treturn $blocks;\n\t\t}", "title": "" }, { "docid": "6b4c87c3568f29f04835258cf284fd4f", "score": "0.504888", "text": "function dumpBlocks()\r\n {\r\n $ret = '<table class=\"outer\" width=\"100%\" cellspacing=\"1\"><tr><th colspan=\"2\">Blocks</th></tr>';\r\n $class = 'even';\r\n foreach ($this->blocks as $b) {\r\n if ($b['cached']) {\r\n $ret .= '<tr><td class=\"'.$class.'\"><b>'.$b['name'].':</b> Cached (regenerates every '.intval($b['cachetime']).' seconds)</td></tr>';\r\n } else {\r\n $ret .= '<tr><td class=\"'.$class.'\"><b>'.$b['name'].':</b> ('.$b['queries'].' Queries) No Cache</td></tr>';\r\n }\r\n $class = ($class == 'odd') ? 'even' : 'odd';\r\n }\r\n $ret .= '<tr class=\"foot\"><td>Total: <span style=\"color:#ff0000;\">'.count($this->blocks).'</span> blocks</td></tr></table><br />';\r\n return $ret;\r\n }", "title": "" }, { "docid": "250a2c663ffb418c1ddb64630a587138", "score": "0.50485086", "text": "public function getIntersectedBlocks()\n {\n return $this->intersectedBlocks;\n }", "title": "" }, { "docid": "5cf9067f6ae813211ed62893c75eec8c", "score": "0.50475764", "text": "function render_blocks(){\r\n\t\t$picture_size=getimagesize($this->Pic->Address.DS.'index.jpg');\r\n\t\t$this->Pic->Width=$picture_size[0];\r\n\t\t$this->Pic->Height=$picture_size[1];\r\n\t\tunset($picture_size);\r\n\t\t$break_points=array('x'=>array(0,$this->Pic->Width),'y'=>array(0,$this->Pic->Height));\r\n\t\tforeach ($this->blocks as $Mobject){\r\n\t\t\tarray_push($break_points['x'],$Mobject->x1);\r\n\t\t\tarray_push($break_points['x'],$Mobject->x2);\r\n\t\t\tarray_push($break_points['y'],$Mobject->y1);\r\n\t\t\tarray_push($break_points['y'],$Mobject->y2);\r\n\t\t}\r\n\t\tsort($break_points['x'],SORT_NUMERIC);\r\n\t\tsort($break_points['y'],SORT_NUMERIC);\r\n\t\t\r\n\t\t$break_points['x']=array_values(array_unique($break_points['x'],SORT_NUMERIC));\r\n\t\t$break_points['y']=array_values(array_unique($break_points['y'],SORT_NUMERIC));\r\n\r\n\t\tforeach($this->blocks as $index => $Mobject){\r\n\t\t\t$i=0;\r\n\t\t\t$j=0;\r\n\t\t\twhile($break_points['x'][$i]!=$Mobject->x1) $i++;\r\n\t\t\twhile($break_points['x'][$i+$j]!=$Mobject->x2) $j++;\r\n\t\t\t$this->blocks[$index]->colspan=$j;\r\n\t\t\t$i=0;\r\n\t\t\t$j=0;\r\n\t\t\twhile($break_points['y'][$i]!=$Mobject->y1) $i++;\r\n\t\t\twhile($break_points['y'][$i+$j]!=$Mobject->y2) $j++;\r\n\t\t\t//echo $i.\"-\".$j.\";\";\r\n\t\t\t$this->blocks[$index]->rowspan=$j;\r\n\t\t\t$this->blocks[$index]->width=$Mobject->x2-$Mobject->x1;\r\n\t\t\t$this->blocks[$index]->height=$Mobject->y2-$Mobject->y1;\t\r\n\t\t}\r\n\t\t$MHelp=array_fill(0, sizeof($break_points['x']),\r\n\t\t array_fill(0, sizeof($break_points['y'],0), 0)\r\n\t\t );\r\n\t\tforeach ($this->blocks as $block){\r\n\t\t\t$x=0;\r\n\t\t\twhile($break_points['x'][$x]!=$block->x1) $x++;\r\n\t\t\t$y=0;\r\n\t\t\twhile($break_points['y'][$y]!=$block->y1) $y++;\r\n\t\t\tfor ($i=0;$i<$block->colspan;$i++){\r\n\t\t\t\tfor ($j=0;$j<$block->rowspan;$j++){\r\n\t\t\t\t\t$MHelp[$x+$i][$y+$j]=1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//print_r($MHelp);\r\n\t\t$table_struct=array(); \r\n\t\tfor ($row=0;$row<sizeof($break_points['y'])-1;$row++){\r\n\t\t\t$table_row=array();\r\n\t\t\tfor ($col=0;$col<sizeof($break_points['x'])-1;$col++){\r\n\t\t\t\tif ($MHelp[$col][$row]==0){\r\n\t\t\t\t\t$i=0;\r\n\t\t\t\t\tif ($row==sizeof($break_points['y'])-2){\r\n\t\t\t\t\t\t$MHelp[$col][$row]=1;\r\n\t\t\t\t\t\t$i=1;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\twhile($MHelp[$col+$i][$row]==0 && ($col+$i)<(sizeof($break_points['x'])-1)){\r\n\t\t\t\t\t\t\t$MHelp[$col+$i][$row]=1;\r\n\t\t\t\t\t\t\t$i++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$j=1;\r\n\t\t\t\t\t$block=new GBlock($this);\r\n\t\t\t\t\t$block->name=$row.'_'.$col;\r\n\t\t\t\t\t$block->id='A_'.$block->name;\r\n\t\t\t\t\t$block->type=0;\r\n\t\t\t\t\t$block->x1=$break_points['x'][$col];\r\n\t\t\t\t\t$block->y1=$break_points['y'][$row];\r\n\t\t\t\t\t$block->x2=$break_points['x'][$col+$i];\r\n\t\t\t\t\t$block->y2=$break_points['y'][$row+$j];\r\n\t\t\t\t\t$block->width=$break_points['x'][$col+$i]-$break_points['x'][$col];\r\n\t\t\t\t\t$block->height=$break_points['y'][$row+$j]-$break_points['y'][$row];\r\n\t\t\t\t\t$block->colspan=$i;\r\n\t\t\t\t\t$block->rowspan=$j;\r\n\t\t\t\t\t$block->widget=\"none\";\r\n\t\t\t\t\t$block->auto=true;\r\n\t\t\t\t\t$this->blocks[$block->id]=$block;\r\n\t\t\t\t\tarray_push($table_row,$block->id);\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$inMap=$this->findFromStart($break_points['x'][$col],$break_points['y'][$row]);\r\n\t\t\t\t\tif ($inMap!=false) array_push($table_row,$inMap);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//print_r($this->blocks);\r\n\t\t\tarray_push($table_struct,$table_row);\r\n\t\t}\r\n\t\t$this->table_struct=$table_struct;\r\n\t\t//print_r($table_struct);\r\n\t\t//print_r($this->blocks);\r\n\t}", "title": "" }, { "docid": "4824d111d8cd33129da97ba7d615c8a6", "score": "0.5039916", "text": "protected function getBlockSequence(): array\n {\n return [\n SqlKeyword::UPDATE,\n SqlKeyword::JOIN,\n SqlKeyword::SET,\n SqlKeyword::WHERE,\n SqlKeyword::ORDER_BY,\n SqlKeyword::LIMIT\n ];\n }", "title": "" }, { "docid": "8ce0e5e0f31899d1e907eca3159ca42b", "score": "0.5036245", "text": "public function getLastBlock();", "title": "" }, { "docid": "448b2f63468021eab31fa9e3ce05b341", "score": "0.5032913", "text": "public function hasBlocks()\n {\n return !$this->blocks->isEmpty();\n }", "title": "" }, { "docid": "1ed0596b3422d741ddfea9b7adb48497", "score": "0.50103176", "text": "function checkBlocks()\n {\n if (is_array($this->blocks['fields'])) {\n foreach ($this->blocks['fields'] as $field => $form) {\n if ($form['field'] == \"\") {\n unset($this->blocks['fields'][$field]);\n continue;\n }\n switch ($form['type']) {\n case 'textarea':\n $this->blocks['fields'][$field]['form']['rows'] = $form['form']['rows'] < 1 ? 5 : $form['form']['rows'];\n $this->blocks['fields'][$field]['form']['cols'] = $form['form']['cols'] < 1 ? 50 : $form['form']['cols'];\n break;\n default:\n break;\n }\n }\n }\n }", "title": "" }, { "docid": "a3f5072fc06ace8052655db75cd6d059", "score": "0.4998319", "text": "private function _apply_block()\n\t{\n\t\tpreg_match_all(\"/\\/\\*#block:(.*)\\*\\//U\", $this->content, $matches);\n\t\t$blocks = @json_decode($matches[1][0], true);\n\n\t\tif (count($blocks))\n\t\t{\n\t\t\tforeach ($blocks as $block)\n\t\t\t{\n\t\t\t\twhile (preg_match(\"/\\n(.*)\" . $block . \"(.*)\\n/\", $this->content))\n\t\t\t\t{\n\t\t\t\t\t$this->content = preg_replace(\"/\\n(.*)\" . $block . \"(.*)\\n/U\", \"\\n\", $this->content);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fc9488778ddf0d26f6b43882543b2b32", "score": "0.49586013", "text": "function bkap_410_update_fixed_blocks( $product_id ) {\n\n\tglobal $wpdb;\n\n\t$booking_settings = get_post_meta( $product_id, 'woocommerce_booking_settings', true );\n\n\t$booking_fixed_block_enable = '';\n\n\tif ( isset( $booking_settings['booking_fixed_block_enable'] ) && $booking_settings['booking_fixed_block_enable'] != '' ) {\n\t\t$booking_fixed_block_enable = $booking_settings['booking_fixed_block_enable'];\n\t}\n\n\t// if the product is bookable\n\tif ( $booking_fixed_block_enable != '' ) {\n\n\t\t$fixed_query = 'SELECT * FROM `' . $wpdb->prefix . 'booking_fixed_blocks`\n\t\t\t\t\t\t WHERE post_id = %d';\n\n\t\t$fixed_results = $wpdb->get_results( $wpdb->prepare( $fixed_query, $product_id ) );\n\n\t\t$array_of_all_fixed_block_data = array();\n\n\t\tif ( $fixed_results != '' && count( $fixed_results ) > 0 ) {\n\n\t\t\t$i = 0;\n\n\t\t\tforeach ( $fixed_results as $fixed_results_key => $fixed_results_value ) {\n\n\t\t\t\t$array_of_all_fixed_block_data[ $i ]['block_name'] = $fixed_results_value->block_name;\n\t\t\t\t$array_of_all_fixed_block_data[ $i ]['number_of_days'] = $fixed_results_value->number_of_days;\n\t\t\t\t$array_of_all_fixed_block_data[ $i ]['start_day'] = $fixed_results_value->start_day;\n\t\t\t\t$array_of_all_fixed_block_data[ $i ]['end_day'] = $fixed_results_value->end_day;\n\t\t\t\t$array_of_all_fixed_block_data[ $i ]['price'] = $fixed_results_value->price;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\n\t\t$booking_settings['bkap_fixed_blocks_data'] = $array_of_all_fixed_block_data;\n\t\tupdate_post_meta( $product_id, 'woocommerce_booking_settings', $booking_settings );\n\t}\n}", "title": "" }, { "docid": "ceecc9f4a93f5eb028bff6da43a08bea", "score": "0.4956626", "text": "public static function flushBlocks()\n {\n static::$blocks = array();\n }", "title": "" }, { "docid": "38778540fec2ad00dfcab49fb55a39f9", "score": "0.4901538", "text": "public function getBlockNames() {\n\t\treturn $this->blockNames;\n\t}", "title": "" }, { "docid": "60758610ffff0b6460c46c8ece315d81", "score": "0.48863953", "text": "public function getName()\n\t{\n\t\treturn 'blocks';\n\t}", "title": "" }, { "docid": "bd66944dd1d959b4ebe1a3f1d5537828", "score": "0.4883301", "text": "public function blocks() {\n\t\t$blocks = $matches = array();\n\t\tpreg_match_all(static::$_terminals[self::T_BLOCK], $this->_contents, $matches);\n\t\tforeach ($matches[1] as $key => $match) {\n\t\t\t$blocks[$match] = $matches[2][$key];\n\t\t}\n\t\treturn $blocks;\n\t}", "title": "" }, { "docid": "e38671cdebe4bb9df960241c013459b1", "score": "0.4860642", "text": "public function checkForEditCBlock()\n\t{\n\t\tif( $this->memberData['member_id'] == $this->blog['member_id'] )\n\t\t{\n\t\t\tif( ! $this->memberData['g_blog_allowlocal'] )\n\t\t\t{\n\t $this->registry->output->showError( 'no_blog_mod_permission', 106152, null, null, 403 );\n\t }\n\n\t\t\tif( ! $this->settings['blog_allow_cblockchange'] )\n\t {\n\t $this->registry->output->showError( 'no_blog_mod_permission', 106153, null, null, 403 );\n\t }\n\n\t\t\tif( ! $this->settings['blog_allow_cblocks'] )\n\t {\n\t $this->registry->output->showError( 'no_blog_mod_permission', 106154, null, null, 403 );\n\t }\n\t }\n\t else\n\t {\n\t \tif( ! $this->memberData['g_is_supmod'] && ! $this->memberData['_blogmod']['moderate_allow_editcblocks'] )\n\t \t{\n\t $this->registry->output->showError( 'no_blog_mod_permission', 106155, null, null, 403 );\n\t \t}\n\t }\n\t}", "title": "" }, { "docid": "d8671d5693b72e428c51c7f2f90e2a38", "score": "0.48522064", "text": "public static function createBlockDefinition(array $data) {\n $block_definition = [\n 'type' => $data['block_type'],\n 'info' => $data['field_identifier'],\n 'field_block_moody_flex_tabs' => $data['block_data'],\n 'reusable' => FALSE,\n ];\n return $block_definition;\n }", "title": "" }, { "docid": "2d94f2a86fd3c631c58a1379ea26952c", "score": "0.4836268", "text": "public function hasBlocks(): bool\n {\n return count($this->getBlocks()) > 0;\n }", "title": "" }, { "docid": "25e1f635ab1f55e0d900d34b0ee542f1", "score": "0.48292032", "text": "public function getBlockNumber()\n {\n return $this->block_number;\n }", "title": "" }, { "docid": "63160eec8151aaa0ade25f7cd10b2b1d", "score": "0.48291963", "text": "protected function getBlockClasses()\n {\n return parent::getBlockClasses() . ' block-bought';\n }", "title": "" }, { "docid": "bf8c51e67b117f32e1b39e1fa0d5d948", "score": "0.48272812", "text": "private function getBlockFields(string $block_id): array\n {\n\n return [\n Text::make('Block ' . strtoupper($block_id) . ' Text', 'block_' . $block_id . '_title')\n ->hideFromIndex()\n ->help('Block \"' . strtoupper($block_id) . '\" title which will be displayed on top of the block'),\n\n Trix::make('Block ' . strtoupper($block_id) . ' Body', 'block_' . $block_id . '_body')\n ->hideFromIndex()\n ->help('Block \"' . strtoupper($block_id) . '\" body, this is the content area for the block'),\n\n Select::make('Block ' . strtoupper($block_id) . ' Video', 'block_' . $block_id . '_video')\n ->hideFromIndex()\n ->options($this->videoList())\n ->displayUsing(function ($id) {\n\n // get the video for the ID\n $video = (new \\App\\Models\\Video())->find($id);\n\n if ($video) {\n return $video->title;\n }\n\n return '-';\n })\n ->help('Block \"' . strtoupper($block_id) . '\" video, please select the video from the list above'),\n\n File::make('Block ' . strtoupper($block_id) . ' Image', 'block_' . $block_id . '_image')\n ->store(function (Request $request, $model) use ($block_id) {\n\n $model\n ->addMediaFromRequest('block_' . $block_id . '_image')\n ->toMediaCollection('block_' . $block_id . '_image');\n\n })\n ->preview(function () use ($block_id) {\n\n return $this->getFirstMediaUrl('block_' . $block_id . '_image');\n\n })\n ->thumbnail(function () use ($block_id) {\n\n return $this->getFirstMediaUrl('block_' . $block_id . '_image');\n\n })\n ->delete(function (Request $request, $model) use ($block_id) {\n\n $media = $this->getFirstMedia('block_' . $block_id . '_image');\n\n if ($media->delete()) {\n return true;\n }\n\n return false;\n })\n ->deletable(true)\n ->hideFromIndex(),\n\n Text::make('Block ' . strtoupper($block_id) . ' Link', 'block_' . $block_id . '_image_link')\n ->hideFromIndex()\n ->help('Block \"' . strtoupper($block_id) . '\" image link, this link will wrap the image on the newsletter body'),\n\n Text::make('Block ' . strtoupper($block_id) . ' Button Link', 'block_' . $block_id . '_link')\n ->hideFromIndex()\n ->help('Block \"' . strtoupper($block_id) . '\" link, this link will appear as a button on the email body'),\n ];\n }", "title": "" }, { "docid": "a50466ef563ae2a8f63475e4d0c70676", "score": "0.48092848", "text": "public function getBlockElements()\n {\n return $this->blockElements;\n }", "title": "" }, { "docid": "f25275bcc34a9e3375846b0c192ec424", "score": "0.47928664", "text": "public function parseBlocks()\n {\n if (!is_array($this->block)) { return false; }\n\n foreach ($this->block as $blockName => $blockArray)\n {\n $blockString = '';\n\n foreach ($blockArray as $block)\n\t{\n\t $blockString .= $block->getBody();\n\t}\n\n $this->body = str_replace(\"{%%% BLOCK:$blockName %%%}\", $blockString, $this->body);\n }\n\n return true;\n }", "title": "" }, { "docid": "78ea384c36f25e4f7a9cf90b7a89246b", "score": "0.47469762", "text": "private function loadBlockData() {\n\t\t$query = \"SELECT b.naam, b.omschrijving, b.leerjaar, b.bloknummer, (SELECT beoordeling_deadline FROM klas WHERE blok_id = b.id AND beoordeling_deadline > NOW() LIMIT 1) AS beoordeling_deadline\n\t\t\t\t FROM blok AS b\n\t\t\t\t WHERE b.id = ?\n\t\t\t\t GROUP BY b.id\";\n\t\t\n\t\t$result = DatabaseConnector::executeQuery($query, array($this->id));\n\t\t\n\t\t$this->name = $result[0]['naam'];\n\t\t$this->description = $result[0]['omschrijving'];\n\t\t$this->schoolYear = $result[0]['leerjaar'];\n\t\t$this->blockNumber = $result[0]['bloknummer'];\n\t\t// Check of de deadline datum na vandaag ligt, zo niet dan wordt er geen deadline ingesteld\n\t\tif (strtotime($result[0]['beoordeling_deadline']) > time()) {\n\t\t\t$this->deadline = $result[0]['beoordeling_deadline'];\n\t\t} else {\n\t\t\t$this->deadline = null;\n\t\t}\n\t}", "title": "" }, { "docid": "5eacd2d2ae352393caf4d66a7de7f0b0", "score": "0.4740227", "text": "function get_blocks($template_id) {\n\t\t\t//verify template\n\t\t\t//filter post meta to get only blocks data\n\t\t\t$blocks = array();\n\t\t\t// print_a($blocks);\n\t\t\t// die;\n\t\t\tif(isset($_POST['aq_blocks']) && !empty($_POST['aq_blocks'])) {\n\t\t\t$all = $_POST['aq_blocks'];//get_post_custom($template_id);\n\t\t\t// print_a($all);\n\t\t\t// die;\n\t\t\tforeach($all as $key => $block) {\n\t\t\t\tif(substr($key, 0, 9) == 'aq_block_' && substr($key, 8, 14) != '___i__') {\n\t\t\t\t\t$block_instance = $all[$key];//get_post_meta($template_id, $key);\n\t\t\t\t\tif(is_array($block_instance)) $blocks[$key] = $block_instance;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//sort by order\n\t\t\t$sort = array();\n\t\t\tforeach($blocks as $block) {\n\t\t\t\t$sort[] = $block['order'];\n\t\t\t}\n\t\t\tarray_multisort($sort, SORT_NUMERIC, $blocks);\n\t\t\t}\n\n\t\t\treturn $blocks;\n\n\t\t}", "title": "" }, { "docid": "f06932dbe4ff99967d450bd47daf8c3a", "score": "0.47379273", "text": "function clleague_block_info() {\n\t// This hook returns an array, each component of which is an array of block\n\t// information. The array keys are the 'delta' values used in other block\n\t// hooks.\n\n\t// The required block information is a block description, which is shown\n\t// to the site administrator in the list of possible blocks. You can also\n\t// provide initial settings for block weight, status, etc.\n\n\t// This sample shows how to provide default settings. In this case we'll\n\t// enable the block in the first sidebar and make it visible only on\n\t// 'node/*' pages. See the hook_block_info() documentation for these.\n \n\t$blocks['user_menu'] = array(\n\t\t'info' => t('User menu'),\n\t);\n \t\n\treturn $blocks;\n}", "title": "" }, { "docid": "158279e55649a030714a8f96a5a2922b", "score": "0.4725839", "text": "public function blocks()\n {\n return $this->hasMany(Block::class);\n }", "title": "" }, { "docid": "a0de344e61994dce1ddf81817f9710b1", "score": "0.47237727", "text": "private function define_block_raw($block, $block_path, $array_of_defines = array())\r\n\t{\r\n\t\t$block_path_array = explode('.', $block_path);\r\n\t\t$current_index = $block->get_current_block_index();\r\n\r\n\t\tif (!isset($block->{'element_data'}[$current_index]))\r\n\t\t{\r\n\t\t\ttrigger_error('define_block_raw not exist element ' . $current_index . ' by block \"' . $block->{'block_name'} . '\", create it', E_USER_NOTICE);\r\n\t\t\t/*\r\n\t\t\t * no need return because we create non-existing block\r\n\t\t\t */\r\n\t\t\t$block->{'element_data'}[$current_index] = array(\r\n\t\t\t\t'vars' => array(),\r\n\t\t\t\t'children' => array()\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * if we see an error like this: 'Indirect modification of overloaded property Block::$element_data has no effect in /.../class_template_engine.php on line ...'\r\n\t\t * it mean thet we need modify magic __get method in class of element like 'public function &__get($var)'\r\n\t\t *\r\n\t\t * here we detect pre-last block, if its true - we need just add the last block of values\r\n\t\t */\r\n\t\tif ($block->{'block_name'} == $block_path_array[count($block_path_array)-2])\r\n\t\t{\r\n\t\t\t$current_block_name = $block_path_array[count($block_path_array)-1];\r\n\r\n\t\t\tif (isset($block->{'element_data'}[$current_index]['children'][$current_block_name]))\r\n\t\t\t{\r\n\t\t\t\treturn $block->{'element_data'}[$current_index]['children'][$current_block_name]->define_block_vars($array_of_defines);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn $block->{'element_data'}[$current_index]['children'][$current_block_name] = new Block($current_block_name, $array_of_defines);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/*\r\n\t\t\t * but if its not pre-last block - we need get next block and call recursion\r\n\t\t\t */\r\n\t\t\t$searched_key = array_search($block->{'block_name'}, $block_path_array);\r\n\t\t\t$next_block_name = $block_path_array[$searched_key + 1];\r\n\r\n\t\t\treturn $this->define_block_raw($block->{'element_data'}[$current_index]['children'][$next_block_name], $block_path, $array_of_defines);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9492ab45f599116ba5f52921e8b6fb44", "score": "0.4702099", "text": "public function getBlockObjects($postId = null)\n {\n $postId = $this->resolvePostId($postId);\n $builder = $this->getBuilder($postId);\n return $builder->getBlocks();\n }", "title": "" }, { "docid": "0deacd78c292d8bcdc53892099652e3f", "score": "0.47006717", "text": "function get_blocks($post_id,$refresh=true) {\n\t\tif($post_id) :\n\t\t\tif($refresh) :\n\t\t\t\t$refreshed = $this->refresh_blocks($post_id);\n\t\t\t\tif(is_wp_error($refreshed)) return $refreshed;\n\t\t\tendif;\n\t\t\t\n\t\t\treturn get_post_meta($post_id,'mcb-blocks',true);\n\t\tendif;\n\t}", "title": "" }, { "docid": "d80a3246e8c369077c14d72fc61836a0", "score": "0.4694947", "text": "public function getCodeBlocks()\n\t{\n\t\treturn $this->_codeBlocks;\n\t}", "title": "" }, { "docid": "a525f7de8c41fb9781ced1dd08e7c77b", "score": "0.46850026", "text": "public function getMaximumBlocks()\n {\n /** @var Concrete\\Core\\Area\\Area $instance */\n return $instance->getMaximumBlocks();\n }", "title": "" }, { "docid": "a525f7de8c41fb9781ced1dd08e7c77b", "score": "0.46850026", "text": "public function getMaximumBlocks()\n {\n /** @var Concrete\\Core\\Area\\Area $instance */\n return $instance->getMaximumBlocks();\n }", "title": "" }, { "docid": "6d98d93535537cc9daadf2ebf5e4f4f6", "score": "0.46759075", "text": "public function getAreaBlocksArray($c = false)\n {\n /** @var Concrete\\Core\\Area\\Area $instance */\n return $instance->getAreaBlocksArray($c);\n }", "title": "" }, { "docid": "6d98d93535537cc9daadf2ebf5e4f4f6", "score": "0.46759075", "text": "public function getAreaBlocksArray($c = false)\n {\n /** @var Concrete\\Core\\Area\\Area $instance */\n return $instance->getAreaBlocksArray($c);\n }", "title": "" }, { "docid": "0c681ff4231b6441393e898341c98a52", "score": "0.46730873", "text": "public static function getMemberBlocks($id_member)\n {\n\t\t// Empty member? Die hard.\n\t\tif (empty($id_member))\n\t\t\treturn false;\n\n if (is_array(self::$member_block_cache) && isset(self::$member_block_cache[$id_member]))\n return self::$member_block_cache[$id_member];\n\n\t\t// Fetch the member's blocks\n\t\t$request = wesql::query('\n\t\t\tSELECT ba.id_member, ba.id_block, ba.bar, ba.position, ba.enabled\n\t\t\tFROM {db_prefix}wep_block_adjustments AS ba\n\t\t\tWHERE id_member = {int:member}\n\t\t\tORDER BY ba.position',\n\t\t\tarray(\n 'holder' => 'bar_' . static::$bar,\n\t\t\t\t'member' => $id_member,\n\t\t\t)\n\t\t);\n\t\t$member_blocks = array();\n\t\twhile ($row = wesql::fetch_assoc($request))\n\t\t{\n\t\t\t$member_blocks[$row['id_block']] = array(\n\t\t\t\t'block' => $row['id_block'],\n\t\t\t\t'member' => $row['id_member'],\n\t\t\t\t'holder' => $row['bar'],\n\t\t\t\t'position' => $row['position'],\n\t\t\t\t'enabled' => (bool) $row['enabled'],\n\t\t\t);\n\t\t}\n\t\twesql::free_result($request);\n\n\t\tself::$member_block_cache[$id_member] = $member_blocks;\n\n return $member_blocks;\n }", "title": "" }, { "docid": "4cdfe7ab7765e7f8e93efd7148d99875", "score": "0.46677148", "text": "public function setExcessiveBlock()\n {\n return $this->__call('setexcessiveblock');\n }", "title": "" }, { "docid": "32bec926c84569fbbb23113713ce0cb9", "score": "0.46595207", "text": "public function getBlocksByPostId($postId)\n {\n $blocks = [];\n $FieldGroupNames = $this->acf->getPostFieldGroupNames($postId);\n\n // Set up blocks\n foreach ($FieldGroupNames as $FieldGroupName) {\n\n $blockTypes = $this->blockTypeRegistry->getBlockTypesByFieldGroupName($FieldGroupName);\n\n // Disregard field groups that are not created using ACF Blocks\n if (!$blockTypes) {\n continue;\n }\n\n foreach ($blockTypes as $blockTypeName => $blockType){\n $block = $blockType->createBlock();\n\n $block->setId($blockTypeName);\n $block->setObjectId($postId);\n\n $data = $this->acf->getPostBlockData($postId, $blockType->getFieldsBuilder());\n $settings = $this->acf->getPostBlockSettings($postId, $blockType->getFieldsBuilder(), 'settings');\n\n $block->setRawData($data);\n $block->setRawSettings($settings);\n\n $blocks[$blockTypeName] = $block;\n }\n }\n\n // Set blocks in init config order by default\n $sortedBlocks = [];\n foreach ($this->blockTypeRegistry->getBlockTypes() as $registeredBlockType){\n if (isset($blocks[$registeredBlockType->getName()])){\n $sortedBlocks[$registeredBlockType->getName()] = $blocks[$registeredBlockType->getName()];\n }\n }\n\n // On second loop, once each blocks has access to all the blocks' data in the current context.\n // This allows making decisions based on which specific block comes before or after the current.\n foreach ($sortedBlocks as $blockTypeName => $block) {\n /* @var Block $block */\n $block->setBlocks($sortedBlocks);\n $block->setSettings($block->getRawData(), $block->getRawSettings());\n $block->setData($block->getRawData(), $block->getRawSettings());\n }\n\n return $sortedBlocks;\n }", "title": "" }, { "docid": "772a6d5b7392ab721e783b44a7d68f02", "score": "0.46436042", "text": "protected function create_block_rule(array $data = []) {\n $block = new \\tool_blocksmanager\\block(0, (object)[\n 'region' => !isset($data['region']) ? 'region1' : $data['region'],\n 'block' => !isset($data['block']) ? 'block1' : $data['block'],\n 'categories' => !isset($data['categories']) ? '' : $data['categories'],\n 'config' => !isset($data['config']) ? 1 : $data['config'],\n 'remove' => !isset($data['remove']) ? 1 : $data['remove'],\n 'hide' => !isset($data['hide']) ? 1 : $data['hide'],\n 'move' => !isset($data['move']) ? 1 : $data['move'],\n ]);\n $block->create();\n\n return $block;\n }", "title": "" }, { "docid": "992699efd5e8c972babf1bd36b952be4", "score": "0.46417427", "text": "public function revertDBBLocks() {\n $block = array();\n $fo = Frx::DataFile();\n\n if (db_table_exists('forena_data_blocks') && is_writable($fo->dir)) {\n // Get all blocks from the db.\n $sql = 'SELECT * FROM {forena_data_blocks} order by repository, block_name';\n $rs = db_query(\n $sql\n );\n $empty_table = TRUE;\n foreach ($rs as $b) {\n $block = array(\n 'repository' => $b->repository,\n 'block_name' => $b->block_name,\n 'type' => $b->block_type,\n 'file' => $b->src,\n 'builder' => $b->builder,\n 'access' => $b->access,\n 'title' => $b->title,\n 'locked' => $b->locked,\n 'modified' => $b->modified,\n );\n $d = Frx::RepoMan()->repository($b->repository);\n $block = array_merge($block, $d->parseSQLFile($block['file']));\n if ($block['builder']) {\n $block['builder'] = unserialize($block['builder']);\n }\n $path = $b->repository . '/' . $b->block_name;\n Frx::RepoMan()->saveBlock($path, $block);\n if (Frx::DataFile()->isCustom($path . '.sql')) {\n db_delete('forena_data_blocks')\n ->condition('repository', $b->repository)\n ->condition('block_name' , $b->block_name)\n ->execute();\n }\n $empty_table = FALSE;\n\n }\n if ($empty_table) {\n db_drop_table('forena_data_blocks');\n }\n $fo->validateAllCache();\n }\n\n }", "title": "" }, { "docid": "4a8546ac689922ea247cba95b8488f65", "score": "0.4639975", "text": "function blocks_units () {\n\treturn [\n\t\t(object) ['key' => '100', 'value' => 'Multiple rows'],\n\t\t(object) ['key' => '50,50', 'value' => '50-50'],\n\t\t(object) ['key' => '60,40', 'value' => '60-40'],\n\t\t(object) ['key' => '40,60', 'value' => '40-60'],\n\t\t(object) ['key' => '66,33', 'value' => '66-33'],\n\t\t(object) ['key' => '33,66', 'value' => '33-66'],\n\t\t(object) ['key' => '70,30', 'value' => '70-30'],\n\t\t(object) ['key' => '30,70', 'value' => '30-70'],\n\t\t(object) ['key' => '75,25', 'value' => '75-25'],\n\t\t(object) ['key' => '25,75', 'value' => '25-75'],\n\t\t(object) ['key' => '80,20', 'value' => '80-20'],\n\t\t(object) ['key' => '20,80', 'value' => '20-80'],\n\t\t(object) ['key' => '33,33,33', 'value' => '33-33-33'],\n\t\t(object) ['key' => '50,25,25', 'value' => '50-25-25'],\n\t\t(object) ['key' => '25,50,25', 'value' => '25-50-25'],\n\t\t(object) ['key' => '25,25,50', 'value' => '25-25-50'],\n\t\t(object) ['key' => '25,25,25,25', 'value' => '25-25-25-25'],\n\t\t(object) ['key' => '20,20,20,20,20', 'value' => '20-20-20-20-20']\n\t];\n}", "title": "" }, { "docid": "00915d16cb8e036f0b279fad539fedab", "score": "0.4612425", "text": "public function getExcessiveBlock()\n {\n return $this->__call('getexcessiveblock');\n }", "title": "" }, { "docid": "445b1906602e39c7dd425724afd78272", "score": "0.46120298", "text": "public function get_all_blocks($start_date = NULL) {\n\t\tglobal $I2_SQL;\n\t\t$activity = new EighthActivity($this->data['aid']);\n\t\tif($start_date === NULL) {\n\t\t\t$start_date = Eighth::$default_start_date;\n\t\t}\n\n\t\treturn EighthActivity::id_to_activity($I2_SQL->query('SELECT activityid,eighth_blocks.bid FROM eighth_blocks LEFT JOIN eighth_block_map ON (eighth_block_map.bid = eighth_blocks.bid) LEFT JOIN eighth_activities ON (eighth_activities.aid=eighth_block_map.activityid) WHERE activityid=%d AND date >= %t ORDER BY date',$this->data['aid'], $start_date)->fetch_all_arrays(Result::NUM));\n\t}", "title": "" }, { "docid": "0205df1ff35d03d86477b1dd04104c13", "score": "0.46094653", "text": "public function getBlock( $cblock )\n\t{\n\t\t/* INIT */\n\t\t$_html = '';\n\t\t$comments = array();\n\t\t\n\t\t/* Try the cache */\n\t\tif ( $this->use_cache && isset( $this->cblock_cache ) && ! $this->show_draft && ! $this->cblock_cache['cbcache_refresh'] )\n\t\t{\n\t\t\t$comments = unserialize( $this->cblock_cache['cbcache_content'] );\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ( $this->blog['blog_id'] AND is_array( $this->blog['blog_last_comment_20'] ) && count( $this->blog['blog_last_comment_20'] ) )\n\t\t\t{\n\t\t\t\t$comments = array();\n\t\t\t\t$_comments = $this->blog['blog_last_comment_20'];\n\t\t\t\t$members = array();\n\t\t\t\t$mids\t = array();\n\t\t\t\t$max\t = 5;\n\t\t\t\t$c = 0;\n\t\t\t\t\n\t\t\t\tforeach( $_comments as $cid => $cdata )\n\t\t\t\t{\n\t\t\t\t\tif ( $c++ >= $max )\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$comments[ $cid ] = $cdata;\n\t\t\t\n\t\t\t\t\tif ( $cdata['member_id'] )\n\t\t\t\t\t{\n\t\t\t\t\t\t$mids[ $cdata['member_id'] ] = $cdata['member_id'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ( count( $mids ) )\n\t\t\t\t{\n\t\t\t\t\t$members = IPSMember::load( $mids, 'all' );\n\t\t\t\t\t\n\t\t\t\t\tif ( count( $members ) )\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach( $comments as $cid => $cdata )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif ( $cdata['member_id'] and isset( $members[ $cdata['member_id'] ] ) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$comments[ $cid ] = array_merge( $comments[ $cid ], $members[ $cdata['member_id'] ] );\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\telse\n\t\t\t{\n\t\t\t\t$this->DB->build( array( 'select' => \"c.comment_id, c.entry_id, c.comment_date\",\n\t\t\t\t\t\t\t\t\t\t 'from' => array( 'blog_comments' => 'c' ),\n\t\t\t\t\t\t\t\t\t\t 'where' => \"e.blog_id={$this->blog['blog_id']} AND c.comment_approved=1\",\n\t\t\t\t\t\t\t\t\t\t 'order' => 'c.comment_id DESC',\n\t\t\t\t\t\t\t\t\t\t 'limit' => array( 0, 5 ),\n\t\t\t\t\t\t\t\t\t\t 'add_join' => array( array( 'select' => 'e.entry_name, e.blog_id, e.entry_name_seo',\n\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t 'from' => array( 'blog_entries' => 'e' ),\n\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t 'where' => \"e.entry_id=c.entry_id\",\n\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t 'type' => 'left' ),\n\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t array( 'select' => 'm.member_id, m.member_group_id, m.members_display_name, m.members_seo_name',\n\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t 'from' => array( 'members' => 'm' ),\n\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t 'where' => \"m.member_id=c.member_id\",\n\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t 'type' => 'left' ),\n\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t array( 'select' => 'pp.*',\n\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t 'from' => array( 'profile_portal' => 'pp' ),\n\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t 'where' => \"pp.pp_member_id=c.member_id\",\n\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t 'type' => 'left' ) )\n\t\t\t\t\t\t\t\t )\t\t);\n\t\t\t\t$this->DB->execute();\n\t\n\t\t\t\twhile( $comment = $this->DB->fetch() )\n\t\t\t\t{\n\t\t\t\t\t$comments[ $comment['comment_id'] ] = $comment;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/* Do we update the cache */\n\t\t\tif( $this->use_cache && !$this->show_draft )\n\t\t\t{\n\t\t\t\tif( isset( $this->cblock_cache['lastcomments'] ) )\n\t\t\t\t{\n\t\t\t\t\t$update['cbcache_content'] = serialize( $comments );\n\t\t\t\t\t$update['cbcache_refresh'] = 0;\n\t\t\t\t\t$update['cbcache_lastupdate'] = time();\n\t\t\t\t\t$this->DB->update( 'blog_cblock_cache', $update, \"blog_id={$this->blog['blog_id']} AND cbcache_key='lastcomments'\", true );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$insert['cbcache_content'] = serialize( $comments );\n\t\t\t\t\t$insert['cbcache_refresh'] = 0;\n\t\t\t\t\t$insert['cbcache_lastupdate'] = time();\n\t\t\t\t\t$insert['blog_id'] = $this->blog['blog_id'];\n\t\t\t\t\t$insert['cbcache_key'] = 'lastcomments';\n\t\t\t\t\t$this->DB->insert( 'blog_cblock_cache', $insert, true );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ( (is_array($comments) && count($comments)) || $this->settings['blog_inline_edit'] )\n\t\t{\n\t\t\t$return_html .= $this->registry->output->getTemplate( 'blog_cblocks' )->cblock_header( $cblock, $this->lang->words['cblock_get_last_comments'], 0, true );\n\t\t\t\n\t\t\t/* Parse comments */\n\t\t\tif ( is_array($comments) && count($comments) )\n\t\t\t{\n\t\t\t\tforeach( $comments as $cid => $comment )\n\t\t\t\t{\n\t\t\t\t\t$comment\t\t\t = IPSMember::buildDisplayData( array_merge( $comment, empty($comment['member_id']) ? IPSMember::setUpGuest( $comment['member_name'] ) : $comment, array( 'reputation' => 0, 'warn' => 0 ) ) );\n\t\t\t\t\t\n\t\t\t\t\t$comment['_lastRead'] = $this->registry->classItemMarking->fetchTimeLastMarked( array( 'blogID' => $this->blog['blog_id'], 'itemID' => $comment['entry_id'] ) );\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif( $comment['comment_date'] > $comment['_lastRead'] )\n\t\t\t\t\t{\n\t\t\t\t\t\t$comment['newpost'] = 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$comment['newpost'] = 0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$comment['blog_id'] = $this->blog['blog_id'];\n\t\t\t\t\t\n\t\t\t\t\t$comments[ $cid ] = $comment;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$return_html .= $this->registry->output->getTemplate('blog_cblocks')->comments( $comments );\n\t\t\t$return_html .= $this->registry->output->getTemplate('blog_cblocks')->cblock_footer( array( 'cblock_id' => $cblock['cblock_id'], 'cblock_type' => '', 'allow_edit' => 0 ) );\n\t\t}\n\n\t\treturn $return_html;\n\t}", "title": "" }, { "docid": "93c668a4072baf426d33c64b02b63f62", "score": "0.4607278", "text": "function sarnia_allowed_block_types($allowed_blocks)\n{\n\treturn [\n\t\t'core/image',\n\t\t'core/paragraph',\n\t\t'core/heading',\n\t\t'core/gallery',\n\t\t'core/table',\n\t\t'core/list',\n\t\t'core/columns',\n\t\t'core/file',\n\t\t'core/html',\n\t\t'acf/accordion',\n\t\t'acf/post-card',\n\t\t'acf/custom-card',\n\t\t'acf/notifications',\n\t\t'acf/navigation',\n\t\t'acf/recent-posts',\n\t\t'acf/shortcut-menu',\n\t\t'core/video',\n\t\t'core-embed/youtube',\n\t\t'core-embed/vimeo',\n\t\t'core-embed/facebook',\n\t\t'core-embed/twitter',\n\t\t'gravityforms/form',\n\t\t'luckywp/tableofcontents'\n\t];\n}", "title": "" }, { "docid": "b1d4d07af1f0f28f4dea58acf4d0f282", "score": "0.4601103", "text": "private function parse_all_blocks($blocks_node, &$all_blocks)\n {\n if (!isset($blocks_node)) {\n return;\n }\n\n $widget_nodes = $blocks_node->xpath('./*[self::block]');\n $result = array();\n foreach ($widget_nodes as $node) {\n $block = array();\n $block['type'] = (string)$node->attributes()->type;\n $block['name'] = (string)$node->attributes()->name;\n $block['title'] = (string)$node->attributes()->title;\n $block['tt_blockID'] = (string)$node->attributes()->tt_blockID;\n \n if (isset($node->contactforms)) {\n $block['contactforms'] = $node->contactforms;\n }\n if (isset($node->content)) {\n $block['content'] = (string)$node->content;\n }\n if (isset($node->widget_pages->widget_page)) {\n $page_list = array();\n foreach ($node->widget_pages->widget_page as $pages) {\n $page_list[] = (string)$pages;\n }\n $block['show_on_page'] = $page_list;\n }\n $result[] = $block;\n }\n $all_blocks = array_merge($all_blocks, $result);\n }", "title": "" }, { "docid": "85e0793c1b3cb56f7d97cb7394609bc3", "score": "0.45989463", "text": "static public function blockEntries($blockName);", "title": "" }, { "docid": "9b2204ec4045f34b70a9caed9f50a48d", "score": "0.45951524", "text": "public function getCodeBlockIds()\n\t{\n\t\t$blocks = array();\n\t\tforeach ($this->_codeBlocks as $codeBlock)\n\t\t{\n\t\t\t$blocks[$codeBlock->getId()] = $codeBlock->getType();\n\t\t}\n\t\treturn $blocks;\n\t}", "title": "" }, { "docid": "712763fa5ab63105b9c980f44de606d9", "score": "0.45841125", "text": "public function getBlocknumber()\n {\n\n return $this->blocknumber;\n }", "title": "" }, { "docid": "f0b20ad003a355883635be22a581fa6d", "score": "0.45840463", "text": "protected static function compileBlocks() : self\n {\n // Leave Active Blocks\n foreach (self::$blocks as $block ) {\n\n self::$content = preg_replace(\"/(\\[{$block}\\])|(\\[\\/{$block}\\])/i\", '', self::$content);\n\n }\n\n // Remove Inactive Blocks\n self::$content = preg_replace('/\\[(.*?)\\].*?\\[\\/(\\1)\\]/is', '', self::$content);\n\n return self::$instance;\n }", "title": "" }, { "docid": "ba9828c09a17d25c5b56e9689b2246ac", "score": "0.45799634", "text": "protected function decryptBlockData($data) {\r\n $schedule = $this->decryptionSchedule;\r\n return $this->decryptBlockPart($data, $schedule);\r\n }", "title": "" }, { "docid": "00c549c881121811f6d0e19bbf921e1f", "score": "0.45794865", "text": "function getReliableBlockNo()\n {\n\n global $ethereum;\n $confirmNo = 5;\n return $ethereum->eth_blockNumber() - 5;\n }", "title": "" }, { "docid": "2411c78ce529cf24c7b4bcdb26eee3e0", "score": "0.45611206", "text": "public function processBlocks($ids = []);", "title": "" }, { "docid": "c1ddd87a90f3b6aa8fda9038386302e4", "score": "0.4557432", "text": "static public function endBlock(){\r\n $blockContent = ob_get_clean();\r\n if(empty($blockContent)){\r\n $blockContent = '';\r\n }\r\n $currentBlockConfig = self::$blockConfig;\r\n $regionId = $currentBlockConfig['regionId'];\r\n // unset(self::$blockConfig);\r\n self::$blockConfig = array() ;// reset it for next usage !\r\n unset($currentBlockConfig['regionId']);\r\n\r\n if(!isset($currentBlockConfig['id'])){\r\n $currentBlockConfig['id'] = 'block' . self::$_counter++;\r\n }\r\n $currentBlockConfig['content'] = $blockContent ;\r\n self::addBlock($regionId,$currentBlockConfig);\r\n }", "title": "" }, { "docid": "97fd78627a39df8074473f58b0dccfbd", "score": "0.4551812", "text": "public function getFirstBlock();", "title": "" }, { "docid": "002e01563f546fb61e76d6f15e7104b1", "score": "0.45486683", "text": "function removeBlocked()\n {\n\n\n $block = new Group_block();\n\n $block->group_id = $this->id;\n\n if ($block->find()) {\n while ($block->fetch()) {\n $block->delete();\n }\n }\n $block->free();\n }", "title": "" }, { "docid": "71b1f228ec8ffcd8665f756059eecbcf", "score": "0.4546018", "text": "public function getBlocksIds($parameters = [])\n {\n return $this->get('blocks/ids', $parameters);\n }", "title": "" }, { "docid": "feb9a2bd0437be870af80be8db521b5b", "score": "0.45446905", "text": "public function blockModel(): Block;", "title": "" }, { "docid": "8ea2feffffd3e293953c4ed06e276248", "score": "0.45441455", "text": "public function getBlockCount();", "title": "" }, { "docid": "53f0901e1190b2da072e512a44ee5078", "score": "0.45401573", "text": "function createNextBlock($previousBlock, $data=null) {\r\n $index = $previousBlock->index + 1;\r\n $previousHash = $previousBlock->hash;\r\n return new Block($index, $data, $previousHash);\r\n}", "title": "" }, { "docid": "8b2418564650f00c399152cc6ed7cf25", "score": "0.45377973", "text": "public function anyBlock();", "title": "" }, { "docid": "2ecdb208856d65e833d541bd0db20a5e", "score": "0.4536368", "text": "public function getBlock()\n {\n return $this->block;\n }", "title": "" }, { "docid": "3478e19ec8e747e009ac6cbf608ce963", "score": "0.4532039", "text": "public static function getChunkCoordinatesFromBlock(McCoordinates3D $coordinates): McCoordinates2D\n {\n return new McCoordinates2D(floor($coordinates->x / 16), floor($coordinates->z / 16));\n }", "title": "" }, { "docid": "e96693945abe1f559a08506d09727ed4", "score": "0.45295733", "text": "public function getBlocks($parameters = [])\n {\n return $this->get('blocks/list', $parameters);\n }", "title": "" }, { "docid": "4cfed8d04f4f595ffdc5b6e0ace32f6a", "score": "0.45271817", "text": "public function setBlocks(AxisAlignedBB $bb, \\Generator $blocks) : void{\n\t\t/** @var Block $block */\n\t\t$offset = new Vector3((int) $bb->minX, (int) $bb->minY, (int) $bb->minZ);\n\t\t$max = new Vector3((int) $bb->maxX, (int) $bb->maxY, (int) $bb->maxZ);\n\n\t\t$this->width = $max->x - $offset->x + 1;\n\t\t$this->length = $max->z - $offset->z + 1;\n\t\t$this->height = $max->y - $offset->y + 1;\n\n\t\tforeach($blocks as $block){\n\t\t\t$pos = $block->getPos()->subtractVector($offset);\n\t\t\t$index = $this->blockIndex($pos->x, $pos->y, $pos->z);\n\t\t\tif(strlen($this->blocks) <= $index){\n\t\t\t\t$this->blocks .= str_repeat(chr(0), $index - strlen($this->blocks) + 1);\n\t\t\t}\n\t\t\t$this->blocks[$index] = chr($block->getId());\n\t\t\t$this->data[$index] = chr($block->getMeta());\n\t\t}\n\t}", "title": "" }, { "docid": "d9d5044b856255ac87f780e4b0b2e726", "score": "0.4522464", "text": "public function rebuild_admin_cblock_cache()\n\t{\n\t\t$cache = $this->DB->buildAndFetch( array( 'select' => '*', 'from' => 'cache_store', 'where' => \"cs_key = 'blog_admin_blocks'\" ) );\n\t\t$this->caches['blog_admin_blocks'] = unserialize( $cache['cs_value'] );\n\n\t\t$this->DB->build( array( \n\t\t\t\t\t\t\t\t'select'\t=>\t'*',\n\t\t\t\t\t\t\t\t'from'\t=>\t'cache_store',\n\t\t\t\t\t\t\t\t'where'\t=>\t\"cs_key like 'blog_cblock_%'\"\n\t\t\t\t\t\t)\t);\n\t\t$qid = $this->DB->execute();\n \t\twhile ( $row = $this->DB->fetch( $qid ) )\n\t\t{\n\t\t\t$this->caches['blog_admin_blocks'][ str_replace( 'blog_', '', $row['cs_key'] ) ] = $row['cs_value'];\n\t\t\t$this->DB->delete( 'cache_store', \"cs_key = '{$row['cs_key']}'\" );\n\t\t}\n\n\t\t$this->_output = \"Admin Content Block Cache Rebuild....\";\n\t}", "title": "" }, { "docid": "31c97e38def607af30cf863dfddeed59", "score": "0.45211917", "text": "function team_member_block_cgb_block_assets() { // phpcs:ignore\n\t// Register block styles for both frontend + backend.\n\twp_register_style(\n\t\t'team_member_block-cgb-style-css', // Handle.\n\t\tplugins_url( 'dist/blocks.style.build.css', dirname( __FILE__ ) ),\n\t\tis_admin() ? array( 'wp-editor' ) : null, \n\t\tnull \n\t);\n\n\t// Register block editor script for backend.\n\twp_register_script(\n\t\t'team_member_block-cgb-block-js',\n\t\tplugins_url( '/dist/blocks.build.js', dirname( __FILE__ ) ),\n\t\tarray( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor' ), \n\t\tnull,\n\t\ttrue \n\t);\n\n\t// Register block editor styles for backend.\n\twp_register_style(\n\t\t'team_member_block-cgb-block-editor-css', // Handle.\n\t\tplugins_url( 'dist/blocks.editor.build.css', dirname( __FILE__ ) ), \n\t\tarray( 'wp-edit-blocks' ), \n\t\tnull \n\t);\n\n\twp_enqueue_style(\n\t\t'fontawesome', \n\t\tplugins_url( 'assets/css/fontawesome-all.min.css', \n\t\tdirname( __FILE__ ) \n\t));\n\t\n\t// WP Localized globals. Use dynamic PHP stuff in JavaScript via `cgbGlobal` object.\n\twp_localize_script(\n\t\t'team_member_block-cgb-block-js',\n\t\t'cgbGlobal', // Array containing dynamic data for a JS Global.\n\t\t[\n\t\t\t'pluginDirPath' => plugin_dir_path( __DIR__ ),\n\t\t\t'pluginDirUrl' => plugin_dir_url( __DIR__ ),\n\t\t\t// Add more data here that you want to access from `cgbGlobal` object.\n\t\t]\n\t);\n\n\t/**\n\t * Register Gutenberg block on server-side.\n\t */\n\tregister_block_type(\n\t\t'cgb/block-team-member-block', array(\n\t\t\t// Enqueue blocks.style.build.css on both frontend & backend.\n\t\t\t'style' => 'team_member_block-cgb-style-css',\n\t\t\t// Enqueue blocks.build.js in the editor only.\n\t\t\t'editor_script' => 'team_member_block-cgb-block-js',\n\t\t\t// Enqueue blocks.editor.build.css in the editor only.\n\t\t\t'editor_style' => 'team_member_block-cgb-block-editor-css',\n\t\t)\n\t);\n\n\twp_localize_script(\n\t\t'team_member_block-cgb-block-js',\n\t\t'atomic_globals',\n\t\tarray(\n\t\t\t'rest_url' => esc_url( rest_url() ),\n\t\t\t'user_data' => $user_data,\n\t\t\t'is_wpe' => function_exists( 'is_wpe' ),\n\t\t)\n\t);\n\t\n}", "title": "" }, { "docid": "6a0fabfe71c8ed005e50775b9e628dfb", "score": "0.45174554", "text": "public function getBlocksAsArray()\n {\n $helper = Mage::helper('mp_debug');\n $data = array();\n foreach ($this->getBlocks() as $block) {\n $data[] = array(\n 'name' => $block->getName(),\n 'class' => $block->getClass(),\n 'template' => $block->getTemplateFile(),\n 'time (ms)' => $block->getRenderedDuration() ? $helper->formatNumber($block->getRenderedDuration(), 0) : '',\n 'count' => $block->getRenderedCount()\n );\n }\n\n return $data;\n }", "title": "" }, { "docid": "c70bc62722a5aead523f95e55ba68fa0", "score": "0.451685", "text": "public function blockupdate()\n\t{\n\t\tglobal $context, $txt;\n\n\t\t// Guest? Bah Humbug!\n\t\tif ($context['user']['is_guest'] || (empty($_POST['bars']) && empty($_POST['blocks_disabled']) && empty($_POST['blocks_enabled'])))\n\t\t\tredirectexit();\n\n\t\t// Flush all the current blocks\n\t\tif (!empty($_POST['bars']))\n\t\t{\n\t\t\twesql::query('\n\t\t\t\tDELETE FROM {db_prefix}wep_block_adjustments\n\t\t\t\tWHERE id_member = {int:member}',\n\t\t\t\tarray(\n\t\t\t\t\t'member' => (int) $context['user']['id'],\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t// Let us update the blocks\n\t\t\tforeach ($_POST['bars'] as $bar => $blocks)\n\t\t\t\tforeach ($blocks as $pos => $id_block)\n\t\t\t\t{\n\t\t\t\t\tif (!isset($this->blocks[(int) $id_block]))\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\twesql::query('\n\t\t\t\t\t\tINSERT IGNORE INTO {db_prefix}wep_block_adjustments\n\t\t\t\t\t\t\t(id_block, id_member, bar, position, enabled)\n\t\t\t\t\t\tVALUES\n\t\t\t\t\t\t\t({int:block}, {int:user}, {string:bar}, {int:position}, {string:enabled})',\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'block' => (int) $id_block,\n\t\t\t\t\t\t\t'user' => $context['user']['id'],\n\t\t\t\t\t\t\t'bar' => $bar,\n\t\t\t\t\t\t\t'position' => (int) $pos,\n\t\t\t\t\t\t\t'enabled' => isset($this->member_blocks[(int) $id_block]) ? ($this->member_blocks[(int) $id_block]['enabled'] ? '1' : '0') : ($this->blocks[(int) $id_block]['enabled'] ? '1' : '0'),\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t}\n\n\t\tif (!empty($_POST['blocks_disabled']))\n\t\t\tforeach ($_POST['blocks_disabled'] as $disabled_block)\n\t\t\t{\n\t\t\t\tif (!isset($this->blocks[(int) $disabled_block]))\n\t\t\t\t\tcontinue;\n\n\t\t\t\t$blockinfo = $this->blocks[(int) $disabled_block]->info();\n\n\t\t\t\twesql::query('\n\t\t\t\t\tUPDATE {db_prefix}wep_block_adjustments\n\t\t\t\t\tSET enabled = {string:disabled}\n\t\t\t\t\tWHERE id_block = {int:block}\n\t\t\t\t\t\tAND id_member = {int:member}',\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'disabled' => '0',\n\t\t\t\t\t\t'block' => (int) $disabled_block,\n\t\t\t\t\t\t'member' => $context['user']['id'],\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\tif (wesql::affected_rows() <= 0)\n\t\t\t\t\twesql::query('\n\t\t\t\t\t\tINSERT IGNORE INTO {db_prefix}wep_block_adjustments\n\t\t\t\t\t\t\t(id_block, id_member, bar, position, enabled)\n\t\t\t\t\t\tVALUES\n\t\t\t\t\t\t\t({int:block}, {int:user}, {string:bar}, {int:position}, {string:enabled})',\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'block' => (int) $disabled_block,\n\t\t\t\t\t\t\t'user' => $context['user']['id'],\n\t\t\t\t\t\t\t'bar' => $blockinfo['holder'],\n\t\t\t\t\t\t\t'position' => $blockinfo['position'],\n\t\t\t\t\t\t\t'enabled' => '0',\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t}\n\n\t\tif (!empty($_POST['blocks_enabled']))\n\t\t\tforeach ($_POST['blocks_enabled'] as $enabled_block)\n\t\t\t{\n\t\t\t\tif (!isset($this->blocks[(int) $enabled_block]))\n\t\t\t\t\tcontinue;\n\n\t\t\t\t$blockinfo = $this->blocks[(int) $enabled_block]->info();\n\n\t\t\t\twesql::query('\n\t\t\t\t\tUPDATE {db_prefix}wep_block_adjustments\n\t\t\t\t\tSET enabled = {string:enabled}\n\t\t\t\t\tWHERE id_block = {int:block}\n\t\t\t\t\t\tAND id_member = {int:member}',\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'enabled' => '1',\n\t\t\t\t\t\t'block' => (int) $enabled_block,\n\t\t\t\t\t\t'member' => $context['user']['id'],\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\tif (wesql::affected_rows() == 0)\n\t\t\t\t\twesql::query('\n\t\t\t\t\t\tINSERT IGNORE INTO {db_prefix}wep_block_adjustments\n\t\t\t\t\t\t\t(id_block, id_member, bar, position, enabled)\n\t\t\t\t\t\tVALUES\n\t\t\t\t\t\t\t({int:block}, {int:user}, {string:bar}, {int:position}, {string:enabled})',\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'block' => (int) $enabled_block,\n\t\t\t\t\t\t\t'user' => $context['user']['id'],\n\t\t\t\t\t\t\t'bar' => $blockinfo['holder'],\n\t\t\t\t\t\t\t'position' => $blockinfo['position'],\n\t\t\t\t\t\t\t'enabled' => '1',\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t}\n\t\texit;\n\t}", "title": "" }, { "docid": "519dfebdfc91324e7537539727683100", "score": "0.45074013", "text": "public static function get_block_types(): array {\n return array(); // no blocktypes returned\n }", "title": "" }, { "docid": "f68c29dc6318623a4f2071cb73028cd5", "score": "0.45072618", "text": "function blocks_save_metadata() {\n\n\t$post_id = $_POST['post_id'];\n\n\t// check if user has the rights\n\tif ( ! current_user_can('edit_page', $post_id ) ) {\n\t\tdie( __(\"You don't have premission to edit or create blocks\", 'blocks') );\n\t}\n\n\t// set post ID if is a revision\n\tif ( wp_is_post_revision( $post_id ) ) {\n\t $post_id = wp_is_post_revision( $post_id );\n\t}\n\n\tif( isset( $post_id ) ) {\n\n\t\t$data \t = get_post_meta( $post_id, '_blocks', true );\n\t $area \t = $_POST['area'];\n\t $order = trim( $_POST['order'] ); // we check on empty array but explode always return one item\n\t $blocks = explode( ',', $order );\n\n\t\tif( ! empty( $order ) ) {\n\t\t\t$data[$area] = array_unique( $blocks );\n\t\t}\n\t\telse {\n\t\t\tunset( $data[$area] );\n\t\t}\n\n\t\tforeach( $data as $key => $value ) {\n \t\tif( empty( $value ) || ( is_array( $value ) && count( $value ) == 0 ) ) {\n \t\t\tunset( $data[$key] );\n \t\t}\n\t\t}\n\n\t\tif( count( $data ) > 0 ) {\n\t\t\tupdate_post_meta( $post_id,'_blocks', $data );\n\t\t}\n\t\telse {\n\t\t\tdelete_post_meta( $post_id,'_blocks' );\n\t\t}\n\t\n\t die;\n\t}\n}", "title": "" }, { "docid": "37a82cbb3691305357533edc6f669ae6", "score": "0.44850916", "text": "public function IsBlock()\n {\n return !$this->IsSimple();\n }", "title": "" }, { "docid": "5204c78f8771544bef3d728cce49fcef", "score": "0.44832027", "text": "protected function getNextBlockHash()\n {\n $b = new $this->blockModelName();\n /**\n * Najdenie posledneho importovaneho bloku.\n */\n $lastBlock = $b->getLastBlock();\n /**\n * V pripade ze nie je u posledneho bloku nastaveny hash dalsieho neimportovaneho bloku tak sa pouzije\n * JSON RPC metoda getinfo, pomocou ktorej je zistena informacia o aktualnom pocte importovanych blokov.\n * Nasledne na zaklade jej odpovede sa rozhodne ci sa pouzije metoda getblockhash pre ziskanie hashu dalsieho neimportovaneho bloku\n * alebo sa nebude importovat vobec pretoze nevznikol ziaden novy blok.\n */\n if( empty($lastBlock['nextblockhash']) ){\n $getInfoResponseData = $this->getItem('getinfo', [])->result;\n if($lastBlock['height'] != $getInfoResponseData->blocks){\n $getBlockHashResponse = $this->getItem('getblockhash', [$lastBlock['height'] + 1]);\n $nextHash = $getBlockHashResponse->result;\n /**\n * Ulozenie hashu nasledujuceho bloku do posledneho importovaneho bloku.\n */\n $b->collection()->findAndModify(['hash' => $lastBlock['hash']],\n [\n '$set' => [\n 'nextblockhash' => $nextHash,\n ]\n ]);\n /**\n * Vratenie hashu bloku, ktory sa bude importovat.\n */\n return $nextHash;\n }\n }else{\n /**\n * Vratenie hashu nasledujuceho bloku, ktory sa bude importovat.\n */\n return $lastBlock['nextblockhash'];\n }\n }", "title": "" }, { "docid": "2f437307e433eefd6e9f0b5d37679631", "score": "0.44715583", "text": "function getBlocks($surferId) {\n $this->_initSurferAdmin();\n return $this->surferAdmin->getBlocks($surferId);\n }", "title": "" }, { "docid": "2c14e0cb82e83a354afdce704ad30820", "score": "0.44686282", "text": "function misha_allowed_block_types( $allowed_blocks, $post ) {\n\n\t$allowed_blocks = array(\n\t\t'core/paragraph',\n\t\t'core/heading',\n\t\t'core/list',\n\t\t'core/text-columns',\n\t\t'core/columns',\n\t\t'core/table',\n\t\t'core/shortcode',\n\t\t'core/group',\n\t\t'acf/slider',\n\t\t'acf/hero',\n\t\t'acf/about',\n\t\t'acf/video',\n\t\t'acf/presentation',\n\t\t'acf/slider'\n\t);\n\n\treturn $allowed_blocks;\n\n}", "title": "" }, { "docid": "55e6db1efca0d2c53ba4344c3c34d45e", "score": "0.44663757", "text": "public function blocks()\n {\n return $this->hasMany('App\\Models\\Post\\Block', 'post_id');\n }", "title": "" }, { "docid": "ad2f9f72f0f3f78b75894866c4b04c23", "score": "0.44618294", "text": "protected function getBlock()\n\t{\t\t\n\t\t$key = $block = explode( \"_\", \\IPS\\Request::i()->blockID );\n\t\t\n\t\tif ( isset( \\IPS\\Request::i()->pageID ) )\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tforeach ( \\IPS\\Db::i()->select( '*', 'cms_page_widget_areas', array( 'area_page_id=?', \\IPS\\Request::i()->pageID ) ) as $item )\n\t\t\t\t{\n\t\t\t\t\t$blocks = json_decode( $item['area_widgets'], TRUE );\n\t\t\t\t\t\n\t\t\t\t\tforeach( $blocks as $block )\n\t\t\t\t\t{\n\t\t\t\t\t\tif( $block['key'] == $key[2] AND $block['unique'] == $key[3] )\n\t\t\t\t\t\t{ \n\t\t\t\t\t\t\tif ( isset( $block['app'] ) and $block['app'] == $key[1] )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$widget = \\IPS\\Widget::load( \\IPS\\Application::load( $block['app'] ), $block['key'], $block['unique'], $block['configuration'], null, \\IPS\\Request::i()->orientation );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telseif ( isset( $block['plugin'] ) and $block['plugin'] == $key[1] )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$widget = \\IPS\\Widget::load( \\IPS\\Plugin::load( $block['plugin'] ), $block['key'], $block['unique'], $block['configuration'], null, \\IPS\\Request::i()->orientation );\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\tcatch ( \\UnderflowException $e ) { }\n\n\t\t\t/* Make sure the current page is set so the widgets have database/page scope */\n\t\t\t\\IPS\\cms\\Pages\\Page::$currentPage = \\IPS\\cms\\Pages\\Page::load( \\IPS\\Request::i()->pageID );\n\n\t\t\t/* Have we got a database for this page? */\n\t\t\t$database = \\IPS\\cms\\Pages\\Page::$currentPage->getDatabase();\n\n\t\t\tif ( $database )\n\t\t\t{\n\t\t\t\t\\IPS\\cms\\Databases\\Dispatcher::i()->setDatabase( $database->id );\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ( !isset( $widget ) )\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$widget = \\IPS\\Widget::load( \\IPS\\Application::load( $key[1] ), $key[2], $key[3], array(), null, \\IPS\\Request::i()->orientation );\n\n\t\t\t}\n\t\t\tcatch ( \\OutOfRangeException $e )\n\t\t\t{\n\t\t\t\t$widget = \\IPS\\Widget::load( \\IPS\\Plugin::load( $key[1] ), $key[2], $key[3], array(), null, \\IPS\\Request::i()->orientation );\n\t\t\t}\n\t\t}\n\n\t\t$output = (string) $widget;\n\n\t\t\\IPS\\Output::i()->output = ( $output ) ? $output : \\IPS\\Theme::i()->getTemplate( 'widgets', 'core', 'front' )->blankWidget( $widget );\n\t}", "title": "" }, { "docid": "b3c027806dc30b0391785ff8df57c0da", "score": "0.4457125", "text": "public function get_block_type() {\n\t\treturn 'embed';\n\t}", "title": "" }, { "docid": "f78d9a687c77ea89f64e0e314a9422d5", "score": "0.44566154", "text": "protected function parseBLOCKS() {\n\t\t$this->consume('0')->consume('SECTION');\n\t\t$this->consume('2')->consume('BLOCKS');\n\n\t\t$this->data['BLOCKS'] = array();\n\t\twhile ($this->readLine() !== '0') ;\n\n\t\t$this->consume('ENDSEC');\n\t}", "title": "" }, { "docid": "3a17d0c0152c8c84ab00ac6e0afa6fac", "score": "0.4442996", "text": "public static function repair_blocks() {\n\t\t\t\t\n\t\t$catalog = get_option('headway_layout_options_catalog');\n\t\t\n\t\t$top_level_layouts = array(\n\t\t\t'index',\n\t\t\t'front_page',\n\t\t\t'single',\n\t\t\t'archive',\n\t\t\t'four04'\n\t\t);\n\t\t\n\t\t//If the catalog doesn't even exist, then this function doesn't need to be ran. (i.g. new installation)\n\t\tif ( !$catalog || !is_array($catalog) )\n\t\t\treturn false;\n\t\t\t\n\t\t//If the catalog doesn't have any top level layout in it (only templates), then do not run this at all.\n\t\tif ( array_diff($top_level_layouts, $catalog) === $top_level_layouts )\n\t\t\treturn false;\n\t\t\n\t\t$blocks_by_id = array();\n\t\t$blocks_by_type = array();\n\t\t$blocks_by_layout = array();\n\t\t\n\t\tforeach ( $catalog as $layout ) {\n\t\t\t\n\t\t\t$layout_options = get_option('headway_layout_options_' . $layout);\t\t\n\t\t\t\t\t\t\n\t\t\t//If there are no blocks, then skip the layout\n\t\t\tif ( !isset($layout_options['general']['blocks']) || !is_array($layout_options['general']['blocks']) )\n\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\n\t\t\t$layout_blocks = $layout_options['general']['blocks'];\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t//If the layout is a template, then skip these two conditionals\n\t\t\tif ( strpos($layout, 'template_') === false ) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t//If the layout doesn't have any blocks, then remove the customized flag if it exists.\t\t\t\n\t\t\t\tif ( !isset($layout_blocks) || !is_array($layout_blocks) || count($layout_blocks) === 0 ) {\n\n\t\t\t\t\tHeadwayLayoutOption::delete($layout, 'customized');\n\n\t\t\t\t\tcontinue;\n\n\t\t\t\t}\n\n\t\t\t\t//If the layout isn't customized and doesn't have a template assigned, \n\t\t\t\t//then nuke those blocks from the layout options and do not include them in the main block options\n\t\t\t\tif ( \n\t\t\t\t\t(!isset($layout_options['general']['customized']) || $layout_options['general']['customized'] !== 'true')\n\t\t\t\t\t&& (!isset($layout_options['general']['template']) || $layout_options['general']['template'] === 'false')\n\t\t\t\t) {\n\n\t\t\t\t\tHeadwayLayoutOption::delete($layout, 'blocks');\n\n\t\t\t\t\tcontinue;\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tforeach ( $layout_blocks as $block_id => $block ) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t/* Blocks by ID */\n\t\t\t\t$blocks_by_id[$block['id']] = array(\n\t\t\t\t\t'layout' => $layout,\n\t\t\t\t\t'type' => $block['type']\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\t/* Blocks by type */\n\t\t\t\tif ( !isset($blocks_by_type[$block['type']]) )\n\t\t\t\t\t$blocks_by_type[$block['type']] = array();\n\t\t\t\t\n\t\t\t\t$blocks_by_type[$block['type']][$block['id']] = $layout;\n\t\t\t\t\n\t\t\t\t/* Blocks by layout */\n\t\t\t\tif ( !isset($blocks_by_layout[$layout]) )\n\t\t\t\t\t$blocks_by_layout[$layout] = array();\n\t\t\t\t\t\n\t\t\t\t$blocks_by_layout[$layout][$block['id']] = true;\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\n\t\t}\n\t\t\n\t\tHeadwayOption::set('blocks-by-type', $blocks_by_type, 'blocks');\n\t\tHeadwayOption::set('blocks-by-id', $blocks_by_id, 'blocks');\n\t\tHeadwayOption::set('blocks-by-layout', $blocks_by_layout, 'blocks');\n\n\t\t/* Go through and remove orphan blocks */\n\t\t// foreach ( HeadwayBlocksData::get_all_blocks() as $block ) {\n\n\t\t// \tif ( !HeadwayLayout::get_name($block['layout']) )\n\t\t// \t\tHeadwayBlocksData::delete_block($block['layout'], $block['id']);\n\n\t\t// }\n\t\t\t\t\n\t\treturn true;\t\t\n\t\t\t\t\n\t}", "title": "" } ]
c68ea364faa66c7743841ab887166b65
Compares two strings $a and $b in lengthconstant time.
[ { "docid": "b06fd59e3d0c14d8eaf5f7c8a7e55aed", "score": "0.77886826", "text": "function slow_equals($a, $b) {\n\n\t$diff = strlen($a) ^ strlen($b);\n\t\n\tfor($i = 0; $i < strlen($a) && $i < strlen($b); $i++)\n\t\t$diff |= ord($a[$i]) ^ ord($b[$i]);\n\n\treturn $diff === 0; \n}", "title": "" } ]
[ { "docid": "2521f31e62f04828859ced6393f393f5", "score": "0.793948", "text": "function constant_time_str_compare($a, $b)\n{\n if (!is_string($a) || !is_string($b)) {\n return false;\n }\n\n $len = strlen($a);\n if ($len !== strlen($b)) {\n return false;\n }\n\n $status = 0;\n for ($i = 0; $i < $len; $i++) {\n $status |= ord($a[$i]) ^ ord($b[$i]);\n }\n return $status === 0;\n}", "title": "" }, { "docid": "6a9cd9ea67dd5d85f692e2be7f22e84b", "score": "0.79139423", "text": "public function slowEquals($a, $b) {\n $a = (string)$a;\n $b = (string)$b;\n $diff = mb_strlen($a) ^ mb_strlen($b);\n for($i = 0; $i < mb_strlen($a) && $i < mb_strlen($b); $i++) {\n $diff |= ord($a[$i]) ^ ord($b[$i]);\n }\n return $diff === 0;\n }", "title": "" }, { "docid": "04ac91ba5202628baf2db097743cd268", "score": "0.7889818", "text": "private function slow_equals($a, $b)\n {\n $diff = strlen($a) ^ strlen($b);\n for($i = 0; $i < strlen($a) && $i < strlen($b); $i++)\n {\n $diff |= ord($a[$i]) ^ ord($b[$i]);\n }\n return $diff === 0; \n }", "title": "" }, { "docid": "9712502b616e8e97374b48083ce04145", "score": "0.7617498", "text": "function slow_equals($a, $b)\n{\n $diff = strlen($a) ^ strlen($b);\n for($i = 0; $i < strlen($a) && $i < strlen($b); $i++)\n {\n $diff |= ord($a[$i]) ^ ord($b[$i]);\n }\n return $diff === 0;\n}", "title": "" }, { "docid": "9712502b616e8e97374b48083ce04145", "score": "0.7617498", "text": "function slow_equals($a, $b)\n{\n $diff = strlen($a) ^ strlen($b);\n for($i = 0; $i < strlen($a) && $i < strlen($b); $i++)\n {\n $diff |= ord($a[$i]) ^ ord($b[$i]);\n }\n return $diff === 0;\n}", "title": "" }, { "docid": "ced4fa714c2a33073863034153f0b636", "score": "0.75972307", "text": "private function constantTimeCompare($a, $b)\n {\n $result = \"\\x00\";\n\n for ($i = strlen($a) - 1; $i >= 0; $i--) {\n $result |= $a[$i] ^ $b[$i];\n }\n\n return $result === \"\\x00\";\n }", "title": "" }, { "docid": "d1e365da82eaae9effa421c655ab932d", "score": "0.74420905", "text": "protected static function secure_compare($a, $b)\n\t{\n\t\t// make sure we're only comparing equal length strings\n\t\tif (strlen($a) !== strlen($b))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t// and that all comparisons take equal time\n\t\t$result = 0;\n\t\tfor ($i = 0; $i < strlen($a); $i++)\n\t\t{\n\t\t\t$result |= ord($a[$i]) ^ ord($b[$i]);\n\t\t}\n\t\treturn $result === 0;\n\t}", "title": "" }, { "docid": "af123a5696513621e879691d568b290d", "score": "0.73806095", "text": "final private function rpcomp($a, $b)\n {\n try {\n settype($a, 'string');\n settype($b, 'string');\n \n if ((trim($a) == '' || empty($a)) && (trim($b) == '' || empty($b))) {\n return 0;\n }\n \n if (trim($a) == '' || empty($a)) {\n return -1;\n }\n \n if (trim($b) == '' || empty($b)) {\n return 1;\n }\n \n $i = 0;\n $a_size = strlen($a);\n $b_size = strlen($b);\n \n if ($a_size > $b_size) {\n return 1;\n }\n \n if ($b_size > $a_size) {\n return -1;\n }\n \n if($a == $b) {\n return 0;\n }\n \n while ($i < $a_size) {\n if ((int)$a[$i] > (int)$b[$i]) {\n return 1;\n }\n \n if ((int)$b[$i] > (int)$a[$i]) {\n return -1;\n }\n \n $i++;\n }\n \n return 0;\n \n } catch (\\Exception $e) {\n throw $e;\n }\n }", "title": "" }, { "docid": "4fd11be03532cf075aaebd80ce950b9c", "score": "0.6984362", "text": "protected function safeHashComparison($a, $b)\n {\n $diff = strlen($a) ^ strlen($b);\n\n for ($i = 0; $i < strlen($a) && $i < strlen($b); $i++) \n {\n $diff |= ord($a[$i]) ^ ord($b[$i]);\n }\n\n return $diff === 0;\n }", "title": "" }, { "docid": "9be4c569095647b09f28998b9781fd69", "score": "0.6959147", "text": "public static function compareLength($a, $b)\n {\n return (strlen($a) - strlen($b));\n\n }", "title": "" }, { "docid": "dcfb64d74ac98f7083bf52ca34592f8c", "score": "0.68077034", "text": "public static function compare_strings($s1, $s2) {\n $n1 = new self($s1);\n $n2 = new self($s2);\n return self::compare_digests($n1->hexdigest(), $n2->hexdigest());\n }", "title": "" }, { "docid": "aa958741b8862152455e852cac650b30", "score": "0.6750511", "text": "function cmpr_strlen( $a, $b ) {\r\n\t\treturn strlen($b) - strlen($a);\r\n\t}", "title": "" }, { "docid": "0f62c538152be09bd20bacbb68a299d2", "score": "0.67234564", "text": "function length_cmp ( $a, $b ){\n\treturn strlen( $a ) - strlen( $b );\n}", "title": "" }, { "docid": "5cfd188c7349d7425daf62bd4d0de268", "score": "0.6668135", "text": "private static function cmp($str1, $str2)\n {\n if (Misc::countBytes($str1) != Misc::countBytes($str2) || Misc::countBytes($str1) <= 13) {\n return false;\n }\n\n $status = 0;\n $length = Misc::countBytes($str1);\n for ($i = 0; $i < $length; $i++) {\n $status |= (ord($str1[$i]) ^ ord($str2[$i]));\n }\n\n return $status === 0;\n }", "title": "" }, { "docid": "a2f3103399f9f3304b85aed1e91b4c9a", "score": "0.66640574", "text": "public function secureCompare($a, $b)\n {\n if (function_exists('hash_equals')) {\n return hash_equals($a, $b);\n }\n\n if (strlen($a) != strlen($b)) {\n return false;\n }\n\n $result = 0;\n for ($i = 0; $i < strlen($a); $i++) {\n $result |= ord($a[$i]) ^ ord($b[$i]);\n }\n\n return ($result == 0);\n }", "title": "" }, { "docid": "59e45707d67574237a12e366fa556667", "score": "0.6587419", "text": "private static function diff($strA, $strB)\n {\n if (strlen($strA) < strlen($strB)) {\n $t = $strA;\n $strA = $strB;\n $strB = $t;\n }\n return substr($strA, strlen($strB));\n }", "title": "" }, { "docid": "28c6db7a8bbc87c783a16fc970e4292c", "score": "0.6558859", "text": "public function levenshtein_dis ($a,$b) {\n $distance = levenshtein($a,$b);\n return $distance;\n }", "title": "" }, { "docid": "4be35dc32c28bfe42a644df3d22221b2", "score": "0.6551906", "text": "function complete_match($a, $b) {\r\n\t\tif (is_string($a) || is_string($b)) {\r\n\t\t\tif (strcmp($a , $b) == 0) {\r\n\t\t\t\treturn 100;\r\n\t\t\t} else {\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif ($a == $b) {\r\n\t\t\t\treturn 100;\r\n\t\t\t} else {\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "dee26385e637567b03d9c66a3da07a1b", "score": "0.6545084", "text": "function metaleven($a, $b) {\n\t$a = preg_replace('/,-\\'/u', '', $a);\n\t$b = preg_replace('/,-\\'/u', '', $b);\n\treturn 100 *\n\t\t(max(strlen($a),strlen($b)) / (levenshtein(metaphone($a),metaphone($b))+1));\n}", "title": "" }, { "docid": "e59ffe65400a24702e94a04bb10e30c7", "score": "0.6506812", "text": "private function damerauLevenshteinUtf8($str1, $str2) {\n $d = [];\n \n $charMap = array();\n $str1 = $this->utf8ToExtendedAscii($str1, $charMap);\n $str2 = $this->utf8ToExtendedAscii($str2, $charMap);\n\n $lenStr1 = strlen($str1); $lenStr2 = strlen($str2);\n if ($lenStr1 == 0) { return $lenStr2; }\n if ($lenStr2 == 0) { return $lenStr1; }\n\n for ($i = 0; $i <= $lenStr1; $i++) {\n $d[$i] = [];\n $d[$i][0] = $i;\n }\n\n for ($j = 0; $j <= $lenStr2; $j++) {\n $d[0][$j] = $j;\n }\n\n for ($i = 1; $i <= $lenStr1; $i++) {\n for ($j = 1; $j <= $lenStr2; $j++) {\n $cost = substr($str1, $i - 1, 1) == substr($str2, $j - 1, 1) ? 0 : 1;\n\n $d[$i][$j] = min(\n $d[$i - 1][$j] + 1, // deletion\n $d[$i][$j - 1] + 1, // insertion\n $d[$i - 1][$j - 1] + $cost // substitution\n );\n\n if (\n $i > 1 &&\n $j > 1 &&\n substr($str1, $i - 1, 1) == substr($str2, $j - 2, 1) &&\n substr($str1, $i - 2, 1) == substr($str2, $j - 1, 1)\n ) {\n $d[$i][$j] = min(\n $d[$i][$j], $d[$i - 2][$j - 2] + $cost // transposition\n );\n }\n }\n }\n return $d[$lenStr1][$lenStr2];\n }", "title": "" }, { "docid": "4ee167e714eef28b0bcaf9d6e7edd107", "score": "0.6496251", "text": "public static function sortByLength($a,$b)\n\t{\n\t\tif($a == $b) return 0;\n\t\treturn (strlen($a) > strlen($b) ? -1 : 1);\n\t}", "title": "" }, { "docid": "8e233dce8d48312509767d9d78b47dc6", "score": "0.6466313", "text": "public function strCompare(string $str1, string $str2): bool\n {\n $str1Len = $this->strLength($str1);\n $str2Len = $this->strLength($str2);\n\n if ($str1Len == $str2Len) {\n for ($i = 0; $i < $str1Len; $i++) {\n if ($str1[$i] == $str2[$i]) {\n if ($i == $str1Len - 1) {\n return true;\n }\n } else {\n break;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "26dee144bcfbf1c91df09045ae7d0ef1", "score": "0.64330316", "text": "function combineStrings($a, $b){}", "title": "" }, { "docid": "a41c491d3724e840942e31eeb7c55ceb", "score": "0.6421763", "text": "public function solution(string $stringOne, string $stringTwo): bool\n {\n $stringOneLength = strlen($stringOne);\n $stringTwoLength = strlen($stringTwo);\n\n // if two string are not the same length they are obviously not the same\n if ($stringOneLength !== $stringTwoLength) {\n return false;\n }\n\n $letters = array_fill(0, 128, 0);\n\n // count characters occurrences in first string\n for ($i = 0; $i < $stringOneLength; $i++) {\n $letters[ord($stringOne[$i])]++;\n }\n\n // count characters occurrences in second string\n for ($i = 0; $i < $stringOneLength; $i++) {\n $letters[ord($stringTwo[$i])]--;\n if ($letters[ord($stringTwo[$i])] < 0) {\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "89f26a411d142d3fffc852ebb4445fb5", "score": "0.64034784", "text": "public static function areStringsAnagrams($a, $b)\n {\n $aa = str_split($a, 1);\n sort($aa);\n $bb = str_split($b, 1);\n sort($bb);\n\n return ($aa === $bb);\n \n // or even shorter:\n // return (count_chars($a, 1) == count_chars($b, 1));\n }", "title": "" }, { "docid": "e6186b0a696cd135f7325857619195a3", "score": "0.63787395", "text": "function u_length($a, $b) {\r\n\t$a = strlen($a);\r\n\t$b = strlen($b);\r\n\tif ($a == $b) return 0;\r\n\tif ($a > $b) return 1;\r\n\treturn -1;\r\n}", "title": "" }, { "docid": "e1e8aacceec0a0a16c7597a39b5ddd01", "score": "0.63785213", "text": "function twoStrings($s1, $s2)\n{\n $array1 = [];\n $array2 = [];\n for ($i = 0; $i < strlen($s1); $i++) {\n $array1[] = $s1[$i];\n }\n for ($i = 0; $i < strlen($s2); $i++) {\n $array2[] = $s2[$i];\n }\n $t=array_intersect($array1, $array2);\n return !empty($t)?'YES':'NO';\n}", "title": "" }, { "docid": "e53bba41e49247968d76f8e257345306", "score": "0.637111", "text": "static public function damerau_levenshtein($str1, $str2, block_formal_langs_comparing_options $options) {\r\n if ($options->usecase == false) {\r\n $str1 = core_text::strtolower($str1);\r\n $str2 = core_text::strtolower($str2);\r\n }\r\n if ($str1 == $str2) {\r\n return 0;// words identical\r\n }\r\n $lenstr1 = core_text::strlen($str1);\r\n $lenstr2 = core_text::strlen($str2);\r\n // zero length of words\r\n if ($lenstr1 == 0) {\r\n return $lenstr2;\r\n } else {\r\n if ($lenstr2 == 0) {\r\n return $lenstr1;\r\n }\r\n }\r\n // matrix [lenstr1+1][lenstr2+1]\r\n for ($i = 0; $i < $lenstr1; $i++) {\r\n for ($j = 0; $j < $lenstr2+1; $j++) {\r\n $matrix[$i][$j] = 0;\r\n }\r\n }\r\n // fill in the first row and column\r\n for ($i = 0; $i <= $lenstr1; $i++) {\r\n $matrix[$i][0] = $i;\r\n }\r\n for ($j = 0; $j <= $lenstr2; $j++) {\r\n $matrix[0][$j] = $j;\r\n }\r\n // calculation\r\n for ($i = 1; $i <= $lenstr1; $i++) {\r\n for ($j = 1; $j <= $lenstr2; $j++) {\r\n $cellup = $matrix[$i-1][$j]+1;// deletion\r\n $cellleft = $matrix[$i][$j-1]+1;// insertion\r\n if ($str1[$i-1] == $str2[$j-1]) {\r\n $cost=0;\r\n } else {\r\n $cost=1;\r\n }\r\n $celldiag = $matrix[$i-1][$j-1] + $cost;// replacement\r\n $matrix[$i][$j] = min(min($cellup, $cellleft), $celldiag);\r\n if ($i>1 && $j>1 && $str1[$i-1] == $str2[$j-2] && $str1[$i-2] == $str2[$j-1]) {\r\n $matrix[$i][$j] = min($matrix[$i][$j], $matrix[$i-2][$j-2] + $cost);// transposition\r\n }\r\n }\r\n }\r\n return $matrix[$lenstr1][$lenstr2];\r\n $str1= $this->value;\r\n $str2= $token->value;\r\n $length_of_str1=strlen($str1); //define the length of str1\r\n $length_of_str2=strlen($str2); //define the length of str2\r\n if(!($length_of_str1-$max<=$length_of_str2 && $length_of_str2<=$length_of_str1+$max))\r\n return -1;\r\n //$distance=$this->editing_distance($token); //define the distance of damerau-levenshtein \r\n $distance = block_formal_langs_token_base::damerau_levenshtein($str1,$str2);\r\n if($distance<=$max)\r\n return $distance;\r\n else\r\n return -1;\r\n }", "title": "" }, { "docid": "aa53fd9a2b8e33983ec19f2f79a576c4", "score": "0.6339779", "text": "public static function compare($str1, $str2) {\n\n # verify that the input numbers are actually valid\n self::verify_string($str1);\n self::verify_string($str2);\n\n # trim inputs, just in case\n $str1 = trim($str1);\n $str2 = trim($str2);\n\n # determine if output needs to be negative\n $negative = false;\n if (self::absolute($str1) === '0')\n return '-' . $str2;\n if (self::absolute($str2) === '0')\n return $str1;\n\n # check for opposite sign\n if (self::is_negative($str1) && self::is_positive($str2)):\n return self::add(self::negative_absolute($str1), self::negative_absolute($str2));\n\n elseif (self::is_negative($str1) && self::is_negative($str2)):\n return '-' . self::add(self::absolute($str1), $str2);\n\n elseif (self::is_negative($str2) && self::is_positive($str1)):\n #return self::add($str1, $str2);\n\n elseif (self::is_positive($str1) && self::is_positive($str2)):\n if ($str1 === $str2)\n return '0';\n if (self::return_larger($str1, $str2) === $str2)\n $negative = true;\n endif;\n\n $compare = '';\n $carry = 0;\n\n $top = self::absolute(self::return_larger($str1, $str2));\n $bot = self::absolute(self::return_smaller($str1, $str2));\n $bot = str_pad($bot, strlen($top), '0', STR_PAD_LEFT);\n\n # get the length of longest string\n $x = strlen($top);\n $x--;\n\n $top = str_split($top);\n $bot = str_split($bot);\n\n while ($x >= 0):\n $top_digit = $top[$x] - $carry;\n\n if ($bot[$x] > $top_digit)\n $carry = 1;\n\n $compare = ($top_digit - $bot[$x]) . $compare;\n\n $x--;\n endwhile;\n\n # set output as negative, if needed\n if ($negative)\n $compare = '-' . $compare;\n\n return $compare;\n }", "title": "" }, { "docid": "179f425719d25402e6199de384ef3bcc", "score": "0.63370514", "text": "function mb_levenshtein(\n string $string1,\n string $string2,\n int $insertion_cost = 1,\n int $replacement_cost = 1,\n int $deletion_cost = 1\n ): int {\n return MbLevenshtein::mb_levenshtein($string1, $string2, $insertion_cost, $replacement_cost, $deletion_cost);\n }", "title": "" }, { "docid": "e54c506880dfa865dc644f599f7a8828", "score": "0.6304516", "text": "static public function name_cmp($a, $b) {\n $a2 = str_replace('_', '|', $a);\n $b2 = str_replace('_', '|', $b);\n return strcmp($a2, $b2);\n }", "title": "" }, { "docid": "3f64202946ceb973110d8a9591d1dc58", "score": "0.62988853", "text": "function hash_equals($hash_a, $hash_b) {\n\t\t\n\t\t$isEqual = false;\n\t\t\n\t\tif (is_string($hash_a) && is_string($hash_b)) { // they are both strings\n\n\t\t\t$len = strlen($hash_a);\n\t\t\tif ($len === strlen($hash_b)) { // they are the same length\n\t\t\t\t\n\t\t\t\t// go through the motions of comparing ALL characters, even if we already found a mismatch and know they aren't equal\n\t\t\t\t$status = 0;\n\t\t\t\tfor ($i = 0; $i < $len; $i++) {\n\t\t\t\t\t$status |= ord($hash_a[$i]) ^ ord($hash_b[$i]);\n\t\t\t\t}\n\t\t\t\t$isEqual = ($status === 0);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn $isEqual;\n\t\t\n\t}", "title": "" }, { "docid": "0b35193306756a697f1a748027ce2d88", "score": "0.627666", "text": "function cmp($a, $b) {\n global $sort_cmp;\n\n\t$a1=@substr($a,0,2);\n\t$b1=@substr($b,0,2);\n\n\tif (!isset($sort_cmp[$a1])) {return 0;}\n\tif (!isset($sort_cmp[$b1])) {return 0;}\n\n\treturn ($sort_cmp[$a1] < $sort_cmp[$b1]) ? -1 : 1;\n}", "title": "" }, { "docid": "04231fceb51dc9909c67e69ee7e3e5cb", "score": "0.6247869", "text": "private function compareByCharacter($str1, $str2) {\n // auf das ausgefilterte Sonderzeichen gleich.\n // Eine \"intelligente\" Zeichen-basierte Suche kann helfen\n $i1 = 0;\n $i2 = 0;\n for ($i = 0; $i <= min(strlen($str1), strlen($str2)); $i++) {\n if (mb_substr($str1, $i1, 1) == mb_substr($str2, $i2, 1)) {\n $i1++;\n $i2++;\n } else if (mb_substr($str1, $i1 + 1, 1) == mb_substr($str2, $i2, 1)) {\n $i1 = $i1 + 2;\n $i2++;\n } else if (mb_substr($str1, $i1, 1) == mb_substr($str2, $i2 + 1, 1)) {\n $i1++;\n $i2 = $i2 + 2;\n } else {\n return false;\n }\n\n }\n return true;\n }", "title": "" }, { "docid": "644686b7b6f4e7bf5aa27fb8911cbeee", "score": "0.6189034", "text": "function pzpinyin_cmp($a,$b)\n\t{\n\t\t// nothing in here //\t\t\n\treturn strlen($a) < strlen($b); // returns TRUE OR FALSE (1 | 0)\n\t}", "title": "" }, { "docid": "c66521415feb5637e98038aa19e43b33", "score": "0.6165218", "text": "function _version_cmp($a, $b){\n $version_a = array();\n $version_b = array();\n // in index 1 there will be the entire preg_match\n preg_match('/^(\\d+)\\.(\\d+)\\.?(\\d+)?$/', $a, $version_a);\n preg_match('/^(\\d+)\\.(\\d+)\\.?(\\d+)?$/', $b, $version_b);\n\n // go through every version segment\n // start with 1 as 0 is reserveved for the entire match in the regex\n for ($i=1; $i<max(count($version_a), count($version_b)); $i++){\n if(isset($version_a[$i]) && isset($version_b[$i])){\n if ($version_a[$i] < $version_b[$i]){\n return -1;\n } else if ($version_a[$i] > $version_b[$i]){\n return 1;\n }\n }\n if(!isset($version_a[$i]) && isset($version_b[$i])){\n return -1;\n }\n if(isset($version_a[$i]) && !isset($version_b[$i])){\n return 1;\n }\n }\n\n return 0;\n }", "title": "" }, { "docid": "2fa58002e3d8f045086fd653e31f4b69", "score": "0.616238", "text": "function ComparisonSimple($obj1, $obj2)\n {\n $A = ( preg_match(\"/^[a-z]0/i\", $obj1) && strlen($obj1) <> strlen($obj2) ) ? preg_replace(\"/0/\", \"\", $obj1, 1) : $obj1;\n $B = ( preg_match(\"/^[a-z]0/i\", $obj2) && strlen($obj2) <> strlen($obj1) ) ? preg_replace(\"/0/\", \"\", $obj2, 1) : $obj2;\n return ( strnatcasecmp($A, $B) == 0 ) ? 0 : ( strnatcasecmp($A, $B) > 0 ) ? 1 : -1;\n }", "title": "" }, { "docid": "b88d534954af7c75733b3110fbbc2fae", "score": "0.6155814", "text": "final private function rpadd($a, $b)\n {\n try {\n settype($a, 'string');\n settype($b, 'string');\n \n if ((trim($a) == '' || empty($a)) && !empty($b)) {\n return $b;\n }\n \n if ((trim($b) == '' || empty($b)) && !empty($a)) {\n return $a;\n }\n \n if ((trim($a) == '' || empty($a)) && (trim($b) == '' || empty($b))) {\n return '0';\n }\n \n $len_a = strlen($a);\n $len_b = strlen($b);\n \n if ($len_a < $this->maxint && $len_b < $this->maxint) {\n return ((int)$a + (int)$b);\n }\n \n if ($a[0] == '0') {\n while ($len_a > 0 && $a[0] == '0') {\n $a = substr($a, 1);\n $len_a--;\n }\n }\n \n if ($b[0] == '0') {\n while ($len_b > 0 && $b[0] == '0') {\n $b = substr($b, 1);\n $len_b--;\n }\n }\n \n if ($a[0] == '-' || $b[0] == '-') {\n return $this->rpsub($a, $b);\n }\n \n if ((trim($a) == '' || empty($a)) && !empty($b)) {\n return $b;\n }\n \n if ((trim($b) == '' || empty($b)) && !empty($a)) {\n return $a;\n }\n \n if ((trim($a) == '' || empty($a)) && (trim($b) == '' || empty($b))) {\n return '0';\n }\n \n while ($len_a > $len_b) {\n $b = '0' . $b;\n $len_b++;\n }\n \n while ($len_b > $len_a) {\n $a = '0' . $a;\n $len_a++;\n }\n \n $q = $len_a - 1;\n $c_temp = 0;\n $s_temp = 0;\n $result = $number_string = '';\n \n while ($q >= 0) {\n $s_temp = (int)$a[$q] + (int)$b[$q] + (int)$c_temp;\n \n if ($s_temp >= 10) {\n $c_temp = 1;\n $str_s_temp = (string)$s_temp;\n $result = $str_s_temp[1];\n } else {\n $c_temp = 0;\n $result = $s_temp;\n }\n \n $q--;\n \n $number_string .= $result;\n }\n \n if ($q < 0 && $c_temp == 1) {\n $number_string .= '1';\n }\n \n $number_string = strrev($number_string);\n $number_string_len = strlen($number_string);\n \n while ($number_string[0] == '0' && $number_string_len > 0) {\n $number_string = substr($number_string, 1);\n $number_string_len--;\n }\n \n return $number_string;\n \n } catch (\\Exception $e) {\n throw $e;\n }\n }", "title": "" }, { "docid": "84e5c45428288cb0e9027831837a4ee4", "score": "0.61338925", "text": "private function levenshteinUtf8($s1, $s2) {\n $charMap = array();\n $s1 = $this->utf8ToExtendedAscii($s1, $charMap);\n $s2 = $this->utf8ToExtendedAscii($s2, $charMap);\n\n return \\levenshtein($s1, $s2);\n }", "title": "" }, { "docid": "eb7a9479be9ceb788725fba1b74d4747", "score": "0.6128354", "text": "function ComparisonOnTheFly($obj1, $obj2)\n {\n $A = ( preg_match(\"/^[a-z]0/i\", $obj1->name) && strlen($obj1->name) <> strlen($obj2->name) ) ? preg_replace(\"/0/\", \"\", $obj1->name, 1) : $obj1->name;\n $B = ( preg_match(\"/^[a-z]0/i\", $obj2->name) && strlen($obj2->name) <> strlen($obj1->name) ) ? preg_replace(\"/0/\", \"\", $obj2->name, 1) : $obj2->name;\n return ( strnatcasecmp($A, $B) == 0 ) ? 0 : ( strnatcasecmp($A, $B) > 0 ) ? 1 : -1;\n }", "title": "" }, { "docid": "1e22d0c93a1c9e1be1a4771e4ef2f5a2", "score": "0.61227334", "text": "function strong_match_with($a, $b, $match) {\r\n\t\t$match_items = explode(',', $match);\r\n\t\tif ($match_items) {\r\n\t\t\tforeach ($match_items as $match_item) {\r\n\t\t\t\t$match_item = trim($match_item);\r\n\t\t\t\tif (strcmp(trim((string) $a), (string) $match_item) == 0 &&\r\n\t\t\t\t\tstrcmp(trim((string) $b), (string) $match_item) == 0) {\r\n\t\t\t\t\treturn 100;\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn 0;\r\n\t\t} else {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c89e44a486244907d9c17c0395faa21e", "score": "0.60747814", "text": "function kinda($a, $b) {\n\t$half = max(floor(strlen($a)/2), 6);\n\t$aa = substr($a, 0, $half);\n\tif (strpos($b, $aa) !== false)\n\t\treturn true;\n\t$aa = substr($a, $half, $half);\n\tif (strpos($b, $aa) !== false)\n\t\treturn true;\n\treturn false;\n}", "title": "" }, { "docid": "52230b7e638f6ba13a78172170bd2395", "score": "0.6061508", "text": "function str_common(string $string, string $other_string, $encoding = null) : string\n{\n return Str::common($string, $other_string, $encoding);\n}", "title": "" }, { "docid": "516817af14e0842f0418d4ee81e2fda4", "score": "0.6059831", "text": "public static function getDistance ($a, $b)\r\n\t{\r\n\t\t$cost = 0;\r\n\t\t\r\n\t\t$m = XXX_String::getCharacterLength($a);\r\n\t\t$n = XXX_String::getCharacterLength($b);\r\n\t\t\r\n\t\t$c = 0;\r\n\t\t\r\n\t\tif ($m < $n)\r\n\t\t{\r\n\t\t\t$c = $a;\r\n\t\t\t$a = $b;\r\n\t\t\t$b = $c;\r\n\t\t\t\r\n\t\t\t$o = $m;\r\n\t\t\t$m = $n;\r\n\t\t\t$n = $o;\r\n\t\t}\r\n\t\t\r\n\t\t$r = array();\r\n\t\t$r[0] = array();\r\n\t\t\r\n\t\tfor ($c = 0, $cEnd = $n + 1; $c < $cEnd; ++$c)\r\n\t\t{\r\n\t\t\t$r[0][$c] = $c;\r\n\t\t}\r\n\t\t\r\n\t\tfor ($i = 1, $iEnd = $m + 1; $i < $iEnd; ++$i)\r\n\t\t{\r\n\t\t\t$r[$i] = array();\r\n\t\t\t$r[$i][0] = $i;\r\n\t\t\t\r\n\t\t\tfor ($j = 1, $jEnd = $n + 1; $j < $jEnd; ++$j)\r\n\t\t\t{\r\n\t\t\t\t$cost = (XXX_String::getPart($a, $i - 1, 1) == XXX_String::getPart($b, $i - 1, 1)) ? 0 : 1;\r\n\t\t\t\t$r[$i][$j] = XXX_Number::lowest(($r[$i - 1][$j] + 1), ($r[$i][$j - 1] + 1), ($r[$i - 1][$j - 1] + $cost));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn $r[$m][$n];\r\n\t}", "title": "" }, { "docid": "4b8e221d9f4a2314ad9770c0dc553b49", "score": "0.6051836", "text": "function compareStrings($s1, $s2) {\n if (strlen($s1)==0 || strlen($s2)==0) {\n return 0;\n }\n\n //replace none alphanumeric charactors\n //i left - in case its used to combine words\n $s1clean = preg_replace(\"/[^A-Za-z0-9-]/\", ' ', $s1);\n $s2clean = preg_replace(\"/[^A-Za-z0-9-]/\", ' ', $s2);\n\n //remove double spaces\n while (strpos($s1clean, \" \")!==false) {\n $s1clean = str_replace(\" \", \" \", $s1clean);\n }\n while (strpos($s2clean, \" \")!==false) {\n $s2clean = str_replace(\" \", \" \", $s2clean);\n }\n\n //create arrays\n $ar1 = explode(\" \",$s1clean);\n $ar2 = explode(\" \",$s2clean);\n $l1 = count($ar1);\n $l2 = count($ar2);\n\n //flip the arrays if needed so ar1 is always largest.\n if ($l2>$l1) {\n $t = $ar2;\n $ar2 = $ar1;\n $ar1 = $t;\n }\n\n //flip array 2, to make the words the keys\n $ar2 = array_flip($ar2);\n\n $maxwords = max($l1, $l2);\n $matches = 0;\n\n //find matching words\n foreach($ar1 as $word) {\n if (array_key_exists($word, $ar2))\n $matches++;\n }\n\n return ($matches / $maxwords) * 100;\n}", "title": "" }, { "docid": "70ec46ee7fa6cacc0ef4a950f655916a", "score": "0.6032292", "text": "public function compareString($expected, $actual)\n {\n $expected .= \"\\0\";\n $actual .= \"\\0\";\n $expectedLength = mb_strlen($expected, '8bit');\n $actualLength = mb_strlen($actual, '8bit');\n $diff = $expectedLength - $actualLength;\n for ($i = 0; $i < $actualLength; $i++) {\n $diff |= (ord($actual[$i]) ^ ord($expected[$i % $expectedLength]));\n }\n return $diff === 0;\n }", "title": "" }, { "docid": "34bfdd9e45eca6028e3e86015f5051da", "score": "0.6028875", "text": "function name_length_sort_name($a, $b)\n {\n if ( strlen($a->getName()) < strlen($b->getName()) ) return 1;\n if ( strlen($a->getName()) > strlen($b->getName()) ) return -1;\n return 0;\n }", "title": "" }, { "docid": "d1dd3706c15faa5bdefae8a2d8030137", "score": "0.6027644", "text": "function weak_match_with($a, $b, $match) {\r\n\t\t$match_items = explode(',', $match);\r\n\t\tif ($match_items) {\r\n\t\t\tforeach ($match_items as $match_item) {\r\n\t\t\t\t$match_item = trim($match_item);\r\n\t\t\t\tif (strcmp(trim((string) $a), (string) $match_item) == 0) {\r\n\t\t\t\t\tforeach ($match_items as $tmp_match_item) {\r\n\t\t\t\t\t\t$tmp_match_item = trim($tmp_match_item);\r\n\t\t\t\t\t\tif (strcmp(trim((string) $b), (string) $tmp_match_item) == 0) {\r\n\t\t\t\t\t\t\treturn 100;\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\treturn 0;\r\n\t\t} else {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "355f7143e99193c3af5020c86bdd2561", "score": "0.60261226", "text": "private function compareString($str1, $str2){\n $re = \"/ {2,}/\";\n // Normalize spaces\n $str1 = preg_replace($re, ' ', $str1);\n $str2 = preg_replace($re, ' ', $str2);\n \n return trim(strtolower($str1)) == trim(strtolower($str2));\n }", "title": "" }, { "docid": "c41cdd61eb4fae6c62ffb11d899742cb", "score": "0.6018614", "text": "function _smarty_sort_length($a, $b) {\r\n if($a == $b) return 0;\r\n if(strlen($a) == strlen($b)) return ($a > $b) ? -1 : 1;\r\n return (strlen($a) > strlen($b)) ? -1 : 1;\r\n}", "title": "" }, { "docid": "e61f1eb690d0c02b4b1a6a821d104321", "score": "0.60002655", "text": "function distance($a, $b)\n{\n\t$distance=0;\n\t$i=0;\n if (strlen($a) != strlen($b)) { \n\t\tthrow new InvalidArgumentException('DNA strands must be of equal length.');\t\n\t}\n\telse{\n\t\tfor($i=0; $i<strlen($a); $i++){ \n\t\t\tif ($a[$i] != $b[$i]) {\n\t\t\t\t$distance+=1;\n\t\t\t}\n\t\t}\t\n\t}\t\n\n\treturn $distance;\n}", "title": "" }, { "docid": "cba870f484e61a091dda20b9aeb5f15b", "score": "0.597424", "text": "public function strrcmp($sStr1, $sStr2)\n {\n return -strcmp($sStr1, $sStr2);\n }", "title": "" }, { "docid": "cd22a9f217813a460b7112f07bf95c05", "score": "0.59701824", "text": "public function comp($a, $b)\n {\n return gmp_cmp($a, $b);\n }", "title": "" }, { "docid": "98b4af8e626c4c87106abc1dfc8303eb", "score": "0.59566766", "text": "function common_prefix($s1, $s2, $max = 1000)\n{\n $prefix = \"\";\n \n $l1 = strlen($s1);\n $l2 = strlen($s2);\n \n for ($i = 0; $i < $max; $i++) {\n if ($i >= $l1 || $i >= $l2) {\n break;\n }\n \n if ($s1[$i] != $s2[$i]) {\n break;\n }\n \n $prefix .= $s1[$i];\n }\n \n return $prefix;\n}", "title": "" }, { "docid": "c3414e4090edd7f28118b71ed3ffc07d", "score": "0.59518313", "text": "function name_length_sort($a, $b)\n {\n if ( strlen($a->getGeneName()) < strlen($b->getGeneName()) ) return 1;\n if ( strlen($a->getGeneName()) > strlen($b->getGeneName()) ) return -1;\n return 0;\n }", "title": "" }, { "docid": "2a31c9ecba4285aff48d42950accf856", "score": "0.59410554", "text": "function cmp($a, $b)\n{\n $a = preg_replace('@^(a|an|the) @', '', $a);\n $b = preg_replace('@^(a|an|the) @', '', $b);\n return strcasecmp($a, $b);\n}", "title": "" }, { "docid": "76c0565527177371fa35222982baecb2", "score": "0.5940664", "text": "public function compare($a, $b){\n $this->response = shell_exec(\"./perceptualdiff $a $b\");\n if(strpos($this->response, 'FAIL') === false){\n $success = true;\n $this->response = \"PASS\";\n } else {\n $success = false;\n }\n\n //clean up response text\n $new_response = array();\n $this->response = explode(\"\\n\", $this->response);\n foreach($this->response as $v){\n if($v){\n $new_response[] = $v;\n }\n }\n $this->response = implode(\"\\n\", $new_response);\n\n return $success;\n }", "title": "" }, { "docid": "db7ec1095eca775e8916e4961a2d98a3", "score": "0.59207004", "text": "function versioncmp($a, $b) {\r\n\t$partsA = explode(\"\\t\", $a);\r\n\t$partsB = explode(\"\\t\", $b);\r\n\t$subtimeA = intval($partsA[1]);\r\n\t$subtimeB = intval($partsB[1]);\r\n\tif ($subtimeA==$subtimeB) { return 0; }\r\n\treturn ($subtimeA < $subtimeB) ? 1 : -1;\r\n}", "title": "" }, { "docid": "ba182cac03ffc4776ba2508fb9ab6fbc", "score": "0.59004706", "text": "static public function compare ($a, $b) {\n\t\t#/Users/ut/haxe/versions/4.0.0-rc.1/std/php/_std/Reflect.hx:118: characters 3-23\n\t\tif (Boot::equal($a, $b)) {\n\t\t\t#/Users/ut/haxe/versions/4.0.0-rc.1/std/php/_std/Reflect.hx:118: characters 15-23\n\t\t\treturn 0;\n\t\t}\n\t\t#/Users/ut/haxe/versions/4.0.0-rc.1/std/php/_std/Reflect.hx:119: lines 119-123\n\t\tif (is_string($a)) {\n\t\t\t#/Users/ut/haxe/versions/4.0.0-rc.1/std/php/_std/Reflect.hx:120: characters 4-40\n\t\t\treturn strcmp($a, $b);\n\t\t} else if ($a > $b) {\n\t\t\t#/Users/ut/haxe/versions/4.0.0-rc.1/std/php/_std/Reflect.hx:122: characters 34-35\n\t\t\treturn 1;\n\t\t} else {\n\t\t\t#/Users/ut/haxe/versions/4.0.0-rc.1/std/php/_std/Reflect.hx:122: characters 38-40\n\t\t\treturn -1;\n\t\t}\n\t}", "title": "" }, { "docid": "12b2e81415280e75872bf1cb6fe37511", "score": "0.58915645", "text": "function isAnagram($s1, $s2) {\n if(strlen($s1) != strlen($s2)) return false;\n \n return (freqHashMap($s1) == freqHashMap($s2));\n}", "title": "" }, { "docid": "72e3b2b85bbd9ff6a4153ad86d9412cb", "score": "0.58895594", "text": "function comparar($a, $b) {\r\n\treturn strnatcasecmp($b['modified'], $a['modified']); \r\n}", "title": "" }, { "docid": "38d94cc4d860219567e4323f5afc2d14", "score": "0.58660203", "text": "function distance(string $a, string $b): int\n{\n $firstDNA = str_split($a);\n $secondDNA = str_split($b);\n $lengthA = strlen($a);\n $lengthB = strlen($b);\n\n if ($lengthA !== $lengthB) {\n throw new InvalidArgumentException('DNA strands must be of equal length.');\n } else {\n $hamming = $lengthA - count(array_intersect_assoc($firstDNA, $secondDNA));\n }\n\n return $hamming;\n}", "title": "" }, { "docid": "b33c14c1913586676baebc37f02df93f", "score": "0.5844766", "text": "function name_length_sort_cypsMention($a, $b)\n {\n if ( strlen($a->getCypsMention()) < strlen($b->getCypsMention()) ) return 1;\n if ( strlen($a->getCypsMention()) > strlen($b->getCypsMention()) ) return -1;\n return 0;\n }", "title": "" }, { "docid": "7ff228a1202e9a1bd40d674fdf500c90", "score": "0.58412665", "text": "function getCommonWords($a, $b){\n $a=explode(' ',$a);\n $b=explode(' ',$b);\n for ($i = 0; $i < count($a); $i++) {\n $test=false;\n for ($j = 0; $j < count($b); $j++) {\n if($a[$i]===$b[$j]){\n $result[]=$a[$i];\n $test=true;\n break;\n }\n }if($test==false){\n // echo \"Строка а(\".$a[$i].\") не совпала\\n\";\n }\n }return $result;\n}", "title": "" }, { "docid": "715f6835538469f72c6cc575e11b4dc9", "score": "0.58371085", "text": "public function levenshteinUtf8($s1, $s2)\n {\n $charMap = array();\n $s1 = $this->utf8ToExtendedAscii($s1, $charMap);\n $s2 = $this->utf8ToExtendedAscii($s2, $charMap);\n\n return levenshtein($s1, $s2);\n }", "title": "" }, { "docid": "1bb168e1ff7b6be0a9a1c756e583206a", "score": "0.582363", "text": "final private function rppow($a, $b)\n {\n try {\n settype($a, 'string');\n settype($b, 'string');\n \n if (trim($b) == '' || empty($b)) {\n return '1';\n }\n \n $len_a = strlen($a);\n $len_b = strlen($b);\n \n if ($len_a < $this->maxint && $len_b < $this->maxint) {\n return pow((int)$a, (int)$b);\n }\n \n $i = 1;\n $q = 0;\n $result = $a;\n $number_string = '';\n \n while ($this->rpcomp($b, $i) > 0 && $q < 100) {\n $result = $this->rpmul($result, $a);\n $q++;\n $i++;\n }\n \n if ($q >= 100) {\n return 'overflow';\n } else {\n return $result;\n }\n \n } catch (\\Exception $e) {\n throw $e;\n }\n }", "title": "" }, { "docid": "c097c7e906daaa6baced3a5fed37f367", "score": "0.58227426", "text": "public static function matchLanguage($a, $b) {\n $a = explode('-', $a);\n $b = explode('-', $b);\n for ($i=0, $n=min(count($a), count($b)); $i<$n; $i++) {\n if ($a[$i] !== $b[$i]) break;\n }\n return $i === 0 ? 0 : (float) $i / count($a);\n }", "title": "" }, { "docid": "f55e527c0efc857fca4eaa384d8f2d49", "score": "0.5819263", "text": "private function strCompare($string1, $string2): bool\n {\n $symbols = [' ', '-', '.', '(', ')'];\n $normalizedString1 = str_replace($symbols, '', strtolower(trim($string1)));\n $normalizedString2 = str_replace($symbols, '', strtolower(trim($string2)));\n\n $specialChars = ['ä', 'ü', 'ö', 'ß'];\n $specialCharReplacements = ['ae', 'ue', 'oe', 'ss'];\n $normalizedString1 = str_replace($specialChars, $specialCharReplacements, $normalizedString1);\n $normalizedString2 = str_replace($specialChars, $specialCharReplacements, $normalizedString2);\n\n $normalizedString1 = str_replace('strasse', 'str', $normalizedString1);\n $normalizedString2 = str_replace('strasse', 'str', $normalizedString2);\n\n return $normalizedString1 === $normalizedString2;\n }", "title": "" }, { "docid": "24e090c18bb33c29bd7e8710d3e425a4", "score": "0.5789205", "text": "final private function rpsub($a, $b)\n {\n try {\n settype($a, 'string');\n settype($b, 'string');\n \n $len_a = strlen($a);\n $len_b = strlen($b);\n \n if ($len_a < $this->maxint && $len_b < $this->maxint) {\n return ((int)$a - (int)$b);\n }\n \n $c = 0;\n $s = 0;\n $i = 0;\n $apad = 0;\n $bpad = 0;\n $result = '';\n $numerator = '';\n $denominator = '';\n $sign = '';\n $sign_a = '';\n $sign_b = '';\n \n if ($a[0] == '-') {\n $sign_a = '-';\n $a = substr($a, 1);\n $len_a--;\n }\n \n if ($b[0] == '-') {\n $sign_b = '-';\n $b = substr($b, 1);\n $len_b--;\n }\n \n $larger = $this->rpcomp($a, $b);\n \n switch ($larger) {\n case 1:\n $numerator = $a;\n $denominator = $b;\n \n if ($sign_a == '' && $sign_b == '') {\n $sign = '';\n }\n \n if ($sign_a == '' && $sign_b == '-') {\n return $this->rpadd($a, $b);\n }\n \n if ($sign_a == '-' && $sign_b == '-') {\n $sign = '-';\n }\n \n if ($sign_a == '-' && $sign_b == '') {\n $sign = '-';\n }\n \n break;\n \n case 0:\n $numerator = $a;\n $denominator = $b;\n \n if ($sign_a == '' && $sign_b == '') {\n return '0';\n }\n \n if ($sign_a == '' && $sign_b == '-') {\n return $this->rpadd($a,$b);\n }\n \n if ($sign_a == '-' && $sign_b == '-') {\n $sign = '-';\n }\n \n if ($sign_a == '-' && $sign_b == '') {\n return '0';\n }\n \n break;\n \n case -1:\n $numerator = $b;\n $denominator = $a;\n \n if ($sign_a == '' && $sign_b == '') {\n $sign = '-';\n }\n \n if ($sign_a == '' && $sign_b == '-') {\n return $this->rpadd($a,$b);\n }\n \n if ($sign_a == '-' && $sign_b == '-') {\n $sign = '';\n }\n \n if ($sign_a == '-' && $sign_b == '') {\n $sign = '-';\n }\n \n break;\n \n default:\n die('FATAL - unable to determine num/denom from comp() result!');\n }\n \n while (strlen($numerator) > strlen($denominator)) {\n $denominator = '0' . $denominator;\n }\n \n $q = strlen($numerator) - 1;\n $c_temp = 0;\n $number_string = '';\n $s_temp = 0;\n \n while ($q >= 0) {\n $num_temp = (int)substr($numerator, $q, 1);\n $denom_temp = (int)substr($denominator, $q, 1);\n $borrow_temp = (int)$num_temp - (int)$c_temp;\n \n if ($borrow_temp > $denom_temp) {\n $s_temp = (int)$borrow_temp - (int)$denom_temp;\n $c_temp = 0;\n }\n \n if ($denom_temp > $borrow_temp) {\n $s_temp = (10 + $borrow_temp) - $denom_temp;\n $c_temp = 1;\n }\n \n if ($borrow_temp == $denom_temp) {\n $s_temp = 0;\n $c_temp = 0;\n }\n \n $q = $q - 1;\n \n $number_string = $number_string . $s_temp;\n }\n \n $result_a = strrev($number_string);\n $result_a_len = strlen($result_a);\n \n while (substr($result_a, 0, 1) === '0' && $result_a_len > 0) {\n $result_a = substr($result_a, 1);\n $result_a_len--;\n }\n \n return $sign . $result_a;\n \n } catch (\\Exception $e) {\n throw $e;\n }\n }", "title": "" }, { "docid": "6701634846533eccd3375909b61029a1", "score": "0.57536334", "text": "function compareOrder($a, $b)\r\n {\r\n return strnatcmp($a[3], $b[3]);\r\n }", "title": "" }, { "docid": "56f56d7b0ee69ab6955e7994f14d2cb1", "score": "0.5753347", "text": "function name_length_sort_hepKeywordNorm($a, $b)\n {\n if ( strlen($a->getHepKeywordNorm()) < strlen($b->getHepKeywordNorm()) ) return 1;\n if ( strlen($a->getHepKeywordNorm()) > strlen($b->getHepKeywordNorm()) ) return -1;\n return 0;\n }", "title": "" }, { "docid": "cb6e0e27c984abfdf32ee522e2458660", "score": "0.5748219", "text": "function sodium_memcmp(\n string $left,\n string $right\n): int {\n unset($right, $left);\n return 0;\n}", "title": "" }, { "docid": "8e8a9ad23083153f88e5b3ae6c070199", "score": "0.57480186", "text": "public static function diffTexts($a, $b) {\n Yii::import('ext.TextDiff.*');\n Yii::import('ext.TextDiff.Text.*');\n $diffObj = new TextDiff;\n // For some reason without the space this does not work.\n // Have no clue why but at least the space thing solves it\n $diffObj->getDiff(' ' . $a . ' ', ' ' . $b . ' ');\n\n return $diffObj->myOutput ? $diffObj->myOutput : Yii::t('global', 'Error trying to show the differences.');\n }", "title": "" }, { "docid": "25ff1128e0c36b8ae2886957060d9742", "score": "0.5725598", "text": "function f_Compare($a_name, $a_val, $b_name, $b_val) {\r\n\tif ($a_val>$b_val) {\r\n\t\t$x_val = $a_val;\r\n\t\t$a_val = $b_val;\r\n\t\t$b_val = $x_val;\r\n\t\t$x_name = $a_name;\r\n\t\t$a_name = $b_name;\r\n\t\t$b_name = $x_name;\r\n\t} \r\n\tf_EchoLine( '['.$a_name.'] is '.number_format($b_val/$a_val,2).' time faster than ['.$b_name.'] , that is a reduction of '.number_format(100*($b_val-$a_val)/$b_val,2).'% compared to ['.$b_name.'].' );\r\n}", "title": "" }, { "docid": "9aeab1a77927b7b1268ee24528ecde1c", "score": "0.57206994", "text": "function mb_similar_text(string $string1, string $string2, float &$percent = null): int {\n $compute_percentage = func_num_args() >= 3;\n\n if ($compute_percentage) {\n return MbSimilarText::mb_similar_text($string1, $string2, $percent);\n } else {\n return MbSimilarText::mb_similar_text($string1, $string2);\n }\n }", "title": "" }, { "docid": "31c60d3544a93e144754d174571d2235", "score": "0.5712063", "text": "public function searchSort($a, $b)\n\t{\n\t\tglobal $modSettings, $excludedWords;\n\n\t\t$x = strlen($a) - (in_array($a, $excludedWords) ? 1000 : 0);\n\t\t$y = strlen($b) - (in_array($b, $excludedWords) ? 1000 : 0);\n\n\t\treturn $y < $x ? 1 : ($y > $x ? -1 : 0);\n\t}", "title": "" }, { "docid": "a3da22669a4035ab34134af2de04cf30", "score": "0.5710864", "text": "public static function compare($a, $b) : int\n {\n return \\bccomp(static::string($a), static::string($b), static::$scale);\n }", "title": "" }, { "docid": "78f469795cf08b8f82e01d4874e7252a", "score": "0.5710258", "text": "private function tokensEqual(array|string $a, array|string $b): bool\n {\n if (is_string($a)) {\n return $a === $b;\n }\n\n return $a[0] === $b[0] && $a[1] === $b[1];\n }", "title": "" }, { "docid": "8147030be5e13f0c1def5ac60b3791c2", "score": "0.5707316", "text": "function long_long_equal($a,$b,$message) {\n if (! ($a===$b))\n if (! ((double)$a===$b))\n return check::fail($message . \": '$a'!=='$b'\");\n return TRUE;\n}", "title": "" }, { "docid": "3a4dc0efb4e22d6f607ea3847b3ef19a", "score": "0.56846565", "text": "function hash_equals($a, $b) {\n $nonce = mcrypt_create_iv(32, MCRYPT_DEV_URANDOM);\n return hash_hmac('sha256', $a, $nonce, true) === hash_hmac('sha256', $b, $nonce, true);\n }", "title": "" }, { "docid": "2cc6e41de68134182deafcada13c9f82", "score": "0.56845254", "text": "private function areNamesEqual($str1, $str2) {\n //if (contains($str1, \"ö\")) { --> Falsche Umlaute sind kein Thema, da Sonderzeichen komplett rausgefiltert werden\n\n if (contains($str1, \"--\")) {\n return true;\n }\n\n $_str1 = preg_replace('/[^A-Za-z0-9\\-]/', '', $str1);\n $_str1 = trim($_str1);\n $_str1 = strtolower($_str1);\n\n $_str2 = preg_replace('/[^A-Za-z0-9\\-]/', '', $str2);\n $_str2 = trim($_str2);\n $_str2 = strtolower($_str2);\n\n if (strcmp($_str1,$_str2) == 0) {\n return true;\n } else {\n // Remove abbreviated middle names e.g. Michael C. Williams\n $alternateStr1 = \"\";\n $alternateStr2 = \"\";\n $containsDot1 = contains($str1, \".\");\n if ($containsDot1) {\n $str1Expl = explode(\" \", $str1);\n foreach ($str1Expl as $str) {\n if (!contains($str, \".\") && !strlen($str) < 4) {\n $alternateStr1 = $alternateStr1 . \" \" . $str;\n }\n }\n } else {\n $alternateStr1 = $str1;\n }\n $containsDot2 = contains($str2, \".\");\n if ($containsDot2) {\n $str2Expl = explode(\" \", $str2);\n foreach ($str2Expl as $str) {\n if (!contains($str, \".\") && !strlen($str) < 4) {\n $alternateStr2 = $alternateStr2 . \" \" . $str;\n }\n }\n } else {\n $alternateStr2 = $str2;\n }\n // ... and try again\n if ($containsDot1 || $containsDot2) {\n return $this->areNamesEqual($alternateStr1, $alternateStr2);\n }\n\n return $this->compareByCharacter($_str1, $_str2);\n }\n }", "title": "" }, { "docid": "2d5ccafc70db2ad46026775d88631db5", "score": "0.5682263", "text": "public function _fileNameSort($a, $b)\n {\n return strcasecmp($a->queryName(), $b->queryName());\n }", "title": "" }, { "docid": "8d549418d0b2901c88329d52253ca3d5", "score": "0.5681373", "text": "function timing_safe_compare($safe, $user) {\n\t\t// Prevent issues if string length is 0\n\t\t$safe .= chr(0);\n\t\t$user .= chr(0);\n\n\t\t$safeLen = strlen($safe);\n\t\t$userLen = strlen($user);\n\n\t\t// Set the result to the difference between the lengths\n\t\t$result = $safeLen - $userLen;\n\n\t\t// Note that we ALWAYS iterate over the user-supplied length\n\t\t// This is to prevent leaking length information\n\t\tfor ($i = 0; $i < $userLen; $i++) {\n\t\t\t// Using % here is a trick to prevent notices\n\t\t\t// It's safe, since if the lengths are different\n\t\t\t// $result is already non-0\n\t\t\t$result |= (ord($safe[$i % $safeLen]) ^ ord($user[$i]));\n\t\t}\n\n\t\t// They are only identical strings if $result is exactly 0...\n\t\treturn $result === 0;\n\t}", "title": "" }, { "docid": "172b2a8065bc0c79a3def2bad48be29c", "score": "0.56646466", "text": "function sort_suffixes($a,$b){\n\t\t\t\treturn strlen($b)-strlen($a);\n\t\t\t}", "title": "" }, { "docid": "05df4107fc9f4c416ec58fd22c8a72b1", "score": "0.56571907", "text": "function name_length_sort_specie($a, $b)\n {\n if ( strlen($a->getSpecie()->getName()) < strlen($b->getSpecie()->getName()) ) return 1;\n if ( strlen($a->getSpecie()->getName()) > strlen($b->getSpecie()->getName()) ) return -1;\n return 0;\n }", "title": "" }, { "docid": "1ecdb71d729cad2602004469017d35a4", "score": "0.5632879", "text": "function alessthanb($a,$b,$DEBUG=False)\n\t{\n\t\t$num = array('1st','2nd','3rd','4th');\n\n\t\tif($DEBUG)\n\t\t{\n\t\t\techo'<br>Input values: '\n\t\t\t\t. 'A=\"'.$a.'\", B=\"'.$b.'\"';\n\t\t}\n\t\t$newa = str_replace('pre','.',$a);\n\t\t$newb = str_replace('pre','.',$b);\n\t\t$testa = explode('.',$newa);\n\t\tif(@$testa[1] == '')\n\t\t{\n\t\t\t$testa[1] = 0;\n\t\t}\n\n\t\t$testb = explode('.',$newb);\n\t\tif(@$testb[1] == '')\n\t\t{\n\t\t\t$testb[1] = 0;\n\t\t}\n\t\tif(@$testb[3] == '')\n\t\t{\n\t\t\t$testb[3] = 0;\n\t\t}\n\t\t$less = 0;\n\n\t\tfor($i=0;$i<count($testa);$i++)\n\t\t{\n\t\t\tif($DEBUG) { echo'<br>Checking if '. (int)$testa[$i] . ' is less than ' . (int)$testb[$i] . ' ...'; }\n\t\t\tif((int)$testa[$i] < (int)$testb[$i])\n\t\t\t{\n\t\t\t\tif ($DEBUG) { echo ' yes.'; }\n\t\t\t\t$less++;\n\t\t\t\tif($i<3)\n\t\t\t\t{\n\t\t\t\t\t/* Ensure that this is definitely smaller */\n\t\t\t\t\tif($DEBUG) { echo\" This is the $num[$i] octet, so A is definitely less than B.\"; }\n\t\t\t\t\t$less = 5;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif((int)$testa[$i] > (int)$testb[$i])\n\t\t\t{\n\t\t\t\tif($DEBUG) { echo ' no.'; }\n\t\t\t\t$less--;\n\t\t\t\tif($i<2)\n\t\t\t\t{\n\t\t\t\t\t/* Ensure that this is definitely greater */\n\t\t\t\t\tif($DEBUG) { echo\" This is the $num[$i] octet, so A is definitely greater than B.\"; }\n\t\t\t\t\t$less = -5;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif($DEBUG) { echo ' no, they are equal or of different length.'; }\n\t\t\t\t// makes sure eg. '1.0.0' is counted less the '1.0.0.xxx' !\n\t\t\t\t$less = count($testa) < count($testb) ? 1 : 0;\n\t\t\t}\n\t\t}\n\t\tif($DEBUG) { echo '<br>Check value is: \"'.$less.'\"'; }\n\t\tif($less>0)\n\t\t{\n\t\t\tif($DEBUG) { echo '<br>A is less than B'; }\n\t\t\treturn True;\n\t\t}\n\t\telseif($less<0)\n\t\t{\n\t\t\tif($DEBUG) { echo '<br>A is greater than B'; }\n\t\t\treturn False;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif($DEBUG) { echo '<br>A is equal to B'; }\n\t\t\treturn False;\n\t\t}\n\t}", "title": "" }, { "docid": "ef28a1c349e28cdd9b4c5486d0e241f3", "score": "0.5629902", "text": "function Comparison($obj1, $obj2)\n {\n // leading zero's, so i've had to alter this myself to remove them temporarily in the search\n \n // Basically, for both objects: If there the name starts with a-z and then a 0 (so it's a leading zero)\n // and the length of the name is different to the length of the other object's name:\n // e.g. \"C1\" and \"C2\" is fine, but \"C10\" and \"C020\" isn't\n // then we remove the first occurance of \"0\" from the name, otherwise just use the default name\n \n // Then compare as normal\n $A = ( preg_match(\"/^[a-z]0/i\", $obj1->get_name()) && strlen($obj1->get_name()) <> strlen($obj2->get_name()) ) ? preg_replace(\"/0/\", \"\", $obj1->get_name(), 1) : $obj1->get_name();\n $B = ( preg_match(\"/^[a-z]0/i\", $obj2->get_name()) && strlen($obj2->get_name()) <> strlen($obj1->get_name()) ) ? preg_replace(\"/0/\", \"\", $obj2->get_name(), 1) : $obj2->get_name();\n return ( strnatcasecmp($A, $B) == 0 ) ? 0 : ( strnatcasecmp($A, $B) > 0 ) ? 1 : -1;\n }", "title": "" }, { "docid": "80d5b37bfa3325b5144cbef2d707a240", "score": "0.56105477", "text": "function compareLarger($value1, $value2) {\n $v1v2 = (string) $value1 . (string) $value2;\n $v2v1 = (string) $value2 . (string) $value1;\n if ($v1v2 < $v2v1) {\n return 1;\n } else {\n return -1;\n }\n\n}", "title": "" }, { "docid": "8b058a297ad2bb7b698a4e28852fe43a", "score": "0.5609018", "text": "protected function sortFiles($a, $b)\n {\n foreach (array_keys($a) as $key) {\n $test = strcmp($a[$key], $b[$key]);\n if ($test) {\n return $test;\n }\n }\n }", "title": "" }, { "docid": "049cf0faa13206e27afa799bb59aa95d", "score": "0.55987376", "text": "public function compare($a, $b);", "title": "" }, { "docid": "ad147438bc4c6085f7e12c65c9be674c", "score": "0.5592852", "text": "public function compute(array $a, array $b) : float\n {\n return (float) array_sum(array_map('levenshtein', $a, $b));\n }", "title": "" }, { "docid": "5c31bda86000f091170ca3924a190c8b", "score": "0.5580489", "text": "public function benchComparison()\n\t{\n\t\t$string = (string) (123456789 + 123456789);\n\t}", "title": "" }, { "docid": "b89e8287b2c2ef053456f1b1e12fbc6d", "score": "0.55796987", "text": "public function sub($a, $b)\n {\n return gmp_strval(gmp_sub($a, $b));\n }", "title": "" }, { "docid": "81eaf1a553f0b9dd3ce391b0690d3cc4", "score": "0.55554676", "text": "function same_strings($str1, $str2, $flag = false)\n\t{\n\t\t// If flag, decapitalize strings\n\t\tif($flag)\n\t\t{\n\t\t\t$str1 = strtolower($str1);\n\t\t\t$str2 = strtolower($str2);\n\t\t}\n\t\tif (strcmp($str1, $str2) == 0) return true;\n\t\telse return false;\n\t}", "title": "" }, { "docid": "7f7c6f212b8c23d9e1fc3c7f6fedc488", "score": "0.5554239", "text": "private function compareServerByName($a, $b) {\r\n\t\treturn strcmp($a->name, $b->name);\r\n\t}", "title": "" }, { "docid": "1ba243065ccda1c5d284cd8baf629136", "score": "0.55501807", "text": "function compareName($a, $b) {\n return strnatcasecmp($a['name'], $b['name']);\n}", "title": "" }, { "docid": "aa456d48ab07040baf9559759b4d18a3", "score": "0.5549327", "text": "function intersection($string1, $string2) {\n \n if(similar_text($string1, $string2) == 0)\n return false;\n else \n return true;\n \n}", "title": "" }, { "docid": "4c4d4e0419e6cf645aad67a32545138b", "score": "0.55304503", "text": "function name_length_sort_termVariant($a, $b)\n {\n if ( strlen($a->getTermVariant()) < strlen($b->getTermVariant()) ) return 1;\n if ( strlen($a->getTermVariant()) > strlen($b->getTermVariant()) ) return -1;\n return 0;\n }", "title": "" }, { "docid": "969b5cba2df212dc86c6c09d8b4c54bb", "score": "0.55257225", "text": "public function filemtime_compare($a, $b) {\n\t\t$break = explode ( '/', $_SERVER ['SCRIPT_FILENAME'] );\n\t\t$filename = $break [count ( $break ) - 1];\n\t\t$filepath = str_replace ( $filename, '', $_SERVER ['SCRIPT_FILENAME'] );\n\t\n\t\t$file_a = realpath ( $filepath . $a );\n\t\t$file_b = realpath ( $filepath . $b );\n\t\n\t\treturn filemtime ( $file_a ) - filemtime ( $file_b );\n\t}", "title": "" }, { "docid": "9fac9c4f31d51543c5e7961d175872c2", "score": "0.5504721", "text": "public function _fileNameSort($a, $b)\n {\n return strcasecmp($a->getFileName(), $b->getFileName());\n }", "title": "" } ]
26331dd6f2dcc940079bfe638fb28f7f
Get the current state of the game
[ { "docid": "4a110beb7e9cf3569bba7fad44deea28", "score": "0.6729465", "text": "abstract public function getState();", "title": "" } ]
[ { "docid": "ad6555824dba5c2eaec8b537c3f23430", "score": "0.7399191", "text": "public function __lime_getState();", "title": "" }, { "docid": "4c1e0de1108ea00a0bdc1c9fcdb96645", "score": "0.732653", "text": "public function getCurrentState() {\n return $this->currentState;\n }", "title": "" }, { "docid": "2365ad581244476fb0496da2d419f8cc", "score": "0.72154784", "text": "function getState();", "title": "" }, { "docid": "3337c0697228b8b05eb0a431453990a9", "score": "0.71999735", "text": "public function state()\n {\n return $this->state->state;\n }", "title": "" }, { "docid": "540a4db260bbf6b28e86eb4dd82cfcbd", "score": "0.7173842", "text": "public function state()\n\t{\n\t\treturn $this->state;\n\t}", "title": "" }, { "docid": "38a681d08f8fb3b36f1fa746c1a2312c", "score": "0.7111517", "text": "public function getState();", "title": "" }, { "docid": "38a681d08f8fb3b36f1fa746c1a2312c", "score": "0.7111517", "text": "public function getState();", "title": "" }, { "docid": "38a681d08f8fb3b36f1fa746c1a2312c", "score": "0.7111517", "text": "public function getState();", "title": "" }, { "docid": "38a681d08f8fb3b36f1fa746c1a2312c", "score": "0.7111517", "text": "public function getState();", "title": "" }, { "docid": "38a681d08f8fb3b36f1fa746c1a2312c", "score": "0.7111517", "text": "public function getState();", "title": "" }, { "docid": "38a681d08f8fb3b36f1fa746c1a2312c", "score": "0.7111517", "text": "public function getState();", "title": "" }, { "docid": "38a681d08f8fb3b36f1fa746c1a2312c", "score": "0.7111517", "text": "public function getState();", "title": "" }, { "docid": "38a681d08f8fb3b36f1fa746c1a2312c", "score": "0.7111517", "text": "public function getState();", "title": "" }, { "docid": "38a681d08f8fb3b36f1fa746c1a2312c", "score": "0.7111517", "text": "public function getState();", "title": "" }, { "docid": "a0f1da95fe30629ff739e442eca374de", "score": "0.7066379", "text": "function getState()\n\t{\n\t\treturn $this->Info['State'];\n\t}", "title": "" }, { "docid": "d8a3278db666988e9e09ce190031f5ef", "score": "0.7033809", "text": "public function state()\n {\n return $this->state;\n }", "title": "" }, { "docid": "d18fa82296f4e6b031559ecc6d6caefd", "score": "0.6968978", "text": "public function getState(){\r\r\n\t\treturn $this->state;\r\r\n\t}", "title": "" }, { "docid": "b633e161eafbedef273700728dafa67b", "score": "0.6964328", "text": "public function getState() {\n\t\treturn $this->state;\n\t}", "title": "" }, { "docid": "b633e161eafbedef273700728dafa67b", "score": "0.6964328", "text": "public function getState() {\n\t\treturn $this->state;\n\t}", "title": "" }, { "docid": "7f707d50ad0fc08915368eb2fcf683fe", "score": "0.6949982", "text": "function getState()\n\t{\n\t\treturn $this->state;\n\t}", "title": "" }, { "docid": "145d1c4da06afa87e6d9679a14ba827b", "score": "0.6947405", "text": "public function getState()\n {\n return StateKeys::get($this->state);\n }", "title": "" }, { "docid": "351d129441700ddd11d02d769015f89a", "score": "0.6934145", "text": "public function state() {\n \n return $this->stat;\n \n }", "title": "" }, { "docid": "358eb4bae50f20219395f53cbc63a48c", "score": "0.6923122", "text": "public function getState()\n\t{\n\t\treturn $this->state;\n\t}", "title": "" }, { "docid": "777d467051b6ed498577922efb46deed", "score": "0.69191647", "text": "public function getState()\n {\n return $this->_state->getValue();\n }", "title": "" }, { "docid": "11f85cb8c7f36b228347f9541e109d98", "score": "0.6906203", "text": "public function getState()\n {\n return $this->state; \n }", "title": "" }, { "docid": "3b61be383d5da830d3baa5a49241594c", "score": "0.68685687", "text": "function getState() {\n //Initialize the state\n $this->state = 0;\n //Update the state\n $this->updateStateDivisible($this->number);\n //Get the updated state\n return $this->state;\n }", "title": "" }, { "docid": "2b41728aeb94dd83ac3cff6976137686", "score": "0.6856269", "text": "public function getState() {\n\n // return the current desired state\n return $this->desiredState;\n }", "title": "" }, { "docid": "b11d671b6fe63cf890700358f4da107a", "score": "0.6847764", "text": "public function getState() {\n return $this->state;\n }", "title": "" }, { "docid": "8feb35c8a874669c94d65a7a7ae48db4", "score": "0.6824756", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "a23f5c61be3bf8e0b4bb8338ae2f0ecb", "score": "0.6821675", "text": "function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "c242ab8338eafcbd39df0e1ab0e0309b", "score": "0.68198204", "text": "protected function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "7ebd5666831c5dd50f0972645ff126e5", "score": "0.68145484", "text": "public function getState()\n {\n return $this->getData(self::STATE);\n }", "title": "" }, { "docid": "17d7ae1a417a864ce73f1269969edc6a", "score": "0.6813981", "text": "public function getState()\n\t{\n\t\treturn $this->_state;\n\t}", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "488f50fbbe40ae8e6c9ce31d3f98919b", "score": "0.68074226", "text": "public function getState()\n {\n return $this->state;\n }", "title": "" }, { "docid": "871b528e2499d85637112df50279b41f", "score": "0.6801343", "text": "function getState()\r\n {\r\n return $this->_state;\r\n }", "title": "" }, { "docid": "d0537a6fde4ca027fda427b865c2e62e", "score": "0.6797034", "text": "public function getState() {\n return $this->state;\n }", "title": "" }, { "docid": "d0537a6fde4ca027fda427b865c2e62e", "score": "0.6797034", "text": "public function getState() {\n return $this->state;\n }", "title": "" }, { "docid": "d0537a6fde4ca027fda427b865c2e62e", "score": "0.6797034", "text": "public function getState() {\n return $this->state;\n }", "title": "" }, { "docid": "4054a1ea523a2588184e3bf21342753d", "score": "0.67936987", "text": "public function getState() {\n\t\treturn Temboo_Results::getSubItemByKey($this->base, \"state\");\n\t}", "title": "" }, { "docid": "e5a39f6636d455296924abbaa7d7a392", "score": "0.6771328", "text": "public function getState()\r\n {\r\n return $this->_state;\r\n }", "title": "" }, { "docid": "f53235a7fe14b39108c0051e19d5d6f5", "score": "0.6765243", "text": "public function state();", "title": "" }, { "docid": "9319906a1609220b335b8832d516d7d7", "score": "0.67386216", "text": "public function getState()\n {\n return $this->_state;\n }", "title": "" }, { "docid": "fa44fd65d142bd21a1d6f6d6f9e3b744", "score": "0.67361647", "text": "public function getState() {\n return $this->_state;\n }", "title": "" }, { "docid": "632e95970a5ba1453703f6243df488b0", "score": "0.673364", "text": "public function stateIs()\n {\n return $this->stateMachine()->getState();\n }", "title": "" }, { "docid": "c01946c7d1c90c80f2c3936b3e287a39", "score": "0.6722735", "text": "public function get_state() {\n \n return $this->state;\n \n }", "title": "" }, { "docid": "7f51e7449946dddfb73fef53edc475eb", "score": "0.6654963", "text": "public function getState()\n {\n $now = new \\DateTime();\n $startedAt = $this->getStartedAt();\n $endedAt = $this->getEndedAt();\n\n if ($startedAt > $now) {\n return self::STATE_BEFORE;\n }\n if ($this->endedAt && $now >= $endedAt) {\n return self::STATE_AFTER;\n }\n\n return self::STATE_CURRENT;\n }", "title": "" }, { "docid": "f9fa66f9f584af602f1023a746bf9d7b", "score": "0.66275823", "text": "public function GetState()\n\t{\n\t\treturn $this->record->state;\n\t}", "title": "" }, { "docid": "38d60a67925d49ec09cb672d7e037789", "score": "0.6622493", "text": "public function getState()\n {\n return $this->getValue();\n }", "title": "" }, { "docid": "36ce2428f13b7a89045b631c179408d0", "score": "0.6605065", "text": "public function getIngame() {\n\t\treturn $this->_ingame;\n\t}", "title": "" }, { "docid": "2de1b281f3b76fffab556061245c7577", "score": "0.65728223", "text": "public function getState()\n {\n if (array_key_exists($this->current_status, $this->current_state)) {\n\n return $this->current_state[$this->current_status];\n }\n\n return null;\n }", "title": "" }, { "docid": "1e1bb5ad82baabf7c91b3ee450603abc", "score": "0.6566703", "text": "public function getState()\n {\n return isset($this->state) ? $this->state : '';\n }", "title": "" }, { "docid": "49c65d222f0fb7a40078530d478661f4", "score": "0.6565489", "text": "public function getCustomState();", "title": "" }, { "docid": "643c4b33c849d8354b4abb54a2431f1a", "score": "0.65501285", "text": "public function getStateDetails()\n {\n $json = $this->call('netusb', 'getPlayInfo');\n return State::buildState($json, $this->getIp());\n }", "title": "" }, { "docid": "de37c0ba2a73d0aa66d8d3ae19ae0a10", "score": "0.65485007", "text": "public function getState()\n {\n $name = $this->getStateName();\n switch ($name) {\n case \"stop\":\n return self::STATE_STOPPED;\n case \"play\":\n return self::STATE_PLAYING;\n case \"pause\":\n return self::STATE_PAUSED;\n case \"fast_reverse\":\n return self::STATE_TRANSITIONING;\n case \"fast_forward\":\n return self::STATE_TRANSITIONING;\n }\n return self::STATE_UNKNOWN;\n }", "title": "" }, { "docid": "4ffb8c0507a5453e6031457e762e14d1", "score": "0.6540428", "text": "public function getFiniteState();", "title": "" }, { "docid": "038a84493523f17da6614371cd5147fc", "score": "0.651694", "text": "public function getState(): string;", "title": "" }, { "docid": "038a84493523f17da6614371cd5147fc", "score": "0.651694", "text": "public function getState(): string;", "title": "" } ]
daaa4a987546d5f1f7b1daae3efb0c3b
/fin de funcion / funcion que almacena las actividades masivas x empleado determina los empleados que tienen brecha en las competencias seleccionadas ingresa una actividad por empleado y registra de que id_masivo es.
[ { "docid": "6070988529cea38de53ca4bb8e8fbd23", "score": "0.5832369", "text": "function registrar_actividadxempleado($competencias,$opcion,$idmasivo,$id_actividad,$id_especializacion,$id_tema,$t_tema,$t_area_en,$FRevision_S,$FPInicio_S,$FPFinal_S,$FRInicio_S,$FRFinal_S,$iniciado,$finalizado,$coment,$color,$idreponsable){\nparent::conectar();\nforeach ($competencias as $item => $valor) {\n if(is_array($valor)){\n foreach ($valor as $item2 => $idcompetencia) {\n $sql=\"SELECT opciones_empleado.ID_OPCIONES FROM competenciasxempleado \n INNER JOIN opciones_empleado ON(competenciasxempleado.CODIGOEMPLEADO=opciones_empleado.CODIGOEMPLEADO)\n INNER JOIN competenciasxcargo ON(opciones_empleado.IDCARGO=competenciasxcargo.IDCARGO AND \n competenciasxempleado.ID_COMPETENCIA=competenciasxcargo.ID_COMPETENCIA)\n WHERE competenciasxempleado.ID_COMPETENCIA=$idcompetencia AND EVALUADOR='XX010101'\n AND VALORR IS NOT NULL AND OPCION=$opcion AND (VALORR-VALORDESEABLE)<0\";\n $record_consulta=$this->obj_con->Execute($sql);\n if($record_consulta->RecordCount()<=0){\n }else{\n while (!$record_consulta->EOF) {\n $idopcion=$record_consulta->fields[\"ID_OPCIONES\"];\n $sql2=\"CALL registraactividadxempleado($idopcion,$id_actividad,$id_especializacion,$id_tema,'$t_tema','$t_area_en','$FRevision_S','$FPInicio_S','$FPFinal_S','$FRInicio_S','$FRFinal_S',$iniciado,$finalizado,'$coment','$color',$idreponsable,$idmasivo)\";\n $this->obj_con->Execute($sql2);\n $record_consulta->MoveNext();\n }\n \n } \n }\n }else{\n $sql=\"SELECT opciones_empleado.ID_OPCIONES FROM competenciasxempleado \n INNER JOIN opciones_empleado ON(competenciasxempleado.CODIGOEMPLEADO=opciones_empleado.CODIGOEMPLEADO)\n INNER JOIN competenciasxcargo ON(opciones_empleado.IDCARGO=competenciasxcargo.IDCARGO AND \n competenciasxempleado.ID_COMPETENCIA=competenciasxcargo.ID_COMPETENCIA)\n WHERE competenciasxempleado.ID_COMPETENCIA=$valor AND EVALUADOR='XX010101'\n AND VALORR IS NOT NULL AND OPCION=$opcion AND (VALORR-VALORDESEABLE)<0\";\n $record_consulta=$this->obj_con->Execute($sql);\n if($record_consulta->RecordCount()<=0){\n }else{\n while(!$record_consulta->EOF){\n $idopcion=$record_consulta->fields[\"ID_OPCIONES\"];\n $sql2=\"CALL registraactividadxempleado($idopcion,$id_actividad,$id_especializacion,$id_tema,'$t_tema','$t_area_en','$FRevision_S','$FPInicio_S','$FPFinal_S','$FRInicio_S','$FRFinal_S',$iniciado,$finalizado,'$coment','$color',$idreponsable,$idmasivo)\";\n $this->obj_con->Execute($sql2);\n $record_consulta->MoveNext();\n }\n\n }\n\n }\n }\n}", "title": "" } ]
[ { "docid": "1de1133c735cfbb0e169aade4b70f5d9", "score": "0.62599653", "text": "function get_actividadesMasivas($id_realiza,$idarea){\n parent::conectar();\n $sql=\"SELECT * FROM view_actividades_masivas WHERE IDAREAXACTIVIDAD IN (SELECT IDAREAXACTIVIDAD FROM areas_x_actividad WHERE ID_AREA=$idarea AND IDAREAXACTIVIDAD!=11 ORDER BY ACTIVIDAD) AND ID_REALIZA=$id_realiza\";\n $record_consulta=$this->obj_con->Execute($sql);\n if($record_consulta->RecordCount()<=0){\n $data1[] = array('idmasivo'=>0,'idareaxactividad'=>0,'nombreactividad'=>'sin registros','idareaa'=>0,'nombreareas'=>'sin registros','idtemaxarea'=>0,'temaxarea'=>'sin registros','idcargo'=>0,'responsable'=>'sin registros','tema'=>'sin registros','area_en'=>'sin registros','fechaRevision'=>'','fechaini'=>'','fechafin'=>'','fecharealinicio'=>'','fecharealfin'=>'','sininiciar'=>0,'tsinsiniciar'=>'sin registros','sinfinalizar'=>0,'tsinfinalizar'=>'sin registros','comentario'=>'sin registros','estado'=>'');\n }else{\n while(!$record_consulta->EOF){\n $idmasivo=$record_consulta->fields[\"ID_MASIVO\"];\n $idareaxactividad=$record_consulta->fields[\"IDAREAXACTIVIDAD\"];\n $nombreactivi=$record_consulta->fields[\"nombreactividad\"];\n $idareaa=$record_consulta->fields[\"ID_AREA_A\"];\n $nombrearea=$record_consulta->fields[\"nombreareas\"];\n $idtxarea=$record_consulta->fields[\"idtemaxarea\"];\n $txarea=$record_consulta->fields[\"temaxarea\"];\n $cargoId=$record_consulta->fields[\"IDCARGO\"];\n $responsa=$record_consulta->fields[\"responsable\"];\n $tem=$record_consulta->fields[\"tema\"];\n $areaen=$record_consulta->fields[\"area_en\"];\n $frevision=$record_consulta->fields[\"fecharevision\"];\n $finicio=$record_consulta->fields[\"fechaini\"];\n $ffin=$record_consulta->fields[\"fechafin\"];\n $frinicio=$record_consulta->fields[\"fecharealinicio\"];\n $frfinal=$record_consulta->fields[\"fecharealfin\"];\n $inicio=$record_consulta->fields[\"sininiciar\"];\n $t_iniciado=$record_consulta->fields[\"iniciado\"];\n $final=$record_consulta->fields[\"sinfinalizar\"];\n $t_finalizado=$record_consulta->fields[\"finalizado\"];\n $comentarios=$record_consulta->fields[\"comentario\"];\n $color=$record_consulta->fields[\"estado\"];\n $data1[] = array('idmasivo'=>$idmasivo,'idareaxactividad'=>$idareaxactividad,'nombreactividad'=>$nombreactivi,'idareaa'=>$idareaa,'nombreareas'=>$nombrearea,'idtemaxarea'=>$idtxarea,'temaxarea'=>$txarea,'idcargo'=>$cargoId,'responsable'=>$responsa,'tema'=>$tem,'area_en'=>$areaen,'fechaRevision'=>$frevision,'fechaini'=>$finicio,'fechafin'=>$ffin,'fecharealinicio'=>$frinicio,'fecharealfin'=>$frfinal,'sininiciar'=>$inicio,'tsininiciar'=>$t_iniciado,'sinfinalizar'=>$final,'tsinfinalizar'=>$t_finalizado,'comentario'=>$comentarios,'estado'=>$color);\n $record_consulta->MoveNext();\n }\n}\n\n$repuesta = array('success'=>true,'data'=>$data1); \nreturn $repuesta;\n}", "title": "" }, { "docid": "fde5bf2e25380753507f255a25c89f06", "score": "0.6189187", "text": "function modificarBoletosObservados(){\r\n $this->procedimiento='obingresos.ft_boletos_observados_ime';\r\n $this->transaccion='OBING_BOBS_MOD';\r\n $this->tipo_procedimiento='IME';\r\n\r\n //Define los parametros para la funcion\r\n $this->setParametro('id_boletos_observados','id_boletos_observados','int4');\r\n $this->setParametro('estado_reg','estado_reg','varchar');\r\n $this->setParametro('pnr','pnr','varchar');\r\n $this->setParametro('nro_autorizacion','nro_autorizacion','varchar');\r\n $this->setParametro('moneda','moneda','varchar');\r\n $this->setParametro('importe_total','importe_total','numeric');\r\n $this->setParametro('fecha_emision','fecha_emision','date');\r\n $this->setParametro('estado_p','estado_p','varchar');\r\n $this->setParametro('forma_pago','forma_pago','varchar');\r\n $this->setParametro('medio_pago','medio_pago','varchar');\r\n $this->setParametro('instancia_pago','instancia_pago','varchar');\r\n $this->setParametro('office_id_emisor','office_id_emisor','varchar');\r\n $this->setParametro('pnr_prov','pnr_prov','varchar');\r\n $this->setParametro('nro_autorizacion_prov','nro_autorizacion_prov','varchar');\r\n $this->setParametro('office_id_emisor_prov','office_id_emisor_prov','varchar');\r\n $this->setParametro('importe_prov','importe_prov','numeric');\r\n $this->setParametro('moneda_prov','moneda_prov','varchar');\r\n $this->setParametro('estado_prov','estado_prov','varchar');\r\n $this->setParametro('fecha_autorizacion_prov','fecha_autorizacion_prov','date');\r\n $this->setParametro('tipo_error','tipo_error','varchar');\r\n $this->setParametro('tipo_validacion','tipo_validacion','varchar');\r\n $this->setParametro('prov_informacion','prov_informacion','varchar');\r\n //$this->setParametro('id_instancia_pago','id_instancia_pago','int4');\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $this->ejecutarConsulta();\r\n\r\n //Devuelve la respuesta\r\n return $this->respuesta;\r\n }", "title": "" }, { "docid": "740aecd98e4e13eb3bf9e9fd521c5b27", "score": "0.6178778", "text": "public function agregar_tiposMantenimiento_controlador(){\n\t\t\tif (!empty($_POST['opcion-reg'])) {\n\t\t\t\t$opcion=mainModel::limpiar_cadena($_POST['opcion-reg']);\n\t\t\t\t\t\t\n\t\t\t\tif ($opcion=='CORRECTIVO' || $opcion=='DE BAJA' || $opcion=='PREVENTIVO') {\n\t\t\t\t\n\t\t\t\t\t$consultacod=mainModel::ejecutar_consulta_simple(\"SELECT tipomantecodigo FROM tipo_mantenimiento\");\n\t\t\t\t\t$numero=($consultacod->rowCount())+1;\n\t\t\t\t\t$codigo=mainModel::generar_codigo_aleatorio(\"TIPMANT\",7,$numero);\n\n\t\t\t\t\t$consulta1=mainModel::ejecutar_consulta_simple(\"SELECT tipomantecodigo FROM tipo_mantenimiento WHERE tipomantecodigo='$codigo'\");\n\t\t\t\t\tif ($consulta1->rowCount()<=0) {\n\t\t\t\t\t\t$consulta2=mainModel::ejecutar_consulta_simple(\"SELECT tipomantenombre FROM tipo_mantenimiento WHERE tipomantenombre='$opcion'\");\n\t\t\t\t\t\tif ($consulta2->rowCount()<=0) {\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t$datostiposMantenimiento=[\n\t\t\t\t\t\t\t\t\"CODIGO\"=>$codigo,\n\t\t\t\t\t\t\t\t\"OPCION\"=>$opcion,\n\t\t\t\t\t\t\t];\n\t\t\t\t\t\t\t$guardartiposMantenimiento=tiposMantenimientoModelo::agregar_tiposMantenimiento_modelo($datostiposMantenimiento);\n\t\t\t\t\t\t\tif ($guardartiposMantenimiento->rowCount()>=1) {\n\t\t\t\t\t\t\t\t$alerta=[\n\t\t\t\t\t\t\t\t\t\"Alerta\"=>\"recargar\",\n\t\t\t\t\t\t\t\t\t\"Titulo\"=>\"Felicitaciones!\",\n\t\t\t\t\t\t\t\t\t\"Texto\"=>\"El tipo del mantenimiento se ha registrado con éxito\",\n\t\t\t\t\t\t\t\t\t\"Tipo\"=>\"success\"\n\t\t\t\t\t\t\t\t];\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$alerta=[\n\t\t\t\t\t\t\t\t\t\"Alerta\"=>\"simple\",\n\t\t\t\t\t\t\t\t\t\"Titulo\"=>\"Ocurrio un error inesperado\",\n\t\t\t\t\t\t\t\t\t\"Texto\"=>\"No se ha podido guardar el tipo del mantenimiento, porfavor intente nuevamente\",\n\t\t\t\t\t\t\t\t\t\"Tipo\"=>\"error\"\n\t\t\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\t\t$alerta=[\n\t\t\t\t\t\t\t\t\"Alerta\"=>\"simple\",\n\t\t\t\t\t\t\t\t\"Titulo\"=>\"Ocurrio un error inesperado\",\n\t\t\t\t\t\t\t\t\"Texto\"=>\"El tipo del mantenimiento ya se encuentra registrado en el sistema, por favor intente nuevamente\",\n\t\t\t\t\t\t\t\t\"Tipo\"=>\"error\"\n\t\t\t\t\t\t\t];\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$alerta=[\n\t\t\t\t\t\t\t\"Alerta\"=>\"simple\",\n\t\t\t\t\t\t\t\"Titulo\"=>\"Ocurrio un error inesperado\",\n\t\t\t\t\t\t\t\"Texto\"=>\"El código que se genero para el tipo de mantenimiento del hardware ya se encuentra en el sistema, porfavor intente nuevamente recargando la página\",\n\t\t\t\t\t\t\t\"Tipo\"=>\"error\"\n\t\t\t\t\t\t];\n\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\"Alerta\"=>\"simple\",\n\t\t\t\t\t\t\"Titulo\"=>\"Ocurrio un error inesperado\",\n\t\t\t\t\t\t\"Texto\"=>\"Solo puede ingresar los tipos del mantenimiento de hardware que vienen por defecto en el sistema\",\n\t\t\t\t\t\t\"Tipo\"=>\"error\"\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$alerta=[\n\t\t\t\t\t\"Alerta\"=>\"simple\",\n\t\t\t\t\t\"Titulo\"=>\"Ocurrió un error inesperado\",\n\t\t\t\t\t\"Texto\"=>\"Faltan campos por llenar\",\n\t\t\t\t\t\"Tipo\"=>\"error\"\n\t\t\t\t];\n\t\t\t}\n\t\t\treturn mainModel::sweet_alert($alerta);\n\t\t}", "title": "" }, { "docid": "3ca1e9f5e6236f86517afe47736eb454", "score": "0.60130394", "text": "function vista_asignar_mesa($objeto) {\n\t// Si el objeto viene vacio(llamado desde el index) se le asigna el $_REQUEST que manda el Index\n\t// Si no conserva su valor normal\n\t\t$objeto = (empty($objeto)) ? $_REQUEST : $objeto;\n\t\t$objeto['asignar'] = 1;\n\t\t$objeto['f_ini'] = date('Y-m-d') . ' 00:01';\n\t\t$objeto['f_fin'] = date('Y-m-d') . ' 23:59';\n\t\t$mesas = $this -> reservacionesModel -> getTables($objeto);\n\t\t$mesas = $mesas['rows'];\n\t\tforeach ($mesas as $key => $value) {\n\t\t\tif($value['id_tipo_mesa'] == 7){\n\t\t\t\t$value['individual'] = 1;\n\t\t\t\t$value['f_ini'] = date('Y-m-d') . ' 00:01';\n\t\t\t\t$value['f_fin'] = date('Y-m-d') . ' 23:59';\n\t\t\t\t$mesas[$key]['sillas'] = $this -> reservacionesModel -> getSillas($value);\n\t\t\t}\n\t\t}\n\t\t//print_r($mesas);\n\t\tforeach ($mesas as $key => $value) {\n\t\t\t\n\t\t\tif($value[\"tipo\"] == 0 && isset($value[\"mesa\"]) && $value['mesa_status'] != 4 && $value['id_res'] == null){\n\t\t\t\tif($this -> reservacionesModel -> mesas_ocupadas($value[\"mesa\"]) == 0){\n\t\t\t\t\tif($value['id_tipo_mesa'] == 7 ){\n\t\t\t\t\t\tforeach ($value['sillas'] as $key => $row) {\n\t\t\t\t\t\t\tif($this -> reservacionesModel -> mesas_ocupadas($row[\"mesa\"]) == 0 && $row['mesa_status'] != 4 && $row['id_res'] == null){\n\t\t\t\t\t\t\t\t$row[\"junta\"] = $this -> reservacionesModel -> mesa_junta($row[\"mesa\"]);\n\t\t\t\t\t\t\t\t$mesas_libres[] = $row;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if($value['id_tipo_mesa'] != 8) {\n\t\t\t\t\t\t$value[\"junta\"] = $this -> reservacionesModel -> mesa_junta($value[\"mesa\"]);\n\t\t\t\t\t\t$mesas_libres[] = $value;\n\t\t\t\t\t}\t\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t}\n\n\t\t$areas = $this -> reservacionesModel -> areas($objeto);\n\t\t$_SESSION['area_princ'] = $this -> reservacionesModel -> first_area($objeto);\n\t\t$area_princ = $_SESSION['area_princ'];\n\t\t\n\t\trequire ('views/reservaciones/vista_asignar_mesa.php');\n\t}", "title": "" }, { "docid": "bbf8c11e206b39eb00142ba981986c43", "score": "0.6003068", "text": "function modificar_egresoEmpleado($idEmpleado, $fechaEgreso, $motivoEgreso){\n\t\t$conexion_bd = conectar_bd();\n\n\t\t//Prepara la consulta\n\t\t$dml_editar = 'UPDATE empleado SET fegreso=(?), motivoegreso=(?) WHERE idEmpleado=(?)';\n\t\tif ( !($statement = $conexion_bd->prepare($dml_editar)) ) {\n\t\t\tdie(\"Error: (\" . $conexion_bd->errno . \") \" . $conexion_bd->error);\n\t\t\treturn 0;\n\t\t}\n\n\t\t//Unir los parámetros de la función con los parámetros de la consulta\n\t\t//El primer argumento de bind_param es el formato de cada parámetro\n\t\tif (!$statement->bind_param(\"ssi\", $fechaEgreso, $motivoEgreso, $idEmpleado)) {\n\t\t\tdie(\"Error en vinculación: (\" . $statement->errno . \") \" . $statement->error);\n\t\t\treturn 0;\n\t\t}\n\n\t\t//Executar la consulta\n\t\tif (!$statement->execute()) {\n\t\t die(\"Error en ejecución: (\" . $statement->errno . \") \" . $statement->error);\n\t\t\treturn 0;\n\t\t}\n\n\t\tdesconectar_bd($conexion_bd);\n\t\t return 1;\n\t}", "title": "" }, { "docid": "7a2129788bd70991a354676b29de3085", "score": "0.5964456", "text": "public function guardarActivHorario()\n {\n // Array asociativo que almacenará los mensajes de error que se generen por cada campo\n $errores = array();\n $actividad_id = NULL;\n $dia = NULL;\n $hora_inicio = NULL;\n $fecha_alta = NULL;\n // Almacenamos en el array 'parametros[]'los valores que vamos a mostrar en la vista\n\n // Si se ha pulsado el botón guardar...\n if (isset($_POST) && !empty($_POST) && isset($_POST['submit'])) { // y hemos recibido las variables del formulario y éstas no están vacías...\n $actividad_id = $_POST['nombre'];\n $dia = $_POST[\"dia\"];\n $hora_inicio = $_POST['hora'];\n $fecha_alta = $_POST['fecha_alta'];\n\n // Si no se han producido errores realizamos el registro del usuario\n if (count($errores) == 0) {\n $resultModelo = $this->modelo->agregaActivHorario([\n 'dia' => $dia,\n 'hora_inicio' => $hora_inicio,\n 'actividad_id' => $actividad_id,\n 'fecha_alta' => $fecha_alta\n ]);\n $this->mensajes[] = [\n \"tipo\" => \"success\",\n \"mensaje\" => \"El listado se realizó correctamente\"\n ];\n } else {\n $this->mensajes[] = [\n \"tipo\" => \"danger\",\n \"mensaje\" => \"Datos de registro de usuario erróneos!! :(\"\n ];\n }\n }\n\n $this->listarHorarioAdmin();\n }", "title": "" }, { "docid": "ff806720a06716c35e0985a592b14208", "score": "0.5963593", "text": "public static function buscarMensajes($archivo, $tipo, $emisor)\r\n {\r\n $mensajes = funciones::Leer($archivo);\r\n /*array_search ( mixed $needle , array $haystack [, bool $strict = false ] ) : mixed\r\n Busca en el haystack (pajar) por la needle (aguja).*/\r\n $fechaultima = 0;\r\n $seleccion = array();\r\n if(! empty($mensajes)){\r\n /*\r\n Si es user, se muestran los datos de todas las personas a las que se les envió un\r\n mensaje (email, fecha y texto del último mensaje). \r\n Si es admin se muestran los pares de usuarios que tuvieron\r\n mensajes (ejemplo: Maria - jose - fecha). \r\n */\r\n foreach ($mensajes as $key => $value) {\r\n // var_dump($value); echo \"$key\";\r\n $userE = usuario::dameDatos($value->emisorId); \r\n $userR = usuario::dameDatos($value->destinoId);\r\n if($tipo == 'admin')\r\n {\r\n if($userE == 'datos no encontrados'){\r\n array_push($seleccion, 'no hay mensajes para mostrar');\r\n }\r\n else{\r\n array_push($seleccion, $userE->email . '=>' . $userR->email . '=>' . $value->fecha);\r\n // var_dump($userE);\r\n // var_dump($userR);\r\n }\r\n }\r\n else {\r\n if($emisor == $value->emisorId)\r\n {\r\n // array_push($seleccion, $value);\r\n array_push($seleccion, $userR->email . '=>' . $value->fecha . '=>' . $value->mensaje);\r\n }\r\n }\r\n }\r\n }\r\n return $seleccion;\r\n }", "title": "" }, { "docid": "a694708d475c7a6c5620d1b60fc0a51f", "score": "0.595807", "text": "public function AMostrarMuestrasSeleccionadosXpuntoControlExamenLabo($datos) {\n $oLLaboratorio = new LLaboratorio();\n $arrayListaMuestrasxPuntoDeControlxExamen = $oLLaboratorio->llistarMuestrasxPCxE($datos);\n// $arrayListaMaterialesxPuntoDeControlxExamen = $this->listarMatxPCxE($datos);\n\n $cadenaAcordionMuestrasxPuntoControlxExamenLabo = '';\n $cadenaAcordionMuestrasxPuntoControlxExamenLabo .= \"divDatosjc2*Observaciones#Muestras\";\n// $cadenaAcordionMuestrasxPuntoControlxExamenLabo.=\"|divMujc2*Descripcoón de Muestra\";\n\n foreach ($arrayListaMuestrasxPuntoDeControlxExamen as $value) {\n $div = \"divMuestra\" . trim($value[0]); //iIdExamenLaboratorioUnidadMedidaLaboratorio\n $nombreMuestra = utf8_encode($value[2]) . '#' . utf8_encode($value[4]) . '-' . utf8_encode($value[6]);\n $cadenaAcordionMuestrasxPuntoControlxExamenLabo.=\"|$div*$nombreMuestra\";\n }\n\n\n require_once(\"../../cvista/laboratorio/ListaDetalleMuestrasxPuntoControlExamenLaboratorio.php\");\n }", "title": "" }, { "docid": "f098dc5fa8a3472d41d76b239114c5d5", "score": "0.59454554", "text": "function set_nuevo_acuedo_automat($condicion_post) {\n// echo\"<pre>\";print_r($condicion_post);exit;\n $this->conectar();\n\n // -------------------- datos de acuerdo segun fecha maxima ------------ \n $query1 = $this->consulta(\"SELECT * FROM\n acuerdos\n WHERE acuerdos.dnic='\" . $condicion_post['dni_a'] . \"'\n ORDER BY acuerdos.fecha_verificacion DESC\n LIMIT 1\");\n $datos1 = array();\n while ($row = mysql_fetch_array($query1)) {\n $datos1[] = $row;\n }\n // -------------------- la minima fecha para poder actualizar ------------ \n $query2 = $this->consulta(\"SELECT MIN(acuerdos.fecha_verificacion) as minfecha\n FROM\n acuerdos\n WHERE acuerdos.dnic='\" . $condicion_post['dni_a'] . \"' \");\n $datos2 = array();\n while ($row = mysql_fetch_array($query2)) {\n $datos2[] = $row;\n }\n // -------------------- contamos cuantos acuerdo tiene la persona ------------ \n $query3 = $this->consulta(\"SELECT COUNT(acuerdos.idacuerdos) as cont\n FROM\n acuerdos\n WHERE acuerdos.dnic='\" . $condicion_post['dni_a'] . \"' \");\n $datos3 = array();\n while ($row = mysql_fetch_array($query3)) {\n $datos3[] = $row;\n }\n $fe = $datos1[0]['fecha_verificacion'];\n if ($datos1[0]['frecuencia_msj'] == 'DIARIO') {\n $fe2 = date(\"Y-m-d\", strtotime($fe . \"+ 1 day\"));\n } elseif ($datos1[0]['frecuencia_msj'] == 'SEMANAL') {\n $fe2 = date(\"Y-m-d\", strtotime($fe . \"+ 1 week\"));\n } elseif ($datos1[0]['frecuencia_msj'] == 'QUINCENAL') {\n $fe2 = date(\"Y-m-d\", strtotime($fe . \"+ 15 day\"));\n } elseif ($datos1[0]['frecuencia_msj'] == 'MENSUAL') {\n $fe2 = date(\"Y-m-d\", strtotime($fe . \"+ 1 month\"));\n } else {\n echo \"<script>alert(NO APLICA PARA ACUERDOS)</script>\";\n }\n\n\n\n\n if ($datos3[0][cont] == 3) {\n // -------------------- ejecutamos la actualizacion ------------ \n $query = $this->consulta(\"UPDATE `acuerdos` SET `idpersonal`=\" . $_SESSION['idpersonal'] . \", `dnic`='\" . $condicion_post['dni_a'] . \"',\"\n . \"`dnip`='\" . $_SESSION['dnipersonal'] . \"',\"\n . \" `acuerdos`='\" . $datos1[0]['acuerdos'] . \"',\"\n . \" `fecha_verificacion`='\" . $fe2 . \"', `fecha_visita`='\" . $datos1[0]['fecha_verificacion'] . \"',\"\n . \"`calificacion`='', `frecuencia_msj`='\" . $datos1[0]['frecuencia_msj'] . \"', `hora`='\" . $datos1[0]['hora'] . \"',`pagoen`='\" . $datos1[0]['pagoen'] . \"',`fuente`='\" . $datos1[0]['fuente'] . \"'\"\n . \"WHERE (`dnic`='\" . $condicion_post['dni_a'] . \"' and `fecha_verificacion`='\" . $datos2[0]['minfecha'] . \"')\");\n } else {\n $query = $this->consulta(\"INSERT INTO `acuerdos` (`idpersonal`, `dnic`, `dnip`, `acuerdos`,`fecha_verificacion`,`fecha_visita`,`calificacion`,`frecuencia_msj`,`hora`,`pagoen`,`fuente`)\"\n . \" VALUES ('\" . $_SESSION['idpersonal'] . \"', '\" . $condicion_post['dni_a'] . \"',\"\n . \"'\" . $_SESSION['dnipersonal'] . \"',\"\n . \" '\" . utf8_decode($datos1[0]['acuerdos']) . \"',\"\n . \" '\" . $fe2 . \"', '\" . $datos1[0]['fecha_verificacion'] . \"',\"\n . \"'', '\" . $datos1[0]['frecuencia_msj'] . \"', '\" . $datos1[0]['hora'] . \"', '\" . $datos1[0]['pagoen'] . \"','\" . $datos1[0]['fuente'] . \"')\");\n }\n //----------------------------poner datos a la nueva tabla acuerdo_pago\n // -------------------- buscamos si el dni esta o no ------------ \n $querya_p1 = $this->consulta(\" SELECT\n COUNT(acuerdo_pago.dni) as midni\n FROM\n acuerdo_pago\n WHERE acuerdo_pago.dni='\" . $condicion_post['dni_a'] . \"' \");\n $datosa_p1 = array();\n while ($row = mysql_fetch_array($querya_p1)) {\n $datosa_p1[] = $row;\n }\n\n if ($datosa_p1[0]['midni'] == 1) {\n\n $query = $this->consulta(\" UPDATE `acuerdo_pago` SET `fecha_visita`='\" . $datos1[0]['fecha_verificacion'] . \"',\n `fecha_verif`='\" . $fe2 . \"', `acuerdo`='\" . $datos1[0]['acuerdos'] . \"',\n `fuente`='\" . $datos1[0]['fuente'] . \"', `frecuencia_msg`='\" . $datos1[0]['frecuencia_msj'] . \"',\n `hora`='\" . $datos1[0]['hora'] . \"', `pagoen`='\" . $datos1[0]['pagoen'] . \"' WHERE `dni`='\" . $condicion_post['dni_a'] . \"' \");\n } else {\n $query = $this->consulta(\"INSERT INTO `acuerdo_pago` (`dni`, `fecha_visita`, `fecha_verif`, `acuerdo`, `fuente`, `frecuencia_msg`, `hora`, `pagoen`)\n VALUES ('\" . $condicion_post['dni_a'] . \"' , '\" . $datos1[0]['fecha_verificacion'] . \"', '\" . $fe2 . \"', '\" . $datos1[0]['acuerdos'] . \"', '\" . $datos1[0]['fuente'] . \"', '\" . $datos1[0]['frecuencia_msj'] . \"', '\" . $datos1[0]['hora'] . \"','\" . $datos1[0]['pagoen'] . \"')\");\n }\n\n\n $this->disconnect();\n }", "title": "" }, { "docid": "ff926d33b54612bb2283873c00a32ef6", "score": "0.5922855", "text": "public function registrarInventarioEntrante()\n\n {\n\n\t \n\t $idtipoinventario = $_POST['tipo_inventario'];\n\t \n\t $consecutivo_acta = $_POST['consecutivo_acta'];\n\n\t $fecha_acta = $_POST['fecha_acta'];\n\t \n\t $idjuzgado = $_POST['idjuzgado'];\n\t \n\t $responsable = $_POST['responsable'];\n\t \n\t $observaciones = $_POST['observaciones'];\t\n\t \n\t $cantidad_prestamo = $_POST['cantidad_prestamo'];\t\n\t \n\t $nombre_prestamo = $_POST['nombre_prestamo'];\t\n\t \n\t $observaciones_prestamo = $_POST['observaciones_prestamo'];\t \n\t \n\t //$mes = $_POST['mes'];\n\t $j=$i=0;\n\t $enero=$febrero=$marzo=$abril=$mayo=$junio=$julio=$agosto=$septiembre=$octubre=$noviembre=$diciembre=0;\n\t \n foreach ($_POST['mes'] as $indice => $valor){ \n \tif($valor==1){\n\t\t $enero=1;\n\t\t }\n\t \telse if($valor==2){\n\t\t $febrero=1;\n\t\t }\n\t\telse if($valor==3){\n\t\t $marzo=1;\n\t\t }\n\t\t else if($valor==4){\n\t\t $abril=1;\n\t\t }\n\t\t else if($valor==5){\n\t\t $mayo=1;\n\t\t }\n\t\t else if($valor==6){\n\t\t $junio=1;\n\t\t }\n\t\t else if($valor==7){\n\t\t $julio=1;\n\t\t }\n\t\t else if($valor==8){\n\t\t $agosto=1;\n\t\t }\n\t\t else if($valor==9){\n\t\t $septiembre=1;\n\t\t }\n\t\t else if($valor==10){\n\t\t $octubre=1;\n\t\t }\n\t\t else if($valor==11){\n\t\t $noviembre=1;\n\t\t }\n\t\t else if($valor==12){\n\t\t $diciembre=1;\n\t\t } \n\t }\n\t \n\t foreach ($_POST['ano'] as $indice1 => $valor1){ \n $vano[$j] = $valor1;\n $j = $j+1;\n } \n\t $i=0;\n\t $cont_ano= count($vano);\n\t $ano= \"\";\n\t \n\t while($i<$cont_ano)\n\t {\n\t if($i!=0)\n\t {\n\t $ano = $ano.\",\";\n\t }\n\t $ano = $ano.$vano[$i];\n\t $i= $i+1;\n\t \n\t }\n\t \n\t \n\t $desde_caja = $_POST['desde_caja'];\n\t \n\t if (isset($_POST['desde_caja']))\n\t {\n\t echo \"si\";\n\t }\n\t else\n\t echo \"mn\";\n\n\t $hasta_caja = $_POST['hasta_caja'];\n\t \n\t $cantidad_cajas = $_POST['cantidad_cajas'];\n\t \n\t $desde_expediente = $_POST['desde_expediente'];\n\t \n\t $hasta_expediente = $_POST['hasta_expediente'];\n\t \n\t $cantidad_expedientes = $_POST['cantidad_expedientes'];\n\t \n\t $nombre_entrega = $_POST['nombre_entrega'];\n\t \n\t $nombre_recibe = $_POST['nombre_recibe'];\n\t \n\t \n\t \n\t date_default_timezone_set('America/Bogota'); \n\n $fechaa=date('Y-m-d g:ia');\n\n $horaa=explode(' ',$fechaa);\n\n $fechal=$horaa[0];\n \n\t $hora=$horaa[1]; \n\t \n\t $accion='Resgistr&oacute; Acta Recibido';\n\t $idres = $_SESSION['idUsuario'];\n\n $detalle=$_SESSION['nombre'].\" \".\"Registro acta de recibido \".$fechal.\" \".\"a las: \".$hora;\n\t \n\t //es de tipo 1 porque va asociado al módulo de archivo \n\t $tipolog=1;\n\n $insertarlog = $this->db->prepare(\"INSERT INTO log (fecha, accion,detalle,idusuario,idtipolog) VALUES ('$fechaa', '$accion','$detalle','$idres','$tipolog');\");\n\n $insertarlog->execute();\n\t \n\t $registrar = $this->db->prepare(\"INSERT INTO inventario (idtipoinventario,consecutivo_acta,fecha_acta,idjuzgado,responsable,enero,febrero,marzo,abril,\nmayo,junio,julio,agosto,septiembre,octubre,noviembre,diciembre,ano_archivar,desde_caja,hasta_caja,desde_expediente,\nhasta_expediente,cantidad_expedientes,cantidad_cajas,nombre_entrega,nombre_recibe,observaciones,cantidad_expedientes_prestados,persona_presto,observaciones_prestamo,idestado_acta)\nvalues('$idtipoinventario','$consecutivo_acta','$fecha_acta','$idjuzgado','$responsable','$enero','$febrero','$marzo',\n'$abril','$mayo','$junio','$julio','$agosto','$septiembre','$octubre','$noviembre','$diciembre','$ano','$desde_caja',\n'$hasta_caja','$desde_expediente','$hasta_expediente','$cantidad_expedientes','$cantidad_cajas','$nombre_entrega','$nombre_recibe','$observaciones','$cantidad_prestamo','$nombre_prestamo','$observaciones_prestamo',1)\");\n\t $registrar->execute(); \n\t $resultado = $registrar->rowCount();\n\n\t $tipo_consecutivo = $_POST['tipo_consecutivo'];\n\t \n\t if($tipo_consecutivo==1)\n\t {\n\t $actualizar = $this->db->prepare(\"UPDATE consecutivo set consecutivo_civil=consecutivo_civil+1 where tipo='Recibido'\");\n $actualizar->execute(); \n\t\t\n\t }\n\t \n\t if($tipo_consecutivo==2)\n\t {\n\t $actualizar = $this->db->prepare(\"UPDATE consecutivo set consecutivo_familia=consecutivo_familia+1 where tipo='Recibido'\");\n $actualizar->execute(); \n\t\t\n\t }\n\t \n\t if($tipo_consecutivo==3)\n\t {\n\t $actualizar = $this->db->prepare(\"UPDATE consecutivo set consecutivo_municipal=consecutivo_municipal+1 where tipo='Recibido'\");\n $actualizar->execute(); \n\t\t\n\t }\t\n\t \n if ($resultado)\n\n {\t\t\t\n\n print'<script languaje=\"Javascript\">location.href=\"index.php?controller=archivo&action=mensajes&nombre=3 \"</script>';\n\n }\n\n\t \n\t \n\n }", "title": "" }, { "docid": "8f34e2a1cb8b1d4b96ca76c2e58c8a64", "score": "0.5921623", "text": "private function buscarOfertaSiebelAsignaciones(){\n\n if($this->get_request_method() != \"GET\"){\n $this->response('',406);\n }\n $usuarioIp = $_SERVER['REMOTE_ADDR'];\n $usuarioPc = gethostbyaddr($usuarioIp);\n $galleta = json_decode(stripslashes($_COOKIE['logedUser']),true);\n $galleta = stripslashes($_COOKIE['logedUser']);\n $galleta = json_decode($galleta);\n $galleta = json_decode(json_encode($galleta), True);\n $usuarioGalleta = $galleta['login'];\n $nombreGalleta = $galleta['name'];\n $grupoGalleta = $galleta['GRUPO'];\n\n $pedido = $this->_request['pedidoID'];\n $pedido=trim($pedido,\" \");\n\n $user = $this->_request['userID'];\n\n //si el actual usuario tenia un pedido \"agarrado, hay que liberarlo\"\n $pedido_actual = $this->_request['pedido_actual'];\n\n if($pedido_actual!=''){//en este caso tenia pedido antes, estaba trabajando uno, debo actualizarlo para dejarlo libre\n $sqlupdate=\"update informe_petec_pendientesm set ASESOR='' where ASESOR='$user' \";\n $xxx = $this->mysqli->query($sqlupdate);\n }\n\n $user=strtoupper($user);\n $today = date(\"Y-m-d\");\n\n $query1=\" SELECT \".\n \"\tm.ID \".\n \"\t, m.PEDIDO_ID \".\n \"\t, m.SUBPEDIDO_ID \".\n \"\t, m.TIPO_ELEMENTO_ID \".\n \"\t, m.TIPO_TRABAJO \".\n \"\t, m.DESC_TIPO_TRABAJO \".\n \"\t, m.FECHA_INGRESO \".\n \"\t, m.FECHA_ESTADO \".\n \"\t, m.FECHA_CITA \".\n \"\t, m.PRODUCTO_ID \".\n \"\t, m.PRODUCTO \".\n \"\t, m.UEN_CALCULADA \".\n \"\t, m.ESTRATO \".\n \"\t, m.CONCEPTO_ID \".\n \"\t, m.TECNOLOGIA_ID \".\n \"\t, m.MUNICIPIO_ID \".\n \"\t, m.DIRECCION_SERVICIO \".\n \"\t, m.PAGINA_SERVICIO \".\n \"\t, m.FECHA_CARGA \".\n \"\t, m.FUENTE \".\n \" , m.GRUPO \".\n \" , m.ACTIVIDAD \".\n \"\t, m.STATUS \".\n \"\t, m.ASESOR \".\n \"\t, m.FECHA_VISTO_ASESOR \".\n \"\t, m.ESTUDIOS \".\n \"\t, m.VIEWS \".\n \"\t, m.CONCEPTO_ANTERIOR \".\n \" , CAST(TIMEDIFF(CURRENT_TIMESTAMP(),(m.FECHA_ESTADO)) AS CHAR(255)) as TIEMPO_COLA \".\n \"\t, m.UP2DATE \".\n \"\tFROM portalbd.informe_petec_pendientesm m \".\n \"\twhere m.PEDIDO_ID='$pedido' \".\n \"\tAND m.STATUS IN ('PENDI_PETEC','MALO') \";\n\n $sqlCerrados= \" SELECT \".\n \"\tm.ID \".\n \"\t, m.PEDIDO_ID \".\n \"\t, m.SUBPEDIDO_ID \".\n \"\t, m.TIPO_ELEMENTO_ID \".\n \"\t, m.TIPO_TRABAJO \".\n \"\t, m.DESC_TIPO_TRABAJO \".\n \"\t, m.FECHA_INGRESO \".\n \"\t, m.FECHA_ESTADO \".\n \"\t, m.FECHA_CITA \".\n \"\t, m.PRODUCTO_ID \".\n \"\t, m.PRODUCTO \".\n \"\t, m.UEN_CALCULADA \".\n \"\t, m.ESTRATO \".\n \"\t, m.CONCEPTO_ID \".\n \"\t, m.TECNOLOGIA_ID \".\n \"\t, m.MUNICIPIO_ID \".\n \"\t, m.DIRECCION_SERVICIO \".\n \"\t, m.PAGINA_SERVICIO \".\n \"\t, m.FECHA_CARGA \".\n \"\t, m.FUENTE \".\n \" , m.GRUPO \".\n \" , m.ACTIVIDAD \".\n \"\t, m.STATUS \".\n \"\t, m.ASESOR \".\n \"\t, m.FECHA_VISTO_ASESOR \".\n \"\t, m.ESTUDIOS \".\n \"\t, m.VIEWS \".\n \"\t, m.CONCEPTO_ANTERIOR \".\n \" , CAST(TIMEDIFF(CURRENT_TIMESTAMP(),(m.FECHA_ESTADO)) AS CHAR(255)) as TIEMPO_COLA \".\n \"\t, m.UP2DATE \".\n \"\tFROM portalbd.informe_petec_pendientesm m \".\n \"\twhere m.PEDIDO_ID='$pedido' \".\n \"\tAND m.STATUS IN ('CERRADO_PETEC') \".\n \" \torder by m.ID desc limit 1\";\n\n $rPendi = $this->mysqli->query($query1);\n\n\n $busy=false;\n\n if($rPendi->num_rows > 0){\n $result = array();\n while($row = $rPendi->fetch_assoc()){\n\n $result[] = $row;\n $ids=$row['ID'];\n $asess=$row['ASESOR'];\n\n if($asess!='' && $asess!=$user){//este pedido esta ocupado, no deberia hacer la actualizacion de abajo..\n $busy=true;\n }\n\n }//chao While\n\n $sqlupdate=\"\";\n\n if($busy==true){\n $sqlupdate=\"update informe_petec_pendientesm set VIEWS=VIEWS+1 where ID in ($ids)\";\n\n\n }else{\n $fecha_visto=date(\"Y-m-d H:i:s\");\n $sqlupdate=\"update informe_petec_pendientesm set VIEWS=VIEWS+1,ASESOR='$user',FECHA_VISTO_ASESOR='$fecha_visto' where ID in ($ids)\";\n\n }\n\n $x = $this->mysqli->query($sqlupdate);\n\n // SQL Feed----------------------------------\n $sql_log= \"insert into portalbd.activity_feed ( \".\n \" USER \".\n \", USER_NAME \".\n \", GRUPO \".\n \", STATUS \".\n \", PEDIDO_OFERTA \".\n \", ACCION \".\n \", CONCEPTO_ID \".\n \", IP_HOST \".\n \", CP_HOST \".\n \") values( \".\n \" UPPER('$usuarioGalleta')\".\n \", UPPER('$nombreGalleta')\".\n \", UPPER('$grupoGalleta')\".\n \",'OK' \".\n \",'$pedido' \".\n \",'BUSCO PEDIDO SIEBEL' \".\n \",'PEDIDO BUSCADO' \".\n \",'$usuarioIp' \".\n \",'$usuarioPc')\";\n\n $rlog = $this->mysqli->query($sql_log);\n // ---------------------------------- SQL Feed\n // Feed ----------------------\n //$sqlfeed=\"insert into activity_feed(user,user_name, grupo,status,pedido_oferta,accion,concepto_id) values ('$user','$username','','','PEDIDO: $pedido','BUSCARPEDIDO','') \";\n //$xx = $this->mysqli->query($sqlfeed);\n // ---------------------- Feed\n\n $this->response(json_encode($result), 200); //Resultado final si encontro registros\n\n\n }else{ // Si el pedido no esta abierto lo busco en cerrado pero solo devuelvo un solo registro\n $rCerrado = $this->mysqli->query($sqlCerrados);\n\n if($rCerrado->num_rows > 0){\n\n $busy=false;\n $result = array();\n while($row = $rCerrado->fetch_assoc()){\n\n $result[] = $row;\n $ids=$row['ID'];\n $asess=$row['ASESOR'];\n\n\n }//chao While\n\n $sqlupdate=\"\";\n\n $fecha_visto=date(\"Y-m-d H:i:s\");\n $sqlupdate=\"update informe_petec_pendientesm set VIEWS=VIEWS+1,ASESOR='$user',FECHA_VISTO_ASESOR='$fecha_visto' where ID in ($ids)\";\n\n\n\n $xCerrado = $this->mysqli->query($sqlupdate);\n\n // SQL Feed----------------------------------\n $sql_log= \"insert into portalbd.activity_feed ( \".\n \" USER \".\n \", USER_NAME \".\n \", GRUPO \".\n \", STATUS \".\n \", PEDIDO_OFERTA \".\n \", ACCION \".\n \", CONCEPTO_ID \".\n \", IP_HOST \".\n \", CP_HOST \".\n \") values( \".\n \" UPPER('$usuarioGalleta')\".\n \", UPPER('$nombreGalleta')\".\n \", UPPER('$grupoGalleta')\".\n \",'OK' \".\n \",'$pedido' \".\n \",'BUSCO PEDIDO SIEBEL' \".\n \",'PEDIDO BUSCADO' \".\n \",'$usuarioIp' \".\n \",'$usuarioPc')\";\n\n $rlog = $this->mysqli->query($sql_log);\n // Feed ----------------------\n //$sqlfeed=\"insert into activity_feed(user,user_name, grupo,status,pedido_oferta,accion,concepto_id) values ('$user','$username','','','PEDIDO: $pedido','BUSCARPEDIDO','Reabrio pedido') \";\n //$xxCerrado = $this->mysqli->query($sqlfeed);\n // ---------------------- Feed\n\n\n\n $this->response(json_encode($result), 200); //Resultado final si encontro registros\n\n\n }else{\n\n\n\n $error='No existe';\n $this->response(json_encode($error),204); // No encontramos nada.\n }\n\n\n }\n }", "title": "" }, { "docid": "5a9dd643e8a8d47da2928d9f5783b499", "score": "0.59137297", "text": "function set_nuevo_acuedo($condicion_post) {\n // echo\"<pre>\";print_r($condicion_post);exit;\n $this->conectar();\n\n // -------------------- datos de acuerdo segun fecha maxima ------------ \n $query1 = $this->consulta(\"SELECT * FROM\n acuerdos\n WHERE acuerdos.dnic='\" . $condicion_post['dni_a'] . \"'\n ORDER BY acuerdos.fecha_verificacion DESC\n \");\n $datos1 = array();\n $conta = -1;\n while ($row = mysql_fetch_array($query1)) {\n $conta = $conta + 1;\n $datos1[] = $row;\n // echo $datos1[''.$conta.'']['fecha_verificacion'];\n if ($datos1['' . $conta . '']['fecha_verificacion'] == $_REQUEST['fecha_limite']) {\n echo 'la fecha reepite';\n exit;\n }\n }\n\n\n // -------------------- la minima fecha para poder actualizar ------------ \n $query2 = $this->consulta(\"SELECT MIN(acuerdos.fecha_verificacion) as minfecha\n FROM\n acuerdos\n WHERE acuerdos.dnic='\" . $condicion_post['dni_a'] . \"' \");\n $datos2 = array();\n while ($row = mysql_fetch_array($query2)) {\n $datos2[] = $row;\n }\n // -------------------- contamos cuantos acuerdo tiene la persona ------------ \n $query3 = $this->consulta(\"SELECT COUNT(acuerdos.idacuerdos) as cont\n FROM\n acuerdos\n WHERE acuerdos.dnic='\" . $condicion_post['dni_a'] . \"' \");\n $datos3 = array();\n while ($row = mysql_fetch_array($query3)) {\n $datos3[] = $row;\n }\n\n if ($datos3[0][cont] == 3) {\n // -------------------- ejecutamos la actualizacion ------------ \n\n\n $query = $this->consulta(\"UPDATE `acuerdos` SET `idpersonal`=\" . $_SESSION['idpersonal'] . \",`dnic`= '\" . $condicion_post['dni_a'] . \"',\"\n . \" `dnip`='\" . $_SESSION['dnipersonal'] . \"', `acuerdos`='\" . $condicion_post['txtacuerdo'] . \"',\"\n . \" `fecha_verificacion`='\" . $condicion_post['fecha_limite'] . \"',`fecha_visita`='\" . $condicion_post['fecha_visita'] . \"',\"\n . \"`calificacion`='',`frecuencia_msj`='\" . $condicion_post['frecuencia_msg'] . \"',`hora`='\" . $condicion_post['hora'] . \"',`pagoen`='\" . $condicion_post['pagoen'] . \"',`fuente`='\" . $condicion_post['idpersonal'] . \"'\"\n . \" WHERE (`dnic`='\" . $condicion_post['dni_a'] . \"' and `fecha_verificacion`='\" . $datos2[0]['minfecha'] . \"')\");\n } else {\n\n $query = $this->consulta(\"INSERT INTO `acuerdos` (`idpersonal`, `dnic`, `dnip`, `acuerdos`,`fecha_verificacion`,`fecha_visita`,`frecuencia_msj`,`hora`,`pagoen`,`fuente`)\"\n . \"VALUES (\" . $_SESSION['idpersonal'] . \", '\" . $condicion_post['dni_a'] . \"',\"\n . \" '\" . $_SESSION['dnipersonal'] . \"', '\" . utf8_decode($condicion_post['txtacuerdo']) . \"',\"\n . \" '\" . $condicion_post['fecha_limite'] . \"','\" . $condicion_post['fecha_visita'] . \"',\"\n . \"'\" . $condicion_post['frecuencia_msg'] . \"','\" . $condicion_post['hora'] . \"','\" . $condicion_post['pagoen'] . \"','\" . $condicion_post['idpersonal'] . \"')\");\n }\n //----------------------------poner datos a la nueva tabla acuerdo_pago\n // -------------------- buscamos si el dni esta o no ------------ \n\n\n $querya_p1 = $this->consulta(\" SELECT\n COUNT(acuerdo_pago.dni) as midni\n FROM\n acuerdo_pago\n WHERE acuerdo_pago.dni='\" . $condicion_post['dni_a'] . \"' \");\n $datosa_p1 = array();\n while ($row = mysql_fetch_array($querya_p1)) {\n $datosa_p1[] = $row;\n }\n\n\n $porciones = explode(\"_\", $condicion_post['idpersonal']);\n echo $porciones[0]; // porción1\n echo $porciones[1]; // porción2\n\n if ($datosa_p1[0]['midni'] == 1) {\n\n $query = $this->consulta(\" UPDATE `acuerdo_pago` SET `fecha_visita`='\" . $condicion_post['fecha_visita'] . \"',\n `fecha_verif`='\" . $condicion_post['fecha_limite'] . \"', `acuerdo`='\" . $condicion_post['txtacuerdo'] . \"',\n `fuente`='\" . $porciones[0] . \"', `frecuencia_msg`='\" . $condicion_post['frecuencia_msg'] . \"',\n `hora`='\" . $condicion_post['hora'] . \"', `pagoen`='\" . $condicion_post['pagoen'] . \"', `idpersonal`='\" . $porciones[1] . \"',`asignador`='\" . $_SESSION['idpersonal'] . \"' WHERE `dni`='\" . $condicion_post['dni_a'] . \"' \");\n } else {\n $query = $this->consulta(\"INSERT INTO `acuerdo_pago` (`dni`, `fecha_visita`, `fecha_verif`, `acuerdo`, `fuente`, `frecuencia_msg`, `hora`, `pagoen`,`idpersonal`,`asignador`)\n VALUES ('\" . $condicion_post['dni_a'] . \"' , '\" . $condicion_post['fecha_visita'] . \"',\n '\" . $condicion_post['fecha_limite'] . \"', '\" . utf8_decode($condicion_post['txtacuerdo']) . \"', '\" . $condicion_post['idpersonal'] . \"',\n '\" . $condicion_post['frecuencia_msg'] . \"', '\" . $condicion_post['hora'] . \"',\n '\" . $condicion_post['pagoen'] . \"','\" . $porciones[1] . \"','\" . $_SESSION['idpersonal'] . \"')\");\n }\n\n $this->disconnect();\n }", "title": "" }, { "docid": "31060b0ba3a19a8ed52a4083a6958105", "score": "0.59131896", "text": "public static function buscarMEnsajesId($archivo, $tipo, $id)\r\n {\r\n $mensajes = funciones::Leer($archivo);\r\n /*array_search ( mixed $needle , array $haystack [, bool $strict = false ] ) : mixed\r\n Busca en el haystack (pajar) por la needle (aguja).*/\r\n /*\r\n Si es user, se muestran todos los mensajes enviados y recibidos con ese usuario\r\n ordenado por fecha. \r\n Si es admin se muestran todas las personas a las que el id envio mensajes.*/\r\n $responde = new Lresponse();\r\n // $fechaultima = 0;\r\n $seleccion = array();\r\n $entro = false;\r\n foreach ($mensajes as $key => $value) {\r\n // var_dump($value); echo \"$key\";\r\n $userE = usuario::dameDatos($value->emisorId); \r\n $userR = usuario::dameDatos($value->destinoId);\r\n if($tipo == 'admin')\r\n {\r\n if($id == $value->emisorId)\r\n {\r\n array_push($seleccion, $userR);\r\n }\r\n // $entro = $value;\r\n }\r\n else {\r\n if($id == $value->emisorId || $id == $value->destinoId)\r\n {\r\n array_push($seleccion, $value);\r\n }\r\n }\r\n }\r\n return $seleccion;\r\n }", "title": "" }, { "docid": "a4cac848c216af097f1bc808cb5d0e9c", "score": "0.5912391", "text": "public function AMostrarMaterialesSeleccionadosXpuntoControlExamenLabo($datos) {\n $oLLaboratorio = new LLaboratorio();\n\n $arrayListaMaterialesxPuntoDeControlxExamen = $this->listarMatxPCxE($datos);\n\n $cadenaAcordionMaterialesxPuntoControlxExamenLabo = '';\n $cadenaAcordionMaterialesxPuntoControlxExamenLabo .= \"divDatosjc*Observaciones#Materiales\";\n// $cadenaAcordionMaterialesxPuntoControlxExamenLabo.=\"|divMuestrajc*Descripcoón de Muestra\";\n\n foreach ($arrayListaMaterialesxPuntoDeControlxExamen as $value) {\n $div = \"div\" . $value[0]; //iIdExamenLaboratorioUnidadMedidaLaboratorio\n $nombreMateriales = utf8_encode($value[2]) . '#' . utf8_encode($value[4]) . '-' . utf8_encode($value[6]);\n\n $cadenaAcordionMaterialesxPuntoControlxExamenLabo.=\"|$div*$nombreMateriales\";\n }\n\n\n require_once(\"../../cvista/laboratorio/ListaDetalleMaterialesxPuntoControlExamenLaboratorio.php\");\n }", "title": "" }, { "docid": "75d722ef42fb1b548c11a026462cc1a8", "score": "0.59016174", "text": "function guardar_actividadMasiva($competencias,$id_actividad,$id_especializacion,$id_tema,$t_tema,$t_area_en,$FRevision,$FPInicio,$FPFinal,$FRInicio,$FRFinal,$inicio,$final,$coment,$idreponsable){\n parent::conectar();\n $FRevision_S=$this->set_standarDate($FRevision);\n $FPInicio_S=$this->set_standarDate($FPInicio);\n $FPFinal_S=$this->set_standarDate($FPFinal);\n if($FRInicio!=0){\n $FRInicio_S=$this->set_standarDate($FPInicio_S);\n }else{\n $FRInicio_S='';\n }\n if($FRFinal!=0){\n $FRFinal_S=$this->set_standarDate($FRFinal);\n }else{\n $FRFinal_S='';\n }\n $color=$this->get_color($inicio,$final,$FRevision,$FPInicio_S,$FPFinal_S,$FRInicio_S,$FRFinal_S);\n $iniciado=0;\n $finalizado=0;\n if($inicio=='true'){\n $iniciado=1;\n } \n if($final=='true'){\n $finalizado=1;\n }\n$sql=\"CALL registraactividadmasiva($id_actividad,$id_especializacion,$id_tema,'$t_tema','$t_area_en','$FRevision_S','$FPInicio_S','$FPFinal_S','$FRInicio_S','$FRFinal_S',$iniciado,$finalizado,'$coment','$color',$idreponsable)\";\n if(!$this->obj_con->Execute($sql)){\n return false; \n }else{\n $idmasivo=$this->get_id_masivo();\n $this->registrar_competencias_masivos($competencias,$idmasivo);/*registramos las competencias y la actividad masiva*/\n $this->registrar_actividadxempleado($competencias,1,$idmasivo,$id_actividad,$id_especializacion,$id_tema,$t_tema,$t_area_en,$FRevision_S,$FPInicio_S,$FPFinal_S,$FRInicio_S,$FRFinal_S,$iniciado,$finalizado,$coment,$color,$idreponsable);/*opcion 1*/\n $this->registrar_actividadxempleado($competencias,2,$idmasivo,$id_actividad,$id_especializacion,$id_tema,$t_tema,$t_area_en,$FRevision_S,$FPInicio_S,$FPFinal_S,$FRInicio_S,$FRFinal_S,$iniciado,$finalizado,$coment,$color,$idreponsable);/*opcion 2*/\n $this->registrar_actividadxempleado($competencias,3,$idmasivo,$id_actividad,$id_especializacion,$id_tema,$t_tema,$t_area_en,$FRevision_S,$FPInicio_S,$FPFinal_S,$FRInicio_S,$FRFinal_S,$iniciado,$finalizado,$coment,$color,$idreponsable);/*opcion 3*/\n return true;\n }\n }", "title": "" }, { "docid": "3c710db00f69f8a05bba1faa301ef500", "score": "0.5864023", "text": "function insertarSolicitudEfectivoCompleta(){\n\t\t$cone = new conexion();\n\t\t$link = $cone->conectarpdo();\n\t\t$copiado = false;\t\t\t\n\t\ttry {\n\t\t\t$link->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\t\t\n\t\t \t$link->beginTransaction();\n\t\t\t\n\t\t\t/////////////////////////\n\t\t\t// inserta cabecera de la solicitud de compra\n\t\t\t///////////////////////\n\t\t\t\n\t\t\t\n\t\t\t//Definicion de variables para ejecucion del procedimiento\n\t\t\t$this->procedimiento = 'tes.ft_solicitud_efectivo_ime';\n\t\t\t$this->transaccion = 'TES_SOLEFE_INS';\n\t\t\t$this->tipo_procedimiento = 'IME';\n\t\t\t\t\t\n\t\t\t//Define los parametros para la funcion\n\t\t\t$this->setParametro('id_caja','id_caja','int4');\n\t\t\t$this->setParametro('id_estado_wf','id_estado_wf','int4');\n\t\t\t$this->setParametro('monto','monto','numeric');\n\t\t\t$this->setParametro('id_proceso_wf','id_proceso_wf','int4');\n\t\t\t$this->setParametro('nro_tramite','nro_tramite','varchar');\n\t\t\t$this->setParametro('estado','estado','varchar');\n\t\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t\t$this->setParametro('motivo','motivo','text');\n\t\t\t$this->setParametro('id_funcionario','id_funcionario','int4');\n\t\t\t$this->setParametro('tipo_solicitud','tipo_solicitud','varchar');\n\t\t\t$this->setParametro('fecha','fecha','date');\n\t\t\t\t\t\t\n\t\t\t//Ejecuta la instruccion\n $this->armarConsulta();\t\t\t\n\t\t\t$stmt = $link->prepare($this->consulta);\t\t \n\t\t \t$stmt->execute();\n\t\t\t$result = $stmt->fetch(PDO::FETCH_ASSOC);\t\t\t\t\n\t\t\t\n\t\t\t//recupera parametros devuelto depues de insertar ... (id_obligacion_pago)\n\t\t\t$resp_procedimiento = $this->divRespuesta($result['f_intermediario_ime']);\n\t\t\tif ($resp_procedimiento['tipo_respuesta']=='ERROR') {\n\t\t\t\tthrow new Exception(\"Error al ejecutar en la bd\", 3);\n\t\t\t}\n\t\t\t$respuesta = $resp_procedimiento['datos'];\n\t\t\t\n\t\t\t$id_solicitud_efectivo = $respuesta['id_solicitud_efectivo'];\n\t\t\t\n\t\t\t//////////////////////////////////////////////\n\t\t\t//inserta detalle de la solicitud de compra\n\t\t\t/////////////////////////////////////////////\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//decodifica JSON de detalles \n\t\t\t$json_detalle = $this->aParam->_json_decode($this->aParam->getParametro('json_new_records'));\t\t\t\n\t\t\t\n\t\t\t//var_dump($json_detalle)\t;\n\t\t\tforeach($json_detalle as $f){\n\t\t\t\t\n\t\t\t\t$this->resetParametros();\n\t\t\t\t//Definicion de variables para ejecucion del procedimiento\n\t\t\t $this->procedimiento='tes.ft_solicitud_efectivo_det_ime';\n\t\t\t\t$this->transaccion='TES_SOLDET_INS';\n\t\t\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t//modifica los valores de las variables que mandaremos\n\t\t\t\t\n\t\t\t\t$this->arreglo['id_solicitud_efectivo'] = $id_solicitud_efectivo;\n\t\t\t\t$this->arreglo['id_cc'] = $f['id_cc'];\n\t\t\t\t$this->arreglo['id_concepto_ingas'] = $f['id_concepto_ingas'];\n\t\t\t\t$this->arreglo['id_partida_ejecucion'] = $f['id_partida_ejecucion'];\n\t\t\t\t$this->arreglo['estado_reg'] = $f['estado_reg'];\n\t\t\t\t$this->arreglo['monto'] = $f['monto'];\n\t\t\t\t\t\t\n\t\t\t\t//Define los parametros para la funcion\n\t\t\t\t$this->setParametro('id_solicitud_efectivo','id_solicitud_efectivo','int4');\n\t\t\t\t$this->setParametro('id_cc','id_cc','int4');\n\t\t\t\t$this->setParametro('id_concepto_ingas','id_concepto_ingas','int4');\n\t\t\t\t$this->setParametro('id_partida_ejecucion','id_partida_ejecucion','text');\n\t\t\t\t$this->setParametro('estado_reg','estado_reg','numeric');\n\t\t\t\t$this->setParametro('monto','monto','int4');\n\t\t\t\t\n\t\t\t\t//Ejecuta la instruccion\n\t $this->armarConsulta();\n\t\t\t\t$stmt = $link->prepare($this->consulta);\t\t \n\t\t\t \t$stmt->execute();\n\t\t\t\t$result = $stmt->fetch(PDO::FETCH_ASSOC);\t\t\t\t\n\t\t\t\t\n\t\t\t\t//recupera parametros devuelto depues de insertar ... (id_solicitud)\n\t\t\t\t$resp_procedimiento = $this->divRespuesta($result['f_intermediario_ime']);\n\t\t\t\tif ($resp_procedimiento['tipo_respuesta']=='ERROR') {\n\t\t\t\t\tthrow new Exception(\"Error al insertar detalle en la bd\", 3);\n\t\t\t\t}\n \n \n }\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//si todo va bien confirmamos y regresamos el resultado\n\t\t\t$link->commit();\n\t\t\t$this->respuesta=new Mensaje();\n\t\t\t$this->respuesta->setMensaje($resp_procedimiento['tipo_respuesta'],$this->nombre_archivo,$resp_procedimiento['mensaje'],$resp_procedimiento['mensaje_tec'],'base',$this->procedimiento,$this->transaccion,$this->tipo_procedimiento,$this->consulta);\n\t\t\t$this->respuesta->setDatos($respuesta);\n\t\t} \n\t catch (Exception $e) {\t\t\t\n\t\t \t$link->rollBack();\n\t\t\t\t$this->respuesta=new Mensaje();\n\t\t\t\tif ($e->getCode() == 3) {//es un error de un procedimiento almacenado de pxp\n\t\t\t\t\t$this->respuesta->setMensaje($resp_procedimiento['tipo_respuesta'],$this->nombre_archivo,$resp_procedimiento['mensaje'],$resp_procedimiento['mensaje_tec'],'base',$this->procedimiento,$this->transaccion,$this->tipo_procedimiento,$this->consulta);\n\t\t\t\t} else if ($e->getCode() == 2) {//es un error en bd de una consulta\n\t\t\t\t\t$this->respuesta->setMensaje('ERROR',$this->nombre_archivo,$e->getMessage(),$e->getMessage(),'modelo','','','','');\n\t\t\t\t} else {//es un error lanzado con throw exception\n\t\t\t\t\tthrow new Exception($e->getMessage(), 2);\n\t\t\t\t}\n\t\t\t\t\n\t\t} \n\t \n\t return $this->respuesta;\n\t}", "title": "" }, { "docid": "e7d7b8ecfcb7bdb5800ded0faac020ca", "score": "0.58634716", "text": "function modificarActivoFijoCaract(){\n\t\t$this->procedimiento='kaf.ft_activo_fijo_caract_ime';\n\t\t$this->transaccion='SKA_AFCARACT_MOD';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_activo_fijo_caract','id_activo_fijo_caract','int4');\n\t\t$this->setParametro('clave','clave','varchar');\n\t\t$this->setParametro('valor','valor','varchar');\n\t\t$this->setParametro('id_activo_fijo','id_activo_fijo','int4');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('id_clasificacion_variable','id_clasificacion_variable','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "8c5b328c9901036a0431846ef9ffdc4a", "score": "0.58625746", "text": "function actualizaEjecutados(){ \n $idD = ( isset( $this->_datos['ejec'] ) && !empty( $this->_datos['ejec'] ) ) ? $this->_datos['ejec'] : '';\n $idD = $this->keyToVal( $idD );\n \n $and = '';\n \n if( !empty($idD) && is_array($idD) ){\n $and = \" AND id_detalle NOT IN(\".implode(',',$idD).\") \";\n }elseif( isset( $this->_datos['ejec'] ) )\n $and = \" AND id_detalle != '\".$idD.\"'\";\n \n $sql = \"UPDATE `ot_detalle` SET ejecutado = '1' where $and \";\n $this->QuerySql($sql);\n }", "title": "" }, { "docid": "5b94b589867cc6d6eea86091e5d5f5ea", "score": "0.5839881", "text": "function setPreguntasByIdExamen()\n {\n global $dbLink;\n\n $sql = \"SELECT idPregunta, valor FROM examenpregunta\n\t\t\t\t\tWHERE idExamen=\" . $this->getIdExamen();\n $res = mysqli_query($dbLink, $sql);\n $arrExamenPregunta = array();\n if ($res && mysqli_num_rows($res) > 0) {\n while ($row_inf = mysqli_fetch_assoc($res)) {\n $idPregunta = $row_inf['idPregunta'];\n $this->examenPregunta = new ModeloExamenpregunta();\n $this->examenPregunta->getPreguntaByIdPregunta($idPregunta);\n $this->examenPregunta->setValor($row_inf['valor']);\n $arrExamenPregunta[] = $this->examenPregunta;\n }\n }\n $this->preguntas= $arrExamenPregunta;\n }", "title": "" }, { "docid": "f9ee0288c2a7227005ee760710e2c197", "score": "0.58301467", "text": "function asignar_picadas_empleados($empleados) {\n $cll_picada = array();\n foreach ($empleados as $empleado) {\n $cll_picada[$empleado] = asignar_picadas($horario, $picadas, $desde, $hasta);\n }\n }", "title": "" }, { "docid": "46c078b44a459e8e1d1828be71c8288a", "score": "0.58290243", "text": "function seleccionarOpcion() {\n $this->crearInicioSeccion('Seleccione la opci&oacute;n para actualizar datos');\n $arregloBotones=array(array('boton'=>'',\n 'action'=>'cierreSemestre/admin_recalcularEstadoEstudiante',\n 'opcion'=>'mostrarFormulario',\n 'nombreBoton'=>'Listado'),\n array('boton'=>'',\n 'action'=>'cierreSemestre/registro_aplicarReglamento',\n 'opcion'=>'opcionEstudiante',\n 'nombreBoton'=>'Estudiante'));\n $this->mostrarBotonesCargaProyecto($arregloBotones);\n $this->crearFinSeccion();\n }", "title": "" }, { "docid": "4a7179268c13aa2db4138fd528b78158", "score": "0.58154905", "text": "function insertarBoletosObservados(){\r\n $this->procedimiento='obingresos.ft_boletos_observados_ime';\r\n $this->transaccion='OBING_BOBS_INS';\r\n $this->tipo_procedimiento='IME';\r\n\r\n //Define los parametros para la funcion\r\n $this->setParametro('estado_reg','estado_reg','varchar');\r\n $this->setParametro('pnr','pnr','varchar');\r\n $this->setParametro('nro_autorizacion','nro_autorizacion','varchar');\r\n $this->setParametro('moneda','moneda','varchar');\r\n $this->setParametro('importe_total','importe_total','numeric');\r\n $this->setParametro('fecha_emision','fecha_emision','date');\r\n $this->setParametro('estado_p','estado_p','varchar');\r\n $this->setParametro('forma_pago','forma_pago','varchar');\r\n $this->setParametro('medio_pago','medio_pago','varchar');\r\n $this->setParametro('instancia_pago','instancia_pago','varchar');\r\n $this->setParametro('office_id_emisor','office_id_emisor','varchar');\r\n $this->setParametro('pnr_prov','pnr_prov','varchar');\r\n $this->setParametro('nro_autorizacion_prov','nro_autorizacion_prov','varchar');\r\n $this->setParametro('office_id_emisor_prov','office_id_emisor_prov','varchar');\r\n $this->setParametro('importe_prov','importe_prov','numeric');\r\n $this->setParametro('moneda_prov','moneda_prov','varchar');\r\n $this->setParametro('estado_prov','estado_prov','varchar');\r\n $this->setParametro('fecha_autorizacion_prov','fecha_autorizacion_prov','date');\r\n $this->setParametro('tipo_error','tipo_error','varchar');\r\n $this->setParametro('tipo_validacion','tipo_validacion','varchar');\r\n $this->setParametro('prov_informacion','prov_informacion','varchar');\r\n //$this->setParametro('id_instancia_pago','id_instancia_pago','int4');\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $this->ejecutarConsulta();\r\n\r\n //Devuelve la respuesta\r\n return $this->respuesta;\r\n }", "title": "" }, { "docid": "85117bc04994bf4a7ab766051371877e", "score": "0.5810579", "text": "public function getExpAbogados()\n\t{\n\t\ttry {\n\t\t\t#p es el abogado\n\t\t\t$abogados=array();\n\t\t\t$this->sql = \"\n\t\t\tSELECT p.id AS person_id, CONCAT(p.nombre,' ',p.ap_pat, ' ',p.ap_mat) AS full_name, COUNT( e.id ) AS total \n\t\t\tFROM e_turnados AS e \n\t\t\tINNER JOIN personal AS p ON p.id = e.persona_id\n\t\t\tINNER JOIN quejas AS q ON q.id = e.queja_id\n\t\t\tWHERE e.estado = 1 AND q.created_at > '2019-07-01'\n\t\t\tGROUP BY e.persona_id \";\n\t\t\t$this->stmt = $this->pdo->prepare( $this->sql );\n\t\t\t$this->stmt->execute();\n\t\t\t$this->result = $this->stmt->fetchAll(PDO::FETCH_OBJ);\n\t\t\t$aux = array();\n\t\t\tforeach ($this->result as $abogado) {\n\t\t\t\t$aux['nombre'] = $abogado->full_name;\n\t\t\t\t$aux['total'] = $abogado->total;\n\t\t\t\t$aux['person_id'] = $abogado->person_id;\n\t\t\t\t#Buscar los expedientes separados por estatus\n\t\t\t\t$this->sql = \"\n\t\t\t\tSELECT queja_id \n\t\t\t\tFROM e_turnados WHERE persona_id = ? AND estado = 1\n\t\t\t\t\";\n\t\t\t\t$this->stmt = $this->pdo->prepare( $this->sql );\n\t\t\t\t$this->stmt->bindParam(1,$abogado->person_id,PDO::PARAM_INT);\n\t\t\t\t$this->stmt->execute();\n\t\t\t\t$quejas = $this->stmt->fetchAll(PDO::FETCH_OBJ);\n\t\t\t\t$e_aux = array();\n\t\t\t\tforeach ($quejas as $queja) {\n\t\t\t\t\tarray_push($e_aux,$queja->queja_id);\n\t\t\t\t}\n\t\t\t\t$quejas = implode(',',$e_aux);#echo $quejas;\n\t\t\t\t$this->sql = \"\n\t\t\t\tSELECT e.id,e.nombre AS estado,COUNT(e.id) AS total FROM quejas AS q\n\t\t\t\tINNER JOIN estado_guarda AS e ON e.id = q.estado \n\t\t\t\tWHERE q.id IN ($quejas) AND q.created_at > '2019-07-01'\n\t\t\t\tGROUP BY q.estado\n\t\t\t\t\";\n\t\t\t\t#echo $abogado->person_id.\" - \";\n\t\t\t\t\n\t\t\t\t$this->stmt = $this->pdo->prepare( $this->sql );\n\t\t\t\t$this->stmt->execute();\n\t\t\t\t$segmento = $this->stmt->fetchAll(PDO::FETCH_OBJ);\n\t\t\t\t$aux['segmento'] = $segmento;\n\t\t\t\tarray_push($abogados,$aux);\n\t\t\t}\n\t\t\treturn $abogados;\n\t\t} catch (Exception $e) {\n\t\t\treturn json_encode( array( 'status'=>'error','message'=>$e->getMessage() ) );\n\t\t}\n\t}", "title": "" }, { "docid": "8922efed95d0417a2af2b25b605aea0c", "score": "0.58059293", "text": "function anteriorEstadoProcesoCaja(){\n $this->procedimiento='tes.ft_proceso_caja_ime';\n $this->transaccion='TES_ANTEREN_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 $this->setParametro('id_estado_wf','id_estado_wf','int4');\n $this->setParametro('id_funcionario_usu','id_funcionario_usu','int4');\n $this->setParametro('id_tipo_estado','id_tipo_estado','int4');\n $this->setParametro('id_funcionario_wf','id_funcionario_wf','int4');\n $this->setParametro('id_depto_wf','id_depto_wf','int4');\n $this->setParametro('obs','obs','text');\n $this->setParametro('json_procesos','json_procesos','text');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "title": "" }, { "docid": "136c31f48e75122b6bb9021d82b219f7", "score": "0.5774431", "text": "public function asociarExpediente($id_log_movimiento, $id_expediente){\n //Es porque para diferenciar entre movimientos de ingreso inicial/egreso definitivo e intervenciones se decidio (yo no, legacy)\n //que en los primeros el log_movimimiento tenia un id_expediente asociado (aunque fuera uno \"por defecto\" todo en 0) y en los otros fuera nulo\n //Sin embargo salio el requerimiento que las intervenciones tambien tenian expedientes pero solo se le cargaba el numero para documentar\n //Entonces se le creo un campo a parte en el mismo log_movimiento\n //Para mas explicaciones ver arriba de todo - Octavio 28 sep 2020\n $expediente = Expediente::find($id_expediente);\n $logMovimiento = LogMovimiento::find($id_log_movimiento);\n $logMovimiento->nro_exp_org = $expediente->nro_exp_org;\n $logMovimiento->nro_exp_interno = $expediente->nro_exp_interno;\n $logMovimiento->nro_exp_control = $expediente->nro_exp_control;\n if(!is_null($logMovimiento->id_expediente)){\n $logMovimiento->expediente()->associate($id_expediente);\n }\n $logMovimiento->tiene_expediente = 1;//@Legacy: Este atributo es superfluo, no lo puse yo\n $logMovimiento->save();\n //Debe asociarselo a las maquinas del movimiento tambien:\n if(isset($logMovimiento->relevamientos_movimientos))\n {\n foreach($logMovimiento->relevamientos_movimientos as $relev){\n $mtm = $relev->maquina;\n if(!is_null($mtm)) MTMController::getInstancia()->asociarExpediente($mtm->id_maquina, $id_expediente);\n }\n }\n\n return $logMovimiento;\n }", "title": "" }, { "docid": "66a8f55243c3bc2d9ba9c3eae43bb251", "score": "0.576816", "text": "public function registrarInventarioSaliente()\n\n {\n\n\t \n\t $idtipoinventario = $_POST['tipo_inventario'];\n\t \n\t $consecutivo_acta = $_POST['consecutivo_acta'];\n\n\t $fecha_acta = $_POST['fecha_acta'];\n\t \n\t $idjuzgado = $_POST['idjuzgado'];\n\t \n\t $iddestinojuzgado = $_POST['iddestinojuzgado'];\n\t \n\t $responsable = $_POST['responsable'];\t \n\t \n\t //$mes = $_POST['mes'];\n\t $j=$i=0;\n\t $enero=$febrero=$marzo=$abril=$mayo=$junio=$julio=$agosto=$septiembre=$octubre=$noviembre=$diciembre=0;\n\t \n foreach ($_POST['mes'] as $indice => $valor){ \n \tif($valor==1){\n\t\t $enero=1;\n\t\t }\n\t \telse if($valor==2){\n\t\t $febrero=1;\n\t\t }\n\t\telse if($valor==3){\n\t\t $marzo=1;\n\t\t }\n\t\t else if($valor==4){\n\t\t $abril=1;\n\t\t }\n\t\t else if($valor==5){\n\t\t $mayo=1;\n\t\t }\n\t\t else if($valor==6){\n\t\t $junio=1;\n\t\t }\n\t\t else if($valor==7){\n\t\t $julio=1;\n\t\t }\n\t\t else if($valor==8){\n\t\t $agosto=1;\n\t\t }\n\t\t else if($valor==9){\n\t\t $septiembre=1;\n\t\t }\n\t\t else if($valor==10){\n\t\t $octubre=1;\n\t\t }\n\t\t else if($valor==11){\n\t\t $noviembre=1;\n\t\t }\n\t\t else if($valor==12){\n\t\t $diciembre=1;\n\t\t } \n\t }\n\t \n\t foreach ($_POST['ano'] as $indice1 => $valor1){ \n $vano[$j] = $valor1;\n $j = $j+1;\n } \n\t $i=0;\n\t $cont_ano= count($vano);\n\t $ano= \"\";\n\t \n\t while($i<$cont_ano)\n\t {\n\t if($i!=0)\n\t {\n\t $ano = $ano.\",\";\n\t }\n\t $ano = $ano.$vano[$i];\n\t $i= $i+1;\n\t \n\t }\n\t \n\t \n\t $desde_caja = $_POST['desde_caja'];\n\n\t $hasta_caja = $_POST['hasta_caja'];\n\t \n\t $cantidad_cajas = $_POST['cantidad_cajas'];\n\t \n\t $desde_expediente = $_POST['desde_expediente'];\n\t \n\t $hasta_expediente = $_POST['hasta_expediente'];\n\t \n\t $cantidad_expedientes = $_POST['cantidad_expedientes'];\n\t \n\t $nombre_entrega = $_POST['nombre_entrega'];\n\t \n\t $nombre_recibe = $_POST['nombre_recibe'];\n\t \n\t \n\t \n\t date_default_timezone_set('America/Bogota'); \n\n $fechaa=date('Y-m-d g:ia');\n\n $horaa=explode(' ',$fechaa);\n\n $fechal=$horaa[0];\n \n\t $hora=$horaa[1]; \n\t \n\t $accion='Resgistr&oacute; Acta Entrega';\n\t $idres = $_SESSION['idUsuario'];\n\n $detalle=$_SESSION['nombre'].\" \".\"Registro acta de entrega \".$fechal.\" \".\"a las: \".$hora;\n\t \n\t //es de tipo 1 porque va asociado al módulo de archivo \n\t $tipolog=1;\n\n $insertarlog = $this->db->prepare(\"INSERT INTO log (fecha, accion,detalle,idusuario,idtipolog) VALUES ('$fechaa', '$accion','$detalle','$idres','$tipolog');\");\n\n $insertarlog->execute();\n\t \n\t $registrar = $this->db->prepare(\"INSERT INTO inventario (idtipoinventario,consecutivo_acta,fecha_acta,idjuzgado,responsable,enero,febrero,marzo,abril,\nmayo,junio,julio,agosto,septiembre,octubre,noviembre,diciembre,ano_archivar,desde_caja,hasta_caja,desde_expediente,\nhasta_expediente,cantidad_expedientes,cantidad_cajas,nombre_entrega,nombre_recibe,iddestinojuzgado)\nvalues('$idtipoinventario','$consecutivo_acta','$fecha_acta','$idjuzgado','$responsable','$enero','$febrero','$marzo',\n'$abril','$mayo','$junio','$julio','$agosto','$septiembre','$octubre','$noviembre','$diciembre','$ano','$desde_caja',\n'$hasta_caja','$desde_expediente','$hasta_expediente','$cantidad_expedientes','$cantidad_cajas','$nombre_entrega','$nombre_recibe','$iddestinojuzgado')\");\n\n\t $registrar->execute(); \n\t $resultado = $registrar->rowCount();\n\n\t \n if ($resultado)\n\n {\t\t\t\n\n print'<script languaje=\"Javascript\">location.href=\"index.php?controller=archivo&action=mensajes&nombre=4\"</script>';\n\n }\n\n\t \n\t \n\n }", "title": "" }, { "docid": "9bf5bd5af69388f1b399bee3b27d7ba9", "score": "0.575868", "text": "public function set_aspirantes_concurso() {\n $insertados=0;\n $errores=0;\n \n if(isset($_POST['IDCON_']) && isset($_POST['ASP_SELECTED']))\n {\n $datos=['CON_ID' => $_POST['IDCON_'], 'ASP_ID' =>\"\"];\n foreach ($_POST['ASP_SELECTED'] as $key => $value) {\n $datos['ASP_ID']=$value['value'];\n \n if($this->model->setConcursotAspirantes($datos))\n $insertados++;\n else\n $errores++; \n }\n $strMensaje= '<i class=\"small material-icons\" >done</i> '.$insertados.' Aspirantes insertados <i class=\"small material-icons\" >person</i>';\n $datos= [\"Mensaje\" => $strMensaje];\n echo json_encode($datos);\n }\n \n // return ['departamentos' => $this->model->getallDepartamentos()];\n }", "title": "" }, { "docid": "bb5f53b4526f1706b165ed2b8eb45c28", "score": "0.5741977", "text": "public function aprobar_rechazar_click($opcion,$sender,$param)\n {\n $id=$sender->CommandParameter;\n\t\t$sql=\"UPDATE asistencias.justificaciones set estatus='$opcion' where id='$id'\";\n $resultado=modificar_data($sql,$this);\n $this->consulta_permisos($sender, $param);\n\n // ahora, dependiendo si se aprueba o se rechaza, se toman acciones.\n if ($opcion == 2)\n { // si la solicitud fue rechazada, se muestra el mensaje correspondiente\n // se incluye el registro en la bitácora de eventos\n $descripcion_log = \"Se ha rechazado la solicitud de permiso registrada con el id: \".$id;\n inserta_rastro(usuario_actual('login'),usuario_actual('cedula'),'D',$descripcion_log,\"\",$sender);\n $this->LTB->titulo->Text = \"Solicitud de Permiso Rechazada\";\n $this->LTB->texto->Text = \"La Solicitud de permiso ha sido rechazada.\";\n $this->LTB->imagen->Imageurl = \"imagenes/botones/mal.png\";\n }else{\n\n $sql =\"SELECT j.codigo,j.id,jd.fecha_desde as desde,jd.fecha_hasta as hasta ,jd.hora_desde,jd.hora_hasta,tf.descripcion as falta,tj.descripcion as tipo,p.cedula,CONCAT(p.nombres,' ',p.apellidos) as nombres\n FROM asistencias.justificaciones_personas AS jp\n INNER JOIN asistencias.justificaciones AS j ON ( j.codigo = jp.codigo_just )\n INNER JOIN asistencias.justificaciones_dias AS jd ON ( jd.codigo_just = jp.codigo_just )\n INNER JOIN asistencias.tipo_faltas AS tf ON ( tf.codigo = jd.codigo_tipo_falta )\n INNER JOIN organizacion.personas AS p ON (p.cedula=jp.cedula)\n INNER JOIN asistencias.tipo_justificaciones AS tj ON ( tj.codigo = jd.codigo_tipo_justificacion )\n INNER JOIN organizacion.personas_nivel_dir AS pnd ON ( pnd.cod_direccion Like '$dir%' AND pnd.cedula=jp.cedula )\n WHERE j.id='$id'\n ORDER BY pnd.cedula,j.id\";\n $resultado=cargar_data($sql,$sender);\n $nombres = $resultado[0]['nombres'];\n $cedula = $resultado[0]['cedula'];\n $desde = $resultado[0]['desde'];\n $hasta = $resultado[0]['hasta'];\n $nombres = $resultado[0]['nombres'];\n $codigo_nuevo=$resultado[0]['codigo'];\n\n\n // se incluye el registro en la bitácora de eventos\n $descripcion_log = \"<strong>Aprobado</strong> permiso de \".$nombres.\" C.I.: \".$cedula.\n \", desde \".cambiaf_a_normal($desde).\" al \".cambiaf_a_normal($hasta).\n \" <strong> Cód. Observación: \".$codigo_nuevo.\"</strong> \";\n inserta_rastro(usuario_actual('login'),usuario_actual('cedula'),'A',$descripcion_log,\"\",$sender);\n $this->LTB->titulo->Text = \"Aprobado\";\n $this->LTB->texto->Text = $descripcion_log;\n $this->LTB->imagen->Imageurl = \"imagenes/botones/bien.png\";\n }\n\n $params = array('mensaje');\n $this->getPage()->getCallbackClient()->callClientFunction('muestra_mensaje', $params);\n\n }", "title": "" }, { "docid": "b625ab3deb3e4273568de13bbc8cba74", "score": "0.574112", "text": "public static function buscarEjemplares(Solicitud $psolicitud, $em)\n {\n $respuesta = new Respuesta();\n //$objLogica = $this->get('logica_service');\n $usuario = new Usuario();\n $sesion = new Sesion();\n $ejemplares = new Ejemplar();\n try {\n //Valida que la sesión corresponda y se encuentre activa\n $respSesionVali= ManejoDataRepository::validaSesionUsuario($psolicitud, $em);\n //echo \"<script>alert(' buscarEjemplares :: Validez de sesion \".$respSesionVali.\" ')</script>\";\n if ($respSesionVali== GamesController::inULogged) \n { \n //echo \"<script>alert(' buscaEjemplares :: FindAll ')</script>\";\n //Busca el usuario \n $usuario = ManejoDataRepository::getUsuarioByEmail($psolicitud->getEmail(),$em);\n \n $ejemplares = ManejoDataRepository::getBuscarEjemplares($usuario, $psolicitud->getTextoBuscar(), $em);\n //echo \"Recuperó ejemplares...gestionejemplares:buscarEjemplares \\n\";\n $respuesta->setRespuesta(GamesController::inExitoso);\n \n return Logica::generaRespuesta($respuesta, $psolicitud, $ejemplares, $em);\n } else {\n $respuesta->setRespuesta($respSesionVali);\n $ejemplares = array();\n return Logica::generaRespuesta($respuesta, $psolicitud, $ejemplares, $em);\n }\n } catch (Exception $ex) {\n $respuesta->setRespuesta(AccesoController::inPlatCai);\n $ejemplares = array();\n return Logica::generaRespuesta($respuesta, $psolicitud, $ejemplares, $em);\n }\n \n }", "title": "" }, { "docid": "33707ddfeb5fd222d9ce961548e64e2b", "score": "0.57311994", "text": "function appliquerModalitesPmt(){\n\t\tglobal $tabRes;\t\n\t\t\n\t\t$nombreTranchesPmt= $_POST['tranchePmt'];\n\t\t//debug_to_console($tabRes);\n\t\ttry{\n\t\t\t$unModele=new royaltoursModele();\n\t\t\t//$pochete=$unModele->verserFichier(\"pochettes\", \"pochette\", \"avatar.jpg\",$titre);\n\t\t\t$requete=\"UPDATE tranchepmt SET nombreTranches = ? WHERE id=1\";\n\t\t\t$unModele=new royaltoursModele($requete,\n\t\t\t\tarray($nombreTranchesPmt));\n\t\t\t$stmt=$unModele->executer();\n\t\t\t$tabRes['action']=\"enregistrer\";\n\t\t\t$tabRes['msg']=\" Changement applique aux modalites de paiement.\";\n\t\t}catch(Exception $e){\n\t\t}finally{\n\t\t\tunset($unModele);\n\t\t}\n\t}", "title": "" }, { "docid": "94096320f66f34243a1cd4053d0723bc", "score": "0.5724814", "text": "public function IngresarAnamnesis($motivocon,$enfermeactual,$tiposangre,$nopatologicos,$alergi,$cardiovas,$metab,$infecc,$neoplas,$endocro,$pulmon,$nefro,$hemato,$esquele,$inmuno,$gineco,$otrospat,$cardiofam,$metabfam,$infeccfam,$neoplasfam,$endocronofam,$pulmofam,$nefrofam,$hematofam,$esquelefam,$inmunofam,$otrosfam, \n\n\t\t$tabaco,$achohol,$drogas,$medi,$exercise,$tipodiet,$vacuns, \n\n\t\t$audit,$oftalmo,$otorrinolari,$nervioscran,$digest,$renal,$pulmonar,$cardiovas3,$oseo,$ginecoobste,$otrossyst,$codoculpacanam,$CodigoTurnoLight,$endocrino,$gastroen)\n\t{\n\t\t$aux=new Anamnesis;\n\t\t$aux2=new Habitos;\n\t\t$aux3=new Sistemas;\n\n\t\t$hoy=$this->Mifecha();\n\t\t//$aux2->Ejecutar(\"INSERT INTO tbl_habitos (tabaco_hab,alcohol_hab,drogas_hab,medicamentos_hab,ejercicio_hab,tipodieta_hab,vacunas_hab,estado_hab) VALUES('$tabaco','$achohol','$drogas','$medi','$exercise','$tipodiet','$vacuns','A')\");\n\t\t$codhabitos=$aux2->Consultar(\"SELECT MAX(id_hab) FROM tbl_habitos\");\n\t\t\n\t\tif($codhabitos==\"\"){\n\t\t\t$codhabitos=1;\n\t\t}else{\n\t\t\t$codhabitos=$codhabitos;\n\t\t}\n\t\t\n\t\t\n\t\t//$aux3->Ejecutar(\"INSERT INTO tbl_sistemas (auditivo_sist,oftalmo_sist,otorrino_sist,nervioscra_sist,digestivo_sist,renal_sist,pulmonar_sist,cardiovas_sist,oseao_sist,ginecoobst_sist,otros_sist,estado_sist) VALUES('$audit','$oftalmo','$otorrinolari','$nervioscran','$digest','$renal','$pulmonar','$cardiovas3','$oseo','$ginecoobste','$otrossyst','A')\");\n\t\t$codsistemas=$aux3->Consultar(\"SELECT MAX(id_sist) FROM tbl_sistemas\");\n\t\tif($codsistemas==\"\"){\n\t\t\t$codsistemas=1;\n\t\t}else{\n\t\t\t$codsistemas=$codsistemas;\n\t\t}\n\t\t\n\t\techo $aux->Ejecutar(\"INSERT INTO tbl_anamnesis (motivocon_anam,enfermedac_anam,tiposangre_anam,nopatologicos_anam,alergias_anam,cardiovaculares_anam,metabolicos_anam,infescciosos_anam,neoplastias_anam,endocrono_anam,pulmonares_anam,nefro_anam,hemato_anam,esquele_anam,inmuno_anam,ginecoobste_anam,otros_anam,cardiovasfam_anam,metabofam_anam,infeccfam_anam,neoplasfam_anam,endocronofam_anam,pulmofam_anam,nefrolofam_anam,hematofam_anam,esquelefam_anam,inmunofam_anam,otrosfam_anam,estado_anam,id_paciente,id_habitos,id_sistemas,fecha_anam,id_tu,gastroe_anam) VALUES('$motivocon','$enfermeactual','$tiposangre','$nopatologicos','$alergi','$cardiovas','$metab','$infecc','$neoplas','$endocro','$pulmon','$nefro','$hemato','$esquele','$inmuno','$gineco','$otrospat','$cardiofam','$metabfam','$infeccfam','$neoplasfam','$endocronofam','$pulmofam','$nefrofam','$hematofam','$esquelefam','$inmunofam','$otrosfam','A','$codoculpacanam','$codhabitos','$codsistemas','$hoy','$CodigoTurnoLight','$gastroen')\");\n\t\t\n\t\techo \"<h3>Se ha guardado correctamente la Anamnesis</h3>\";\n\t}", "title": "" }, { "docid": "38a1689e95d2e62eb415e2af3fefe74f", "score": "0.5724524", "text": "public function updateInventarioEntrante()\n\n {\n\n\t \n\t $id = $_POST['id'];\n\t \n\t $consecutivo_acta = $_POST['consecutivo_acta'];\n\n\t $fecha_acta = $_POST['fecha_acta'];\n\t \n\t $idjuzgado = $_POST['idjuzgado'];\n\t \n\t $responsable = $_POST['responsable'];\n\t \n\t $observaciones = $_POST['observaciones'];\t \n\t \n\t //$mes = $_POST['mes'];\n\t $j=$i=0;\n\t $enero=$febrero=$marzo=$abril=$mayo=$junio=$julio=$agosto=$septiembre=$octubre=$noviembre=$diciembre=0;\n\t \n foreach ($_POST['mes'] as $indice => $valor){ \n \tif($valor==1){\n\t\t $enero=1;\n\t\t }\n\t \telse if($valor==2){\n\t\t $febrero=1;\n\t\t }\n\t\telse if($valor==3){\n\t\t $marzo=1;\n\t\t }\n\t\t else if($valor==4){\n\t\t $abril=1;\n\t\t }\n\t\t else if($valor==5){\n\t\t $mayo=1;\n\t\t }\n\t\t else if($valor==6){\n\t\t $junio=1;\n\t\t }\n\t\t else if($valor==7){\n\t\t $julio=1;\n\t\t }\n\t\t else if($valor==8){\n\t\t $agosto=1;\n\t\t }\n\t\t else if($valor==9){\n\t\t $septiembre=1;\n\t\t }\n\t\t else if($valor==10){\n\t\t $octubre=1;\n\t\t }\n\t\t else if($valor==11){\n\t\t $noviembre=1;\n\t\t }\n\t\t else if($valor==12){\n\t\t $diciembre=1;\n\t\t } \n\t }\n\t \n\t foreach ($_POST['ano'] as $indice1 => $valor1){ \n $vano[$j] = $valor1;\n $j = $j+1;\n } \n\t $i=0;\n\t $cont_ano= count($vano);\n\t $ano= \"\";\n\t \n\t while($i<$cont_ano)\n\t {\n\t if($i!=0)\n\t {\n\t $ano = $ano.\",\";\n\t }\n\t $ano = $ano.$vano[$i];\n\t $i= $i+1;\n\t \n\t }\n\t \n\t \n\t $desde_caja \t\t\t= $_POST['desde_caja'];\n\n\t $hasta_caja \t\t\t= $_POST['hasta_caja'];\n\t \n\t $cantidad_cajas \t\t= $_POST['cantidad_cajas'];\n\t \n\t $desde_expediente \t= $_POST['desde_expediente'];\n\t \n\t $hasta_expediente \t= $_POST['hasta_expediente'];\n\t \n\t $cantidad_expedientes = $_POST['cantidad_expedientes'];\n\t \n\t $nombre_entrega \t\t= $_POST['nombre_entrega'];\n\t \n\t $nombre_recibe \t\t= $_POST['nombre_recibe'];\n\t \n\t $prestados\t\t\t= $_POST['prestados'];\n\t \n\t if($prestados==1)\n\t {\n\t \n\t $cantidad_prestamo = $_POST['cantidad_prestamo'];\n\t $nombre_prestamo = $_POST['nombre_prestamo'];\n\t $observaciones_prestamo = $_POST['observaciones_prestamo'];\n\t }\n\t \n\t \n\t \n\t \n\t \n\t date_default_timezone_set('America/Bogota'); \n\n $fechaa=date('Y-m-d g:ia');\n\n $horaa=explode(' ',$fechaa);\n\n $fechal=$horaa[0];\n \n\t $hora=$horaa[1]; \n\t \n\t $accion='Modific&oacute; Acta Recibido';\n\t $idres = $_SESSION['idUsuario'];\n\n $detalle=$_SESSION['nombre'].\" \".\"Modifico acta de recibido \".$fechal.\" \".\"a las: \".$hora;\n\t \n\t //es de tipo 1 porque va asociado al módulo de archivo \n\t $tipolog=1;\n\n $insertarlog = $this->db->prepare(\"INSERT INTO log (fecha, accion,detalle,idusuario,idtipolog) VALUES ('$fechaa', '$accion','$detalle','$idres','$tipolog');\");\n\n $insertarlog->execute();\n\t \n\t \n\t if($prestados==1)\n\t {\n\t \n\t $registrar = $this->db->prepare(\"UPDATE inventario SET consecutivo_acta='$consecutivo_acta',fecha_acta='$fecha_acta',idjuzgado='$idjuzgado',responsable='$responsable',enero='$enero',febrero='$febrero',marzo='$marzo',abril='$abril',mayo='$mayo',junio='$junio',julio='$julio',agosto='$agosto',septiembre='$septiembre',octubre='$octubre',noviembre='$noviembre',diciembre='$diciembre',ano_archivar='$ano',desde_caja='$desde_caja',hasta_caja='$hasta_caja',desde_expediente='$desde_expediente',hasta_expediente='$hasta_expediente',cantidad_expedientes='$cantidad_expedientes',cantidad_cajas='$cantidad_cajas',nombre_entrega='$nombre_entrega',nombre_recibe='$nombre_recibe', observaciones='$observaciones', cantidad_expedientes_prestados='$cantidad_prestamo', persona_presto='$nombre_prestamo', observaciones_prestamo='$observaciones_prestamo' WHERE id='$id'\");\n\n\t }\n\t else\n\t {\n\t $registrar = $this->db->prepare(\"UPDATE inventario SET consecutivo_acta='$consecutivo_acta',fecha_acta='$fecha_acta',idjuzgado='$idjuzgado',responsable='$responsable',enero='$enero',febrero='$febrero',marzo='$marzo',abril='$abril',mayo='$mayo',junio='$junio',julio='$julio',agosto='$agosto',septiembre='$septiembre',octubre='$octubre',noviembre='$noviembre',diciembre='$diciembre',ano_archivar='$ano',desde_caja='$desde_caja',hasta_caja='$hasta_caja',desde_expediente='$desde_expediente',hasta_expediente='$hasta_expediente',cantidad_expedientes='$cantidad_expedientes',cantidad_cajas='$cantidad_cajas',nombre_entrega='$nombre_entrega',nombre_recibe='$nombre_recibe', observaciones='$observaciones' WHERE id='$id'\");\n\t \n\t } \n\t \n\t \n\t $registrar->execute(); \n\t $resultado = $registrar->rowCount();\n\n\t\t\n\n print'<script languaje=\"Javascript\">location.href=\"index.php?controller=archivo&action=mensajes&nombre=5\"</script>';\n\n \n\n\t \n\t \n\n }", "title": "" }, { "docid": "527a31a44593c6d76825df5b357453e7", "score": "0.5720354", "text": "public function agregar_guardar_temporalmente(){\n\n\n\t\t\t//validacion de rol\n\t\t\tif($_SESSION[\"rol\"]!=\"operario\"\tand $_SESSION[\"rol\"]!=\"tostador\")\n\t\t\t{\n\t\t\t\t// agrego mensaje a arreglo de datos para ser mostrado \n\t\t\t\t$datos['mensaje_advertencia'] ='Usted no tiene permiso para realizar esta acción';\n\t\t\t\t// vuelvo a llamar la misma vista con los datos enviados previamente para que usuario corrija\n\t\t\t\t$this->vista('/paginas/index',$datos);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t//consultas datos para los select del formulario\n\t\t\t$materias = $this->materiaPrimaModelo -> obtenerMateriasPrimas();\n\t\t\t$materias = json_encode($materias);\n\t\t\t$beneficios = $this->tipoBeneficioModelo -> obtenerTiposBeneficio();\n\t\t\t$beneficios = json_encode($beneficios);\n\n\n\t\t\t$datos[\"materias\"]=$materias;\n\t\t\t$datos[\"beneficios\"]=$beneficios;\n\n\t\t\t// recupero y guardo de nuevo datos del cliente (vienen de los hidden y van para los hidden de nuevo)\n\t\t\t$datos[\"idCliente\"]=$_POST['idCliente'];\n\t\t\t$datos['idDetalleFinca']=$_POST['idDetalleFinca'];\n\t\t\t$datos['correo']=$_POST[\"correo\"];\n\t\t\t$datos['direccion']=$_POST[\"direccion\"];\n\t\t\t$datos['Temperatura']=$_POST[\"Temperatura\"];\n\t\t\t$datos['numeroContacto']=$_POST[\"numeroContacto\"];\n\n\t\t\t// recupero los datos del formulario, la finca que se desea agregar/actualizar\n\t\t\t//$datos[\"archivo\"]=$_POST['archivo'];\n\t\t\t$datos[\"pesoMuestra\"]=$_POST['pesoMuestra'];\n\t\t\t$datos[\"pesoRecibido\"]=$_POST['pesoRecibido'];\n\t\t\t$datos[\"variedad\"]=$_POST['variedad'];\n\t\t\t$datos[\"tipoTueste\"]=$_POST['tipoTueste'];\n\t\t\t$datos[\"materia\"]=$_POST['materia'];\n\t\t\t$datos[\"beneficio\"]=$_POST['beneficio'];\n\t\t\t$datos[\"PorcentajeHumedad\"]=$_POST['PorcentajeHumedad'];\n\t\t\t$datos[\"factorRendimiento\"]=$_POST['factorRendimiento'];\n\t\t\t$datos[\"especie\"]=$_POST['especie'];\n\t\t\t$datos[\"actividadAcuosa\"]=$_POST['actividadAcuosa'];\n\n\t\t\t$datos[\"molidaLibra\"]=$_POST['molidaLibra'];\n\t\t\t$datos[\"molidaMediaLibra\"]=$_POST['molidaMediaLibra'];\n\t\t\t$datos[\"molidaCincoLibras\"]=$_POST['molidaCincoLibras'];\n\t\t\t$datos[\"granoLibra\"]=$_POST['granoLibra'];\n\t\t\t$datos[\"granoMediaLibra\"]=$_POST['granoMediaLibra'];\n\t\t\t$datos[\"granoCincoLibras\"]=$_POST['granoCincoLibras'];\n\t\t\t$datos[\"agranel\"]=$_POST['agranel'];\n\n\t\t\t$datos[\"VrmolidaLibra\"]=$_POST['VrmolidaLibra'];\n\t\t\t$datos[\"VrmolidaMediaLibra\"]=$_POST['VrmolidaMediaLibra'];\n\t\t\t$datos[\"VrmolidaCincoLibras\"]=$_POST['VrmolidaCincoLibras'];\n\t\t\t$datos[\"VrgranoLibra\"]=$_POST['VrgranoLibra'];\n\t\t\t$datos[\"VrgranoMediaLibra\"]=$_POST['VrgranoMediaLibra'];\n\t\t\t$datos[\"VrgranoCincoLibras\"]=$_POST['VrgranoCincoLibras'];\n\t\t\t$datos[\"VrAgranel\"]=$_POST['VrAgranel'];\n\t\t\t$datos[\"valorTotal\"]=$_POST['valorTotal'];\n\n\t\t\t$datos[\"estado\"]=$_POST['estado'];\n\t\t\t$datos[\"idLoteCafe\"]=$_POST['idLoteCafe'];\n\t\t\t\t\n\t\t\t//recupero datos de las fincas que se han creado temporalmente (guardadas en el hidden y no se han guardado en BD)\n\t\t\tif(!empty($_POST[\"lotesJson\"])){\n\t\t\t\t$datos[\"lotesArr\"]=json_decode($_POST[\"lotesJson\"]);\n\t\t\t\t//El siguiente codigo arregla un error que se genera al mandar los datos de las fincas por post, y estas se convierten en objetos, pero las necesitamos como array\n\t\t\t\t$temp_array=array();\n\t\t\t\tforeach ($datos['lotesArr'] as $lote) {\n\t\t\t\t\t$lote_temp = array(\n\t\t\t\t\t\t//'archivo'=>$lote->archivo,\n\t\t\t\t\t\t\t\t\t\t'pesoRecibido'=>$lote->pesoRecibido,\n\t\t\t\t\t\t\t\t\t\t'pesoMuestra'=>$lote->pesoMuestra,\n\t\t\t\t\t\t\t\t\t\t'variedad'=>$lote->variedad,\n\t\t\t\t\t\t\t\t\t\t'tipoTueste'=>$lote->tipoTueste,\n\t\t\t\t\t\t\t\t\t\t'materia'=>$lote->materia,\n\t\t\t\t\t\t\t\t\t\t'beneficio'=>$lote->beneficio,\n\t\t\t\t\t\t\t\t\t\t'PorcentajeHumedad'=>$lote->PorcentajeHumedad,\n\t\t\t\t\t\t\t\t\t\t'factorRendimiento'=>$lote->factorRendimiento,\n\t\t\t\t\t\t\t\t\t\t'especie'=>$lote->especie,\n\t\t\t\t\t\t\t\t\t\t'molidaLibra'=>$lote->molidaLibra,\n\t\t\t\t\t\t\t\t\t\t'molidaMediaLibra'=>$lote->molidaMediaLibra,\n\t\t\t\t\t\t\t\t\t\t'molidaCincoLibras'=>$lote->molidaCincoLibras,\n\t\t\t\t\t\t\t\t\t\t'granoLibra'=>$lote->granoLibra,\n\t\t\t\t\t\t\t\t\t\t'granoMediaLibra'=>$lote->granoMediaLibra,\n\t\t\t\t\t\t\t\t\t\t'granoCincoLibras'=>$lote->granoCincoLibras,\n\t\t\t\t\t\t\t\t\t\t'agranel'=>$lote->agranel,\n\t\t\t\t\t\t\t\t\t\t'VrmolidaLibra'=>$lote->VrmolidaLibra,\n\t\t\t\t\t\t\t\t\t\t'VrmolidaMediaLibra'=>$lote->VrmolidaMediaLibra,\n\t\t\t\t\t\t\t\t\t\t'VrmolidaCincoLibras'=>$lote->VrmolidaCincoLibras,\n\t\t\t\t\t\t\t\t\t\t'VrgranoLibra'=>$lote->VrgranoLibra,\n\t\t\t\t\t\t\t\t\t\t'VrgranoMediaLibra'=>$lote->VrgranoMediaLibra,\n\t\t\t\t\t\t\t\t\t\t'VrgranoCincoLibras'=>$lote->VrgranoCincoLibras,\n\t\t\t\t\t\t\t\t\t\t'VrAgranel'=>$lote->VrAgranel,\n\t\t\t\t\t\t\t\t\t\t'estado'=>$lote->estado,\n\t\t\t\t\t\t\t\t\t\t'actividadAcuosa' => $lote->actividadAcuosa,\n\t\t\t\t\t\t\t\t\t\t'valorTotal' => $lote->valorTotal,\n\t\t\t\t\t\t\t\t\t\t'idLoteCafe' => $lote->idLoteCafe);\n\n\t\t\t\t\tarray_push($temp_array, $lote_temp);\n\n\t\t\t\t}\n\t\t\t\t$datos[\"lotesArr\"] = $temp_array;//fin del arreglo\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$datos[\"lotesArr\"]=array();\n\t\t\t}\n\n\n\t\t\t\tif($datos[\"idLoteCafe\"] == -1 )\n\t\t\t\t{\n\t\t\t\t\t//es una nueva finca\n\t\t\t\t\t\n\t\t\t\t\t\t// creo array con datos\n\t\t\t\t\t\t$nuevoLote = array(\n\t\t\t\t\t\t\t\t\t\t//'archivo'=>$_POST['archivo'],\n\t\t\t\t\t\t\t\t\t\t'pesoRecibido'=>$_POST['pesoRecibido'],\n\t\t\t\t\t\t\t\t\t\t'pesoMuestra'=>$_POST['pesoMuestra'],\n\t\t\t\t\t\t\t\t\t\t'variedad'=>$_POST['variedad'],\n\t\t\t\t\t\t\t\t\t\t'tipoTueste'=>$_POST['tipoTueste'],\n\t\t\t\t\t\t\t\t\t\t'materia'=>$_POST['materia'],\n\t\t\t\t\t\t\t\t\t\t'beneficio'=>$_POST['beneficio'],\n\t\t\t\t\t\t\t\t\t\t'PorcentajeHumedad'=>$_POST['PorcentajeHumedad'],\n\t\t\t\t\t\t\t\t\t\t'factorRendimiento'=>$_POST['factorRendimiento'],\n\t\t\t\t\t\t\t\t\t\t'especie'=>$_POST['especie'],\n\t\t\t\t\t\t\t\t\t\t'molidaLibra'=>$_POST['molidaLibra'],\n\t\t\t\t\t\t\t\t\t\t'molidaMediaLibra'=>$_POST['molidaMediaLibra'],\n\t\t\t\t\t\t\t\t\t\t'molidaCincoLibras'=>$_POST['molidaCincoLibras'],\n\t\t\t\t\t\t\t\t\t\t'granoLibra'=>$_POST['granoLibra'],\n\t\t\t\t\t\t\t\t\t\t'granoMediaLibra'=>$_POST['granoMediaLibra'],\n\t\t\t\t\t\t\t\t\t\t'granoCincoLibras'=>$_POST['granoCincoLibras'],\n\t\t\t\t\t\t\t\t\t\t'agranel'=>$_POST['agranel'],\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'VrmolidaLibra'=>$_POST['VrmolidaLibra'],\n\t\t\t\t\t\t\t\t\t\t'VrmolidaMediaLibra'=>$_POST['VrmolidaMediaLibra'],\n\t\t\t\t\t\t\t\t\t\t'VrmolidaCincoLibras'=>$_POST['VrmolidaCincoLibras'],\n\t\t\t\t\t\t\t\t\t\t'VrgranoLibra'=>$_POST['VrgranoLibra'],\n\t\t\t\t\t\t\t\t\t\t'VrgranoMediaLibra'=>$_POST['VrgranoMediaLibra'],\n\t\t\t\t\t\t\t\t\t\t'VrgranoCincoLibras'=>$_POST['VrgranoCincoLibras'],\n\t\t\t\t\t\t\t\t\t\t'VrAgranel'=>$_POST['VrAgranel'],\n\t\t\t\t\t\t\t\t\t\t'actividadAcuosa'=>$_POST['actividadAcuosa'],\n\t\t\t\t\t\t\t\t\t\t'valorTotal'=>$_POST['valorTotal'],\n\n\t\t\t\t\t\t\t\t\t\t'estado'=>$_POST['estado'],\n\t\t\t\t\t\t\t\t\t\t'idLoteCafe' => count($datos[\"lotesArr\"])//agrega un id ficticio para poder editarlo despues, coincide con la pocision en el arreglo para que al editar se pueda usar este mismo id como indice en el arreglo\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t/*//consultar nombres departamento y municipio\n\t\t\t\t\t\t$nombres = $this->UbicacionModelo->obtenerNombresMunicipioId($_POST['municipio']);\n\n\t\t\t\t\t\t//aregar a modelo para visualizarlos en tabla de fincas areggadas\n\t\t\t\t\t\t$nuevoLote[\"nombreMunicipio\"]= $nombres->municipio;\t\t\t\t\t\t\n\t\t\t\t\t\t$nuevoLote[\"nombreDepartamento\"]= $nombres->departamento;*/\n\t\t\t\t\t\n\t\t\t\t\t\t//agrego la finca al array de fincas para renderizar tabla de fincas creadas temporalmente en el formulario\n\t\t\t\t\t\tarray_push($datos[\"lotesArr\"], $nuevoLote);\n\n\n\n\t\t\t\t\t\t//envio datos de fincas existentes para gurdarlas en el campo hidden para poder editar las temporales o finalmente guardarlas en BD \n\t\t\t\t\t\t$datos[\"lotesJson\"]=json_encode($datos[\"lotesArr\"]);\n\n\t\t\t\t\t\t//limpio el formulario\n\t\t\t\t\t\tunset($datos[\"nombreFinca\"]);\n\t\t\t\t\t\t//unset($datos[\"archivo\"]);\n\t\t\t\t\t\tunset($datos[\"pesoRecibido\"]);\n\t\t\t\t\t\tunset($datos[\"pesoMuestra\"]);\n\t\t\t\t\t\tunset($datos[\"variedad\"]);\n\t\t\t\t\t\tunset($datos[\"tipoTueste\"]);\n\t\t\t\t\t\tunset($datos[\"materia\"]);\n\t\t\t\t\t\tunset($datos[\"beneficio\"]);\n\t\t\t\t\t\tunset($datos[\"PorcentajeHumedad\"]);\n\t\t\t\t\t\tunset($datos[\"factorRendimiento\"]);\n\t\t\t\t\t\tunset($datos[\"especie\"]);\n\t\t\t\t\t\tunset($datos[\"molidaLibra\"]);\n\t\t\t\t\t\tunset($datos[\"molidaMediaLibra\"]);\n\t\t\t\t\t\tunset($datos[\"molidaCincoLibras\"]);\n\t\t\t\t\t\tunset($datos[\"granoLibra\"]);\n\t\t\t\t\t\tunset($datos[\"granoMediaLibra\"]);\n\t\t\t\t\t\tunset($datos[\"granoCincoLibras\"]);\n\t\t\t\t\t\tunset($datos[\"agranel\"]);\n\t\t\t\t\t\tunset($datos[\"VrmolidaLibra\"]);\n\t\t\t\t\t\tunset($datos[\"VrmolidaMediaLibra\"]);\n\t\t\t\t\t\tunset($datos[\"VrmolidaCincoLibras\"]);\n\t\t\t\t\t\tunset($datos[\"VrgranoLibra\"]);\n\t\t\t\t\t\tunset($datos[\"VrgranoMediaLibra\"]);\n\t\t\t\t\t\tunset($datos[\"VrgranoCincoLibras\"]);\n\t\t\t\t\t\tunset($datos[\"VrAgranel\"]);\n\t\t\t\t\t\tunset($datos[\"actividadAcuosa\"]);\n\n\t\t\t\t\t\tunset($datos[\"valorTotal\"]);\n\t\t\t\t\t\t\n\t\t\t\t\t\tunset($datos[\"estado\"]);\n\t\t\t\t\t\tunset($datos[\"idLoteCafe\"]);\n\n\n\n\t\t\t\t\t\t//var_dump($datos);\n\t\t\t\t\t\t// carga formulario vacio solo fincas existentes\n\t\t\t\t\t\t$this->vista('Cafes/agregar', $datos);\n\t\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\t//editar finca creada temporalmente\n\t\t\t\t\t\t\n\t\t\t\t\t\t$datosModificados = array(\n\t\t\t\t\t\t\t\t\t\t//'archivo'=>$_POST['archivo'],\n\t\t\t\t\t\t\t\t\t\t'pesoRecibido'=>$_POST['pesoRecibido'],\n\t\t\t\t\t\t\t\t\t\t'pesoMuestra'=>$_POST['pesoMuestra'],\n\t\t\t\t\t\t\t\t\t\t'variedad'=>$_POST['variedad'],\n\t\t\t\t\t\t\t\t\t\t'tipoTueste'=>$_POST['tipoTueste'],\n\t\t\t\t\t\t\t\t\t\t'materia'=>$_POST['materia'],\n\t\t\t\t\t\t\t\t\t\t'beneficio'=>$_POST['beneficio'],\n\t\t\t\t\t\t\t\t\t\t'PorcentajeHumedad'=>$_POST['PorcentajeHumedad'],\n\t\t\t\t\t\t\t\t\t\t'factorRendimiento'=>$_POST['factorRendimiento'],\n\t\t\t\t\t\t\t\t\t\t'especie'=>$_POST['especie'],\n\t\t\t\t\t\t\t\t\t\t'molidaLibra'=>$_POST['molidaLibra'],\n\t\t\t\t\t\t\t\t\t\t'molidaMediaLibra'=>$_POST['molidaMediaLibra'],\n\t\t\t\t\t\t\t\t\t\t'molidaCincoLibras'=>$_POST['molidaCincoLibras'],\n\t\t\t\t\t\t\t\t\t\t'granoLibra'=>$_POST['granoLibra'],\n\t\t\t\t\t\t\t\t\t\t'granoMediaLibra'=>$_POST['granoMediaLibra'],\n\t\t\t\t\t\t\t\t\t\t'granoCincoLibras'=>$_POST['granoCincoLibras'],\n\t\t\t\t\t\t\t\t\t\t'agranel'=>$_POST['agranel'],\n\t\t\t\t\t\t\t\t\t\t'VrmolidaLibra'=>$_POST['VrmolidaLibra'],\n\t\t\t\t\t\t\t\t\t\t'VrmolidaMediaLibra'=>$_POST['VrmolidaMediaLibra'],\n\t\t\t\t\t\t\t\t\t\t'VrmolidaCincoLibras'=>$_POST['VrmolidaCincoLibras'],\n\t\t\t\t\t\t\t\t\t\t'VrgranoLibra'=>$_POST['VrgranoLibra'],\n\t\t\t\t\t\t\t\t\t\t'VrgranoMediaLibra'=>$_POST['VrgranoMediaLibra'],\n\t\t\t\t\t\t\t\t\t\t'VrgranoCincoLibras'=>$_POST['VrgranoCincoLibras'],\n\t\t\t\t\t\t\t\t\t\t'VrAgranel'=>$_POST['VrAgranel'],\n\t\t\t\t\t\t\t\t\t\t'actividadAcuosa'=>$_POST['actividadAcuosa'],\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t'valorTotal'=>$_POST['valorTotal'],\n\t\t\t\t\t\t\t\t\t\t'estado'=>$_POST['estado'], \n\t\t\t\t\t\t\t\t\t\t'idLoteCafe' => $_POST[\"idLoteCafe\"]);//usa el id temporal de la finca que se esta editando\n\n\t\t\t\t\t\t/*//consultar nombres departamento y municipio\n\t\t\t\t\t\t$nombres = $this->UbicacionModelo->obtenerNombresMunicipioId($_POST['municipio']);\n\n\t\t\t\t\t\t//aregar a modelo para visualizarlos en tabla de fincas areggadas\n\t\t\t\t\t\t$datosModificados[\"nombreMunicipio\"]= $nombres->municipio;\t\t\t\t\t\t\n\t\t\t\t\t\t$datosModificados[\"nombreDepartamento\"]= $nombres->departamento;*/\n\n\t\t\t\t\t\t//reemplazo la finca en el indice especificado por los datos modificados\n\t\t\t\t\t\t$datos[\"lotesArr\"][$datos[\"idLoteCafe\"]]=$datosModificados;\n\n\n\n\t\t\t\t\t\t//envio datos de fincas existentes para gurdarlas en el campo hidden para poder editar las temporales o finalmente guardarlas en BD \n\t\t\t\t\t\t$datos[\"lotesJson\"]=json_encode($datos[\"lotesArr\"]);\n\n\t\t\t\t\t\t//limpio el formulario\n\t\t\t\t\t\tunset($datos[\"nombreFinca\"]);\n\t\t\t\t\t\tunset($datos[\"archivo\"]);\n\t\t\t\t\t\tunset($datos[\"pesoRecibido\"]);\n\t\t\t\t\t\tunset($datos[\"pesoMuestra\"]);\n\t\t\t\t\t\tunset($datos[\"variedad\"]);\n\t\t\t\t\t\tunset($datos[\"tipoTueste\"]);\n\t\t\t\t\t\tunset($datos[\"materia\"]);\n\t\t\t\t\t\tunset($datos[\"beneficio\"]);\n\t\t\t\t\t\tunset($datos[\"PorcentajeHumedad\"]);\n\t\t\t\t\t\tunset($datos[\"factorRendimiento\"]);\n\t\t\t\t\t\tunset($datos[\"especie\"]);\n\t\t\t\t\t\tunset($datos[\"molidaLibra\"]);\n\t\t\t\t\t\tunset($datos[\"molidaMediaLibra\"]);\n\t\t\t\t\t\tunset($datos[\"molidaCincoLibras\"]);\n\t\t\t\t\t\tunset($datos[\"granoLibra\"]);\n\t\t\t\t\t\tunset($datos[\"granoMediaLibra\"]);\n\t\t\t\t\t\tunset($datos[\"granoCincoLibras\"]);\n\t\t\t\t\t\tunset($datos[\"agranel\"]);\n\t\t\t\t\t\tunset($datos[\"VrmolidaLibra\"]);\n\t\t\t\t\t\tunset($datos[\"VrmolidaMediaLibra\"]);\n\t\t\t\t\t\tunset($datos[\"VrmolidaCincoLibras\"]);\n\t\t\t\t\t\tunset($datos[\"VrgranoLibra\"]);\n\t\t\t\t\t\tunset($datos[\"VrgranoMediaLibra\"]);\n\t\t\t\t\t\tunset($datos[\"VrgranoCincoLibras\"]);\n\t\t\t\t\t\tunset($datos[\"VrAgranel\"]);\n\t\t\t\t\t\tunset($datos[\"valorTotal\"]);\n\t\t\t\t\t\tunset($datos[\"estado\"]);\n\t\t\t\t\t\tunset($datos[\"idLoteCafe\"]);\n\n\n\t\t\t\t\t\t//var_dump($datos);\n\t\t\t\t\t\t// cargar vista vacia (solo fincas existentes)\n\t\t\t\t\t\t$this->vista('Cafes/agregar', $datos);\n\t\t\t\t\t\t\n\t\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "19583cb06d33987abfde33984bb756bd", "score": "0.5719212", "text": "function listEmpleados($activo) {\n\t\t$con = conn();\n\t\t$l = $con -> query(\"select per.id, upper(concat(per.nombres,' ',per.a_pat,' ',per.a_pat)) as empleado,upper(p.nombre) as puesto,\n\t\t\t\t\t\t\tp.salario,p.hrs_trabj from personal as per, puesto as p where\n\t\t\t\t\t\t\tper.puesto = p.clave and per.activo = $activo\");\n\t\treturn $l;\n\t}", "title": "" }, { "docid": "6d8513b504326caecabc034ee1671e6f", "score": "0.5718179", "text": "function siguienteEstadoProcesoCaja(){\n $this->procedimiento='tes.ft_proceso_caja_ime';\n $this->transaccion='TES_SIGEREN_IME';\n $this->tipo_procedimiento='IME';\n\n //Define los parametros para la funcion\n $this->setParametro('id_proceso_wf_act','id_proceso_wf_act','int4');\n $this->setParametro('id_estado_wf_act','id_estado_wf_act','int4');\n $this->setParametro('id_funcionario_usu','id_funcionario_usu','int4');\n $this->setParametro('id_tipo_estado','id_tipo_estado','int4');\n $this->setParametro('id_funcionario_wf','id_funcionario_wf','int4');\n $this->setParametro('id_depto_wf','id_depto_wf','int4');\n $this->setParametro('id_cuenta_bancaria','id_cuenta_bancaria','int4');\n $this->setParametro('id_cuenta_bancaria_mov','id_cuenta_bancaria_mov','int4');\n $this->setParametro('obs','obs','text');\n $this->setParametro('json_procesos','json_procesos','text');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "title": "" }, { "docid": "e1c9b38c1b095152a1bc276ac67bd33d", "score": "0.57134324", "text": "public function cargar_acceso_nodos_modificar_terceros($parametros){\r\n // print_r($parametros);\r\n if (count($this->id_org_acceso_explicito) <= 0){\r\n $this->cargar_acceso_nodos_explicito($parametros);\r\n } \r\n foreach ($this->id_org_acceso_explicito as $value) {\r\n if ($value['modificar_terceros'])\r\n $this->id_org_acceso_mod_terceros[$value[id]] = $value;\r\n } \r\n }", "title": "" }, { "docid": "08c1fb1cd7f5da5b7383d971fe3848ee", "score": "0.5710876", "text": "public static function solicitarEjemplar(Solicitud $psolicitud, $em)\n {\n $respuesta = new Respuesta();\n $usuario = new Usuario();\n\n try {\n //Valida que la sesión corresponda y se encuentre activa\n $respSesionVali= ManejoDataRepository::validaSesionUsuario($psolicitud, $em);\n //echo \"solicitarEjemplar :: Validez de sesion \".$respSesionVali.\" \\n\";\n if ($respSesionVali== GamesController::inULogged) \n { \n //echo \"solicitarEjemplar :: FindAll \";\n //Busca el usuario \n $usuario = ManejoDataRepository::getUsuarioByEmail($psolicitud->getEmail(), $em);\n $ejemplar = ManejoDataRepository::getEjemplarById($psolicitud->getIdEjemplar(), $em);\n $videojuego = ManejoDataRepository::getVideojuego($ejemplar->getejemplarVideojuego(), $em);\n $ejemplarduenousuario = ManejoDataRepository::getEjemplarusuario($psolicitud->getIdEjemusuario(), $em); \n \n //Crea el trato\n //echo \"solicitarEjemplar :: Crea el trato\";\n $resp = ManejoDataRepository::solicitaEjemplarVideojuego($usuario, $ejemplar, $ejemplarduenousuario, $respuesta, $em);\n \n $respuesta->setRespuesta(GamesController::inExitoso);\n \n //SE INACTIVA PORQUE PUEDE GENERAR UNA GRAN CANTIDAD DE REGISTROS EN UNA SOLA SESION\n //Busca y recupera el objeto de la sesion:: \n //$sesion = ManejoDataRepository::recuperaSesionUsuario($usuario,$psolicitud);\n //echo \"<script>alert('La sesion es \".$sesion->getTxsesnumero().\" ')</script>\";\n //Guarda la actividad de la sesion:: \n //ManejoDataRepository::generaActSesion($sesion,AccesoController::inDatoUno,\"Recupera Feed de Ejemplares\".$psolicitud->getEmail().\" recuperados con éxito \",$psolicitud->getAccion(),$fecha,$fecha);\n //echo \"<script>alert('Generó actividad de sesion ')</script>\";\n \n return Logica::generaRespuesta($respuesta, $psolicitud, $ejemplar, $em);\n \n } else {\n $respuesta->setRespuesta($respSesionVali);\n $ejemplares = array();\n return Logica::generaRespuesta($respuesta, $psolicitud, $ejemplares, $em);\n }\n } catch (Exception $ex) {\n $respuesta->setRespuesta(GamesController::inPlatCai);\n $ejemplares = array();\n return Logica::generaRespuesta($respuesta, $psolicitud, $ejemplares, $em);\n }\n \n }", "title": "" }, { "docid": "e10be50c970ae78d3ecb873fb377d725", "score": "0.57058424", "text": "private function alarmadosProactivos()\n {\n if ($this->get_request_method () != \"GET\") {\n $this->response ('Servicio no soportado', 406);\n }\n\n $usuarioIp = $_SERVER['REMOTE_ADDR'];\n $usuarioPc = gethostbyaddr ($usuarioIp);\n $galleta = json_decode (stripslashes ($_COOKIE['logedUser']), true);\n $galleta = stripslashes ($_COOKIE['logedUser']);\n $galleta = json_decode ($galleta);\n $galleta = json_decode (json_encode ($galleta), True);\n $usuarioGalleta = $galleta['login'];\n $nombreGalleta = $galleta['name'];\n $grupoGalleta = $galleta['GRUPO'];\n\n $pedido = $this->_request['pedido'];\n $fechaServidor = date(\"Y-m-d H:i:s\");\n $horaServidor = date(\"H\");\n $fecha = date(\"Y-m-d\");\n $intervaltime = \"'$fecha'\";\n $mysqlerror = \"\";\n $error = \"\";\n $sqlok = false;\n $alarmadosRecu = array();\n $alarmados = array();\n $alarmadosHist = array();\n\n $sqlAlarmados = \" select \".\n \" left(c2.RESPONSABLE,4) as RESPONSABLE \".\n \" , COUNT(*) as CANTIDAD \".\n \" from ( \".\n \" SELECT \".\n \" C1.PEDIDO_ID \".\n \" , case \".\n \" when group_concat(distinct C1.RESPONSABLE order by C1.RESPONSABLE asc) ='ASIGNACIONES,RECONFIGURACION' then 'RECONFIGURACION' \".\n \" when group_concat(distinct C1.RESPONSABLE order by C1.RESPONSABLE asc) ='ACCESO,ASIGNACIONES' then 'ACCESO' \".\n \" when group_concat(distinct C1.RESPONSABLE order by C1.RESPONSABLE asc) ='ASIGNACIONES,OTRO' then 'OTRO' \".\n \" else group_concat(distinct C1.RESPONSABLE order by C1.RESPONSABLE asc) \".\n \" end AS RESPONSABLE \".\n \" , group_concat(distinct C1.CONCEPTO_ID) AS CONCEPTO_ID \".\n \" , group_concat(distinct C1.ALARMAFECHA) AS ALARMA \".\n \" FROM (SELECT \".\n \" a.PEDIDO_ID \".\n \" , a.SUBPEDIDO_ID \".\n \" , a.SOLICITUD_ID \".\n \" , a.FECHA_CITA \".\n \" , a.TIPO_ELEMENTO_ID \".\n \" , a.TIPO_SOLICITUD \".\n \" , a.TRABAJOS \".\n \" , a.ESTADO_ID \".\n \" , a.ESTADO_SOLI \".\n \" , a.CONCEPTO_ID \".\n \" , a.DESCRIPCION_CONCEPTO \".\n \" , a.DESCRIPCION_ESTADO \".\n \" , a.UEN_CALCULADA \".\n \" , CASE \".\n \" WHEN a.DEPARTAMENTO='' THEN 'Antioquia' \".\n \" ELSE a.DEPARTAMENTO \".\n \" END AS DEPARTAMENTO \".\n \" , CASE \".\n \" WHEN a.FECHA_CITA=(CURDATE() + INTERVAL 1 DAY) THEN 'MANANA' \".\n \" WHEN a.FECHA_CITA=(CURDATE() + INTERVAL 2 DAY) THEN 'PASADO_MANANA' \".\n \" WHEN a.FECHA_CITA>=(CURDATE() + INTERVAL 3 DAY) THEN 'FUTURA' \".\n \" END AS ALARMAFECHA \".\n \" , CASE \".\n \" WHEN a.CONCEPTO_ID NOT IN ('CUMPL','DEMO','FACTU','ORDEN','PFACT','PEXPQ','PORDE','PSERV','PXSLN','PCTEC','INCON','POPTO','PRACC','PQUET','PRUTA','PCEQU','APPRV') AND a.FECHA_CITA=(CURDATE() + INTERVAL 1 DAY) THEN 'SI' \".\n \" ELSE 'NO' \".\n \" END AS ALARMO_COMP \".\n \" , CASE \".\n \" WHEN a.CONCEPTO_ID IN ('ANCAT','ANDUS','ANFRA','ANFRU','ANINP','ANPUS','ANSPE','ANTNE','ANULA', \".\n \" 'ANUOS','ANUPO','ANXSC','APRCT','APROB','AVENC','AXGAR','42','43','46','32','36','37') THEN 'SI' \".\n \" WHEN a.ESTADO_SOLI='ANULA' THEN 'SI' \".\n \" ELSE 'NO' \".\n \" END AS ANULO_COMP \".\n \" , CASE \".\n \" when a.CONCEPTO_ID IN ('PETEC','OKRED','PEOPP','19','O-13','O-15','O-106','PUMED') then 'ASIGNACIONES' \".\n \" when a.CONCEPTO_ID IN ('O-300') then 'ACTIVACION' \".\n \" when a.CONCEPTO_ID IN ('14','99','O-101') then 'RECONFIGURACION' \".\n \" when a.CONCEPTO_ID IN ('AGEN','O-02','O-07','O-08','O-23','O-49','O-50','O-65','O-103','O-AGN','O-40','O-34','AGEND','PPRG','PROG','REAGE') then 'AGENDAMIENTO' \".\n \" when a.CONCEPTO_ID IN ('11','PVENC') then 'BACK' \".\n \" when a.CONCEPTO_ID IN ('2','O-115','O-06') then 'OPERACION CLIENTES' \".\n \" when a.CONCEPTO_ID IN ('PECBA','PLICO','23','24','25','25D','26D','74S','O-85','O-01','O-09') then 'ACCESO' \".\n \" when a.CONCEPTO_ID IN ('PEREP','PECAR','PECSA') then 'CREDITO Y CARTERA' \".\n \" when a.CONCEPTO_ID IN ('82','PEN82','PEFRA') then 'CONTROL FRAUDES' \".\n \" when a.CONCEPTO_ID IN ('47') then 'TI' \".\n \" when a.CONCEPTO_ID in ('42','ANPUS','ANSPE','ANUPO','ANVAL','APRCT','39','34','ANFRU','ANDUS','ANINS','ANCMT','ANFRA') then 'ANULADO CLIENTE' \".\n \" when a.CONCEPTO_ID in ('ANUOS') then 'ANULADO SUSTITUCION' \".\n \" when a.CONCEPTO_ID in ('ANCAT','43','36','32','46','AVENT') then 'ANULADO TECNICO' \".\n \" when a.CONCEPTO_ID in ('AXGAR','AVENC','41','40','44','98','37') then 'ANULADO VENTAS' \".\n \" else 'OTRO' \".\n \" END AS RESPONSABLE \".\n \" FROM scheduling.agendamientoxfenix a \".\n \" where 1=1 \".\n \" and a.pedido_id not like '%pre%' \".\n \" and a.TIPO_ELEMENTO_ID in ('ACCESP','TO','TOIP','INSIP','INSHFC','EQURED','SERHFC') \".\n \" and a.UEN_CALCULADA='HG' \".\n \" ) C1 \".\n \" WHERE 1=1 \".\n \" AND C1.ANULO_COMP='NO' \".\n \" AND C1.ALARMO_COMP='SI' \".\n \" GROUP BY C1.PEDIDO_ID ) c2 \".\n \" where c2.RESPONSABLE in ('ASIGNACIONES','RECONFIGURACION','ACTIVACION') \".\n \" group by c2.RESPONSABLE \";\n\n $rAlarmados = $this->mysqli->query($sqlAlarmados);\n\n if($rAlarmados->num_rows > 0){\n\n while($row = $rAlarmados->fetch_assoc()){\n $alarmados[] = $row;\n }\n\n $sqlok = true;\n }else{\n $alarmados = array(\n array('RESPONSABLE'=>'ACTI', 'CANTIDAD'=>0),\n array('RESPONSABLE'=>'ASIG', 'CANTIDAD'=>0),\n array('RESPONSABLE'=>'RECO', 'CANTIDAD'=>0)\n\n );\n $error = \"No hay datos.\";\n $sqlok = tru;\n }\n\n if($horaServidor>=16){\n $intervaltime = \" DATE_ADD('$fecha', INTERVAL 1 DAY) \" ;\n $fecha = date('Y-m-d',strtotime($fecha . \"+1 days\"));\n }\n $sqlAlarmadosHistorico = \"select \".\n \" left(c2.RESPONSABLE,4) as RESPONSABLE \".\n \" , count(*) as CANTIDAD \".\n \" from ( \".\n \" SELECT \".\n \" C1.FECHA_CITA \".\n \" , C1.PEDIDO_ID \".\n \" , group_concat(distinct C1.RESPONSABLE) AS RESPONSABLE \".\n \" , group_concat(distinct C1.CONCEPTO_ID) AS CONCEPTO_ID \".\n \" FROM (SELECT \".\n \" a.PEDIDO_ID \".\n \" , a.CONCEPTO_ID \".\n \" , a.FECHA_CITA \".\n \" , a.TIPO_ELEMENTO_ID \".\n \" , a.UEN_CALCULADA \".\n \" , a.DEPARTAMENTO \".\n \" , ALARMO_COMP \".\n \" , a.ANULO_COMP \".\n \" , a.RESPONSABLE \".\n \" FROM scheduling.historico_alarmados a \".\n \" where 1=1 \".\n \" and a.pedido_id not like '%pre%' \".\n \" and a.TIPO_ELEMENTO_ID in ('ACCESP','TO','TOIP','INSIP','INSHFC') \".\n \" and a.UEN_CALCULADA='HG' \".\n \" ) C1 \".\n \" WHERE 1=1 \".\n \" AND C1.ANULO_COMP='NO' \".\n \" and C1.FECHA_CITA=$intervaltime \".\n \" GROUP BY C1.PEDIDO_ID, C1.FECHA_CITA ) c2 \".\n \" where c2.RESPONSABLE in ('ASIGNACIONES', 'RECONFIGURACION','ACTIVACION DESACTIVACION') \".\n \" group by c2.RESPONSABLE \";\n //echo $sqlAlarmadosHistorico;\n $rAlarmadosHist = $this->mysqli->query($sqlAlarmadosHistorico);\n\n if($rAlarmadosHist->num_rows > 0){\n\n while($row = $rAlarmadosHist->fetch_assoc()){\n $alarmadosHist[] = $row;\n }\n\n $sqlok = true;\n }else{\n $alarmadosHist = array(\n array('RESPONSABLE'=>'ACTI', 'CANTIDAD'=>0),\n array('RESPONSABLE'=>'ASIG', 'CANTIDAD'=>0),\n array('RESPONSABLE'=>'RECO', 'CANTIDAD'=>0)\n\n );\n $error = \"No hay datos.\";\n $sqlok = true;\n }\n\n $sqlAlarmadosRecuperados = \"select \".\n \" left(c2.RESPONSABLE,4) as RESPONSABLE \".\n \" , count(*) as CANTIDAD \".\n \" from ( \".\n \" SELECT \".\n \" C1.FECHA_CITA \".\n \" , C1.PEDIDO_ID \".\n \" , group_concat(distinct C1.RESPONSABLE) AS RESPONSABLE \".\n \" , group_concat(distinct C1.CONCEPTO_ID) AS CONCEPTO_ID \".\n \" FROM (SELECT \".\n \" a.PEDIDO_ID \".\n \" , a.CONCEPTO_ID \".\n \" , a.FECHA_CITA \".\n \" , a.TIPO_ELEMENTO_ID \".\n \" , a.UEN_CALCULADA \".\n \" , a.DEPARTAMENTO \".\n \" , ALARMO_COMP \".\n \" , a.ANULO_COMP \".\n \" , a.RESPONSABLE \".\n \" , a.RECUPERADO \".\n \" FROM scheduling.historico_alarmados a \".\n \" where 1=1 \".\n \" and a.pedido_id not like '%pre%' \".\n \" and a.TIPO_ELEMENTO_ID in ('ACCESP','TO','TOIP','INSIP','INSHFC') \".\n \" and a.UEN_CALCULADA='HG' \".\n \" ) C1 \".\n \" WHERE 1=1 \".\n \" AND C1.ANULO_COMP='NO' \".\n \" and C1.RECUPERADO='SI' \".\n \" and C1.FECHA_CITA=current_date() \".\n \" GROUP BY C1.PEDIDO_ID, C1.FECHA_CITA ) c2 \".\n \" where c2.RESPONSABLE in ('ASIGNACIONES', 'RECONFIGURACION','ACTIVACION DESACTIVACION') \".\n \" group by c2.RESPONSABLE \";\n\n $rAlarmadosRecu = $this->mysqli->query($sqlAlarmadosRecuperados);\n\n if($rAlarmadosRecu->num_rows > 0){\n while($row = $rAlarmadosRecu->fetch_assoc()){\n $alarmadosRecu[] = $row;\n }\n\n $sqlok = true;\n }else{\n $alarmadosRecu = array(\n array('RESPONSABLE'=>'ACTI', 'CANTIDAD'=>0),\n array('RESPONSABLE'=>'ASIG', 'CANTIDAD'=>0),\n array('RESPONSABLE'=>'RECO', 'CANTIDAD'=>0)\n\n );\n $error = \"No hay datos.\";\n $sqlok = true;\n }\n\n\n if($sqlok){\n $msg = \"Consultas Realizadas\";\n $guardar = true ;\n }else{\n $msg = \"Error, algo salio mal\";\n $mysqlerror = $this->mysqli->error;\n $guardar = false;\n }\n\n if($guardar){\n $this->response ($this->json (array($msg,$alarmados,$alarmadosHist,$alarmadosRecu,$fecha)), 200);\n }else{\n $error = \"$msg: $mysqlerror\";\n $this->response ($this->json (array($error)), 403);\n }\n }", "title": "" }, { "docid": "8154a18174dc2fc40cf3d9de8bfe2fd2", "score": "0.570398", "text": "public static function ordenarParaEmpleado($coleccion){\n \n $observadas = ReposicionGastos::separarDeColeccion($coleccion,ReposicionGastos::getCodEstado('Observada'));\n $subsanada = ReposicionGastos::separarDeColeccion($coleccion,ReposicionGastos::getCodEstado('Subsanada')); \n $creadas = ReposicionGastos::separarDeColeccion($coleccion,ReposicionGastos::getCodEstado('Creada')); \n $aprobadas = ReposicionGastos::separarDeColeccion($coleccion,ReposicionGastos::getCodEstado('Aprobada')); \n $abonadas = ReposicionGastos::separarDeColeccion($coleccion,ReposicionGastos::getCodEstado('Abonada')); \n\n $contabilizadas = ReposicionGastos::separarDeColeccion($coleccion,ReposicionGastos::getCodEstado('Contabilizada')); \n $canceladas = ReposicionGastos::separarDeColeccion($coleccion,ReposicionGastos::getCodEstado('Cancelada')); \n $rechazadas = ReposicionGastos::separarDeColeccion($coleccion,ReposicionGastos::getCodEstado('Rechazada')); \n\n\n $listaOrdenada = new Collection();\n $listaOrdenada= $listaOrdenada->concat($observadas);\n $listaOrdenada= $listaOrdenada->concat($subsanada);\n $listaOrdenada= $listaOrdenada->concat($creadas);\n $listaOrdenada= $listaOrdenada->concat($aprobadas);\n \n $listaOrdenada= $listaOrdenada->concat($abonadas);\n $listaOrdenada= $listaOrdenada->concat($rechazadas);\n $listaOrdenada= $listaOrdenada->concat($contabilizadas);\n $listaOrdenada= $listaOrdenada->concat($canceladas);\n \n return $listaOrdenada;\n\n }", "title": "" }, { "docid": "b2e79e9403532d003cc4859b79efc29b", "score": "0.57038724", "text": "public function movimientos(){\n require_once $_SERVER['DOCUMENT_ROOT'].\"/bienestarYnuevaImagen/models/consultorioModels.php\";\n $fecha = date(\"Ymd\");\n $get = Validacion::validarNumero($_GET[\"idCtr\"]);\n $regisro = new Consultorio();\n $regisro->setIdConsultorio($get);\n $regisro->setFechaConsulta($fecha);\n $historia = $regisro->getRegistroDatos();\n $paciente = (is_object($historia)) ? $historia->totalPaciente : 0 ;\n $efectivo = (is_object($historia)) ? $historia->sumaEfectivo : 0 ;\n $tarjeta = (is_object($historia)) ? $historia->sumaTarjeta : 0 ;\n $meso = (is_object($historia)) ? $historia->meso : 0 ;\n $con = (is_object($historia)) ? $historia->concentrado : 0 ;\n \n $regisro = new Consultorio();\n $regisro->setIdConsultorio($get);\n $regisro->setFechaConsulta($fecha);\n $dineroQueda = $regisro->getMoneyTotal();\n $totalDinero = (is_object($dineroQueda) && !is_null($dineroQueda->suma)) ? $dineroQueda->suma : 0 ;\n $totalGasto = (is_object($dineroQueda) && !is_null($dineroQueda->gastos)) ? $dineroQueda->gastos : 0 ;\n $totalQuedaDinero = (is_object($dineroQueda) && !is_null($dineroQueda->restaGastos)) ? $dineroQueda->restaGastos : 0 ;\n \n $name = new ModeloBase();\n $nameConsultorio = $name->getAllWhere('consultorio','WHERE consultorio.id_consultorio ='.$get);\n $nombre = $nameConsultorio->fetch_object();\n\n // if($historia>'0'){\n require_once 'views/avanzado/consultorio/movimientosXconsultorio.php';\n // }else{\n // require_once 'views/error/error404.php';\n // }\n }", "title": "" }, { "docid": "ff7676ab539867b349790bd3d277425e", "score": "0.5687686", "text": "function get_actividades($codigoempleado,$opcion,$area){\n parent::conectar();\n $sql=\"SELECT * FROM view_actividades WHERE codigoempleado='$codigoempleado' AND opcion=$opcion AND IDAREAXACTIVIDAD IN (SELECT IDAREAXACTIVIDAD FROM areas_x_actividad WHERE ID_AREA=$area AND IDAREAXACTIVIDAD!=11 ORDER BY ACTIVIDAD)\";\n $record_consulta=$this->obj_con->Execute($sql);\n if($record_consulta->RecordCount()<=0){\n $data1[] = array('idactividad'=>0,'id_opciones'=>0,'idareaxactividad'=>0,'nombreactividad'=>'sin registros','idareaa'=>0,'nombreareas'=>'sin registros','idtemaxarea'=>0,'temaxarea'=>'sin registros','idcargo'=>0,'responsable'=>'sin registros','tema'=>'sin registros','area_en'=>'sin registros','fechaRevision'=>'','fechaini'=>'','fechafin'=>'','fecharealinicio'=>'','fecharealfin'=>'','sininiciar'=>0,'tsinsiniciar'=>'sin registros','sinfinalizar'=>0,'tsinfinalizar'=>'sin registros','comentario'=>'sin registros','estado'=>'');\n }else{\n while(!$record_consulta->EOF){\n $idactividad=$record_consulta->fields[\"ID_ACTIVIDAD\"];\n $idopcion=$record_consulta->fields[\"ID_OPCIONES\"];\n $idareaxactividad=$record_consulta->fields[\"IDAREAXACTIVIDAD\"];\n $nombreactivi=$record_consulta->fields[\"nombreactividad\"];\n $idareaa=$record_consulta->fields[\"ID_AREA_A\"];\n $nombrearea=$record_consulta->fields[\"nombreareas\"];\n $idtxarea=$record_consulta->fields[\"idtemaxarea\"];\n $txarea=$record_consulta->fields[\"temaxarea\"];\n $cargoId=$record_consulta->fields[\"IDCARGO\"];\n $responsa=$record_consulta->fields[\"responsable\"];\n $tem=$record_consulta->fields[\"tema\"];\n $areaen=$record_consulta->fields[\"area_en\"];\n $frevision=$record_consulta->fields[\"fecharevision\"];\n $finicio=$record_consulta->fields[\"fechaini\"];\n $ffin=$record_consulta->fields[\"fechafin\"];\n $frinicio=$record_consulta->fields[\"fecharealinicio\"];\n $frfinal=$record_consulta->fields[\"fecharealfin\"];\n $inicio=$record_consulta->fields[\"sininiciar\"];\n $t_iniciado=$record_consulta->fields[\"iniciado\"];\n $final=$record_consulta->fields[\"sinfinalizar\"];\n $t_finalizado=$record_consulta->fields[\"finalizado\"];\n $comentarios=$record_consulta->fields[\"comentario\"];\n $color=$record_consulta->fields[\"estado\"];\n $data1[] = array('idactividad'=>$idactividad,'idopciones'=>$idopcion,'idareaxactividad'=>$idareaxactividad,'nombreactividad'=>$nombreactivi,'idareaa'=>$idareaa,'nombreareas'=>$nombrearea,'idtemaxarea'=>$idtxarea,'temaxarea'=>$txarea,'idcargo'=>$cargoId,'responsable'=>$responsa,'tema'=>$tem,'area_en'=>$areaen,'fechaRevision'=>$frevision,'fechaini'=>$finicio,'fechafin'=>$ffin,'fecharealinicio'=>$frinicio,'fecharealfin'=>$frfinal,'sininiciar'=>$inicio,'tsininiciar'=>$t_iniciado,'sinfinalizar'=>$final,'tsinfinalizar'=>$t_finalizado,'comentario'=>$comentarios,'estado'=>$color);\n $record_consulta->MoveNext();\n }\n}\n\n$repuesta = array('success'=>true,'data'=>$data1); \nreturn $repuesta;\n\n\n}", "title": "" }, { "docid": "fa987340a9e3bae6fbaec29cdcca1231", "score": "0.56784946", "text": "function agregar_tasas_nuevas($id_usuario_sesion, $tipo_sesion, $usuario_sesion, $conexion) {\n //INICIAMOS EL ARRAY CON LOS ERRORES\n $errArr['errortasacom'] = '';\n $errArr['errortasaban'] = '';\n $errArr['errortasafin'] = '';\n $errFlag = false;\n\n //VEO SI SE HA HECHO CLICK EN EL BOTON GUARDAR\n if (isset($_POST['accionGuardar'])) {\n\n $numerotasas = 3;\n $t = 1;\n while ($t <= $numerotasas) {\n\n\n if ($t == 1) {//COLUMNA TASA COMPAÑIA\n $tc = 1;\n $indicetc = 0;\n $arrtc[] = array();\n $swtc = 0;\n //iteramos hasta la cantidad de productos\n while ($tc <= $_POST['num_prod']) {\n $valor_tc = $_POST[\"txtTcompania\" . $tc];\n $valor_tc = $_POST[\"txtTcompaniaMancomunado\" . $tc];\n $numtc = validar_numero($valor_tc);\n if ($numtc == 1) {\n $arrtc[$indicetc] = $tc;\n $swtc = 1;\n $indicetc++;\n } elseif ($numtc == 2) {\n //sin errores, no guardamos nada en el vector\n //y la variable sw es 0 \n } elseif ($numtc == 3) {\n $arrtc[$indicetc] = $tc;\n $swtc = 1;\n $indicetc++;\n }\n $tc++;\n }\n if ($swtc == 0) {\n \n } elseif ($swtc == 1) {\n $errArr['errortasacom'] = \"Debe ingresar la(s) tasa(s) en la(s) casilla(s): \";\n foreach ($arrtc as $datotc) {\n $errArr['errortasacom'] .= $datotc . ',';\n }\n $errArr['errortasacom'] .= '&nbsp;de la columna Tasa Compa&ntilde;&iacute;a';\n $errFlag = true;\n unset($arrtc);\n }\n } elseif ($t == 2) {//COLUMNA TASA BANCO\n $tb = 1;\n $indicetb = 0;\n $arrtb[] = array();\n $swtb = 0;\n //iteramos hasta la cantidad de productos\n while ($tb <= $_POST['num_prod']) {\n $valor_tb = $_POST[\"txtTbanco\" . $tb];\n $numtb = validar_numero($valor_tb);\n if ($numtb == 1) {\n $arrtb[$indicetb] = $tb;\n $swtb = 1;\n $indicetb++;\n } elseif ($numtb == 2) {\n //sin errores, no guardamos nada en el vector\n //y la variable sw es 0 \n } elseif ($numtb == 3) {\n $arrtb[$indicetb] = $tb;\n $swtb = 1;\n $indicetb++;\n }\n $tb++;\n }\n if ($swtb == 0) {\n \n } elseif ($swtb == 1) {\n $errArr['errortasaban'] = \"Debe ingresar la(s) tasa(s) en la(s) casilla(s): \";\n foreach ($arrtb as $datotb) {\n $errArr['errortasaban'] .= $datotb . ',';\n }\n $errArr['errortasaban'] .= '&nbsp;de la columna Tasa Banco';\n $errFlag = true;\n unset($arrtb);\n }\n } elseif ($t == 3) {//COLUMNA TASA FINAL\n $tf = 1;\n $indicetf = 0;\n $arrtf[] = array();\n $swtf = 0;\n //iteramos hasta la cantidad de productos\n while ($tf <= $_POST['num_prod']) {\n $valor_tf = $_POST[\"txtTfinal\" . $tf];\n $valor_tf_mancomunado = $_POST[\"txtTfinalmancomunado\" . $tf];\n \n $numtf = validar_numero($valor_tf);\n if ($numtf == 1) {\n $arrtf[$indicetf] = $tf;\n $swtf = 1;\n $indicetf++;\n } elseif ($numtf == 2) {\n //sin errores, no guardamos nada en el vector\n //y la variable sw es 0 \n } elseif ($numtf == 3) {\n $arrtf[$indicetf] = $tf;\n $swtf = 1;\n $indicetf++;\n }\n $tf++;\n }\n if ($swtf == 0) {\n \n } elseif ($swtf == 1) {\n $errArr['errortasafin'] = \"Debe ingresar la(s) tasa(s) en la(s) casilla(s): \";\n foreach ($arrtf as $datotf) {\n $errArr['errortasafin'] .= $datotf . ',';\n }\n $errArr['errortasafin'] .= '&nbsp;de la columna Tasa Final';\n $errFlag = true;\n unset($arrtf);\n }\n }\n\n $t++;\n }\n\n //VEMOS SI TODO SE VALIDO BIEN\n if ($errFlag) {\n //HUBIERON ERRORES, MOSTRAMOS EL FORM CON LOS ERRORES\n mostrar_crear_tasas($id_usuario_sesion, $tipo_sesion, $usuario_sesion, $conexion, $errArr);\n } else {\n\n $j = 1;\n while ($j <= $_POST['num_prod']) {\n $tasacompania = $_POST[\"txtTcompania\" . $j];\n $tasacompaniamancomunado = $_POST[\"txtTcompaniaMancomunado\" . $j];\n $tasabanco = $_POST[\"txtTbanco\" . $j];\n $tasafinal = $_POST[\"txtTfinal\" . $j];\n $tasafinalmancomunado = $_POST[\"txtTfinalMancomunado\" . $j];\n $idprcia = $_POST[\"idprcia\" . $j];\n\n $insert = \"INSERT INTO s_tasa_de(id_tasa, id_prcia, tasa_cia, tasa_cia_mancomunado, tasa_banco, tasa_final, tasa_final_mancomunado) \"\n . \"VALUES(NULL, \" . $idprcia . \", \" . $tasacompania . \", \" . $tasacompaniamancomunado . \", \" . $tasabanco . \", \" . $tasafinal . \", \" . $tasafinalmancomunado . \")\";\n //$resu = mysql_query($insert, $conexion);\n if ($conexion->query($insert) === TRUE) {\n $response = TRUE;\n } else {\n $response = FALSE;\n }\n $j++;\n }\n //METEMOS A LA TABLA TBLHOMENOTICIAS\n if ($response) {\n $mensaje = \"Se registro correctamente los datos del formulario\";\n header('Location: index.php?l=des_producto&listartasas=v&id_ef_cia=' . $_GET['id_ef_cia'] . '&id_producto=' . $_GET['id_producto'] . '&entidad=' . $_GET['entidad'] . '&compania=' . $_GET['compania'] . '&var=' . $_GET['var'] . '&tipo_producto=' . $_GET['tipo_producto'] . '&op=1&msg=' . base64_encode($mensaje));\n exit;\n } else {\n $mensaje = \"Hubo un error al ingresar los datos, consulte con su administrador \" . \"\\n \" . $conexion->errno . \": \" . $conexion->error;\n header('Location: index.php?l=des_producto&listartasas=v&id_ef_cia=' . $_GET['id_ef_cia'] . '&id_producto=' . $_GET['id_producto'] . '&entidad=' . $_GET['entidad'] . '&compania=' . $_GET['compania'] . '&var=' . $_GET['var'] . '&tipo_producto=' . $_GET['tipo_producto'] . '&op=1&msg=' . base64_encode($mensaje));\n exit;\n }\n }\n } else {\n //MUESTRO EL FORM PARA CREAR UNA CATEGORIA\n mostrar_crear_tasas($id_usuario_sesion, $tipo_sesion, $usuario_sesion, $conexion, $errArr);\n }\n}", "title": "" }, { "docid": "9a99d332f4854dbe542768574d319ffb", "score": "0.5668646", "text": "public function guardarExamenEncabezado($idUsuario, $idPaciente, $observaciones, $idSucursal, $idPacienteReplica){\n \t\t\t\n $resultado = array();\t\n \t\t\t\t\n $idPaciente = parent::escaparQueryBDCliente($idPaciente);\n\t\t $observaciones = parent::escaparQueryBDCliente($observaciones);\n\t\t $idPacienteReplica = parent::escaparQueryBDCliente($idPacienteReplica);\n \n $query = \"INSERT INTO tb_examenes (fecha, hora, observaciones, idMascota, idUsuario, idSucursal) \".\n \" VALUES (NOW(),NOW(),'$observaciones', '$idPaciente', '$idUsuario', '$idSucursal') \";\n \n $conexion = parent::conexionCliente();\n \t\t\n\t\t\tif($res = $conexion->query($query)){\n\t\t\t\t\n\t\t\t\t$query2\t= \"SELECT MAX(idExamen) as ultimoIdExamen FROM tb_examenes\";\n\t\t\t\t\n\t\t\t\tif($res2 = $conexion->query($query2)){\n\t\t \n\t\t /* obtener un array asociativo */\n\t\t while ($filas = $res2->fetch_assoc()) {\n\t\t $resultado[] = $filas['ultimoIdExamen'];\n\t\t }\n\t\t \n\t\t /* liberar el conjunto de resultados */\n\t\t $res2->free();\n\t\t \n\t\t }\t\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t/*------ Replica ----*/\n\t\t\t\n\t\t\t$nombreSucursal = $_SESSION['sucursalActual_nombreSucursal'];\n\t\t\t\n\t\t\t$nombreUsuario = $_SESSION['usuario_nombre'].\" \".$_SESSION['Usuario_Apellido'];\t\t\t\t\t\n\t\t\t\n\t\t\t$queryReplica = \"INSERT INTO tb_examenes (fecha, hora, observaciones, idMascota, usuario, nombreSucursal) \".\n \" VALUES (NOW(),NOW(),'$observaciones', '$idPacienteReplica', '$nombreUsuario', '$nombreSucursal') \";\n \n $conexionReplica = parent::conexionReplica();\n\n\n\t\t\tif($resReplica = $conexionReplica->query($queryReplica)){\n\t\t\t\t\n\t\t\t\t$query2\t= \"SELECT MAX(idExamen) as ultimoIdExamen FROM tb_examenes\";\n\t\t\t\t\n\t\t\t\tif($resReplica2 = $conexionReplica->query($query2)){\n\t\t \n\t\t /* obtener un array asociativo */\n\t\t while ($filas = $resReplica2->fetch_assoc()) {\n\t\t $resultado[] = $filas['ultimoIdExamen'];\n\t\t }\n\t\t \n\t\t /* liberar el conjunto de resultados */\n\t\t $resReplica2->free();\n\t\t \n\t\t }\t\n\t\t\t\t\t\t\n\t\t\t}\n\n\t\t\t\n\t\t\t/*------ Replica ----*/\n\t\n\t return $resultado;\t\n \t\t\n \t\n }", "title": "" }, { "docid": "cefe9c2536eec8cbb548babd9bd03ef2", "score": "0.56675303", "text": "function recuperaRegistro(\n $tabla_carga,\n $condicion,\n $campos\n) {\n global $numero, $valuesRecuperados, $id_motivo_baja, $id_estado;\n //Para recuperar los originales sin modificar , para el historial\n $res = cargaBindeo($tabla_carga, $condicion);\n foreach ($res as $key) {\n $numero = $key['numero'];\n if ($id_estado != '') $key['id_estado'] = $id_estado;\n foreach ($campos as $c) {\n array_push($valuesRecuperados, $key[$c]);\n }\n }\n if ($id_motivo_baja != '') {\n array_push($valuesRecuperados, $id_motivo_baja);\n array_push($valuesRecuperados, true);\n }\n}", "title": "" }, { "docid": "d737c42dfd96cb551f166013beda2049", "score": "0.56515044", "text": "private function validarTransaccionSalida($datos, $movimiento_salida,$almacen_id)\n {\n\t\t$success = false;\n\n //comprobar que el servidor id no me lo envian por parametro, si no poner el servidor por default de la configuracion local, si no seleccionar el servidor del parametro\n $servidor_id = property_exists($datos, \"servidor_id\") ? $datos->servidor_id : env('SERVIDOR_ID');\n\n //agregar al modelo los datos\n $movimiento_salida->almacen_id = $almacen_id;\n $movimiento_salida->tipo_movimiento_id = $datos->tipo_movimiento_id;\n $movimiento_salida->status = $datos->status; \n $movimiento_salida->fecha_movimiento = property_exists($datos, \"fecha_movimiento\") ? $datos->fecha_movimiento : '';\n $movimiento_salida->observaciones = property_exists($datos, \"observaciones\") ? $datos->observaciones : '';\n $movimiento_salida->cancelado = property_exists($datos, \"cancelado\") ? $datos->cancelado : '';\n $movimiento_salida->observaciones_cancelacion = property_exists($datos, \"observaciones_cancelacion\") ? $datos->observaciones_cancelacion : '';\n\n $lotes_master = array();\n\n // si se guarda el movimiento tratar de guardar el detalle de insumos\n if( $movimiento_salida->save() )\n {\n $success = true;\n\n if(property_exists($datos,\"movimiento_metadato\"))\n {\n $metadatos = new MovimientoMetadato;\n $metadatos->movimiento_id = $movimiento_salida->id;\n $metadatos->servicio_id = $datos->movimiento_metadato['servicio_id'];\n $metadatos->persona_recibe = $datos->movimiento_metadato['persona_recibe'];\n $metadatos->turno_id = $datos->movimiento_metadato['turno_id'];\n\n $metadatos->save();\n \n }\n\n\n if(property_exists($datos, \"insumos\"))\n {\n $insumos = array_filter($datos->insumos, function($v){return $v !== NULL;});\n\n $lotes_nuevos = array();\n $lotes_ajustar = array();\n \n /// PRIMER PASADA PARA IDENTIFICAR LOS LOTES NUEVOS A AJUSTAR / GENERAR ENTRADA \n foreach ($insumos as $key => $insumo)\n { \n if($insumo != NULL)\n {\n if(is_array($insumo)){ $insumo = (object) $insumo; }\n\n $clave_insumo_medico = $insumo->clave;\n \n $precio = $this->conseguirPrecio($clave_insumo_medico);\n\n foreach($insumo->lotes as $index => $lote)\n {\n if(is_array($lote)){ $lote = (object) $lote; }\n\n\n ///REVISAR MODO NORMAL Ó MODO UNIDOSIS AQUI\n\n if($lote->nuevo == 1)\n {\n $lote_temp = Stock::where('lote',$lote->lote)\n ->where('fecha_caducidad',$lote->fecha_caducidad)\n ->where('codigo_barras',$lote->codigo_barras)\n ->where('clave_insumo_medico',$clave_insumo_medico)\n ->where('almacen_id',$almacen_id)\n ->orderBy('created_at','DESC')->first();\n\n /// si ya existe un lote vacio con esos detalles : se agrega uno\n if($lote_temp)\n { \n // Se actualiza el stock y sus detalles\n $lote_temp->existencia = $lote_temp->existencia + $lote->existencia;\n $lote_temp->existencia_unidosis = $lote_temp->existencia_unidosis + ($lote->existencia * $insumo->cantidad_x_envase);\n \n //$lote_temp->unidosis_sueltas = 0;\n //$lote_temp->existencia_unidosis = 0;\n //aqui se calcula la exstencia unidosis parcial\n\n $lote_temp->save();\n // adicion del campo cantidad al objeto lote/stock\n $lote_temp->cantidad = property_exists($lote_temp, \"cantidad\") ? $lote_temp->cantidad : $lote->cantidad;\n $lote_temp->modo_salida = property_exists($lote_temp, \"modo_salida\") ? $lote_temp->modo_salida : $lote->modo_salida;\n\n array_push($lotes_nuevos,$lote_temp);\n array_push($lotes_master,$lote_temp);\n }else{\n $lote_insertar = new Stock;\n\n $lote_insertar->almacen_id = $movimiento_salida->almacen_id;\n $lote_insertar->clave_insumo_medico = $clave_insumo_medico;\n $lote_insertar->marca_id = NULL;\n $lote_insertar->lote = $lote->lote;\n $lote_insertar->fecha_caducidad = $lote->fecha_caducidad;\n $lote_insertar->codigo_barras = $lote->codigo_barras;\n $lote_insertar->existencia = $lote->existencia;\n $lote_insertar->existencia_unidosis = ( $insumo->cantidad_x_envase * $lote->cantidad );\n\n $lote_insertar->unidosis_sueltas = 0;\n $lote_insertar->envases_parciales = 0;\n\n $lote_insertar->save();\n // adicion del campo cantidad al objeto lote/stock\n $lote_insertar->cantidad = property_exists($lote_insertar, \"cantidad\") ? $lote_insertar->cantidad : $lote->cantidad;\n $lote_insertar->modo_salida = property_exists($lote_insertar, \"modo_salida\") ? $lote_insertar->modo_salida : $lote->modo_salida;\n\n array_push($lotes_nuevos,$lote_insertar);\n array_push($lotes_master,$lote_insertar);\n }\n\n }else{\n // aqui ya trae el campo cantidad el objeto lote/stock\n array_push($lotes_master,$lote);\n }\n /// *********************************************************************************************************************************************************************************************************\n /// *********************************************************************************************************************************************************************************************************\n \n } /// FIN PRIMER FOREACH QUE RECORRE TODOS LOS INSUMOS PARA SALIR\n\n /// GUARDAR MOVIMIENTO_DETALLES DEL INSUMO RECORRIDO \n $stocks = Stock::where('clave_insumo_medico',$clave_insumo_medico)\n ->where('existencia','>',0)\n ->where('almacen_id',$almacen_id)\n ->orderBy('fecha_caducidad','ASC')->get();\n\n $existencia = 0;\n $existencia_unidosis = 0;\n \n foreach($stocks as $stock)\n { \n $existencia += $stock->existencia; \n $existencia_unidosis += $stock->existencia_unidosis; \n } \n\n $movimiento_detalle = new MovimientoDetalle;\n $movimiento_detalle->movimiento_id = $movimiento_salida->id;\n $movimiento_detalle->clave_insumo_medico = $clave_insumo_medico;\n $movimiento_detalle->modo_salida = $insumo->modo_salida;\n\n if($insumo->modo_salida == 'N')\n {\n $movimiento_detalle->cantidad_solicitada = $insumo->cantidad_solicitada;\n $movimiento_detalle->cantidad_solicitada_unidosis = $insumo->cantidad_solicitada * $insumo->cantidad_x_envase;\n\n $movimiento_detalle->cantidad_existente = $existencia;\n $movimiento_detalle->cantidad_existente_unidosis = $existencia_unidosis;\n\n $movimiento_detalle->cantidad_surtida = $insumo->cantidad_surtida;\n $movimiento_detalle->cantidad_surtida_unidosis = $insumo->cantidad_surtida * $insumo->cantidad_x_envase;\n\n $movimiento_detalle->cantidad_negada = $insumo->cantidad_solicitada - $insumo->cantidad_surtida;\n $movimiento_detalle->cantidad_negada_unidosis = ( $insumo->cantidad_solicitada - $insumo->cantidad_surtida ) * ( $insumo->cantidad_x_envase ); \n\n }else{\n $movimiento_detalle->cantidad_solicitada = $insumo->cantidad_solicitada / $insumo->cantidad_x_envase;\n $movimiento_detalle->cantidad_solicitada_unidosis = $insumo->cantidad_solicitada ;\n\n $movimiento_detalle->cantidad_existente = $existencia;\n $movimiento_detalle->cantidad_existente_unidosis = $existencia_unidosis;\n\n $movimiento_detalle->cantidad_surtida = $insumo->cantidad_surtida / $insumo->cantidad_x_envase;\n $movimiento_detalle->cantidad_surtida_unidosis = $insumo->cantidad_surtida ;\n\n $movimiento_detalle->cantidad_negada = ( $insumo->cantidad_solicitada - $insumo->cantidad_surtida ) / ( $insumo->cantidad_x_envase );\n $movimiento_detalle->cantidad_negada_unidosis = ( $insumo->cantidad_solicitada - $insumo->cantidad_surtida ) ; \n\n } \n \n $movimiento_detalle->save();\n\n // AQUI LA TABLA DE ESTADISTICAS PARA NEGACIONES\n if($movimiento_detalle->cantidad_negada > 0)\n {\n $negacion_resusitada = 0;\n $tipo_insumo_id = 0;\n\n $contrato_precio = ContratoPrecio::where('insumo_medico_clave',$clave_insumo_medico)->first();\n if($contrato_precio)\n {\n $tipo_insumo_id = $contrato_precio->tipo_insumo_id;\n }\n\n // Si no existe registro para resusitar, se comprueba existencia de registro activo\n $negacion = NegacionInsumo::where('almacen_id',$almacen_id)\n ->where('clave_insumo_medico',$clave_insumo_medico)\n ->first();\n if(!$negacion)\n {\n // Busqueda de registro de negación a resusitar para el insumo negado\n $negacion = DB::table('negaciones_insumos')\n ->where('clave_insumo_medico',$clave_insumo_medico)\n ->where('deleted_at','!=',NULL)\n ->first();\n\n // Si existe registro muerto se resusita\n if($negacion)\n {\n DB::update(\"update negaciones_insumos set deleted_at = null where id = '\".$negacion->id.\"'\");\n $negacion_resusitada = 1;\n } \n }\n\n $negacion_insumo = NULL;\n $almacen = Almacen::find($almacen_id);\n\n ///*************************************************************************************************\n // Encontrar ultima entrada al almacen del insumo negado\n $ultima_entrada = NULL;\n $cantidad_entrada = 0;\n $cantidad_entrada_unidosis = 0;\n\n $ultima_entrada_insumo = DB::table('movimientos')\n ->join('movimiento_insumos', 'movimientos.id', '=', 'movimiento_insumos.movimiento_id')\n ->select('movimientos.*', 'movimiento_insumos.clave_insumo_medico', 'movimiento_insumos.cantidad', 'movimiento_insumos.cantidad_unidosis')\n ->where('movimientos.almacen_id',$almacen_id)\n ->where('movimiento_insumos.clave_insumo_medico',$clave_insumo_medico)\n ->where('movimientos.tipo_movimiento_id',1)\n ->where('movimiento_insumos.deleted_at',NULL)\n ->orderBy('created_at','DESC')\n ->first();\n\n //var_dump($ultima_entrada_insumo); die();\n\n\n if($ultima_entrada_insumo)\n {\n $ultima_entrada = $ultima_entrada_insumo->created_at;\n $cantidad_entrada = $ultima_entrada_insumo->cantidad;\n $cantidad_entrada_unidosis = $ultima_entrada_insumo->cantidad_unidosis;\n }\n ///**************************************************************************************************************************\n \n $cantidad_negada = $movimiento_detalle->cantidad_negada;\n $cantidad_negada_unidosis = $movimiento_detalle->cantidad_negada_unidosis; \n \n // Si existe registro de negación de insumo ( activo ó resusitado )\n if($negacion)\n { \n $negacion_insumo = NegacionInsumo::find($negacion->id);\n\n if($negacion_resusitada == 1)\n {\n //$negacion_insumo = $negacion;\n\n $negacion_insumo->fecha_inicio = date(\"Y-m-d\");\n $negacion_insumo->fecha_fin = date(\"Y-m-d\");\n $negacion_insumo->cantidad_acumulada = $cantidad_negada;\n $negacion_insumo->cantidad_acumulada_unidosis = $cantidad_negada_unidosis;\n $negacion_insumo->ultima_entrada = $ultima_entrada;\n $negacion_insumo->cantidad_entrada = $cantidad_entrada;\n $negacion_insumo->cantidad_entrada_unidosis = $cantidad_entrada_unidosis;\n\n }else{\n //$negacion_insumo = $negacion;\n\n $negacion_insumo->cantidad_acumulada = $negacion_insumo->cantidad_acumulada + $cantidad_negada;\n $negacion_insumo->cantidad_acumulada_unidosis = $negacion_insumo->cantidad_acumulada_unidosis + $cantidad_negada_unidosis;\n $negacion_insumo->fecha_fin = date(\"Y-m-d\");\n $negacion_insumo->ultima_entrada = $ultima_entrada;\n $negacion_insumo->cantidad_entrada = $cantidad_entrada;\n $negacion_insumo->cantidad_entrada_unidosis = $cantidad_entrada_unidosis; \n }\n\n \n $negacion_insumo->save(); \n \n }else{\n $negacion_insumo = new NegacionInsumo;\n\n // var_dump(json_encode($negacion_insumo)); die();\n\n $negacion_insumo->clave_insumo_medico = $clave_insumo_medico;\n $negacion_insumo->clues = $almacen->clues;\n $negacion_insumo->almacen_id = $almacen_id;\n $negacion_insumo->tipo_insumo = $tipo_insumo_id;\n $negacion_insumo->fecha_inicio = date(\"Y-m-d\");\n $negacion_insumo->fecha_fin = date(\"Y-m-d\");\n $negacion_insumo->cantidad_acumulada = $cantidad_negada;\n $negacion_insumo->cantidad_acumulada_unidosis = $cantidad_negada_unidosis;\n $negacion_insumo->ultima_entrada = $ultima_entrada;\n $negacion_insumo->cantidad_entrada = $cantidad_entrada;\n $negacion_insumo->cantidad_entrada_unidosis = $cantidad_entrada_unidosis;\n\n //var_dump($negacion_insumo); die();\n\n $negacion_insumo->save();\n }\n }else{\n //*************************************************************************************\n //Verificar si esta en la lista de negados. \n $negacion = NegacionInsumo::where('almacen_id',$almacen_id)\n ->where('clave_insumo_medico',$clave_insumo_medico)\n ->first();\n if($negacion)\n { /// Si esta dentro de los negados, se borra porque en ese momento se esta surtiendo y dejando de negar.\n $negacion->delete();\n }\n //*************************************************************************************\n\n }\n \n\n }///FIN IF INSUMO != NULL\n }//// FIN FOREACH I N S U M O S -> PRIMERA PASADA\n///********************************************************************************************************************************************\n /// insertar el movimiento entrada de ajuste y ligar los detalles con su stock ya agregado en pasada anterior\n if(count($lotes_nuevos) > 0)\n {\n /// insertar movimiento de entrada por ajuste ( tipo_movimiento_id = 6 )\n $movimiento_ajuste = new Movimiento;\n $movimiento_ajuste->almacen_id = $almacen_id;\n $movimiento_ajuste->tipo_movimiento_id = 6;\n $movimiento_ajuste->status = \"FI\"; \n $movimiento_ajuste->fecha_movimiento = date(\"Y-m-d\");\n $movimiento_ajuste->observaciones = \"SE REALIZA ENTRADA POR AJUSTE\";\n $movimiento_ajuste->cancelado = property_exists($datos, \"cancelado\") ? $datos->cancelado : '';\n $movimiento_ajuste->observaciones_cancelacion = property_exists($datos, \"observaciones_cancelacion\") ? $datos->observaciones_cancelacion : '';\n \n $movimiento_ajuste->save();\n\n foreach($lotes_nuevos as $lote_link)\n {\n $item_detalles = new MovimientoInsumos;\n\n ///var_dump(json_encode($lote_link));\n\n $item_detalles->movimiento_id = $movimiento_ajuste->id; \n $item_detalles->stock_id = $lote_link->id;\n $item_detalles->clave_insumo_medico = $clave_insumo_medico; \n\n\n $item_detalles->cantidad = $lote_link->cantidad;\n\n ///AQUI METER LA CANTIDAD UNIDOSIS\n\n $item_detalles->precio_unitario = $precio['precio_unitario'];\n $item_detalles->iva = $precio['iva']; \n $item_detalles->precio_total = ( $precio['precio_unitario'] + $precio['iva'] ) * $lote_link->cantidad;\n\n $item_detalles->save();\n }\n } /// FIN IF EXISTEN LOTES NUEVOS \n\n////*************************************************************************************************************************\n //FOREACH SEGUNDA PASADA A INSUMOS PARA ACTUALIZAR STOCK DE SALIDA\n foreach($lotes_master as $index => $lote)\n {\n $lote_stock = Stock::find($lote->id);\n $insumo_temp = Insumo::find($lote_stock->clave_insumo_medico);\n $precio = $this->conseguirPrecio($lote_stock->clave_insumo_medico);\n \n $insumo = Insumo::datosUnidosis()->where('clave',$lote_stock->clave_insumo_medico)->first();\n\n $cantidad_x_envase = $insumo->cantidad_x_envase; \n\n \n /// INICIA CALCULO DEL NUEVO STOCK SEGUN EL MODO ELEGIDO\n if($lote->modo_salida == \"N\")\n {\n $lote_stock->existencia = ($lote_stock->existencia - $lote->cantidad );\n $lote_stock->existencia_unidosis = ($lote_stock->existencia_unidosis - ( $lote->cantidad * $cantidad_x_envase) );\n\n }else{ \n /// la variable cantidad se interpreta para existencia_unidosis\n $para_salir = ($lote->cantidad / $cantidad_x_envase);\n $enteros_salir = 0;\n if($lote->cantidad <= $lote_stock->unidosis_sueltas)\n {\n $enteros_salir = 0;\n }else{\n //aqui el error\n if($para_salir > 0 && $para_salir <= 1)\n {\n $enteros_salir = 1;\n }else{ \n if($para_salir != intval($para_salir))\n { // es un decimal y tambien es mayor que uno\n // valida si para surtir la unidosis solicitada es necesario abrir una caja nueva \n // ( aparte de la que ya esta abierta )\n if( ( $lote_stock->unidosis_sueltas + (intval($para_salir)*$cantidad_x_envase)) >= $lote->cantidad )\n {\n $enteros_salir = intval($para_salir);\n }else{ $enteros_salir = intval($para_salir)+1; }\n\n }else{ // es un numero entero\n $enteros_salir = intval($para_salir);\n }\n }\n }\n \n \n $nueva_existencia = $lote_stock->existencia - $enteros_salir;\n $nueva_existencia_unidosis = $lote_stock->existencia_unidosis - $lote->cantidad;\n\n $unidosis_enteras = ( $nueva_existencia * $cantidad_x_envase );\n $unidosis_sueltas = $nueva_existencia_unidosis - $unidosis_enteras;\n\n $lote_stock->existencia = $nueva_existencia;\n $lote_stock->existencia_unidosis = $nueva_existencia_unidosis;\n $lote_stock->unidosis_sueltas = $unidosis_sueltas;\n\n if($unidosis_sueltas > 0)\n {\n $lote_stock->envases_parciales = 1;\n }else{\n $lote_stock->envases_parciales = 0;\n }\n \n }// fin else ( si es salida unidosis )\n\n $lote_stock->save();\n\n $item_detalles = new MovimientoInsumos;\n\n $item_detalles->movimiento_id = $movimiento_salida->id; \n $item_detalles->stock_id = $lote_stock->id;\n $item_detalles->clave_insumo_medico = $lote_stock->clave_insumo_medico; /// CORRECCION ORIGEN DE CLAVE\n\n // se agregan las cantidades correspondientes segun el modo de salida\n if($lote->modo_salida == \"N\")\n {\n $item_detalles->cantidad = $lote->cantidad;\n $item_detalles->cantidad_unidosis = $lote->cantidad * $insumo->cantidad_x_envase;\n }else{\n $item_detalles->cantidad = $lote->cantidad/$insumo->cantidad_x_envase;\n $item_detalles->cantidad_unidosis = $lote->cantidad;\n }\n \n $item_detalles->modo_salida = $lote->modo_salida;\n\n $item_detalles->precio_unitario = $precio['precio_unitario'];\n $item_detalles->iva = $precio['iva'];\n\n $item_detalles->precio_total = ( $precio['precio_unitario'] + $precio['iva'] ) * $item_detalles->cantidad;\n\n $item_detalles->save();\n \n }/// FIN FOREACH SEGUNDA PASADA A INSUMOS\n\n } /// FIN IF EXISTE INSUMOS \n }\n \n return $success;\n }", "title": "" }, { "docid": "a29c6a2c1644a1d4776502f5a7e0e005", "score": "0.56474704", "text": "public function cambiaempresa()\n {\n $idempresa = $_GET['idemp'];\n \n $sql=\"SELECT id_usuario, admin FROM usuarios WHERE login= '\".$_SESSION[\"backend_login\"].\"'\";\n $res= $this->conn->query($sql);\n $reg = $res->fetch_array(MYSQLI_ASSOC);\n\n\n\n //$res=mysql_query($sql,parent::con());\n //$reg=mysql_fetch_assoc($res);\n \n\n if ($reg['admin']== 1)\n {\n // 1 es igual a accesos usuario administrador\n $sql=\"SELECT id_usuario FROM acceso WHERE id_empresa= '\".$idempresa.\"'\";\n //.\"' AND id_usuario= '\".$reg['id_usuario'].\"'\";\n $res= $this->conn->query($sql);\n }\n elseif($reg['admin']== 0)\n {\n // 0 es igual a accesos usuario NO adminsitrador\n $sql=\"SELECT id_usuario FROM acceso WHERE id_empresa= '\".$idempresa.\"' AND id_usuario= '\".$reg['id_usuario'].\"'\";\n $res= $this->conn->query($sql);\n \n }\n\n\n\n\n //$res = mysql_query($sql,parent::con());\n \n echo '<option value=\"0\">Seleccione usuario</option>';\n \n //while($reg=mysql_fetch_assoc($res))\n while($reg = $res->fetch_array(MYSQLI_ASSOC))\n {\n $sql=\"SELECT id_usuario, nombre FROM usuarios WHERE id_usuario= '\".$reg['id_usuario'].\"'\";\n $ress= $this->conn->query($sql);\n $regg = $ress->fetch_array(MYSQLI_ASSOC);\n\n //$ress=mysql_query($sql,parent::con());\n //$regg=mysql_fetch_assoc($ress); \n echo '<option value=\"'.$regg['id_usuario'].'\">'.$regg['nombre'].'</option>';\n \n }\n }", "title": "" }, { "docid": "c01c153f09f27bd1818a470206560e5b", "score": "0.56434196", "text": "function evt__form_ejes__alta($datos) {\n\n $bases = $this->dep('datos')->tabla('bases_convocatoria')->get();\n $tipo = $this->dep('datos')->tabla('tipos_ejes_tematicos')->get_tipo($datos['descripcion'])[0];\n\n $correcto = true;\n $ejes_conv = $this->dep('datos')->tabla('eje_tematico_conv')->get_listado($bases['id_bases']);\n // Control Ejes no repetidos \n foreach ($ejes_conv as $eje) {\n if ($eje['id_eje'] == $tipo['id_eje']) {\n $correcto = false;\n toba::notificacion()->agregar('Eje tematico repetido, vuelva a intentarlo', 'info');\n }\n }\n if ($correcto) {\n $datos['id_bases'] = $bases['id_bases'];\n $datos['descripcion'] = $tipo['descripcion'];\n $datos['id_eje'] = $tipo['id_eje'];\n\n // control clave unica\n\n $this->dep('datos')->tabla('eje_tematico_conv')->set($datos);\n $this->dep('datos')->tabla('eje_tematico_conv')->sincronizar();\n $this->dep('datos')->tabla('eje_tematico_conv')->cargar($datos);\n\n $this->s__mostrar = 0;\n }\n //$this->dep('datos')->resetear();\n //$this->set_pantalla('pant_ejes');\n }", "title": "" }, { "docid": "8531870dbe326207d361b2971757b684", "score": "0.56356716", "text": "public function geractualizardata($fecha_mes = null, $modo_act = null)\n\t{\n\t\tif ( $modo_act == null )\n\t\t\t$modo_act = $this->input_get_post('modo_act');\n\t\t\tif ( $modo_act == '' )\n\t\t\t\t$modo_act = 'GASTOS'; // GASTOS, VENTAS, AMBOS\n\t\tif ( $fecha_mes == null )\n\t\t\t$fecha_mes = $this->input->get_post('fecha_mes');\n\t\t\tif ( $fecha_mes == '' )\n\t\t\t\t$fecha_mes = date('Ymd', strtotime('now - 1 month'));\n\t\t$fecha_mes = substr($fecha_mes, 0, 6); // aseguro que solo sea anio y mes, no importa dia, es de 01 a 31\n\t\t// *********** fin obtener datos minimos ******************\n\n\n\t\t// *********** ini verificar si datos vacios ******************\n\t\t$sqlverificar = \"SELECT count(cod_entidad) as cuanto FROM adm_indicador_eficiencia_ventagasto WHERE fecha_mes = '\".$fecha_mes.\"'\";\n\t\t$existen = -1;\n\t\t$this->db->query($sqlusuario);\n\t\t$objetousuario = $query->result();\n\t\tif ($objetousuario)\n\t\t\tforeach( $objetousuario as $rowuser )\n\t\t\t{\n\t\t\t\t$existen = $rowuser->cuanto;\n\t\t\t\t$error = 0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\telse\n\t\t{\n\t\t\t$error = 1;\n\t\t\t$this->mensage = $this->db->_error_message() . ' No se pudo ubicar datos, error no manejado';\n\t\t\t$this->_esputereport(\n\t\t\t\t(object)array( 'js_files' => '', 'css_files' => '', 'output'\t=> $this->mensage)\n\t\t\t);\n\t\t}\n\t\t// *********** fin verificar si datos vacios ******************\n\n\t\t// *********** inicio generacion de datos segun existencia de estos *************\n\t\t$this->db->trans_start();\n\t\tif( $existen < 1)\n\t\t{\n\t\t\tif( $modo_act == 'GASTOS' )\n\t\t\t$sqlactualizardata = \"\n\t\t\t\tINSERT INTO adm_indefi_ventagasto\n\t\t\t\t\tcod_entidad,\n\t\t\t\t\tmon_gastototal,\n\t\t\t\t\tmon_ventatotal, /* aqui va un query de ventas, por ahora no se puede */\n\t\t\t\t\tfecha_mes,\n\t\t\t\t\treservado /* esta es columna fake para el calculo */\n\t\t\t\tSELECT\n\t\t\t\t\ta.cod_entidad as cod_entidad,\n\t\t\t\t\tIFNULL(SUM(IFNULL(a.mon_registro, 0)), 0) as mon_gastototal,\n\t\t\t\t\t0 as mon_ventatotal,\n\t\t\t\t\tSUBSTRING(a.fecha_concepto, 1, 6) as fecha_mes,\n\t\t\t\t\t'\".date('YmdHis').\"'\n\t\t\t\tFROM\n\t\t\t\t\tregistro_gastos a\n\t\t\t\tLEFT JOIN entidad b ON a.cod_entidad = b.cod_entidad\n\t\t\t\twhere\n\t\t\t\t\ta.cod_registro <> ''\n\t\t\t\t\t\tand b.status <> 'INACTIVO'\n\t\t\t\t\t\tand CONVERT( a.fecha_concepto , UNSIGNED) >= CONVERT( '\".$fecha_mes.\"' , UNSIGNED)\n\t\t\t\t\t\tand CONVERT( a.fecha_concepto , UNSIGNED) <= CONVERT( '\".$fecha_mes.\"' , UNSIGNED)\n\t\t\t\tgroup by a.cod_entidad\n\t\t\t\torder by a.cod_entidad\n\t\t\t\";\n\t\t\telse if ( $modo_act == 'VENTAS' )\n\t\t\t$sqlactualizardata = \"\n\t\t\t\tINSERT INTO adm_indefi_ventagasto\n\t\t\t\t\tcod_entidad,\n\t\t\t\t\tmon_gastototal,\n\t\t\t\t\tmon_ventatotal, /* aqui va un query de ventas, por ahora no se puede */\n\t\t\t\t\tfecha_mes,\n\t\t\t\t\treservado /* esta es columna fake para el calculo */\n\t\t\t\tSELECT\n\t\t\t\t\ta.cod_entidad as cod_entidad,\n\t\t\t\t\tIFNULL(SUM(IFNULL(a.mon_registro, 0)), 0) as mon_gastototal,\n\t\t\t\t\t0 as mon_ventatotal,\n\t\t\t\t\tSUBSTRING(a.fecha_concepto, 1, 6) as fecha_mes,\n\t\t\t\t\t'\".date('YmdHis').\"'\n\t\t\t\tFROM\n\t\t\t\t\tregistro_gastos a\n\t\t\t\tLEFT JOIN entidad b ON a.cod_entidad = b.cod_entidad\n\t\t\t\twhere\n\t\t\t\t\ta.cod_registro <> ''\n\t\t\t\t\t\tand b.status <> 'INACTIVO'\n\t\t\t\t\t\tand CONVERT( a.fecha_concepto , UNSIGNED) >= CONVERT( '\".$fecha_mes.\"' , UNSIGNED)\n\t\t\t\t\t\tand CONVERT( a.fecha_concepto , UNSIGNED) <= CONVERT( '\".$fecha_mes.\"' , UNSIGNED)\n\t\t\t\tgroup by a.cod_entidad\n\t\t\t\torder by a.cod_entidad\n\t\t\t\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sqlactualizardata = \"SET SQL_SAFE_UPDATES=0;DELETE FROM adm_indicador_eficiencia_ventagasto WHERE fecha_mes = '\".$fecha_mes.\"';SET SQL_SAFE_UPDATES=1;\";\n\t\t\t$this->db->query($sqlactualizardata);\n\t\t}\n\n\t\t$this->db->query($sqlactualizardata);\n\t\t$this->db->trans_complete();\n\t\tif ($this->db->trans_status() === FALSE)\n\t\t\t$this->mensage = \"Error, data perdida o no actualizada: \" . $this->db->_error_message();\n\t\telse\n\t\t\t$this->mensage = \"Datos actualizados de gastos totales, correctamente, consulte para revisarlos\";\n\n\t\t$this->_esputereport((object)array(\n\t\t\t\t'js_files' => $js_files,\n\t\t\t\t'css_files' => $css_files,\n\t\t\t\t'output'\t=> $this->mensage\n\t\t));\n\n\t}", "title": "" }, { "docid": "cd82db1b285b0b11a4cbf2bac3185cb8", "score": "0.56321716", "text": "function completar_registro_de_usuario($id_de_usuario,$fecha_de_nacimiento,$indice_de_organizacion,$cargo_ocupacion,$telefono_de_contacto,$provincia,$ciudad,$direccion)\n {\n $this->id_de_usuario = $id_de_usuario;\n if(Conexion::conect()->has('informacion_de_usuario',['numero_de_id_de_usuario'=>$this->id_de_usuario]))\n {\n $this->fecha_de_nacimiento = $fecha_de_nacimiento;\n $this->indice_de_organizacion = $indice_de_organizacion;\n $this->cargo_ocupacion = utf8_encode(strtoupper($cargo_ocupacion));\n $this->telefono_de_contacto = $telefono_de_contacto;\n $this->provincia = utf8_encode($provincia);\n $this->ciudad = utf8_encode($ciudad);\n $this->direccion = utf8_encode($direccion);\n\n if(Conexion::conect()->update('informacion_de_usuario',[\n 'fecha_de_nacimiento'=>$this->fecha_de_nacimiento,\n 'indice_de_organizacion_fk'=>$this->indice_de_organizacion,\n 'cargo_ocupacion'=>$this->cargo_ocupacion,\n 'telefono_de_contacto'=>$this->telefono_de_contacto,\n 'provincia'=>$this->provincia,\n 'ciudad'=>$this->ciudad,\n 'direccion'=>$this->direccion,\n 'indice_de_perfil_fk'=>2,\n 'es_titular_de_cuenta'=>1,\n 'tiene_acceso_al_sistema'=>1,\n 'activar_usuario'=>1\n ],['numero_de_id_de_usuario'=>$this->id_de_usuario]))\n {\n Historial::nueva_actividad($this->id_de_usuario,'DAR DE ALTA','USUARIO COMPLETA EL FORMULARIO PARA PODERSE DAR DE ALTA EN ELS SISTEMA');\n echo \"Swal.fire({\n icon: 'success',\n title: 'Usuario activado',\n text: 'Su cuenta ha sido activada de manera exitosa',\n allowOutsideClick : false,\n allowEscapeKey : false,\n showConfirmButton : true,\n willClose : function(){\n window.close();\n }\n });\";\n }\n\n }\n else\n {\n echo \"Swal.fire({\n icon: 'error',\n title: 'Usuario no encontrado',\n text: 'Existe un error, consulte con un Administrador',\n allowOutsideClick : false,\n allowEscapeKey : false,\n showConfirmButton : true,\n willClose : function(){\n window.close();\n }\n });\";\n }\n }", "title": "" }, { "docid": "b63a0ddb13fe06056620f631f2097dd9", "score": "0.5631145", "text": "public function save() {\n $oDaoMes = db_utils::getDao(\"cronogramametadespesa\");\n foreach ($this->aMeses as $oMes) {\n \n \n /**\n * Percorremos as dotacoes cadastradas conforme o nivel informado, e aplicamos o valor definido no nivel para cada dotacao\n */\n $sInstituicoes = implode(\",\", $this->getInstituicoes());\n $sWhere = \" o130_cronogramaperspectiva = {$this->iPerspectiva}\";\n $sWhere .= \" and o58_instit in ({$sInstituicoes})\";\n $sWhere .= \" and o131_mes = $oMes->mes\";\n $sWhere .= $this->getFiltroByNivel();\n \n $sSqlDotacoesNivel = $oDaoMes->sql_query(null, \n \"o131_valor , o58_coddot, o131_mes, o131_sequencial, o58_valor\",\n \"o131_mes\", \n $sWhere\n );\n $rsDotacoesNivel = $oDaoMes->sql_record($sSqlDotacoesNivel);\n if ($oDaoMes->numrows > 0) {\n\n $nValorTotalMes = $oMes->valor;\n $nValorAcumulado = 0;\n $iTotalRegistrosNivel = $oDaoMes->numrows; \n for ($i = 0; $i < $iTotalRegistrosNivel; $i++) {\n \n $oDotacao = db_utils::fieldsMemory($rsDotacoesNivel, $i);\n $nValor = round(($oDotacao->o58_valor*$oMes->percentual/100));\n $nValorAcumulado += $nValor;\n //echo \"dotacao: {$oDotacao->o58_coddot}- {$oDotacao->o58_valor} nValor: {$nValor} - Valor Acumulado: {$nValorAcumulado}\\n\";\n if (($i+1) == $iTotalRegistrosNivel) {\n \n $nDiferenca = $nValorTotalMes - $nValorAcumulado;\n // echo \"dotacao: {$oDotacao->o58_coddot} nValor: {$nValor} - Valor Acumulado: {$nValorAcumulado} Dif: {$nDiferenca}\\n\";\n $nValor += $nDiferenca;\n // echo \" Modificado: {$oDotacao->o58_coddot} nValor: {$nValor} - Valor Acumulado: {$nValorAcumulado} Dif: {$nDiferenca}\\n\"; \n }\n $oDaoMes->o131_percentual = \"{$oMes->percentual}\";\n $oDaoMes->o131_valor = \"{$nValor}\";\n $oDaoMes->o131_mes = \"$oMes->mes\";\n $oDaoMes->o131_sequencial = $oDotacao->o131_sequencial;\n $oDaoMes->alterar($oDotacao->o131_sequencial);\n if ($oDaoMes->erro_status == 0) {\n throw new Exception(\"Erro ao salvar Meses da base de calculo da Despesa {$this->iDespesa}!\".$oDaoMes->erro_msg);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "a66164962fd32adb2abcc85251a7e2a8", "score": "0.5630274", "text": "function asignar($objeto) {\n\t\t// Si el objeto viene vacio(llamado desde el index) se le asigna el $_REQUEST que manda el Index\n\t\t// Si no conserva su valor normal\n\t\t$objeto = (empty($objeto)) ? $_REQUEST : $objeto;\n\n\t\t// ** Valida que no este asignada esta mesa\n\t\tsession_start();\n\t\tif (!empty($_SESSION['activas'][$objeto['mesa']])) {\n\t\t\t$resp['status'] = 2;\n\t\t} else {\n\t\t\t// Agrega la reservacion al array de las reservaciones activas\n\t\t\t$_SESSION['activas'][$objeto['mesa']] = $objeto;\n\n\t\t\t// Consulta las reservaciones\n\t\t\t$resp['result'] = $this -> reservacionesModel -> asignar($objeto);\n\n\t\t\t// 1 -> Todo bien :)\n\t\t\t// 2 -> Fallo la consulta :(\n\t\t\t$resp['status'] = (!empty($resp['result'])) ? 1 : 0;\n\t\t}\n\n\t\techo json_encode($resp);\n\t}", "title": "" }, { "docid": "0301d710f94edcd98edcfa1478b4e9cf", "score": "0.5627507", "text": "public function crear(Request $request)\n {\n\n $buscar = \\DB::select('SELECT * FROM `contratos` WHERE empleado_id='.$request->empleado_id.' ORDER BY id DESC LIMIT 1');\n\n\n if (count($buscar)>0) {\n\n \n \n foreach ($buscar as $key) {\n\n \n\n if ($key->fecha_final<=$request->fecha) {\n $contratos=contratos::find($key->id);\n $contratos->status=\"Vencido\";\n $contratos->save();\n\n\n $emple=\\DB::select('SELECT * FROM `empleado` WHERE id='.$request->empleado_id);\n\n \n foreach ($emple as $k) {\n\n $contratos= new contratos();\n $contratos->empleado_id=$request->empleado_id;\n $contratos->tarea=$request->tarea;\n $contratos->fecha=$request->fecha;\n $contratos->fecha_inicio=$request->fecha_inicio;\n $contratos->fecha_final=$request->fecha_final;\n $contratos->cargo=$k->cargo;\n $contratos->area=$request->area;\n $contratos->adscripcion=$k->adscripcion;\n $contratos->save();\n\n\n $bitacoras = new App\\Bitacora;\n\n $bitacoras->user = Auth::user()->name;\n $bitacoras->lastname = Auth::user()->name;\n $bitacoras->role = Auth::user()->user_type;\n $bitacoras->action = 'Ha registrado un Contrato';\n $bitacoras->save();\n flash('<i class=\"icon-circle-check\"></i>¡Contrato registrado exitosamente!')->success()->important();\n return redirect()->to('contratos');\n } \n \n\n \n\n\n }else{\n # no permitir registrar\n flash('<i class=\"icon-circle-check\"></i> ¡Hay un contrato vigente!')->warning()->important();\n return redirect()->back();\n }\n}\n } else {\n $emple=\\DB::select('SELECT * FROM `empleado` WHERE id='.$request->empleado_id);\n\n foreach ($emple as $k) {\n\n $contratos= new contratos();\n $contratos->empleado_id=$request->empleado_id;\n $contratos->tarea=$request->tarea;\n $contratos->fecha=$request->fecha;\n $contratos->fecha_inicio=$request->fecha_inicio;\n $contratos->fecha_final=$request->fecha_final;\n $contratos->cargo=$k->cargo;\n $contratos->area=$request->area;\n $contratos->adscripcion=$k->adscripcion;\n $contratos->save();\n\n\n $bitacoras = new App\\Bitacora;\n\n $bitacoras->user = Auth::user()->name;\n $bitacoras->lastname = Auth::user()->name;\n $bitacoras->role = Auth::user()->user_type;\n $bitacoras->action = 'Ha registrado un Contrato';\n $bitacoras->save();\n flash('<i class=\"icon-circle-check\"></i>¡Contrato registrado exitosamente!')->success()->important();\n return redirect()->to('contratos');\n }\n }\n}", "title": "" }, { "docid": "63bd40f720c864b26f841eef547e67aa", "score": "0.5618328", "text": "public function aceptarfecha(){\n if(!$this->ion_auth->in_group('admin') && !$this->ion_auth->in_group('capitan') ){\n $this->session->set_flashdata('message','You are not allowed to visit this page');\n redirect('admin','refresh');\n }\n \n $partida = $this->partida->get($_POST['id'],$_POST['competicion_id']);\n if(!$partida || $partida->estado != 'pendiente'){\n $this->session->set_flashdata('message','Accion invalida');\n redirect('admin','refresh');\n }\n $capitan_local = $partida->getJuegaEquipoLocal()->getEquipo()->getCapitanUserId();\n $capitan_visitante = $partida->getJuegaEquipoVisitante()->getEquipo()->getCapitanUserId();\n if($this->data['current_user']->id!=$capitan_local && $this->data['current_user']->id!=$capitan_visitante){\n $this->session->set_flashdata('message','No eres capitan..');\n redirect('admin','refresh');\n }\n \n $juega = $this->juegaequipo->get($_POST['competicion_id'],$_POST['id'],$_POST['equipo']);\n $juega->aceptafecha = 1;\n $juega->guardarDB();\n \n \n if($partida->getJuegaEquipoLocal()->aceptafecha && $partida->getJuegaEquipoVisitante()->aceptafecha){\n $partida->estado = 'jugando';\n $partida->guardarDB();\n }\n redirect('admin/competiciones/partidascapitan/'.$_POST['competicion_id'],'refresh');\n }", "title": "" }, { "docid": "b6160bffa077f1b51b5a4b86d12898ce", "score": "0.5618111", "text": "function corregir_si_semestre_pasado_tiene_baja_definitiva_en_el_actua_si_reprueba_tambien_es_baja_definitiva_colomos(){\n\t\t\t$Xalumnocursos\t= new Xalumnocursos();\n\t\t\t$Xalumnocursos2\t= new Xalumnocursos();\n\t\t\t$Xalumnocursos3\t= new Xalumnocursos();\n\t\t\tforeach( $Xalumnocursos -> find_all_by_sql(\"\n\t\t\t\t\tselect xcc.materia, xcc.clavecurso, xal.registro,\n\t\t\t\t\txal.situacion, xal.calificacion, xal.faltas, xal.id\n\t\t\t\t\tfrom xalumnocursos xal\n\t\t\t\t\tinner join xccursos xcc\n\t\t\t\t\ton xal.curso = xcc.clavecurso\n\t\t\t\t\tand xal.periodo = 32011\n\t\t\t\t\tand (xal.calificacion < 70\n\t\t\t\t\tor xal.calificacion = 999)\") as $xal ){\n\t\t\t\tforeach( $Xalumnocursos2 -> find_all_by_sql(\"\n\t\t\t\t\t\tselect xcc.materia, xal.*\n\t\t\t\t\t\tfrom xalumnocursos xal\n\t\t\t\t\t\tinner join xccursos xcc\n\t\t\t\t\t\ton xal.curso = xcc.clavecurso\n\t\t\t\t\t\tand xal.registro = '\".$xal -> registro.\"'\n\t\t\t\t\t\tand xcc.materia = '\".$xal -> materia.\"'\n\t\t\t\t\t\tand xal.situacion = 'BAJA DEFINITIVA'\n\t\t\t\t\t\tand xal.periodo = 12011\") as $xal2 ) {\n\t\t\t\t\t$xal3 = $Xalumnocursos3 -> find_first(\"id = \".$xal -> id);\n\t\t\t\t\t$xal3 -> situacion = \"BAJA DEFINITIVA\";\n\t\t\t\t\t$xal3 -> save();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "91192a1f9316d3e0cbdbdd1a10209723", "score": "0.5615761", "text": "public function getListadoOperacionesByProductorIdAndMonthRefacturado($productor_id,$mes,$anio){\n\t\t//Buscar el estado Vigente\n\t\t//$estado = Domain_EstadoPoliza::getIdByCodigo('VIGENTE');\n\t\t//$estado_caucion = Domain_EstadoPoliza::getIdByCodigo('AFECTADA');\n\t\t//$estado_refacturado = Domain_EstadoPoliza::getIdByCodigo('REFACTURADO');\n\t\t//Que muester todas las polizas, despues veo el filtro\n\t\t$imes = intval($mes);\n\t\t$ianio = intval($anio);\n\t\t\n\t\t$mes_pasado_timestamp = mktime(0, 0, 0, $imes-1, \"01\", $ianio);\n\t\t$mes_pasado = date('Y-m-d',$mes_pasado_timestamp);\n\t\t\n\t\t$mes_actual_timestamp = mktime(0, 0, 0, $imes, \"00\", $ianio);\n\t\t$mes_actual = date('Y-m-d',$mes_actual_timestamp);\n\t\t\n\t\t$mes_que_viene_timestamp = mktime(0, 0, 0, $imes+1, \"00\", $ianio);\n\t\t$mes_que_viene = date('Y-m-d',$mes_que_viene_timestamp);\n\t\t\n\t\t\n\t\t\n\t\t//echo \"<br>mes actual\".$mes_actual;\n\t\t//echo \"<br>mes que viene\".$mes_que_viene;\n\t\t//exit;\n\t\t$this->_model_poliza = new Model_Poliza();\n\t\t$rows = $this->_model_poliza\n\t\t->getTable()\n\t\t->createQuery()\n\t\t//->Where('estado_id = ? OR estado_id = ? OR estado_id = ?',array($estado,$estado_caucion,$estado_refacturado))\n\t\t->Where('estado_id not in (0,1,14)' )\n\t\t->andWhere(\"productor_id = ? \", $productor_id)\n\t\t//->andWhere(\"fecha_vigencia between ? AND ?\", array($mes_actual,$mes_que_viene))\n\t\t->andWhere(\"fecha_vigencia > ? AND fecha_vigencia <= ?\", array($mes_actual,$mes_que_viene))\n\t\t->orderBy(\"fecha_vigencia\")\n\t\t->execute()\n\t\t->toArray();\n\t\t//->getSqlQuery();\n\t\t\n\t\treturn $rows;\n\t}", "title": "" }, { "docid": "c6f1c1344a712cc9d1dda2994fd6e63a", "score": "0.56101286", "text": "function insertarActivoFijoCaract(){\n\t\t$this->procedimiento='kaf.ft_activo_fijo_caract_ime';\n\t\t$this->transaccion='SKA_AFCARACT_INS';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('clave','clave','varchar');\n\t\t$this->setParametro('valor','valor','varchar');\n\t\t$this->setParametro('id_activo_fijo','id_activo_fijo','int4');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('id_clasificacion_variable','id_clasificacion_variable','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "e8935f2b081e7d45d6b6f11284a010cb", "score": "0.56088805", "text": "function get_movimientos_de_anexo( $params=array() ){\n\n \t$this->ci->load->model('model_programa');\n \t$this->ci->load->model('model_cat_empresa_tdr');\n \t$this->ci->load->model('model_empresa_listados');\n \t$this->ci->load->model('model_polizas');\n\n \t// params\n \t$idanexos=isset($params['idanexos']) ? $params['idanexos'] : false;\n\n\t\t$anexo = $this->ci->model_polizas->get_anexos( array('idanexos'=>$idanexos) );\n\n\t\tif( $anexo ){\n\t\t\t$my_params=array(\n\t\t\t\t'idanexos'=>$anexo[0]->idanexos\n\t\t\t);\n\t\t\t$data['cot_poliza_empresa'] = $this->ci->model_cotizacion_empresa->traer_cot_polizas( $params );\n\t\t\t$data['empresa_tdr_detalle'] = $this->ci->model_cat_empresa_tdr->get_tdr_details_values( $params );\n\t\t\t$data['inclusiones'] = $this->ci->model_empresa_listados->traer_filas( array('idanexos_inclusion'=>$anexo[0]->idanexos) );\n\t\t\t$data['exclusiones'] = $this->ci->model_empresa_listados->traer_filas( array('idanexos_exclusion'=>$anexo[0]->idanexos) );\n\t\t\t//$data['empresa_sumas_listado'] = $this->ci->model_empresa_listados->get_sumas( $params );\n\t\t\t$data['poliza_empresa'] = $this->ci->model_polizas->get_polizas($params, 'e');\n\t\t\t$data['poliza_persona'] = $this->ci->model_polizas->get_polizas($params, 'p');\n\t\t}else{\n\t\t\t$data=false;\n\t\t}\n\t\treturn $data;\n }", "title": "" }, { "docid": "b31c0989a4f3489b1ec9fd23cb1eed39", "score": "0.56077003", "text": "public function alterar_aluno($dados)\n {\n $semestre=explode('-', $dados['semestre_selecionado']);\n $semestre_selecionado=$dados['semestre_selecionado'];\n\n $aluno_semestre = User::join('aluno_semestres', 'users.id', '=', 'aluno_semestres.usuario_aluno')\n ->where([\n ['users.id', '=', $dados['id']],\n ['aluno_semestres.semestre_numero', '=', $semestre[0]],\n ['aluno_semestres.semestre_ano', '=', $semestre[1]]\n ])->get()->first();\n\n if(TccDados::where('usuario_aluno', '=', $dados['id'])->count() > 0){ \n\n $aluno_tcc = TccDados::where('usuario_aluno', '=', $dados['id'])->get()->first();\n\n\n if(Agendamento::join('aluno_semestres', 'agendamentos.id_matricula', '=', 'aluno_semestres.id')\n ->where([\n ['aluno_semestres.usuario_aluno', '=', $dados['id']],\n ['aluno_semestres.semestre_numero', '=', $semestre[0]],\n ['aluno_semestres.semestre_ano', '=', $semestre[1]]\n ])->count() > 0){\n\n\n $aluno_agendamento = Agendamento::join('aluno_semestres', 'agendamentos.id_matricula', '=', 'aluno_semestres.id')\n ->where([\n ['aluno_semestres.usuario_aluno', '=', $dados['id']],\n ['aluno_semestres.semestre_numero', '=', $semestre[0]],\n ['aluno_semestres.semestre_ano', '=', $semestre[1]]\n ])->get()->first();\n\n $aluno = [\n 'id' => $aluno_semestre['usuario_aluno'],\n 'nome'=> $aluno_semestre['nome'],\n 'email'=> $aluno_semestre['email'],\n 'materia'=> $aluno_semestre['materia'],\n 'orientador'=> $aluno_tcc['orientador'],\n 'coorientador'=> $aluno_tcc['coorientador'],\n 'tema'=> $aluno_tcc['tema'],\n 'membro_banca_1' => $aluno_agendamento['membro1banca'],\n 'membro_banca_2' => $aluno_agendamento['membro2banca']\n ];\n\n }else{\n\n $aluno = [\n 'id' => $aluno_semestre['usuario_aluno'],\n 'nome'=> $aluno_semestre['nome'],\n 'email'=> $aluno_semestre['email'],\n 'materia'=> $aluno_semestre['materia'],\n 'orientador'=> $aluno_tcc['orientador'],\n 'coorientador'=> $aluno_tcc['coorientador'],\n 'tema'=> $aluno_tcc['tema'],\n 'membro_banca_1' => null,\n 'membro_banca_2' => null\n ];\n\n }\n\n }else{\n\n $aluno = [\n 'id' => $aluno_semestre['usuario_aluno'],\n 'nome'=> $aluno_semestre['nome'],\n 'email'=> $aluno_semestre['email'],\n 'materia'=> $aluno_semestre['materia'],\n 'orientador'=> null,\n 'coorientador'=> null,\n 'tema'=> null,\n 'membro_banca_1' => null,\n 'membro_banca_2' => null\n ];\n }\n\n $orientadores = User::where([\n ['professor','=',true],\n ['orientador','=',true]\n ])->whereNotNull('nome')->get();\n\n \n return view('professor.gestor.alterar_aluno',compact('aluno','orientadores','semestre_selecionado'));\n }", "title": "" }, { "docid": "e9442ac205aa2ae80aa3332d66490e1b", "score": "0.5605626", "text": "function modificarProcesoCaja(){\n\t\t$this->procedimiento='tes.ft_proceso_caja_ime';\n\t\t$this->transaccion='TES_REN_MOD';\n\t\t$this->tipo_procedimiento='IME';\n\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_proceso_caja','id_proceso_caja','int4');\n\t\t$this->setParametro('estado','estado','varchar');\n\t\t$this->setParametro('id_comprobante_diario','id_comprobante_diario','int4');\n\t\t$this->setParametro('nro_tramite','nro_tramite','varchar');\n\t\t$this->setParametro('tipo','tipo','varchar');\n\t\t$this->setParametro('motivo','motivo','text');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('fecha_fin','fecha_fin','date');\n\t\t$this->setParametro('id_caja','id_caja','int4');\n\t\t$this->setParametro('fecha','fecha','date');\n\t\t$this->setParametro('id_proceso_wf','id_proceso_wf','int4');\n\t\t$this->setParametro('monto','monto','numeric');\n\t\t$this->setParametro('id_comprobante_pago','id_comprobante_pago','int4');\n\t\t$this->setParametro('id_estado_wf','id_estado_wf','int4');\n\t\t$this->setParametro('fecha_inicio','fecha_inicio','date');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "93be6d46c068c6769a8d002a39c1e937", "score": "0.56015724", "text": "function listarActivoFijoCaract(){\n\t\t$this->procedimiento='kaf.ft_activo_fijo_caract_sel';\n\t\t$this->transaccion='SKA_AFCARACT_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\t\t\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_activo_fijo_caract','int4');\n\t\t$this->captura('clave','varchar');\n\t\t$this->captura('valor','varchar');\n\t\t$this->captura('id_activo_fijo','int4');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('id_usuario_ai','int4');\n\t\t$this->captura('usuario_ai','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_clasificacion_variable','int4');\n\t\t$this->captura('nombre_variable','varchar');\n\t\t$this->captura('tipo_dato','varchar');\n\t\t$this->captura('obligatorio','varchar');\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}", "title": "" }, { "docid": "796fc16a4a8a82a990de19cd292553eb", "score": "0.5601147", "text": "public function empleados_cmi(){\r\t\ttry{\r\t\t\tglobal $conn;\r\t\t\t\r\t\t\t$sql=\"select em.cod_epl,em.nom_epl,em.ape_epl,cent.nom_cc2,car.nom_car\r\t\t\t\tfrom empleados_basic as em, centrocosto2 as cent, cargos as car\r\t\t\t\twhere em.estado='A' and em.cod_car=car.cod_car and em.cod_cc2=cent.cod_cc2 and em.cod_epl not in(select cod_epl from supernumerario) \r\t\t\t\tand em.cod_cc2 not in ('60030302','CA010308','AD60030302',' AC010308','20')order by car.nom_car\";\r\t\t\t$rs=$conn->Execute($sql);\r\t\t\twhile($fila=$rs->FetchRow()){\r\t\t\t\t$this->lista[]=array(\"cedula\"=> $fila[\"cod_epl\"],\r\t\t\t\t\t\t\t\t\t \"nombre_completo\"=> utf8_encode($fila[\"nom_epl\"].\" \".$fila[\"ape_epl\"]),\r\t\t\t\t\t\t\t\t\t \"centro_costo\"=> utf8_encode($fila[\"nom_cc2\"]),\r\t\t\t\t\t\t\t\t\t \"cargo\"=> utf8_encode($fila[\"nom_car\"]));\r\t\t\t}\r\t\t\t\r\t\t\treturn $this->lista;\r\t\t\t\r\t\t}catch(exception $e){\r\t\t\t var_dump($e); \r\r adodb_backtrace($e->gettrace());\r\t\t}\r\t\r\t}", "title": "" }, { "docid": "ae6993a007a3093bc54803444355c72e", "score": "0.5590176", "text": "public function actualizarEmpresa($nombEmpresa)\n {\n $empresaModif = array(\n \"nombreEmpresa\" => $this->nombreEmpresa,\n \"logoEmpresa\" => $this->logoEmpresa,\n \"banner\" => $this->banner,\n \"pais\" => $this->pais,\n \"direccion\" => $this->direccion,\n \"longitud\" => $this->longitud,\n \"latitud\" => $this->latitud,\n \"tipoEmpresa\" => $this->tipoEmpresa,\n \"nombreUsuario\" => $this->nombreUsuario,\n \"password\" => $this->password,\n \"facebook\" => $this->facebook,\n \"instagram\" => $this->instagram,\n \"twitter\" => $this->twitter,\n \"twitch\" => $this->twitch,\n \"email\" => $this->email,\n \"actual\" => $this->actual,\n \"publicaciones\" => $this->publicaciones,\n \"calificacionEmpresaDe\" => $this->calificacionEmpresaDe,\n \"tipo\" => $this->tipo,\n \"fechaSignIn\" => $this->fechaSignIn,\n \"registroAcciones\" => $this->registroAcciones,\n );\n\n $verif=false;\n $contenidoArchivoRegistro = file_get_contents('../data/registroEmpresas.json');\n $registro = json_decode($contenidoArchivoRegistro, true);\n\n $contenidoArchivo = file_get_contents('../data/usuariosEmpresas.json');\n $empresas = json_decode($contenidoArchivo, true);\n for ($i = 0; $i < sizeof($empresas); $i++) {\n if ($empresas[$i]['nombreUsuario'] == $nombEmpresa) {\n $empresas[$i] = $empresaModif;\n \n for ($k=0; $k < sizeof($registro); $k++) { \n if($registro[$k]['nombreUsuario']==$nombEmpresa){\n $registro[$k]['registroAcciones']=$empresas[$i]['registroAcciones'];\n $verif=true;\n break;\n }\n }\n if($verif==false){\n $registro[]=array(\n \"nombreUsuario\" => $nombEmpresa,\n \"registroAcciones\" => $empresas[$i]['registroAcciones']\n );\n }\n\n $archivoReg = fopen('../data/registroEmpresas.json', 'w');\n fwrite($archivoReg, json_encode($registro));\n fclose($archivoReg);\n\n $archivo = fopen('../data/usuariosEmpresas.json', 'w');\n fwrite($archivo, json_encode($empresas));\n fclose($archivo);\n echo json_encode($empresas[$i]);\n break;\n }\n }\n }", "title": "" }, { "docid": "46833ab7a9b496a77acd7231db30ae8a", "score": "0.5587342", "text": "public function activarSesion(){\n try {\n\n //CONEXION A LA BASE DE DATOS\n $conexion = new PDO('mysql:host='.$this->datosConexionBD[0].';\n dbname='.$this->datosConexionBD[3], $this->datosConexionBD[1], $this->datosConexionBD[2]);\n\n $conexion -> exec(\"set names utf8\");\n $time = time();\n //Sentencia SQL para modificar un usuario\n $query = \"UPDATE usuarios SET\n\n statusUsuario = 1,\n entradaUsuario ='\".$time.\"'\n\n WHERE idUsuario = '\".$this->id.\"'\";\n\n $statement = $conexion->prepare($query);\n\n $statement->execute();\n\n return \"Sesión activada\";\n }\n\n catch(PDOException $e){\n return \"Error: \" . $e->getMessage();\n }\n }", "title": "" }, { "docid": "e6c78f18c2012dbc29969a43198e3b00", "score": "0.5581933", "text": "public function buscarExtendida(){\n\t\t$filtros=array('usuario'=>$_SESSION['usuario_id'],'dui'=>$_POST['dui'], 'nombre'=>$_POST['nombre'],'apellido'=>$_POST['apellido']);\n\t\t$lista_pacientes=Paciente::allByFilter($filtros);\n\t\t$botones=0;\t\n\t\trequire_once('Views/Paciente/show.php');\t\t\n\t\t/*\n\t\telse{//si está vacía trae todos los registros\n\t\t\t$this->show();\n\t\t}\n\t\t*/\t\t\n\t}", "title": "" }, { "docid": "d81697d88035dfd0eedf9ae81d9f346b", "score": "0.5579058", "text": "function modificarMantenimiento(){\r\n\t\t$this->procedimiento='gev.f_tgv_mantenimiento_ime';\r\n\t\t$this->transaccion='tgv_man_MOD';\r\n\t\t$this->tipo_procedimiento='IME';\r\n\t\t\t\t\r\n\t\t//Define los parametros para la funcion\r\n\t\t$this->setParametro('id_mantenimiento','id_mantenimiento','int4');\r\n\t\t$this->setParametro('id_tipo_evento','id_tipo_evento','int4');\r\n\t\t$this->setParametro('descripcion','descripcion','varchar');\r\n\t\t$this->setParametro('id_proveedor','id_proveedor','int4');\r\n\t\t$this->setParametro('fecha_ini','fecha_ini','date');\r\n\t\t$this->setParametro('fecha_fin','fecha_fin','date');\r\n\t\t$this->setParametro('id_funcionario','id_funcionario','int4');\r\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\r\n\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t$this->ejecutarConsulta();\r\n\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "title": "" }, { "docid": "f7979673fefb1266f54a1e3051af804f", "score": "0.5574502", "text": "public function buscarPorActividad()\n\t{\n\t\t$sql = \"SELECT m.idMaterial, m.nombre_material, m.cod_fabricante, m.valor, um.unidad_medida, ma.nombre_marca, mha.cantMaterial FROM actividad_plantilla ac INNER JOIN material_has_actividad mha ON ac.idActividad = mha.Actividad_idActividad INNER JOIN material m on mha.Material_idMaterial = m.idMaterial INNER JOIN unidadm um ON um.idunidadM = m.unidadM_idunidadM INNER JOIN marca ma ON m.Marca_idMarca = ma.idMarca WHERE ac.idActividad = '{$this->idActividad}';\";\n\n\t\t$resultado = $this->conexion->ConsultaResult($sql);\n\n\t\treturn $resultado;\n\t\t$this->conexion->Liberar($resultado);\n\t\t$this->conexion->Cerrarconex();\n\t}", "title": "" }, { "docid": "454d9e32669d2fa77764c68f44cda5ca", "score": "0.5571098", "text": "public function cambiar_mesa($datosMesa)\r\n {\r\n $query = $this->db->query('INSERT INTO sys_pedido \r\n SELECT \"\", secuencia_orden, id_sucursal, id_usuario, id_mesero, numero_mesa, elaborado, mostrado, flag_cancelado,flag_elaborado, flag_despachado, flag_pausa, prioridad, llevar_pedido, porcentaje_descuento, total_descuento, motivo_descuento,codigo_cupon, fechahora_pedido, fechahora_elaborado, fechahora_despachado, fecha_creado, cortado, estado \r\n FROM sys_pedido WHERE id_pedido='.$datosMesa['idpedidounico']);\r\n \r\n $query2 = $this->db->query(\"SELECT max(p.id_pedido) as cuentaNueva FROM sys_pedido p\");\r\n $nuevoID = $query2->result_array(); \r\n\r\n $updatedMesa = $this->caja_model->udpateMesa($datosMesa['numMesa'], $nuevoID[0]['cuentaNueva']);\r\n if ($updatedMesa) \r\n {\r\n foreach ($datosMesa['myItems'] as $value) \r\n {\r\n $data = array(\r\n 'id_pedido' => $nuevoID[0]['cuentaNueva'],\r\n );\r\n $this->db->where('id_detalle', $value); \r\n $this->db->update(self::sys_pedido_detalle,$data);\r\n }\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "2afd5cf4258edd9404cbc00103c4d283", "score": "0.5570684", "text": "private function regerarComissaoProfessor($professores = array(), $mes = 0, $ano = 0) {\r\n\t\t$this->system->load->dao('pagamentos');\r\n\t\t$this->system->load->dao('parceiros');\r\n\t\tforeach ($professores as $professor_id) {\r\n\t\t\t\r\n\t\t\t$totalReceber = 0;\r\n\t\t\t$percentualComissao = 0;\r\n\r\n\t\t\t$where = \" and t2.status = 1 and t1.professor_id = '\" . $professor_id . \"' and t2.data_venda >= '\" . $ano .\"-\". $mes . \"-1' and t2.data_venda < '\" . date('Y') . \"-\" . date('m') . \"-1'\";\r\n\t\t\t$vendas = $this->system->vendas->getVendasPorCursos($where);\r\n\r\n\t\t\t$percentualComissao = $this->system->professores->getValorExtra($professor_id, 'comissao');\r\n\r\n\t\t\tforeach($vendas as $key => $venda) {\r\n\t\t\t\t$venda = $this->system->vendas->getVenda($venda['venda_id']);\r\n\r\n\t\t\t \t//CURSOS\r\n\t\t\t \t$this->totalPreco = 0;\r\n\t\t\t \t$this->totalPrecoProfessor = 0;\r\n\t\t\t \t$cursos = array();\r\n\t\t\t\tforeach($this->system->vendas->getCursosByVenda($venda['id']) as $curso) {\r\n\t\t\t \t\t$curso_dados = end($this->system->curso->getCurso($curso['curso_id'], false));\r\n\t\t\t \t\t$this->totalPreco += $curso['preco_total'];\r\n\t\t\t \t\tif ($curso_dados['professor_id'] == $professor_id) \r\n\t\t\t \t\t\t$this->totalPrecoProfessor += $curso['preco_comissao'];\r\n\t\t\t \t}\r\n\r\n\t\t\t \t////// TAXA //////\r\n\t\t\t \t//PagSeguro e MoIP\r\n\t\t\t \t$valorTaxas = $this->divisaoCustos($venda['valor_taxas']);\r\n\t\t\t \t\r\n\t\t\t \t////// CUPOM (SITE) ou DESCONTO (LMS) ////// \r\n\t\t\t \t$valorCupom = 0;\r\n\t\t\t \t$valorDesconto = 0;\r\n\t\t\t \tif ($venda['cupom_id']) {\r\n\t\t\t \t\t\r\n\t\t\t \t\t$cupom = $this->system->cupons->getCupom($venda['cupom_id']);\r\n\r\n\t\t\t \t\tif ($cupom['tipo_desconto'] == 1) //Valor inteiro\r\n\t\t\t \t\t\t $valorCupom = $this->divisaoCustos($cupom['valor']);\r\n\t\t\t \t\telse { //Porcentagem\r\n\t\t\t \t\t\t$porcentagemPaga = (100 - $cupom['valor']);\r\n\t\t\t \t\t\t$valorSemCupom = ((100 * $venda['valor_total'])/$porcentagemPaga);\r\n\t\t\t \t\t\t$valorCupom = $this->divisaoCustos($valorSemCupom - $venda['valor_total']);\r\n\t\t\t \t\t}\r\n\t\t\t \t} else \r\n\t \t\t\t\t$valorDesconto = $this->divisaoCustos($venda['valor_desconto']);\r\n\t\t\t\r\n\r\n\t\t\t \t////// COMISSÃO PARCEIRO (DESCONTO) /////\r\n\t\t\t \t$valorComissaoParceiro = 0;\r\n\t\t\t \tif ($venda['parceiro_id']) {\r\n\t\t\t \t\t$comissaoParceiro = $this->system->parceiros->getValorExtra($venda['parceiro_id'], 'comissao');\r\n\t\t\t \t\t$valorComissaoParceiro = $this->divisaoCustos(($comissaoParceiro * $venda['valor_total'])/100);\t\t \t\t\r\n\t\t\t \t}\r\n\r\n\t\t\t \t////// BRUTO //////\r\n\t\t \t\t$valorBruto = ($this->totalPrecoProfessor - $valorComissaoParceiro - $valorTaxas - $valorCupom - $valorDesconto);\t \t\t\r\n\t\t\t \t\r\n\t\t\t \t////// LÍQUIDO //////\r\n\t\t\t \t$valorLiquido = (($percentualComissao * $valorBruto)/100);\r\n\r\n\t\t\t \t$totalReceber += $valorLiquido;\r\n\t\t\t}\r\n\r\n\t\t\t$pagamento = $this->system->pagamentos->getPagamento(\" and t1.usuario_id = '\" . $professor_id . \"' and t1.mes_faturado = '\" . $ano .\"-\". $mes . \"-1'\");\r\n\t\t\tif ($pagamento['id']) {\r\n\t\t\t\t$this->system->pagamentos->atualizar(array(\r\n\t\t\t\t\t'valor'\t\t\t\t=> number_format($totalReceber, 2),\r\n\t\t\t\t\t'data_cadastro'\t\t=> date('Y-m-d H:i:s'),\r\n\t\t\t\t\t),\r\n\t\t\t\t\t\"id = '\" . $pagamento['id'] . \"'\"\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3424f2d85ae2b3c72c780986aa169c0e", "score": "0.5553932", "text": "function procesarCobroMensual(){\r\n\t\t$dbo = JFactory::getDBO();\r\n\t\t$con = $dbo->getConnection();\r\n\t\t//pasos\r\n\t\t\r\n\t\t//validar que el proceso se ejecuta a partir del dia 6 \r\n\t\t\r\n\t\t$esDiaDeCorte = validarDiaCorte($con);\r\n\t\t//echo \"<br><h1>\".$esDiaDeCorte.\"</h1>\";\r\n\t\tif ($esDiaDeCorte){\r\n\t\t\techo \"<h3>\".date(\"d-m-Y\").\" Es fecha de corte o posterior, aplicando movimientos de cobro mensual por servicio (DMS):</h3><br>\";\r\n\t\t}else{\r\n\t\t\techo \"<br>\".date(\"d-m-Y\").\" Aun no es dia de corte<br>\";\r\n\t\t\treturn 0;\r\n\t\t} \r\n\t\t\r\n\t\t//1 seleccionar clientes que no tengan movimiento DMS (debito mensual por servicio) \r\n\t\t//para el mes actual \r\n\t\t// y que no tengan saldo negativo\r\n\t\t//retornar cedula y plan \r\n\t\t$sql = \t\"SELECT b.tax_code, c.pln_valor, b.name \r\n\t\t\t\t\tFROM bamboo_clients AS b \r\n\t\t\t\t\tINNER JOIN cpz_plan AS c ON b.plan = c.pln_id \r\n\t\t\t\t\tWHERE b.status = '1' \r\n\t\t\t\t\tAND b.tax_code \r\n\t\t\t\t\tNOT IN (\r\n\t\t\t\t\tSELECT cmv_cli_tax_code \r\n\t\t\t\t\tFROM cpz_cli_mov \r\n\t\t\t\t\tWHERE cmv_tipopago = 'DMS' \r\n\t\t\t\t\tAND MONTH( cmv_fecha ) = MONTH( CURDATE() ) \r\n\t\t\t\t\tAND YEAR( cmv_fecha ) = YEAR( CURDATE() )\r\n\t\t\t\t\t);\";\r\n\t\t\t\t//echo $sql;\r\n\t\t$result = util_ejecutarSql($sql, $con);\r\n\t\t\r\n\t\tif(($nro = mysql_num_rows($result)) == 0){\r\n\t\t\techo \"<h5>Todos los clientes tienen el cobro del servicio aplicado.</h5>\";\r\n\t\t\treturn 0;\r\n\t\t}else{\r\n\t\t\techo \"<br><h3>Insertando Debito mensual por servicio (movimientos DMSs)</h3><br>\";\r\n\t\t\techo \"<h5>Encontrados \".$nro.\" clientes sin debito mensual por servicio para el mes y año en curso, creando movimiento DMS del mes actual.</h5>\";\r\n\t\r\n\t\t\t$sIpline = \"\";\r\n\t\t\twhile ($row = mysql_fetch_assoc($result)) {\r\n\t\t\t\t\r\n\r\n\t\t\t\t// si no existe el registro DMS para el cliente en el mes actual, crearlo\t\r\n\t\t\t\tif(!existeRefDMS($row['tax_code'],$con)){\r\n\t\t\t\t\t//monto actual de cobro, deuda en el mes en curso del cliente \r\n\t\t\t\t\t$valorDMS = obtenerValorDMS($con,$row['tax_code']);\r\n\t\t\t\t\techo \"<br>$$$ >> valorDMS \".$valorDMS.\"<br>\";\r\n\t\t\t\t\t//2 crear movimiento DMS (debito mensual por servicio) para los clientes seleccionados.\r\n\t\t\t\t\t//por mas veces que se ejecute esta rutina solo se registrara una vez por cliente un movimiento DMS mensual\t \r\n\t\t\t\t\t$sql = \"INSERT INTO `cocompaz_jml1`.`cpz_cli_mov` \r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t`cmv_id` ,`cmv_cli_tax_code`,`cmv_pagcsv_ref` ,`cmv_tipomov` ,\r\n\t\t\t\t\t\t\t`cmv_monto`,`cmv_tipopago`,\t`cmv_fecha`,`cmv_fechareg`,cmv_refex\r\n\t\t\t\t\t\t)VALUES (NULL,\r\n\t\t\t\t\t\t\t'\".$row['tax_code'].\"',NULL,'-1', \r\n\t\t\t\t\t\t\t'\".$valorDMS.\"','DMS',\r\n\t\t\t\t\t\t\tSYSDATE(),SYSDATE(),NULL\r\n\t\t\t\t\t\t);\";\r\n\t\t\t\t\t\techo $sql;\r\n\t\t\t\t\tmysql_query($sql, $con);\r\n\t\t\t\t\techo \"<br> Creando DMS - Nombre: \".$row['name'].\"cedula: \".$row['tax_code'].\" monto: \".$valorDMS;\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//echo \"<br> Existe DMS - Nombre: \".$row['name'].\"cedula: \".$row['tax_code'].\" monto: \".$valorDMS;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//mysql_free_result($result);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "15ec4cf463cb5b76af1a6d79ec3334f0", "score": "0.5548693", "text": "function listarMantenimiento(){\r\n\t\t$this->procedimiento='gev.f_tgv_mantenimiento_sel';\r\n\t\t$this->transaccion='tgv_man_SEL';\r\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\r\n\t\t\t\t\r\n\t\t//Definicion de la lista del resultado del query\r\n\t\t$this->captura('id_mantenimiento','int4');\r\n\t\t$this->captura('id_tipo_evento','int4');\r\n\t\t$this->captura('descripcion','varchar');\r\n\t\t$this->captura('id_proveedor','int4');\r\n\t\t$this->captura('fecha_ini','date');\r\n\t\t$this->captura('fecha_fin','date');\r\n\t\t$this->captura('id_funcionario','int4');\r\n\t\t$this->captura('estado_reg','varchar');\r\n\t\t$this->captura('id_usuario_reg','int4');\r\n\t\t$this->captura('fecha_reg','timestamp');\r\n\t\t$this->captura('id_usuario_mod','int4');\r\n\t\t$this->captura('fecha_mod','timestamp');\r\n\t\t$this->captura('usr_reg','varchar');\r\n\t\t$this->captura('usr_mod','varchar');\r\n\t\t$this->captura('desc_proveedor','varchar');\r\n\t\t$this->captura('desc_person','text');\r\n\t\t$this->captura('nombre','varchar');\r\n\t\t\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t$this->ejecutarConsulta();\r\n\t\t\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "title": "" }, { "docid": "f0fd75415bbb91679b7361f3734cee8d", "score": "0.55474776", "text": "function update_actividadMasiva($idmasivo,$id_actividad,$id_especializacion,$id_tema,$t_tema,$t_area_en,$FRevision,$FPInicio,$FPFinal,$FRInicio,$FRFinal,$inicio,$final,$coment,$idreponsable,$competencias){\n parent::conectar();\n $FRevision_S=$this->set_standarDate($FRevision);\n $FPInicio_S=$this->set_standarDate($FPInicio);\n $FPFinal_S=$this->set_standarDate($FPFinal);\n if($FRInicio!=0){\n $FRInicio_S=$this->set_standarDate($FPInicio_S);\n }else{\n $FRInicio_S='';\n }\n\n if($FRFinal!=0){\n $FRFinal_S=$this->set_standarDate($FRFinal);\n }else{\n $FRFinal_S='';\n }\n $color=$this->get_color($inicio,$final,$FRevision,$FPInicio_S,$FPFinal_S,$FRInicio_S,$FRFinal_S);\n $iniciado=0;\n $finalizado=0;\n\n if($inicio=='true'){\n $iniciado=1;\n } \n if($final=='true'){\n $finalizado=1;\n }\n $sql=\"CALL updateactividadmasiva($id_actividad,$id_especializacion,$id_tema,'$t_tema','$t_area_en','$FRevision_S','$FPInicio_S','$FPFinal_S','$FRInicio_S','$FRFinal_S',$iniciado,$finalizado,'$coment','$color',$idreponsable,$idmasivo)\";\n \n if(!$this->obj_con->Execute($sql)){\n return false;\n }else{\n $this->get_arrayCompetenciasSeleccionadas($competencias,$idmasivo);\n $this->registrar_competencias_masivos($competencias,$idmasivo);\n $this->registrar_actividadxempleado($competencias,1,$idmasivo,$id_actividad,$id_especializacion,$id_tema,$t_tema,$t_area_en,$FRevision_S,$FPInicio_S,$FPFinal_S,$FRInicio_S,$FRFinal_S,$iniciado,$finalizado,$coment,$color,$idreponsable);/*opcion 1*/\n $this->registrar_actividadxempleado($competencias,2,$idmasivo,$id_actividad,$id_especializacion,$id_tema,$t_tema,$t_area_en,$FRevision_S,$FPInicio_S,$FPFinal_S,$FRInicio_S,$FRFinal_S,$iniciado,$finalizado,$coment,$color,$idreponsable);/*opcion 2*/\n $this->registrar_actividadxempleado($competencias,3,$idmasivo,$id_actividad,$id_especializacion,$id_tema,$t_tema,$t_area_en,$FRevision_S,$FPInicio_S,$FPFinal_S,$FRInicio_S,$FRFinal_S,$iniciado,$finalizado,$coment,$color,$idreponsable);/*opcion 3*/\n return true;\n }\n \n \n \n }", "title": "" }, { "docid": "a2cb103e11150c81735d3bd928f9f3e1", "score": "0.5541969", "text": "public function mostrarSolicitudes(){\r\n $cont = 1;\r\n $query = \" select empleados.idempleados as idempleado, empleados.cedula as cedula, empleados.nombres as nombres, empleados.apellidos as apellidos \r\n from empleados \r\n inner join solicitudes on (empleados.idempleados = solicitudes.fk_idempleados)\r\n group by cedula;\";\r\n \r\n $rs = $this->conexion->query($query);\r\n \r\n if(mysqli_num_rows($rs) > 0){\r\n \r\n while($mostrar = mysqli_fetch_array($rs)){\r\n echo '<tr>';\r\n echo '<td><input type=\"hidden\" value=\"'.$mostrar[0].'\"></td>';\r\n echo '<td>'.$cont.'</td>';\r\n echo '<td>'.$mostrar[1].'</td>';\r\n echo '<td>'.$mostrar[2].'</td>';\r\n echo '<td>'.$mostrar[3].'</td>';\r\n \r\n \r\n echo '<td><button type=\"button\" class=\"btn btn-success\" id=\"btnRegistrar\">Actualizar</button>\r\n <button type=\"button\" class=\"btn btn-danger verTipos\" >Ver</button></td>';\r\n echo '</tr>';\r\n $cont++;\r\n }\r\n }else{\r\n echo '<tr><td colspan=\"9\">No hay solicitudes pendientes por realizar</td></tr>';\r\n }\r\n \r\n }", "title": "" }, { "docid": "a19ae38406930355aaef14909c1974ab", "score": "0.55407894", "text": "public function verOrdenesUrgenteCuatro(Request $request){\n\n if($request->isMethod('post')){\n $rules = array(\n 'id' => 'required'\n );\n\n $messages = array(\n 'id.required' => 'El id es requerido.'\n );\n\n $validator = Validator::make($request->all(), $rules, $messages );\n\n if ( $validator->fails() )\n {\n return [\n 'success' => 0,\n 'message' => $validator->errors()->all()\n ];\n }\n\n if($p = Administradores::where('id', $request->id)->first()){\n\n if($p->activo == 0){\n return ['success' => 1]; // revisador no activo\n }\n\n $orden = DB::table('ordenes_urgentes_cuatro AS ou')\n ->join('ordenes AS o', 'o.id', '=', 'ou.ordenes_id')\n ->select('o.id', 'o.users_id', 'o.servicios_id', 'o.precio_total',\n 'o.fecha_orden', 'o.hora_2', 'o.estado_4', 'o.fecha_4',\n 'o.estado_5', 'o.fecha_5', 'ou.activo', 'o.estado_8', 'ou.fecha')\n ->where('ou.activo', 1)\n ->orderBy('o.id', 'DESC')\n ->get();\n\n foreach($orden as $o){\n $o->fecha_orden = date(\"h:i A d-m-Y\", strtotime($o->fecha_orden));\n $o->fecha = date(\"h:i A\", strtotime($o->fecha));\n\n // hora estimada de entrega\n $time1 = Carbon::parse($o->fecha_4);\n $o->horaestimada = $time1->addMinute($o->hora_2)->format('h:i A');\n\n $datos = Servicios::where('id', $o->servicios_id)->first();\n $o->nombre = $datos->nombre;\n $o->telefono = $datos->telefono;\n $o->identificador = $datos->identificador;\n $o->privado = $datos->privado;\n\n // info de la direccion\n $dato = OrdenesDirecciones::where('ordenes_id', $o->id)->first();\n $o->direccion = $dato->direccion;\n\n $zona = Zonas::where('id', $dato->zonas_id)->pluck('nombre')->first();\n $o->zonanombre = $zona;\n\n // buscar si hay motorista asignado ya esta orden\n $dato = DB::table('motorista_ordenes AS mo')\n ->join('motoristas AS m', 'm.id', '=', 'mo.motoristas_id')\n ->select('m.nombre', 'm.telefono', 'mo.ordenes_id')\n ->where('mo.ordenes_id', $o->id)\n ->first();\n\n if($dato != null){\n $o->nombremoto = $dato->nombre;\n $o->telefonomoto = $dato->telefono;\n }else{\n $o->nombremoto = \"\";\n $o->telefonomoto = \"\";\n }\n }\n\n return ['success' => 1, 'orden' => $orden];\n\n }else{\n return ['success' => 2];\n }\n }\n }", "title": "" }, { "docid": "2f954025096c3403fad7499e97ec131b", "score": "0.5539961", "text": "private function CampoEmprestimoInclusao($empresaId){\n\t\t\t\n\t\t// Verifica se existe lista de emprestimos ou sera a primeira inclusão.\n\t\tif($this->ListaEmprestimo){\n\n\t\t\t$out =' <div id=\"novoEmprestimo\">\n\t\t\t\t\t\t<input type=\"hidden\" value=\"inserEmprestimo\" name=\"acaoEmprestimo\" id=\"acaoEmprestimo\">\n\t\t\t\t\t\t<span>Atribua um apelido para este empréstimo:</span>\n\t\t\t\t\t\t<input id=\"apelido\" name=\"apelido\" type=\"text\" value=\"\" style=\"margin-left:5px; width:150px;\" disabled=\"\">\n\t\t\t\t\t\t<a id=\"mostraSelecione\" href=\"\">Voltar</a>\n\t\t\t\t\t\t<span style=\"margin-left: 30px;\">Informe o prazo de carência do empréstimo:</span>\n\t\t\t\t\t\t<select id=\"prazo_carencia\" name=\"prazo_carencia\" style=\"margin-left:5px;width:40px\" disabled=\"\">'.$this->MontaOpcaoCarencia().'</select> Meses\n\t\t\t\t\t</div>';\n\t\t} else {\n\t\t\t\n\t\t\t$out ='\t<div id=\"novoEmprestimo\">\n\t\t\t\t\t\t<input type=\"hidden\" value=\"inserNovoEmprestimo\" name=\"acaoEmprestimo\" id=\"acaoEmprestimo\">\n\t\t\t\t\t\t<span>Atribua um apelido para este empréstimo:</span>\n\t\t\t\t\t\t<input id=\"apelido\" name=\"apelido\" type=\"text\" value=\"\" style=\"margin-left:5px; width:150px;\">\n\t\t\t\t\t\t<span style=\"margin-left: 30px;\">Informe o prazo de carência do empréstimo:</span>\n\t\t\t\t\t\t<select id=\"prazo_carencia\" name=\"prazo_carencia\" style=\"margin-left:5px;width:40px\">'.$this->MontaOpcaoCarencia().'</select> Meses\n\t\t\t\t\t</div>';\n\t\t}\n\t\t\t\t\t\n\t\treturn $out;\n\t}", "title": "" }, { "docid": "022321e4d8631e16bad916d4a7833494", "score": "0.5539222", "text": "function informePedidos($db, $comisionPrensa) {\n\t//echo '<tr><td colspan=\"10\"><table cellpadding=\"1\" cellspacing=\"1\" bordercolor=\"#666666\" style=\"border-collapse:collapse;\" class=\"clsTabla\">';\n\techo '<tbody id=\"dataCustomer\">';\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t$fecha1 = $_POST['Fecha1'];\n\t$fecha2 = $_POST['Fecha2'];\n\t\n\t//GUARDAMOS LOS USUARIOS EN UN ARREGLO\n\t$SQL = \"SELECT Usuario FROM administrador\";\n\t$db->setQuery($SQL);\n\t$result = $db->loadObjectList();\n\tforeach($result as $result1) \n\t\t$administradores[] = trim($result1->Usuario);\n\t\t\t\t\t\n\t$SQL = \"SELECT productos.IdOferta, opcionesoferta.Id, SUM(lineasorden.Cantidad) as Unidades, productos.Nombre_Producto \";\n\t$SQL .= \"FROM ordenes \";\n\t$SQL .= \"INNER JOIN lineasorden ON ordenes.IdOrden = lineasorden.IdOrden \";\n\t$SQL .= \"INNER JOIN opcionesoferta ON lineasorden.Talla = opcionesoferta.Id \";\n\t$SQL .= \"INNER JOIN productos ON lineasorden.IdProducto = productos.IdOferta \";\n\t$SQL .= \"WHERE TRIM(ordenes.EstadoPago) = '\".trim('ok').\"' AND TRIM(lineasorden.EstadoPedido) <> '\".trim('Anulado').\"' AND ordenes.FechaOrden >= '$fecha1' AND ordenes.FechaOrden <= '$fecha2' \";\n\t$SQL .= \"GROUP BY opcionesoferta.Id ORDER BY productos.IdOferta ASC\";\n\t$db->setQuery($SQL);\n\t$result = $db->loadObjectList();\n\tforeach($result as $result1) {\n\t\t$arreglo[] = array('IdOferta'=>$result1->IdOferta, 'Tipo'=>$result1->Id);\n\t}\n\t$totalOfertas = count($arreglo);\n\t//print_r($arreglo);\n\t\t\t\t\t\t\t\t\t\n\tfor($i = 0; $i <= $totalOfertas - 1; $i++ ) {\t\t\t\t\t\t\t\n\t\t$SQL = \"SELECT productos.IdOferta, productos.Nombre_Producto, opcionesoferta.Id, opcionesoferta.Opcion, opcionesoferta.Precio, opcionesoferta.PrecioSesion, \";\n\t\t$SQL .= \"opcionesoferta.Iva, SUM(lineasorden.Cantidad) AS Unidades,SUM(lineasorden.Subtotal) as SubTotal, SUM(lineasorden.GastosEnvio) AS GastosEnvio, ordenes.Tramitado \";\n\t\t$SQL .= \"FROM ordenes \";\n\t\t$SQL .= \"INNER JOIN lineasorden ON ordenes.IdOrden = lineasorden.IdOrden \";\n\t\t$SQL .= \"INNER JOIN opcionesoferta ON lineasorden.Talla = opcionesoferta.Id \";\n\t\t$SQL .= \"INNER JOIN productos ON lineasorden.IdProducto = productos.IdOferta \";\n\t\t$SQL .= \"WHERE TRIM(ordenes.EstadoPago) = '\".trim('ok').\"' AND TRIM(lineasorden.EstadoPedido) <> '\".trim('Anulado').\"' AND ordenes.FechaOrden >= '$fecha1' AND ordenes.FechaOrden <= '$fecha2' \";\n\t\t$SQL .= \"AND productos.IdOferta = \".$arreglo[$i]['IdOferta'].\" AND opcionesoferta.Id = \".$arreglo[$i]['Tipo'].\" \";\n\t\t$SQL .= \"GROUP BY opcionesoferta.Id, ordenes.Tramitado ORDER BY productos.IdOferta ASC\";\n\t\t$db->setQuery($SQL);\n\t\t$row = $db->execute();\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t$ordenWeb = 0;\n\t\t$ordenCall = 0;\n\t\t$ordenOfi = 0;\n\t\tif (mysqli_num_rows($row) > 0) {\n\t\t\t$result = $db->loadObjectList();\n\t\t\tforeach($result as $result1) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t$ordenTramitada = rtrim($result1->Tramitado);\n\t\t\t\t$totalSubtotal = $totalSubtotal;\n\t\t\t\t\n\t\t\t\t//if ($ordenTramitada == rtrim('call-center')) {\n\t\t\t\tif(in_array($ordenTramitada, $administradores)) {\n\t\t\t\t\tif($ordenTramitada == trim('usuario-web'))\n\t\t\t\t\t\t$ordenWeb = $ordenWeb + $result1->Unidades;\t\n\t\t\t\t\telse if ($ordenTramitada == 'call-center')\n\t\t\t\t\t\t$ordenCall = $ordenCall + $result1->Unidades;\n\t\t\t\t\telse\n\t\t\t\t\t\t$ordenOfi = $ordenOfi + $result1->Unidades;\n\t\t\t\t} else {\n\t\t\t\t\t$errores = $errores + 1;\n\t\t\t\t}\n\t\t\t\t$subtotal = $subtotal + $result1->SubTotal;\n\t\t\t\t$comision = $comision + (($result1->SubTotal) * ($comisionPrensa));\n\t\t\t}\n\t\t\t$totalOrdersCall = $totalOrdersCall + $ordenCall;\n\t\t\t$totalOrdersWeb = $totalOrdersWeb + $ordenWeb;\t\n\t\t\t$totalOrdersOfi = $totalOrdersOfi + $ordenOfi;\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t$facturacion = ($ordenCall + $ordenWeb + $ordenOfi)*$result1->Precio;\n\t\t\techo '\n\t\t\t\t<tr height=\"20px\">\n\t\t\t\t\t<td width=\"50px\"><label>'.$result1->IdOferta.'</label></td>\n\t\t\t\t\t<td width=\"300px\"><label>'.utf8_encode($result1->Nombre_Producto).'</label></td>\n\t\t\t\t\t<td width=\"150px\"><label>'.utf8_encode($result1->Opcion).'</label></td>\n\t\t\t\t\t<td width=\"100px\"><label>'.$ordenOfi.'</label></td>\n\t\t\t\t\t<td width=\"100px\"><label>'.$ordenCall.'</label></td>\n\t\t\t\t\t<td width=\"100px\"><label>'.$ordenWeb.'</label></td>\n\t\t\t\t\t<td width=\"100px\"><label>'.($ordenCall + $ordenWeb + $ordenOfi).'</label></td>\n\t\t\t\t\t<td width=\"75px\"><label>'.number_format($result1->Precio,2,',','.').'</label></td>\n\t\t\t\t\t<td width=\"75px\" bgcolor=\"#71BA00\"><label style=\"color: white; font-family: tahoma\">'.number_format($result1->PrecioSesion,2,',','.').'</label></td>\n\t\t\t\t\t<td width=\"100px\"><label>'.number_format($facturacion,2,',', '').'</label></td>\n\t\t\t\t\t<td width=\"75px\"><label>'.number_format((($facturacion)*($comisionPrensa)),2,',','').'</label></td>\n\t\t\t\t</tr>\n\t\t\t';\t\t\t\n\t\t} \n\t}\n\t\n\t$graphInforme[] = array('fact_total'=>$subtotal, 'aport_bruta'=>$aportBruta, 'comision_patner'=>$comision, 'aport_neta'=>$aportNeta);\n\t\n\techo '\n\t\t</tbody>\n\t\t<tfoot style=\"color: white; font-size: 14px; font-variant:small-caps; background: #1F88A7\">\n \t<tr height=\"30px\" style=\"color: white; font-size: 14px; font-variant:small-caps;\">\n\t\t\t\t<td bgcolor=\"#1F88A7\"></td>\n \t<td bgcolor=\"#1F88A7\" align=\"center\"><span>TOTALES</span></td>\n\t\t\t\t<td bgcolor=\"#1F88A7\"></td>\n\t\t\t\t<td bgcolor=\"#1F88A7\"><span>'.$totalOrdersOfi.'</span></td>\n <td bgcolor=\"#1F88A7\"><span>'.$totalOrdersCall.'</span></td>\n <td bgcolor=\"#1F88A7\"><span>'.$totalOrdersWeb.'</span></td>\n <td bgcolor=\"#1F88A7\"><span>'.($totalOrdersWeb + $totalOrdersCall + $totalOrdersOfi).'</span></td>\n <td bgcolor=\"#1F88A7\"></td><td bgcolor=\"#1F88A7\"></td>\n \t <td bgcolor=\"#1F88A7\"><span>'.number_format($subtotal,2,',','.').'</span></td>\n <td bgcolor=\"#1F88A7\"><span>'.number_format($comision,2,',','.').'</span></td>\n \t</tr>\n\t </tfoot>\t\n\t';\n\techo '</table></td></tr>';\n\tprint_r($err);\n\t\n\treturn $graphInforme;\n}", "title": "" }, { "docid": "95f76cc076db1a8a76aa2048bd5194f9", "score": "0.5538981", "text": "function ampliarDiasRendicion(){\n\t\t$this->procedimiento='tes.ft_solicitud_efectivo_ime';\n\t\t$this->transaccion='TES_AMPREN_IME';\n\t\t$this->tipo_procedimiento='IME';//tipo de transaccion\n\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_solicitud_efectivo','id_solicitud_efectivo','int4');\n\t\t$this->setParametro('dias_ampliado','dias_ampliado','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "a631e3dd3a01e86eb8fcb04af7636ed8", "score": "0.55377287", "text": "function anteriorEstadoSolicitudEfectivo(){\n $this->procedimiento='tes.ft_solicitud_efectivo_ime';\n $this->transaccion='TES_ANTESOLEFE_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 $this->setParametro('id_estado_wf','id_estado_wf','int4');\n $this->setParametro('id_funcionario_usu','id_funcionario_usu','int4');\n $this->setParametro('id_tipo_estado','id_tipo_estado','int4');\n $this->setParametro('id_funcionario_wf','id_funcionario_wf','int4');\n $this->setParametro('id_depto_wf','id_depto_wf','int4');\n $this->setParametro('obs','obs','text');\n $this->setParametro('json_procesos','json_procesos','text');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "title": "" }, { "docid": "2bd2fe9903ee9d8f4fa16fd663be38a4", "score": "0.5533101", "text": "public function marcarParaRegistro($id_calificacion){\n\t\t\t\t$data['estado_profesor'] = $this->input->post('estado_profesor');\n\n\t \t\t\t\t$estatus = $this->input->post('estado_profesor');\n\t\t\tif($estatus != 0){ // Depende del estatus k se mande se hace a accion\n\t\t\t\t\t\t\tif ($this->Modelo_Profesores->updateHabProfesor($id_calificacion, $data)) {\n\t// 1.- Cuando se habilita solo es estatus en la tabla de alumnos => estatus =1\n\t\t\t\t\t\t\t\t$data = array('responce' => 'success', 'message' => 'Profesor habilitado correctamente...!');\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$data = array('responce' => 'error', 'message' => 'Fallo habilitar Profesor...!');\n\t\t\t\t\t\t\t}\n\t\t\t} else {\n\t// 2.- Cuando se DES-habilita cambia el estatus en la tabla de alumnos => estatus =0 y delete los datos del revibo para k cuando se vuelva habilitar metan nuevos datoos\n\t\t\t\t\t\t\tif ($this->Modelo_Profesores->updateHabProfesor($id_calificacion, $data)) {\n\t\t\t\t\t\t\t\t$data = array('responce' => 'success', 'message' => 'Profesor fue Deshabilitado...!');\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$data = array('responce' => 'error', 'message' => 'Fallo al deshabilitar el Profesor...!');\n\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\techo json_encode($data);\n\t}", "title": "" }, { "docid": "9c7d1e9d2cda8524435e1bfb55815816", "score": "0.5531536", "text": "function corregir_si_semestre_pasado_tiene_baja_definitiva_en_el_actua_si_reprueba_tambien_es_baja_definitiva_tonala(){\n\t\t\t$Xalumnocursos\t= new Xtalumnocursos();\n\t\t\t$Xalumnocursos2\t= new Xtalumnocursos();\n\t\t\t$Xalumnocursos3\t= new Xtalumnocursos();\n\t\t\tforeach( $Xalumnocursos -> find_all_by_sql(\"\n\t\t\t\t\tselect xcc.materia, xcc.clavecurso, xal.registro,\n\t\t\t\t\txal.situacion, xal.calificacion, xal.faltas, xal.id\n\t\t\t\t\tfrom xtalumnocursos xal\n\t\t\t\t\tinner join xtcursos xcc\n\t\t\t\t\ton xal.curso = xcc.clavecurso\n\t\t\t\t\tand xal.periodo = 32011\n\t\t\t\t\tand (xal.calificacion < 70\n\t\t\t\t\tor xal.calificacion = 999)\") as $xal ){\n\t\t\t\tforeach( $Xalumnocursos2 -> find_all_by_sql(\"\n\t\t\t\t\t\tselect xcc.materia, xal.*\n\t\t\t\t\t\tfrom xtalumnocursos xal\n\t\t\t\t\t\tinner join xtcursos xcc\n\t\t\t\t\t\ton xal.curso = xcc.clavecurso\n\t\t\t\t\t\tand xal.registro = '\".$xal -> registro.\"'\n\t\t\t\t\t\tand xcc.materia = '\".$xal -> materia.\"'\n\t\t\t\t\t\tand xal.situacion = 'BAJA DEFINITIVA'\n\t\t\t\t\t\tand xal.periodo = 12011\") as $xal2 ) {\n\t\t\t\t\t$xal3 = $Xalumnocursos3 -> find_first(\"id = \".$xal -> id);\n\t\t\t\t\t$xal3 -> situacion = \"BAJA DEFINITIVA\";\n\t\t\t\t\t$xal3 -> save();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "5b47b936758701762cc197fe29973d87", "score": "0.5528154", "text": "public function guiasMantenimiento()\n {\n $this->validarSesion();\n $id = 1;\n $mantenimiento = $this->guiasModelo->listarGuias($id);\n $datos = [\n 'contenido' => $mantenimiento[0]->contenido\n ];\n $this->vista(\"mantenimiento/mantenimiento\", $datos);\n }", "title": "" }, { "docid": "7b0809c8e8f97f5601444a8387fe5d11", "score": "0.5527717", "text": "public function cadastrarAlterar($objetoVo) {\r\n //var_dump($objetoVo);\r\n // verifica se tiver o id dentro do objeto para salvar ou alterar\r\n eval('$id = $objetoVo->get' . ucfirst($this->entidade) . 'Id();');\r\n //echo \"<br />\";\r\n //var_dump($this->entidade);\r\n //echo \"<br />\";\r\n //echo var_dump($id);\r\n //echo \"<br />\";\r\n //var_dump($objetoVo->get . $this->entidade . 'Id()');\r\n //exit();\r\n\r\n if (empty($id)) {\r\n // nao tem o id dentro do objeto, insert\r\n $sql = 'INSERT INTO ' . $this->entidade . ' ( ';\r\n // verifica as chaves estrangeiras\r\n for ($j = 0; $j < count($this->chaveEstrangeira); $j++) {\r\n $_dadosEstrangeiro = explode(' ', $this->chaveEstrangeira[$j]);\r\n $sql .= $_dadosEstrangeiro[0];\r\n if ($j + 1 <= count($this->chaveEstrangeira)) {\r\n $sql .= ', ';\r\n }\r\n }\r\n for ($j = 0; $j < count($this->dadosBase); $j++) {\r\n $_dadosBase = explode(' ', $this->dadosBase[$j]);\r\n $sql .= $this->entidade . ucfirst($_dadosBase[0]);\r\n if ($j + 1 <> count($this->dadosBase)) {\r\n $sql .= ', ';\r\n }\r\n }\r\n // se na Dao tiver setado momentoCadastro = true, cadastra o momento na tabela\r\n if ($this->momentoCadastro) {\r\n $sql .= ', ' . $this->entidade . 'DataCadastro';\r\n }\r\n if ($this->status) {\r\n $sql .= ', ' . $this->entidade . 'Status';\r\n }\r\n $sql .= ' ) VALUES ( ';\r\n //chave estrangeira\r\n for ($j = 0; $j < count($this->chaveEstrangeira); $j++) {\r\n $_dadosEstrangeiro = explode(' ', $this->chaveEstrangeira[$j]);\r\n //var_dump($_dadosEstrangeiro);\r\n eval('$valor = $objetoVo -> get' . ucfirst($_dadosEstrangeiro[0]) . '();');\r\n //var_dump($this->chaveEstrangeira);\r\n if (empty($valor)) {\r\n $sql .= 'null';\r\n } else {\r\n $sql .= $valor;\r\n }\r\n if ($j + 1 <= count($this->chaveEstrangeira)) {\r\n $sql .= ', ';\r\n }\r\n }\r\n //var_dump($_dadosBase);\r\n for ($j = 0; $j < count($this->dadosBase); $j++) {\r\n $_dadosBase = explode(' ', $this->dadosBase[$j]);\r\n eval('$valor = $objetoVo -> get' . ucfirst($this->entidade) . ucfirst($_dadosBase[0]) . '();');\r\n if (is_string($valor)) {\r\n $sql .= \"'\";\r\n }\r\n if (empty($valor)) {\r\n $sql .= 'null';\r\n } else {\r\n if ($_dadosBase[1] == 'DATE') {\r\n $sql .= formatarData($valor);\r\n } else if($_dadosBase[1] == 'DECIMAL'){\r\n \t\t$sql .= formatarValor($valor);\r\n \t} else {\r\n $sql .= $valor;\r\n }\r\n }\r\n if (is_string($valor)) {\r\n $sql .= \"'\";\r\n }\r\n if ($j + 1 <> count($this->dadosBase)) {\r\n $sql .= ', ';\r\n }\r\n }\r\n // se na Dao tiver setado momentoCadastro = true, cadastra o momento na tabela\r\n if ($this->momentoCadastro) {\r\n $sql .= \", '\" . date('Y-m-d H:m:s') . \"'\";\r\n }\r\n if ($this->status) {\r\n $sql .= ', ';\r\n eval('$sql .= $objetoVo -> get' . ucfirst($this->entidade) . 'Status();');\r\n }\r\n $sql .= ' ) ;';\r\n $query = mysql_query($sql);\r\n $_id = mysql_insert_id();\r\n //echo $sql;\r\n //exit();\r\n } else {\r\n\r\n // tem o id dentro do objeto, update\r\n $sql = 'UPDATE ' . $this->entidade . ' SET ';\r\n \t\tfor ($j = 0; $j < count($this->dadosBase); $j++) {\r\n $_dadosBase = explode(' ', $this->dadosBase[$j]);\r\n if($_dadosBase[0] <> 'login' &&\r\n \t\t$_dadosBase[0] <> 'senha' &&\r\n \t\t$_dadosBase[0] <> 'lembrete') {\r\n\t $sql .= $this->entidade . ucfirst($_dadosBase[0]);\r\n\t $sql .= ' = ';\r\n\t eval('$valor = $objetoVo -> get' . ucfirst($this->entidade) . ucfirst($_dadosBase[0]) . '();');\r\n if (is_string($valor)) {\r\n\t $sql .= \"'\";\r\n\t }\r\n\t if ($_dadosBase[1] == 'DATE') {\r\n\t $sql .= formatarData($valor);\r\n\t } else if($_dadosBase[1] == 'DECIMAL'){\r\n \t\t$sql .= formatarValor($valor);\r\n \t} else {\r\n\t $sql .= $valor;\r\n\t }\r\n\t if (is_string($valor)) {\r\n\t $sql .= \"'\";\r\n\t }\r\n\t if($this->entidade == 'usuario'){\r\n\t \tif (($j + 4) < count($this->dadosBase)) {\r\n\t \t$sql .= ', ';\r\n\t \t}\r\n\t } else {\r\n\t \tif (($j + 1) <> count($this->dadosBase)) {\r\n\t \t$sql .= ', ';\r\n\t \t}\r\n\t }\r\n } \r\n }\r\n \r\n \t$sql .= ' WHERE '.$this->entidade .'Id = '. $id;\r\n //$_sql .= ' - '.$sql;\r\n //echo $_sql;\r\n //exit();\r\n $query = mysql_query($sql);\r\n $_id = $id;\r\n }\r\n //var_dump($objetoVo);\r\n\r\n if (!$query) {\r\n return false;\r\n } else {\r\n return $_id;\r\n }\r\n }", "title": "" }, { "docid": "3f6ba1689fa60c8db07c2c6abd109326", "score": "0.552437", "text": "public function updateM($empleos, $candidato_id)\n {\n //El valor se tiene que pasar por referencia\n foreach($empleos as &$e){\n $e['Candidato_id'] = $candidato_id;\n unset($e['id']);\n unset($e['id_reg']);\n }\n \n $this->db->insert_batch('CandidatoEmpleo', $empleos); \n }", "title": "" }, { "docid": "1a3bf082f0b5870e515d58c6a5e6bc03", "score": "0.5521797", "text": "public function guardarEmpresa($diaReg,$mes){\n $contenido_archivo= file_get_contents(\"../data/empresas.json\");\n $empresas=json_decode($contenido_archivo,true);\n $empresas[]= array(\n \"nombre_empresa\"=>$this->nombre_empresa,\n \"correoElectronico\"=>$this->correoElectronico,\n \"eslogan\"=> $this->eslogan,\n \"descripcion\"=> $this->descripcion,\n \"direccion\"=> $this->direccion,\n \"pais\"=> $this->pais,\n \"latitud\"=> $this->latitud,\n \"longitud\"=>$this->longitud,\n \"facebook\"=> $this->facebook,\n \"instagram\"=>$this->instagram,\n \"twitter\"=> $this->twitter,\n \"numeroTelefono\"=> $this->numeroTelefono,\n \"administradores\"=>[],\n \"estado\"=>array(\n \"diaReg\"=>$diaReg,\n \"entrada\"=>0,\n \"total_ventas\"=>0,\n \"total_ventas_mes\"=>0,\n \"mes\"=>$mes, //actualizar este mes cuando la empresa se registre o cuando haya un cambio de mes\n \"total_seguidoresPasado\"=>0,\n \"total_seguidores\"=>0,\n \"visitas\"=>0,\n \"pago\"=>0,\n \"visitaspasado\"=>0,\n \"estado_promociones\"=>array(\n \"vendidas\"=>0,\n \"carrito\"=>0 ),\n \"ventas_semana\"=>array(\n \"info\"=>array(\n \"num_semana\"=>date(\"W\"),\n \"dia_semana\"=>date(\"w\")-1,\n \"total_semana\"=>0\n ),\n \"domingo\"=>0,\n \"lunes\"=>0,\n \"martes\"=>0,\n \"miercoles\"=>0,\n \"jueves\"=>0,\n \"viernes\"=>0,\n \"sabado\"=>0\n ),\n \"inventario\"=>array(\n \"registrados\"=>0,\n \"promocion\"=>0,\n \"exis_baja\"=>0,\n )\n ),\n \"comentarios\"=>[],\n \"logotipo\"=> \"img/logoPerfil.png\",\n \"Banner\"=>0,\n \"sucursales\"=>[],\n \"productos\"=>[],\n \"promociones\"=> [],\n \"pedidos\"=>[],\n \"plan\"=>0\n );\n $indexEmp=sizeof($empresas)-1;\n $archivo=fopen(\"../data/empresas.json\",\"w\");\n fwrite($archivo,json_encode($empresas)); \n fclose($archivo);\n\n $contenido_archivol=file_get_contents(\"../data/plataforma.json\");\n $plataforma=json_decode($contenido_archivol,true);\n $plataforma[0][\"empresaActual\"]=$indexEmp;\n $archivo=fopen(\"../data/plataforma.json\",\"w\");\n fwrite($archivo,json_encode($plataforma)); \n fclose($archivo);\n mkdir(\"../archivos-subidos/empresas/empresa\".$indexEmp, 0700);\n \n\n \n }", "title": "" }, { "docid": "b91031834e2d93366a2f04dc782d74c9", "score": "0.5515302", "text": "public function GuardarOrden($Mesa,$Id_Mesero,$Id_Sucursal){\r\n\t\t\r\n\t\t$id_pedido= 0;\r\n\r\n\t\tif($_POST['id_pedido'] == '0' ){\r\n\t\t\t$id_pedido = $this->sucursales_model->InsertPedido($Mesa,$Id_Mesero,$Id_Sucursal);\r\n\t\t}\r\n\t\telse{\r\n\t\t\t$id_pedido = $_POST['id_pedido'];\r\n\t\t}\r\n\t\t\r\n\t\t$data = $_POST['info'];\r\n\r\n\t\t\r\n\t\t/* Si el $id_pedido de Encabezado del pedido existe realiza\r\n\t\t los siguientes guardados de informacion*/\r\n\r\n\t\tif(isset($id_pedido)){\r\n\r\n\t\t\tforeach ($data as $pedido)\r\n\t\t\t{\t\t\r\n\t\t\t\tif(isset($pedido['llevar']['abc'])){\t\t\t\t\t\r\n\t\t\t\t\t$llevar = $pedido['llevar']['abc'];\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$llevar=0;\r\n\t\t\t\t}\r\n\t\t\t\tif(isset($pedido['ingredientes'])){\t\t\t\t\t\r\n\t\t\t\t\t$ingredientes = $pedido['ingredientes'];\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$ingredientes=0;\r\n\t\t\t\t}\r\n\t\t\t\tif(isset($pedido['adicionales'])){\t\t\t\t\t\r\n\t\t\t\t\t$adicionales = $pedido['adicionales'];\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$adicionales=0;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif($_POST['id_pedido'] != 0){\r\n\r\n\t\t\t\t\t$this->GuardarOrdenDetalle($Mesa,$Id_Mesero,$pedido['ID'],$pedido['precio'],$Id_Sucursal,$_POST['id_pedido'],$llevar,$ingredientes,$adicionales);\r\n\r\n\t\t\t\t}else{\r\n\r\n\t\t\t\t\t$this->GuardarOrdenDetalle($Mesa,$Id_Mesero,$pedido['ID'],$pedido['precio'],$Id_Sucursal,$id_pedido,$llevar,$ingredientes,$adicionales);\r\n\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6658612418543ae8f8bbbfd3b6abf1c0", "score": "0.5513143", "text": "private function validarTransaccionSalidaReceta($datos, $movimiento_salida_receta,$almacen_id)\n {\n\t\t$success = false;\n\n //comprobar que el servidor id no me lo envian por parametro, si no poner el servidor por default de la configuracion local, si no seleccionar el servidor del parametro\n $servidor_id = property_exists($datos, \"servidor_id\") ? $datos->servidor_id : env('SERVIDOR_ID');\n\n //agregar al modelo los datos\n $movimiento_salida_receta->almacen_id = $almacen_id;\n $movimiento_salida_receta->tipo_movimiento_id = $datos->tipo_movimiento_id;\n $movimiento_salida_receta->status = $datos->status; \n $movimiento_salida_receta->fecha_movimiento = property_exists($datos, \"fecha_movimiento\") ? $datos->fecha_movimiento : '';\n $movimiento_salida_receta->observaciones = property_exists($datos, \"observaciones\") ? $datos->observaciones : '';\n $movimiento_salida_receta->cancelado = property_exists($datos, \"cancelado\") ? $datos->cancelado : '';\n $movimiento_salida_receta->observaciones_cancelacion = property_exists($datos, \"observaciones_cancelacion\") ? $datos->observaciones_cancelacion : '';\n\n $lotes_master = array();\n\n // si se guarda el movimiento tratar de guardar el detalle de insumos\n if( $movimiento_salida_receta->save() )\n {\n $success = true;\n $receta = new Receta;\n\n if(property_exists($datos,\"receta\"))\n {\n\n //Aqui se hace todo\n if(is_numeric($datos->receta['personal_clues_id']))\n {\n\n $receta->personal_clues_id = $datos->receta['personal_clues_id'];\n }else\n {\n $almacen = Almacen::find($almacen_id);\n $agregar_personal = new PersonalClues;\n $agregar_personal->clues = $datos->clues; //Harima:agregamos la clues al personal\n $agregar_personal->tipo_personal_id = 1;\n $agregar_personal->nombre = $datos->receta['doctor'];\n $agregar_personal->surte_controlados = 0;\n $agregar_personal->licencia_controlados = \"\";\n $agregar_personal->save();\n $receta->personal_clues_id = $agregar_personal->id;\n }\n //$receta->personal_clues_id = $datos->receta['personal_clues_id'];\n //Se agrega el personal en caso no exista \n\n $receta->movimiento_id = $movimiento_salida_receta->id;\n $receta->folio = $datos->receta['folio'];\n $receta->tipo_receta_id = $datos->receta['tipo_receta_id'];\n $receta->fecha_receta = $datos->receta['fecha_receta'];\n \n \n $receta->paciente = $datos->receta['paciente'];\n\n if((bool)$datos->receta['tiene_seguro_popular'] == true)\n {\n $receta->poliza_seguro_popular = $datos->receta['poliza_seguro_popular'];\n }\n \n $receta->diagnostico = $datos->receta['diagnostico'];\n\n $receta->save();\n\n //$receta_movimiento = new RecetaMovimiento;\n //$receta_movimiento->receta_id = $receta->id;\n //$receta_movimiento->movimiento_id = $movimiento_salida_receta->id;\n\n //$receta_movimiento->save();\n\n }\n\n if(property_exists($datos,\"movimiento_metadato\"))\n {\n $metadatos = new MovimientoMetadato;\n $metadatos->movimiento_id = $movimiento_salida_receta->id;\n //$metadatos->servicio_id = $datos->movimiento_metadato['servicio_id'];\n //$metadatos->persona_recibe = $datos->movimiento_metadato['persona_recibe'];\n $metadatos->turno_id = $datos->movimiento_metadato['turno_id'];\n\n $metadatos->save();\n \n }\n\n if(property_exists($datos, \"insumos\"))\n {\n $insumos = array_filter($datos->insumos, function($v){return $v !== NULL;});\n\n $lotes_nuevos = array();\n $lotes_ajustar = array();\n /// PRIMER PASADA PARA IDENTIFICAR LOS LOTES NUEVOS A AJUSTAR / GENERAR ENTRADA \n foreach ($insumos as $key => $insumo)\n {\n if($insumo != NULL)\n {\n if(is_array($insumo))\n $insumo = (object) $insumo;\n\n $clave_insumo_medico = $insumo->clave;\n $precio_unitario = 0;\n $iva = 0;\n\n $contrato_precio = ContratoPrecio::where('insumo_medico_clave',$clave_insumo_medico)->first();\n if($contrato_precio){\n $precio_unitario = $contrato_precio->precio;\n if($contrato_precio->tipo_insumo_id == 3){\n $iva = $precio_unitario - ($precio_unitario/1.16 );\n }\n }\n\n //****************************************************************************************************\n /// AQUI INSERTAR DETALLES DE RECETA \n $receta_detalle = new RecetaDetalle;\n\n $receta_detalle->receta_id = $receta->id;\n $receta_detalle->clave_insumo_medico = $insumo->clave;\n $receta_detalle->cantidad = $insumo->cantidad_recetada;\n $receta_detalle->dosis = $insumo->dosis;\n $receta_detalle->frecuencia = $insumo->frecuencia;\n $receta_detalle->duracion = $insumo->duracion;\n\n $receta_detalle->save();\n //****************************************************************************************************\n\n if($insumo->cantidad_recetada > $insumo->cantidad_surtida)\n {\n $cantidad_negada = $insumo->cantidad_recetada - $insumo->cantidad_surtida;\n $this->guardarEstadisticaNegacion($clave_insumo_medico,$almacen_id,$cantidad_negada);\n //DB::rollback();\n //return Response::json([\"status\" => 500, 'error' => \"shets\", \"data\"=>$insumo], 500);\n }\n\n //****************************************************************************************************\n foreach($insumo->lotes as $index => $lote)\n {\n if(is_array($lote))\n $lote = (object) $lote;\n\n if(property_exists($lote, \"nuevo\"))\n {\n $lote_temp = Stock::where('lote',$lote->lote)\n ->where('fecha_caducidad',$lote->fecha_caducidad)\n ->where('codigo_barras',$lote->codigo_barras)\n ->where('clave_insumo_medico',$insumo->clave)\n ->orderBy('created_at','DESC')->first();\n\n if($lote_temp){ /// si ya existe un lote vacio con esos detalles : se agrega un\n $lote_temp->existencia = $lote->existencia;\n $lote_temp->save();\n // adicion del campo cantidad al objeto lote/stock\n $lote_temp->cantidad = property_exists($lote_temp, \"cantidad\") ? $lote_temp->cantidad : $lote->cantidad;\n\n array_push($lotes_nuevos,$lote_temp);\n array_push($lotes_master,$lote_temp);\n }else{\n $lote_insertar = new Stock;\n\n $lote_insertar->almacen_id = $movimiento_salida_receta->almacen_id;\n $lote_insertar->clave_insumo_medico = $insumo->clave;\n $lote_insertar->marca_id = NULL;\n $lote_insertar->lote = $lote->lote;\n $lote_insertar->fecha_caducidad = $lote->fecha_caducidad;\n $lote_insertar->codigo_barras = $lote->codigo_barras;\n $lote_insertar->existencia = $lote->existencia;\n $lote_insertar->existencia_unidosis = ( $insumo->cantidad_x_envase * $lote->cantidad );\n\n $lote_insertar->save();\n // adicion del campo cantidad al objeto lote/stock\n $lote_insertar->cantidad = property_exists($lote_insertar, \"cantidad\") ? $lote_insertar->cantidad : $lote->cantidad;\n\n array_push($lotes_nuevos,$lote_insertar);\n array_push($lotes_master,$lote_insertar);\n }\n\n }else{\n // aqui ya trae el campo cantidad el objeto lote/stock\n array_push($lotes_master,$lote);\n }\n /// ***************************************************************************************************************************************************\n } /// FIN PRIMER FOREACH QUE RECORRE TODOS LOS INSUMOS PARA SALIR\n \n }///FIN IF INSUMO != NULL\n\n }//// FIN FOREACH I N S U M O S -> PRIMERA PASADA\n ///********************************************************************************************************************************************\n /// insertar el movimiento entrada de ajuste y ligar los detalles con su stock ya agregado en pasada anterior\n if(count($lotes_nuevos) > 0)\n {\n /// insertar movimiento de entrada por ajuste ( tipo_movimiento_id = 6 )\n $movimiento_ajuste = new Movimiento;\n $movimiento_ajuste->almacen_id = $almacen_id;\n $movimiento_ajuste->tipo_movimiento_id = 6;\n $movimiento_ajuste->status = \"FI\"; \n $movimiento_ajuste->fecha_movimiento = date(\"Y-m-d\");\n $movimiento_ajuste->observaciones = \"SE REALIZA ENTRADA POR AJUSTE\";\n $movimiento_ajuste->cancelado = property_exists($datos, \"cancelado\") ? $datos->cancelado : '';\n $movimiento_ajuste->observaciones_cancelacion = property_exists($datos, \"observaciones_cancelacion\") ? $datos->observaciones_cancelacion : '';\n \n $movimiento_ajuste->save();\n\n foreach($lotes_nuevos as $lote_link)\n {\n $item_detalles = new MovimientoInsumos;\n\n ///var_dump(json_encode($lote_link));\n\n $item_detalles->movimiento_id = $movimiento_ajuste->id; \n $item_detalles->stock_id = $lote_link->id; \n $item_detalles->clave_insumo_medico = $lote_link->clave_insumo_medico;\n $item_detalles->cantidad = $lote_link->cantidad;\n $item_detalles->precio_unitario = $precio_unitario;\n $item_detalles->iva = $iva; \n $item_detalles->precio_total = ( $precio_unitario + $iva ) * $lote_link->cantidad; \n\n $item_detalles->save();\n }\n } /// FIN IF EXISTEN LOTES NUEVOS \n\n////*************************************************************************************************************************\n /// FOREACH SEGUNDA PASADA A INSUMOS PARA ACTUALIZAR STOCK DE SALIDA\n foreach($lotes_master as $index => $lote)\n {\n //var_dump($lote); die();\n $precio_insumo = $this->conseguirPrecio($lote->clave_insumo_medico); \n $insumo_info = Insumo::datosUnidosis()->where('clave',$lote->clave_insumo_medico)->first();\n $cantidad_x_envase_insumo = $insumo_info->cantidad_x_envase; \n\n $lote_stock = Stock::find($lote->id);\n $lote_stock->existencia = ($lote_stock->existencia - $lote->cantidad );\n $lote_stock->existencia_unidosis = ( $lote_stock->existencia_unidosis - ($lote->cantidad * $cantidad_x_envase_insumo) );\n $lote_stock->save();\n\n $item_detalles = new MovimientoInsumos;\n\n $item_detalles->movimiento_id = $movimiento_salida_receta->id; \n $item_detalles->stock_id = $lote_stock->id; \n $item_detalles->clave_insumo_medico = $lote->clave_insumo_medico;\n $item_detalles->cantidad = $lote->cantidad;\n $item_detalles->precio_unitario = $precio_insumo['precio_unitario'];\n $item_detalles->iva = $precio_insumo['iva']; \n $item_detalles->precio_total = ($precio_insumo['precio_unitario']+$precio_insumo['iva']) * $lote->cantidad;\n\n $item_detalles->save();\n\n \n \n }/// FIN FOREACH SEGUNDA PASADA A INSUMOS\n\n\n\n } /// FIN IF EXISTE INSUMOS \n }\n \n return $success;\n }", "title": "" }, { "docid": "2cae36f836adb1a3de520b8cce9a1683", "score": "0.55126476", "text": "public function getListadoOperacionesByProductorIdAndMonth($productor_id,$mes,$anio){\n\t\t//Buscar el estado Vigente\n\t\t//$estado = Domain_EstadoPoliza::getIdByCodigo('VIGENTE');\n\t\t//$estado_caucion = Domain_EstadoPoliza::getIdByCodigo('AFECTADA');\n\t\t//$estado_refacturado = Domain_EstadoPoliza::getIdByCodigo('REFACTURADO');\n\t\t//Que muester todas las polizas, despues veo el filtro\n\t\t$imes = intval($mes);\n\t\t$ianio = intval($anio);\n\t\t\n\t\t$mes_pasado_timestamp = mktime(0, 0, 0, $imes-1, \"01\", $ianio);\n\t\t$mes_pasado = date('Y-m-d',$mes_pasado_timestamp);\n\t\t\n\t\t$mes_actual_timestamp = mktime(0, 0, 0, $imes, \"00\", $ianio);\n\t\t$mes_actual = date('Y-m-d',$mes_actual_timestamp);\n\t\t\n\t\t$mes_que_viene_timestamp = mktime(0, 0, 0, $imes+1, \"00\", $ianio);\n\t\t$mes_que_viene = date('Y-m-d',$mes_que_viene_timestamp);\n\t\t\n\t\t\n\t\t\n\t\t//echo \"<br>mes actual\".$mes_actual;\n\t\t//echo \"<br>mes que viene\".$mes_que_viene;\n\t\t//exit;\n\t\t\n\t\t$this->_model_poliza = new Model_Poliza();\n\t\t$rows = $this->_model_poliza\n\t\t->getTable()\n\t\t->createQuery()\n\t\t//->Where('estado_id = ? OR estado_id = ? OR estado_id = ?',array($estado,$estado_caucion,$estado_refacturado))\n\t\t->Where('estado_id not in (0,1)' )\n\t\t->andWhere(\"productor_id = ? \", $productor_id)\n\t\t//->andWhere(\"fecha_vigencia between ? AND ?\", array($mes_actual,$mes_que_viene))\n\t\t->andWhere(\"fecha_vigencia > ? AND fecha_vigencia <= ?\", array($mes_actual,$mes_que_viene))\n\t\t->orderBy(\"fecha_vigencia\")\n\t\t->execute()\n\t\t->toArray();\n\t\t//->getSqlQuery();\n\t\t\n\t\treturn $rows;\n\t}", "title": "" }, { "docid": "ddecd3dbf2573d371efc3369ee50d108", "score": "0.55076176", "text": "function eliminarBoletosObservados(){\r\n $this->procedimiento='obingresos.ft_boletos_observados_ime';\r\n $this->transaccion='OBING_BOBS_ELI';\r\n $this->tipo_procedimiento='IME';\r\n\r\n //Define los parametros para la funcion\r\n $this->setParametro('id_boletos_observados','id_boletos_observados','int4');\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $this->ejecutarConsulta();\r\n\r\n //Devuelve la respuesta\r\n return $this->respuesta;\r\n }", "title": "" }, { "docid": "4053d69c501fc4ea57d4193d3639c11f", "score": "0.55052906", "text": "public function asignarPuntos(Request $request){\n\n\n\t\t$variableRequestActividad =$request->actividad;\n\t\t$variableRequestidGrupo = $request->grupo;\n\t\t//elias_barrera@hotmail.com\n\n \t$correo = $request->email;\n \t$idActividad =0;\n\n\n \t//comprueba si es por asistencia la actividad\n \tif($variableRequestActividad == -1){\n \t\t$a = DB::select(\"select ID from actividad where\n \t\t\tnombreactividad like '%asistencia%' and \n \t\t\tidgrupo = $variableRequestidGrupo\");\n\n \t\tif(count($a)>0){\n \t\t\t$idActividad = $a[0]->ID;\t\n \t\t}else{\n \t\t\treturn \"no existe actividad de asistencia\";\n \t\t}\n\n \t\t\n\n \t\t\n \t}elseif ($variableRequestActividad == -2) {//comprueba si es por participacion la puntuacion.\n\n \t\t$a = DB::select(\"select ID from actividad where\n \t\t\tnombreactividad like '%participacion%' and \n \t\t\tidgrupo = $variableRequestidGrupo\");\n\n \t\tif(count($a)>0){\n \t\t\t$idActividad = $a[0]->ID;\t\n \t\t}else{\n \t\t\treturn \"no existe actividad de participacion\";\n \t\t}\n \t\t\n \t}else{\n\n \t\t$idActividad = $variableRequestActividad;\n \t}\n\n\n\t\t$tipoActividad = 0;\n\n\t\t$puntosTotales=0;\n\n\t\t$nombreActividad=\"\";\n\n \t$perfil = User::where('email',$correo)->get();\n\n \t$actividad = Actividad::where('id',$idActividad)->get();\n\n \t//comienzan las validaciones\n\n \tif (count($actividad)>0) {//si la actividad existe pasa al siguiente nivel\n\n \t\t//busca el detalle punto para saber cuantos puntos tiene esta actividad\n \t\t$detallePunto = DetallePunto::where('id',$actividad[0]->IDDETALLEPUNTO)->get();\n\n\n \t\tif($detallePunto[0]->ESTAACTIVOPUNTO == 1 && count($perfil)>0){//Comprueba que el punto siga activo\n\t \t\t$detallePuntoActividad = new DetallePuntoActividad();\n\n\t \t\t$detallePuntoActividad->IDPERFIL = $perfil[0]->id;\n\t \t\t$detallePuntoActividad->IDACTIVIDAD = $actividad[0]->id;\n\t \t\t$detallePuntoActividad->PUNTAJEGANADO = $detallePunto[0]->PUNTOSACTIVIDAD;\n\n\t \t\t$detallePuntoActividad->save();\n\t \t\t$entro =0;\n\n\t \t\tfor ($i=0; $i < strlen ($actividad[0]->NOMBREACTIVIDAD) ; $i++) { //obtiene la primera palabra de la actividad\n\t \t\t\tif($actividad[0]->NOMBREACTIVIDAD[$i] != \" \" && $entro== 0){\n\t \t\t\t\t$nombreActividad = $nombreActividad .$actividad[0]->NOMBREACTIVIDAD[$i];\n\n\t \t\n\t \t\t\t}else{\n\t \t\t\t\t$entro = 1;\n\t \t\t\t}\n\t \t\t}//fin del foreach\n\t \t\t\n\n\t \t\t$puntosAcumulados = DetallePuntoActividad::where('IDPERFIL',$perfil[0]->id)->get();\n\n\n\t \t\tforeach ($puntosAcumulados as $puntos) {\n\t \t\t\t$puntosTotales = $puntosTotales + $puntos->PUNTAJEGANADO;\n\t \t\t}\n\n\n\n\t \t\t$idGrupo = $actividad[0]->IDGRUPO;//guardo el grupo en una variable\n\n\t \t\t//obtengo la materia impartida con el grupo que conseguimos anteriormente\n\t \t\t$materiaImpartida = DB::select(\"select * from grupo \n\t \t\t\tjoin materiaimpartida on materiaimpartida.id = grupo.idmateriaimpartida\n\t \t\t\twhere grupo.id = $idGrupo\");\n\n\t \t\t$idMateriaImpartida = $materiaImpartida[0]->id;\n\n\t \t\t//ahora obtenemos los DetallesMedallas de esta materia \n\n\t \t\t$detalleMedallas = DB::select(\"select * from detallemedalla\n\t \t\t\twhere idmateriaimpartida = $idMateriaImpartida\" );\n\n\t \t\t\n\t \t\t$medalla = null;\n\t \t\t$idDetalleMedalla = 0;\n\n\t \t\tforeach ($detalleMedallas as $detalles) {\n\t \t\t\t\n\t \t\t\tif (count($medalla)==0) {\n\n\t \t\t\t\t$medalla = DB::select(\"select * from medalla \n\t \t\t\t\twhere (id = $detalles->IDMEDALLA) and\n\t \t\t\t\t(nombremedalla like '%$nombreActividad%' or \n\t \t\t\t\tdescripcionmedalla like '%$nombreActividad%')\n\t \t\t\t\t\");\n\n\t \t\t\t\t$idDetalleMedalla = $detalles->id;\n\t \t\t\t}\n\t \t\t\t\n\t \t\t\t\n\t \t\t}//fin del foreach de detalleMedallas\n\n\t \t\tif (count($medalla)>0) {//si la medalla es mayor que cero\n\t \t\t\t$detalleMedallaAGanar = DB::select(\"select *from detallemedalla\n\t \t\t\t\twhere id = $idDetalleMedalla\");\n\n\t \t\t\tif($puntosTotales >= $detalleMedallaAGanar[0]->CANTIDADMINIMAPUNTOS){//COMPRUEBA SI YA ES ACREEDOR DE LA MEDALLA\n\n\t \t\t\t\t$idDetalleMedalla = $detalleMedallaAGanar[0]->id;\n\t \t\t\t\t$idPerfil = $perfil[0]->id;\n\n\t \t\t\t\t$medallaGanada = DB::select(\"select *from medallaganada\n\t \t\t\t\t\twhere iddetallemedalla = $idDetalleMedalla and\n\t \t\t\t\t\tidperfil = $idPerfil\");\n\n\n\t \t\t\t\tif (count($medallaGanada)>0) {//comprueba si ya tiene la medalla\n\t \t\t\t\t\treturn \"se ingresaron los puntos correctamente\";\n\t \t\t\t\t}else{//si no la ha ganado se le asigna\n\t \t\t\t\t\t$medalla = new MedallaGanada();\n\n\t \t\t\t\t\t$medalla->IDDETALLEMEDALLA = $idDetalleMedalla;\n\t \t\t\t\t\t$medalla->IDPERFIL = $idPerfil;\n\n\t \t\t\t\t\t$medalla->save();\n\n\t \t\t\t\t\treturn \"Se ha ganado una medalla\";\n\t \t\t\t\t}\n\n\t \t\t\t\treturn \"Se ha ganado una medallla\";\n\n\t \t\t\t}else{\n\t \t\t\t\treturn \"se ingresaron los puntos correctamente\";\n\t \t\t\t}\n\n\t \t\t}\n\n\n\n \t\t\t}//fin de comprobacion de detallePunto\n\n \t}else{//fin de comprobacion de actividad\n\n \t\treturn \"no existe dicha actividad\";\n\n\t\t}//fin de if-else actividad\n \t\n\t\n\t}", "title": "" }, { "docid": "dc97bf6b47c4fa84b4d6d17e3547e6b4", "score": "0.5495704", "text": "function crear_tabla_prueba ($idseccion, $idprueba) {\n\t\t$conexion_bd = conectar_bd();\n\n\t$nombreseccion = recuperar($idseccion, \"seccion\", \"ID\", \"nombre\");\n\t$nombreCat = recuperar($idseccion, \"seccion\", \"ID\", \"categoria\");\n\t$resultado = \" <div class='d-flex flex-row justify-content-center'>\n\t \t\t\t\t\t\t<h3>\".$nombreCat.\"</h3></div>\";\n\t$resultado .= \"<input type='hidden' name='seccionActual' id='seccionActual' value='\".$idseccion.\"'>\n\t\t\t\t\t\t\t\t<table class='table table-borderless'>\n\t\t\t\t\t\t\t\t\t\t<thead>\n\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t<td scope='col'>#</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<th scope='col'>\".$nombreseccion.\"</th>\n\t\t\t\t\t\t\t\t\t\t\t\t<th scope='col' title='No lo logra'><i class='material-icons fails'>close</i></th>\n\t\t\t\t\t\t\t\t\t\t\t\t<th scope='col' title='En proceso'><i class='material-icons tries'>hourglass_empty</i></th>\n\t\t\t\t\t\t\t\t\t\t\t\t<th scope='col' title='Lo logra'><i class='material-icons succeed'>check</i></th>\n\t\t\t\t\t\t\t\t\t\t\t\t<th scope='col'><a style='color: white;' title='Agregar observacion sección' data-toggle='modal' href='#ModalSec\".$idseccion.\"' class='btn btn-outline'> <i class='material-icons'>comment</i></a>\";\n\n\t\t\t\t\t\t\t\t\t\t\t\t$observacion = recuperar_observ_seccion($idprueba, $_SESSION[\"benefactual\"], $idseccion);\n\t\t\t\t\t\t\t\t\t\t\t\tif ($observacion != \"\") {\n\t\t\t\t\t\t\t\t\t\t\t\t\t$resultado .= \"<i class='material-icons'>check</i>\";\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$resultado .= \"</th>\n\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t</thead>\";\n\n\t$consulta = \"SELECT nombre_actividad, id_prueba, id_beneficiaria, v.id_seccion as vsec, v.id_actividad as vact, calificacion from actividad a, valorar_actividad v WHERE a.ID = v.id_actividad and v.id_seccion = \".$idseccion.\" and id_prueba = \".$idprueba;\n\n\t$consulta = \"SELECT nombre_actividad, vac.id_prueba as vacprueba, vac.id_beneficiaria as vacbenef, vac.id_seccion as vsec, vac.id_actividad as vact, calificacion, vac.observacion as actobserv, vsec.observacion as secobserv, s.nombre as nombreSeccion from actividad a, valorar_actividad vac, valorar_seccion vsec, seccion s WHERE s.ID = vsec.id_seccion and a.ID = vac.id_actividad and vsec.id_seccion = vac.id_seccion and vac.id_prueba = vsec.id_prueba and vac.id_beneficiaria = vsec.id_beneficiaria and vac.id_prueba =\".$idprueba.\" and vac.id_seccion = \".$idseccion;\n\n\t$array = array();\n\t$i = 1;\n\t$idSeccionPrevia = 0;\n\t$idSeccionActual = 0;\n\n\t$resultados = $conexion_bd->query($consulta);\n\twhile ($row = mysqli_fetch_array($resultados, MYSQLI_BOTH)) {\n\t\t$idSeccionActual = $row['vsec'];\n\t\t\t$resultado .= \"<tr>\n\n\t\t\t\t<td scope='row'>\".$i.\"</td>\n\t\t\t\t<td>\".$row['nombre_actividad'].\"</td>\n\t\t\t\t<td>\n\t\t\t\t\t<div class='form-check form-check-inline'>\n\t\t\t\t\t\t<input class='form-check-input' type='radio' name='\".$row['vacprueba'].$row['vacbenef'].$row['vsec'].$row['vact'].\"' \";\n\t\t\t\t\t\tif ($row['calificacion'] == 1) {\n\t\t\t\t\t\t\t$resultado .= \"checked\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$resultado .= \" value=1>\n\n\t\t\t\t\t</div>\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<div class='form-check form-check-inline'>\n\t\t\t\t\t<input class='form-check-input' type='radio' name='\".$row['vacprueba'].$row['vacbenef'].$row['vsec'].$row['vact'].\"' \";\n\t\t\t\t\tif ($row['calificacion'] == 2) {\n\t\t\t\t\t\t$resultado.= \"checked\";\n\t\t\t\t\t}\n\t\t\t\t\t$resultado .= \" value=2>\n\t\t\t\t\t</div>\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<div class='form-check form-check-inline'>\n\t\t\t\t\t<input class='form-check-input' type='radio' name='\".$row['vacprueba'].$row['vacbenef'].$row['vsec'].$row['vact'].\"' \";\n\t\t\t\t\tif ($row['calificacion'] == 3) {\n\t\t\t\t\t\t$resultado.= \"checked\";\n\t\t\t\t\t}\n\t\t\t\t\t$resultado .= \" value=3>\n\t\t\t\t\t</div>\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t<a title='Agregar observacion actividad' data-toggle='modal' href='#ModalAct\".$row['vact'].\"' class='btn btn-outline'> <i class='material-icons'>comment</i></a>\";\n\t\t\t\tif (isset($row['actobserv'])) {\n\t\t\t\t\t$resultado .= \"<i class='material-icons'>check</i>\";\n\t\t\t\t}\n\n\t\t\t\t$resultado .= \"</td>\n\t\t\t\t\t\t\t\t\t\t</tr>\";\n\t\t\t$i += 1;\n\t\t\t$resultado .= \"</tr> \";\n\n\t\t\tarray_push($array,$row['vacprueba'].$row['vacbenef'].$row['vsec'].$row['vact'].\" \");\n\n\t\t\tinclude(\"pruebas/_modal_observacion_act.html\");\n\n\t\t\tif ($idSeccionPrevia !== $idSeccionActual) {\n\t\t\t\tinclude(\"pruebas/_modal_observacion_sec.html\");\n\t\t\t}\n\n\t\t\t$idSeccionPrevia = $idSeccionActual;\n\n\t}\n\t\t\t$idBeneficiaria =\t$_SESSION[\"benefactual\"];\n\t\t\t$porcentaje_completado = calcular_porcentaje_prueba($idBeneficiaria, $idprueba);\n\t\t\t$resultado .= \"<input type='hidden' name='cantPruebaComplt' id='cantPruebaComplt' value='\".round($porcentaje_completado, 1).\"'>\";\n\t\t\t$resultado .= \"<input type='hidden' name='contadorAct' id='contadorAct' value='\".($i-1).\"'>\";\n\t\t\t$resultado .= \"<input type='hidden' name='pondrAct' id='pondrAct' value='\".implode($array).\"'>\";\n\n\t\t\t$fechaNac = recuperar($_SESSION[\"benefactual\"], \"beneficiarias\", \"idBeneficiaria\", \"fechaNacimiento\");\n\t\t\t$today = date(\"Y-m-d\");\n\t\t\t$diff = date_diff(date_create($fechaNac), date_create($today));\n\t\t\t$edad = $diff->format('%y');\n\t\t\t$resultado .= \"<input type='hidden' name='edadBenef' id='edadBenef' value='\".$edad.\"'>\";\n\n\n\t\tmysqli_free_result($resultados); //Liberar la memoria\n\n\t\tdesconectar_bd($conexion_bd);\n\t\t$resultado .= \"</tbody></table>\";\n\t\treturn $resultado;\n\t}", "title": "" }, { "docid": "7d0e4b8ce86311b81c02eb542a420bf4", "score": "0.54923916", "text": "function mantenimientoExamenes() {\n $oLLaboratorio = new LLaboratorio();\n\n $opcionesHTMLTipoExamenLaboratorio = $oLLaboratorio->LlistarTiposdeExamenesLaboratorio();\n\n//print_r($datos);\n//$iCodEmpCoordinador = $_SESSION['iCodigoEmpleado'];\n// $arrayNombreCoordinador = $oLRrhh->nombreCoordinador($iCodEmpCoordinador);\n// $arraySede = $oLRrhh->ListaSede($iCodEmpCoordinador);\n//listarAllSedesCom\n//$arrayTotalSedes = $oLRrhh->ListaTodasSede();\n// $arraySede = $oLRrhh->ListaTodasSede();\n//carga la pag.nueva para Menu CordinadoresTurnos\n require_once '../../cvista/laboratorio/vMantenimientoExamen.php';\n }", "title": "" }, { "docid": "4e9e0afa5821a7ae876c7d13ca0c5793", "score": "0.5489186", "text": "public function getMesas() {\n try {\n include_once '../controller/sessionController.php';\n\n $con = 0;\n\n if(isset($_REQUEST['tipo_espacio'])){\n $tipoEspacio=$_REQUEST['tipo_espacio'];\n } else {\n $tipoEspacio=\"Terraza\";\n }\n\n if(!empty($_GET['filtro_fecha'])) {\n $fecha = $_GET['filtro_fecha'];\n } else {\n $fecha = Date('Y-m-d');\n }\n\n $query = \"SELECT m.*, qry.dia, qry.franja1, qry.franja2, qry.franja3, qry.franja4 \n FROM espacio e INNER JOIN mesas m ON m.id_espacio = e.id_espacio \n LEFT JOIN( SELECT r.dia, r.id_mesa, c.nombre_camarero, \n MAX( CASE WHEN r.franja = '13:00h-14:00h' THEN r.franja END ) AS franja1, \n MAX( CASE WHEN r.franja = '14:00h-15:00h' THEN r.franja END ) AS franja2, \n MAX( CASE WHEN r.franja = '21:00h-22:00h' THEN r.franja END ) AS franja3, \n MAX( CASE WHEN r.franja = '22:00h-23:00h' THEN r.franja END ) AS franja4 FROM reserva r \n INNER JOIN camareros c ON r.id_camarero = c.id_camarero \n WHERE r.dia = ? GROUP BY r.dia, r.id_mesa) qry ON qry.id_mesa = m.id_mesa \n WHERE tipo_espacio = ?\";\n\n $sentencia = $this->pdo->prepare($query);\n $sentencia->bindParam(1, $fecha);\n $sentencia->bindParam(2, $tipoEspacio);\n $sentencia->execute();\n $lista_mesas = $sentencia->fetchAll(PDO::FETCH_ASSOC);\n $rol_user = $_SESSION['camarero']->getRol();\n $index = 0;\n\n foreach($lista_mesas as $mesa) {\n // COMPROBAMOS EL ESTADO DE LA MESA\n $idMesa = $mesa['id_mesa'];\n $estado = $mesa['disp_mesa'];\n if($con%4==0){\n echo \"<tr>\";\n }\n $index++;\n $con++;\n // IMPRIMIMOS LAS MESAS SEGUN SU ESTADO\n echo \"<td>\";\n if($estado == \"Disponible\") {\n echo \"<div class='botones'>\"; \n echo \"<span class='material-icons bWhite click lockIco' onclick='displayInfo({$index})'>info</span>\";\n if($rol_user == 1 || $rol_user == 2) { \n echo \"<a class='bWhite' href='./zonaRestaurante.php?id_mesa={$idMesa}&habilitar=f&tipo_espacio={$tipoEspacio}&filtro_fecha='>\";\n echo \"<span class='material-icons lockIco'>lock</span>\";\n echo \"</a>\";\n }\n echo \"</div>\";\n } else { \n echo \"<div class='botones'>\"; \n if($rol_user == 1 || $rol_user == 2) { \n echo \"<a class='bWhite' href='./zonaRestaurante.php?id_mesa={$idMesa}&habilitar=t&tipo_espacio={$tipoEspacio}&filtro_fecha='>\";\n echo \"<span class='material-icons lockIco'>lock_open</span>\";\n echo \"</a>\";\n }\n echo \"</div>\";\n }\n\n if($estado == \"Disponible\") {\n if($mesa['franja1'] != null && $mesa['franja2'] != null && $mesa['franja3'] != null && $mesa['franja4'] != null) {\n echo \"<a href='#'><img src='../img/mesaOcupada.png'></img></a>\";\n } else {\n echo \"<a href='../view/editMesa.php?tipo_espacio=$tipoEspacio&id_mesa={$idMesa}&fecha={$fecha}'><img src='../img/mesa.png'></img></a>\";\n }\n } else {\n echo \"<a href='#'><img src='../img/mesaReparacion.png'></img></a>\";\n }\n echo \"<p>Nº mesa: $idMesa</p>\";\n if($estado == \"Disponible\") {\n $this->imprimirInfo($mesa, $index, $fecha, $tipoEspacio, $idMesa);\n }\n echo \"<p>Capacidad máxima: {$mesa['capacidad_max']} personas</p>\";\n echo \"</td>\";\n \n if($con%4==0){\n echo \"</tr>\";\n }\n }\n } catch (Exception $e) {\n echo $e;\n } \n }", "title": "" }, { "docid": "d4a851e6df4a8e0351307ad09e17a3a7", "score": "0.54878694", "text": "function listarBoletosObservados(){\r\n $this->procedimiento='obingresos.ft_boletos_observados_sel';\r\n $this->transaccion='OBING_BOBS_SEL';\r\n $this->tipo_procedimiento='SEL';//tipo de transaccion\r\n\r\n //Definicion de la lista del resultado del query\r\n $this->captura('id_boletos_observados','int4');\r\n $this->captura('estado_reg','varchar');\r\n $this->captura('pnr','varchar');\r\n $this->captura('nro_autorizacion','varchar');\r\n $this->captura('moneda','varchar');\r\n $this->captura('importe_total','numeric');\r\n $this->captura('fecha_emision','date');\r\n $this->captura('estado_p','varchar');\r\n $this->captura('forma_pago','varchar');\r\n $this->captura('medio_pago','varchar');\r\n $this->captura('instancia_pago','varchar');\r\n $this->captura('office_id_emisor','varchar');\r\n $this->captura('pnr_prov','varchar');\r\n $this->captura('nro_autorizacion_prov','varchar');\r\n $this->captura('office_id_emisor_prov','varchar');\r\n $this->captura('importe_prov','numeric');\r\n $this->captura('moneda_prov','varchar');\r\n $this->captura('estado_prov','varchar');\r\n $this->captura('fecha_autorizacion_prov','date');\r\n $this->captura('tipo_error','varchar');\r\n $this->captura('tipo_validacion','varchar');\r\n $this->captura('prov_informacion','varchar');\r\n //$this->captura('id_instancia_pago','int4');\r\n $this->captura('id_usuario_reg','int4');\r\n $this->captura('fecha_reg','timestamp');\r\n $this->captura('id_usuario_ai','int4');\r\n $this->captura('usuario_ai','varchar');\r\n $this->captura('id_usuario_mod','int4');\r\n $this->captura('fecha_mod','timestamp');\r\n $this->captura('usr_reg','varchar');\r\n $this->captura('usr_mod','varchar');\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $this->ejecutarConsulta();\r\n\r\n //Devuelve la respuesta\r\n return $this->respuesta;\r\n }", "title": "" }, { "docid": "ac91a2a728dbacc8c37a2c184ae90979", "score": "0.5487256", "text": "function seleccion1T(){\n\t\t\t$periodo = $this -> actualselecc;\n\t\t\t\n\t\t\tif(Session::get_data('tipousuario')!=\"ALUMNO\"){\n\t\t\t\t$this->redirect('/');\n\t\t\t}\n\t\t\t\n\t\t\tunset($this -> pendientes);\n\t\t\tunset($this -> pmaterias);\n\t\t\t\n\t\t\t$id = Session::get_data('registro');\n\t\t\t\n\t\t\t$tiempos = new SeleccionTiempo();\n\t\t\t\n\t\t\t$tiempo = $tiempos -> find_first(\"registro=\".$id.\" AND periodo=\".$this -> actualselecc);\n\t\t\t\n\t\t\t$yi = substr($tiempo -> inicio,0,4);\n\t\t\t$mi = substr($tiempo -> inicio,5,2);\n\t\t\t$di = substr($tiempo -> inicio,8,2);\n\t\t\t$hi = substr($tiempo -> inicio,11,2);\n\t\t\t$ii = substr($tiempo -> inicio,14,2);\n\t\t\t\n\t\t\t$yf = substr($tiempo -> fin,0,4);\n\t\t\t$mf = substr($tiempo -> fin,5,2);\n\t\t\t$df = substr($tiempo -> fin,8,2);\n\t\t\t$hf = substr($tiempo -> fin,11,2);\n\t\t\t$if = substr($tiempo -> fin,14,2);\n\t\t\t\n//\t\t\t$di++;$di++;\n\t\t\tif($di<10)\n\t\t\t\t$di = \"0\".$di;\n\t\t\t\n\t\t\t$this -> inicio = $di.\"-\".$mi.\"-\".$yi.\" (\".$hi.\":\".$ii.\")\";\n\t\t\t$this -> fin = $df.\"-\".$mf.\"-\".$yf.\" (\".$hf.\":\".$if.\")\";\n\t\t\t\n\t\t\t$inicio = mktime($hi,$ii,0,$mi,$di,$yi);\n\t\t\t$fin = mktime($hf,$if,0,$mf,$df,$yf);\n\t\t\t\n\t\t\tif($inicio<time() && $fin>time()){\n\t\t\t\t$this -> acceso = 1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$this->redirect('alumno/seleccion');\n\t\t\t}\n\t\t\t\n\t\t\t$planesmaterias = new Planmateria();\n\t\t\t$xpkardex = new Xpkardex();\n\t\t\t$kardex = new KardexIng();\n\t\t\t\n\t\t\t$pmaterias = $planesmaterias -> find(\"idplan=\".$this -> idplan.\" ORDER BY clavemateria\");\n\t\t\t\n\t\t\t//QUITAR MATERIAS QUE YA ESTAN EN KARDEX O COMO MATERIA SOLICITADA PARA KARDEX\n\t\t\t$xxx = 0;\n\t\t\tif($pmaterias) foreach($pmaterias as $p){\n\t\t\t\t$n = $kardex -> count(\"registro=\".$id.\" AND clavemat='\".$p -> clavemateria.\"'\");\n\t\t\t\tif($n==0){\n\t\t\t\t\t$n = $xpkardex -> count(\"registro=\".$id.\" AND materia='\".$p -> clavemateria.\"'\");\n\t\t\t\t\tif($n==0){\n\t\t\t\t\t\t$this -> pmaterias[$xxx] = $p;\n\t\t\t\t\t\t$xxx++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif($this -> pmaterias){ \n\t\t\t\t$nnn = 0;\n\t\t\t\tforeach($this -> pmaterias as $tmp){\n\t\t\t\t\t$this -> matitas[$nnn] = $tmp -> clavemateria .\" - \". $this -> sacarMateria($tmp -> clavemateria, $this -> plan);\n\t\t\t\t\t$nnn++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$this -> pendientes = $xpkardex -> find(\"registro=\".$id);\n\n\t\t\t$nnn=0;\n\t\t\tif($this -> pendientes){ \n\t\t\t\tforeach($this -> pendientes as $tmp){\n\t\t\t\t\t$this -> matelocas[$nnn] = \n\t\t\t\t\t\t\t$tmp -> materia.\" - \".$this -> sacarMateria($tmp -> materia, $this -> plan);\n\t\t\t\t\t$nnn++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "4c65354fad7c267469f755029861ed9c", "score": "0.5483755", "text": "private function buscarpedidoactivacion(){\n\n if($this->get_request_method() != \"GET\"){\n $this->response('',406);\n }\n\n $pedido = $this->_request['pedidoID'];\n\n $user = $this->_request['userID'];\n $tabla = $this->_request['tabla'];\n\n $user=strtoupper($user);\n $today = date(\"Y-m-d\");\n\n\n /* if($tabla=='ACTIVADOR_SUSPECORE'){\n\n $tabla = \" from gestor_activacion_pendientes_activador_suspecore p \" ;\n\n } else {\n\n $tabla = \" from gestor_activacion_pendientes_activador_dom p \" ;\n\n\n }\n */\n\n $query1=\" SELECT p.ID \".\n \" , p.PEDIDO,group_concat(distinct p.ORDER_SEQ_ID) as ORDER_SEQ_ID,p.ESTADO,p.TAREA_EXCEPCION,p.IDSERVICIORAIZ,p.TRANSACCION \".\n \" ,p.ACTIVIDAD,p.FUENTE,p.GRUPO,p.MOTIVOEXCEPCIONACT,p.MOTIVO_ERROR,p.DESCRIPCIONEXCEPCIONACT \".\n \" ,p.VALOR_ERROR, p.STATUS \".\n \" , group_concat(distinct p.PRODUCTO) as PRODUCTO \".\n \" , min(p.FECHA_EXCEPCION) as FECHA_EXCEPCION \".\n \" ,min(p.FECHA_CREACION) as FECHA_CREACION \".\n \" , (select a.TIPIFICACION from gestor_historico_activacion a \".\n \" where a.PEDIDO='$pedido' order by a.ID desc limit 1) as HISTORICO_TIPIFICACION \".\n \" from gestor_activacion_pendientes_activador_suspecore p \".\n \" where p.PEDIDO = '$pedido' \".\n \" and p.STATUS in ('PENDI_ACTI','MALO') \".\n \" group by p.pedido \".\n \" UNION \".\n \" SELECT p.ID \".\n \" , p.PEDIDO,group_concat(distinct p.ORDER_SEQ_ID) as ORDER_SEQ_ID,p.ESTADO,p.TAREA_EXCEPCION,p.IDSERVICIORAIZ,p.TRANSACCION \".\n \" ,p.ACTIVIDAD,p.FUENTE,p.GRUPO,p.MOTIVOEXCEPCIONACT,p.MOTIVO_ERROR,p.DESCRIPCIONEXCEPCIONACT \".\n \" ,p.VALOR_ERROR, p.STATUS \".\n \" , group_concat(distinct p.PRODUCTO) as PRODUCTO \".\n \" , min(p.FECHA_EXCEPCION) as FECHA_EXCEPCION \".\n \" ,min(p.FECHA_CREACION) as FECHA_CREACION \".\n \" , (select a.TIPIFICACION from gestor_historico_activacion a \".\n \" where a.PEDIDO='$pedido' order by a.ID desc limit 1) as HISTORICO_TIPIFICACION \".\n \" from gestor_activacion_pendientes_activador_dom p \".\n \" where p.PEDIDO = '$pedido' \".\n \" and p.STATUS in ('PENDI_ACTI','MALO') \".\n \" group by p.pedido \";\n\n //echo $query1;\n\n $rPendi = $this->mysqli->query($query1) or die($this->mysqli->error.__LINE__);\n\n $busy=false;\n\n if($rPendi->num_rows > 0){\n $result = array();\n while($row = $rPendi->fetch_assoc()){\n\n $result[] = $row;\n $ids=$row['ID'];\n $asess=$row['ASESOR'];\n\n if($asess!='' && $asess!=$user){//este pedido esta ocupado, no deberia hacer la actualizacion de abajo..\n $busy=true;\n }\n\n }//chao While\n\n $sqlupdate=\"\";\n\n\n $x = $this->mysqli->query($sqlupdate);\n\n // Feed ----------------------\n $sqlfeed=\"insert into activity_feed(user,user_name, grupo,status,pedido_oferta,accion,concepto_id) values ('$user','$username','','','PEDIDO: $pedido','BUSCARPEDIDO','') \";\n $xx = $this->mysqli->query($sqlfeed);\n // ---------------------- Feed\n\n\n\n $this->response(json_encode(array($busy,$result)), 200); //Resultado final si encontro registros\n $this->response($this->json(array($result)), 200);\n\n }else{\n $error='No existe';\n $this->response(json_encode(array($error)),204); // No encontramos nada.\n }\n\n\n }", "title": "" }, { "docid": "f90eb5728369b031fec32386915f8e3e", "score": "0.5482996", "text": "function memoCajaChica(){\n\t\t$this->procedimiento='tes.ft_solicitud_efectivo_sel';\n\t\t$this->transaccion='TES_MEMOCJ_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t$this->setCount(false);\t\t\n\t\t\n\t\t//$this->setParametro('id_libro_bancos','id_libro_bancos','int4');\n\t\t$this->setParametro('id_proceso_wf','id_proceso_wf','int4');\n\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('fecha','date');\n\t\t$this->captura('nro_cheque','int4');\t\t\n\t\t$this->captura('codigo','varchar');\n\t\t$this->captura('aprobador','text');\n\t\t$this->captura('cargo_aprobador','varchar');\t\t\n\t\t$this->captura('cajero','text');\n\t\t$this->captura('cargo_cajero','varchar');\n\t\t$this->captura('importe_cheque','numeric');\n\t\t$this->captura('num_memo','varchar');\n\t\t\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "bd0130a11f334c12a458406196b81e80", "score": "0.54773396", "text": "function relacionar_correo_con_empresa($mysqli, $id_empresa, $id_correo_electronico)\n {\n $estatus = 1;//Por defecto las nuevas empreas estan activas\n\n $stmt = $mysqli->prepare(\"INSERT INTO `empresa_correo_electronico`(`id_empresa_correo_electronico`, `id_empresa`, `id_correo_electronico`, `estatus`, `fecha_creacion`, `ultima_modificacion`)\n \t\t\t\t\t\t\t\t\t\t\t\t\tVALUES\n \t\t\t\t\t\t\t\t\t\t\t\t\t(NULL,?,?,?,now(),now())\");\n\n //Indica a la base de datos que recibira 2 string y 3 integer correspoendietes a los signos de ? en el query\n $stmt->bind_param(\"iii\", $id_empresa, $id_correo_electronico, $estatus);\n\n //Ejecuta el query\n $stmt->execute();\n\n //Toma el ID del insert recien hecho\n $nuevo_id = $mysqli->insert_id;\n\n //Cierra el query\n $stmt->close();\n\n //return $nuevo_id;\n }", "title": "" }, { "docid": "2b483cf3b29e24c659c40641f132c7b5", "score": "0.54763407", "text": "public function todosLosPaquetes()\n {\n // ARRAY PARA GUARDAR LOS PAQUTES \"SIN ASIGNAR\"\n $paquetesSinAsignar = array(); \n // ARRAY PARA GUARDAR LOS PAQUTES \"EN TRANITO\"\n $paquetesEnTransito = array();\n // ARRAY PARA GUARDAR LOS PAQUTES \"ENTREGADOS\"\n $paquetesEntregados = array();\n\n $sentencia = \"SELECT * FROM paquete\n WHERE estado_paquete != 'eliminado' \n ORDER BY fecha_entrega desc, \n fecha_estimada_entrega desc \";\n\n $this->conexionServidor();\n $this->conexionBaseDatos();\n $resultado = $this->ejecutarSentencia($sentencia);\n $this->cerrarConexion();\n\n $cantidadFilas = mysqli_num_rows($resultado);\n\n if ($cantidadFilas >= 1) // SI EXISTE UN PAQUETE O MAS\n {\n // EXTRAEMOS LA INFORMACION DEL RESULTADO, Y AGREGAMOS LOS PAQUETES A CADA UNO DE LOS ARRAY SEGUN SU ESTADO\n for ($i = 0; $i < $cantidadFilas; $i++)\n {\n $paquete = new Paquete;\n\n $fila = mysqli_fetch_assoc($resultado);\n\n $paquete->codigo = $fila[\"codigo\"];\n $paquete->estadoPaquete = $fila[\"estado_paquete\"];\n $paquete->fechaEstimadaEntrega = $fila[\"fecha_estimada_entrega\"];\n $paquete->fragil = $fila[\"fragil\"];\n $paquete->pedecedero = $fila[\"pedecedero\"];\n $paquete->direccionRemitente = $fila[\"direccion_remitente\"];\n $paquete->direccionEnvio = $fila[\"direccion_envio\"];\n $paquete->fechaYHoraAsignacion = $fila[\"fecha_hora_asignacion\"];\n $paquete->fechaEntrega = $fila[\"fecha_entrega\"];\n\n switch ($paquete->estadoPaquete) \n {\n case \"sin asignar\": // PAQUETE \"SIN ASIGNAR\"\n $paquetesSinAsignar[] = $paquete;\n break;\n case \"en transito\": // PAQUETE \"EN TRANSITO\"\n $paquetesEnTransito[] = $paquete;\n break;\n case \"entregado\": // PAQUETE \"ENTREGADO\"\n $paquetesEntregados[] = $paquete;\n break;\n default;\n die(\"No tiene estado o es incorrecto: ManejadorPaquete.php - todosLosPaquetes() - switch - Avise a su superior de este error\");\n break;\n }\n }\n\n $paquetes = array(\n \"paquetesSinAsignar\" => $paquetesSinAsignar, \n \"paquetesEnTransito\" => $paquetesEnTransito,\n \"paquetesEntregados\" => $paquetesEntregados\n );\n\n // RETORNAMOS TODOS LOS PAQUETES\n return $paquetes;\n }\n else // SI NO EXISTE NINGUN PAQUETE\n {\n // RETORNAMOS NULL\n return null;\n }\n }", "title": "" }, { "docid": "2c2bfdf1d9aa73b57083479b3650a309", "score": "0.5473057", "text": "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->e07_sequencial = ($this->e07_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e07_sequencial\"]:$this->e07_sequencial);\n $this->e07_formatransmissao = ($this->e07_formatransmissao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e07_formatransmissao\"]:$this->e07_formatransmissao);\n $this->e07_empagemov = ($this->e07_empagemov == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e07_empagemov\"]:$this->e07_empagemov);\n }else{\n $this->e07_sequencial = ($this->e07_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e07_sequencial\"]:$this->e07_sequencial);\n }\n }", "title": "" }, { "docid": "fff4ead7ab71eb6d5b0b33a1769e10de", "score": "0.5471988", "text": "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->mo14_sequencial = ($this->mo14_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"mo14_sequencial\"]:$this->mo14_sequencial);\n $this->mo14_ciclo = ($this->mo14_ciclo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"mo14_ciclo\"]:$this->mo14_ciclo);\n $this->mo14_ensino = ($this->mo14_ensino == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"mo14_ensino\"]:$this->mo14_ensino);\n }else{\n $this->mo14_sequencial = ($this->mo14_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"mo14_sequencial\"]:$this->mo14_sequencial);\n }\n }", "title": "" }, { "docid": "4e7cbb300e33f1c8179b19816cc9b87c", "score": "0.54710513", "text": "function getEmpleado($user) {//*, o.numero, o.id_tipoorgano, o.id_materia INNER JOIN jtc_organos o ON e.id_organo = o.id\n $this->db->setQuery(\"SELECT e.id, e.id_rol, e.id_organo, e.id_secretaria, o.id_tipoorgano 'o__id_tipoorgano', o.id_materia 'o__id_materia', o.organo 'o__organo', o.numero 'o__numero'\n\t\t\t\t\t\t\tFROM jt_empleados e\n\t\t\t\t\t\t\tINNER JOIN jtc_organos o ON o.id = e.id_organo\n\t\t\t\t\t\t\tWHERE e.id = {$user->id};\");\n $empleado = $this->db->loadObject();\n\t\t\n //esta propiedad ya no me encanta.\n $empleado->is_admin = in_array(7, $user->getAuthorisedGroups());\t\n\t\t\n return $empleado;\n }", "title": "" } ]
1f83095565cc5ba42633a932c1522c6f
/ page espacepersonnel/suppoffredemande Suppression offre et ou demande
[ { "docid": "b2a0cab539c4f035388f77a1d3a7d71b", "score": "0.6630706", "text": "public function suppoffredemandeAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t$id = (int) $this->_request->getParam('id');\n\t\tif ($id > 0) {\n\n\t\t$a = new Application_Model_EuOffreDemande();\n\t\t$ma = new Application_Model_EuOffreDemandeMapper();\n\t\t$ma->find($id, $a);\n$m_offre_demande_message = new Application_Model_EuOffreDemandeMessageMapper();\n$m_offre_demande_cloture = new Application_Model_EuOffreDemandeClotureMapper();\n\nif($a->type_offre_demande == \"Offre\"){\n$rowsoffremessage = $m_offre_demande_message->fetchAllByOffre2($a->id_offre_demande);\n\t\tforeach ($rowsoffremessage as $row) {\n\t\t\t\t\t$m_offre_demande_message->delete($row->id_message);\n\t\t\t}\n\t}else{\n$rowsdemandemessage = $m_offre_demande_message->fetchAllByDemande2($a->id_offre_demande);\n\t\tforeach ($rowsdemandemessage as $row) {\n\t\t\t\t\t$m_offre_demande_message->delete($row->id_message);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\nif($a->type_offre_demande == \"Offre\"){\n$rowsoffrecloture = $m_offre_demande_cloture->fetchAllByOffre2($a->id_offre_demande);\n\t\tforeach ($rowsoffrecloture as $row) {\n\t\t\t\t\t$m_offre_demande_cloture->delete($row->id_cloture);\n\t\t\t}\n\t}else{\n$rowsdemandecloture = $m_offre_demande_cloture->fetchAllByDemande2($a->id_offre_demande);\n\t\tforeach ($rowsdemandecloture as $row) {\n\t\t\t\t\t$m_offre_demande_cloture->delete($row->id_cloture);\n\t\t\t}\n\t\t}\n\t\t\t\n\n\n\n\n\n\t\t\t$offre_demande_M = new Application_Model_EuOffreDemandeMapper();\n\t\t\t$offre_demande_M->delete($a->id_offre_demande);\n\t\t}\n\n\t\t$this->_redirect('/espacepersonnel/listoffredemande');\n\t}", "title": "" } ]
[ { "docid": "22a761cf172e1fa158b5dacaae8e726a", "score": "0.7150421", "text": "public function suppoffredemandeclotureAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t$id = (int) $this->_request->getParam('id');\n\t\tif ($id > 0) {\n\n\t\t\t$offre_demande_cloture_M = new Application_Model_EuOffreDemandeClotureMapper();\n\t\t\t$offre_demande_cloture_M->delete($id);\n\t\t}\n\n\t\t$this->_redirect('/espacepersonnel/offredemande');\n\t}", "title": "" }, { "docid": "d8f7eea18aee99a5f7d994ada1feed16", "score": "0.70979", "text": "public function suppdemandeAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t$id = (int) $this->_request->getParam('id');\n\t\tif ($id > 0) {\n\n\t\t\t$demandeM = new Application_Model_EuDemandeMapper();\n\t\t\t$demandeM->delete($id);\n\t\t}\n\n\t\t$this->_redirect('/espacepersonnel/listdemande');\n\t}", "title": "" }, { "docid": "c482e68c103c91acd31b008f97ff1216", "score": "0.6409787", "text": "public function suppappeloffreAction()\n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\t\t\n\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t$id = (int) $this->_request->getParam('id');\n\t\tif (isset($id) && $id != 0) {\n\n\t\t$appeloffre = new Application_Model_EuAppelOffre();\n\t\t$appeloffreM = new Application_Model_EuAppelOffreMapper();\n\t\t$appeloffreM->find($id, $appeloffre);\n\t\t\n\t\t$appeloffreM->delete($appeloffre->id_appel_offre);\n\t\t//unlink($appeloffre->descrip_appel_offre);\t\n\n\t\t}\n\n\t\t$this->_redirect('/espacepersonnel/listappeloffre');\n\t}", "title": "" }, { "docid": "65610659816532a880b21618cdb59f04", "score": "0.62773895", "text": "public function publierdemandeAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t$id = (int) $this->_request->getParam('id');\n\t\tif ($id > 0) {\n\n\t\t\t$demande = new Application_Model_EuDemande();\n\t\t\t$m_demande = new Application_Model_EuDemandeMapper();\n\t\t\t$m_demande->find($id, $demande);\n\n\t\t\t$demande->setPublier($this->_request->getParam('publier'));\n\t\t\t$m_demande->update($demande);\n\t\t}\n\n\t\t$this->_redirect('/espacepersonnel/listdemande');\n\t}", "title": "" }, { "docid": "2d2f52faf534e39ff0df7471e8fb6617", "score": "0.6265536", "text": "public function clotureoffredemandeAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t\t$id = (int)$this->_request->getParam('id');\n\t\t\t$offre = (int)$this->_request->getParam('offre');\n\t\t\t$demande = (int)$this->_request->getParam('demande');\n\t\t\t$type = (string)$this->_request->getParam('type');\n\n\t\tif (isset($_POST['ok1']) && $_POST['ok1'] == \"ok1\") {\n\t\t$this->view->offre = $offre;\n\t\t$this->view->demande = $demande;\n\t\t$this->view->type = $type;\n\t\t$this->view->id = $id;\n\t\t\t\n$offredemandeM = new Application_Model_EuOffreDemandeMapper();\n$offredemande = new Application_Model_EuOffreDemande();\n$rowsoffre = $offredemandeM->fetchAllByMembreOffreDemande($sessionmembre->code_membre, $offre);\n$rowsdemande = $offredemandeM->fetchAllByMembreOffreDemande($sessionmembre->code_membre, $demande);\nif($rowsoffre == NULL){\n\t$type = \"Demande\";\n}else{\n\t$type = \"Offre\";\n}\n\n\t\t\t\n\t\t\t\nif($type == \"Offre\"){\n\t\t\t\t\n\t\t\tif (isset($_POST['code_membre_offre']) && $_POST['code_membre_offre'] != \"\" && isset($_POST['code_compte_offre']) && $_POST['code_compte_offre'] != \"\" && isset($_POST['montant_offre']) && is_numeric($_POST['montant_offre']) && isset($_POST['montant_offre_2']) && is_numeric($_POST['montant_offre_2']) && $_POST['montant_offre_2'] >= $_POST['montant_offre']) {\n\t\t\t\tif(isset($_POST['id_credit_offre']) && $_POST['id_credit_offre'] != \"\" ){$id_credit_offre = $_POST['id_credit_offre'];}else{$id_credit_offre = NULL;}\n$offredemandecloture_m = new Application_Model_EuOffreDemandeClotureMapper();\n$offredemandecloture = new Application_Model_EuOffreDemandeCloture();\n$rowsoffredemandecloture = $offredemandecloture_m->fetchAllByDemande($_POST['id_demande'], $offredemandecloture);\nif(!$offredemandecloture->id_offre){\n\t\t\t\t$date_id = new Zend_Date(Zend_Date::ISO_8601);\n\n\t\t\t\t$offre_demande_cloture = new Application_Model_EuOffreDemandeCloture();\n\t\t\t\t$m_offre_demande_cloture = new Application_Model_EuOffreDemandeClotureMapper();\n\n\t\t\t\t\t$compt_offre_demande_cloture = $m_offre_demande_cloture->findConuter() + 1;\n\n\t\t\t\t\t$offre_demande_cloture->setId_cloture($compt_offre_demande_cloture);\n\t\t\t\t\t$offre_demande_cloture->setId_offre($_POST['id_offre']);\n\t\t\t\t\t$offre_demande_cloture->setId_demande($_POST['id_demande']);\n\t\t\t\t\t$offre_demande_cloture->setCloture(0);\n\t\t\t\t\t$offre_demande_cloture->setCloture_membre($_POST['code_membre_offre']);\n\t\t\t\t\t$offre_demande_cloture->setDate_cloture($date_id->toString('yyyy-MM-dd HH:mm:ss'));\n\t\t\t\t\t$offre_demande_cloture->setCode_membre_offre($_POST['code_membre_offre']);\n\t\t\t\t\t$offre_demande_cloture->setCode_compte_offre($_POST['code_compte_offre']);\n\t\t\t\t\t$offre_demande_cloture->setId_credit_offre($id_credit_offre);\n\t\t\t\t\t$offre_demande_cloture->setMontant_offre($_POST['montant_offre']);\n\t\t\t\t\t$offre_demande_cloture->setCode_sms_offre(strtoupper(Util_Utils::genererCodeSMS(9)));\n\t\t\t\t\t$offre_demande_cloture->setNum_offre_demande($_POST['id_offre'].\"_\".$_POST['id_demande']);\n\t\t\t\t\t$m_offre_demande_cloture->save($offre_demande_cloture);\n\t}else{\n\t\t\t\t$date_id = new Zend_Date(Zend_Date::ISO_8601);\n\n\t\t\t\t$offre_demande_cloture = new Application_Model_EuOffreDemandeCloture();\n\t\t\t\t$m_offre_demande_cloture = new Application_Model_EuOffreDemandeClotureMapper();\n\n\t\t\t\t$m_offre_demande_cloture->find($offredemandecloture->id_cloture, $offre_demande_cloture);\n\n\t\t\t\t\t//$offre_demande_cloture->setId_offre($_POST['id_offre']);\n\t\t\t\t\t$offre_demande_cloture->setCloture(1);\n\t\t\t\t\t$offre_demande_cloture->setDate_cloture($date_id->toString('yyyy-MM-dd HH:mm:ss'));\n\t\t\t\t\t$offre_demande_cloture->setCode_membre_offre($_POST['code_membre_offre']);\n\t\t\t\t\t$offre_demande_cloture->setCode_compte_offre($_POST['code_compte_offre']);\n\t\t\t\t\t$offre_demande_cloture->setId_credit_offre($id_credit_offre);\n\t\t\t\t\t$offre_demande_cloture->setMontant_offre($_POST['montant_offre']);\n\t\t\t\t\t$offre_demande_cloture->setCode_sms_offre(strtoupper(Util_Utils::genererCodeSMS(9)));\n\t\t\t\t\t$m_offre_demande_cloture->update($offre_demande_cloture);\n\t\t}\n\t\t\t\t\t$this->_redirect('/espacepersonnel/listoffredemandecloture');\n\t}else{\n\t\t\t\t\t\t$sessionmembre->errorlogin = \"Vérifier les montants\";\n\t\t}\n\t\n}else if($type == \"Demande\"){\n\n\t\t\tif (isset($_POST['code_membre_demande']) && $_POST['code_membre_demande'] != \"\" && isset($_POST['code_compte_demande']) && $_POST['code_compte_demande'] != \"\" && isset($_POST['montant_demande']) && is_numeric($_POST['montant_demande']) && isset($_POST['montant_demande_2']) && is_numeric($_POST['montant_demande_2']) && $_POST['montant_demande_2'] >= $_POST['montant_demande']) {\n\t\t\t\t\t\t\t\tif(isset($_POST['id_credit_demande']) && $_POST['id_credit_demande'] != \"\" ){$id_credit_demande = $_POST['id_credit_demande'];}else{$id_credit_demande = NULL;}\n\n$offredemandecloture_m = new Application_Model_EuOffreDemandeClotureMapper();\n$offredemandecloture = new Application_Model_EuOffreDemandeCloture();\n$rowsoffredemandecloture = $offredemandecloture_m->fetchAllByOffre($_POST['id_offre'], $offredemandecloture);\nif(!$offredemandecloture->id_demande){\n\t\t\t\t$date_id = new Zend_Date(Zend_Date::ISO_8601);\n\n\t\t\t\t$offre_demande_cloture = new Application_Model_EuOffreDemandeCloture();\n\t\t\t\t$m_offre_demande_cloture = new Application_Model_EuOffreDemandeClotureMapper();\n\n\t\t\t\t\t$compt_offre_demande_cloture = $m_offre_demande_cloture->findConuter() + 1;\n\n\t\t\t\t\t$offre_demande_cloture->setId_cloture($compt_offre_demande_cloture);\n\t\t\t\t\t$offre_demande_cloture->setId_demande($_POST['id_demande']);\n\t\t\t\t\t$offre_demande_cloture->setId_offre($_POST['id_offre']);\n\t\t\t\t\t$offre_demande_cloture->setCloture(0);\n\t\t\t\t\t$offre_demande_cloture->setCloture_membre($_POST['code_membre_demande']);\n\t\t\t\t\t$offre_demande_cloture->setDate_cloture($date_id->toString('yyyy-MM-dd HH:mm:ss'));\n\t\t\t\t\t$offre_demande_cloture->setCode_membre_demande($_POST['code_membre_demande']);\n\t\t\t\t\t$offre_demande_cloture->setCode_compte_demande($_POST['code_compte_demande']);\n\t\t\t\t\t$offre_demande_cloture->setId_credit_demande($id_credit_demande);\n\t\t\t\t\t$offre_demande_cloture->setMontant_demande($_POST['montant_demande']);\n\t\t\t\t\t$offre_demande_cloture->setCode_sms_demande(strtoupper(Util_Utils::genererCodeSMS(9)));\n\t\t\t\t\t$offre_demande_cloture->setNum_offre_demande($_POST['id_offre'].\"_\".$_POST['id_demande']);\n\t\t\t\t\t$m_offre_demande_cloture->save($offre_demande_cloture);\n\t}else{\n\t\t\t\t$date_id = new Zend_Date(Zend_Date::ISO_8601);\n\n\t\t\t\t$offre_demande_cloture = new Application_Model_EuOffreDemandeCloture();\n\t\t\t\t$m_offre_demande_cloture = new Application_Model_EuOffreDemandeClotureMapper();\n\n\t\t\t\t$m_offre_demande_cloture->find($offredemandecloture->id_cloture, $offre_demande_cloture);\n\n\t\t\t\t\t//$offre_demande_cloture->setId_demande($_POST['id_demande']);\n\t\t\t\t\t$offre_demande_cloture->setCloture(1);\n\t\t\t\t\t$offre_demande_cloture->setDate_cloture($date_id->toString('yyyy-MM-dd HH:mm:ss'));\n\t\t\t\t\t$offre_demande_cloture->setCode_membre_demande($_POST['code_membre_demande']);\n\t\t\t\t\t$offre_demande_cloture->setCode_compte_demande($_POST['code_compte_demande']);\n\t\t\t\t\t$offre_demande_cloture->setId_credit_demande($id_credit_demande);\n\t\t\t\t\t$offre_demande_cloture->setMontant_demande($_POST['montant_demande']);\n\t\t\t\t\t$offre_demande_cloture->setCode_sms_demande(strtoupper(Util_Utils::genererCodeSMS(9)));\n\t\t\t\t\t$m_offre_demande_cloture->update($offre_demande_cloture);\n\t\t}\n\t\t\t\t\t$this->_redirect('/espacepersonnel/listoffredemandecloture');\n\t}else{\n\t\t\t\t\t\t$sessionmembre->errorlogin = \"Vérifier les montants\";\n\t\t}\n\t}\n\t\n\t}\n\t\n\t\t\t\t\t$this->_redirect('/espacepersonnel/listoffredemandemessage/id/'.$id.'/offre/'.$offre.'/demande/'.$demande.'');\n\t}", "title": "" }, { "docid": "2a90e9a79874cf885a6e4756d65c84b3", "score": "0.62608504", "text": "public function afficherPromotion(){\n\n session_start();\n $title['name'] = 'Gestion des promotions';\n $title['menu'] = 13;\n $title['menu_admin'] = 600;\n $userConnect = FALSE;\n $userConnectAdmin = $this->userConnectAdmin();\n $ajouter = FALSE;\n $dialogue = FALSE;\n\n $msg = '';\n $confirmation = '';\n\n $bdd = new modelesPromotion();\n\n if(isset($_GET['supprimer']) && !empty($_GET['supprimer']) && is_numeric($_GET['supprimer'])){\n\n $id_promo = htmlentities($_GET['supprimer']);\n $VerifPromoProduit = $bdd->VerifPromoProduit($id_promo);\n\n if($VerifPromoProduit['nbProduitAssoc']){\n\n $bdd->SuppPromo($id_promo);\n $confirmation .= \"Votre code promo a bien été supprimé.<br>\";\n\n } else {\n\n $dialogue = TRUE;\n\n if(isset($_GET['confirm']) && !empty($_GET['confirm']) && $_GET['confirm'] === 'oui'){\n\n $bdd->SuppPromo($id_promo);\n $confirmation .= \"Votre code promo a bien été supprimé.<br>\";\n $dialogue = FALSE;\n\n }\n }\n }\n\n $donnees = $bdd->affichageCodePromo();\n\n $this->Render('../vues/promotion/gestion_promos.php', array('title' => $title, 'msg' => $msg, 'confirmation' => $confirmation, 'userConnect' => $userConnect, 'userConnectAdmin' => $userConnectAdmin, 'ajouter' => $ajouter, 'donnees' => $donnees, 'dialogue' => $dialogue));\n\n }", "title": "" }, { "docid": "35b8ec0166462ddc5a8a3bfdd3502021", "score": "0.618027", "text": "function retirerDuPanier($idProduit, $quantite)\n{\n\t$_SESSION['panier']->suppressionItem($idProduit, $quantite);\n}", "title": "" }, { "docid": "b5e3f0a55365f1f9a1376aa508d1bd58", "score": "0.61687946", "text": "public function suppdetailpropositionAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t$id = (int) $this->_request->getParam('id');\n\t\tif ($id > 0) {\n\n\t\t\t$detailproposition = new Application_Model_EuDetailProposition();\n\t\t\t$detailpropositionM = new Application_Model_EuDetailPropositionMapper();\n\t\t\t$detailpropositionM->find($id, $detailproposition);\n\n\t\t\t\n\t\t\t\n\t\t\t\t\t$proposition = new Application_Model_EuProposition();\n\t\t\t\t\t$m_proposition = new Application_Model_EuPropositionMapper();\n\t\t\t\t\t$m_proposition->find($_POST['id_proposition'], $proposition);\n\t\t\t\t\t$proposition->setMontant_proposition($proposition->getMontant_proposition() - ($detailproposition->prix_unitaire * $detailproposition->quantite));\n\t\t\t\t\t$m_proposition->update($proposition);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t$detailpropositionM->delete($detailproposition->id_detail_proposition);\n\t\t}\n\n\t\t$this->_redirect('/espacepersonnel/detailproposition/id/' . $detailproposition->id_proposition);\n\t}", "title": "" }, { "docid": "e02eb3fff32ba0ec0f343585bc56dfc7", "score": "0.6145952", "text": "public function suppmembrepropositionAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t$id = (int) $this->_request->getParam('id');\n\t\tif ($id > 0) {\n\n\t\t\t$membreproposition = new Application_Model_EuMembreProposition();\n\t\t\t$membrepropositionM = new Application_Model_EuMembrePropositionMapper();\n\t\t\t$membrepropositionM->find($id, $membreproposition);\n\n\t\t\t$membrepropositionM->delete($membreproposition->id_membre_proposition);\n\t\t}\n\n\t\t$this->_redirect('/espacepersonnel/detailproposition/id/' . $membreproposition->id_proposition);\n\t}", "title": "" }, { "docid": "4ed8da2db3e01440c2acd254815a916c", "score": "0.6128558", "text": "public function supppropositionAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t$id = (int) $this->_request->getParam('id');\n\t\tif ($id > 0) {\n\n\t\t\t$proposition = new Application_Model_EuProposition();\n\t\t\t$propositionM = new Application_Model_EuPropositionMapper();\n\t\t\t$propositionM->find($id, $proposition);\n\n\t\t\t\t\t$detail_proposition = new Application_Model_EuDetailPropositionMapper();\n\t\t\t\t\t$entries_detail_proposition = $detail_proposition->fetchAll2($proposition->id_proposition);\n\t\t\t\t\tforeach ($entries_detail_proposition as $entry_detail_proposition):\n\t\t\t\t\t\t$detail_proposition = new Application_Model_EuDetailProposition();\n\t\t\t\t\t\t$m_detail_proposition = new Application_Model_EuDetailPropositionMapper();\n\t\t\t\t\t$m_detail_proposition->delete($entry_detail_proposition->id_detail_proposition);\n\t\t\t\t\tendforeach;\n\t\t\n\t\t\n\t\t\t\t\t$membre_proposition = new Application_Model_EuMembrePropositionMapper();\n\t\t\t\t\t$entries_membre_proposition = $membre_proposition->fetchAll2($proposition->id_proposition);\n\t\t\t\t\tforeach ($entries_membre_proposition as $entry_membre_proposition):\n\t\t\t\t\t\t$membre_proposition = new Application_Model_EuMembreProposition();\n\t\t\t\t\t\t$m_membre_proposition = new Application_Model_EuMembrePropositionMapper();\n\t\t\t\t\t$m_membre_proposition->delete($entry_membre_proposition->id_membre_proposition);\n\t\t\t\t\tendforeach;\n\n\n\t\t\t$propositionM->delete($proposition->id_proposition);\n\t\t}\n\n\t\t$this->_redirect('/espacepersonnel/listproposition');\n\t}", "title": "" }, { "docid": "f5bbd34bdf2f89bf5e275375de2f486d", "score": "0.6093673", "text": "public function paiement()\n {\n $request = new Request();\n (!$request->isConnected()) ? $request->acccesDenied() : true;\n if ($request->getMethod() == \"POST\")\n {\n $dataPost = $request->getParameters(\"POST\");\n if (isset($dataPost['cgv']) && $dataPost['cgv'] = \"on\")\n {\n // Vérifier si le ou les produit(s) existe toujours\n $produit = $this->getRepository(\"produit\");\n $dataSession = $request->getParameters(\"SESSION\");\n if (isset($dataSession['panier']['article']) && count($dataSession['panier']['article']) > 0)\n {\n foreach ($dataSession['panier']['article'] as $values)\n {\n $produits = $produit->findProduitBy(array(\"p.id = '\" . $values->id . \"'\", \"p.etat = '1'\", \"p.date_arrivee >= NOW()\"));\n $ProductReserved = false;\n $NbProduit = \"\";\n if ($produits)\n {\n $this->supprimerProduitPanier((array) $values->id, false);\n $NbProduit .= $values->id;\n $ProductReserved = true;\n }\n }\n\n if (!$ProductReserved)\n {\n $alert = array(\"success\", \"<strong>Merci pour votre confiance!</strong> Vous venez de recevoir un mail récapitulatif de votre commande.\");\n foreach ($dataSession['panier']['article'] as $article)\n {\n $dateArrivee = new \\DateTime($article->date_arrivee);\n $dateArrivee = date_format($dateArrivee, 'Y-m-d H:i:s');\n $dateDepart = new \\DateTime($article->date_depart);\n $dateDepart = date_format($dateDepart, 'Y-m-d H:i:s');\n\n $dataSave = array(\"date_arrivee\" => $dateArrivee, \"date_depart\" => $dateDepart, \"etat\" => \"1\", \"salle_id\" => $article->salle_id, \"id\" => $article->id);\n $produits = $produit->saveProduit($dataSave);\n }\n $data = array(\"montant\" => ($this->updateBottonPanier() - $this->getPromotionTotal()) * 1.2, \"date\" => date(\"Y-m-d H:i:s\"), \"statut_commande\" => \"En attente de paiement\", \"membre_id\" => $dataSession['Auth']->id);\n $articlesId = array();\n foreach ($dataSession['panier']['article'] as $values)\n {\n if (isset($dataSession['panier']['promotion']) && !empty($dataSession['panier']['promotion']))\n {\n foreach ($dataSession['panier']['promotion'] as $val)\n {\n $prix = ($val->id == $values->id) ? $val->prix : $values->prix * 1.2;\n }\n }\n else\n {\n $prix = $values->prix * 1.2;\n }\n\n $articlesId += array($values->id => array(\"prix\" => $prix, \"salle_id\" => $values->salle_id));\n }\n $numCommande = $produit->ajouterCommande($data, $articlesId);\n $_SESSION[\"panier\"][\"promotion\"] = array();\n $this->felicitation($alert, $numCommande, true);\n exit();\n }\n else\n {\n $alert = array(\"danger\", \"<strong>Désolé le produit\" . $NbProduit . \" n'existe plus!</strong> Il vient d'être enlevé de votre panier.\");\n }\n }\n else\n {\n $alert = array();\n }\n }\n else\n {\n $alert = array(\"danger\", \"Vous devez accepter les conditions générales de vente avant de payer!\");\n }\n\n $this->updateBottonPanier();\n $this->panier($alert);\n }\n }", "title": "" }, { "docid": "0df90bbf62e9337afba63e9b284ab95c", "score": "0.6053757", "text": "public function livrerdemandeAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t$id = (int) $this->_request->getParam('id');\n\t\t$idfrais = (int) $this->_request->getParam('idfrais');\n\t\tif ($id > 0 && $idfrais > 0) {\n\t\t\t\n\t\t\t$frais = new Application_Model_EuFrais();\n\t\t\t$m_frais = new Application_Model_EuFraisMapper();\n\t\t\t$m_frais->find($idfrais, $frais);\n\t\t\t\n\t\t\t$m_appeloffre = new Application_Model_EuAppelOffreMapper();\n\t\t\t$appeloffre = $m_appeloffre->findByDemande($id);\n\t\t\t\t\t\t\n\t\t\t$date = new Zend_Date(Zend_Date::ISO_8601);\n\n\t\t\t$m_appelnn = new Application_Model_EuAppelNnMapper();\n\t\t\t$appelnn = $m_appelnn->findByAppel($frais->id_proposition);\n\t\t\t$code_compte = 'NN-TPAGCP-' . $appeloffre->membre_morale_executante;\n\t\t\t\n\t\t\t$compte_gcp = new Application_Model_EuCompte();\n\t\t\t$m_compte_gcp = new Application_Model_EuCompteMapper();\n\t\t\t$m_compte_gcp->find($code_compte, $compte_gcp);\n\t\t\t\n\t\t\t$m_domiciliation = new Application_Model_EuDomiciliationMapper();\n\t\t\t$domiciliation = $m_domiciliation->findByProposition($frais->id_proposition);\n\t\t\t\n\t\t\t//if($frais->mont_projet <= $compte_gcp->solde && $domiciliation->montant_subvent == $domiciliation->montant_domicilier && $domiciliation->reste_duree == 0){\n\t\t\t\n\t\t\t\t\t$compte_gcp->setSolde($compte_gcp->getSolde() - $frais->mont_projet);\n\t\t\t\t\t$m_compte_gcp->update($compte_gcp);\n\t\t\t\t\t\n\t\t\t\t$m_compte = new Application_Model_EuCompteMapper();\n\t\t\t\t$compte = new Application_Model_EuCompte();\n\t\t\t\t$code_compte = 'NN-GCPREP-' . $appelnn->code_membre_morale;\n\t\t\t\t$ret_req = $m_compte->find($code_compte, $compte);\n\t\t\t\tif ($ret_req == FALSE) {\n\t\t\t\t\t$compte->setCode_cat('GCPREP');\n\t\t\t\t\tif (substr($code_membre, -1) == \"P\") {\n\t\t\t\t\t\t$compte->setCode_membre($code_membre);\n\t\t\t\t\t} else if (substr($code_membre, -1) == \"M\") {\n\t\t\t\t\t\t$compte->setCode_membre_morale($code_membre);\n\t\t\t\t\t}\n\t\t\t\t\t$compte->setCode_compte($code_compte)\n\t\t\t\t\t\t\t->setCode_type_compte('NN')\n\t\t\t\t\t\t\t->setDate_alloc($date->toString('yyyy-MM-dd HH:mm:ss'))\n\t\t\t\t\t\t\t->setDesactiver(0)\n\t\t\t\t\t\t\t->setLib_compte('Gcp Répartition')\n\t\t\t\t\t\t\t->setSolde($frais->mont_projet);\n\t\t\t\t\t$m_compte->save($compte);\n\t\t\t\t} else {\n\t\t\t\t\t$compte->setSolde($compte->getSolde() + $frais->mont_projet);\n\t\t\t\t\t$m_compte->update($compte);\n\t\t\t\t}\n\n\t\t\t$demande = new Application_Model_EuDemande();\n\t\t\t$m_demande = new Application_Model_EuDemandeMapper();\n\t\t\t$m_demande->find($id, $demande);\n\n\t\t\t$demande->setLivrer($this->_request->getParam('livrer'));\n\t\t\t$m_demande->update($demande);\n\t\t\t\n$sessionmembre->errorlogin = \"Validation de la livraison réussie ...\";\t\t\t\n\t\t\t\n\t\t\t/*}else {\n$sessionmembre->errorlogin = \"Validation de la livraison échouée ...\";\t\t\t\n\t\t\t\t}*/\n\t\t\t\n\t\t}\n\n\t\t$this->_redirect('/espacepersonnel/listdemandefrais');\n\t}", "title": "" }, { "docid": "49349a3dbf3f5b467a1c37e37d80760c", "score": "0.60427636", "text": "public function supparticleAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t$id = (string) $this->_request->getParam('id');\n\t\tif ($id != \"\") {\n\n\t\t\t$article_stockesM = new Application_Model_EuArticleStockesMapper();\n\t\t\t$article_stockesM->delete($id);\n\t\t}\n\n\t\t$this->_redirect('/espacepersonnel/listarticle');\n\t}", "title": "" }, { "docid": "bf38b66c17f52888071a02d1145d8af5", "score": "0.60281724", "text": "public function suppression_membre(){\r\n\t\t\t\t# code...\r\n\t\t\t\t$id_responsable_to_delete = $this->input->post('id_responsable_to_delete');\r\n\t\t\t\t$this->admin_model->delete_responsable($id_responsable_to_delete);\r\n\t\t\t}", "title": "" }, { "docid": "27a94557f6a394be06012a0696ac96d9", "score": "0.5965298", "text": "function formSuppression(){\n?>\n\t<?php\n\t$bdd = connexionBDD();\n\t$requeteOffre = \"SELECT * FROM Offre\";\n\t$resultatOffre = $bdd->query($requeteOffre);\n\t$tableau_assocOffre = $resultatOffre->fetchAll(PDO::FETCH_ASSOC);\n\n\t$requeteClient = \"SELECT * FROM `client` ORDER BY `client`.`nom_Client` ASC \";\n\t$resultatClient = $bdd->query($requeteClient);\n\t$tableau_assocClient = $resultatClient->fetchAll(PDO::FETCH_ASSOC);\n\t\n\t$requeteDebug = \"SELECT \n\t\t\t\t\tpages_debugs.name,\n\t\t\t\t\toffre.nom_Offre,\n\t\t\t\t\tpages_debugs.id_pages_debugs\n\t\t\t\t\tFROM pages_debugs \n\t\t\t\t\tINNER JOIN offre ON pages_debugs.id_offre = offre.ID_Offre \n\t\t\t\t\tORDER BY `offre`.`nom_Offre` ASC\n\t\t\t\t\t\";\t//selection des informations du débug\n\t\t\t\t\t\t\t\t\n\t$resultatDebug = $bdd->query($requeteDebug);\n\t$tableau_assocDebug = $resultatDebug->fetchAll(PDO::FETCH_ASSOC);\n\n\t\n\n\t?>\n\t<form method=\"post\" action=\"\">\n\t\t<fieldset class =\"fieldset_nav\">\n\t\t<legend class=\"legend_nav\">Suppression d'une offre</legend>\n\t\t<label>Offre : </label>\n\t\t<select name=\"supp_offre\">\n\t\t<option value=\"Selectionner\" selected ='selected' >Selectionner</option>\n\t\t<?php\n\t\t\n\t\tforeach ($tableau_assocOffre as $tableauOffre){\n\t\t\techo \"<option value=\".$tableauOffre['nom_Offre'].\">\".$tableauOffre['nom_Offre'].\"</option>\";\n\n\t\t}\n\t\t?>\n\t\t</select>\n\t\t<input type=\"submit\" value=\"Supprimer\" />\n\n\t</fieldset>\n\n\t</form>\n\n\t<form method=\"post\" action=\"\">\n\t\t<fieldset class =\"fieldset_nav\">\n\t\t<legend class=\"legend_nav\">Suppression d'un client</legend>\n\t\t<label>Client : </label>\n\t\t<select name=\"supp_client\">\n\t\t<option value=\"Selectionner\" selected ='selected' >Selectionner</option>\n\n\t\t\t<?php\n\t\t\tforeach ($tableau_assocClient as $tableauClient){\n\t\t\t\t\techo \"<option value=\".$tableauClient['nom_Client'].\">\".$tableauClient['nom_Client'].\"</option>\";\n\t\t\t}\n\t\t?>\n\t\t</select>\n\n\t\t<input type=\"submit\" value=\"Supprimer\" />\n\t\n\t\t</fieldset>\n\t</form>\n\t\n\t\n\t<form method=\"post\" action=\"\">\n\t\t<fieldset class =\"fieldset_nav\">\n\t\t<legend class=\"legend_nav\">Suppression d'un débug</legend>\n\t\t<label>débug : </label>\n\t\t<select name=\"supp_debug\">\n\t\t<option value=\"Selectionner\" selected ='selected' >Selectionner</option>\n\n\t\t\t<?php\n\t\t\tforeach ($tableau_assocDebug as $tableauDebug){\n\n\t\t\t\t\techo \"<option value=\".$tableauDebug['id_pages_debugs'].\">\".$tableauDebug['nom_Offre'].\" \".$tableauDebug['name'].\"</option>\";\n\t\t\t}\n\t\t?>\n\t\t</select>\n\n\t\t<input type=\"submit\" value=\"Supprimer\" />\n\t\n\t\t</fieldset>\n\t</form>\n\n\n<?php\n}", "title": "" }, { "docid": "8f2569606ff0821f7f9b7c45fe1483ea", "score": "0.595232", "text": "public function demande_contact(){\n $repository = $this -> getDoctrine() -> getRepository(Commande::class);\n $contacts = $repository->findBy(['statut' => 1,'status'=>'true']);\n foreach($contacts as $contact){\n $repository = $this -> getDoctrine() -> getRepository(User::class);\n $profs = $repository->findBy(['id' => $contact -> getAnnonceurId()]);\n }\n\n //nous allons recuperer la valeur du % actuelle\n $repository = $this -> getDoctrine() -> getRepository(Pourcentages::class);\n $prcs = $repository->findAll();\n $prc = 10; //valeur initiale\n foreach($prcs as $pr){\n $prc = $pr -> getPourcentage(); //nous avons recuperer le % que nous allons envoyer a la vue\n } \n\n return $this->render('admin/contacts.html.twig',[\n 'contacts' => $contacts,\n 'prc' => $prc,\n ]);\n \n }", "title": "" }, { "docid": "58e077f3be1ef3774cfc802854a50f35", "score": "0.5865166", "text": "public function RefuseQuitterPartenariat(){\r\n\t\t$groupe = new Groupe_model();\r\n\t\t// identifiant du groupe visité\r\n\t\t$groupe->id_groupe=$this->uri->segment(3, null);\r\n\t\t// 0 : refuser demande adhésion, 1 : quitter partenariat\r\n\t\t$action=1;\r\n\t\tif($groupe->refuser_demande_partenariat_annuler_partenariat($action)){\r\n\t\t\t$data['texte']=\"Suppression réussie\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$data['texte']=\"Suppression échouée\";\r\n\t\t}\r\n\t\t$this->load->view('groupe_view', $data);\r\n\t}", "title": "" }, { "docid": "6abd240e2d6db5adfb8e53a863be5673", "score": "0.5839193", "text": "public function AccorderDemandeAction($id)\n {\n\t\t$em = $this->container->get('doctrine')->getManager();\t\t\t\t\t\t\t\t\t\t\t\n\t\t$demande = $em->find('GCNAFNAFBundle:Demande', $id);\n\t\t$etatValidationDem = $demande->getIdEtat();\n\t\t \t\t\t\t\t\t\n\t\t$request = $this->container->get('request');\t \t \n\t\t$session = $request->getSession();\n\t\t\n\t\t$chefId = $session->get('cleuser');\t\t \n\t\t$ressource = $em->find('GCNAFNAFBundle:Ressource', $chefId); \n\t\t$nomChef =$ressource->getNom();\n\t\t$preChef =$ressource->getPrenom();\t\t \n\t\t\n\t\t$myUser = $session->get('IDofUser');\t\t \t \t\t\t \t\t \n\t\t$salaries = $em->find('GCNAFNAFBundle:Ressource', $myUser); \n\t\t$nomuser =$salaries->getNom();\n\t\t$preuser =$salaries->getPrenom();\n\t\t$mailuser =$salaries->getMail();\n\nif( $etatValidationDem == 'a' ){ \t\t\n\t \t// modification de damande\t\t\t\t\t\t\n\t\t$etat =$demande->setIdEtat(\"v\");\n\t\t$valid=$demande->setValidateur($nomChef);\t\n\t\t$datejour= new DateTime('now'); \n\t\t$validD=$demande->setDateVal($datejour);\n\t\t$em->persist($demande);\n\t\t$em->flush();\n\t\t\n\t\t//newsletter \n\t\t$message = \\Swift_Message::newInstance()\n\t\t\t->setSubject('[noreply]-Validation de votre demande de conge NAF')\n\t\t\t->setFrom('b.hassiki.bts@gmail.com')\n\t\t\t->setTo($mailuser)\n\t\t\t->setBody('');\n\t\t$message->setBody($this->renderView('GCNAFNAFBundle:Admin:EmailPageReponse.html.twig', array(\n\t\t'nom' => $nomuser,'prenom' => $preuser,'ValidateurNom' => $nomChef,'ValidateurPren' => $preChef ,'etatfinalecng' =>'v',)),'text/html');\t\t\t\t\t\n\t\t$this->get('mailer')->send($message);\n\t\t\n\t\t$EtatsCng = new EtatConge();\n\t \t$form = $this->container->get('form.factory')->create(new UserDemandeForm(), $EtatsCng);\t\t\n\t\t\n\t\t$qb = $em->createQueryBuilder();\n\t\t$qb->select('d.idDem,d.dateD,d.dateF,d.dateEnrg,d.nbrJr,r.id,e.idEtat,e.nomEtat,t.idTypes,t.nomCng')\n\t\t\t->from('GCNAFNAFBundle:Demande', 'd')\n\t\t\t->from('GCNAFNAFBundle:Ressource', 'r')\n\t\t\t->from('GCNAFNAFBundle:EtatConge', 'e')\n\t\t\t->from('GCNAFNAFBundle:TypesConges', 't')\t\t\t\t\n\t\t\t->where('r.id = :mycle')\t\t\t\t\n\t\t\t->andWhere('r.id = d.idUser ')\t\t\t\t\t\t\t\t\n\t\t\t->andWhere('e.idEtat = d.idEtat ')\t\t\t\t\n\t\t\t->andWhere('t.idTypes = d.idCng ')\t\t\t\t\t\t\t\t\t\t\n\t\t\t->orderBy('d.dateEnrg', 'ASC');\t\n\t\t$qb->setParameter('mycle', $myUser);\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t$query = $qb->getQuery(); \n\t\t$total = $query->getResult();\t\t\t\n\t\t\n\t\treturn $this->container->get('templating')->renderResponse('GCNAFNAFBundle:Chef:ListeDemandesUsers.html.twig', array( \n 'total' => $total,\n\t\t\t'nom' => $nomChef,\n\t\t\t'prenom' => $preChef,\n\t\t\t'nomuser' => $nomuser,\n\t\t\t'preuser' => $preuser,\n\t\t\t'id' => $chefId,\n\t\t\t'form' => $form->createView(),\t\t\n ));\t\n}\t\nif( $etatValidationDem != 'a' ){ return new RedirectResponse($this->container->get('router')->generate('GCNAFNAFBundle_Userequipe_demandes',array('id'=> $myUser)));}\t\t\t\n\n}", "title": "" }, { "docid": "18475cc477be4cec99c642dd56d6f363", "score": "0.5816227", "text": "public function supprimerDemande()\n\t{\n\t}", "title": "" }, { "docid": "6ef5ad8fdd0623fbcf1d9d4eab28a675", "score": "0.5787867", "text": "public function actionDelete() {\n $id = Yii::app()->request->getPost('id');\n $rs = Promotionprocedureregister::model()->findAll(\"promotion=:promotion\", array(\":promotion\" => $id));\n $count = count($rs);\n if ($count <= 0) {\n Yii::app()->db->createCommand()\n ->delete(\"promotionprocedure\", \"id='$id'\");\n echo \"0\";\n } else {\n echo \"1\";\n }\n }", "title": "" }, { "docid": "6667b8114a04e9329d44a907fff91a0e", "score": "0.5770787", "text": "public function addoffredemandeAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\tif (isset($_POST['ok']) && $_POST['ok'] == \"ok\") {\n\t\t\tif (isset($_POST['type_offre_demande']) && $_POST['type_offre_demande'] != \"\" && isset($_POST['code_membre']) && $_POST['code_membre'] != \"\" && isset($_POST['code_compte']) && $_POST['code_compte'] != \"\") {\nif(isset($_POST['id_credit']) && $_POST['id_credit'] != \"\"){$id_credit = $_POST['id_credit'];}else{$id_credit = NULL;}\n\t\t\t\t$date_id = new Zend_Date(Zend_Date::ISO_8601);\n\n\t\t\t\t$offre_demande = new Application_Model_EuOffreDemande();\n\t\t\t\t$m_offre_demande = new Application_Model_EuOffreDemandeMapper();\n\n\t\t\t\t\t$compt_offre_demande = $m_offre_demande->findConuter() + 1;\n\n\t\t\t\t\t$offre_demande->setId_offre_demande($compt_offre_demande);\n\t\t\t\t\t$offre_demande->setType_offre_demande($_POST['type_offre_demande']);\n\t\t\t\t\t$offre_demande->setCode_membre($_POST['code_membre']);\n\t\t\t\t\t$offre_demande->setCode_compte($_POST['code_compte']);\n\t\t\t\t\t$offre_demande->setId_credit($id_credit);\n\t\t\t\t\t$offre_demande->setCode_cat(NULL);\n\t\t\t\t\t//$offre_demande->setNum_offre_demande($compt_offre_demande);\n\t\t\t\t\tif($_POST['type_offre_demande'] == \"Offre\"){\n\t\t\t\t\t$offre_demande->setType_credit_of($_POST['type_credit_of1']);\n\t\t\t\t\t$offre_demande->setType_credit_de($_POST['type_credit_de1']);\n\t\t\t\t\t}else{\n\t\t\t\t\t$offre_demande->setType_credit_of($_POST['type_credit_of2']);\n\t\t\t\t\t$offre_demande->setType_credit_de($_POST['type_credit_de2']);\n\t\t\t\t\t}\n\t\t\t\t\t$offre_demande->setDate_offre_demande($date_id->toString('yyyy-MM-dd HH:mm:ss'));\n\t\t\t\t\t$m_offre_demande->save($offre_demande);/**/\n\n\t\t\t\t\t$this->_redirect('/espacepersonnel/listoffredemande');\n\t\t\t} else {\n\t\t\t\t$this->view->error = \"Champs * obligatoire\";\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8c439f2a101510edde78a54a483f74d4", "score": "0.57495135", "text": "public function suppObjet() {\r\n\t\t// On va supprimer l'opération de débit correspondant à notre virement\r\n\t\t$requete = \"SELECT idOperation FROM mycompta_operations WHERE idVirement = '\" .\r\n\t\t\t$this->idVirement . \"' AND type = 'D'\";\r\n\t\t$resultat = $this->myQuery($requete);\r\n\t\t$idOperationDebit = $resultat[0]['idOperation'];\r\n\t\t$monOperationDebit = new Operation($idOperationDebit);\r\n\t\t$monOperationDebit->suppObjet();\r\n\t\t\r\n\t\t// On va supprimer l'opération de crédit correspondant à notre virement\r\n\t\t$requete = \"SELECT idOperation FROM mycompta_operations WHERE idVirement = '\" .\r\n\t\t\t$this->idVirement . \"' AND type = 'C'\";\r\n\t\t$resultat = $this->myQuery($requete);\r\n\t\t$idOperationCredit = $resultat[0]['idOperation'];\r\n\t\t$monOperationCredit = new Operation($idOperationCredit);\r\n\t\t$monOperationCredit->suppObjet();\r\n\t\t\r\n\t\t// On supprimer le virement\r\n\t\t$maConnexion = $this->ouvreConnexion();\r\n\t\t$requete = $maConnexion->prepare(\"DELETE FROM \" . $this->nomTable . \" WHERE \" . $this->nomID . \" = '\" . $this->getValeur($this->getValeur('nomID')) .\"'\" );\r\n\t\t$requete->execute();\r\n\t}", "title": "" }, { "docid": "84244ab9de59f86acc6f48d1d338baef", "score": "0.5728848", "text": "public function dispro($id_pesan='0')\n\t{\n\t\tif ($id_pesan!=='0') {\n\t\t\t// Ambil data user\n\t\t\t$cek \t\t\t\t= $this->Model_admin->cekAkun($this->session->user);\n\t\t\t$pengelola\t\t\t= $this->Model_admin->getAkunPengelola($this->session->user);\n\t\t\t$id_pengelola\t\t= $pengelola->IDPengelola;\n\n\t\t\t// Dapatkan detil pemesanan/request (gabungan tabel tb_pemesanan dan tb_umkm_data)\n\t\t\t$this->load->model('Model_diskusi');\n\t\t\t$detil_pemesanan\t= $this->Model_diskusi->getPemesanan($id_pesan, $id_pengelola, 'pengelola');\n\n\t\t\t// Cek jika pemesanan ada hubungannya dengan pengelola\n\t\t\tif ( is_null($detil_pemesanan) ) {\n\t\t\t\t$data = array(\n\t\t\t\t\t'akun'\t\t\t\t=> $cek,\n\t\t\t\t\t'pemesanan'\t\t\t=> null\n\t\t\t\t);\n\n\t\t\t\t$_SESSION['alert'] = 'Diskusi tidak ditemukan';\n\t\t\t\t$this->session->mark_as_flash('alert');\n\t\t\t}\n\t\t\telse{\n\t\t\t\tunset($_SESSION['alert']);\n\n\t\t\t\t// Cek designer\n\t\t\t\t// Jika designer ada, ambil nama designer. Jika tidak, beri keterangan 'Ditentukan Pengelola'\n\t\t\t\t$data_designer\t\t= array();\n\t\t\t\tif( is_null($detil_pemesanan->IDDesigner) ){\n\t\t\t\t\t$data_designer['designer']\t= 'Ditentukan Pengelola';\n\t\t\t\t\t$data_designer['ada']\t\t= FALSE;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$designer \t\t\t\t\t= $this->Model_diskusi->getNamaDesainer($detil_pemesanan->IDDesigner);\n\t\t\t\t\t$data_designer['designer']\t= $designer->Nama_lengkap;\n\t\t\t\t\t$data_designer['ada']\t\t= TRUE;\n\t\t\t\t}\n\n\t\t\t\t// Ambil data diskusi(komentar-komentar) berdasarkan IDPesan\n\t\t\t\t$daftar_komentar = $this->Model_diskusi->getDispro($id_pesan);\n\n\t\t\t\t$data = array(\n\t\t\t\t\t'akun'\t\t\t\t=> $cek,\n\t\t\t\t\t'pemesanan'\t\t\t=> $detil_pemesanan,\n\t\t\t\t\t'designer'\t\t\t=> $data_designer,\n\t\t\t\t\t'daftar_komentar'\t=> $daftar_komentar\n\t\t\t\t);\n\t\t\t}\n\t\t\t// var_dump($data['daftar_diskusi']); // untuk liat isi array $data\n\n\t\t\t$this->load->helper('my_helper');\n\n\t\t\t// Load view\n\t\t\t$this->load->view('admin/dispro', $data);\n\n\t\t} else {\n\t\t\thttp_response_code('400');\n\t\t}\n\t}", "title": "" }, { "docid": "2dd3eaca0f38321e884f795ebb40ff12", "score": "0.57137674", "text": "public function stampaprenotazioneAction()\n {\n $codice=$this->_getParam('codice');\n $pren=$this->_staffModel->getPrenotazioneByCodice($codice);\n $nominativo=$this->_utenteModel->getClienteByUser($pren->username);\n $servizi=$this->_utenteModel->getPrenotazioniByCodPrenot($pren->cod_prenotazione);\n \n $this->view->prenotazione =$pren;\n $this->view->nominativo =$nominativo;\n $this->view->servizi =$servizi;\n \n $this->_helper->layout()->disableLayout();\n }", "title": "" }, { "docid": "4d528a3def814bbb3e069aa11a4126a4", "score": "0.570791", "text": "public function addpropositionAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t$id = (int) $this->_request->getParam('id');\n\t\tif ($id > 0) {\n\t\t\t$this->view->id_appel_offre = $id;\n\n\t\t\tif (isset($_POST['ok']) && $_POST['ok'] == \"ok\") {\n\t\t\t\tif (isset($_POST['autre_budget']) && $_POST['autre_budget'] != \"\") {//isset($_POST['montant_salaire']) && $_POST['montant_salaire'] != \"\" && \n\n\t\t\t\t\t$montant_proposition = 0;\n\t\t\t\t\tfor ($i = 0; $i < sizeof($_POST['prix_unitaire']); $i++) {\n\t\t\t\t\t\t$montant_proposition = $montant_proposition + ($_POST['prix_unitaire'][$i] * $_POST['quantite'][$i]);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$appeloffre = new Application_Model_EuAppelOffre();\n\t\t\t\t\t$m_appeloffre = new Application_Model_EuAppelOffreMapper();\n\t\t\t\t\t$m_appeloffre->find($id, $appeloffre);\n\n\t\t\t\t\t\n\t\t\t\t\t$pck = Util_Utils::getParametre('pck', 'nr');\n\t\t\t\t\t$pre = $appeloffre->duree_projet;\n\t\t\t\t\t$investissement = $montant_proposition + $_POST['autre_budget'];\n\t\t\t\t\t$salaire = $investissement * (($pre / $pck) - 1);\n\t\t\t\t\t\n\n\n\t\t\t\t\t$date_id = new Zend_Date(Zend_Date::ISO_8601);\n\n\t\t\t\t\t$proposition = new Application_Model_EuProposition();\n\t\t\t\t\t$m_proposition = new Application_Model_EuPropositionMapper();\n\n\t\t\t\t\t$compt_proposition = $m_proposition->findConuter() + 1;\n\n\t\t\t\t\t$proposition->setId_proposition($compt_proposition);\n\t\t\t\t\t$proposition->setId_appel_offre($_POST['id_appel_offre']);\n\t\t\t\t\t$proposition->setId_utilisateur(NULL);\n\t\t\t\t\t$proposition->setCode_membre_morale($_POST['code_membre_morale']);\n\t\t\t\t\t$proposition->setDisponible($_POST['disponible']);\n\t\t\t\t\t$proposition->setMontant_proposition($montant_proposition);\n\t\t\t\t\t$proposition->setMontant_salaire(round($salaire));\n\t\t\t\t\t$proposition->setAutre_budget($_POST['autre_budget']);\n\t\t\t\t\t$proposition->setChoix_proposition($_POST['choix_proposition']);\n\t\t\t\t\t$proposition->setDate_creation($date_id->toString('yyyy-MM-dd HH:mm:ss'));\n\t\t\t\t\t$m_proposition->save($proposition);\n\n\t\t\t\t\tfor ($i = 0; $i < sizeof($_POST['libelle_produit']); $i++) {\n\t\t\t\t\t\t$detail_proposition = new Application_Model_EuDetailProposition();\n\t\t\t\t\t\t$m_detail_proposition = new Application_Model_EuDetailPropositionMapper();\n\n\t\t\t\t\t\t$compt_detail_proposition = $m_detail_proposition->findConuter() + 1;\n\n\t\t\t\t\t\t$m_proposition = new Application_Model_EuPropositionMapper();\n\t\t\t\t\t\t$compt_proposition = $m_proposition->findConuter();\n\n\t\t\t\t\t\t$detail_proposition->setId_detail_proposition($compt_detail_proposition);\n\t\t\t\t\t\t$detail_proposition->setId_proposition($compt_proposition);\n\t\t\t\t\t\t$detail_proposition->setLibelle_produit($_POST['libelle_produit'][$i]);\n\t\t\t\t\t\t$detail_proposition->setPrix_unitaire($_POST['prix_unitaire'][$i]);\n\t\t\t\t\t\t$detail_proposition->setQuantite($_POST['quantite'][$i]);\n\t\t\t\t\t\t$detail_proposition->setType_produit($_POST['type_produit'][$i]);\n\t\t\t\t\t\t$detail_proposition->setUnite_mesure($_POST['unite_mesure'][$i]);\n\t\t\t\t\t\t$detail_proposition->setAppartenance($_POST['appartenance'][$i]);\n\t\t\t\t\t\t$detail_proposition->setCode_membre_morale($_POST['code_membre_morale_four'][$i]);\n\t\t\t\t\t\t$detail_proposition->setMdv($_POST['mdv'][$i]);\n\t\t\t\t\t\t$m_detail_proposition->save($detail_proposition);\n\t\t\t\t\t}\n\n\n\n\n\t\t\t\t\tfor ($i = 0; $i < sizeof($_POST['code_membre']); $i++) {\n\t\t\t\t\t\t$membre_proposition = new Application_Model_EuMembreProposition();\n\t\t\t\t\t\t$m_membre_proposition = new Application_Model_EuMembrePropositionMapper();\n\n\t\t\t\t\t\t$compt_membre_proposition = $m_membre_proposition->findConuter() + 1;\n\n\t\t\t\t\t\t$m_proposition = new Application_Model_EuPropositionMapper();\n\t\t\t\t\t\t$compt_proposition = $m_proposition->findConuter();\n\n\n\t\t\t\t\t\t$membre_proposition->setId_membre_proposition($compt_membre_proposition);\n\t\t\t\t\t\t$membre_proposition->setId_proposition($compt_proposition);\n\t\t\t\t\t\t$membre_proposition->setCode_membre($_POST['code_membre'][$i]);\n\t\t\t\t\t\t//$membre_proposition->setSalaire($_POST['salaire'][$i]);\n\t\t\t\t\t\t$m_membre_proposition->save($membre_proposition);\n\t\t\t\t\t}\n\n\n\t\t\t\t\t$this->_redirect('/espacepersonnel/listproposition');\n\t\t\t\t} else {\n\t\t\t\t\t$this->view->error = \"Champs * obligatoire\";\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->_redirect('/index/appeloffre');\n\t\t}\n\t}", "title": "" }, { "docid": "b83b8a9cd65dc4ea452a908ee1524ceb", "score": "0.5704979", "text": "function devis()\n\t{\n\t\t$destinataire = 'benjamin_bitton@hotmail.com';\n\t\t$expediteur = 'secretaria@unitedtelecom.fr';\n\t\t$objet = 'Rappel'; // Objet du message\n\t\t$headers = 'MIME-Version: 1.0' . \"\\n\"; // Version MIME\n\t\t$headers .= 'Content-type: text/html; charset=ISO-8859-1'.\"\\n\"; // l'en-tete Content-type pour le format HTML\n\t\t$headers .= 'Reply-To: '.$expediteur.\"\\n\"; // Mail de reponse\n\t\t$headers .= 'From: \"UnitedTelecom\"<'.$expediteur.'>'.\"\\n\"; // Expediteur\n\t\t$headers .= 'Delivered-to: '.$destinataire.\"\\n\"; // Destinataire\n\t\t\n\t\t$presta = \"\";\n\t\tforeach ($_POST[\"presta\"] as $value) {\n\t\t\t$presta = $presta . \"/\" .$value;\n\t\t}\n\n\t\t// message\n\t\t $message = '\n\t\t <html>\n\t\t <head>\n\t\t <title>Rappel</title>\n\t\t </head>\n\t\t <body>\n\t\t\t<p> Une nouvelle demande de devis vous est parvenu.</p>\n\t\t\t<p>Besoins : ' . $presta . '</p>\n\t\t\t<p>' . $_POST[\"nom\"] . ' ' . $_POST[\"prenom\"] . '</p>\n\t\t\t<p>Societe : ' . $_POST[\"societe\"] . '</p>\n\t\t\t<p>Email : ' . $_POST[\"email\"] . '</p>\n\t\t\t<p>Adresse : ' . $_POST[\"adresse\"] . ' '. $_POST[\"code-postal\"] . ' ' . $_POST[\"ville\"] . '</p>\n\t\t\t<p>Téléphone : ' . $_POST[\"telephone\"] . '</p>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<p>Son projet : ' . $_POST[\"projet\"] . '<p>\n\t\t </body>\n\t\t </html>\n\t\t ';\n\n\t\tif (mail($destinataire, $objet, $message, $headers)) // Envoi du message\n\t\t{\n\t\t\theader(\"Location: ../devis.php?retour=1\");\n\t\t}\n\t\telse // Non envoyé\n\t\t{\n\t\t\theader(\"Location: ../devis.php?retour=0\");\n\t\t}\n\t}", "title": "" }, { "docid": "a0ea6fbf7f09d590937e8f17500dd0da", "score": "0.566482", "text": "public function fusionpropositionAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\n\t\t\tif (isset($_POST['ok']) && $_POST['ok'] == \"ok\" && isset($_POST['id_appel_offre']) && $_POST['id_appel_offre'] != \"\") {\n\n\t\t\t\t\t$date_id = new Zend_Date(Zend_Date::ISO_8601);\n\n\t\t\t\t\t$proposition = new Application_Model_EuProposition();\n\t\t\t\t\t$m_proposition = new Application_Model_EuPropositionMapper();\n\n\t\t\t\t\t$compt_proposition = $m_proposition->findConuter() + 1;\n\n$montant_proposition_total = 0;\n$montant_salaire_total = 0;\n$autre_budget_total = 0;\n\n\n\t\t$appeloffre = new Application_Model_EuAppelOffre();\n\t\t$appeloffreM = new Application_Model_EuAppelOffreMapper();\n\t\t$appeloffreM->find($_POST['id_appel_offre'], $appeloffre);\n\n\t\t$proposition5 = new Application_Model_EuPropositionMapper();\n\t\t$entries_proposition5 = $proposition5->fetchAll5($_POST['id_appel_offre']);\n\t\tforeach ($entries_proposition5 as $entry_proposition5):\n\t\n$proposition2 = new Application_Model_EuProposition();\n$m_proposition2 = new Application_Model_EuPropositionMapper();\n$m_proposition2->find($entry_proposition5->id_proposition, $proposition2);\n\n$montant_proposition_total += $proposition2->montant_proposition;\n$montant_salaire_total += $proposition2->montant_salaire;\n$autre_budget_total += $proposition2->autre_budget;\n\t\t\n\t\t$proposition2->setChoix_proposition(0);\n\t\t$m_proposition2->update($proposition2);\n\t\tendforeach;\n\n\n\n\n\t\t\t\t\t$proposition->setId_proposition($compt_proposition);\n\t\t\t\t\t$proposition->setId_appel_offre($_POST['id_appel_offre']);\n\t\t\t\t\t$proposition->setId_utilisateur(NULL);\n\t\t\t\t\t$proposition->setCode_membre_morale($sessionmembre->code_membre);\n\t\t\t\t\t$proposition->setDisponible(0);\n\t\t\t\t\t$proposition->setMontant_proposition($montant_proposition_total);\n\t\t\t\t\t$proposition->setMontant_salaire($montant_salaire_total);\n\t\t\t\t\t$proposition->setAutre_budget($autre_budget_total);\n\t\t\t\t\t$proposition->setPreselection(1);\n\t\t\t\t\t$proposition->setChoix_proposition(1);\n\t\t\t\t\t$proposition->setDate_creation($date_id->toString('yyyy-MM-dd HH:mm:ss'));\n\t\t\t\t\t$m_proposition->save($proposition);\n\n\n\n\t\t$proposition = new Application_Model_EuPropositionMapper();\n\t\t$entries_proposition = $proposition->fetchAll5($_POST['id_appel_offre']);\n\t\tforeach ($entries_proposition as $entry_proposition):\nif (isset($_POST['fusion'.$entry_proposition->id_proposition.'']) && $_POST['fusion'.$entry_proposition->id_proposition.''] != \"\") {\n\t\t\t\t\t\n\t\t\t\t\t$detail_proposition = new Application_Model_EuDetailPropositionMapper();\n\t\t\t\t\t$entries_detail_proposition = $detail_proposition->fetchAll2($entry_proposition->id_proposition);\n\t\t\t\t\t\n\t\t\t\t\tforeach ($entries_detail_proposition as $entry_detail_proposition):\n\t\t\t\t\t\t$detail_proposition = new Application_Model_EuDetailProposition();\n\t\t\t\t\t\t$m_detail_proposition = new Application_Model_EuDetailPropositionMapper();\n\n\t\t\t\t\t\t$compt_detail_proposition = $m_detail_proposition->findConuter() + 1;\n\n\t\t\t\t\t\t$detail_proposition->setId_detail_proposition($compt_detail_proposition);\n\t\t\t\t\t\t$detail_proposition->setId_proposition($compt_proposition);\n\t\t\t\t\t\t$detail_proposition->setLibelle_produit($entry_detail_proposition->libelle_produit);\n\t\t\t\t\t\t$detail_proposition->setPrix_unitaire($entry_detail_proposition->prix_unitaire);\n\t\t\t\t\t\t$detail_proposition->setQuantite($entry_detail_proposition->quantite);\n\t\t\t\t\t\t$detail_proposition->setType_produit($entry_detail_proposition->type_produit);\n\t\t\t\t\t\t$detail_proposition->setUnite_mesure($entry_detail_proposition->unite_mesure);\n\t\t\t\t\t\t$detail_proposition->setAppartenance($entry_detail_proposition->appartenance);\n\t\t\t\t\t\t$detail_proposition->setCode_membre_morale($entry_detail_proposition->code_membre_morale);\n\t\t\t\t\t\t$detail_proposition->setMdv($entry_detail_proposition->mdv);\n\t\t\t\t\t\t$m_detail_proposition->save($detail_proposition);\n\t\t\t\t\tendforeach;\n\t\t\n\t\t\n\t\t\n\t\t$membre_proposition = new Application_Model_EuMembrePropositionMapper();\n\t\t$entries_membre_proposition = $membre_proposition->fetchAll2($entry_proposition->id_proposition);\n\t\t\t\t\tforeach ($entries_membre_proposition as $entry_membre_proposition):\n\t\t\t\t\t\t$membre_proposition = new Application_Model_EuMembreProposition();\n\t\t\t\t\t\t$m_membre_proposition = new Application_Model_EuMembrePropositionMapper();\n\n\t\t\t\t\t\t$compt_membre_proposition = $m_membre_proposition->findConuter() + 1;\n\n\t\t\t\t\t\t$membre_proposition->setId_membre_proposition($compt_membre_proposition);\n\t\t\t\t\t\t$membre_proposition->setId_proposition($compt_proposition);\n\t\t\t\t\t\t$membre_proposition->setCode_membre($entry_membre_proposition->code_membre);\n\t\t\t\t\t\t//$membre_proposition->setSalaire($entry_membre_proposition->salaire);\n\t\t\t\t\t\t$m_membre_proposition->save($membre_proposition);\n\t\t\t\t\tendforeach;\n\t\n\t\n$proposition2 = new Application_Model_EuProposition();\n$m_proposition2 = new Application_Model_EuPropositionMapper();\n$m_proposition2->find($entry_proposition->id_proposition, $proposition2);\n\n$montant_proposition_total += $proposition2->montant_proposition;\n$montant_salaire_total += $proposition2->montant_salaire;\n$autre_budget_total += $proposition2->autre_budget;\n\t\t\n\t\t$proposition2->setChoix_proposition(0);\n\t\t$m_proposition2->update($proposition2);\n}\n\t\tendforeach;\n\n\n$sessionmembre->errorlogin = \"Opération de fusion des propositions en une seule bien effectuée\";\n\n\t\t} else {\n$sessionmembre->errorlogin = \"Vous devez selectionner au moins une proposition \";\n\t\t}\n\t\t\t\t\t$this->_redirect('/espacepersonnel/listpropositionpreselection2/id/'.$_POST['id_appel_offre']);\n\t}", "title": "" }, { "docid": "a4c958e2b6c9ec901393377f3460cbb7", "score": "0.5662356", "text": "public function DescatalogarAction() {\n if ($this->values['permisos']['permisosModulo']['UP']) {\n\n $lote = new Lotes();\n $tablaLotes = $lote->getDataBaseName() . \".\" . $lote->getTableName();\n $existencias = new Existencias();\n $tablaExistencias = $existencias->getDataBaseName() . \".\" . $existencias->getTableName();\n unset($existencias);\n\n $em = new EntityManager($lote->getConectionName());\n if ($em->getDbLink()) {\n $query = \"\n UPDATE {$tablaLotes} SET Vigente='0'\n WHERE IDLote not in (\n SELECT IDLote\n FROM {$tablaExistencias} e\n WHERE (\n IDLote>0 AND\n (\n Reales>0 OR\n Reservadas>0 OR\n Entrando>0\n )\n )\n GROUP BY IDLote\n ORDER BY IDLote\n );\";\n $em->query($query);\n $em->desConecta();\n }\n unset($lote);\n \n return $this->indexAction();\n } else {\n return array('template' => '_global/forbiden.html.twig');\n }\n }", "title": "" }, { "docid": "7cc881b945dde22ce4588669ac81405a", "score": "0.5654197", "text": "function DisplayDetalle(){\t\n\t\n global $ses_usr_id;\n global $id_ot,$tipoDes,$id_estado,$esta_tipo,$transicion,$destino,$ot_tipo,$accion; \n $valororigen =os_patio($id_ot);\n if($valororigen =='P'){\n insertahistorial('Usuario '.get_nombre_usr( $ses_usr_id ).' Intenta OT ver '.$id_ot.' con origen en venta patio ');\n ?>\n <script language=\"JavaScript\">\n window.alert(\"Nó se pueden revisar OT con origen en CPE\");\n location.href='monitor_despacho.php';\n </script>\n <?php\n }\n\n\t$MiTemplate = new Template();\n // asignamos degug maximo\n $MiTemplate->debug = 0;\n // root directory de los templates\n $MiTemplate->set_root(DIRTEMPLATES);\n // variables perdidas\n $MiTemplate->set_unknowns(\"remove\");\n\n $MiTemplate->set_var(\"PAGETITLE\",NOMBRE_SITIO . ' - ' . NOMBRE_PAGINA);\n $MiTemplate->set_var(\"TEXT_TITULO\",TEXT_TITULO);\n $MiTemplate->set_var(\"SUBTITULO1\",TEXT_2);\n $MiTemplate->set_var(\"USR_NOMBRE\",get_nombre_usr( $ses_usr_id ));\n\n // Agregamos el header\n $MiTemplate->set_file(\"header\",\"header_ident.html\");\n\n // Agregamos el main\n $MiTemplate->set_file(\"main\",\"monitor_despacho/monitor_ot_ps_detalle.htm\");\n\n\t//variables globales\n\t$MiTemplate->set_var('esta_tipo',tohtml($esta_tipo));\n\t$MiTemplate->set_var('id_estado',tohtml($id_estado));\n\t$MiTemplate->set_var('tipoDes',tohtml($tipoDes));\n\n// para cambiar los estados\n\t$MiTemplate->set_var('esta_tipo',tohtml($esta_tipo));\n\t$MiTemplate->set_var('tipoDes',tohtml($tipoDes));\n\tif ($transicion) {\n\t\tif ($transicion!='Dividir'){\n\t\t cambia_estado($id_ot,$destino,$tipoDes,$id_estado,$esta_tipo,$accion,$ot_tipo);\n\t\t}\n\t}\n $query = \"\tSELECT ot_id, id_tipodespacho,id_os, ot_fechacreacion, e.esta_tipo,e.esta_nombre, ot_tipo,e.id_estado\n\t\t\t\tFROM ot JOIN estados e on e.id_estado = ot.id_estado\n\t\t\t\tWHERE ot.ot_id = $id_ot \";\n\t\t\t\t\n\t$rq = tep_db_query($query);\n\t$res = tep_db_fetch_array( $rq );\n\t$id_os = $res['id_os'];\n\t$esta_tipo=$res['esta_tipo'];\n\t$tipoDes=$res['id_tipodespacho'];\n\t$ot_tipo=$res['ot_tipo'];\n\t$id_estado=$res['id_estado'];\n\t$MiTemplate->set_var('esta_tipo',tohtml($esta_tipo));\n\t$MiTemplate->set_var('ot_tipo',tohtml($ot_tipo));\n\t$MiTemplate->set_var('id_ot',tohtml( $res['ot_id']));\n\t$MiTemplate->set_var('tipo_ot',tohtml( $res['ot_tipo']));\n\t$MiTemplate->set_var('tipoDes',tohtml( $res['id_tipodespacho']));\n\t$MiTemplate->set_var('ot_tipo',($res['ot_tipo']=='PE')?$res['ot_tipo'] . \" - Producto Especial\":$res['ot_tipo'] . \" - Producto Stock\");\n\t$MiTemplate->set_var('ot_fechacreacion',fecha_db2php(tohtml( $res['ot_fechacreacion'])));\n\t$MiTemplate->set_var('esta_nombre',tohtml( $res['esta_nombre']));\n\n\t// Query de la OS\n $query = \"SELECT os.id_direccion, cl.clie_rut as clie_rut, clie_nombre,clie_tipo, clie_razonsocial,clie_paterno, clie_materno, clie_telefonocasa, \n\t\t\t clie_telcontacto1, clie_telcontacto2 \n\t\t\t FROM os \n\t\t\t JOIN clientes cl on cl.clie_rut= os.clie_rut\n\t\t\t WHERE id_os = $id_os \";\n\t$rq = tep_db_query($query);\n\t$res = tep_db_fetch_array( $rq );\n\t$clie_rut = $res['clie_rut'];\n\t$MiTemplate->set_var('id_direccion',$res['id_direccion']);\n\t$MiTemplate->set_var('id_os',tohtml( $id_os));\n\t// Datos cliente\n\t if ($res['clie_tipo']=='e'){\n $MiTemplate->set_var(\"empresa\",\"Empresa\");\n $MiTemplate->set_var(\"clie_razonsocial\",$res['clie_razonsocial']);\t \n\t }\n\t//$MiTemplate->set_var('clie_rut',tohtml( $res['clie_rut']) . \"-\" . digiVer($res['clie_rut']));\n\t$MiTemplate->set_var('clie_rut',tohtml( $res['clie_rut']));\n\t$MiTemplate->set_var('clie_nombre',tohtml( $res['clie_nombre']));\n\t$MiTemplate->set_var('clie_paterno',tohtml( $res['clie_paterno']));\n\t$MiTemplate->set_var('clie_materno',tohtml( $res['clie_materno']));\n\n\t// Query de la despaccho\n $queryDes = \"SELECT distinct os.id_local,os.id_direccion ,dire_nombre,dire_direccion, dire_telefono, dire_observacion, NE.DESCRIPTION AS comu_nombre ,t.nombre\n\t\t\t\tFROM os \n\t\t\t\tJOIN direcciones\tD on D.id_direccion\t= os.id_direccion\t\t\t\t\n\t\t\t\tLEFT JOIN cu_neighborhood NE ON (D.dire_localizacion = NE.LOCATION) \n\t\t\t\tJOIN clientes\t\tcl on cl.clie_rut\t= os.clie_rut\n\t\t\t\tJOIN os_detalle\t\tod on od.id_os\t= os.id_os\n\t\t\t\tJOIN tipos_despacho t on t.id_tipodespacho = od.id_tipodespacho \n\tWHERE os.id_os= \".$id_os.\" and od.id_tipodespacho=\".$tipoDes;\n\n\t$rq = tep_db_query($queryDes);\n\t$resD = tep_db_fetch_array( $rq );\n\n\t// Datos Dirección despacho\n\t$MiTemplate->set_var('diredes_nombre',tohtml( $resD['dire_nombre']));\n\t$MiTemplate->set_var('diredes_direccion',tohtml( $resD['dire_direccion']));\n\t$MiTemplate->set_var('diredes_telefono',tohtml( $resD['dire_telefono']));\n\t$MiTemplate->set_var('diredes_observacion',tohtml( $resD['dire_observacion']));\n\t$MiTemplate->set_var('diredes_comuna',tohtml( $resD['comu_nombre']));\n\t$MiTemplate->set_var('tipodespacho',tohtml( $resD['nombre']));\n\n\n\t// Query de la direccion Principal del Cliente\n $query= \"SELECT dire_nombre, dire_direccion, dire_telefono, dire_observacion, NE.DESCRIPTION AS comu_nombre\n\t\t\tFROM direcciones D\n\t\t\tLEFT JOIN cu_neighborhood NE ON (D.dire_localizacion = NE.LOCATION) \n\t\t\tWHERE clie_rut = $clie_rut AND dire_defecto = 'p' \";\n\n\t$rq = tep_db_query($query);\n\t$res = tep_db_fetch_array( $rq );\n\n\t// Direccion del cliente\n\t$MiTemplate->set_var('dirp_nombre',tohtml( $res['dire_nombre']));\n\t$MiTemplate->set_var('dirp_direccion',tohtml( $res['dire_direccion']));\n\t$MiTemplate->set_var('dirp_telefono', $res['dire_telefono']);\n\t$MiTemplate->set_var('dirp_observacion',tohtml( $res['dire_observacion']));\n\t$MiTemplate->set_var('dirp_comuna',tohtml( $res['comu_nombre']));\n\n\t// Query del detalle de la OT\n $MiTemplate->set_block(\"main\", \"LISTADO_OT\", \"BLO_detalle\");\n $query = \"SELECT cod_barra, id_os_detalle, cod_sap, osde_descripcion, osde_precio, osde_cantidad, osde_tipoprod, osde_especificacion \n\tFROM os_detalle osd\n\t\tJOIN tipos_despacho t on t.id_tipodespacho = osd.id_tipodespacho WHERE ot_id = $id_ot \";\n //query_to_set_var( $query, $MiTemplate, 1, 'BLO_detalle', 'LISTADO_OT' );\n\n\t$resultado_Det = tep_db_query($query);\n\t\n\tif($id_estado=='PG'){\t\n\t\t$CantiOTMsg = \"<td width='105'> Cantidad OT Nueva </td>\";\n\t\t$MiTemplate->set_var('CantiOTMsg', $CantiOTMsg);\n\t}\n\t$contar =0;\n\t\n\t$quer = \"SELECT COUNT( id_os_detalle) AS numero FROM os_detalle WHERE ot_id = $id_ot \";\n\t$resul = tep_db_query($quer);\n\t$numero = tep_db_fetch_array( $resul);\n\t\n\twhile( $result = tep_db_fetch_array( $resultado_Det ) ) \n\t{\n\t\t$MiTemplate->set_var('cod_barra',$result['cod_barra']);\n\t\t$MiTemplate->set_var('cod_sap',$result['cod_sap']);\n\t\t\n\t\t$MiTemplate->set_var('osde_descripcion',$result['osde_descripcion']);\n\t\t\n\t\t$MiTemplate->set_var('osde_precio',$result['osde_precio']);\n\t\t\n\t\t//echo \"Ot_id: \", $result['id_os_detalle'], \"<br>\";\n\t\t\n\t\t\n\t\t\n\t\tif($id_estado=='PG')\n\t\t{\n\t\t$cantidadACT_Old = \"<input name='CActOld\" . $result['id_os_detalle'] . \"' id='CActOld\" . $result['id_os_detalle'] . \"' type='hidden' size='8' value='\" . $result['osde_cantidad'] . \"' ReadOnly >\";\n\t\t$MiTemplate->set_var('osde_cantidadOld', $cantidadACT_Old);\t\n\t\t\n\t\t$cantidadACT = \"<input name='CAct\" . $result['id_os_detalle'] . \"' id='CAct\" . $result['id_os_detalle'] . \"' type='text' size='8' value='\" . $result['osde_cantidad'] . \"' ReadOnly >\";\n\t\t$MiTemplate->set_var('osde_cantidad', $cantidadACT);\n\t\t}\n\t\telse{\n\t\t\t$MiTemplate->set_var('osde_cantidad',$result['osde_cantidad']);\n\t\t}\n\t\tif($id_estado=='PG')\n\t\t{\t\t\t\n\t\t$cantidadOT = \"<input onBlur='restar(this, \" . $numero['numero'] . \");' name='Cnueva\" . $result['id_os_detalle'] . \"' id='Cnueva\" . $result['id_os_detalle'] . \"' type='text' size='8' value='0'>\";\n\t\t$MiTemplate->set_var('cantidadOT',$cantidadOT);\n\t\t$idCantidad = 'Cnueva' . $result['id_os_detalle'];\t\t\n\t\t$scriptCant = \"window.document.detalle.\" . $idCantidad . \".onkeypress = KeyIsNumber;\"; \n\t\t$MiTemplate->set_var('scriptCant', $scriptCant);\n\t\t}\n\t\t\n\t\t$MiTemplate->parse(\"BLO_detalle\", \"LISTADO_OT\", true);\n\t\t$contar ++; \n\t}\n\t\n\t$MiTemplate->set_var('minumero',$contar); \n \n\t//para los botones del final\n\t$query=Botones($id_estado,$esta_tipo,$tipoDes,$ot_tipo);\n\n\t$MiTemplate->set_block(\"main\", \"botones\", \"PBbotones\");\n\t\tif ( $rq1 = tep_db_query($query) ){\n\t\t\twhile( $res2 = tep_db_fetch_array( $rq1 ) ) {\n\tif (($res2['id_estado_destino']!='EE')&&($res2['id_estado_origen']!='ED')){\n\t\t\t$MiTemplate->set_var('destino',tohtml( $res2['destino']));\n\t\t\t$MiTemplate->set_var('desc_transicion',tohtml( $res2['desc_transicion']));\n\t\t\t$MiTemplate->parse(\"PBbotones\", \"botones\", true);\n\t}\n\t\t\t}\n\t\t}\n\n\t//Deja los Botones de Imprimir Guia según el estado\n\tif (($id_estado=='PG')||($id_estado=='EG') || ($id_estado=='ER')){\n\t\t$Imprimir_Guia=\"<input type='button' name='Button' value='Imprimir Guia' onClick='PrintGuia();' style='color: rgb(255, 0, 0); display:compact;'/>\";\n\t\t$MiTemplate->set_var('Imprimir_Guia',$Imprimir_Guia);\n\t\t$MiTemplate->set_var('ot',$id_ot);\n\t}\n\t\n\tif($id_estado=='PG')\n\t{\n\t\t$dividir_OT = \"<input name='dividir' id='dividir' type='button' value='Dividir OT' OnClick='enviar_form($id_ot);' disabled='true' >\";\n\t\t$MiTemplate->set_var('dividir_OT',$dividir_OT);\n\t}\n\t\n\tif (($id_estado=='PN')){\n\t\t$Imprimir_Guia=\"<input type='button' name='Button' value='Imprimir OT' onClick='PrintOT();' style='color: rgb(255, 0, 0); display:compact;' />\";\n\t\t$MiTemplate->set_var('Imprimir_Guia',$Imprimir_Guia);\n\t\t$MiTemplate->set_var('ot',$id_ot);\n\t}\n\t\n\t// Agregamos el footer\n\tinclude \"../../includes/footer_cproy.php\";\n\n $MiTemplate->pparse(\"OUT_H\", array(\"header\"), false);\n include \"../../menu/menu.php\";\n $MiTemplate->parse(\"OUT_M\", array(\"main\",\"footer\"), true);\n $MiTemplate->p(\"OUT_M\");\n\n}", "title": "" }, { "docid": "a8db5db9b42e88bfe2b13ddc1efc1869", "score": "0.56352246", "text": "public function adddemandeAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\tif (isset($_POST['ok']) && $_POST['ok'] == \"ok\") {\n\t\t\tif (isset($_POST['objet_demande']) && $_POST['objet_demande'] != \"\") {\n\n\t\t\t\t$date_id = new Zend_Date(Zend_Date::ISO_8601);\n\n\t\t\t\t$demande = new Application_Model_EuDemande();\n\t\t\t\t$m_demande = new Application_Model_EuDemandeMapper();\n\n\t\t\t\t$id_demande = $m_demande->findConuter() + 1;\n\n\t\t\t\t\t$demande->setId_demande($id_demande);\n\t\t\t\t\t$demande->setObjet_demande($_POST['objet_demande']);\n\t\t\t\t\t$demande->setDescription_demande($_POST['description_demande']);\n\t\t\t\t\t$demande->setDate_demande($date_id->toString('yyyy-MM-dd HH:mm:ss'));\n\t\t\t\t\t$demande->setCode_membre_morale($_POST['code_membre_morale']);\n\t\t\t\t\t$demande->setPublier($_POST['publier']);\n\t\t\t\t\t$m_demande->save($demande);\n\n\t\t\t\t\t//$this->_redirect('/espacepersonnel/listdemande');\n\t\t\t} else {\n\t\t\t\t$this->view->error = \"Champs * obligatoire\";\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "086490199c502eb30fc0638c75067753", "score": "0.5600443", "text": "public function impostaPaginaGuest() {\r\n $this->assign('title','Enoteca On-line');\r\n $this->assign('menu',$this->_main_button);\r\n\t\t$this->assign('main_content',$this->_main_content);\r\n $this->aggiungiTastoRegistrazione();\r\n }", "title": "" }, { "docid": "cf0dba74cabcac8135580156d0c412cd", "score": "0.55974364", "text": "function affiche_commande(){\n\t$ID = $_SESSION['ID'];\n\n\t$bd = bdConnecter();\n\tmysqli_set_charset($bd,\"utf8\");\n\n\t//On recherche toute les informations sur les commandes du client\n\t$sql = 'SELECT * FROM commandes INNER JOIN clients ON coIDClient = cliID INNER JOIN compo_commande ON coID=ccIDCommande INNER JOIN livres ON ccIDLivre=liID WHERE coIDClient = '.$ID.'';\n\t$r = mysqli_query($bd, $sql) or fd_bd_erreur($bd,$sql);\n\t$enr = mysqli_fetch_assoc($r);\n\t//Si il n'a pas encore passe de commande on le lui indique\n\tif($enr<= 0){\n\t\techo '<br><p>Vous n\\'avez passé aucune commande.</p>';\n\t}\n\t//Sinon on affiche les commandes\n\telse{\n\t\techo '<br><p>Voici les commandes que vous avez passées. </p>';\n\t\twhile($enr) {\n\t\t\t$coID = $enr['coID'];\n\t\t\t$date = $enr['coDate'];\n\t\t\t$heure = $enr['coHeure'];\n\t\t\t//On ajoute les 0 manquant a l'heure sinon les 0 en debut de chiffre sont supprime\n\t\t\twhile(strlen($heure) < 4)\n \t\t\t\t $heure = \"0\" . $heure;\n\t\t\t$Total = 0;\n\t\t\techo '<h2> Commande #'.$coID.' passée le '.substr($date,-2).'/'.substr($date, -4,2).'/'.substr($date, -8,4).' à '.substr($heure,-4,2).':'.substr($heure,-2).'</h2>';\n\t\t\techo '<table class=\"PanierCommande\"><tr><th class=\"tableTaille\" style=\"width:410px;\">Article</th><th style=\"width:75px;\"> Quantité </th><th style=\"width:70px;\"> Prix U. </th><th style=\"width:70px;\"> Total </th></tr>';\n\t\t\twhile($coID == $enr['coID']){\n\t\t\t\t$livres=$enr['liID'];\n\t\t\t\t$titre = $enr['liTitre'];\n\t\t\t\t$quantite = $enr['ccQuantite'];\n\t\t\t\t$prix = $enr['liPrix'];\n\t\t\t\t$Total += $quantite * $prix; //Total de la commande\n\t\t\t\t$totalprix = $quantite * $prix; //total du produit\n\t\t\t\t//Si le destinataire est differents de 0 alors c'est un cadeau et on fait appel a affiche_if_cadeau\n\t\t\t\t$cadeau = $enr['ccIDDestinataire']>0 ? affiche_if_cadeau($enr['ccIDDestinataire']) : NULL;\n\t\t\t\techo '<tr><td class=\"tableTaille\"><a href=\"details.php?article='.$livres.'\">'.$titre.'</a> '.$cadeau.' </td><td class=\"tableCentre\">'.$quantite.'</td><td class=\"tableCentre\">'.$prix.'€</td><td class=\"tableCentre\">',number_format($totalprix, 2, ',', ' '),'€</td></tr>';\n\t\t\t\t$enr = mysqli_fetch_assoc($r);\n\t\t\t}\n\t\t\techo '<tr><th id=\"TableTotal\" colspan=\"3\">Total </th> <th>',number_format($Total, 2, ',', ' '),'€</th></tr>',\n\t\t\t'</table>';\n\t\t}\n\t}\n\tmysqli_free_result($r);\n\tmysqli_close($bd);\n}", "title": "" }, { "docid": "461b8259ff69dcd615034244d41cd525", "score": "0.5596161", "text": "public function stationSupprAction()\r\n {\r\n $currentPage = $this->params('page', 1);\r\n $request = $this->getRequest();\r\n if ($request->isPost()) {\r\n $origine = $request->getPost('origine', false);\r\n if ($origine) {\r\n $this->redirectToOrigin()->setBack($origine);\r\n }\r\n }\r\n $form = new ButtonForm([\r\n 'id' => null\r\n ], [\r\n 'supproui' => [\r\n 'class' => 'confirm',\r\n 'value' => 'Confirmer'\r\n ],\r\n 'supprnon' => [\r\n 'class' => 'confirm',\r\n 'value' => 'Abandonner'\r\n ]\r\n ]);\r\n $params = [\r\n 'data' => [\r\n 'alias' => 'Sbm\\Db\\Table\\Stations',\r\n 'id' => 'stationId'\r\n ],\r\n 'form' => $form\r\n ];\r\n $vueStations = $this->db_manager->get('Sbm\\Db\\Vue\\Stations');\r\n try {\r\n $r = $this->supprData($this->db_manager, $params, function ($id, $tableStations) use($vueStations) {\r\n return [\r\n 'id' => $id,\r\n 'data' => $vueStations->getRecord($id)\r\n ];\r\n });\r\n } catch (\\Zend\\Db\\Adapter\\Exception\\InvalidQueryException $e) {\r\n $this->flashMessenger()->addWarningMessage('Impossible de supprimer cette station car un enregistrement l\\'utilise.');\r\n try {\r\n return $this->redirectToOrigin()->back();\r\n } catch (\\SbmCommun\\Model\\Mvc\\Controller\\Plugin\\Exception $e) {\r\n return $this->redirect()->toRoute('sbmgestion/transport', [\r\n 'action' => 'station-liste',\r\n 'page' => $currentPage\r\n ]);\r\n }\r\n }\r\n \r\n if ($r instanceof Response) {\r\n return $r;\r\n } else {\r\n switch ($r->getStatus()) {\r\n case 'error':\r\n case 'warning':\r\n case 'success':\r\n try {\r\n return $this->redirectToOrigin()->back();\r\n } catch (\\SbmCommun\\Model\\Mvc\\Controller\\Plugin\\Exception $e) {\r\n return $this->redirect()->toRoute('sbmgestion/transport', [\r\n 'action' => StdLib::getParam('origine', $r->getPost()),\r\n 'page' => $currentPage\r\n ]);\r\n }\r\n break;\r\n default:\r\n return new ViewModel([\r\n 'form' => $form->prepare(),\r\n 'page' => $currentPage,\r\n 'data' => StdLib::getParam('data', $r->getResult()),\r\n 'stationId' => StdLib::getParam('id', $r->getResult())\r\n ]);\r\n break;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "2ecbf4548efc1c2624b5636f1f26cfb9", "score": "0.5595627", "text": "function supprimerDuPanier($IDCommande)\n\t{\n\t\treturn null;\n\t}", "title": "" }, { "docid": "acf63aa03fb063f35f11177736cba06f", "score": "0.55759233", "text": "function facture_apres_payment_ok_user($args){\n if (isset($args['order_id']) && is_numeric($args['order_id'])){\n try{\n // récupert la commande\n $order = new Miki_order($args['order_id']);\n \n // envoi du mail de confirmation\n $order->set_completed(true, false);\n \n // vérifie si on utilise la gestion des stock ou pas\n $use_stock = Miki_configuration::get('miki_shop_gestion_stock');\n \n // vérifie si il s'agit d'un deal\n $is_miki_deal = $order->type == 2;\n \n // si on gère les stocks ou que la commande est un deal\n if ($use_stock || $is_miki_deal){\n // met à jour le stock\n $order->update_stock();\n }\n \n // ajoute le membre au groupe \"Club\" de la newsletter\n $miki_person = new Miki_person($order->id_person);\n $newsletter_member = new Miki_newsletter_member();\n \n if (Miki_newsletter_member::email_exists($miki_person->email1))\n $newsletter_member->load_from_email($miki_person->email1);\n \n $newsletter_member->firstname = $miki_person->firstname;\n $newsletter_member->lastname = $miki_person->lastname;\n $newsletter_member->email = $miki_person->email1;\n $newsletter_member->save();\n $newsletter_member->add_to_group(2);\n \n // vide la commande stockée\n if (isset($_SESSION['miki_order']))\n unset($_SESSION['miki_order']);\n \n echo \"<div style='margin: 20px 0; text-align: center'>\"\n ._(\"Votre commande vous sera livrée tout prochainement et sera accompagnée de la facture que nous vous remercions de bien vouloir régler dans les 30 jours\") .\".\n </div>\n <div style='margin: 40px 0; text-align: center'>\"\n .sprintf(_(\"Toute l'équipe de %s vous remercie pour votre commande\"), SITENAME) .\".\n </div>\";\n }\n catch(Exception $e){\n echo _(\"Il manque des informations\");\n }\n }\n else{\n echo _(\"Il manque des informations\");\n }\n }", "title": "" }, { "docid": "c8189a7281697877d68d7e2517ad413e", "score": "0.5569942", "text": "public function report_egresosv_detalle()\n {\n $data['title'] = \"Formulario Reporte de Egresos Variables Detallado\";\n\n $data['tegresos'] = $this->mopciones->get_tipos_egreso();\n\n $this->load->view('templates/header',$data);\n $this->load->view('templates/menu');\n $this->load->view('reportes/egresos_variables/detallado/vreportes_egresosv_detalle_form', $data);\n $this->load->view('templates/footer');\n }", "title": "" }, { "docid": "97eb6fa5aa37ddf23a1d20b52566cba1", "score": "0.5563151", "text": "public function actionDetele()\n {\n }", "title": "" }, { "docid": "fd8984b8333f036b86ed028817a5d88c", "score": "0.5561088", "text": "function gestionActesDiags(){\r\nglobal $session ;\r\n/*(!$_POST['action'])?$action=\"ccam\":$action=$_POST['action'];\r\n($action==\"affectation_ngap\")?$nomForm=\"CCAM_AffectationNGAP.mxt\":\r\n\t$nomForm=\"CCAM_ListeRestreinte.mxt\";*/\r\n// Appel du template\r\n$mod=new ModeliXe(\"CCAM_ListeRestreinte.mxt\");\r\n$mod->SetModeliXe();\r\n\r\n$mod->MxText(\"titreFormulaire\",\"Association des actes aux diagnostics\");\r\n\r\n$mod->MxBloc(\"action\",\"delete\");\r\n\r\n//Initialisation des valeurs\r\n(!$_POST['idListeSelection0'])?$idListeSelection0=\"aucun#\":\r\n\t$idListeSelection0=$_POST['idListeSelection0'];\r\n(!$_POST['idListeSelection1'])?$idListeSelection1=\"aucun#\":\r\n\t$idListeSelection1=$_POST['idListeSelection1'];\r\n(!$_POST['idListeSelection2'])?$idListeSelection2=\"tous\":\r\n\t$idListeSelection2=$_POST['idListeSelection2'];\r\n\r\n//Suppression des actes sélectionnés dans la liste des actes affectés à la partie anatomique en cours\r\nif ($_POST['aGauche_x']) $this->infos=$this->delActesDiags();\r\n\r\n//Ajout des actes sélectionnés dans la liste des actes affectés à la partie anatomique sélectionné\r\nif ($_POST['aDroite_x']) $this->infos=$this->addActesDiags();\r\n\r\n/*//Validation d'une nouvelle partie anatomique ou modification, suppression d'une partie anatomique\r\nif ($_POST['OK_x']){\r\n \tif ($_POST['action2']==\"creer\") $retourInfos=$this->addNvxDiags();\r\n\telseif ($_POST['action2']==\"modifier\") $retourInfos=$this->modifyDiags();\r\n\telseif ($_POST['action2']==\"supprimer\") $retourInfos=$this->delDiags();\r\n\t\r\n\tif ($retourInfos[infos]) $this->infos=$retourInfos[infos];\r\n\telseif ($retourInfos[erreur]) $this->erreurs=$retourInfos[erreur];\r\n}\r\n\r\n//Si on a choisi de créer une nouvelle partie anatomique\r\nif ($_POST['ajouterSelection1_x']){\r\n\t//Gestion du sous-template\r\n\tunset($paramForm);\r\n\t$paramForm[titreEnCours]=\"Saisie d'une nouvelle famille d'actes\";\r\n\t$paramForm[codeDiags]=\"sera calculé à l'insertion\";\r\n\t$paramForm[libActe]=\"\";\r\n\t$paramForm[action2]=\"creer\";\r\n\t$mod->MxText(\"form1Acte\",$this->getForm1Diags($paramForm));\r\n}\r\n//Si on a choisi de modifier une partie anatomique\r\nelseif ($_POST['modifierSelection1_x']){\r\n\t//Récupération des infos pour le dernier acte sélectionné dans la liste\r\n\t$paramRq[idActe]=$idListeSelection1;\r\n\tif ($paramRq[idActe]!=\"\" and $paramRq[idActe]!=\"aucun#\"){\r\n\t\t$paramRq[cw]=\"and idDomaine=\".CCAM_IDDOMAINE;\r\n\t\t$req=new clResultQuery;\r\n\t\t$res=$req->Execute(\"Fichier\",\"CCAM_get1Acte\",$paramRq,\"ResultQuery\");\r\n\t\t//newfct(gen_affiche_tableau,$res[INDIC_SVC]);\r\n\t\t\r\n\t\t//Gestion du sous-template\r\n\t\tunset($paramForm);\r\n\t\t$paramForm[titreEnCours]=\"Modification d'une famille d'actes\";\r\n\t\t$paramForm[codeDiags]=$paramRq[idActe];\r\n\t\t$paramForm[libActe]=$res[libelle][0];\r\n\t\t$paramForm[action2]=\"modifier\";\r\n\t\t$mod->MxText(\"form1Acte\",$this->getForm1Diags($paramForm));\r\n\t}\r\n}\r\n//Si on a choisi de supprimer une partie anatomique\r\nelseif ($_POST['supprimerSelection1_x']){\r\n\t//Récupération des infos pour le dernier acte sélectionné dans la liste\r\n\t$paramRq[idActe]=$idListeSelection1;\r\n\tif ($paramRq[idActe]!=\"\" and $paramRq[idActe]!=\"aucun#\"){\r\n\t\t$paramRq[cw]=\"and idDomaine=\".CCAM_IDDOMAINE;\r\n\t\t$req=new clResultQuery;\r\n\t\t$res=$req->Execute(\"Fichier\",\"CCAM_get1Acte\",$paramRq,\"ResultQuery\");\r\n\t\t//newfct(gen_affiche_tableau,$res[INDIC_SVC]);\r\n\t\t\r\n\t\t//$cotationNGAP=$this->explodeNGAP($res[cotationNGAP][0]);\r\n\t\t\r\n\t\t//Gestion du sous-template\r\n\t\tunset($paramForm);\r\n\t\t$paramForm[titreEnCours]=\"Suppression d'une famille d'actes\";\r\n\t\t$paramForm[codeDiags]=$paramRq[idActe];\r\n\t\t$paramForm[libVisuActe]=$res[libelle][0];\r\n\t\t$paramForm[action2]=\"supprimer\";\r\n\t\t$mod->MxText(\"form1Acte\",$this->getForm1Diags($paramForm));\r\n\t}\r\n}*/\r\n\r\n//Récupération des valeurs pour Selection0\r\nunset($param);\r\n$param[idDomaine]=CCAM_IDDOMAINE;\r\n$tabListeSelection0=$this->tableauValeurs(\"CCAM_getListeCatDiag\",$param,\r\n\t\"Choisir une catégorie de diagnostics\");\r\n\r\n//Récupération des valeurs pour Selection1\r\nunset($param);\r\n$param[idDomaine]=CCAM_IDDOMAINE;\r\n$param[idListeSelection0]=addslashes(stripslashes($idListeSelection0));\r\n$param[order]=\"libelle\";\r\n$tabListeSelection1=$this->tableauValeurs(\"CCAM_getListeDiags\",$param,\"Choisir un diagnostic\");\r\n\r\n//Récupération des valeurs pour Selection2\r\nunset($param);\r\n$param[cw]=\"\";\r\n$tabListeSelection2=$this->tableauValeurs(\"CCAM_getFamilles\",$param,\r\n\t\"Choisir une famille d'actes\");\r\n$tabListeSelection2[NGAP]=\"Actes NGAP\";\r\n$tabListeSelection2[PACK]=\"Packs d'actes\";\r\n\t\r\n//Récupération des actes pour la liste de gauche en ignorant les valeurs de la liste de droite\r\n//en fonction de la famille sélectionnéee dans Selection1\r\nunset($paramRelation);\r\nunset($paramA);\r\n$paramRelation[idDomaine]=CCAM_IDDOMAINE;\r\n$paramRelation[cw]=\"\";\r\n$paramA[idDomaine]=CCAM_IDDOMAINE;\r\nif ($idListeSelection1 and $idListeSelection1!=\"aucun#\"){\r\n\t$paramA[idListeSelection1]=$idListeSelection1;\r\n\t$paramA[cw]=\"\";\r\n\t$paramRelation[idListeSelection1]=$idListeSelection1;\r\n\t$paramA[order]=\"rel.idActe\";\r\n\t$paramRelation[order]=\"rel.idActe\";\r\n\tif ($idListeSelection2==\"tous\"){\r\n\t\t$requete=\"CCAM_getActesNonListe\";\r\n\t}\r\n\telseif ($idListeSelection2==\"NGAP\"){\r\n\t\t$paramA[type]=\"NGAP\";\r\n\t\t$requete=\"CCAM_getAutresActesNonListe\";\r\n\t}\r\n\telseif ($idListeSelection2==\"PACK\"){\r\n\t\t$paramA[type]=\"PACK\";\r\n\t\t$requete=\"CCAM_getAutresActesNonListe\";\r\n\t}\r\n\telse{\r\n\t\t$paramA[idListeSelection2]=$idListeSelection2;\r\n\t\t$requete=\"CCAM_getActesCCAMAnatomie\";\r\n\t}\r\n\t$tabListeGauche=$this->valeursListeGauche($requete,\"CCAM_getActesDiags\",\r\n\t\t$paramA,$paramRelation,\"Choisir un acte\");\r\n}\r\nelse\t\r\n\t$tabListeGauche[0]=\"Choisir un acte\";\r\n\r\n//Récupération des actes pour la liste des actes déjà affectés\r\nunset($param);\r\n$param[idDomaine]=CCAM_IDDOMAINE;\r\n$param[idListeSelection1]=$idListeSelection1;\r\n$param[cw]=\"\";\r\n$param[order]=\"rel.idActe\";\r\n$tabListeDroite=$this->tableauValeurs(\"CCAM_getActesDiags\",$param,\"Choisir un acte\");\r\n\r\n//Gestion du template\r\n$mod->MxText(\"titreSelection0\",\"Catégories de diagnostics :\");\r\n$mod->MxSelect(\"idListeSelection0\",\"idListeSelection0\",stripslashes($idListeSelection0),\r\n\t$tabListeSelection0,'','',\"onChange=reload(this.form)\"); \r\n\r\n$mod->MxText(\"titreSelection1\",\"Diagnostics :\");\r\n$mod->MxSelect(\"idListeSelection1\",\"idListeSelection1\",$idListeSelection1,\r\n\t$tabListeSelection1,'','',\"onChange=reload(this.form)\"); \r\n\r\n$mod->MxText(\"titreSelection2\",\"Familles CCAM : \");\r\n$mod->MxSelect(\"idListeSelection2\",\"idListeSelection2\",$idListeSelection2,\r\n\t$tabListeSelection2,'','',\"onChange=reload(this.form) class=\\\"selectfamille\\\"\"); \r\n\t\r\n$mod->MxText(\"titreDispo\",\"Actes et packs disponibles\");\r\n$mod->MxText(\"titreAffecte\",\"Actes et packs affectés au diagnostic sélectionné\");\r\n$mod->MxText(\"commentaireGauche\",\"* Actes non côtés NGAP\");\r\n$mod->MxText(\"commentaireDroite\",\"* Actes non côtés NGAP<br><font color=\\\"red\\\">Les actes en rouge ne sont plus \r\n valides par rapport à la \".CCAM_VERSION.\"</font>\");\r\n\r\n//Afficher les boutons suivants si droits autorisés\r\nif (!$session->getDroit(\"CCAM_Decoupage\",\"w\")){\r\n\t$mod->MxBloc(\"flDroite\",\"delete\");\r\n\t$mod->MxBloc(\"flGauche\",\"delete\");\r\n}\r\n\r\n//Ne jamais afficher les boutons suivants\r\n$mod->MxBloc(\"btnSupprimer\",\"delete\");\r\n$mod->MxBloc(\"btnAjouter\",\"delete\");\r\n$mod->MxBloc(\"btnModifier\",\"delete\");\r\n$mod->MxBloc(\"btnAjouterSelection1\",\"delete\");\r\n$mod->MxBloc(\"btnModifierSelection1\",\"delete\");\r\n$mod->MxBloc(\"btnSupprimerSelection1\",\"delete\");\r\n\r\n// Affichage ou non du champs d'informations.\r\nif ($this->infos) $mod->MxText(\"informations.infos\",$this->infos);\r\nelse $mod->MxBloc(\"informations\",\"delete\");\r\n\r\n// Affichage ou non du champs d'erreurs.\r\nif ($this->erreurs) $mod->MxText(\"erreurs.errs\",$this->erreurs);\r\nelse $mod->MxBloc(\"erreurs\",\"delete\");\r\n\r\n$mod->MxSelect(\"listeGauche\",\"listeGauche[]\",'', $tabListeGauche,'','',\r\n\t\t\"size=\\\"15\\\" multiple=\\\"yes\\\" class=\\\"selectngap\\\"\"); \r\n$mod->MxSelect(\"listeDroite\",\"listeDroite[]\",'',$tabListeDroite,'','',\r\n\t\"size=\\\"15\\\" multiple=\\\"yes\\\" class=\\\"selectngap\\\"\");\r\n\t\r\n$mod->MxHidden(\"hidden\",\"navi=\".$session->genNavi($session->getNavi(0),\r\n\t$session->getNavi(1)));\r\n\r\n$this->af.=$mod->MxWrite(\"1\"); \r\n}", "title": "" }, { "docid": "d555dfc5929e7a670c43ed7b04fd7e87", "score": "0.55566126", "text": "public function salvar_disparo() {\n\n // checa a permissao\n if ( !$this->checkAccess( [ 'canUpdate' ] ) ) return;\n\n // carrega o finder\n $this->load->model( [ 'Clientes/Cliente' ] );\n\n // Pega o id do funcionario logado\n $user = $this->guard->currentUser();\n\n // carrega a proposta\n $proposta = $this->Proposta->clean()->key( $this->input->post('proposta') )->get( true );\n \n $cliente = $this->Cliente->clean()->key( $this->input->post('cliente') )->get( true );\n \n // busca os clientes\n $clientes = $this->Cliente->clean()->funcionario( $user->CodFuncionario )->get();\n $clientes = $clientes ? $clientes : [];\n $this->view->set( 'clientes', $clientes );\n\n // busca as propostas\n $propostas = $this->Proposta->clean()->funcionario( $user->CodFuncionario )->get();\n $propostas = $propostas ? $propostas : [];\n $this->view->set( 'propostas', $propostas );\n\n // verifica se o mesmo existe\n if ( !$proposta || !$cliente ) {\n \n redirect( 'propostas_func/index' );\n exit();\n } elseif( !$proposta->funcionario == $user->CodFuncionario \n || !$cliente->funcionario == $user->CodFuncionario ) {\n\n // seta o erro\n $this->view->set( 'errors', 'Não foi possivel enviar a proposta selecionada.' );\n\n // carrega a view de adicionar\n $this->view->setTitle( 'Trader - Disparar proposta' )->render( 'forms/proposta_disparo' );\n\n } elseif( $this->PropostaCliente->clean()->periodo( $proposta->CodProposta,\n $cliente->CodCliente,\n date('Y-m-d H:i:s', time() ) )->get() ) {\n \n // seta o erro\n $this->view->set( 'errors', 'Cliente selecionado já possui a proposta aberta, aguarde a resposta.' );\n\n // carrega a view de adicionar\n $this->view->setTitle( 'Trader - Disparar proposta' )->render( 'forms/proposta_disparo' );\n } else {\n\n // seta a entidade\n $propostaCliente = $this->PropostaCliente->getEntity();\n $propostaCliente->set( 'cliente', $cliente->CodCliente )\n ->set( 'proposta', $proposta->CodProposta )\n ->set( 'status', \"D\" )\n ->set( 'dataDisparo', date('Y-m-d H:i:s', time() ) )\n ->set( 'dataVencimento', date('Y-m-d H:i:s', strtotime( \"+$proposta->dias days\", time() ) ) );\n $propostaCliente->save();\n\n // redireciona para o grid\n redirect( site_url( 'propostas_func/index' ) );\n }\n \n }", "title": "" }, { "docid": "b6566d4e979e333251fc8ade69ea9b40", "score": "0.55560833", "text": "public function desglosecestaAction()\n {\n $s_output=\"\";\n $params\t=\t$this->getRequest()->getParams();\n $order_number=$params[\"order\"];\n\n $session = Mage::getSingleton('checkout/session');\n \n // cargamos los datos del pedido\n $order = Mage::getModel('sales/order');\n $order->loadByIncrementId($order_number);\n \n // enviamos una respuesta de texto con los datos\n \n // moneda\n $i_moneda=Mage::getModel('payment4b/standard')->convertToPayment4BCurrency($order->getOrderCurrencyCode());\n \n // importe\n $f_amount=$order->getTotalDue()*100;\n $s_output.=\"M\".$i_moneda.$f_amount.\"\\n\";\n \n // items\n $st_items=$order->getAllItems();\n $s_output.=count($st_items).\"\\n\";\n \n foreach($st_items as $key=>$st_item)\n {\n // descripcion de cada item\n $st_data=$st_item->getData();\n $s_output.=$st_data[\"sku\"].\"\\n\";\n $s_output.=$st_data[\"name\"].\"\\n\";\n $s_output.=intval($st_data[\"qty_ordered\"]).\"\\n\";\n \n $f_amount=$st_data[\"row_total\"]*100;\n $s_output.=$f_amount.\"\\n\";\n }\n echo $s_output;\n }", "title": "" }, { "docid": "34e8a32e9d0d5ca4775418f39a8aa7b9", "score": "0.55519164", "text": "function demande_lcr($user, $montant, $mode = '')\n\t{\n\t\tdol_syslog(get_class($this).\"::demande_lcr\", LOG_DEBUG);\n\n\t\tif ($this->statut > 0 && $this->paye == 0)\n\t\t{\n\t require_once DOL_DOCUMENT_ROOT . '/societe/class/companybankaccount.class.php';\n\t $bac = new CompanyBankAccount($this->db);\n\t $bac->fetch(0,$this->socid);\n\t\t\t\n \t$sql = 'SELECT count(*), SUM(amount) as amount ';\n\t\t\t$sql.= ' FROM '.MAIN_DB_PREFIX.'lcr_facture_demande';\n\t\t\t$sql.= ' WHERE fk_facture = '.$this->id;\n\t\t\t$sql.= ' AND traite = 0';\n\n\t\t\tdol_syslog(get_class($this).\"::demande_lcr sql=\".$sql);\n\t\t\t$resql=$this->db->query($sql);\n\t\t\tif ($resql)\n\t\t\t{\n\t\t\t\t$row = $this->db->fetch_row($resql);\n\t\t\t\tif ($row[0] == 0 || $row[1] < $this->total_ttc )\n\t\t\t\t{\n\t\t\t\t\t$now=dol_now();\n\n\t\t\t\t\t$resteapayer = $montant;\n\t\t\t\t\n\t\t\t\t\tif ($this->cond_reglement_code=='3060JOURS'&round($resteapayer,2)==round($this->total_ttc,2))\n\t\t\t\t\t{\n\t\t\t\t\t\t$sql = 'INSERT INTO '.MAIN_DB_PREFIX.'lcr_facture_demande';\n\t\t\t\t\t\t$sql .= ' (fk_facture, amount, date_demande, fk_user_demande, code_banque, code_guichet, number, cle_rib,date_lim_reglement, mode)';\n\t\t\t\t\t\t$sql .= ' VALUES ('.$this->id;\n\t\t\t\t\t\t$resteapayer1=round($resteapayer/2,2);\n\t\t\t\t\t\t$resteapayer=round($resteapayer,2)-$resteapayer1;\n\t\t\t\t\t\t$sql .= \",'\".price2num($resteapayer1).\"'\";\n $sql .= \",NULL\";\n\t\t\t\t\t\t$sql .= \",\".$user->id;\n\t\t\t\t\t\t$sql .= \",'\".$bac->code_banque.\"'\";\n\t\t\t\t\t\t$sql .= \",'\".$bac->code_guichet.\"'\";\n\t\t\t\t\t\t$sql .= \",'\".$bac->number.\"'\";\n\t\t\t\t\t\t$sql .= \",'\".$bac->cle_rib.\"'\";\n\t\t\t\t\t\t$sql .= \",'\".date('Y-m-d H:i:s',((date('n',$this->date_lim_reglement)*1==2&date('t',$this->date_lim_reglement)*1==date('j',$this->date_lim_reglement)*1)?strtotime(\"-\".(date('t',$this->date_lim_reglement)+1).\"day\",$this->date_lim_reglement):\n\t\t\t\t\t\t\t\t((date('n',$this->date_lim_reglement)*1==3&date('t',strtotime(\"-31day\",$this->date_lim_reglement))*1<date('j',$this->date_lim_reglement)*1)?strtotime(\"-\".(date('j',$this->date_lim_reglement)).\"day\",$this->date_lim_reglement):strtotime(\"-1month\",$this->date_lim_reglement)))).\"'\";\n $sql .= \",99)\";\n\t\t\t\t\t\tdol_syslog(get_class($this).\"::demande_lcr sql=\".$sql);\n\t\t\t\t\t\tif ($this->db->query($sql))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->error=$this->db->lasterror();\n\t\t\t\t\t\t\tdol_syslog(get_class($this).'::demandelcr Erreur');\n\t\t\t\t\t\t\treturn -1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$sql = 'INSERT INTO '.MAIN_DB_PREFIX.'lcr_facture_demande';\n\t\t\t\t\t\t$sql .= ' (fk_facture, amount, date_demande, fk_user_demande, code_banque, code_guichet, number, cle_rib, date_lim_reglement, mode)';\n\t\t\t\t\t\t$sql .= ' VALUES ('.$this->id;\n\t\t\t\t\t\t$sql .= \",'\".price2num($resteapayer).\"'\";\n\t\t\t\t\t\t$sql .= \",'\".$this->db->idate($now).\"'\";\n\t\t\t\t\t\t$sql .= \",\".$user->id;\n\t\t\t\t\t\t$sql .= \",'\".$bac->code_banque.\"'\";\n\t\t\t\t\t\t$sql .= \",'\".$bac->code_guichet.\"'\";\n\t\t\t\t\t\t$sql .= \",'\".$bac->number.\"'\";\n\t\t\t\t\t\t$sql .= \",'\".$bac->cle_rib.\"'\";\n $sql .= \",'\".date('Y-m-d H:i:s',$this->date_lim_reglement).\"'\";\n\t $sql .= \",99)\";\n dol_syslog(get_class($this).\"::demande_lcr sql=\".$sql);\n\t\t\t\t\t\tif ($this->db->query($sql))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->error=$this->db->lasterror();\n\t\t\t\t\t\t\tdol_syslog(get_class($this).'::demandelcr Erreur');\n\t\t\t\t\t\t\treturn -1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t$sql = 'INSERT INTO '.MAIN_DB_PREFIX.'lcr_facture_demande';\n\t\t\t\t\t\t$sql .= ' (fk_facture, amount, date_demande, fk_user_demande, code_banque, code_guichet, number, cle_rib,date_lim_reglement, mode)';\n\t\t\t\t\t\t$sql .= ' VALUES ('.$this->id;\n\t\t\t\t\t\t$sql .= \",'\".price2num($resteapayer).\"'\";\n\t\t\t\t\t\t$sql .= \",'\".$this->db->idate($now).\"'\";\n\t\t\t\t\t\t$sql .= \",\".$user->id;\n\t\t\t\t\t\t$sql .= \",'\".$bac->code_banque.\"'\";\n\t\t\t\t\t\t$sql .= \",'\".$bac->code_guichet.\"'\";\n\t\t\t\t\t\t$sql .= \",'\".$bac->number.\"'\";\n\t\t\t\t\t\t$sql .= \",'\".$bac->cle_rib.\"'\";\n $sql .= \",'\". $this->db->idate(dol_mktime(0,0,0, $_POST[\"remonth\"], $_POST[\"reday\"],$_POST[\"reyear\"])).\"'\";\n $sql .= \",99)\";\n\n\t\t\t\t\t\tdol_syslog(get_class($this).\"::demande_lcr sql=\".$sql);\n\t\t\t\t\t\tif ($this->db->query($sql))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->error=$this->db->lasterror();\n\t\t\t\t\t\t\tdol_syslog(get_class($this).'::demandelcr Erreur');\n\t\t\t\t\t\t\treturn -1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n }\n else\n {\n $this->error=\"A request already exists\";\n dol_syslog(get_class($this).'::demandelcr Impossible de creer une demande, demande deja en cours');\n }\n }\n else\n {\n $this->error=$this->db->error();\n dol_syslog(get_class($this).'::demandelcr Erreur -2');\n return -2;\n }\n }\n else\n {\n $this->error=\"Status of invoice does not allow this\";\n dol_syslog(get_class($this).\"::demandelcr \".$this->error.\" $this->statut, $this->paye, $this->mode_reglement_id\");\n return -3;\n }\n }", "title": "" }, { "docid": "5cdb2563d003e36cdea594c03ae57eca", "score": "0.554928", "text": "function feuille_parties($renc_id)\n {\n \t$db = cmsms()->GetDb();\n \t$service = new Servicen();\n \t$ping_ops = new ping_admin_ops;\n \t$details = $this->details_rencontre($renc_id);\n \t$link = $details['lien'];\n\t\t$page = \"xml_chp_renc\";\n\t\t$error = 0;//un compteur d'erreur pour indiquer false or true\n\t\t$lien = $service->GetLink($page, $link);\n\t\t$xml = simplexml_load_string($lien, 'SimpleXMLElement', LIBXML_NOCDATA);\n\t\t//var_dump($xml);\n\t\tif($xml === FALSE)\n\t\t{\n\t\t\t//le service est coupé\n\t\t\t$array = 0;\n\t\t\t$lignes = 0;\n\t\t\t$status = 'Ko';\n\t\t\t$designation = 'Ko :'.$details['equa'].' - '.$details['equb'];\n\t\t\t$action = 'feuille_parties'; \n\t\t\t$ping_ops->ecrirejournal($status, $designation,$action);\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$array = json_decode(json_encode((array)$xml), TRUE);\n\t\t\t$lignes = count($array['resultat']);\n\t\t\t//$array['joueur'] = array();\n\t\t\tif($lignes >0)\n\t\t\t{\n\t\t\t\t$lignes_joueurs = count($array['joueur']);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$lignes_joueurs = 0;\n\t\t\t}\n\t\t}\n\n\t\t\tif(!is_array($array) || $lignes == 0 || $lignes_joueurs == 0)\n\t\t\t{ \n\n\t\t\t\t//le tableau est vide, il faut envoyer un message pour le signaler\n\t\t\t\t$status = 'Ko';\n\t\t\t\t$designation = 'infos inexistantes :'.$details['equa'].' - '.$details['equb'];\n\t\t\t\t$action = 'feuille_parties'; \n\t\t\t\t$ping_ops->ecrirejournal($status, $designation,$action);\n\t\t\t\treturn false;\n\t\t\t} \n\t\t\telse\n\t\t\t{\n\t\t\t\t//on essaie de faire qqs calculs\n\t\t\t\t$tableau1 = array();\n\t\t\t\t$tab2 = array();\n\t\t\t\t$compteur = count($array['joueur']);\n\t\t\t\t$compteur_parties = count($array['partie']);\n\t\n\t\t\t\t//on scinde le tableau principal en plusieurs tableaux ?\n\t\t\t\t$tab1 = array_slice($array,0,1);\n\t\t\t\t$tab2 = array_slice($array,1,1);\n\t\t\t\t$tab3 = array_slice($array,2,1);\n\t\t\t\t\n\t\t\t\t$i=0;\n\t\t\t\t$a=0;\n\t\t\t\t$error = 0;\n\t\t\t\t\tfor($i=0;$i<$compteur;$i++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//la feuille de rencontre...\n\t\t\t\t\t\t$xja = 'xja'.$i;//ex : $xja = 'xja0';\n\t\t\t\t\t\t$xca = 'xca'.$i; //on met aussi le classement du joueurex : xca0, xca1,xca2, etc...\n\t\t\t\t\t\t$xjb = 'xjb'.$i;//ex : $xja = 'xja0';\n\t\t\t\t\t\t$xcb = 'xcb'.$i;\n\t\t\t\t\t\t$$xja = $tab2['joueur'][$i]['xja'];//ex : $xja0 = '';\n\t\t\t\t\t\t$$xca = $tab2['joueur'][$i]['xca'];\n\t\t\t\t\t\t$$xjb = $tab2['joueur'][$i]['xjb'];//ex : $xja0 = '';\n\t\t\t\t\t\t$$xcb = $tab2['joueur'][$i]['xcb'];\n\t\t\t\t\t\t//on insère le tout dans la bdd\n\t\t\t\t\t\t$query3 = \"INSERT INTO \".cms_db_prefix().\"module_ping_feuilles_rencontres ( fk_id, xja, xca, xjb, xcb) VALUES ( ?, ?, ?, ?, ?)\";\n\t\t\t\t\t\t$dbresult3 = $db->Execute($query3, array($renc_id, $$xja,$$xca,$$xjb,$$xcb));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfor($i=0;$i<$compteur_parties;$i++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//on s'occupe maintenant des parties\n\t\t\t\t\t\t$ja = 'ja'.$i;\n\t\t\t\t\t\t$scorea = 'scoreA'.$i;\n\t\t\t\t\t\t$jb = 'jb'.$i;\n\t\t\t\t\t\t$scoreb = 'scoreB'.$i;\n\t\t\t\t\t\t$detail = 'detail'.$i;\n\t\t\t\t\t\t$$ja = $tab3['partie'][$i]['ja'];\n\t\t\t\t\t\t$$scorea = $tab3['partie'][$i]['scorea'];\n\t\t\t\t\t\t$$jb = $tab3['partie'][$i]['jb'];\n\t\t\t\t\t\t$$scoreb = $tab3['partie'][$i]['scoreb'];\n\t\t\t\t\t\t$$detail = $tab3['partie'][$i]['detail'];\n\t\t\t\t\t\t//on insère aussi dans la bdd\n\t\t\t\t\t\tif($$scorea == '-')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$$scorea = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif($$scoreb == '-')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$$scoreb = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$query4 = \"INSERT INTO \".cms_db_prefix().\"module_ping_rencontres_parties ( fk_id, joueurA, scoreA, joueurB, scoreB, detail) VALUES ( ?, ?, ?, ?, ?, ?)\";\n\t\t\t\t\t\t$dbresult4 = $db->Execute($query4, array($renc_id, $$ja,$$scorea, $$jb, $$scoreb, $$detail));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\n }", "title": "" }, { "docid": "4ec6ac36ef7347e9e4e48d54d861e2f4", "score": "0.5544289", "text": "public function totaluseAction()\n\t{\n\t\t$layout = Zend_Layout::getMvcInstance();\n\t\t$layout->setLayout('vierge');\n\t\t\n\t\t//Si on est connecté\n\t\tif(Zend_Auth::getInstance()->hasIdentity())\n\t\t{\n\t\t\t$infosUser = Zend_Auth::getInstance()->getStorage()->read();\n\t\t\t$idUser = $infosUser->id; //On récupère l'id de l'user\n\t\t\t\n\t\t\t$tableDir = new Table_Dossier;\n\t\t\t$tableOffres = new Table_Offres;\n\t\t\t\n\t\t\t$idDirRoot = $tableDir->idDirRoot($idUser); //L'id du dossier root\n\t\t\t$infosDir = $tableDir->infosDossier($idDirRoot); //Les infos sur le dossier root\n\t\t\t\n\t\t\t//Les infos sur l'offre de l'user\n\t\t\t$infosOffres = $tableOffres->infos($infosUser->offre);\n\t\t\t\n\t\t\t//Envoi à la vue des infos sur l'offre et l'espace utilisé\n\t\t\t$limit = $infosOffres['limit'];\n\t\t\t$limit_unit = $infosOffres['limit_unite'];\n\t\t\t$useAff = offreAff($infosDir['size_use']);\n\t\t\t\n\t\t\techo '<span>Espace utilisé : '.$useAff.' / '.$limit.$limit_unit.' disponible.</span>';\n\t\t}\n\t}", "title": "" }, { "docid": "8f9c76b795707dde5f2256c7bb68be39", "score": "0.5522424", "text": "public function listoffredemandeAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t$offre_demande = new Application_Model_EuOffreDemandeMapper();\n\t\t$this->view->entries = $offre_demande->fetchAllByMembre($sessionmembre->code_membre);\n\n\t\t$this->view->tabletri = 1;\n\t}", "title": "" }, { "docid": "0ac1263243c87542c63bfa023d485f68", "score": "0.5517952", "text": "public function publierappeloffreAction()\n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\t\t\n\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t$id = (int) $this->_request->getParam('id');\n\t\tif (isset($id) && $id != 0) {\n\n\t\t$appeloffre = new Application_Model_EuAppelOffre();\n\t\t$appeloffreM = new Application_Model_EuAppelOffreMapper();\n\t\t$appeloffreM->find($id, $appeloffre);\n\t\t\n\t\t$appeloffre->setPublier($this->_request->getParam('publier'));\n\t\t$appeloffreM->update($appeloffre);\n\t\t}\n\n\t\t$this->_redirect('/espacepersonnel/listappeloffre');\n\t}", "title": "" }, { "docid": "692b08479dbfbd1012a5da153e0ccb3a", "score": "0.55066305", "text": "public function report_ingresosv_detalle()\n {\n $data['title'] = \"Formulario Reporte de Ingresos Variables Detallado\";\n\n $data['tingresos'] = $this->mopciones->get_tipos_ingreso();\n\n $this->load->view('templates/header',$data);\n $this->load->view('templates/menu');\n $this->load->view('reportes/ingresos_variables/detallado/vreportes_ingresosv_detalle_form', $data);\n $this->load->view('templates/footer');\n }", "title": "" }, { "docid": "9bc798976db97f6039bf569cad5b02fc", "score": "0.5502002", "text": "public function afficherOffres() {\n\t\t// a rajouter lors du getResultat.\n\t\t$colSpecifiques = array();\n\t\t\n\t\t// Remplissage du tableau $colSpecifiques avec\n\t\t// les informations permettant de rajouter un href \n\t\t// en 3 eme colonne.\n\t\tarray_push($colSpecifiques, true, \"<a href=\", \"postuler.php\", \"Postuler..\");\n\t\t\n\t\t// Fournir $colSpecifiques a BddAccess\n\t\t$this->refBddAccess->ajouterColonnesSpecifiques($colSpecifiques);\n\t\t\n\t\t// Envoi de la requete\n\t\t$this->refBddAccess->consulter(null, \"OffresEmploi\");\n\t\t\n\t\t// Afichage des resultats\n\t\t$this->refBddAccess->getResultats();\n\t\t\n\t\t// Incrementer le nombre de consultations\n\t\t$this->refObjSession->incrementeNbConsult();\n\t}", "title": "" }, { "docid": "bf8f897a1dc5591916c6dd3b37b04a0d", "score": "0.5497148", "text": "function cetak(){\n\t\t$this->output99->output_display('dosen/form_report_remun');\n\t}", "title": "" }, { "docid": "d85d91c2dc54ef1b0d0df137829dcf0a", "score": "0.5490386", "text": "private function livreproposer()\n {\n $this->livresModel = new LivresModel;\n $test = $this->livresModel->ListerProposition();\n if(isset($_POST['retour'])) header('Location:indexadmin');\n if(isset($_POST['satisfait'])){\n if ($_POST['reference'][0] != ''){\n $tab = array($_POST['reference'][0],$_POST['nomLivre'][0], $_POST['nomAuteur'][0], $_POST['date'][0]);\n var_dump($tab);\n $this->livresModel->ajouterLivre($tab);\n $this->livresModel->supprimerparid('livreproposer',$_POST['id'][0]);\n header('Location:livreproposer');\n }\n\n }\n require_once ('views/livreproposer.php');\n }", "title": "" }, { "docid": "0efacbf89e7edfd3c528f11a440223ed", "score": "0.5474116", "text": "public function suppressionAdmin(Request $request, Response $response, $args){\n $id = Utils::sanitize($args['id']);\n $admin = Admin::find($id);\n if($admin == null) {\n FlashMessage::flashError('Cet admin n\\'existe pas !');\n return Utils::redirect($response, 'listeAdmins');\n }\n if($admin->super === 1) {\n FlashMessage::flashError('Impossible de supprimer le super admin');\n return Utils::redirect($response, 'listeAdmins');\n }\n $admin->delete();\n FlashMessage::flashSuccess($admin->login.' a été supprimé !');\n return Utils::redirect($response, 'listeAdmins');\n }", "title": "" }, { "docid": "2b8b8638b823cfd7175d6319710259be", "score": "0.5457848", "text": "public function choixpropositionAction()\n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\t\t\n\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t$id = (int) $this->_request->getParam('id');\n\t\tif (isset($id) && $id != 0) {\n\n\t\t$proposition = new Application_Model_EuProposition();\n\t\t$propositionM = new Application_Model_EuPropositionMapper();\n\t\t$propositionM->find($id, $proposition);\n\t\t\n\t\t$resultSet = $propositionM->fetchAll6($proposition->id_appel_offre);\n\t\tforeach ($resultSet as $row) {\n\t\t$proposition2 = new Application_Model_EuProposition();\n\t\t$propositionM2 = new Application_Model_EuPropositionMapper();\n\t\t$propositionM2->find($row->id_proposition, $proposition2);\t\n\t\t$proposition2->setChoix_proposition(0);\n\t\t$propositionM2->update($proposition2);\n\t\t}\n\n\t\t$proposition->setDisponible(1);\n\t\t$proposition->setChoix_proposition($this->_request->getParam('choix_proposition'));\n\t\t$propositionM->update($proposition);\n\t\t\n\t\t$membremorale = new Application_Model_EuMembreMorale();\n\t\t$membremoraleM = new Application_Model_EuMembreMoraleMapper();\n\t\t$membremoraleM->find($proposition->code_membre_morale, $membremorale);\n\n$compteur = Util_Utils::findConuter() + 1; \nUtil_Utils::addSms($compteur, $membremorale->portable_membre, \"Vous venez d'être selectionné pour l'appel d'offre auquel vous avez soumissionner. Vous êtes le gagnant de cet appel d'offre.\"); \n\t\t\n\t\t}\n\n\t\t$this->_redirect('/espacepersonnel/listpropositionpreselection2/id/'.$proposition->id_appel_offre);\n\t}", "title": "" }, { "docid": "5abb5de9f14f98db12c289e3da7b85cf", "score": "0.5453039", "text": "public function denunciaAction(){\n $id_pergunta = $this->params()->fromRoute('id_pergunta', 0);\n $id_ads = $this->params()->fromRoute('id_ads', 0);\n\n if(!empty($id_ads) && !empty($id_pergunta)){\n\n $service = $this->getServiceLocator()->get(\"service_pergunta\");\n $records['id'] = $id_pergunta;\n $records['id_anuncio'] = $id_ads;\n $records['denuncia'] = 1;\n $service->update($records);\n echo \"<div class='alert'>Denúncia registrada com sucesso.</div>\";\n }\n\n return $this->response;\n }", "title": "" }, { "docid": "9725a6ffd0ae274df48c849c00199111", "score": "0.54474336", "text": "public function panierAction() \n\t{\n\n\t\t$sessionpanier = new Zend_Session_Namespace('panier');\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\t if (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t} \nif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t\t$m_compte = new Application_Model_EuCompteMapper();\n\t\t\t$compte = new Application_Model_EuCompte();\n\t\t\t$code_compte = 'NB-TS' . $sessionmembre->type . '-' . $sessionmembre->code_membre;\n\t\t\t$code_compte_fist = 'NB-TPAGC' . $sessionmembre->type . '-' . $sessionmembre->code_membre;\n\t\t\t$ret_req = $m_compte->find($code_compte, $compte);\n\n\t\t\t\t$this->view->compte_solde = $compte->solde;\n\n\n\t\tif (isset($_POST['ok']) && $_POST['ok'] == \"ok\") {\n\t\t\tif (isset($_POST['montant']) && $_POST['montant'] != \"\" && isset($_POST['mont_capa']) && $_POST['mont_capa'] != \"\" && $_POST['mont_capa'] >= $_POST['montant'] && isset($_POST['categorie']) && $_POST['categorie'] != \"\") {\n\nlist($type, $categorie) = explode(\"-\", $_POST['categorie']);\n\n\n\t\t\t\t$date_id = new Zend_Date(Zend_Date::ISO_8601);\n\n$code_proforma = strtoupper(Util_Utils::genererCodeSMS(8));\n$date_commande = $date_id->toString('yyyy-MM-dd HH:mm:ss');\n\n\t\t\t\t$commande = new Application_Model_EuCommande();\n\t\t\t\t$m_commande = new Application_Model_EuCommandeMapper();\n\n\t\t\t\t\t$compt_commande = $m_commande->findConuter() + 1;\n\n\t\t\t\t\t$commande->setCode_commande($compt_commande);\n\t\t\t\t\t$commande->setDate_commande($date_commande);\n\t\t\t\t\t$commande->setMontant_commande($_POST['montant']);\n\t\t\t\t\t$commande->setCode_membre_acheteur($sessionpanier->produit[$i][8]);\n\t\t\t\t\t$commande->setCode_membre_vendeur($sessionpanier->produit[$i][6]);\n\t\t\t\t\t$commande->setQuartier_acheteur($_POST['quartier_acheteur']);\n\t\t\t\t\t$commande->setVille_acheteur($_POST['ville_acheteur']);\n\t\t\t\t\t$commande->setTel_acheteur($_POST['tel_acheteur']);\n\t\t\t\t\t$commande->setAdresse_livraison($_POST['adresse_livraison']);\n\t\t\t\t\t$commande->setCode_livraison($_POST['code_livraison']);\n\t\t\t\t\t$commande->setCode_proforma($code_proforma);\n\t\t\t\t\t$commande->setExecuter(0); \n\t\t\t\t\t$m_commande->save($commande);\n\nfor($i = 0; $i < count($sessionpanier->produit); $i++){ \nif($sessionpanier->produit[$i][0] != \"\"){\n\n\t\t\t\t$detailcommande = new Application_Model_EuDetailCommande();\n\t\t\t\t$m_detailcommande = new Application_Model_EuDetailCommandeMapper();\n\n\t\t\t\t\t$compt_detailcommande = $m_detailcommande->findConuter() + 1;\n\n\t\t\t\t\t$detailcommande->setId_detail_commande($compt_detailcommande);\n\t\t\t\t\t$detailcommande->setCode_commande($compt_commande);\n\t\t\t\t\t$detailcommande->setQte($_POST['qte'][$i]);\n\t\t\t\t\t$detailcommande->setPrix_unitaire($sessionpanier->produit[$i][3]);\n\t\t\t\t\t$detailcommande->setReference($sessionpanier->produit[$i][1]);\n\t\t\t\t\t$detailcommande->setDesignation($sessionpanier->produit[$i][2]);\n\t\t\t\t\t$detailcommande->setLivrer(0);\n\t\t\t\t\t$detailcommande->setRemise($sessionpanier->produit[$i][12]);\n\t\t\t\t\t$m_detailcommande->save($detailcommande);\n\t\t\t\t\t\n}\n} \n\t\t\t\t$sessionmembre->errorlogin = \"Commande bien effectuée ...\";\n$compteur = Util_Utils::findConuter() + 1; \n\t\t\t\t\t\t Util_Utils::addSms($compteur, $_POST['tel_acheteur'], \"Vous venez de lancer une commande. Veuillez confirmer avec ce code : \" . $code_proforma);\n\t\t\t\t\t\n\t\t\t\t$this->_redirect('/espacepersonnel/panierconfirme');\n\t\t\t\t\t\t\n\t\t } else {\n\t\t\t\t$sessionmembre->errorlogin = \"Les champs * sont obligatoires\";\n\t\t\t}\n} else {\n\t\t\tif ($ret_req === FALSE) {\n\n\t\t\t\t$sessionmembre->errorlogin = \"Vous n'avez pas de Compte Marchant\";\n\t\t\t\t$this->_redirect('/espacepersonnel/compte');\n\t\t\t} else {\n\n\t\t\t\t$this->view->compte_solde = $compte->solde;\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "45d1c86d6524b82a9a1e1e664a7e0d01", "score": "0.544514", "text": "function CloseDirectPgEntre() { //закрыть прмой вход на страницу\n\tif ( empty( $_POST['num'] ) ) {\n\n\t\tOutMessagePg( \"Error 403 forbidden...\",\n\t\t\t\"Недостаточно прав для просмотра/редактирования запрашиваемой страницы.\",\n\t\t\t\"<a href=http://luchikidobra.ru/go/ class=button>ОК!</a>\" );\n\n\t\t$GLOBALS['pflag'] = \"1\";\n\n\t\treturn;\n\n\t}\n}", "title": "" }, { "docid": "c7b25ba1f4dbd3dc929d9cb49785cbc6", "score": "0.54432046", "text": "public function listoffredemandeclotureAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t$offre_demande_cloture = new Application_Model_EuOffreDemandeClotureMapper();\n\t\t$this->view->entries = $offre_demande_cloture->fetchAllByMembre($sessionmembre->code_membre);\n\n\t\t$this->view->tabletri = 1;\n\t}", "title": "" }, { "docid": "03eb2be83079601723d0482f50a7a362", "score": "0.54238653", "text": "public function supprimer_produit_inPanier_Action($id)\n {\n\n }", "title": "" }, { "docid": "7454c84a9f89a429a5ebb7bd1b430792", "score": "0.5422874", "text": "public function listoffredemandemessageAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\t\t\t$id = (int)$this->_request->getParam('id');\n\t\t\t$offre = (int)$this->_request->getParam('offre');\n\t\t\t$demande = (int)$this->_request->getParam('demande');\n\t\t\t$type = (string)$this->_request->getParam('type');\nif ($offre > 0 && $demande > 0) {\n\t\t$offre_demande_message = new Application_Model_EuOffreDemandeMessageMapper();\n\t\t$this->view->entries = $offre_demande_message->fetchAllByOffreDemande($offre, $demande);\n}\n\t\t$this->view->offre = $offre;\n\t\t$this->view->demande = $demande;\n\t\t$this->view->type = $type;\n\t\t$this->view->id = $id;\n\t\t\n\t\t$a = new Application_Model_EuOffreDemande();\n\t\t$ma = new Application_Model_EuOffreDemandeMapper();\n\t\t$ma->find($id, $a);\n\t\t$this->view->offredemande = $a;\n\t\t\n\t\t$this->view->tabletri = 1;\n\t}", "title": "" }, { "docid": "135ee8bc16740583fda00309480bedbe", "score": "0.5421999", "text": "public function report_egresosf_detalle()\n {\n $data['title'] = \"Formulario Reporte de Egresos Fijos Detallado\";\n\n $data['tegresos'] = $this->mopciones->get_tipos_egreso();\n\n $this->load->view('templates/header',$data);\n $this->load->view('templates/menu');\n $this->load->view('reportes/egresos_fijos/detallado/vreportes_egresosf_detalle_form', $data);\n $this->load->view('templates/footer');\n }", "title": "" }, { "docid": "0dd0f528d3dc3bf31cf9bd1022363791", "score": "0.54217726", "text": "public function deletePedidoProduto() {\n }", "title": "" }, { "docid": "9b5332c83ec69c81d8f49a33d77f460c", "score": "0.54190683", "text": "function afip_action_admin_notice() {\n if ( ! empty( $_REQUEST['bulk_afip_success'] ) ) {\n $drafts_count = intval( $_REQUEST['bulk_afip_success'] );\n printf('<div id=\"message\" class=\"updated fade\">'.$drafts_count.' factura/s generadas!</div>');\n } \n \n \n if ( ! empty( $_REQUEST['bulk_afip_error'] ) ) {\n $error = $_REQUEST['bulk_afip_error']; \n printf('<div id=\"message\" class=\"updated fade\">'.$error.'</div>');\n }\n \n if ( ! empty( $_REQUEST['bulk_afip_etiquetas'] ) ) {\n $etis = $_REQUEST['bulk_afip_etiquetas']; \n $list_ids = implode(', ',$etis);\n $list_ids = str_replace(' ', '', $list_ids);\n \n } \n\n }", "title": "" }, { "docid": "87908936ad103b24ad4695c639b1d14c", "score": "0.54186594", "text": "public function supprimerModePaiementAction($id){\n\t\n\t\tif (!($this->container->get('user_service')->isOk('ROLE_GERANT'))) // On check les droits\n\t\t\treturn new \\SoapFault('Server','[SMP001] Vous n\\'avez pas les droits nécessaires.');\n\t\n\t\tif (!is_int($id) ) // Vérif des arguments\n\t\t\treturn new \\SoapFault('Server', '[SMP002] Paramètres invalides.');\n\t\n\t\t$pdo = $this->container->get('bdd_service')->getPdo(); // On récup PDO depuis le service\n\t\n\t\tif($id != ''){\n\t\t\t$requete_supprimer_mode_paiement = 'UPDATE alba.moyen_paiement SET est_visible = 0 WHERE id='.$pdo->quote($id).' ';\n\t\t\t$pdo->query($requete_supprimer_mode_paiement);\n\t\t\treturn 'OK';\n\t\t}\n\t\telse{\n\t\t\treturn new \\SoapFault('Server', '[SMP003] Paramètres invalides.');\n\t\t}\n\t}", "title": "" }, { "docid": "0bbe5054fe2ae7c57721ccb897c457b9", "score": "0.54153216", "text": "public function supparticleAction()\n {\n\n $sessionterminal = new Zend_Session_Namespace('terminal');\n //$this->_helper->layout->disableLayout();\n $this->_helper->layout()->setLayout('layoutpublicesmcint');\n \n if (!isset($sessionterminal->login)) {$this->_redirect('/terminal/login');}\n//if($sessionterminal->confirmation != \"\"){$this->_redirect('/terminal/confirmation');}\n\n $id = (string) $this->_request->getParam('id');\n if ($id != \"\") {\n\n $article_stockesM = new Application_Model_EuArticleStockesMapper();\n //$article_stockesM->delete($id);\n }\n\n $this->_redirect('/terminal/listarticle');\n }", "title": "" }, { "docid": "6ef60044bae8353da5b62b8cd1e9c0da", "score": "0.54062223", "text": "public function supplier_actual_ledger() {\n $content = $this->lsupplier->supplier_actual_ledger();\n //$this->supplier_id=$supplier_id;\n $this->template->full_admin_html_view($content);\n }", "title": "" }, { "docid": "35a370e38259b0ef48498deacda5878d", "score": "0.5395379", "text": "private function actionMostarSolicitudDesincorporacionPropaganda()\r\n\t\t{\r\n\t\t\tif ( $this->model->nivel_aprobacion == 2 ) {\r\n\t\t\t\t\t$modelSearch = New SlPropagandasForm($this->model->id_contribuyente);\r\n\t\t\t\t\t$model = $modelSearch->findDesincorporacionPropaganda($this->model->nro_solicitud);\r\n\t\t\t\t\t$datosPropaganda = Propaganda::find()->where(['id_impuesto' => $model['id_impuesto'] ])->one();\r\n\r\n\r\n\r\n\r\n\r\n\t\t\t\t\treturn $this->render('/propaganda/solicitudes/desincorporacion/view-solicitud-desincorporacion-propaganda', [\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'caption' => Yii::t('frontend', 'Request Nro. ' . $this->model->nro_solicitud),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'model' => $model, 'modelPropaganda'=>$datosPropaganda,\r\n\r\n\r\n\t\t\t\t\t\t]);\r\n\t\t\t}\r\n\r\n\t\t\treturn false;\r\n\t\t}", "title": "" }, { "docid": "e13da1e370454bb5bac5eb906e486a2d", "score": "0.5390878", "text": "public function eliminar_proveedor_controlador(){\n\n\t\t$codigo=mainModel::decryption($_POST['codigo-del']);\n\t\t$Privilegio=mainModel::decryption($_POST['privilegio-admin']);\n\n\t\t$codigo=mainModel::limpiar_cadena($codigo);\n\t\t$Privilegio=mainModel::limpiar_cadena($Privilegio);\n\n\t\tif($Privilegio==1){\n\t\t\t$ElimProveedor=proveedorModelo::eliminar_proveedor_modelo($codigo);\n\t\t\t\t\n\t\t\tif($ElimProveedor->rowCount()>=1){\n\t\t\t\t$ElimProve=proveedorModelo::eliminar_proveedor_modelo($codigo);\n\t\t\t\t$alerta=[\n\t\t\t\t\t\t\t\"Alertas\"=>\"recargar\",\n\t\t\t\t\t\t\t\"Titulo\"=>\"Proveedor Eliminado\",\n\t\t\t\t\t\t\t\"Texto\"=>\"Se elimino el proveedor de manera satisfactoria\",\n\t\t\t\t\t\t\t\"Tipo\"=>\"success\"\n\t\t\t\t\t\t];\t\t\t\n\t\t\t}else{\n\t\t\t\t$alerta=[\n\t\t\t\t\"Alertas\"=>\"simple\",\n\t\t\t\t\"Titulo\"=>\"Ocurrio un error inesperado\",\n\t\t\t\t\"Texto\"=>\"No se puede eliminar el proveedor.\",\n\t\t\t\t\"Tipo\"=>\"error\"\n\t\t\t];\n\t\t\t}\n\t\t}else{\n\t\t\t\t$alerta=[\n\t\t\t\t\"Alertas\"=>\"simple\",\n\t\t\t\t\"Titulo\"=>\"Ocurrio un error inesperado\",\n\t\t\t\t\"Texto\"=>\"No se puede eliminar el proveedor.\",\n\t\t\t\t\"Tipo\"=>\"error\"\n\t\t\t];\n\t\t}\n\t\treturn mainModel::sweet_alert($alerta);\n\t\t\n\t}", "title": "" }, { "docid": "1a95317f3f85324140b99ce72077266a", "score": "0.5377465", "text": "public function supprimerProduitPanier($arg = array(), $display = true)\n {\n $request = new Request();\n (!$request->isConnected()) ? $request->acccesDenied() : true;\n $alert = array(\"danger\", \"Le produit que vous voulez supprimer de votre panier n'existe pas!\");\n if (count($arg) === 1)\n {\n $id = $arg[0];\n settype($id, \"integer\");\n if ($this->basketIsNotNull())\n {\n foreach ($_SESSION['panier']['article'] as $key => $value)\n {\n if ($value->id == $id)\n {\n unset($_SESSION['panier']['article'][$key]);\n if (isset($_SESSION['panier']['promotion']) && count($_SESSION['panier']['article']) > 0)\n {\n foreach ($_SESSION['panier']['promotion'] as $k => $v)\n {\n if ($v->id == $id)\n {\n unset($_SESSION['panier']['promotion'][$k]);\n }\n }\n }\n $alert = array(\"success\", \"Le produit a été supprimé!\");\n $this->getPromotionTotal();\n }\n }\n }\n }\n $this->updateBottonPanier();\n return $display ? $this->panier($alert) : $alert;\n }", "title": "" }, { "docid": "0d38ca88943e413b398d404101126ac4", "score": "0.53762287", "text": "public function prisonerDischargeNotification()\n {\n $prisonerList = $this->Prisoner->find('list', array(\n 'recursive' => -1,\n 'fields' => array(\n 'Prisoner.id',\n 'Prisoner.dor',\n ),\n 'conditions' => array(\n \"OR\" => array(\n \"Prisoner.dor IN ('\".date(\"Y-m-d\",strtotime(\"+3 months\")).\"','\".date(\"Y-m-d\",strtotime(\"+1 months\")).\"','\".date(\"Y-m-d\",strtotime(\"+7 days\")).\"','\".date(\"Y-m-d\",strtotime(\"+2 days\")).\"')\",\n \"Prisoner.dor <\" => date(\"Y-m-d\"),\n ),\n 'Prisoner.is_enable' => 1,\n 'Prisoner.is_trash' => 0,\n 'Prisoner.present_status' => 1,\n 'Prisoner.is_approve' => 0,\n 'Prisoner.transfer_id' => 0,\n \n )\n ));\n // debug($prisonerList); exit;\n if(!empty($prisonerList))\n {\n $usertypes = array(\n Configure::read('RECEPTIONIST_USERTYPE'),\n Configure::read('PRINCIPALOFFICER_USERTYPE'),\n Configure::read('OFFICERINCHARGE_USERTYPE')\n );\n $usertypes = implode(',',$usertypes);\n foreach($prisonerList as $prisonerId=>$dor)\n {\n $userList = $this->User->find(\"list\", array(\n 'fields' => array(\n 'User.id',\n 'User.name',\n ),\n 'conditions' => array(\n 'User.is_enable' => 1,\n 'User.is_trash' => 0,\n 'User.prison_id' => $this->Prisoner->field(\"prison_id\",array('id'=>$prisonerId)),\n 'User.usertype_id IN ('.$usertypes.')'\n )\n ));\n $message = 'Prisoner having prisoner no-'.$this->Prisoner->field(\"prisoner_no\",array('id'=>$prisonerId)).' is due for discharge dated : '.date(\"d-m-Y\", strtotime($dor)); \n $url_link = 'discharges/index/'.$this->Prisoner->field(\"uuid\",array('id'=>$prisonerId));\n // check the pending cases of prisoner\n $pendingCases = $this->PrisonerSentence->find(\"count\", array(\n \"conditions\"=> array(\n \"PrisonerSentence.prisoner_id\"=>$prisonerId,\n \"PrisonerSentence.waiting_for_confirmation\"=>1\n )\n ));\n\n if($pendingCases == 0){\n $this->addManyNotification($userList, $message, $url_link);\n }\n }\n }\n exit;\n }", "title": "" }, { "docid": "c061569e8529dfd682af320fa8d17063", "score": "0.53586", "text": "public function herzienAction()\n\t\t{\n\t\t\t$this->requireUserType(array(CT_User::Directie));\n\n\t\t\t$factuur = $this->leesFactuurUitArray($_POST);\n\t\t\t$btw_categorie = $_POST['btw_categorie'];\n\n\t\t\t/* Make sure all fields are correctly filled in */\n\t\t\t$errors = new CT_Validation_Errors();\n\t\t\t$validator = new CT_Validation_Validator_Factuur();\n\t\t\t$validator->validate($factuur, $errors);\n\n\t\t\t$this->displayInvoiceEditor($factuur, $btw_categorie, $errors);\n\t\t}", "title": "" }, { "docid": "8725d96e485eb10b9c599b84bf5e5d9e", "score": "0.5357364", "text": "public function CatalogarAction() {\n\n if ($this->values['permisos']['permisosModulo']['UP']) {\n\n $lote = new Lotes();\n $lote->queryUpdate(array(\"Vigente\" => 1));\n unset($lote);\n\n return $this->indexAction();\n } else {\n return array('template' => '_global/forbiden.html.twig');\n }\n }", "title": "" }, { "docid": "da983aeb34b1063010ef3ee10d8a6bf4", "score": "0.5350579", "text": "public function supprimerCommandeAction(Request $request,$commande_num)\n\t{\n\t\t//Entity Manager\n $em = $this->getDoctrine()->getManager();\n\t\t$commande_a_supprimer = $em->getRepository('FragosoBundle:Commande')->find($commande_num);\n\t\t// Cas ou la commande n'existe pas\n\t\tif(!$commande_a_supprimer){\n\t\t\t$this->get('session')->getFlashBag()->add('warning','Commande inconnue... (pas touche aux URL !)');\n\t\t\treturn $this->redirectToRoute('commande_home');\n\t\t}\n \n // Verification que la commande existe bien\n\t\tif($request->isMethod('POST')){\n\t\t\tif($commande_a_supprimer != ''){\n\t\t\t\t$em->remove($commande_a_supprimer);\n\t\t\t\t$em->flush();\n // flash message\n $this->get('session')->getFlashBag()->add('info','Commande de '.$commande_a_supprimer->getClient()->getNomComplet().' supprimée avec succès');\n\t\t\t}\n\t\t\treturn $this->redirectToRoute('commande_home');\n\t\t}\n \n return $this->render('FragosoBundle:Commande:commande_suppression.html.twig',array(\n 'commande' => $commande_a_supprimer\n ));\n\t}", "title": "" }, { "docid": "9b199942d1da5c65acc9b9a2e4472afa", "score": "0.5347441", "text": "public function supprimer($arg = array())\n {\n $request = new Request();\n (!$request->isAdmin()) ? $request->accessDenied() : true;\n $produit = $this->getRepository('produit');\n (!empty($arg)) ? $id = $arg[0] : $id = null;\n if ($id !== null && $id !== 0)\n {\n $alert = $produit->supprimerProduit($arg[0]);\n $request->redirection(\"produit\",\"afficher\",$alert);\n exit(); \n }\n else\n {\n $alert = array(\"danger\", \"Le produit n'a pas été supprimé car il n'existe pas! \\n\");\n }\n $this->afficher(array(), $alert);\n }", "title": "" }, { "docid": "cf70499aa5ca379f065d65c0eb559931", "score": "0.53432673", "text": "public function imprimirResgeraldeanaliseAction()\n {\n if ($this->_request->getParam(\"qtde\")) {\n $this->intTamPag = $this->_request->getParam(\"qtde\");\n }\n $order = array();\n\n //==== parametro de ordenacao ======//\n if ($this->_request->getParam(\"ordem\")) {\n $ordem = $this->_request->getParam(\"ordem\");\n if ($ordem == \"ASC\") {\n $novaOrdem = \"DESC\";\n } else {\n $novaOrdem = \"ASC\";\n }\n } else {\n $ordem = \"ASC\";\n $novaOrdem = \"ASC\";\n }\n\n //==== campo de ordenacao ======//\n if ($this->_request->getParam(\"campo\")) {\n $campo = $this->_request->getParam(\"campo\");\n $order = array($campo.\" \".$ordem);\n $ordenacao = \"&campo=\".$campo.\"&ordem=\".$ordem;\n } else {\n $campo = null;\n $order = array(1); //idPronac\n $ordenacao = null;\n }\n\n $pag = 1;\n $get = Zend_Registry::get('post');\n if (isset($get->pag)) {\n $pag = $get->pag;\n }\n $inicio = ($pag>1) ? ($pag-1)*$this->intTamPag : 0;\n\n /* ================== PAGINACAO ======================*/\n $where = array();\n\n if ((isset($_POST['pronac']) && !empty($_POST['pronac']))) {\n $where[\"p.AnoProjeto+p.Sequencial = ?\"] = $_POST['pronac'];\n $this->view->pronac = $_POST['pronac'];\n }\n\n if ((isset($_POST['nmProjeto']) && !empty($_POST['nmProjeto']))) {\n $where[\"p.NomeProjeto like '%\".$_POST['nmProjeto'].\"%'\"] = '';\n $this->view->nmProjeto = $_POST['nmProjeto'];\n }\n\n if ((isset($_POST['unVinculada']) && !empty($_POST['unVinculada']))) {\n $where[\"d.idOrgao = ?\"] = $_POST['unVinculada'];\n $this->view->unVinculada = $_POST['unVinculada'];\n }\n\n if ((isset($_POST['qtDiasDistribuir']) && !empty($_POST['qtDiasDistribuir']))) {\n if ($_POST['qtDiasDistribuir'] == 1) {\n $where[\"DATEDIFF(day, d.DtEnvio, isnull(d.DtDistribuicao,GETDATE())) >= ?\"] = $_POST['qtDiasDistribuirVl'];\n } else {\n $where[\"DATEDIFF(day, d.DtEnvio, isnull(d.DtDistribuicao,GETDATE())) <= ?\"] = $_POST['qtDiasDistribuirVl'];\n }\n $this->view->qtDiasDistribuir = $_POST['qtDiasDistribuir'];\n $this->view->qtDiasDistribuirVl = $_POST['qtDiasDistribuirVl'];\n }\n\n if ((isset($_POST['qtDiasAnalisar']) && !empty($_POST['qtDiasAnalisar']))) {\n if ($_POST['qtDiasDistribuir'] == 1) {\n $where[\"\n (d.DtDevolucao is null and DATEDIFF(day, d.DtDistribuicao, GETDATE()) >= \".$_POST['qtDiasAnalisarVl'].\") or\n (d.DtDevolucao is not null and DATEDIFF(day, d.DtDistribuicao, d.DtDevolucao) >= \".$_POST['qtDiasAnalisarVl'].\") or\n (Situacao = 'B14' and DATEDIFF(day, d.DtDistribuicao, GETDATE()) - DATEDIFF(day, p.dtSituacao, GETDATE()) >= \".$_POST['qtDiasAnalisarVl'].\")\n \"] = '';\n } else {\n $where[\"\n (d.DtDevolucao is null and DATEDIFF(day, d.DtDistribuicao, GETDATE()) <= \".$_POST['qtDiasAnalisarVl'].\") or\n (d.DtDevolucao is not null and DATEDIFF(day, d.DtDistribuicao, d.DtDevolucao) <= \".$_POST['qtDiasAnalisarVl'].\") or\n (Situacao = 'B14' and DATEDIFF(day, d.DtDistribuicao, GETDATE()) - DATEDIFF(day, p.dtSituacao, GETDATE()) <= \".$_POST['qtDiasAnalisarVl'].\")\n \"] = '';\n }\n $this->view->qtDiasAnalisar = $_POST['qtDiasAnalisar'];\n $this->view->qtDiasAnalisarVl = $_POST['qtDiasAnalisarVl'];\n }\n\n if ((isset($_POST['qtDiasCoord']) && !empty($_POST['qtDiasCoord']))) {\n if ($_POST['qtDiasCoord'] == 1) {\n $where[\"d.DtDevolucao is not null and d.DtRetorno is null AND d.FecharAnalise=0 and DATEDIFF(day, d.DtDevolucao,GETDATE()) >= ?\"] = $_POST['qtDiasCoordVl'];\n } else {\n $where[\"d.DtDevolucao is not null and d.DtRetorno is null AND d.FecharAnalise=0 and DATEDIFF(day, d.DtDevolucao,GETDATE()) <= ?\"] = $_POST['qtDiasCoordVl'];\n }\n $this->view->qtDiasCoord = $_POST['qtDiasCoord'];\n $this->view->qtDiasCoordVl = $_POST['qtDiasCoordVl'];\n }\n\n if ((isset($_POST['qtDiasIniExec']) && !empty($_POST['qtDiasIniExec']))) {\n if ($_POST['qtDiasIniExec'] == 1) {\n $where[\"DATEDIFF(day,GETDATE(), p.DtInicioExecucao) >= ?\"] = $_POST['qtDiasIniExecVl'];\n } else {\n $where[\"DATEDIFF(day,GETDATE(), p.DtInicioExecucao) <= ?\"] = $_POST['qtDiasIniExecVl'];\n }\n $this->view->qtDiasIniExec = $_POST['qtDiasIniExec'];\n $this->view->qtDiasIniExecVl = $_POST['qtDiasIniExecVl'];\n }\n\n $Projetos = new Projetos();\n $total = $Projetos->painelRelatoriosGeralAnalise($where, $order, null, null, true);\n $fim = $inicio + $this->intTamPag;\n\n $tamanho = ($fim > $total) ? $total - $inicio : $this->intTamPag;\n\n $busca = $Projetos->painelRelatoriosGeralAnalise($where, $order, $tamanho, $inicio);\n\n if (isset($_POST['xls']) && $_POST['xls']) {\n $html = '';\n $html .= '<table>';\n $html .= '<tr>';\n $html .= '<th>PRONAC</th>';\n $html .= '<th>Nome do Projeto</th>';\n $html .= '<th>Produto</th>';\n $html .= '<th>Dt.Primeiro Envio p/ Vinculada</th>';\n $html .= '<th>Dt.�ltimo Envio p/ Vinculada</th>';\n $html .= '<th>Dt.Distribui��o Parecerista</th>';\n $html .= '<th>Parecerista</th>';\n $html .= '<th>Qtde Dias Para Distribuir</th>';\n $html .= '<th>Qtde Dias Para Parecerista Analisar</th>';\n $html .= '<th>Qtde Dias Devolvidos Para Coordenador</th>';\n $html .= '<th>Status da Dilig�ncia</th>';\n $html .= '<th>Unidade Vinculada</th>';\n $html .= '<th>Dt.In�cio Execu��o</th>';\n $html .= '<th>Dt.Fim Execu��o</th>';\n $html .= '<th>Dias vencidos ou a vencer para execu��o do Projeto</th>';\n $html .= '</tr>';\n\n foreach ($busca as $v) {\n $html .= '<tr>';\n $html .= '<td>'.$v->Pronac.'</td>';\n $html .= '<td>'.$v->NomeProjeto.'</td>';\n $html .= '<td>'.$v->Produto.'</td>';\n $html .= '<td>'.Data::tratarDataZend($v->DtPrimeiroEnvio, 'Brasileira').'</td>';\n $html .= '<td>'.Data::tratarDataZend($v->DtUltimoEnvio, 'Brasileira').'</td>';\n $html .= '<td>'.Data::tratarDataZend($v->DtDistribuicao, 'Brasileira').'</td>';\n $html .= '<td>'.$v->Parecerista.'</td>';\n $html .= '<td>'.$v->QtdeDiasParaDistribuir.'</td>';\n $html .= '<td>'.$v->QtdeDiasParaParecAnalisar.'</td>';\n $html .= '<td>'.$v->QtdeDiasDevolvidosParaCoord.'</td>';\n $html .= '<td>'.$v->Diligencia.'</td>';\n $html .= '<td>'.$v->Vinculada.'</td>';\n $html .= '<td>'.Data::tratarDataZend($v->DtInicioExecucao, 'Brasileira').'</td>';\n $html .= '<td>'.Data::tratarDataZend($v->DtFimExecucao, 'Brasileira').'</td>';\n $html .= '<td>'.$v->QtdeDiasVencido.'</td>';\n $html .= '</tr>';\n }\n $html .= '</table>';\n\n header(\"Content-Type: application/vnd.ms-excel\");\n header(\"Content-Disposition: inline; filename=file.ods;\");\n echo $html;\n $this->_helper->viewRenderer->setNoRender(true);\n } else {\n $this->view->qtdRegistros = $total;\n $this->view->dados = $busca;\n $this->_helper->layout->disableLayout(); // Desabilita o Zend Layout\n }\n }", "title": "" }, { "docid": "1599c2498c63191d3ee9d95146a4a98b", "score": "0.5338252", "text": "public function addoffredemandemessageAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\tif (isset($_POST['ok']) && $_POST['ok'] == \"ok\") {\n\t\t\tif (isset($_POST['id_offre']) && $_POST['id_offre'] != \"\" && isset($_POST['id_demande']) && $_POST['id_demande'] != \"\" && isset($_POST['message']) && $_POST['message'] != \"\") {\n\n\t\t\t\t$date_id = new Zend_Date(Zend_Date::ISO_8601);\n\n\t\t\t\t$offre_demande_message = new Application_Model_EuOffreDemandeMessage();\n\t\t\t\t$m_offre_demande_message = new Application_Model_EuOffreDemandeMessageMapper();\n\n\t\t\t\t\t$compt_offre_demande_message = $m_offre_demande_message->findConuter() + 1;\n\n\t\t\t\t\t$offre_demande_message->setId_message($compt_offre_demande_message);\n\t\t\t\t\t$offre_demande_message->setId_offre($_POST['id_offre']);\n\t\t\t\t\t$offre_demande_message->setId_demande($_POST['id_demande']);\n\t\t\t\t\t$offre_demande_message->setMessage($_POST['message']);\n\t\t\t\t\t$offre_demande_message->setDate_message($date_id->toString('yyyy-MM-dd HH:mm:ss'));\n\t\t\t\t\t$offre_demande_message->setType_message($_POST['type_message']);\n\t\t\t\t\t$offre_demande_message->setCode_membre($sessionmembre->code_membre);\n\t\t\t\t\t$m_offre_demande_message->save($offre_demande_message);\n\n\t\t\t\t\t$this->_redirect('/espacepersonnel/offredemande');\n\t\t\t} else {\n\t\t\t\t$this->view->error = \"Champs * obligatoire\";\t\n\n\t\t\t$id = (int)$this->_request->getParam('id');\n\t\t\tif ($id > 0) {\n\t\t$a = new Application_Model_EuOffreDemande();\n\t\t$ma = new Application_Model_EuOffreDemandeMapper();\n\t\t$ma->find($id, $a);\n\t\t$this->view->offredemande = $a;\n\t\t\t}\n\t}\n\t\t \n\t} else {\n\n\t\t\t$id = (int)$this->_request->getParam('id');\n\t\t\tif ($id > 0) {\n\t\t$a = new Application_Model_EuOffreDemande();\n\t\t$ma = new Application_Model_EuOffreDemandeMapper();\n\t\t$ma->find($id, $a);\n\t\t$this->view->offredemande = $a;\n\t\t\t}\n\t}\n\t}", "title": "" }, { "docid": "af314f946e73c29e87b2a52aa2d5ab80", "score": "0.5333103", "text": "function excluir(){\r\n\r\n $demanda_dao= new demanda_dao();\r\n $resultado=$demanda_dao::excluir($_POST[\"id\"]);\r\n\r\n if($resultado===1){\r\n // echo \"Processo efetuado com sucesso!\";\r\n \r\n $filtro=\"\"; \r\n $lista=$demanda_dao::listar_demanda($filtro);\r\n \r\n \r\n $msg = \"Processo efetuado com sucesso!\"; \r\n \r\n \r\n \r\n \r\n echo \"view_demanda.html|\".\"tabela-resultado\".\"|\".$msg.\"|\".$lista.\"|Pesquisar demandas\";\r\n \r\n }else{\r\n echo \"Ocorreu algum erro !\";\r\n }\r\n\r\n\r\n\r\n\r\n }", "title": "" }, { "docid": "d7331404e0dbe2011ba0a704fb4e899c", "score": "0.53328127", "text": "public function paroisses()\n {\n //create object from grocerycrud librairie\n $crud = new grocery_CRUD();\n //set table name\n $crud->set_table('tb_aff_paroisses');\n $crud->set_subject('Paroisse');\n $crud->unset_clone();\n $crud->unset_delete();\n $output = $crud->render();\n //redirect to megamain page\n $this->_menu_sortie($output);\n }", "title": "" }, { "docid": "56524d52d9878fbca251c768f42c19c8", "score": "0.5326604", "text": "public function dejaObtenu()\n {\n return $this->possede;\n }", "title": "" }, { "docid": "a0d2dfb38f3a07922660d35b7839d8ef", "score": "0.5319684", "text": "public function adddetailpropositionAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t$id = (int) $this->_request->getParam('id');\n\t\tif ($id > 0) {\n\n\t\t\t$proposition = new Application_Model_EuProposition();\n\t\t\t$propositionM = new Application_Model_EuPropositionMapper();\n\t\t\t$propositionM->find($id, $proposition);\n\t\t\t$this->view->proposition = $proposition;\n\n\n\t\t\tif (isset($_POST['ok']) && $_POST['ok'] == \"ok\") {\n\n\t\t\t\t\t$montant_proposition = 0;\n\t\t\t\t\tfor ($i = 0; $i < sizeof($_POST['prix_unitaire']); $i++) {\n\t\t\t\t\t\t$montant_proposition = $montant_proposition + ($_POST['prix_unitaire'][$i] * $_POST['quantite'][$i]);\n\t\t\t\t\t}\n\n\n\t\t\t\t\t$date_id = new Zend_Date(Zend_Date::ISO_8601);\n\n\n\n\n\n\t\t\t\t\tfor ($i = 0; $i < sizeof($_POST['libelle_produit']); $i++) {\n\t\t\t\t\t\t$detail_proposition = new Application_Model_EuDetailProposition();\n\t\t\t\t\t\t$m_detail_proposition = new Application_Model_EuDetailPropositionMapper();\n\n\t\t\t\t\t\t$compt_detail_proposition = $m_detail_proposition->findConuter() + 1;\n\n\t\t\t\t\t\t$m_proposition = new Application_Model_EuPropositionMapper();\n\t\t\t\t\t\t$compt_proposition = $m_proposition->findConuter();\n\n\n\t\t\t\t\t\t$detail_proposition->setId_detail_proposition($compt_detail_proposition);\n\t\t\t\t\t\t$detail_proposition->setId_proposition($_POST['id_proposition']);\n\t\t\t\t\t\t$detail_proposition->setLibelle_produit($_POST['libelle_produit'][$i]);\n\t\t\t\t\t\t$detail_proposition->setPrix_unitaire($_POST['prix_unitaire'][$i]);\n\t\t\t\t\t\t$detail_proposition->setQuantite($_POST['quantite'][$i]);\n\t\t\t\t\t\t$detail_proposition->setType_produit($_POST['type_produit'][$i]);\n\t\t\t\t\t\t$detail_proposition->setUnite_mesure($_POST['unite_mesure'][$i]);\n\t\t\t\t\t\t$detail_proposition->setAppartenance($_POST['appartenance'][$i]);\n\t\t\t\t\t\t$detail_proposition->setCode_membre_morale($_POST['code_membre_morale_four'][$i]);\n\t\t\t\t\t\t$detail_proposition->setMdv($_POST['mdv'][$i]);\n\t\t\t\t\t\t$m_detail_proposition->save($detail_proposition);\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\t$proposition = new Application_Model_EuProposition();\n\t\t\t\t\t$m_proposition = new Application_Model_EuPropositionMapper();\n\t\t\t\t\t$m_proposition->find($_POST['id_proposition'], $proposition);\n\t\t\t\t\t$proposition->setMontant_proposition($proposition->getMontant_proposition() + $montant_proposition);\n\t\t\t\t\t$m_proposition->update($proposition);\n\n\n\n\t\t\t\t\t$this->_redirect('/espacepersonnel/listproposition');\n\t\t\t}\n\t\t} else {\n\t\t\t$this->_redirect('/index/appeloffre');\n\t\t}\n\t}", "title": "" }, { "docid": "d8bc852dc70964f21b8802aa97680f2f", "score": "0.5316254", "text": "public function report_ingresosf_detalle()\n {\n $data['title'] = \"Formulario Reporte de Ingresos Fijos Detallado\";\n\n $data['tingresos'] = $this->mopciones->get_tipos_ingreso();\n\n $this->load->view('templates/header',$data);\n $this->load->view('templates/menu');\n $this->load->view('reportes/ingresos_fijos/detallado/vreportes_ingresosf_detalle_form', $data);\n $this->load->view('templates/footer');\n }", "title": "" }, { "docid": "8d7c6465414c15b75972cced55556e14", "score": "0.5314132", "text": "public function afficher($arg = array(), $message = array())\n {\n $request = new Request();\n (!$request->isAdmin()) ? $request->accessDenied() : true;\n $triAffichage = array(\"id\" => \"asc\", \"titre\" => \"asc\", \"date_arrivee\" => \"asc\", \"date_depart\" => \"asc\", \"prix\" => \"asc\", \"capacite\" => \"asc\", \"categorie\" => \"asc\", \"cp\" => \"asc\", \"nom_reel\" => \"asc\");\n $produit = $this->getRepository('produit');\n $tri = $this->triAffichage($arg, $triAffichage);\n //On récupère les données\n $produits = $produit->findProduitBy(array(\"p.date_arrivee >= NOW()\"), $tri);\n\n $result = \"\";\n foreach ($produits as $k => $value)\n {\n $bg = ($k % 2 === 0) ? \"#f8f8f8\" : \"#fff\";\n $result .= '<tr style=\"background:' . $bg . '\">';\n foreach ($value as $key => $val)\n {\n if (array_key_exists($key, $triAffichage))\n {\n $result .= \"<td>\".$this->cleanAntiSlash($val).\"</td>\";\n }\n }\n $result .= '<td><a href=\"index.php?controller=produit&action=modifier&id=' . $value->id . '\" style=\"color:orange\"><span class=\"glyphicon glyphicon-remove\"></span></a></td>';\n $result .= '<td><a class=\"delete\" data=\"de supprimer un produit\" href=\"index.php?controller=produit&action=supprimer&id=' . $value->id . '\" style=\"color:red\"><span class=\"glyphicon glyphicon-trash\"></span></a></td>';\n $result .= \"</tr>\";\n }\n\n $nbreProduit = count($produit->findProduitBy(array(\"p.date_arrivee >= NOW()\")));\n $url = \"index.php?controller=produit&action=afficher&triby=$this->orderBy&tri=$this->typeTri\";\n $pagination = $this->pagination($nbreProduit,$url);\n if ($request->isAjax())\n {\n echo json_encode(array(\"reponse\" => \"success\", \"result\" => $result, \"pagination\" => $pagination));\n }\n else\n {\n if (isset($_SESSION[\"message\"]) && !empty($_SESSION[\"message\"]))\n {\n $request->getParameters(\"SESSION\");\n $mes = $_SESSION[\"message\"];\n unset($_SESSION[\"message\"]);\n $alert = $mes;\n }\n if(!empty($message))\n {\n $alert = $message;\n }\n // On affiche les resultats\n $this->render(\"produit/afficher.php\", array(\n \"title\" => \"Tous nos produits\",\n \"produits\" => $result,\n \"alert\" => $alert,\n \"triAffichage\" => $triAffichage,\n \"pagination\" => $pagination\n ));\n }\n }", "title": "" }, { "docid": "1929175c925d6839bc4752c11be6fabb", "score": "0.5310856", "text": "public function getDemande()\n {\n return $this->demande;\n }", "title": "" }, { "docid": "b642e2509cd92f31c8f07b5bfe26114c", "score": "0.5309544", "text": "public function listeCommandeAction(){\n $Commandes = $this->reqSelectAllCommande();\n\n if($Commandes === null){\n return $this->render(\"EcommerceBoutiqueBundle:Commande:errorCommandeInexistant.html.twig\");\n }else{\n\n //on affiche\n $res = array();\n foreach ($Commandes as $key => $Commande) {\n $res[$key] = $Commande->getContenu();\n }\n\n return $this->render(\"EcommerceBoutiqueBundle:Commande:listeCommande.html.twig\", array('Commandes' => $res ));\n }\n }", "title": "" }, { "docid": "c5b839baf54a3f16232debea726c1862", "score": "0.53064424", "text": "public function show(Commande $commande)\n {\n //dd($commande->produits()->first());\n // dd(DB::getQueryLog());\n\n $users[] = \"\";\n $livreurs = User::whereHas('roles', function ($q) {\n $q->whereIn('name', ['livreur']);\n })->get();\n\n $livreurAffected = User::find($commande->livreur);\n if ($livreurAffected == null) $livreurAffected = User::find(Auth::user()->id);\n\n $villes = DB::table('villes')->orderBy('name')->get();\n $fournisseur = User::find($commande->user_id);\n $client = false;\n if ($fournisseur != null && $fournisseur->hasRole('ecom')) $client = true;\n\n $nouveau = User::whereHas('roles', function ($q) {\n $q->whereIn('name', ['nouveau']);\n })->where('deleted_at', NULL)->count();\n $etat = array(\"Injoignable\", \"Annulée\", \"Retour\", \"Pas de Réponse\", \"envoyée\", \"Refusée\");\n if ((Gate::denies('client-admin') || $commande->statut !== \"envoyée\") && (Gate::denies('manage-users') || !in_array($commande->statut, $etat))) {\n\n $modify = 0;\n } else $modify = 1;\n if ($commande->facturer > 0) $modify = 0;\n\n if (!Gate::denies('livreur')) {\n $Ramassage = array(\"envoyée\", \"Ramassée\", \"Reçue\");\n\n if ($commande->livreur !== Auth::user()->id || in_array($commande->statut, $Ramassage))\n return redirect()->route('commandes.index');\n }\n\n if (Gate::denies('ramassage-commande')) {\n if ($commande->user_id !== Auth::user()->id)\n return redirect()->route('commandes.index');\n }\n\n $etat = array(\"Injoignable\", \"Refusée\", \"Retour\");\n\n\n //return $commande;\n //dd($produits);\n $statuts = DB::table('statuts')->where('commande_id', $commande->id)->get();\n foreach ($statuts as $statut) {\n $users[] = User::withTrashed()->find($statut->user_id);\n }\n $total = DB::table('relances')->where('commande_id', $commande->id)->count();\n $relances = DB::table('relances')->where('commande_id', $commande->id)->get();\n $Rpar = null;\n foreach ($relances as $relance) {\n $Rpar[] = User::find($relance->user_id); //relancée par\n }\n\n if (!Gate::denies('gestion-stock')) {\n $produits = [];\n $liaisons = DB::table('commande_produit')->where('commande_id', $commande->id)->get();\n foreach ($liaisons as $produit) {\n $produits[] = Produit::find($produit->produit_id);\n }\n return view('commande.show', [\n 'commande' => $commande, 'statuts' => $statuts, 'nouveau' => $nouveau,\n 'par' => $users,\n 'produits' => $produits,\n 'liaisons' => $liaisons,\n 'relances' => $relances,\n 'Rpar' => $Rpar,\n 'Rtotal' => $total,\n 'modify' => $modify,\n 'villes' => $villes,\n 'client' => $client, 'livreurs' => $livreurs,\n 'livreur' => $livreurAffected\n ]);\n }\n //dd($users);\n return view('commande.show', [\n 'commande' => $commande, 'statuts' => $statuts, 'nouveau' => $nouveau,\n 'par' => $users,\n 'relances' => $relances,\n 'Rpar' => $Rpar,\n 'Rtotal' => $total,\n 'modify' => $modify,\n 'villes' => $villes,\n 'client' => $client, 'livreurs' => $livreurs,\n 'livreur' => $livreurAffected\n\n ]);\n }", "title": "" }, { "docid": "51200a237fcbcab0f927f981b7e5e369", "score": "0.5305606", "text": "public function predlozitePromenuPost($app){\n\n ///Validacija POST-a\n $post = $app->request->post();\n // Load the request schema\n $requestSchema = new \\Fortress\\RequestSchema($app->config('schema.path') . \"/forms/predlozi-promenu.json\");\n\n\n // Get the alert message stream\n $ms = $app->alerts;\n // Set up Fortress to process the request\n $rf = new \\Fortress\\HTTPRequestFortress($ms, $requestSchema, $post);\n\n // Validate, and halt on validation errors.\n if (!$rf->validate()) {\n // MUST USE $app->alerts->getAndClearMessages() to clear piled errors\n $app->render('alerts.twig', [\n \"paginate_server_side\" => false,\n \"alerts\" => $app->alerts->getAndClearMessages()\n ]);\n die(); //$app->halt(400);\n\n }\n\n\n $conn = Capsule::connection();\n //insert data\n $res = $conn->table('zahtevi')->insert([ 'zakter' => $_POST['akter'] , 'zopstina' => $_POST['opstina'] , 'zmail' => $_POST['email'] ,'zopis' => $_POST['promena'] , 'zdokaz' => $_POST['potvrda'] , 'zstatus' => \"Novo\" ]);\n\n if($res){\n $this->sendEmail(\"Korisnik je poslao novi predlog promene na sajtu kojenavlasti.rs\");\n die('<div class=\"alert alert-success\">Uspešno ste prosledili zahtev za promenu podataka.</div>');\n }else {\n die('<div class=\"alert alert-danger\">Zahtev NIJE prosledjen... Doslo je do greske.</div>');\n }\n\n\n }", "title": "" }, { "docid": "a7ab72a258e633c4b39e0ad3d0bf9f0d", "score": "0.530191", "text": "function DESACTIVATION_PARTENAIRES_ANCIEN_IAD($connection_database2, $NosRezo_racine, $source_pays_partenaire)\n{\n\t\t $sql2 \t = \" SELECT ligne FROM partner_iad \";\n $result_2 = mysql_query($sql2) or die(\"Requete pas comprise - #PPAAqPQ3AZ1! \");\t\t\t\t \n $ligne_dans_iad = mysql_num_rows($result_2);\n $rapport_attribution = \"&nbsp 7. DESACTIVATION_PARTENAIRES_ANCIEN_IAD <br/>\";\n $compteur_reco_desactives = 0;\t\t \n\n IF ($ligne_dans_iad\t> 2500)\n {\t\t \n\t\t \n // 1. ON DÉSACTIVE LES PARTENAIRES \n\t\t $result = mysql_query(' SELECT pl.id_partner, pl.p_contact_mail, pl.is_activated, pl.is_access_intranet, pl.p_zip_code, pl.p_city \n\t\t FROM partner_list pl\n\t\t WHERE pl.id_services = 1\n\t\t\t\t\t\t\t\t AND pl.p_contact_mail like \"%@iad%\" \n\t\t\t\t\t\t\t\t AND (is_activated = 1 OR is_access_intranet = 1)\n\t\t\t\t\t\t\t\t AND trim(pl.p_contact_mail) not in ( SELECT trim(pi.iad_email) FROM partner_iad pi ) \t') or die(\" Requete coordonnees : #PPTXPA pas comprise. \");\t\t\t\t\n\t\t\n\n\t\tWHILE ($reponse = mysql_fetch_array($result))\n { \t\t\t \n\t\t\t\t // 2. ON ENLEVE ACCÈS A CEUX QUI N'ONT PAS DE RECOMMANDATION EN COURS\n $id_partner = $reponse['id_partner'];\n\t\t $result2 = mysql_query(' SELECT count(*) as nb_reco_en_cours \n\t\t\t\t FROM recommandation_details \n\t\t\t\t\t\t\t\t\t\t\t WHERE id_privileged_partner =\t'.$id_partner.' \n\t\t\t\t\t\t\t\t\t\t\t AND r_status > 2 and r_status < 8 ') or die(\" Requete : #AAPTXPA pas comprise. \");\t\t\t\t\n $reponse2 = mysql_fetch_array($result2);\n \n\t\t\t\t IF ($reponse2['nb_reco_en_cours'] > 0) // DES RECO SONT EN COURS DE TRAITEMENT PAR LE PARTENAIRE\n\t\t\t\t {\n\t\t\t\t mysql_query(\" UPDATE partner_list SET is_activated = 0 WHERE id_partner = $id_partner \"); \n\t\t\t\t $rapport_attribution = $rapport_attribution.\" >> P$id_partner - \".$reponse['p_contact_mail'].\" #\".$reponse2['nb_reco_en_cours'] .\" REC <br/> \";\n\t\t\t\t\t INSERT_LOG_TRACK_ACTIONS( $id_partner, $reponse['p_contact_mail'], 'désactivation partenaire 1', 'Load_IAD_France_data.php','Mise à jour daily');\n\t\t\t\t\t $compteur_reco_desactives = $compteur_reco_desactives + 1;\n\t\t\t\t }\n\t\t\t\t ELSE // ON FERME TOUT\n\t\t\t\t {\n\t\t\t\t mysql_query(\" UPDATE partner_list SET is_activated = 0, is_access_intranet = 0 WHERE id_partner = $id_partner \"); \n\t\t\t\t $rapport_attribution = $rapport_attribution.\" >> P$id_partner - \".$reponse['p_contact_mail'].\" -#CLOSE <br/> \";\n INSERT_LOG_TRACK_ACTIONS( $id_partner, $reponse['p_contact_mail'], 'désactivation partenaire 2', 'Load_IAD_France_data.php','Mise à jour daily');\t\t\t\t\t \n \n\t }\n\t\t\t }\n\t\t}\n \n\t $rapport_attribution = $rapport_attribution.\" <br/> TOTAL : \". $compteur_reco_desactives.\" PARTENAIRES À TRAITER <br/> \"; \n\t $rapport_vacances_iad = VACANCES_PARTENAIRES_IAD($NosRezo_racine, $source_pays_partenaire);\n\t\t $rapport_attribution = $rapport_attribution.\"<br/>\".$rapport_vacances_iad;\n\t\t\n\t return ($rapport_attribution);\n}", "title": "" }, { "docid": "7dff8222428efe8e59328cb3cc5cd890", "score": "0.5296256", "text": "public function showpraoinfoAction()\n {\n $del_obj = new Ep_Delivery_Delivery();\n $client_info_obj = new Ep_User_User();\n $aoParams=$this->_request->getParams();\n if(!$_SERVER['HTTP_X_REQUESTED_WITH']=='XMLHttpRequest')///if modal is open directly in url///\n { $this->_redirect(\"http://admin-test.edit-place.co.uk/processao/newaos-list?submenuId=ML2-SL1\"); }\n if($aoParams['aoid']!=NULL)\n {\n $aoIdentifier=$aoParams['aoid'];\n $aoDetails=$del_obj->getPrAoDetails($aoIdentifier);\n // print_r($aoDetails); exit;\n }\n $aoDetails[0]['title'] = utf8_encode($aoDetails[0]['title']);\n $aoDetails[0]['junior_time'] = $aoDetails[0]['junior_time'];\n $aoDetails[0]['client_type'] = $aoDetails[0]['client_type'];\n $aoDetails[0]['client_id'] = $aoDetails[0]['identifier'];\n $aoDetails[0]['file_name'] = utf8_encode(str_replace(\"|\",\",\",$aoDetails[0]['file_name']));\n $aoDetails[0]['filepath'] = $aoDetails[0]['filepath'];\n $aoDetails[0]['participation_time'] = $aoDetails[0]['participation_time'];\n $aoDetails[0]['submit_option'] = $aoDetails[0]['submit_option'];\n\n $aoDetails[0]['language'] = $aoDetails[0]['language'];\n $aoDetails[0]['category'] = $aoDetails[0]['del_category'];\n $aoDetails[0]['signtype'] = $aoDetails[0]['signtype'];\n $aoDetails[0]['min_sign'] = $aoDetails[0]['min_sign'];\n $aoDetails[0]['max_sign'] = $aoDetails[0]['max_sign'];\n $aoDetails[0]['articleid'] = $aoDetails[0]['articleid'];\n $aoDetails[0]['price_min'] = $aoDetails[0]['price_min'];\n $aoDetails[0]['price_max'] = $aoDetails[0]['price_max'];\n $aoDetails[0]['contribs_list'] = $aoDetails[0]['contribs_list'];\n $aoDetails[0]['AOtype'] = $aoDetails[0]['AOtype'];\n $aoDetails[0]['contrib_percentage'] = $aoDetails[0]['contrib_percentage'];\n $aoDetails[0]['usergrouptype'] = $this->adminLogin->type;\n $aoDetails[0]['aoid'] = $aoParams['aoid'];\n $filename= preg_replace(\"/\\_(.*?)\\./\",\".\",$aoDetails[0]['file_name']);\n $aoDetails[0]['file_name'] = \"<a href=/BO/download_brief.php?ao_id=\".$aoParams['aoid'].\">\".$filename.\"</a>\";\n\n if($aoDetails[0]['submit_option'] == 'min')\n $aoDetails[0]['senior_time'] = $aoDetails[0]['senior_time'];\n elseif($aoDetails[0]['submit_option'] == 'hour')\n $aoDetails[0]['senior_time'] = $aoDetails[0]['senior_time']/60;\n elseif($aoDetails[0]['submit_option'] == 'day')\n $aoDetails[0]['senior_time'] = $aoDetails[0]['senior_time']/(60*24);\n\n if($aoDetails[0]['contribs_list'] != '')\n {\n $contribarr = explode(\",\", $aoDetails[0]['contribs_list']);\n $contribcount = count($contribarr);\n $contrib_info= $client_info_obj->getContributorsList();\n foreach($contrib_info as $key=>$value)\n {\n if(in_array($value['identifier'], $contribarr))\n {\n $contrib_list[]=utf8_encode(strtoupper($value['email'].'('.$value['first_name'].','.$value['last_name'].')')).\"<br>\";\n $contrib_ids[] = $value['identifier'];\n }\n }\n $aoDetails[0]['contribsIds'] = $contrib_ids;\n $aoDetails[0]['contribsNames'] = implode(\" \",$contrib_list);\n $aoDetails[0]['contribCount'] = $contribcount;\n }\n $mailDetails = $this->publishmailcontent($aoParams['aoid'], 'no');\n $mailDetails = explode(\"*@#\",$mailDetails);\n $aoDetails[0]['mailcontent'] = $mailDetails[0];\n $aoDetails[0]['object'] = $mailDetails[1];\n $aoDetails[0]['clientmailcontent'] = $mailDetails[2];\n $aoDetails[0]['clientobject'] = $mailDetails[3];\n /////refuse mail content to client///\n $automail=new Ep_Message_AutoEmails();\n $email=$automail->getAutoEmail(6);//\n $aoDetails[0]['refuse_object'] = utf8_encode($email[0]['Object']);\n $parameters['AO_title']=$aoDetails[0]['title'];\n $emailcontent = $automail->getMailComments(NULL,6,$parameters);\n $aoDetails[0]['refuse_mailcontent'] = utf8_encode(stripslashes(html_entity_decode($emailcontent)));\n\n ////////////////////////////////////\n /////published mail content for successfully published to client///\n /*$automail=new Ep_Message_AutoEmails();\n $parameters['AO_title']=$aoDetails[0]['title'];\n $parameters['submitdate_bo']=date('d/m/Y h:i A', $expires);\n if($aoDetails[0]['deli_anonymous']=='0')\n $parameters['article_link']=\"/contrib/aosearch?client_contact=\".$aoDetails[0]['user_id'];\n else\n $parameters['article_link']=\"/contrib/aosearch?client_contact=anonymous\";\n $parameters['aoname_link'] = \"/contrib/aosearch\";\n $parameters['clientartname_link'] = \"/client/quotes?id=\".$aoDetails[0]['articleid'];\n $clientemailcontent = $automail->getMailComments(NULL,5,$parameters);\n $aoDetails[0]['clientmailcontent'] = utf8_encode(stripslashes(html_entity_decode($clientemailcontent))); */\n\n ////////////////////////////////////\n $this->_view->aoDetails = $aoDetails;\n if($aoParams['function'] == 'edit')\n $this->_view->render(\"processao_editnewaopopup\");\n else\n $this->_view->render(\"processao_publishaopopup\");\n }", "title": "" }, { "docid": "0519943181e75095c89f57c86eeb7cb9", "score": "0.5296155", "text": "public function refuseinvoiceAction()\n {\n $invoice_obj = new Ep_Payment_Invoice();\n $invoice_params=$this->_request->getParams();\n if(isset($invoice_params['invoice_id']))\n {\n $updated_at=date(\"Y-m-d %h:%i:%s\");\n $status=$invoice_obj->getInvoiceStatus($invoice_params['invoice_id']);\n if($status=='Not paid' || $status=='inprocess' )\n {\n\n $refuse_count=\"refuse_count+1\";\n $data = array(\"status\"=>'refuse',\"updated_at\"=>$updated_at,\"refuse_count\"=> new Zend_Db_Expr('refuse_count+1'));////////updating\n $query = \"invoiceId= 'ep_invoice_\".$invoice_params['invoice_id'].\"'\";\n $invoice_obj->updateInvoice($data,$query);\n\n /* *sending mail to contributor**/\n $autoEmails=new Ep_Message_AutoEmails();\n $royalty=new Ep_Payment_Royalties();\n $details=$royalty->getInvoiceDetails('ep_invoice_'.$invoice_params['invoice_id']);\n $parameters['contributor_name']=$details[0]['first_name'];\n $parameters['invoice_id']=$invoice_params['invoice_id'];\n $autoEmails->messageToEPMail($details[0]['user_id'],68,$parameters);\n\n $this->_helper->FlashMessenger(utf8_decode(\"Invoice refused.\"));\n }\n\n $this->_redirect(\"/stats/contrib-payments-list?submenuId=ML5-SL1\");\n }\n }", "title": "" }, { "docid": "d1142bf036e769538441f660f98e7288", "score": "0.5287718", "text": "public function gestionMembres(){\n\n session_start();\n $title['name'] = 'Gestion des membres';\n $title['menu'] = 10;\n $userConnect = FALSE;\n $userConnectAdmin = $this->userConnectAdmin();\n $ajouterMembre = FALSE;\n $dialogue = FALSE;\n $msg = '';\n $confirmation = '';\n\n $membre = new modelesMembre();\n\n // Suppréssion d'un membre\n if(isset($_GET['suppMembre']) && !empty($_GET['suppMembre']) && is_numeric($_GET['suppMembre'])){\n\n $id_membre = htmlentities($_GET['suppMembre']);\n\n if(!$membre->verifMembreCommande($id_membre)){\n\n if($membre->supprimerMembreAdmin($id_membre)){\n $confirmation .= self::SUPPOK;\n } else {\n $msg .= self::SUPPERROR;\n }\n\n } else {\n\n $dialogue = TRUE;\n\n if(isset($_GET['confirm']) && !empty($_GET['confirm']) && $_GET['confirm'] === 'oui'){\n\n if($membre->supprimerMembreAdmin($id_membre)){\n $confirmation .= self::SUPPOK;\n } else {\n $msg .= self::SUPPERROR;\n }\n\n $dialogue = FALSE;\n\n }\n }\n }\n\n // Ajout membre Administrateur\n if(isset($_GET['ajouter']) && !empty($_GET['ajouter']) && $_GET['ajouter'] === 'membre'){\n\n $ajouterMembre = TRUE;\n\n if($_POST){\n\n if(isset($_POST['pseudo']) && isset($_POST['mdp'])\n && isset($_POST['nom']) && isset($_POST['prenom'])\n && isset($_POST['email']) && ((isset($_POST['sexe'])\n && ($_POST['sexe'] === 'm' || $_POST['sexe'] === 'f'))\n && isset($_POST['ville']) && isset($_POST['cp']))\n && isset($_POST['adresse'])){\n\n $controleFormulaire = new controleursFonctions();\n $msg = $controleFormulaire->verifFormMembre($_POST, NULL);\n\n if(empty($msg)){\n\n foreach ($_POST as $key => $value){\n $_POST[$key] = htmlspecialchars($value, ENT_QUOTES);\n }\n extract($_POST);\n\n if($membre->insertMembre($pseudo, $mdp, $nom, $prenom, $email, $sexe, $ville, $cp, $adresse, 1)){\n $confirmation .= \"Le membre a bien été ajouté.<br>\";\n }\n\n }\n } else {\n $msg .= 'Une erreur est survenue lors de votre demande.<br>';\n }\n }\n }\n\n $listeMembres = $membre->lesMembresAdmin();\n\n\n $this->Render('../vues/membre/gestion_membres.php', array('title' => $title, 'userConnect' => $userConnect, 'userConnectAdmin' => $userConnectAdmin, 'msg' => $msg, 'confirmation' => $confirmation, 'listeMembres' => $listeMembres, 'ajouterMembre' => $ajouterMembre, 'dialogue' => $dialogue));\n\n }", "title": "" }, { "docid": "949bd8e3358b1e284a49681d78352459", "score": "0.52869123", "text": "public function hitungnjopAction() {\n $frm = new \\Bphtb\\Form\\Pendataan\\SSPDFrm($this->populateComboJenisTransaksi(), $this->populateComboHakTanah(), $this->populateComboDokTanah());\n $req = $this->getRequest();\n $res = $this->getResponse();\n if ($req->isPost()) {\n $ex = new \\Bphtb\\Model\\Pendataan\\SSPDBphtbBase();\n $frm->setData($req->getPost());\n if (!$frm->isValid()) {\n $ex->exchangeArray($frm->getData());\n $t_luastanah = str_ireplace(\".\", \"\", $ex->t_luastanah);\n $t_njoptanah = str_ireplace(\".\", \"\", $ex->t_njoptanah);\n $t_luasbangunan = str_ireplace(\".\", \"\", $ex->t_luasbangunan);\n $t_njopbangunan = str_ireplace(\".\", \"\", $ex->t_njopbangunan);\n\n $t_totalnjoptanah = $t_luastanah * $t_njoptanah;\n $t_totalnjopbangunan = $t_luasbangunan * $t_njopbangunan;\n $t_grandtotalnjop = $t_totalnjoptanah + $t_totalnjopbangunan;\n $data = array(\n \"t_totalnjoptanah\" => $t_totalnjoptanah,\n \"t_totalnjopbangunan\" => $t_totalnjopbangunan,\n \"t_grandtotalnjop\" => $t_grandtotalnjop\n );\n if ($ex->t_idjenistransaksi != 1 || $ex->t_idjenistransaksi != 8) {\n $data[\"t_nilaitransaksispt\"] = $t_grandtotalnjop;\n }\n $res->setContent(\\Zend\\Json\\Json::encode($data));\n }\n }\n return $res;\n }", "title": "" }, { "docid": "33b6d4e9a50865b4bf5a83147056138b", "score": "0.5284618", "text": "function supprimer($n_coureur){\n\t\tglobal $conn;\n\t\t\n\t\t//vérification que le coureur n'a pas de participation au tdf :\n\t\t$req = 'select count(*) from tdf_coureur\n\t\t\t\tjoin TDF_PARTI_COUREUR using (n_coureur)\n\t\t\t\twhere n_coureur = '.$n_coureur;\n\t\tLireDonnees1($conn, $req, $tab);\n\t\t\n\t\tif ($tab[0]['COUNT(*)'] != 0) {\n\t\t\techo 'on ne touche pas à l\\'url svp !';\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//suppression :\n\t\t$reqAppNation = \"delete from tdf_app_nation where n_coureur=\".$n_coureur;\n\t\t$reqCoureur = \"delete from tdf_coureur where n_coureur=\".$n_coureur;\n\t\tmajDonnees($conn,$reqAppNation);\n\t\tmajDonnees($conn,$reqCoureur);\n\t\theader('Location: choixCoureur.php');\n\t\techo \"<p>Coureur bien enlevé de la base !</p>\";\n\t}", "title": "" }, { "docid": "a8de675e34b70623cb7b316c351d6449", "score": "0.52820873", "text": "public function operationAction() \n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n\t\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t$cc = (string) $this->_request->getParam('cc');\n\t\t$ctc = (string) $this->_request->getParam('ctc');\n\t\t$cp = (string) $this->_request->getParam('cp');\n\t\tif (isset($cc) && $cc != \"\") {\n\n\t\t\t$comptecredit = new Application_Model_EuCompteCreditMapper();\n\t\t\t$this->view->entries = $comptecredit->fetchAll2($ctc . \"-\" . $cc . \"-\" . $sessionmembre->code_membre, $cp);\n\t\t\t$this->view->code_cat = $cc;\n\t\t\t$this->view->ctc = $ctc;\n\t\t\t$this->view->code_produit = $cp;\n\t\t}\n\t\t$this->view->tabletri = 1;\n\t}", "title": "" }, { "docid": "93de51621cd75193a01c9c4b1ec9edab", "score": "0.52755624", "text": "public function modifier($arg = array())\n {\n $request = new Request();\n (!$request->isAdmin()) ? $request->accessDenied() : true;\n $produit = $this->getRepository('produit');\n (!empty($arg)) ? $id = $arg[0] : $id = false;\n if ($request->getMethod() == \"GET\")\n {\n settype($id, \"integer\");\n // Si l'id est correctement renseigné dans l'url au affiche les données dans un formulaire \n if ($id)\n {\n $filtre = array(\"p.id = $id\", \"p.etat = '0'\", \"p.date_arrivee >= NOW()\");\n $dataReponse = $produit->findProduitBy($filtre);\n // S'il y a un résultat\n if (!empty($dataReponse))\n {\n $alert = array();\n }\n else\n {\n $alert = array(\"danger\", \"Le produit n'est pas modifiable car il est actuellement réservé par un client!\");\n $this->afficher(array(), $alert);\n exit();\n }\n }\n else\n {\n // Redirection vers les produits\n $dataReponse = array('produit' => false,);\n $alert = array(\"danger\", \"Le produit que vous voulez modifier n'existe pas!\");\n $this->afficher(array(), $alert);\n exit();\n }\n }\n // Si le formulaire est soumis\n if ($request->getMethod() == \"POST\")\n {\n $dataPost = $request->getParameters(\"POST\");\n $dataPlus = array(\"membre_id\" => $_SESSION['Auth']->id, \"id\" => $id);\n $dataReponse = $request->checkParameters(\"produit\", $dataPost, $dataPlus);\n if (isset($dataReponse['date_arrivee']) && isset($dataReponse['date_depart']))\n {\n $dataReponse['date_arrivee'] = $request->supDateNow($dataReponse['date_arrivee']);\n $dataReponse['date_depart'] = $request->supDateNow($dataReponse['date_depart']);\n }\n // On vérifie s'il ya des erreurs dans les données envoyées\n if (!in_array(false, $dataReponse, true))\n {\n // On vérifie la date depart > date arrivée\n $dateArrivee = new \\DateTime($dataReponse[\"date_arrivee\"]);\n $dateDepart = new \\DateTime($dataReponse[\"date_depart\"]);\n if ($dateDepart > $dateArrivee)\n {\n // On tente de sauvegarde les données.\n $dataSave = $dataReponse + $dataPlus;\n // On récupère la reponse \n $reponse = $produit->saveProduit($dataSave);\n $alert = $reponse['alert'];\n $dataReponse = $reponse['reponse'];\n $request->redirection(\"produit\",\"afficher\",$alert);\n exit();\n }\n else\n {\n $dataReponse[\"date_depart\"] = false;\n $alert = array(\"danger\", \"La date de départ doit être supérieure à la date d'arrivée !\");\n }\n }\n else\n {\n $alert = array(\"danger\", \"Le produit n'a pas été modifié! \\n Vérifiez votre formulaire!\");\n }\n }\n $promotion = $produit->getPromotion();\n $salle = $produit->getSalle();\n // On affiche les resultats\n $this->render(\"produit/modifier.php\", array(\n \"title\" => \"Modifier un produit\",\n \"dataReponse\" => $dataReponse,\n \"promotion\" => $promotion,\n \"salle\" => $salle,\n \"alert\" => $alert\n ));\n }", "title": "" }, { "docid": "4430766735d146afdde8fdad9cf8a14e", "score": "0.52718234", "text": "public function impostaPaginaRegistrato() {\r\n $session=USingleton::getInstance('USession');\r\n $this->assign('title','Enoteca On-line');\r\n\t\t$nome_cognome=$session->leggi_valore('nome_cognome');\r\n $this->assign('content_title','Benvenuto <b>'.$nome_cognome .'</b>');\r\n $this->assign('menu',$this->_main_button);\r\n\t\t$this->assign('main_content',$this->_main_content);\r\n $this->aggiungiTastoLogout();\r\n\t\t\r\n }", "title": "" }, { "docid": "0616aa304656af90f7a3f187274fa79c", "score": "0.5268721", "text": "public function refuseAction(){\n $this->_helper->layout->disableLayout();\n $friend = new Model_DbTable_Friend();\n $item = new Model_DbTable_Item();\n $current_item= $item->find($this->getRequest()->getPost(\"idItemF\"))->current(); \n $notification = new Model_DbTable_Notification();\n $current_notification = $notification->find($this->getRequest()->getPost(\"idNotif\"))->current();\n $current_notification->lu = 1;\n $current_notification->save();\n $user = new Model_DbTable_User();\n $current_user = $user->getUser();\n $current_item_friend = $friend->find($current_item->idItem)->current(); \n $user_friend= $user->find($current_item_friend->id_user)->current();\n $friend->refuseDemand($current_user,$user_friend,$current_item_friend); \n \n $log = new Model_DbTable_Log();\n\t $metadata = new Model_DbTable_Metadata();\n $parent_user = new Model_DbTable_User();\n $array_log = $log->addLog($parent_user->Model_id,$current_user->idUser,$current_user->login.\" et \".$user_friend->login.\" ne sont pas amis\", Zend_Log::INFO);\n\t $metadata->addMeta($array_log['model_id'], $array_log['record_id'], null, null);\n\t \n }", "title": "" }, { "docid": "6cab14dcd0bc34e67edfbaa86c9f5118", "score": "0.5267328", "text": "public function listproposition2Action()\n\t{\n\n\t\t$sessionmembre = new Zend_Session_Namespace('membre');\n\t\t//$this->_helper->layout->disableLayout();\n\t\t$this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\t\t\n\tif (!isset($sessionmembre->code_membre)) {\n\t\t\t$this->_redirect('/');\n\t\t}\n\tif (!isset($sessionmembre->code_membre)) {$this->_redirect('/');}\nif($sessionmembre->confirmation_envoi != \"\"){$this->_redirect('/espacepersonnel/confirmation');}\n\n\t\t$id = (int) $this->_request->getParam('id');\n\t\tif (isset($id) && $id != 0) {\n\n\t\t$appeloffre = new Application_Model_EuAppelOffre();\n\t\t$appeloffreM = new Application_Model_EuAppelOffreMapper();\n\t\t$appeloffreM->find($id, $appeloffre);\n\t\t$this->view->appeloffre = $appeloffre;\n\n\t\t$proposition = new Application_Model_EuPropositionMapper();\n\t\t$this->view->entries = $proposition->fetchAll4($id);\n\t}\n\n\t\t$this->view->tabletri = 1;\n\n\t}", "title": "" }, { "docid": "7f7866074b6165cab2fa119385eca431", "score": "0.52656883", "text": "public function actionNopermission()\r\n{\r\n\t$this->render('nopermission');\r\n}", "title": "" }, { "docid": "44e79a8179584d50f4f4a390ab842055", "score": "0.5262096", "text": "function discharge($no_daftar){\n // cek pembayaran, harus dilunasi dulu\n $inap = $this->m_pendaftaran->cek_pelayanan_rawat_inap($no_daftar);\n $bayar = $this->m_pendaftaran->cek_pelunasan_pembayaran($no_daftar);\n\n if ($inap) {\n $discharge = 'inap';\n }else if (!$bayar) {\n $discharge = 'bayar';\n }else{\n $this->m_pendaftaran->edit_tindak_lanjut($no_daftar);\n $discharge = 'ya';\n }\n die(json_encode(array('status' => $discharge ))); \n }", "title": "" }, { "docid": "388a847aaae8bc28612234b68ba17717", "score": "0.5261031", "text": "public function decroissantAction()\n {\n\n $em = $this->getDoctrine()->getManager();\n $conn = $em->getConnection();\n $sql = 'SELECT * FROM produit WHERE prix ORDER BY prix DESC ';\n $stmt = $conn->prepare($sql);\n $stmt->execute();\n $array = $stmt->fetchAll();\n $categories = $em->getRepository('CategorieBundle:categorie')->findAll();\n return $this->render('produit/ProduitsFront.html.twig', array(\n 'produits' => $array,\n 'categories' => $categories,\n ));\n\n }", "title": "" }, { "docid": "bbc673075af4213cde555ebc45c1c8ed", "score": "0.5255464", "text": "public function decisionproposition( $id ) {\n\t\t\t$this->assert( !empty( $id ), 'error404' );\n\n\t\t\t$this->DossiersMenus->checkDossierMenu( array( 'id' => $this->Decisiondossierpcg66->dossierId( $id ) ) );\n\n\t\t\t$pdf = $this->Decisiondossierpcg66->WebrsaDecisiondossierpcg66->getPdfDecision( $id );\n\n\t\t\tif( $pdf ) {\n\t\t\t\t$success = true;\n\n\t\t\t\t$query = array(\n\t\t\t\t\t'fields' => array(\n\t\t\t\t\t\t'Dossierpcg66.id',\n\t\t\t\t\t\t'Dossierpcg66.etatdossierpcg'\n\t\t\t\t\t),\n\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t'Decisiondossierpcg66.id' => $id\n\t\t\t\t\t),\n\t\t\t\t\t'contain' => false,\n\t\t\t\t\t'joins' => array(\n\t\t\t\t\t\t$this->Decisiondossierpcg66->Dossierpcg66->join( 'Decisiondossierpcg66', array( 'type' => 'INNER' ) )\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\t$results = $this->Decisiondossierpcg66->Dossierpcg66->find( 'first', $query );\n\n\t\t\t\t$this->Decisiondossierpcg66->begin();\n\n\t\t\t\t// Si l'etat du dossier est decisionvalid on le passe en atttransmiop avec une date d'impression\n\t\t\t\tif ( Hash::get( $results, 'Dossierpcg66.etatdossierpcg' ) === 'decisionvalid' ) {\n\t\t\t\t\t$results['Dossierpcg66']['dateimpression'] = date('Y-m-d');\n\t\t\t\t\t$results['Dossierpcg66']['etatdossierpcg'] = 'atttransmisop';\n\t\t\t\t\t$success = $this->Decisiondossierpcg66->Dossierpcg66->save($results['Dossierpcg66']);\n\t\t\t\t}\n\n\t\t\t\tif( $success ) {\n\t\t\t\t\t$this->Decisiondossierpcg66->commit();\n\t\t\t\t\t$this->Gedooo->sendPdfContentToClient( $pdf, 'Décision.pdf' );\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$this->Decisiondossierpcg66->rollback();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->Session->setFlash( 'Impossible de générer la décision', 'default', array( 'class' => 'error' ) );\n\t\t\t$this->redirect( $this->referer() );\n\t\t}", "title": "" }, { "docid": "fbf71a0fbb64f20e34532957da3c150d", "score": "0.52429146", "text": "function oppervlakte()\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "8302cc8d879101d4302ee0b5e53b2202", "score": "0.52422005", "text": "public function messageenvoyerAction()\n {\n $user = $this->getUser();\n //verification de l'existance du user\n if ($user === null) {\n return $this->redirect($this->generateUrl('fos_user_security_logout'));\n }\n\n $sn = $this->getDoctrine()->getManager();\n $email = $user->getEmail(); \n $communiquer = $sn->getRepository('BackBundle:Communiquer')->professeurmessageenvoyer($email,1);\n $nbremessagerecuprofesseur= $sn->getRepository('BackBundle:Communiquer')->nbremessagerecuprofesseur($email, 1);\n \n return $this->render('BackBundle:Communiquer:messageenvoyer.html.twig',array(\n 'communiquer' => $communiquer,\n 'nbremessagerecuprofesseur' => $nbremessagerecuprofesseur\n ));\n }", "title": "" } ]
41f54bdd472f0efea7e68838cd2193a6
Get the HTTP protocol. The standard protocol to use is `HTTP/1.1`.
[ { "docid": "6b9e828bf7572f9764a52fc7c9786371", "score": "0.75565803", "text": "public function getProtocol();", "title": "" } ]
[ { "docid": "d665669868dfc635b40979084db75d12", "score": "0.88511634", "text": "private function getHTTPProtocol()\n {\n return (isset($_SERVER['SERVER_PROTOCOL']) && $_SERVER['SERVER_PROTOCOL'] !== '') ? sanitize_text_field($_SERVER['SERVER_PROTOCOL'])\n : 'HTTP/1.1';\n }", "title": "" }, { "docid": "67c4c5a90ce97efcc95f956521409abf", "score": "0.8806872", "text": "function getProtocol() : string {\n\tstatic $pr;\n\tif ( isset( $pr ) ) {\n\t\treturn $pr;\n\t}\n\t$pr = $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.1';\n\treturn $pr;\n}", "title": "" }, { "docid": "672ab76231368905994f0d9d225ede9b", "score": "0.8783553", "text": "public static function protocol()\n\t{\n\t\treturn Arr::get($_SERVER, 'SERVER_PROTOCOL', 'HTTP/1.1');\n\t}", "title": "" }, { "docid": "13ef6ff2ccaa1322fae9807338b139f7", "score": "0.8693954", "text": "public function getProtocol()\n {\n return $this->server('SERVER_PROTOCOL') ? $this->server('SERVER_PROTOCOL') : 'HTTP/1.1'; \n }", "title": "" }, { "docid": "4d663cade46fcf51d7cab069a5eafc1e", "score": "0.85507315", "text": "private function determine_protocol() {\n $protocol = $_SERVER[\"SERVER_PROTOCOL\"];\n if (($this->protocol != 'HTTP/1.1') && ($this->protocol != 'HTTP/1.0')) {\n $protocol = 'HTTP/1.0'; // Fall back to 1.0 if unknown\n }\n return $protocol;\n }", "title": "" }, { "docid": "da560393fb6fd273d2d1cbc5ee03869e", "score": "0.83789325", "text": "public function get_http_protocol() {\n return $this->http_protocol;\n }", "title": "" }, { "docid": "43b036fb86c63adfd125578b89ba1d5c", "score": "0.8313901", "text": "public static function getRequestProtocol()\n\t{\n\t\tstatic $request_protocol = null;\n\n\t\tif ($request_protocol === null) {\n\t\t\tif (isset($_SERVER['HTTPS']) AND !empty($_SERVER['HTTPS']) AND $_SERVER['HTTPS'] != 'off') {\n\t\t\t\t$request_protocol = 'HTTPS';\n\t\t\t} else {\n\t\t\t\t$request_protocol = 'HTTP';\n\t\t\t}\n\t\t}\n\n\t\treturn $request_protocol;\n\t}", "title": "" }, { "docid": "411e6ccc590e8965f612c55e2b425214", "score": "0.8300183", "text": "public function getProtocol()\n {\n if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') {\n // this is HTTPS\n $protocol = 'https';\n } else {\n // this is HTTP\n $protocol = 'http';\n }\n return $protocol;\n }", "title": "" }, { "docid": "bf16ac889c0f06eea51cdd1e966910d5", "score": "0.8227489", "text": "public function protocol()\n\t{\n\t\tif (($this->server('HTTPS') !== null and $this->server('HTTPS') != 'off')\n\t\t\tor ($this->server('HTTPS') === null and $this->server('SERVER_PORT') == 443))\n\t\t{\n\t\t\treturn 'https';\n\t\t}\n\n\t\treturn 'http';\n\t}", "title": "" }, { "docid": "c3da47e5ed0ff7e53f8afdc9acd4c228", "score": "0.8161829", "text": "public static function getProtocol(): string\n {\n return (\n (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off')\n or\n (!empty($_SERVER['SERVER_PORT']) and $_SERVER['SERVER_PORT'] == 443))\n ? 'https'\n : 'http';\n }", "title": "" }, { "docid": "0258b78a82b75ad98d78ef8f32814b1c", "score": "0.8131314", "text": "public static function protocol()\n\t{\n\t\treturn self::$server[\"SERVER_PROTOCOL\"];\n\t}", "title": "" }, { "docid": "df0c3d13d90e23e75d586f69b00bb4b9", "score": "0.80304176", "text": "function getProtocol() {\n\t\t$_this =& PKPRequest::_checkThis();\n\n\t\tif (!isset($_this->_protocol)) {\n\t\t\t$_this->_protocol = (!isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) != 'on') ? 'http' : 'https';\n\t\t\tHookRegistry::call('Request::getProtocol', array(&$_this->_protocol));\n\t\t}\n\t\treturn $_this->_protocol;\n\t}", "title": "" }, { "docid": "c0c1095f74ae696917701029995a6a0e", "score": "0.7967926", "text": "public static function protocol()\n\t{\n\t\treturn (isset($_SERVER['HTTPS']) and $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http';\n\t}", "title": "" }, { "docid": "0e3e4a72ee6102a32e03c5a1dc02f45f", "score": "0.79650843", "text": "public function getProtocol(): string\n {\n return $this->protocol;\n }", "title": "" }, { "docid": "b8c5df78cb9a576404b2032072e64e6c", "score": "0.78893125", "text": "protected function getProtocol(): string\n {\n if ($this->provider['ssl']) {\n return 'https';\n } elseif (strpos($this->url, 'https://') === 0) {\n return 'https';\n } else {\n return 'http';\n }\n }", "title": "" }, { "docid": "4d6a52f276d936149e48d05165f1b493", "score": "0.7885049", "text": "public function getProtocol() {\n return $this->cenv['SERVER_PROTOCOL'];\n }", "title": "" }, { "docid": "70e86c2756b8632bf5ea00dae118ac41", "score": "0.787747", "text": "public function getProtocol()\n {\n return $this->getOption('protocol', 'http|https');\n }", "title": "" }, { "docid": "630aa771a31110021f960ff6a5c5678a", "score": "0.78703725", "text": "function hcode_get_protocol() {\n $protocol = 'http';\n // check for https\n if ( isset( $_SERVER[\"HTTPS\"] ) && strtolower( $_SERVER[\"HTTPS\"] ) == \"on\" ) {\n $protocol .= \"s\";\n }\n \n return $protocol;\n }", "title": "" }, { "docid": "90d287890819d2e07a8579825f1f7de7", "score": "0.7789524", "text": "function getProtocol(){\n if (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) || isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {\n $protocol = 'https://';\n }\n else {\n $protocol = 'http://';\n }\n return $protocol;\n }", "title": "" }, { "docid": "a8180e6ed658dad95ea751310a44deaf", "score": "0.7760438", "text": "public function getProtocol()\n {\n return $this->protocol;\n }", "title": "" }, { "docid": "a8180e6ed658dad95ea751310a44deaf", "score": "0.7760438", "text": "public function getProtocol()\n {\n return $this->protocol;\n }", "title": "" }, { "docid": "a8180e6ed658dad95ea751310a44deaf", "score": "0.7760438", "text": "public function getProtocol()\n {\n return $this->protocol;\n }", "title": "" }, { "docid": "a8180e6ed658dad95ea751310a44deaf", "score": "0.7760438", "text": "public function getProtocol()\n {\n return $this->protocol;\n }", "title": "" }, { "docid": "a8180e6ed658dad95ea751310a44deaf", "score": "0.7760438", "text": "public function getProtocol()\n {\n return $this->protocol;\n }", "title": "" }, { "docid": "b3f479d1f915848bd197dbafb473d897", "score": "0.77071893", "text": "function wp_get_server_protocol() {\n\t$protocol = $_SERVER['SERVER_PROTOCOL'];\n\tif ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ) ) ) {\n\t\t$protocol = 'HTTP/1.0';\n\t}\n\treturn $protocol;\n}", "title": "" }, { "docid": "b3f479d1f915848bd197dbafb473d897", "score": "0.77071893", "text": "function wp_get_server_protocol() {\n\t$protocol = $_SERVER['SERVER_PROTOCOL'];\n\tif ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ) ) ) {\n\t\t$protocol = 'HTTP/1.0';\n\t}\n\treturn $protocol;\n}", "title": "" }, { "docid": "e9679ec3118c77cac80f178adf8bcaae", "score": "0.7695846", "text": "public function getProtocol() {\r\n\t\treturn $this->protocol;\r\n\t}", "title": "" }, { "docid": "8d8c1f727a1137416d150ada910d3f5b", "score": "0.76618403", "text": "public function getProtocol()\n\t{\n\t\treturn $this->_protocol;\n\t}", "title": "" }, { "docid": "86d800903c45abb2250c71fbd8113d80", "score": "0.76528883", "text": "public function getProtocol() {\n return $this->_protocol;\n }", "title": "" }, { "docid": "75397a371b5eb3d583413ad3bce4d13e", "score": "0.7643674", "text": "function protocol(){\n $isHTTP = strpos($_SERVER['SERVER_PROTOCOL'], \"HTTP/\") !== false;\n if($_SERVER[\"HTTP_HOST\"] != \"localhost\"){$isHTTP = true;}\n if($isHTTP){return \"http\";} else {return \"https\";}\n }", "title": "" }, { "docid": "743625284420a3002bcbe43ed34d6212", "score": "0.76266694", "text": "public function getProtocol()\n {\n return $this->getFieldValue(self::FIELD_PROTOCOL);\n }", "title": "" }, { "docid": "69121dbda54b3b2b2ba905c602cdb582", "score": "0.75660044", "text": "function getRequestProtocol()\n{\n // X-Forwarded-Proto to http?\n\n $headers = apache_request_headers();\n\n if(count($headers)) {\n foreach ($headers as $header => $value) {\n if($header == 'Cf-Visitor'){\n $protocol = json_decode($value, false)->{'scheme'} . '://';\n break;\n }\n }\n }\n\n if(!isset($protocol))\n {\n if (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) || isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {\n $protocol = 'https://';\n } elseif (isset($_SERVER['REQUEST_SCHEME'])) {\n $protocol = $_SERVER['REQUEST_SCHEME'] . '://';\n } else {\n $protocol = 'http://';\n }\n }\n\n return $protocol;\n}", "title": "" }, { "docid": "e07431e43e492c572f1b449556993701", "score": "0.7555738", "text": "public static function protocol(){\n\t\treturn self::sslOn()?'https':'http';\n\t}", "title": "" }, { "docid": "15854d75f317614afeed5715c128dd80", "score": "0.7534999", "text": "public function getProtocolVersion() : string {\n return $this->serverVars['SERVER_PROTOCOL'] ?? 'HTTP/1.0';\n }", "title": "" }, { "docid": "8aff8bf4832ed25b65a6ee2719d001ec", "score": "0.7524013", "text": "public function getServiceProtocol () {\r\n // return http or https. you should use the result of this and never hard-code http:// into any URLs.\r\n if ( ! empty($this->m_serviceProtocol)) {\r\n $protocol = $this->m_serviceProtocol;\r\n } elseif (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) || isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {\r\n $protocol = 'https';\r\n } else {\r\n $protocol = 'https';\r\n }\r\n return $protocol;\r\n }", "title": "" }, { "docid": "0aa339386ee61132d43d97741a31d4b2", "score": "0.7520156", "text": "public function getProtocolName()\n {\n return static::PROTOCOL;\n }", "title": "" }, { "docid": "ff50a2fddc613d852dbba06a732bf347", "score": "0.744777", "text": "function _protocol()\n{\n $protocol = current(explode('/', $_SERVER['SERVER_PROTOCOL']));\n\n return strtolower($protocol);\n}", "title": "" }, { "docid": "f6cb97a10334455af78d0cc3516d5f61", "score": "0.7442501", "text": "private function createProtocol(): string\n {\n return (!empty($_SERVER['HTTPS']) && 'off' !== $_SERVER['HTTPS'] || 443 === $_SERVER['SERVER_PORT']) ?\n 'https://' : 'http://';\n }", "title": "" }, { "docid": "98d7c98146b9ab1c73954c14e8d2867b", "score": "0.74402326", "text": "public function getProtocol()\n {\n return $this->serverProtocol;\n }", "title": "" }, { "docid": "7ec17f552a2e6e20d21b22b2fd5a70ba", "score": "0.7422684", "text": "public function get_Protocol() {\n if (isset($this->refs['protocol'])) {\n return $this->refs['protocol'];\n }\n return null;\n }", "title": "" }, { "docid": "e09ea2bbca5353628ac36bac11801d29", "score": "0.74187165", "text": "public function getProtocol() {\n if(Yii::app()->request->isSecureConnection)\n return 'https';\n return 'http';\n }", "title": "" }, { "docid": "f918a9ea7c3f6cd5a78cca8b05a3256a", "score": "0.7390833", "text": "private static function protocol(): Protocol\n {\n $protocol = $_SERVER['SERVER_PROTOCOL'] ?? '';\n $protocolVersion = $protocol ? substr($protocol, 5) : \"1.1\";\n return new Protocol($protocolVersion);\n }", "title": "" }, { "docid": "45d2d52e4cf4953344d530cb87c1934c", "score": "0.7324345", "text": "public static function getProtocol(){\n\t\tt_e('deprecated', __FUNCTION__);\n\t\treturn getServerProtocol();\n\t}", "title": "" }, { "docid": "d91c384a63a584be2152a169d2c9ee6c", "score": "0.72954494", "text": "public static function getScheme(){\n $protocol='http';\n \n if(isset($_SERVER['HTTPS']) and $_SERVER['HTTPS']=='on'){\n $protocol.='s';\n }\n return $protocol;\n }", "title": "" }, { "docid": "aba285c4023524b17b35bf29e8e2d8c8", "score": "0.7272529", "text": "public function getHTTPVersion() {\n\n $protocol = $this->getRawServerValue('SERVER_PROTOCOL');\n if ($protocol==='HTTP/1.0') {\n return '1.0';\n } else {\n return '1.1';\n }\n\n }", "title": "" }, { "docid": "8cb8c8f54e89f63ba9945e8f2de79137", "score": "0.726441", "text": "public static function protocol($config = NULL){\n if(!is_null($config) && isset(KoMS::config($config)->project['protocol']))\n return KoMS::config($config)->project['protocol'];\n elseif(isset(KoMS::config()->project['protocol']))\n\t\t\treturn KoMS::config()->project['protocol'];\n elseif($_SERVER['SERVER_PORT']==443)\n return 'https';\n else\n return 'http';\n }", "title": "" }, { "docid": "7d8362e1669162ce49c64fd223871c9a", "score": "0.7246323", "text": "public static function getAccessedProtocol()\n {\n if (isset($_SERVER[\"X-FORWARDED-PROTO\"])) {\n return sprintf(\"%s://\", $_SERVER[\"X-FORWARDED-PROTO\"]);\n } elseif (isset($_SERVER['HTTPS'])) {\n return \"https://\";\n } else {\n return \"http://\";\n }\n }", "title": "" }, { "docid": "29a78eb8fa17ef06a27195cbed3d5682", "score": "0.7235894", "text": "public function transferProtocol(): string\n {\n if (empty($this->configuration->getValue('transfer_protocol')) || $this->configuration->getValue('transfer_protocol') == 'auto') {\n if (!empty($_SERVER['HTTPS'])) {\n $connectionProtocol = 'https://';\n } else {\n $connectionProtocol = 'http://';\n }\n } elseif ($this->configuration->getValue('transfer_protocol') == 'HTTPS') {\n $connectionProtocol = 'https://';\n } else {\n $connectionProtocol = 'http://';\n }\n\n return $connectionProtocol;\n }", "title": "" }, { "docid": "777df3ac624fd4fc20bb99356a24d289", "score": "0.7234604", "text": "public static function getHttpScheme(): string\n {\n return self::isBehindSsl() ? 'https' : 'http';\n }", "title": "" }, { "docid": "11ea931273fb551409acdd77bfcb3fd3", "score": "0.7204514", "text": "public function protocol()\n\t{\n\t\tif (\\func_num_args() > 0) {\n\t\t\tthrow new BadMethodCallException(__METHOD__.' is immutable');\n\t\t}\n\n\t\tif ($this->_protocol) {\n\t\t\treturn $this->_protocol;\n\t\t} else {\n\t\t\treturn $this->_protocol = HTTP::$protocol;\n\t\t}\n\t}", "title": "" }, { "docid": "fd57190a924f04a883fb595ab74db2a5", "score": "0.72018033", "text": "protected function getUrlProtocol()\n {\n return (! empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? 'https://' : 'http://';\n }", "title": "" }, { "docid": "e4ad5c574888db1ddf8702d1e7a8148d", "score": "0.7187043", "text": "public static function serverProtocol(){\n return self::isHttps() ? 'https' : 'http';\n }", "title": "" }, { "docid": "37ead6fa1db05da9324f64bbb88c320c", "score": "0.71706957", "text": "public function getProtocol()\n {\n if (is_null($this->get('protocol'))) {\n $connectConfig = $this->connect()->getConfig();\n $this->set('protocol', $connectConfig->__get('protocol'));\n }\n return $this->get('protocol');\n }", "title": "" }, { "docid": "03bb078a8c16c644db515069e6225f51", "score": "0.71230185", "text": "function serverProtocol()\n {\n if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') {\n return 'https://';\n }\n if ($_SERVER['SERVER_PORT'] === 443) {\n return 'https://';\n }\n return 'http://';\n }", "title": "" }, { "docid": "dcd7667de9d097217e4e2612d132caed", "score": "0.71095705", "text": "public function getProtocolType(): string\n {\n return $this->protocolType;\n }", "title": "" }, { "docid": "3087854dda31ce57bd4bf93373a816d1", "score": "0.70717645", "text": "public function getIPProtocol()\n {\n return isset($this->I_p_protocol) ? $this->I_p_protocol : '';\n }", "title": "" }, { "docid": "18dc2008fb36576fa0bb7cde8072630e", "score": "0.703079", "text": "public function protocol($raw = false)\n {\n if ($raw) {\n return $this->server('SERVER_PROTOCOL');\n }\n\n $parts = explode('/', $this->server('SERVER_PROTOCOL'));\n\n return strtolower(array_shift($parts)) . $this->server('HTTPS') === 'on' ? 's' : '';\n }", "title": "" }, { "docid": "902760c454ee74a40754908644aa3aca", "score": "0.695504", "text": "public function getHttpVersion()\n\t{\n\t\tif($this->_httpVersion===null)\n\t\t{\n\t\t\tif(isset($_SERVER['SERVER_PROTOCOL']) && $_SERVER['SERVER_PROTOCOL']==='HTTP/1.0')\n\t\t\t\t$this->_httpVersion='1.0';\n\t\t\telse\n\t\t\t\t$this->_httpVersion='1.1';\n\t\t}\n\t\treturn $this->_httpVersion;\n\t}", "title": "" }, { "docid": "af245ca4bd5278c2c0074cc2edd582b1", "score": "0.6941049", "text": "private function getScheme(): string\n {\n $scheme = 'http';\n if (isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') {\n $scheme = 'https';\n }\n return $scheme;\n }", "title": "" }, { "docid": "f36bf75a317d7f67db3837995b43059f", "score": "0.6843188", "text": "public function getProtocolVersion(): string\n {\n return $this->protocol;\n }", "title": "" }, { "docid": "2aadd563018865b0fa1d6d1ad129121d", "score": "0.6830639", "text": "public function getSocketProtocol()\n {\n if ($this->agentConfig) {\n return $this->agentConfig->getProtocol();\n }\n\n return Config::SOCKET_PROTOCOL;\n }", "title": "" }, { "docid": "5d3479af5d569f32c09676e4e7bf1e09", "score": "0.67839646", "text": "public function getProtocol($full = true) {\n\t\t$this->protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? \"https\" : \"http\";\n\t\tif ($full) {\n\t\t\treturn $this->protocol.'://';\n\t\t}\n\t\telse {\n\t\t\treturn $this->protocol;\n\t\t}\n\t}", "title": "" }, { "docid": "a918d75dbaa1acd15999153427fbb424", "score": "0.67661405", "text": "public function getScheme()\n {\n return ($this->getServer('HTTPS') == 'on') ? self::SCHEME_HTTPS : self::SCHEME_HTTP;\n }", "title": "" }, { "docid": "484cf04f064429a0c4cf9dccf4db1101", "score": "0.67113936", "text": "public function getOsProtocol() {\n return $this->osProtocol;\n }", "title": "" }, { "docid": "e5a62de74aae6c5dbd992645fb0854c7", "score": "0.67091763", "text": "function getScheme()\n{\n # || strtolower(substr($_SERVER[\"SERVER_PROTOCOL\"],0,5)) != 'https'\n return (!isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) != 'on') ? 'http' : 'https';\n}", "title": "" }, { "docid": "8c478cb6508337c9a54de2d8f33f3183", "score": "0.6690824", "text": "function yourls_get_protocol( $url ) {\n\t/*\n\thttp://en.wikipedia.org/wiki/URI_scheme#Generic_syntax\n\tThe scheme name consists of a sequence of characters beginning with a letter and followed by any\n\tcombination of letters, digits, plus (\"+\"), period (\".\"), or hyphen (\"-\"). Although schemes are\n\tcase-insensitive, the canonical form is lowercase and documents that specify schemes must do so\n\twith lowercase letters. It is followed by a colon (\":\").\n\t*/\n preg_match( '!^[a-zA-Z][a-zA-Z0-9+.-]+:(//)?!', $url, $matches );\n\treturn (string)yourls_apply_filter( 'get_protocol', isset( $matches[0] ) ? $matches[0] : '', $url );\n}", "title": "" }, { "docid": "665dfdd3d818a9969e4695dc27a5323a", "score": "0.66672397", "text": "public function getHttpVersion() {\n if ($this->http_version === null) {\n if (isset($this->env['SERVER_PROTOCOL'])) {\n $this->http_version = $this->env['SERVER_PROTOCOL'];\n } else {\n $this->http_version = Env::DefaultHttpVersion;\n }\n }\n return $this->http_version;\n }", "title": "" }, { "docid": "eb8fc488b0727ca99dfca4d30fde497a", "score": "0.6654355", "text": "function wp_get_server_protocol()\n{\n}", "title": "" }, { "docid": "c94c828f7a593a0cd5b890fbafb1cdc6", "score": "0.6638979", "text": "static function ServerProtocol()\n {\n return new self('SERVER_PROTOCOL');\n }", "title": "" }, { "docid": "c334aaff3aa7212e206f415e1ab31e25", "score": "0.66217494", "text": "protected function getProtocol()\n\t{\n\t\t$protocol = \"outragelib-validate-buffer\";\n\t\t\n\t\tif(in_array($protocol, stream_get_wrappers()))\n\t\t\treturn $protocol;\n\t\t\n\t\tstream_wrapper_register($protocol, TemporaryFilesystemStreamWrapper::class);\n\t\t\n\t\treturn $protocol;\n\t}", "title": "" }, { "docid": "c19be961f64c858a68df4d969785d03c", "score": "0.65656364", "text": "public function getProtocol()\n {\n return $this;\n }", "title": "" }, { "docid": "8fd5e6ff578b76f38b96d959b80dc5f7", "score": "0.65525955", "text": "public static function getProtocolVersion(): string\n {\n return self::proxy()->getProtocolVersion();\n }", "title": "" }, { "docid": "b26f056cd6ad05f0dff6319955f4c681", "score": "0.65445477", "text": "abstract protected function getProtocolName();", "title": "" }, { "docid": "dcec4e725a96bde00a4da8dea586e28b", "score": "0.6534922", "text": "public function getProtocolVersion() : string\r\n {\r\n return $this->currentHttpProtocolVersion;\r\n }", "title": "" }, { "docid": "d38c46d145cc53e4d7b641ba3169594f", "score": "0.6510781", "text": "public function protocol() : string;", "title": "" }, { "docid": "188667110b69a06a160b4dbce3df964e", "score": "0.6498575", "text": "protected function protocolVersion()\n {\n return '1.1';\n }", "title": "" }, { "docid": "bfdcad30a4d39b8cc55967b3c3fd9079", "score": "0.6472622", "text": "private function autodetectProjectProtocol() {\n $protocol = \"cli\";\n\n $http_host = getenv(\"HTTP_HOST\");\n\t\tif (!empty($http_host)) {\n\t\t\t$protocol = \"http\";\n\t\t} ## FIXME https ?\n\n\t\ttrace(\"Autodetected project protocol scriptlet as '\".$protocol.\"'\", $this);\n return $protocol;\n\t}", "title": "" }, { "docid": "2768bd20a768a7d90e4de3a1a07c9812", "score": "0.64519066", "text": "public function getProtocolVersion(): string\n {\n return $this->protocolVersion;\n }", "title": "" }, { "docid": "f04f038437fa28938031234bee362079", "score": "0.6446212", "text": "static function SslProtocol()\n {\n return new self('SSL_PROTOCOL');\n }", "title": "" }, { "docid": "e428e248645e7537bea7ebf717e61873", "score": "0.6419498", "text": "public function getScheme()\n {\n return $this->isSecure() ? 'https' : 'http';\n }", "title": "" }, { "docid": "e428e248645e7537bea7ebf717e61873", "score": "0.6419498", "text": "public function getScheme()\n {\n return $this->isSecure() ? 'https' : 'http';\n }", "title": "" }, { "docid": "f54035b01aafc5e202e489a205631c86", "score": "0.6412236", "text": "public function getFieldProtocol()\n {\n $options = array(\n array( 'value' => 'http', 'text' => JText::_('HTTP') ),\n array( 'value' => 'https', 'text' => JText::_('HTTPS') ),\n );\n return JHTML::_('select.genericlist', $options, 'protocol', null, 'value', 'text', MagebridgeModelConfig::load('protocol'));\n }", "title": "" }, { "docid": "d069b980db008136410ba3179e4a8d66", "score": "0.64091825", "text": "public static function getScheme(): string\n {\n return self::isSecure() ? 'https' : 'http';\n }", "title": "" }, { "docid": "d069b980db008136410ba3179e4a8d66", "score": "0.64091825", "text": "public static function getScheme(): string\n {\n return self::isSecure() ? 'https' : 'http';\n }", "title": "" }, { "docid": "1f56a8cf691f37b2ae67dab7b9fe7846", "score": "0.63971853", "text": "public static function getProtocolVersion(): ?string\n {\n return server('SERVER_PROTOCOL');\n }", "title": "" }, { "docid": "1f56a8cf691f37b2ae67dab7b9fe7846", "score": "0.63971853", "text": "public static function getProtocolVersion(): ?string\n {\n return server('SERVER_PROTOCOL');\n }", "title": "" }, { "docid": "53dab2b7a407669d3e09d77a71d62861", "score": "0.63773656", "text": "protected function getEndpointProtocol(string $endpoint): string\n {\n if(function_exists('str_starts_with')){\n if (str_starts_with($endpoint, 'https')) {\n return 'https';\n }\n } else if(function_exists('starts_with')){\n if (starts_with($endpoint, 'https')) {\n return 'https';\n }\n }\n\n return 'http';\n }", "title": "" }, { "docid": "d2714e4f62b984b462d3e4f0b5ea1c02", "score": "0.635758", "text": "public function getScheme() {\n if ($this->scheme === null) {\n if (isset($this->env['wsgi.uri_scheme']) && $this->env['wsgi.uri_scheme'] == 'https') {\n $this->scheme = 'https';\n $this->is_secure = true;\n } else {\n $this->scheme = 'http';\n $this->is_secure = false;\n }\n }\n return $this->scheme;\n }", "title": "" }, { "docid": "53e218d4e0da88837ce331e17843d029", "score": "0.6347223", "text": "function server_scheme()\n{\n if (( ! empty($_SERVER['REQUEST_SCHEME']) && $_SERVER['REQUEST_SCHEME'] == 'https') || ( ! empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || ( ! empty($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443'))\n {\n return 'https';\n }\n else\n {\n return 'http';\n }\n}", "title": "" }, { "docid": "5f03db30f00df0576a99632379a629c4", "score": "0.6342915", "text": "public function getProtocolVersion();", "title": "" }, { "docid": "5f03db30f00df0576a99632379a629c4", "score": "0.6342915", "text": "public function getProtocolVersion();", "title": "" }, { "docid": "5f03db30f00df0576a99632379a629c4", "score": "0.6342915", "text": "public function getProtocolVersion();", "title": "" }, { "docid": "26c27b338518345186970ca61d12fb32", "score": "0.63384706", "text": "public static function getProtocolVersion()\n {\n return self::$protocolVersion;\n }", "title": "" }, { "docid": "6420cdf7fd2d956be47fe4d6810ade40", "score": "0.6334617", "text": "public function getHttpHost()\n {\n $scheme = $this->getScheme();\n $port = $this->getPort();\n\n if (('http' === $scheme && 80 === (int) $port)\n || ('https' === $scheme && 443 === (int) $port)\n ) {\n return $this->getHost();\n }\n\n return $this->getHost() . ':' . $port;\n }", "title": "" }, { "docid": "d4f7734e2bcde5656ad89fe4f4e579b3", "score": "0.6320627", "text": "public static function getHttpHost(): string\n {\n $scheme = self::getScheme();\n $port = self::getPort();\n\n if (('http' == $scheme && 80 == $port) || ('https' == $scheme && 443 == $port)) {\n return self::getHost();\n }\n\n return self::getHost() . \":{$port}\";\n }", "title": "" }, { "docid": "d4f7734e2bcde5656ad89fe4f4e579b3", "score": "0.6320627", "text": "public static function getHttpHost(): string\n {\n $scheme = self::getScheme();\n $port = self::getPort();\n\n if (('http' == $scheme && 80 == $port) || ('https' == $scheme && 443 == $port)) {\n return self::getHost();\n }\n\n return self::getHost() . \":{$port}\";\n }", "title": "" }, { "docid": "76aa397cc2c7ad897dba5ca8501fc98d", "score": "0.6307699", "text": "public function getHttpHost()\n {\n $scheme = $this->getScheme();\n $port = $this->getPort();\n if (('http' == $scheme && $port == 80) || ('https' == $scheme && $port == 443)) {\n return $this->getHost();\n }\n\n return $this->getHost() . ':' . $port;\n }", "title": "" }, { "docid": "bfa5d23b7e5dae0c4882a3eaa8827f65", "score": "0.6304974", "text": "protected function resolveProtocolHostNameAndPort()\n {\n $port = static::getServerParameter('SERVER_PORT');\n $hostName = static::getServerParameter('HTTP_HOST');\n // preference order: HTTPS, SERVER_PROTOCOL, http\n $https = static::getServerParameter('HTTPS');\n if (!isset($https))\n {\n $serverProtocol = static::getServerParameter('SERVER_PROTOCOL', 'http');\n }\n else\n {\n $serverProtocol = empty($https) ? 'http' : 'https';\n }\n $urlPrefix = \"{$serverProtocol}://${hostName}\";\n if (!in_array($port, array(80, 443)))\n {\n $urlPrefix = rtrim($urlPrefix, '/') . \"{$port}/\";\n }\n return $urlPrefix;\n }", "title": "" }, { "docid": "0159e801507e95c83a92b0ec844fceb5", "score": "0.6300195", "text": "public function getProtocolVersion(): string;", "title": "" }, { "docid": "bc4dcb16e624ecbc26194576c27e167f", "score": "0.6275874", "text": "public function get_http_method() {\n return $this->http_method;\n }", "title": "" } ]
a08949c7d1bc51651b8dd149ca39437b
lancer pour checker un paiement
[ { "docid": "f1c16a1b13ecc497eac70fecc6c81ab9", "score": "0.0", "text": "public function payCheckAction($equipe,$id)\n {\n $paiement = $this->getDoctrine()->getRepository('RotisCourseMakerBundle:Paiement')->find($id);\n\n $this->checkPaiement($paiement);\n\n return $this->redirect($this->generateUrl('account',array('id' => $equipe)));\n }", "title": "" } ]
[ { "docid": "e570963ef550115f1faa7e46007f7efa", "score": "0.66701186", "text": "public function check(){}", "title": "" }, { "docid": "e45374ea9d59640b0a5494b636a26c32", "score": "0.6651951", "text": "public function check();", "title": "" }, { "docid": "e45374ea9d59640b0a5494b636a26c32", "score": "0.6651951", "text": "public function check();", "title": "" }, { "docid": "e45374ea9d59640b0a5494b636a26c32", "score": "0.6651951", "text": "public function check();", "title": "" }, { "docid": "e45374ea9d59640b0a5494b636a26c32", "score": "0.6651951", "text": "public function check();", "title": "" }, { "docid": "e45374ea9d59640b0a5494b636a26c32", "score": "0.6651951", "text": "public function check();", "title": "" }, { "docid": "e45374ea9d59640b0a5494b636a26c32", "score": "0.6651951", "text": "public function check();", "title": "" }, { "docid": "cab8575d389849f23c178835ed6d817e", "score": "0.64732414", "text": "public function check() {}", "title": "" }, { "docid": "5b5d3f0a05dbc3773aa6153410ac0129", "score": "0.64366204", "text": "public function check()\n\t{\n\t}", "title": "" }, { "docid": "40d27b1b84de43c10d61be350018c9b6", "score": "0.6412518", "text": "function verificaPec();", "title": "" }, { "docid": "6fe6cfc8916ecddc85d6c2f38be6c953", "score": "0.635416", "text": "public function pass($check = false);", "title": "" }, { "docid": "ffc09617739fd6050151ec94e7b253c1", "score": "0.63395476", "text": "public function check() : void;", "title": "" }, { "docid": "74e7c47e7fb341e33630d229cacb5f27", "score": "0.6306483", "text": "private function checkeator(){\n\t\t//var_dump($this->contador);\n\t\tif($this->contador >= 2){\n\t\t\treturn false;\n\t\t}\n\t\t$checker = array();\n\t\t$this->contador++;\t//sumamos al contador cada vez que pasa por aqui\t\n\t\t$checker['1'] = $this->check_post($this->sql_restrict);\n\t\t$checker['2'] = $this->check_post($this->fun_restrict);\n\t\t$checker['3'] = $this->check_post($this->code_restrict);\n\t\tforeach ($checker as $key => $value) {\n\t\t\tif($value != true){\n\t\t\t\t$this->report = 'mota detectada en post';\n\t\t\t\t$this->report_key = $this->contador.' -'.$this->descartados.'_'.$key;\n\t\t\t\t//return false;\n\t\t\t\treturn $this->checkeator();\n\t\t\t}\n\t\t}\n\t\t//encontro todos true\n\t\treturn true;\n\t}", "title": "" }, { "docid": "00b8e7c9a4ef650387bfbe5cff5061c8", "score": "0.6303815", "text": "protected function checkForAol() {}", "title": "" }, { "docid": "db08493786726745c7c5998ff798b292", "score": "0.62785965", "text": "public function check():self;", "title": "" }, { "docid": "deec388a8637b96bdd21a6736cc4c70d", "score": "0.622818", "text": "public static function check() {}", "title": "" }, { "docid": "3056f53bc59e36bb57012701ac14a8db", "score": "0.62255865", "text": "function check()\n {\n }", "title": "" }, { "docid": "4a2f23d692ffd5ace86a007334ca6651", "score": "0.6213181", "text": "public function check()\n {\n }", "title": "" }, { "docid": "4a2f23d692ffd5ace86a007334ca6651", "score": "0.6213181", "text": "public function check()\n {\n }", "title": "" }, { "docid": "4a2f23d692ffd5ace86a007334ca6651", "score": "0.6213181", "text": "public function check()\n {\n }", "title": "" }, { "docid": "4a2f23d692ffd5ace86a007334ca6651", "score": "0.6213181", "text": "public function check()\n {\n }", "title": "" }, { "docid": "6354cc10cf0f0d0e3689ad7ec7285d0c", "score": "0.62126565", "text": "public function passes();", "title": "" }, { "docid": "6354cc10cf0f0d0e3689ad7ec7285d0c", "score": "0.62126565", "text": "public function passes();", "title": "" }, { "docid": "6354cc10cf0f0d0e3689ad7ec7285d0c", "score": "0.62126565", "text": "public function passes();", "title": "" }, { "docid": "6354cc10cf0f0d0e3689ad7ec7285d0c", "score": "0.62126565", "text": "public function passes();", "title": "" }, { "docid": "25644080483b12882e39dfca37009761", "score": "0.6206091", "text": "public static function check();", "title": "" }, { "docid": "049ea5de56bcb15c0cd07a7a354697af", "score": "0.6201536", "text": "abstract public function check(): void;", "title": "" }, { "docid": "d6876645e7dafce6c64f554b23deafde", "score": "0.60959584", "text": "public function checkExerciceVerrouille()\n {\n $this->exercice->checkVerrouille();\n }", "title": "" }, { "docid": "3194551957776e68af8d327e40354c81", "score": "0.6035712", "text": "private function check()\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "4b5aaefcc380d9467865367502bd4969", "score": "0.6024392", "text": "public function checkError(){\n if($this->pantalla == \"Error de sintáxis\"){\n $this->pantalla = \"\"; \n }\n }", "title": "" }, { "docid": "506f550b8567a28b9fa6a5b86c877d91", "score": "0.60183525", "text": "public function valida_nuevo_puesto($clave){\n $sql=\"select * from vw_puestos where puesto_cve = '$clave';\";\n $result = pg_query($this->conexion,$sql) or die(\"Error vnp: \". pg_last_error());//valida nuevo puesto\n if($row=pg_fetch_array($result)){\n if($row['puesto_cve'] == $clave){\n $this->msj = 1;\n }else{\n $this->msj = 0;\n }\n }else{\n $this->msj = 0;\n }\n }", "title": "" }, { "docid": "eb64ab857007ffc8bf1a7efed16216fd", "score": "0.59772414", "text": "public function verifierGagner(){\r\n $res = 0;\r\n //Double boucle qui verifie toutes les cases du plateau\r\n for ($i=0; $i < 7; $i++) {\r\n for ($j=0; $j < 7; $j++) {\r\n //Si la case a un pion, ajoute 1 a res\r\n if ($_SESSION[\"plateau\"][$i][$j] == 1) {\r\n $res = $res + 1;\r\n }\r\n }\r\n }\r\n //Si res = 1, retourne true car le plateau n'a qu'un pion donc la partie est gagnee\r\n if ($res == 1) {\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "3875b67aacc233908f869c931f382b93", "score": "0.59498644", "text": "function check() {\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "c083887978576673e6c42a2ade1573aa", "score": "0.5919688", "text": "function check()\r\r\n\t{\r\r\n\t\treturn true;\r\r\n\t}", "title": "" }, { "docid": "3cf5519c9c977cacc851b7e9edc3f5ed", "score": "0.5904902", "text": "function verificarAprobado($retorno) {\n $aprobado=$this->validacion->validarAprobado($_REQUEST);\n if($aprobado!='ok'&&is_array($aprobado))\n {\n $retorno['mensaje']=\"El espacio academico ya ha sido aprobado por el estudiante en \".$aprobado[0]['ANO'].\"-\".$aprobado[0]['PERIODO'].\". No se ha realizado la inscripción\";\n $this->noAdicionar($retorno);\n }\n }", "title": "" }, { "docid": "a92d5dc671d6429839c027b8877665c2", "score": "0.5903475", "text": "final protected function pass () {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "896d507085b669fc21c9dc54e6ad5dc2", "score": "0.58797044", "text": "public function sanity_check() {\n\t\t\n\t}", "title": "" }, { "docid": "63341234e9f8503e28b24c3b78c076a6", "score": "0.5859987", "text": "function check()\n {\n /* Call common method to give check the hook */\n $message= plugin::check();\n\n $this->detect_grouptype();\n\n if(preg_match(\"/[^0-9]/\",$this->gotoProfileQuota)) {\n $message[] = msgPool::invalid(_(\"Profile quota\"),$this->gotoProfileQuota,\"/[0-9]/\") ;\n } \n if(!isset($this->attrs['objectClass'])){\n $this->attrs['objectClass']=array();\n } \n if(!$this->is_group){\n if((!((in_array_strict(\"posixAccount\",$this->attrs['objectClass']))||($this->parent->by_object['posixAccount']->is_account==true)))&&(!$this->is_group)){\n $message[]= msgPool::featuresDisabled(_(\"environment\"),_(\"POSIX\")); \n }\n }\n return ($message);\n }", "title": "" }, { "docid": "343f5cfbe9deea5c5dff8a5180324958", "score": "0.58534235", "text": "public function runValidation() : bool\n {\n // Validasi laporan harus asli dari aplikasi Iqfast tanpa perubahan apapun\n if (! $this->validateFileFromIqfast()) {\n\n $this->setWarning(\"Format Laporan Yang Anda Unggah Bukan Merupakan Format Laporan Bulanan Dari IQFAST!\");\n\n return false;\n }\n\n // Validasi laporan harus berupa laporan bulanan\n if (! $this->validateMustLaporanBulanan()) {\n\n $this->setWarning(\"Hanya Laporan Bulanan Yang Boleh Diupload!\");\n\n return false;\n }\n\n // Validasi wilker pada laporan harus sesuai dengan wilker user yang mengupload\n \tif (! $this->validateUserWilker()) {\n\n \t\t$this->setWarning(\"Laporan Yang Anda Unggah Tidak Sesuai Dengan Wilker Anda!\");\n\n \treturn false;\n \t}\n\n // Validasi jenis karantina pada laporan harus sesuai dengan jenis karantina user yang mengupload\n \tif (! $this->validateJenisKarantina()) {\n\n \t\t$this->setWarning(\"Format Laporan Yang Anda Unggah Bukan Bukan Kegiatan {$this->jenisKarantina}!\");\n\n \t\treturn false;\n\n \t}\n\n // Validasi jenis karantina pada laporan harus sesuai dengan masing-masing halaman upload\n \tif (! $this->validateJenisPormohonan()) {\n\n \t\t$this->setWarning(\"Format Laporan Yang Anda Unggah Bukan Laporan {$this->jenisPermohonan}!\");\n\n \t\treturn false;\n\n \t}\n\n // Validasi isi laporan\n if (! $this->validateLaporanHasValue()) {\n\n $this->setWarning(\"Laporan Yang Nihil Tidak Perlu Untuk Diupload\");\n\n return false;\n\n }\n\n \treturn true;\n }", "title": "" }, { "docid": "c21943fea45d40fcbf896c5098f3a061", "score": "0.5845331", "text": "public function verifierPerdre(){\r\n //Double boucle qui verifie toutes les cases du plateau\r\n for ($i=0; $i < 7; $i++) {\r\n for ($j=0; $j < 7; $j++) {\r\n //Si un deplacement est possible, que ce soit a gauche, a droit, en haut ou en bas retourne false (car la partie n'est pas encore perdue)\r\n if ($this->verifierDeplacement($i, $j, $i+2, $j) || $this->verifierDeplacement($i, $j, $i-2, $j) || $this->verifierDeplacement($i, $j, $i, $j+2) || $this->verifierDeplacement($i, $j, $i, $j-2)) {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "520b2d28bfda3d39bc63b1dd69660865", "score": "0.5821166", "text": "function migration_formulaire_verifier($flux) {\n\t#var_dump('Pipe verifier');\n\n\tif (\n\t\t$form = $flux['args']['form']\n\t\tand ($e = migration_recuperer_post_precedents($form)) !== false\n\t) {\n\t\t// recuperer l'etape saisie et le nombre d'etapes total\n\t\tlist($etape, $etapes) = $e;\n\t\t$etape_demandee = _request('aller_a_etape'); // possibilite de poster en entier dans aller_a_etape\n\n\t\t// lancer les verifs pour chaque etape deja saisie de 1 a $etape\n\t\t$erreurs_etapes = array();\n\t\t$derniere_etape_ok = 0;\n\t\t$e = 0;\n\t\twhile ($e < $etape and $e < $etapes) {\n\t\t\t$e++;\n\t\t\t$erreurs_etapes[$e] = array();\n\t\t\tif ($verifier = charger_fonction(\"verifier_$e\", \"formulaires/$form/\", true)) {\n\t\t\t\t$erreurs_etapes[$e] = call_user_func_array($verifier, $flux['args']['args']);\n\t\t\t} elseif ($verifier = charger_fonction('verifier_etape', \"formulaires/$form/\", true)) {\n\t\t\t\t$args = $flux['args']['args'];\n\t\t\t\tarray_unshift($args, $e);\n\t\t\t\t$erreurs_etapes[$e] = call_user_func_array($verifier, $args);\n\t\t\t}\n\t\t\tif ($derniere_etape_ok == $e - 1 and !count($erreurs_etapes[$e])) {\n\t\t\t\t$derniere_etape_ok = $e;\n\t\t\t}\n\t\t\t// possibilite de poster dans _retour_etape_x\n\t\t\tif (!is_null(_request(\"_retour_etape_$e\"))) {\n\t\t\t\t$etape_demandee = $e;\n\t\t\t}\n\t\t}\n\n\t\t// si la derniere etape OK etait la derniere\n\t\t// on renvoie le flux inchange et ca declenche traiter\n\t\tif ($derniere_etape_ok == $etapes and !$etape_demandee) {\n\t\t\treturn $flux;\n\t\t} else {\n\t\t\t$etape = $derniere_etape_ok + 1;\n\t\t\tif ($etape_demandee > 0 and $etape_demandee < $etape) {\n\t\t\t\t$etape = $etape_demandee;\n\t\t\t}\n\t\t\t$etape = min($etape, $etapes);\n\t\t\t#var_dump(\"prochaine etape $etape\");\n\t\t\t// retourner les erreurs de l'etape ciblee\n\t\t\t$erreurs= isset($erreurs_etapes[$etape]) ? $erreurs_etapes[$etape] : array();\n\t\t\t// Ne pas se tromper dans le texte du message d'erreur : la clé '_etapes' n'est pas une erreur !\n\t\t\tif ($erreurs) {\n\t\t\t\t$erreurs['message_erreur'] = singulier_ou_pluriel(count($erreurs), 'avis_1_erreur_saisie', 'avis_nb_erreurs_saisie');\n\t\t\t} else {\n\t\t\t\t$erreurs['message_erreur'] = \"\";\n\t\t\t}\n\t\t\t$flux['data'] = $erreurs;\n\t\t\t$flux['data']['_etapes'] = \"etape suivante $etape\";\n\t\t\tset_request('_etape', $etape);\n\t\t}\n\t}\n\treturn $flux;\n}", "title": "" }, { "docid": "9dd24cc0ab261f4f8a93191611045a23", "score": "0.58126587", "text": "public function valid () {}", "title": "" }, { "docid": "bb7be9a1abdea1ec24e512bbd54b6780", "score": "0.57955915", "text": "private function isvalid(){}", "title": "" }, { "docid": "ab566ffb37b724b58b4fda2bdccf3c2f", "score": "0.5781734", "text": "public function compruebaPasa() \r\n {\r\n if ($this->compruebaJugada()>7.5)\r\n return true;\r\n else\r\n return false; \r\n }", "title": "" }, { "docid": "349069f319e25302355f3691c45a8652", "score": "0.57809323", "text": "function verifier() {\n\n\t\tif ($this->erreurs() || !$this->autoriser()) \n\t\t\t\treturn false;\n\n\t\t// si on a pas poste de formulaire, pas la peine de controler\n\t\t// ce qui mettrait de fausses valeurs dans l'environnement\n\t\tif (!_request('_cfg_ok') && !_request('_cfg_delete')) return true;\n\n\t\t// les formulaires CVT ont deja leurs securites\n\t\tif (!$this->depuis_cvt) {\n\t\t\t$securiser_action = charger_fonction('securiser_action', 'inc');\n\t\t\t$securiser_action();\n\t\t}\n\n\t\t// actions par champs speciaux, avant les tests des nouvelles valeurs\n\t\t$this->actionner_extensions('pre_verifier');\n\t\t\n\t\t// stockage des nouvelles valeurs\n\t\tforeach ($this->champs as $name => $def) {\n\t\t\t// enregistrement des valeurs postees\n\t\t\t$oldval = $this->val[$name];\n\t\t $this->val[$name] = _request($name);\n\t\t \n\t\t // tracer les modifications\n\t\t if ($oldval != $this->val[$name]) {\n\t\t \t$this->log_modif .= $name . ':' . var_export($oldval, true) . '/' . var_export($this->val[$name], true) .', ';\n\t\t }\n\t\t}\n\t \n\t\t// si pas de changement, pas la peine de continuer\n\t\tif (!$this->log_modif && !_request('_cfg_delete')) {\n\t\t\t$this->messages['message_erreur'][] = _T('cfg:pas_de_changement', array('nom' => $this->nom_config()));\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// verifier la validite des champs speciaux (cfg_xx, type_xx)\n\t\t$this->actionner_extensions('verifier');\n\t\t\n\t\t// stocker le fait que l'on a controle les valeurs\n\t\t$this->verifier = true;\n\t return !$this->erreurs();\n\t}", "title": "" }, { "docid": "ff51ae285beaad35f324c5aabb6462e5", "score": "0.577419", "text": "public function verife() {\n\n\n $tes = FALSE;\n if (strlen($this->nom) < 50 && strlen($this->prenom) < 50 && strlen($this->pseudo) < 20 && strlen($this->pseudo) > 2) { //verification de nom et prenom et pseudo\n $syntaxe = '#^[\\w.-]+@[\\w.-]+\\.[a-zA-Z]{2,6}$#';\n if (preg_match($syntaxe, $this->email)) {//ferification de l'email\n if (strlen($this->motPass1) > 7 && $this->motPass1 == $this->motPass2) {//verifivation du mot de pass\n if (!$this->isPseudoUtilisateur()) {\n $tes = TRUE;\n $this->password = password_hash($this->motPass1, PASSWORD_DEFAULT);\n $this->motPass1 = NULL;\n $this->motPass2 = NULL;\n } else {\n $this->error = \"Ce pseudo existe deja \";\n }\n } else {\n $this->error = \"Les deux mot de passe ne correspond pas ou est trop court,Il doit etre supérieur a 8 caractere \";\n }\n } else {\n $this->error = \"L'email doit avoir une format caractere@caractere.caractere\";\n }\n } else {\n $this->error = \"longueur max du nom est de 50 caractere, longeur max du prenom est de 50 caractere, La taille du pseudo doit etre entre 20 a 50 caractere \";\n }\n return $tes;\n }", "title": "" }, { "docid": "02f59c9760b03cdd4704a81f28847f17", "score": "0.5763294", "text": "public function processPagoValidaciones(){\n\t\n\t\t\n\t}", "title": "" }, { "docid": "908bb392e32f19c50c590e9f15571822", "score": "0.57385206", "text": "function check() {\n return true;\n }", "title": "" }, { "docid": "0d4f0f945a4d1f4c2733d9a205fdce99", "score": "0.57297367", "text": "public function passes(): bool;", "title": "" }, { "docid": "18639ef2e1b350df79535dfbb734d124", "score": "0.57221276", "text": "function check()\n {\n return true;\n }", "title": "" }, { "docid": "18639ef2e1b350df79535dfbb734d124", "score": "0.57221276", "text": "function check()\n {\n return true;\n }", "title": "" }, { "docid": "18639ef2e1b350df79535dfbb734d124", "score": "0.57221276", "text": "function check()\n {\n return true;\n }", "title": "" }, { "docid": "18639ef2e1b350df79535dfbb734d124", "score": "0.57221276", "text": "function check()\n {\n return true;\n }", "title": "" }, { "docid": "18639ef2e1b350df79535dfbb734d124", "score": "0.57221276", "text": "function check()\n {\n return true;\n }", "title": "" }, { "docid": "18639ef2e1b350df79535dfbb734d124", "score": "0.57221276", "text": "function check()\n {\n return true;\n }", "title": "" }, { "docid": "18639ef2e1b350df79535dfbb734d124", "score": "0.57221276", "text": "function check()\n {\n return true;\n }", "title": "" }, { "docid": "4b42e59d161853d8ab60a1a84b68e75f", "score": "0.5700412", "text": "public function check(){\n return true;\n }", "title": "" }, { "docid": "c7f6b517bc5139fae1ee55d2100db8db", "score": "0.56858915", "text": "function isValid() ;", "title": "" }, { "docid": "fd48b77f0404fa6be1a857af9270b400", "score": "0.56775635", "text": "public function valid(){}", "title": "" }, { "docid": "97596008c4ad3d0f3067db1b415d8e21", "score": "0.5670921", "text": "protected function check()\n\t{\n\t\t// TODO: add special validate\n\t\treturn true;\n\t}", "title": "" }, { "docid": "e252c48d14d8cc20fcbb1074c6e10877", "score": "0.56627256", "text": "public function valid() {}", "title": "" }, { "docid": "e252c48d14d8cc20fcbb1074c6e10877", "score": "0.56627256", "text": "public function valid() {}", "title": "" }, { "docid": "e252c48d14d8cc20fcbb1074c6e10877", "score": "0.56623584", "text": "public function valid() {}", "title": "" }, { "docid": "e252c48d14d8cc20fcbb1074c6e10877", "score": "0.56623584", "text": "public function valid() {}", "title": "" }, { "docid": "e252c48d14d8cc20fcbb1074c6e10877", "score": "0.56623584", "text": "public function valid() {}", "title": "" }, { "docid": "e252c48d14d8cc20fcbb1074c6e10877", "score": "0.56623584", "text": "public function valid() {}", "title": "" }, { "docid": "e252c48d14d8cc20fcbb1074c6e10877", "score": "0.56623584", "text": "public function valid() {}", "title": "" }, { "docid": "e252c48d14d8cc20fcbb1074c6e10877", "score": "0.56623584", "text": "public function valid() {}", "title": "" }, { "docid": "e252c48d14d8cc20fcbb1074c6e10877", "score": "0.56623584", "text": "public function valid() {}", "title": "" }, { "docid": "e252c48d14d8cc20fcbb1074c6e10877", "score": "0.56623584", "text": "public function valid() {}", "title": "" }, { "docid": "e252c48d14d8cc20fcbb1074c6e10877", "score": "0.56623584", "text": "public function valid() {}", "title": "" }, { "docid": "e252c48d14d8cc20fcbb1074c6e10877", "score": "0.56623584", "text": "public function valid() {}", "title": "" }, { "docid": "e252c48d14d8cc20fcbb1074c6e10877", "score": "0.56623584", "text": "public function valid() {}", "title": "" }, { "docid": "e252c48d14d8cc20fcbb1074c6e10877", "score": "0.56623584", "text": "public function valid() {}", "title": "" }, { "docid": "e252c48d14d8cc20fcbb1074c6e10877", "score": "0.56623584", "text": "public function valid() {}", "title": "" }, { "docid": "e252c48d14d8cc20fcbb1074c6e10877", "score": "0.56623584", "text": "public function valid() {}", "title": "" }, { "docid": "e252c48d14d8cc20fcbb1074c6e10877", "score": "0.56623584", "text": "public function valid() {}", "title": "" }, { "docid": "6c3d3b1afee9c4237a0e2b039d5592c3", "score": "0.5650642", "text": "public function valid();", "title": "" }, { "docid": "6c3d3b1afee9c4237a0e2b039d5592c3", "score": "0.5650642", "text": "public function valid();", "title": "" }, { "docid": "6c3d3b1afee9c4237a0e2b039d5592c3", "score": "0.5650642", "text": "public function valid();", "title": "" }, { "docid": "6c3d3b1afee9c4237a0e2b039d5592c3", "score": "0.5650642", "text": "public function valid();", "title": "" }, { "docid": "6c3d3b1afee9c4237a0e2b039d5592c3", "score": "0.5650642", "text": "public function valid();", "title": "" }, { "docid": "6c3d3b1afee9c4237a0e2b039d5592c3", "score": "0.5650642", "text": "public function valid();", "title": "" }, { "docid": "6c3d3b1afee9c4237a0e2b039d5592c3", "score": "0.5650642", "text": "public function valid();", "title": "" }, { "docid": "6c3d3b1afee9c4237a0e2b039d5592c3", "score": "0.5650642", "text": "public function valid();", "title": "" }, { "docid": "6c3d3b1afee9c4237a0e2b039d5592c3", "score": "0.5650642", "text": "public function valid();", "title": "" }, { "docid": "6c3d3b1afee9c4237a0e2b039d5592c3", "score": "0.5650642", "text": "public function valid();", "title": "" }, { "docid": "6c3d3b1afee9c4237a0e2b039d5592c3", "score": "0.5650642", "text": "public function valid();", "title": "" }, { "docid": "6c3d3b1afee9c4237a0e2b039d5592c3", "score": "0.5650642", "text": "public function valid();", "title": "" }, { "docid": "58e97406b78e3d640abb5db98932b019", "score": "0.5637228", "text": "private function check_form(){\n\t\tif( (empty($_POST['ip_enc'])) || (empty($_POST['aleatorio'])) ){\n\t\t\t//echo '<script>alert(\"FALTA ALGUN POST\")</script>';\n\t\t\t$this->continue = false;\n\t\t\t$this->report = 'error en check_form 1';\n\t\t\t$this->report_key = 'falta un post imprescindible';\n\t\t\treturn false;\n\t\t}else{\n\t\t\t$v1 = $this->seguridad_form($_SERVER['HTTP_REFERER']);\t\t//referer\n\t\t\t$v2 = $this->seguridad_form_post($_POST['ip_enc']); \t\t//ip\n\t\t\t$v3 = $this->seguridad_form_session($_POST['aleatorio']);\t//token\n\t\t\tif(($v1 == true) && ($v2 == true) && ($v3 == true)){\n\t\t\t\t//borro ambos valores para no crear error en db\n\t\t\t\tunset($_POST['ip_enc']);\n\t\t\t\tunset($_POST['aleatorio']);\n\t\t\t\t//unico camino valido\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\t$this->report = 'error en check_form 2';\n\t\t\t\t$this->report_key = $v1.' - '.$v2.' - '.$v3;\n\t\t\t\treturn false;\n\t}\t}\t}", "title": "" }, { "docid": "0d1d0bc91b47f13991c6d63fb7ea50f3", "score": "0.56215954", "text": "function fn_valider(){\n\n /**\n * @var int $code\n * @var string $courriel\n **/\n extract(self::check_params(\n 'courriel;courriel;sql',\n 'code;unsigned;min:100000'\n ));\n\n /**\n * @var string $nom\n **/\n $res = db::query((\"\n\t\t\tSELECT concat(prenom, ' ', nom) nom\n\t\t\t\tFROM membres\n\t\t\t\tWHERE code_validation = $code and courriel = $courriel AND NOT code_pour_nouveau_courriel\n\t\t\t\t\"),\n 'acces_table');\n\n\n if ($res->num_rows == 0){\n $this->fin('mauvais_code');\n }\n extract($res->fetch_assoc());\n self::$data['nom'] = $nom;\n $this->succes();\n\n }", "title": "" }, { "docid": "3d5d07f014eaaf4e89d06191652e4bcc", "score": "0.56018907", "text": "public function valide()\r\n {\r\n return $this->existe() && $this->taille() && $this->extension() && $this->poidsOk();\r\n }", "title": "" }, { "docid": "a0bb8188d5546a7749ddfecefbedab84", "score": "0.5601045", "text": "function check($p) {\n\t\t// $target\n\t\t// $len\n\t\t// $p\n\t\tglobal $stroage, $msatr, $total, $repeat;\n\t\tif ($repeat>=2) {\n\t\t\tif ($repeat>=$p) {\n\t\t\t\t$msatr[$total]['senquence']=implode($stroage);\n\t\t\t\t$msatr[$total]['repeat']=$repeat;\n\t\t\t\t$msatr[$total]['length']=strlen($msatr[$total]['senquence'])/$repeat;\n\t\t\t\t$total++;\n\t\t\t}\n\t\t} \n\t\t$stroage=array();\n\t\t$repeat=1;\n\t}", "title": "" }, { "docid": "75be0a26f988f26195ab78c0d22115d2", "score": "0.55902725", "text": "function proof_scorer(){\n $i = 1;\n $goalsh=0;\n $goalsa=0;\n\n $erg ='';\n while ($i<=$this->goals_count){\n $temp = $this->goals_arr[$i];\n if (!$temp['h_a']){$erg.=\"Tor $i: Es wurde weder das Tor f&uuml;r 'Heim' noch f&uuml;r 'Ausw&auml;rts' ausgew&auml;hlt.<br>\";} else {$h_a = $temp['h_a'];}\n if ($this->stufen['moreinfo']!=FALSE) {\n if ($temp['min']<1 OR $temp['min']>120){$erg.=\"Tor $i: Die Minutenangabe ist keine Zahl oder liegt nicht zwischen 1 und 120.<br>\";}\n }\n //Schuetzenangabe\n if (!$temp['spa'] == !$temp['spt']){$erg.=\"Tor $i: Schu&uuml;tzenangabe - Entweder einen Spieler im Auswahlfeld angeben ODER im Textfeld, jedoch nicht beides oder keines.<br>\";\n } else {//spa !=spt FALSE\n if ($temp['spa']){\n $arra = explode(';',$temp['spa']);\n if (count($arra)!=2){$erg.=\"Tor $i: Sch&uuml;tzenangabe: Die Spielerauswahl ist nicht im Format 'Spieler;Team'. Bitte wenden Sie sich an den Administrator oder geben sie im Textfeld einen Spieler ein.<br>\";\n } else {\n if (!$arra[0]){$erg.=\"Tor $i: Der ausgew&auml;hlte Spielername darf nicht leer sein. Wenden sie sich bitte an den Administrator.<br>\";} else {$schuetze = $arra[0];}\n if ($arra[1]!= $this->teamA AND $arra[1]!= $this->teamB){$erg.=\"Tor $i: Der ausgew&auml;hlte Sch&uuml;tze geh&ouml;rt nicht einem der beiden Teams des Spieles an.<br>\";} else {$team = $arra[1];}\n }\n } else {// spa TRUE\n $arra = explode(';',$temp['spt']);\n if (count($arra)!=2){$erg.=\"Tor $i: Sch&uuml;tzenangabe: Die Spielerangabe ist nicht im Format 'Spieler;Team'. Der Spielername muss mit einem Semikolon ';' vom Team getrennt werden.<br>\";\n } else {//count arra spt != 2\n if (!$arra[0]){$erg.=\"Tor $i: Der eingegeben Spielername darf nicht leer sein.<br>\";} else {$schuetze = $arra[0];}\n if ($arra[1]!= $this->teamA AND $arra[1]!= $this->teamB){$erg.=\"Tor $i: Das Team des eingegebenen Sch&uuml;tzen wurde falsch geschrieben/angegeben.<br>\";} else {$team = $arra[1];}\n } //count arra spt = 2\n }//spa FALSE\n\n }//spa != spt TRUE\n //Typ\n if ($temp['typ'] == '' OR $temp['typ'] == 'ET' OR $temp['typ'] == 'EM' OR $temp['typ'] == 'FS'){\n if ($temp['typ'] == 'ET') {$et = TRUE;} else {$et = FALSE;}\n } else {\n $erg.=\"Tor $i: Der Tortyp ist Ung&uuml;ltig, Bitte wenden Sie sich an den Admin.<br>\";\n }\n if ($h_a == 'home' AND !$et AND $team != $this->teamA){$erg.=\"Tor $i: Es wurde ein Spieler vom falschen Team f&uuml;r dieses Heimtor ausgew&auml;hlt oder das Tor nicht als Eigentor deklariert.<br>\";}\n if ($h_a == 'home' AND $et AND $team != $this->teamB){$erg.=\"Tor $i: Es wurde ein Spieler vom falschen Team f&uuml;r dieses Heimtor ausgew&auml;hlt oder das Tor f&auml;lschlicherweise als Eigentor deklariert.<br>\";}\n if ($h_a == 'away' AND !$et AND $team != $this->teamB){$erg.=\"Tor $i: Es wurde ein Spieler vom falschen Team f&uuml;r dieses Ausw&auml;rtstor ausgew&auml;hlt oder das Tor nicht als Eigentor deklariert.<br>\";}\n if ($h_a == 'away' AND $et AND $team != $this->teamA){$erg.=\"Tor $i: Es wurde ein Spieler vom falschen Team f&uuml;r dieses Ausw&auml;rtstor ausgew&auml;hlt oder das Tor f&auml;lschlicherweise als Eigentor deklariert.<br>\";}\n\n //Vorlagengeber\n if ($this->stufen['moreinfo']!=FALSE) {\n if (!$temp['voa'] == !$temp['vot']){$erg.=\"Tor $i: Vorlagengeber - Entweder einen Spieler im Auswahlfeld angeben ODER im Textfeld, jedoch nicht beides oder keines.<br>\";\n } else {//voa !=vot FALSE\n if ($temp['voa'] AND $temp['voa'] != -1){\n $arra = explode(';',$temp['voa']);\n if (count($arra)!=2){$erg.=\"Tor $i: Vorlagengeber: Die Spielerauswahl ist nicht im Format 'Spieler;Team'. Bitte wenden Sie sich an den Administrator oder geben sie im Textfeld einen Spieler ein.<br>\";\n } else {\n if (!$arra[0]){$erg.=\"Tor $i: Vorlagengeber: Der ausgew&auml;hlte Spielername darf nicht leer sein. Wenden sie sich bitte an den Administrator.<br>\";} else {$vorlagg = $arra[0];}\n if ($arra[1]!= $this->teamA AND $arra[1]!= $this->teamB){$erg.=\"Tor $i: Der ausgew&auml;hlte Vorlagengeber geh&ouml;rt nicht einem der beiden Teams des Spieles an.<br>\";} else {$teamB = $arra[1];}\n }\n } elseif ($temp['voa'] != -1) {// voa TRUE\n $arra = explode(';',$temp['vot']);\n if (count($arra)!=2){$erg.=\"Tor $i: Vorlagengeber: Die Spielerangabe ist nicht im Format 'Spieler;Team'. Der Spielername muss mit einem Semikolon ';' vom Team getrennt werden.<br>\";\n } else {//count arra vot != 2\n if (!$arra[0]){$erg.=\"Tor $i: Der eingegeben Spielername darf nicht leer sein.<br>\";} else {$vorlagg = $arra[0];}\n if ($arra[1]!= $this->teamA AND $arra[1]!= $this->teamB){$erg.=\"Tor $i: Das Team des eingegebenen Schuetzen wurde falsch geschrieben/angegeben.<br>\";} else {$teamB = $arra[1];}\n } //count arra vot = 2\n }//voa FALSE\n }//voa != vot TRUE\n\n if ($et AND ($temp['voa']!='-1' OR $temp['vot'])){$erg.=\"Tor $i: Vorlagengeber: Bei einem Eigentor kann es keinen Vorlagengeber geben. W&auml;hlen sie deshalb bitte -kein Spieler- und lassen sie die Texteingabe f&uuml;r den Vorlagengeber leer.<br>\";}\n\n if ($temp['voa'] != -1 AND $team != $teamB){$erg.=\"Tor $i: Der Vorlagengeber muss vom gleichen Verein wie der Sch&uuml;tze sein.<br>\";}\n if ($this->goals_arr[$i]['min'] < $this->goals_arr[$i-1]['min']){$erg .= \"Tor $i: Die Minutenangabe von Tor $i ist kleiner als die von Tor \". ($i-1) .\".<br>\";}\n } //stufen['moreinfo']\n\n switch ($h_a){\n case 'away': $goalsa++; $ha = 'a'; break;\n case 'home': $goalsh++; $ha = 'h'; break;\n }\n $this->goals_arr[$i]['stand']=$goalsh.':'.$goalsa;\n $this->goals_arr[$i]['verein']=$team;\n $this->goals_arr[$i]['schuetze']=$schuetze;\n if ($this->stufen['moreinfo']!=FALSE) {\n $this->goals_arr[$i]['vorlagengeber']=$vorlagg;\n }\n if ($schuetze AND $team AND ($vorlagg OR $temp['voa'] == -1)){\n if (!is_array($this->spieler[strtoupper($ha)])){$this->spieler[strtoupper($ha)]=array();}\n if (!in_array($schuetze.';'.$team,$this->spieler[strtoupper($ha)])){$this->spieler[strtoupper($ha)][]=$schuetze.';'.$team;}\n if ($this->stufen['moreinfo']!=FALSE) {\n if (!in_array($vorlagg.';'.$team,$this->spieler[strtoupper($ha)]) AND $temp['voa'] != -1){$this->spieler[strtoupper($ha)][]=$vorlagg.';'.$team;}\n }\n }\n\n $vorlagg='';\n $schuetze='';\n $team='';\n $i++;\n\n }//while\n\n if ($goalsh != $this->goalsA){$erg.=\"Die Anzahl der Heimtore stimmt nicht mit der Ergebnisangabe ueberein.<br>\";}\n if ($goalsa != $this->goalsB){$erg.=\"Die Anzahl der Ausw&auml;rtstore stimmt nicht mit der Ergebnisangabe ueberein.<br>\";}\n return $erg;\n }", "title": "" }, { "docid": "c37f53c79a4b037d0e86ea69bc205bc4", "score": "0.55721706", "text": "public function getChecker();", "title": "" }, { "docid": "cb22dca9df19a05ac697280899849b80", "score": "0.5559859", "text": "public function valida_pc($equipo) {\n $sqlvpc = \"select * from pcs where pc_ip = '$equipo'\";\n $resultvpc = pg_query($this->conexion,$sqlvpc) or die(\"Error vpc: \". pg_last_error());//valida pc\n if($rowvpc = pg_fetch_array($resultvpc)){\n $this->msj='autorizado';\n }else{\n $this->msj='no autorizado';\n } \n }", "title": "" }, { "docid": "b39dd5f5b7fd3b907c23708897045f94", "score": "0.55400467", "text": "function check()\n {\n /* Call common method to give check the hook */\n $message= plugin::check();\n\n if(isset($this->parent->SubObjects[$this->cn]) && $this->cn != $this->orig_cn){\n $message[]= msgPool::duplicated(_(\"Name\"));\n }\n\n $c = trim($this->cn);\n if($c == \"\"){\n $message[] = msgPool::required(_(\"Name\"));\n }\n if(preg_match(\"/[^a-z0-9_\\-]/i\",$c)){\n $message[] = msgPool::invalid(_(\"Name\"),$c,\"/[a-z0-9_\\-]/i\");\n }\n\n $s = trim($this->FAIscript);\n if($s == \"\"){\n $message[]= msgPool::required(_(\"Script\"));\n }\n\n return ($message);\n }", "title": "" }, { "docid": "18cc3815c7ba8282d8245acddc78cbf5", "score": "0.5535885", "text": "function verificaPreenchimentoDosCampos(){//Todo campo da ultima página é verificado se foi preenchido\n verificaFormularioPesquisa($GLOBALS['mesAniversario'],$GLOBALS['emailPesquisa'],$GLOBALS['aproximacao']);\n verificaPreenchimentoFormulario();\n validaCliqueBotao();\n }", "title": "" }, { "docid": "eacbd8673135c0dbb9e62ed8019e1c3f", "score": "0.5534146", "text": "function _check_tracker()\n\t{\t\n\t\t$rules['name'] = 'trim|required|min_length[3]|max_length[255]';\n\t\t$rules['url'] = 'trim|required|prep_url';\n\t\t$rules['cost'] = 'trim|numeric';\n\t\t$rules['cost_type'] = 'trim';\n\t\t$rules['recur'] = 'trim';\n\t\t\n\t\t$this->validation->set_rules($rules);\n\n\t\t$fields['name'] = $this->lang->line('name');\n\t\t$fields['url'] = $this->lang->line('url');\n\t\t$fields['cost'] = $this->lang->line('cost');\n\t\t$fields['cost_type'] = $this->lang->line('cost_type');\n\t\t$fields['recur'] = $this->lang->line('recur');\n\t\t\n\t\t$this->validation->set_fields($fields);\n\t\t\t\n\t\tif ($this->validation->run() == FALSE)\t\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "52d752a9ff70463232cda8247c2a00d2", "score": "0.5530015", "text": "public function valid() {\t}", "title": "" }, { "docid": "34ca9180581997bf1c990905a1b657e7", "score": "0.5528744", "text": "function validatePpp()\n{\n global $self, $CONFIG;\n\n if (!isset($self['ppp']) || $self['ppp'] == '') {\n $self['ppp'] = $CONFIG['postperpage'];\n } else {\n $self['ppp'] = is_numeric($self['ppp']) ? (int) $self['ppp'] : $CONFIG['postperpage'];\n }\n\n if ($self['ppp'] < 5) {\n $self['ppp'] = 30;\n }\n}", "title": "" } ]
791c51e5b98f579b280d328ea35e6771
Semplice script per fare un search dell'IP su varie Blocklist
[ { "docid": "88eb2dfea13ec2b9912f578befc58acb", "score": "0.55683035", "text": "function dnsbllookup($ip){\r\t$listed = 0;\r\t$dnsbl_lookup=array(\r\t\t\"eb.barracudacentral.org\",\r\t\t\"bl.deadbeef.com\",\r\t\t\"bl.emailbasura.org\",\r\t\t\"bl.spamcannibal.org\",\r\t\t\"bl.spamcop.net\",\r\t\t\"blackholes.five-ten-sg.com\",\r\t\t\"blacklist.woody.ch\",\r\t\t\"bogons.cymru.com\",\r\t\t\"cbl.abuseat.org\",\r\t\t\"cdl.anti-spam.org.cn\",\r\t\t\"combined.abuse.ch\",\r\t\t\"combined.rbl.msrbl.net\",\r\t\t\"db.wpbl.info\",\r\t\t\"dnsbl-1.uceprotect.net\",\r\t\t\"dnsbl-2.uceprotect.net\",\r\t\t\"dnsbl-3.uceprotect.net\",\r\t\t\"dnsbl.cyberlogic.net\",\r\t\t\"dnsbl.inps.de\",\r\t\t\"dnsbl.njabl.org\",\r\t\t\"dnsbl.sorbs.net\",\r\t\t\"drone.abuse.ch\",\r\t\t\"duinv.aupads.org\",\r\t\t\"dul.dnsbl.sorbs.net\",\r\t\t\"dul.ru\",\r\t\t\"dyna.spamrats.com\",\r\t\t\"dynip.rothen.com\",\r\t\t\"http.dnsbl.sorbs.net\",\r\t\t\"images.rbl.msrbl.net\",\r\t\t\"ips.backscatterer.org\",\r\t\t\"ix.dnsbl.manitu.net\",\r\t\t\"korea.services.net\",\r\t\t\"misc.dnsbl.sorbs.net\",\r\t\t\"multi.surbl.org\",\r\t\t\"noptr.spamrats.com\",\r\t\t\"orvedb.aupads.org\",\r\t\t\"pbl.spamhaus.org\",\r\t\t\"phishing.rbl.msrbl.net\",\r\t\t\"proxy.bl.gweep.ca\",\r\t\t\"psbl.surriel.com\",\r\t\t\"rbl.interserver.net\",\r\t\t\"recent.spam.dnsbl.sorbs.net\",\r\t\t\"relays.bl.gweep.ca\",\r\t\t\"relays.bl.kundenserver.de\",\r\t\t\"relays.dnsbl.sorbs.net\",\r\t\t\"relays.nether.net\",\r\t\t\"sbl.spamhaus.org\",\r\t\t\"short.rbl.jp\",\r\t\t\"smtp.dnsbl.sorbs.net\",\r\t\t\"socks.dnsbl.sorbs.net\",\r\t\t\"spam.abuse.ch\",\r\t\t\"spam.dnsbl.sorbs.net\",\r\t\t\"spam.rbl.msrbl.net\",\r\t\t\"spam.spamrats.com\",\r\t\t\"spamlist.or.kr\",\r\t\t\"spamrbl.imp.ch\",\r\t\t\"tor.dnsbl.sectoor.de\",\r\t\t\"torserver.tor.dnsbl.sectoor.de\",\r\t\t\"ubl.lashback.com\",\r\t\t\"ubl.unsubscore.com\",\r\t\t\"virbl.bit.nl\",\r\t\t\"virus.rbl.jp\",\r\t\t\"virus.rbl.msrbl.net\",\r\t\t\"web.dnsbl.sorbs.net\",\r\t\t\"wormrbl.imp.ch\",\r\t\t\"xbl.spamhaus.org\",\r\t\t\"zen.spamhaus.org\",\r\t\t\"zombie.dnsbl.sorbs.net\",\r\t\t\"dnsbl.dronebl.org\", \r\t\t\"psbl.org\",\"blacklist.myip.ms\"\r\t); // Add your preferred list of DNSBL's\r\tif($ip){\r\t\t$reverse_ip=implode(\".\",array_reverse(explode(\".\",$ip)));\r\t\tforeach($dnsbl_lookup as $host){\r\t\t\tif(checkdnsrr($reverse_ip.\".\".$host.\".\",\"A\")){\r\t\t\t\t$listed++;\r\t\t\t\t}\r\t\t\t}\r\t\t}\r\treturn $listed;\r}", "title": "" } ]
[ { "docid": "a02858a2bd75344a0370f9d08f821574", "score": "0.6341812", "text": "private function check_ip()\n {\n if (!defined('BLACKLIST'))\n define ('BLACKLIST', 'black.php');\n if (file_exists(BLACKLIST)) {\n $list = file(BLACKLIST);\n foreach ($list as $addr) {\n $addr = trim($addr);\n $host_addr = $this->getIp();\n // Semplice indirizzo IP\n if ($host_addr == $addr) die (US_BANIPMSG);\n // Subnet di classe C\n else if (preg_match('/(\\d+\\.\\d+\\.\\d+)\\.0\\/24/', $addr, $sub)) {\n $subnet = trim($sub[1]);\n if (preg_match(\"/^{$subnet}/\", $host_addr))\n die (US_BANIPMSG);\n } // Subnet di classe B\n else if (preg_match('/(\\d+\\.\\d+)\\.0\\.0\\/16/', $addr, $sub)) {\n $subnet = trim($sub[1]);\n if (preg_match(\"/^{$subnet}/\", $host_addr))\n die (US_BANIPMSG);\n } // Subnet di classe A\n else if (preg_match('/(\\d+)\\.0\\.0\\.0\\/8/', $addr, $sub)) {\n $subnet = trim($sub[1]);\n if (preg_match(\"/^{$subnet}/\", $host_addr))\n die (US_BANIPMSG);\n }\n }\n }\n }", "title": "" }, { "docid": "2a8a74d1933e33628c8b751ceefe163f", "score": "0.6214498", "text": "public function ipBlock(){\r\n\t\t// TODO: implement blacklist from db table\r\n\t\t$blacklist = array('127.0.0');\r\n\t\tif(in_array($this->ip, $blacklist)){\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "97aa8c74b6f0be588df78e50641ba39f", "score": "0.60171515", "text": "function ludo_blacklist_ip_root ( $args ) {\n\t$IP = $args[0];\n\t$Intervalle_IP = yourls_get_option ('ludo_blacklist_ip_liste');\n\t$Intervalle_IP = ( $Intervalle_IP ) ? ( unserialize ( $Intervalle_IP ) ):((array)NULL); \n\n\tforeach ( $Intervalle_IP as $value ) {\n\t\t$IPs = explode ( \"-\" , $value );\n\n\t\tif ( $IP >= $IPs[0] AND $IP <= $IPs[1]) {\n\t\t\t// yourls_die ( \"Your IP has been blacklisted.\", \"Black list\",403);\n\t\t\techo \"<center>Your IP has been blacklisted.</center>\";\n\t\t\tdie();\n\t\t}\n }\n}", "title": "" }, { "docid": "b1267d4cc12af6f5f1b243d0377f53e3", "score": "0.5905249", "text": "public function ip_blocked($ip = null){\n // (array) List of IP numbers that are blocked. This means they cannot vote for any items.\n // Note: you can set wildcards by using the * symbol.\n $inCache = FALSE;\n $cache = $this->modx->getCacheManager();\n // check the cache if the cache is not empty, then return the result from the cache\n if($cache){\n // Creates a key, unique key will be created depending on the parameters passed to the function.\n $keyipblock = md5('likedislike::ip_blockeded');\n if($blocked_ips = $this->modx->cacheManager->get($keyipblock,array(xPDO::OPT_CACHE_KEY => 'likedislike/ipblocked'))){\n $inCache = TRUE;\n }else{\n $inCache = FALSE;\n }\n }\n if(!$inCache) {\n $qip = $this->modx->newQuery('LikedislikeIpBlock');\n $qip->select(array('LikedislikeIpBlock.id', 'LikedislikeIpBlock.ip'));\n $qip->prepare();\n $qip->stmt->execute();\n $res = $qip->stmt->fetchAll(PDO::FETCH_ASSOC);\n $blocked_ips = array();\n foreach ($res as $v) {\n $blocked_ips[] = $v['ip'];\n }\n if ($cache && !$inCache ){\n $this->modx->cacheManager->set($keyipblock,$blocked_ips,0,array(xPDO::OPT_CACHE_KEY => 'likedislike/ipblocked'));\n }\n }\n \n // Avoid useless work\n if (empty($blocked_ips) OR ((string) $ip) === '')\n return FALSE;\n \n // Check all blocked IPs\n foreach ($blocked_ips as $blocked_ip){\n // Prepare regex, taking wildcards into account\n $regex = preg_quote((string) $blocked_ip, '~');\n $regex = str_replace('\\\\*', '.*', $blocked_ip);\n \n // Does the IP match a blocked one?\n if (preg_match('~^'.$regex.'$~D', (string) $ip))\n return TRUE;\n }\n \n return FALSE;\n }", "title": "" }, { "docid": "8977a3e6edfd9a46e4b6d33fd72f2f95", "score": "0.58983386", "text": "function ipl_Check2BlockUser($myip, $fullhost) {\r\n\tglobal $wpdb;\r\n\tglobal $domain;\r\n\r\n\t$table_name = $wpdb->prefix . \"ip_logger_block\";\r\n\r\n\t$found_agent = $wpdb->get_var(\"select count(id) from \".$table_name.\" where agent like '%\" . strtolower($_SERVER[\"HTTP_USER_AGENT\"]) . \"%'\");\r\n\t$found_host = $wpdb->get_var(\"select count(id) from \".$table_name.\" where fullhost like '%\" . strtolower($fullhost) . \"%'\");\r\n\t$found_code3 = $wpdb->get_var(\"select count(id) from \".$table_name.\" where Code3 = '\" . strtoupper($myip->get_code3()) . \"'\");\r\n\t$found_ip_v4 = $wpdb->get_var(\"select count(id) from \".$table_name.\" where ip_v4 = '\" . $_SERVER[\"REMOTE_ADDR\"] . \"'\");\r\n\r\n\t$blocked = ((get_option(\"ip_logger_cb_block_without_cty\") == 1 && ($myip->get_code3() == \"\")) ||\r\n\t\t\t($found_agent + $found_host + $found_code3 + $found_ip_v4 > 0) \r\n\t\t\t);\r\n\r\n\treturn $blocked;\r\n}", "title": "" }, { "docid": "eb1dca23b8f09ce2b7c4924ec42b2281", "score": "0.58977103", "text": "function all_blocks ($db) {\n\t//Get all IP ranges from the database\n\t$query = \"SELECT `id`, `start`, `end`, `cidr`, `ipv`, `company`, `notes`, `provider` FROM `ip_ranges` WHERE 1 ORDER BY `company` ASC;\";\n\t$res = $db->query($query);\n\t\n\t//Table header row creation\n\t$return_val = \t'<table border=\"1\" cellpadding=\"5\" cellspacing\"10\">'.\"\\r\\n\".\n\t\t\t\t\t\"<tr><td><b>ID</b></td><td><b>Network</b></td>\".\n\t\t\t\t\t\"<td><b>Broadcast</b></td><td><b>CIDR</b></td>\".\n\t\t\t\t\t\"<td><b>IP&nbsp;Version</b></td><td><b>Company</b></td>\".\n\t\t\t\t\t\"<td><b>Notes</b></td><td><b>Provider</b></td></tr>\\r\\n\";\n\t//Get all the records from the database\n\tforeach ($res as $records) {\n\t\t//Create each records row\n\t\t$return_val = $return_val . \"<tr>\\r\\n\";\n\t\t$return_val = $return_val . '<td><a href=\"ipshow.php?id=' . $records[\"id\"] . '\">' . $records[\"id\"] . \"</a></td>\\r\\n\";\n\t\t\n\t\t//IPv4 and IPv6 have different functions, check and make the determination\n\t\tif ($records[\"ipv\"] == '4') {\n\t\t\t//Convert the network and broadcast back to human formats\n\t\t\t$network = new IPv4($records[\"start\"]);\n\t\t\t$broadcast = new IPv4($records[\"end\"]);\n\t\t} else if ($records[\"ipv\"] == '6') {\n\t\t\t//Convert the network and broadcast back to human formats\n\t\t\t$network = new IPv6($records[\"start\"]);\n\t\t\t$broadcast = new IPv6($records[\"end\"]);\n\t\t} //end if ($records[\"ipv\"] == '4') {\n\t\t\t$return_val = $return_val . \"<td>\" . $network . \"</td>\\r\\n\";\n\t\t\t$return_val = $return_val . \"<td>\" . $broadcast . \"</td>\\r\\n\";\n\t\t\t$return_val = $return_val . \"<td>\" . $records[\"cidr\"] . \"</td>\\r\\n\";\n\t\t\t$return_val = $return_val . \"<td>\" . $records[\"ipv\"] . \"</td>\\r\\n\";\n\t\t\t$return_val = $return_val . \"<td>\" . $records[\"company\"] . \"</td>\\r\\n\";\n\t\t\t$return_val = $return_val . \"<td>\" . $records[\"notes\"] . \"</td>\\r\\n\";\n\t\t\t$return_val = $return_val . \"<td>\" . $records[\"provider\"] . \"</td>\\r\\n\";\n\t\t\t$return_val = $return_val . \"</tr>\\r\\n\";\n\t} //end foreach ($res as $records) {\n\n\t//Close out the table\n\t$return_val = $return_val . \"</table>\";\n\n\t//Return the data back to the calling function\n\treturn $return_val;\n}", "title": "" }, { "docid": "721a73127dc3f3d18fc3d36ae3220ab6", "score": "0.58053404", "text": "function ludo_blacklist_ip_process () {\n // Check nonce\n yourls_verify_nonce( 'blacklist_ip' ) ;\n\t\n\t// Check if the answer is correct.\n\t$IP_Form = explode ( \"\\r\\n\" , $_POST['blacklist_form'] ) ;\n\t\n\tif (! is_array ($IP_Form) ) {\n\t\techo \"Bad answer, Blacklist not updated\";\n\t\tdie ();\n\t}\n\t\n\t$boucle = 0;\n\n\tforeach ($IP_Form as $value) {\n\t\t$Retour = ludo_blacklist_ip_Analyze_IP ( $value ) ;\n\t\tif ( $Retour != \"NULL\" ) {\n\t\t\t$IPList[$boucle++] = $Retour ;\n\t\t}\n\t}\n\t// Update list\n\tyourls_update_option ( 'ludo_blacklist_ip_liste', serialize ( $IPList ) );\n\techo \"Black list updated. New blacklist is \" ;\n\tif ( count ( $IPList ) == 0 ) \n\t\techo \"empty.\";\n\telse {\n\t\techo \":<BR />\";\n\t\tforeach ($IPList as $value) echo $value.\"<BR />\";\n\t}\n}", "title": "" }, { "docid": "4f9f635f31a035c08b2b28d19763cab2", "score": "0.57778186", "text": "function isIpAddressInList($thisIpAddress,$ipArrayToCheck)\r\n\t{\r\n\r\n\t\t// Breaking IP address in 4 ip blocks\r\n\t\t// for individual comparison\r\n\t\tlist($ipor1,$ipor2,$ipor3,$ipor4)=explode('.',$thisIpAddress);\r\n\t\t$goodip=0;\r\n\t\t\r\n for ($a=0; $a<count($ipArrayToCheck);$a++)\r\n { \t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t$ipadd1 = $ipArrayToCheck[$a];\r\n\t\t\t\t// Breaking Stored ip address into 4 ip blocks\r\n\t\t\t\tlist($ip1,$ip2,$ip3,$ip4)=explode('.',$ipadd1);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// Checking for first IP block\r\n\t\t\t\t// If first block is not *\r\n\t\t\t\t// * is wildkey.. anything goes in this ip block\r\n\t\t\t\tif ($ip1 != \"*\")\r\n\t\t\t\t{\r\n\t\t\t\t\t// If both similar, then first block correct\r\n\t\t\t\t\tif ($ip1==$ipor1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$correct1=1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$correct1=0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if ($ip1==\"*\")\r\n\t\t\t\t{\r\n\t\t\t\t\t$correct1=1;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// Checking for second IP Block\r\n\t\t\t\tif ($ip2 != \"*\")\r\n\t\t\t\t{\r\n\t\t\t\t\tif ($ip2==$ipor2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$correct2=1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$correct2=0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if ($ip2==\"*\")\r\n\t\t\t\t{\r\n\t\t\t\t\t$correct2=1;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Checking for third IP Block\r\n\t\t\t\tif ($ip3 != \"*\")\r\n\t\t\t\t{\r\n\t\t\t\t\tif ($ip3==$ipor3)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$correct3=1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$correct3=0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if ($ip3==\"*\")\r\n\t\t\t\t{\r\n\t\t\t\t\t$correct3=1;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// Checking for fourth IP Block\r\n\t\t\t\tif ($ip4 != \"*\")\r\n\t\t\t\t{\r\n\t\t\t\t\tif ($ip4==$ipor4)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$correct4=1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$correct4=0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if ($ip4==\"*\")\r\n\t\t\t\t{\r\n\t\t\t\t\t$correct4=1;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// Checking if all 4 IP Blocks are correct\r\n\t\t\t\tif (($correct1==1) and ($correct2==1) and ($correct3==1) and ($correct4==1))\r\n\t\t\t\t{\r\n\t\t\t\t\t$goodip=1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t$goodip=0;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t} // end for\r\n\t\t\t\r\n\r\n\t\t\r\n\t\t\r\n\t\treturn $goodip;\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "91c924ba4521a13f7df0d829ed09fa3a", "score": "0.569955", "text": "private function parse_vps_address() {\n\n\n \\Fuel\\Core\\Module::load('basic', APPPATH . 'modules/basic/');\n \\Fuel\\Core\\Module::load('ipm', APPPATH . 'modules/ipm/');\n //select * ip from database\n $ips = \\Basic\\Model_Vps_Ip::find('all');\n\n foreach ($ips as $ip) {\n\n\n $vps = \\Basic\\Model_Vps::find($ip->vpsID);\n\n $networks = $vps->device->network;\n\n foreach ($networks as $net) {\n \n }\n\n\n\n //print_r($net);\n $ipob = (object) array('ipv4' => $ip->data);\n\n\n\n\n if ($ip->data != '') {\n\n $ip_int = $this->___IPv4_dotquadA_to_intA($ipob);\n\n $ipvps = \\Basic\\Model_Network_Ip::find()->where('type', 3)->where('networkID', $net->id)->where('addrint', $ip_int)->get_one();\n\n if (!$ipvps) {\n\n //make new ipv4 input with type 3\n\n $prop = Array(\n 'networkID' => $net->id,\n 'nic_name' => 'vps',\n 'ipv4' => $ip->data,\n 'ipv6' => '',\n 'conn_type' => 0,\n 'conn_speed' => 0,\n 'type' => 3, //vps ip\n 'addrint' => $ip_int\n );\n\n\n $ipv4 = new \\Basic\\Model_Network_Ip($prop);\n $ipv4->save();\n\n $vprop = Array(\n 'vpsID' => $vps->id,\n 'portID' => $ipv4->id,\n 'type' => 1\n );\n //make link between vps and port\n $vport = new \\Ipm\\Model_Vps_Ports($vprop);\n $vport->save();\n\n //detect new subnet and make/update location \n $subnet = $this->updateSubnet($ipv4);\n $this->update_location($subnet, $ipv4);\n $this->update_history($ipv4);\n }\n }\n }\n\n //check if subnet exist\n//\n }", "title": "" }, { "docid": "92475d1c15d6c890222a484703254aa3", "score": "0.566752", "text": "function is_ip_banned($ip, $banned_ips)\n {\n foreach($banned_ips as $banned_ip) // go through every $banned_ip\n {\n if(strpos($banned_ip,'*')!==false) // $banned_ip contains \"*\" = > IP range\n {\n $ip_range = substr($banned_ip, 0, strpos($banned_ip, '*')); // fetch part before \"*\"\n if(strpos($ip, $ip_range)===0) // check if IP begins with part before \"*\"\n {\n return true;\n }\n }\n elseif(strpos($banned_ip,'/')!==false && preg_match(\"/(([0-9]{1,3}\\.){3}[0-9]{1,3})\\/([0-9]{1,2})/\", $banned_ip, $regs)) // $banned_ip contains \"/\" => CIDR notation (the regular expression is only used if $banned_ip contains \"/\")\n {\n // convert IP into bit pattern:\n $n_user_leiste = '00000000000000000000000000000000'; // 32 bits\n $n_user_ip = explode('.',trim($ip));\n for ($i = 0; $i <= 3; $i++) // go through every byte\n {\n for ($n_j = 0; $n_j < 8; $n_j++) // ... check every bit\n {\n if($n_user_ip[$i] >= pow(2, 7-$n_j)) // set to 1 if necessary\n {\n $n_user_ip[$i] = $n_user_ip[$i] - pow(2, 7-$n_j);\n $n_user_leiste[$n_j + $i*8] = '1';\n }\n }\n }\n // analyze prefix length:\n $n_byte_array = explode('.',trim($regs[1])); // IP -> 4 Byte\n $n_cidr_bereich = $regs[3]; // prefix length\n // bit pattern:\n $n_bitleiste = '00000000000000000000000000000000';\n for ($i = 0; $i <= 3; $i++) // go through every byte\n {\n if ($n_byte_array[$i] > 255) // invalid\n {\n $n_cidr_bereich = 0;\n }\n for ($n_j = 0; $n_j < 8; $n_j++) // ... check every bit\n {\n if($n_byte_array[$i] >= pow(2, 7-$n_j)) // set to 1 if necessary\n {\n $n_byte_array[$i] = $n_byte_array[$i] - pow(2, 7-$n_j);\n $n_bitleiste[$n_j + $i*8] = '1';\n }\n }\n }\n // check if bit patterns match on the first n chracters:\n if (strncmp($n_bitleiste, $n_user_leiste, $n_cidr_bereich) == 0 && $n_cidr_bereich > 0)\n {\n return true;\n }\n }\n else // neither \"*\" nor \"/\" => simple comparison:\n {\n if($ip == $banned_ip)\n {\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "d7ca73049f8faef3445c08b58496f92f", "score": "0.5653527", "text": "function get( $ip, $bFromSlave ) {\n\t\t$this->load( $bFromSlave );\n\t\t$ipint = ip2long( $ip );\n\t\t$blocked = false;\n\n\t\tforeach ( $this->mData as $networkBits => $blockInts ) {\n\t\t\tif ( array_key_exists( $ipint >> ( 32 - $networkBits ), $blockInts ) ) {\n\t\t\t\t$blocked = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif ( $blocked ) {\n\t\t\t# Clear low order bits\n\t\t\tif ( $networkBits != 32 ) {\n\t\t\t\t$ip .= '/'.$networkBits;\n\t\t\t\t$ip = Block::normaliseRange( $ip );\n\t\t\t}\n\t\t\t$block = new Block();\n\t\t\t$block->forUpdate( $bFromSlave );\n\t\t\t$block->load( $ip );\n\t\t} else {\n\t\t\t$block = false;\n\t\t}\n\n\t\treturn $block;\n\t}", "title": "" }, { "docid": "d620872827ab4a602ad6c6bad3fb0df0", "score": "0.56424797", "text": "public static function search() {\n $str = \"31.13.24.0/21\n\t\t31.13.64.0/19\n\t\t31.13.64.0/24\n\t\t31.13.69.0/24\n\t\t31.13.70.0/24\n\t\t31.13.71.0/24\n\t\t31.13.72.0/24\n\t\t31.13.73.0/24\n\t\t31.13.75.0/24\n\t\t31.13.76.0/24\n\t\t31.13.77.0/24\n\t\t31.13.78.0/24\n\t\t31.13.79.0/24\n\t\t31.13.80.0/24\n\t\t66.220.144.0/20\n\t\t66.220.144.0/21\n\t\t66.220.149.11/16\n\t\t66.220.152.0/21\n\t\t66.220.158.11/16\n\t\t66.220.159.0/24\n\t\t69.63.176.0/21\n\t\t69.63.176.0/24\n\t\t69.63.184.0/21\n\t\t69.171.224.0/19\n\t\t69.171.224.0/20\n\t\t69.171.224.37/16\n\t\t69.171.229.11/16\n\t\t69.171.239.0/24\n\t\t69.171.240.0/20\n\t\t69.171.242.11/16\n\t\t69.171.255.0/24\n\t\t74.119.76.0/22\n\t\t173.252.64.0/19\n\t\t173.252.70.0/24\n\t\t173.252.96.0/19\n\t\t204.15.20.0/22\n\t\t69.63.176.0/20\n\t\t173.252.64.0/18\n\t\t103.4.96.0/22\n\t\t31.13.64.0/18\n\t\t31.13.65.0/24\n\t\t31.13.67.0/24\n\t\t31.13.68.0/24\n\t\t31.13.74.0/24\n\t\t31.13.96.0/19\n\t\t31.13.66.0/24\n\t\t69.63.178.0/24\n\t\t31.13.82.0/24\n\t\t31.13.83.0/24\n\t\t31.13.84.0/24\n\t\t31.13.85.0/24\n\t\t31.13.87.0/24\n\t\t31.13.88.0/24\n\t\t31.13.89.0/24\n\t\t31.13.90.0/24\n\t\t31.13.91.0/24\n\t\t31.13.92.0/24\n\t\t31.13.93.0/24\n\t\t31.13.94.0/24\n\t\t31.13.95.0/24\n\t\t69.171.253.0/24\n\t\t69.63.186.0/24\n\t\t69.63.176.0/20 \n\t\t45.64.40.0/22\n\t\t129.134.0.0/16\n\t\t157.240.0.0/16\n\t\t179.60.192.0/22\n\t\t185.60.216.0/22\";\n\n //Create array from IP addresses\n $ip = explode(\"\\n\", $str);\n $fun = function($n)\n {\n return explode(\"/\", $n)[0];\n };\n $ip = array_map($fun, $ip);\n\n //Create every possible IP address\n $fun2 = function ($n) {\n $ary = array();\n $ip = explode(\".\",$n);\n for ($x = 11; $x <= 255; $x++) {\n $ary[] = $ip[0].\".\".$ip[1].\".\".$ip[2].\".\".$x;\n }\n return $ary;\n };\n $ip = array_map($fun2, $ip);\n $ip = array_reduce($ip, 'array_merge', array());\n foreach ($ip as $i){\n $state = self::test(\"http://\".$i.\"/\");\n echo $i . \"--------\" . $state . \"\\n\";\n }\n }", "title": "" }, { "docid": "91da83b8fbd1fca64b07331b52484182", "score": "0.5627962", "text": "private function getSearchRanges() {\n\t\t$ip\t= $this->ip->getIP();\n\t\t$search\t= $this->getIpRange( $ip );\n\t\t\n\t\t# Check host names if enabled\n\t\tif ( $this->getSetting( 'firewall_hosts' ) ) {\n\t\t\t$search = array_merge( \n\t\t\t\t\t$search, \n\t\t\t\t\t$this->getHostRange( $ip )\n\t\t\t\t);\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "c1b013ec80c7530bf69c7ae065726508", "score": "0.55875", "text": "function ban_ip($ip)\n {\n global $GB_TBL;\n if (preg_match('/^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$/',$ip))\n {\n $this->db->query(\"INSERT INTO \".LAZ_TABLE_PREFIX.\"_ban (ban_ip) VALUES('$ip')\");\n } \n }", "title": "" }, { "docid": "045a4f4f91a13d8ad1e7d5127b48a73c", "score": "0.55805755", "text": "function GetAllFromNetworkSearch($Connection, $Search)\n{\n $SQLString = \"SELECT * FROM network WHERE barcode = '{$Search}' OR ip = '{$Search}' OR mac = '{$Search}' OR pcname = '{$Search}'\";\n $MySQLCommand = mysqli_query($Connection, $SQLString) or die(\"Error : \" . mysqli_error($Connection));\n $MySQLCommand = mysqli_fetch_all($MySQLCommand, MYSQLI_NUM);\n mysqli_close($Connection);\n return $MySQLCommand;\n}", "title": "" }, { "docid": "9eeca50f6268051bad683eed75485da0", "score": "0.55741715", "text": "public function giveMask($nb) {\n\n $nbrBit = 0; // Nombre de bit a utiliser pour le masque\n $Mbyte1 = 0; \n $Mbyte2 = 0;\n $Mbyte3 = 0;\n $Mbyte4 = 0; \n $nbAdresse = 0; // Nombre d'adresse par sous réseau\n $ipConv = explode(\".\",($this->getBytes())); // Permet de séparer les bytes de l'ip \n\n $byte1 = intval($ipConv[0]);\n $byte2 = intval($ipConv[1]);\n $byte3 = intval($ipConv[2]);\n $byte4 = intval($ipConv[3]);\n\n if($this->giveClass() == \"A\") { // Pour une IP de classe A\n\n if($nb>2)\n $nbrBit = ((int)log($nb,2)) +1; //Le nombre de bit utilisé est log2 du nombre de sous reseau +1 pour avoir lentier superieur\n else\n $nbrBit = 1;\n\n $Mbyte1 = 255; // bytes du masque \n $Mbyte2 = 0;\n $Mbyte3 = 0;\n $Mbyte4 = 0;\n\n $nbrBitToTreat = $nbrBit; // Permet de vérifier le nombre de bit a traiter dans les bytes suivant\n\n for($i=0;($i<8 && $i<$nbrBit);$i++){\n\n $Mbyte2 += pow(2,(8-($i+1)));\n $nbrBitToTreat--;\n }\n\n $nbrBit = $nbrBitToTreat;\n \n for($i=0;($i<8 && $i<$nbrBitToTreat);$i++){\n\n $Mbyte3 += pow(2,(8-($i+1)));\n $nbrBit--;\n }\n \n $nbrBitToTreat = $nbrBit; \n \n for($i=0;($i<8 && $i<$nbrBitToTreat);$i++){\n\n $Mbyte4 += pow(2,(8-($i+1)));\n $nbrBit--;\n }\n \n \n\n }\n if($byte1>=128 && $byte1<=191) { // Pour une IP de classe B\n\n $classe = 'B';\n\n if($nb>2)\n $nbrBit = ((int)log($nb,2)) +1;\n else\n $nbrBit = 1;\n\n $Mbyte1 = 255;\n $Mbyte2 = 255;\n $Mbyte3 = 0;\n $Mbyte4 = 0;\n\n $nbrBitToTreat = $nbrBit;\n\n for($i=0;($i<8 && $i<$nbrBit);$i++){\n\n $Mbyte3 += pow(2,(8-($i+1)));\n $nbrBitToTreat--;\n }\n\n $nbrBit = $nbrBitToTreat;\n\n for($i=0;($i<8 && $i<$nbrBitToTreat);$i++){\n\n $Mbyte4 += pow(2,(8-($i+1)));\n $nbrBit--;\n }\n\n \n\n\n }\n if($byte1>=192 && $byte1<=223) { // Pour une IP de classe C\n\n $classe = 'C';\n\n if($nb>2)\n $nbrBit = ((int)log($nb,2)) +1;\n else\n $nbrBit = 1;\n\n $Mbyte1 = 255;\n $Mbyte2 = 255;\n $Mbyte3 = 255;\n $Mbyte4 = 0;\n\n for($i=0;($i<8 && $i<$nbrBit);$i++){\n\n $Mbyte4 += pow(2,(8-($i+1)));\n $nbrBit--;\n }\n\n \n \n \n }\n\n $tabMbyte = array($Mbyte1,$Mbyte2,$Mbyte3,$Mbyte4);\n\n $maskReturned = new Mask();\n\n $maskReturned->init($tabMbyte);\n\n return $maskReturned;\n }", "title": "" }, { "docid": "7ec09984d93fff79d451849a45657574", "score": "0.55382615", "text": "function yourls_get_keyword_IP( $keyword, $notfound = false ) {\n\treturn yourls_get_keyword_info( $keyword, 'ip', $notfound );\n}", "title": "" }, { "docid": "dbc73e9f6340b96dc434708ab8092388", "score": "0.55377823", "text": "function list_ips() {\n\t\t//echo '<script>$(function() {$( \"#dialog\" ).dialog();});</script>' ;\n\t\t//echo '<div id=\"dialog\">' ;\n\t\techo '<table class=\"datatable\"><tr><th>IP Address</th><th>Subnet Mask</th><th>Action</th></tr>' ;\n\t\tforeach (Capsule::table('mod_prve_ip_addresses')->where('pool_id', '=', $_GET['id'])->get() as $ip) {\n\t\t\techo '<tr><td>'.$ip->ipaddress.'</td><td>'.$ip->mask.'</td><td>';\n\t\t\tif (count(Capsule::table('mod_prve_vms')->where('ipaddress','=',$ip->ipaddress)->get())>0)\n\t\t\t\techo 'is in use' ;\n\t\t\telse\n\t\t\t\techo '<a href=\"'.PRVE_BASEURL.'&amp;tab=ippools&amp;action=removeip&amp;pool_id='.$ip->pool_id.'&amp;id='.$ip->id.'\" onclick=\"return confirm(\\'IP address will be deleted from the pool, continue?\\')\"><img height=\"16\" width=\"16\" border=\"0\" alt=\"Edit\" src=\"images/delete.gif\"></a>';\n\t\t\techo '</td></tr>';\n\t\t}\n\t\techo '</table>' ;\n\n\t}", "title": "" }, { "docid": "e61ecb5acc52740243b4819c4fda40aa", "score": "0.5504789", "text": "public function getAllBlockedIps() {\n\t\t$query = $this->db->get ( \"blocked_ip\" );\n\t\tif ($query->num_rows () > 0)\n\t\t\treturn $query->result ();\n\t\treturn false;\n\t}", "title": "" }, { "docid": "38ea5eadc25693f301d27cbedc83cf0e", "score": "0.5480033", "text": "function block()\n\t{\n\t\tglobal $board_config, $userdata, $lang, $db;\n\n\t\tif ( $this->status != PROXY_ERROR && $this->status > $this->num_ports )\n\t\t{\n\t\t\tif ( $board_config['proxy_ban'] )\n\t\t\t{\n\t\t\t\tif (!defined('IN_ADMIN'))\n\t\t\t\t{\n\t\t\t\t\t// If the user can get this far, he hasn't already been banned (and thus, isn't already in the database)\n\t\t\t\t\t$sql = \"INSERT INTO \" . BANLIST_TABLE . \" (ban_ip) \n\t\t\t\t\t\tVALUES ('\".$this->encoded_ip.\"')\";\n\t\t\t\t\tif ( !$db->sql_query($sql) )\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage_die(GENERAL_ERROR,'Unable to to insert ban_userip info into database',__FILE__,__LINE__,$sql);\n\t\t\t\t\t}\n\t\t\t\t\tsession_end($userdata['session_id'], $userdata['user_id']);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$sql = \"SELECT * FROM \" . BANLIST_TABLE . \" \n\t\t\t\t\t\tWHERE ban_ip = '$encoded_ip'\";\n\t\t\t\t\tif ( !($db->sql_query($sql)) )\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage_die(GENERAL_ERROR, 'Unable to obtain banlist information', '', __LINE__, __FILE__, $sql);\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( !$db->sql_numrows() )\n\t\t\t\t\t{\n\t\t\t\t\t\t$sql = \"INSERT INTO \" . BANLIST_TABLE . \" (ban_ip) \n\t\t\t\t\t\t\tVALUES ('$encoded_ip')\";\n\t\t\t\t\t\tif ( !$db->sql_query($sql) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmessage_die(GENERAL_ERROR,'Unable to to insert ban_userip info into database',__FILE__,__LINE__,$sql);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$sql = \"DELETE FROM \" . SESSIONS_TABLE . \" \n\t\t\t\t\t\t\tWHERE session_ip = '$encoded_ip'\";\n\t\t\t\t\t\tif ( !$db->sql_query($sql) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmessage_die(GENERAL_ERROR,'Unable to delete banned sessions from database',__FILE__,__LINE__,$sql);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$sql = \"DELETE FROM \" . PROXY_TABLE . \" \n\t\t\t\t\tWHERE ip_address = '$encoded_ip'\";\n\t\t\t\tif ( !$db->sql_query($sql) )\n\t\t\t\t{\n\t\t\t\t\tmessage_die(GENERAL_ERROR,'Unable to delete from proxy list',__FILE__,__LINE__,$sql);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->messages['result'] = sprintf($lang['proxy_detected'],$lang['proxy_t'.($this->status-PROXY_TRANSPARE)],hexdec($this->port));\n\n\t\t\t// i could just return $board_config['proxy_block'], but i think what i'm trying to do is a tad clearer with the following\n\t\t\treturn ($board_config['proxy_block']) ? true : false;\n\t\t}\n\t\telse if ( $this->status == $this->num_ports )\n\t\t{\n\t\t\t$this->messages['result'] = $lang['proxy_none'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->messages['result'] = $lang['proxy_timeout'].' ('.$this->status.')';\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "f1a34d70b3489353247cb519fb7a3636", "score": "0.54546905", "text": "public function run()\n {\n $ips=array(\n\n \n\"911 ASITENCIA MEDICA DOMICILIARIA IPS SAS\",\n\"A SANCHEZ RADIOLOGOS SAS\",\n\"A SU SALUD HOME CARE\",\n\"AAAA ACADEMIA ABSCRITA A ASOCIACION DE ESPECIALISTAS S.A.S\",\n\"AARON MEDICOS ESPECIALISTAS AL CUIDADO DE TU SALUD\",\n\"ABRAZAR ASOCIACION\",\n\"ACCION SALUD PARA TODOS SAS\",\n\"ACCIÓN Y VIDA PARA TODOS S.A.S\",\n\"ACCIONES INTEGRALES S.A.\",\n\"ACCIONSALUD IPS SAS\",\n\"ACOUSTIC SYSTEM SAS\",\n\"ACRIDENT SERVICIOS DE SALUD SAS\",\n\"ACSALUD IPS SAS\",\n\"ACTIVE THERAPY IPS SAS\",\n\"ADILAB - AYUDAS DIAGNOSTICAS Y LABORATORIO CLINICO S.A.S\",\n\"ADIS ATENCION DOMICILIARIA INTEGRAL DE SALUD SAS\",\n\"ADMDATA S.A.S\",\n\"ADMINISTRACION DE MODELOS ESPECIALES EN SALUD AMES SAS\",\n\"ADMINISTRADORA CLINICA LA COLINA SAS\",\n\"ADMINISTRADORA COUNTRY S.A.S\",\n\"ADVANCE CARDIOLOGY IPS SAS CARDIOIMAGENES\",\n\"AEROSANIDAD SAS\",\n\"AGS SALUD ADMINISTRACION Y GESTION EN SERVICIOS DE SALUD SAS\",\n\"AHARA IPS Y HOME CARE SAS\",\n\"AIDALAB S.A.S\",\n\"AIR LIQUIDE COLOMBIA SAS\",\n\"ALERGOLOGOS DE OCCIDENTE S.A.S.\",\n\"ALERGOSALUD SAS\",\n\"ALFAMED HOMECARE SAS\",\n\"ALIADOS EN SALUD S.A.\",\n\"ALIANZA DIAGNOSTICA S.A.\",\n\"ALIANZA EXAMENES EMPRESARIALES OCUPACIONALES Y SERVICIOS MEDICOS LTDA\",\n\"ALIVIUM S.A.S\",\n\"ALS AMBULANCIAS PRIMERO TU SALUD SAS\",\n\"ALVEN IPS EU\",\n\"AM SALUD SAS\",\n\"AMA & ASOCIADOS SAS\",\n\"AMADEUSCAN SOCIEDAD POR ACCIONES SIMPLIFICADA S.A.S\",\n\"AMAREY NOVA MEDICAL SA\",\n\"AMBULANCIA RESCATE 467 SAS\",\n\"AMBULANCIAS AB IPS S.A.S\",\n\"AMBULANCIAS AEREAS DE COLOMBIA S.A.S.\",\n\"AMBULANCIAS ARMENIA LTDA\",\n\"AMBULANCIAS A-V LATINAS\",\n\"AMBULANCIAS DEL LLANO SAS\",\n\"AMBULANCIAS EMERMEDIC SAS\",\n\"AMBULANCIAS GROUP HELP S.A.S\",\n\"AMBULANCIAS INTENSIVA S.A.S\",\n\"AMBULANCIAS MEDICAS DEL ATLANTICO S.A.S.\",\n\"AMBULANCIAS PROYECTAR SAS\",\n\"AMBULANCIAS SAN JOSE S.A.S\",\n\"AMBULANCIAS SANTA CRUZ S.A.S IPS\",\n\"AMBULANCIAS SANTA RITA S.A.S\",\n\"AMBULANCIAS VITAL CARE SAS\",\n\"AMBULATORIOS S.A.S\",\n\"AMBUPETROL MEDICA S.A.S-AMBUMEDICA S.A.S\",\n\"AMC AMBULANCIAS S.A.S.\",\n\"AMEPS SAS\",\n\"AMEZQUITA ACOSTA SAS\",\n\"AMI PALLIUM COLOMBIA SAS\",\n\"AMIGOS DE LA SALUD, AMISALUD SAS\",\n\"AMRITZAR S.A.\",\n\"AMVIF-ASISTENCIA MEDICA VITAL EN FAMILIA IPS SAS\",\n\"AN CIRUGÍA PLÁSTICA Y ODONTOLOGÍA ESPECIALIZADA\",\n\"ANALICEMOS IPS SAS\",\n\"ANALICEMOS LABORATORIO CLINICO ESPECIALIZADO SAS\",\n\"ANALISIS LABORATORIO CLINICO ESPECIALIZADO S.A.S.\",\n\"ANALIZAR LABORATORIO CLINICO AUTOMATIZADO S.A.S.\",\n\"ANASHIWAYA IPSI\",\n\"ANASU AINWA IPS-I\",\n\"ANGEL DIAGNOSTICA S.A\",\n\"ANGELES AL LLAMADO ATENCION PREHOSPITALARIA S.A.S.\",\n\"ANGIOGRAFIA DE COLOMBIA S.A.S.\",\n\"ANGIOGRAFIA DE OCCIDENTE S.A.\",\n\"ANGIOLOGIA MEDICA DIAGNOSTICA SAS\",\n\"ANGIOSUR S.A.S.\",\n\"ANGIOVASCULAR MORENO\",\n\"APLISALUD S.A. IPS\",\n\"APM SERVICIOS ASISTENCIALES IPS S.A.S.\",\n\"APOYO DIAGNÓSTICO DE COLOMBIA S.A.S.\",\n\"APRENDER ASESORIA Y CONSULTORIA PARA EL DESARROLLO HUMANO IPS SAS\",\n\"APRENDIENDO A ESCALAR SAS\",\n\"APROSALUD LTDA\",\n\"AQUASALUD SAS\",\n\"ARCINIEGAS & ASOCIADOS SAS\",\n\"ARETÉ- CENTRO DE AUDIDIAGNÓSTICO Y REHABILITACIÓN FONOAUDIOLÓGICA SAS\",\n\"ARPECA LTDA.\",\n\"ARTMEDICA S.A.S\",\n\"ASESORÍA DE ATENCIÓN INTEGRAL EN SALUD IPS SAS\",\n\"ASISFARMA S.A.S\",\n\"ASISTENCIA CIENTIFICA DE ALTA COMPLEJIDAD SAS\",\n\"ASISTENCIA EN SALUD DOMICILIARIA\",\n\"ASISTENCIA EN SALUD INTEGRAL IPS S.A.S\",\n\"ASISTENCIA EN SERVICIOS DE SALUD INTEGRALES S.A.S\",\n\"ASISTENCIA INTEGRAL EN CASA ASSISTIRTE S.A.S\",\n\"ASISTENCIA INTEGRAL EN MEDICINA DEL TRABAJO Y SALUD OCUPACIONAL LTDA\",\n\"ASISTENCIA MEDICA DEL SUR IPS LTDA\",\n\"ASISTENCIA MEDICA DOMICILIARIA DE NARIÑO SAS- AMD SAS\",\n\"ASISTENCIA MEDICA DOMICILIARIA Y TRASLADO DE PACIENTES SAS\",\n\"ASISTENCIA MEDICA INMEDIATA AMEDI S.A.S.\",\n\"ASISTENCIA MEDICA IPS S A S.\",\n\"ASISTENCIA MEDICA TOTAL IPS S.A.S\",\n\"ASISTENCIA VIDA Y SALUD IPS S.A.S\",\n\"ASISTENCIAS CODIGO DELTA LTDA\",\n\"ASISTENCIAS INTEGRALES IPS SAS\",\n\"ASISTIMOS SALUD IPS SAS\",\n\"ASISTIR IPS Y HSE LTDA\",\n\"ASOCIACION CENTRO DE ATENCION PARA NIÑOS CON TRASTORNOS SENSORIOMOTORES ACONIÑO\",\n\"ASOCIACION CENTRO DE CAPACITACION ESPECIAL CENCAES\",\n\"ASOCIACION CLINICA ORAL SABANAS\",\n\"ASOCIACION COLOMBIANA DE DIABETES\",\n\"ASOCIACION COLOMBIANA PRO NIÑO CON PARALISIS CEREBRAL -PROPACE\",\n\"ASOCIACION DE AMIGOS CONTRA EL CANCER PROSEGUIR\",\n\"ASOCIACIÒN DE AUTORIDADES ANCESTRALES TERRITORIALES NASA CXHA CXHA\",\n\"ASOCIACION DE AUTORIDADES Y CABILDOS AWA UNIPA\",\n\"ASOCIACIÓN DE CABILDOS INDÍGENAS DEL NORTE DEL CAUCA SALUD-ACIN. ENTIDAD PUBLICA DE CARÁCTER ESPECIAL.\",\n\"ASOCIACION DE CABILDOS INDIGENAS ZONA IPIALES\",\n\"ASOCIACION DE CABILDOS UKAWE'SX NASA ÇXHAB IPS-I\",\n\"ASOCIACION DE CABILDOS Y/O AUTORIDADES TRADICIONALES DE LA GUAJIRA\",\n\"ASOCIACION DE DISCAPACITADOS DEL VALLE - ASODISVALLE\",\n\"ASOCIACION DE NEUROLOGIA Y SALUD MENTAL INTEGRAL NEUMIN\",\n\"ASOCIACION DE ODONTOLOGOS DEL CARIBE\",\n\"ASOCIACION DE PATOLOGOS ASOPAT LTDA.\",\n\"ASOCIACIÓN DE PERSONAS CON AUTISMO-APA\",\n\"ASOCIACION DE PRESTADORES DE SERVICIOS Y SUMINISTROS DE SALUD ASSALUD\",\n\"ASOCIACION DE PROFESIONALES ANESTESIOLOGOS PERMANENTES\",\n\"ASOCIACION DE PROFESIONALES CLINIMEDIC Y SALUD OCUPACIONAL LTDA.\",\n\"ASOCIACION DEL CAUCA PARA LA PREVENCION DE LA CEGUERA Y REHABILITACION DEL LIMITADO VISUAL\",\n\"ASOCIACION HUELLAS CENTRO DE PROCESOS INTEGRALES A POBLACIONES EN SITUACION DE DISCAPACIDAD\",\n\"ASOCIACION IPS INDIGENA INGA KAMENTSA\",\n\"ASOCIACIÓN IPS INDÍGENA TRICAUMA\",\n\"ASOCIACION MEDICA DE ATENCION ESPECIALIZADA SAN JUAN EUDES SAS\",\n\"ASOCIACION MEDICA DE MEDICINA NUCLEAR LTDA NUCLEAR 2000 LTDA\",\n\"ASOCIACION MEDICA HUMANA EMPRESA ASOCIATIVA DE TRABAJO\",\n\"ASOCIACION MEDICA LA CONCEPCION EMPRESA ASOCIATIVA DE TRABAJO\",\n\"ASOCIACIÓN MÉDICA LA FE SAS\",\n\"ASOCIACION MEDICA PARA LA ATENCION INTEGRAL S.A.S CLINICA NUEVO MONTERREY\",\n\"ASOCIACION NARCONON COLOMBIA\",\n\"ASOCIACIÓN NIÑOS DE PAPEL\",\n\"ASOCIACION ODONTOLOGOS DE CARTAGENA DE INDIAS\",\n\"ASOCIACIÓN PROFAMILIA\",\n\"ASOCIACION SANTANDEREANA PRO-NIÑO RETARDADO MENTAL\",\n\"ASOCIACIONES DE ODONTOLOGOS DE LA COSTA-ODONTOCOSTA\",\n\"ASOCLINIC LIMITADA\",\n\"ASOLIVIHUILA\",\n\"ASOPSALUD\",\n\"ASORSALUD SM LTDA\", \n\"ASOTAC SAN JOSE SA\", \n\"ASPRODONTO SAS\", \n\"ASSBASALUD ESE\", \n\"ATENCIÓN DE VIDA Y EXTRAMUROS S.A.S\",\n\"ATENCION DOMICILIARIA INTEGRAL EN SALUD SAS\",\n\"ATENCION EN REHABILITACION INTEGRAL S.A.S. ATERIN S.A.S.\",\n\"ATENCION MEDICA DE COLOMBIA SAS\",\n\"ATENCIÓN MÉDICA INTEGRAL MIRTIS S.A.S\",\n\"ATENCION MEDICO INMEDIATA DOMICILIARIA AMID S.A.S\",\n\"ATENCIÓN PEDIATRICA INTEGRAL S.A.S.\",\n\"AUDIFARMA S.A\",\n\"AUDIFONOS ALCIRA RAMIREZ SAS\",\n\"AUDIMEDICA SALUD AUDITIVA SAS\",\n\"AUDIOCARIBE SAS\",\n\"AUDIOCOM IPS\",\n\"AUDIOLOGIA Y VESTIBULOMETRIA S.A.S\",\n\"AUDIOMEDICA S.A.S.\",\n\"AUDIOMIC S.A.S\",\n\"AUDIOSALUD INTEGRAL LTDA\",\n\"AUNARSALUD SERVICIOS INTEGRALES EN SALUD SAS - SIGLA AUNARSALUD\",\n\"AUVIMER SALUD INTEGRAL EN CASA SAS\",\n\"AVALON PHARMACEUTICAL SAS\",\n\"AVANCE MEDICO S.A\",\n\"AVANCEMOS CENTRO DE REHABILITACION S.A.S\",\n\"AVANZA IPS SAS\",\n\"AVANZA SALUD S.A.S\",\n\"AVANZAR IPS REHABILITACIÓN Y HABILITACIÓN SAS\",\n\"AVIDANTI SAS\",\n\"AVILES OPTICAL SA\",\n\"AXIOMA - CENTRO DE ATENCIÓN EN SALUD MENTAL INTEGRAL SAS\",\n\"AYUDA CLINICA ASOCIADOS S.A.S\",\n\"AYUDANDO A VIVIR E.A.T\",\n\"AYUDAS DIAGNOSTICAS SURA S.A.S\",\n\"B.BRAUN AVITUM S.A.S\",\n\"BALESTRA GROUP SAS\",\n\"BANTÚ CLÍNICA DE SALUD MENTAL S.A.S.\",\n\"BEER SHEVÁ IPS SAS\",\n\"BEHAVIORAL CENTER IPS S.A.S.\",\n\"BET-EL SALUD S.A.S.\",\n\"BHM SOLUICIONES INTEGRALES LOGISTICA EN SALUD SAS\",\n\"BIENESTAR ACTIVA I.P.S. S.A.S.\",\n\"BIENESTAR SALUD IPS S.A.S\",\n\"BIG PHARMA SAS\",\n\"BIHOMEDICA SAS\",\n\"BIHOSPHARMA SAS\",\n\"BIO QUALITY SALUD SAS\",\n\"BIOART SAS\",\n\"BIOCLINICO DEL SUR S.A.S.\",\n\"BIOCORP HEALTH CARE S.A.S.\",\n\"BIODENTIST LIMITADA\",\n\"BIOGENETICA DIAGNOSTICA SAS\",\n\"BIOMAB I P S SAS SIGLA BIOMAB I P S\",\n\"BIOMED VIDA IPS S.A.S\",\n\"BIOMOLECULAR DIAGNOSTICA S.A.S.\",\n\"BIOREUMA S.A.S.\",\n\"BIOSALUD DEL CARIBE IPS S.A.S\",\n\"BIOSALUD UNIDAD DE VIDA S.A.S.\",\n\"BIOSAMAR UNIDAD MEDICA ESPECIALIZADA IPS SAS\",\n\"BIOTECNOLOGIA Y GENETICA S.A. BIOTECGEN S.A.\",\n\"BIO-TEST I.P.S S.A.S\",\n\"BLUECARE SALUD SAS SIGLA BLUECARE\",\n\"BONSANA IPS SAS\",\n\"BOQUITA LIMITADA\",\n\"BOSTON MEDICAL CARE IPS SAS\",\n\"C Y R SALUD IPS SAS\",\n\"C.I. INTEGRALMEDIC LTDA\",\n\"CABILDO DE GUAMBIA HOSPITAL MAMA DOMINGA\",\n\"CAD PSICOTERAPEUTICO Y REEDUCATIVO VIVIR CONSENTIDOS LTDA\",\n\"CAD VIDA IPS S.A.S\",\n\"CAG UNIDOS POR LA SALUD IPS SAS\",\n\"CAJA COLOMBIANA DE SUBSIDIO FAMILIAR COLSUBSIDIO\",\n\"CAJA DE COMPENSACION FAMILIAR\",\n\"CAJA DE COMPENSACION FAMILIAR CAFAM\",\n\"CAJA DE COMPENSACION FAMILIAR COMFENALCO QUINDIO\",\n\"CAJA DE COMPENSACION FAMILIAR COMFENALCO SANTANDER\",\n\"CAJA DE COMPENSACION FAMILIAR COMPENSAR\",\n\"CAJA DE COMPENSACION FAMILIAR DE ANTIOQUIA COMFAMA\",\n\"CAJA DE COMPENSACION FAMILIAR DE CALDAS\",\n\"CAJA DE COMPENSACION FAMILIAR DE CUNDINAMARCA COMFACUNDI\",\n\"CAJA DE COMPENSACION FAMILIAR DE LA GUAJIRA\",\n\"CAJA DE COMPENSACION FAMILIAR DE NARIÑO\",\n\"CAJA DE COMPENSACION FAMILIAR DE RISARALDA COMFAMILIAR RISARALDA\",\n\"CAJA DE COMPENSACION FAMILIAR DEL CHOCO\",\n\"CAJA DE COMPENSACION FAMILIAR DEL HUILA\",\n\"CAJA DE COMPENSACIÓN FAMILIAR DEL VALLE DEL CAUCA - COMFAMILIAR ANDI\",\n\"CAJA SANTANDEREANA DE SUBSIDIO FAMILIAR - CAJASAN\",\n\"CAL ONCOLOGICOS LTDA\",\n\"CALCULASER S.A.\",\n\"CALIDAD MEDICA IPS SAS\",\n\"CAMBIA TU VIDA IPS SAS\",\n\"CAMBIARSALUD S.A.S\",\n\"CAMI S.A.S.\",\n\"CAMINEMOS IPS S.A.S.\",\n\"CAMINO A LA VIDA C.A.D. I.P.S. S.A.S.\",\n\"CAMINOS IPS S.A.S\",\n\"CAN 2005 S EN C\",\n\"CAPF CINETICA IPS S.A.S.\",\n\"CAPITAL TOURING SAS\",\n\"CARBOSALUD S.A.S\",\n\"CARDENAS VISION S.A.S\",\n\"CARDIO ANDES SAS\",\n\"CARDIO CENTRO MI CORAZON LTDA\",\n\"CARDIO COLOMBIA S.A.S\",\n\"CARDIO LIVE I.P.S. S.A.S\",\n\"CARDIO SUN IPS SAS\",\n\"CARDIO URGENCIA TULUA S.A.S\",\n\"CARDIO VITAL INSTITUTO DE CARDIOLOGIA SAS\",\n\"CARDIOCARE SERVICES SAS\",\n\"CARDIOCENTER SAS\",\n\"CARDIODAJUD IPS S.A.S\",\n\"CARDIODIAGNOSTICO DEL CHOCO SAS\",\n\"CARDIODIAGNOSTICO S.A\",\n\"CARDIODINAMIA DEL CARIBE SAS\",\n\"CARDIOESTUDIO SAS\",\n\"CARDIOIMAGENES DEL CAUCA LTDA\",\n\"CARDIOLOGIA DIAGNOSTICA DEL NORTE S.A.S.- CARDINOR S.A.S.\",\n\"CARDIOLOGIA FAMILIAR CARFAM SAS\",\n\"CARDIOLOGIA PEDIATRICA INTEGRAL Y PEDIATRIA S.A.S. CARDIOPED\",\n\"CARDIOLOGIA SAS\",\n\"CARDIOLOGIA SIGLO XXI\",\n\"CARDIOLOGOS DEL CAFE SAS\",\n\"CARDIOPEDIATRAS LTDA\",\n\"CARDIORIENTE LTDA CENTRO CARDIOLOGICO DEL ORIENTE\",\n\"CARDIOSALUD EJE CAFETERO S.A.S.\",\n\"CARDIOSALUD IPS S.A.S\",\n\"CARDIOSALUD S.A.S\",\n\"CARDIOSOVAL SAS\",\n\"CARDIOSTRESS LTDA\",\n\"CARE & HEALTH SAS\",\n\"CARIBBEAN ORTHODONTICS AND DENTAL SPECIALITIES LTDA. CODES CARIBBEAN\",\n\"CARLOS EDUARDO MANTILLA RAMIREZ E.U.\",\n\"CARLOS EDUARDO RANGEL GALVIS S.A.S\",\n\"CARVAJAL LABORATORIOS IPS S.A.S.\",\n\"CASA MADRE CANGURO ALFA S.A.\",\n\"CASA SALUD IPS .S.A.S.\",\n\"CATME S.A.S.\",\n\"CCICOL S.A.S\",\n\"CDC CENTRO DE DIAGNOSTICO CLINICO S.A.S\",\n\"CEDIFETAL S.A.\",\n\"CEDIMED S.A.S\",\n\"CEDIMEDIC E.U\",\n\"CEDIT DEL SUR LTDA\",\n\"CEDIUL S.A.\",\n\"CEHANI ESE\",\n\"CEMEGS IPS S.A.S\",\n\"CEMIC SAS\",\n\"CEMIN IPS\",\n\"CENDERYS S.A.S\",\n\"CENDITER S.A.S.\",\n\"CENEMED QUILICHAO\",\n\"CENFIMAX S.A.S.\",\n\"CENFIS S.A.S.\",\n\"CENIC S.A.S\",\n\"CENTDAD IPS SAS - CENTRO ENDOSCOPICO DE DIAGNOSTICO Y TRATAMIENTO DEL APARATO DIGESTIVO IPS S.A.S\",\n\"CENTER VISION SAS\",\n\"CENTRAL CARE SANTA MARTA SAS\",\n\"CENTRAL DE ESPECIALISTAS DE COLOMBIA S.A.S.\",\n\"CENTRAL DE IMAGENES Y DIAGNOSTICOS M&M SAS\",\n\"CENTRAL DE PATOLOGIA DEL CESAR LTDA\",\n\"CENTRO AMBULATORIO DE REHABILITACION INTEGRAL DEL CARIBE S.A.S.\",\n\"CENTRO AUDIOLOGICO ESPECIALIZADO C.A.E S.A\",\n\"CENTRO AUDIOLOGICO Y QUIRURGICO DEL COUNTRY SAS\",\n\"CENTRO AVANZADO DE ATENCIÓN EN TRATAMIENTO DE HERIDAS\",\n\"CENTRO CANCEROLOGICO DEL CARIBE CECAC LTDA\",\n\"CENTRO CARDIO INFANTIL IPS SAS\",\n\"CENTRO CARDIOLOGICO DE CORDOBA SAS\",\n\"CENTRO CARDIOLÒGICO DEL VALLE LTDA\",\n\"CENTRO CARDIOLOGICO TODO POR EL CORAZON SAS\",\n\"CENTRO CARDIOLOGICO VALLEDUPAR LIMITADA\",\n\"CENTRO CARDIOPULMONAR PASTO\",\n\"CENTRO CARDIOVASCULAR ARISTIDES SOTOMAYOR SANTA LUCIA SOCIEDAD POR ACCIONES SIMPLIFICADA-IPS ASTALUC SAS IPS\",\n\"CENTRO CARDIOVASCULAR COLOMBIANO CLINICA SANTA MARIA\",\n\"CENTRO CARDIOVASCULAR COLOMBIANO SAS SIGLA CC CARDIOVASCULAR SAS\",\n\"CENTRO CARDIOVASCULAR DE LA SABANA LTDA\",\n\"CENTRO CARDIOVASCULAR DEL MAGDALENA S.A.\",\n\"CENTRO CARDIOVASCULAR SOMER INCARE S A\",\n\"CENTRO CARVASCULAR DE CALDAS S.A.\",\n\"CENTRO CLÍNICO CARVAJAL LTDA\",\n\"CENTRO CLINICO DE CIRUGIA AMBULATORIA Y MANEJO POST QUIRURGICO\",\n\"CENTRO CLINICO INTEGRAL TIBU\",\n\"CENTRO CLINICO Y DE INVESTIGACION SICOR SAS\",\n\"CENTRO COLOMBIANO DE SALUD DE LOS LLANOS IPS S.A.S.\",\n\"CENTRO DE ALERGIA ASMA E INMUNOLOGIA S.A.S.\",\n\"CENTRO DE ALERGOLOGIA ALEJANDRO CARREÑOS. S.A.S SIGLA CAAC\",\n\"CENTRO DE ALTA TECNOLOGIA DIAGNOSTICA DEL EJE CAFETERO S.A. - CEDICAF S.A.\",\n\"CENTRO DE APOYO TERAPEUTICO REHABILITAR LTDA\",\n\"CENTRO DE ASESORIA Y ASISTENCIA INTREGRAL EN MEDICINA ESPECIALIZADA S.A.S\",\n\"CENTRO DE ATENCION EN DIABETES E HIPERTENSION S.A.S.\",\n\"CENTRO DE ATENCION FAMILIAR INTEGRAL S.A.S\",\n\"CENTRO DE ATENCION MEDICA INTEGRAL Y PREVENTIVA S.A.S\",\n\"CENTRO DE ATENCION MI RENACER S.A.S.\",\n\"CENTRO DE ATENCION NEUROPSIQUIATRICO DE OCAÑA S.A.S.\",\n\"CENTRO DE ATENCION PULMONAR RESPIREMOS S.A.S /CAP RESPIREMOS S.A.S\",\n\"CENTRO DE ATENCION REINA MARIA LTDA\",\n\"CENTRO DE ATENCION Y DIAGNOSTICO DE ENFERMEDADES INFECCIOSAS C.D.I.S.A.\",\n\"CENTRO DE AUDICION Y LENGUAJE LIMITADA\",\n\"CENTRO DE BIOMEDICINA REPRODUCTIVA DEL VALLE S.A.\",\n\"CENTRO DE CANCEROLOGÍA DE BOYACÁ SAS.\",\n\"CENTRO DE CIRUGIA LASER OCULAR LTDA\",\n\"CENTRO DE CIRUGIA OCULAR LTDA\",\n\"CENTRO DE CIRUGIA PLASTICA S.A.S\",\n\"CENTRO DE CIRUGIA S.A.S\",\n\"CENTRO DE COLOPROCTOLOGIA Y ENDOSCOPIA DIGESTIVA DR. JOSE LUIS MONTES SAS\",\n\"CENTRO DE CONTROL DE CÁNCER LTDA\",\n\"CENTRO DE CUIDADOS CARDIONEUROVASCULARES PABON SAS\",\n\"CENTRO DE DERMATOLOGIA Y CIRUGIA DERMATOLOGICA DEL COUNTRY CDCD LTDA\",\n\"CENTRO DE DIABETES Y ENFERMEDADES CARDIO METABOLICAS IPS S.A.S. CEDIEC\",\n\"CENTRO DE DIAGNOSTICO AVANZADO SAS\",\n\"CENTRO DE DIAGNOSTICO EN PATOLOGIA SAS\",\n\"CENTRO DE DIAGNOSTICO ESPECIALIZADO E.U.\",\n\"CENTRO DE DIAGNOSTICO INTEGRAL FETAL SAS\",\n\"CENTRO DE DIAGNOSTICO MEDICO DE BOYACA SAS\",\n\"CENTRO DE DIAGNOSTICO PATOLOGIA DEL NORTE S.A.S\",\n\"CENTRO DE DIAGNOSTICO PERINATAL EU\",\n\"CENTRO DE DIAGNOSTICO SALUD SOCIAL IPS LTDA\",\n\"CENTRO DE DIAGNOSTICO TRATAMIENTO DEL DOLOR Y REHABILITACION ESPERANZA MACARENA E.U\",\n\"CENTRO DE DIAGNOSTICO UROLOGICO S.A C.D.U.S.A\",\n\"CENTRO DE DIAGNOSTICO Y CIRUGIA OCULAR CEDCO S.A.S\",\n\"CENTRO DE DIAGNOSTICO Y MEDICINA AVANZADA Y TRATAMIENTO IPS\",\n\"CENTRO DE DIAGNOSTICOS POR LA IMAGEN S.A.S.\",\n\"CENTRO DE DIALISIS SANTA MARGARITA\",\n\"CENTRO DE ECO-RADIODIAGNOSTICOS S.A.S\",\n\"CENTRO DE ENDOCRINOLOGIA Y ENFERMEDADES METABOLICAS LTDA\",\n\"CENTRO DE ENDOSOCPIA DIGESTIVA DEL VALLE SAS\",\n\"CENTRO DE ENFERMEDADES DIGESTIVAS DR ABRAHAM GANEM IPS SAS\",\n\"CENTRO DE ENFERMEDADES DIGESTIVAS ENDOS S.A.S.\",\n\"CENTRO DE ENFERMEDADES DIGESTIVAS SAS\",\n\"CENTRO DE ENFERMEDADES GASTROINTESTINALES DEL CESAR SAS. GASTROCESAR SAS.\",\n\"CENTRO DE ENFERMEDADES MAMARIAS LTDA\",\n\"CENTRO DE EPILEPSIA, NEUROTOLOGIA Y SUEÑO\",\n\"CENTRO DE ESCANOGRAFIA YOPAL LTDA\",\n\"CENTRO DE ESPECIALIDADES MEDICAS DEL CESAR S.A.S\",\n\"CENTRO DE ESPECIALIDADES MEDICAS DEL CHOCO\",\n\"CENTRO DE ESPECIALIDADES MEDICO QUIRURGICAS LIMITADA CLINICA CEMEQ LTDA\",\n\"CENTRO DE ESPECIALIDADES ODONTOLOGICA MAXIDENT S.A.S.\",\n\"CENTRO DE ESPECIALIDADES PEDIATRICAS PASTOR Y MARIA IPS SAS\",\n\"CENTRO DE ESPECIALIDADES Y CIRUGÍA AMBULATORIA CEYCA DUITAMA\",\n\"CENTRO DE ESPECIALISTAS DIAGNOSTICO TRATAMIENTOS CEDIT SAS\",\n\"CENTRO DE ESPECIALISTAS EN DIAGNÓSTICO E IMÁGENES MAMARIAS S.A.S.\",\n\"CENTRO DE ESPECIALISTAS EN SALUD DE LA COSTA S.A.S. SIGLA CESAC S.A.S.\",\n\"CENTRO DE ESPECIALISTAS EN SALUD INTEGRAL RENACER LTDA.\",\n\"CENTRO DE ESPECIALISTAS INMUNOALERGIAS SAS\",\n\"CENTRO DE ESPECIALISTAS IPS LOGROS SAS\",\n\"CENTRO DE ESPECIALISTAS LA CANDELARIA\",\n\"CENTRO DE ESPECIALISTAS NUTRICION DIABETES OBESIDAD Y OSTEOPOROSIS S.A.S.\",\n\"CENTRO DE ESTIMULACION REHABILITACION Y APRENDIZAJE SOL DE ESPERANZA S.A.S INVERSIONES CERASE SAS\",\n\"CENTRO DE ESTIMULACION REHABILITACION Y APRENDIZAJE SOLIDARIDAD SOCIAL IPS SAS\",\n\"CENTRO DE ESTIMULACION REHABILITACION Y APRENDIZAJE SONRISA DE ESPERANZA S.A.S\",\n\"CENTRO DE ESTIMULACION REHABILITACION Y APRENDIZALE LUZ DE ESPERANZA S.A.S\",\n\"CENTRO DE ESTIMULACION, REHABILITACION Y APRENDIZAJE SEMILLAS DE ESPERANZA S.A.S SIGLA: CERASES S.A.S\",\n\"CENTRO DE EVALUACION DIAGNOSTICA Y REHABILITACION NEUROCOGNITIVA SAS\",\n\"CENTRO DE EXCELENCIA CLINICA SANTA HELENA LTDA\",\n\"CENTRO DE EXCELENCIA PARA EL GERENCIAMIENTO DEL RIESGO CARDIOVASCULAR Y RESPIRATORIO S.A.S\",\n\"CENTRO DE EXCELENCIA PARA EL MANEJO DE LA DIABETES S.A.S. SIGLA CEMDI SAS\",\n\"CENTRO DE EXPERTOS PARA LA ATENCION INTEGRAL IPS SAS\",\n\"CENTRO DE FISIOTERAPIA CENFIS EU\",\n\"CENTRO DE FISIOTERAPIA KENDALL LTDA\",\n\"CENTRO DE FISIOTERAPIA OLGA LUCIA URIBE DE GIRALDO SAS\",\n\"CENTRO DE FISIOTERAPIA REHABILITAR DRA. MARTA CANTILLO MARTINEZ S.A.S.\",\n\"CENTRO DE FISIOTERAPIA Y DE RAHABILITACION DEL PACIFICO LTDA\",\n\"CENTRO DE FISIOTERAPIA Y REHABILITACION INTEGRAL LTDA\",\n\"CENTRO DE FISIOTERAPIA Y REHABILITACIÓN PACÍFICO SAS\",\n\"CENTRO DE FISIOTERAPIA Y REHABILITACIÓN SAN JUAN S.A.S\",\n\"CENTRO DE FONOAUDIOLOGIA REHABILITACION INTEGRAL SAN JUDAS E.U\",\n\"CENTRO DE GASTROENTEROLOGIA Y CIRUGIA LAPAROSCOPICA DOCTOR JOSE RODRIGUEZ CECILE S.A.S.\",\n\"CENTRO DE HABILITACION INFANTIL DEL CESAR CENHAIC LTDA.\",\n\"CENTRO DE IMAGENES DIAGNOSTICAS CEDIM IPS SAS\",\n\"CENTRO DE IMAGENES DIAGNOSTICAS MEDICAS S.A.S.\",\n\"CENTRO DE IMÁGENES DIAGNOSTICAS SANTA MARTA S.A.S\",\n\"CENTRO DE IMÁGENES DIAGNOSTICAS SAS\",\n\"CENTRO DE IMÁGENES DIAGNOSTICAS TERCER MILENIO SAS\",\n\"CENTRO DE IMÁGENES ESPECIALIZADAS- CIME SAS.\",\n\"CENTRO DE IMÁGENES Y HEMODINAMIA CIMHE IPS LTDA\",\n\"CENTRO DE IMAGENOLOGIA CASTULO ROPAIN LOBO S.A.S\",\n\"CENTRO DE INVESTIGACIÓN E INFORMACIÓN EN DEFICIENCIAS AUDITIVAS - FUNDACION CINDA\",\n\"CENTRO DE INVESTIGACIÓN EN REUMATOLOGÍA Y ESPECIALIDADES MÉDICAS SAS CIREEM SAS\",\n\"CENTRO DE INVESTIGACIÓN MÉDICO ASISTENCIAL S.A.S.\",\n\"CENTRO DE INVESTIGACIONES DEL SISTEMA NERVIOSO S.A.S. SIGLA GRUPO CISNE S.A.S.\",\n\"CENTRO DE INVESTIGACIONES MÉDICAS DE ANTIOQUIA\",\n\"CENTRO DE INVESTIGACIONES MICROBIOLOGICAS DEL CESAR - LIMITADA\",\n\"CENTRO DE INVESTIGACIONES ONCOLOGICAS CLINICA SAN DIEGO CIOSAD SAS\",\n\"CENTRO DE MEDICINA DEL EJERCICIO Y REHABILITACION CARDIACA S A S CEMDE S A S\",\n\"CENTRO DE MEDICINA ESPECIALIZADA NEUMOVIDA A TODO PULMÓN S.A.S\",\n\"CENTRO DE MEDICINA NUCLEAR DE PEREIRA SAS\",\n\"CENTRO DE MEDICINA NUCLEAR DEL CARIBE\",\n\"CENTRO DE MEDICINA NUCLEAR DEL TOLIMA LTDA\",\n\"CENTRO DE MOVIMIENTO EJERCICIO Y REHABILITACIÓN S.A.S.- C MOVER S.A.S.\",\n\"CENTRO DE NEUMOLOGIA Y TERAPIA RESPIRATORIA S.A.S\",\n\"CENTRO DE NEUROESTIMULACION Y NEUROREHABILITACION INTEGRAL PROMEMORIA S.A.S.\",\n\"CENTRO DE NEUROREABILITACION APAES PEREIRA SAS\",\n\"CENTRO DE NEUROREHABILITACION APAES SAS\",\n\"CENTRO DE NEUROREHABILITACIÓN BLOOM IPS SAS\",\n\"CENTRO DE NEUROREHABILITACION CORAZÓN DE MARIA S.A.S\",\n\"CENTRO DE NEUROREHABILITACION JUNTOS LIMITADA\",\n\"CENTRO DE NEUROREHABILITACION MEXION S.A.S\",\n\"CENTRO DE NEURO-REHABILITACION SAN RAFAEL S.A.S\",\n\"CENTRO DE NEUROREHABILITACION SURGIR LTDA\",\n\"CENTRO DE ODONTOLOGIA INTEGRAL E.U\",\n\"CENTRO DE OFTALMOLOGIA INTEGRAL - COFIN S.A.S.\",\n\"CENTRO DE ORTODONCIA Y ODONTOLOGIA INTEGRAL COI BUENAVENTURA SAS\",\n\"CENTRO DE ORTODONCIA Y ODONTOLOGIA INTEGRAL COOI LTDA\",\n\"CENTRO DE ORTOPEDIA EL POBLADO S.A.S.\",\n\"CENTRO DE ORTOPEDIA Y REHABILITACION ORTOVITAL INTEGRAL S.A.S.\",\n\"CENTRO DE ORTOPEDIA Y TRAUMATOLOGIA EL ESTADIO S.A\",\n\"CENTRO DE OTORRINOLARINGOLOGIA Y FONOAUDIOLOGIA DE LA SABANA S.A.S\",\n\"CENTRO DE PROCEDIMIENTOS INTEGRALES MÉDICOS ASISTENCIALES S.A.S. CEPIMA\",\n\"CENTRO DE PSICOLOGIA Y TERAPIAS I.P.S. SAS\",\n\"CENTRO DE RADIOLOGIA ELISA CLARA R. F. S.A.S.\",\n\"CENTRO DE RADIOLOGIA Y ORAL Y MAXILOFACIAL ORTHOMAX SAS\",\n\"CENTRO DE REHABILITACION CARDIOPULMONAR PALMIRA SAS\",\n\"CENTRO DE REHABILITACION ESPECILIZADA CERES IPS LTDA\",\n\"CENTRO DE REHABILITACIÓN FÍSICA INTEGRAL CARIBE S.A.S\",\n\"CENTRO DE REHABILITACIÓN FÍSICA Y ASESORIA SEXUAL CERAS S.A.S.\",\n\"CENTRO DE REHABILITACION FISICA Y ESTETICA IPS SAS\",\n\"CENTRO DE REHABILITACION FISICO PULMONAR CERFIP SAS\",\n\"CENTRO DE REHABILITACION FISICO Y NEUROLOGICO CON-SENTIDOS S.A.S.\",\n\"CENTRO DE REHABILITACION FISIOCENDER LTDA\",\n\"CENTRO DE REHABILITACION FISIOMAG S.A.S.\",\n\"CENTRO DE REHABILITACIÓN FUNCIONAL (CRF) S.A.S\",\n\"CENTRO DE REHABILITACIÓN INTEGRAL CENFISEM LIMITADA\",\n\"CENTRO DE REHABILITACION INTEGRAL DE SABANALARGA\",\n\"CENTRO DE REHABILITACIÓN INTEGRAL FISIOARIES IPS S.A.S.\",\n\"CENTRO DE REHABILITACION INTEGRAL FISIOVITAL\",\n\"CENTRO DE REHABILITACION INTEGRAL FUNDACION PASOS\",\n\"CENTRO DE REHABILITACIÓN INTEGRAL NIÑOS FELICES IPS SAS\",\n\"CENTRO DE REHABILITACIÓN INTEGRAL NUEVO AMANECER LST SAS\",\n\"CENTRO DE REHABILITACION INTEGRAL RENACER IPS\",\n\"CENTRO DE REHABILITACION INTEGRAL RENASER I.P.S S.A.S\",\n\"CENTRO DE REHABILITACION INTEGRAL ROSALIA MENA S.A.S\",\n\"CENTRO DE REHABILITACION INTEGRAL SANTAROSA IPS LTDA - CRIS\",\n\"CENTRO DE REHABILITACIÓN INTEGRAL SARA CRIS S.A.S\",\n\"CENTRO DE REHABILITACION INTEGRAL VIDA DIGNA IPS SAS\",\n\"CENTRO DE REHABILITACIÓN INTEGRAL XIMENA GONZÁLEZ S.A.S\",\n\"CENTRO DE REHABILITACIÓN NEUROLÓGICA NUEVOS HORIZONTES S.A.S\",\n\"CENTRO DE REHABILITACION PARA ADULTOS CIEGOS CRAC\",\n\"CENTRO DE REHABILITACION PROGRESAR LTDA.\",\n\"CENTRO DE REHABILITACION PULMONAR INTEGRAL S.A.S\",\n\"CENTRO DE REHABILITACION SOLIDARIDAD SOCIAL IPS SAS\",\n\"CENTRO DE REHABILITACIÓN SONRISAS DEL GUAVIARE IPS S.A.S.\",\n\"CENTRO DE REHABILITACION TERAPEUTICO INTEGRAL S.A.S.\",\n\"CENTRO DE REHABILITACION Y EDUCACION DE LA COSTA SAS\",\n\"CENTRO DE REHABILITACION Y EDUCACIÓN ESPECIAL ARSAS IPS. SAS.\",\n\"CENTRO DE REHABILITACION Y EDUCACION ESPECIAL MEJORA IPS SAS\",\n\"CENTRO DE REHABILITACION Y ELECTRODIAGNOSTICO S.A.S\",\n\"CENTRO DE REHABILITACION Y FISIOTERAPIA LQM SAS\",\n\"CENTRO DE REHABILITACION Y TERAPIAS INTEGRALES SAS\",\n\"CENTRO DE REHABILITACION Y TRATAMIENTO DEL DOLOR KINESIS SAS\",\n\"CENTRO DE RESONANCIA MAGNETICA DEL NORTE S.A.S\",\n\"CENTRO DE SALUD AGRUPASALUD IPS SAS\",\n\"CENTRO DE SALUD ANCUYA E.S.E.\",\n\"CENTRO DE SALUD CAMILO HURTDAO CIFUENTES ESE.\",\n\"CENTRO DE SALUD COELLO E.S.E.\",\n\"CENTRO DE SALUD COSTA NORTE IPS SAS\",\n\"CENTRO DE SALUD CUASPUD-CARLOSAMA EMPRESA SOCIAL DEL ESTADO\",\n\"CENTRO DE SALUD DE CONSACA EMPRESA SOCIAL DEL ESTADO\",\n\"CENTRO DE SALUD DE FOSCA E.S.E.\",\n\"CENTRO DE SALUD DE PROVIDENCIA E.S.E.\",\n\"CENTRO DE SALUD DE SAMPUES (SUCRE) EMPRESA SOCIAL DEL ESTADO\",\n\"CENTRO DE SALUD DE SAN BARTOLOME DE CORDOBA ESE\",\n\"CENTRO DE SALUD DE TIMBIO E.S.E.\",\n\"CENTRO DE SALUD FUNES E.S.E.\",\n\"CENTRO DE SALUD HERMES ANDRADE MEJIA ESE TANGUA\",\n\"CENTRO DE SALUD ILES E.S.E.\",\n\"CENTRO DE SALUD INDIGENA DEL RESGUARDO DE MALES\",\n\"CENTRO DE SALUD JUAN BONAL\",\n\"CENTRO DE SALUD MENTAL Y REHABILITACION SAN ROQUE S.A.S.\",\n\"CENTRO DE SALUD MUNICIPAL NIVEL I LUIS ACOSTA E.S.E\",\n\"CENTRO DE SALUD SAGRADO CORAZON DE JESUS E.S.E.\",\n\"CENTRO DE SALUD SAN JOSE DE TOLUVIEJO E.S.E\",\n\"CENTRO DE SALUD SAN JUAN BAUTISTA DE PUPIALES EMPRESA SOCIAL DEL ESTADO\",\n\"CENTRO DE SALUD SAN MIGUEL ARCANGEL DE OSPINA ESE\",\n\"CENTRO DE SALUD SANTA LUCIA E.S.E.\",\n\"CENTRO DE SALUD SANTIAGO DE MALLAMA E.S.E.\",\n\"CENTRO DE SALUD SAPUYES E.S.E.\",\n\"CENTRO DE SALUD SAUL QUIÑONES E.S.E.\",\n\"CENTRO DE SALUD SEÑOR DE LOS MILAGROS DE GUALMATÁN - EMPRESA SOCIAL DEL ESTADO - E.S.E.\",\n\"CENTRO DE SALUDYA E.S.E. DE YACUANQUER\",\n\"CENTRO DE TERAPIA CERETE S.A.S.\",\n\"CENTRO DE TERAPIA INTEGRAL FISIOSALUD DE LA COSTA IPS SAS\",\n\"CENTRO DE TERAPIA INTEGRAL SANDRA GOMEZ S.A.S.\",\n\"CENTRO DE TERAPIAS INTEGRALES PROGRESAR S.A.S\",\n\"CENTRO DE TERAPIAS INTEGRALES REHABILITAR S.A.S\",\n\"CENTRO DE TERAPIAS IPS Y CIA LTDA\",\n\"CENTRO DE UROLOGIA Y LITOTRICIA DEL CESAR S.A.S\",\n\"CENTRO DEL SUEÑO Y EL RONQUIDO S.A.S\",\n\"CENTRO DERMATOLOGICO DE CALI S.A.\",\n\"CENTRO DERMATOLOGICO DEL SINU S.A.S\",\n\"CENTRO DIAGNOSTICO APARTADO CEDA LIMITADA\",\n\"CENTRO DIAGNOSTICO DE ESPECIALISTAS LTDA\",\n\"CENTRO DIAGNOSTICO DE LA MUJER IPS SAS\",\n\"CENTRO DIAGNOSTICO DEL SUR SAS\",\n\"CENTRO ELECTRO AUDITIVO NACIONAL AL SERVICIO DE LA REHABILITACION SAS\",\n\"CENTRO ELITE LTDA.\",\n\"CENTRO ESPECIALIZADO DE ALTA TECNOLOGIA EN IMÁGENES DIAGNOSTICAS SAS\",\n\"CENTRO ESPECIALIZADO DE DIAGNOSTICO MATERNO INFANTIL I.P.S. SAS\",\n\"CENTRO ESPECIALIZADO DE SERVICIOS MEDICOS I.P.S S.A.S\",\n\"CENTRO ESPECIALIZADO DE UROLOGIA S.A.S\",\n\"CENTRO ESPECIALIZADO ECOVIDA LTDA.\",\n\"CENTRO ESPECIALIZADO EN DOLOR Y ANESTESIA REGIONAL S.A.S\",\n\"CENTRO ESPECIALIZADO EN ENFERMEDADES DEL SENO IPS S.A.S\",\n\"CENTRO ESPECIALIZADO EN FRACTURAS Y LESIONES DEPORTIVAS\",\n\"CENTRO ESPECIALIZADO EN MEDICINA DEL SUENO Y DEL CORAZON\",\n\"CENTRO ESPECIALIZADO EN NEUROREHABILITACION INTEGRAL CREER IPS SAS\",\n\"CENTRO ESPECIALIZADO EN RADIOLOGIA E INTERVENCIONISMO DIAGNOSTICO Y TERAPEUTICO S.A. CERID S.A.\",\n\"CENTRO EXCELENCIA DE CUIDADOS EN SALUD ESENCIAL INSTITUCION PRESTADORA DE SERVICIOS DE SALUD S.A.S.\",\n\"CENTRO FISIOTERAPEUTICO REHABILITAMOS IPS SAS\",\n\"CENTRO FONOAUDIOLOGICO DAMA S.A.S.\",\n\"CENTRO HOSPITAL DE LA FLORIDA EMPRESA SOCIAL DEL ESTADO\",\n\"CENTRO HOSPITAL DIVINO NIÑO EMPRESA SOCIAL DEL ESTADO\",\n\"CENTRO HOSPITAL GUAITARILLA E.S.E.\",\n\"CENTRO HOSPITAL NUESTRO SEÑOR DE LA DIVINA MISERICORDIA PUERRES E.S.E.\",\n\"CENTRO HOSPITAL SAN LUIS E.S.E.\",\n\"CENTRO HOSPITALARIO REGIONAL SANTA MONICA SAS\",\n\"CENTRO INTEGRAL AMBULATORIO DEL CARIBE SAS\",\n\"CENTRO INTEGRAL DE ATENCION DIAGNOSTICA ESPECIALIZADA IPS SAS\",\n\"CENTRO INTEGRAL DE ATENCION MEDICA ESPECIALIZADA- CIAME. IPS.SAS\",\n\"CENTRO INTEGRAL DE DIABETES Y CORAZÓN DE LA GUAJIRA IPS S.A.S\",\n\"CENTRO INTEGRAL DE DIAGNOSTICO CLÍNICO C.I.D. S.A.S.\",\n\"CENTRO INTEGRAL DE FISIOTERAPIA CIF LTDA.\",\n\"CENTRO INTEGRAL DE OTORRINOLARINGOLOGIA DOCTOR LUIS ANGEL RODRIGUEZ BOLAÑO SAS\",\n\"CENTRO INTEGRAL DE REHABILITACION - CEIRE S.A.S.\",\n\"CENTRO INTEGRAL DE REHABILITACION CIENAGA LTDA\",\n\"CENTRO INTEGRAL DE REHABILITACION CIR SAS\",\n\"CENTRO INTEGRAL DE REHABILITACION COLOMBIA - CIREC\",\n\"CENTRO INTEGRAL DE REHABILITACION DE CORDOBA LTDA\",\n\"CENTRO INTEGRAL DE REHABILITACION DEL MAGDALENA MEDIO CEIREM LTDA\",\n\"CENTRO INTEGRAL DE REHABILITACION DEL SUR S.A.S CENTIR DEL SUR S.A.S\",\n\"CENTRO INTEGRAL DE REHABILITACION ESPERANZA DEL MAÑANA CIREEM SAS\",\n\"CENTRO INTEGRAL DE REHABILITACION FISIOCENTER LTDA\",\n\"CENTRO INTEGRAL DE REUMATOLOGIA DEL CARIBE SAS CIRCARIBE S.A.S.\",\n\"CENTRO INTEGRAL DE SALUD CISA\",\n\"CENTRO INTEGRAL DE SALUD DEL CARIBE S.A.S\",\n\"CENTRO INTEGRAL DE SALUD QUIRON E.A.T.\",\n\"CENTRO INTEGRAL DE SALUD SAN GABRIEL IPS SANTA MARTA\",\n\"CENTRO INTEGRAL PARA MANEJO DEL DOLOR-CINDOLOR S.A.S\",\n\"CENTRO INTEGRAL E INTERNACIONAL DE VACUNACION LTDA\",\n\"CENTRO INTERDICIPLINARIO DE REHABILITACION INTEGRAL DEL HUILA SAS\",\n\"CENTRO INTERNACIONAL DE ASISTENCIA EDUCACIÓN PROFESIONAL Y CULTURA FÍSICA ESPECIALIZADA CIAEPE LTDA\",\n\"CENTRO MEDICO 24 HORAS\",\n\"CENTRO MEDICO ALONSO JARAMILLO B. S.A.S\",\n\"CENTRO MEDICO AMERICASALUD S.A.S.\",\n\"CENTRO MEDICO BUENOS AIRES SAS\",\n\"CENTRO MEDICO CAUCASALUD IPS S.A.S\",\n\"CENTRO MEDICO CLINICA DE ALERGIA E INMUNOLOGIA SAS\",\n\"CENTRO MEDICO COGNITIVO E INVESTIGACION SAS\",\n\"CENTRO MEDICO CRECER IPS S.A.S.\",\n\"CENTRO MEDICO CUBIS LIMITADA\",\n\"CENTRO MEDICO DAGUA\",\n\"CENTRO MEDICO DE ATENCION NEUROLOGICA NEUROLOGOS DE OCCIDENTE SAS\",\n\"CENTRO MEDICO DE ESPECIALISTAS CME S.A\",\n\"CENTRO MEDICO DE REHABILITACIÓN INTEGRAL HERPA S.A.S.\",\n\"CENTRO MEDICO DE URGENCIAS SAN RAFAEL LTDA\",\n\"CENTRO MEDICO DE YUMBO\",\n\"CENTRO MEDICO DEL ROSARIO E.A.T\",\n\"CENTRO MEDICO EL PILAR LTDA\",\n\"CENTRO MEDICO ESPECIALIZADO DE BAJO BAUDO S.A.S\",\n\"CENTRO MEDICO FAMILIAS SAS\",\n\"CENTRO MEDICO GUADALUPE MEDICINA GENERAL Y SALUD OCUPACIONAL S.A.S\",\n\"CENTRO MEDICO GUAVIARE CMG S.A.S\",\n\"CENTRO MEDICO GUAYACANES IPS SAS\",\n\"CENTRO MEDICO IMBANACO DE CALI S.A.\",\n\"CENTRO MEDICO INTEGRAL ALTOS DE LA CANDELARIA S.A.S\",\n\"CENTRO MEDICO INTEGRAL DE TERAPIAS\",\n\"CENTRO MEDICO INTEGRAL DEL CORAZON SAS\",\n\"CENTRO MEDICO INTEGRAL SERVICIOS DE SALUD C.M.I. S.A.\",\n\"CENTRO MEDICO IP SALUD SAS\",\n\"CENTRO MEDICO JAMUNDI S.A.\",\n\"CENTRO MEDICO LA FACULTAD SAS\",\n\"CENTRO MEDICO LA SAMARITANA LTDA\",\n\"CENTRO MEDICO MAS SALUD IPS S.A.S\",\n\"CENTRO MEDICO NUESTRA SEÑORA DE LAS LAJAS S.A.S\",\n\"CENTRO MEDICO OFTALMOLOGICO Y LABORATORIO CLINICO ANDRADE NARVAEZ SIGLA COLCAN S.A.S.\",\n\"CENTRO MEDICO PREVENIMOS S.A.S\",\n\"CENTRO MEDICO PROVINSALUD IPS SOCIEDAD DE RESPONSABILIDAD LTDA\",\n\"CENTRO MEDICO QUIRÚRGICO DE LA ORINOQUÍA S A S\",\n\"CENTRO MEDICO QUIRÚRGICO ESPECIALIZADO BOYACÁ I.P.S S.A.S\",\n\"CENTRO MEDICO QUIRURGICO LA RIVIERA S.A.S.\",\n\"CENTRO MEDICO SALUD VITAL EJE CAFETERO S.A.S\",\n\"CENTRO MEDICO SAN AGUSTIN LTDA\",\n\"CENTRO MEDICO SAN JOSE CACHIPAY E.U.\",\n\"CENTRO MEDICO SAN JUAN EU\",\n\"CENTRO MEDICO SAN LUIS CLINICA QUIRURGICA S.A.S.\",\n\"CENTRO MEDICO SANTA ANA S.A.S\",\n\"CENTRO MEDICO SANTA ROSA DE OSOS LTDA\",\n\"CENTRO MEDICO SEBASTIAN VILLAZON OVALLE S.A.S\",\n\"CENTRO MÉDICO SINAPSIS IPS S.A.\",\n\"CENTRO MEDICO VALLE DE ATRIZ E.U.\",\n\"CENTRO MÉDICO VIVE SAS\",\n\"CENTRO MEDICO Y DE AYUDAS DIAGNOSTICA LTDA CEMAD LTDA\",\n\"CENTRO MEDICO Y DE REHABILITACION E.U.\",\n\"CENTRO MEDICO Y DE REHABILITACION PROVIDA LTDA\",\n\"CENTRO MEDICO Y DIAGNOSTICO LABCLINIC IPS S.A.S\",\n\"CENTRO MEDICO Y ODONTOLÓGICO SER SALUDABLE S.A.S.\",\n\"CENTRO NACIONAL DE ONCOLOGIA S.A.\",\n\"CENTRO NACIONAL INTEGRAL DE REHABILITACION SOLIDARIDAD\",\n\"CENTRO NEUMOLOGICO DEL NORTE SAS\",\n\"CENTRO NEUPSIQUIATRICO EL DIVINO NINO\",\n\"CENTRO NEURO UROLOGICO SAS\",\n\"CENTRO NEUROLOGICO DE BOGOTA LIMITADA\",\n\"CENTRO NEUROLOGICO DEL NORTE\",\n\"CENTRO NEUROLOGICO DEL PACIFICO\",\n\"CENTRO NEUROLOGICO INTEGRAL DE SANTANDER NISA SAS\",\n\"CENTRO NEURORADIONCOLOGICO DE CARTAGENA SAS\",\n\"CENTRO OCULAR DE MIOPIA DR RINCON SOCIEDAD POR ACCIONES SIMPLIFICADA SAS\",\n\"CENTRO ODONTOLOGICO & MAXILOFACIAL DR. JUAN DAVID DIAZ B SAS\",\n\"CENTRO ODONTOLOGICO DE ESPECIALISTAS BRASILIA S.A.S.\",\n\"CENTRO ODONTOLOGICO ORAL STETIC E.U.\",\n\"CENTRO ODONTOLÓGICO ORALSALUD\",\n\"CENTRO OFTALMOLOGICO DEL LLANO S.A.\",\n\"CENTRO OFTALMOLÓGICO DEL SINU S.A.S\",\n\"CENTRO OFTALMOLÓGICO EBENEZER SAS\",\n\"CENTRO OFTALMOLOGICO LYND NEWBALL\",\n\"CENTRO OFTALMOLOGICO ORIENTAL Y MEDECINA LABORAL SAS\",\n\"CENTRO OFTALMOLOGICO SURCOLOMBIANO LTDA\",\n\"CENTRO ONCOLOGICO DE ANTIOQUIA SA\",\n\"CENTRO OPTICO DE LA SABANA S.A.S\",\n\"CENTRO OPTICO DEL NORTE EU\",\n\"CENTRO OPTICO LEMUS FARAH\",\n\"CENTRO OPTICO LOREN Z S.A.S.\",\n\"CENTRO ÓPTICO MAIRA ROSADO ZAMBRANO S.A.S.\",\n\"CENTRO OPTICO SOL Y LUNA LTDA\",\n\"CENTRO ORTOPEDICO GOMEZ Y CIA LTDA\",\n\"CENTRO PARA EL DESARROLLO HABILITACION Y REHABILITACION INTEGRAL CENDRI S.A.S.\",\n\"CENTRO PARA EL DESARROLLO INFANTIL SAS\",\n\"CENTRO PARA LA PROMOCION PREVENCION Y REHABILITACION INTEGRAL E.A.T. CENPRI\",\n\"CENTRO PARA TRASTORNOS DEL DESARROLLO KARITAS S.A.S.\",\n\"CENTRO PSICOPEDAGOGICO INTEGRAL ANA RUBY RUIZ S.A.S\",\n\"CENTRO RADIOLOGICO DE ALTA TECNOLOGIA S.A.S.\",\n\"CENTRO RADIOLOGICO DE LA 17\",\n\"CENTRO RADIOLOGICO DEL CARIBE S.A.S.\",\n\"CENTRO RADIOLOGICO DEL QUINDIO S.A.S.\",\n\"CENTRO RADIOLÓGICO DEL SARARE\",\n\"CENTRO RADIOLOGICO SAN PEDRO CLAVER LTDA (CERTAX)\",\n\"CENTRO RADIO-ONCOLOGICO DEL CARIBE S.A.S.\",\n\"CENTRO REGIONAL DE ONCOLOGIA SAS\",\n\"CENTRO REHABILITAR SAS\",\n\"CENTRO REHAFIS E.U.\",\n\"CENTRO SALUD DE LA GUAJIRA S.A.S\",\n\"CENTRO TERAPEUTICO DE LA SABANA S.A.S.\",\n\"CENTRO TERAPEUTICO EMPRESA ASOCIATIVA DE TRABAJO\",\n\"CENTRO TERAPEUTICO INTEGRAL DEL CAUCA IPS S.A.S. CETIC IPS\",\n\"CENTRO TERAPEUTICO INTEGRAL FISIOSALUD\",\n\"CENTRO TERAPEUTICO RE-ENCONTRARSE S.A.S.\",\n\"CENTRO TERAPEUTICO Y REHABILITACION INTEGRAL RIO DE ORO\",\n\"CENTRO UROLOGICO FOSCAL S.A.S\",\n\"CENTRO VASCULAR DE BOYACA S.A.S\",\n\"CENTRO VASCULAR DEL LAGO LTDA\",\n\"CENTRO VISUAL MODERNO S.A.S.\",\n\"CENTRO VISUAL SANTA LUCIA LTDA\",\n\"CENTRODONCIA S.A.S\",\n\"CENTROMEDICO CRECER LTDA\",\n\"CENTROS DE CONSULTA S.A.S.\",\n\"CENTROS HOSPITALARIOS DEL CARIBE SAS\",\n\"CENTURY FARMA SAS\",\n\"CER CLINICAL IPS S.A.S\",\n\"CEREVIDI IPS S.A.S\",\n\"CERO 70 S.A.S.\",\n\"CESAR PANQUEBA Y COMPAÑÍA LTDA\",\n\"CIA DE NEUROLOGOS.NEUROCIRUJANOS Y ESPECIALIDADES AFINES, SOCIEDAD ACCIONES SIMPLIF CONEURO S.A.S.\",\n\"CIAMED LTDA I.P.S.\",\n\"CIC LABORATORIOS S.A.S.\",\n\"CICLO VITAL COLOMBIA SAS\",\n\"CIDSALUD IPSI\",\n\"CIFEL CENTRO DE INVESTIGACION EN FISIATRIA Y ELECTRODIAGNOSTICO S.A.S. SIGLA: CIFEL S.A.S\",\n\"CIMAD IPS - (252140001301)\",\n\"CIMED - CENTRO DE IMAGENES DIAGNOSTICAS SAS\",\n\"CIREN ABA SAS\",\n\"CIS CENTRO INTEGRAL DE SALUD S.A.S\",\n\"CITEN LTDA\",\n\"CITOPAT DE LA COSTA LTDA\",\n\"CIUDAD SALUD COLOMBIA IPS SOCIEDAD POR ACCIONES SIMPLIFICADA. SIGLA CIUDAD SALUD COLOMBIA IPS S.A.S\",\n\"CLIDENTAL LTDA\",\n\"CLIMEDIC IPS LTDA\",\n\"CLINIBAC LTDA.\",\n\"CLINIC SMILE S.A.S\",\n\"CLINICA ABC ORTODONCIA SAS\",\n\"CLINICA ALTOS DE SAN VICENTE S.A.S.\",\n\"CLINICA ANTIOQUIA S.A.\",\n\"CLINICA ARENAS VALLEDUPAR SAS\",\n\"CLINICA ASOTRAUMA SAS\",\n\"CLINICA AYNAN LTDA\",\n\"CLINICA BASILIA S.A.S\",\n\"CLINICA BELLATRIZ S.A.S\",\n\"CLINICA BELO HORIZONTE\",\n\"CLINICA BENEDICTO S.A\",\n\"CLINICA BIJAO IPS LTDA\",\n\"CLINICA BLAS DE LEZO S.A.\",\n\"CLINICA BUENOS AIRES S.A:S\",\n\"CLINICA CARDIONEUROVASCULAR PABON SAS\",\n\"CLINICA CARDIOVASCULAR CORAZON JOVEN S.A. COVEN\",\n\"CLINICA CARDIOVASCULAR JESUS DE NAZARETH E.U\",\n\"CLINICA CARTAGENA DEL MAR S.A.S\",\n\"CLINICA CEGINOB LTDA\",\n\"CLINICA CENTRAL DEL QUINDIO SAS\",\n\"CLINICA CENTRAL O.H.L. LTDA\",\n\"CLINICA CENTRAL SOMEBA S A\",\n\"CLINICA CENTRO S.A\",\n\"CLINICA CHAIRA IPS\",\n\"CLINICA CHIA S.A.\",\n\"CLINICA CHICAMOCHA S.A\",\n\"CLINICA CHINITA S.A.\",\n\"CLINICA COLDENTAL I.P.S. S.A.S\",\n\"CLINICA COLOMBIANA DEL RIÑON S.A\",\n\"CLINICA COLSANITAS SA\",\n\"CLINICA CORPOSUCRE\",\n\"CLINICA CREAR VISION S.A.S\",\n\"CLÍNICA CUABAL SAS\",\n\"CLINICA CURILLO IPS SAS\",\n\"CLÍNICA DE ALTA COMPLEJIDAD SANTA BÁRBARA S.A.S\",\n\"CLINICA DE ARTRITIS TEMPRANA S.A.S.\",\n\"CLINICA DE CANCEROLOGIA DEL NORTE DE SANTANDER LTDA.\",\n\"CLINICA DE CIRUGIA AMBULATORIA CONQUISTADORES S.A.\",\n\"CLINICA DE CIRUGIA OCULAR LIMITADA\",\n\"CLINICA DE COSMETOLOGIA DENTAL Y MAXILOFACIAL DE CORDOBA LTDA.\",\n\"CLINICA DE DIAGNOSTICO ORAL IPS LTDA\",\n\"CLINICA DE DOLOR DEL EJE CAFETERO S.A.S\",\n\"CLINICA DE ENFERMEDADES DIGESTIVAS SAS\",\n\"CLINICA DE ESPECIALIDADES MEDICAS Y ODONTOLOGICAS DEL CARIBE S.A.S MEDIDENT\",\n\"CLINICA DE ESPECIALIDADES OFTALMOLOGICAS S.A.S\",\n\"CLINICA DE ESPECIALISTAS DEL NORTE DEL TOLIMA LA DORADA E.U.\",\n\"CLINICA DE ESPECIALISTAS DEL NORTE DEL TOLIMA SAS\",\n\"CLINICA DE ESPECIALISTAS GUAJIRA S.A.\",\n\"CLINICA DE ESPECIALISTAS LTDA.\",\n\"CLINICA DE ESPECIALISTAS MARIA AUXILIADORA S.A.S.\",\n\"CLINICA DE FRACTURAS CAUCA SAS\",\n\"CLINICA DE FRACTURAS CENTRO DE ORTOPEDIA Y TRAUMATOLOGIA S.A\",\n\"CLINICA DE FRACTURAS DE MEDELLÍN S.A.S\",\n\"CLINICA DE FRACTURAS S.A.S\",\n\"CLINICA DE FRACTURAS S.A.S\",\n\"CLINICA DE FRACTURAS TAYRONA IPS SAS\",\n\"CLINICA DE FRACTURAS VALLEDUPAR S.A.S\",\n\"CLINICA DE FRACTURAS VITA S.A.S\",\n\"CLINICA DE LA AMAZONIA IPS LTDA\",\n\"CLINICA DE LA COSTA LTDA\",\n\"CLINICA DE LA MUJER CARTAGENA S.A.S\",\n\"CLINICA DE LA MUJER S.A.\",\n\"CLINICA DE LA MUJER S.A.S.\",\n\"CLINICA DE LA VISION DEL VALLE SAS\",\n\"CLINICA DE LA VISION OAB LTDA\",\n\"CLINICA DE MARLY S.A\",\n\"CLINICA DE MEDICINA HIPERBARICA S.A.S.\",\n\"CLINICA DE MEDICINA VITAL SAS\",\n\"CLINICA DE OCCIDENTE\",\n\"CLINICA DE OFTALMOLOGIA DE CALI\",\n\"CLINICA DE OFTALMOLOGIA SANDIEGO S.A\",\n\"CLINICA DE OJOS (CLINOJOS) S.A. / CLINOJOS S.A.\",\n\"CLINICA DE OJOS DE SABANALRGA LTDA\",\n\"CLINICA DE OJOS DEL TOLIMA S.A.S\",\n\"CLINICA DE OJOS SANTA LUCIA LTDA.\",\n\"CLINICA DE OJOS SOCIEDAD MEDICA BOLIVARIANA\",\n\"CLINICA DE ORTOPEDIA Y FRACTURAS TRAUMEDICAL S.A.S\",\n\"CLINICA DE OTORRINOLARINGOLOGIA DE ANTIOQUIA S.A-ORLANT S.A\",\n\"CLINICA DE REHABILITACION DEL VALLE S A\",\n\"CLINICA DE REHABILITACION INTEGRAL HÖWARD GÄRDNER S.A.S\",\n\"CLINICA DE REHABILITACION INTEGRAL KINESSIA S.A.S\",\n\"CLINICA DE SALUD MENTAL MEDICAR S.A.S\",\n\"CLINICA DE SALUD MENTAL MORAVIA LTDA.\",\n\"CLINICA DE SALUD MENTAL NUEVA ESPERANZA SAS\",\n\"CLINICA DE SALUD MENTAL REAL BETTEL IPS SAS\",\n\"CLINICA DE SALUD MENTAL Y REHABILITACION INTEGRAL MANANTIALES LTDA.\",\n\"CLINICA DE URABA SA\",\n\"CLINICA DE URGENCIAS BUCARAMANGA S.A.S\",\n\"CLINICA DE URGENCIAS DE SALUD MENTAL SAN LUCAS SAS\",\n\"CLINICA DEL CAMPESTRE S A\",\n\"CLINICA DEL CARIBE S.A.\",\n\"CLINICA DEL CESAR S.A.\",\n\"CLINICA DEL DOLOR Y CUIDADO PALIATIVO ALIVIAR SAS\",\n\"CLINICA DEL OCCIDENTE S.A.\",\n\"CLINICA DEL ORIENTE LTDA\",\n\"CLINICA DEL PRADO S.A.S\",\n\"CLINICA DEL SISTEMA NERVIOSO S.A.S\",\n\"CLÍNICA DEL SUR SAS\",\n\"CLINICA DEL YARI LTDA\",\n\"CLINICA DENTAL CLIDENT S.A.S\",\n\"CLINICA DESA CALI\",\n\"CLINICA DIVINO NIÑO\",\n\"CLINICA EL DONCELLO LTDA\",\n\"CLINICA EL LAGUITO S.A\",\n\"CLINICA EMPERATRIZ SAS\",\n\"CLINICA ENDOART E.U.\",\n\"CLINICA ERASMO LTDA\",\n\"CLINICA ESPECIALISTA DE COLOMBIA EN CORAZON S.A.S.\",\n\"CLÍNICA ESPECIALIZADA EN ADICCIONES LUIS AMIGÓ FERRER S.A.S\",\n\"CLINICA ESPECIALIZADA EN SALUD MENTAL FENIX S.A.S\",\n\"CLÍNICA ESPECIALIZADA LA CONCEPCIÓN S.A.S\",\n\"CLINICA ESPECIALIZADA ODONTOPREVENIR S.A.S\",\n\"CLINICA ESPECIALIZADA OYOLA S.A.S\",\n\"CLÍNICA ESPERANZA S.A.S\",\n\"CLINICA FARALLONES S A\",\n\"CLÍNICA FLOREZ S.A.S.\",\n\"CLINICA FUNDACION-IPS-SAS\",\n\"CLÍNICA FUTURO IPS. S.A.S.\",\n\"CLINICA GENERAL DE CIENAGA S. A. S.\",\n\"CLINICA GENERAL DE LA 100 SAS Y PODRA ANUNCIARSE CON LAS SIGLAS CLINI100 SAS\",\n\"CLINICA GENERAL DE SOLEDAD Y CIA. LTDA\",\n\"CLINICA GENERAL DEL CARIBE S.A.\",\n\"CLINICA GENERAL SAMPUES SAS\",\n\"CLINICA GENERAL SAN DIEGO S.A.S.\",\n\"CLÍNICA GIRON ESE\",\n\"CLINICA GUADALAJARA DE BUGA S.A.\",\n\"CLINICA HIGEA IPS S.A.\",\n\"CLINICA HONDA JAP SAS\",\n\"CLINICA IBAGUE S.A\",\n\"CLINICA INTEGRAL DE EMERGENCIAS LAURA DANIELA S.A.\",\n\"CLINICA INTEGRAL DE FRACTURAS LOMAS VERDES S.A.S\",\n\"CLINICA INTEGRAL OFTALMOQUIRURGICA CIO\",\n\"CLINICA INTERNACIONAL DE ALTA TECNOLOGIA CLINALTEC S.A.S.\",\n\"CLINICA INTERNATIONAL BARRANQUILLA S.A.S\",\n\"CLINICA IPS CABECERA SAS\",\n\"CLINICA IZKA SAS\",\n\"CLINICA JALLER S.A.S.\",\n\"CLINICA JERUSALEN\",\n\"CLINICA JUAN N CORPAS LTDA.\",\n\"CLINICA LA ASUNCION\",\n\"CLINICA LA CAROLINA S.A\",\n\"CLINICA LA ERMITA DE CARTAGENA S.A.S.\",\n\"CLÍNICA LA ESPERANZA IPS S.A.S.\",\n\"CLÍNICA LA ESTANCIA S. A.\",\n\"CLINICA LA MERCED BARRANQUILLA SAS\",\n\"CLINICA LA MILAGROSA S,A,\",\n\"CLINICA LA MISERICORDIA\",\n\"CLINICA LA SAGRADA FAMILIA SAS\",\n\"CLINICA LA TRINIDAD I.P.S. LTDA\",\n\"CLINICA LA UNIDAD S.A.S\",\n\"CLINICA LA VICTORIA S.A.S.\",\n\"CLINICA LA VIDA IPS S.A.S.\",\n\"CLINICA LAS PEÑITAS S.A.S\",\n\"CLÍNICA LAURELES PSIQUIATRAS ASOCIADOS. I.P.S S.A.S.\",\n\"CLINICA LOS ALMENDROS SAS\",\n\"CLINICA LOS ANDES LTDA.\",\n\"CLINICA LOS ANDES PASTO\",\n\"CLINICA LOS ANDES S.A.\",\n\"CLINICA LOS ANGELES SALUD Y BELLEZA SAS\",\n\"CLINICA LOS NOGALES SAS\",\n\"CLINICA LOS REMANSOS INSTITUTO TOLIMENSE DE SALUD MENTAL S.A.S\",\n\"CLINICA LOS ROSALES S.A\",\n\"CLINICA MAGDALENA SAS\",\n\"CLINICA MARTHA S.A.\",\n\"CLINICA MARYBAU LA LOMA LTDA\",\n\"CLINICA MATERNO INFANTIL CASA DEL NIÑO S.A.S\",\n\"CLINICA MATERNO INFANTIL SAN LUIS S.A\",\n\"CLINICA MED S.A.S\",\n\"CLINICA MEDELLIN S.A\",\n\"CLINICA MEDICA AGUACHICA LTDA\",\n\"CLINICA MEDICAL DEL CARIBE S.A.S\",\n\"CLINICA MEDICAL SAS\",\n\"CLINICA MEDICALDENT S.A.S\",\n\"CLÍNICA MEDICENTER FICUBO SAS\",\n\"CLINICA MEDICO ODONTOLOGICA PROMTA S.A.S\",\n\"CLINICA MEDICO OFTALMOLOGICA DEL NIÑO Y DEL ADULTO S.A.S\",\n\"CLINICA MEDICO QUIRURGICA ALVERNIA LTDA\",\n\"CLINICA MEDICO QUIRURGICA S.A\",\n\"CLINICA MEDICOS S.A.\",\n\"CLINICA MEDIDENT S.A.S\",\n\"CLINICA MEDIESP S.A.S.\",\n\"CLINICA MEDILASER S.A\",\n\"CLINICA METROPOLITANA CMO IPS S.A.S\",\n\"CLINICA METROPOLITANA DEL LLANO\",\n\"CLINICA MONTERIA S.A\",\n\"CLINICA MONTESSORI SAS\",\n\"CLINICA MURILLO - INVERCLINICAS S.A.\",\n\"CLINICA NEUMOLOGICA DEL PACIFICO S.A.S\",\n\"CLINICA NEUMOLOGICA Y DEL SUEÑO S.A.S\",\n\"CLINICA NEUROREHABILITAR LTDA\",\n\"CLINICA NORTE S.A.\",\n\"CLINICA NUESTRA SEÑORA DE FATIMA S.A.\",\n\"CLINICA NUESTRA SEÑORA DE LA PAZ\",\n\"CLINICA NUESTRA SEÑORA DE LOS REMEDIOS\",\n\"CLINICA NUEVA DE CALI SAS\",\n\"CLINICA NUEVA DE CARTAGO SAS\",\n\"CLINICA NUEVA RAFAEL URIBE URIBE SAS\",\n\"CLINICA NUEVA VIDA S.A.S\",\n\"CLINICA ODENTIS 24 HORAS SAS\",\n\"CLINICA ODONTOLOGICA CREANDO SONRISAS S.A.S.\",\n\"CLINICA ODONTOLOGICA DE ESPECIALISTAS IPS PROMIDENT\",\n\"CLÍNICA ODONTOLÓGICA DEL CARIBE S.A.S.\",\n\"CLINICA ODONTOLOGICA DEL OCCIDENTE I P S SAS\",\n\"CLINICA ODONTOLOGICA ESPECIALIZADA DENTISONRISA S.A.S\",\n\"CLINICA ODONTOLOGICA ESPECIALIZADA P&P S.A.S.\",\n\"CLINICA ODONTOLOGICA ORTOSONRIA ESTETICA DENTAL S.A.S.\",\n\"CLÍNICA ODONTOLOGICA PARRA Y JARAMILLO S.A.S.\",\n\"CLINICA ODONTOLOGICA PROTECCION ORAL S.A.S. SIGLA COPO S.A.S.\",\n\"CLINICA ODONTOLOGICA SONRIA FELIZ SAS\",\n\"CLÍNICA OFTALMOLÓGICA CABECERA SAS\",\n\"CLINICA OFTALMOLOGICA DAJUD SAS\",\n\"CLINICA OFTALMOLOGICA DE ANTIOQUIA S.A CLOFAN S.A\",\n\"CLINICA OFTALMOLOGICA DE BUGA LTDA\",\n\"CLINICA OFTALMOLOGICA DE CARTAGO SAS\",\n\"CLINICA OFTALMOLOGICA DE CIRUGIA LASER SANTA LUCIA S.A.S\",\n\"CLINICA OFTALMOLOGICA DE MONTERIA S.A.S\",\n\"CLINICA OFTALMOLOGICA DE PALMIRA SAS\",\n\"CLINICA OFTALMOLOGICA DE SUCRE S.A.S\",\n\"CLINICA OFTALMOLOGICA DE TULUA\",\n\"CLINICA OFTALMOLOGICA DE VALLEDUPAR LTDA.\",\n\"CLINICA OFTALMOLOGICA INTEGRAL COI LTDA\",\n\"CLINICA OFTALMOLOGICA LAURELES SA CLODEL SA\",\n\"CLINICA OFTALMOLOGICA PAREDES SAS\",\n\"CLINICA OFTALMOLOGICA PEÑARANDA S.A.S\",\n\"CLINICA OFTALMOLOGICA QUINDIO S.A.\",\n\"CLINICA OFTALMOLOGICA UNIDAD LASER DEL ATLANTICO S.A\",\n\"CLINICA OFTALMOLOGICA UNIGARRO LIMITADA\",\n\"CLINICA OFTALMÓLOGICA VISIÓN COLOMBIA SAS Y/O UNIDAD DE DIAGNOSTICO MEDICO UNIDIME SAS\",\n\"CLINICA OFTALMOLOGOS DEL VALLE LTDA\",\n\"CLINICA OFTAMOLOGICA DE SINCELEJO LTDA\",\n\"CLINICA ONCOLOGICA AURORA SAS\",\n\"CLÍNICA ORIENTAL DEL CARIBE S.A.S\",\n\"CLINICA ORIENTE S.A.S.\",\n\"CLINICA PAJONAL S.A.S\",\n\"CLINICA PALMA REAL S.A.S\",\n\"CLINICA PALMIRA S.A.\",\n\"CLINICA PARTENON LIMITADA\",\n\"CLINICA PEDIATRICA NIÑO JESUS S.A.S\",\n\"CLINICA PIEDECUESTA S.A.\",\n\"CLINICA PORTO BELO IPS S.A.S\",\n\"CLINICA PORTOAZUL S.A SIGLA CPA\",\n\"CLINICA PORVENIR LIMITADA\",\n\"CLINICA PRIMERO DE MAYO INTEGRAL S.A.S\",\n\"CLINICA PSIQUIATRICA SAN JUAN DE DIOS\",\n\"CLINICA PUTUMAYO S.A.S ZOMAC\",\n\"CLINICA RAMIPAZ\",\n\"CLINICA REGIONAL DE ESPECIALISTAS SINAIS VITAIS SAS\",\n\"CLINICA REGIONAL DEL SAN JORGE AGENCIA YOPAL\",\n\"CLINICA REGIONAL INMACULADA CONCEPCION\",\n\"CLINICA REINA ISABEL SAS\",\n\"CLINICA REINA LUCIA SAS\",\n\"CLINICA RENACER EQUILIBRIO NATURAL S.A.S\",\n\"CLINICA RESPIRATORIA Y DE ALERGIAS S.A.S\",\n\"CLINICA RETORNAR SAS\",\n\"CLINICA REVIVIR SA\",\n\"CLINICA SAHAGUN I.P.S. S.A\",\n\"CLINICA SALUD SOCIAL S.A.S\",\n\"CLINICA SAN FELIPE DE BARAJAS SAS\",\n\"CLINICA SAN FERNANDO S.A\",\n\"CLINICA SAN FRANCISCO DE ASIS SAS\",\n\"CLINICA SAN FRANCISCO S.A\",\n\"CLINICA SAN JORGE LA HORMIGA S.A.S\",\n\"CLINICA SAN JOSE DE CUCUTA SA\",\n\"CLINICA SAN JOSE IPS LTDA\",\n\"CLINICA SAN JOSE SAS\",\n\"CLINICA SAN JUAN BAUTISTA S.A.S.\",\n\"CLINICA SAN JUAN DE DIOS LA CEJA\",\n\"CLINICA SAN JUAN DEL PACIFICO S.A.S\",\n\"CLINICA SAN LUCAS LTDA\",\n\"CLINICA SAN MARTIN BARRANQUILLA LTDA\",\n\"CLINICA SAN PABLO SA\",\n\"CLINICA SAN RAFAEL LTDA\",\n\"CLINICA SANAR S.A.S\",\n\"CLINICA SANTA ANA DE DIOS S.A.S.\",\n\"CLINICA SANTA ANA S.A.\",\n\"CLINICA SANTA ANA S.A.S\",\n\"CLINICA SANTA BARBARA DEL VALLE DE TENZA S.A.\",\n\"CLÍNICA SANTA CLARA SAS\",\n\"CLINICA SANTA CRUZ DE LA LOMA S.A\",\n\"CLINICA SANTA ISABEL LIMITADA\",\n\"CLINICA SANTA LUCIANA S.A.S\",\n\"CLINICA SANTA MARIA SAS\",\n\"CLINICA SANTA MARTA RL SAS\",\n\"CLINICA SANTA SOFIA DEL PACIFICO LTDA\",\n\"CLINICA SANTA TERESA S.A\",\n\"CLINICA SANTA TERESITA DEL NIÑO JESUS S.A.\",\n\"CLÍNICA SANTO TOMÁS SA\",\n\"CLINICA SOL DE LOS ANDES SAS\",\n\"CLINICA SOMEDA S.A.S\",\n\"CLINICA SONREIR E.U\",\n\"CLÍNICA SU VIDA S.A.S\",\n\"CLINICA SUPERIOR E.U.\",\n\"CLINICA TUNDAMA S.A.\",\n\"CLINICA TUSALUD ORAL SAS\",\n\"CLINICA UCI DEL RIO S.A.\",\n\"CLÍNICA UNIVERSIDAD DE LA SABANA\",\n\"CLINICA URGENCIAS LA MERCED S.A.S\",\n\"CLINICA UROS S.A.S - TORRE A\",\n\"CLINICA VALLE SALUD SAN FERNANDO S.A.S\",\n\"CLINICA VALLEDUPAR S.A\",\n\"CLINICA VASCULAR DE CASANARE S.A.S\",\n\"CLINICA VASCULAR NAVARRA S.A. / CLINICA NAVARRA\",\n\"CLINICA VER BIEN S.A\",\n\"CLÍNICA VERSALLES S.A\",\n\"CLINICA VERSALLES S.A.\",\n\"CLINICA VIDA IPS S.A.S.\",\n\"CLINICA VISUAL FUNVISUAL SAS\",\n\"CLINICA VITAL VALLEDUPAR SAS\",\n\"CLINICA VIVE LTDA\",\n\"CLINICA Y DROGUERIA NTRA SRA DE TORCOROMA S.A.S.\",\n\"CLINICA Y UNIDAD DE SALUD MENTAL VILLAMARIA LIMITADA\",\n\"CLINICA ZAYMA S.A.S\",\n\"CLINICAL SPA CIRUGIA PLASTICA & LASER LTDA\",\n\"CLINICAL SUPPORT SAS\",\n\"CLINICAONCOSALUD I.P.S.S.A.S\",\n\"CLINICAS ATENAS LTDA IPS\",\n\"CLINICAS ODONTOLOGICAS COODONTOLOGOS S.A.S\",\n\"CLINICENTRO DE REHABILITACION CARDIACA Y PULMONAR LTDA\",\n\"CLINICOS FLORENCIA ZOMAC S.A.S\",\n\"CLINICOS PROGRAMAS DE ATENCIÓN INTEGRAL S.A.S IPS\",\n\"CLINIC-SALUD IPS DIAGNOSTICO Y REHABILITACION S.A.S.\",\n\"CLINIDIAGNOSTICOS S.A.S.\",\n\"CLINIGASTRO CAUCA S.A\",\n\"CLINIMAGENES SAS\",\n\"CLINIMED BARBOSA LTDA.\",\n\"CLINISALUD CLINICAS EN SALUD E.U.\",\n\"CLINISALUD DEL SUR S.A.S.\",\n\"CLINISONRISA ODONTOLOGIA S.A.S\",\n\"CLINIVIDA Y SALUD IPS SAS\",\n\"CLINNOVA CLINICA DE HERIDAS Y OSTOMIAS SAS\",\n\"CMIACIPSGUAJIRA SAS\",\n\"COBO MEDICAL SAS\",\n\"CODENT ODONTOLOGIA ESPECIALIZADA IPS E.U.\",\n\"CODIGO AZUL MEDICINA EN SU HOGAR S.A.S.\",\n\"CODIGO AZUL S.A.S.\",\n\"COLCHARTER IPS SAS\",\n\"COLOMBIAN MEDICAL & LYFE SAS\",\n\"COLOMBIANA DE TRASPLANTES SAS\",\n\"COLON-GASTRO INSTITUTO I.P.S. Y SERVICIOS MEDICOS LIMITADA\",\n\"COLPODIAGNOSTICO S.A.S\",\n\"COLVIDA IPS SAS\",\n\"COMERCIALIZADORA FIJACION EXTERNA SAS\",\n\"COMERCIALIZADORA SANTANDEREANA DE MEDICAMENTOS LIMITADA COSANMED LTDA\",\n\"COMERCIALIZADORA UNIVERSAL DE MEDICAMENTOS S.A.S.\",\n\"COMFACAUCA I.P.S.\",\n\"COMFAORIENTE I.P.S.\",\n\"COMITE DE ESTUDIOS MEDICOS S.A.S\",\n\"COMITÉ MUNICIPAL DE LA CRUZ ROJA DE MAICAO\",\n\"COMO EN CASA IPS\",\n\"COMPAÑÍA COLOMBIANA DE SALUD COLSALUD S.A\",\n\"COMPAÑIA DE PATOLOGOS DEL CAUCA SAS CPC SAS\",\n\"COMPAÑIA OPERADORA CLINICA HISPANOAMERICA SAS\",\n\"COMPAÑÍA PRESTADORA DE SERVICIOS DE SALUD SA IPS\",\n\"COMPLEJO INTERNACIONAL DE CIRUGIA PLASTICA S.A.\",\n\"COMPULAB SERVICIOS MEDICOS INTEGRALES S.A.S.\",\n\"COMUNIDAD DE HERMANAS DOMINICAS DE LA PRESENTACION DE LA SANTISIMA VIRGEN DE TOURS PROVINCIA DE MEDELLIN\",\n\"COMUNIDAD TERAPEUTICA SAN BARTOLOME S.A.S\",\n\"CONEQUIPOS MEDICA SAS\",\n\"CONFESALUD IPS LTDA.\",\n\"CONFIMED S.A.S. SERVICIOS MEDICOS CONFIABLES S.A.S\",\n\"CONFYR IPS LTDA\",\n\"CONGREGACION DE DOMINICAS DE SANTA CATALINA DE SENA\",\n\"CONGREGACIÓN DE HERMANAS FRANCISCANAS MISIONERAS DE MARIA AUXILIADORA, PROVINCIA MARÍA AUXILIADORA\",\n\"CONGREGACION DE LAS HERMANAS DE LA CARIDAD DOMINICAS DE LA PRESENTACION DE LA SANTISIMA VIRGEN\",\n\"CONSALUD UNIDAD DE SERVICIOS INTEGRALES IPS\",\n\"CONSEJO REGIONAL INDÌGENA DEL CAUCA\",\n\"CONSORCIO INTEGRAL PARA TU SALUD Y BIENESTAR CIPSB SAS\",\n\"CONSULTORIO DE OPTOMETRIA VEA S.A.S\",\n\"CONSULTORIO MEDICO ESPECIALIZADO INES TABORDA DIAZ IPS\",\n\"CONSUSALUD DEL CARIBE IPS LTDA\",\n\"CONTACTO IPS S.A.S\",\n\"CONTINENTAL CLINIC LTDA\",\n\"COOMEVA ENTIDAD PROMOTORA DE SALUD S A\",\n\"COOMEVA MEDICINA PREPAGADA S.A.\",\n\"COOPERATIVA ANTIOQUEÑA DE SALUD COOPSANA\",\n\"COOPERATIVA COMUNITARIA DEL PACIFICO COOMULCOPAC - COOPESALUD IPS\",\n\"COOPERATIVA DE ENTIDADES DE SALUD DEL RISARALDA\",\n\"COOPERATIVA DE LA RED DE LA SALUD\",\n\"COOPERATIVA DE SALUD SAN ESTEBAN\",\n\"COOPERATIVA DE SERVICIOS DE SALUD PAUTO SALUD IPS\",\n\"COOPERATIVA DE SERVICIOS SOLIDARIOS DE SALUD COOEMSSANAR IPS\",\n\"COOPERATIVA DE TECNICOS TECNOLOGOS Y PROFESIONALES COOTETECPRO\",\n\"COOPERATIVA DE TRABAJO ASOCIADO COONSOCIAL\",\n\"COOPERATIVA DE TRABAJO ASOCIADO DE PROFESIONALES DE LA SALUD DE DONMATIAS - PROSALCO\",\n\"COOPERATIVA DE TRABAJO ASOCIADO ODONTOLOGOS Y MEDICOS COOPERADOS MEDICOOP\",\n\"COOPERATIVA DE TRABAJO ASOCIADO REHABILITAMOS\",\n\"COOPERATIVA DE TRABAJO ASOCIADO SERVICIOS INTEGRALES EN SALUD SISCOOP CTA\",\n\"COOPERATIVA DE TRABAJO INTEGRALES EN SALUD\",\n\"COOPERATIVA DE UROLOGOS DEL META Y LA ORINOQUIA CUMO\",\n\"COOPERATIVA EMSSANAR SERVICIO FARMACEUTICO\",\n\"COOPERATIVA EPSIFARMA\",\n\"COOPERATIVA ESPECIALIZADA DE SERVICIOS UROLOGICOS DEL TOLIMA C.T.A.-UROTOL\",\n\"COOPERATIVA ESPECIALIZADA EN SALUD DE OROCUÉ COOPORO IPS\",\n\"COOPERATIVA INTEGRAL DE TRANSPORTE DE MAGANGUE\",\n\"COOPERATIVA INTERSALUD INSTITUCION PRESTADORA DE SALUD IPS\",\n\"COOPERATIVA MEDICA DE SALUD DEL NORTE DEL CASANARE IPS\",\n\"COOPERATIVA MULTIACTIVA DE SERVICIOS INTEGRALES GESTIONARBIENESTAR\",\n\"COOPERATIVA MULTIACTIVA DE TRABAJADORES SANTANDEREANOS SALUD FAMILIA LTDA\",\n\"COOPERATIVA MULTIACTIVA DEL SUMAPAZ SIGLA COOPSUMAPAZ\",\n\"COOPERATIVA MULTIACTIVA PARA LOS PROFESIONALES DEL SECTOR SALUD CMPS\",\n\"COOPERATIVA ODONTOLOGICA DE ANTIOQUIA COODAN\",\n\"COORPORACION ENCUENTRO PARA SOLUCIONES DEL COMPORTAMIENTO E.S.C.O. IPS\",\n\"CORA GROUP\",\n\"CORAXON S.A.S\",\n\"CORAZON SALUD S.A.S\",\n\"CORAZON Y AORTA SAS\",\n\"CORAZON Y VIDA HEALTH S.A.S\",\n\"CORPCODESA DE OCCIDENTE SAS\",\n\"CORPO MEDICAL SAS\",\n\"CORPOALEGRIA\",\n\"CORPOMEDICA PUTUMAYO E U\",\n\"CORPOPAT SAS\",\n\"CORPORACION CENTRO CITA SALUD MENTAL\",\n\"CORPORACION CENTRO PARA EL DESARROLLO DEL HOMBRE Y LA TECNOLOGIA CDTECH\",\n\"CORPORACION CLINICA\",\n\"CORPORACION COLOMBIA SALUDABLE\",\n\"CORPORACION DE ATENCION INTEGRAL - CORINTEGRA\",\n\"CORPORACION DE LUCHA CONTRA EL SIDA\",\n\"CORPORACION EL HOSPITAL IPS\",\n\"CORPORACIÓN EL NIÑO ALEGRE SAN RAFAEL\",\n\"CORPORACIÓN GÉNESIS SALUD IPS\",\n\"CORPORACION HOGARES CREA\",\n\"CORPORACION HOGARES CREA DE COLOMBIA SECCIONAL CALDAS - HOGAR CREA MANIZALES\",\n\"CORPORACIÓN HOSPITAL INFANTIL CONCEJO DE MEDELLÍN\",\n\"CORPORACION HOSPITAL SAN JUAN DE DIOS - UNIREMINGTON, SANTA ROSA DE OSOS\",\n\"CORPORACIÓN HOSPITALARIA JUAN CIUDAD\",\n\"CORPORACION IPS I NAMOI WASR DEL CABILDO DE LA PARCIALIDAD INDÍGENA DE TOTORÓ\",\n\"CORPORACION MEDICA DEL CAQUETA\",\n\"CORPORACIÓN MEDICA SALUD PARA LOS COLOMBIANOS - CMS COLOMBIA LTDA\",\n\"CORPORACIÓN MI IPS BOYACÁ\",\n\"CORPORACION MI IPS CORDOBA\",\n\"CORPORACION MI IPS COSTA ATLANTICA\",\n\"CORPORACION MI IPS EJE CAFETERO\",\n\"CORPORACIÓN MI IPS HUILA\",\n\"CORPORACION MI IPS LLANOS ORIENTALES\",\n\"CORPORACION MI IPS NARIÑO\",\n\"CORPORACION MI IPS NORTE DE SANTANDER\",\n\"CORPORACION MI IPS OCCIDENTE\",\n\"CORPORACION MI IPS SANTANDER\",\n\"CORPORACION MI IPS TOLIMA\",\n\"CORPORACIÓN MIXTA INSTITUTO COLOMBIANO DE MEDICINA TROPICAL ANTONIO ROLDAN BETANCUR\",\n\"CORPORACIÓN NUESTRA IPS\",\n\"CORPORACION PARA ESTUDIOS EN SALUD CLINICA CES\",\n\"CORPORACION PARA INVESTIGACIONES BIOLOGICAS CIB\",\n\"CORPORACION PARA LA ATENCION Y EL DIAGNOSTICO DE ENFERMEDADES-MILAGROZ\",\n\"CORPORACIÓN PARA LA SALUD INTEGRAL S.A.S. - CORPOSALUD S.A.S.\",\n\"CORPORACIÓN SALUD UN\",\n\"CORPORACION SEMILLAS DE FE COMUNIDAD TERAPEUTICA CENTRO DE ATENCION EN DROGODEPENDENCIAS IPS\",\n\"CORPORACION SINDROME DE DOWN\",\n\"CORPORACION VIDA Y SALUD MAGANGUE IPS\",\n\"CORVESALUD S.A.S\",\n\"COSMEPLASTICA SA\",\n\"COSMITET LTDA CORPORACION DE SERVICIOS MEDICOS INTERNACINALES THEM Y CIA\",\n\"COSTA CARIBE Y/O IPS SALUD VIDA S.A.S\",\n\"COSTA SALUD IPS S.A.S\",\n\"COUNTRY SCAN LTDA\",\n\"CPO SA\",\n\"CRESER EN GRANDE IPS\",\n\"CRUZ ROJA COLOMBIANA SECCIONAL BOLIVAR\",\n\"CRUZ ROJA COLOMBIANA SECCIONAL CALDAS\",\n\"CRUZ ROJA COLOMBIANA SECCIONAL CUNDINAMARCA Y BOGOTA\",\n\"CRUZ ROJA COLOMBIANA SECCIONAL GUAJIRA\",\n\"CRUZ ROJA COLOMBIANA SECCIONAL VALLE DEL CAUCA\",\n\"CUERPO DE BOMBEROS VOLUNTARIOS DEL MUNICIPIO DE TAURAMENA\",\n\"CUIDADO INTEGRAL SALUD C.I.S S.A.S\",\n\"CUIDAMED SAS\",\n\"CUIDAMOS IPS S.A.S.\",\n\"CUIDAMOS SALUD LIMITADA\",\n\"CUIDAR & BIENESTAR SAS\",\n\"CUIDAR- CENTRO PEDIÁTRICO DE ATENCIÓN PRIORITARIA S.A.S.\",\n\"CUIDAR Y PROTEGER SALUD IPS SAS\",\n\"CUIDARTE EN CASA SAS\",\n\"CUIDARTE SALUD INTEGRAL EN CASA SAS\",\n\"CUIDARTE TU SALUD SAS\",\n\"CURAHELP SAS\",\n\"CURAR I.P.S. S.A.S\",\n\"CX VISION SAS\",\n\"CXAYU`CE JXUT EMPRESA SOCIAL DEL ESTADO\",\n\"DACARE IPS\",\n\"DAMOSALUD LTDA\",\n\"DAUBARA SALUD IPS S.A.S.\",\n\"DAVITA S.A.S.\",\n\"DAZALUD IPS\",\n\"DENBAR INTERNACIONAL IPS SAS\",\n\"DENTAL ADVANCE S.A.S.\",\n\"DENTAL MEDICAL CENTER S.A.S\",\n\"DENTAL.D SAS\",\n\"DENTALES DEL SINÚ IPS SAS\",\n\"DENTALIUM IPS\",\n\"DENTHAUS S.A.S.\",\n\"DENTICARIBE SAS\",\n\"DENTISANA SAS\",\n\"DENTI-SONRIA LTDA\",\n\"DENTISTETIC S.A.S\",\n\"DENTS ESTETICA DENTAL S.A.S\",\n\"DENTYPLUS CENTER S.A.S\",\n\"DEPARTAMENTO DE RADIOLOGIA S.A\",\n\"DERMACENTER SAS\",\n\"DESPENSALUD IPS S.A.S\",\n\"DEXA DIAB SERVICIOS MEDICOS LTDA\",\n\"DFLQ CLINICAS ODONTOLOGICAS ESPECIALIZADAS IPS SAS\",\n\"DIAC S.A.S\",\n\"DIAGNOMEDICA SAS\",\n\"DIAGNOSTICA AVANZADA I.P.S. S.A.S.\",\n\"DIAGNOSTICAR MILLAN LTDA\",\n\"DIAGNOSTICARTE S.A.S.\",\n\"DIAGNOSTICO & SERVICIOS S.A.S\",\n\"DIAGNOSTICO DE ENFERMEDADES DIGESTIVAS S.A.S.\",\n\"DIAGNOSTICO LTDA\",\n\"DIAGNÓSTICO OFTALMOLÓGICO S.A.S.\",\n\"DIAGNÓSTICO VASCULAR S.A.S\",\n\"DIAGNOSTICO VITAL S.A.S.\",\n\"DIAGNOSTICO Y REHABILITACION VASCULAR S.A.S - CARDIOMEDICOS S.A.S\",\n\"DIAGNOSTICOS DEL CARIBE SAS\",\n\"DIAGNOSTICOS E IMAGENES SAS\",\n\"DIAGNOSTICOS E.U.\",\n\"DIAGNÓSTICOS MÉDICOS AVANZADOS DEL NORTE S.A.S.\",\n\"DIAGNOSTIMED S.A.\",\n\"DIAGNOSTISALUD S.A.S\",\n\"DIAGNOSTIVIDA IPS SAS\",\n\"DIAXME S.A.S\",\n\"DIENTES IMPLANTES IPS\",\n\"DIGITALDENT SERVICIOS SAS\",\n\"DILAB LABORATORIO SAS\",\n\"DIMAGEN S.A\",\n\"DIME CLINICA NEUROCARDIOVASCULAR S.A\",\n\"DIRECCION DE SANIDAD POLICIA NACIONAL\",\n\"DISAMA MEDIC S.A.S.\",\n\"DISCOLMEDICA SAS\",\n\"DISEÑAMOS SONRISAS DENTS S.A.S\",\n\"DISGESACOLOMBIA SAS\",\n\"DISLAMEDIQ S.A.S.\",\n\"DISORTHO S. A.\",\n\"DISTRIBUIDORA COSTANORTE LTDA\",\n\"DISTRIBUIDORA MEDIBONAR S.A.S.\",\n\"DISTRIBUIDORA MEDICO QUIRURGICA -QUIRURMED SAS\",\n\"DISTRIDROGAS IPS MELI SAS\",\n\"DISTRIMEQ LTDA\",\n\"DISTRISUC S.A.S\",\n\"DIVERQUIN S.A.S\",\n\"DME3D SAS\",\n\"DMM DIPROMEDICAL ANDINA IPS S.A.S.\",\n\"DOCTOR HOUSE H.S.E I.P.S. S.A.S\",\n\"DOLORMED CENTRO INTEGRAL EN MANEJO DE DOLOR S.A.S.\",\n\"DOMISALUD DEL LLANO SAS\",\n\"DOMO MEDICA SAS\",\n\"DOMSALUD DEL META S.A.S\",\n\"DOTACIONES Y SUMINISTROS DE MI PUEBLO LTDA\",\n\"DOTAMOS SALUD Y VIDA IPS S.A.S.\",\n\"DR HOUSE S.A.S\",\n\"DR JULIO HOOKER DIGEST CENTER S.A.S\",\n\"DR PROSALUD IPS S.A.S\",\n\"DR. CLIK IPS SAS\",\n\"DR. OCTAVIO MANJARREZ MISSATH S.A.S.\",\n\"DROGUERIA MAGRETH S.A.S.\",\n\"DROGUERIAS Y FARMACIAS CRUZ VERDE SAS SIGLA DROGUERIAS CRUZ VERDE O FARMACIAS CRUZ VERDE\",\n\"DROVIDA EXPRESS S.A.S\",\n\"DRUGS STORE SAS\",\n\"DS CREAR SAS\",\n\"DUETICA SAS\",\n\"DUMIAN MÉDICAL S.A.S\",\n\"DUNA IPS. S.A.S\",\n\"DUSAKAWI IPS\",\n\"DZHIMECAMBA IPS\",\n\"E S E HOSPITAL MUNICIPIO DE SAN VICENTE\",\n\"E.A.T. CENTRO MEDICO SANTA MARIA I.P.S.\",\n\"E.A.T. POLICLINICO SAN JORGE\",\n\"E.A.T. VIVIR CON SALUD IPS\",\n\"E.I.T S.A.S\",\n\"E.S.C.O. SALUD PLUS IPS S.A.S.\",\n\"E.S.E CAMU CORNELIO VALDELAMAR PEÑA PUERTO ESCONDIDO\",\n\"E.S.E CAMU DE PURISIMA\",\n\"E.S.E CAMU IRIS LÓPEZ DURAN\",\n\"E.S.E CENTRO DE SALUD CAMPOHERMOSO\",\n\"E.S.E CENTRO DE SALUD COLOSO\",\n\"E.S.E CENTRO DE SALUD DE LOS ANDES\",\n\"E.S.E CENTRO DE SALUD EL ROBLE\",\n\"E.S.E CENTRO DE SALUD ENCINO\",\n\"E.S.E CENTRO DE SALUD HERMANA GERTRUDIS\",\n\"E.S.E CENTRO DE SALUD INMACULADA CONCEPCION DE GALERAS SUCRE\",\n\"E.S.E CENTRO DE SALUD MUNICIPIO DE PARAMO\",\n\"E.S.E CENTRO DE SALUD NUESTRA SEÑORA DEL CARMEN\",\n\"E.S.E CENTRO DE SALUD SAN ISIDRO DE EL PEÑOL\",\n\"E.S.E CENTRO DE SALUD SAN JERONIMO DE MONGUA\",\n\"E.S.E CENTRO DE SALUD SAN MIGUEL\",\n\"E.S.E CENTRO DE SALUD SAN PEDRO DE IGUAQUE\",\n\"E.S.E CENTRO DE SALUD VIRACACHA\",\n\"E.S.E CENTRO HOSPITAL LUIS ANTONIO MONTERO\",\n\"E.S.E EDMUNDO GERMAN ARIAS DUARTE\",\n\"E.S.E HOSPITAL AGUSTIN CODAZZI\",\n\"E.S.E HOSPITAL DEPARTAMENTAL TOMAS URIBE URIBE DE TULUA EMPRESA SOCIAL DEL ESTADO\",\n\"E.S.E HOSPITAL EDUARDO SANTOS\",\n\"E.S.E HOSPITAL EL CARMEN\",\n\"E.S.E HOSPITAL EL PEÑÓN SANTANDER\",\n\"E.S.E HOSPITAL GERMAN VELEZ GUTIERREZ\",\n\"E.S.E HOSPITAL INTEGRADO DE LANDAZURI\",\n\"E.S.E HOSPITAL INTEGRADO SAN JUAN DE CIMITARRA\",\n\"E.S.E HOSPITAL LOCAL ULPIANO TASCON QUINTERO\",\n\"E.S.E HOSPITAL ORITO\",\n\"E.S.E HOSPITAL SAN ANTONIO DE PADUA\",\n\"E.S.E HOSPITAL SAN GABRIEL ARCANGEL\",\n\"E.S.E HOSPITAL SAN JORGE\",\n\"E.S.E HOSPITAL SAN JOSE DE SAN BERNARDO DEL VIENTO\",\n\"E.S.E HOSPITAL SAN JUAN DE DIOS VALDIVIA\",\n\"E.S.E HOSPITAL SAN RAFAEL DE FACATATIVÁ\",\n\"E.S.E HOSPITAL SANTANDER HERRERA DE PIVIJAY\",\n\"E.S.E JOAQUIN EMIRO ESCOBAR\",\n\"E.S.E NUESTRA SEÑORA DE LA PAZ\",\n\"E.S.E POLICLINICO DE JUNIN\",\n\"E.S.E UCATA\",\n\"E.S.E UNIDAD DE SALUD SAN FRANCISCO DE ASIS\",\n\"E.S.E. C.A.M.U. LA APARTADA\",\n\"E.S.E. CAMU DE PUEBLO NUEVO\",\n\"E.S.E. CAMU LOS CORDOBAS\",\n\"E.S.E. CARMEN EMILIA OSPINA DE NEIVA\",\n\"E.S.E. CENTRAL DE URGENCIAS LOUIS PASTEUR\",\n\"E.S.E. CENTRO DE REHABILITACION CARDIO NEURO MUSCULAR DEL NORTE DE SANTANDER\",\n\"E.S.E. CENTRO DE SALUD BELEN\",\n\"E.S.E. CENTRO DE SALUD CON CAMAS VITELIO SARA CASTILLO\",\n\"E.S.E. CENTRO DE SALUD CUCUNUBA\",\n\"E.S.E. CENTRO DE SALUD DE COTORRA\",\n\"E.S.E. CENTRO DE SALUD DE SANTA LUCIA\",\n\"E.S.E. CENTRO DE SALUD DEL TABLON DE GOMEZ\",\n\"E.S.E. CENTRO DE SALUD GIOVANI CRISTINI IPS MUNICIPAL\",\n\"E.S.E. CENTRO DE SALUD GUACHAVÉS\",\n\"E.S.E. CENTRO DE SALUD HECTOR PINEDA GALLO SUSACON\",\n\"E.S.E. CENTRO DE SALUD JAIME MICHEL\",\n\"E.S.E. CENTRO DE SALUD LA BUENA ESPERANZA\",\n\"E.S.E. CENTRO DE SALUD MUNICIPAL DE CARTAGO\",\n\"E.S.E. CENTRO DE SALUD MUNICIPIO DE LABRANZAGRANDE\",\n\"E.S.E. CENTRO DE SALUD NUESTRA SEÑORA DE FÁTIMA\",\n\"E.S.E. CENTRO DE SALUD NUESTRA SEÑORA DEL PILAR\",\n\"E.S.E. CENTRO DE SALUD POLICARPA\",\n\"E.S.E. CENTRO DE SALUD SAN ANTONIO DE PADUA\",\n\"E.S.E. CENTRO DE SALUD SAN FRANCISCO\",\n\"E.S.E. CENTRO DE SALUD SAN JOSE DE NIMAIMA\",\n\"E.S.E. CENTRO DE SALUD SAN LORENZO\",\n\"E.S.E. CENTRO DE SALUD SAN ROQUE\",\n\"E.S.E. CENTRO DE SALUD SAN SEBASTIAN\",\n\"E.S.E. CENTRO DE SALUD SANTA BARBARA ISCUANDE\",\n\"E.S.E. CENTRO DE SALUD SANTO ECCEHOMO DE SUTAMARCHAN\",\n\"E.S.E. CENTRO DE SALUD SEÑOR DEL MAR\",\n\"E.S.E. CENTRO DE SALUD VIRGEN DE LOURDES\",\n\"E.S.E. CENTRO HOSPITAL LAS MERCEDES\",\n\"E.S.E. CENTRO HOSPITAL SAN JUAN BAUTISTA\",\n\"E.S.E. DEL ESTADO HOSPITAL LOCAL DEL MUNICIPIO DE SAN JACINTO BOLIVAR\",\n\"E.S.E. FABIO JARAMILLO LONDOÑO\",\n\"E.S.E. HOSPITAL ALCIDES JIMÉNEZ\",\n\"E.S.E. HOSPITAL ANDRES GIRARDOT DE GUICAN\",\n\"E.S.E. HOSPITAL ARMANDO PABON LOPEZ\",\n\"E.S.E. HOSPITAL ARSENIO REPIZO VANEGAS DE SAN AGUSTIN\",\n\"E.S.E. HOSPITAL CARLOS CARMONA MONTOYA IPS\",\n\"E.S.E. HOSPITAL CIVIL DE IPIALES\",\n\"E.S.E. HOSPITAL DEL ROSARIO DE CAMPOALEGRE\",\n\"E.S.E. HOSPITAL DEL ROSARIO EMPRESA SOCIAL DEL ESTADO\",\n\"E.S.E. HOSPITAL DEL SUR GABRIEL JARAMILLO PIEDRAHITA\",\n\"E.S.E. HOSPITAL DEPARTAMENTAL CENTENARIO DE SEVILLA EMPRESA SOCIAL DEL ESTADO (SEDE 0001)\",\n\"E.S.E. HOSPITAL DEPARTAMENTAL FELIPE SUAREZ\",\n\"E.S.E. HOSPITAL DEPARTAMENTAL PSIQUIATRICO UNIVERSITARIO DEL VALLE\",\n\"E.S.E. HOSPITAL DEPARTAMENTAL SAGRADO CORAZON\",\n\"E.S.E. HOSPITAL DEPARTAMENTAL SAN ANTONIO DE PADUA DE LA PLATA\",\n\"E.S.E. HOSPITAL DEPARTAMENTAL SAN ANTONIO DE PITALITO\",\n\"E.S.E. HOSPITAL DEPARTAMENTAL SAN JUAN DE DIOS\",\n\"E.S.E. HOSPITAL DEPARTAMENTAL SAN VICENTE DE PAUL DE GARZON\",\n\"E.S.E. HOSPITAL DIVINO NIÑO DE RIVERA\",\n\"E.S.E. HOSPITAL DIVINO NIÑO EMPRESA SOCIAL DEL ESTADO\",\n\"E.S.E. HOSPITAL EL CARMEN\",\n\"E.S.E. HOSPITAL EMIRO QUINTERO CAÑIZARES\",\n\"E.S.E. HOSPITAL FEDERICO LLERAS ACOSTA\",\n\"E.S.E. HOSPITAL FRANCISCO ELADIO BARRERA\",\n\"E.S.E. HOSPITAL GERIATRICO ANCIANATO SAN MIGUEL\",\n\"E.S.E. HOSPITAL GUILLERMO GAVIRIA CORREA\",\n\"E.S.E. HOSPITAL HECTOR ABAD GOMEZ\",\n\"E.S.E. HOSPITAL HILARIO LUGO DE SASAIMA\",\n\"E.S.E. HOSPITAL INTEGRADO SABANA DE TORRES\",\n\"E.S.E. HOSPITAL INTEGRADO SAN ANTONIO\",\n\"E.S.E. HOSPITAL INTEGRADO SAN VICENTE DE PAUL\",\n\"E.S.E. HOSPITAL JUAN PABLO II ARATOCA\",\n\"E.S.E. HOSPITAL KENNEDY EMPRESA SOCIAL DEL ESTADO\",\n\"E.S.E. HOSPITAL LA BUENA ESPERANZA\",\n\"E.S.E. HOSPITAL LA INMACULADA\",\n\"E.S.E. HOSPITAL LA MARIA\",\n\"E.S.E. HOSPITAL LA MERCED\",\n\"E.S.E. HOSPITAL LA MERCED DE CIUDAD BOLIVAR\",\n\"E.S.E. HOSPITAL LA MISERICORDIA\",\n\"E.S.E. HOSPITAL LA SAGRADA FAMILIA\",\n\"E.S.E. HOSPITAL LAUREANO PINO\",\n\"E.S.E. HOSPITAL LOCAL ANA MARIA RODRIGUEZ DE SAN ESTANISLAO DE KOTSKA\",\n\"E.S.E. HOSPITAL LOCAL ARJONA\",\n\"E.S.E. HOSPITAL JOSE RUDECINDO LOPEZ PARODI\",\n\"E.S.E. HOSPITAL LOCAL CANDELARIA VALLE EMPRESA SOCIAL DEL ESTADO\",\n\"E.S.E. HOSPITAL LOCAL DE CHIVOLO\",\n\"E.S.E. HOSPITAL LOCAL DE OBANDO EMPRESA SOCIAL DEL ESTADO\",\n\"E.S.E. HOSPITAL LOCAL DE PIEDECUESTA\",\n\"E.S.E. HOSPITAL LOCAL DE PUERTO LOPEZ\",\n\"E.S.E. HOSPITAL LOCAL DE SITIO NUEVO\",\n\"E.S.E. HOSPITAL LOCAL DE TENERIFE\",\n\"E.S.E. HOSPITAL LOCAL JOSE RUFINO VIVAS EMPRESA SOCIAL DEL ESTADO\",\n\"E.S.E. HOSPITAL LOCAL MAHATES\",\n\"E.S.E. HOSPITAL LOCAL MANUELA PABUENA LOBO\",\n\"E.S.E. HOSPITAL LOCAL MARIALABAJA\",\n\"E.S.E. HOSPITAL LOCAL MUNICIPIO DE LOS PATIOS\",\n\"E.S.E. HOSPITAL LOCAL SAN JUAN DE DIOS\",\n\"E.S.E. HOSPITAL LOCAL SAN JUAN NEPOMUCENO\",\n\"E.S.E. HOSPITAL LOCAL SAN PABLO\",\n\"E.S.E. HOSPITAL LOCAL SAN SEBASTIAN DE ZAMBRANO\",\n\"E.S.E. HOSPITAL LOCAL SANGRADA FAMILIA EMPRESA SOCIAL DEL ESTADO\",\n\"E.S.E. HOSPITAL LOCAL SANTA CRUZ EMPRES SOCIAL DEL ESTADO\",\n\"E.S.E. HOSPITAL LOCAL SANTA MARIA DE MOMPOX BOLIVAR\",\n\"E.S.E. HOSPITAL LOCAL SANTA TERESA DE TESALIA\",\n\"E.S.E. HOSPITAL LOCAL YOTOCO EMPRESA SOCIAL DEL ESTADO\",\n\"E.S.E. HOSPITAL MARCO FELIPE AFANADOR DE TOCAIMA\",\n\"E.S.E. HOSPITAL MARCO FIDEL SUAREZ\",\n\"E.S.E. HOSPITAL MARIA AUXILIADORA DE IQUIRA\",\n\"E.S.E. HOSPITAL MARIO GAITAN YANGUAS DE SOACHA\",\n\"E.S.E. HOSPITAL MENTAL DE ANTIOQUIA\",\n\"E.S.E. HOSPITAL MENTAL RUDESINDO SOTO\",\n\"E.S.E. HOSPITAL MENTALUNIVERSITARIO DE RISARALDA\",\n\"E.S.E. HOSPITAL MONTELIBANO\",\n\"E.S.E. HOSPITAL MUNICIPAL DE ACACIAS\",\n\"E.S.E. HOSPITAL MUNICIPAL DE SABANAGRANDE\",\n\"E.S.E. HOSPITAL MUNICIPAL NUESTRA SEÑORA DE GUADALUPE\",\n\"E.S.E. HOSPITAL MUNICIPAL SAN ANTONIO DE TIMANA\",\n\"E.S.E. HOSPITAL MUNICIPAL SAN ROQUE\",\n\"E.S.E. HOSPITAL NELSON RESTREPO MARTINEZ\",\n\"E.S.E. HOSPITAL NIVEL I EL BORDO\",\n\"E.S.E. HOSPITAL NUESTRA SEÑORA DE LOS SANTOS\",\n\"E.S.E. HOSPITAL NUESTRA SEÑORA DEL PILAR DE MEDINA\",\n\"E.S.E. HOSPITAL NUESTRA SEÑORA DEL ROSARIO SUESCA\",\n\"E.S.E. HOSPITAL NUESTRA SEÑORA SANTA ANA\",\n\"E.S.E. HOSPITAL OSCAR EMIRO VERGARA CRUZ\",\n\"E.S.E. HOSPITAL PEDRO CLAVER AGUIRRE YEPES\",\n\"E.S.E. HOSPITAL PEDRO LEON ALVAREZ DIAZ\",\n\"E.S.E. HOSPITAL PEDRO NEL CARDONA\",\n\"E.S.E. HOSPITAL PILOTO JAMUNDI EMPRESA SOCIAL DEL ESTADO\",\n\"E.S.E. HOSPITAL PIO XII EMPRESA SOCIAL DEL ESTADO\",\n\"E.S.E. HOSPITAL PRESBÍTERO ALONSO MARIA GIRALDO\",\n\"E.S.E. HOSPITAL RAUL OREJUELA BUENO\",\n\"E.S.E. HOSPITAL REGIONAL CENTRO\",\n\"E.S.E. HOSPITAL REGIONAL DE VELEZ\",\n\"E.S.E. HOSPITAL REGIONAL OCCIDENTE- CACHIRA\",\n\"E.S.E. HOSPITAL REGIONAL SAN GIL\",\n\"E.S.E. HOSPITAL REGIONAL SURORIENTAL-CHINACOTA\",\n\"E.S.E. HOSPITAL SALAZAR VILLETA\",\n\"E.S.E. HOSPITAL SAN ANTONIO\",\n\"E.S.E. HOSPITAL SAN ANTONIO\",\n\"E.S.E. HOSPITAL SAN ANTONIO CHIA\",\n\"E.S.E. HOSPITAL SAN ANTONIO DE ANOLAIMA\",\n\"E.S.E. HOSPITAL SAN ANTONIO DE ARBELAEZ\",\n\"E.S.E. HOSPITAL SAN ANTONIO DE BARBACOAS\",\n\"E.S.E. HOSPITAL SAN ANTONIO DE BETANIA\",\n\"E.S.E. HOSPITAL SAN ANTONIO DE GUATAVITA\",\n\"E.S.E. HOSPITAL SAN ANTONIO DE MANZANARES\",\n\"E.S.E. HOSPITAL SAN ANTONIO DE TARQUI\",\n\"E.S.E. HOSPITAL SAN ANTONIO DEL TEQUENDAMA\",\n\"E.S.E. HOSPITAL SAN BERNABE EMPRESA SOCIAL DEL ESTADO\",\n\"E.S.E. HOSPITAL SAN BERNARDO\",\n\"E.S.E. HOSPITAL SAN CAMILO DE LELIS\",\n\"E.S.E. HOSPITAL SAN CARLOS\",\n\"E.S.E. HOSPITAL SAN CARLOS DE AIPE\",\n\"E.S.E. HOSPITAL SAN FELIX\",\n\"E.S.E. HOSPITAL SAN FRANCISCO\",\n\"E.S.E. HOSPITAL SAN FRANCISCO\",\n\"E.S.E. HOSPITAL SAN FRANCISCO DE ASIS\",\n\"E.S.E. HOSPITAL SAN FRANCISCO DE GACHETA\",\n\"E.S.E. HOSPITAL SAN FRANCISCO JAVIER DE ACEVEDO\",\n\"E.S.E. HOSPITAL SAN ISIDRO\",\n\"E.S.E. HOSPITAL SAN ISIDRO\",\n\"E.S.E. HOSPITAL SAN JOAQUIN\",\n\"E.S.E. HOSPITAL SAN JOSE\",\n\"E.S.E. HOSPITAL SAN JOSE\",\n\"E.S.E. HOSPITAL SAN JOSE DE AGUADAS\",\n\"E.S.E. HOSPITAL SAN JOSE DE BELALCAZAR\",\n\"E.S.E. HOSPITAL SAN JOSÉ DE CANALETE\",\n\"E.S.E. HOSPITAL SAN JOSE DE GUADUAS\",\n\"E.S.E. HOSPITAL SAN JOSE EMPRESA SOCIAL DEL ESTADO\",\n\"E.S.E. HOSPITAL SAN JUAN BAUTISTA\",\n\"E.S.E. HOSPITAL SAN JUAN DE DIOS\",\n\"E.S.E. HOSPITAL SAN JUAN DE DIOS ANTIOQUIA\",\n\"E.S.E. HOSPITAL SAN JUAN DE DIOS DE TITIRIBÍ\",\n\"E.S.E. HOSPITAL SAN LORENZO DE SUPÍA\",\n\"E.S.E. HOSPITAL SAN LUIS BELTRAN\",\n\"E.S.E. HOSPITAL SAN MARCOS\",\n\"E.S.E. HOSPITAL SAN MARTIN DE PORRES DE CHOCONTA\",\n\"E.S.E. HOSPITAL SAN NICOLAS\",\n\"E.S.E. HOSPITAL SAN NICOLAS\",\n\"E.S.E. HOSPITAL SAN PEDRO\",\n\"E.S.E. HOSPITAL SAN PIO X\",\n\"E.S.E. HOSPITAL SAN RAFAEL\",\n\"E.S.E. HOSPITAL SAN RAFAEL\",\n\"E.S.E. HOSPITAL SAN RAFAEL\",\n\"E.S.E. HOSPITAL SAN RAFAEL DE ANGOSTURA\",\n\"E.S.E. HOSPITAL SAN RAFAEL DE CAQUEZA\",\n\"E.S.E. HOSPITAL SAN RAFAEL DE EL ESPINAL EMPRESA SOCIAL DEL ESTADO\",\n\"E.S.E. HOSPITAL SAN RAFAEL DE FUSAGASUGA\",\n\"E.S.E. HOSPITAL SAN RAFAEL DE ITAGUÍ\",\n\"E.S.E. HOSPITAL SAN RAFAEL DE LETICIA\",\n\"E.S.E. HOSPITAL SAN RAFAEL DE PACHO\",\n\"E.S.E. HOSPITAL SAN RAFAEL DE SAN LUIS\",\n\"E.S.E. HOSPITAL SAN RAFAEL DE VENECIA\",\n\"E.S.E. HOSPITAL SAN RAFAEL EMPRESA SOCIAL DEL ESTADO\",\n\"E.S.E. HOSPITAL SAN ROQUE - LA UNION\",\n\"E.S.E. HOSPITAL SAN ROQUE EMPRESA SOCIAL DEL ESTADO\",\n\"E.S.E. HOSPITAL SAN SEBASTIÁN DE URABÁ\",\n\"E.S.E. HOSPITAL SAN VICENTE DE PAUL\",\n\"E.S.E. HOSPITAL SAN VICENTE DE PAUL\",\n\"E.S.E. HOSPITAL SAN VICENTE DE PAÚL\",\n\"E.S.E. HOSPITAL SAN VICENTE DE PAÚL DE CALDAS\",\n\"E.S.E. HOSPITAL SAN VICENTE DE PAUL DE FOMEQUE\",\n\"E.S.E. HOSPITAL SAN VICENTE DE PAUL DE LORICA\",\n\"E.S.E. HOSPITAL SAN VICENTE DE PAUL DE PAIPA\",\n\"E.S.E. HOSPITAL SAN VICENTE DE PAÚL DE PUEBLO RICO\",\n\"E.S.E. HOSPITAL SAN VICENTE FERRER\",\n\"E.S.E. HOSPITAL SANTA ANA\",\n\"E.S.E. HOSPITAL SANTA BARBARA DE VERGARA\",\n\"E.S.E. HOSPITAL SANTA CATALINA EMPRESA SOCIAL DEL ESTADO\",\n\"E.S.E. HOSPITAL SANTA CRUZ\",\n\"E.S.E. HOSPITAL SANTA ISABEL\",\n\"E.S.E. HOSPITAL SANTA LUCIA EMPRESA SOCIAL DEL ESTADO DE EL DOVIO VALLE\",\n\"E.S.E. HOSPITAL SANTA MARGARITA\",\n\"E.S.E. HOSPITAL SANTA MATILDE DE MADRID\",\n\"E.S.E. HOSPITAL SANTA TERESITA\",\n\"E.S.E. HOSPITAL SANTANDER EMPRESA SOCIAL DEL ESTADO\",\n\"E.S.E. HOSPITAL SANTO DOMINGO\",\n\"E.S.E. HOSPITAL SANTO DOMINGO SAVIO\",\n\"E.S.E. HOSPITAL SUSANA LOPEZ DE VALENCIA\",\n\"E.S.E. HOSPITAL TULIA DURAN DE BORRERO DE BARAYA\",\n\"E.S.E. HOSPITAL UNIVERSITARIO DEL VALLE EVARISTO GARCIA EMPRESA SOCIAL DEL ESTADO\",\n\"E.S.E. HOSPITAL UNIVERSITARIO DEPARTAMENTAL DE NARIÑO\",\n\"E.S.E. HOSPITAL UNIVERSITARIO ERASMO MEOZ\",\n\"E.S.E. HOSPITAL UNIVERSITARIO HERNANDO MONCALEANO PERDOMO DE NEIVA\",\n\"E.S.E. IPS DEL MUNICIPIO DE CARTAGO EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD CIP\",\n\"E.S.E. JUAN PABLO II DEL MUNICIPIO DE LINARES\",\n\"E.S.E. MUNICIPAL MANUEL CASTRO TOVAR DE PITALITO\",\n\"E.S.E. NUESTRA SEÑORA DE GUADALUPE\",\n\"E.S.E. NUETRA SEÑORA DE LA CANDELARIA\",\n\"E.S.E. RAFAEL TOVAR POVEDA\",\n\"E.S.E. RED DE SALUD DE LADERA EMPRESA SOCIAL DEL ESTADO HOSPITAL CAÑAVERALEJO\",\n\"E.S.E. RED DE SALUD DEL CENTRO EMPRESA SOCIAL DEL ESTADO HOSPITAL PRIMITIVO IGLESIAS\",\n\"E.S.E. RED DE SALUD DEL NORTE EMPRESA SOCIAL DEL ESTADO HOSPITAL JOAQUIN PAZ BORRERO\",\n\"E.S.E. SALUD PESCA\",\n\"E.S.E. SAN JUAN DE DIOS DE MARINILLA\",\n\"E.S.E. SAN PEDRO DE CUMBITARA\",\n\"E.S.E. SOR TERESA ADELE\",\n\"E.S.E.HOSPITAL LOCAL VILLA DEL ROSARIO\",\n\"EAT SONRISAS SAS\",\n\"ECO PERINATAL S.A.S\",\n\"ECOGRAFIAS DEL LLANO S.A.S\",\n\"ECOIMAGENES OROZCO S.A.S.\",\n\"ECONOMÍA Y MEDICINA A SU ALCANCE S.A.S / ECOMEDIS S.A.S\",\n\"ED EQUIPOS Y DISPOSITIVOS MEDICOS SAS\",\n\"EDUARDO BOLAÑOS IPS SAS\",\n\"EL CENTRO DE LOS SENTIDOS SAS\",\n\"EL COMITÉ DE REHABILITACIÓN DE ANTIOQUIA\",\n\"EL LABORATORIO CLINICO JAVERIANO E.U.\",\n\"EL PRINCIPIO DE UNA ESPERANZA\",\n\"ELECTRODIAGNOSTICO IPS LTDA\",\n\"ELECTROFISIATRIA SAS\",\n\"ELMER ARBOLEDA & CIA. S. EN C.S.\",\n\"EMERCARE IPS SAS\",\n\"EMERGENCIAS MEDICAS DOMICILIARIAS S.A.S.\",\n\"EMERGENCY AT HOME SAS\",\n\"EMERMOVIL S.A.S\",\n\"EMMANUEL INSTITUTO DE REHABILITACION Y HABILITACION INFANTIL S.AS\",\n\"EMPRENDER IPS\",\n\"EMPRESA ASOCIATIVA DE TRABAJO BEPANE I.P.S.\",\n\"EMPRESA ASOCIATIVA DE TRABAJO MEDITERAPIAS PITALITO\",\n\"EMPRESA ASOCIATIVA DE TRABAJO MULTIASISTIR\",\n\"EMPRESA COOPERATIVA DE SERVICIOS DE SALUD EMCOSALUD\",\n\"EMPRESA MULTIACTIVA DE SALUD\",\n\"EMPRESA SALUD DEL PACIFICO SAS PRESTACION DE SERVICIOS EN SALUD\",\n\"EMPRESA SOCIAL DEL ESTADO ANA SILVIA MALDONADO JIMENEZ\",\n\"EMPRESA SOCIAL DEL ESTADO BARRANCABERMEJA\",\n\"EMPRESA SOCIAL DEL ESTADO BELLO SALUD\",\n\"EMPRESA SOCIAL DEL ESTADO CAMILO TRUJILLO SILVA\",\n\"EMPRESA SOCIAL DEL ESTADO CAMU DE CHIMA\",\n\"EMPRESA SOCIAL DEL ESTADO CAMU MOÑITOS\",\n\"EMPRESA SOCIAL DEL ESTADO CAYETANO MARIA DE ROJAS\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO 2 E.S.E.\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE REHABILITACION INTEGRAL DE BOYACA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SACHICA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD LUIS PATIÑO CAMARGO DEL MUNICIPIO DE IZA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD NUESTRA SEÑORA DE GUADALUPE\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD BRICEÑO\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD CAMILO RUEDA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD CERINZA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD DE ARCABUCO\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD DE CAIMITO\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD DE COMBITA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD DE GALAPA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD DE LA UVITA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD DE PAYA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD DE POLONUEVO\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD DE RICAURTE\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD DE TOCA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD DE TOGUI\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD DE VENTAQUEMADA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD DE ZAPAYAN\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD DE ZETAQUIRA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD EDGAR ALONSO PULIDO SOLANO\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD FE Y ESPERANZA SORACA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD FIRAVITOBA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD JENESANO\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD JUAN FRANCISCO BERBEO\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD LA CANDELARIA DE LA CAPILLA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD LAS MERCEDES CALDAS\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD LUIS LANCHEROS\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD MACANAL\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD MAJAGUAL\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD MANUEL ELKIN PATARROYO\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD NUESTRA SEÑORA DE LA NATIVIDAD\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD NUESTRA SEÑORA DEL CARMEN\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD NUESTRA SEÑORA DEL ROSARIO DE CHIVATA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD NUEVO COLÓN\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD PAZ DEL RIO\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD SAN BLAS DE MORROA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD SAN FRANCISCO DE SALES\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD SAN BLAS\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD SAN JOSE\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD SAN JOSE DE PARE\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD SAN JUAN DE DIOS\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD SAN MIGUEL DEL MUNICIPIO DE SAN MIGUEL DE SEMA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD SAN PABLO DE BORBUR\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD SAN RAFAEL\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD SAN SEBASTIAN DE SOMONDOCO\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD SANTA BARBARA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD SANTA ISABEL BUENAVISTA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD SANTA LUCIA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD SANTA RITA DE CASIA TIPACOQUE\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD SANTA SOFIA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD SANTANA\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD SIACHOQUE\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD SUCRE\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DE SALUD TIMOTEO RIVEROS CUBILLOS\",\n\"EMPRESA SOCIAL DEL ESTADO CENTRO DERMATOLOGICO FEDERICO LLERAS ACOSTA\",\n\"EMPRESA SOCIAL DEL ESTADO CEPITA\",\n\"EMPRESA SOCIAL DEL ESTADO CLINICA MATERNIDAD RAFAEL CALVO\",\n\"EMPRESA SOCIAL DEL ESTADO COROMORO\",\n\"EMPRESA SOCIAL DEL ESTADO DE OCAMONTE SANTANDER\",\n\"EMPRESA SOCIAL DEL ESTADO DE PRIMER NIVEL DE ATENCION HOSPITAL ISABEL CELIS YAÑEZ\",\n\"EMPRESA SOCIAL DEL ESTADO DEL DEPARTAMENTO DEL META ESE SOLUCION SALUD\",\n\"EMPRESA SOCIAL DEL ESTADO DEL MUNICIPIO DE VILLAVICENCIO\",\n\"EMPRESA SOCIAL DEL ESTADO DEL ORDEN DEPARTAMENTAL HOSPITAL NUESTRA SEÑORA DE LAS MERCEDES DEL MUNICIPIO DE FUNZA\",\n\"EMPRESA SOCIAL DEL ESTADO E.S.E MUNICIPAL DE SOACHA JULIO CESAR PEÑALOZA\",\n\"EMPRESA SOCIAL DEL ESTADO E.S.E SALUD DORADA\",\n\"EMPRESA SOCIAL DEL ESTADO E.S.E. CENTRO DE SALUD DE TAUSA\",\n\"EMPRESA SOCIAL DEL ESTADO ESE CENTRO I\",\n\"EMPRESA SOCIAL DEL ESTADO ESE NORTE 2\",\n\"EMPRESA SOCIAL DEL ESTADO GAMEZA MUNICIPIO SALUDABLE\",\n\"EMPRESA SOCIAL DEL ESTADO GUAPI ESE\",\n\"EMPRESA SOCIAL DEL ESTADO HORACIO MUÑOZ SUESCUN\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL ANTONIO ROLDAN BETANCUR\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL ATRATO MEDIO ANTIOQUEÑO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL BAUDILIO ACERO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL BENJAMIN BARNEY GASCA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL CRISTO REY\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL DE BARANOA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL DE CAMPO DE LA CRUZ\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL DE EL TAMBO CAUCA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL DE JUAN DE ACOSTA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL DE LA VEGA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL DE MALAMBO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL DE PONEDERA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL DE REPELON\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL DE TAURAMENA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL DEL PERPETUO SOCORRO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL DEPARTAMENTAL UNIVERSITARIO DEL QUINDIO SAN JUAN DE DIOS\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL DIOGENES TRONCOSO DE PUERTO SALGAR\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL DIVINO SALVADOR DE SOPO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL EDUARDO ARREDONDO DAZA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL EL SAGRADO CORAZON\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL EL SALVADOR DE UBATE\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL EL SOCORRO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL FRANCISCO LUIS JIMENEZ MARTINEZ\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL FRANCISCO VALDERRAMA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL FRAY LUIS DE LEON\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL GUSTAVO GONZALEZ OCHOA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL INTEGRADO SAN JOAQUIN\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL ISABEL LA CATOLICA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL JORGE JULIO GUZMAN\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL JOSE CAYETANO VASQUEZ\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL JOSÉ MARÍA HERNÁNDEZ\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LA ANUNCIACION\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LA CANDELARIA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LA DIVINA MISERICORDIA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LA ESTRELLA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LA MISERICORDIA IPS\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LAS MERCEDES DE MONGUI\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LAURA PERDOMO DE GARCIA DE YAGUARA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LOCAL\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LOCAL ALEJANDRO MAESTRE SIERRA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LOCAL DE ALGARROBO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LOCAL DE BOLIVAR\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LOCAL DE CUBARRAL\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LOCAL DE EL RETEN\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LOCAL DE REMOLINO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LOCAL DE SAN CARLOS DE GUAROA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LOCAL DE SAN MARTIN DE LOS LLANOS\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LOCAL DE ZONA BANANERA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LOCAL SAN JOSE\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LOCAL TALAIGUA NUEVO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL LOCAL TURBANA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL MARIA ANTONIA TORO DE ELEJALDE\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL MARIA AUXILIADORA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL MATERNO INFANTIL CIUDADELA METROPOLITANA DE SOLEDAD\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL MENTAL DE FILANDIA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL MUNICIPAL DE ALGECIRAS\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL MUNICIPAL DE EL DORADO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL NAZARETH QUINCHIA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL NIÑO JESUS DE BARRANQUILLA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL NUESTRA SEÑORA DE LAS MERCEDES DE SALADOBLANCO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL NUESTRA SEÑORA DE LOS REMEDIOS\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL NUESTRA SEÑORA DEL CARMEN\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL NUESTRA SEÑORA DEL CARMEN\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL NUESTRA SEÑORA DEL PERPETUO SOCORRO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL NUESTRA SEÑORA DEL ROSARIO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL OCTAVIO OLIVARES\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL PIO X DEL MUNICIPIO DE LA TEBAIDA QUINDIO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL PSIQUIÁTRICO SAN CAMILO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL RAFAEL PABA MANJARREZ\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL REGIONAL DE CHIQUINQUIRA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL REGIONAL DE DUITAMA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL REGIONAL DE GARCIA ROVIRA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL REGIONAL DEL MAGDALENA MEDIO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL REGIONAL NOROCCIDENTAL\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL RUBEN CRUZ VELEZ\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAGRADO CORAZON DE JESUS DE SOCHA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN ANTONIO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN ANTONIO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN ANTONIO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN ANTONIO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN ANTONIO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN ANTONIO CERRITO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN ANTONIO DE SOATA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN BARTOLOMÉ\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN FRANCISCO DE ASIS\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN FRANCISCO DE ASIS\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN FRANCISCO DE VIOTA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN JOSE\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN JOSE\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN JOSE\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN JUAN DE DIOS\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN JUAN DE DIOS\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN JUAN DE DIOS\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN JUAN DE DIOS DE ABEJORRAL\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN JUAN DE DIOS DE FLORIDABLANCA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN JUAN DE DIOS YARUMAL\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN JULIAN\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN LORENZO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN LUCAS\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN MARTIN\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN MARTIN DE PORRES\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN PABLO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN PEDRO Y SAN PABLO LA VIRGINIA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN RAFAEL\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN RAFAEL\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN RAFAEL\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN RAFAEL\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN RAFAEL\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN RAFAEL DE YOLOMBO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN RAFAEL NIVEL II\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN ROQUE\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN ROQUE\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN SEBASTIAN SURATA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN VICENTE DE PAUL\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN VICENTE DE PAUL\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN VICENTE DE PAUL APIA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN VICENTE DE PAUL FILANDIA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN VICENTE DE PAUL SANTA ROSA DE CABAL\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SAN VICENTE DE PAUL SANTUARIO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SANDIEGO DE CERETE\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SANTA ANA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SANTA ANA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SANTA ANA NIVEL I DEL MUNICIPIO DE FALAN\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SANTA LUCIA DE CAJAMARCA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SANTA MARTA DE SAMACA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SANTA RITA DE CASSIA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SANTA ROSA DE TENJO\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SANTAMARIA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL SANTO TOMAS\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL TOBIAS PUERTA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL UNIVERSITARIO DE LA SAMARITANA\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL UNIVERSITARIO DE SANTANDER\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL UNIVERSITARIO DEL CARIBE\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL UNIVERSITARIO JULIO MENDEZ BARRENECHE\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL UNIVERSITARIO SAN JORGE\",\n\"EMPRESA SOCIAL DEL ESTADO HOSPITAL UNIVERSITARIO SAN RAFAEL DE TUNJA\",\n\"EMPRESA SOCIAL DEL ESTADO IMSALUD\",\n\"EMPRESA SOCIAL DEL ESTADO INES OCHOA PEREZ DE TIBASOSA\",\n\"EMPRESA SOCIAL DEL ESTADO INSTITUTO DE SALUD DE BUCARAMANGA\",\n\"EMPRESA SOCIAL DEL ESTADO IVAN RESTREPO GOMEZ\",\n\"EMPRESA SOCIAL DEL ESTADO JAIME ALVARADO Y CASTILLA\",\n\"EMPRESA SOCIAL DEL ESTADO JORGE GONZÁLEZ OLMOS\",\n\"EMPRESA SOCIAL DEL ESTADO LAGOSALUD CUITIVA\",\n\"EMPRESA SOCIAL DEL ESTADO MARCO A. CARDONA\",\n\"EMPRESA SOCIAL DEL ESTADO MARIA AUXILIADORA DE GARZON\",\n\"EMPRESA SOCIAL DEL ESTADO MERCEDES TELLEZ DE PRADILLA (E.S.E.) HOSPITAL VIANI PRIMER NIVEL DE ATENCION\",\n\"EMPRESA SOCIAL DEL ESTADO METROSALUD\",\n\"EMPRESA SOCIAL DEL ESTADO NORTE 1 E.S.E.\",\n\"EMPRESA SOCIAL DEL ESTADO NORTE 3 - ESE\",\n\"EMPRESA SOCIAL DEL ESTADO NUESTRA SEÑORA DEL ROSARIO\",\n\"EMPRESA SOCIAL DEL ESTADO NUESTRA SEÑORA DEL ROSARIO DE PISBA\",\n\"EMPRESA SOCIAL DEL ESTADO OCCIDENTE E.S.E\",\n\"EMPRESA SOCIAL DEL ESTADO PASTO SALUD E.S.E.\",\n\"EMPRESA SOCIAL DEL ESTADO POPAYAN E.S.E.\",\n\"EMPRESA SOCIAL DEL ESTADO PUESTO DE SALUD CORRALES\",\n\"EMPRESA SOCIAL DEL ESTADO PUESTO DE SALUD DE CIENEGA\",\n\"EMPRESA SOCIAL DEL ESTADO PUESTO DE SALUD OICATÁ\",\n\"EMPRESA SOCIAL DEL ESTADO PUESTO DE SALUD SAN MIGUEL DE TUTA\",\n\"EMPRESA SOCIAL DEL ESTADO RAFAEL SALGADO DE MARIPI\",\n\"EMPRESA SOCIAL DEL ESTADO RED DE SERVICIOS DE SALUD DE PRIMER NIVEL\",\n\"EMPRESA SOCIAL DEL ESTADO RIO GRANDE DE LA MAGDALENA DEL MUNICIPIO DE MAGANGUE\",\n\"EMPRESA SOCIAL DEL ESTADO SALUD DEL TUNDAMA\",\n\"EMPRESA SOCIAL DEL ESTADO SALUD PAZ DE RIO\",\n\"EMPRESA SOCIAL DEL ESTADO SALUD PEREIRA\",\n\"EMPRESA SOCIAL DEL ESTADO SALUD YOPAL\",\n\"EMPRESA SOCIAL DEL ESTADO SAN ANTONIO RIONEGRO SANTANDER\",\n\"EMPRESA SOCIAL DEL ESTADO SAN JOSE DE FLORIAN\",\n\"EMPRESA SOCIAL DEL ESTADO SAN JUAN DE DIOS\",\n\"EMPRESA SOCIAL DEL ESTADO SAN JUAN DE BETULIA\",\n\"EMPRESA SOCIAL DEL ESTADO SAN SEBASTIAN DE LA PLATA HUILA\",\n\"EMPRESA SOCIAL DEL ESTADO SANTIAGO APOSTOL E.S.E.\",\n\"EMPRESA SOCIAL DEL ESTADO SANTIAGO DE TUNJA\",\n\"EMPRESA SOCIAL DEL ESTADO SEÑOR DE LA MISERICORDIA DE MACARAVITA\",\n\"EMPRESA SOCIAL DEL ESTADO SURORIENTE E.S.E\",\n\"EMPRESA SOCIAL DEL ESTADO TIERRADENTRO ESE\",\n\"EMPRESA SOCIAL DEL ESTADO UNIDAD DE SALUD SALUD NOBSA\",\n\"EMPRESA SOCIAL DEL ESTADO UNIDAD LOCAL DE SUAN\",\n\"EMPRESA SOCIAL DEL ESTADO VIDASINU\",\n\"EMPRESA SOCIAL DEL ESTADO. CENTRO DE SALUD DE MOTAVITA\",\n\"EMPRESA SOCIAL ESTADO CENTRO DE SALUD MANUEL ALBERTO FONSECA SANDOVAL DE SOTAQUIRA\",\n\"EMPRESA SOCIAL PARA EL DESARROLLO DE LA PROVINCIA SOL Y VIDA S.A\",\n\"EMPRESAS MEDICAS DEL HUILA S.A.S\",\n\"EMPTRESA SOCIAL DEL ESTADO CENTRO DE SALUD SIMON BOLIVAR DE TUTAZA\",\n\"EMRESA SOCIAL DEL ESTADO HOSPITAL LOCAL SANTA BÁRBARA DE PINTO\",\n\"ENDHO COLOMBIA S.A.S\",\n\"ENDO DIGESTIVOS SAS\",\n\"ENDOCIENCIA SAS\",\n\"ENDOCIRUJANOS SAS\",\n\"ENDOCRINE AND METABOLIC DISEASES EXCELLENCE CENTER - EMDEC S.A.S\",\n\"ENDOCRINORTE S.A.S\",\n\"ENDODENT S.A.S\",\n\"ENDODIAGNOSTICO S.A.S\",\n\"ENDODONTIC DENTAL CLINICA S. A. S.\",\n\"ENDOSALUD DE OCCIDENTE S.A.\",\n\"ENDOSCOPIA DIGESTIVA S.A.S.\",\n\"ENDOTEK LTDA\",\n\"ENDOVIDEO 2000 LTDA\",\n\"ENFERMEROS EN CASA 24 HORAS\",\n\"ENLACE_LAB LTDA\", \n\"ENLACE-DOS S.A.S\",\n\"ENTIDAD MEDICO INTEGRAL PARA LA SALUD SAS\",\n\"EREJEERIA WAYUU IPSI\",\n\"ERICH HELLER & CIA S EN C\",\n\"ERMEDICALLS S.A.S\",\n\"ESCANOGRAFÍA NEUROLÓGICA S.A\",\n\"ESCANOGRAFIA SINCELEJO SAS\",\n\"ESE ALEJANDRO PROSPERO REVEREND\",\n\"ESE ANDRES CALA PIMENTEL\",\n\"ESE BLANCA ALICIA HERNANDEZ\",\n\"ESE CAMU BUENAVISTA\",\n\"ESE CAMU DE MOMIL\",\n\"ESE CAMU DE SAN PELAYO\",\n\"ESE CAMU DEL PRADO\",\n\"ESE CAMU SAN RAFAEL\",\n\"ESE CAMU SANTA TERESITA\",\n\"ESE CENTRO DE SALUD NUESTRA SEÑORA DE BELEN\",\n\"ESE CENTRO DE SALUD BETEITIVA\",\n\"ESE CENTRO DE SALUD CARTAGENA DE INDIAS COROZAL\",\n\"ESE CENTRO DE SALUD CON CAMA\",\n\"ESE CENTRO DE SALUD CON CAMA MANUEL H ZABALETA G.\",\n\"ESE CENTRO DE SALUD CON CAMAS CORDOBA BOLIVAR\",\n\"ESE CENTRO DE SALUD CON CAMAS DE ARROYOHONDO\",\n\"ESE CENTRO DE SALUD CON CAMAS DE CANTAGALLO\",\n\"ESE CENTRO DE SALUD CON CAMAS DE MONTECRISTO\",\n\"ESE CENTRO DE SALUD CON CAMAS DE PALMAR DE VARELA\",\n\"ESE CENTRO DE SALUD CON CAMAS EL PEÑON BOLIVAR\",\n\"ESE CENTRO DE SALUD DE CHITARAQUE\",\n\"ESE CENTRO DE SALUD DE FLORESTA\",\n\"ESE CENTRO DE SALUD DE GUARANDA\",\n\"ESE CENTRO DE SALUD DE LOS PALMITOS\",\n\"ESE CENTRO DE SALUD DE OVEJAS\",\n\"ESE CENTRO DE SALUD DE TOTA\",\n\"ESE CENTRO DE SALUD DE TUBARÁ\",\n\"ESE CENTRO DE SALUD JAIME DIAZ PEREZ\",\n\"ESE CENTRO DE SALUD JUAN SOLERI\",\n\"ESE CENTRO DE SALUD MIGUEL BARRETO LOPEZ DE TELLO\",\n\"ESE CENTRO DE SALUD NUESTRA SEÑORA DE LA ESPERANZA MOLAGAVITA\",\n\"ESE CENTRO DE SALUD NUESTRA SEÑORA DE LA PAZ\",\n\"ESE CENTRO DE SALUD PUERTO PARRA\",\n\"ESE CENTRO DE SALUD SAN ANTONIO DE LA PARED DE RAQUIRA\",\n\"ESE CENTRO DE SALUD SAN ANTONIO DE PALMITO\",\n\"ESE CENTRO DE SALUD SAN ANTONIO DE SOCOTÁ\",\n\"ESE CENTRO DE SALUD SAN BERNARDO\",\n\"ESE CENTRO DE SALUD SAN CAYETANO\",\n\"ESE CENTRO DE SALUD SAN JOSE\",\n\"ESE CENTRO DE SALUD SAN JOSE DE LEIVA\",\n\"ESE CENTRO DE SALUD SAN JOSE I NIVEL SAN MARCOS\",\n\"ESE CENTRO DE SALUD SAN JUAN BOSCO\",\n\"ESE CENTRO DE SALUD SAN MIGUEL\",\n\"ESE CENTRO DE SALUD SAN PEDRO DE CABRERA\",\n\"ESE CENTRO DE SALUD SAN PEDRO SUCRE\",\n\"ESE CENTRO DE SALUD SAN RAFAEL\",\n\"ESE CENTRO DE SALUD SAN VICENTE FERRER\",\n\"ESE CENTRO DE SALUD SANTA BARBARA\",\n\"ESE CENTRO DE SALUD SANTA BARBARA DE TUNUNGUA\",\n\"ESE CENTRO DE SALUD USIACURI JOSE MARIA FEREZ FARAH\",\n\"ESE CENTRO MATERNO INFANTIL DE SABANALARGA\",\n\"ESE CLINICA GUANE Y SU RED INTEGRAL DE SALUD\",\n\"ESE DE PRIMER NIVEL DE EL MUNICIPIO DE EL ROSARIO\",\n\"ESE DEPARTAMENTAL HOSPITAL SAN ANTONIO DE VILLAMARIA\",\n\"ESE DEPARTAMENTAL HOSPITAL SAN JOSE DE MARULANDA\",\n\"ESE DIVINO NIÑO JESUS\",\n\"ESE GUSTAVO ROMERO HERNADEZ DE TIBANA\",\n\"ESE HOSPITAL 7 DE AGOSTO\",\n\"ESE HOSPITAL CAICEDO Y FLOREZ\",\n\"ESE HOSPITAL CAMILO VILLAZON PUMAREJO\",\n\"ESE HOSPITAL CARISMA\",\n\"ESE HOSPITAL CESAR URIBE PIEDRAHITA\",\n\"ESE HOSPITAL CLARITA SANTOS DE SANDONA\",\n\"ESE HOSPITAL CUMBAL\",\n\"ESE HOSPITAL DE CANDELARIA\",\n\"ESE HOSPITAL DE CERRO DE SAN ANTONIO\",\n\"ESE HOSPITAL DE ENCISO\",\n\"ESE HOSPITAL DE LA CEJA\",\n\"ESE HOSPITAL DE NAZARETH\",\n\"ESE HOSPITAL DE PUERTO COLOMBIA\",\n\"ESE HOSPITAL DE SANTA LUCIA\",\n\"ESE HOSPITAL DE SANTO TOMAS\",\n\"ESE HOSPITAL DEPARTAMENTAL DE SABANALARGA\",\n\"ESE HOSPITAL DEPARTAMENTAL SAN ANTONIO DE MARMATO\",\n\"ESE HOSPITAL DEPARTAMENTAL SAN JOSE DE NEIRA\",\n\"ESE HOSPITAL DEPARTAMENTAL SAN JOSE DE SAN JOSE\",\n\"ESE HOSPITAL DEPARTAMENTAL SAN SIMON DE VICTORIA\",\n\"ESE HOSPITAL DEPARTAMENTAL SAN VICENTE DE PAUL\",\n\"ESE HOSPITAL DEPARTAMENTAL UNIVERSITARIO SANTA SOFIA DE CALDAS\",\n\"ESE HOSPITAL DONALDO SAUL MORON MANJARREZ\",\n\"ESE HOSPITAL EDUARDO SANTOS DE ISTMINA\",\n\"ESE HOSPITAL FRANCISCO CANOSSA\",\n\"ESE HOSPITAL FRONTERIZO LA DORADA\",\n\"ESE HOSPITAL GABRIEL PELAEZ MONTOYA\",\n\"ESE HOSPITAL HABACUC CALDERON DE CARMEN DE CARUPA\",\n\"ESE HOSPITAL HATILLO DE LOBA\",\n\"ESE HOSPITAL HÉCTOR ABAD GÓMEZ\",\n\"ESE HOSPITAL HELI MORENO BLANCO\",\n\"ESE HOSPITAL INTEGRADO SAN BERNARDO\",\n\"ESE HOSPITAL INTEGRADO SAN ROQUE\",\n\"ESE HOSPITAL INTEGRADO SAN ROQUE DE CURITI\",\n\"ESE HOSPITAL JORGE ISAAC RINCON TORRES\",\n\"ESE HOSPITAL JOSE ANTONIO SOCARRAS\",\n\"ESE HOSPITAL JOSE MARIA CORDOBA\",\n\"ESE HOSPITAL JUAN LUIS LONDOÑO\",\n\"ESE HOSPITAL LA MISERICORDIA\",\n\"ESE HOSPITAL LOCAL CARTAGENA DE INDIAS\",\n\"ESE HOSPITAL LOCAL CURUMANI CRISTIAN MORENO PALLARES\",\n\"ESE HOSPITAL LOCAL DE AGUACHICA\",\n\"ESE HOSPITAL LOCAL DE CALAMAR\",\n\"ESE HOSPITAL LOCAL DE CICUCO\",\n\"ESE HOSPITAL LOCAL DE CONCORDIA\",\n\"ESE HOSPITAL LOCAL DE LURUACO\",\n\"ESE HOSPITAL LOCAL DE NUEVA GRANADA\",\n\"ESE HOSPITAL LOCAL DE PUERTO LIBERTADOR EL DIVINO NIÑO\",\n\"ESE HOSPITAL LOCAL DE RIO DE ORO\",\n\"ESE HOSPITAL LOCAL DE SALAMINA\",\n\"ESE HOSPITAL LOCAL DE SAN ONOFRE\",\n\"ESE HOSPITAL LOCAL DE SANTA CATALINA DE ALEJANDRIA\",\n\"ESE HOSPITAL LOCAL ISMAEL ROLDAN VALENCIA\",\n\"ESE HOSPITAL LOCAL LA CANDELARIA\",\n\"ESE HOSPITAL LOCAL LAZARO ALFONSO HERNANDEZ LARA\",\n\"ESE HOSPITAL LOCAL MUNICIPAL\",\n\"ESE HOSPITAL LOCAL NUESTRA SEÑORA DEL SOCORRO DE SINCE\",\n\"ESE HOSPITAL LOCAL PIJIÑO DEL CARMEN\",\n\"ESE HOSPITAL LOCAL SABANAS DE SAN ANGEL\",\n\"ESE HOSPITAL LOCAL SAN JOSE DEACHI\",\n\"ESE HOSPITAL LOCAL SAN MARTIN DE LOBA\",\n\"ESE HOSPITAL LOCAL SAN ZENON\",\n\"ESE HOSPITAL LOCAL SANFERNANDO BOLIVAR\",\n\"ESE HOSPITAL LOCAL SANTA ROSA DE LIMA\",\n\"ESE HOSPITAL LOCAL TURBACO\",\n\"ESE HOSPITAL LORENCITA VILLEGAS DE SANTOS\",\n\"ESE HOSPITAL LUIS ANTONIO MOJICA\",\n\"ESE HOSPITAL LUISA SANTIAGA MARQUEZ IGUARAN\",\n\"ESE HOSPITAL MALVINAS HECTOR OROZCO OROZCO\",\n\"ESE HOSPITAL MANUEL ELKIN PATARROYO\",\n\"ESE HOSPITAL MANUEL URIBE ANGEL\",\n\"ESE HOSPITAL MARIA ANGELINES DE II NIVEL DE ATENCION\",\n\"ESE HOSPITAL MARINO ZULETA RAMIREZ\",\n\"ESE HOSPITAL MUNICIPAL SAN ANTONIO DE EL AGRADO\",\n\"ESE HOSPITAL NUESTRA SEÑORA DE FATIMA DE SUAZA\",\n\"ESE HOSPITAL NUESTRA SEÑORA DE GUADALUPE\",\n\"ESE HOSPITAL NUESTRA SEÑORA DE LOS REMEDIOS\",\n\"ESE HOSPITAL NUESTRA SEÑORA DEL CARMEN\",\n\"ESE HOSPITAL NUESTRA SEÑORA DEL CARMEN\",\n\"ESE HOSPITAL NUESTRA SEÑORA DEL CARMEN DE EL COLEGIO\",\n\"ESE HOSPITAL NUESTRA SEÑORA DEL CARMEN DE TABIO\",\n\"ESE HOSPITAL NUESTRA SEÑORA DEL PERPETUO SOCORRO\",\n\"ESE HOSPITAL NUESTRA SEÑORA DEL PILAR\",\n\"ESE HOSPITAL OLAYA HERRERA\",\n\"ESE HOSPITAL PADRE CLEMENTE GIRALDO\",\n\"ESE HOSPITAL PBRO LUIS FELIPE ARBELAEZ\",\n\"ESE HOSPITAL PÍO XII\",\n\"ESE HOSPITAL PRESBITERO EMIGDIO PALACIO\",\n\"ESE HOSPITAL PROFESOR JORGE CAVELIER -I- NIVEL DE ATENCION CAJICA\",\n\"ESE HOSPITAL REGIONAL DE AGUACHICA JOSE DAVID PADILLA VILLAFAÑE\",\n\"ESE HOSPITAL REGIONAL MANUELA BELTRAN\",\n\"ESE HOSPITAL REGIONAL NORTE\",\n\"ESE HOSPITAL REGIONNAL II NIVEL DE SAN MARCOS\",\n\"ESE HOSPITAL SAGRADO CORAZON DE JESUS\",\n\"ESE HOSPITAL SAGRADO CORAZON DE JESUS\",\n\"ESE HOSPITAL SAGRADO CORAZON DE JESUS DE QUIMBAYA\",\n\"ESE HOSPITAL SAN AGUSTIN DE FONSECA\",\n\"ESE HOSPITAL SAN ANTONIO\",\n\"ESE HOSPITAL SAN ANTONIO\",\n\"ESE HOSPITAL SAN ANTONIO DE CALIFORNIA\",\n\"ESE HOSPITAL SAN BARTOLOME DE CAPITANEJO\",\n\"ESE HOSPITAL SAN CAMILO\",\n\"ESE HOSPITAL SAN CRISTOBAL DE CIENAGA\",\n\"ESE HOSPITAL SAN FERNANDO\",\n\"ESE HOSPITAL SAN FRANCISCO\",\n\"ESE HOSPITAL SAN FRANCISCO DE VILLA DE LEYVA\",\n\"ESE HOSPITAL SAN JERÓNIMO DE MONTERÍA\",\n\"ESE HOSPITAL SAN JORGE\",\n\"ESE HOSPITAL SAN JOSE\",\n\"ESE HOSPITAL SAN JOSE\",\n\"ESE HOSPITAL SAN JOSE\",\n\"ESE HOSPITAL SAN JOSE DE CONDOTO\",\n\"ESE HOSPITAL SAN JOSE DE GUACHETA\",\n\"ESE HOSPITAL SAN JOSE DE ISNOS\",\n\"ESE HOSPITAL SAN JOSE DE MAICAO\",\n\"ESE HOSPITAL SAN JOSE DE SAMANA\",\n\"ESE HOSPITAL SAN JOSE DE TADO\",\n\"ESE HOSPITAL SAN JOSE DE TIERRALTA\",\n\"ESE HOSPITAL SAN JOSE DEL COCUY\",\n\"ESE HOSPITAL SAN JOSE DEL GUAVIARE\",\n\"ESE HOSPITAL SAN JOSE MARSELLA\",\n\"ESE HOSPITAL SAN JUAN CRISOSTOMO\",\n\"ESE HOSPITAL SAN JUAN DE DIOS\",\n\"ESE HOSPITAL SAN JUAN DE DIOS\",\n\"ESE HOSPITAL SAN JUAN DE DIOS\",\n\"ESE HOSPITAL SAN JUAN DE DIOS DE ANORI\",\n\"ESE HOSPITAL SAN JUAN DE DIOS DE BARICHARA\",\n\"ESE HOSPITAL SAN JUAN DE DIOS DE BETULIA\",\n\"ESE HOSPITAL SAN JUAN DE DIOS DE COCORNA\",\n\"ESE HOSPITAL SAN JUAN DE DIOS DE LEBRIJA\",\n\"ESE HOSPITAL SAN JUAN DE DIOS DE PAMPLONA\",\n\"ESE HOSPITAL SAN JUAN DE DIOS DEL MUNICIPIO DE GALAN SANTANDER\",\n\"ESE HOSPITAL SAN JUAN DE PUERTO RICO\",\n\"ESE HOSPITAL SAN JUAN DE SAHAGUN\",\n\"ESE HOSPITAL SAN JUAN DEL SUROESTE\",\n\"ESE HOSPITAL SAN MARTIN\",\n\"ESE HOSPITAL SAN MIGUEL\",\n\"ESE HOSPITAL SAN NICOLAS DE TOLENTINO\",\n\"ESE HOSPITAL SAN PEDRO CLAVER DE MOGOTES SANTANDER.\",\n\"ESE HOSPITAL SAN PEDRO DE EL PIÑON\",\n\"ESE HOSPITAL SAN RAFAEL\",\n\"ESE HOSPITAL SAN RAFAEL\",\n\"ESE HOSPITAL SAN RAFAEL DE ALBANIA\",\n\"ESE HOSPITAL SAN RAFAEL DE CHINU\",\n\"ESE HOSPITAL SAN RAFAEL DE SANTO DOMINGO\",\n\"ESE HOSPITAL SAN ROQUE DE CHIMA\",\n\"ESE HOSPITAL SAN SEBASTIAN\",\n\"ESE HOSPITAL SAN VICENTE DE PAUL\",\n\"ESE HOSPITAL SAN VICENTE DE PAUL\",\n\"ESE HOSPITAL SAN VICENTE DE PAUL\",\n\"ESE HOSPITAL SAN VICENTE DE PAUL\",\n\"ESE HOSPITAL SAN VICENTE DE PAUL DE NEMOCON\",\n\"ESE HOSPITAL SAN VICENTE DE PAUL.\",\n\"ESE HOSPITAL SAN VICENTE DE RAMIRIQUI\",\n\"ESE HOSPITAL SANTA ANA\",\n\"ESE HOSPITAL SANTA ISABEL\",\n\"ESE HOSPITAL SANTA MARGARITA\",\n\"ESE HOSPITAL SANTA MÓNICA\",\n\"ESE HOSPITAL SANTA TERESA DE JESUS DE AVILA\",\n\"ESE HOSPITAL SANTIAGO DE TOLU\",\n\"ESE HOSPITAL TAMALAMEQUE\",\n\"ESE HOSPITAL VENANCIO DIAZ DIAZ\",\n\"ESE HOSPITALSAN VICENTE DE PAUL\",\n\"ESE HSOPITAL NIVEL I PUERTO RICO\",\n\"ESE INSTITUTO DEPARTAMENTAL DE REHABILITACION Y EDUCACION ESPECIAL DEL CESAR IDREEC\",\n\"ESE JUAN RAMON NUÑEZ PALACIOS\",\n\"ESE MORENO Y CLAVIJO\",\n\"ESE MUNICIPAL DAVID MOLINA MUÑOZ\",\n\"ESE NUESTRA SEÑORA DE LAS NIEVES\",\n\"ESE NUESTRA SEÑORA DEL CARMEN\",\n\"ESE PRIMER NIVEL GRANADA SALUD\",\n\"ESE SALUD AQUITANIA\",\n\"ESE SAN ANDRES APOSTOL\",\n\"ESE SAN ANTONIO DE PADUA DEL MUNICIPIO DE PINCHOTE\",\n\"ESE SAN BENITO\",\n\"ESE SAN CAYETANO DE GUAPOTA\",\n\"ESE SAN JOSE DE GUAVATA\",\n\"ESE SAN JUDAS TADEO DE TOPAGA\",\n\"ESE SANTA ROSA DE LIMA DE PAICOL\",\n\"ESE SUR OCCIDENTE\",\n\"ESE. HOSPITAL LUIS CARLOS GALAN SARMIENTO DE CHARALA\",\n\"ESE. SAN ISIDRO DEL MUNICIPIO DE TONA\",\n\"ESPECIALIDADES MEDICAS METROPOLITANAS S.A.S.\",\n\"ESPECIALISTAS ASOCIADOS S.A.\",\n\"ESPECIALISTAS EN ENDOCRINOLOGÍA Y METABOLISMO OSEO SAS ENDOMET SAS\",\n\"ESPECIALISTAS MÉDICOS ASOCIADOS DE ANTIOQUIA S.A.S INSTITUCIÓN PRESTADORA DE SERVICIOS DE SALUD SOCIEDAD POR ACCIONES SIMPLIFICADA\",\n\"ESPERANZA Y SALUD S.A.S\",\n\"ESTÉTICA ORAL DEL LLANO SAS.\",\n\"ESTIMA S.A.S IPS\",\n\"ESTIMULOS I.P.S S.A.S\",\n\"ESTRIOS SAS\",\n\"ESTUDIOS E INVERSIONES MEDICAS S A ESIMED S A\",\n\"ESTUDIOS ENDOSCOPICOS S.A.S.\",\n\"ESTUDIOS OFTALMOLOGICOS SAS\",\n\"ETICOS SERRANO GOMEZ LTDA\",\n\"EUREKA CLUB DE APRENDIZAJE S.A.S\",\n\"EUROCIENCIA COLOMBIA SAS\",\n\"EUSALUD S.A\",\n\"EVALUAMOS IPS LTDA\",\n\"EVE DISTRIBUCIONES S A\",\n\"EXEL MEDICAL S.A.S\",\n\"EXILASER S.A\",\n\"EXPORT HEALTH S.A.S\",\n\"EZEQ - SALUD IPSI\",\n\"FABILU LTDA\",\n\"FABISALUD IPS SAS\",\n\"FACEL LTDA\",\n\"FAMI SALUD IPS LTDA\",\n\"FAMILIAS CON FUTURO IPS S.A.S\",\n\"FAMILY HOMECARE S.A.S\",\n\"FAMILY MEDICAL CARE S.A.S\",\n\"FAMMM SAS\",\n\"FARMA RED SAS\",\n\"FARMACIA INSTITUCIONAL SAS\",\n\"FARMAMEDIQ ESPECIALIZADA SAS\",\n\"FARMART LTDA. IPS\",\n\"FARMASALUD IPS SINCELEJO\",\n\"FARODELCARMEN LTDA\",\n\"FAS LTDA\",\n\"FASALUD IPS S.A.S.\",\n\"FASES IPS S.AS\",\n\"FATIMA IPS SAS\",\n\"FB MULTISERVICIOS SAS\",\n\"FENACORSOL\",\n\"FENIX VIDA S.A.S.\",\n\"FESALUD DEL CESAR S.A.S\",\n\"FISIATRAS PARA LA REHABILITACION DEL ADULTO Y LA HABILITACION INFANTIL S.A.S\",\n\"FISIO LIFE IPS SAS\",\n\"FISIOCENTERGP SAS\",\n\"FISIOHOMESAS\",\n\"FISIOMED INTEGRAL S.A.S\",\n\"FISIOMERA CENTRO INTEGRAL DE TERAPIAS E.U.\",\n\"FISIOPELVICA\",\n\"FISIOPRAXIS S.A.S IPS\",\n\"FISIOREHABILITAR TERAPIAS INTEGRALES SAS\",\n\"FISIOSALUD DEL CAUCA IPS S.A.S\",\n\"FISIOSALUD IPS S.A.S\",\n\"FISIOSALUD MP CENTRO INTEGRAL DE TERAPIAS S.A.S.\",\n\"FISITER LTDA. CENTRO DE REHABILITACION Y ACONDICIONAMIENTO FISICO\",\n\"FISOSALUD (FISIOTERAPIA SALUD OCUPACIONAL) S.A.S. SIGLA FISOSALUD S.A.S\",\n\"FIXMEDICAL SAS\",\n\"FLEXA SALUD S.A.S.\",\n\"FM INTEGRALES IPS SAS\",\n\"FONOCENTER SAS\",\n\"FONOCLINIC IPS S.A.S\",\n\"FONSALUD CARIBE CENTRO MEDICO DE DIAGNOSTICO SAS\",\n\"FOQUS IPS SAS\",\n\"FORCASALUD IPS S.A.S\",\n\"FORJA EMPRESAS SAS\",\n\"FORPRESALUD IPS SAS\",\n\"FOTOTERAPIA BOJANINI Y LOPEZ SAS\",\n\"FRACTURAS Y FRACTURAS S.A.S.\",\n\"FRC UNIDAD AMBULATORIA S.A.S\",\n\"FRESENIUS MEDICAL CARE COLOMBIA S.A.\",\n\"FUNCOVULC IPS\",\n\"FUNDACION ABOOD SHAIO\",\n\"FUNDACION ADANIES DIAZ BRITO\",\n\"FUNDACION ADRIANA VILLALBA IPS\",\n\"FUNDACIÓN AGUA BENDITA\",\n\"FUNDACION ALEJANDRO LONDOÑO\",\n\"FUNDACION ALZHEIMER\",\n\"FUNDACION AMAR\",\n\"FUNDACION AMIGA DEL PACIENTE\",\n\"FUNDACION AMIGOS CORAZON DE JESUS\",\n\"FUNDACION AMIGOS DE LA SALUD\",\n\"FUNDACION AMOR LUZ Y ESPERANZA\",\n\"FUNDACION AMPARO SAN JOSE\",\n\"FUNDACION ANAS AKUAIPA\",\n\"FUNDACIÓN ANDECOL\",\n\"FUNDACION ANTORCHA\",\n\"FUNDACIÓN APORTA TU GRANITO IPS\",\n\"FUNDACION ARRECIFES\",\n\"FUNDACION ARTHUR STANLEY GILLOW\",\n\"FUNDACION ATENCION NIÑOS ESPECIALES FANES IPS\",\n\"FUNDACION AVANZAR EN SALUD\",\n\"FUNDACION AVIVAR CENTRO DE REHABILITACION\",\n\"FUNDACION BET SHALOM\",\n\"FUNDACION CAMINOS IPS\",\n\"FUNDACIÓN CAMPBELL\",\n\"FUNDACION CANCEROLOGICA DEL QUINDIO\",\n\"FUNDACION CARDIO INFANTIL INSTITUTO DE CARDIOLOGIA\",\n\"FUNDACION CARDIOVASCULAR DE COLOMBIA\",\n\"FUNDACION CARDIOVASCULAR DE COLOMBIA ZONA FRANCA S.A.S\",\n\"FUNDACION CASA DEL NIÑO IPS\",\n\"FUNDACION CASA HOGAR JUAN PABLO II\",\n\"FUNDACION CENTRO COLOMBIANO DE EPILEPSIA Y ENFERMEDADES NEUROLOGICAS\",\n\"FUNDACION CENTRO COLOMBIANO DE HIPOTERAPIA\",\n\"FUNDACIÓN CENTRO DE EXCELENCIA EN ENFERMEDADES CRÓNICAS NO TRANSMISIBLES\",\n\"FUNDACION CENTRO DE OBESIDAD Y METABOLISMO COMETA\",\n\"FUNDACION CENTRO DE PSICOLOGIA CLINICA Y DE FAMILIA ANITA\",\n\"FUNDACION CENTRO DE REHABILITACION DEL NIÑO ESPECIAL CERES\",\n\"FUNDACION CENTRO DE REHABILITACION FUNCIONAL PRAXIS\",\n\"FUNDACION CENTRO DE RENACIMIENTO A LA VIDA YOLIMA\",\n\"FUNDACIÓN CENTRO DE TERAPIA INTEGRAL AMOR FUNDAMOR\",\n\"FUNDACION CENTRO INTEGRAL MERAKI\",\n\"FUNDACION CENTRO TERAPEUTICO IMPRONTA IPS\",\n\"FUNDACION CENTRO VASCULAR DE OCCIDENTE\",\n\"FUNDACION CEPYTIN\",\n\"FUNDACION CHISIA SINCELEJO\",\n\"FUNDACIÓN CLINICA DEL NORTE\",\n\"FUNDACION CLINICA DEL RIO\",\n\"FUNDACIÓN CLÍNICA FUNCIÓN FUTURO SANCTI SPIRITUS I.P.S.\",\n\"FUNDACIÓN CLINICA HOSPITAL JUAN N. CORPAS Y CENTROS ASISTENCIALES AFINES\",\n\"FUNDACION CLINICA INFANTIL CLUB NOEL\",\n\"FUNDACION CLINICA INTEGRAL SINCELEJO\",\n\"FUNDACION CLINICA LETICIA\",\n\"FUNDACION CLINICA MATERNO INFANTIL ADELA DE CHAR\",\n\"FUNDACION CLINICA MEGASALUD\",\n\"FUNDACIÓN CLÍNICA NOEL\",\n\"FUNDACION COLOMBIA NUEVA VIDA\",\n\"FUNDACION COLOMBIANA DE CANCEROLOGIA CLINICA VIDA\",\n\"FUNDACIÓN COMUNIDAD VIVA\",\n\"FUNDACION CONEXION IPS\",\n\"FUNDACIÓN CONSTRUYENDO TEJIDO SOCIAL POR LA EQUIDAD A LAS VICTIMAS POR LA VIOLENCIA Y FAMILIAS DE ESCASOS RECURSOS\",\n\"FUNDACION CRESER\",\n\"FUNDACION CUENTA CONMIGO SIEMPRE\",\n\"FUNDACION DE ESPECIALISTAS DEL EDIFICIO COOMEVA NORTE IPS\",\n\"FUNDACION DE HABILITACION Y REHABILITACION INTEGRAL DEL NIÑO ESPECIAL DE LA PROVINCIA DE OBANDO\",\n\"FUNDACION DE IMÁGENES DIAGNOSTICAS FID CARMEN CECILIA VALENCIA PEÑA\",\n\"FUNDACION DE PROFESIONALES\",\n\"FUNDACIÓN DE PROYECTO HOMBRE DE BIEN\",\n\"FUNDACION DE REHABILITACION INTEGRAL SONREIR\",\n\"FUNDACION DESARROLLO HUMANO JUAN CARLOS MARRUGO VEGA\",\n\"FUNDACION DIVERSIDAD\",\n\"FUNDACION ECOLOGICA MARFI REVERDECER\",\n\"FUNDACION ECUESTRE PARA LA REHABILITACION NEUROCOGNITIVA CAMBIANDO VIDAS\",\n\"FUNDACIÓN EL AMPARO IPS\",\n\"FUNDACION EL COTTOLENGO DEL PADRE OCAMPO\",\n\"FUNDACION EMSSANAR\",\n\"FUNDACION ENLACE SOCIAL FES\",\n\"FUNDACION ESPECIALIZADA EN DESARROLLO INFANTIL - FEDI\",\n\"FUNDACION ESTILO DE VIDA SALUDABLE ESVIDA IPS\",\n\"FUNDACION FAMILIA CANGURO\",\n\"FUNDACIÓN FEDEVIDA\",\n\"FUNDACIÒN FONDO DE DROGA PARA EL CANCER FUNCANCER\",\n\"FUNDACION FOSUNAB\",\n\"FUNDACION FUNDECO IPS S.A.S.\",\n\"FUNDACION FUNPAZ\",\n\"FUNDACIÓN GESTIÓN COLOMBIA SANA\",\n\"FUNDACION GRUPO DE APOYO\",\n\"FUNDACIÓN GRUPO DE ESTUDIO BARRANQUILLA\",\n\"FUNDACION GRUPO INTEGRA\",\n\"FUNDACION HOGAR PSICOTERAPEUTICO TUNDAMA PARA TRATAMIENTO Y REHABLITACION DE ENFERMEDADES DE LA ADICCION\",\n\"FUNDACION HOSPITAL DE LA MISERICORDIA\",\n\"FUNDACION HOSPITAL INFANTIL NAPOLEON FRANCO PAREJA\",\n\"FUNDACION HOSPITAL INFANTIL SANTA ANA\",\n\"FUNDACION HOSPITAL INFANTIL UNIVERSITARIO DE SAN JOSE\",\n\"FUNDACION HOSPITAL SAN CARLOS\",\n\"FUNDACION HOSPITAL SAN JOSE DE BUGA\",\n\"FUNDACION HOSPITAL SAN JUAN DE DIOS DE EL RETIRO\",\n\"FUNDACION HOSPITAL SAN PEDRO\",\n\"FUNDACION HOSPITAL SAN VICENTE DE PAUL RIONEGRO\",\n\"FUNDACIÓN HOSPITAL UNIVERSIDAD DEL NORTE\",\n\"FUNDACION HOSPITAL UNIVERSITARIO METROPOLITANO\",\n\"FUNDACION HOSPITALARIA IPS UNIVERSITARIA ADVENTISTA\",\n\"FUNDACION HOSPITALARIA SAN VICENTE DE PAUL\",\n\"FUNDACION HUELLAS\",\n\"FUNDACIÓN HUMANA PARA LA SALUD DE COLOMBIA - IPS HUMSALUD\",\n\"FUNDACION IDEAL PARA LA REHABILITACION INTEGRAL JULIO H CALONJE\",\n\"FUNDACION IDEAS DIA A DIA\",\n\"FUNDACIÓN INNOVAGEN\",\n\"FUNDACION INSTITUTO DE REUMATOLOGIA FERNANDO CHALEM\",\n\"FUNDACION INSTITUTO LATINOAMERICANO PARA EL DESARROLLO DE LA TECNOLOGIA EN LA SALUD ILDETECSA\",\n\"FUNDACION INSTITUTO NEUROLOGICO DE COLOMBIA\",\n\"FUNDACION INTEGRAL DE SALUD - FISA\",\n\"FUNDACION INTEGRAL DE SALUD - FUNSALUD\",\n\"FUNDACIÓN INTEGRAL PARA LA SALUD Y LA EDUCACIÓN COMUNITARIA DEL MAGISTERIO FINSEMA\",\n\"FUNDACIÓN INTEGRAR\",\n\"FUNDACION INTERNACIONAL PARA EL DESARROLLO DE LAS COMUNIDADES FIDEC\",\n\"FUNDACION IPS MEDISALUD\",\n\"FUNDACION IPS PARA EL DESARROLLO INTEGRAL DEL SER SECCIONAL CAUCA\",\n\"FUNDACION IPS UNIVERSIDAD AUTONOMA DE MANIZALES\",\n\"FUNDACION ITALOCOLOMBIANA DEL MONTE TABOR\",\n\"FUNDACIÓN LA LUZ - CENTRO NACIONAL PARA EL TRATAMIENTO DE LA DROGADICCIÓN\",\n\"FUNDACION LA MANO DE DIOS\",\n\"FUNDACION LIGA COLOMBIANA CONTRA LA EPILEPSIA CAPITULO VALLE HELENA NADER DE ZACCOUR (LICCE)\",\n\"FUNDACION LUCERITO\",\n\"FUNDACION LUGAR DE ENCUENTRO SAN FRANCISCO DE ASIS\",\n\"FUNDACIÒN LUPINES\",\n\"FUNDACION MARIA FORTALEZA\",\n\"FUNDACION MARIA REINA\",\n\"FUNDACION MEDICA CAMPBELL\",\n\"FUNDACION MEDICA ESPECIALIZADA BETHEL\",\n\"FUNDACION MEDICA MIRA TU SALUD\",\n\"FUNDACION MEDICENTER\",\n\"FUNDACION MEDICO EDUCATIVA FUMED\",\n\"FUNDACIÓN MÉDICO NORCA IPS DE MEDICINA GENERAL Y ALTERNATIVA FUNORCA IPS\",\n\"FUNDACION MEDICO PREVENTIVA PARA EL BIENESTAR SOCIAL S.A.\",\n\"FUNDACION MULTIACTIVA CASA HOGAR\",\n\"FUNDACION NEFROUROS\",\n\"FUNDACION NEUMOLOGICA COLOMBIANA\",\n\"FUNDACION NUEVOS HORIZONTES\",\n\"FUNDACION O.N.G MISION POR COLOMBIA\",\n\"FUNDACION OFTALMOLOGIA DEL CARIBE - SANTA MARTA\",\n\"FUNDACION OFTALMOLOGICA DE NARIÑO\",\n\"FUNDACION OFTALMOLOGICA DE SANTANDER - FOSCAL\",\n\"FUNDACION OFTALMOLOGICA DEL CARIBE\",\n\"FUNDACION OFTALMOLOGICA NACIONAL\",\n\"FUNDACION OFTALMOLOGICA VEJARANO\",\n\"FUNDACION OPORTUNIDAD Y VIDA\",\n\"FUNDACION ORIENTAME\",\n\"FUNDACION PANZENU\",\n\"FUNDACION PARA EL CUIDADO DEL PULMON Y EL CORAZON\",\n\"FUNDACION PARA EL DESARROLLO HUMANO INTEGRAL\",\n\"FUNDACIÓN PARA EL DESARROLLO SOCIAL FUTURO MEJOR\",\n\"FUNDACION PARA EL DESARROLLO SOCIAL EN SALUD, EDUCACION Y VIVIENDA\",\n\"FUNDACIÓN PARA EL SERVICIO INTEGRAL DE ATENCIÓN MÉDICA - FUNDACIÓN SIAM\",\n\"FUNDACIÓN PARA LA ATENCIÓN INTEGRAL DE NIÑOS Y NIÑAS CON HABILIDADES Y NECESIDADES ESPECIALES. SURCOS\",\n\"FUNDACIÓN PARA LA INVESTIGACIÓN EN DERMATOLOGÍA - FUNINDERMA\",\n\"FUNDACION PARA LA INVESTIGACION Y LA PARTICIPACION SOCIAL FUNIPAS\",\n\"FUNDACION PARA LA PROMOCION DE LA SALUD Y PREVENCION DE LA ENFERMEDAD RENAL\",\n\"FUNDACION PARA LA REHABILITACION DE ALCOHOLICOS Y ADICTOS-FUNDAR\",\n\"FUNDACION PARA LA SALUD MENTAL HAZBLEYDE OBISPO ROVIRA FUSAMEN\",\n\"FUNDACION PARA NIÑOS CON NECESIDADES ESPECIALES\",\n\"FUNDACION PARTICIPAR IPS\",\n\"FUNDACIÓN PATRULLA AEREA DEL CHOCÓ - I.P.S.\",\n\"FUNDACION PEQUEÑO CORAZON\",\n\"FUNDACION POLICLINICA CIENAGA\",\n\"FUNDACION POR UN NUEVO DESPERTAR IPS\",\n\"FUNDACION POTENCIAL HUMANO\",\n\"FUNDACIÓN PRO MAGDALENA IPS\",\n\"FUNDACION PROFINT\",\n\"FUNDACION PROPAL\",\n\"FUNDACIÓN REHABILITACIÓN INTEGRAL\",\n\"FUNDACION REHABILITACIÓN INTEGRAL ESPECIALIZADA\",\n\"FUNDACION REHABILITAMOS\",\n\"FUNDACIÓN REHABILITAR NARIÑO IPS\",\n\"FUNDACION REI PARA LA REHABILITACION INTEGRAL IPS\",\n\"FUNDACION REINA ISABEL\",\n\"FUNDACION REINTEGRAR RV\",\n\"FUNDACIÓN RENAL DE COLOMBIA\",\n\"FUNDACION SABEMOS CUIDARTE\",\n\"FUNDACION SALUD BOSQUE\",\n\"FUNDACION SALUD DE LOS ANDES\",\n\"FUNDACION SALUD INTEGRAL DE COLOMBIA IPS\",\n\"FUNDACION SALUD MENTAL DEL VALLE SEDE GALERAS\",\n\"FUNDACION SALUD SOCIAL\",\n\"FUNDACION SAN SEBASTIAN CASA AMIGA\",\n\"FUNDACION SANAR KINESIS\",\n\"FUNDACION SANEMOS\",\n\"FUNDACION SANIDAD Y MEDICINA\",\n\"FUNDACION SANTA FE DE BOGOTA\",\n\"FUNDACION SANTA MARTA POR EL NIÑO\",\n\"FUNDACIÓN SANTA SOFIA DE ASIS\",\n\"FUNDACIÓN SEMBRANDO FUTURO - SEMFU\",\n\"FUNDACION SER\",\n\"FUNDACION SERVICIOS INTEGRALES PARA LA MUJER SI MUJER\",\n\"FUNDACIÓN SIMÓN SANTANDER\",\n\"FUNDACION SISTEMAS INTEGRALES SIS\",\n\"FUNDACION SOCIAL BIOSSANAR\",\n\"FUNDACION SOCIAL DE DESARROLLO INTEGRAL SION\",\n\"FUNDACION SOCIAL MUELITAS INFANTILES\",\n\"FUNDACION SOCIAL PARA PROMOCION DE VIDA\",\n\"FUNDACION SOCIAL SOMOS CONSTRUCTORES DE VIDA COVIDA\",\n\"FUNDACIÓN SOLIDARIA DEL BAJO BAUDO IPS\",\n\"FUNDACION SOLIDARIA FUNDASOLIDARIA I.P.S.\",\n\"FUNDACION SOMA\",\n\"FUNDACIÓN SOMOS VIDA-SV\",\n\"FUNDACION SONREIR\",\n\"FUNDACION TAEMA\",\n\"FUNDACION TELETON\",\n\"FUNDACION TIEMPO DE VIDA\",\n\"FUNDACION UNIDAD CARDIODIAGNOSTICO SANTA MARIA\",\n\"FUNDACION UNIDAD DE CUIDADOS INTENSIVOS DOÑA PILAR\",\n\"FUNDACIÓN UNIDAD INTEGRAL DE TOXICOLOGÍA UNITOX\",\n\"FUNDACIÓN UNIÓN PARA EL CONTROL DEL CÁNCER - UNICÁNCER\",\n\"FUNDACIÓN UNIONVIDA FUNVIDA\",\n\"FUNDACION UNISALUD\",\n\"FUNDACION VALLE DEL LILI\",\n\"FUNDACION VER SIN FRONTERAS\",\n\"FUNDACION VIDA CON AMOR\",\n\"FUNDACION VIDA Y BUENA SALUD\",\n\"FUNDACION VOLVER A VER\",\n\"FUNDAVISION\",\n\"FUNDEC IPS\",\n\"FUNDOVIDA IPS SAS\",\n\"FUNMELLOCO IPS\",\n\"FUNNSER IPS S.A.S\",\n\"FUSION ODONTOLOGICA SAS\",\n\"FUTUMEDICA PLUS NS Nº 2\",\n\"FUTURO VISION SAS\",\n\"G.O GRUPO COMERCIAL S.A.S\",\n\"GALENA-LABORATORIO DE PATOLOGIA S.A.S\",\n\"GALENUS SALUD INTEGRAL IPS SAS\",\n\"GAMACENTER S.A.S\",\n\"GAMAGRAFIAS DEL VALLE\",\n\"GAMANUCLEAR LIMITADA\",\n\"GAMANUCLEAR LTDA\",\n\"GAR S.A.S.\",\n\"GARCIA PEREZ MEDICA Y COMPAÑIA SAS\",\n\"GASES INDUSTRIALES DE COLOMBIA S.A.\",\n\"GASTRO CENTER S.A.S\",\n\"GASTRO CENTRO Y ESPECIALIDADES S.A.S.\",\n\"GASTRO PACK SAS\",\n\"GASTROCENTRO S.A.S\",\n\"GASTRODIAGNOSTICOS I.P.S S.A.S\",\n\"GASTROENTEROLOGOS ASOCIADOS S.A.S.\",\n\"GASTROESTUDIO UNIDAD VIDEOENDOSCOPICA S.A.S.\",\n\"GASTROKIDS SAS\",\n\"GASTROLAP S.A.S.\",\n\"GASTROMAG SAS\",\n\"GASTROMEDIC S.A.S.\",\n\"GASTROMEDICALL LTDA\",\n\"GASTROPED S.A.S\",\n\"GASTROQUIRURGICA S.A.S.\",\n\"GASTRORIENTE SA\",\n\"GASTROSALUD LTDA INSTITUTO DE ENFERMEDADES DIGESTIVAS\",\n\"GASTROTEST LTDA\",\n\"GAVAVISION UNIDAD DE ESPECIALISTAS S.A.S\",\n\"GAXO COLOMBIA S.A.S\",\n\"GENCELL PHARMA S.A.S\",\n\"GENERACION IVPROYECT CENTRO DE ARMONIZACION THE WALA NASA SAS\",\n\"GENETICA HUMANA E.U.\",\n\"GENETICA MOLECULAR DE COLOMBIA S.A.S.\",\n\"GENEVIDA LTDA\",\n\"GENOMICS S.A.S.\",\n\"GERENCIA DE PROYECTOS Y SERVICIOS EN SALUD S.A.S PROSALUD\",\n\"GERMAN PABLO SANDOVAL AUDIOFON S.A.S.\",\n\"GESTAMOS S.A.S\",\n\"GESTIFARMA S.A.S\",\n\"GESTION INTEGRAL DEL CUIDADO S.A.S IPS\",\n\"GESTIÓN INTEGRAL EN SALUD COMUNITARIA S.A.S\",\n\"GESTION INTEGRAL EN SALUD DEL PUTUMAYO GEINSALUD PUTUMAYO\",\n\"GESTION INTEGRAL EN SERVICIOS DE SALUD IPS\",\n\"GESTION INTEGRAL IPS LTDA\",\n\"GESTION SALUD DEL SINÚ IPS S.A.S\",\n\"GESTION SALUD S.A.S.\",\n\"GESTION Y SERVICIOS EN SALUD SAS\",\n\"GLICOL Y CIA SAS\",\n\"GLOBAL LIFE AMBULANCIAS SAS\",\n\"GLOBAL SAFE SALUD S.A.S.\",\n\"GLOBAL SERVICE PHARMACEUTICAL SAS\",\n\"GLOBALDENTAL CENTER S.A.S.\",\n\"GOLDEN CLINIC S.A.\",\n\"GOLDEN MEDICAL GROUP COLOMBIA S. A. S.\",\n\"GONAWINDUA ETTE ENNAKA IPS INDIGENA\",\n\"GONZÁLEZ FLÓREZ RADIOLOGÍA ESPECIALIZADA S.A.\",\n\"GRUPO AFIN FARMACEUTICA SAS\",\n\"GRUPO CENTRO DE NEUROREHABILITACION Y APRENDIZAJE S.A.S. GRUPOCENAP\",\n\"GRUPO CONTROL Y SERVICIOS SAS\",\n\"GRUPO CUADRADO IPS S.A.S\",\n\"GRUPO CUIDAR SAS\",\n\"GRUPO CUIDARTE SAS\",\n\"GRUPO DAO SAS\",\n\"GRUPO DE ESPECIALISTAS EN MANEJO INTEGRAL DE ENFERMEDADES CRÓNICAS S.A.S\",\n\"GRUPO DE ESTETICA DENTAL DEL VALLE S.A.S\",\n\"GRUPO DE SERVICIOS AMBULATORIOS SA\",\n\"GRUPO EMERGER SERVICIOS ESPECIALES EN SALUD IPS SAS\",\n\"GRUPO EMPRESARIAL DE SERVICIOS DE LA SALUD APLICADOS IPS\",\n\"GRUPO EMPRESARIAL FARMACEUTICO LTDA\",\n\"GRUPO EMPRESARIAL JARBSALUD IPS SAS\",\n\"GRUPO EMPRESARIAL LUZ I.P.S SAS\",\n\"GRUPO EMPRESARIAL SALUD POSITIVA S.A.S.\",\n\"GRUPO EMPRESARIAL VENUS SAS\",\n\"GRUPO GARANTE LTDA\",\n\"GRUPO HEALTH SAS\",\n\"GRUPO IMB IPS SAS\",\n\"GRUPO LABZELL FAMEDIT LIMITADA\",\n\"GRUPO LINEA VITAL I.P.S S.A.S\",\n\"GRUPO MEDICO ESPECIALISTAS IPS S.A.S.\",\n\"GRUPO MEDICO ESPECIALIZADO AIREC\",\n\"GRUPO MEDICO ESPECIALIZADO HIPNOS VIDA S.A.S.\",\n\"GRUPO MEDICO INTEGRAL VIVE IPS S.A.S\",\n\"GRUPO MEDICO ODONTOLOGICO COLOMBIANO DE SALUD COLSALUD SAS\",\n\"GRUPO MEDIKA S.A.S\",\n\"GRUPO MENTESANA S.A.S\",\n\"GRUPO NUEVA BETANIA S.A.S.\",\n\"GRUPO ONCOLOGICO INTERNACIONAL S.A. Y/O CLINICA DE ONCOLOGÍA ASTORGA\",\n\"GRUPO OPTICO SAS\",\n\"GRUPO ORIENTESALUD S.A.S\",\n\"GRUPO SALUD CORDOBA SAS\",\n\"GRUPO SAMAR SAS\",\n\"GRUPO VAVALS 1 SAS\",\n\"GRUPO VIDA MAGANGUE IPS S.A.S\",\n\"GRUPO VIHDA S.A.S\",\n\"GUACARI IPS INDIGENA S.A.S\",\n\"GUADALUPE IPS S.A.S\",\n\"GYO MEDICAL I.P.S. S.A.S.\",\n\"HABILITAR DEL CARIBE S.A.S\",\n\"HACES INVERSIONES Y SERVICIOS SAS\",\n\"HEALTH & LIFE IPS SAS SIGLA H&L UCC SAS\",\n\"HEALTH CARS SAS\",\n\"HEALTH HOME CARE S.A.S\",\n\"HEALTH NET SAS\",\n\"HEALTH PROCESSES S.A.S.\",\n\"HEALTH ZONE CLINIC S.A.S.\",\n\"HEALTHUMANA SAS\",\n\"HEBRONSALUD IPS S.A.S.\",\n\"HELISCAN S.A.S.\",\n\"HELP TRAUMA SALUD Y ORTOPEDIA IPS SAS\",\n\"HELPHARMA S.A\",\n\"HEMATO ONCOLOGOS ASOCIADOS S.A.\",\n\"HEMATO ONCOLOGOS S.A.\",\n\"HEMATOLOGIA LTDA\",\n\"HEMATOLOGIA Y ONCOLOGIA DEL ORIENTE\",\n\"HEMERA UNIDAD DE INFECTOLOGIA SAS\",\n\"HEMO GROUP S.A.S\",\n\"HEMO PACIFICO S.A.S\",\n\"HERES SALUD LTDA\",\n\"HERMANAS DE LA CARIDAD DOMINICAS DE LA PRESENTACION DE LA SANTISIMA VIRGEN\",\n\"HERMANAS HOSPITALARIAS DEL SAGRADO CORAZÓN DE JESÚS\",\n\"HERNAN OCAZIONEZ Y CIA S.A.S\",\n\"HESEOS SAS\",\n\"HIGUERA ESCALANTE & CIA LTDA\",\n\"HOGARSALUD IPS SOCIEDAD POR ACCIONES SIMPLIFICADAS\",\n\"HOLISTICA UNIDAD DE MEDICINA INTEGRAL\",\n\"HOME & HEALTH IPS ANTENCION MEDICA DOMICILIARIA\",\n\"HOME CARE H&M ASOCIADOS IPS SAS\",\n\"HOME GROUP S.A.S\",\n\"HOME HEALTH SALUD EN CASA SAS IPS\",\n\"HOME SALUD SAS\",\n\"HORIZONTES ABA TERAPIA INTEGRAL LIMITADA\",\n\"HORUS GRUPO OFTALMOLOGICO S.A\",\n\"HOSDISALUD HDS S.A.S\",\n\"HOSPICARDIO SAS\",\n\"HOSPICE IPS S.A.S.\",\n\"HOSPICLINIC DE COLOMBIA S.A.S.\",\n\"HOSPIMPORT SAS\",\n\"HOSPITAL SAN ROQUE E.S.E. ALVARADO TOLIMA\",\n\"HOSPITAL CARLOS TORRENTE LLANO EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL CENTRO E.S.E. DE PLANADAS\",\n\"HOSPITAL DE AGUAZUL JUAN HERNANDO URREGO EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL DE CASTILLA LA NUEVA ESE\",\n\"HOSPITAL DE MANATI ESE\",\n\"HOSPITAL DE PEDRAZA E.S.E.\",\n\"HOSPITAL DE SAN JUAN DE DIOS\",\n\"HOSPITAL DEL SARARE ESE\",\n\"HOSPITAL DEPARTAMENTAL DE GRANADA - EMPRESA SOCIAL DEL META\",\n\"HOSPITAL DEPARTAMENTAL DE VILLAVICENCIO E.S.E.\",\n\"HOSPITAL DEPARTAMENTAL JUAN DOMINGUEZ ROMERO E.S.E SOLEDAD - ATLANTICO\",\n\"HOSPITAL DEPARTAMENTAL MARIA INMACULADA ESE\",\n\"HOSPITAL DEPARTAMENTAL MARIO CORREA RENGIFO EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL DEPARTAMENTAL SAN ANTONIO DE ROLDANILLO EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL DEPARTAMENTAL SAN CAYETANO DE MARQUETALIA EMPRESA SOCIAL DEL ESTADO E.S.E\",\n\"HOSPITAL DEPARTAMENTAL SAN JUAN DE DIOS DE RIOSUCIO CALDAS ESE\",\n\"HOSPITAL DEPARTAMENTAL SAN RAFAEL DE RISARALDA EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL DEPARTAMENTAL SAN RAFAEL DE ZARZAL E.S.E.\",\n\"HOSPITAL EL BUEN SAMARITANO E.S.E. LA CRUZ\",\n\"HOSPITAL EN CASA S.A\",\n\"HOSPITAL ESPECIAL DE CUBARA EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL ESPECIALIZADO GRANJA INTEGRAL E.S.E LERIDA TOLIMA\",\n\"HOSPITAL FEDERICO ARBELAEZ EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL FRANCINETH SANCHEZ HURTADO EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL FRANCISCO DE PAULA SANTANDER E.S.E. NIVEL II\",\n\"HOSPITAL GENERAL DE MEDELLIN LUZ CASTRO DE GUTIERREZ, EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL GENERAL SAN ISIDRO EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL GONZALO CONTRERAS EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL GUACHUCAL ESE\",\n\"HOSPITAL HERNANDO QUINTERO BLANCO E.S.E\",\n\"HOSPITAL INFANTIL LOS ANGELES\",\n\"HOSPITAL INMACULADA CONCEPCION ESE\",\n\"HOSPITAL ISAIAS DUARTE CANCINO EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL ISMAEL PERDOMO EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL ISMAEL SILVA E.S.E.\",\n\"HOSPITAL LA MILAGROSA EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL LA MISERICORDIA E.S.E\",\n\"HOSPITAL LA UNION EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL LAS AMERICAS LTDA\",\n\"HOSPITAL LOCAL ALVARO RAMIREZ GONZALEZ E.S.E\",\n\"HOSPITAL LOCAL PEDRO SAENZ DIAZ EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL LOCAL PRIMER NIVEL E.S.E. FUENTE DE ORO\",\n\"HOSPITAL LOCAL SAN BENITO ABAD E.S.E\",\n\"HOSPITAL LOCAL SANTA CATALINA DE SENA DE SUCRE-SUCRE E.S.E.\",\n\"HOSPITAL LOCAL VITO FASAEL GUTIERREZ PEDRAZA E.S.E.\",\n\"HOSPITAL LUIS ABLANQUE DE LA PLATA EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL MARIA AUXILIADORA EMPRESA SOCIAL DEL ESTADO DEL MUNICIPIO DE MOSQUERA\",\n\"HOSPITAL MARIA INMACULADA E.S.E\",\n\"HOSPITAL MILITAR CENTRAL\",\n\"HOSPITAL MUNICIPAL SAN FRANCISCO DE ASIS DE ELIAS EMPRESA SOCIAL DEL ESTADO E.S.E.\",\n\"HOSPITAL NUESTRA SEÑORA DE FATIMA E.S.E\",\n\"HOSPITAL NUESTRA SEÑORA DE LOURDES E.S.E.\",\n\"HOSPITAL NUESTRA SEÑORA DEL CARMEN EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL ORTOPÉDICO S.A.S\",\n\"HOSPITAL PABLO TOBON URIBE\",\n\"HOSPITAL PRIMER NIVEL DE GUAMAL\",\n\"HOSPITAL RAMON MARIA ARANA ESE\",\n\"HOSPITAL REGIONAL ALFONSO JARAMILLO SALAZAR EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL REGIONAL DE LA ORINOQUIA E.S.E.\",\n\"HOSPITAL REGIONAL DE MIRAFLORES EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL REGIONAL DE MONIQUIRA ESE\",\n\"HOSPITAL REGIONAL DE SOGAMOSO EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL REGIONAL NUESTRA SEÑORA DE LAS MERCEDES DE COROZAL E.S.E.\",\n\"HOSPITAL REGIONAL SAN ANDRES ESE\",\n\"HOSPITAL REGIONAL SEGUNDO NIVEL DE ATENCIÓN VALLE DE TENZA E.S.E.\",\n\"HOSPITAL REINA SOFIA DE ESPAÑA EMPRESA SOCIAL DEL ESTADO LERIDA TOLIMA\",\n\"HOSPITAL RICARDO ACOSTA NIVEL I EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL RICAURTE EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL ROBERTO QUINTERO VILLA ESE MONTENEGRO\",\n\"HOSPITAL ROSARIO PUMAREJO DE LOPEZ - EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL SAGRADO CORAZÓN DE JESÚS EMPRESA SOCIAL DEL ESTADO DE EL CHARCO\",\n\"HOSPITAL SAN AGUSTIN EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL SAN ANDRES E.S.E.\",\n\"HOSPITAL SAN ANTONIO E.S.E DE AMBALEMA\",\n\"HOSPITAL SAN ANTONIO E.S.E.\",\n\"HOSPITAL SAN ANTONIO E.S.E. DE NATAGAIMA TOLIMA\",\n\"HOSPITAL SAN CARLOS E.S.E.\",\n\"HOSPITAL SAN CARLOS ESE SALDAÑA TOLIMA\",\n\"HOSPITAL SAN JOSÉ\",\n\"HOSPITAL SAN JOSE DE ORTEGA\",\n\"HOSPITAL SAN JOSE ESE\",\n\"HOSPITAL SAN JUAN BOSCO E.S.E\",\n\"HOSPITAL SAN JUAN DE DIOS E.S.E RIONEGRO - ANTIOQUIA\",\n\"HOSPITAL SAN JUAN DE DIOS EL SANTUARIO\",\n\"HOSPITAL SAN JUAN DE DIOS EMPRESA SOCIAL DEL ESTADO DEL MUNICIPIO DE ANZOATEGUI\",\n\"HOSPITAL SAN JUAN DE DIOS HONDA EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL SAN RAFAEL DE PASTO\",\n\"HOSPITAL SAN RAFAEL EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL SAN RAFAEL EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL SAN ROQUE DE CORDOBA QUINDIO EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL SAN ROQUE EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL SAN ROQUE EMPRESA SOCIAL DEL ESTADO NIVEL I\",\n\"HOSPITAL SAN ROQUE ESE\",\n\"HOSPITAL SAN SEBASTIAN DE PIEDRAS E.S.E.\",\n\"HOSPITAL SAN VICENTE DE PAUL EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL SAN VICENTE E.S.E\",\n\"HOSPITAL SAN VICENTE ESE\",\n\"HOSPITAL SANTA ANA DE LOS CABALLEROS - ESE EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL SANTA ANA DE PIJAO QUINDIO E.S.E.\",\n\"HOSPITAL SANTA BARBARA E.S.E. DE VENADILLO\",\n\"HOSPITAL SANTA LUCIA EMPRESA SOCIAL DEL ESTADO\",\n\"HOSPITAL SANTA ROSA DE LIMA E. S. E.\",\n\"HOSPITAL SERAFIN MONTAÑA CUELLAR ESE\",\n\"HOSPITAL SUMAPAZ E.S.E.\",\n\"HOSPITAL UNIVERSITARIO C.A.R.I. E.S.E.\",\n\"HOSPITAL UNIVERSITARIO CLINICA SAN RAFAEL\",\n\"HOSPITAL UNIVERSITARIO DE SINCELEJO E.S.E\",\n\"HOSPITAL UNIVERSITARIO SAN IGNACIO\",\n\"HOSPITAL UNIVERSITARIO SAN JOSE DE POPAYAN E.S.E.\",\n\"HOSPITAL VERA JUDITH IMITOLA VLLANUEVA E.S.E\",\n\"HOSPITALIZACION INTEGRAL DOMICILIARIA S.A.S. (HID)\",\n\"HOSPITRAUMA LIMITADA\",\n\"HOUSE CARE MEDICAL IPS S.A.S\",\n\"HUALO Y CIA LIMITADA\",\n\"HUBERT RUIZ OPTICA LTDA\",\n\"HUMAN TECHNOLOGY ID LTDA\",\n\"HUMANIZAR SALUD INTEGRAL S.A.S.\",\n\"I .P.S. MI SALUD PLATO LTDA\",\n\"I S H INTEGRAL SOLUTIONS IN HEALTH SAS\",\n\"I.P. SALUD DEL CARIBE S.A.S\",\n\"I.P.S CEDXMIC SAS\",\n\"I.P.S CENTRO DE REHABILITACION ARCANGELES S.A.S.\",\n\"I.P.S CLINICENTRO DEL CARIBE LTDA\",\n\"I.P.S DOTAR INTEGRAL E.U\",\n\"I.P.S GENERAL MEDICAL SERVICES COLOMBIA S.A.S\",\n\"I.P.S GOLEMAN SERVICIO INTEGRAL S.A.S.\",\n\"I.P.S LIGA CONTRA EL CÁNCER CAPÌTULO OCAÑA\",\n\"I.P.S NAZHER CENTRO MEDICO ESPECIALIZADO S.A.S\",\n\"I.P.S SALUD PARA TODOS LYM S.A.S\",\n\"I.P.S SER ASISTENCIA Y TRANSPORTE PARA DISCAPACITADOS SAS CON SIGLA SER SAS\",\n\"I.P.S SERVICIOS INTEGRALES Y ASISTENCIALES DE SALUD S.A.S\",\n\"I.P.S SOCIEDAD DE MEDICOS DE BUENAVENTURA S.A.S IPS SOMEB S.A.S\",\n\"I.P.S SOLOSALUD JD S.A.S\",\n\"I.P.S. CENTRO MEDICO Y DROGUERIA DEL CARIBE. S.A.S.\",\n\"I.P.S. CENTRO ODONTOLOGICO ESPECIALIZADO\",\n\"I.P.S. CINES CENTRO INTERNACIONAL DE ESPECIALISTAS & CIA LTDA\",\n\"I.P.S. CLINICA GUARANDA SANA S.A.S.\",\n\"I.P.S. CLINICA ODONTOLOGICA SERVISALUD E.U.\",\n\"I.P.S. ENSALUD COLOMBIA S.A.S.\",\n\"I.P.S. FISINOVA S.A.S\",\n\"I.P.S. LABORATORIO CLINICO ESPECIALIZADO ELSA MARTINEZ S.A.S.\",\n\"I.P.S. OPTICA LA PLAZUELA S.A.S\",\n\"I.P.S. SALUMED LTDA\",\n\"I.P.S. SANTA CATALINA CLINICA DE HERIDAS Y OSTOMIAS S.A.S.\",\n\"I.P.S. SERVIAMBULANCIA DEL CARIBE S.A.S.\",\n\"I.P.S. SERVICIOS INTEGRALES DEL NORTE S.A.S.\",\n\"I.P.S. SERVICIOS MEDICOS ESPECIALIZADOS DE LA SABANA S.A.S. I.P.S. SERMEDES S.A.S.\",\n\"I.P.S. SERVIMEDICO S.A.S.\",\n\"I.P.S. SU SALUD INTEGRAL SAS\",\n\"I.P.S. UNIDAD MEDICA EL BOSQUE S.A.S.\",\n\"I.P.S. UNIDAD MEDICA ETICA E.U.\",\n\"I.P.S. UNIDAD MEDICA REGIONAL LIMITADA\",\n\"I.P.S.I. A>INMAJAA WAYUU\",\n\"I.P.S.I. ANENU-JIA\",\n\"I.P.S.I. WALE KERU\",\n\"I.PS. PATOLOGOS ASOCIADOS DE SUCRE LTDA\",\n\"IDEARG S.A.S.\",\n\"IMAGEN AYUDAS DIAGNOSTICAS DIGITALES SAS\",\n\"IMAGEN DENTAL INTEGRAL IPS S.A.S.\",\n\"IMAGEN RADIOLOGICA DIAGNOSTICA S.A.S\",\n\"IMÁGENES BIOMEDICAS LA TRINIDAD SAS\",\n\"IMAGENES DE LA SABANA SAS\",\n\"IMAGENES DIAGNOSTICAS DE ALTA RESOLUCION COOPERATIVA DE TRABAJO ASOCIADO IDAR CTA.\",\n\"IMÁGENES DIAGNOSTICAS DE LORICA E-U\",\n\"IMAGENES DIAGNOSTICAS DEL CHOCO IPS SAS\",\n\"IMÁGENES DIAGNOSTICAS DEL LLANO S.A.\",\n\"IMÁGENES DIAGNÓSTICAS EL LAGO LTDA.\",\n\"IMÁGENES DIAGNOSTICAS MARCO BRUN BANDA LTDA\",\n\"IMÁGENES DIAGNOSTICAS S.A.\",\n\"IMAGENES DIAGNOSTICAS SAN JOSE\",\n\"IMÁGENES DIAGNOSTICAS SAS\",\n\"IMAGENES DR. FREYRE SAS\",\n\"IMÁGENES ORALES S.A.S\",\n\"IMAGENES Y ESPECIALIDADES S.A.S\",\n\"IMÁGENES Y RADIOLOGIA S.A.S.\",\n\"IMAGENOLOGIA DEL MAGDALENA CENTRO RADIOLOGICO SAS\",\n\"IMAGENOLOGIA MEDICA DEL HUILA LTDA.\",\n\"IMHOTEP IPS SAS\",\n\"IN THERAPY I.P.S S.A.S\",\n\"INDUSTRIAS MEDICAS SAMPEDRO SAS\",\n\"ING CLINICAL CENTER SAS\",\n\"INGRUMA SALUD LTDA\",\n\"INMUNAR S.A.S\",\n\"INNOVA IDEAS Y PROYECTOS SAS\",\n\"INNOVA ODONTOLOGIA ESPECIALIZADA SAS\",\n\"INNOVAR SALUD SAS\",\n\"INSPIRA REHABILITACION PULMONAR S.A.S\",\n\"INSTIT DE REHABILIT DEL TOL IDEAL\",\n\"INSTITUCION DE REHABILITACION Y EDUCACION CORPORAL FISIOTERAPIST SAS CON SIGLA: IRYEC FISIOTERAPIST SAS\",\n\"INSTITUCION EN SALUD ORAL INSO S.A.S\",\n\"INSTITUCIÓN PRESTADORA DE SALUD IPS BIO E&C S.A.S\",\n\"INSTITUCIÓN PRESTADORA DE SALUD- IPS SALUD SANTA MARTA\",\n\"INSTITUCIÓN PRESTADORA DE SERVICIOS CENTRO INTEGRAL DE REHABILITACIÓN DEL PUTUMAYO LTDA.\",\n\"INSTITUCIÓN PRESTADORA DE SERVICIOS DE SALUD IPS UNIVERSITARIA\",\n\"INSTITUCION PRESTADORA DE SERVICIOS DE SALUD SU IPS SAS\",\n\"INSTITUCION PRESTADORA DE SERVICIOS DE SALUD CUIDADO SEGURO EN CASA S.A\",\n\"INSTITUCION PRESTADORA DE SERVICIOS DE SALUD DOMICILIARIOS SANARTE CLÍNICA DE HERIDAS Y OSTOMIAS S.A.S.\",\n\"INSTITUCIÓN PRESTADORA DE SERVICIOS DE SALUD INDIGENA ESSALUD YAGUARA IPS-I\",\n\"INSTITUCION PRESTADORA DE SERVICIOS DE SALUD INDÍGENA GUAITARA\",\n\"INSTITUCIÓN PRESTADORA DE SERVICIOS DE SALUD INDÍGENA MANEXKA IPSI\",\n\"INSTITUCION PRESTADORA DE SERVICIOS DE SALUD INDIGENA SEKEIMO IPSI\",\n\"INSTITUCION PRESTADORA DE SERVICIOS DE SALUD LOS ANGELES IPS\",\n\"INSTITUCION PRESTADORA DE SERVICIOS DE SALUD OCUPACIONAL EMPRESARIAL S.A.S\",\n\"INSTITUCION PRESTADORA DE SERVICIOS ODONTOLOGICOS I.P.S.O S.A.S\",\n\"INSTITUCION PRESTADORA DE SERVICIOS RADIOLOGIA ESPECIALIZADA S.A. IPS RAES S.A.\",\n\"INSTITUTO CALDENSE DE PATOLOGIA ICP SA\",\n\"INSTITUTO CANCEROLÓGICO DE NARIÑO LIMITADA\",\n\"INSTITUTO CARDIOVASCULAR COLOMBIANO SAS\",\n\"INSTITUTO CARDIOVASCULAR DE RISARALDA S.A\",\n\"INSTITUTO CARDIOVASCULAR DEL CESAR S.A\",\n\"INSTITUTO CARDIOVASCULAR DEL TOLIMA S.A.S\",\n\"INSTITUTO CARDIOVASCULAR Y DE ESTUDIOS ESPECIALES LAS VEGAS S.A. INCARE S.A.\",\n\"INSTITUTO CARDIOVASCULAR Y QUIRURGICO DE LA COSTA S.A.S.\",\n\"INSTITUTO CLINICO DE SALUD ICSA S.A.S.\",\n\"INSTITUTO CLINICO QUIRURGICO DEL HUILA LTDA\",\n\"INSTITUTO COLOMBIANO DE ANALISIS CONDUCTUAL APLICADO S.A.S.\",\n\"INSTITUTO COLOMBIANO DE NEUROCIENCIAS SAS\",\n\"INSTITUTO COLOMBIANO DE NEUROPEDAGOGIA\",\n\"INSTITUTO COLOMBIANO DEL DOLOR S.A.S\",\n\"INSTITUTO DE AUDIOLOGIA INTEGRAL\",\n\"INSTITUTO DE CANCEROLOGIA DE SUCRE S.A.S.\",\n\"INSTITUTO DE CANCEROLOGIA S.A.S.\",\n\"INSTITUTO DE CIRUGIA OCULAR PALERMO LTDA\",\n\"INSTITUTO DE CORNEA S A S\",\n\"INSTITUTO DE DIAGNOSTICO MEDICO S.A.\",\n\"INSTITUTO DE ENFERMEDADES DIGESTIVAS DE COLOMBIA S.A.S\",\n\"INSTITUTO DE EPILEPSIA Y PARKINSON DEL EJE CAFETERO S.A\",\n\"INSTITUTO DE FRACTURAS S.A.S\",\n\"INSTITUTO DE GASTROENTEROLOGIA Y HEPATOLOGIA DEL ORIENTE S.A.S\",\n\"INSTITUTO DE GENETICA GENESIS SAS\",\n\"INSTITUTO DE LA VISION DEL NORTE & CIA. LTDA.\",\n\"INSTITUTO DE MEDICINA NUCLEAR S.A\",\n\"INSTITUTO DE NEUROREHABILITACION Y PSIQUIATRIA DE COLOMBIA\",\n\"INSTITUTO DE REFERENCIA ANDINO S.A.S.\",\n\"INSTITUTO DE REHABILITACION CARDIOPULMONAR DEL CARIBE SAS\",\n\"INSTITUTO DE REHABILITACION INTEGRAL CARITA FELICES LTDA\",\n\"INSTITUTO DE REHABILITACION INTEGRAL SAMUEL LTDA.\",\n\"INSTITUTO DE REHABILITACION INTEGRAL SANAVIDA S.A.S\",\n\"INSTITUTO DE REHABILITACION ISSA ABUCHAIBE LTDA.\",\n\"INSTITUTO DE REHABILITACION Y HABILITACION INFANTIL.EBENEZER. LTDA\",\n\"INSTITUTO DE REPRODUCCIÒN HUMANA PROCREAR S.A.\",\n\"INSTITUTO DE SALUD MENTAL MENS SANA S.A.S\",\n\"INSTITUTO DE SISTEMA NERVIOSO DE CORDOBA\",\n\"INSTITUTO DE TRASPLANTE DE MÉDULA OSEA DE LA COSTA IPS S.A.S\",\n\"INSTITUTO DE ULTRATECNOLOGIA MEDICA S A S\",\n\"INSTITUTO DEL CORAZÓN DE BUCARAMANGA S.A.\",\n\"INSTITUTO DEL CORAZON DE SABANALARGA\",\n\"INSTITUTO DEL CORAZON S.A.S\",\n\"INSTITUTO DEL RIÑON DE CORDOBA S.A.S.\",\n\"INSTITUTO DEL RIÑON DE SUCRE SAS\",\n\"INSTITUTO DEL SISTEMA NERVIOSO DE RISARALDA S.A.S\",\n\"INSTITUTO DEL SISTEMA NERVIOSO DEL ORIENTE SA\",\n\"INSTITUTO DIAGNOSTICO POR IMAGENES DE MAICAO - IDIMA S.A.S\",\n\"INSTITUTO ESPECIALIZADO EN SALUD MENTAL LTDA\",\n\"INSTITUTO GASTROCLINICO S.A.S.\",\n\"INSTITUTO HUILENSE DE CIRUGIA GASTROINTESTINAL Y ENDOSCOPIA DIGESTIVA SAS - INCIDE SAS\",\n\"INSTITUTO LATINOAMERICANO DE INVESTIGACIONES ONCOLOGICAS SAS\",\n\"INSTITUTO LATINOAMERICANO DE NEUROLOGÍA Y SISTEMA NERVIOSO-ILANS S.A.S\",\n\"INSTITUTO MEDICO DE ALTA TECNOLOGÍA S.A.S\",\n\"INSTITUTO MEDICO INTEGRADO S.A.S IMI S.A.S\",\n\"INSTITUTO MEDICO OFTALMOLOGICO DE COLOMBIA LTDA\",\n\"INSTITUTO METROPOLITANO DE ECOGRAFIA SAS\",\n\"INSTITUTO METROPOLITANO PARA EL DESARROLLO COGNITIVO IPS SAS\",\n\"INSTITUTO NACIONAL DE CANCEROLOGIA - EMPRESA SOCIAL DEL ESTADO\",\n\"INSTITUTO NACIONAL DE DEMENCIAS EMANUEL SAS\",\n\"INSTITUTO NACIONAL DE REHABILITACION NEURO FISICA INNARE IPS SAS\",\n\"INSTITUTO NEUMOLOGICO DE CORDOBA\",\n\"INSTITUTO NEUMOLOGICO DEL ORIENTE S.A.\",\n\"INSTITUTO NEUROLOGICO INFANTIL S.A.S.\",\n\"INSTITUTO NEUROPSIQUIATRICO NUESTRA SEÑORA DEL CARMEN INSECAR\",\n\"INSTITUTO OCULAR DE OCCIDENTE LTDA\",\n\"INSTITUTO OFTALMOLOGICO DE CALDAS S.A.\",\n\"INSTITUTO OFTALMOLOGICO DEL TOLIMA SAS\",\n\"INSTITUTO OFTALMOLOGICO SALAMANCA S.A IOSAL\",\n\"INSTITUTO ONCOHEMATOLOGICO BETANIA S.A BIO BETANIA S.A\",\n\"INSTITUTO ONCOLOGICO DEL CARIBE S.A.S\",\n\"INSTITUTO PARA EL RIESGO CARDIOVASCULAR I.R.C . IPS S A S\",\n\"INSTITUTO PARA LA PREVENCIÓN, EL TRATAMIENTO Y REHABILITACIÓN DE LAS ENFERMEDADES INMUNOSUPRESORAS SAS - RENACERA\",\n\"INSTITUTO PARA NIÑOS CIEGOS Y SORDOS DEL VALLE DEL CAUCA\",\n\"INSTITUTO PARA TRASTORNO DE LA CONDUCTA SAS\",\n\"INSTITUTO RADIOLOGICA DEL CESAR E.U\",\n\"INSTITUTO RADIOLOGICO DEL SUR IPIALES SAS\",\n\"INSTITUTO RADIOLOGICO DEL SUR SAS\",\n\"INSTITUTO RADIOLOGICO DEL SUROCCIDENTE SAS\",\n\"INSTITUTO RADIOLÓGICO ORAL DE URABÁ S.A.S.\",\n\"INSTITUTO ROOSEVELT\",\n\"INSTITUTO UROLOGICO DEL NORTE S.A.S.\",\n\"INSTITUTO VASCULAR E IMÁGENES DIAGNOSTICAS SAS\",\n\"INSUASTY ONCOLOGIA E INVESTIGACIONES S.A.S\",\n\"INTEGRA MEDICA COLOMBIA SA\",\n\"INTEGRA SALUD DEL CAUCA LTDA\",\n\"INTEGRA SALUD SAS\",\n\"INTEGRADOS EN SALUD IPS LTDA\",\n\"INTEGRADOS IPS LTDA.\",\n\"INTEGRAL DE COLOMBIA IPS S.A.S\",\n\"INTEGRAL HOME CARE S.A.S.\",\n\"INTEGRAL I.P.S. LTDA\",\n\"INTEGRAL MAS VIDA IPS S.A.S.\",\n\"INTEGRAL MEDI SAS\",\n\"INTEGRAL SOLUTIONS SD SAS\",\n\"INTEGRALES HEALTH S.A.S\",\n\"INTEGRAR SOLUCIONES EN SALUD IPS SAS\",\n\"INTEGRAR SOLUCIONES FARMACEUTICAS SAS\",\n\"INTEGRATED HEALTH SERVICES SAS\",\n\"INTELPHARMA SAS\",\n\"INTENSIVISTAS MRC IPS S.A\",\n\"INTERFISICA DEL CAUCA LTDA\",\n\"INTERGASTRO S.A\",\n\"INTERMEDIOS E.D. LIMITADA\",\n\"INTERNATIONAL TELEMEDICAL SYSTEMS COLOMBIA S.A.S - ITMS COLOMBIA S.A.S\",\n\"INTISALUD IPS S.A.S.\",\n\"INTTEGRAL I.P.S S.A.S\",\n\"INVERSIONES AZALUD S.A.S\",\n\"INVERSIONES CLINICA DEL META S.A.\",\n\"INVERSIONES COMEGA IPS SAS\",\n\"INVERSIONES D.V MASSEY LTDA\",\n\"INVERSIONES DAZA DISTRILENT Y CIA S EN C.\",\n\"INVERSIONES DE SERVICIOS ESTETICOS LTDA\",\n\"INVERSIONES IMÁGENES VITALES DE LA COSTA S.A\",\n\"INVERSIONES JESUS MARIA S-A-S\",\n\"INVERSIONES LAFAURIE NAIZZIR S.A.S.\",\n\"INVERSIONES LUCEDMARB S.A\",\n\"INVERSIONES MEDICAS BARU S.A.S\",\n\"INVERSIONES MEDICAS DE ANTIOQUIA S.A. CLINICA LAS VEGAS\",\n\"INVERSIONES MEDICAS DE LOS ANDES S.A.S.\",\n\"INVERSIONES MEDICAS VALLE SALUD SAS - CLINICA VALLE SALUD\",\n\"INVERSIONES MEREZ S.A.S\",\n\"INVERSIONES NUEVO SER S.A.S\",\n\"INVERSIONES OPTICOSMERCURIO S.A.S.\",\n\"INVERSIONES SANCHEZ & SALCEDO S.A.S\",\n\"INVERSIONES SEQUOIA COLOMBIA S.A.S\",\n\"INVERSIONES SMP S.A.S\",\n\"INVERSIONES SOLUCION GLOBAL S.A.S\",\n\"INVERSIONES Y COMERCIALIZADORA DIAYCA Y CIA S EN C\",\n\"INVERSIONES Y PROYECTOS EFISALUD LTDA\",\n\"IPS ACCION SALUD S.A.S.\",\n\"IPS AMBULATORIAS DE COLOMBIA S.A.S\",\n\"IPS ANESHI WAYAA SAS\",\n\"IPS ARANASALUD S.A.S.\",\n\"IPS ARCASALUD SAS\",\n\"IPS ASESORIAS HORIZONTES DEL NORTE SAS\",\n\"IPS ASSOT SAS\",\n\"IPS AUDIOVOZ S.A.S\",\n\"IPS BARRANCAS S.A.S.\",\n\"IPS BEST HOME CARE SAS\",\n\"IPS BIENESTAR DIGESTIVO SAS\",\n\"IPS BIOSALUD DE LA COSTA S.A.S.\",\n\"IPS CAFIS SAS\",\n\"IPS CAMBER INTEGRAL S.A.S\",\n\"IPS CAÑAMOMO Y LOMAPRIETA S.A.S\",\n\"IPS CARDIOCENTRO PEDIATRICO DE SUCRE S.A.S\",\n\"IPS CENTRO DE ATENCION PULMONAR CAP LTDA\",\n\"IPS CENTRO DE FORMACION EL REENCUENTRO SAS\",\n\"IPS CENTRO DE REHABILITACION OPA SAS\",\n\"IPS CENTRO DE REHABILITACION RESTAURA TU VIDA S.A.S.\",\n\"IPS CENTRO DE TERAPIAS INTEGRALES PATRICIA MEJIA CACERES S.A.S.\",\n\"IPS CENTRO INTEGRAL DE NEURODESARROLLO Y REHABILITACION SAS\",\n\"IPS CENTRO MEDICO SAN GREGORIO HERNANDEZ LTDA\",\n\"IPS CENTRO MEDICO SANTA MARIA LIMITADA\",\n\"IPS CENTRO ODONTOLÓGICO SAN PEDRO LTDA\",\n\"IPS CENTRO PSICOTERAPEUTICO INTEGRAL SAS\",\n\"IPS CENTRO TERAPEUTICO LOLA VARGAS S.A.S.\",\n\"IPS CHIDES S.A.S\",\n\"IPS CLINICA DE VARICES S.A.S.\",\n\"IPS CLINICA DEL CORAZON S.A.S\",\n\"IPS CLINICA DEL NORTE CAUCA SAS\",\n\"IPS CLINICA ESPECIALIZADA EN EL SUEÑO\",\n\"IPS CLINICA GENERAL EL RECREO LTDA\",\n\"IPS CLINICA JOSE A RIVAS S.A.\",\n\"IPS CLINICA MAJAGUAL LTDA\",\n\"IPS CLINICA MARIANA TUQUERRES SAS\",\n\"IPS CLINICA MEDICO FAMILIAR SAS\",\n\"IPS CLINICA PROSEGUIR SAS\",\n\"IPS CLINICA PROVIDENCIA SAS\",\n\"IPS CLINICA REINA CATALINA S.A.S.\",\n\"IPS CLÍNICA ROQUE ARMANDO LÓPEZ ÁLVAREZ E.U.\",\n\"IPS CLINICA SALUD FLORIDA S.A\",\n\"IPS CLINICA SAN IGNACIO LTDA\",\n\"IPS CLINICA SANTA ANA DE BARANOA\",\n\"IPS CLINICAL HOUSE S.A.S.\",\n\"IPS CLINISALUD NARIÑO SAS\",\n\"IPS CLINI-SALUD SUMINISTROS S.A.S.\",\n\"IPS CLINITRAUMA SAS\",\n\"IPS COLMEDICAS\",\n\"IPS COMFASALUD S A\",\n\"IPS COOMULTRASAN\",\n\"IPS COROZAL LTDA\",\n\"IPS CRISTIAN ARNOLD ESPITIA ARTEAGA SAS\",\n\"IPS CUIDEMOS TU SALUD S.A.S\",\n\"IPS CUMBE SALUD\",\n\"IPS DE LA COSTA S.A\",\n\"IPS DE LOS ESPECIALISTAS SAS\",\n\"IPS DEL CABILDO INDIGENA DE CHILES\",\n\"IPS DISMECOL LTDA\",\n\"IPS EFAS DISTRIBUCIONES S.A.S\",\n\"IPS EL SEÑOR DE LOS MILAGROS LIMITADA\",\n\"IPS ENDOFERTIL S.A.S\",\n\"IPS ERCHICHI JAI E.U.\",\n\"IPS ESPAÑA ORTIZ LIMITADA\",\n\"IPS ESPECIALIZADA DEL PUEBLO CAMENTSA BIYA S.A.S.\",\n\"IPS ESPECIALIZADA S.A.\",\n\"IPS FAMI PARAISO SAS\",\n\"IPS FAMILY & MEDICAL CASANARE SAS\",\n\"IPS FAMISALUD\",\n\"IPS FERNANDO KUAN MEDINA SAS\",\n\"IPS FISIATRICS S.A.S\",\n\"IPS FISIOCENTER CENTRO DE SALUD INTEGRAL S.A.S.\",\n\"IPS FONOMEDICAL S.A.S\",\n\"IPS FUNCOLS SAS\",\n\"IPS FUNDACION SERSOCIAL SEDE CARTAGENA\",\n\"IPS FUSA S.A.S.\",\n\"IPS GEMEVA EU\",\n\"IPS GENESIS CENTRO DE DIAGNOSTICO S.A.S.\",\n\"IPS GLOBAL SALUD LTDA\",\n\"IPS GOLFO SALUD S.A.S\",\n\"IPS GONZALEZ RACERO S.A.S\",\n\"IPS H&L SALUD SAS\",\n\"IPS HEMOPLIFE SALUD S.A.S. SIGLA IPS HMLIFE S.A.S\",\n\"IPS HENRY TELLEZ MARTINEZ SAS\",\n\"IPS HEROSAN S.A.S.- CLINICA SAN JOAQUIN\",\n\"IPS IMAGEN DIAGNOSTICA S.A.S\",\n\"IPS IMAGENENES DE LA SABANA\",\n\"IPS INDIGENA CABILDOS CUMBAL PANAN CHILES Y MAYASQUER\",\n\"IPS INDIGENA CAPERA SAS\",\n\"IPS INDIGENA COTTUSHI SUSHI ANAIN WAKUA IPA IPS-I\",\n\"IPS INDIGENA DE CARLOSAMA DE LA ASOCIACION DE AUTORIDADES INDIGENAS DE LOS PASTOS\",\n\"IPS INDIGENA DEL RESGUARDO DE MUELLAMUES\",\n\"IPS INDIGENA JULIAN CARLOSAMA\",\n\"IPS INDIGENA KOTTUSHI SAO ANA>A\",\n\"IPS INDÍGENA MALLAMÁS\",\n\"IPS INDIGENA MATSULUDANI UNUMA LTDA\",\n\"IPS INDIGENA MAVESALUD\",\n\"IPS INDIGENA MINGASALUD RESGUARDO INDIGENA DE GUACHAVEZ\",\n\"IPS INDIGENA SUMUYWAJAT\",\n\"IPS INDIGENA TRAPECIO AMAZONICO\",\n\"IPS INDIGENA UNUMA ACIM\",\n\"IPS INTEGRAL CASANARE S.A.S\",\n\"IPS INTEGRAL FUTURO LIMITADA\",\n\"IPS INTEGRAL SOMOS SALUD SAS\",\n\"IPS ISALUD TOTAL S.A.S\",\n\"IPS JAH RAFA S.A.S.\",\n\"IPS JERUSALEN S.A.S\",\n\"IPS JOS MARIA TORRES BELTRAN LTDA\",\n\"IPS JUAN PABLO SEGUNDO SAS\",\n\"IPS KATIOS RIOSUCIO LTDA\",\n\"IPS KELI DURANGO SAS\",\n\"IPS KINESIS SAS\",\n\"IPS LA DIVINA MISERICORDIA S.A.S\",\n\"IPS LABORATORIO CLINICO ESPECIALIZADO CLINICOM S.A.S\",\n\"IPS LABORATORIO CLINICO ESPECIALIZADO JCG S.A.S.\",\n\"IPS LABORATORIO CLINICO ESPECIALIZADO MARIA GICELA RAMIREZ MANRIQUE S.A.S.\",\n\"IPS LABORATORIO CLINICO NORA ALVAREZ LTDA\",\n\"IPS LABORATORIO CLINICO S&L E. U\",\n\"IPS LABORATORIO CLINICO VALENCIA GARCIA\",\n\"IPS LUISA FERNANDA REHABILITACION INTEGRAL S.A.\",\n\"IPS MANANTIAL DE DIOS S.A.S\",\n\"IPS MANANTIAL DE VIDA\",\n\"IPS MARIA DE LOS ANGELES S.A.S.\",\n\"IPS MARIA DEL MAR S.A.S\",\n\"IPS MARIA PAZ DEL CESAR S.A.S\",\n\"IPS MAS SALUD SAS\",\n\"IPS MECAS SALUD DOMICILIARIA SAS\",\n\"IPS MEDCARE DE COLOMBIA S.A.S.\",\n\"IPS MEDICALFISIO SAS\",\n\"IPS MEDICAMENTOS & EQUIPOS COLOMBIA S.A.S\",\n\"IPS MEDICINA DOMICILIARIA DE LA COSTA S.A.S\",\n\"IPS MEDICINA ESPECIALIZADA DEL RIESGO EN SALUD DEL SUR SAS\",\n\"IPS MEDICINA VITAL LTDA\",\n\"IPS MEDICOR\",\n\"IPS MEDIDENT LIFE\",\n\"IPS MEDIFARMA S.A.S\",\n\"IPS MEDIGROUP SAS\",\n\"IPS MI CASA MI HOSPITAL AGENCIA BARRANQUILLA\",\n\"IPS MI CASA MI HOSPITAL DE LA SABANA SAS\",\n\"IPS MI SALUD EN CASA SAS\",\n\"IPS MORILLO ODONTOLOGOS\",\n\"IPS MOUNT - SINAI SAS\",\n\"IPS MUNICIPAL DE IPIALES E.S.E.\",\n\"IPS NUESTRA SEÑORA DE LAS MISERICORDIAS LTDA\",\n\"IPS NUEVA TOTAL SALUD SAS\",\n\"IPS NUEVO AMAZONAS S.A.S\",\n\"IPS NUEVO HORIZONTE MOMPOX\",\n\"IPS NUEVO HORIZONTE S.A.S\",\n\"IPS NUEVO MILENIO S.A.S\",\n\"IPS ODONTOANGEL SAS\",\n\"IPS ODONTOLOGICA SANTA MARIA S.A.S\",\n\"IPS OLAM SAS\",\n\"IPS ÓPTICAS OPTILUZ DE COLOMBIA VISION CENTER\",\n\"IPS OSTEOSALUD DEL CAUCA SAS\",\n\"IPS OXI CARE S.A.S\",\n\"IPS PALENQUE DE TOROBE S.A.S.\",\n\"IPS PARAISO S.A.S.\",\n\"IPS PASTO ESPECIALIDADES SAS\",\n\"IPS PEDIATRICA PASTOR Y MARIA S.A.S.\",\n\"IPS PEREZ RADIOLOGOS S.A.S.\",\n\"IPS PORTOSALUD S.A.S.\",\n\"IPS PREVENSALUD DE LA COSTA S.A.S.\",\n\"IPS PROFSALUD S.A.S.\",\n\"IPS PRONTO SALUD LTDA\",\n\"IPS PROSVISALUD EU\",\n\"IPS PROVIMA\",\n\"IPS PSICOSOCIAL LTDA.\",\n\"IPS PSICOTERAPEUTICO Y REEDUCATIVO SAN RAFAEL SAS / IPS P R SAN RAFAEL SAS\",\n\"IPS PUENTE DEL MEDIO\",\n\"IPS PUNTO VITAL SAS\",\n\"IPS RAFAEL MACIAS PAJARO OFTALMOLOGO SAS\",\n\"IPS REHABILICOP S.A.S\",\n\"IPS REHABILITACION INTEGRAL MARTA OMAÑA ASOCIADOS S.A.S\",\n\"IPS REHABILITACION INTEGRAL SANAR S.A.S\",\n\"IPS REHABILITAMOS SAS\",\n\"IPS REHABILITAR NUESTRA SEÑORA DE FATIMA S.A.S.\",\n\"IPS REPRESENTACIONES MEDISUCRE LTDA\",\n\"IPS SALUD A TU LADO SAS\",\n\"IPS SALUD ANTIOQUIA LTDA\",\n\"IPS SALUD INTEGRAL DE SUCRE LTDA.\",\n\"IPS SALUD INTEGRAL H&B S.A.S.\",\n\"IPS SALUD INTEGRAL PREVENTIVA SAS\",\n\"IPS SALUD INTEGRAL SAMPUES LIMITADA\",\n\"IPS SALUD INTEGRAL Y MEDICINA LABORAL SAS\",\n\"IPS SALUD MEDICAL S.A.S.\",\n\"IPS SALUD MENTAL MONTE SINAI SAS\",\n\"IPS SALUD PARA SUCRE SAS\",\n\"IPS SALUD PLENA LTDA\",\n\"IPS SALUD PROTEGIDA\",\n\"IPS SALUD SANTUARIO LIMITADA\",\n\"IPS SALUD SIN LIMITES S.A.S\",\n\"IPS SALUD SOCIAL LTDA\",\n\"IPS SALUD SOCIAL TOLU SAS\",\n\"IPS SALUD UNIVERSAL LTDA\",\n\"IPS SALUD Y BIENESTAR, PROMOCIÓN, PREVENCIÓN Y REHABILITACIÓN S.A.S.\",\n\"IPS SALUD Y VIDA DEL LLANO SAS\",\n\"IPS SALUDABLE MEDICA S.A.S\",\n\"IPS SALUDENT S.A.S.\",\n\"IPS SALVAR 24H SAS\",\n\"IPS SAMYSALUD SAS\",\n\"IPS SAN AGUSTIN S.A.S\",\n\"IPS SAN GABRIEL AY TERAPIAS E.U.\",\n\"IPS SAN JOSE DE SUCRE SUCRE LTDA\",\n\"IPS SAN JOSE E. U.\",\n\"IPS SAN JOSE SABANALARGA E.U\",\n\"IPS SAN MARCOS DE LEON NORTE S.A.S\",\n\"IPS SAN MIGUEL SAS\",\n\"IPS SAN SEBASTIAN LTDA\",\n\"IPS SANFRANCISCO DE MOMPOS LTDA\",\n\"IPS SANTA CATALINA S.A.S\",\n\"IPS SANTA MARIA DE JESUS LTDA\",\n\"IPS SANTA SOFIA DEL TOLIMA S.A.S\",\n\"IPS SANTA TERESA DE JESUS Y CIA LTDA\",\n\"IPS SEÑOR DE LOS MILAGROS SBA SAS\",\n\"IPS SERVI SALGAR E.U\",\n\"IPS SERVICIO FARMACEUTICO SAN ANDRES S.A.S\",\n\"IPS SERVICIOS INTEGRALES DE SALUD PREFERENCIAL S.A.S\",\n\"IPS SERVICIOS MEDICOS INTEGRALES DEL NORTE\",\n\"IPS SERVIDOENSALUD S.A.S.\",\n\"IPS SERVIMED SAS\",\n\"IPS SEVISALUD S.A.S\",\n\"IPS SOLUCIONES MEDICAS EN SALUD S.A.S\",\n\"IPS SOY TU SALUD LTDA\",\n\"IPS SU SALUD NACE AQUI SAS (IPS SUSANA SAS)\",\n\"IPS TERAPIAS INTEGRALES DOMICILIARIAS S.A.S\",\n\"IPS TOLUSALUD LTDA\",\n\"IPS TORREMOLINA\",\n\"IPS TOTAL REHABILITATION\",\n\"IPS UN NUEVO AMANECER S.A.S.\",\n\"IPS UNIDAD MEDICA ESPECIALIZADA LIMITADA\",\n\"IPS UNIDAD MEDICA GASTRICA S.A.S UNIMEGAS\",\n\"IPS UNIDAD MEDICA INTEGRAL DE LA MOJANA\",\n\"IPS UNIDAD MEDICA SANTANA S.A.S\",\n\"IPS UNIDAD PEDIÁTRICA INTEGRAL\",\n\"IPS UNIDAD RENAL DEL SARARE SAS\",\n\"IPS UNIDOS POR EL MAÑANA\",\n\"IPS UNIONSALUD SAS\",\n\"IPS VALLE DE SAN NICOLAS LTDA\",\n\"IPS VIDA PLENA S.A.S\",\n\"IPS VISION CARIBE EI SAS\",\n\"IPS VITAL MEDICAL CENTER\",\n\"IPS VITAL SALUD S.A.S\",\n\"IPS VITASALUD S.A.S\",\n\"IPS WM BIENESTAR INTEGRAL SAS\",\n\"IPS-CLINICA BETEL S.A.S.\",\n\"IPS-I ASOCIACION DE CABILDOS DE GUACHUCAL Y COLIMBA\",\n\"IPSI AYUULEEPALA WAYUU\",\n\"IPSI CASA INDIGENA MARCELO RAMIREZ\",\n\"IPSI CENTRO EPIDEMIOLOGICO Y DE SALUD INTEGRAL JEKEET AKUAITA\",\n\"IPS-I DEL PUEBLO INGA EN APONTE\",\n\"IPSI EITERRA JAWAPIA\",\n\"IPSI EIYAJAA WANULU\",\n\"IPSI KARAQUITA\",\n\"IPSI MAYALERO\",\n\"IPSI OUTAJIAPALA\",\n\"IPSI PALAIMA\",\n\"IPSI SIKUASO\",\n\"IPSI SOL WAYUU\",\n\"IPSI SUPULA WAYUU\",\n\"IPSI WAYUU ANASHII\",\n\"IPSI WAYUU TALATSHI\",\n\"IPSI ANASHANTA SUPUSHUAYA\",\n\"IPS SANAR SALUD SAS\",\n\"IPS SAN FELIPE\",\n\"IQ INTERQUIROFANOS S.A\",\n\"IV NIVEL S.A\",\n\"JAIBANA IPS SAS\",\n\"JD SUMINISTROS MEDICOS IPS S.A.S\",\n\"JDN MEDICAL IPS SAS\",\n\"JERLAB IPS SAS\",\n\"JERSALUD SAS\",\n\"JESUS MISERICORDIOSO IPS LTDA\",\n\"JL DISTRISALUD IPS SAS\",\n\"JM CONSULTING HEALTHCARE S.A.S\",\n\"JOFECAD SAS\",\n\"JOHNSON & JOHNSON DE COLOMBIA SA\",\n\"JUNICAL MEDICAL S.A.S.\",\n\"KAMEX FISIOTERAPIA SAS\",\n\"KAMEX INTENACIONAL S.A\",\n\"KANKUAMA IPS-I\",\n\"KARDIUP SAS\",\n\"KARISALUD IPS LTDA.\",\n\"KINETIKA REHABILITACIÓN DEL MOVIMIENTO S.A.S.\",\n\"LA NUEVA IPS SIN FRONTERAS EU\",\n\"LABORATAORIO CLINICO LUIDINA TELLEZ PEREZ SOCIEDAD LIMITADA\",\n\"LABORATEST S.A.S.\",\n\"LABORATORIO ABBA CLINICO MICROBIOLOGICO E INDUSTRIAL LTDA\",\n\"LABORATORIO BIOANALISIS SAS\",\n\"LABORATORIO BIOCLÍNICO AUTOMATIZADO EXAMINAR IPS S.A.S\",\n\"LABORATORIO BIOCLINICO L&E S.A.S\",\n\"LABORATORIO BIOCLINICO LUIS CARLOS ANDRADE CASTILLO E.U.\",\n\"LABORATORIO BIOIMAGEN SOCIEDAD LIMITADA\",\n\"LABORATORIO CARDIOVASCULAR LTDA\",\n\"LABORATORIO CENTRAL DEL HUILA S.A.S.\",\n\"LABORATORIO CITOLÓGICO Y PATOLÓGICO URABÁ S.A.S.\",\n\"LABORATORIO CLINICA DE VARICES S.A.S\",\n\"LABORATORIO CLINICO ACACIAS IPS SAS\",\n\"LABORATORIO CLINICO AHB SANFORD S.A.S\",\n\"LABORATORIO CLINICO ANA-MED LTDA\",\n\"LABORATORIO CLINICO AUTOMATIZADO M.P.R LIMITADA\",\n\"LABORATORIO CLÍNICO BACTERIOLÓGICO FLEMING DE MAGANGUÉ EU.\",\n\"LABORATORIO CLINICO BACTERIOLOGICO PROVILAB\",\n\"LABORATORIO CLINICO BIOANÁLISIS S.A.S\",\n\"LABORATORIO CLINICO BIODIAGNOSTICO DEL CARIBE SAS\",\n\"LABORATORIO CLINICO BIOLAB SAS\",\n\"LABORATORIO CLINICO BIOLUZ\",\n\"LABORATORIO CLÍNICO CEIMLAB\",\n\"LABORATORIO CLINICO CELSALUD\",\n\"LABORATORIO CLINICO CENTRAL LTDA\",\n\"LABORATORIO CLINICO CHICAMOCHA SAS\",\n\"LABORATORIO CLINICO CITISALUD S.A.S.\",\n\"LABORATORIO CLINICO CLARET ARIÑO GARCIA SAS\",\n\"LABORATORIO CLINICO COMPAC SAS\",\n\"LABORATORIO CLINICO CONTINENTAL S.A.S\",\n\"LABORATORIO CLINICO CORREAL ZUÑIGA S.A.S.\",\n\"LABORATORIO CLINICO CRISTIAM GRAM IPS S.A.S\",\n\"LABORATORIO CLINICO DE CITOLOGIA Y PATOLOGIA S.A.S.\",\n\"LABORATORIO CLINICO DIAGNOSIS\",\n\"LABORATORIO CLINICO DRA YASMIN MOVILLA PARDO E. U.\",\n\"LABORATORIO CLINICO EDUARDO FERNÁNDEZ DAZA SAS\",\n\"LABORATORIO CLINICO ESPECIALIZADO EDGAR GAVIRIA LTDA\",\n\"LABORATORIO CLINICO ESPECIALIZADO FORD LTDA\",\n\"LABORATORIO CLINICO ESPECIALIZADO HUMALIB SAS\",\n\"LABORATORIO CLINICO ESPECIALIZADO LIMITADA\",\n\"LABORATORIO CLINICO ESPECIALIZADO LTDA\",\n\"LABORATORIO CLINICO ESPECIALIZADO MUESTRAMED\",\n\"LABORATORIO CLINICO ESPECIALIZADO UNIBAC S.A.S.\",\n\"LABORATORIO CLINICO ESPECIALIZADO YAMINA LUZ CUMPLIDO ROMERO E.U\",\n\"LABORATORIO CLINICO EUMELIA BARON C. IPS LTDA\",\n\"LABORATORIO CLINICO FALAB S.A.S.\",\n\"LABORATORIO CLÍNICO GENESIS DEL CARIBE LTDA\",\n\"LABORATORIO CLINICO GUESLAB IPS SAS\",\n\"LABORATORIO CLINICO ISABEL CURIEL S.A.S\",\n\"LABORATORIO CLINICO KHENEYZIR FAYAD LTDA\",\n\"LABORATORIO CLINICO LDH S.A.S\",\n\"LABORATORIO CLINICO MARCELA HOYOS RENDON S.A.S\",\n\"LABORATORIO CLINICO MARTHA DUSSAN Y CIA LTDA\",\n\"LABORATORIO CLINICO MARTINEZ SAS\",\n\"LABORATORIO CLINICO MICROBIOLOGICO YEXENIA OVALLE\",\n\"LABORATORIO CLINICO MLH S.A.S\",\n\"LABORATORIO CLINICO PASTEUR DE VALLEDUPAR S.A.S.\",\n\"LABORATORIO CLINICO PATOLOGICO LOPEZ CORREA S.A\",\n\"LABORATORIO CLINICO PROCESAR IPS SAS\",\n\"LABORATORIO CLINICO SAN JOSE DE AYAPEL IPS SAS\",\n\"LABORATORIO CLINICO SANTA LUCIA IPS S.A.S.\",\n\"LABORATORIO CLINICO SARA ISABEL MARIÑO PUERTO E U\",\n\"LABORATORIO CLINICO SISTEMATIZADO LIMITADA\",\n\"LABORATORIO CLINICO TOVAR SALAZAR E.U\",\n\"LABORATORIO CLINICO VIDA\",\n\"LABORATORIO CLINICO VIVIAN RAMIREZ IPS SAS\",\n\"LABORATORIO CLÍNICO YOLANDA LASTRA DE TROUT S.A.S.\",\n\"LABORATORIO DE CITOLOGIA Y PATOLOGIA DEL TOLIMA S.A.S.\",\n\"LABORATORIO DE ESPECIALIDADES CLINIZAD S.A.S\",\n\"LABORATORIO DE HISTOCITOPATOLOGIA LTDA\",\n\"LABORATORIO DE INVESTIGACION HORMONAL LIH S.A.\",\n\"LABORATORIO DE ORTESIS Y PROTESIS GILETE Y CIA. LIMITADA\",\n\"LABORATORIO DE OTONEUROLOGIA - INSTITUTO NACIONAL DE OTOLOGIA GARCIA GOMEZ SAS\",\n\"LABORATORIO DE PATOLOGIA DR. MOISES FELIZZOLA SAS\",\n\"LABORATORIO DE PATOLOGIA Y CITOLOGIA ALHUMED LIMITADA.\",\n\"LABORATORIO DE PATOLOGÍA Y CITOLOGÍA CITOSALUD SAS\",\n\"LABORATORIO DE PATOLOGIA Y CITOLOGIA LIMITADA LAPACI\",\n\"LABORATORIO DIAGNOSTICAMOS SAS\",\n\"LABORATORIO ESPECIALIZADO MARYBEL ROJAS BARRETO SAS\",\n\"LABORATORIO HARPER LTDA\",\n\"LABORATORIO HORMONAL DE NARIÑO\",\n\"LABORATORIO LORENA VEJARANO SAS\",\n\"LABORATORIO MEDICO ECHAVARRIA SAS\",\n\"LABORATORIO QUIMICO CLINICO SAS\",\n\"LABORATORIO SURCOLOMBIANO LTDA SURCOLABI IPS\",\n\"LABORATORIOS ASOCIADOS SAS\",\n\"LABORATORIOS NANCY FLOREZ GARCIA S.A.S\",\n\"LABORATORIOS TIMBIQUI S.A.S\",\n\"LABSALUD IPS SAS\",\n\"LABVY S.A.S\",\n\"LAFONT ENCASA IPS\",\n\"LASER CENTER S.A\",\n\"LASER REFRACTIVO DE CALDAS S.A. - CLINICA OFTALMOLOGICA DEL CAFE\",\n\"LATIDOS\",\n\"LCH REHABILITACION S.A.S\",\n\"LESPAT E.A.T.\",\n\"LH SAS\",\n\"LIFE CARE AMBULANCIAS S.A.S\",\n\"LIGA COLOMBIANA CONTRA EL CÁNCER\",\n\"LIGA COLOMBIANA CONTRA EL INFARTO Y LA HIPERTENSION ARTERIAL\",\n\"LIGA CONTRA EL CANCER CAPITULO GIRARDOT\",\n\"LIGA CONTRA EL CANCER CAPITULO MAICAO\",\n\"LIGA CONTRA EL CANCER DEL QUINDIO QUINDICANCER\",\n\"LIGA CONTRA EL CANCER SECCIONAL HUILA\",\n\"LIGA CONTRA EL CANCER SECCIONAL RISARALDA\",\n\"LIGA CONTRA EL CÁNCER SECCIONAL SUCRE\",\n\"LIGA CORDOBESA CONTRA LA EPILEPSIA\",\n\"LIGA NORTE SANTANDEREANA DE LUCHA CONTRA EL CANCER\",\n\"LIMEQ SAS\",\n\"LINE TOUR EXPRESS SAS\",\n\"LINEA INTERNACIONAL DSALUD S.A.S\",\n\"LINEA VIVA MEDICAL SAS\",\n\"LINEAS AEREAS DEL NORTE DE SANTANDER LANS SAS\",\n\"LITOMEDICA DE LA COSTA LTDA\",\n\"LITOMEDICA S.A\",\n\"LITOPRADO SAS\",\n\"LITOTRICIA S.A.\",\n\"LLABORATORIO CLINICO ESTHER JUDITH HABEYCH Y CIA. S. EN C.\",\n\"LLANO SMILE S.A.S\",\n\"LM ODONTOCENTER SAS\",\n\"LOGISTICA PARA DISPOSITIVOS MEDICOS SAS\",\n\"LOH ENTERPRISES COLOMBIA SAS\",\n\"LOS COMUNEROS HOSPITAL UNIVERSITARIO DE BUCARAMANGA\",\n\"LOSCOBOS MEDICAL CENTER SAS\",\n\"LUNGAVITA S.A\",\n\"LUZ BETANIA MOSQUERA MOSQUERA\",\n\"LUZ-CERO I.P.S. S.A.S\",\n\"M&S SOLUTIONS SAS\",\n\"MAGDA LUCERO MOLINA URON, SOLUCIONES DENTALES EU.\",\n\"MAGDA-SALUD IPS S.A.S.\",\n\"MAGNA SALUD SAS\",\n\"MAKUSHAMA SALUD IPS SAS\",\n\"MANANTIAL DE VIDA MEDICINA BIOLOGICA S.A.S.\",\n\"MANOS UNIDAS PARA EL FUTURO IPS S.A.S\",\n\"MAPLE RESPIRATORY IPS SAS\",\n\"MARCAZSALUD RC S.A.S\",\n\"MARIA CONCEPCION IPS\",\n\"MARIA DE JESUS IPS S.A.S.\",\n\"MARIA RUBIO CARDOZA E.U\",\n\"MAS SALUD INTEGRAL IPS S.A.S\",\n\"MAS SALUD IPS LIMITADA\",\n\"MAS SALUD IPS SAS\",\n\"MAS SALUDABLE S.A.S.\",\n\"MASSALUD O.A S.A.S.\",\n\"MASTER SALUD TERAPIAS INTEGRADAS S.A.S.\",\n\"MASVIDA DE LA COSTA S.A.S\",\n\"MAXISCAN 3D SAS\",\n\"MAYOR MEDICA SERVICIOS FARMACEUTICOS S.A.S\",\n\"ME & CAS I.P.S S.A.S\",\n\"MEDCORE SAS\",\n\"MEDDYZ DEL NORTE IPS SAS\",\n\"MEDEXIS S.A.S\",\n\"MEDI VIDA IPS S.A.S\",\n\"MEDIAGNOSTICA TECMEDI TECNOLOGIA MEDICA DIAGNOSTICA S.A.S\",\n\"MEDIALCO ZONA FRANCA S.A.S\",\n\"MEDIALFA S.A.S\",\n\"MEDIC S.A.S\",\n\"MEDIC SALUD HOME CARE SAS\",\n\"MEDICA MAGDALENA SAS\",\n\"MEDICADIZ S.A.S\",\n\"MEDICAL ARMONY LIMITADA\",\n\"MEDICAL CENTER SAS\",\n\"MEDICAL CORPORATION S.A.S\",\n\"MEDICAL DUARTE ZF S.A.S\",\n\"MEDICAL GLOBAL CENTER SAS\",\n\"MEDICAL HEALTH CARE IPS S.A.S.\",\n\"MEDICAL HEALTH IPS SAS\",\n\"MEDICAL HELP IPS S.A.S\",\n\"MEDICAL HOME CARE - MHC S.A.S\",\n\"MEDICAL HOMECARE S.A.S.\",\n\"MEDICAL LAB IPS SAS\",\n\"MEDICAL LEGAL CONSULTING LTDA SIGLA MEDICAL L. LTDA\",\n\"MEDICAL P-DROZ FLORENCIA S.A.S.\",\n\"MEDICAL SKY SAS IPS\",\n\"MEDICAL STORE\",\n\"MEDICAL UROS IPS TOLIMA S.A.S\",\n\"MEDICALL GROUP EREC S.A.S\",\n\"MEDICALL SOLUTIONS MC SAS\",\n\"MEDICALROOMSERVICES MRS SAS\",\n\"MEDICAMBULANCIAS S.A.S.\",\n\"MEDICAMENTOS ESPECIALIZADOS S.A.S\",\n\"MEDICAMENTOS GENÉRICOS Y DE MARCA MEDIGEM SAS\",\n\"MEDICAMENTOS POS S.A.\",\n\"MEDICAR IPS LLANOS ORIENTALES SAS\",\n\"MEDICARDIOLAB SAS\",\n\"MEDICARE IPS S.A.S\",\n\"MEDI-CARE LIMITADA\",\n\"MEDICARTE S.A.S\",\n\"MEDICAUCA LTDA.\",\n\"MEDICAVITAL S.A.S\",\n\"MEDICCOL I.P.S.S.A.S.\",\n\"MEDICED IPS S.A.S\",\n\"MEDICENTER ESPECIALIZADO LTDA\",\n\"MEDICENTER IPS -EU\",\n\"MEDICENTER SU SALUD IPS SAS\",\n\"MEDICHOCO IPS S.A.S\",\n\"MEDICINA 2000 S.A.S.\",\n\"MEDICINA ALTA COMPLEJIDAD S.A\",\n\"MEDICINA AMBULATORIA DOMICILIARIA SU SALUD S.A.S SIGLA MADSS\",\n\"MEDICINA DE REHABILITACIÓN Y ELECTRODIAGNÓSTICO SAS\",\n\"MEDICINA DOMICILIARIA DE COLOMBIA SAS\",\n\"MEDICINA EN ACCION I.P.S. COLOMBIA S.A.S\",\n\"MEDICINA HERNANDEZ LTDA\",\n\"MEDICINA INTEGRAL DE ESPECIALIDADES MEIDE SAS\",\n\"MEDICINA INTEGRAL DEL CAQUETA IPS SAS\",\n\"MEDICINA INTEGRAL DEL CARIBE SAS\",\n\"MEDICINA INTEGRAL EN CASA COLOMBIA S.A.S. AGENCIA PEREIRA\",\n\"MEDICINA INTEGRAL IPS\",\n\"MEDICINA INTEGRAL MIKEL S.A.S.\",\n\"MEDICINA INTEGRAL S.A.\",\n\"MEDICINA INTENSIVA DEL TOLIMA S.A.\",\n\"MEDICINA MATERNO-FETAL INTEGRAL DE COLOMBIA S.A.S.\",\n\"MEDICINA NUCLEAR DE BOGOTA S.A.S\",\n\"MEDICINA NUCLEAR DE BOYACÁ S.A.S.\",\n\"MEDICINA NUCLEAR DIAGNOSTICA S.A.S.\",\n\"MEDICINA NUCLEAR SA\",\n\"MEDICINA Y TECNOLOGIA EN SALUD S.A.S\",\n\"MEDICINA Y TERAPIAS DOMICILIARIAS S.A.S.\",\n\"MEDICINAS Y TERAPIAS, ATENCION DOMICILIARIA MEDITAD IPS S.A.S.\",\n\"MEDICIPS S.A.S\",\n\"MEDICLINICA SOLUCIONES INTEGRALES EN SALUD IPS S.A.S\",\n\"MEDICLINICOS IPS S.A.S\",\n\"MEDICO S.O.S S.A.S\",\n\"MEDICOLAB IPS EU\",\n\"MEDICOOP IPS LTDA\",\n\"MEDICOS ASOCIADOS S A\",\n\"MEDICOS ESPECIALISTAS UNIDOS SAS - MEDISUN SAS\",\n\"MEDICOS RADIOLOGOS DEL QUINDIO SA\",\n\"MEDICOS Y AUDITORES ASISTENCIA DOMICILIARIA SAS\",\n\"MEDICSALUD IPS S.A.S\",\n\"MEDICUC IPS LTDA\",\n\"MEDIFACA IPS S.A.S\",\n\"MEDIFORT IPS\",\n\"MEDIGLOBAL IPS SAS\",\n\"MEDIHELP SERVICES COLOMBIA\",\n\"MEDIHUMANA COLOMBIA S A\",\n\"MEDIIMPLANTES SA\",\n\"MEDILAB I.P.S SERVICIOS INTEGRALES EN SALUD S.A.S\",\n\"MEDILAB LC S.A.S.\",\n\"MEDILAF S.A.S\",\n\"MED-IMAGENES S.A.S.\",\n\"MEDINISTROS SAS\",\n\"MEDINORTE CÚCUTA IPS S.A.S.\",\n\"MEDINUCLEAR DEL VALLE LTDA\",\n\"MEDINUCLEAR S.A.S\",\n\"MEDIPOHDS\",\n\"MEDIREX SAS\",\n\"MEDISALUD CONSULTORIAS SAS\",\n\"MEDISALUD DEL CARIBE S.A.S\",\n\"MEDISALUD MEDICINA EN CASA IPS SAS\",\n\"MEDISALUD MONTERIA SAS\",\n\"MEDISER IPS S.A.S\",\n\"MEDISERRANO IPS S.A.S\",\n\"MEDISERSUM C&P S.A.S\",\n\"MEDISERVICIOS S.A.\",\n\"MEDISFARMA S.A.S\",\n\"MEDISINU IPS SAS\",\n\"MEDITEC CALIDAD EN SALUD SAS\",\n\"MEDIVALLE SF SAS\",\n\"MEDLIFE IPS SAS\",\n\"MEDTRONIC COLOMBIA SA\",\n\"MEDYDONT IPS\",\n\"MEDYREH INTEGRAL SAS\",\n\"MEDYSER IPS SAS\",\n\"MEDYTECH INTERNACIONAL LIMITADA\",\n\"MEGASALUD IPS SAS\",\n\"MEIN SALUD I.P.S LTDA\",\n\"MEINTEGRAL S.A.S\",\n\"MEJIA CUBIDES Y CIA S. EN C.\",\n\"MEJORSALUD LTDA\",\n\"MESALUD LTDA\",\n\"MESSER COLOMBIA S.A.\",\n\"MEVA-SALUD S.A.S\",\n\"MEVSALUD IPS S.A.S.\",\n\"MG GASTRO S.A.S.\",\n\"MG MEDICAL GROUP SAS\",\n\"MI ATENCION INTEGRAL S.A.S. IPS\",\n\"MI HUELLA DE PAZ IPS SAS\",\n\"MI IPS SAS\",\n\"MICROANALISIS LTDA\",\n\"MIRED BARRANQUILLA IPS S.A.S.\",\n\"MISION MEDICA S.A.S.\",\n\"MISIÓN SALUD DEL SINÚ IPS\",\n\"MNG ODONTOLOGICA POPAYÁN S.A.S\",\n\"MOGOTAX SAS\",\n\"MOLAR CLINICA ODONTOLOGICA SAS\",\n\"MONSALUD LTDA\",\n\"MOVAVID SAS\",\n\"MRM-TECH SAS\",\n\"MUJER SANA AUGUSTO ANAYA S.A.S\",\n\"MULTI ETNICA REGIONAL SAS\",\n\"MULTI IMÁGENES MÉDICAS S.A.S\",\n\"MULTI MOVE SAS\",\n\"MULTISALUD LIMITADA\",\n\"MULTISANITAS I.P.S. SAS\",\n\"MUNDO RADIOLOGICO SAS\",\n\"MVC INVERSIONES\",\n\"MYCAR IPS SAS\",\n\"N&T IMAGENES Y ESPECIALISTAS S.A.S\",\n\"NACERSANO S.A.S\",\n\"NACIONAL DE SALUD IPS SAS\",\n\"NASCERE.SAS\",\n\"NATIONAL CLINICS CENTENARIO SAS\",\n\"NEFROBOYACA SAS\",\n\"NEFRODIAL SAS\",\n\"NEFROLOGOS ASOCIADOS SAS\",\n\"NEFROLOGOS PEDIATRAS DEL CARIBE SAS\",\n\"NEFRON S.A.S.\",\n\"NEFROSERVICIOS S.A.S\",\n\"NEFROUROS MOM SAS\",\n\"NEO SALUD SAS\",\n\"NEONATOLOGOS DE SUCRE LIMITADA\",\n\"NEOVID SAS\",\n\"NEUMOCENTER S.A.S\",\n\"NEUMOCESAR S.A.S\",\n\"NEUMOLOGIA Y SERVICIOS DE REHABILITACION S.A.S\",\n\"NEUMOVIDA CALDAS S.A.S.\",\n\"NEUMOVIDA S.A.S.\",\n\"NEUROAVANCES S.A.S\",\n\"NEUROAXONAL SOCIEDAD POR ACCIONES SIMPLIFICADA\",\n\"NEUROCAD SAS\",\n\"NEUROCENTRO LTDA\",\n\"NEUROCESAR SAS\",\n\"NEUROCLINICA INTEGRAL S.A.S\",\n\"NEUROCOOP REHABILITACION FISICA Y MEDICA INTEGRAL\",\n\"NEUROCOUNTRY PORTOAZUL SAS\",\n\"NEURODIAGNOSTICO DEL OCCIDENTE S.A.S.\",\n\"NEURODINAMIA S.A\",\n\"NEUROELECTRODIAGNOSTICO SH DEL LLANO SAS\",\n\"NEUROFIC LTDA CENTRO NEUROFISIOLOGICA CLINICA\",\n\"NEUROLOGIA INTEGRAL DE CALDAS S.A.S\",\n\"NEUROLOGICA SANTA CLARA E.U.\",\n\"NEUROMED IPS S.A.S\",\n\"NEUROMEDICA SAS\",\n\"NEURONABEBE SAS\",\n\"NEURONAS S.A.S\",\n\"NEUROSER IPS S.A.S.\",\n\"NEUROSPINE S.A.S\",\n\"NEUROTRAUMA CENTER & CUIDAMED S.A.S\",\n\"NEUROXTIMULAR SAS IPS\",\n\"NEW CARE SERVICE SAS SOCIEDAD POR ACCIONES SIMPLIFICADA\",\n\"NIMIXX SOCIEDAD POR ACCIONES SIMPLIFICADA SAS\",\n\"NORCERF S.A.S.\",\n\"NORDVITAL IPS S.A.S.\",\n\"NORTE SALUD S.A.\",\n\"NOVADEN ODONTOLOGIA ESPECIALIZADA IPS SAS\",\n\"NOVASALUD CARIBE IPS SA\",\n\"NP MEDICAL IPS SAS\",\n\"NUCLEAR SAN JOSE S.A.\",\n\"NUCLEODIAGNOSTICO LTDA\",\n\"NUESTRA I.P.S S.A.S\",\n\"NUESTRO BIENESTAR IPS SAS\",\n\"NUEVA CLÍNICA COROZAL S.A.S\",\n\"NUEVA CLINICA DE SANTO TOMAS S.A.S.\",\n\"NUEVA CLÍNICA EL BARZAL S.A.S\",\n\"NUEVA CLINICA RIOHACHA SAS\",\n\"NUEVA CLINICA SAGRADO CORAZON S.A.S\",\n\"NUEVA EMPRESA SOCIAL DEL ESTADO HOSPITAL DEPARTAMENTAL SAN FRANCISCO DE ASÍS\",\n\"NUEVA EMPRESA SOCIAL DEL ESTADO HOSPITAL LA MISERICORDIA\",\n\"NUEVA ESE HOSPITAL SAN RAFAEL JERICO\",\n\"NUEVA IPS OPTICA DEL ORIENTE S.A.S\",\n\"NUEVA SALUD INTEGRAL IPS SAS\",\n\"NUEVA VIDA SERVICIOS INTEGRALES LTDA\",\n\"NUEVO HOSPITAL LA CANDELARIA\",\n\"O POSITIVA SALUD INTEGRAL TULUA S.A.S\",\n\"O2VITAL S.A.S\",\n\"OBED SALUD IPS S.A.S\",\n\"OBSTETRICIA & GINECOLOGIA LIMITADA PERO PODRA UTILIZAR LA SIGLA O&G LTDA\",\n\"OCCIDENTAL DE INVERSIONES MEDICO QUIRURGICAS S.A.\",\n\"OCULASER - CENTRO DE ESPECIALIDADES OFTALMOLOGICAS S.A.S.\",\n\"OCUPASALUD S.A.S\",\n\"ODONSERVIS EU\",\n\"ODONT JOMAR VALLEDUPAR\",\n\"ODONTO ESTETIC S.A.S\",\n\"ODONTO SPLENDOR SAS\",\n\"ODONTOCAUCA S.A.S\",\n\"ODONTOCLASS I.P.S. E.U.\",\n\"ODONTOCLINICAS MR S.A.\",\n\"ODONTOCUCUTA S.A\",\n\"ODONTODIAGNOSTICO S.A.S\",\n\"ODONTOIMAGENES DE LA SABANA S.A\",\n\"ODONTOLASER CLINICA S.A.S.\",\n\"ODONTOLOGIA AIDA DEL SOCORRO PEDRAZA LEMA E.U\",\n\"ODONTOLOGIA ESPECIALIZADA COLOMBIANA CLINICAS DENTALES S.A.\",\n\"ODONTOMEDIC IPS SAS\",\n\"ODONTOMEDICA DEL PATIA S.A.S.\",\n\"ODONTO-MEDICINA SERVIR - CENTRO DE RECONOCIMIENTO DE CONDUCTORES LIMITADA\",\n\"ODONTOMEDICOS GRIJALBA SAS\",\n\"ODONTOPASTO SAS\",\n\"ODONTOPLUSR&O LTDA\",\n\"ODONTOVIDA SAS\",\n\"ODONTS CENTER LTDA\",\n\"OFFIMEDICAS S.A.\",\n\"OFTAL CENTER I.P.S. LTDA.\",\n\"OFTALMODIAGNOSTICO S.A.S\",\n\"OFTALMOLASER - SOCIEDAD DE CIRUGIA DEL HUILA S.A\",\n\"OFTALMOLOGIA DE ALTA TECNOLOGÍA SAS\",\n\"OFTALMOLOGOS ASOCIADOS DE LA COSTA SAS\",\n\"OFTALMOLOGOS ASOCIADOS S.A.S.\",\n\"OFTALMOS S.A.\",\n\"OFTALMOSALUD\",\n\"OFTALMOSALUD CARTAGENA SAS IPS\",\n\"OFTALMOSANITAS CALI SAS\",\n\"OFTALMOSANITAS SAS\",\n\"OFTALMOSERVICIOS IPS S.A.S.\",\n\"OFTAMAR SAS\",\n\"OIBA SALUD LTDA\",\n\"OINSAMED S.A.S.\",\n\"OIR UNIDAD DE AUDIOLOGIA IPS S.A.S\",\n\"OLARYS RIVAS RIVAS E.U.\",\n\"OMEGA ODONTOLOGOS MEDICOS ESPECIALIZADOS Y GENERALES ASOCIADOS SAS\",\n\"ONCOLOGOS ASOCIADOS DE IMBANACO S.A.\",\n\"ONCOLOGOS ASOCIADOS DEL CARIBE SOCIEDAD ANONIMA SIMPLIFICADA\",\n\"ONCOLOGOS ASOCIADOS DEL CAUCA S.A.\",\n\"ONCOLOGOS DEL OCCIDENTE S.A.S.\",\n\"ONCOMEDIC LIMITADA\",\n\"ONCOMEDICA S.A\",\n\"ONCOMEDICAL I.P.S. S.A.S\",\n\"ONCO-ORIENTE S.A.S\",\n\"ONCOVIHDA IPS CESAR LTDA\",\n\"ONCOVIHDA MAGDALENA IPS LTDA\",\n\"OPTICA ALDANA S.A.S\",\n\"OPTICA ALEMANA EYH SCHMIDT SA\",\n\"OPTICA APOLO S A S\",\n\"OPTICA CANADA LTDA\",\n\"OPTICA CENTRAL IPS S.A.S\",\n\"OPTICA CIENTIFICA Y CIA LTDA\",\n\"OPTICA CLARAVISON SAS\",\n\"OPTICA CRISTAL EL BANCO S.A.S\",\n\"OPTICA DEL PALMAR LTDA\",\n\"OPTICA DEL SINU DR. EDGAR CANGREJO IPS SAS\",\n\"OPTICA FAMILIAR E.U.\",\n\"OPTICA FULL VISION GRUP II S.A.S\",\n\"OPTICA GERMANA PLUSS S.A.S\",\n\"OPTICA IRIS S.A.S\",\n\"OPTICA LINARES E.U.\",\n\"OPTICA SAN IGNACIO UNIDAD MOVIL LTDA\",\n\"OPTICA SANTA CLARA S.A.S\",\n\"OPTICA SOCIAL SAS\",\n\"OPTICAS DEL PACIFICO SAS\",\n\"OPTICAS ORSOVISION S.A.S.\",\n\"OPTICAS YAMPAL SAS\",\n\"OPTICOSTA EXPRESS IPS SAS\",\n\"OPTIKUS S.A.\",\n\"OPTILENTES LIMITADA\",\n\"OPTILOOK S.A.S\",\n\"OPTIMUS CENTRO DE ATENCION INTEGRAL EN SALUD SAS\",\n\"OPTIMUS HEALTH SAS\",\n\"OPTIRED SAS\",\n\"ORAL BLANCO S.A.S\",\n\"ORAL CLINIC PLUS S.A.S.\",\n\"ORAL MEDIC IPS EU\",\n\"ORAL SERVICE E U\",\n\"ORAL-GROUP S.A.S\",\n\"ORALX CUCUTA LTDA\",\n\"ORGANISMO EVALUADOR DE LA CONFORMIDAD - OEC S.A.S.\",\n\"ORGANIZACION BON SALUTIS S.A.S.\",\n\"ORGANIZACION CLINICA BONNADONA PREVENIR S.A.S.\",\n\"ORGANIZACION CLINICA GENERAL DEL NORTE\",\n\"ORGANIZACION LADMEDIS S.A.S.\",\n\"ORGANIZACION SANTA LUCIA S.A.\",\n\"ORGANIZACION VIHONCO IPS SAS\",\n\"ORGANIZACIONES DE IMAGENOLOGIA COLOMBIANA OIC SA\",\n\"ORL DEL CARIBE, SAS\",\n\"OROSALUD CAUCASIA IPS S.A.S.\",\n\"OROSALUD I. P. S LTDA\",\n\"ORTHO ESTHETIC Y SPA S.A.S\",\n\"ORTHO MEDIC S.A.S\",\n\"ORTHOPEDIC JOIN S.A.S.\",\n\"ORTHOPRAXIS S.A.S.\",\n\"ORTOCENTRAL DE COLOMBIA SAS\",\n\"ORTO-IMAGEN SERVICIOS ODONTOLOGICOS E.U.\",\n\"ORTOPEDIA INTEGRAR ISA S.A.S\",\n\"ORTOPEDIA MINIMAMENTE INVASIVA S.A.S.\",\n\"ORTOPEDICA CHAPINERO E.U.\",\n\"ORTOPEDICOS DEL PACIFICO S.A.S\",\n\"ORTOSALUD IPS\",\n\"OSDOKSALUD SERVICIOS INTEGRALES EN SALUD EU\",\n\"OSMED SAS\",\n\"OSTEOBIOMED S.A.S\",\n\"OSTEOEQUIPOS\",\n\"OSTEOHEALTH COLOMBIA SAS\",\n\"OSTEOMEDICAL SAS\",\n\"OTOCEN SAS\",\n\"OTOLOGICO S.A.S.\",\n\"OTOMED ASISTENCIA MEDICA LTDA\",\n\"OTORHINOCENTER SAS\",\n\"OTORRINOLARINGOLOGOS ASOCIADOS DE CORDOBA S.A.S\",\n\"OTTO BOCK HEALTHCARE ANDINA S.A.S\",\n\"OUTSOURCING FARMACEUTICO INTEGRAL S.A.S.\",\n\"OUTTAJIAPULEE IPSI\",\n\"OXIAYUDA SAS\",\n\"OXIGENOS DE COLOMBIA LTDA\",\n\"OXIGENOS DEL ORIENTE SAS\",\n\"OXILUZ SAS\",\n\"OXITERAPIA LIMITADA\",\n\"OXITOLIMA S.A IPS\",\n\"OXIVITAL S.A.\",\n\"OXYCENTER HOME CARE S.A.S\",\n\"PABLO EMILIO VANEGAS PLATA Y CIA LTDA\",\n\"PACIFIC HEALTH SAS\",\n\"PALERMO IMAGEN LTDA\",\n\"PANORAMA IPS SAS\",\n\"PANORAMAX LTDA\",\n\"PANOREX CEDENT S.A.S\",\n\"PARAMEDICOS S.A\",\n\"PASSUS IPS TALLER PSICOMOTRIZ S.A.S\",\n\"PASTEUR LABORATORIOS CLINICOS DE COLOMBIA S.A.S\",\n\"PATOLOGIA Y CITOLOGIA S.A.S.\",\n\"PATOLOGOS ASOCIADOS DEL MAGDALENA LTDA\",\n\"PATOLOGOS ASOCIADOS SAS\",\n\"PERFECT BODY MEDICAL CENTER LTDA\",\n\"PERINATAL CARE SAS\",\n\"PHARMASAN S.A.S.\",\n\"PHD SERVICIOS SAS\",\n\"PHILCO MEDICAL SYSTEMS SAS\",\n\"PIEL JOVEN SAS\",\n\"PIEL MEDICALSPA CENTRO DERMATOLOGICO IPS SAS\",\n\"PIEMCA SAS\",\n\"PINTO PAEZ Y CIA S EN C\",\n\"PLATINUM HEALTH GROUP IPS S.A.S\",\n\"PLENAMENTE SALUD MENTAL INTEGRAL IPS S.A.S\",\n\"PLENISALUD IPS S.A.S\",\n\"POLICLINICO CER\",\n\"POLICLINICO DEL CAFÉ S.A.S.\",\n\"POLICLINICO MAGDALENA MEDIO Y CIA LIMITADA POMA\",\n\"PORSALUD SAS\",\n\"PORTUSALUD & PREVENCION SAS\",\n\"POSMEDICA GROUP S.A.S\",\n\"POTENCIAL MAS HUMANO SAS\",\n\"PRAXIS DE COLOMBIA LTDA\",\n\"PRAXISALUD IPS SAS\",\n\"PRECEDE SALUD IPS SAS\",\n\"PREMIER INVESMENT S.A.\",\n\"PREMISALUD S.A.\",\n\"PRERENAL SAS\",\n\"PRESERVAR DEL SUR S.A.S ZOMAC\",\n\"PRESTAR SALUD IPS S.A.S\",\n\"PREVENCION INTEGRAL EN SALUD IPS S.A.S\",\n\"PREVENCION SALUD IPS LTDA.\",\n\"PREVENCION Y SALUD INTEGRAL PARA LA FAMILIA IPS LTDA\",\n\"PREVENIR EMPRESA DE SERVICIOS DE SALUD FAMILIAR IPS LTDA\",\n\"PREVENTIVA SALUD S.A.S\",\n\"PREVER MAGDALENA IPS S.A.S\",\n\"PREVICARE LTDA\",\n\"PREVIDIAGNOSTICOS (HERMANOS MARTÍNEZ GUERRA LTDA)\",\n\"PREVISALUD S.O IPS SAS\",\n\"PRISMA SALUD ORAL S.A.S.\",\n\"PRIUS SAS\",\n\"PROCARDIO CARIBE S.A.S.\",\n\"PROCARDIO SERVICIOS MEDICOS INTEGRALES S.A.S.\",\n\"PRO-DIAGNOSTICO S.A.\",\n\"PRODUCTOS HOSPITALARIOS S.A - PRO-H S-A\",\n\"PROFESIONALES DE LA SALUD S.A. PROINSALUD S.A.\",\n\"PROFESIONALES DE LA SALUD Y CIA. LTDA.\",\n\"PROFESIONALES INTEGRADOS EN SALUD I.P.S, S.A.S PROINSALUD IPS\",\n\"PROFESIONALES SALUD Y VIDA S.A.S\",\n\"PROFHARMA SALUD IPS S.A.S\",\n\"PROFIS S.A.S\",\n\"PROGRAMA DE EMERGENCIAS DE SALUD ORAL S.A.S\",\n\"PROGRAMA MADRE CANGURO INTEGRAL LTDA\",\n\"PROGRAMAS INTEGRALES EN SALUD S.A.S.\",\n\"PROJECTION LIFE COLOMBIA\",\n\"PROLATIR SAS\",\n\"PROMED QUIRURGICOS EU\",\n\"PROMOCIÓN Y PREVENCIÓN EFECTIVA IPS S.A.S\",\n\"PROMOSALUD IPS T&E S.A.S.\",\n\"PROMOTORA BOCAGRANDE S.A. PROBOCA S.A.\",\n\"PROMOTORA CLINICA ZONA FRANCA DE URABA SAS\",\n\"PROMOTORA MEDICA LAS AMERICAS S.A\",\n\"PROMOTORA MEDICA Y ODONTOLOGICA DE ANTIOQUIA S.A\",\n\"PROMOTORES DE LA SALUD DE LA COSTA S.A.S\",\n\"PROMOVER SAS\",\n\"PRONACER MEDICINA DIAGNOSTICA IPS S.A.S.\",\n\"PRONTASALUD SAS\",\n\"PRONTO SALUD IPS S.A.S.\",\n\"PRORTHOPEDICS LIMITADA\",\n\"PROSALUD CASANARE SAS\",\n\"PROSALUD IPS SAS\",\n\"PROSALUDSA SAS\",\n\"PROSEGUIR IPS REHABILITACION INTEGRAL S.A.S.\",\n\"PROTECION SALUD VITAL IPS S.A.S\",\n\"PROVIDA FARMACEUTICA SAS\",\n\"PROVIORAL S.A.S\",\n\"PROYECTAR SALUD SAS\",\n\"PS INTEGRAL S.A.S\",\n\"PSICO SALUD Y TRANSFORMACIÓN S.A.S\",\n\"PSQ S.A.S\",\n\"PUNTO VIDA IPS LTDA\",\n\"Q-SALUD S.A.S\",\n\"QUALITA IPS SALUD INTEGRAL S.A.S\",\n\"QUILISALUD E.S.E.\",\n\"QUIMIOSALUD S.A.S\",\n\"QUIROFANO CASALUD SAS\",\n\"QUIRUTRAUMAS DEL CARIBE S.A.S.\",\n\"R.E.M. IMAGENES DIAGNOSTICAS S.A.S\",\n\"R.I.O. IPS S.A. RED DE IPS?S ODONTOLOGICAS S.A.\",\n\"RADEX SAS\",\n\"RADILOGOS ASOCIADOS BARRANCABERMEJA S.A.S\",\n\"RADIOIMAGENES RADIOLOGOS ASOCIADOS S.A.S.\",\n\"RADIOLOGIA E IMAGENES SAS\",\n\"RADIOLOGIA ORAL DIGITAL COIDES LTDA.\",\n\"RADIOLOGICA S.A.S.\",\n\"RADIOLOGOS ASOCIADOS DE CORDOBA S.A.S\",\n\"RADIOLOGOS ASOCIADOS DEL BAJO SINU S.A.S.\",\n\"RADIOLOGOS ASOCIADOS DEL PACIFICO LIMITADA IPS\",\n\"RADIOLOGOS ASOCIADOS S.A.S\",\n\"RADIOLOGOS ASOCIADOS S.A.S.\",\n\"RADIOLOGOS DEL PARQUE IPS S.A.S\",\n\"RADIOLOGOS Y EQUIPOS DIAGNOSTICOS RX S.A.S\",\n\"RADIOTERAPIA DEL NORTE LTDA.\",\n\"RADIOTERAPIA ONCOLOGIA MARLY S.A\",\n\"RAFAEL BUSTAMANTE Y CIA LTDA\",\n\"RAMIRO CORREA RESTREPO S.A.S.\",\n\"RAODI SAS\",\n\"RAUL HELI CORRAL P. USIS S.A.S\",\n\"RAYMOND E.U.\",\n\"RAYOS X DE OCCIDENTE LTDA\",\n\"RAYOS X DEL HUILA S.A.S\",\n\"RAYOS X E IMAGENES DIAGNOSTICAS RADIOSALUD S.A.S\",\n\"RECUPERAMI ZOMAC S.A.S\",\n\"RECUPERAR SA IPS\",\n\"RECUPERAR TERAPIA INTEGRAL SAS\",\n\"RED DE DIAGNOSTICO MEDICO S.A. -REDIMED S.A\",\n\"RED DE SALUD DEL ORIENTE EMPRESA SOCIAL DEL ESTADO E.S.E\",\n\"RED HUMANA S.A.S.\",\n\"RED INTEGRADA SALUD COLOMBIA IPS S.A.S (REDINSALUD IPS S.A.S)\",\n\"RED MED RED MEDICA ESPECIALIZADA DE COLOMBIA S.A.S\",\n\"RED MEDICA IPS SAS\",\n\"RED SALUD ARMENIA ESE UNIDAD INTERMEDIA DEL SUR\",\n\"RED SALUD CASANARE E.S.E.\",\n\"RED SALUD INTEGRAL IPS S.A.S.\",\n\"RED VIDA SAS\",\n\"RED VITAL COLOMBIA S.A.S.\",\n\"REDES IMAT CLINICA DE FRACTURAS S.A.S.\",\n\"REGAMA DEL CARIBE LTDA\",\n\"REH@BITAR EMPRESA UNIPERSONAL\",\n\"REHABILITACION ASOCIADA DE SALUD I.P.S SAS\",\n\"REHABILITACION DIRIGIDA MEDICAMENTE REDIME LTDA.\",\n\"REHABILITACION FISICA INTEGRAL IPS EU\",\n\"REHABILITACION INTEGRAL INFANTIL ESPECIALIZADA SAS CON SIGLA RIIE SAS\",\n\"REHABILITACION INTEGRAL Y MEDICINA ESPECIALIZADA RIMED IPS S.A.S\",\n\"REHABILITACION NEUROLOGICA INFANTIL AVANZADA S.A.S.\",\n\"REHABILITACION Y DEPORTE REYDE S.A.S\",\n\"REHABILITACION Y ESTIMULACION INTEGRAL REINTEGRAL IPS S.A.S\",\n\"REHABILITADORES ASOCIADOS LTDA\",\n\"REHABILITANDO SAS\",\n\"REHABILITAR CENTRO DE REHABILITACION INTEGRAL LABOYANO I.P.S. S.A.S.\",\n\"REHABILITAR CIRP S.A.S\",\n\"REHABILITAR CON AMOR IPS SAS\",\n\"REHABILITAR CUCUTA LTDA\",\n\"REHABILITAR DE LA COSTA I.P.S. LTDA\",\n\"REHABILITAR DEL PUTUMAYO SAS\",\n\"REHABILITAR I.P.S. VILLAVICENCIO\",\n\"REHABILITAR IPS\",\n\"REHABILITAR SAS\",\n\"REHABILITAR SE SUCRE IPS S.A.S.\",\n\"REHABILITAR SUMMA GROUP S.A.S\",\n\"REHABILITDEMOS LTDA\",\n\"REHABILITEMOS PACIFICO IPS\",\n\"REHAFINT -REHABILITACION FISICA INTEGRAL IPS SAS -\",\n\"REHINTEGRAR LIMITADA\",\n\"REMY IPS S.A.S\",\n\"RENACIENDO IPS S.A.S\",\n\"RESONANCIA DE ALTA TECNOLOGIA DEL CARIBE SAS\",\n\"RESONANCIA E IMÁGENES SANTA MARIA S.A\",\n\"RESONANCIA MAGNETICA DEL COUNTRY S.A.\",\n\"RESONANCIA MAGNETICA Y TAC DE LA SABANA LTDA\",\n\"RESPIREMOS UNIDAD DE NEUMOLOGIA Y ENDOSCOPIA RESPIRATORIA DEL EJE CAFETERO S.A.S\",\n\"RESTREPO Y MEJIA CIMDER S.A.S\",\n\"REUMALAB SAS\",\n\"REUMATOLOGYA S A\",\n\"RHEUMAHELP IPS ZOMAC SAS\",\n\"RHOCAMPO S.A.S.\",\n\"RIDOC SAS RESONANCIA DE OCCIDENTE\",\n\"RIESGO DE FRACTURA S.A. CAYRE\",\n\"RIO SUR SAS\",\n\"RIRE EL ARTE DE SONREIR SAS\",\n\"ROBLE SALUD IPS ALUD\",\n\"RODIGITAL S.A.S\",\n\"ROHI IPS SAS\",\n\"ROL POSITIVO SAS\",\n\"ROSARY HEALTH CARE SAS\",\n\"RTS S.A.S\",\n\"RUAN REHACER & CIA SAS\",\n\"RUEDA G. MEDICOS ASESORES LTDA.\",\n\"RUIZ TENORIO Y CIA EN C.S.\",\n\"RVG I.P.S. SAS\",\n\"S Y D COLOMBIA SA AGENCIA .\",\n\"S Y T-MEDICOS SAS\",\n\"S.A.E. SERVICIOS AEREOS ESPECIALES GLOBAL LIFE AMBULANCIAS S.A.S\",\n\"S.O.S AMBULANCIAS IPS SAS\",\n\"SA ODONTOLOGICA IPS SAS\",\n\"SAB ESTÉTICA Y REHABILITACIÓN S.A.S\",\n\"SABANASALUD SAHAGUN S.A.S.\",\n\"SABBAG RADIOLOGOS S.A.\",\n\"SABER VIVIR SABANA SAS\",\n\"SAGRADO CORAZON IPS S.A.S\",\n\"SAIS IPS SAS IMAGENOLOGIA Y HEMODINAMIA\",\n\"SALUD 24 HORAS SAS\",\n\"SALUD A PLENITUD SAS\",\n\"SALUD A SU HOGAR IPS SAS\",\n\"SALUD A SU SERVICIO S.A.S\",\n\"SALUD ACTIVA MEDICINA ANTIHOMOTOXICA SAS\",\n\"SALUD AFRO IPS LTDA\",\n\"SALUD BET-EL IPS SAS\",\n\"SALUD CON CALIDAD LTDA\",\n\"SALUD CONTIGO S.C. IPS SAS\",\n\"SALUD DARIEN I.P.S. S.A.\",\n\"SALUD DEL MAR SAS\",\n\"SALUD DOMICILIARIA INTEGRAL DEL CARIBE S.A.S.\",\n\"SALUD DOMICILIARIA INTEGRAL SALUD & S.A.S\",\n\"SALUD ELITE S.A.S.\",\n\"SALUD EN CASA MEDICOS SAS\",\n\"SALUD ES VIVIR IPS S.A.S\",\n\"SALUD FAMILIAR ATRATO IPS LTDA\",\n\"SALUD FAMILIAR SA IPS\",\n\"SALUD HOUSE SAS\",\n\"SALUD HUMANA EMPRESA S.A.S\",\n\"SALUD INTEGRAL DE COLOMBIA IPS SAS\",\n\"SALUD INTEGRAL DEL CARMEN I.P.S. E.U.\",\n\"SALUD INTEGRAL IPS\",\n\"SALUD INTEGRAL VITAL VIDA SAS\",\n\"SALUD INTEGRAL Y RESOLUTIVA IPS S.A.S\",\n\"SALUD LLANOS IPS LTDA\",\n\"SALUD LORICA ESPECIALISTAS ASOCIADOS E.A.T. I.P.S.\",\n\"SALUD MATERNO FETAL Y REPRODUCTIVA S.A.S - SAMAFER\",\n\"SALUD MEDICOS ESPECIALISTAS S.A\",\n\"SALUD MENTAL DE ARAUCA IPS SAS\",\n\"SALUD MENTAL INTEGRAL SOCIEDAD POR ACCIONES SIMPLIFICADA\",\n\"SALUD OCUPACIONAL Y REHABILITACIÓN TERAPÉUTICA E.U.\",\n\"SALUD ORAL INTEGRAL S.A.S.\",\n\"SALUD ORAL S.A.S.\",\n\"SALUD PARA TODOS EAT\",\n\"SALUD PLENA SAS\",\n\"SALUD PLENA SAS\",\n\"SALUD RENAL S.A.\",\n\"SALUD REPRODUCTIVA S.A.S\",\n\"SALUD RH LTDA\",\n\"SALUD SOCIAL SAS\",\n\"SALUD SOGAMOSO EMPRESA SOCIAL DEL ESTADO\",\n\"SALUD TERAPIA DEL PUTUMAYO E.U\",\n\"SALUD TIERRALTA IPS SAS\",\n\"SALUD TREC S.A.S\",\n\"SALUD VIDA IPS S.A.S.\",\n\"SALUD VISIÓN S.A.S IPS\",\n\"SALUD VITAL DE COLOMBIA IPS SAS\",\n\"SALUD VITAL DEL HUILA IPS SAS\",\n\"SALUD VITAL Y RIESGOS PROFESIONALES IPS SAS\",\n\"SALUD VIVIR IPS LTDA\",\n\"SALUD Y ATENCION A PERSONAS ADULTAS SAS SIGLA PERSADULT HOME SAS\",\n\"SALUD Y BIENESTAR DEL CARIBE IPS SAS\",\n\"SALUD Y ESPERANZA DOMICILIARIA S.A.S.\",\n\"SALUD Y MUJER IPS S. A. S.\",\n\"SALUD Y VIDA CON CALIDAD S.A.S\",\n\"SALUD Y VIDA DEL PACIFICO S.AS\",\n\"SALUDARTE DOMICILIARIA S.A.S.\",\n\"SALUDCASANARE LTDA\",\n\"SALUDCOM SAS\",\n\"SALUDMEDICA INTEGRAL SAS\",\n\"SALUDSION\",\n\"SALUVIG S.A.S\",\n\"SAMEDIQ\",\n\"SAMUEL VILLANUEVA VALEST EMPRESA SOCIAL DEL ESTADO\",\n\"SAN DIEGO ODONTOLOGIA S.A.S\",\n\"SAN DIEGO SERVICIOS EN SALUD\",\n\"SAN JOSE IPS PUTUMAYO SAS\",\n\"SAN LUIS CRITICAL CARE S.A.S\",\n\"SAN SIMON INSTITUCION PRESTADORA DE SALUD LTDA\",\n\"SANACION A TU ALCANCE S.A.S\",\n\"SANAMEDIC SOCIEDAD POR ACCIONES SIMPLIFICADA - S.A.S\",\n\"SANAR BIEN IPS SOLEDAD SAS\",\n\"SANAR CLÍNICA DE HERIDAS SAS\",\n\"SANAR Y CURAR IPS S.AS.\",\n\"SANAR Y VIVIR IPS SAS\",\n\"SANARTE MEDICINA ESPECIALIZADA SAS\",\n\"SANASALUD I.P.S S.A.S\",\n\"SANASALUD SERVICIOS MEDICOS LTDA\",\n\"SANATORIO DE AGUA DE DIOS E.S.E.\",\n\"SANATORIO DE CONTRATACION EMPRESA SOCIAL DEL ESTADO\",\n\"SANATY IPS S.A.S.\",\n\"SANOFI AVENTIS DE COLOMBIA S.A\",\n\"SANTA HELENA DEL VALLE IPS\",\n\"SANTA IPS INDIGENA\",\n\"SANTA LAURA IPS S.A.S\",\n\"SANTA PAULINA IPS S.A.S\",\n\"SANTA SOFIA IPS ESPINAL S.A.S.\",\n\"SANTANDER MEDICAL GROUP S.A.S\",\n\"SANTANDEREANA DE SALUD IPS SAS\",\n\"SANTANDEREANA DE UROLOGIA SAS\",\n\"SANTE MEDICAL CENTER SAS\",\n\"SANTIAGO DE COMPOSTELA IPS SAS\",\n\"SANTILHEMERGENCIAS SAS\",\n\"SCA SOLUCIONES EXPRESS SAS\",\n\"SCANER SA\",\n\"SEDARTE MEDICINA ESPECIALIZADA SAS\",\n\"SEGURITEC & S.O. S.A.S.\",\n\"SEMIC S.A.S.\",\n\"SER MEDIC IPS S.A.S\",\n\"SER SALUD CUERPO Y MENTE EN FORMA E.U.\",\n\"SERES S.A.S.\",\n\"SERFAR LTDA\",\n\"SERSALUD I. P. S. CHOCO LTDA\",\n\"SERSALUD S.A\",\n\"SERVI SALUD DEL CAUCA IPS SAS\",\n\"SERVIAMBULANCIAS BOYACA SAS\",\n\"SERVICIO AEREO MEDICALIZADO Y FUNDAMENTAL SAS SIGLA MEDICALFLY SAS\",\n\"SERVICIO CARDIOCRITICO DEL TOLIMA S.A.S.\",\n\"SERVICIO CARDIOLOGICO DEL LLANO S.A.S\",\n\"SERVICIO DE AMBULANCIA INMEDIATO MEDIC S.A.S\",\n\"SERVICIO DE SALUD INMEDIATO IPS SAS\",\n\"SERVICIO INTEGRAL DE MEDICINA AMBULATORIA - SIMA.LINK S.A.S\",\n\"SERVICIO INTEGRAL MEDICO ASISTENCIAL S.A.S.\",\n\"SERVICIO MEDICO LTDA\",\n\"SERVICIO ORIENTAL DE SALUD Y DE LA ORINOQUIA SAS\",\n\"SERVICIOS AEREOS PANAMERICANOS SAS\",\n\"SERVICIOS BIOMEDICOS INGENIERIA LTDA CUYA SIGLA SERBIOMED LTDA\",\n\"SERVICIOS CARDIOLOGICOS INTEGRALES SAS\",\n\"SERVICIOS DE ATENCION DOMICILIARIA EN SALUD S.A.S SIGLA SADISALUD SAS\",\n\"SERVICIOS DE DIAGNOSTICO MEDICO S.A.\",\n\"SERVICIOS DE ESPECIALIDADES MEDICAS DE COLOMBIA IPS SAS\",\n\"SERVICIOS DE REHABILITACION PARA SU SALUD IPS LTDA\",\n\"SERVICIOS DE SALUD EN CASA S.A.S. SERMISALUD S.A.S.\",\n\"SERVICIOS DE SALUD ESPECIALIZADOS S.A.S\",\n\"SERVICIOS DE SALUD IPS SURAMERICANA S.A.S\",\n\"SERVICIOS DE SALUD SAN VICENTE FUNDACIÓN\",\n\"SERVICIOS DE SALUD Y MAS S.A.S- SESMAS S.A.S\",\n\"SERVICIOS DOMICILIARIOS EN SALUD S.A.S\",\n\"SERVICIOS EN SALUD ANDINA LTDA\",\n\"SERVICIOS ESPECIALES DE SALUD HOSPITAL UNIVERSITARIO DE CALDAS\",\n\"SERVICIOS ESPECIALIZADOS FCB S.A.S\",\n\"SERVICIOS FONOAUDIOLOGICOS DEL CARIBE S.A.S\",\n\"SERVICIOS FONOAUDIOLOGICOS INTEGRALES DE LA COSTA S.A.S\",\n\"SERVICIOS INTEGRADOS DE MEDICINA ENFERMERIA Y REHABILITACION EN SALUD S.A.S\",\n\"SERVICIOS INTEGRADOS DE SALUD S.A.S\",\n\"SERVICIOS INTEGRADOS ESPECIALIZADOS EN ODONTOLOGIA SIEO LTDA\",\n\"SERVICIOS INTEGRALES AMBULATORIOS DE SALUD LTDA\",\n\"SERVICIOS INTEGRALES DE GESTION MEDICA ASISTENCIAL S.A.S SIGEMA S.A.S\",\n\"SERVICIOS INTEGRALES DE MEDICINA Y ENFERMERIA SIME SAS\",\n\"SERVICIOS INTEGRALES DE RADIOLOGIA SAS (SIRAD SAS)\",\n\"SERVICIOS INTEGRALES DE REHABILITACION EN BOYACA LIMITADA - SIREB LTDA.\",\n\"SERVICIOS INTEGRALES DE SALUD DEL MAGDALENA SAS\",\n\"SERVICIOS INTEGRALES DE SALUD LTDA -SERINSA\",\n\"SERVICIOS INTEGRALES DE SALUD Y MEDICINA ESPECIALIZADA I.P.S. S.A.S. - SYMES IPS SAS\",\n\"SERVICIOS INTEGRALES EN SALUD MENTAL LTDA\",\n\"SERVICIOS INTEGRALES EN SALUD PORVENIR IPS. S.A.S\",\n\"SERVICIOS INTEGRALES EN SALUD S.A.S. - FISIOCENTER S.A.S.\",\n\"SERVICIOS INTEGRALES MEDICOS ASISTENCIALES DE COLOMBIA IPS LTDA - SIMAC IPS\",\n\"SERVICIOS INTEGRALES SIERRA NEVADA IPS S.A.S\",\n\"SERVICIOS MEDICO QUIRURGICOS SAS\",\n\"SERVICIOS MEDICOS DEL CASANARE SERVIMEDICAS LTDA\",\n\"SERVICIOS MEDICOS DOMICILIARIOS IPSLTDA SERVIMED IPS LTDA\",\n\"SERVICIOS MEDICOS ESPECIALIZADOS EL LAGUITO S.A.\",\n\"SERVICIOS MEDICOS ESPECIALIZADOS GASTROCARIBE SAS\",\n\"SERVICIOS MEDICOS FAMEDIC SAS\",\n\"SERVICIOS MEDICOS INTEGRADOS MEDICA IPS SAS\",\n\"SERVICIOS MEDICOS INTEGRALES BERNARDO HOUSSAY LTDA IPS\",\n\"SERVICIOS MEDICOS INTEGRALES DE LA ORINOQUIA- SMIO SAS\",\n\"SERVICIOS MEDICOS INTEGRALES DE SALUD SAS SERVIMEDICOS SAS\",\n\"SERVICIOS MEDICOS INTEGRALES, HOSPITALARIOS Y DOMICILIARIOS I.P.S. CLINICA LA VICTORIA S.A.S.\",\n\"SERVICIOS MEDICOS OLIMPUS I.P.S. SOCIEDAD POR ACCIONES SIMPLIFICADA\",\n\"SERVICIOS MEDICOS SAN IGNACIO S.A.S\",\n\"SERVICIOS MEDICOS VITAL HEALTH S.A.S\",\n\"SERVICIOS ODONTOLOGICOS GARDEAZABAL LTDA\",\n\"SERVICIOS OFTALMOLOGICOS OFTALMOCENTER LTDA SIGLA OFTALMOCENTER LTDA\",\n\"SERVICIOS PARA EL DESARROLO DE LA SALUD IPS S.A.S. SEDESALUD IPS\",\n\"SERVICIOS PRE HOSPITALARIOS DE ATENCIÓN MEDICA SAS IPS\",\n\"SERVICIOS PREFERENCIALES DE LA SALUD LTDA\",\n\"SERVICIOS PROFESIONALES DE OPTOMETRIA E.U.\",\n\"SERVICIOS VIVIR S.A.S.\",\n\"SERVICLINICOS DROMEDICA S.A\",\n\"SERVIDENT ODONTOLOGÍA INTEGRADA LTDA.\",\n\"SERVIDOC S.A.\",\n\"SERVI-HUMANOS IPS LIMITADA\",\n\"SERVILAB DEL SINU IPS\",\n\"SERVIMED INSTITUCION PRESTADORA DE SERVICIOS DE SALUD S.A SERVIMED IPS S.A.\",\n\"SERVIMED S.A.S.\",\n\"SERVIMEDIC QUIRON S.A.S.\",\n\"SERVIMEDIG DEL NORTE IPS S.A.S\",\n\"SERVIMOS AMBULANCIAS DE COLOMBIA IPS S.A.S.\",\n\"SERVIMOS Y SOLUCIONES LOGISTICAS SAS\",\n\"SERVIPLASTICA S.A.S\",\n\"SERVIR SALUD LTDA\",\n\"SERVISALUD ALEF I.P.S. UNIDAD BASICA DE ATENCION S.A.S\",\n\"SERVIUCIS S.A.S.\",\n\"SES SALUD S.A.\",\n\"SESS COLOMBIA S A S\",\n\"SEYSOL GROUP S.A.S\",\n\"SHARON MEDICAL GROUP SAS\",\n\"SIEC SERVICIO INTEGRAL DE ENFERMERIA EN CASA S.A.S\",\n\"SIGMA IPS MEDICINA ESPECIALIZADA INTEGRAL SAS\",\n\"SIGMA MEDICAL CARE SAS\",\n\"SIGMA SALUD IPS E.U.\",\n\"SIKUANY LTDA\",\n\"SINERGIA GLOBAL EN SALUD SAS\",\n\"SINÚ IMAGENES S.A.S.\",\n\"SINUS CENTER\",\n\"SISANAR S.A.\",\n\"SISMEDICA LTDA\",\n\"SISTEMAS DE TERAPIA RESPIRATORIA SAS\",\n\"SMILE EXPRESS DENTAL SPA S.A.S.\",\n\"SMISALUD IPS SAS\",\n\"SMITH & NEPHEW COLOMBIA S.A.S\",\n\"SMS SPECIALIZED MEDICAL S.A.S\",\n\"SO SERVICIOS MEDICOS Y OFTALMOLOGICOS S.A.S\",\n\"SOCIEDAD BERBOJ SALUD LIMITADA DE SABANALARGA\",\n\"SOCIEDAD CARDIOLOGICA COLOMBIANA S.A.S\",\n\"SOCIEDAD CARDIOVASCULAR DE CORDOBA S.A.S SOCARDIO S.A.S\",\n\"SOCIEDAD CARDIOVASCULAR DE SANTANDER LTDA SCS\",\n\"SOCIEDAD CARDIOVASCULAR DEL CARIBE COLOMBIANO S.A.S\",\n\"SOCIEDAD CARDIOVASCULAR DEL EJE CAFETERO S.A.\",\n\"SOCIEDAD CIRUMAX S.A\",\n\"SOCIEDAD CLINICA BOYACA LIMITADA\",\n\"SOCIEDAD CLINICA CASANARE LTDA\",\n\"SOCIEDAD CLINICA EMCOSALUD S.A.\",\n\"SOCIEDAD CLINICA PAMPLONA LTDA.\",\n\"SOCIEDAD COMERCIALIZADORA DE INSUMOS Y SERVICIOS MÉDICOS S.A.S\",\n\"SOCIEDAD CORDOBESA DE CIRUGIA VASCULAR S.AS\",\n\"SOCIEDAD DE CANCEROLOGIA DE LA COSTA LTDA.\",\n\"SOCIEDAD DE CIRUGIA DE BOGOTA HOSPITAL DE SAN JOSE\",\n\"SOCIEDAD DE CIRUGIA OCULAR S A\",\n\"SOCIEDAD DE CIRUJANOS PEDIATRAS ESPECIALISTAS IPS S.A.S\",\n\"SOCIEDAD DE ENFERMERAS PROFESIONALES SAS - SEP SAS\",\n\"SOCIEDAD DE ESPECIALISTAS DE GIRARDOT S.A.S\",\n\"SOCIEDAD DE FISIOTERAPEUTAS DE SAHAGUN LIMITADA. SOFISA LTDA\",\n\"SOCIEDAD DE HEMODINAMIA SANTA MARIA S.A.S\",\n\"SOCIEDAD DE IMAGENES Y DIAGNOSTICO ESPECIALIZADO LTDA\",\n\"SOCIEDAD DE INFECTOLOGOS DEL CARIBE COLOMBIANO SAS SICAC\",\n\"SOCIEDAD DE MEDICINA INTEGRAL Y DIAGNOSTICO CLINICO SOMEDCLIN S.A.S\",\n\"SOCIEDAD DE NEUROCIENCIAS DIAGNOSTICAS NEUROIMAGENES S.A\",\n\"SOCIEDAD DE OFTALMOLOGIA Y CIRUGIA PLASTICA DE CUCUTA S.A.\",\n\"SOCIEDAD DE ONCOLOGIA Y HEMATOLOGIA DEL CESAR S.A.S.\",\n\"SOCIEDAD DE PATOLOGOS DE CORDOBA LTDA\",\n\"SOCIEDAD DE REHABILITACION SORE LTDA\",\n\"SOCIEDAD DE SERVICIOS INTEGRALES EN SALUD S. A. S. SIGLAS: SERVINSALUD I.P.S\",\n\"SOCIEDAD DE SERVICIOS OCULARES OPTISALUD S.A.S\",\n\"SOCIEDAD DE UROLOGIA CESAR S. A.S\",\n\"SOCIEDAD HEMATOONCOLOGICA DEL PACIFICO\",\n\"SOCIEDAD INTEGRAL DE ESPECIALISTAS EN SALUD S.A.S SIGLA SIES SALUD S.A.S\",\n\"SOCIEDAD INTEGRAL DE ESPECIALISTAS SANTA TERESA SAS\",\n\"SOCIEDAD INVERCIONES FARMEDICALL SAS\",\n\"SOCIEDAD INVERSIONES Y SERVICIOS L&J S.A.S\",\n\"SOCIEDAD LAS LAJAS S.A.S.\",\n\"SOCIEDAD MEDICA AMES LTDA\",\n\"SOCIEDAD MEDICA ANTIOQUEÑA S.A. SOMA\",\n\"SOCIEDAD MEDICA CLINICA MAICAO S.A\",\n\"SOCIEDAD MEDICA DE ESPECIALISTAS DEL SUR S.A.S\",\n\"SOCIEDAD MEDICA DE ESPECIALISTAS DIAGNOSTICO E IMAGENOLOGIA MEDSALUD LTDA\",\n\"SOCIEDAD MEDICA DE SANTA MARTA S.A.S.\",\n\"SOCIEDAD MEDICA DEL ORIENTE LIMITADA SARAVENA\",\n\"SOCIEDAD MEDICA LOS SAMANES SAS\",\n\"SOCIEDAD MEDICA MARIA AUXILIADORA SAS\",\n\"SOCIEDAD MEDICA RIONEGRO SA\",\n\"SOCIEDAD MEDICA SURSALUD S.A.S\",\n\"SOCIEDAD MEDICA VIDA S.A.S.\",\n\"SOCIEDAD MEDICO QUIRÚRGICA NUESTRA SEÑORA DE BELÉN DE FUSAGASUGA S.A.S\",\n\"SOCIEDAD MEDICO Y DIAGNOSTICA SAS IPS MEDICARE SAS\",\n\"SOCIEDAD MÉDICOQUIRÚRGICA DEL TOLIMA SOCIEDAD ANÓNIMA Y/O CLÍNICA TOLIMA S.A.\",\n\"SOCIEDAD N.S.D.R. S.A.S\",\n\"SOCIEDAD ONCOLOGICA ONCOCARE LTDA. SIGLA ONCOCARE LTDA\",\n\"SOCIEDAD PARA LA ATENCION MEDICA E IMAGENES DIAGNOSTICAS SAS SOMID SAS\",\n\"SOCIEDAD PEDIATRICA DE LOS ANDES S.A.S - SPLA S.A.S.\",\n\"SOCIEDAD REGIONAL DE CIRUGIA OCULAR S.A.S.\",\n\"SOCIEDAD SAN JOSE DE TORICES S.A\",\n\"SOCIEDAD UNIDAD INTEGRAL DE SALUD MENTAL SION SAS\",\n\"SODIME S.A.S\",\n\"SOHAN ACONDICIONAMIENTO Y REHABILITACION FISICA S.A.S\",\n\"SOLAIR SAS\",\n\"SOLINSA G.C. S.A.S.\",\n\"SOLOSALUD IPS SAN BERNARDO S.A.S\",\n\"SOLUCIONES DIAGNOSTICAS DEL RIO SAS\",\n\"SOLUCIONES INTEGRALES DE SALUD POLOSALUD S.A.S\",\n\"SOLUCIONES INTEGRALES EN SALUD AURUM MEDICAL SAS\",\n\"SOLUCIONES INTEGRALES INMEDIATAS SOCIEDAD POR ACCIONES SIMPLIFICADA S.A.S\",\n\"SOLUCIONES INTEGRALES Y CONSULTORIAS E&G SAS\",\n\"SOLUCIONES INTEGRALES Z.P.F S.A.S.\",\n\"SOLUCIONES MEDICAS INMEDIATAS IPS SAS\",\n\"SOLUCIONES MEDICAS Y HOSPITALARIAS DEL MAGDALENA S.A.S.\",\n\"SOLUCIONES ORALES BLANCO S.A.S.\",\n\"SOLUCIONES Y EMPRENDIMIENTO EMPRESARIAL SIEMPREE SAS\",\n\"SOLUCIONES Y SERVICIOS INTEGRALES DE COLOMBIA SAS\",\n\"SOMEB DE NARIÑO SALUD OCUPACIONAL Y REHABILITACION INTEGRAL S.A.S\",\n\"SOMECA MALAMBO\",\n\"SOMEDYT IPS E.U. SERVICIOS MEDICO DE DIAGNOSTICO Y TERAPIA\",\n\"SOMEFYR SAS\",\n\"SOMELAN SAS\",\n\"SOMNARUM S.A.S\",\n\"SOMNOMÉDICA CLÍNICA ESPECIALIZADA EN MEDICINA DEL SUEÑO SAS\",\n\"SONIA VALENCIA REHABILITACION INTEGRAL IPS SAS\",\n\"SONOAUDIO SAS\",\n\"SONOIMAGENES S.A.S.\",\n\"SONRISAS DE AMOR IPS SAS\",\n\"SOPORTE VITAL CALI S.A.S.\",\n\"SOSALUD SAS\",\n\"SOY SALUD Y VIDA CALI LTDA.\",\n\"SPECIALTY LABORATORIES S.A.S\",\n\"SPECT MEDICINA NUCLEAR SAS\",\n\"SPORT MEDICAL CENTER IPS GUSTAVO PORTELA SAS\",\n\"STARKEY HEARING TECHNOLOGIES COLOMBIA S.A.S\",\n\"STENT VIDA S.A.S\",\n\"SUASISTENCIA EN SALUD CASANARE LTDA\",\n\"SUBA MEDICAL IPS LIMITADA\",\n\"SUBOLSALUD S.A.S\",\n\"SUBRED INTEGRADA DE SERVICIOS DE SALUD CENTRO ORIENTE E.S.E\",\n\"SUBRED INTEGRADA DE SERVICIOS DE SALUD NORTE E.S.E\",\n\"SUBRED INTEGRADA DE SERVICIOS DE SALUD SUR E.S.E.\",\n\"SUBRED INTEGRADA DE SERVICIOS DE SALUD SUR OCCIDENTE E.S.E\",\n\"SUBSANAR SALUD IPS\",\n\"SUDISUR LIMITADA\",\n\"SUMEDICA IPS S.A.S\",\n\"SUMEDIX S.A.S\",\n\"SUMEICOL IPS SAS\",\n\"SUMIMEDICAL S.A.S\",\n\"SUMISALUD COLOMBIA IPS S.A.S.\",\n\"SUMISALUD SINCELEJO IPS LIMITADA\",\n\"SUMUNISTROS MEDICOS Y QUIRURGICOS DEL NORTE S.A.S\",\n\"SUPERAR EMPRESA ASOCIATIVA DE TRABAJO\",\n\"SUPERAR LTDA\",\n\"SUPLEMEDICOS SAS\",\n\"SUPRA ESPECIALIDADES OFTALMOLOGICAS DEL TOLIMA SAS\",\n\"SUR SALUDVITAL SAS\",\n\"SURGIFAST S.A.\",\n\"SURGYMAX ODONTOLÓGICA S.A.S\",\n\"SURSALUD IPS S.A.S\",\n\"SYNLAB COLOMBIA S.A.S.\",\n\"T Y C INVERSIONES S.A.S - GRUPSALUD 33-6 IPS\",\n\"TAAKWATUNGUA IPSI S.A.S\",\n\"TADASHI S.A.S CENTROS DE IMAGENES ESPECIALIZADAS (CIE )\",\n\"TAMARA IMÁGENES DIAGNOSTICAS S.A.S\",\n\"TE OIGO, CENTRO AUDIOLOGICO S.A.S.\",\n\"TECNITRAUMA S.A.\",\n\"TECNOFARMA COLOMBIA SAS\",\n\"TECNOVIDA DIAGNOSTICO POR IMAGENES S.A.S.\",\n\"TELEIMAGENES MEDICAS EXPRESS SAS TIME RX\",\n\"TELEMEDICINA - ASISTENCIA MEDICA LIMITADA\",\n\"TERAFISICA IPS S.A.S\",\n\"TERAMED SAS\",\n\"TERAPIAS INTEGRALES EMPEZAR SAS\",\n\"TERAPIAS INTEGRALES S.A.S.\",\n\"TERAPIAS Y REHABILITACION INTEGRAL SAS\",\n\"TESORO OTTICA LTDA\",\n\"THE WALA IPS INDIGENA PUBLICA\",\n\"THERACLINIC S.A.S\",\n\"TIENKEN S.A.S\",\n\"TIMED S.A.\",\n\"TODO SALUD I.P.S. LTDA\",\n\"TODOMED LTDA\",\n\"TOLIMEDICA SAS\",\n\"TOMAS URIBE RADIOLOGOS S.A.S.\",\n\"TORRES Y JARAMILLO S.A.S\",\n\"TOTAL 22 S.A.S\",\n\"TOTAL SANAR SAS\",\n\"TRABAJEMOS JUNTOS IPS S.A.S\",\n\"TRANS ARAMA SAS\",\n\"TRANS-HELTHA S.A.S\",\n\"TRANSMEDICAL VITAL DEL PACIFICO ZOMAC S.A.S\",\n\"TRANSPORTE FUNDADORES LIMITADA\",\n\"TRANSPORTE SALUD IMÁGENES TRANSALIM LTDA\",\n\"TRANSPORTE SEGURO24/365 SAS\",\n\"TRANSPORTE Y LOGISTICA INTEGRAL S.A.S.-TRANSLOGAM S.A.S\",\n\"TRANSPORTE Y MANTENIMIENTO DASEL SAS\",\n\"TRANSPORTES ESIVANS SAS\",\n\"TRANSPORTES ESPECIALES 360 SAS\",\n\"TRANSPORTES ESPECIALES UNO A LIMITADA\",\n\"TRANSPORTES KEMUL S.A.S\",\n\"TRANSPORTES TENDENCIAS DEL CARIBE SAS\",\n\"TRAUMACENTRO S.A.S\",\n\"TRINISALUD IPS S.A.S.\",\n\"TU BOCA BELLA S.A.S\",\n\"TU CUIDADO IPS SAS\",\n\"TU ORTOPEDIA INTEGRAL S.A.S\",\n\"TU SALUD H&G SOCIEDAD POR ACCIONES SIMPLIFICADA SAS\",\n\"TU SALUD PLUS IPS S.A.S\",\n\"UBA ODONTOLOGICA TEQUENDAMA LTDA\",\n\"UBA VIHONCO SAS\",\n\"UCI DEL CARIBE SAS\",\n\"UCI LAS MERCEDES DE COROZAL SAS\",\n\"UCI SAN RAFAEL ARCANGEL S.A.S.\",\n\"UCI VALLE SAS\",\n\"UCIMED S.A\",\n\"UCIS DE COLOMBIA S.A.S.\",\n\"UIM S.A.S\",\n\"UMAF LIMITADA\",\n\"UMBRAL ONCOLÓGICOS S.A.S\",\n\"UNICO SAS\",\n\"UNIDAD ALERGOLOGICA S.A.S\",\n\"UNIDAD BASICA DE ATENCION PROSANAR LTDA.\",\n\"UNIDAD CANCEROLOGIA DEL TOLIMA IPS SAS\",\n\"UNIDAD CARDIOLOGICA DE CARTAGENA LTDA\",\n\"UNIDAD CARDIOLOGICA Y PERINATAL DEL HUILA LTDA\",\n\"UNIDAD CARDIOQUIRURGICA DE NARIÑO SAS\",\n\"UNIDAD CLINICA DEL ARIARI IPS LIMITADA\",\n\"UNIDAD CLINICA LA MAGDALENA SAS\",\n\"UNIDAD CRÓNICOS SAN ROQUE S.A.S\",\n\"UNIDAD DE ATENCION CLINICA INTEGRAL SAS UNITOX IPS\",\n\"UNIDAD DE ATENCION DE PACIENTES EN ESTADO CRITICO CUIDADO CRITICO S.A.S.\",\n\"UNIDAD DE ATENCIÓN INTEGRAL SEMBRANDO ESPERANZA S.A.S\",\n\"UNIDAD DE CIRUGIA DEL TOLIMA\",\n\"UNIDAD DE CUIDADO INTERMEDIO SANTA LUCIA SAS\",\n\"UNIDAD DE CUIDADOS CRÍTICOS DEL CHOCÓ SAS\",\n\"UNIDAD DE CUIDADOS INTENSIVOS NEONATAL DEL BAJO SINU\",\n\"UNIDAD DE CUIDADOS INTENSIVOS NEONATALES DE MAGANGUE SAS\",\n\"UNIDAD DE CUIDADOS INTENSIVOS RENACER LIMITADA\",\n\"UNIDAD DE CUIDADOS INTENSIVOS SOCIEDAD DE MEDICINA CRÍTICA S.A.S.\",\n\"UNIDAD DE CUIDADOS INTENSIVOS Y CORONARIOS SAS\",\n\"UNIDAD DE DIAGNOSTICO CLINICO O IMAGENOLOGICO E.U.\",\n\"UNIDAD DE DIAGNOSTICO ESPECIALIZADO EN PATOLOGIA UDEP SAS\",\n\"UNIDAD DE DIAGNOSTICO GINECOLOGICO Y PRENATAL SER MUJER S.A.S\",\n\"UNIDAD DE DIAGNOSTICO POR IMAGEN DIAGNOSTICAR S.A.S.\",\n\"UNIDAD DE DIAGNOSTICO S.A.S.\",\n\"UNIDAD DE DIAGNOSTICO Y CIRUGIA ENDOSCOPICA ANDES DEL SUR S.A.S\",\n\"UNIDAD DE DIAGNOSTICOS Y TRATAMIENTOS UROLOGICOS S.A. UROMED S.A.\",\n\"UNIDAD DE ESPECIALIDADES MEDICAS SAS\",\n\"UNIDAD DE FISIATRIA Y ORTHOINTEGRAL SAS\",\n\"UNIDAD DE GASTROENTEROLOGIA CLINICA Y QUIRURGICA GASTROQUIRURGICA DEL ORIENTE\",\n\"UNIDAD DE GASTROENTEROLOGIA INTEGRAL SAS\",\n\"UNIDAD DE GASTROENTEROLOGIA PEDIATRICA DEL CESAR S.A.S\",\n\"UNIDAD DE GASTROENTEROLOGIA Y ECOENDOSCOPIA UGEC SAS\",\n\"UNIDAD DE GASTROENTEROLOGIA Y ENDOSCOPIA DIGESTIVA S.A.-UGASEND S.A\",\n\"UNIDAD DE GASTROENTEROLOGÍA, NUTRICIÓN Y ENDOSCOPIA PEDIATRICA SAS\",\n\"UNIDAD DE HEMODINAMIA DEL CAFE SA\",\n\"UNIDAD DE IMAGENOLOGIA LA CANDELARIA S.A.S.\",\n\"UNIDAD DE MEDICINA MATERNOFETAL NORFETUS SOCIEDAD POR ACCIONES SIMPLIFICADA\",\n\"UNIDAD DE MEDICINA PREVENTIVA Y RESOLUTIVA UMPRE LTDA\",\n\"UNIDAD DE MEDICINA Y ODONTOLOGIA INTEGRAL LTDA\",\n\"UNIDAD DE ONCOLOGIA DEL EJE CAFETERO S.A. S\",\n\"UNIDAD DE ONCOLOGIA HOSPITAL MANUEL URIBE ANGEL DE ENVIGADO - ASTORGA S.A.\",\n\"UNIDAD DE ONCOLOGIA LAS VEGAS S.A.S\",\n\"UNIDAD DE OSTEOPOROSIS S.A.S\",\n\"UNIDAD DE PATOLOGIA CLINICA S.A.S.\",\n\"UNIDAD DE PERINATOLOGIA Y TERAPIA FETAL DEL CARIBE SAS\",\n\"UNIDAD DE REHABILITACION Y ELECTRODIAGNOSTICO DEL TOLIMA S.A.S\",\n\"UNIDAD DE SALUD DE IBAGUE EMPRESA SOCIAL DEL ESTADO\",\n\"UNIDAD DE SALUD DE LA COSTA S.A.S\",\n\"UNIDAD DE SALUD MENTAL DE ARAUCA LTDA\",\n\"UNIDAD DE SALUD MENTAL Y PSICOACTIVAS IPS S.A.S\",\n\"UNIDAD DE SALUD SANTA MARIA S.A.S\",\n\"UNIDAD DE SEGUIMIENTO DEL RECIEN NACIDO Y ATENCION PEDIATRICA IPS S.A.S\",\n\"UNIDAD DE SERVICIOS DE SALUD ESTRATEGICOS RELACIONADOS USSER SAS\",\n\"UNIDAD EDUCATIVA DE REHABILITACIÓN INTEGRAL INCLUSER S.A.S\",\n\"UNIDAD EJE VISUAL S.A.\",\n\"UNIDAD ENDOSCOPICA INTEGRAL DE SUCRE S.A.S\",\n\"UNIDAD ESPECIALIZADA DE REHABILITACION INTEGRAL - COOPERATIVA DE TRABAJO ASOCIADO\",\n\"UNIDAD ESPECIALIZADA EN ATENCIÓN TERAPÉUTICA LTDA\",\n\"UNIDAD ESPECIALIZADA EN OPTOMETRIA S.A.S.\",\n\"UNIDAD ESTOMATOLOGICA LAS VEGAS S.A\",\n\"UNIDAD FISIOTERAPEUTICA DE OCCIDENTE SOCIEDAD POR ACCIONES SIMPLIFICADAS\",\n\"UNIDAD FONOAUDIOLOGICA INTEGRAL REHABILISER IPS LTDA\",\n\"UNIDAD GINECOOBSTETRICA DEL PACIFICO SAS\",\n\"UNIDAD HEMATOLOGICA ESPECIALIZADA IPS SAS\",\n\"UNIDAD HEMATO-ONCOLOGCA Y RADIOTERAPIA DEL CARIBE S.A.S\",\n\"UNIDAD INMUNOCLINICA SANT JI IPS LTDA\",\n\"UNIDAD INTEGRAL ADVANCE DENTAL MEDICAL S.A.S. SIGLA ADMEOD\",\n\"UNIDAD INTEGRAL DE ATENCION SILOE S.A.S.\",\n\"UNIDAD INTEGRAL DE REHABILITACION CARDIO-PULMONAR E.U.\",\n\"UNIDAD INTEGRAL DE SALUD DE LA ORINOQUIA IPS LTDA\",\n\"UNIDAD INTEGRAL DE SALUD PUERTABIERTA S.A.S.\",\n\"UNIDAD INTEGRAL DE SALUD UISALUD IPS S.A.S\",\n\"UNIDAD MATERNO FETAL DE LA ORINOQUIA S.A.S\",\n\"UNIDAD MATERNO FETAL DEL CARIBE S.A.S.\",\n\"UNIDAD MATERNO INFANTIL DEL TOLIMA S.A.\",\n\"UNIDAD MATERNO INFANTIL TALAPUIN S.A.S.\",\n\"UNIDAD MEDICA ADVENTISTA\",\n\"UNIDAD MEDICA BETA SALUD LTDA.\",\n\"UNIDAD MEDICA DE PACHO SAS\",\n\"UNIDAD MEDICA DE REHABILITACIÓN INTEGRAL - UMRI SAS\",\n\"UNIDAD MEDICA DE SERVICIOS INTEGRALES SAS - UMSI SAS\",\n\"UNIDAD MEDICA ESPECIALIZADA EN CABEZA CUELLO Y TÓRAX DE SANTANDER S.A.S\",\n\"UNIDAD MEDICA ESPIRITU SANTO E. U.\",\n\"UNIDAD MEDICA FORTUL SALUD LTDA\",\n\"UNIDAD MEDICA HATONUEVO LIMITADA\",\n\"UNIDAD MEDICA INTEGRAL DE LA SABANA SAS\",\n\"UNIDAD MEDICA INTEGRAL DEL SAN JORGE LIMITADA\",\n\"UNIDAD MEDICA INTEGRAL SAN RAFAEL\",\n\"UNIDAD MEDICA INTEGRAL UMI S.A.S\",\n\"UNIDAD MEDICA IPS MARCO FIDEL SUAREZ LTDA\",\n\"UNIDAD MEDICA MI SALUD S.A.S.\",\n\"UNIDAD MEDICA MOVIL LA CANDELARIA LTDA\",\n\"UNIDAD MEDICA ODONTOLOGICA IPS LOS ALPES LTDA\",\n\"UNIDAD MEDICA ONCOLOGICA ONCOLIFE IPS SAS\",\n\"UNIDAD MÉDICA ONCOLÓGICA S.A.S.\",\n\"UNIDAD MEDICA ORLUZ SAS\",\n\"UNIDAD MEDICA OTORRINOLARINGOLOGICA OTOMEDIC\",\n\"UNIDAD MEDICA RADIOLOGICA DEL CARMEN\",\n\"UNIDAD MEDICA SANTA SOFIA LTDA.\",\n\"UNIDAD MEDICA SANTAFE SAS\",\n\"UNIDAD MEDICA SU SALUD EU\",\n\"UNIDAD MEDICA UROLOGICA DE NARIÑO LTDA. UROLAN LTDA.\",\n\"UNIDAD MEDICA VASCULAR SAS\",\n\"UNIDAD MEDICA WAYUU ANOUTA WAKUAIPA IPSI\",\n\"UNIDAD MEDICA Y DE DIAGNOSTICO DE LA COSTA IPS LTDA\",\n\"UNIDAD MEDICA Y DE REHABILITACION INTEGRAL DEL CAQUETÁ S.A.S\",\n\"UNIDAD MEDICO ODONTOLOGICO CERESALUD LTDA\",\n\"UNIDAD MEDICO QUIRÚRGICA DE ORL SAS SIGLA UNIMEQ ORL SAS\",\n\"UNIDAD MEDICO QUIRURGICA Y ODONTOLOGICA SANTA CAROLINA S.A.S\",\n\"UNIDAD MEDICOQUIRURGICA SANTIAGO I.P.S.\",\n\"UNIDAD MOVIL DE EMERGENCIAS MEDICAS VITALES S.A.S\",\n\"UNIDAD NEUMOLOGICA BERTHA INES AGUDELO VEGA SAS\",\n\"UNIDAD NEUMOLOGICA DE LA COSTA SAS\",\n\"UNIDAD OFTALMOLÓGICA DE ALTA TECNOLOGÍA S.A.S.\",\n\"UNIDAD OFTALMOLOGICA DE CARTAGENA S.A.S\",\n\"UNIDAD OFTALMOLOGICA LASER S.A\",\n\"UNIDAD ONCOLOGICA SURCOLOMBIANA S.A.S\",\n\"UNIDAD OPTICA LINA PINTO IPS S.A.S\",\n\"UNIDAD OTOACUSTICADEL CARIBE SAS\",\n\"UNIDAD PEDIATRICA DEL SUR\",\n\"UNIDAD PEDIÁTRICA SIMÓN BOLÍVAR IPS SAS\",\n\"UNIDAD PRESTADORA DE SERVICIOS DE SALUD MENTAL LTDA\",\n\"UNIDAD PRIMARIA DE ATENCION SAN NICOLAS\",\n\"UNIDAD QUIRURGICA CALIDA SAS\",\n\"UNIDAD QUIRÚRGICA RAMÓN Y CAJAL LTDA\",\n\"UNIDAD RENAL DEL MAGDALENA\",\n\"UNIDAD RENAL DEL TOLIMA SAS\",\n\"UNIDAD RESPIRATORIA RESPIRAR S.A.S\",\n\"UNIDAD UROLOGICA DIAGNOSTICA LTDA.\",\n\"UNIDAD VASCULAR LTDA\",\n\"UNIDAD VASCULAR Y DERMATOLOGICA SAS\",\n\"UNIDAD VASCULAR, CARDIOLOGICA Y NEUROLOGICA SAS\",\n\"UNIDAD VIDEO DIAGNOSTICA DE LA MUJER S.A.S.\",\n\"UNIDAD VISUAL DEL VALLE S.A.\",\n\"UNIDAD VISUAL GLOBAL S A\",\n\"UNIDAD VISUAL OPTICARIBE S.A.\",\n\"UNIDADES MOVILES DE SALUD MOVISALUD S.A.S\",\n\"UNIDHOS S.A.S\",\n\"UNIDOS POR TU SALUD IPS SAS\",\n\"UNIDOS SALUD ORAL INTEGRAL COOPERATIVA DE TRABAJO ASOCIADO\",\n\"UNIGASTRO S.A.S.\",\n\"UNILAB LABORATORIO CLINICO Y CITOLOGICO SAS\",\n\"UNIMEDIC IPS S.A.S\",\n\"UNIMEDICAL DEL SUR\",\n\"UNION DE CIRUJANOS S.A.S.\",\n\"UNION DE PROMOTORES POR LA SALUD LTDA UPROSALUD LTDA\",\n\"UNIÓN MENTAL SAS\",\n\"UNIÓN VITAL S.A.\",\n\"UNIOPTICA LIMITADA\",\n\"UNIOTO S.A.S\",\n\"UNIR IPS LTDA\",\n\"UNISALUD DE LA GUAJIRA EU\",\n\"UNISALUD TOTAL IPS. EU\",\n\"UNIVER PLUS\",\n\"UNIVERSALIDAD EN VISION Y SALUD LIMITADA UNIVER LTDA\",\n\"UNIVERSIDAD CES\",\n\"UNIVERSIDAD PONTIFICIA BOLIVARIANA\",\n\"UNLAB S.A.S\",\n\"URAMEDICOS S.A.S.\",\n\"URANTIA MEDICA IPS S.A.S.\",\n\"URCUNINA SALUD LTDA\",\n\"URGENCIA VITAL DEL CASANARE AEREA Y TERRESTRE SAS\",\n\"URGENCIAS MEDICAS S.A.S.\",\n\"URGESALUD IPS S.A.S.\",\n\"URGETRAUMA SAN FERNANDO S.A.S.\",\n\"URMEDICAS 24 HORAS LTDA\",\n\"URMEDICAS VIP LTDA\",\n\"URO LASER S.A.S\",\n\"UROBOSQUE S.A\",\n\"UROCADIZ ESPECIALIDADES MEDICO QUIRURGICAS SAS\",\n\"UROCAQ E.U. IPS\",\n\"UROCENTER LTDA\",\n\"UROCENTRO CENTRO UROLOGICO JAVERIANO SAS\",\n\"UROCENTRO LTDA\",\n\"UROCLIN S.A.S\",\n\"UROCLINICA DE CORDOBA SAS\",\n\"UROGIN SAS IPS\",\n\"UROHELP LIMITADA\",\n\"UROLIT B.B.S. LTDA.\",\n\"UROLOGIA INTEGRAL DEL NORTE - CENTRO URINORTE S.A.S.\",\n\"UROLOGOS DEL NORTE DE SANTANDER URONORTE S.A. URONORTE S.A.\",\n\"UROLOGOS Y GINECOLOGOS DE COLOMBIA SA UROGINE SA\",\n\"UROMED SUCRE S.A.S\",\n\"UROMEDIC S.A.S.\",\n\"UROMEDICA LTDA\",\n\"UROMIL S.A\",\n\"UROPRADO S.A.S\",\n\"URPECV S.A.S.\",\n\"VACUNORTE IPS SAS\",\n\"VALENTECH PHARMA COLOMBIA SAS\",\n\"VALSALUD SAS\",\n\"VASCUMAG LTDA. LABORATORIO VASCULAR DEL MAGDALENA\",\n\"VAUPES SANO IPS SAS\",\n\"VG & AT SERVCIOS MEDICOS S.A.S\",\n\"VHR CENTRO PEDIATRICO Y CARDIOLOGICO IPS SAS\",\n\"VIAJEMOS POR COLOMBIA SAS\",\n\"VIANZA & BIENESTAR IPS SAS\",\n\"VIDA EN CASA SAS\",\n\"VIDA INTEGRAL LIMITADA\",\n\"VIDA MEDICA LTDA\",\n\"VIDAMEDICAL BOGOTA IPS SAS\",\n\"VIDAMEDICAL IPS S.A.S.\",\n\"VIDASER E.U.\",\n\"VIDELSA IPS S.A.S.\",\n\"VIHONCO IPS BUCARAMANGA\",\n\"VIHONCO IPS COSTA SAS\",\n\"VIHONCO IPS SANTA MARTA SAS\",\n\"VILLA SALUD IPS SAS\",\n\"VILLA76 INSTITUTO DE PSICOTERAPIA S.A.S.\",\n\"VILLASALUD CENTRO DE ATENCION INTEGRAL EN SALUD DE VILLANUEVA LTDA\",\n\"VILLEGAS & VILLALOBOS ODONTOLOGOS S.A.S.\",\n\"VIRREY SOLIS IPS SA\",\n\"VISAL RT S.A.S\",\n\"VISALUD IPS SAS\",\n\"VISION DEL LITORAL SAS\",\n\"VISIÓN INTEGRADOS S.A.S\",\n\"VISION TOTAL S.A.S\",\n\"VISIONAMOS SALUD CENTRO DE DIAGNOSTICO CLINICO LTDA\",\n\"VITA S.A.S\",\n\"VITAL CARIBE SAS\",\n\"VITAL IPS ARAUCA SAS\",\n\"VITAL LIFE SAS\",\n\"VITAL MEDICAL CARE VIMEC S.A.S\",\n\"VITAL PLUS COLOMBIA LTDA\",\n\"VITAL SALUD DEL CARIBE IPS S.A.\",\n\"VITAL SALUD INTEGRAL IPS SAS\",\n\"VITALDENT SALUD ORAL S.A.S.\",\n\"VITALEM IPS SAS\",\n\"VITALITY HOME CARE S.A.S.\",\n\"VITALMEDI SAS\",\n\"VITALMEDICAS IPS S.A.S\",\n\"VITALMEDIK I.P.S S.A.S\",\n\"VIVA 1A IPS SA\",\n\"VIVASALUD I.P.S. S.A.S\",\n\"VIVE IPS CENTRO MEDICO ESPECIALIZADO S.A.S\",\n\"VIVESSALUD EJE CAFETERO S.A.S.\",\n\"VIVIR BIEN IPS\",\n\"VIVIR GENERA SALUD S.A.S.\",\n\"VIVIR IPS LTDA\",\n\"VIVIR SAS\",\n\"VOILA IPS SAS\",\n\"VYSALUD EN CASA S.A.S.\",\n\"W LORENZ S.A.S\",\n\"WINTUKWA I.P.S.I.\",\n\"WORK MEDICINE INTERNATIONAL S.A.S.\",\n\"WORLD HEALTH A&V IPS S.A.S\",\n\"WOUND CLINIC S.A.S.\",\n\"YEPES RESTREPO & CIA S EN C SIMPLE\",\n\"YEPES RESTREPO OTORRINOS S.A.S.\",\n\"ZAKROS CENTRO VISUAL SAS IPS\",\n\"ZENSA MEDICA SAS\",\n\"ZENU SALUD IPS SAS\",\n\"ZENUMED I.P.S. LIMITADA\",\n\n\n );\n\n foreach ($ips as $i){\n DB::table('ips')->insert([\n 'ips' => $i\n ]);\n }\n }", "title": "" }, { "docid": "664e334d9ba5dc65d3bc94b8ab61b8f4", "score": "0.5443326", "text": "public function checkList ()\n\t{\n\t\t// Do nothing if blocklist file doesn't exist\n\t\tif (!file_exists ($this->blocklist)) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Read blocklist file\n\t\t$data = @file_get_contents ($this->blocklist);\n\n\t\t// Parse blocklist file\n\t\t$blocklist = @json_decode ($data, true);\n\n\t\t// Check user's IP address against blocklist\n\t\tif ($blocklist !== null) {\n\t\t\treturn $this->checkIPs ($blocklist);\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "77c0df4003b5f8110292bdd9ef7d5de0", "score": "0.5426221", "text": "function getCurrentBlockHTML($listonly=0) {\n\tglobal $user, $days;\n\t$groupids = implode(',', array_keys($user['groups']));\n\t$query = \"SELECT b.id, \"\n\t . \"b.name AS blockname, \"\n\t . \"b.ownerid, \"\n\t . \"CONCAT(u.unityid, '@', ua.name) AS owner, \"\n\t . \"b.imageid, \"\n\t . \"i.prettyname AS image, \"\n\t . \"b.numMachines AS machinecnt, \"\n\t . \"b.groupid as usergroupid, \"\n\t . \"CONCAT(g.name, '@', a.name) AS `group`, \"\n\t . \"b.repeating AS available \"\n\t . \"FROM image i, \"\n\t . \"blockRequest b \"\n\t . \"LEFT JOIN usergroup g ON (b.groupid = g.id) \"\n\t . \"LEFT JOIN affiliation a ON (g.affiliationid = a.id) \"\n\t . \"LEFT JOIN user u ON (b.ownerid = u.id) \"\n\t . \"LEFT JOIN affiliation ua ON (u.affiliationid = ua.id) \"\n\t . \"WHERE b.imageid = i.id AND \";\n\tif(! checkUserHasPerm('Manage Block Allocations (global)') && \n\t checkUserHasPerm('Manage Block Allocations (affiliation only)'))\n\t\t$query .= \"u.affiliationid = {$user['affiliationid']} AND \";\n\t$query .= \"b.status = 'accepted' \"\n\t . \"ORDER BY b.name\";\n\t$allblockids = array();\n\t$qh = doQuery($query, 101);\n\twhile($row = mysqli_fetch_assoc($qh)) {\n\t\tif($row['group'] == '') {\n\t\t\t$query3 = \"SELECT name FROM usergroup WHERE id = {$row['usergroupid']}\";\n\t\t\t$qh3 = doQuery($query3, 101);\n\t\t\tif($row3 = mysqli_fetch_assoc($qh3))\n\t\t\t\t$row['group'] = $row3['name'];\n\t\t}\n\t\t$allblockids[] = $row['id'];\n\t\t$blocks[$row['id']] = $row;\n\t\t$query2 = \"SELECT DATE_FORMAT(start, '%c/%e/%y<br>%l:%i %p') AS start1, \"\n\t\t . \"UNIX_TIMESTAMP(start) AS unixstart, \"\n\t\t . \"UNIX_TIMESTAMP(end) AS unixend \"\n\t\t . \"FROM blockTimes \"\n\t\t . \"WHERE blockRequestid = {$row['id']} AND \"\n\t\t . \"end > NOW() AND \"\n\t\t . \"skip = 0 \"\n\t\t . \"ORDER BY start \"\n\t\t . \"LIMIT 1\";\n\t\t$qh2 = doQuery($query2, 101);\n\t\tif($row2 = mysqli_fetch_assoc($qh2)) {\n\t\t\tif(array_key_exists('tzoffset', $_SESSION['persistdata'])) {\n\t\t\t\t$tmp = date('n/j/y+g:i=A=T', $row2['unixstart']);\n\t\t\t\t$blocks[$row['id']]['nextstart'] = str_replace(array('+', '='), array('<br>', '&nbsp;'), $tmp);\n\t\t\t}\n\t\t\telse\n\t\t\t\t$blocks[$row['id']]['nextstart'] = $row2['start1'];\n\t\t\tif(time() > ($row2['unixstart'] - 1800) &&\n\t\t\t time() < $row2['unixend'])\n\t\t\t\t$blocks[$row['id']]['nextstartactive'] = 1;\n\t\t\telse\n\t\t\t\t$blocks[$row['id']]['nextstartactive'] = 0;\n\t\t}\n\t\telse {\n\t\t\t$blocks[$row['id']]['nextstart'] = i(\"none found\");\n\t\t\t$blocks[$row['id']]['nextstartactive'] = 0;\n\t\t}\n\t}\n\tif(empty($blocks)) {\n\t\treturn \"There are currently no block allocations.<br>\\n\";\n\t}\n\tforeach($blocks as $id => $request) {\n\t\tif($request['available'] == 'weekly') {\n\t\t\t$query = \"SELECT DATE_FORMAT(start, '%m/%d/%Y') AS swdate, \"\n\t\t\t . \"DATE_FORMAT(end, '%m/%d/%Y')AS ewdate, \" \n\t\t\t . \"days \"\n\t\t\t . \"FROM blockWebDate \"\n\t\t\t . \"WHERE blockRequestid = $id\";\n\t\t\t$qh = doQuery($query, 101);\n\t\t\tif(! $row = mysqli_fetch_assoc($qh))\n\t\t\t\tabort(101);\n\t\t\t$blocks[$id] = array_merge($request, $row);\n\t\t\t$wdays = array();\n\t\t\tfor($i = 0; $i < 7; $i++) {\n\t\t\t\tif($row['days'] & (1 << $i))\n\t\t\t\t\tarray_push($wdays, $days[$i]);\n\t\t\t}\n\t\t\tunset($blocks[$id]['days']);\n\t\t\t$blocks[$id]['wdays'] = $wdays;\n\t\t\t$query = \"SELECT starthour, \"\n\t\t\t . \"startminute, \"\n\t\t\t . \"startmeridian, \"\n\t\t\t . \"endhour, \"\n\t\t\t . \"endminute, \"\n\t\t\t . \"endmeridian, \"\n\t\t\t . \"`order` \"\n\t\t\t . \"FROM blockWebTime \"\n\t\t\t . \"WHERE blockRequestid = {$request['id']} \"\n\t\t\t . \"ORDER BY startmeridian, starthour, startminute\";\n\t\t\t$qh = doQuery($query, 101);\n\t\t\twhile($row = mysqli_fetch_assoc($qh)) {\n\t\t\t\t$blocks[$id]['swhour'][$row['order']] = $row['starthour'];\n\t\t\t\t$blocks[$id]['swminute'][$row['order']] = $row['startminute'];\n\t\t\t\t$blocks[$id]['swmeridian'][$row['order']] = $row['startmeridian'];\n\t\t\t\t$blocks[$id]['ewhour'][$row['order']] = $row['endhour'];\n\t\t\t\t$blocks[$id]['ewminute'][$row['order']] = $row['endminute'];\n\t\t\t\t$blocks[$id]['ewmeridian'][$row['order']] = $row['endmeridian'];\n\t\t\t}\n\t\t}\n\t\telseif($request['available'] == 'monthly') {\n\t\t\t$query = \"SELECT DATE_FORMAT(start, '%m/%d/%Y') AS smdate, \"\n\t\t\t . \"DATE_FORMAT(end, '%m/%d/%Y')AS emdate, \" \n\t\t\t . \"days AS day, \"\n\t\t\t . \"weeknum \"\n\t\t\t . \"FROM blockWebDate \"\n\t\t\t . \"WHERE blockRequestid = $id\";\n\t\t\t$qh = doQuery($query, 101);\n\t\t\tif(! $row = mysqli_fetch_assoc($qh))\n\t\t\t\tabort(101);\n\t\t\t$blocks[$id] = array_merge($request, $row);\n\t\t\t$query = \"SELECT starthour, \"\n\t\t\t . \"startminute, \"\n\t\t\t . \"startmeridian, \"\n\t\t\t . \"endhour, \"\n\t\t\t . \"endminute, \"\n\t\t\t . \"endmeridian, \"\n\t\t\t . \"`order` \"\n\t\t\t . \"FROM blockWebTime \"\n\t\t\t . \"WHERE blockRequestid = {$request['id']} \"\n\t\t\t . \"ORDER BY startmeridian, starthour, startminute\";\n\t\t\t$qh = doQuery($query, 101);\n\t\t\twhile($row = mysqli_fetch_assoc($qh)) {\n\t\t\t\t$blocks[$id]['smhour'][$row['order']] = $row['starthour'];\n\t\t\t\t$blocks[$id]['smminute'][$row['order']] = $row['startminute'];\n\t\t\t\t$blocks[$id]['smmeridian'][$row['order']] = $row['startmeridian'];\n\t\t\t\t$blocks[$id]['emhour'][$row['order']] = $row['endhour'];\n\t\t\t\t$blocks[$id]['emminute'][$row['order']] = $row['endminute'];\n\t\t\t\t$blocks[$id]['emmeridian'][$row['order']] = $row['endmeridian'];\n\t\t\t}\n\t\t}\n\t\telseif($request['available'] == 'list') {\n\t\t\t$query = \"SELECT DATE_FORMAT(start, '%m/%d/%Y') AS date, \"\n\t\t\t . \"days AS `order` \"\n\t\t\t . \"FROM blockWebDate \"\n\t\t\t . \"WHERE blockRequestid = $id \"\n\t\t\t . \"ORDER BY start\";\n\t\t\t$qh = doQuery($query, 101);\n\t\t\twhile($row = mysqli_fetch_assoc($qh)) {\n\t\t\t\tif($row['date'] == '00/00/00')\n\t\t\t\t\t$blocks[$id]['date'][$row['order']] = '';\n\t\t\t\telse\n\t\t\t\t\t$blocks[$id]['date'][$row['order']] = $row['date'];\n\t\t\t}\n\t\t\t$query = \"SELECT starthour, \"\n\t\t\t . \"startminute, \"\n\t\t\t . \"startmeridian, \"\n\t\t\t . \"endhour, \"\n\t\t\t . \"endminute, \"\n\t\t\t . \"endmeridian, \"\n\t\t\t . \"`order` \"\n\t\t\t . \"FROM blockWebTime \"\n\t\t\t . \"WHERE blockRequestid = {$request['id']}\";\n\t\t\t$qh = doQuery($query, 101);\n\t\t\twhile($row = mysqli_fetch_assoc($qh)) {\n\t\t\t\t$blocks[$id]['slhour'][$row['order']] = $row['starthour'];\n\t\t\t\t$blocks[$id]['slminute'][$row['order']] = $row['startminute'];\n\t\t\t\t$blocks[$id]['slmeridian'][$row['order']] = $row['startmeridian'];\n\t\t\t\t$blocks[$id]['elhour'][$row['order']] = $row['endhour'];\n\t\t\t\t$blocks[$id]['elminute'][$row['order']] = $row['endminute'];\n\t\t\t\t$blocks[$id]['elmeridian'][$row['order']] = $row['endmeridian'];\n\t\t\t}\n\t\t}\n\t}\n\t$rt = '';\n\t$rt .= \"<input type=\\\"hidden\\\" id=\\\"timezone\\\" value=\\\"\" . date('T') . \"\\\">\\n\";\n\t$rt .= \"<table summary=\\\"lists current block allocations\\\">\\n\";\n\t$rt .= \" <TR align=center>\\n\";\n\t$rt .= \" <TD colspan=3></TD>\\n\";\n\t$rt .= \" <TH>\" . i(\"Name\") . \"</TH>\\n\";\n\t$rt .= \" <TH>\" . i(\"Environment\") . \"</TH>\\n\";\n\t$rt .= \" <TH>\" . i(\"Reserved<br>Machines\") . \"</TH>\\n\";\n\t$rt .= \" <TH>\" . i(\"Reserved<br>For\") . \"</TH>\\n\";\n\t$rt .= \" <TH>\" . i(\"Repeating\") . \"</TH>\\n\";\n\t$rt .= \" <TH>\" . i(\"Next Start Time\") . \"</TH>\\n\";\n\t$rt .= \" </TR>\\n\";\n\tforeach($blocks as $block) {\n\t\t$rt .= \" <TR align=center>\\n\";\n\t\t$rt .= \" <TD>\\n\";\n\t\t$rt .= \" <button dojoType=\\\"dijit.form.Button\\\" type=\\\"button\\\">\\n\";\n\t\t$rt .= i( \"Edit\") . \"\\n\";\n\t\t$rt .= \" <script type=\\\"dojo/method\\\" event=\\\"onClick\\\">\\n\";\n\t\t$cont = addContinuationsEntry('editBlockAllocation', array('blockid' => $block['id']));\n\t\t$rt .= \" location.href = '\" . BASEURL . SCRIPT . \"?continuation=$cont';\\n\";\n\t\t$rt .= \" </script>\\n\";\n\t\t$rt .= \" </button>\\n\";\n\t\t$rt .= \" </TD>\\n\";\n\t\t$rt .= \" <TD>\\n\";\n\t\t$rt .= \" <button dojoType=\\\"dijit.form.Button\\\" type=\\\"button\\\">\\n\";\n\t\t$rt .= i( \"Delete\") . \"\\n\";\n\t\t$rt .= \" <script type=\\\"dojo/method\\\" event=\\\"onClick\\\">\\n\";\n\t\t$cont = addContinuationsEntry('AJdeleteBlockAllocationConfirm', $block, SECINDAY);\n\t\t$rt .= \" deleteBlockConfirm('$cont');\\n\";\n\t\t$rt .= \" </script>\\n\";\n\t\t$rt .= \" </button>\\n\";\n\t\t$rt .= \" </TD>\\n\";\n\t\t$rt .= \" <TD>\\n\";\n\t\t$rt .= \" <button dojoType=\\\"dijit.form.Button\\\" type=\\\"button\\\">\\n\";\n\t\t$rt .= i( \"View Times\") . \"\\n\";\n\t\t$rt .= \" <script type=\\\"dojo/method\\\" event=\\\"onClick\\\">\\n\";\n\t\t$cont = addContinuationsEntry('AJviewBlockAllocationTimes', array('blockid' => $block['id']), SECINDAY);\n\t\t$rt .= \" viewBlockTimes('$cont');\\n\";\n\t\t$rt .= \" </script>\\n\";\n\t\t$rt .= \" </button>\\n\";\n\t\t$rt .= \" </TD>\\n\";\n\t\t$rt .= \" <TD>{$block['blockname']}</TD>\\n\";\n\t\t$rt .= \" <TD>{$block['image']}</TD>\\n\";\n\t\t$rt .= \" <TD><a href=\\\"javascript:void(0)\\\" onclick=\\\"viewBlockUsage({$block['id']});\\\">{$block['machinecnt']}</a></TD>\\n\";\n\t\t$rt .= \" <TD>{$block['group']}</TD>\\n\";\n\t\t$rt .= \" <TD>\" . i($block['available']) . \"</TD>\\n\";\n\t\tif($block['nextstartactive']) {\n\t\t\t$cont = addContinuationsEntry('viewBlockStatus', array('id' => $block['id']));\n\t\t\t$rt .= \" <TD><a href=\\\"\" . BASEURL . SCRIPT . \"?continuation=$cont\\\">\";\n\t\t\t$rt .= \"{$block['nextstart']}</a></TD>\\n\";\n\t\t}\n\t\telse\n\t\t\t$rt .= \" <TD>{$block['nextstart']}</TD>\\n\";\n\t\t$rt .= \" </TR>\\n\";\n\t}\n\t$rt .= \"</table>\\n\";\n\tif($listonly)\n\t\treturn $rt;\n\n\t$rt .= \"<div id=\\\"confirmDialog\\\" dojoType=\\\"dijit.Dialog\\\" \";\n\t$rt .= \"title=\\\"\" . i(\"Confirm Delete Block Allocation\") . \"\\\">\\n\";\n\t$rt .= \"<h2>\" . i(\"Confirm Delete Block Allocation\") . \"</h2>\\n\";\n\t$h = i(\"Please confirm the following values and then click <strong>Delete Block Allocation</strong>\");\n\t$rt .= preg_replace(\"/(.{1,50}([ \\n]|$))/\", '\\1<br>', $h) . \"<br>\\n\";\n\t$rt .= \"<table summary=\\\"\\\">\\n\";\n\t$rt .= \" <tr>\\n\";\n\t$rt .= \" <th align=\\\"right\\\">\" . i(\"Name:\") . \"</th>\\n\";\n\t$rt .= \" <td><span id=\\\"confname\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \" <tr>\\n\";\n\t$rt .= \" <th align=\\\"right\\\">\" . i(\"Owner:\") . \"</th>\\n\";\n\t$rt .= \" <td><span id=\\\"confowner\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \" <tr>\\n\";\n\t$rt .= \" <th align=\\\"right\\\">\" . i(\"Environment:\") . \"</th>\\n\";\n\t$rt .= \" <td><span id=\\\"confimage\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \" <tr>\\n\";\n\t$rt .= \" <th align=\\\"right\\\">\" . i(\"User Group:\") . \"</th>\\n\";\n\t$rt .= \" <td><span id=\\\"confgroup\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \" <tr>\\n\";\n\t$rt .= \" <th align=\\\"right\\\">\" . i(\"Seats:\") . \"</th>\\n\";\n\t$rt .= \" <td><span id=\\\"confseats\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \" <tr>\\n\";\n\t$rt .= \" <th align=\\\"right\\\">\" . i(\"Repeating:\") . \"</th>\\n\";\n\t$rt .= \" <td><span id=\\\"confrepeat\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \" <tr valign=\\\"top\\\">\\n\";\n\t$rt .= \" <th align=\\\"right\\\"><span id=\\\"conftitle1\\\"></span></th>\\n\";\n\t$rt .= \" <td><span id=\\\"confvalue1\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \" <tr valign=\\\"top\\\">\\n\";\n\t$rt .= \" <th align=\\\"right\\\"><span id=\\\"conftitle2\\\"></span></th>\\n\";\n\t$rt .= \" <td><span id=\\\"confvalue2\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \" <tr valign=\\\"top\\\">\\n\";\n\t$rt .= \" <th align=\\\"right\\\"><span id=\\\"conftitle3\\\"></span></th>\\n\";\n\t$rt .= \" <td><span id=\\\"confvalue3\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \" <tr valign=\\\"top\\\">\\n\";\n\t$rt .= \" <th align=\\\"right\\\"><span id=\\\"conftitle4\\\"></span></th>\\n\";\n\t$rt .= \" <td><span id=\\\"confvalue4\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \"</table>\\n\";\n\t$rt .= \"<button dojoType=\\\"dijit.form.Button\\\" type=\\\"button\\\">\\n\";\n\t$rt .= i(\"Delete Block Allocation\") . \"\\n\";\n\t$rt .= \" <script type=\\\"dojo/method\\\" event=\\\"onClick\\\">\\n\";\n\t$rt .= \" deleteBlockSubmit();\\n\";\n\t$rt .= \" </script>\\n\";\n\t$rt .= \"</button>\\n\";\n\t$rt .= \"<button dojoType=\\\"dijit.form.Button\\\" type=\\\"button\\\">\\n\";\n\t$rt .= i(\"Cancel\") . \"\\n\";\n\t$rt .= \" <script type=\\\"dojo/method\\\" event=\\\"onClick\\\">\\n\";\n\t$rt .= \" clearHideConfirmDelete();\\n\";\n\t$rt .= \" </script>\\n\";\n\t$rt .= \"</button>\\n\";\n\t$rt .= \"<input type=hidden id=submitdeletecont>\\n\";\n\t$rt .= \"</div>\\n\"; # confirm dialog\n\n\t$rt .= \"<div id=\\\"viewtimesDialog\\\" dojoType=\\\"dijit.Dialog\\\" \";\n\t$rt .= \"title=\\\"\" . i(\"Block Allocation Times\") . \"\\\">\\n\";\n\t$rt .= \"<h2>\" . i(\"Block Allocation Times\") . \"</h2>\\n\";\n\t$rt .= \"<table dojoType=\\\"dojox.grid.DataGrid\\\" jsId=\\\"blockTimesGrid\\\" sortInfo=1 \";\n\t$rt .= \"style=\\\"width: 328px; height: 200px;\\\">\\n\";\n\t$rt .= \"<script type=\\\"dojo/method\\\" event=\\\"onStyleRow\\\" args=\\\"row\\\">\\n\";\n\t$rt .= \"blockTimeRowStyle(row);\\n\";\n\t$rt .= \"</script>\\n\";\n\t$rt .= \"<thead>\\n\";\n\t$rt .= \"<tr>\\n\";\n\t$rt .= \"<th field=\\\"start\\\" width=\\\"70px\\\" formatter=\\\"blockTimesGridDate\\\">\" . i(\"Date\") . \"</th>\\n\";\n\t$rt .= \"<th field=\\\"start\\\" width=\\\"85px\\\" formatter=\\\"blockTimesGridStart\\\">\" . i(\"Start\") . \"</th>\\n\";\n\t$rt .= \"<th field=\\\"end\\\" width=\\\"85px\\\" formatter=\\\"blockTimesGridEnd\\\">\" . i(\"End\") . \"</th>\\n\";\n\t$rt .= \"<th field=\\\"delbtn\\\" width=\\\"60px\\\">\" . i(\"Skip\") . \"</th>\\n\";\n\t$rt .= \"</tr>\\n\";\n\t$rt .= \"</thead>\\n\";\n\t$rt .= \"</table>\\n\";\n\t$rt .= \"<div align=\\\"center\\\">\\n\";\n\t$rt .= \"<button dojoType=\\\"dijit.form.Button\\\" type=\\\"button\\\">\\n\";\n\t$rt .= i(\"Close\") . \"\\n\";\n\t$rt .= \" <script type=\\\"dojo/method\\\" event=\\\"onClick\\\">\\n\";\n\t$rt .= \" dijit.byId('viewtimesDialog').hide();\\n\";\n\t$rt .= \" </script>\\n\";\n\t$rt .= \"</button>\\n\";\n\t$rt .= \"</div>\\n\";\n\t$rt .= \"<input type=hidden id=toggletimecont>\\n\";\n\t$rt .= \"</div>\\n\"; # times dialog\n\n\t$rt .= \"<div id=\\\"viewUsageDialog\\\" dojoType=\\\"dijit.Dialog\\\" \";\n\t$rt .= \"title=\\\"\" . i(\"Block Allocation Usage\") . \"\\\">\\n\";\n\t$rt .= \"<div id=\\\"blockusagechartdiv\\\" class=\\\"hidden\\\"></div>\\n\";\n\t$rt .= \"<div id=\\\"blockusageemptydiv\\\" class=\\\"hidden\\\">\";\n\t$rt .= i(\"This block allocation has never been used.\") . \"</div>\\n\";\n\t$rt .= \"<div align=\\\"center\\\">\\n\";\n\t$rt .= \"<button dojoType=\\\"dijit.form.Button\\\" type=\\\"button\\\">\\n\";\n\t$rt .= i(\"Close\") . \"\\n\";\n\t$rt .= \" <script type=\\\"dojo/method\\\" event=\\\"onClick\\\">\\n\";\n\t$rt .= \" dijit.byId('viewUsageDialog').hide();\\n\";\n\t$rt .= \" </script>\\n\";\n\t$rt .= \"</button>\\n\";\n\t$rt .= \"</div>\\n\";\n\t$blockids = array_keys($blocks);\n\t$cont = addContinuationsEntry('AJviewBlockAllocationUsage', array('blockids' => $blockids), SECINDAY);\n\t$rt .= \"<input type=hidden id=viewblockusagecont value=\\\"$cont\\\">\\n\";\n\t$rt .= \"</div>\\n\"; # usage dialog\n\treturn $rt;\n}", "title": "" }, { "docid": "6a55ba10cd45784434ff850d826cd335", "score": "0.5412605", "text": "function chkiplist($ip) {\n\t$dir = getcwd();\n\t$lines = file($dir . \"/PH_ipranges.txt\");\n\t# set a variable as false\n\t$found = false;\n\t# convert ip address into a number\n\t$split_it = split(\"\\.\",$ip);\n\t$ip = \"1\" . sprintf(\"%03d\",$split_it[0]) .\nsprintf(\"%03d\",$split_it[1]) . sprintf(\"%03d\",$split_it[2]) .\nsprintf(\"%03d\",$split_it[3]);\n\t# loop through the ip address file\n\tforeach ($lines as $line) {\n\t\t# remove line feeds from the line\n\t\t$line = chop($line);\n\t\t# replace x with a *\n\t\t$line = str_replace(\"x\",\"*\",$line);\n\t\t# remove comments\n\t\t$line = preg_replace(\"|[A-Za-z#/]|\",\"\",$line);\n\t\t# set a maximum and minimum value\n\t\t$max = $line;\n\t\t$min = $line;\n\t\t# replace * with a 3 digit number\n\t\tif ( strpos($line,\"*\",0) <> \"\" ) {\n\t\t\t$max = str_replace(\"*\",\"999\",$line);\n\t\t\t$min = str_replace(\"*\",\"000\",$line);\n\t\t}\n\t\t# replace ? with a single digit\n\t\tif ( strpos($line,\"?\",0) <> \"\" ) {\n\t\t\t$max = str_replace(\"?\",\"9\",$line);\n\t\t\t$min = str_replace(\"?\",\"0\",$line);\n\t\t}\n\t\t# if the line is invalid go to the next line\n\t\tif ( $max == \"\" ) { continue; };\n\t\t# check for a range\n\t\tif ( strpos($max,\" - \",0) <> \"\" ) {\n\t\t\t$split_it = split(\" - \",$max);\n\t\t\t# if the second part does not match an ip address\n\t\t\tif ( !preg_match(\"|\\d{1,3}\\.|\",$split_it[1]) ) {\n\t\t\t\t$max = $split_it[0];\n\t\t\t}\n\t\t\telse { \n\t\t\t\t$max = $split_it[1];\n\t\t\t};\n\t\t}\n\t\tif ( strpos($min,\" - \",0) <> \"\" ) {\n\t\t\t$split_it = split(\" - \",$min);\n\t\t\t$min = $split_it[0];\n\t\t}\n\t\t# make $max into a number\n\t\t$split_it = split(\"\\.\",$max);\n\t\tfor ( $i=0;$i<4;$i++ ) {\n\t\t\tif ( $i == 0 ) { $max = 1; };\n\t\t\tif ( strpos($split_it[$i],\"-\",0) <> \"\" ) {\n\t\t\t\t$another_split = split(\"-\",$split_it[$i]);\n\t\t\t\t$split_it[$i] = $another_split[1];\n\t\t\t} \n\t\t$max .= sprintf(\"%03d\",$split_it[$i]);\n\t\t}\n\t\t# make $min into a number\n\t\t$split_it = split(\"\\.\",$min);\n\t\tfor ( $i=0;$i<4;$i++ ) {\n\t\t\tif ( $i == 0 ) { $min = 1; };\n\t\t\tif ( strpos($split_it[$i],\"-\",0) <> \"\" ) {\n\t\t\t\t$another_split = split(\"-\",$split_it[$i]);\n\t\t\t\t$split_it[$i] = $another_split[0];\n\t\t\t} \n\t\t$min .= sprintf(\"%03d\",$split_it[$i]);\n\t\t}\n\t\t# check for a match\n\t\tif ( ($ip <= $max) && ($ip >= $min) ) {\n\t\t\t$found = true;\n\t\t\tbreak;\n\t\t};\n\t}\n\treturn $found;\n}", "title": "" }, { "docid": "a86656d0f3c47104f6dab0d203489aff", "score": "0.53971857", "text": "function checkExistPvtIPPerCustomer($custid, $ip, $cidr) {\n $this->customer_model->setCustomerID($custid);\n// $ip = ip2long('192.168.12.0');\n// $cidr = 24;\n $custips = $this->customer_model->checkExistPvtIPPerCustomer();\n $text = '';\n\n foreach ($custips as $row) {\n $ip1 = $row->ip_addresses;\n $cidr1 = $row->subnet;\n $net = ip2long($ip1) & (-1 << (32 - $cidr1));\n $bcast = ip2long($ip1) | ~(-1 << (32 - $cidr1));\n\n if ($ip >= $net && $ip <= $bcast) {\n $this->customer_model->setCustservID($row->customer_id);\n $result = $this->customer_model->getLinksDetailbyID();\n foreach ($result as $rows) {\n $text .= $row->ip_addresses . \"/\" . $row->subnet . \" is already assigned to \";\n if ($rows->servicecode == 'LN') {\n $text .=\"Links(\" . $rows->link . \") -- \" . $rows->ltown . \"</br>\";\n } else {\n if (strtolower($rows->identify) == \"none\" || $rows->identify == \"\")\n $text .=$rows->service_name . \"</br>\";\n else\n $text .=$rows->service_name . \" \" . $rows->identify . \"</br>\";\n }\n }\n }\n }\n foreach ($custips as $row) {\n $ip1 = ip2long($row->ip_addresses);\n $net1 = $ip & (-1 << (32 - $cidr));\n $bcast1 = $ip | ~(-1 << (32 - $cidr));\n if ($ip1 >= $net1 && $ip1 <= $bcast1) {\n\n $this->customer_model->setCustservID($row->customer_id);\n $result = $this->customer_model->getLinksDetailbyID();\n foreach ($result as $rows) {\n if ($cidr < ($row->subnet)) {\n\n $text .= $row->ip_addresses . \"/\" . $row->subnet . \" is already assigned to \";\n if ($rows->servicecode == 'LN') {\n $text .=\"Links(\" . $rows->link . \") -- \" . $rows->ltown . \"</br>\";\n } else {\n if (strtolower($rows->identify) == \"none\" || $rows->identify == \"\")\n $text .=$rows->service_name . \"</br>\";\n else\n $text .=$rows->service_name . \" \" . $rows->identify . \"</br>\";\n }\n }\n }\n }\n// $text .= $ip1.\" \".$net1.\" \".$bcast1.\"</br>\";\n }\n\n return $text;\n }", "title": "" }, { "docid": "f50f69ab603315b7e43774fbb73b56b2", "score": "0.537055", "text": "function NodIP($ina,$opa,$sta,$lim,$ord){\n\n\tglobal $link,$srtlbl,$manlbl,$mullbl,$adrlbl,$qtylbl,$duplbl,$typlbl,$totlbl,$nonlbl;\n?>\n\n<table class=\"full fixed\"><tr><td class=\"helper\">\n\n<h2><?= $duplbl ?> IP <?= $adrlbl ?></h2>\n\n<?php\n\tif($ord){\n\t\t$ocol = 'nodip';\n\t\t$srt = \"$srtlbl: $adrlbl\";\n\t}else{\n\t\t$ocol = 'cnt desc';\n\t\t$srt = \"$srtlbl: $qtylbl\";\n\t}\n\t$query = GenQuery('nodarp','g','nodip,arpdevice;-;count(*)>1',$ocol,$lim,array($ina),array($opa),array($sta),array(),'LEFT JOIN devices on (nodarp.arpdevice = devices.device)');\n\t$res = DbQuery($query,$link);\n\tif( DbNumRows($res) ){\n?>\n<table class=\"content\">\n\t<tr class=\"bgsub\">\n\t\t<th>\n\t\t\t<img src=\"img/16/glob.png\"><br>IP <?= $adrlbl ?>\n\n\t\t</th>\n\t\t<th>\n\t\t\t<img src=\"img/16/dev.png\"><br>ARP Device\n\t\t</th>\n\t\t<th>\n\t\t\t<img src=\"img/16/nods.png\"><br>Nodes\n\t\t</th>\n\t</tr>\n<?php\n\t\t$row = 0;\n\t\twhile( $r = DbFetchRow($res) ){\n\t\t\tif ($row % 2){$bg = \"txta\"; $bi = \"imga\";}else{$bg = \"txtb\"; $bi = \"imgb\";}\n\t\t\t$row++;\n\t\t\tTblRow( $bg );\n\t\t\tTblCell( long2ip($r[0]) );\n\t\t\tTblCell( $r[1],'','b' );\n\t\t\tTblCell( $r[2],\"Nodes-List.php?in[]=nodip&op[]==&st[]=$r[0]\".AddFilter($ina,$opa,$sta),'','+'.Bar($r[2],0) );\n\t\t\techo \"\\t</tr>\\n\";\n\t\t}\n\t\tTblFoot(\"bgsub\", 3, \"$row $duplbl IP $adrlbl, $srt\");\n\t}else{\n\t\techo \"<h5>$nonlbl</h5>\";\n\t}\n?>\n\n</td><td class=\"helper\">\n\n<h2><?= $duplbl ?> IPv6 <?= $adrlbl ?></h2>\n\n<?php\n\tif($ord){\n\t\t$ocol = 'nodip';\n\t\t$srt = \"$srtlbl: $adrlbl\";\n\t}else{\n\t\t$ocol = 'cnt desc';\n\t\t$srt = \"$srtlbl: $qtylbl\";\n\t}\n\t$query = GenQuery('nodnd','g','nodip6,arpdevice;-;count(*)>1',$ocol,$lim,array($ina),array($opa),array($sta),array(),'LEFT JOIN devices on (nodnd.nddevice = devices.device)');\n\t$res = DbQuery($query,$link);\n\tif( DbNumRows($res) ){\n?>\n<table class=\"content\">\n\t<tr class=\"bgsub\">\n\t\t<th>\n\t\t\t<img src=\"img/16/glob.png\"><br>\n\t\t\tIPv6 <?= $adrlbl ?>\n\n\t\t</th>\n\t\t<th>\n\t\t\t<img src=\"img/16/dev.png\"><br>\n\t\t\tARP Device\n\t\t</th>\n\t\t<th>\n\t\t\t<img src=\"img/16/nods.png\"><br>\n\t\t\tNodes\n\t\t</th>\n\t</tr>\n<?php\n\t\t$row = 0;\n\t\twhile( $r = DbFetchRow($res) ){\n\t\t\tif ($row % 2){$bg = \"txta\"; $bi = \"imga\";}else{$bg = \"txtb\"; $bi = \"imgb\";}\n\t\t\t$row++;\n\t\t\tTblRow( $bg );\n\t\t\tTblCell( DbIPv6($r[0]) );\n\t\t\tTblCell( $r[1],'','b' );\n\t\t\tTblCell( $r[2],\"Nodes-List.php?in[]=nodip6&op[]==&st[]=$r[0]\".AddFilter($ina,$opa,$sta),'','+'.Bar($r[2],0) );\n\t\t\techo \"\\t</tr>\\n\";\n\t\t}\n\t\tTblFoot(\"bgsub\", 3, \"$row $duplbl IPv6 $adrlbl, $srt\");\n\t}else{\n\t\techo \"<h5>$nonlbl</h5>\";\n\t}\n?>\n\n</td></tr><tr><td class=\"helper\">\n\n<h2><?= $mullbl ?> IP <?= $adrlbl ?></h2>\n\n<?php\n\tif($ord){\n\t\t$ocol = 'mac';\n\t\t$srt = \"$srtlbl: $adrlbl\";\n\t}else{\n\t\t$ocol = 'cnt desc';\n\t\t$srt = \"$srtlbl: $qtylbl\";\n\t}\n\t$query = GenQuery('nodarp','g','mac,arpdevice;-;count(*)>1',$ocol,$lim,array($ina),array($opa),array($sta),array(),'LEFT JOIN devices on (nodarp.arpdevice = devices.device)');\n\t$res = DbQuery($query,$link);\n\tif( DbNumRows($res) ){\n?>\n<table class=\"content\">\n\t<tr class=\"bgsub\">\n\t\t<th>\n\t\t\t<img src=\"img/16/node.png\"><br>Node\n\t\t</th>\n\t\t<th>\n\t\t\t<img src=\"img/16/dev.png\"><br>ARP Device\n\t\t</th>\n\t\t<th>\n\t\t\t<img src=\"img/16/nods.png\"><br>#IP <?= $adrlbl ?>\n\n\t\t</th>\n\t</tr>\n<?php\n\t\t$row = 0;\n\t\twhile( $r = DbFetchRow($res) ){\n\t\t\tif ($row % 2){$bg = \"txta\"; $bi = \"imga\";}else{$bg = \"txtb\"; $bi = \"imgb\";}\n\t\t\t$row++;\n\t\t\tTblRow( $bg );\n\t\t\tTblCell( $r[0] );\n\t\t\tTblCell( $r[1],'','b' );\n\t\t\tTblCell( $r[2],\"Nodes-List.php?in[]=mac&op[]==&st[]=$r[0]\".AddFilter($ina,$opa,$sta),'nw',Bar($r[2],0) );\n\t\t\techo \"\\t</tr>\\n\";\n\t\t}\n\t\tTblFoot(\"bgsub\", 3, \"$row $mullbl IP $adrlbl, $srt\");\n\t}else{\n\t\techo \"<h5>$nonlbl</h5>\";\n\t}\n?>\n\n</td></tr></table>\n\n<?php\n}", "title": "" }, { "docid": "b66c5eef722b5b90fca2286101b0e3b9", "score": "0.53227687", "text": "public function searchTABI($string) {\n if (!ctype_alnum($string)) return;\n // check for address\n if (strlen($string) == 34) {\n try {\n $r = $this->dbh->prepare(\"select address from vout_address where address = :address and inactive != 1\");\n $r->bindValue(':address', $string);\n $r->execute();\n }\n catch (PDOException $exception) { }\n $v = $r->fetch(PDO::FETCH_NUM);\n $address = $v[0];\n if ($v && ctype_alnum($address)) { return(\"Location: address/?address=\" . $v[0]); }\n }\n // check for block id\n if (is_numeric($string)) {\n try {\n $r = $this->dbh->prepare(\"select id from block where id = :string and inactive != 1\");\n $r->bindValue(':string', $string);\n $r->execute();\n }\n catch (PDOException $exception) { }\n $v = $r->fetch(PDO::FETCH_NUM);\n $blockid = $v[0];\n if ($v && is_numeric($blockid)) { return(\"Location: block/?id=\" . $v[0]); }\n }\n\n // check for block hash\n try {\n $r = $this->dbh->prepare(\"select hash from block where hash = :string and inactive != 1\");\n $r->bindValue(':string', $string);\n $r->execute();\n }\n catch (PDOException $exception) {\n //$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n //var_dump($exception->getMessage());\n //echo \"testing\";\n }\n $v = $r->fetch(PDO::FETCH_NUM);\n $blockhash = $v[0];\n if ($v && ctype_alnum($blockhash)) { return(\"Location: block/?hash=\" . $v[0]); }\n else {\n // check for tx hash\n try {\n $r = $this->dbh->prepare(\"select hash from tx where hash = :string and inactive != 1\");\n $r->bindValue(':string', $string);\n $r->execute();\n }\n catch (PDOException $exception) { }\n $v = $r->fetch(PDO::FETCH_NUM);\n $txhash = $v[0];\n if ($v && ctype_alnum($txhash)) { return(\"Location: tx/?txid=\" . $v[0]); }\n }\n }", "title": "" }, { "docid": "7999b28b4bd83f965121fca91ab83638", "score": "0.53129727", "text": "function get_local() {\r\n\t\tif ($this->is_private() == 1) { return 'a private spot'; }\r\n\t\t$dbh = dbConnectSelect('432439_mcaapp');\r\n\r\n\t\t// get id first\r\n\t\t// get a row greater than the startip\r\n\t\t$sql = \"select locID from geocity_blocks where startIpNum >= \" .\r\n\t\t\t$this->as_int . \" order by startIpNum asc limit 1\";\r\n\t\t$result = mysql_query($sql, $dbh) or die(\"mysql_query failed: $sql\");\r\n\t\t$row = mysql_fetch_assoc($result);\r\n\t\t$i_top = $row['locID'];\r\n\r\n\t\t// get a row less than the startip\r\n\t\t$sql = \"select locID from geocity_blocks where endIpNum <= \" .\r\n\t\t\t$this->as_int . \" order by endIpNum desc limit 1\";\r\n\t\t$result = mysql_query($sql, $dbh) or die(\"mysql_query failed: $sql\");\r\n\t\t$row = mysql_fetch_assoc($result);\r\n\t\t$i_bottom = $row['locID'];\r\n\r\n\t\t$i_diff = $i_top - $i_bottom;\r\n\t\t$i_id = $i_top - ($i_diff - 1);\r\n\r\n\t\t$sql = \"select b.*, l.* from geocity_blocks b, geocity_location l where b.locid = l.locId and b.locID = $i_id\";\r\n\t\t$result = mysql_query($sql, $dbh) or die(\"mysql_query failed: $sql\");\r\n\t\t$row = mysql_fetch_assoc($result);\r\n\t\t$i_rows = mysql_num_rows($result);\r\n\t\t\r\n\t\tif ($_SERVER['PHP_SELF'] == '/local/classes/test_ip_class.php') {\r\n\t\t\tprint \"<pre>\";\r\n\t\t\tprint \"sql: $sql\\n\";\r\n\t\t\tprint \"i_top: $i_top\\n\";\r\n\t\t\tprint \"i_bottom: $i_bottom\\n\";\r\n\t\t\tprint \"i_diff: $i_diff\\n\";\r\n\t\t\tprint \"i_id: $i_id\\n\";\r\n\t\t\tprint $row['postalcode'] . \"\\n\";\r\n\t\t\tprint \"</pre>\";\r\n\t\t}\r\n\r\n\t\tif (strlen($row['postalcode']) > 2) {\r\n\t\t\treturn preg_replace('/\\\"/i', '', $row['postalcode']);\r\n\t\t}\r\n\r\n\t\tif (strlen($row['city']) > 0) {\r\n\t\t\tif (strcmp($row['country'], '\"US\"') == 0) {\r\n\t\t\t\t$locale = $row['city'] . ', ' . $row['region'];\r\n\t\t\t} else {\r\n\t\t\t\t$locale = $row['city'] . ', ' . $row['region'] . ' ' . \r\n\t\t\t\t$row['country'];\r\n\t\t\t}\r\n\t\t\t$pattern = '/\\\"/i';\r\n\t\t\t$replacement = '';\r\n\t\t\t$locale = preg_replace($pattern, $replacement, $locale);\r\n\t\t\treturn $locale;\r\n\t\t}\r\n\t\t\r\n\t\treturn;\r\n\t}", "title": "" }, { "docid": "0c4e00739688c55f19f063fd282b906e", "score": "0.5308078", "text": "function ludo_blacklist_ip_form () {\n $nonce = yourls_create_nonce( 'blacklist_ip' ) ;\n $liste_ip = yourls_get_option ('ludo_blacklist_ip_liste','Enter IP addresses here, one entry per line');\n if ($liste_ip != 'Enter IP addresses here, one entry per line' )\n $liste_ip_display = implode ( \"\\r\\n\" , unserialize ( $liste_ip ) );\n\telse\n\t\t$liste_ip_display=$liste_ip;\n echo <<<HTML\n <h2>BlackList IPs</h2>\n <form method=\"post\">\n \n <input type=\"hidden\" name=\"action\" value=\"blacklist_ip\" />\n <input type=\"hidden\" name=\"nonce\" value=\"$nonce\" />\n \n <p>Blacklist following IPs (one range or IP per line, no wildcards allowed) :</p>\n <p><textarea cols=\"50\" rows=\"10\" name=\"blacklist_form\">$liste_ip_display</textarea></p>\n \n <p><input type=\"submit\" value=\"Save\" /></p>\n\t\t<p>I suggest to add here IPs that you saw adding bulk URL. It is your own responsibility to check the use of the IPs you block. WARNING : erroneous entries may create unexpected behaviours, please double-check before validation.</p>\n\t\t<p>Examples : \n\t\t\t<ul>\n\t\t\t\t<li>10.0.0.1/24 : blacklist from 10.0.0.0 to 10.0.0.255 (CIDR notation).</li>\n\t\t\t\t<li>192.168.1.2/255.255.255.128 : blacklist from 192.168.1.0 to 192.168.0.128.</li>\n\t\t\t\t<li>192.168.1.12-192.168.1.59 : blacklist from 192.168.1.12 to 192.168.1.59.</li>\n\t\t\t\t<li>192.168.0.0 : blacklist from 192.168.0.0 to 192.168.255.255</li>\n\t\t\t\t<li>10.0.0.58 : blacklist only 10.0.0.58 IP address.</li>\n\t\t\t</ul>\n\t\t</p>\n </form>\nHTML;\n}", "title": "" }, { "docid": "b8395d0b42397981e7581be0d7957aae", "score": "0.53038245", "text": "function Innacom ($ip, $filesave = \"\", $wifi = false) {\n if (isset ($ip)) {\n global $list, $wifi_pass_collect, $autocollect_bool;\n global $wifi_pass_filename, $autocollect_filename, $autocollect_range;\n\n $result = \"\"; \n\n $curl = http_request(\"http://{$ip}/login.cgi?username=support&psd=support\", \"\", \"\");\n\n $login_back = false;\n\n //Using another verification\n if (strpos(\"Authentication fail\", $curl)) {\n \n foreach ($list as $username => $pass) {\n $curl = http_request(\"http://{$ip}/login.cgi?username={$username}&psd={$pass}\", \"\", \"\");\n if (strpos(\"Authentication fail\", $curl) || strpos('parent.location=', $curl)) {\n continue;\n } else {\n $login_back = true;\n break;\n }\n }\n } else {\n $login_back = true;\n }\n \n if ($login_back == false) {\n return false;\n } else {\n $cook = GetCookies ($curl);\n $curl = http_request(\"http://{$ip}/wancfg.cmd\", $cook, \"\");\n \n if (strpos ($curl, 'parent.location=') !== FALSE) return false;\n \n $curl1 = http_request(\"http://{$ip}/info.html\", $cook, \"\");\n preg_match_all('/\\{(.*?)\\}/', cutstr ($curl, \"obj2Items\", \"';\"), $f);\n preg_match_all('/\\\"\\<td\\>(\\d{3,6}?)\\<\\/td\\>\\\"/', $curl1, $f1);\n if (!empty ($f[1][11]) && !empty ($f[1][12])) {\n $result .= \" Streamyx User : \".$f[1][11].\"\\n\";\n $result .= \" Streamyx Pass : \".$f[1][12].\"\\n\";\n }\n if (!empty ($f1[1][0]) && !empty ($f1[1][1])) {\n $result .= \" Upstream : \".$f1[1][0].\"\\n\";\n $result .= \" Downstream : \".$f1[1][1].\"\\n\";\n }\n else return false;\n\n //wifi\n $wifi_get = http_request(\"http://{$ip}/wlsecurity.html\", $cook, \"\");\n $wifi_cut = cutstr ($wifi_get, \"btnApply('wlsecrefresh.wl\", \"</select>\");\n preg_match('/\\<option\\ value\\=\\'.*\\'\\>(.*?)\\<\\/option\\>/', $wifi_cut, $ntwk_ssid);\n \n $ntwk_auth = '';\n $wifi_auth_shortkey = cutstr ($wifi_get, \"mode = '\", \"';\");\n $wifi_cut_auth = cutstr ($wifi_get, \"wlAuthMode' size=\", '</select>');\n preg_match_all('/value\\=\\\".*\\\"\\>.*\\<\\//', $wifi_cut_auth, $get_auth);\n \n foreach ($get_auth[0] as $auth_wifi) {\n if (strpos ($auth_wifi, $wifi_auth_shortkey)) {\n $ntwk_auth = cutstr ($auth_wifi, '\">', '</');\n }\n }\n \n $ntwk_key = cutstr ($wifi_get, 'keys = new Array( \"', '\",');\n \n if ($wifi) {\n $result .= \" Network SSID : \".$ntwk_ssid[1].\"\\n\";\n $result .= \" Network Auth : \".$ntwk_auth.\"\\n\";\n $result .= \" Network Key : \".$ntwk_key.\"\\n\";\n }\n //end wifi\n\n \n\n if (!empty ($filesave) && !empty ($f[1][11])) {\n $data = array(\n \"IP\" => $ip,\n \"Router\" => \"Innacomm\",\n \" Streamyx User\" => $f[1][11],\n \" Streamyx Pass\" => $f[1][12],\n \" Upstream\" => $f1[1][0],\n \" Downstream\" => $f1[1][1]\n );\n if ($wifi) {\n $data = array_merge ($data, array(\n \" Network SSID\" => $ntwk_ssid[1],\n \" Network Authentication\" => $ntwk_auth,\n \" Network Key\" => $ntwk_key\n )\n );\n }\n file_put_contents ($filesave, \"\\r\\n\", FILE_APPEND);\n \n foreach ($data as $name => $value) {\n file_put_contents ($filesave, \"\\r\\n\".$name.\" : \".$value, FILE_APPEND);\n }\n }\n \n if ($wifi_pass_collect) {\n if (!empty ($ntwk_key)) add_wifi_pass ($ntwk_key, $wifi_pass_filename);\n }\n \n if ($autocollect_bool && $f1[1][1] > $autocollect_range) {\n if (!empty($f[1][11]) && !empty($f[1][12])) {\n add_streamyx_id($f[1][11], $f[1][12], $autocollect_filename);\n }\n }\n \n http_request(\"http://{$ip}/logout.cgi\", $cook, \"\");\n return $result;\n }\n }\n}", "title": "" }, { "docid": "01d6c72bdcc89c29a6fecbd028646fad", "score": "0.52920043", "text": "function ip_block($ip,$exit=true){\n if ( !file_exists($ip) and !is_array($ip)) {\n $deny_ips[] = $ip;\n }elseif(!file_exists($ip)){\n $deny_ips[] = $ip;\n }else{\n $deny_ips = file($ip);\n }\n $ip = isset($_SERVER['REMOTE_ADDR']) ? trim($_SERVER['REMOTE_ADDR']) : '';\n if ( array_search($ip, $deny_ips) !== FALSE ) {\n if ( $exit == true ) {\n header('HTTP/1.1 301 Moved Permanently');\n header('Location: http://www.google.com');\n header('Connection: close');\n exit(1);\n }else{\n return 'Your IP address ('.$ip.') was blocked!';\n }\n }\n}", "title": "" }, { "docid": "c9b5f60eaf82b4c1bc5867a4a77327ca", "score": "0.5283616", "text": "function checkIPBan() {\n\tglobal $ikiosk, $database_ikiosk, $SYSTEM, $SITE, $PAGE, $USER;\n\t\n\t//Check IP Ban System\n\tmysql_select_db($database_ikiosk, $ikiosk);\n\t$query_ipBan = \"SELECT * FROM sys_ipban WHERE ip_address = '\".$_SERVER['REMOTE_ADDR'].\"' AND deleted = '0'\";\n\t$ipBan = mysql_query($query_ipBan, $ikiosk) or sqlError(mysql_error());\n\t$row_ipBan = mysql_fetch_assoc($ipBan);\n\t$totalRows_ipBan = mysql_num_rows($ipBan);\n\t\n\tif ($totalRows_ipBan != \"0\") {\n\t\theader(\"Location: \".$SYSTEM['html_root'].$SYSTEM['ikiosk_root'].\"error.php?error=2\");\n\t\texit;\n\t}\n}", "title": "" }, { "docid": "e72e8b7d76c92007557951afa16c8117", "score": "0.52741516", "text": "public function unblockIP($ips)\n\t{\n\t\t$ips = (array) $ips;\n\n\t\t/** @var AutoBannedAddresses $autoban */\n\t\t$autoban = $this->container->factory->model('AutoBannedAddresses')->tmpInstance();\n\n\t\t/** @var IPAutoBanHistories $history */\n\t\t$history = $this->container->factory->model('IPAutoBanHistories')->tmpInstance();\n\n\t\t/** @var BlacklistedAddresses $black */\n\t\t$black = $this->container->factory->model('BlacklistedAddresses')->tmpInstance();\n\n\t\t/** @var SecurityExceptions $log */\n\t\t$log = $this->container->factory->model('SecurityExceptions')->tmpInstance();\n\n\t\t$db = $this->container->db;\n\t\t$found = false;\n\n\t\t// Let's delete all the IPs. We are going to directly use the database since it would be faster\n\t\t// than loading the record and then deleting it\n\t\tforeach ($ips as $ip)\n\t\t{\n\t\t\t$autoban->reset()->setState('ip', $ip);\n\t\t\t$history->reset()->setState('ip', $ip);\n\t\t\t$black->reset()->setState('ip', $ip);\n\t\t\t$log->reset()->setState('ip', $ip);\n\n\t\t\tif (count($autoban->get(true)))\n\t\t\t{\n\t\t\t\t$found = true;\n\n\t\t\t\t$query = $db->getQuery(true)\n\t\t\t\t\t->delete($db->qn('#__admintools_ipautoban'))\n\t\t\t\t\t->where($db->qn('ip') . ' = ' . $db->q($ip));\n\t\t\t\t$db->setQuery($query)->execute();\n\t\t\t}\n\n\t\t\tif (count($history->get(true)))\n\t\t\t{\n\t\t\t\t$found = true;\n\n\t\t\t\t$query = $db->getQuery(true)\n\t\t\t\t\t->delete($db->qn('#__admintools_ipautobanhistory'))\n\t\t\t\t\t->where($db->qn('ip') . ' = ' . $db->q($ip));\n\t\t\t\t$db->setQuery($query)->execute();\n\t\t\t}\n\n\t\t\tif (count($black->get(true)))\n\t\t\t{\n\t\t\t\t$found = true;\n\n\t\t\t\t$query = $db->getQuery(true)\n\t\t\t\t\t->delete($db->qn('#__admintools_ipblock'))\n\t\t\t\t\t->where($db->qn('ip') . ' = ' . $db->q($ip));\n\t\t\t\t$db->setQuery($query)->execute();\n\t\t\t}\n\n\t\t\t// I have to delete the log of security exceptions, too. Otherwise at the next check the user will be\n\t\t\t// banned once again\n\t\t\tif (count($log->get(true)))\n\t\t\t{\n\t\t\t\t$found = true;\n\n\t\t\t\t$query = $db->getQuery(true)\n\t\t\t\t\t->delete($db->qn('#__admintools_log'))\n\t\t\t\t\t->where($db->qn('ip') . ' = ' . $db->q($ip));\n\t\t\t\t$db->setQuery($query)->execute();\n\t\t\t}\n\t\t}\n\n\t\tif (!$found)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "fed60cf8df953efda446b9fba82ed275", "score": "0.5249986", "text": "public function list()\n\t{\n\n\n\t\treturn Cache::remember('ips', now()->addHours(2), function () {\n\n \t\treturn $this->Request( 'GET' , 'reservedip/list', true);\n \t\t\n\t\t});\n\n\t}", "title": "" }, { "docid": "2eeec111b3b38f5fd388c14751f979cd", "score": "0.52474034", "text": "public abstract function process_ipn();", "title": "" }, { "docid": "688b2bac6627d6ae3ed1b618fd228163", "score": "0.5243825", "text": "function pfblocker_do_xmlrpc_sync($sync_to_ip, $password) {\n\tglobal $config, $g;\n\n\tif(!$password)\n\t\treturn;\n\n\tif(!$sync_to_ip)\n\t\treturn;\n\n\t$xmlrpc_sync_neighbor = $sync_to_ip;\n\tif($config['system']['webgui']['protocol'] != \"\") {\n\t\t$synchronizetoip = $config['system']['webgui']['protocol'];\n\t\t$synchronizetoip .= \"://\";\n\t}\n\t$port = $config['system']['webgui']['port'];\n\t/* if port is empty lets rely on the protocol selection */\n\tif($port == \"\") {\n\t\tif($config['system']['webgui']['protocol'] == \"http\"){\n\t\t\t$port = \"80\";\n\t\t}\n\t\telse{ \n\t\t\t$port = \"443\";\n\t\t}\n\t}\n\t$synchronizetoip .= $sync_to_ip;\n\n\t/* xml will hold the sections to sync */\n\t$xml = array();\n\t$xml['pfblocker'] = $config['installedpackages']['pfblocker'];\n\t$xml['pfblockerlists'] = $config['installedpackages']['pfblockerlists'];\n\t$xml['pfblockertopspammers'] = $config['installedpackages']['pfblockertopspammers'];\n\t$xml['pfblockerafrica'] = $config['installedpackages']['pfblockerafrica'];\n\t$xml['pfblockerantartica'] = $config['installedpackages']['pfblockerantartica'];\n\t$xml['pfblockerasia'] = $config['installedpackages']['pfblockerasia'];\n\t$xml['pfblockereurope'] = $config['installedpackages']['pfblockereurope'];\n\t$xml['pfblockernorthamerica'] = $config['installedpackages']['pfblockernorthamerica'];\n\t$xml['pfblockeroceania'] = $config['installedpackages']['pfblockeroceania'];\n\t$xml['pfblockersouthamerica'] = $config['installedpackages']['pfblockersouthamerica'];\n\t/* assemble xmlrpc payload */\n\t$params = array(\n\t\tXML_RPC_encode($password),\n\t\tXML_RPC_encode($xml)\n\t);\n\n\t/* set a few variables needed for sync code borrowed from filter.inc */\n\t$url = $synchronizetoip;\n\tlog_error(\"Beginning pfblocker XMLRPC sync to {$url}:{$port}.\");\n\t$method = 'pfsense.merge_installedpackages_section_xmlrpc';\n\t$msg = new XML_RPC_Message($method, $params);\n\t$cli = new XML_RPC_Client('/xmlrpc.php', $url, $port);\n\t$cli->setCredentials('admin', $password);\n\tif($g['debug']){\n\t\t$cli->setDebug(1);\n\t}\n\t/* send our XMLRPC message and timeout after 250 seconds */\n\t$resp = $cli->send($msg, \"250\");\n\tif(!$resp) {\n\t\t$error = \"A communications error occurred while attempting pfblocker XMLRPC sync with {$url}:{$port}.\";\n\t\tlog_error($error);\n\t\tfile_notice(\"sync_settings\", $error, \"pfblocker Settings Sync\", \"\");\n\t} elseif($resp->faultCode()) {\n\t\t$cli->setDebug(1);\n\t\t$resp = $cli->send($msg, \"250\");\n\t\t$error = \"An error code was received while attempting pfblocker XMLRPC sync with {$url}:{$port} - Code \" . $resp->faultCode() . \": \" . $resp->faultString();\n\t\tlog_error($error);\n\t\tfile_notice(\"sync_settings\", $error, \"pfblocker Settings Sync\", \"\");\n\t} else {\n\t\tlog_error(\"pfblocker XMLRPC sync successfully completed with {$url}:{$port}.\");\n\t}\n\t\n\t/* tell pfblocker to reload our settings on the destionation sync host. */\n\t$method = 'pfsense.exec_php';\n\t$execcmd = \"require_once('/usr/local/pkg/pfblocker.inc');\\n\";\n\t$execcmd .= \"sync_package_pfblocker();\";\n\t\n\t/* assemble xmlrpc payload */\n\t$params = array(\n\t\tXML_RPC_encode($password),\n\t\tXML_RPC_encode($execcmd)\n\t);\n\n\tlog_error(\"pfblocker XMLRPC reload data {$url}:{$port}.\");\n\t$msg = new XML_RPC_Message($method, $params);\n\t$cli = new XML_RPC_Client('/xmlrpc.php', $url, $port);\n\t$cli->setCredentials('admin', $password);\n\t$resp = $cli->send($msg, \"250\");\n\tif(!$resp) {\n\t\t$error = \"A communications error occurred while attempting pfblocker XMLRPC sync with {$url}:{$port} (exec_php).\";\n\t\tlog_error($error);\n\t\tfile_notice(\"sync_settings\", $error, \"pfblocker Settings Sync\", \"\");\n\t} elseif($resp->faultCode()) {\n\t\t$cli->setDebug(1);\n\t\t$resp = $cli->send($msg, \"250\");\n\t\t$error = \"An error code was received while attempting pfblocker XMLRPC exec with {$url}:{$port} - Code \" . $resp->faultCode() . \": \" . $resp->faultString();\n\t\tlog_error($error);\n\t\tfile_notice(\"sync_settings\", $error, \"pfblocker Settings Sync\", \"\");\n\t} else {\n\t\tlog_error(\"pfblocker XMLRPC reload data success with {$url}:{$port} (exec_php).\");\n\t}\n\n}", "title": "" }, { "docid": "a591f37cbe63e3bbf3b4c6e3b20a6ebf", "score": "0.5235204", "text": "public function getBlockedIp($ip) {\n\t\t$query = $this->db->get_where ( \"blocked_ip\", array (\n\t\t\t\t\"ipaddress\" => $ip \n\t\t) );\n\t\tif ($query->num_rows () > 0)\n\t\t\treturn $query->row ();\n\t\treturn false;\n\t}", "title": "" }, { "docid": "fee145f65ffccb327365c67257185674", "score": "0.5223051", "text": "private function verificaIp() {\n\n $read = new Read;\n $read->ExeRead(self::Tabela, \"WHERE contador_ip = :ip\", \"ip={$this->Ip}\");\n $resultado = $read->getResult();\n\n if ($resultado):\n\n $this->IpVerificado = true;\n $this->Result = $resultado;\n\n else:\n\n $this->IpVerificado = false;\n $this->Result = $resultado;\n\n endif;\n }", "title": "" }, { "docid": "73864217c30a871bfd52b30f359021e8", "score": "0.5221576", "text": "function get_blocks_list($table_name, $field_name, $id_var_value)\r\n{\r\n\tglobal $db, $lang;\r\n\r\n\t$sql = \"SELECT * FROM \" . $table_name . \" WHERE \" . $field_name . \" = \" . $id_var_value . \" ORDER BY bposition, weight\";\r\n\tif(!$result = $db->sql_query($sql))\r\n\t{\r\n\t\tmessage_die(GENERAL_ERROR, 'Could not query blocks table', $lang['Error'], __LINE__, __FILE__, $sql);\r\n\t}\r\n\r\n\t$l_rows = $db->sql_fetchrowset($result);\r\n\t$db->sql_freeresult($result);\r\n\treturn $l_rows;\r\n}", "title": "" }, { "docid": "ffde3385ee24e0e236067960438a1715", "score": "0.522051", "text": "function get_blocks_from_layouts($table_name, $block_layout_field, $l_id_list, $sql_no_gb = '')\r\n{\r\n\tglobal $db, $lang, $userdata;\r\n\r\n\t//$cms_level_sql = \" AND edit_auth <= \" . $userdata['user_cms_level'] . \" \";\r\n\t$cms_level_sql = \"\";\r\n\t$sql = \"SELECT * FROM \" . $table_name . \" WHERE \" . $block_layout_field . \" IN (\" . $l_id_list . \")\" . $cms_level_sql . $sql_no_gb . \" ORDER BY bposition, weight\";\r\n\tif(!$result = $db->sql_query($sql))\r\n\t{\r\n\t\tmessage_die(GENERAL_ERROR, 'Could not query blocks table', $lang['Error'], __LINE__, __FILE__, $sql);\r\n\t}\r\n\t$b_rows = $db->sql_fetchrowset($result);\r\n\t$db->sql_freeresult($result);\r\n\treturn $b_rows;\r\n}", "title": "" }, { "docid": "5ac0a69389ba0bff5c7b13e47d5f7fa5", "score": "0.5217747", "text": "function checkIPs()\r\n\t{\r\n\t\tglobal $error;\r\n\r\n\t\t$blockedips = @file_get_contents($this->dir . \"Admin_blockedips.txt\");\r\n\r\n\t\tif(!empty($blockedips)) {\r\n\t\t\t$blockedips = str_replace(\"\\r\", \"\\n\", $blockedips); // unifying newlines\r\n\r\n\t\t\t$arr = explode(\"\\n\", $blockedips);\r\n\r\n\t\t\tforeach($arr as $line)\r\n\t\t\t\tif(!strcmp($_SERVER[\"REMOTE_ADDR\"], trim($line))) {\r\n\t\t\t\t\t$error .= \"Your IP is blocked. Page was not saved.\";\r\n\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "9222f7ec695cb6d774b16a287a168468", "score": "0.5210492", "text": "public function blockIp($ip) {\n\t\t$this->db->insert ( \"blocked_ip\", array (\n\t\t\t\t\"ipaddress\" => $ip,\n\t\t\t\t\"datetime\" => time () \n\t\t) );\n\t\treturn $this->db->insert_id ();\n\t}", "title": "" }, { "docid": "d763941badc85b08ee2a05cf2b7deadd", "score": "0.5191286", "text": "public abstract function contains (string $ip) : bool;", "title": "" }, { "docid": "3bb6e64f21505b25000b3be166121854", "score": "0.51670474", "text": "function getUserCurrentBlockHTML($listonly=0) {\n\tglobal $user, $days;\n\t$query = \"SELECT b.id, \"\n\t . \"b.name AS blockname, \"\n\t . \"b.ownerid, \"\n\t . \"CONCAT(u.unityid, '@', ua.name) AS owner, \"\n\t . \"i.prettyname AS image, \"\n\t . \"b.numMachines AS machinecnt, \"\n\t . \"CONCAT(g.name, '@', a.name) AS `group`, \"\n\t . \"b.repeating AS available, \"\n\t . \"b.status \"\n\t . \"FROM image i, \"\n\t . \"blockRequest b \"\n\t . \"LEFT JOIN user u ON (b.ownerid = u.id) \"\n\t . \"LEFT JOIN affiliation ua ON (u.affiliationid = ua.id) \"\n\t . \"LEFT JOIN usergroup g ON (b.groupid = g.id) \"\n\t . \"LEFT JOIN affiliation a ON (g.affiliationid = a.id) \"\n\t . \"WHERE b.ownerid = {$user['id']} AND \"\n\t . \"b.imageid = i.id AND \"\n\t . \"b.status IN ('accepted', 'requested') \"\n\t . \"ORDER BY b.name\";\n\t$qh = doQuery($query, 101);\n\t$blocks = array();\n\twhile($row = mysqli_fetch_assoc($qh))\n\t\t$blocks[$row['id']] = $row;\n\tif(empty($blocks))\n\t\treturn;\n\n\tforeach($blocks as $id => $request) {\n\t\tif($blocks[$id]['group'] == '')\n\t\t\t$blocks[$id]['group'] = i('(unspecified)');\n\t\tif($request['available'] == 'weekly') {\n\t\t\t$query = \"SELECT DATE_FORMAT(start, '%m/%d/%y') AS swdate, \"\n\t\t\t . \"DATE_FORMAT(end, '%m/%d/%y')AS ewdate, \" \n\t\t\t . \"days \"\n\t\t\t . \"FROM blockWebDate \"\n\t\t\t . \"WHERE blockRequestid = $id\";\n\t\t\t$qh = doQuery($query, 101);\n\t\t\tif(! $row = mysqli_fetch_assoc($qh))\n\t\t\t\tabort(101);\n\t\t\t$blocks[$id] = array_merge($request, $row);\n\t\t\t$wdays = array();\n\t\t\tfor($i = 0; $i < 7; $i++) {\n\t\t\t\tif($row['days'] & (1 << $i))\n\t\t\t\t\tarray_push($wdays, $days[$i]);\n\t\t\t}\n\t\t\tunset($blocks[$id]['days']);\n\t\t\t$blocks[$id]['wdays'] = $wdays;\n\t\t\t$query = \"SELECT starthour, \"\n\t\t\t . \"startminute, \"\n\t\t\t . \"startmeridian, \"\n\t\t\t . \"endhour, \"\n\t\t\t . \"endminute, \"\n\t\t\t . \"endmeridian, \"\n\t\t\t . \"`order` \"\n\t\t\t . \"FROM blockWebTime \"\n\t\t\t . \"WHERE blockRequestid = {$request['id']} \"\n\t\t\t . \"ORDER BY startmeridian, starthour, startminute\";\n\t\t\t$qh = doQuery($query, 101);\n\t\t\twhile($row = mysqli_fetch_assoc($qh)) {\n\t\t\t\t$blocks[$id]['swhour'][$row['order']] = $row['starthour'];\n\t\t\t\t$blocks[$id]['swminute'][$row['order']] = $row['startminute'];\n\t\t\t\t$blocks[$id]['swmeridian'][$row['order']] = $row['startmeridian'];\n\t\t\t\t$blocks[$id]['ewhour'][$row['order']] = $row['endhour'];\n\t\t\t\t$blocks[$id]['ewminute'][$row['order']] = $row['endminute'];\n\t\t\t\t$blocks[$id]['ewmeridian'][$row['order']] = $row['endmeridian'];\n\t\t\t}\n\t\t}\n\t\telseif($request['available'] == 'monthly') {\n\t\t\t$query = \"SELECT DATE_FORMAT(start, '%m/%d/%y') AS smdate, \"\n\t\t\t . \"DATE_FORMAT(end, '%m/%d/%y')AS emdate, \" \n\t\t\t . \"days AS day, \"\n\t\t\t . \"weeknum \"\n\t\t\t . \"FROM blockWebDate \"\n\t\t\t . \"WHERE blockRequestid = $id\";\n\t\t\t$qh = doQuery($query, 101);\n\t\t\tif(! $row = mysqli_fetch_assoc($qh))\n\t\t\t\tabort(101);\n\t\t\t$blocks[$id] = array_merge($request, $row);\n\t\t\t$query = \"SELECT starthour, \"\n\t\t\t . \"startminute, \"\n\t\t\t . \"startmeridian, \"\n\t\t\t . \"endhour, \"\n\t\t\t . \"endminute, \"\n\t\t\t . \"endmeridian, \"\n\t\t\t . \"`order` \"\n\t\t\t . \"FROM blockWebTime \"\n\t\t\t . \"WHERE blockRequestid = {$request['id']} \"\n\t\t\t . \"ORDER BY startmeridian, starthour, startminute\";\n\t\t\t$qh = doQuery($query, 101);\n\t\t\twhile($row = mysqli_fetch_assoc($qh)) {\n\t\t\t\t$blocks[$id]['smhour'][$row['order']] = $row['starthour'];\n\t\t\t\t$blocks[$id]['smminute'][$row['order']] = $row['startminute'];\n\t\t\t\t$blocks[$id]['smmeridian'][$row['order']] = $row['startmeridian'];\n\t\t\t\t$blocks[$id]['emhour'][$row['order']] = $row['endhour'];\n\t\t\t\t$blocks[$id]['emminute'][$row['order']] = $row['endminute'];\n\t\t\t\t$blocks[$id]['emmeridian'][$row['order']] = $row['endmeridian'];\n\t\t\t}\n\t\t}\n\t\telseif($request['available'] == 'list') {\n\t\t\t$query = \"SELECT DATE_FORMAT(start, '%m/%d/%y') AS date, \"\n\t\t\t . \"days AS `order` \"\n\t\t\t . \"FROM blockWebDate \"\n\t\t\t . \"WHERE blockRequestid = $id \"\n\t\t\t . \"ORDER BY start\";\n\t\t\t$qh = doQuery($query, 101);\n\t\t\twhile($row = mysqli_fetch_assoc($qh)) {\n\t\t\t\tif($row['date'] == '00/00/00')\n\t\t\t\t\t$blocks[$id]['date'][$row['order']] = '';\n\t\t\t\telse\n\t\t\t\t\t$blocks[$id]['date'][$row['order']] = $row['date'];\n\t\t\t}\n\t\t\t$query = \"SELECT starthour, \"\n\t\t\t . \"startminute, \"\n\t\t\t . \"startmeridian, \"\n\t\t\t . \"endhour, \"\n\t\t\t . \"endminute, \"\n\t\t\t . \"endmeridian, \"\n\t\t\t . \"`order` \"\n\t\t\t . \"FROM blockWebTime \"\n\t\t\t . \"WHERE blockRequestid = {$request['id']}\";\n\t\t\t$qh = doQuery($query, 101);\n\t\t\twhile($row = mysqli_fetch_assoc($qh)) {\n\t\t\t\t$blocks[$id]['slhour'][$row['order']] = $row['starthour'];\n\t\t\t\t$blocks[$id]['slminute'][$row['order']] = $row['startminute'];\n\t\t\t\t$blocks[$id]['slmeridian'][$row['order']] = $row['startmeridian'];\n\t\t\t\t$blocks[$id]['elhour'][$row['order']] = $row['endhour'];\n\t\t\t\t$blocks[$id]['elminute'][$row['order']] = $row['endminute'];\n\t\t\t\t$blocks[$id]['elmeridian'][$row['order']] = $row['endmeridian'];\n\t\t\t}\n\t\t}\n\t}\n\t$rt = '';\n\t$rt .= \"<h2>\" . i(\"Manage Block Allocations\") . \"</h2>\\n\";\n\t$rt .= \"<div id=\\\"blocklist\\\">\\n\";\n\t$rt .= \"<table summary=\\\"lists current block allocations\\\">\\n\";\n\t$rt .= \" <TR align=center>\\n\";\n\t$rt .= \" <TD colspan=2></TD>\\n\";\n\t$rt .= \" <TH>\" . i(\"Name\") . \"</TH>\\n\";\n\t$rt .= \" <TH>\" . i(\"Environment\") . \"</TH>\\n\";\n\t$rt .= \" <TH>\" . i(\"Reserved<br>Machines\") . \"</TH>\\n\";\n\t$rt .= \" <TH>\" . i(\"Reserved<br>For\") . \"</TH>\\n\";\n\t$rt .= \" <TH>\" . i(\"Repeating\") . \"</TH>\\n\";\n\t$rt .= \" </TR>\\n\";\n\tforeach($blocks as $block) {\n\t\t$rt .= \" <TR align=center>\\n\";\n\t\t$rt .= \" <TD>\\n\";\n\t\t$rt .= \" <button dojoType=\\\"dijit.form.Button\\\" type=\\\"button\\\">\\n\";\n\t\t$rt .= i( \"View\") . \"\\n\";\n\t\t$rt .= \" <script type=\\\"dojo/method\\\" event=\\\"onClick\\\">\\n\";\n\t\t$cont = addContinuationsEntry('AJviewBlockAllocation', $block, SECINDAY);\n\t\t$rt .= \" viewBlockAllocation('$cont');\\n\";\n\t\t$rt .= \" </script>\\n\";\n\t\t$rt .= \" </button>\\n\";\n\t\t$rt .= \" </TD>\\n\";\n\t\t$rt .= \" <TD>\\n\";\n\t\tif($block['status'] == 'accepted') {\n\t\t\t$rt .= \" <button dojoType=\\\"dijit.form.Button\\\" type=\\\"button\\\">\\n\";\n\t\t\t$rt .= i( \"View Times\") . \"\\n\";\n\t\t\t$rt .= \" <script type=\\\"dojo/method\\\" event=\\\"onClick\\\">\\n\";\n\t\t\t$cont = addContinuationsEntry('AJviewBlockAllocationTimes', array('blockid' => $block['id']), SECINDAY);\n\t\t\t$rt .= \" viewBlockTimes('$cont');\\n\";\n\t\t\t$rt .= \" </script>\\n\";\n\t\t\t$rt .= \" </button>\\n\";\n\t\t}\n\t\t$rt .= \" </TD>\\n\";\n\t\t$rt .= \" <TD>{$block['blockname']}</TD>\\n\";\n\t\t$rt .= \" <TD>{$block['image']}</TD>\\n\";\n\t\t$rt .= \" <TD>{$block['machinecnt']}</TD>\\n\";\n\t\t$rt .= \" <TD>{$block['group']}</TD>\\n\";\n\t\t$rt .= \" <TD>\" . i($block['available']) . \"</TD>\\n\";\n\t\t$rt .= \" </TR>\\n\";\n\t}\n\t$rt .= \"</table>\\n\";\n\t$rt .= \"</div>\\n\";\n\tif($listonly)\n\t\treturn $rt;\n\n\t$rt .= \"<div id=\\\"viewDialog\\\" dojoType=\\\"dijit.Dialog\\\" title=\\\"\";\n\t$rt .= i(\"Block Allocation\") . \"\\\">\\n\";\n\t$rt .= \"<table summary=\\\"\\\">\\n\";\n\t$rt .= \" <tr>\\n\";\n\t$rt .= \" <th align=\\\"right\\\">\" . i(\"Name\") . \":</th>\\n\";\n\t$rt .= \" <td><span id=\\\"confname\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \" <tr>\\n\";\n\t$rt .= \" <th align=\\\"right\\\">\" . i(\"Owner\") . \":</th>\\n\";\n\t$rt .= \" <td><span id=\\\"confowner\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \" <tr>\\n\";\n\t$rt .= \" <th align=\\\"right\\\">\" . i(\"Environment\") . \":</th>\\n\";\n\t$rt .= \" <td><span id=\\\"confimage\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \" <tr>\\n\";\n\t$rt .= \" <th align=\\\"right\\\">\" . i(\"User group\") . \":</th>\\n\";\n\t$rt .= \" <td><span id=\\\"confgroup\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \" <tr>\\n\";\n\t$rt .= \" <th align=\\\"right\\\">\" . i(\"Seats\") . \":</th>\\n\";\n\t$rt .= \" <td><span id=\\\"confseats\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \" <tr>\\n\";\n\t$rt .= \" <th align=\\\"right\\\">\" . i(\"Repeating\") . \":</th>\\n\";\n\t$rt .= \" <td><span id=\\\"confrepeat\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \" <tr valign=\\\"top\\\">\\n\";\n\t$rt .= \" <th align=\\\"right\\\"><span id=\\\"conftitle1\\\"></span></th>\\n\";\n\t$rt .= \" <td><span id=\\\"confvalue1\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \" <tr valign=\\\"top\\\">\\n\";\n\t$rt .= \" <th align=\\\"right\\\"><span id=\\\"conftitle2\\\"></span></th>\\n\";\n\t$rt .= \" <td><span id=\\\"confvalue2\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \" <tr valign=\\\"top\\\">\\n\";\n\t$rt .= \" <th align=\\\"right\\\"><span id=\\\"conftitle3\\\"></span></th>\\n\";\n\t$rt .= \" <td><span id=\\\"confvalue3\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \" <tr valign=\\\"top\\\">\\n\";\n\t$rt .= \" <th align=\\\"right\\\"><span id=\\\"conftitle4\\\"></span></th>\\n\";\n\t$rt .= \" <td><span id=\\\"confvalue4\\\"></span></td>\\n\";\n\t$rt .= \" </tr>\\n\";\n\t$rt .= \"</table>\\n\";\n\t$rt .= \"<div align=\\\"center\\\">\\n\";\n\t$rt .= \"<button dojoType=\\\"dijit.form.Button\\\" type=\\\"button\\\">\\n\";\n\t$rt .= i( \"Close\") . \"\\n\";\n\t$rt .= \" <script type=\\\"dojo/method\\\" event=\\\"onClick\\\">\\n\";\n\t$rt .= \" clearHideView();\\n\";\n\t$rt .= \" </script>\\n\";\n\t$rt .= \"</button>\\n\";\n\t$rt .= \"</div>\\n\";\n\t$rt .= \"</div>\\n\"; # confirm dialog\n\n\t$rt .= \"<div id=\\\"viewtimesDialog\\\" dojoType=\\\"dijit.Dialog\\\" title=\\\"\";\n\t$rt .= i(\"Block Allocation Times\") . \"\\\">\\n\";\n\t$rt .= \"<h2>\" . i(\"Block Allocation Times\") . \"</h2>\\n\";\n\t$rt .= \"<table dojoType=\\\"dojox.grid.DataGrid\\\" jsId=\\\"blockTimesGrid\\\" sortInfo=1 \";\n\t$rt .= \"style=\\\"width: 328px; height: 200px;\\\">\\n\";\n\t$rt .= \"<script type=\\\"dojo/method\\\" event=\\\"onStyleRow\\\" args=\\\"row\\\">\\n\";\n\t$rt .= \"blockTimeRowStyle(row);\\n\";\n\t$rt .= \"</script>\\n\";\n\t$rt .= \"<thead>\\n\";\n\t$rt .= \"<tr>\\n\";\n\t$rt .= \"<th field=\\\"start\\\" width=\\\"70px\\\" formatter=\\\"blockTimesGridDate\\\">\";\n\t$rt .= i(\"Date\") . \"</th>\\n\";\n\t$rt .= \"<th field=\\\"start\\\" width=\\\"85px\\\" formatter=\\\"blockTimesGridStart\\\">\";\n\t$rt .= i(\"Start\") . \"</th>\\n\";\n\t$rt .= \"<th field=\\\"end\\\" width=\\\"85px\\\" formatter=\\\"blockTimesGridEnd\\\">\";\n\t$rt .= i(\"End\") . \"</th>\\n\";\n\t$rt .= \"<th field=\\\"delbtn\\\" width=\\\"60px\\\">\" . i(\"Skip\") . \"</th>\\n\";\n\t$rt .= \"</tr>\\n\";\n\t$rt .= \"</thead>\\n\";\n\t$rt .= \"</table>\\n\";\n\t$rt .= \"<div align=\\\"center\\\">\\n\";\n\t$rt .= \"<button dojoType=\\\"dijit.form.Button\\\" type=\\\"button\\\">\\n\";\n\t$rt .= i( \"Close\") . \"\\n\";\n\t$rt .= \" <script type=\\\"dojo/method\\\" event=\\\"onClick\\\">\\n\";\n\t$rt .= \" dijit.byId('viewtimesDialog').hide();\\n\";\n\t$rt .= \" </script>\\n\";\n\t$rt .= \"</button>\\n\";\n\t$rt .= \"</div>\\n\";\n\t$rt .= \"<input type=hidden id=toggletimecont>\\n\";\n\t$rt .= \"</div>\\n\"; # times dialog\n\treturn $rt;\n}", "title": "" }, { "docid": "f6472d71e692b1bb1091a7026183d7f1", "score": "0.51626694", "text": "function iptcparse($iptcblock){}", "title": "" }, { "docid": "736427be34f4ebdc4eac7a2f6c8d7d62", "score": "0.5159743", "text": "private function _checkIpBlackList()\n {\n // Match an ip address in a blacklist e.g. 127.0.0.0, 0.0.0.0\n $pattern = sprintf('/(?:,\\s*|^)\\Q%s\\E(?=,\\s*|$)/m', \\Helper\\String::getRemoteAddr());\n // Returns 1, 0 or FALSE (on error only). Therefore implicitly convert 1 to TRUE\n if (preg_match($pattern, $this->_conf['system']['rest_ip_blacklist']))\n {\n // Display an error response\n $this->response([\n $this->_conf['system']['rest_status_field_name'] => FALSE,\n $this->_conf['system']['rest_message_field_name'] => $this->_conf['lang']['text_rest_ip_denied']\n ], \\Helper\\Http::HTTP_UNAUTHORIZED);\n }\n }", "title": "" }, { "docid": "ab2f099514b44bbf4d05d8875ee66d2b", "score": "0.51445353", "text": "function checkIP()\n{\n$ipAddress = $_SERVER['REMOTE_ADDR'];\nif ($ipAddress == \"10.111.105.20\" || $ipAddress == \"10.111.105.68\" || $ipAddress == \"10.111.105.41\" || $ipAddress == \"10.111.105.24\" || $ipAddress == \"10.4.101.148\")\n\t{\n\t\t$ipfilter = true;\n\t}\nelse $ipfilter = false;\nreturn $ipfilter;\t\n}", "title": "" }, { "docid": "3e0f0bbc650bae763e13d8945233d323", "score": "0.5133985", "text": "public function eth_blockNumber(){\n\t\t $params = [\n 'module' => \"proxy\",\n 'action' => \"eth_blockNumber\",\n ];\n\t\treturn $this->request($params);\n\t}", "title": "" }, { "docid": "8981e13321074a5945f7768f03dff44d", "score": "0.5121992", "text": "function login_blocked($login, $nat_ip, $real_ip) {\r\n\t\t\t$ip = ($real_ip ? $real_ip : $nat_ip);\r\n\t\t\t$blocked = False;\r\n\t\t\t$block_time = time() - $GLOBALS['phpgw_info']['server']['block_time'] * 60;\r\n\t\t\t\r\n\t\t\t$ip = $this->db->db_addslashes($ip);\r\n\t\t\t$this->db->query(\"SELECT count(*) FROM phpgw_access_log WHERE account_id=0 AND ip='$ip' AND li > $block_time\",__LINE__,__FILE__);\r\n\t\t\t$this->db->next_record();\r\n\t\t\tif (($false_ip = $this->db->f(0)) > $GLOBALS['phpgw_info']['server']['num_unsuccessful_ip']) {\r\n\t\t\t\t//echo \"<p>login_blocked: ip='$ip' \".$this->db->f(0).\" tries (\".$GLOBALS['phpgw_info']['server']['num_unsuccessful_ip'].\" max.) since \".date('Y/m/d H:i',$block_time).\"</p>\\n\";\r\n\t\t\t\t$blocked = True;\r\n\t\t\t}\r\n\t\t\t$login = $this->db->db_addslashes($login);\r\n\t\t\t$this->db->query(\"SELECT count(*) FROM phpgw_access_log WHERE account_id=0 AND (loginid='$login' OR loginid LIKE '$login@%') AND li > $block_time\",__LINE__,__FILE__);\r\n\t\t\t$this->db->next_record();\r\n\t\t\tif (($false_id = $this->db->f(0)) > $GLOBALS['phpgw_info']['server']['num_unsuccessful_id']) {\r\n\t\t\t\t//echo \"<p>login_blocked: login='$login' \".$this->db->f(0).\" tries (\".$GLOBALS['phpgw_info']['server']['num_unsuccessful_id'].\" max.) since \".date('Y/m/d H:i',$block_time).\"</p>\\n\";\r\n\t\t\t\t$blocked = True;\r\n\t\t\t}\r\n\t\t\tif ($blocked && $GLOBALS['phpgw_info']['server']['admin_mails'] &&\r\n\t\t\t\t// max. one mail each 5mins\r\n\t\t\t $GLOBALS['phpgw_info']['server']['login_blocked_mail_time'] < time()-5*60)\r\n\t\t\t{\r\n\t\t\t\t// notify admin(s) via email\r\n\t\t\t\t$from = 'phpGroupWare@'.$GLOBALS['phpgw_info']['server']['mail_suffix'];\r\n\t\t\t\t$subject = lang(\"phpGroupWare: login blocked for user '%1', IP %2\",$login,$ip);\r\n\t\t\t\t$body = lang(\"Too many unsuccessful attempts to login: %1 for the user '%2', %3 for the IP %4\",$false_id,$login,$false_ip,($real_ip ? $real_ip . ' (' . $nat_ip . ')' : $nat_ip));\r\n\t\t\t\t\r\n\t\t\t\tif(!is_object($GLOBALS['phpgw']->send)) {\r\n\t\t\t\t\t$GLOBALS['phpgw']->send = CreateObject('phpgwapi.send');\r\n\t\t\t\t}\r\n\t\t\t\t$subject = $GLOBALS['phpgw']->send->encode_subject($subject);\r\n\t\t\t\t$admin_mails = explode(',',$GLOBALS['phpgw_info']['server']['admin_mails']);\r\n\t\t\t\tforeach($admin_mails as $to) {\r\n\t\t\t\t\t$GLOBALS['phpgw']->send->msg('email',$to,$subject,$body,'','','',$from,$from);\r\n\t\t\t\t}\r\n\t\t\t\t// save time of mail, to not send to many mails\r\n\t\t\t\t$config = CreateObject('phpgwapi.config','phpgwapi');\r\n\t\t\t\t$config->read_repository();\r\n\t\t\t\t$config->value('login_blocked_mail_time',time());\r\n\t\t\t\t$config->save_repository();\r\n\t\t\t}\r\n\t\t\treturn $blocked;\r\n\t\t}", "title": "" }, { "docid": "8e0a61a7d7a79c4caf7dccee2d32fd5b", "score": "0.5120006", "text": "function validateIp($wl_ips)\n{\n\n // $ip = getClientIp();\n $ip = '192.168.1.1';\n\n $allowedIps = array();\n foreach ($wl_ips as $wl_ip) {\n if ($wl_ip->end_ip) {\n $allowedIps[] = $wl_ip->start_ip.'-'.$wl_ip->end_ip;\n } else {\n $allowedIps[] = $wl_ip->start_ip;\n }\n }\n\n foreach ($allowedIps as $allowedIp) {\n if (strpos($allowedIp, '*')) {\n $range = [\n str_replace('*', '0', $allowedIp),\n str_replace('*', '255', $allowedIp)\n ];\n if (ipExistsInRange($range, $ip)) {\n return true;\n }\n } elseif (strpos($allowedIp, '-')) {\n $range = explode('-', str_replace(' ', '', $allowedIp));\n if (ipExistsInRange($range, $ip)) {\n return true;\n }\n } else {\n if (ip2long($allowedIp) === ip2long($ip)) {\n return true;\n }\n }\n }\n return false;\n}", "title": "" }, { "docid": "861893aaab5d0ae7a87141b65de4dec3", "score": "0.51184034", "text": "function check ($link_r, $thread, $timeout) {\n \n $data_split = array();\n \n // this code will split array of IP into section\n // some calculation is done here, you can check it yourself \n if (count ($link_r) > $thread) {\n $calc = strval(count ($link_r)/$thread);\n $calc = explode(\".\", $calc);\n $calc = (int)$calc[0];\n $value = count ($link_r);\n $kira_data = 0;\n for ($i = 0;$i <= $calc;$i++) {\n if ($value == 0) break;\n $data_split[$i] = array();\n $kira = 0;\n while ($kira < $thread) {\n if ($value == 0) break;\n $data_split[$i][] = $link_r[$kira_data];\n $kira_data++;\n $kira++;\n $value = $value - 1;\n }\n }\n } else {\n \n // if array doesn't have to be split, then store all here..\n $data_split[0] = $link_r;\n \n }\n \n $collect_data_scan = array(); // array to store curl result\n \n for ($aa = 0;$aa < count ($data_split);$aa++) {\n $r_r = $data_split[$aa];\n $curly = array(); // to store curl handle\n $result = array(); // to store curl result for each loop\n $mh = curl_multi_init();\n foreach ($r_r as $id => $link) {\n $curly[$id] = curl_init();\n curl_setopt ($curly[$id], CURLOPT_URL, $link);\n curl_setopt ($curly[$id], CURLOPT_RETURNTRANSFER, 1);\n curl_setopt ($curly[$id], CURLOPT_TIMEOUT, $timeout);\n curl_setopt ($curly[$id], CURLOPT_USERAGENT, random_user_agent()); // ;)\n if (!empty ($options)) {\n curl_setopt_array ($curly[$id], $options);\n }\n curl_multi_add_handle ($mh, $curly[$id]);\n }\n $running = null;\n do {\n curl_multi_exec ($mh, $running);\n }\n while ($running > 0);\n foreach ($curly as $id => $c) {\n $result[$id] = curl_multi_getcontent ($c);\n curl_multi_remove_handle ($mh, $c);\n }\n curl_multi_close ($mh);\n \n // merge the output into $collect_data_scan\n $collect_data_scan = array_merge ($collect_data_scan, $result);\n }\n \n // return scanned result.. ;)\n return $collect_data_scan;\n}", "title": "" }, { "docid": "83c6d17de6aa65252161d6fd695b654b", "score": "0.51158816", "text": "function ripe_riper($ip,$index){\nglobal $loc_2_digit, $country_a, $country_ext_a, $net_det_a, $country_tdi;\n\n//$whois_url = \"whois.geektools.com\";\n$whois_url = \"whois.completewhois.com\";\n$sock = fsockopen( $whois_url, 43, $errno, $errstr, 10);\n\nif (!$socks){ //are we set with telnet?\n\tfputs($sock, $ip.\"\\n\\n\");\n\twhile (!feof($sock)) \n\t\t$dump .= fgets($sock);\n\tif (strlen($dump) < 2) {\n\t\tripe_riper($ip,$whois_url,$index);\n\t} else {\n\t\tfclose($sock);\n\n\t$dump = preg_replace(\"/(<[^>]+>)*(<[^>]+>)/is\", \"\", $dump); //strip html tags also strip_tags($var);\n\nif ( strpos($dump, \"OrgName\") == false ) { //if false -> exec //if you dont find orgname proceed!\n\t$pos_adr = strpos($dump,\"country\");\n\t$pos_nl_adr = strpos($dump, \"\\n\", $pos_adr);\n\t$country = substr($dump, $pos_adr, $pos_nl_adr - $pos_adr);\n\t$country_a[$index] = strtoupper(substr($country, -2)); //++\n\t$country_ext_a[$index] = $loc_2_digit[ $country_a[$index] ];\n\tif($country_ext_a[$index] == \"\" ) { $country_a[$index] = \"unn\"; $country_ext_a[$index] = \"Unknown\";}\n\t$pos_range = strpos($dump,\"inetnum\");\n\t$net_det = substr($dump , $pos_range , $pos_adr - $pos_range );\n\t$net_det = str_replace(\"inetnum\",\"IP Range\",$net_det);\n\t$net_det = str_replace(\"'\",\"\\'\",$net_det);\n\t$net_det = str_replace(\"\\\"\",\"\\'\",$net_det);\n\t$net_det = str_replace(\"\\n\",\"<br>\",$net_det);\n\t$net_det_a[$index] = str_replace(\"\\r\",\"<br>\",$net_det);\n\t$result_tip = \" <b>Country:</b><br> \".$country_td[$index].\" - \".$country_ext_td[$index].\"<br><b>Details:</b><br>\".$net_det_td[$index].\"<br><br>\";\n\n} elseif ( strpos($dump, \"OrgName\") != false ) {\n \t$pos_ctr = strpos($dump,\"Country\");\n\t$pos_nl_ctr = strpos($dump, \"\\n\", $pos_ctr);\n\t$country = substr($dump, $pos_ctr, $pos_nl_ctr - $pos_ctr);\n\t$country_a[$index] = strtoupper(substr($country, -2));\n\t$country_ext_a[$index] = $loc_2_digit[ $country_a[$index] ];\n\tif($country_ext_a[$index] == \"\" ) { $country_a[$index] = \"unn\"; $country_ext_a[$index] = \"Unknown\";}\n\t$pos_org = strrpos($dump,\"OrgName\");\n\t$net_det = substr($dump , $pos_org , $pos_ctr - $pos_org );\n\t$pos_range = strpos($dump,\"NetRange\");\n\t$pos_nl_range = strpos($dump,\"\\n\",$pos_range);\n\t$range = substr($dump, $pos_range, $pos_nl_range - $pos_range);\n\t$net_det = $range.\"<br>\".$net_det;\n\t$net_det = str_replace(\"'\",\"\\'\",$net_det);\n\t$net_det = str_replace(\"\\\"\",\"\\'\",$net_det);\n\t$net_det = str_replace(\"\\n\",\"<br>\",$net_det);\n\t$net_det_a[$index] = str_replace(\"\\r\",\"<br>\",$net_det);\n\t} else {\n\t$net_det_a[$index] = \"\";\n\t}\n\n\t\t}\n} else {\n\tunset($sock);\n\techo \"$whois_url down\";\n\treturn false;\n\t}\n\n}", "title": "" }, { "docid": "2e192e73b460288d6e3eb1738905d48b", "score": "0.51104313", "text": "public function getIPBlockArp() {\n\t\treturn json_decode(self::getClient()->getIPBlockArp($this->getIP()));\n\t}", "title": "" }, { "docid": "431156d2a2fe4a9755cf6c6931bb62b7", "score": "0.5109205", "text": "function validateIp($wl_ips)\n{\n\n // $ip = getClientIp();\n $ip = '192.168.1.1';\n\n $allowedIps = array();\n foreach ($wl_ips as $wl_ip) {\n if ($wl_ip->end_ip) {\n $allowedIps[] = $wl_ip->start_ip . '-' . $wl_ip->end_ip;\n } else {\n $allowedIps[] = $wl_ip->start_ip;\n }\n }\n\n foreach ($allowedIps as $allowedIp) {\n if (strpos($allowedIp, '*')) {\n $range = [\n str_replace('*', '0', $allowedIp),\n str_replace('*', '255', $allowedIp)\n ];\n if (ipExistsInRange($range, $ip)) {\n return true;\n }\n } elseif (strpos($allowedIp, '-')) {\n $range = explode('-', str_replace(' ', '', $allowedIp));\n if (ipExistsInRange($range, $ip)) {\n return true;\n }\n } else {\n if (ip2long($allowedIp) === ip2long($ip)) {\n return true;\n }\n }\n }\n return false;\n}", "title": "" }, { "docid": "e5ae3e16a4ebac2661ba1318d475521f", "score": "0.5107692", "text": "public function searchcustbyip(Request $request)\n {\n $searchvalue = $request->searchval;\n $lastid = $request->lastelement;\n\n $chk = Member::where(\"ip\", $searchvalue)->orderBy(\"id\", \"ASC\")->get();\n\n if($chk != NULL && $chk->count() > 0)\n {\n //Check If Last Element Has Been Got\n $lastelementchk = $chk[count($chk) -1]->id;\n\n //Check If Last Element Has Been Got\n $custsquad = Member::where(\"ip\", $searchvalue)->where(\"id\", \">\", $lastid)->orderBy(\"id\", \"ASC\")->paginate(2);\n $lastelement = $custsquad[count($custsquad) -1]->id;\n\n //Check if it's last squad\n if($lastelement == $lastelementchk)\n {\n return [$lastelement, $custsquad, \"1\"];\n }\n else\n {\n return [$lastelement, $custsquad];\n }\n \n \n }\n else\n {\n return \"nodata\";\n }\n }", "title": "" }, { "docid": "c3d810cf9051c38a62c805b9ae9818e0", "score": "0.51042926", "text": "public function checkBlock($networkToCheck='', $maxAge=30) {\n $blockDetails = '';\n $networkDetails = explode('/', $networkToCheck);\n\n // Works using GET : https://docs.abuseipdb.com/?php#check-endpoint\n if (\n count($networkDetails) == 2 && // Exactly two parts in the network notation.\n filter_var($networkDetails[0], FILTER_VALIDATE_IP) // First part is a correct IP address.\n && intval($networkDetails[1] > 0) // Second part is an integer\n && ($this->apiKey != '')\n ) {\n\n // URI construction\n $uri = 'https://api.abuseipdb.com/api/v2/check-block?network=' . urlencode($networkToCheck);\n if(intval($maxAge) > 0) {\n $uri .= '&maxAgeInDays=' . intval($maxAge);\n }\n\n // CURL request\n $headers = array(\n 'Key: ' . $this->apiKey,\n 'Accept: application/json'\n );\n\n $curlRequest = curl_init($uri);\n curl_setopt($curlRequest, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($curlRequest, CURLOPT_SSL_VERIFYHOST, 0);\n curl_setopt($curlRequest, CURLOPT_SSL_VERIFYPEER, 0);\n curl_setopt($curlRequest, CURLOPT_HTTPHEADER, $headers);\n\n if(curl_error($curlRequest)) {\n return $blockDetails;\n }\n $blockDetails=curl_exec($curlRequest);\n curl_close($curlRequest);\n }\n return $blockDetails;\n }", "title": "" }, { "docid": "73efe2b4e495d60888d20b6fcd2e4271", "score": "0.50924623", "text": "function mSearch($timeout = 2)\n\t{\t\n\t\t$msg = 'B-SEARCH * HTTP/1.1'.\"\\r\\n\";\n\t\t$msg .= 'HOST: 255.255.255.255:1990'.\"\\r\\n\";\n\t\t$msg .= 'MAN: \"ssdp:discover\"'.\"\\r\\n\";\n\t\t$msg .= 'MX: 2'.\"\\r\\n\";\n\t\t$msg .= 'ST: urn:schemas-udap:service:netrcu:1'.\"\\r\\n\"; \n\t\t$msg .= 'USER-AGENT: UDAP/2.0'.\"\\r\\n\";\n\t\t$msg .= \"\\r\\n\";\n\n\t\t$sock = socket_create(AF_INET, SOCK_DGRAM, 0);\n\t\t//if (!$sock)\tdie('Unable to create AF_INET socket');\n\t\tsocket_set_option($sock, SOL_SOCKET, SO_BROADCAST, 1);\n\t\tsocket_sendto( $sock, $msg, strlen($msg), 0, '255.255.255.255', 1990);//<-- B-SEARCH\n\t\t\n\t\tsocket_set_option($sock, SOL_SOCKET, SO_RCVTIMEO, array('sec'=>$timeout, 'usec'=>'0'));\n\t\t\n\t\t$response = array();\n\t\tdo {\n\t\t\t$buf = null;\n\t\t\t@socket_recvfrom($sock, $buf, 1024, MSG_WAITALL, $from, $port); \n\t\t\tif(!is_null($buf)) $response[] = $this->parseMSearchResponse($buf, $from);\n\t\t} while(!is_null($buf));\n\t\t\n\t\t// CLOSE SOCKET\n\t\tsocket_close($sock);\n\t\treturn $response;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "6591390f5375a660369db398f2854820", "score": "0.5084853", "text": "function findnodebyip ($ip)\n\t\t{\n\t\t\t$mushedip = $this->muship($ip);\n\t\t\terror_log(\"Looking for mushed ip $mushedip\");\n\t\t\t$select=\"SELECT * FROM node WHERE (fixed_ip= '$mushedip')\";\n\t\t\t$result = $this->dbexec($select,\"can not select from table node - \");\n\t\t\t$node = mysql_fetch_object($result);\n\t\t\tif ($node ==FALSE) $this->xmlend(\"internal failure to find record in node table\");\n\t\t\t//\t\techo \"ip: $node->fixed_ip host:$node->hostname $select\";\n\t\t\treturn $node;\n\t\t}", "title": "" }, { "docid": "c83f0fcf510a04985c204e39c3b31fb8", "score": "0.5078114", "text": "function get_ip_range($db, $ip)\n{\n\t// If private IP\n\tif (($ip >= (int)0x0A000000 and $ip < (int)0x0B000000) or // 10.0.0.0-10.255.255.255\n\t\t($ip >= (int)0x64400000 and $ip < (int)0x64800000) or // 100.64.0.0-100.127.255.255\n\t\t($ip >= (int)0xAC100000 and $ip < (int)0xAC200000) or // 172.16.0.0-172.31.255.255\n\t\t($ip >= (int)0xC0A80000 and $ip < (int)0xC0A90000) or // 192.168.0.0-192.168.255.255\n\t\t($ip >= (int)0x7F000000 and $ip < (int)0x80000000)) // 127.0.0.0-127.255.255.255\n\t{\n\t\t// exact range isn't known, just use /16 mask\n\t\treturn array('startIP' => $ip & ~0xFFFF,\n\t\t\t'endIP' => $ip | 0xFFFF,\n\t\t\t'netname' => '',\n\t\t\t'descr' => 'Local IP range',\n\t\t\t'country' => '');\n\t}\n\t\n\t// If stored in local db\n\t$uIP = _l2ul($ip);\n\tif ($res = $db->query(\n\t\t\t\"SELECT * FROM ranges\n\t\t\tWHERE startIP <= $uIP AND endIP >= $uIP\n\t\t\tORDER BY endIP-startIP\n\t\t\tLIMIT 1\"))\n\t{\n\t\tif ($row = $res->fetch_row())\n\t\t{\n\t\t\t$res->close();\n\t\t\t// TODO: convert unsigned integer (represented by string) to int\n\t\t\treturn array('startIP' => ip2long(long2ip($row[1])),\n\t\t\t\t'endIP' => ip2long(long2ip($row[2])),\n\t\t\t\t'netname' => $row[3],\n\t\t\t\t'descr' => $row[4],\n\t\t\t\t'country' => $row[5]);\n\t\t}\n\t\t$res->close();\n\t}\n\t\n\t// Query RIR\n\t$ip_range = query_range_from_rir(long2ip($ip));\n\tif(is_null($ip_range))\n\t{\n\t\treturn;\n\t}\n\t$ip_range[\"netname\"] = substr($ip_range[\"netname\"], 0, 255);\n\t$ip_range[\"descr\"] = substr($ip_range[\"descr\"], 0, 255);\n\t$ip_range[\"descr\"] = iconv(\"UTF-8\", \"UTF-8//IGNORE\", $ip_range[\"descr\"]);\n\tif ($ip_range[\"endIP\"] - $ip_range[\"startIP\"] >= 0x00FFFFFF)\n\t{\n\t\treturn $ip_range; // don't store big ranges\n\t}\n\t$ip_range[\"country\"] = substr($ip_range[\"country\"], 0, 2);\n\t$startIP = _l2ul($ip_range[\"startIP\"]);\n\t$endIP = _l2ul($ip_range[\"endIP\"]);\n\t$netname = $db->real_escape_string($ip_range[\"netname\"]);\n\t$descr = $db->real_escape_string($ip_range[\"descr\"]);\n\t$country = $db->real_escape_string($ip_range[\"country\"]);\n\tif (!$db->query(\n\t\t\t\"INSERT into ranges\n\t\t\tVALUES (NULL, '$startIP','$endIP','$netname','$descr','$country')\"))\n\t{\n\t\treturn;\n\t}\n\treturn $ip_range;\n}", "title": "" }, { "docid": "9ec305a2d5f2b3bedc9c392761aa0997", "score": "0.50751114", "text": "public function ipBlocked()\n\t{\n\t\t$this->load->view('ip_blocked');\n\t}", "title": "" }, { "docid": "7b07818f186fae735cb9467287e89610", "score": "0.50744313", "text": "function wiki_block_search() {\r\n global $dfsearch;\r\n\r\n\t/*$dfform = wiki_param ('dfform');\r\n if (isset($dfsearch)) {\r\n $dfform['field'] = $dfsearch;\r\n wiki_param ('dfform',$dfform);\r\n }\r\n\r\n if (isset($dfform['field']) && trim($dfform['field']) != '') {\r\n $dfform['result'] = wiki_block_search_result($dfform['field']);\r\n wiki_param ('dfform',$dfform);\r\n if (isset($dfform['main'])) {\r\n wiki_param ('dfcontent',10);\r\n }\r\n }*/\r\n wiki_main_setup();\r\n}", "title": "" }, { "docid": "cbeb85731033903752777ee701496aec", "score": "0.5061538", "text": "function fn_GetIp() {\n $client_ip = \"\";\n \n if (getenv('HTTP_CLIENT_IP'))\n $client_ip = getenv('HTTP_CLIENT_IP');\n else if(getenv('HTTP_X_FORWARDED_FOR'))\n $client_ip = getenv('HTTP_X_FORWARDED_FOR');\n else if(getenv('HTTP_X_FORWARDED'))\n $client_ip = getenv('HTTP_X_FORWARDED');\n else if(getenv('HTTP_FORWARDED_FOR'))\n $client_ip = getenv('HTTP_FORWARDED_FOR');\n else if(getenv('HTTP_FORWARDED'))\n $client_ip = getenv('HTTP_FORWARDED');\n else if(getenv('REMOTE_ADDR'))\n $client_ip = getenv('REMOTE_ADDR');\n else\n $client_ip=\"\";\n \n \n if (strlen($client_ip)<=3){\n if ( ( isset ( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) && ( $_SERVER['HTTP_X_FORWARDED_FOR'] != '' ) ) {\n $client_ip = (!empty($_SERVER['REMOTE_ADDR']) ) ? $_SERVER['REMOTE_ADDR'] : ( (!empty($_ENV['REMOTE_ADDR']) ) ? $_ENV['REMOTE_ADDR'] : \"0.0.0.0\" );\n $entries = preg_split('/[,]/', $_SERVER['HTTP_X_FORWARDED_FOR']);\n reset($entries);\n while (list(, $entry) = each($entries)) {\n $entry = trim($entry);\n if (preg_match(\"/^([0-9]+.[0-9]+.[0-9]+.[0-9]+)/\", $entry, $ip_list)) {\n $private_ip = array(\n '/^0./',\n '/^127.0.0.1/',\n '/^192.168..*/',\n '/^10.216..*/',\n '/^172.((1[6-9])|(2[0-9])|(3[0-1]))..*/',\n '/^10..*/');\n $found_ip = preg_replace($private_ip, $client_ip, $ip_list[1]);\n\n if ($client_ip != $found_ip) {\n $client_ip = $found_ip;\n break;\n }\n }\n }\n } else {\n if (isset($_SERVER['HTTP_CLIENT_IP']) && ($_SERVER['HTTP_CLIENT_IP'] != '') ) { //check ip from share internet\n $client_ip = $_SERVER['HTTP_CLIENT_IP'];\n } else {\n $client_ip = (!empty($_SERVER['REMOTE_ADDR']) ) ? $_SERVER['REMOTE_ADDR'] : ( (!empty($_ENV['REMOTE_ADDR']) ) ? $_ENV['REMOTE_ADDR'] : \"0.0.0.0\" );\n }\n } \n }\n return $client_ip;\n}", "title": "" }, { "docid": "0f06ebff0041b641ba36b34dcba0c4d0", "score": "0.50591093", "text": "function canAddBollocks() {\r\n\t\t\r\n\t\t$ini_array = parse_ini_file(dirname(__FILE__).\"/../../config.ini.php\", true);\r\n\t\t\r\n\t\tif ($ini_array['config']['restrictIp']) {\r\n\t\t\tforeach($ini_array['ip']['ip'] as $ip) {\r\n\t\t\t\tif ($ip == $_SERVER['REMOTE_ADDR']) {\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn 0;\r\n\t\t} else {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f8b384498696da75d5936cb7c608be3d", "score": "0.50506836", "text": "function meth_Locator_FindBlockLst(&$Txt,$BlockName,$Pos,$SpePrm) {\n\n\t$LocR = new clsTbsLocator;\n\t$LocR->P1 = false;\n\t$LocR->FieldOutside = false;\n\t$LocR->FOStop = false;\n\t$LocR->BDefLst = array();\n\n\t$LocR->NoData = false;\n\t$LocR->Special = false;\n\t$LocR->HeaderFound = false;\n\t$LocR->FooterFound = false;\n\t$LocR->SerialEmpty = false;\n\t$LocR->GrpBreak = false; // Only for plug-ins\n\n\t$LocR->WhenFound = false;\n\t$LocR->WhenDefault = false;\n\n\t$LocR->SectionNbr = 0; // Normal sections\n\t$LocR->SectionLst = array(); // 1 to SectionNbr\n\n\t$BDef = false;\n\t$ParentLst = array();\n\t$Pid = 0;\n\n\tdo {\n\n\t\tif ($BlockName==='') {\n\t\t\t$Loc = false;\n\t\t} else {\n\t\t\t$Loc = $this->meth_Locator_FindBlockNext($Txt,$BlockName,$Pos,'.',2,$LocR->P1,$LocR->FieldOutside);\n\t\t}\n\n\t\tif ($Loc===false) {\n\n\t\t\tif ($Pid>0) { // parentgrp mode => disconnect $Txt from the source\n\t\t\t\t$Parent = &$ParentLst[$Pid];\n\t\t\t\t$Src = $Txt;\n\t\t\t\t$Txt = &$Parent->Txt;\n\t\t\t\tif ($LocR->BlockFound) {\n\t\t\t\t\t// Redefine the Header block\n\t\t\t\t\t$Parent->Src = substr($Src,0,$LocR->PosBeg);\n\t\t\t\t\t// Add a Footer block\n\t\t\t\t\t$BDef = &$this->meth_Locator_SectionNewBDef($LocR,$BlockName,substr($Src,$LocR->PosEnd+1),$Parent->Prm,true);\n\t\t\t\t\t$this->meth_Locator_SectionAddGrp($LocR,$BlockName,$BDef,'F',$Parent->Fld,'parentgrp');\n\t\t\t\t}\n\t\t\t\t// Now go down to previous level\n\t\t\t\t$Pos = $Parent->Pos;\n\t\t\t\t$LocR->PosBeg = $Parent->Beg;\n\t\t\t\t$LocR->PosEnd = $Parent->End;\n\t\t\t\t$LocR->BlockFound = true;\n\t\t\t\tunset($Parent);\n\t\t\t\tunset($ParentLst[$Pid]);\n\t\t\t\t$Pid--;\n\t\t\t\t$Loc = true;\n\t\t\t}\n\n\t\t} else {\n\n\t\t\t$Pos = $Loc->PosEnd;\n\n\t\t\t// Define the block limits\n\t\t\tif ($LocR->BlockFound) {\n\t\t\t\tif ( $LocR->PosBeg > $Loc->PosBeg ) $LocR->PosBeg = $Loc->PosBeg;\n\t\t\t\tif ( $LocR->PosEnd < $Loc->PosEnd ) $LocR->PosEnd = $Loc->PosEnd;\n\t\t\t} else {\n\t\t\t\t$LocR->BlockFound = true;\n\t\t\t\t$LocR->PosBeg = $Loc->PosBeg;\n\t\t\t\t$LocR->PosEnd = $Loc->PosEnd;\n\t\t\t}\n\n\t\t\t// Merge block parameters\n\t\t\tif (count($Loc->PrmLst)>0) $LocR->PrmLst = array_merge($LocR->PrmLst,$Loc->PrmLst);\n\n\t\t\t// Force dynamic parameter to be cachable\n\t\t\tif ($Loc->PosDefBeg>=0) {\n\t\t\t\t$dynprm = array('when','headergrp','footergrp','parentgrp');\n\t\t\t\tforeach($dynprm as $dp) {\n\t\t\t\t\t$n = 0;\n\t\t\t\t\tif ((isset($Loc->PrmLst[$dp])) && (strpos($Loc->PrmLst[$dp],$this->_ChrOpen.$BlockName)!==false)) {\n\t\t\t\t\t\t$n++;\n\t\t\t\t\t\tif ($n==1) {\n\t\t\t\t\t\t\t$len = $Loc->PosDefEnd - $Loc->PosDefBeg + 1;\n\t\t\t\t\t\t\t$x = substr($Loc->BlockSrc,$Loc->PosDefBeg,$len);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$x = str_replace($Loc->PrmLst[$dp],'',$x);\n\t\t\t\t\t}\n\t\t\t\t\tif ($n>0) $Loc->BlockSrc = substr_replace($Loc->BlockSrc,$x,$Loc->PosDefBeg,$len);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Save the block and cache its tags\n\t\t\t$IsParentGrp = isset($Loc->PrmLst['parentgrp']);\n\t\t\t$BDef = &$this->meth_Locator_SectionNewBDef($LocR,$BlockName,$Loc->BlockSrc,$Loc->PrmLst,!$IsParentGrp);\n\n\t\t\t// Add the text in the list of blocks\n\t\t\tif (isset($Loc->PrmLst['nodata'])) { // Nodata section\n\t\t\t\t$LocR->NoData = &$BDef;\n\t\t\t} elseif (($SpePrm!==false) && isset($Loc->PrmLst[$SpePrm])) { // Special section (used for navigation bar)\n\t\t\t\t$LocR->Special = &$BDef;\n\t\t\t} elseif (isset($Loc->PrmLst['when'])) {\n\t\t\t\tif ($LocR->WhenFound===false) {\n\t\t\t\t\t$LocR->WhenFound = true;\n\t\t\t\t\t$LocR->WhenSeveral = false;\n\t\t\t\t\t$LocR->WhenNbr = 0;\n\t\t\t\t\t$LocR->WhenLst = array();\n\t\t\t\t}\n\t\t\t\t$this->meth_Merge_AutoVar($Loc->PrmLst['when'],false);\n\t\t\t\t$BDef->WhenCond = &$this->meth_Locator_SectionNewBDef($LocR,$BlockName,$Loc->PrmLst['when'],array(),true);\n\t\t\t\t$BDef->WhenBeforeNS = ($LocR->SectionNbr===0);\n\t\t\t\t$i = ++$LocR->WhenNbr;\n\t\t\t\t$LocR->WhenLst[$i] = &$BDef;\n\t\t\t\tif (isset($Loc->PrmLst['several'])) $LocR->WhenSeveral = true;\n\t\t\t} elseif (isset($Loc->PrmLst['default'])) {\n\t\t\t\t$LocR->WhenDefault = &$BDef;\n\t\t\t\t$LocR->WhenDefaultBeforeNS = ($LocR->SectionNbr===0);\n\t\t\t} elseif (isset($Loc->PrmLst['headergrp'])) {\n\t\t\t\t$this->meth_Locator_SectionAddGrp($LocR,$BlockName,$BDef,'H',$Loc->PrmLst['headergrp'],'headergrp');\n\t\t\t} elseif (isset($Loc->PrmLst['footergrp'])) {\n\t\t\t\t$this->meth_Locator_SectionAddGrp($LocR,$BlockName,$BDef,'F',$Loc->PrmLst['footergrp'],'footergrp');\n\t\t\t} elseif (isset($Loc->PrmLst['splittergrp'])) {\n\t\t\t\t$this->meth_Locator_SectionAddGrp($LocR,$BlockName,$BDef,'S',$Loc->PrmLst['splittergrp'],'splittergrp');\n\t\t\t} elseif ($IsParentGrp) {\n\t\t\t\t$this->meth_Locator_SectionAddGrp($LocR,$BlockName,$BDef,'H',$Loc->PrmLst['parentgrp'],'parentgrp');\n\t\t\t\t$BDef->Fld = $Loc->PrmLst['parentgrp'];\n\t\t\t\t$BDef->Txt = &$Txt;\n\t\t\t\t$BDef->Pos = $Pos;\n\t\t\t\t$BDef->Beg = $LocR->PosBeg;\n\t\t\t\t$BDef->End = $LocR->PosEnd;\n\t\t\t\t$Pid++;\n\t\t\t\t$ParentLst[$Pid] = &$BDef;\n\t\t\t\t$Txt = &$BDef->Src;\n\t\t\t\t$Pos = $Loc->PosDefBeg + 1;\n\t\t\t\t$LocR->BlockFound = false;\n\t\t\t\t$LocR->PosBeg = false;\n\t\t\t\t$LocR->PosEnd = false;\n\t\t\t} elseif (isset($Loc->PrmLst['serial'])) {\n\t\t\t\t// Section\twith serial subsections\n\t\t\t\t$SrSrc = &$BDef->Src;\n\t\t\t\t// Search the empty item\n\t\t\t\tif ($LocR->SerialEmpty===false) {\n\t\t\t\t\t$SrName = $BlockName.'_0';\n\t\t\t\t\t$x = false;\n\t\t\t\t\t$SrLoc = $this->meth_Locator_FindBlockNext($SrSrc,$SrName,0,'.',2,$x,$x);\n\t\t\t\t\tif ($SrLoc!==false) {\n\t\t\t\t\t\t$LocR->SerialEmpty = $SrLoc->BlockSrc;\n\t\t\t\t\t\t$SrSrc = substr_replace($SrSrc,'',$SrLoc->PosBeg,$SrLoc->PosEnd-$SrLoc->PosBeg+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$SrName = $BlockName.'_1';\n\t\t\t\t$x = false;\n\t\t\t\t$SrLoc = $this->meth_Locator_FindBlockNext($SrSrc,$SrName,0,'.',2,$x,$x);\n\t\t\t\tif ($SrLoc!==false) {\n\t\t\t\t\t$SrId = 1;\n\t\t\t\t\tdo {\n\t\t\t\t\t\t// Save previous subsection\n\t\t\t\t\t\t$SrBDef = &$this->meth_Locator_SectionNewBDef($LocR,$SrName,$SrLoc->BlockSrc,$SrLoc->PrmLst,true);\n\t\t\t\t\t\t$SrBDef->SrBeg = $SrLoc->PosBeg;\n\t\t\t\t\t\t$SrBDef->SrLen = $SrLoc->PosEnd - $SrLoc->PosBeg + 1;\n\t\t\t\t\t\t$SrBDef->SrTxt = false;\n\t\t\t\t\t\t$BDef->SrBDefLst[$SrId] = &$SrBDef;\n\t\t\t\t\t\t// Put in order\n\t\t\t\t\t\t$BDef->SrBDefOrdered[$SrId] = &$SrBDef;\n\t\t\t\t\t\t$i = $SrId;\n\t\t\t\t\t\twhile (($i>1) && ($SrBDef->SrBeg<$BDef->SrBDefOrdered[$SrId-1]->SrBeg)) {\n\t\t\t\t\t\t\t$BDef->SrBDefOrdered[$i] = &$BDef->SrBDefOrdered[$i-1];\n\t\t\t\t\t\t\t$BDef->SrBDefOrdered[$i-1] = &$SrBDef;\n\t\t\t\t\t\t\t$i--;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Search next subsection\n\t\t\t\t\t\t$SrId++;\n\t\t\t\t\t\t$SrName = $BlockName.'_'.$SrId;\n\t\t\t\t\t\t$x = false;\n\t\t\t\t\t\t$SrLoc = $this->meth_Locator_FindBlockNext($SrSrc,$SrName,0,'.',2,$x,$x);\n\t\t\t\t\t} while ($SrLoc!==false);\n\t\t\t\t\t$BDef->SrBDefNbr = $SrId-1;\n\t\t\t\t\t$BDef->IsSerial = true;\n\t\t\t\t\t$i = ++$LocR->SectionNbr;\n\t\t\t\t\t$LocR->SectionLst[$i] = &$BDef;\n\t\t\t\t}\n\t\t\t} elseif (isset($Loc->PrmLst['parallel'])) {\n\t\t\t\t$BlockLst = $this->meth_Locator_FindParallel($Txt, $Loc->PosBeg, $Loc->PosEnd, $Loc->PrmLst['parallel']);\n\t\t\t\tif ($BlockLst) {\n\t\t\t\t\t// Store BDefs\n\t\t\t\t\tforeach ($BlockLst as $i => $Blk) {\n\t\t\t\t\t\tif ($Blk['IsRef']) {\n\t\t\t\t\t\t\t$PrBDef = &$BDef;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$PrBDef = &$this->meth_Locator_SectionNewBDef($LocR,$BlockName,$Blk['Src'],array(),true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$PrBDef->PosBeg = $Blk['PosBeg'];\n\t\t\t\t\t\t$PrBDef->PosEnd = $Blk['PosEnd'];\n\t\t\t\t\t\t$i = ++$LocR->SectionNbr;\n\t\t\t\t\t\t$LocR->SectionLst[$i] = &$PrBDef;\n\t\t\t\t\t}\n\t\t\t\t\t$LocR->PosBeg = $BlockLst[0]['PosBeg'];\n\t\t\t\t\t$LocR->PosEnd = $BlockLst[$LocR->SectionNbr-1]['PosEnd'];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Normal section\n\t\t\t\t$i = ++$LocR->SectionNbr;\n\t\t\t\t$LocR->SectionLst[$i] = &$BDef;\n\t\t\t}\n\n\t\t}\n\n\t} while ($Loc!==false);\n\n\tif ($LocR->WhenFound && ($LocR->SectionNbr===0)) {\n\t\t// Add a blank section if When is used without a normal section\n\t\t$BDef = &$this->meth_Locator_SectionNewBDef($LocR,$BlockName,'',array(),false);\n\t\t$LocR->SectionNbr = 1;\n\t\t$LocR->SectionLst[1] = &$BDef;\n\t}\n\n\treturn $LocR; // methods return by ref by default\n\n}", "title": "" }, { "docid": "62cea9550d9f1974af03c28ee30a6579", "score": "0.5036798", "text": "function whitelistGetIPAddy() {\n\t\treturn array_merge(whitelistGetNetBIOSIP(), file(dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'whitelist.txt'));\n\t}", "title": "" }, { "docid": "7b3b10c76121233c41de65175ffc4d86", "score": "0.50245035", "text": "function get_blocks_positions($table_name, $l_id_list, $b_info_bposition)\r\n{\r\n\tglobal $db, $lang;\r\n\r\n\t$sql = \"SELECT pkey, bposition FROM \" . $table_name . \" WHERE layout IN (\" . $l_id_list . \") ORDER BY layout, bpid\";\r\n\tif(!($result = $db->sql_query($sql)))\r\n\t{\r\n\t\tmessage_die(CRITICAL_ERROR, 'Could not query blocks position information', $lang['Error'], __LINE__, __FILE__, $sql);\r\n\t}\r\n\r\n\t$position = array();\r\n\t$position['select'] = '';\r\n\twhile ($row = $db->sql_fetchrow($result))\r\n\t{\r\n\t\t$row['pkey'] = !empty($lang['cms_pos_' . $row['pkey']]) ? $lang['cms_pos_' . $row['pkey']] : $row['pkey'];\r\n\t\t$position['select'] .= '<option value=\"' . $row['bposition'] . '\" ';\r\n\t\tif($b_info_bposition == $row['bposition'])\r\n\t\t{\r\n\t\t\t$position['select'] .= 'selected=\"selected\"';\r\n\t\t\t$position['block'] = $row['bposition'];\r\n\t\t}\r\n\t\t$position['select'] .= '>' . $row['pkey'] . '</option>';\r\n\t}\r\n\t$db->sql_freeresult($result);\r\n\treturn $position;\r\n}", "title": "" }, { "docid": "5d642b2c399f4ccd5ad3fd2baa0ba1b9", "score": "0.5018457", "text": "public function prevent_access() {\n global $DB;\n\n list($inorequal, $params) = $DB->get_in_or_equal($this->quiz->ipaddresslistsubnetsarray);\n $select = 'id ' . $inorequal;\n $subnets = $DB->get_records_select_menu('quizaccess_ipaddresslist_net', $select, $params, 'sortorder ASC, name ASC',\n 'id, subnet');\n foreach ($subnets as $subnet) {\n if (address_in_subnet(getremoteaddr(), $subnet)) {\n return false;\n }\n }\n return get_string('subnetwrong', 'quizaccess_ipaddresslist');\n }", "title": "" }, { "docid": "170e932a19dbca16548a5d3cf0ece0d8", "score": "0.5009442", "text": "public static function maxBlock($ipinput)\r\n\t{\r\n\t\treturn self::maskToCIDR(long2ip(-(ip2long($ipinput) & -(ip2long($ipinput)))));\r\n\t}", "title": "" }, { "docid": "887e618bdc07c7c39e35ae81baf95a2b", "score": "0.5000892", "text": "public function blockIp($body) {\n\n \t\t//parse inputs\n \t\t$resourcePath = \"/blockedIps\";\n \t\t$resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\n \t\t$method = \"POST\";\n $queryParams = array();\n $headerParams = array();\n $headerParams['Accept'] = 'application/json';\n $headerParams['Content-Type'] = 'application/json';\n\n //make the API Call\n if (! isset($body)) {\n $body = null;\n }\n \t\t$response = $this->apiClient->callAPI($resourcePath, $method,\n \t\t $queryParams, $body,\n \t\t $headerParams);\n\n\n if(! $response){\n return null;\n }\n\n \t\t$responseObject = $this->apiClient->deserialize($response,\n \t\t 'object');\n \t\treturn $responseObject;\n\n }", "title": "" }, { "docid": "b46f4b9d2317c447700df7d4748a53de", "score": "0.50002337", "text": "function wiki_block_search_result($text) {\r\n /*global $CFG,$WS;\r\n\r\n $res = array(\r\n 'pagename' => array(),\r\n 'content' => array(),\r\n );\r\n\r\n // mount search string\r\n $field = '%';\r\n $fields = explode(' ', $text);\r\n foreach ($fields as $f) {\r\n $field .= $f . '%';\r\n }\r\n\r\n $ead = wiki_manager_get_instance();\r\n $wiki = wiki_param ('dfwiki');\r\n\t$groupmember = wiki_param('groupmember');\r\n $pages = $ead->get_wiki_page_names_of_wiki($wiki, $groupmember->groupid);\r\n\r\n foreach ($pages as $page) {\r\n $pageinfo = wiki_page_last_version($page);\r\n $contentfound = count($fields) != 0;\r\n $namefound = count($fields) != 0;\r\n foreach ($fields as $f) {\r\n $f = stripslashes_safe($f);\r\n $namefound = $namefound\r\n && (stripos($pageinfo->pagename, $f) !== false);\r\n $contentfound = $contentfound\r\n && (strpos($pageinfo->content, $f) !== false);\r\n }\r\n if ($contentfound) {\r\n $res['content'][] = $pageinfo->pagename;\r\n }\r\n if ($namefound) {\r\n $res['pagename'][] = $pageinfo->pagename;\r\n }\r\n }\r\n\r\n // search in synonyms\r\n $wikimanager = wiki_manager_get_instance();\r\n $synonyms = $wikimanager->get_synonyms_by_wikiid($WS->dfwiki->id);\r\n foreach ($synonyms as $synonym) {\r\n $found = count($fields) != 0;\r\n foreach ($fields as $f) {\r\n $f = stripslashes_safe($f);\r\n $found = $found && (stripos($synonym->name, $f) !== false);\r\n }\r\n if ($found && !in_array($synonym->pageid->name, $res['pagename'])) {\r\n $res['pagename'][] = $synonym->pageid->name;\r\n }\r\n }\r\n\r\n return $res;*/\r\n}", "title": "" }, { "docid": "4541fe79a3cbf79f537dedfa4e73a192", "score": "0.49911025", "text": "public function ip();", "title": "" }, { "docid": "a9103f05b39cf9a17231637e956c8d58", "score": "0.49858084", "text": "public function parkIpBlock($ipv4) {\n\t\treturn json_decode(self::getClient()->parkIpBlock($this->getIP(),$ipv4));\n\t}", "title": "" }, { "docid": "6d0f3ab0be39f893f70238b4a171caa6", "score": "0.49828067", "text": "function NetPop($ina,$opa,$sta,$lim,$ord){\n\n\tglobal $link,$opt,$verb1,$netlbl,$dislbl,$adrlbl,$poplbl,$nonlbl,$emplbl,$tim,$totlbl,$srtlbl;\n\n\tif($ord){\n\t\t$ocol = \"device\";\n\t\t$srt = \"$srtlbl: Device\";\n\t}else{\n\t\t$ocol = \"ifip\";\n\t\t$srt = \"$srtlbl: IP $adrlbl\";\n\t}\n\t$devip = array();\n\t$query\t= GenQuery('devices','s','device,inet_ntoa(devip)','','',array($ina),array($opa),array($sta));\n\t$res = DbQuery($query,$link);\n\twhile( $r = DbFetchRow($res) ){\n\t\t$devip[$r[1]] = \"$r[0] $r[1]\";\n\t}\n\tDbFreeResult($res);\n\n\tif($ina == \"devip\"){$ina = \"ifip\";}\n\t$query\t= GenQuery('networks','s','networks.device,inet_ntoa(ifip),prefix',$ocol,'',array('ifip',$ina),array('>',$opa),array('0',$sta),array('AND'),'LEFT JOIN devices USING (device)' );\n\t$res\t= DbQuery($query,$link);\n\t$row = 0;\n\tif($res){\n\t\t$netok = array();\n\t\twhile( ($n = DbFetchRow($res)) ){\n\t\t\t$abip = ip2long($n[1]);\n\t\t\t$dmsk = 0xffffffff << (32 - $n[2]);\n\t\t\t$dnet = long2ip($abip & $dmsk);\n\t\t\tif($n[2] > 16 and $n[2] < 32){\t\t\t\t\t# Only > /16 but not /32 networks\n\t\t\t\tif( !array_key_exists($dnet,$netok) ){\t\t\t# Only if subnet hasn't been processed\n\t\t\t\t\t$netok[$dnet] = 1;\n\t\t\t\t\t$nod[$dnet] = array();\n\t\t\t\t\t$nquery\t= GenQuery('nodarp','s','mac,inet_ntoa(nodip),srvos','','',array(\"nodip & $dmsk\"),array('='),array(sprintf(\"%u\",$abip & $dmsk)) );\n\t\t\t\t\t$nres\t= DbQuery($nquery,$link);\n\t\t\t\t\tif ($nres) {\n\t\t\t\t\t\twhile( ($no = DbFetchRow($nres)) ){\n\t\t\t\t\t\t\t$mac[$dnet][$no[1]]['mc'] = $no[0];\n\t\t\t\t\t\t\t$mac[$dnet][$no[1]]['os'] = $no[2];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tDbFreeResult($nres);\n\t\t\t\t\t$nquery\t= GenQuery('dns','s','aname,inet_ntoa(nodip)','','',array(\"nodip & $dmsk\"),array('='),array(sprintf(\"%u\",$abip & $dmsk)) );\n\t\t\t\t\t$nres\t= DbQuery($nquery,$link);\n\t\t\t\t\tif ($nres) {\n\t\t\t\t\t\twhile( ($no = DbFetchRow($nres)) ){\n\t\t\t\t\t\t\t$dns[$dnet][$no[1]] = $no[0];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tDbFreeResult($nres);\n\t\t\t\t}\n\t\t\t\t$dev[$dnet][$n[1]] = $n[0];\n\t\t\t\t$nets[$dnet] = $n[2];\n\t\t\t\tif(count(array_keys($nets)) == $lim){break;}\n\t\t\t}\n\t\t}\n\t\tDbFreeResult($res);\n\t\tif($nets){\n?>\n\n<h2><?= $netlbl ?> <?= $poplbl ?></h2>\n\n<table class=\"content\">\n\t<tr class=\"bgsub\">\n\t\t<th colspan=\"2\">\n\t\t\t<img src=\"img/16/net.png\"><br>\n\t\t\tIP <?= $adrlbl ?>\n\n\t\t</th>\n\t\t<th>\n\t\t\t<img src=\"img/16/nods.png\"><br>\n\t\t\t<?= $poplbl ?>\n\n\t\t</th>\n\t</tr>\n<?php\n\t\t\t$row = 0;\n\t\t\t$mcol = ( $_SESSION['col'] < 6 )?32:64;\n\t\t\tforeach(array_keys($nets) as $net){\n\t\t\t\tif ($row % 2){$bg = \"txta\"; $bi = \"imga\";}else{$bg = \"txtb\"; $bi = \"imgb\";}\n\t\t\t\t$row++;\n\t\t\t\tlist($ntimg,$ntit) = Nettype($net);\n\t\t\t\tTblRow( $bg );\n\t\t\t\tTblCell( '','',\"$bi ctr xs\",\"+<img src=\\\"img/$ntimg\\\" title=\\\"$ntit\\\">\" );\n\n\t\t\t\techo \"\\t\\t<td>\\n\";\n\t\t\t\techo \"\\t\\t\\t<a href=\\\"?in[]=devip&op[]==&st[]=$net%2F$nets[$net]&rep[]=pop\\\">$net/$nets[$net]</a><p>\\n\";\n\t\t\t\techo \"\\t\\t\\t<a href=\\\"Topology-Networks.php?in[]=ifip&op[]==&st[]=$net%2F$nets[$net]\\\"><img src=\\\"img/16/glob.png\\\" title=\\\"IF IPs\\\"> \".count(array_keys($dev[$net])).\"</a><p>\\n\";\n\t\t\t\techo \"\\t\\t\\t<a href=\\\"Nodes-List.php?in[]=nodip&op[]==&st[]=$net%2F$nets[$net]\\\"><img src=\\\"img/16/nods.png\\\" title=\\\"Node IPs\\\"> \".count(array_keys($mac[$net])).\"</a>\\n\";\n\t\t\t\techo \"\\t\\t</td>\\n\";\n\t\t\t\techo \"\\t\\t<td>\\n\\t\\t<table class=\\\"code\\\"><tr>\\n\";\n\t\t\t\t$col = 0;\n\t\t\t\t$dnet = ip2long($net);\n\t\t\t\t$max = $dnet + pow(2,(32-$nets[$net]));\n\t\t\t\tfor($a = $dnet; $a < $max; $a++){\n\t\t\t\t\t$ip = long2ip($a);\n\t\t\t\t\t$nam = ( array_key_exists($ip, $dns[$net]) )?$dns[$net][$ip]:'';\n\t\t\t\t\t$lbl = ($nam)?'n':'&nbsp;';\n\t\t\t\t\tif( $opt ){\n\t\t\t\t\t\t$lbl = ($mac[$net][$ip]['os'])?OSImg($mac[$net][$ip]['os']):$lbl;\n\t\t\t\t\t}\n\t\t\t\t\tif($col == $mcol){$col = 0;echo \"\\t\\t</tr>\\n\\t\\t<tr>\\n\";}\n\t\t\t\t\tif( array_key_exists($ip, $dev[$net]) and array_key_exists($ip, $mac[$net]) ){\n\t\t\t\t\t\techo \"\\t\\t\\t<td title=\\\"$nam DEV:\".$dev[$net][$ip].\" $ip MAC:\".$mac[$net][$ip]['mc'].\"\\\" class=\\\"warn\\\"><a href=\\\"Topology-Networks.php?in[]=ifip&op[]==&st[]=$ip\\\">$lbl</a></td>\\n\";\n\t\t\t\t\t}elseif( array_key_exists($ip, $mac[$net]) ){\n\t\t\t\t\t\t\techo \"\\t\\t\\t<td title=\\\"$nam $ip MAC:\".$mac[$net][$ip]['mc'].\"\\\" class=\\\"good\\\"><a href=\\\"Nodes-List.php?in[]=nodip&op[]==&st[]=$ip\\\">$lbl</a></td>\\n\";\n\t\t\t\t\t}elseif( array_key_exists($ip, $dev[$net]) ){\n\t\t\t\t\t\techo \"\\t\\t\\t<td title=\\\"$nam DEV:\".$dev[$net][$ip].\" $ip\\\" class=\\\"noti\\\"><a href=\\\"Topology-Networks.php?in[]=ifip&op[]==&st[]=$ip\\\">$lbl</a></td>\\n\";\n\t\t\t\t\t}elseif( array_key_exists($ip, $devip) ){\n\t\t\t\t\t\techo \"\\t\\t\\t<td title=\\\"$nam DEV:$devip[$ip]\\\" class=\\\"noti part\\\"><a href=\\\"Devices-List.php?in[]=devip&op[]==&st[]=$ip\\\">$lbl</a></td>\\n\";\n\t\t\t\t\t}elseif( $nam ){\n\t\t\t\t\t\techo \"\\t\\t\\t<td title=\\\"$nam $ip = $emplbl\\\" class=\\\"alrm\\\"><a href=\\\"Other-Noodle.php?str=$ip\\\">n</a></td>\\n\";\n\t\t\t\t\t}elseif($a == $dnet or $a == $max -1){\n\t\t\t\t\t\t$netxt = ($a == $dnet)?$netlbl:\"Broadcast\";\n\t\t\t\t\t\techo \"\\t\\t\\t<td title=\\\"$netxt:$ip\\\" class=\\\"$bg part\\\">&nbsp;</td>\\n\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\techo \"\\t\\t\\t<td title=\\\"$ip, $emplbl\\\" class=\\\"$bi\\\">$lbl</td>\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t$col++;\n\t\t\t\t}\n\t\t\t\techo \"\\t\\t</tr></table>\\n\\t\\t</td>\\n\\t</tr>\\n\";\n\t\t\t}\n\t\t\tTblFoot(\"bgsub\", 3, \"$row $netlbl, $srt\");\n\t\t}\n\t}\n}", "title": "" }, { "docid": "ec049caa7cd20c9365b35a88967cfb2b", "score": "0.4978643", "text": "function iprange($left, $in, $right){\n\t\t$start \t= explode(\".\", $left);\n\t\t$end \t= explode(\".\", $right);\n\t\t$ip \t= explode(\".\", $in);\n\t\t$cnt \t= max(count($ip), count($start), count($end));\n\t\t\n\t\tfor ($i = 0; $i < $cnt; $i++){\n\t\t\tif (in_range(filter_int($ip[$i]), filter_int($start[$i]), filter_int($end[$i]), true)) continue;//if ($start[$i] < $ip[$i] && $ip[$i] < $end[$i])\n\t\t\telse return false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "1584b9d145c5d44da8701b551d961c78", "score": "0.49671695", "text": "function ip_in_range($ip, $range) {\r\n if (strpos($range, '/') !== false) {\r\n // $range is in IP/NETMASK format\r\n list($range, $netmask) = explode('/', $range, 2);\r\n if (strpos($netmask, '.') !== false) {\r\n // $netmask is a 255.255.0.0 format\r\n $netmask = str_replace('*', '0', $netmask);\r\n $netmask_dec = ip2long($netmask);\r\n return ( (ip2long($ip) & $netmask_dec) == (ip2long($range) & $netmask_dec) );\r\n } else {\r\n // $netmask is a CIDR size block\r\n // fix the range argument\r\n $x = explode('.', $range);\r\n while(count($x)<4) $x[] = '0';\r\n list($a,$b,$c,$d) = $x;\r\n $range = sprintf(\"%u.%u.%u.%u\", empty($a)?'0':$a, empty($b)?'0':$b,empty($c)?'0':$c,empty($d)?'0':$d);\r\n $range_dec = ip2long($range);\r\n $ip_dec = ip2long($ip);\r\n\r\n # Strategy 1 - Create the netmask with 'netmask' 1s and then fill it to 32 with 0s\r\n #$netmask_dec = bindec(str_pad('', $netmask, '1') . str_pad('', 32-$netmask, '0'));\r\n\r\n # Strategy 2 - Use math to create it\r\n $wildcard_dec = pow(2, (32-$netmask)) - 1;\r\n $netmask_dec = ~ $wildcard_dec;\r\n\r\n return (($ip_dec & $netmask_dec) == ($range_dec & $netmask_dec));\r\n }\r\n } else {\r\n // range might be 255.255.*.* or 1.2.3.0-1.2.3.255\r\n if (strpos($range, '*') !==false) { // a.b.*.* format\r\n // Just convert to A-B format by setting * to 0 for A and 255 for B\r\n $lower = str_replace('*', '0', $range);\r\n $upper = str_replace('*', '255', $range);\r\n $range = \"$lower-$upper\";\r\n }\r\n\r\n if (strpos($range, '-')!==false) { // A-B format\r\n list($lower, $upper) = explode('-', $range, 2);\r\n $lower_dec = (float)sprintf(\"%u\",ip2long($lower));\r\n $upper_dec = (float)sprintf(\"%u\",ip2long($upper));\r\n $ip_dec = (float)sprintf(\"%u\",ip2long($ip));\r\n return ( ($ip_dec>=$lower_dec) && ($ip_dec<=$upper_dec) );\r\n }\r\n\r\n error_log('Range argument is not in 1.2.3.4/24 or 1.2.3.4/255.255.255.0 format');\r\n return false;\r\n }\r\n}", "title": "" }, { "docid": "1d784ce9773dfc9c17d8ccb45427b0f2", "score": "0.496182", "text": "public function iplist() {\r\n\t\treturn $this->iplist; \r\n\t}", "title": "" }, { "docid": "13869c458aae95474264fd2c9bf5cb2b", "score": "0.49485412", "text": "private function _isReserved($host){\n if (!preg_match('/^([0-9]{1,3}\\.){3}[0-9]{1,3}$/', $host)) {\n $host = gethostbyname($host);\n }\n\n $octet = explode('.',$host);\n if ((int)$octet[0] >= 224) {\n return true;\n } else if (array_key_exists($octet[0], $this->_invalidIp)) {\n foreach ((array)$this->_invalidIp[$octet[0]] as $subnetData) {\n // we skip the first loop as we already know that octet matches\n for ($i = 1; $i < 4; $i++) {\n if (strpos($subnetData, $octet[$i]) !== $i * 4) {\n break;\n }\n }\n\n $host = explode(\"/\", $subnetData);\n $binaryHost = \"\";\n $tmp = explode(\".\", $host[0]);\n for ($i = 0; $i < 4 ; $i++) {\n $binaryHost .= str_pad(decbin($tmp[$i]), 8, \"0\", STR_PAD_LEFT);\n }\n\n $segmentData = [\n 'network' => (int)$this->_toIp(str_pad(substr($binaryHost, 0, $host[1]), 32, 0)),\n 'broadcast' => (int)$this->_toIp(str_pad(substr($binaryHost, 0, $host[1]), 32, 1))\n ];\n\n for ($j = $i; $j < 4; $j++) {\n if ((int)$octet[$j] < $segmentData['network'][$j] ||\n (int)$octet[$j] > $segmentData['broadcast'][$j]) {\n return false;\n }\n }\n }\n\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "21906ce5127ef5bbf0c4ba9be6900572", "score": "0.49465322", "text": "function lookup_block($query=\"\", $is_hash=FALSE)\n {\n $query = ($query == \"latest\") ? $this->blockchaininfo[\"blocks\"] : $query;\n if ($is_hash) \n {\n if (empty($query)) { return $this->error(\"no_hash\"); }\n $raw_block = $this->WalletRPC->getblock($query);\n if (! $raw_block) { return $this->error(\"invalid_hash\"); }\n } \n else \n { \n if (empty($query)) { return $this->error(\"no_height\"); }\n if (! is_numeric($query) ) { return $this->error(\"invalid_height\"); }\n $block_hash = $this->WalletRPC->getblockhash(intval($query));\n $raw_block = $this->WalletRPC->getblock($block_hash);\n if (! $block_hash || ! $raw_block) { return $this->error(\"invalid_height\"); }\n }\n\n $timestamp = date('m/d/Y \\@ H:i:s', $raw_block[\"time\"]);\n \n $html = [];\n \n array_push($html, '<div id=\"block_details\" class=\"list-details\">');\n array_push($html, ' <div class=\"row\">');\n array_push($html, ' <div class=\"col-12\">');\n array_push($html, ' <h3>Block <small>#</small> '.$raw_block[\"height\"].'</h3>');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' <br/>');\n array_push($html, ' <div class=\"d-block d-sm-none\">');\n array_push($html, ' <div class=\"row\">');\n array_push($html, ' <div class=\"col-6 align-center\">');\n if ($raw_block[\"previousblockhash\"])\n {\n array_push($html, ' <div class=\"big-button\">');\n array_push($html, ' <a class=\"button\" title=\"View Previous Block\" href=\"'.$_SERVER[\"PHP_SELF\"].'?hash='.$raw_block[\"previousblockhash\"].'\">&laquo; Prev</a> ');\n array_push($html, ' </div>');\n }\n array_push($html, ' </div>');\n array_push($html, ' <div class=\"col-6 align-center\">');\n if ($raw_block[\"nextblockhash\"])\n {\n array_push($html, ' <div class=\"big-button\">');\n array_push($html, ' <a class=\"button\" title=\"View Next Block\" href=\"'.$_SERVER[\"PHP_SELF\"].'?hash='.$raw_block[\"nextblockhash\"].'\">Next &raquo;</a> ');\n array_push($html, ' </div>');\n }\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' <br/>');\n array_push($html, ' <div class=\"row\">');\n array_push($html, ' <div class=\"col-12 align-center\">');\n array_push($html, ' <div class=\"box-glow\">');\n array_push($html, ' <span class=\"text-glow\">'.$timestamp.'</span> ');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' <div class=\"d-none d-sm-block\">');\n array_push($html, ' <div class=\"row\">');\n array_push($html, ' <div class=\"col-3 align-center\">');\n if ($raw_block[\"previousblockhash\"])\n {\n array_push($html, ' <div class=\"big-button\">');\n array_push($html, ' <a class=\"button\" title=\"View Previous Block\" href=\"'.$_SERVER[\"PHP_SELF\"].'?hash='.$raw_block[\"previousblockhash\"].'\">&laquo; Prev</a> ');\n array_push($html, ' </div>');\n }\n array_push($html, ' </div>');\n array_push($html, ' <div class=\"col-6 align-center\">');\n array_push($html, ' <div class=\"box-glow\">');\n array_push($html, ' <span class=\"text-glow\">'.$timestamp.'</span> ');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' <div class=\"col-3 align-center\">');\n if ($raw_block[\"nextblockhash\"])\n {\n array_push($html, ' <div class=\"big-button\">');\n array_push($html, ' <a class=\"button\" title=\"View Next Block\" href=\"'.$_SERVER[\"PHP_SELF\"].'?hash='.$raw_block[\"nextblockhash\"].'\">Next &raquo;</a> ');\n array_push($html, ' </div>');\n }\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' <br/>');\n array_push($html, ' <div class=\"row\">');\n array_push($html, ' <div class=\"col-12 align-center\">');\n array_push($html, ' <div class=\"box-glow hover-box\">');\n array_push($html, ' <strong>Block Hash:</strong><br/>');\n array_push($html, ' '.$this->link_blockhash($raw_block[\"hash\"]));\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' <br/>');\n array_push($html, ' <div class=\"row\">');\n array_push($html, ' <div class=\"col-12 col-sm-4 align-center\">');\n array_push($html, ' <div class=\"box-glow\">');\n array_push($html, ' <strong>Block Version:</strong><br/>');\n array_push($html, ' <span class=\"text-glow\">'.$raw_block[\"version\"].'</span> ');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' <div class=\"col-12 col-sm-4 align-center\">');\n array_push($html, ' <div class=\"box-glow\">');\n array_push($html, ' <strong>Block Size:</strong><br/>');\n array_push($html, ' <span class=\"text-glow\">'.$raw_block[\"size\"].'</span> ');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' <div class=\"col-12 col-sm-4 align-center\">');\n array_push($html, ' <div class=\"box-glow\">');\n array_push($html, ' <strong>Confirmations:</strong><br/>');\n array_push($html, ' <span class=\"text-glow\">'.$raw_block[\"confirmations\"].'</span> ');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' <br/>');\n array_push($html, ' <div class=\"row\">');\n array_push($html, ' <div class=\"col-12 col-sm-4 align-center\">');\n array_push($html, ' <div class=\"box-glow\">');\n array_push($html, ' <strong>Block Bits:</strong><br/>');\n array_push($html, ' <span class=\"text-glow\">'.$raw_block[\"bits\"].'</span> ');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' <div class=\"col-12 col-sm-4 align-center\">');\n array_push($html, ' <div class=\"box-glow\">');\n array_push($html, ' <strong>Block Nonce:</strong><br/>');\n array_push($html, ' <span class=\"text-glow\">'.$raw_block[\"nonce\"].'</span> ');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' <div class=\"col-12 col-sm-4 align-center\">');\n array_push($html, ' <div class=\"box-glow\">');\n array_push($html, ' <strong>Difficulty:</strong><br/>');\n array_push($html, ' <span class=\"text-glow\">0.'.number_format($raw_block[\"difficulty\"], 8, '.', '').'</span> ');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' <br/>');\n array_push($html, ' <div class=\"row\">');\n array_push($html, ' <div class=\"col-12 align-center\">');\n array_push($html, ' <div class=\"box-glow\">');\n array_push($html, ' <strong>Merkle Root:</strong><br/>');\n array_push($html, ' <span class=\"text-glow\">'.$raw_block[\"merkleroot\"].'</span> ');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' <br/><br/>');\n\n if ( array_key_exists(\"tx\", $raw_block) )\n {\n array_push($html, ' <div class=\"row\">');\n array_push($html, ' <div class=\"col-12\">');\n array_push($html, ' <h3>Transactions</h3>');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' <br/>');\n array_push($html, ' <div class=\"row\">');\n array_push($html, ' <div class=\"col-12\">');\n array_push($html, ' <div class=\"box-glow hover-box\">');\n array_push($html, ' <ol>');\n foreach ($raw_block[\"tx\"] as $index => $tx)\n {\n array_push($html, ' <li id=\"showtx_'.$index.'\">'.$this->link_txid($tx).'</li>');\n }\n array_push($html, ' </ol>');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' </div>');\n array_push($html, ' <br/>');\n array_push($html, ' <br/>');\n array_push($html, '</div>');\n\n }\n \n $this->debug(\"LOAD PAGE: Block Details\");\n return join(\"\", $html);\n }", "title": "" }, { "docid": "7fa4ea3e9fc4a4d367ca847c36adcebf", "score": "0.49353388", "text": "Function findIPAddressUse($ip)\n {\n global $PHP_SELF;\n \n // Function runs two checks:\n // - which users posted from this IP?\n // - which users signed up from this IP?\n \n // Check to see who posted from this IP\n $sql = \"SELECT p.authorid, u.displayname, u.displayformat, u.postcount, COUNT(p.authorid) as ippostcount, p.ipaddress\"\n .\" FROM \".TABLE_POSTS.\" p, \".TABLE_USERS.\" u \"\n .\" WHERE u.ID = p.authorid \"\n .\" AND p.recipientid = '' \"\n .\" AND ipaddress = '\".$ip.\"' \"\n .\"GROUP BY authorid\";\n if ($exe = runQuery($sql))\n {\n while ($row = fetchResultArray($exe))\n {\n // Rather than run a crapload of database queries, let's give the username formatting\n // function everything it needs from here:\n $dataarray = array(\"postcount\" => $row[postcount], \n \"displayname\" => $row[displayname], \n \"displayformat\" => $row[displayformat]);\n $username = usernameDisplay($row[authorid], \"\", \"showstar\", $dataarray);\n \n // Display a 100% match if all their posts came from the IP\n if ($row[ippostcount] == $row[postcount])\n {\n $matchrate = \"<B STYLE='color: green'>100%</B>\";\n $fullmatch = 1;\n }\n else\n {\n $matchrate = sprintf(\"%0.1f\", ($row[ippostcount] / $row[postcount]) * 100).\"%\";\n $fullmatch = 0;\n }\n \n $result[] = array(\"userid\" => $row[authorid],\n \"username\" => $username,\n \"extra\" => $row[ippostcount].\" of \".$row[postcount].\" posts came from \".$ip,\n \"match\" => $matchrate,\n \"fullmatch\" => $fullmatch);\n }\n }\n \n // Now check to see who signed up from this IP\n $sql = \"SELECT u.ID as userid, u.displayname, u.displayformat, u.postcount, u.ip_signup\"\n .\" FROM \".TABLE_USERS.\" u \"\n .\" WHERE ip_signup = '\".$ip.\"' \";\n if ($exe = runQuery($sql))\n {\n while ($row = fetchResultArray($exe))\n {\n // Rather than run a crapload of database queries, let's give the username formatting\n // function everything it needs from here:\n $dataarray = array(\"postcount\" => $row[postcount], \n \"displayname\" => $row[displayname], \n \"displayformat\" => $row[displayformat]);\n $username = usernameDisplay($row[userid], \"\", \"showstar\", $dataarray);\n $result[] = array(\"userid\" => $row[userid],\n \"username\" => $username,\n \"extra\" => \"Signed up from \".$ip);\n }\n }\n \n // Now check to see who logged in from this IP\n $sql = \"SELECT s.username, COUNT(s.ID) as sessioncount, u.displayname, u.displayformat, u.postcount\"\n .\" FROM \".TABLE_BOARD_SESSIONS.\" s, \".TABLE_USERS.\" u \"\n .\" WHERE s.username = u.ID \"\n .\" AND s.login_ip = '\".$ip.\"' \"\n .\" GROUP BY s.username\";\n if ($exe = runQuery($sql))\n {\n while ($row = fetchResultArray($exe))\n {\n // Rather than run a crapload of database queries, let's give the username formatting\n // function everything it needs from here:\n $dataarray = array(\"postcount\" => $row[username], \n \"displayname\" => $row[displayname], \n \"displayformat\" => $row[displayformat]);\n $username = usernameDisplay($row[username], \"\", \"showstar\", $dataarray);\n $result[] = array(\"userid\" => $row[username],\n \"username\" => $username,\n \"extra\" => $row[sessioncount].\" session/s from \".$ip);\n }\n }\n \n \n // Now put it all together into a HTML table\n for ($i = 0; $i < count($result); $i++ )\n {\n $findallips = \"&nbsp;\";\n if (!$result[$i][fullmatch])\n {\n $findallips = makeLink($PHP_SELF.\"?action=finduserips&userid=\".$result[$i][userid], \"Find User's IPs\");\n }\n $tablerow .= \"<TR><TD CLASS='BoardRowBody'>\".$result[$i][username].\"</TD>\\n\"\n .\" <TD CLASS='BoardRowBody'>\".$result[$i][extra].\"</TD>\\n\"\n .\" <TD CLASS='BoardRowBody'>\".$findallips.\"</TD>\\n\"\n .\" <TD CLASS='BoardRowBody'>\".$result[$i][match].\"&nbsp;</TD></TR>\\n\";\n } \n $table = \"<TABLE WIDTH=100% CELLPADDING=2 CELLSPACING=1 BORDER=0>\\n\"\n .\"<TR><TD WIDTH=25% CLASS='BoardColumn'>Username</TD>\\n\"\n .\" <TD WIDTH=45% CLASS='BoardColumn'>IP Match Information</TD>\\n\"\n .\" <TD WIDTH=20% CLASS='BoardColumn'>Option</TD>\\n\"\n .\" <TD WIDTH=10% CLASS='BoardColumn'>Rate</TD></TR>\\n\"\n .$tablerow\n .\"</TABLE>\\n\";\n \n $return[results] = $result;\n $return[resultcount] = count($result);\n $return[html] = $table;\n \n return $return;\n }", "title": "" }, { "docid": "a5ccca2bd6a8d252b358a1264c63a381", "score": "0.4931937", "text": "public function isSpecialIp()\n {\n $config = $this->_config;\n foreach($config->filtre as $section => $IPs){\n //@todo merger les sections complete et incomplete\n switch($section){\n /*case 'complete' :\n {\n foreach($IPs as $key => $ip){\n if ($ip == $this->getRemoteAddr('IP')) {\n #echo 'c : ' ; \n return true;\n } \n }\n }\n break;*/\n case 'ip' :\n {\n foreach($IPs as $key => $ip){\n if (($ip == substr ($this->getRemoteAddr('IP'), 0, strlen($ip)))) {\n #echo 'inc : ';\n return true;\n } \n }\n }\n break;\n case 'domaine' :\n {\n //@todo A tester \n foreach($IPs as $key => $domain){\n if (strpos(\"xx\" . $this->getRemoteAddr('DOMAIN'), $domain) !== false) {\n #echo 'domaine : ';\n return true;\n } \n }\n }\n break;\n default :\n return false;\n break;\n }\n }\n return false;\n }", "title": "" }, { "docid": "3c116b3ecf2da52300e563d385184ee7", "score": "0.4930924", "text": "function _ebtools_list() {\n $args = func_get_args();\n //drupal_set_message(\"DATA:\" . implode('|', $args));\n if ($args[0] == 'mesto') {\n $type = 'place';\n } elseif ($args[0] == 'medij') {\n $type = 'media';\n } elseif ($args[0] == 'licnost') {\n $type = 'person';\n //XXX NOT IMPLEMENTED YET\n } elseif ($args[0] == 'dokument') {\n $type = 'document';\n } elseif ($args[0] == 'manifestacija') {\n $type = 'manifestation';\n } elseif ($args[0] == 'događaj') {\n $type = 'event';\n } elseif ($args[0] == 'stranka') {\n $type = 'party';\n } elseif ($args[0] == 'narod') {\n $type = 'nation';\n } elseif ($args[0] == 'tema') {\n $type = 'theme';\n //XXX NOT IMPLEMENTED YET\n } else {\n //$url = 'ebart/novinski/clanak/' . $godina . '/' . $id;\n drupal_goto($url, array(), 301);\n }\n $block = &drupal_static('ebtools_block_type');\n $block = $type;\n return _ebtools_getlist('page', $args);\n}", "title": "" }, { "docid": "adcdbab610cc88770751376449ffc471", "score": "0.49247807", "text": "function check_blackholes($ip)\n{\n if (is_IPv6_addr($ip))\n {\n return;\n }\n\n // Only conservative lists\n $blackhole_lists = array(\n \"sbl-xbl.spamhaus.org\", // All around nasties\n// \"dnsbl.sorbs.net\", // Old useless data.\n// \"list.dsbl.org\", // Old useless data.\n// \"dnsbl.ioerror.us\", // Bad Behavior Blackhole\n );\n\n // Things that shouldn't be blocked, from aggregate lists\n $blackhole_exceptions = array(\n \"sbl-xbl.spamhaus.org\" => array(\"127.0.0.4\"), // CBL is problematic\n \"dnsbl.sorbs.net\" => array(\"127.0.0.10\",), // Dynamic IPs only\n \"list.dsbl.org\" => array(),\n \"dnsbl.ioerror.us\" => array(),\n );\n\n // Check the blackhole lists\n $find = implode('.', array_reverse(explode('.', $ip)));\n\n foreach ($blackhole_lists as $dnsbl)\n {\n $result = gethostbynamel($find . \".\" . $dnsbl . \".\");\n if (!empty($result))\n {\n // Got a match and it isn't on the exception list\n $result = @array_diff($result, $blackhole_exceptions[$dnsbl]);\n if (!empty($result))\n {\n return true;\n }\n }\n }\n\n return false;\n}", "title": "" }, { "docid": "14a3fb95f60e437faf2825f7dff8955e", "score": "0.49218962", "text": "function whitelistGetNetBIOSIP() {\n\t\t$ret = array();\n\t\tforeach(file(dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'whitelist-domains.txt') as $domain) {\n\t\t\t$ip = gethostbyname($domain);\n\t\t\t$ret[$ip] = $ip;\n\t\t} \n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "35d980a7e61883c64eb9e4e8993de01d", "score": "0.49138737", "text": "public function getNeighbors(){\n\t\tif ($this->connect()) {\n\t\t\t$API = $this->routerosapi;\n\t\t\t$API->write('/ip/neighbor/print');\n\t\t\t$connect = $API->read();\n\t\t\t// print_r($connect);\n\t\t\t$API->disconnect();\n\t\t\treturn $connect;\n\t\t\t// $cek = 0;\n\t\t\t// \tforeach ($connect as $neighbor) {\n\t\t\t// \t\tif ($device_mac == $neighbor['mac-address']) {\n\t\t\t// \t\t// \tprint_r($neighbor['mac-address']);\n\t\t\t// \t\t// echo \" = $device_mac \";\n\t\t\t// \t\t// \techo ' : connect <br>';\n\t\t\t// \t\t\t$cek++;\n\t\t\t// \t\t}else{\n\t\t\t// \t\t// \tprint_r($neighbor['mac-address']);\n\t\t\t// \t\t// echo \" = $device_mac\";\n\t\t\t// \t\t// \techo ': gak connect <br>';\n\t\t\t// \t\t}\n\t\t\t// \t}\n\t\t\t// \tif ($cek>0) {\n\t\t\t// \t\treturn true;\n\t\t\t// \t}else{\n\t\t\t// \t\treturn false;\n\t\t\t// \t}\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "bff80aaf0db6f20046bd44c7cd5f5019", "score": "0.49067095", "text": "function cidr_match($ip, $range)\n{\n list ($subnet, $bits) = explode('/', $range);\n\n #echo \"<br>CIDR_MATCH: $ip, $range, $bits<br>\";\n\n if ($bits === null) {\n $bits = 32;\n }\n $ip = ip2long($ip);\n $subnet = ip2long($subnet);\n $mask = -1 << (32 - $bits);\n $subnet &= $mask; # nb: in case the supplied subnet wasn't correctly aligned\n return ($ip & $mask) == $subnet;\n}", "title": "" }, { "docid": "638d5f3c19964f2b7e2ca923d8b87c1d", "score": "0.49009302", "text": "public static function getIp($ip)\n {\n $response=@file_get_contents('http://www.netip.de/search?query='.$ip);\n $patterns=array();\n $patterns[\"domain\"] = '#Domain: (.*?)&nbsp;#i';\n $patterns[\"country\"] = '#Country: (.*?)&nbsp;#i';\n $patterns[\"state\"] = '#State/Region: (.*?)<br#i';\n $patterns[\"town\"] = '#City: (.*?)<br#i';\n\n $ipInfo=array();\n //check response from ipserver for above patterns\n foreach ($patterns as $key => $pattern)\n {\n //store the result in array\n $ipInfo[$key] = preg_match($pattern,$response,$value) && !empty($value[1]) ? $value[1] : 'not found';\n }\n return $ipInfo;\n }", "title": "" }, { "docid": "80ed821373fcb7ee21eb288d007c7ea8", "score": "0.4896092", "text": "function ipmask($mask, $ip = ''){\n\t\tif (!$ip) $ip = $_SERVER['REMOTE_ADDR'];\n\t\t\n\t\t$mask \t= explode(\".\", $mask);\n\t\t$chk \t= explode(\".\", $ip);\n\t\t$cnt \t= min(count($mask), count($chk));\n\t\t\n\t\tfor($i = 0; $i < $cnt; $i++){\n\t\t\t/*\n\t\t\t\tA star obviously allows every number for the ip sect, otherwise we check if the sectors match\n\t\t\t\tIf they don't return false\n\t\t\t*/\n\t\t\tif ($mask[$i] == \"*\" || $mask[$i] == $chk[$i]) continue;\n\t\t\telse return false;\n\t\t}\n\t\t// Everything matches\n\t\treturn true;\n\t}", "title": "" }, { "docid": "09573387ea5da4a7ebb7cd720c7f5f4f", "score": "0.48878324", "text": "private function getIpRange( $ip ) {\n\t\t# Running locally? Skip IP check\n\t\tif ( $this->getSetting( 'firewall_local' ) ) {\n\t\t\t$ip\t= '127.0.0.1';\n\t\t} else {\n\t\t\tif ( !$this->ip->validateIP( $ip ) ) {\n\t\t\t\t$this->endf( 'Denied IP' );\n\t\t\t}\n\t\t}\n\t\t$ish\t= $this->hostSplit( $ip );\t# IP chunks\n\t\t\n\t\treturn $ish;\n\t}", "title": "" }, { "docid": "cb7dfb25507d71b3d2aea02c65f83e6a", "score": "0.48873132", "text": "Function ip_in_range($ip, $range) {\n if (strpos($range, '/') !== false) {\n // $range is in IP/NETMASK format\n list($range, $netmask) = explode('/', $range, 2);\n if (strpos($netmask, '.') !== false) {\n // $netmask is a 255.255.0.0 format\n $netmask = str_replace('*', '0', $netmask);\n $netmask_dec = ip2long($netmask);\n return ( (ip2long($ip) & $netmask_dec) == (ip2long($range) & $netmask_dec) );\n } else {\n // $netmask is a CIDR size block\n // fix the range argument\n $x = explode('.', $range);\n while(count($x)<4) $x[] = '0';\n list($a,$b,$c,$d) = $x;\n $range = sprintf(\"%u.%u.%u.%u\", empty($a)?'0':$a, empty($b)?'0':$b,empty($c)?'0':$c,empty($d)?'0':$d);\n $range_dec = ip2long($range);\n $ip_dec = ip2long($ip);\n\n # Strategy 1 - Create the netmask with 'netmask' 1s and then fill it to 32 with 0s\n #$netmask_dec = bindec(str_pad('', $netmask, '1') . str_pad('', 32-$netmask, '0'));\n\n # Strategy 2 - Use math to create it\n $wildcard_dec = pow(2, (32-$netmask)) - 1;\n $netmask_dec = ~ $wildcard_dec;\n\n return (($ip_dec & $netmask_dec) == ($range_dec & $netmask_dec));\n }\n } else {\n // range might be 255.255.*.* or 1.2.3.0-1.2.3.255\n if (strpos($range, '*') !==false) { // a.b.*.* format\n // Just convert to A-B format by setting * to 0 for A and 255 for B\n $lower = str_replace('*', '0', $range);\n $upper = str_replace('*', '255', $range);\n $range = \"$lower-$upper\";\n }\n\n if (strpos($range, '-')!==false) { // A-B format\n list($lower, $upper) = explode('-', $range, 2);\n $lower_dec = (float)sprintf(\"%u\",ip2long($lower));\n $upper_dec = (float)sprintf(\"%u\",ip2long($upper));\n $ip_dec = (float)sprintf(\"%u\",ip2long($ip));\n return ( ($ip_dec>=$lower_dec) && ($ip_dec<=$upper_dec) );\n }\n\n echo 'Range argument is not in 1.2.3.4/24 or 1.2.3.4/255.255.255.0 format';\n return false;\n }\n\n}", "title": "" }, { "docid": "0c681d4e3c61a0756624b6d9e1ff21d1", "score": "0.48738557", "text": "public function scan($timeout=10)\n {\n \n //$ip = '192.168.1.100';\n\n $sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);\n $bind = socket_bind($sock, $this->ip, 48899);\n $opt = socket_set_option($sock, SOL_SOCKET, SO_BROADCAST, 1);\n\n $msg = \"HF-A11ASSISTHREAD\";\n $len = strlen($msg);\n \n # set the time at which we will quit the search\n $quit_time = time() + 5;\n $list = [];\n $resp = $error = $data = $from = false;\n $port = 0;\n\n while (true) {\n\n if (time() > $quit_time) {\n break;\n }\n\n # send out a broadcast query\n socket_sendto($sock, $msg, $len, 0, $this->broadcast, 48899);\n socket_recvfrom($sock, $data, 64, 0, $from, $port);\n\n if ($data && $data != $msg) {\n # tuples of IDs and IP addresses\n $arr = explode(',', $data);\n \n $item = [\n 'ipaddr' => $arr[0],\n 'id' => $arr[1],\n 'model' => $arr[2],\n ];\n $list[$item['ipaddr']] = $item;\n } \n }\n\n return $list;\n\n }", "title": "" }, { "docid": "bb8ba79c08ee65072f780f24dd6d0572", "score": "0.48731503", "text": "protected function searchBlocks($tpl)\n {\n $r = array();\n $blockStarts = array();\n $blockEnds = array();\n\n preg_match_all('#{block([[:blank:]]*)name=('.tpltools::$varreg.'+)(.*)}#U', $tpl, $r, PREG_OFFSET_CAPTURE);\n foreach ($r[0] as $k => $match) {\n $p = tpltools::readParams($match[0]);\n $blockStarts[] = array($match[1], strlen($match[0]), $p['params']);\n }\n\n preg_match_all('#{/block}#', $tpl, $r, PREG_OFFSET_CAPTURE);\n foreach ($r[0] as $match) {\n $blockEnds[] = $match[1];\n }\n\n $s = sizeof($blockStarts);\n for ($i=0 ; $i< $s ; $i++) {\n for ($j=$i+1 ; $j < $s ; $j++) {\n if ($blockStarts[$j][0] < $blockEnds[$i]) {\n $tmp = $blockEnds[$j];\n $blockEnds[$j] = $blockEnds[$i];\n $blockEnds[$i] = $tmp;\n }\n }\n }\n\n foreach ($blockStarts as $k => $b) {\n $this->blocks[$b[2]['name']][] = array(\n 'content' => substr($tpl, $b[0]+$b[1], $blockEnds[$k]-$b[0]-$b[1]),\n 'command' => substr($tpl, $b[0], $b[1]),\n 'params' => $b[2]\n );\n }\n }", "title": "" }, { "docid": "dc0fc5583b2060556ecc5d0aceefd9a5", "score": "0.48728472", "text": "function start($info_hash, $ip, $port, $peer_id, $left, $downloaded=0, $uploaded=0, $upid=\"\")\r\n{\r\n global $BASEURL, $TABLE_PREFIX;\r\n\r\n if (isset($_GET[\"ip\"]) && $GLOBALS[\"ip_override\"])\r\n {\r\n // compact check: valid IP address:\r\n if ($_GET[\"ip\"]!=long2ip(ip2long($_GET[\"ip\"])))\r\n show_error(\"Invalid IP address. Must be standard dotted decimal ( hostnames not allowed )\");\r\n\r\n $ip = ((isset($GLOBALS[\"___mysqli_ston\"]) && is_object($GLOBALS[\"___mysqli_ston\"])) ? mysqli_real_escape_string($GLOBALS[\"___mysqli_ston\"], $_GET[\"ip\"]) : ((trigger_error(\"[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.\", E_USER_ERROR)) ? \"\" : \"\"));\r\n }\r\n else\r\n $ip = getip();\r\n\r\n $ip = ((isset($GLOBALS[\"___mysqli_ston\"]) && is_object($GLOBALS[\"___mysqli_ston\"])) ? mysqli_real_escape_string($GLOBALS[\"___mysqli_ston\"], $ip) : ((trigger_error(\"[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.\", E_USER_ERROR)) ? \"\" : \"\"));\r\n $agent = ((isset($GLOBALS[\"___mysqli_ston\"]) && is_object($GLOBALS[\"___mysqli_ston\"])) ? mysqli_real_escape_string($GLOBALS[\"___mysqli_ston\"], $_SERVER[\"HTTP_USER_AGENT\"]) : ((trigger_error(\"[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.\", E_USER_ERROR)) ? \"\" : \"\"));\r\n $remotedns = gethostbyaddr($ip);\r\n\r\n if (isset($_GET[\"ip\"])) $nuIP = $_GET[\"ip\"];\r\n else $nuIP = \"\";\r\n if ($remotedns == $nuIP)\r\n $remotedns = \"AA\";\r\n else\r\n {\r\n $remotedns = strtoupper($remotedns);\r\n preg_match('/^(.+)\\.([A-Z]{2,3})$/', $remotedns, $tldm);\r\n if (!empty($tldm[2]))\r\n $remotedns = ((isset($GLOBALS[\"___mysqli_ston\"]) && is_object($GLOBALS[\"___mysqli_ston\"])) ? mysqli_real_escape_string($GLOBALS[\"___mysqli_ston\"], $tldm[2]) : ((trigger_error(\"[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.\", E_USER_ERROR)) ? \"\" : \"\"));\r\n else\r\n $remotedns = \"AA\";\r\n }\r\n\r\n if ($left == 0)\r\n $status = \"seeder\";\r\n else\r\n $status = \"leecher\";\r\n\r\n if (@isFireWalled($info_hash, $peer_id, $ip, $port))\r\n $nat = \"Y\";\r\n else\r\n $nat = \"N\";\r\n\r\n\r\n\r\n $compact = ((isset($GLOBALS[\"___mysqli_ston\"]) && is_object($GLOBALS[\"___mysqli_ston\"])) ? mysqli_real_escape_string($GLOBALS[\"___mysqli_ston\"], str_pad(pack('Nn', ip2long($ip), $port),6)) : ((trigger_error(\"[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.\", E_USER_ERROR)) ? \"\" : \"\"));\r\n $peerid = ((isset($GLOBALS[\"___mysqli_ston\"]) && is_object($GLOBALS[\"___mysqli_ston\"])) ? mysqli_real_escape_string($GLOBALS[\"___mysqli_ston\"], '2:ip' . strlen($ip) . ':' . $ip . '7:peer id20:' . hex2bin($peer_id) . \"4:porti{$port}e\") : ((trigger_error(\"[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.\", E_USER_ERROR)) ? \"\" : \"\"));\r\n $no_peerid = ((isset($GLOBALS[\"___mysqli_ston\"]) && is_object($GLOBALS[\"___mysqli_ston\"])) ? mysqli_real_escape_string($GLOBALS[\"___mysqli_ston\"], '2:ip' . strlen($ip) . ':' . $ip . \"4:porti{$port}e\") : ((trigger_error(\"[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.\", E_USER_ERROR)) ? \"\" : \"\"));\r\n\r\n\r\n $results = @mysqli_query($GLOBALS[\"___mysqli_ston\"], \"INSERT INTO {$TABLE_PREFIX}peers SET infohash=\\\"$info_hash\\\", peer_id=\\\"$peer_id\\\", port=\\\"$port\\\", ip=\\\"$ip\\\", lastupdate=UNIX_TIMESTAMP(), bytes=\\\"$left\\\", status=\\\"$status\\\", natuser=\\\"$nat\\\", client=\\\"$agent\\\", dns=\\\"$remotedns\\\", downloaded=$downloaded, uploaded=$uploaded, pid=\\\"$upid\\\"\");\r\n\r\n\r\n // Special case: duplicated peer_id.\r\n if (!$results)\r\n {\r\n if (((is_object($GLOBALS[\"___mysqli_ston\"])) ? mysqli_errno($GLOBALS[\"___mysqli_ston\"]) : (($___mysqli_res = mysqli_connect_errno()) ? $___mysqli_res : false))==1062)\r\n {\r\n // Duplicate peer_id! Check IP address\r\n $peer = getPeerInfo($peer_id, $info_hash);\r\n if ($ip == $peer[\"ip\"])\r\n {\r\n // Same IP address. Tolerate this error.\r\n return \"WHERE natuser='N'\";\r\n }\r\n // Different IP address. Assume they were disconnected, and alter the IP address.\r\n quickQuery(\"UPDATE {$TABLE_PREFIX}peers SET ip=\\\"$ip\\\", compact=\\\"$compact\\\", with_peerid=\\\"$peerid\\\", without_peerid=\\\"$no_peerid\\\" WHERE peer_id=\\\"$peer_id\\\" AND infohash=\\\"$info_hash\\\"\");\r\n return \"WHERE natuser='N'\";\r\n }\r\n error_log(\"BtiTracker: start: \".((is_object($GLOBALS[\"___mysqli_ston\"])) ? mysqli_error($GLOBALS[\"___mysqli_ston\"]) : (($___mysqli_res = mysqli_connect_error()) ? $___mysqli_res : false)));\r\n show_error(\"Tracker/database error. The details are in the error log.\");\r\n }\r\n $GLOBALS[\"trackerid\"] = ((is_null($___mysqli_res = mysqli_insert_id($GLOBALS[\"___mysqli_ston\"]))) ? false : $___mysqli_res);\r\n\r\n @mysqli_query($GLOBALS[\"___mysqli_ston\"], \"UPDATE {$TABLE_PREFIX}peers SET sequence=\\\"\".$GLOBALS[\"trackerid\"].\"\\\", compact=\\\"$compact\\\", with_peerid=\\\"$peerid\\\", without_peerid=\\\"$no_peerid\\\" WHERE peer_id=\\\"$peer_id\\\" AND infohash=\\\"$info_hash\\\"\");\r\n\r\n if ($left == 0)\r\n {\r\n summaryAdd(\"seeds\", 1);\r\n return \"WHERE status=\\\"leecher\\\" AND natuser='N'\";\r\n }\r\n else\r\n {\r\n summaryAdd(\"leechers\", 1);\r\n return \"WHERE natuser='N'\";\r\n }\r\n}", "title": "" }, { "docid": "ce3aaca2ddcf9bf7f8291461b4884905", "score": "0.48670608", "text": "function search_in_files($find)\n{\n$out = array();\n$filesdb = new linksdb(DOWNLOADS_DATAFILE);\nif (!empty($filesdb)) {\n\tforeach ($filesdb as $catkey => $katval) {\n if (is_array($katval))\n\t\t\tforeach ($katval as $akey => $aval) {\n if (access_chk($aval['accesslevel']))\n foreach ($aval as $bkey => $bval) {\n to_result($aval['name'],$find,'?module=filesdb&id='.($akey+1),$out);\n to_result($aval['desc'],$find,'?module=filesdb&id='.($akey+1),$out);\n if ($bkey=='files')\n foreach ($bval as $ckey => $cval) {\n to_result($cval['name'],$find,'?module=filesdb&id='.($akey+1).'&fid='.($ckey+1),$out);\n to_result($cval['desc'],$find,'?module=filesdb&id='.($akey+1).'&fid='.($ckey+1),$out);\n to_result($cval['author'],$find,'?module=filesdb&id='.($akey+1).'&fid='.($ckey+1),$out);\n }\n }\n }\n\t}\n}\nreturn $out;\n}", "title": "" }, { "docid": "ea04a9a9bc9a6c9f3ab292c3c260ca4a", "score": "0.48656428", "text": "public function getDotpayIp()\n {\n $whitelist = array(\n '195.150.9.37',\n '91.216.191.181',\n '91.216.191.182',\n '91.216.191.183',\n '91.216.191.184',\n '91.216.191.185',\n '5.252.202.255',\n );\n\n return $whitelist;\n }", "title": "" }, { "docid": "6bb3af35e4a620e85bd8effa210010c2", "score": "0.4863183", "text": "function ipRange($network, $ip)\n{\n $network=trim($network);\n $orig_network = $network;\n $ip = trim($ip);\n if ($ip === $network) {\n return true;\n }\n $network = str_replace(' ', '', $network);\n if (strpos($network, '*') != false) {\n if (strpos($network, '/') != false) {\n $asParts = explode('/', $network);\n $network = @ $asParts[0];\n }\n $nCount = substr_count($network, '*');\n $network = str_replace('*', '0', $network);\n if ($nCount === 1) {\n $network .= '/24';\n } elseif ($nCount === 2) {\n $network .= '/16';\n } elseif ($nCount === 3) {\n $network .= '/8';\n } elseif ($nCount > 3) {\n return true;\n }\n }\n\n $d = strpos($network, '-');\n if ($d === false) {\n $ip_arr = explode('/', $network);\n if (!preg_match(\"@\\d*\\.\\d*\\.\\d*\\.\\d*@\", $ip_arr[0], $matches)) {\n $ip_arr[0].=\".0\";\n }\n $network_long = ip2long($ip_arr[0]);\n $x = ip2long($ip_arr[1]);\n $mask = long2ip($x) === $ip_arr[1] ? $x : (0xffffffff << (32 - $ip_arr[1]));\n $ip_long = ip2long($ip);\n return ($ip_long & $mask) === ($network_long & $mask);\n } else {\n $from = trim(ip2long(substr($network, 0, $d)));\n $to = trim(ip2long(substr($network, $d+1)));\n $ip = ip2long($ip);\n return ($ip>=$from and $ip<=$to);\n }\n}", "title": "" }, { "docid": "76d3653a688bfbdb88cf8a1559cbd7e2", "score": "0.48589623", "text": "function does_vip_exist($vip)\n{\n if (!$vip) {\n return false;\n }\n\n switch ($vip['mode']) {\n case \"carp\":\n case \"ipalias\":\n /* XXX: Make proper checks? */\n $realif = get_real_interface($vip['interface']);\n if (!does_interface_exist($realif)) {\n return false;\n }\n break;\n case \"proxyarp\":\n /* XXX: Implement this */\n default:\n return false;\n }\n\n foreach (array_keys(interfaces_addresses($realif, true)) as $vipips) {\n if ($vipips == \"{$vip['subnet']}/{$vip['subnet_bits']}\") {\n return true;\n }\n }\n\n return false;\n}", "title": "" }, { "docid": "1635371e1fd40157280cd6b4af2323cd", "score": "0.4856759", "text": "public function getBlockDetails($search_title = '')\n\t{\n\t\t$sql \t= \"SELECT * From cms_homepage_block where is_delete=0 \".((isset($search_title) && !empty($search_title)) ? ' AND b_title like \"'.$search_title.'%\"' : '');\n\t\t$query \t= DB::query(Database::SELECT,$sql);\n\t\t$list \t= $query->execute()->as_array();\n return $list;\n\t}", "title": "" }, { "docid": "d8c2d0f36cc6249f3870250c944e8db0", "score": "0.48533958", "text": "public function liste($void,$limit=10, $offset=1, $filters=NULL, $ordercol=2, $ordering=\"asc\")\n {\n $table = 't_ips';\n // première partie du select, mis en cache\n $this->db->start_cache();\n $serveur_name = \"t_servers.nom_interne as serveur_name\";\n $host_name = \"t_hosts.nom as host_name\";\n $owner_name = \"t_owners.nom as owner_name\";\n\n\t\t$this->db->select($table.\".*,ip_id as RowID, ip_id as checkbox, $host_name, $serveur_name,$owner_name\");\n\n $this->db->join('t_servers', $table.'.serveur= t_servers.server_id', 'LEFT');\n $this->db->join('t_hosts', $table.'.host = t_hosts.host_id', 'LEFT');\n $this->db->join('t_owners', 't_servers.owner = t_owners.owner_id', 'LEFT');\n\n switch($void){\n case 'archived':\n $this->db->where($table.'.inactive != \"0000-00-00 00:00:00\"');\n break;\n case 'deleted':\n $this->db->where($table.'.deleted != \"0000-00-00 00:00:00\"');\n break;\n case 'all':\n break;\n default:\n $this->db->where($table.'.inactive is NULL');\n $this->db->where($table.'.deleted is NULL');\n break;\n }\n\n $id = intval($void);\n if ($id > 0) {\n $this->db->where('ip_id', $id);\n }\n\n\t\t$this->db->stop_cache();\n // aliases\n $aliases = array(\n 'serveur_name' => 't_servers.nom_interne',\n 'host_name' => 't_hosts.nom',\n 'owner_name' => 't_owners.nom'\n );\n\n $resultat = $this->_filtre($table,$this->liste_filterable_columns(),$aliases,$limit,$offset,$filters,$ordercol,$ordering);\n $this->db->flush_cache();\n\n //add checkbox into data\n for($i=0; $i<count($resultat['data']); $i++){\n $resultat['data'][$i]->checkbox = '<input type=\"checkbox\" name=\"ids[]\" value=\"'.$resultat['data'][$i]->ip_id.'\">';\n } \n\n return $resultat;\n }", "title": "" }, { "docid": "820a610db59852fc5a185b8eaf086e23", "score": "0.48451123", "text": "function VPN_get_IP(){\n global $settings;\n $cmdret = array();\n\n exec($settings['CMD_GREP'].' \"link remote: \\[AF_INET]\" /usr/local/pia/cache/session.log | '.$settings['CMD_GAWK'].' -F\"]\" \\'{print $2}\\' | '.$settings['CMD_GAWK'].' -F\":\" \\'{print $1}\\'', $cmdret);\n if(array_key_exists(0, $cmdret) === true && $cmdret[0] != '' ){\n return $cmdret[0];\n }\n\n if( $settings['OS_TYPE'] === 'Linux' ){\n exec($settings['CMD_IP'].' addr show '.$settings['IF_EXT'].' | '.$settings['CMD_GREP'].' -w \"inet\" | '.$settings['CMD_GAWK'].' -F\" \" \\'{print $2}\\' | '.$settings['CMD_CUT'].' -d/ -f1', $cmdret);\n }else{\n exec($settings['CMD_IP'].' '.$settings['IF_TUN'].' | '.$settings['CMD_GREP'].' -w \"inet\" | '.$settings['CMD_GAWK'].' -F\" \" \\'{print $2}\\' | '.$settings['CMD_CUT'].' -d/ -f1', $cmdret);\n }\n if(array_key_exists(0, $cmdret) === true && $cmdret[0] != '' ){\n return $cmdret[0];\n }\n\n return FALSE;\n}", "title": "" }, { "docid": "271bf81fdb05b087e7d0f98061fc048a", "score": "0.48393634", "text": "public abstract function getIp();", "title": "" } ]
0ec2d59e3131faf889ef99242537110b
get the category title by post id
[ { "docid": "46a55ed1bcbcceab844eb45b09db2676", "score": "0.5898614", "text": "public function get_category($id){\n // get the categories from the database\n $query = $this->db->get_where('categories', array('id' => $id));\n return $query->row();\n }", "title": "" } ]
[ { "docid": "9db5499be7fd8f6e1d8d673c995c5f54", "score": "0.71260357", "text": "static function post_name( $id ){\r\n\r\n return get_the_title( $id );\r\n\r\n }", "title": "" }, { "docid": "6e8966d04692e8612bdf71012f3249cf", "score": "0.69546956", "text": "static function cat_name( $id ){\r\n\r\n $cat = get_term( $id, 'category' );\r\n\r\n return $cat->name;\r\n }", "title": "" }, { "docid": "5667480969e4c6784e9abb6ad9ea7730", "score": "0.6939311", "text": "function getPostCategorie($post_id){\n\t\t\t$post_categories = wp_get_post_categories( $post_id );\n\t\t\t$cats = array();\n\t\t\t\t\n\t\t\tif($post_categories){\n\t\t\t\tforeach($post_categories as $c){\n\t\t\t\t\t$cat = get_category( $c );\n\t\t\t\t\t\n\t\t\t\t\treturn $cat->name;\n\t\t\t\t}\t\n\t\t\t}\n\t\t\t\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "751c4a6039a1b9f3dc7464f76aea7913", "score": "0.67606974", "text": "static function cat_by_slug_name( $id ){\r\n\r\n $cat = get_term_by( 'slug', $id, 'category' );\r\n\r\n return $cat->name;\r\n }", "title": "" }, { "docid": "9b5ab4a4b9af0f83527c06efc88b0816", "score": "0.66594523", "text": "function get_category_name($id)\n {\n \t$ci = & get_instance();\n \treturn $ci->db->get_where('xx_categories', array('id' => $id))->row_array()['name'];\n }", "title": "" }, { "docid": "d153e8990b266c2fd04c00fd0e699be5", "score": "0.6604034", "text": "public function getTitle($category_id)\n\t{\n\t\t$data = $this->getOneById($category_id);\n\n\t\tif(!$data) return FALSE;\n\t\t\n\t\t//if multilang array\n\t\tif(is_array($data['category'])) \n\t\t{\n\t\t $lang_code = strtoupper($this->CI->_getInterfaceLang(TRUE));\n\t\t return $data['category'][$lang_code];\n\t\t}\n\t\t\n\t\treturn $data['category'];\n\t}", "title": "" }, { "docid": "1349a7665b9e6a6ee2c56116527728f4", "score": "0.6579316", "text": "function getCategory( $id )\r\n\t\t{\r\n\t\t\techo $this->theCategory( $id );\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "cff7b745dc1d831bdd5f1fd9c84f7f58", "score": "0.6548989", "text": "function relevanssi_get_the_title($post_id) {\n\t$post = relevanssi_get_post($post_id);\n\tif (empty($post->post_highlighted_title)) $post->post_highlighted_title = $post->post_title;\n\treturn $post->post_highlighted_title;\n}", "title": "" }, { "docid": "86786a4b04f8822999bad6dab537537f", "score": "0.65393764", "text": "public function getCategoryTitle($slug)\n {\n $category = Category::where('slug', '=', $slug)->first();\n return $category->category;\n }", "title": "" }, { "docid": "dd68f7d8658127a8efad879fb71b95df", "score": "0.650702", "text": "public function get_category_name_by_id($id)\n {\n $this->db->select('category.name AS category');\n $this->db->where(array('id' => $id));\n $q = $this->db->get('category');\n return $q->result_array()[0];\n }", "title": "" }, { "docid": "b2fbcf57feec8cd85fcb6ced9a21a61c", "score": "0.6491411", "text": "function get_cat_name($cat_id) {\n\tglobal $wpdb;\n\n\t$cat_id -= 0; \t// force numeric\n\t$name = $wpdb->get_var(\"SELECT cat_name FROM $wpdb->categories WHERE cat_ID=$cat_id\");\n\n\treturn $name;\n}", "title": "" }, { "docid": "c9736ce165474da842610cebb8740fda", "score": "0.64870685", "text": "public function get_title(): string {\n\t\treturn get_the_title( $this->post );\n\t}", "title": "" }, { "docid": "35ad2229869d4dbac6e129af21b6d99a", "score": "0.64260405", "text": "public static function getCategory($category_id){\n $data = DB::table(\"categories\")->where('id',$category_id)->select(\"name\")->first();\n return count((array)$data) > 0 ? $data->name : \"\";\n }", "title": "" }, { "docid": "a548b85976513dca6371efa2341532b2", "score": "0.6396464", "text": "function relate_post_category_id($post_categories_id){\r\nglobal $connection;\r\n$query = \"SELECT * FROM categories WHERE cat_id = {$post_category_id} \";\r\n $result_categories_id = mysqli_query($connection, $query);\r\n\r\n while ($row = mysqli_fetch_assoc($result_categories_id)) {\r\n $cat_id = $row['cat_id'];\r\n $cat_title = $row['cat_title'];\r\n \r\n echo \"<td>$cat_title </td>\" ;\r\n }\r\n}", "title": "" }, { "docid": "14015a83add26777bdb0b47181472434", "score": "0.6371807", "text": "function get_the_slug($id) {\n $post_data = get_post($id, ARRAY_A);\n $slug = $post_data['post_name'];\n return $slug; \n}", "title": "" }, { "docid": "b9b5893788bd9973f6bc31a13eaf4aa7", "score": "0.63596505", "text": "function get_category_slug($id)\n {\n $ci = & get_instance();\n return $ci->db->get_where('xx_categories', array('id' => $id))->row_array()['slug'];\n }", "title": "" }, { "docid": "c591fdc373705cfefc2c51954f0fc669", "score": "0.6352507", "text": "function twc_get_category( $post_id ) {\n\t$terms = wp_get_post_terms( $post_id, PRODUCT_CATEGORY );\n\tif ( count( $terms ) > 0 ) {\n\t\tforeach ( $terms as $term ) {\n\t\t\tif ( $term->parent == 0 ) {\n\t\t\t\treturn $term;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn '';\n}", "title": "" }, { "docid": "8a1ce62bfb5e6124eece2b18f00af051", "score": "0.63355935", "text": "function get_post_title($postid) {\n\n if(!$postid) {\n return '';\n }\n\n $conn = db_connect();\n\n //get all header information from 'header'\n $query = \"select title from header where postid = '\".$postid.\"'\";\n $result = $conn->query($query);\n if($result->num_rows!=1) {\n return '';\n }\n $this_row = $result->fetch_array();\n return $this_row[0];\n\n}", "title": "" }, { "docid": "1f2fe9eec1f248cf042f9f78834ddda0", "score": "0.6333789", "text": "public function get_bookmark_title($post_id)\n {\n $this->db->where('post_id', $post_id);\n return $this->db->get('posts')->row('title');\n }", "title": "" }, { "docid": "e45fc009ec492e2b78594042581a2cd5", "score": "0.6259003", "text": "public function filter_title( $post_title, $post ) {\n\t\treturn $post->post_title;\n\t}", "title": "" }, { "docid": "00b3f02c9bbc2118998c0bf09ab16cc2", "score": "0.62575716", "text": "private function get_title( stdClass $post_object ) {\n\n $translate = WPP_translate::get_instance();\n $trid = $translate->get_object_id( $post_object->id, get_post_type( $post_object->id ) );\n\n if ( $post_object->id != $trid ) {\n $title = get_the_title( $trid );\n }\n else {\n $title = $post_object->title;\n }\n\n return apply_filters( 'the_title', $title, $post_object->id );\n\n }", "title": "" }, { "docid": "1d290bb58eacb4066ca6a119ce6008b5", "score": "0.6240089", "text": "function get_item_post_category($id){\n $CI = get_instance();\n $CI->load->model('frontend/frontend_model');\n $item = $CI->frontend_model->getPostCategory(['post_category_id' => $id]);\n if( ! $item)\n return base_url();\n\n $item->row()->content = $item->row()->post_category_text;\n return $item->row();\n}", "title": "" }, { "docid": "9c9bdd89cb46d19287fc87177c2cb2d6", "score": "0.6228367", "text": "function TEMPLATE_get_the_blog_title()\n{\n $blog_id = get_option('page_for_posts');\n\n return get_the_title($blog_id);\n}", "title": "" }, { "docid": "316f8c3fa42cb8b12d64a8a979359f87", "score": "0.6225454", "text": "public function findWithCategory($id) {\n return $this->query(\"\n SELECT post.id, post.titre, post.contenu, category.titre as categorie\n from post\n left join category\n on categorie_id = category.id\n Where post.id = ?\n \", [$id], true);\n }", "title": "" }, { "docid": "97978d94072af0925c2b3de45703b2dc", "score": "0.62207264", "text": "public function smartcrawl_page_title( $postid ) {\n\t\t$post = get_post( $postid );\n\t\t$resolver = Smartcrawl_Endpoint_Resolver::resolve();\n\n\t\t$resolver->simulate_post( $post );\n\t\t$title = Smartcrawl_Meta_Value_Helper::get()->get_title();\n\t\t$resolver->stop_simulation();\n\n\t\treturn $title;\n\t}", "title": "" }, { "docid": "0da32c75e022d476066e812c5416046d", "score": "0.621113", "text": "function get_the_title() {\n\n // Get the title\n md_get_single_content_meta('content_title');\n \n }", "title": "" }, { "docid": "c44e73b5906383bd3c31e10c9e384096", "score": "0.62033355", "text": "function TEMPLATE_get_blog_title()\n{\n $blog_id = get_option('page_for_posts');\n\n return get_the_title($blog_id);\n}", "title": "" }, { "docid": "9a7aa3f36a8d9e1dc17e5ce4c37f860b", "score": "0.6197881", "text": "public function getTitle($id) {\n\n $sql = \" SELECT TITLE \" .\n \" FROM property \" .\n \" WHERE ID = :id\";\n\n $query = $this->db->prepare($sql);\n $parameters = array(':id' => $id);\n $query->execute($parameters);\n\n $result = $query->fetchAll(PDO::FETCH_ASSOC);\n\n return $result[0]['TITLE'];\n }", "title": "" }, { "docid": "24cdae2bfb92befddb17950e0351cc16", "score": "0.6187388", "text": "function wpg_glossary_term_title( $post_id='', $title='' ) {\n\tglobal $post;\n\t\n\t$custom_post_title = esc_attr( get_post_meta( $post_id, 'custom_post_title', true ) );\n\tif( $custom_post_title != '' ) {\n\t\t$title = $custom_post_title;\n\t}\n\t\n\treturn $title;\n}", "title": "" }, { "docid": "ce38de6929b6e89e8208483485d55ebb", "score": "0.618408", "text": "final public function title(): string\n {\n if ($this->title === null) {\n $this->title = $this->id ? ($this->callInSiteContext('get_the_title', $this->id) ?: '') : '';\n }\n\n return $this->title;\n }", "title": "" }, { "docid": "47ee4c13f87cbd2b60672d17f05276b8", "score": "0.61802596", "text": "function my_title_rss($title) {\n if(get_query_var('cat') == \"\") {\n $cats = get_the_category(); \n $title = $cats[0]->name .\": \". $title;\n }\n return $title;\n}", "title": "" }, { "docid": "deff03a825708bf73b176b02adf3fa00", "score": "0.61785066", "text": "function wpt_post_slug( $post_id = NULL )\n{\n $post = get_post($post_id);\n\n return $post ? $post->post_name : FALSE;\n}", "title": "" }, { "docid": "2f5e12d95b5e22de17e8642834a86cc4", "score": "0.61597407", "text": "public function getCategoryName($category_id){\n\t\t\t//lay bien ket noi\n\t\t\t$conn = Connection::getInstance();\n\t\t\t//thuc hien truy van\n\t\t\t$query = $conn->query(\"select name from categories where id = $category_id\");\n\t\t\t//lay mot ban ghi\n\t\t\treturn $query->fetch();\n\t\t}", "title": "" }, { "docid": "f638ec1ce658baf4e971c48ae3cfe958", "score": "0.6145528", "text": "function get_title($id)\n\t{\n \t\t$this->db->where('id', $id);\n \t\t$this->db->select('title');\n \t\t$query = $this->db->get('pages');\n\t\t\n\t\tif ($query->num_rows() > 0)\n\t\t{\n\t\t $row = $query->row(); \n\t\t\treturn $row->title;\n\t\t}else\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "57c8e3cf5fc6736621cb9f2c491bf1ff", "score": "0.61432946", "text": "function get_category_name_by_id($cat_id) {\r\n\t\t$this->db->where('id' , $cat_id);\r\n\t\t$query = $this->db->get('category');\r\n\t\tif($query -> num_rows() > 0)\r\n\t\t\treturn $query->row()->name;\r\n\t\treturn FALSE;\r\n\t}", "title": "" }, { "docid": "489d5421a63063f2aed1b7efc66bcf9c", "score": "0.6139306", "text": "function get_category_name($categories_id) {\r\n$category_query = mysql_query(\"SELECT name FROM categories WHERE categories_id = '\".$categories_id.\"';\");\r\n$category_result = mysql_fetch_array($category_query);\r\n\r\nreturn $category_result['name'];\r\n}", "title": "" }, { "docid": "f14d9da4c82468922993215116932ce5", "score": "0.6129985", "text": "public function lb_entry_content($title, $id = 0){\n\t\t$post = get_post($id);\n\t\tif ($id != 0 && self::POST_TYPE == $post->post_type)\n\t\t{\n\t\t\t$title = filter_var($post->post_content, FILTER_SANITIZE_STRING);\n\t\t}\n\t\treturn $title;\n\t}", "title": "" }, { "docid": "a9af08150830e18698528291d74441d4", "score": "0.6123797", "text": "public function getCategoryNameAttribute()\n {\n if (isset($this->category) and $this->category) {\n return $this->category->title;\n }\n }", "title": "" }, { "docid": "ecc47cc8ab19c5723909141d69f28939", "score": "0.6110383", "text": "public function getTheTitle()\n {\n return apply_filters('the_title', $this->get('post_title'));\n }", "title": "" }, { "docid": "0d49b169c1fe61fc7353c6dbe391da69", "score": "0.6094849", "text": "function wpg_glossary_term_title_filter( $title, $post_id='' ) {\n\t\n\tif( ! is_admin () ) {\n\t\t$post = get_post( $post_id );\n\t\t\n\t\tif( get_post_type( $post ) == 'glossary' ) {\n\t\t\t$title = wpg_glossary_term_title( $post_id, $title );\n\t\t}\n\t}\n\t\n\treturn $title;\n}", "title": "" }, { "docid": "8017c872fa2eb5776dabeb8498eb92b0", "score": "0.6092142", "text": "function tsd_json_plugin_get_category_info( $post ) {\n $primary_category_id = get_post_meta( $post->ID, '_yoast_wpseo_primary_category', true );\n $primary_category = null;\n if ( empty( $primary_category_id ) ) {\n $main_categories = [ 'featured', 'NEWS', 'SPORTS', 'opinions', 'thegrind', 'arts-life' ];\n foreach ( $main_categories as $main_category ) {\n if ( in_category( $main_category, $post ) ) {\n $primary_category = get_category_by_slug( $main_category );\n break;\n }\n }\n if ( is_null( $primary_category ) ) {\n // If the post is not in any `$main_categories`, simply get the first post category.\n $post_categories = get_the_category( $post->ID );\n if ( count( $post_categories ) > 0 ) {\n $primary_category = $post_categories[0];\n }\n }\n } else {\n $primary_category = get_category( $primary_category_id );\n }\n\n if ( ! is_null( $primary_category ) ) {\n return tsd_json_plugin_get_category( $primary_category );\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "87c9f8904331936d0b6ab3b2b19fe7d4", "score": "0.60909534", "text": "function TEMPLATE_the_blog_title()\n{\n $blog_id = get_option('page_for_posts');\n\n echo get_the_title($blog_id);\n}", "title": "" }, { "docid": "ea974e90e01437d564b1c19be0fd056f", "score": "0.60861117", "text": "function lr_category_link($post_id) {\n\n \t$categories = get_the_category($post_id);\n\techo get_category_link($categories[LAST]->term_id);\n}", "title": "" }, { "docid": "363ba2e60234a3f342f951ac5a367efa", "score": "0.6068976", "text": "public function getCategory($id){\n $sentence = $this->db->prepare(\"SELECT * FROM categorias WHERE categorias.id_categoria=?\"); \n $sentence->execute([$id]); \n $category = $sentence->fetch(PDO::FETCH_OBJ);\n return($category);\n }", "title": "" }, { "docid": "ea268bc2e758ab8418dd419f13a20eed", "score": "0.6067805", "text": "function TEMPLATE_blog_title()\n{\n $blog_id = get_option('page_for_posts');\n\n echo get_the_title($blog_id);\n}", "title": "" }, { "docid": "188af3c35f630464ab3d980711aa7a5a", "score": "0.60598725", "text": "function get_article_category_name_by_id($article_category_id){\n $sql_article_category = \"SELECT article_category_name FROM article_category_tbl WHERE article_category_id='\".$article_category_id.\"'\";\n $result = mysql_query($sql_article_category);\n \n if(mysql_num_rows($result)>0){\n $rows = mysql_fetch_array($result);\n return $rows['article_category_name']; \n }\n}", "title": "" }, { "docid": "c1223f40d7307338ce3c68ae294bb08a", "score": "0.60582143", "text": "public static function getTitle($id){\n $page=Page::find()->where(['slug'=>$id])->one();\n if($page){\n return $page->getPageTitle();\n }\n return null;\n }", "title": "" }, { "docid": "caf63ef859019528ec14992f81e660f6", "score": "0.6058009", "text": "static function tag_by_slug_name( $id ){\r\n\r\n $cat = get_term_by( 'slug', $id, 'post_tag' );\r\n\r\n return $cat->name;\r\n }", "title": "" }, { "docid": "9b483fe61d8562b84b340e8e1a2455e2", "score": "0.60503316", "text": "function post_taxonomy($postid) {\n\t$terms = get_the_terms( $postid, 'articlecat' );\n\t\tif ( !empty( $terms ) ){\n\t\t\t\t// get the first term\n\t\t\t\t$term = array_shift( $terms );\n\t\t\t\techo $term->name;\n\t\t}\n}", "title": "" }, { "docid": "63ad7be2311392fcfc2bb9698134c8bb", "score": "0.60475683", "text": "function get_product_category() {\n global $post;\n $category = get_the_category($post->ID); \n $category_name = $category[0]->cat_name;\n\n return $category_name;\n}", "title": "" }, { "docid": "0c230851dd14f08fcddd1662fb291cf8", "score": "0.60440797", "text": "public function get_main_categoryname($category_id=\"\")\n\t{\n\t\t$result = $this->db->from(\"category\")->where(array(\"category_status\" => 1,\"category_id\"=>$category_id))->orderby(\"category_name\",\"ASC\")->get();\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "0c230851dd14f08fcddd1662fb291cf8", "score": "0.60440797", "text": "public function get_main_categoryname($category_id=\"\")\n\t{\n\t\t$result = $this->db->from(\"category\")->where(array(\"category_status\" => 1,\"category_id\"=>$category_id))->orderby(\"category_name\",\"ASC\")->get();\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "70fe2e17c6511c2562c219e66301b8de", "score": "0.60310066", "text": "function get_cat_slug($ID) {\n\t$yourcat = get_category($ID);\n\treturn $yourcat->slug;\n}", "title": "" }, { "docid": "689de501972a00e1a0db4b32370c461e", "score": "0.602843", "text": "function GetCategoryName ($id)\r\n{\r\n\tglobal $db;\r\n\t$query = \"SELECT cat_name FROM cabinete_categories\r\n\t\t\t\t\t\t\tWHERE id_cat = '\".$id.\"'\";\r\n\t$db->query($query);\r\n\t$db->next_record();\r\n\treturn $db->f('cat_name');\r\n}", "title": "" }, { "docid": "201ad5c636f4c8fc129822edd9bfe6a4", "score": "0.60242736", "text": "function wptags_title_markup( $title, $id ) {\n\n if ( is_singular() && in_the_loop() ) {\n\n $title = '<h1>' . $title . '</h1>';\n\n } else if ( !is_singular() && in_the_loop() ) {\n\n $title = '<h2><a href=\"' . get_permalink( $id ) . '\">' . $title . '</a></h2>';\n\n }\n\n return $title;\n}", "title": "" }, { "docid": "cc1ca53fe6907b69148b5bc1d8743cfa", "score": "0.6006801", "text": "function get_the_sub_title( string $meta_key, $post = 0 ): string {\n\tif ( WP_DEBUG ) {\n\t\ttrigger_error( 'Function get_the_sub_title is deprecated!', E_USER_DEPRECATED ); // phpcs:ignore\n\t}\n\t$post = get_post( $post );\n\tif ( ! $post ) {\n\t\treturn '';\n\t}\n\t$id = $post->ID ?? 0;\n\t$title = get_post_meta( $id, $meta_key, true );\n\n\t$ls = preg_split( '/<\\s*br\\s*\\/?>/iu', $title );\n\treturn implode( '<br>', array_map( 'wp_kses_post', $ls ) );\n}", "title": "" }, { "docid": "e00a34d7afbb0a2341eeb4a31cd6a3df", "score": "0.60022384", "text": "function am_get_post_slug($post_id) {\n\t$post_slug = get_post_field('post_name', $post_id);\n\n\treturn $post_slug;\n}", "title": "" }, { "docid": "0dbe54e1852dd2cebd0149b6a452c633", "score": "0.5992294", "text": "public function category($id)\r\n\t{\r\n\t\tglobal $connections;\r\n\t\t\r\n\t\treturn $connections->term->getTerm($id, 'category');\r\n\t}", "title": "" }, { "docid": "57cbf5bda0d8ee336b0460b245c14a2c", "score": "0.5980417", "text": "protected function title()\n {\n return __blog('post');\n }", "title": "" }, { "docid": "d339aee32b116d90a4b999a333d0a7da", "score": "0.59782195", "text": "private function getItemTitle($id) {\n if (isset($this->remoteItems[$id])) {\n return $this->remoteItems[$id]->title;\n } else {\n return \"{root}\";\n }\n }", "title": "" }, { "docid": "8cf6b0e1da68bbefcb8dc630ea1f7d89", "score": "0.5974362", "text": "static function tag_name( $id ){\r\n\r\n $cat = get_term( $id, 'post_tag' );\r\n\r\n return $cat->name;\r\n }", "title": "" }, { "docid": "be2a94e5aa06e480e81dcbae4d974506", "score": "0.59700924", "text": "public static function get_post_title() {\n\t\tglobal $post;\n\t\t$title = self::get_post_meta($post->ID, \"meta-title\", true);\n\t\t\n\t\tif (!$title) {\n\t\t\t$title = self::apply_filters(\"title\", self::$default_title, self::$default_separator);\n\t\t}\n\n\t\treturn $title;\n\t}", "title": "" }, { "docid": "b4af6c7942ecb5ba94d8a04405e73ff0", "score": "0.59595895", "text": "public function getPostTitle() {\n\t\treturn $this->post_title;\n\t}", "title": "" }, { "docid": "408eeb2f47b21ac5c3970b0a6ad517c3", "score": "0.5953183", "text": "function getObjectTitle( $id )\n\t{\n\t\t$app = JCommentsFactory::getApplication();\n\t\treturn $app->getCfg('sitename');\n\t}", "title": "" }, { "docid": "18531a2f420d981890c9b3ba257161fd", "score": "0.5937824", "text": "function cnc_the_keyword($post_id = null){\n\t\techo cnc_get_the_keyword($post_id);\n\t}", "title": "" }, { "docid": "2c1da4710bdba389c621526ff3d37f1e", "score": "0.5932542", "text": "public function get_title() {\n\t\t$str = \"\";\n\t\tif ($this->url === Url::Post || $this->url === Url::Page) {\n\t\t\t$str .= $this->posts[0]->title . Config::TitleSeparator;\n\t\t}\n\t\t$str .= Config::Title;\n\n\t\treturn $str;\n\t}", "title": "" }, { "docid": "8cefe07fab52b7ef41da1a3619999ac8", "score": "0.593067", "text": "public function getPostTitle(): string {\n\t\treturn ($this->postTitle);\n\t}", "title": "" }, { "docid": "b6c60fb0d2d9c7be02d53726f67940f5", "score": "0.5919389", "text": "function filter_course_page_title( $title, $id = NULL ) {\n if ( is_post_type_archive( 'course' ) ) {\n $title = 'Courses';\n }\n\n return $title;\n}", "title": "" }, { "docid": "4b9f3048d4a3882bb23bd5ffb766bad5", "score": "0.5918792", "text": "function get_category_id($product_id,$conn) {\n\t\t$sql = 'SELECT wt.* FROM wp_posts p INNER JOIN wp_term_relationships r ON r.object_id=p.ID INNER JOIN wp_term_taxonomy t ON t.term_taxonomy_id = r.term_taxonomy_id INNER JOIN wp_terms wt on wt.term_id = t.term_id WHERE p.ID='.$product_id.' AND t.taxonomy=\"product_cat\" LIMIT 1;';\n\n\t\tif($result = mysqli_query($conn, $sql)){\n\t\t\tif(mysqli_num_rows($result) > 0){\n\t\t\twhile($row = mysqli_fetch_array($result)){\n\t\t\t\t$string = $row[\"term_id\"];\n\t\t\t\treturn $string;\n\t\t\t}\n\t\t\t// Free result set\n\t\t\tmysqli_free_result($result);\n\t\t\t} else{\n\t\t\techo \"No records matching your query were found.\".PHP_EOL;\n\t\t\t}\n\t\t} else{\n\t\t\techo \"ERROR: Could not able to execute $sql. \" . mysqli_error($conn).PHP_EOL;\n\t\t}\n\t}", "title": "" }, { "docid": "165658247b047fe39b00a039fece4ba8", "score": "0.59149504", "text": "function bm_categoryDetails ($id) {\n\t\n\tbm_getCategories ();\n\t\n\tglobal $bmCategoryList;\n\n\tforeach ($bmCategoryList as $cat) {\n\t\tif ($cat->term_id == $id) {\n\t\t\treturn $cat;\n\t\t}\n\t}\n\t\n}", "title": "" }, { "docid": "66c536dd2fabeb17fee1b0b805d4a5b3", "score": "0.5908555", "text": "public function relatedPost($id){\n $rel_que = \"SELECT tbl_post.*, tbl_category.catName FROM tbl_post INNER JOIN tbl_category ON tbl_post.catId = tbl_category.catId WHERE tbl_post.catId = '$id' ORDER BY tbl_post.postId DESC LIMIT 3\";\n $result = $this->db->select($rel_que);\n\n return $result;\n }", "title": "" }, { "docid": "048c6271225b43cc89118cf22dce3cc9", "score": "0.5905349", "text": "function crypton_blog_woocommerce_shop_loop_subcategory_title($cat) {\n\n $cat->name = sprintf('<a href=\"%s\">%s</a>', esc_url(get_term_link($cat->slug, 'product_cat')), $cat->name);\n ?>\n <h2 class=\"woocommerce-loop-category__title\">\n <?php\n echo $cat->name;\n\n if ( $cat->count > 0 ) {\n echo apply_filters( 'woocommerce_subcategory_count_html', ' <mark class=\"count\">(' . esc_html( $cat->count ) . ')</mark>', $cat ); // WPCS: XSS ok.\n }\n ?>\n </h2><?php\n //if (crypton_blog_storage_get('in_product_item') && is_object($cat)) {\n //\t$cat->name = sprintf('<a href=\"%s\">%s</a>', esc_url(get_term_link($cat->slug, 'product_cat')), $cat->name);\n //}\n //return $cat;\n }", "title": "" }, { "docid": "37671bd73babf94e4544fc9f6c546857", "score": "0.59024936", "text": "function theCategory( $id )\r\n\t\t{\r\n\t\t\t$STH = $this->DBH->query('SELECT category from shdw_products WHERE id ='. $id ); \r\n\t\t\t# Get results by row\r\n\t\t\twhile( $row = $STH->fetch() )\r\n\t\t\t\t$this->category = $row['category'];\t\r\n\t\t\t\r\n\t\t\treturn $this->category;\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "22cbf101e8259d6c84ba04748d542314", "score": "0.58673304", "text": "function cf7_style_the_slug() {\n\tglobal $post; \n\t$post_data = get_post($post->ID, ARRAY_A);\n\t$slug = $post_data['post_name'];\n\treturn $slug; \n}", "title": "" }, { "docid": "04f635a698934d9466ac10799db3233b", "score": "0.5866813", "text": "public function getCategory($id) {\n\t\treturn $this->find($id)->current();\n\t}", "title": "" }, { "docid": "916bb31261053be3ecb521ad9cb5dd0c", "score": "0.58658534", "text": "public function getInfo( $id ){\r\n\t\t$sql = ' SELECT m.*, md.title,md.description FROM ' . DB_PREFIX . 'pavblog_category m LEFT JOIN '\r\n\t\t\t\t\t\t\t.DB_PREFIX.'pavblog_category_description md ON m.category_id=md.category_id AND language_id='.(int)$this->config->get('config_language_id') ;\r\n\t\r\n\t\t$sql .= ' WHERE m.category_id='.(int)$id;\t\t\t\t\t\t\r\n\t\r\n\t\t$query = $this->db->query( $sql );\r\n\t\treturn $query->row;\r\n\t}", "title": "" }, { "docid": "13b553986a35c98b4a2a245fa0006af4", "score": "0.586425", "text": "function cnc_get_the_keyword($post_id = null){\n\t\tif(!$post_id){\n\t\t\tglobal $post;\n\t\t\t$post_id = $post->ID;\n\t\t}\n\t\t$KwDb = JfKeywordManagement::get_db_instance();\n\t\t\t\t\n\t\t$relation = $KwDb->get_relationship_by('post_id', $post_id);\n\t\t$keyword = $KwDb->get_keyword($relation->keyword_id);\n\t\tif($keyword){\n\t\t\treturn $keyword->keyword;\n\t\t}\n\t\telse{\n\t\t\treturn '';\n\t\t}\n\t}", "title": "" }, { "docid": "6a98ccdb776172823b459b91a0033aa9", "score": "0.58632797", "text": "public function get_category_name($category_id){\n //preparing query\n $this->db->where('category_id',$category_id);\n $query=$this->db->get('category');\n if($query==true){\n\n return $query->row()->category_name;\n\n }else{\n return false;\n }\n\n\n }", "title": "" }, { "docid": "8508bedcbd03ec666327dcaa4d857b5f", "score": "0.58524615", "text": "public function getContestTag($tag_id){\n\n $tag_name=Category::where('category_id', '=', $tag_id)\n ->select('category_name')\n ->get()->first();\n\n return $tag_name['category_name'];\n\n }", "title": "" }, { "docid": "49e29ed3748ab0c1c36bbb61463909e3", "score": "0.58467394", "text": "public function get_title();", "title": "" }, { "docid": "49e29ed3748ab0c1c36bbb61463909e3", "score": "0.58467394", "text": "public function get_title();", "title": "" }, { "docid": "49e29ed3748ab0c1c36bbb61463909e3", "score": "0.58467394", "text": "public function get_title();", "title": "" }, { "docid": "49e29ed3748ab0c1c36bbb61463909e3", "score": "0.58467394", "text": "public function get_title();", "title": "" }, { "docid": "fbac7bd9ddcc612d39e21a9cdc821eef", "score": "0.58439714", "text": "public function getCategory() {\r\n if (!isset($this->_category)) {\r\n $this->_category = $this->_title;\r\n }\r\n return $this->_category;\r\n }", "title": "" }, { "docid": "78d09695d023f37ef5f730b1dc6cb8bd", "score": "0.5831422", "text": "function parent_title()\n {\n $post = get_post(); // If $post is already available, skip.\n $terms = get_the_terms($post->ID, 'category');\n foreach ($terms as $term) :\n if ($term->parent === 0) :\n echo $term->name;\n endif;\n endforeach;\n }", "title": "" }, { "docid": "3169efa28eae85fe20e5855b3d18212f", "score": "0.5826007", "text": "function lsx_post_meta_category() {\n\t\t$post_categories = wp_get_post_categories( get_the_ID() );\n\t\t$cats = array();\n\n\t\tforeach ( $post_categories as $c ) {\n\t\t\t$cat = get_category( $c );\n\t\t\t/* Translators: %s: category name */\n\t\t\t$cats[] = '<a href=\"' . esc_url( get_category_link( $cat->term_id ) ) . '\" title=\"' . sprintf( esc_html__( 'View all posts in %s' , 'lsx' ), $cat->name ) . '\">' . $cat->name . '</a>';\n\t\t}\n\n\t\tif ( ! empty( $cats ) ) {\n\t\t\t?>\n\t\t\t<span class=\"post-meta-categories\"><span><?php esc_html_e( 'Posted in: ', 'lsx' ); ?></span> <?php echo wp_kses_post( implode( ', ', $cats ) ); ?></span>\n\t\t\t<?php\n\t\t}\n\t}", "title": "" }, { "docid": "eb01fadb71c8f2b09c5f4e73f43e238e", "score": "0.5822294", "text": "function autoparts_trx_addons_get_blog_title($title='') {\n\t\treturn apply_filters('trx_addons_filter_get_blog_title', $title);\n\t}", "title": "" }, { "docid": "8f2936da47539c9fb3dec8fff1d213db", "score": "0.5812343", "text": "public function getSubForumTitles($cat_id)\n\t\t\t{\n\t\t\t\t$sql = 'SELECT c.cat_id, c.cat_name, c.seo_title, c.has_child, c.description, c.total_discussions, c.total_boards, c.total_solutions, c.last_post_user_id'.\n\t\t\t\t\t\t', DATE_FORMAT(last_post_date, \\''.$this->CFG['mysql_format']['date_time_meridian'].'\\') AS last_post_date, DATE_FORMAT(last_post_date, \\''.$this->CFG['mysql_format']['new_date'].'\\') AS last_post_date_only'.\n\t\t\t\t\t\t', DATE_FORMAT(last_post_date, \\'%h:%m %p\\') AS last_post_time_only, lp.'.getUserTableField('name').' AS last_post_user, lp.'.getUserTableField('display_name').' AS last_post_name'.\n\t\t\t\t\t\t' FROM '.$this->CFG['db']['tbl']['category'].' As c LEFT JOIN '.$this->CFG['db']['tbl']['users'].' As lp ON c.last_post_user_id=lp.'.getUserTableField('user_id').\n\t\t\t\t\t\t' WHERE status = \\'Active\\' AND parent_id = '.$this->dbObj->Param($cat_id);\n\n\t\t\t\t$field_values = array();\n\t\t\t\t$field_values[] = $cat_id;\n\t\t\t\t$sql .= ' ORDER BY disporder';\n\t\t\t\t$stmt = $this->dbObj->Prepare($sql);\n\t\t\t\t$rs = $this->dbObj->Execute($stmt, $field_values);\n\t\t\t\tif (!$rs)\n\t\t\t\t trigger_db_error($this->dbObj);\n\n\t\t\t\t$showDiscussionTitles_arr = array();\n\t\t\t\twhile($row = $rs->FetchRow()) {\n\t\t\t\t\t$catqryN = '?cat='.$row['seo_title'];\n\t\t\t\t\t$catqryH = 'dir/'.$row['seo_title'].'/';\n\t\t\t\t\t$row['subforum']['url'] = getUrl('discussions', $catqryN, $catqryH, '', $this->CFG['admin']['index']['home_module']);\n\t\t\t\t\t$row['category_description_manual'] = nl2br(wordWrapManual($row['description'], 15, 100));\n\t\t\t\t\t$row['lastPost']['url'] = getMemberUrl($row['last_post_user_id'], $row['last_post_user']);\n\t\t\t\t\t$row['last_post_name1'] = stripString($row['last_post_name'], 20);\n\t\t\t\t\t$showDiscussionTitles_arr[] = $row;\n\t\t\t\t}\n\t\t\t\treturn $showDiscussionTitles_arr;\n\t\t\t}", "title": "" }, { "docid": "2eabd25c307d414bba9280e4e47ada3c", "score": "0.5810348", "text": "public function getResourcesCategoryName($id){\n\t\t$sql = \"select name from sy_resourcescategory where id=?\";\n\t\t$unit = $this->runRequest($sql, array($id));\n\t\tif ($unit->rowCount() == 1){\n\t\t\t$tmp = $unit->fetch();\n\t\t\treturn $tmp[0]; // get the first line of the result\n\t\t}\n\t\telse\n\t\t\treturn \"\";\n\t}", "title": "" }, { "docid": "435753761fe65dc1008260602607c6f0", "score": "0.58026564", "text": "function blog_cats($id){\n\t$post_id = $id;\n\t$categories = get_the_category($post_id);\n\t$cat_trim = array();\n\t$html = '';\n\n\tforeach ($categories as $key => $value) {\n\t\tif($value->cat_name != 'Blog'){\n\t\t\t$cat_trim[] = $value;\n\t\t}\n\t}\n\tforeach ($cat_trim as $key => $value) {\n\t\t\t$html .= $value->cat_name;\n\t\t\tif(count($cat_trim) > $key + 1){\n\t\t\t\t$html .= \" | \";\n\t\t\t}\n\t}\n\treturn $html;\n}", "title": "" }, { "docid": "1dde0c3301db80a1421e3ecae9bbab37", "score": "0.5795379", "text": "function post_title(){\n\n\t\t$title = get_the_title();\n\t\t$string = '<h1>' . $title . '</h1>';\n\n\t\t\t\n\t\treturn($string);\n}", "title": "" }, { "docid": "d918ad70c47a959446f494677f2c9d25", "score": "0.57927847", "text": "public function getCategoryById($id);", "title": "" }, { "docid": "017eba70a3ecedd16157b4a8f7adfa94", "score": "0.57925147", "text": "function ews_get_post_by_title($title = '')\n{\n\tglobal $wpdb;\n\tif($title == '') return null;\n\t\n\treturn $wpdb->get_results( $wpdb->prepare( \"SELECT * FROM `wps8_posts` WHERE `post_title` LIKE '%s' AND `post_type` = 'post' AND `post_status` = 'publish'\", $title ) );\n}", "title": "" }, { "docid": "dfdfe7db5aec40a488ad52bc5ceead8f", "score": "0.5783544", "text": "public function getName($id)\n {\n if (!isset($this->categories[$id])) {\n // not cached yet, resolve the category\n if (!$this->resolveCategory($id)) {\n return NULL;\n }\n }\n dbg(\"Category \".$id.\" -> \".$this->categories[$id]['name']);\n return $this->categories[$id]['name'];\n }", "title": "" }, { "docid": "4e93cbbe1fa4add94b1a5fe71efbeb0c", "score": "0.57805383", "text": "public static function get_post_title($post = null) {\n return get_the_title($post);\n }", "title": "" }, { "docid": "72833fad34b8a9882aa7d07722f05601", "score": "0.5777382", "text": "public function getCategoryNameById($category_id) {\n\t\t$query = $this->db->query(\"SELECT name FROM \" . DB_PREFIX . \"category_description WHERE category_id = '\" . (int)$category_id . \"'\");\n\t\treturn $query->row;\n\t}", "title": "" }, { "docid": "9444b689aad39cbc0bc3ef1175d1d527", "score": "0.57721716", "text": "public function findWithCategory($id)\n {\n return $this->query(\n \"SELECT blogpost.id, blogpost.title, blogpost.lead_in, blogpost.content, blogpost.archive, blogpost.extern_link, image.tag as tag, image.image_dir,\n blogpost.date_created as date_created, category.title as category, user.username as username , user.id as id_user\n FROM blogpost\n LEFT JOIN user ON blogpost.user_id = user.id\n LEFT JOIN category ON category_id = category.id\n LEFT JOIN image ON blogpost.id = image.blogpost_id\n WHERE blogpost.id = ? AND blogpost.archive IS NULL AND tag='preview'\",\n [$id],\n true\n );\n }", "title": "" }, { "docid": "73c9ad30b849c97377306d4a1220ec0c", "score": "0.5771162", "text": "function set_having_category_name($name)\n \t{\n\t\t$p = $this->cbcategoriestoposts_model->get_by_category_name_url($name);\n\t\t$this->_format_posts($p);\n\t\treturn $p;\n \t}", "title": "" }, { "docid": "c0837fba4742d37f72f4b94368b2d162", "score": "0.5768108", "text": "function get_news_category_id($title,$image)\n\t{\n\t\t$cat_id=$GLOBALS['SITE_DB']->query_value_null_ok('news_categories c LEFT JOIN '.$GLOBALS['SITE_DB']->get_table_prefix().'translate t ON c.nc_title=t.id','c.id',array('text_original'=>$title));\n\t\tif (is_null($cat_id))\n\t\t\t$cat_id=add_news_category($title,'newscats/'.$image,'');\n\t\treturn $cat_id;\n\t}", "title": "" }, { "docid": "54a4629bd3dfc530d9cc7a66ef196d13", "score": "0.5764524", "text": "function csun_search_title($title, $id=false) {\n\tif($id) :\n\t\t$post = get_post($id);\n\t\tif($post->post_type === 'programs') :\n\t\t\t$title = program_name($id, $title);\n\n\t\t\t$option=get_field('option_title', $id);\n\t\t\tif(isset($option) && $option!=='') :\n\t\t\t\t$title = $title.'<span class=\"option-title\">'.$option.' Option</span>';\n\t\t\tendif;\n\t\telseif($post->post_type === 'faculty') :\n\t\t\t$position = \"Faculty: \";\n\t\t\t$terms = get_the_term_list( $id, 'department_shortname', '', ', ');\n\t\t\t\tif( strpos( $terms, 'Emeriti') !== FALSE) :\n\t\t\t\t$position = \"Emeritus \".$position;\n\t\t\tendif;\n\n\t\t\tif( strpos( $terms, 'Administration') !== FALSE) :\n\t\t\t\t$admin = true;\n\t\t\t\t$position = \"Administrator: \";\n\t\t\tendif;\n\n\t\t\tif( strpos( $terms, 'Faculty') !== FALSE && $admin) :\n\t\t\t\t$position = \"Administrator and Faculty: \";\n\t\t\tendif;\n\n\t\t\t$title = '<span class=\"type-title\">'.$position.'</span>'.$title;\n\n\t\telseif($post->post_type === 'departments') :\n\t\t\t$post_categories = wp_get_post_categories($id, array('fields' => 'names'));\n\n\t\t\tif($post_categories[0] !== \"College\") :\n\t\t\t\t$title = '<span class=\"type-title\">'.$post_categories[0].': '.'</span>'.$title;\n\t\t\tendif;\n\t\telseif($post->post_type === 'staract') :\n\t\t\t$year = get_the_terms( $id, 'aca_year');\n\n\t\t\t$title = $title.'<span class=\"option-title\">'.$year[0]->name.' STAR Act Degree Road Map</span>';\n\t\t\telseif($post->post_type === 'transfer_plans') :\n\t\t\t\t$year = get_the_terms( $id, 'aca_year');\n\n\t\t\t\t$title = $title.'<span class=\"option-title\">'.$year[0]->name.' Transfer Degree Road Map</span>';\n\t\telseif($post->post_type === 'plans') :\n\t\t\t$year = get_the_terms( $id, 'aca_year');\n\n\t\t\t$title = $title.'<span class=\"option-title\">'.$year[0]->name.' Degree Road Map</span>';\n\t\telseif($post->post_type === 'policy_categories' || $post->post_type === 'policy_keywords'\n\t\t\t\t|| $post->post_type === 'policy_tags') :\n\t\t\t$title = '<span class=\"type-title\">Policies: </span>'.ucwords($title);\n\t\tendif;\n\tendif;\n\n\treturn $title;\n}", "title": "" } ]
2a95e4d7bd453f965e530ae5c153e95f
Gets as linePermission Participants permission for this Line
[ { "docid": "821e1876c70a63b714eca72bb9f437a3", "score": "0.68758935", "text": "public function getLinePermission()\n {\n return $this->linePermission;\n }", "title": "" } ]
[ { "docid": "bd52bd3a15faa2c00ca859096978cdae", "score": "0.5703403", "text": "public function getPermission();", "title": "" }, { "docid": "8dadf6cc6a46659b03f5c5831b788f66", "score": "0.5627245", "text": "public function setLinePermission(array $linePermission)\n {\n $this->linePermission = $linePermission;\n return $this;\n }", "title": "" }, { "docid": "c61c219001965faed37ad4f86377c7ae", "score": "0.5384992", "text": "public function getParticipants();", "title": "" }, { "docid": "4aa8a7a9d45945b737bd6ac4d845921c", "score": "0.53822345", "text": "public function addToLinePermission(\\Calcinai\\Siri\\Objects\\LinePermissionStructureType $linePermission)\n {\n $this->linePermission[] = $linePermission;\n return $this;\n }", "title": "" }, { "docid": "4929666aec7c85ef781396c92146aded", "score": "0.5381334", "text": "public function getPermissions();", "title": "" }, { "docid": "4929666aec7c85ef781396c92146aded", "score": "0.5381334", "text": "public function getPermissions();", "title": "" }, { "docid": "4929666aec7c85ef781396c92146aded", "score": "0.5381334", "text": "public function getPermissions();", "title": "" }, { "docid": "4929666aec7c85ef781396c92146aded", "score": "0.5381334", "text": "public function getPermissions();", "title": "" }, { "docid": "4929666aec7c85ef781396c92146aded", "score": "0.5381334", "text": "public function getPermissions();", "title": "" }, { "docid": "abd45448e9326d627d668ee7411dd5fc", "score": "0.53772736", "text": "public function getParticipant();", "title": "" }, { "docid": "7dc50713c020b8a95993504a542deeb5", "score": "0.53469366", "text": "public function getCommentPermission();", "title": "" }, { "docid": "ef835ca5f8e85a540e8f647031033109", "score": "0.5345065", "text": "public function get_recipient_line();", "title": "" }, { "docid": "3ed30ce8d75488d19e3fddcafcd05d09", "score": "0.5118044", "text": "public function getUserPermissions();", "title": "" }, { "docid": "55befd9081f35ff59de4fa4f823f2df6", "score": "0.5067322", "text": "public function getPermissions(): array;", "title": "" }, { "docid": "d7381fe43f7d776ba7ac7cd57eff6bca", "score": "0.5064287", "text": "public function getAwpbActivitiesLineItems()\n {\n return $this->hasMany(AwpbActivityLineItem::className(), ['activity_id' => 'id']);\n }", "title": "" }, { "docid": "6e052cd0f5d96440e3fab99fb1b67cef", "score": "0.5044272", "text": "public function permission()\n {\n return $this->hasMany('App\\SYS\\SPermission');\n }", "title": "" }, { "docid": "15a8cbbb359028cdec4ca8e346b43e5a", "score": "0.50428873", "text": "public function getPermission()\n {\n return $this->permission;\n }", "title": "" }, { "docid": "067cf9d62e62891cf1ecbed1fdebfaa8", "score": "0.5042178", "text": "public function getAccountDataModificationPermission();", "title": "" }, { "docid": "76eed49de1831d8a6797b405b1b70025", "score": "0.5037038", "text": "public function getPermission(){\n return $this->permission;\n }", "title": "" }, { "docid": "c14ce2dd068b7794c15dbbc275369b84", "score": "0.50116104", "text": "public function getRelationshipPermissionMap(): array\n {\n return [\n 'attendee' => 'read-users',\n 'recorded' => 'read-users',\n ];\n }", "title": "" }, { "docid": "ccea9f4797b11049851275077c0d1782", "score": "0.498228", "text": "public function getParticipant()\n {\n return $this->participant;\n }", "title": "" }, { "docid": "ccea9f4797b11049851275077c0d1782", "score": "0.498228", "text": "public function getParticipant()\n {\n return $this->participant;\n }", "title": "" }, { "docid": "8d8ed689ce4b7000321444c6202b0f09", "score": "0.49694037", "text": "public static function getPermissions(): array;", "title": "" }, { "docid": "d6e85d8c5efad0cfa7cd437228020c1f", "score": "0.49623755", "text": "public function getPermissions(): Collection;", "title": "" }, { "docid": "a423dc56a47c83c70bd5e3725d7bbfd1", "score": "0.49470413", "text": "public function getPermissions() {\n return @$this->attributes['permissions'];\n }", "title": "" }, { "docid": "71c816b958c1d8bdd3b000089ccbb28a", "score": "0.49367288", "text": "public function definePermissions(): array;", "title": "" }, { "docid": "0d94254b90a41e684cffa134a961b42a", "score": "0.49289373", "text": "public function getPermissions()\n {\n return $this->permissions;\n }", "title": "" }, { "docid": "0d94254b90a41e684cffa134a961b42a", "score": "0.49289373", "text": "public function getPermissions()\n {\n return $this->permissions;\n }", "title": "" }, { "docid": "0ecccaa455446a46b6b963838614dfa6", "score": "0.491989", "text": "public function getRestrictionChat()\n {\n return $this->restrictionChat;\n }", "title": "" }, { "docid": "09970792056a724e0bf179c2352c0638", "score": "0.4886372", "text": "public function getRolePermissions();", "title": "" }, { "docid": "4bdbb0aad3f2670f2c060da7b29aaa76", "score": "0.48860225", "text": "public function permissionrole_permission()\n {\n return $this->hasMany('App\\Models\\Permission', 'id', 'id_permission');\n }", "title": "" }, { "docid": "c1e387bf5dd56a76cbfb13cf790ae1cd", "score": "0.4863608", "text": "public function definePermissions();", "title": "" }, { "docid": "28830374fdc978f7af8363a170d443f4", "score": "0.48514774", "text": "public function permissions()\n {\n return $this->hasMany(config('entrance.permission'));\n }", "title": "" }, { "docid": "15c74d4852435899a888f5002a72bef0", "score": "0.4846187", "text": "public function permissions()\n {\n return $this->hasMany('\\Tinyissue\\Model\\Role\\Permission', 'role_id', 'role_id');\n }", "title": "" }, { "docid": "59f14e325618d7b721c875c1d6ea99b3", "score": "0.48424143", "text": "public function getParticipants()\n {\n return $this->participants;\n }", "title": "" }, { "docid": "59f14e325618d7b721c875c1d6ea99b3", "score": "0.48424143", "text": "public function getParticipants()\n {\n return $this->participants;\n }", "title": "" }, { "docid": "c732333ebd5c7ce57fc7476e5cdf0812", "score": "0.48412627", "text": "public function getPermission(): string\n {\n // TODO: Implement getPermission() method.\n }", "title": "" }, { "docid": "b6dfce3ce43f34be2056862eae006103", "score": "0.48363847", "text": "public function get_permissions() {\n\t\treturn $this->area->get_permissions ( $this->path );\n\t}", "title": "" }, { "docid": "449e6b857f54865ed4977c1e7aafa768", "score": "0.4826609", "text": "public function getAvailablePermissions();", "title": "" }, { "docid": "449e6b857f54865ed4977c1e7aafa768", "score": "0.4826609", "text": "public function getAvailablePermissions();", "title": "" }, { "docid": "8db71a348419b8b89402d70765e1a03d", "score": "0.482194", "text": "public function get_sender_line();", "title": "" }, { "docid": "87ed730a04d6a88c15e5f43b89b939f8", "score": "0.48187158", "text": "public function getVMPermission($thePermissionType, $parentSeriesArray)\n {\n \tif($thePermissionType==\"create\")\n \t{\n \t\treturn true;\n \t}\n \telse\n \t{\n \t\treturn false;\n \t}\n \t\n \t\n }", "title": "" }, { "docid": "79ceb4b3e33d89197e76a25c9d388fbd", "score": "0.48155406", "text": "public function permissions()\n {\n return $this->hasMany('Cuatromedios\\Kusikusi\\Models\\Permission', 'user_id');\n }", "title": "" }, { "docid": "f258cfeaa664f2e2bc3ce21963219173", "score": "0.4812237", "text": "public function get_permissions() {\n\t\treturn $this->permissions;\n }", "title": "" }, { "docid": "03970444eddd5dc91d1d801d4ba32c2f", "score": "0.48061353", "text": "public function getUserPermission() {\n\t\treturn new Google_Drive_UserPermission_output(Temboo_Results::getSubItemByKey($this->base, \"userPermission\"));\n\t}", "title": "" }, { "docid": "744a2babbbaaefb328c1acfce6f452fd", "score": "0.47982672", "text": "public function getPermissions ()\n {\n return $this->permissions;\n }", "title": "" }, { "docid": "a02dd112d032051c78989b9a512182d0", "score": "0.47961456", "text": "public function participants()\n {\n return $this->belongsToMany('App\\Participant', 'program_participant');\n }", "title": "" }, { "docid": "c4da19cfe351ddbcef09076dafa58b5b", "score": "0.47924054", "text": "public function getEvaluatePermissions() {}", "title": "" }, { "docid": "188b6a1aad28e97aea7e555947e936cc", "score": "0.4790772", "text": "public function getPermissions(){ \r\n return $this->role->permissions->calculatedPermissions();\r\n }", "title": "" }, { "docid": "90a2fc6108ceeef9c4beb21b5728ef1a", "score": "0.47896504", "text": "public function permissions()\n {\n return $this->belongsToMany(\n 'LancerHe\\RBAC\\Model\\Permission',\n config('rbac.table.user_permissions'),\n config('rbac.constraint.user_permissions.user_id'),\n config('rbac.constraint.user_permissions.permission_id'));\n }", "title": "" }, { "docid": "9023d42a370db7645f9de90df218ca0e", "score": "0.47878602", "text": "public function permissionable()\n {\n return $this->morphTo();\n }", "title": "" }, { "docid": "6d1f83de605d5f303abea16cbba9b560", "score": "0.47869664", "text": "function getAuthenticatedParticipant();", "title": "" }, { "docid": "6d1f83de605d5f303abea16cbba9b560", "score": "0.47869664", "text": "function getAuthenticatedParticipant();", "title": "" }, { "docid": "80a479fb69cb95cf7832e7f4a8abe0fe", "score": "0.47862583", "text": "public function permissions(){\n\t\treturn $this->permissions;\n\t}", "title": "" }, { "docid": "0e4e7360a65229cef4eedee4a20fe5a7", "score": "0.47859982", "text": "public function participants()\n {\n return $this->hasMany(ChatRoomParticipant::class,'room_id','id');\n }", "title": "" }, { "docid": "351df4c7add53fc92293c655194d632b", "score": "0.4780164", "text": "public function getPermissions()\n {\n return $this->permissions;\n }", "title": "" }, { "docid": "351df4c7add53fc92293c655194d632b", "score": "0.4780164", "text": "public function getPermissions()\n {\n return $this->permissions;\n }", "title": "" }, { "docid": "351df4c7add53fc92293c655194d632b", "score": "0.4780164", "text": "public function getPermissions()\n {\n return $this->permissions;\n }", "title": "" }, { "docid": "351df4c7add53fc92293c655194d632b", "score": "0.4780164", "text": "public function getPermissions()\n {\n return $this->permissions;\n }", "title": "" }, { "docid": "351df4c7add53fc92293c655194d632b", "score": "0.4780164", "text": "public function getPermissions()\n {\n return $this->permissions;\n }", "title": "" }, { "docid": "351df4c7add53fc92293c655194d632b", "score": "0.4780164", "text": "public function getPermissions()\n {\n return $this->permissions;\n }", "title": "" }, { "docid": "351df4c7add53fc92293c655194d632b", "score": "0.4780164", "text": "public function getPermissions()\n {\n return $this->permissions;\n }", "title": "" }, { "docid": "566797fd69643821b20755b2f7a95fe9", "score": "0.47726378", "text": "public function permissions()\r\n {\r\n return $this->belongsToMany(Permission::class, 'permission_user', 'user_id', 'permission_id')->withTimestamps();\r\n }", "title": "" }, { "docid": "bc48c870d2872d01f88d22086f249043", "score": "0.47554034", "text": "public function grantPermissions(&$permission)\n {\n if (in_array($this->user->role, [11, 12])) {\n // return $this->surveyorSupervisorPermissions($permission);\n }\n return [];\n }", "title": "" }, { "docid": "239e970342b8fc8ce6c960b59832bf55", "score": "0.4755058", "text": "public function get()\n {\n return Chatkit::permissions()->get($this->url);\n }", "title": "" }, { "docid": "2c9db19945354189d954a3d7ef3e403e", "score": "0.47549275", "text": "public function permissions() \n\t{\n\t\treturn $this->belongsToMany('Permission', 'projects_relations', 'user_id', 'user_permission_id');\n\t}", "title": "" }, { "docid": "e9b7ac680f7ded2174f27c2fcf84abc5", "score": "0.47448856", "text": "public function getParticipant(){\n return $this->hasMany('App\\UserChallenge', 'challenge_id');\n }", "title": "" }, { "docid": "f11c437b01bda7512766dd9e5403d5ef", "score": "0.47347307", "text": "abstract public static function getPermissions(): array;", "title": "" }, { "docid": "e6cc5dd1ca16a69ab2683e9d2a7ef610", "score": "0.4710373", "text": "public function permissions(): array;", "title": "" }, { "docid": "8daca7263813571baee7b752b0b9b925", "score": "0.47038728", "text": "public function getPermissions() {\n return $this->permissions;\n }", "title": "" }, { "docid": "246971e2a521b2431e118b7165d4d430", "score": "0.47037262", "text": "public function permissions()\n {\n return $this->hasMany(Permission::class);\n }", "title": "" }, { "docid": "246971e2a521b2431e118b7165d4d430", "score": "0.47037262", "text": "public function permissions()\n {\n return $this->hasMany(Permission::class);\n }", "title": "" }, { "docid": "246971e2a521b2431e118b7165d4d430", "score": "0.47037262", "text": "public function permissions()\n {\n return $this->hasMany(Permission::class);\n }", "title": "" }, { "docid": "1710467dac3c089f3c8de7cb36da6d0d", "score": "0.47017872", "text": "public function forumClientPermissions()\n {\n $sql=\"SELECT name FROM edxapp.django_comment_client_permission WHERE 1\";\n $q = $this->db->query($sql) or die(print_r($this->db->errorInfo(), true));\n \n $dat=[];\n while ($r=$q->fetch()) {\n $dat[]=$r['name'];\n }\n return $dat;\n }", "title": "" }, { "docid": "efec01c3704988284aead6b735c93ed8", "score": "0.46973038", "text": "public function getPermissions()\r\n {\r\n return $this->perms;\r\n }", "title": "" }, { "docid": "770025205f7a91be996ed4c27315f3f3", "score": "0.46920562", "text": "public function getPermissionObject()\n {\n return $this->object;\n }", "title": "" }, { "docid": "1877ad6830e96736b937541607aa0aef", "score": "0.4683918", "text": "function credit_invoice_id__permissions(&$record){\r\n\t\tif(get_userPerms('accounts_receivable') == \"edit\" || get_userPerms('accounts_receivable') == \"post\")\r\n\t\t\treturn array(\"edit\"=>1);\r\n\t}", "title": "" }, { "docid": "e52bb3fd54227ec148597eebb545f3e3", "score": "0.46834728", "text": "public function permissions()\n\t{\n\t\treturn $this->belongsToMany('anlutro\\Access\\Models\\Permission',\n\t\t\t'role_permission', 'role_id', 'permission_id')\n\t\t\t->withPivot('allow');\n\t}", "title": "" }, { "docid": "46fc60a1ef89270ca8ab2efec4cb8cc5", "score": "0.4680775", "text": "public function getPermissions()\n {\n return $this->getPermissionsInherited();\n }", "title": "" }, { "docid": "7c9448ecef48c4516ccd97f640049398", "score": "0.4675337", "text": "function getPermission(){\n\t\tif (Yii::$app->getUserOpt->Modul_akses(3)){\n\t\t\treturn Yii::$app->getUserOpt->Modul_akses(3)->mdlpermission;\n\t\t}else{\t\t\n\t\t\treturn false;\n\t\t}\t \n\t}", "title": "" }, { "docid": "37fea27e9541ee82d922125fa546251b", "score": "0.4675263", "text": "public function getManageOrderApprovalPermission();", "title": "" }, { "docid": "47a92718afa1e56ab46526e2f2ae8831", "score": "0.46745628", "text": "public function permissions() {\n return $this->permissions;\n }", "title": "" }, { "docid": "4302e948bda79e5e0380fc13cff3012e", "score": "0.46699226", "text": "public function Permissions()\n {\n return $this->belongsToMany('App\\Models\\Permission', 'permission_role', 'role_id', 'permission_id');\n }", "title": "" }, { "docid": "3934fcd9335884e8fbade26f73dd3610", "score": "0.4664334", "text": "public static function getAllowedActivities();", "title": "" }, { "docid": "8f218a1ac51131ba17e0cfdc0a6b5048", "score": "0.46621042", "text": "public function participants()\n {\n return $this->hasMany(Participant::class);\n\n }", "title": "" }, { "docid": "84c2009b600dcd0aa4c6cfdb9dc46b24", "score": "0.4660636", "text": "public function permissions();", "title": "" }, { "docid": "84c2009b600dcd0aa4c6cfdb9dc46b24", "score": "0.4660636", "text": "public function permissions();", "title": "" }, { "docid": "84c2009b600dcd0aa4c6cfdb9dc46b24", "score": "0.4660636", "text": "public function permissions();", "title": "" }, { "docid": "84c2009b600dcd0aa4c6cfdb9dc46b24", "score": "0.4660636", "text": "public function permissions();", "title": "" }, { "docid": "84c2009b600dcd0aa4c6cfdb9dc46b24", "score": "0.4660636", "text": "public function permissions();", "title": "" }, { "docid": "a728de86881d6f915b014605848aae13", "score": "0.46550432", "text": "protected function getPermissions()\n {\n return array();\n }", "title": "" }, { "docid": "6a8a0973d84573667f793c821a411451", "score": "0.46542105", "text": "public function getParticipationsForUser($a_user_id) {\r\n\t\treturn $this->ilRoomSharingDatabaseParticipants->getParticipationsForUser($a_user_id);\r\n\t}", "title": "" }, { "docid": "606c764d521793cdf35c15bb95966488", "score": "0.46493715", "text": "public function permission()\n {\n return $this->belongsToMany('App\\Permission' , 'permission_role', 'role_id', 'permission_id' );\n }", "title": "" }, { "docid": "5e93898bcae11b5b54dbee631f06fcee", "score": "0.46425864", "text": "public function permissions()\n {\n return $this->belongsToMany(\n Config::get('permission.permission'),\n Config::get('permission.role_permission_table'),\n Config::get('permission.role_foreign_key'),\n Config::get('permission.permission_foreign_key')\n );\n }", "title": "" }, { "docid": "0504129f9eb5ff0ffbc46ed5210e5cf8", "score": "0.46416536", "text": "public function rolePermission()\n {\n return $this->hasMany(RolePermission::class, 'role_id', 'id');\n }", "title": "" }, { "docid": "bfced528acaa7c5a0c6df90c56961997", "score": "0.46407485", "text": "public function participants() {\n return $this->hasMany('App\\Models\\Participant');\n }", "title": "" }, { "docid": "cb3875ccea200387e3eb136ac6a8eacb", "score": "0.46405506", "text": "public function getPermissions()\n {\n $tmp = new QdPermission();\n $tmp->SETRANGE('usergroupid', $this->id);\n $tmp->SETRANGE('active', true);\n return $tmp->GETLIST();\n }", "title": "" }, { "docid": "328f4afa0e4ff835fab6914e76cc8c75", "score": "0.46368563", "text": "public function permissions()\n {\n return $this->belongsToMany(config('access.permission'), config('access.permission_user_table'), 'user_id', 'permission_id');\n }", "title": "" }, { "docid": "388ce2468e465989ad5ca99a5f3173d3", "score": "0.4630087", "text": "public function getPermissions()\n {\n return $this->perms;\n }", "title": "" }, { "docid": "762241eb32cd6ddad6857b4601f9f5e0", "score": "0.4629774", "text": "function isAuthorized() {\n $roles = $this->Role->calculateCMRoles();\n \n $petitionId = $this->parseCoPetitionId();\n $curToken = null;\n \n if($petitionId) {\n $curToken = $this->CoPetition->field('enrollee_token', array('CoPetition.id' => $petitionId));\n }\n \n // Construct the permission set for this user, which will also be passed to the view.\n $p = array();\n \n // Invitation based collection, we need the user in the petition.\n // Note we can't invalidate this token because for the duration of the enrollment\n // $REMOTE_USER may or may not match a valid login identifier (though probably it should).\n $p['collectIdentifierIdentify'] = ($curToken == $this->parseToken());\n \n // Probably an account linking being initiated, so we need a valid user\n $p['selectOrgIdentityAuthenticate'] = $roles['copersonid'] || $this->in_reauth;\n \n $this->set('permissions', $p);\n return $p[$this->action];\n }", "title": "" } ]
8f9078ded9ac284427188e901febba44
Possible regenerate confirmation code and resend it to contact address
[ { "docid": "0c5558b00f2ad0980fd58bfab80578e8", "score": "0.56720775", "text": "public function codeContactRegenerate($guid)\n {\n return $this->patch('/contacts/' . $guid . '/code');\n }", "title": "" } ]
[ { "docid": "c6b1937c58927d1a14b3703e27cef7c2", "score": "0.6636756", "text": "private function createConfirmationCode() {\n $randomNumber1 = rand(23456789, 98765432);\n $randomNumber2 = rand(23456789, 98765432);\n return md5($randomNumber1.$randomNumber2);\n }", "title": "" }, { "docid": "a8136cf660521a12256fdb1fb61a070e", "score": "0.6615391", "text": "public function verification_code($username,$method,$conn){\n if($method=='email'){\n //email verification code here\n $confirm_code=md5(uniqid(rand()));\n $query=\"UPDATE user_master SET confirm_code='$confirm_code' WHERE id='$username'\";\n $result = $this->retrive_data($query,$conn);\n if($result!=FALSE){\n $query=\"SELECT email FROM user_master WHERE id='$username'\";\n $result = $this->retrive_data($query,$conn);\n $result_count = mysqli_num_rows($result);\n if($result_count>0){\n $data= mysqli_fetch_assoc($result);\n $to=$data['email'];\n }\n $passkey=$confirm_code.'-'.$username;\n // Your subject\n $subject=\"Your confirmation link here\";\n $name='docquity';\n $email='info@docquity.com';\n $header = 'MIME-Version: 1.0' . \"\\r\\n\";\n $header.= 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\";\t\n $header.= 'From: '. $name.'<'. $email.'>'.\"\\r\\n\";\n // From\n //$header=\"from: your name <your email>\";\n // Your message\n //$message=\"Your Comfirmation link \\r\\n\";\n $message='';\n $message.=\"Please click on this link to activate your account <br>\";\n $message.=\"http://5.9.84.146/~docquity/confirmation.php?passkey=$passkey\";\n // Call send_mail function\n $this->send_mail($to,$subject,$header,$message); \n }\n else{\n \n }\n }\n else if($method=='mobile'){\n //phone verification code here\n \n }\n }", "title": "" }, { "docid": "864c81e3b57e619203783fc3a4010cae", "score": "0.6551231", "text": "public function resendConfirmCode(Request $request) {\n try {\n $this->validate($request, [\n 'email' => 'required|email'\n ]);\n\n [ 'email' => $email ] =$request->only('email');\n /**\n * doesn't send an error even sending an email that has never been used\n * in this user pool\n */\n return Cognito::resendConfirmationCode( $email );\n } catch( \\Exception $e ) {\n return response()->json(\n $this->checkForValidationErr( $e->errors() ),\n 500\n );\n }\n }", "title": "" }, { "docid": "defe98e6f69b4aff2a3ac2c64afca315", "score": "0.64734745", "text": "public function resendActivationAction()\n { \n $headersParams = $this->validateHeaderParams();\n $chapId = $headersParams['chapId'];\n $langCode = $headersParams['langCode'];\n \n //Get the parameters \n $userId = trim($this->_getParam('userId'));\n //$mobileNumber = trim($this->_getParam('mobileNumber'));\n \n //Check if User Id has been provided\n if ($userId === null || empty($userId)) \n {\n $this->__echoError(\"8001\", $this->getTranslatedText($langCode, '8001') ? $this->getTranslatedText($langCode, '8001') : \"User Id not found\", self::BAD_REQUEST_CODE); \n }\n \n \n if($chapId == 80184 || $chapId == 276531 ) {\n $activationCode = $this->__random_numbers(4);\n } else {\n $activationCode = substr(md5(uniqid(rand(), true)), 5,8);\n }\n $status = 0;\n \n $userModel = new Api_Model_Users();\n \n $mobileNumber = $userModel->getUserMobileById($userId);\n \n //Check if mobile number is given\n if ($mobileNumber === null || empty($mobileNumber)) \n {\n $this->__echoError(\"8011\", $this->getTranslatedText($langCode, '8011') ? $this->getTranslatedText($langCode, '8011') : \"Mobile Number Not Registered\", self::BAD_REQUEST_CODE);\n }\n \n //update the status\n if($userModel->updateActivationCode($userId, $activationCode, $status))\n {\n // send sms start\n $pgUsersModel = new Api_Model_PaymentGatewayUsers();\n $pgDetails = $pgUsersModel->getGatewayDetailsByChap($chapId);\n \t\n \n $pgType = $pgDetails->gateway_id;\n \t\n //Call Nexva_MobileBilling_Factory and create relevant instance\n $pgClass = Nexva_MobileBilling_Factory::createFactory($pgType);\n \t\n //$message = 'Please use this verification code '.$activationCode.' to complete your registration.';\n if($chapId == 274515) {\n $message = $this->getTranslatedText($langCode, '10000', $activationCode) ? $this->getTranslatedText($langCode, '10000', $activationCode) : 'Please use this verification code '.$activationCode.' to complete your registration on the MTN AppStore. Thank you.';\n } else {\n $message = $this->getTranslatedText($langCode, '10000', $activationCode) ? $this->getTranslatedText($langCode, '10000', $activationCode) : 'Please use this verification code '.$activationCode.' to complete your registration.';\n }\n \n \n \n if($chapId == 80184) \n \t$message = \"Y'ello. Please use this verification code $activationCode. to complete your registration on the MTN AppStore. Thank you.\";\n \t\n if($chapId == 274515)\n \t$message = \"Veuillez utiliser ce code de vérification $activationCode pour terminer votre enregistrement.\";\n \n// $pgClass->sendSms($mobileNumber, $message, $chapId);\n // send sms end\n \n $response = array(\n 'user' => $userId, \n 'activation_code' => $activationCode, \n 'success_code' => '1111'\n );\n \n //$this->loggerInstance->log('Response ::' . json_encode($response),Zend_Log::INFO); \n echo json_encode($response); \n\n }\n }", "title": "" }, { "docid": "85a60332d813c6a672ff2629108921bb", "score": "0.642937", "text": "function sendRecoveryEmail($email, $code)\n{\n\t$body = \"Here is your confirmation code to generate a new password for your EasyEdit account: \".$code;\n\t$emailResult = mail($email, \"EasyEdit Confirmation code\", $body);\n\treturn $emailResult;\n}", "title": "" }, { "docid": "77ae61163c07e36a5dfb4de0823fe8da", "score": "0.64254713", "text": "public function resendConfirmationLink()\n {\n $user = User::find(Session::get(SiteSessions::USER_ID));\n $user->confirmation_token = bcrypt(time());\n $user->save();\n Event::fire(new SendMail(SendMail::MAIL_TYPE_USER_CONFIRMATION,$user->username,[],$user));\n Session::flash(\"resent_confirmation_link\",'successful');\n return redirect('account-not-confirmed');\n }", "title": "" }, { "docid": "84c664c87a9d1a5894755219eff84bf7", "score": "0.6424822", "text": "function sl_send_phone_confirm_sms($id, $phone, $country, $provider, $code)\n{\n global $provider_list;\n\n if ($country != '--' && $provider{0} != '+') {\n $smsaddr = str_replace('{n}', $phone, $provider_list[$country][$provider]);\n } else {\n $smsaddr = substr($provider, 1);\n }\n $sms = 'This is your SendLove confirmation code: '.$code;\n\n send_authmail(array('sender'=>'smsuser','server'=>'gmail-ssl'),$smsaddr,'',$sms,'');\n}", "title": "" }, { "docid": "97aedc83504815f289e203271e8e2e5a", "score": "0.64067847", "text": "public function confirm($code)\n {\n if (Confide::confirm($code)) {\n\n // Make the user friend of the referrer on confirm.\n $regUser = User::where('confirmation_code', $code)->first();\n\n // Send welcome email to user notifying about successful registration.\n $user = array(\n 'email' => $regUser->email,\n 'name' => $regUser->email\n );\n\n $data = array(\n 'name' => $regUser->email,\n );\n\n Mail::send('emails.welcome', $data, function ($message) use ($user) {\n $message->from('admin@evezown.com', 'Evezown Team');\n $message->to($user['email'], $user['name'])->subject('Welcome to Evezown');\n });\n\n $invite = Invite::where('email', $regUser->email)->first();\n\n // Check whether the referrer is evezown member? If yes, get the details.\n if ($invite != null && $invite->is_evezown_member) {\n $referrerUser = User::where('email', $invite->referrer_email)->first();\n\n if ($referrerUser != null) {\n // Get the newly registered user using the registered email.\n $registeredUser = User::where('email', $invite->email)->first();\n\n if ($registeredUser != null) {\n Friend::create([\n 'friend_user_id' => $referrerUser->id,\n 'user_id' => $registeredUser->id,\n 'status' => 1\n ]);\n\n // Make sure that referred user also has a mapping for the friendship.\n Friend::create([\n 'friend_user_id' => $registeredUser->id,\n 'user_id' => $referrerUser->id,\n 'status' => 1\n ]);\n }\n }\n }\n\n $notice_msg = Lang::get('confide::confide.alerts.confirmation');\n return $this->setStatusCode(200)->respond($notice_msg);\n } else {\n $error_msg = Lang::get('confide::confide.alerts.wrong_confirmation');\n return $this->setStatusCode(403)->respondWithError($error_msg);\n }\n }", "title": "" }, { "docid": "c8061a205c52ee91738bba235052ea61", "score": "0.63805", "text": "protected function confirm()\n\t{\n\t\t$contacts_model = new ContactsModel();\n\t\t$contact_id = $contacts_model->getSubscribeByEmail($this->contact_info['C_EMAILADDRESS'][0], true);\n\t\tif (!$this->contact_info['U_ID'] && $contact_id) {\n\t\t\t$contact_info = $contacts_model->get($contact_id);\n\t\t\t$contact_type = new ContactType($this->contact_info['CT_ID']);\n\t\t\t$fields = $contact_type->getTypeDbFields();\n\t\t\t$dbfields = $contact_type->getDbFields();\n\t\t\t$new_contact_info = $contacts_model->get($this->contact_id);\n\t\t\t$data = array();\n\t\t\tif (isset($contact_info['SC_ID'])) {\n\t\t\t\t$dbfields[] = 'SC_ID';\n\t\t\t}\n\t\t\tforeach ($contact_info as $field => $value) {\n\t\t\t\tif (in_array($field, $dbfields)) {\n\t\t\t\t\tif (in_array($field, $fields)) {\n\t\t\t\t\t\tif ($new_contact_info[$field]) {\n\t\t\t\t\t\t\t$data[$field] = $new_contact_info[$field];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$data[$field] = $value;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$data[$field] = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Change type of the contact\n\t\t\tif ($contact_info['CT_ID'] != $new_contact_info['CT_ID']) {\n\t\t\t\t$contacts_model->save($contact_id, array('CT_ID' => $new_contact_info['CT_ID']));\n\t\t\t}\n\t\t\t$errors = array();\n\t\t\tContact::save($contact_id, $data, $errors);\n\t\t\t// Add old contact to new lists\n\t\t\t$contact_lists_model = new ContactListModel();\n\t\t\t$lists = $contact_lists_model->getIds($this->contact_id);\n\t\t\t$contact_lists_model->addToLists($contact_id, $lists);\n\t\t\t// delete new contact\n\t\t\tContact::delete($this->contact_id);\n\t\t\t// update links to contact\n\t\t\tif (Wbs::getDbkeyObj()->appExists('ST')) {\n\t\t\t\t$model = new DbModel();\n\t\t\t\t$sql = \"UPDATE st_request SET client_c_id = \".(int)$contact_id.\"\n \t\t\tWHERE client_c_id = \".(int)$this->contact_id;\n\t\t\t\t$model->exec($sql);\n\t\t\t\t$sql = \"UPDATE st_request_log SET actor_c_id = \".(int)$contact_id.\"\n \t\t\tWHERE actor_c_id = \".(int)$this->contact_id;\n\t\t\t\t$model->exec($sql);\n\t\t\t}\n\t\t\t$this->contact_id = $contact_id;\n\n\t\t} else {\n\t\t\t$errors = array();\n\t\t\tContact::save($this->contact_id, array('C_SUBSCRIBER' => 1), $errors, false);\n\t\t}\n\t\t$sql = \"DELETE FROM UNSUBSCRIBER WHERE ENS_EMAIL = s:email\";\n\t\t$contacts_model->prepare($sql)->exec(array('email' => $this->contact_info['C_EMAILADDRESS'][0]));\n\t\tif (Env::Get('confirm')) {\n\t\t\tEnv::setSession('confirm', 1);\n\t\t}\n\t\t$url = Contact::getSubscribeLink($this->contact_id);\n\t\tif (Env::Get('do')) {\n\t\t\t$url .= \"&do=\".Env::Get('do');\n\t\t}\n\t\tUrl::go($url, true);\n\t}", "title": "" }, { "docid": "dd32faccb0d2c4fdff773ee7c287dd82", "score": "0.6363087", "text": "public function confirmationregistration() {\r\n\r\n // $l = \"meetoparty/account/confirmationregistration/code/$code/pseudo/$pseudo\";\r\n global $_URL;\r\n\r\n $c = mysql_real_escape_string($_URL['code']);\r\n $p = mysql_real_escape_string($_URL['pseudo']);\r\n\r\n $pseudo = $p;\r\n $code = $c;\r\n\r\n if (empty($pseudo) or empty($code))\r\n $data['error']['empty'] = \"Il y a eu un problème lors de votre inscription.<br> Veuillez contacter les webmaster du site\";\r\n\r\n if (empty($data['error']['empty'])) {\r\n\r\n $query = mysql_query(\"SELECT pseudo_member from member WHERE pseudo_member = '$pseudo'\") or die(\"Impossible de sélectionner l'email : \" . mysql_error());\r\n\r\n if (mysql_num_rows($query) == 1) {\r\n $row = mysql_fetch_assoc($query);\r\n $result = $row;\r\n }\r\n\r\n if (!empty($result['pseudo_member'])) {\r\n\r\n $query2 = mysql_query(\"SELECT code_member from member WHERE pseudo_member = '$pseudo'\") or die(\"Impossible de sélectionner l'email : \" . mysql_error());\r\n\r\n if (mysql_num_rows($query2) == 1) {\r\n $row = mysql_fetch_assoc($query2);\r\n $result2 = $row;\r\n }\r\n\r\n if ((!empty($result2['code_member'])) AND ($result2['code_member'] == $code)) {\r\n mysql_query(\"UPDATE member SET code_member = 0, level_member = 1 WHERE pseudo_member = '$pseudo'\");\r\n $data['result'] = \"<h2>Votre inscription est maintenant terminée.</h2><br>\";\r\n $data['result'] .= \"<p>Vous pouvez vous connecter sur Meetoparty et profitez des avantages du site.</p><br>\";\r\n header('Refresh: 7; url=/index');\r\n } else {\r\n $data['error']['wrong'] = \"Il y a eu un problème lors de votre inscription.<br> Veuillez contacter les webmaster du site\";\r\n }\r\n } else {\r\n $data['error']['wrong'] = \"Il y a eu un problème lors de votre inscription.<br> Veuillez contacter les webmaster du site\";\r\n }\r\n }\r\n\r\n return $data;\r\n }", "title": "" }, { "docid": "62e88d6d6c92aa21b7c4626c7eeb355e", "score": "0.63249856", "text": "function confirmation() {\n\n// if (ereg (\"(^[0-9][0-9][0-9]$|^[0-9][0-9][0-9][0-9]$)\", $_POST['cvv_number']) == 1){\n\n if (preg_match('/^[0-9][0-9][0-9]$|^[0-9][0-9][0-9][0-9]$/', $_POST['cvv_number'])) {\n\n\n $this->cvv_number = $_POST['cvv_number'];\n $this->cvv_indicator = 1;\n } else {\n $this->cvv_number = '';\n $this->cvv_indicator = 9;\n }\n\n if ($this->cvv_indicator == 1) {\n $confirmation = array('title' => $this->title . ': ' . $this->cc_card_type,\n 'fields' => array(array('title' => MODULE_PAYMENT_CHARGEIT_TEXT_CREDIT_CARD_OWNER,\n 'field' => $_POST['cc_owner']),\n array('title' => MODULE_PAYMENT_CHARGEIT_TEXT_CREDIT_CARD_NUMBER,\n 'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)),\n array('title' => MODULE_PAYMENT_CHARGEIT_TEXT_CVV_NUMBER,\n 'field' => $this->cvv_number),\n array('title' => MODULE_PAYMENT_CHARGEIT_TEXT_CREDIT_CARD_EXPIRES,\n 'field' => strftime('%B, %Y', mktime(0,0,0,$_POST['cc_expires_month'], 1, '20' . $_POST['cc_expires_year'])))));\n\n } else {\n $confirmation = array('title' => $this->title . ': ' . $this->cc_card_type,\n 'fields' => array(array('title' => MODULE_PAYMENT_CHARGEIT_TEXT_CREDIT_CARD_OWNER,\n 'field' => $_POST['cc_owner']),\n array('title' => MODULE_PAYMENT_CHARGEIT_TEXT_CREDIT_CARD_NUMBER,\n 'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)),\n array('title' => MODULE_PAYMENT_CHARGEIT_TEXT_CREDIT_CARD_EXPIRES,\n 'field' => strftime('%B, %Y', mktime(0,0,0,$_POST['cc_expires_month'], 1, '20' . $_POST['cc_expires_year'])))));\n }\n\n return $confirmation;\n }", "title": "" }, { "docid": "a2bd78af7d6d5212f027f7c7df4a9b27", "score": "0.6238454", "text": "private function sendMailConfirm($mail, $name, $code)\n {\n\n $content=$name.' 様<br><br>';\n $content=$content.'この度は、'.self::APP_NAME.' へのお申込み、誠にありがとうございます。 <br>'; \n $content=$content.'<p style=\"width:100%; max-width:600px;text-align: justify;\">下記URLより、本登録をお願い致します。<br>'.'<a style=\"width:100%; max-width:500px\" href=\"'.'https://ntg-center.000webhostapp.com/user/confirm/'.$code.'\">https://ntg-center.000webhostapp.com/user/confirm/'.$code.'</a>'.'</p>';\n $content=$content.'※登録URLが折り返されている場合は、1行につなげてください。<br>※上記アドレスの有効期限は1時間となっております。<br>それ以上経過してしまった場合は、再度仮登録手続きを行ってください。<br><br>---------------------------------';\n $content=$content.'<p>このメールは送信専用です。<br>ご返信いただきましても、対応いたしかねます。<br>お問い合わせは下記リンクよりお願いいたします。<br>URL: https://ntg-center.000webhostapp.com/user/faq</p>';\n $content=$content.'<p>---------------------------------</p>';\n $content=$content.'<p>Hi '.$name.',<p>';\n $content=$content.'<p style=\"width:100%; max-width:600px;\">Your new Call center account is registered to this email address. To continue using your new '.self::APP_NAME.' account, you must verify this email address by clicking on this link below:<br>'.'<a style=\"width:100%; max-width:600px\" href=\"'.'https://ntg-center.000webhostapp.com/user/confirm/'.$code.'\">https://ntg-center.000webhostapp.com/user/confirm/'.$code.'</a>'.'</p>';\n $content=$content.'Thank you,<br>The '.self::APP_NAME.' Team';\n\n $email = new Email('default');\n $email->setFrom([self::MAIL_FROM => self::APP_NAME])\n ->emailFormat('html')\n ->setTo($mail)\n ->setSubject('Please Verify Your Email With '.self::APP_NAME)\n ->send($content);\n }", "title": "" }, { "docid": "e4ad05cf29fb50b3fbb0b0635d91f372", "score": "0.62326616", "text": "public function resendEmailVerification()\n\t{\n\t\t$user = $this->getAuth()->getIdentity();\n\t\t$this->getEventManager()->trigger(__FUNCTION__, $this, array('user' => $user));\n\t\t$userCodesRepo = $this->getUserCodesRepo();\n\t\t$typeOf = 'verify-email';\n\t\t$formerCode = $userCodesRepo->findUserCode($user, $typeOf, FALSE);\n\t\t$userCodesRepo->removeCode($user, $typeOf);\n\t\t$userCodesEntity = $this->getUserCodesEntity();\n\t\t$userCode = new $userCodesEntity;\n\t\tif ($formerCode)\n\t\t{\n\t\t\t$oldEmail = $formerCode->getExtra('email');\n\t\t\t$userCode->addExtra('email', $oldEmail);\n\t\t}\n\t\t$userCode->setUser($user);\n\t\t$userCode->setTypeOf($typeOf);\n\t\t$userCode->setCode(md5(time() . $userCode->getTypeOf() . $user->getEmail()));\n\t\t$this->getEntityManager()->persist($userCode);\n\t\t$this->getEntityManager()->flush();\n\t\t$this->sendVerifyEmail($userCode);\n\t\t$this->getEventManager()->trigger(__FUNCTION__, $this, array('user' => $user, 'userCode' => $userCode));\n\t\treturn $userCode;\n\t}", "title": "" }, { "docid": "f0ab32748923c06a800584ef5a051700", "score": "0.6176918", "text": "public function forgotVendorPass(){\n $this->form_validation->set_rules('contact', 'Contact', 'required|numeric');\n if ($this->form_validation->run() == FALSE)\n {\n $data['msg'] = 'Valid Contact Required.!';\n $data['success'] = 0;\n }\n else{\n $contact= $this->input->post('contact');\n $vendor = $this->db->get_where('tbl_vendor', array('vendor_contact' => $contact));\n if($vendor->num_rows() > 0) {\n $code = rand(0,999999);\n $row = $vendor->row(); \n $vendor_id = $row->vendor_id;\n $mob = $row->vendor_contact;\n $msg = \"Use this Password Activation Code $code . This verification is important for the reset your password.\";\n //$msg = \"Use $code for resetting your password.\";\n $sms = $this->send_message($mob,$msg);\n if($sms==1){\n $dat['key'] = $code;\n $this->db->where('vendor_id',$vendor_id);\n $this->db->update('tbl_vendor',$dat);\n \n $data['msg'] = 'Activation Code sent to Your Mobile.';\n $data['vendor_id'] = $vendor_id;\n $data['OTP'] = $code;\n $data['success'] = 1;\n }\n else{\n $data['msg'] = 'OTP Not Send..!';\n $data['success'] = 0;\n }\n }\n \n }\n echo json_encode($data);\n }", "title": "" }, { "docid": "a7b2dfb422bbf8c4c0c151ad45bbc6d5", "score": "0.6153662", "text": "private function generateAndSaveCode()\n {\n $code = $this->randomMath->getRandomString(32);\n $this->config->saveConfig(\n \\Dotdigitalgroup\\Email\\Helper\\Config::XML_PATH_CONNECTOR_DYNAMIC_CONTENT_PASSCODE,\n $code,\n 'default',\n '0'\n );\n }", "title": "" }, { "docid": "6c3dc0ad0f4e29b56b20a1f0c849d33c", "score": "0.6123676", "text": "public function confirmEmail() {\n\t\t$this->verified = true;\n\t\t$this->token = null;\n\t\t$this->save();\n\t}", "title": "" }, { "docid": "05f9b46d18659d11e45043444f560e4b", "score": "0.6111384", "text": "private function _regenerateCallbackPin()\n {\n $callbackTid = \"getNnCallbackTid\" . ucfirst($this->_code);\n $methodSession = $this->_getMethodSession();\n $response = $this->doNovalnetStatusCall($methodSession->$callbackTid(), NULL, Novalnet_Payment_Model_Config::TRANSMIT_PIN_AGAIN);\n if ($response->getStatus() == Novalnet_Payment_Model_Config::RESPONSE_CODE_APPROVED) {\n $text = $this->helper->__('You will shortly receive a PIN by phone / SMS. Please enter the PIN in the appropriate text box');\n } else {\n $text = $this->helper->htmlEscape($response->getStatusMessage()); //status_message\n }\n $this->showException($text, false);\n }", "title": "" }, { "docid": "bdc4ef516798c3883f0c3f7ab4c3f97e", "score": "0.610561", "text": "public function verifarCorreo($code)\r\n {\r\n $user = User::where('CodigoConfirmacion', $code)->first();\r\n if (! $user)\r\n return redirect('/');\r\n $user->CorreoConfirmado = true;\r\n $user->CodigoConfirmacion = null;\r\n $user->save();\r\n return redirect('/home')->with('notification', 'Has confirmado correctamente tu correo!');\r\n }", "title": "" }, { "docid": "7a86749df5156c112ab9721f798db36d", "score": "0.6092875", "text": "private function sendConfirmation()\n {\n list($name, $email, $phone, $message) = $this->checkMessage($p);\n\n // Set site-specific variables from constants\n $siteName = SITE_NAME;\n $siteUrl = SITE_URL;\n $return_email = 'donotreply@' . str_replace('/', '', str_replace('http://', '', SITE_URL));\n $confMsg = SITE_CONFIRMATION_MESSAGE;\n $siteEmail = SITE_CONTACT_EMAIL;\n\n $conf_to = \"$name <$email>\";\n $conf_sub = \"Thank You for Contacting Us!\";\n $conf_headers = <<<MESSAGE_HEADER\nFrom: $siteName <$return_email>\nContent-Type: text/plain\nMESSAGE_HEADER;\n $conf_message = <<<MESSAGE_BODY\n$confMsg\n\n$siteEmail\n$siteUrl\nMESSAGE_BODY;\n\n return mail($conf_to,$conf_sub,$conf_message,$conf_headers);\n }", "title": "" }, { "docid": "9af2a7d9fd54c2cef9eb8b61593b3a9d", "score": "0.60649514", "text": "public function forgotSupervisorPass(){\n $this->form_validation->set_rules('contact', 'Contact', 'required|numeric');\n if ($this->form_validation->run() == FALSE)\n {\n $data['msg'] = 'Valid Contact Required.!';\n $data['success'] = 0;\n }\n else{\n $contact= $this->input->post('contact');\n $supervisor = $this->db->get_where('tbl_supervisor', array('supervisor_contact' => $contact));\n if($supervisor->num_rows() > 0) {\n $code = rand(0,999999);\n $row = $supervisor->row(); \n $supervisor_id = $row->supervisor_id;\n $mob = $row->supervisor_contact;\n $msg = \"Use this Password Activation Code $code . This verification is important for the reset your password.\";\n //$msg = \"Use $code for resetting your password.\";\n $sms = $this->send_message($mob,$msg);\n if($sms==1){\n $dat['key'] = $code;\n $this->db->where('supervisor_id',$supervisor_id);\n $this->db->update('tbl_supervisor',$dat);\n \n $data['msg'] = 'Activation Code sent to Your Mobile.';\n $data['supervisor_id'] = $supervisor_id;\n $data['OTP'] = $code;\n $data['success'] = 1;\n }\n else{\n $data['msg'] = 'OTP Not Send..!';\n $data['success'] = 0;\n }\n }\n \n }\n echo json_encode($data);\n }", "title": "" }, { "docid": "58b828b7939c3b4df6f9fa13604cba91", "score": "0.6055191", "text": "public function resendVerificationMail(){\n $data = $this->get_data();\n if(!empty($data)){\n $email = isset($data->email)?filter_var($data->email, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH):\"\";\n\n //check for empty or invalid fields\n $_email_error = $this->validateEmail($email)==TRUE?\"\":\"Email Address Is not valid!\";\n if($_email_error !=\"\"){\n $this->response(\"error\",$_email_error);\n exit;\n }\n if($this->account_model->verifyEmailExists($email,\"email\") == TRUE){\n //if user registration was successful\n //send email verification link\n $link = $this->getVerificationLink($email);\n $subject = \"User Registration\";\n $htmlContent = '<p>Hi '.$email.',</p>';\n $htmlContent .= '<p>Thank you for registering on our platfrom. ';\n $htmlContent .= '<p>Please click on the link to verify your email : <a href=\"'.$link.'\">VERIFY EMAIL</a>.</p><br>';\n $htmlContent .= '<p>Kind Regards,</p>';\n $htmlContent .= '<p>Management Team.</p>';\n $this->sendMail($email,$subject,$htmlContent);\n $this->response(\"ok\",\"A verification link was sent to your mail, follow the link to verify your email address.\");\n }else{\n $this->response(\"error\",\"Sorry, email address doesnt exist\");\n }\n }else{\n $this->response($this->account_model->status,$this->account_model->message);\n }\n\n }", "title": "" }, { "docid": "7f86f4cf8de7160fd442c9bfddd34e4d", "score": "0.6045279", "text": "public function textToVerify()\n {\n $code = random_int(100000, 999999);\n\n $sid = config('services.twilio.sid');\n $token = config('services.twilio.token');\n $from = config('services.twilio.number');\n\n $this->forceFill([\n 'verification_code' => $code,\n 'code_sent_at' => $this->freshTimestamp(),\n ])->save();\n\n $country_code = $this->country_code ?? config('auth.defaults.country_code');\n $to = strval($country_code.$this->phone);\n\n Log::debug('To Phone: '.$to);\n\n $message = \"Your Auric Shop's One Time Password is: \".$code.\" \\n For Security reasons, don't share this with anyone!\";\n\n\n $client = new Client($sid, $token);\n\n $client->messages->create(\n $to,\n [\n \"body\" => $message,\n \"from\" => $from\n ]\n );\n }", "title": "" }, { "docid": "9f9def62d8b64948be790b7731271939", "score": "0.6033112", "text": "private function sendConfirmationMail()\n {\n\n $data = $this->model->attributes;\n // prepare $to parameter \n if(isset($this->_settings['email']['set_value']))\n $to = $this->_settings['email']['set_value'];\n else\n $to = 'darkokrmpotic@gmail.com';\n //\n \n $subject = isset($this->_settings['subject']['set_value'])? $this->_settings['subject']['set_value']: 'New Contact Form';\n $message1 = '<html>\n\t\t\t \t\t\t<head>\n\t\t\t\t\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n\t\t\t\t\t\t</head><body><h2>New contact data:</h2> <br />\n\t\t\t\t\t\tFirst Name: '.$data['first_name'].' <br />\n\t\t\t\t\t\tLast Name: '.$data['last_name'].' <br />\n\t\t\t\t\t\tEmail: '.$data['email'].' <br />\n\t\t\t\t\t\tSubject: '.$data['subject'].' <br />\n\t\t\t\t\t\tMessage: '.$data['message'].'</body></html>';\n\n $headers = \"MIME-Version: 1.0\\n\";\n $headers .= \"Content-type: text/html; charset=utf-8\\n\";\n\n $headers .= \"X-Sender: <\" . $_SERVER[\"SERVER_ADMIN\"] . \">\\n\";\n $headers .= \"X-Mailer: Updater <http://\" . $_SERVER[\"SERVER_NAME\"] . \">\\n\";\n $headers .= \"Return-Path: < >\\n\";\n if(isset($this->_settings['from-email']['set_value']))\n $headers .= 'From: '.$this->_settings['from-email']['set_value']. \"\\r\\n\";\n else\n $headers .= 'From: Contact Form' . \"\\r\\n\";\n // all prepared->continue\n //MyFunctions::echoArray( array( 'to'=>$to, 'subject'=>$subject ), $headers, $message1 );\n if( $_SERVER['SERVER_ADDR'] != '127.0.0.1' && $_SERVER['SERVER_ADDR'] != '::1') mail($to, $subject, $message1, $headers);\n }", "title": "" }, { "docid": "da1278806b7329317da52d8076757754", "score": "0.60199034", "text": "public function coppaConfirmationMail()\n {\n /* get data */\n // $childInfo = $this->_dbChild->getChildBasicInfo($this->childId);\n $html = $this->getConfirmationHtmlEmail(); \n\n /* send email */\n $mail = new My_Mail();\n $mail->setSubject('Account Confirmation Complete');\n $mail->setBodyHtml($html);\n $mail->addTo($this->parentData['email']);\n $mail->setReplyTo(COPPA_MAIL_REPLY_TO, EMAIL_FROM_NAME );\n $mail->setFrom(COPPA_MAIL_FROM, EMAIL_FROM_NAME );\n /* end send email */\n\n return $mail->send();\n }", "title": "" }, { "docid": "a5d2d6f56b2e5f8ab710fa9a5686e976", "score": "0.60065717", "text": "public function confirmEmail()\n {\n $this->verified = true;\n $this->token = null;\n $this->save();\n }", "title": "" }, { "docid": "2a53bcdd8a30c50c6e25f1d933888bc9", "score": "0.60036457", "text": "function email_registration(){\n\t\t//GENERATE TOKEN\n\t\t$token = openssl_random_pseudo_bytes(20);//Generate a random string.\n\t\t$token = bin2hex($token);//Convert the binary data into hexadecimal representation.\n\t\t$this->data['User']['reset_token'] = $token ;\n\t\t//END\n\t\t\n\t\t//SAVE COMMAND\n\t\t$this->User->save($this->data);//UPDATE USER ROW\n\t\t\t\t\n\t\t//PREPARE SERVER NAME\n\t\tif($_SERVER['SERVER_NAME'] == \"localhost\") $app = $_SERVER['REQUEST_SCHEME'].'://'. $_SERVER['SERVER_NAME'].'/sap';\n\t\telse $app = $_SERVER['REQUEST_SCHEME'].'://'. $_SERVER['SERVER_NAME'];\n\t\t\n\t\t//EMAIL COMMAND\n\t\t$from = 'SAP <sap@mytssi-erb.com>';\n\t\t$to = trim($this->data['User']['email']);\n\t\t$subject = 'SAP - Verify your Account';\n\t\t$body = 'Please click this link to activate your account: <a href=\"'.$app.'/#/signin/activate_account?token='.$token.'\">'.$app.'/#/signin/activate_account?token='.$token.'</a>';\n\n\t\t$this->email($from,$to,$subject,$body);\n\t}", "title": "" }, { "docid": "acacefb7ddc02244b378ee3232ed21a3", "score": "0.5997349", "text": "function confirm_verify($id)\n\t{\n\t\t// get the data\n $verification = $this->verification_model->get_verification($id);\n\t\t$user = $this->users_model->get_user_mail($verification['user']);\n\n\t\t// update verification status\n\t\t$this->verification_model->update_verification($id,\n\t\t\tarray(\n\t\t\t\t\"status\" => \"2\"\n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t// update user verification status\n\t\t$this->users_model->verify_user($verification['user'],\n\t\t\tarray(\n\t\t\t\t\"verifi_status\" => \"1\",\n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t$email_template = $this->emailtemplate_model->get_email_template(14);\n\t\t$sms_template = $this->smstemplate_model->get_sms_template(1);\n\t\t\t\n\t\t// variables to replace\n\t\t$site_name = $this->settings->site_name;\n\t\t$site_url = base_url('account/identification');\n\t\t\t\n\t\t$rawstring = $email_template['message'];\n\t\t\t\t\n\t\t\t\n\t\t// what will we replace\n\t\t$placeholders = array('[SITE_NAME]', '[URL_VERIFI]');\n\t\t\t\n\t\t$vals_1 = array($site_name, $site_url);\n\t\t\t\n\t\t//replace\n\t\t$str_1 = str_replace($placeholders, $vals_1, $rawstring);\n\n\t\t$this -> email -> from($this->settings->site_email, $this->settings->site_name);\n\t\t$this -> email -> to($user['email']);\n\t\t$this -> email -> subject($email_template['title']);\n\t\t\t\n\t\t$this -> email -> message($str_1);\n\n\t\t$this->email->send();\n \n\t\tif($sms_template['enable']) {\n\t\t\t// Twilio user number\n\t\t\t$to = '+'.$user['phone'];\n\t\t\t// Your Account SID and Auth Token from twilio.com/console\n\t\t\t$sid = $this->settings->twilio_sid;\n\t\t\t$token = $this->settings->twilio_token;\n\t\t\t$client = new Twilio\\Rest\\Client($sid, $token);\n\n\t\t\t// Use the client to do fun stuff like send text messages!\n\t\t\t$client->messages->create(\n\t\t\t// the number you'd like to send the message to\n\t\t\t$to,\n\t\t\t\tarray(\n\t\t\t\t\t// A Twilio phone number you purchased at twilio.com/console\n\t\t\t\t\t'from' => '+'.$this->settings->twilio_number,\n\t\t\t\t\t// the body of the text message you'd like to send\n\t\t\t\t\t'body' => $sms_template['message']\n\t\t\t\t\t)\n\t\t\t);\n\t\t}\n\t\t\t\n\t\t$this->session->set_flashdata('message', lang('admin verification com_ver_suc'));\n\t\tredirect(site_url(\"admin/verification\"));\n\n\t}", "title": "" }, { "docid": "4ecc53de8c071269de20f4aa00f4f460", "score": "0.5986246", "text": "public function send_code($input){\n $client = $this->model->where('phone_number', $input['phone_number'])->first();\n $return = [];\n if($client){\n $code = rand ( 10000 , 99999);\n $response = SMS::sendSms($input['phone_number'], 'Your verfication code is ' . $code);\n if (array_key_exists('code', $response)){\n\t\t\t\t$return['error'] = $response['message'];\n\t\t\t}else{\n\t\t\t\tif (array_key_exists('sid', $response)){\n $client->code = $code;\n $client->save();\n $return['done'] = true;\n\t\t\t\t}\n\t\t\t}\n }else{\n $return['error'] = false;\n }\n\n return $return;\n }", "title": "" }, { "docid": "eec9983dbb122ca7c6efc329aac13fd9", "score": "0.59845555", "text": "public function resend_activation()\n {\n if (isset($_POST['send'])) {\n $this->form_validation->set_rules('email', 'lang:bf_email', 'required|trim|valid_email');\n\n if ($this->form_validation->run()) {\n // Form validated. Does the user actually exist?\n $user = $this->user_model->find_by('email', $_POST['email']);\n if ($user === false) {\n Template::set_message('Cannot find that email in our records.', 'error');\n } else {\n $activation = $this->user_model->set_activation($user->id);\n $message = $activation['message'];\n $error = $activation['error'];\n\n Template::set_message($message, $error ? 'error' : 'success');\n }\n }\n }\n\n Template::set_view('users/resend_activation');\n Template::set('page_title', 'Activate Account');\n Template::render('login');\n }", "title": "" }, { "docid": "8042393e7332ff02a374a8557a9d37c3", "score": "0.5969259", "text": "function _confirm_notify() {\r\r\n\t\t$mod_code = '';\r\r\n\t\t//check possible params for transaction id [rp_invoice_id, invoice, custom]\r\r\n\t\tif(isset($_POST['rp_invoice_id']) && is_numeric($_POST['rp_invoice_id'])) {\r\r\n\t\t\t$transaction_id = $_POST['rp_invoice_id'];\r\r\n\t\t}elseif (isset($_POST['invoice']) && is_numeric($_POST['invoice'])) {\r\r\n\t\t\t$transaction_id = $_POST['invoice'];\r\r\n\t\t}elseif (isset($_POST['custom']) && is_numeric($_POST['custom'])) {\r\r\n\t\t\t$transaction_id = $_POST['custom'];\r\r\n\t\t}elseif (isset($_POST['custom']) && !is_numeric($_POST['custom']) && preg_match('/^subscription_/', $_POST['custom'])) {\r\r\n\t\t\t//for backward compatibility:\r\r\n\t\t\t//transaction cannot be found for old users: \r\r\n\t\t\t$transdata = $this->_get_transaction_passthrough($_POST['custom']);\r\r\n\t\t\t$member = mgm_get_member($transdata['user_id']);\r\r\n\t\t\tif(isset($member->payment_info->module) && !empty($member->payment_info->module)) {\r\r\n\t\t\t\t$mod_code = preg_match('/mgm_/', $member->payment_info->module) ? $member->payment_info->module : 'mgm_' .$transdata['module'];\r\r\n\t\t\t}\r\r\n\t\t}\r\r\n\t\t//if a transaction id is found\r\r\n\t\tif(isset($transaction_id)) {\r\r\n\t\t\t$transdata = mgm_get_transaction($transaction_id);\r\r\n\t\t\tif(!empty($transdata['module'])) {\r\r\n\t\t\t\t$mod_code = preg_match('/mgm_/', $transdata['module']) ? $transdata['module'] : 'mgm_' .$transdata['module']; \t\t\t\t\r\r\n\t\t\t}\r\r\n\t\t}\r\r\n\t\t//if module code is found and not belongs to current module, then invode process_notify() function of the applicable module.\r\r\n\t\t\r\r\n\t\tif(!empty($mod_code) && $mod_code != $this->code) {\r\r\n\t\t\t// recall process_notifyof the module\r\r\n\t\t\t// keep the log untill paypal is resolved.\r\r\n\t\t\t// mgm_log('FROM PAYMENT: recalling ' . $mod_code .'->process_notify() FROM: '. $this->code );\t\r\r\n\t\t\tmgm_get_module($mod_code, 'payment')->process_notify();\r\r\n\t\t\t// return\r\r\n\t\t\treturn false;\r\r\n\t\t}\r\r\n\t\t\r\r\n\t\treturn true;\r\r\n\t}", "title": "" }, { "docid": "7b5f0fd8f5f26093e929eb142f88adc4", "score": "0.5965783", "text": "public function confirm($code)\n {\n// if (Confide::confirm($code)) {\n try{\n Session::flush();\n }\n catch(Exception $e){}\n if ( $this->users->confirm($code) ) { \n $notice_msg = Lang::get('confide::confide.alerts.confirmation');\n// return View::make('confide.to_verification');\n return Redirect::action('UsersController@verificationConfirmation');\n// return Redirect::action('UsersController@login')\n// ->with('notice', $notice_msg);\n } else {\n $error_msg = Lang::get('confide::confide.alerts.wrong_confirmation');\n return Redirect::action('UsersController@login')\n ->with('error', $error_msg);\n }\n }", "title": "" }, { "docid": "28c6c6f50aa8129e00a812d0a53e7f6b", "score": "0.59649265", "text": "public function getConfirmNewEmail($code)\n {\n if (! Session::has('user.update-email.email.' . Auth::getUser()->id)) {\n return redirect()->back()->withErrors('The session data for changing your email has expired. Please re-enter your email.');\n }\n\n $this->dispatch(\n new UpdateEmailCommand(\n Auth::getUser()->id,\n $code\n )\n );\n\n return redirect()->route('account/security/update-email')->withSuccess('Your email address has been changed.');\n }", "title": "" }, { "docid": "3da3949dc85d801c1fd8fb108e1f9a1f", "score": "0.59348756", "text": "public function resend()\n {\n if (!$this->validate()) {\n return false;\n }\n /** @var Token $token */\n $token = Yii::createObject([\n 'class' => Token::className(),\n 'user_id' => $this->operator->user_id,\n 'type' => Token::TYPE_CONFIRMATION,\n ]);\n $token->save(false);\n $this->mailer->sendConfirmationMessage($this->operator, $token);\n Yii::$app->session->setFlash('info', Yii::t('user', 'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.'));\n\n return true;\n }", "title": "" }, { "docid": "f6406516cb576cee5b1eeab495bd2b43", "score": "0.5925168", "text": "function sendVerify_email()\r\n {\r\n $FD = getInstance();\r\n $link = ROOT_PATH.\"admin/verify/\".$this->code_user;\r\n $FD->Utility->sendEmail($this->email_user, \"Register account\", \"Your account was created successfully.<br>Please confirm your register with this <a href='$link'>link</a> or copy this link in your browser $link\");\r\n }", "title": "" }, { "docid": "4aaa1db9f8c3f9ab8ede33112f2f0364", "score": "0.5904245", "text": "function resend_activation_token() {\n $this->load->library('form_validation');\n\n $this->form_validation->set_rules('activation_token_identity', 'Identity (Email / Login)', 'required');\n\n if ($this->form_validation->run()) {\n $response = $this->flexi_auth->resend_activation_token($this->input->post('activation_token_identity'));\n\n $this->session->set_flashdata('message', $this->flexi_auth->get_messages());\n\n ($response) ? redirect('auth') : redirect('auth/resend_activation_token');\n } else {\n $this->data['message'] = validation_errors('<p class=\"error_msg\">', '</p>');\n return FALSE;\n }\n }", "title": "" }, { "docid": "d76e3e213fb335fc6f0e20893cd03d42", "score": "0.5892981", "text": "function makeActivationCode() {\r\n\t\t$code = $this->randomString(20);\r\n\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', 'fe_users', 'tx_hoicommunity_activation=\"'.$code.'\"');\r\n\t\tif ($GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {\r\n\t\t\t$this->makeActivationCode();\r\n\t\t} else {\r\n\t\t\treturn $code;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "29b2eba792827fc8eca4a49cff492cb9", "score": "0.58746487", "text": "public function testGetConfirmationCode()\n {\n $company = $this->getCompany();\n $id = \\PHPUnit_Framework_Assert::readAttribute($company, 'id');\n $name = \\PHPUnit_Framework_Assert::readAttribute($company, 'name');\n $salt = 'SomeRandomSalt';\n\n $confirmationCode = sha1($id . $salt . $name);\n $this->assertEquals($confirmationCode, $company->getConfirmationCode($salt));\n }", "title": "" }, { "docid": "cb915e9cc2412ede90db640d041233d7", "score": "0.58610255", "text": "public function restablecePass()\n {\n /* ENVIO DEL EMAIL */\n $email = $_REQUEST[\"email\"] ?? \"\";\n if ($email != \"\") { //mail correcto pedimos token y mandamos email\n //obtengo el token con el mail, para insertarlo en el email\n $token = (new Orm)->obtenerNumValidacion($email);\n $emaildestino = $email;\n include('emailcfg/enviar-recuPass.php');\n $data = [\"email\" => $email];\n echo Ti::render(\"view/passForget/avisoEnvioAlCorreo.phtml\", $data);\n } else { //si el mail esta vacio retorna al captcha\n echo Ti::render(\"view/passForget/passOlvidada.phtml\");\n }\n }", "title": "" }, { "docid": "60c3aef9de4680ebf2e76bc0f61aa58c", "score": "0.58516055", "text": "function createConfirmationCode($request){\n $confirmationCode = new ConfirmationCode();\n $confirmationCode->unique_id = $request->unique_id;\n $confirmationCode->user_unique_id = $request->user_unique_id;\n $confirmationCode->token = $request->token;\n $confirmationCode->type = $request->type;\n $confirmationCode->status = 'un-used';\n $confirmationCode->save();\n return $confirmationCode;\n }", "title": "" }, { "docid": "1a41d867cbcfb36bcacd912cbed3fdbf", "score": "0.585102", "text": "public function confirmEmailAgain() {\n\n\t\t$user = auth()->user();\n\n\t\t$user->notify(new EmailVerification($user));\n\n\t\treturn back()->withSuccess('Email verification code sent to your email. Please check spam folder to.');\n\t}", "title": "" }, { "docid": "adefc23c85c6525bc02af1d1a2d25ba6", "score": "0.5823183", "text": "public function confirmemail(){\n\t\t$token = $this->uri->segment(2);\n\t\t\n\t\t$verification_status = $this->HM->userEmailVerify($token);\n\t\t$is_token_valid = $verification_status[\"is_token_valid\"];\n\t\tif($is_token_valid==\"0\")\n\t\t{\n\t\t\t$data[\"msg\"] = \"Invalid Url/Token\";\n\t\t\t$data[\"status\"] = \"1\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$is_already_verify = $verification_status[\"is_already_verify\"];\n\t\t\tif($is_already_verify==\"1\")\n\t\t\t{\n\t\t\t\t$data[\"msg\"] = \"Your E-mail ID has already been Verified\";\n\t\t\t\t$data[\"status\"] = \"2\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$data[\"msg\"] = \"Your E-mail ID has been Successfully Verified\";\n\t\t\t\t$data[\"status\"] = \"3\";\n\t\t\t\t$email = $verification_status[\"email\"];\n\t\t\t\t$name = $verification_status[\"name\"];\n\t\t\t\t$this->sucessfullyVerifiedEmail($name,$email);\n\t\t\t}\n\t\t}\n\t\t$this->load->view($this->_confirm_email,$data);\n\t}", "title": "" }, { "docid": "f7ed409368631cd45a0bc6f073223dfa", "score": "0.5816842", "text": "public function resend_code(User $user)\n {\n //sed email method use in production\n Mail::to($user)->send(new forgotPasswordMail($user));\n\n return $this->showMessage('The verification code was resend');\n\n }", "title": "" }, { "docid": "8b0110bcf27cec8c4991d6c84ee6e653", "score": "0.5797336", "text": "protected function confirm()\r\n\t{\t\t\r\n\t\t$this->getOwner()->status = Order::CONFIRMED;\r\n\t\t$this->getOwner()->save(false);\r\n\t}", "title": "" }, { "docid": "ccfa78e1bc289ba601f8131f25c1e83f", "score": "0.57956463", "text": "function confirmation() {\n\t\t$confirmation = array (\n\t\t\t'title' => $this->title . ': ' . $this->cc_card_type,\n\t\t\t'fields' => array (\n\t\t\t\tarray ( 'title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_OWNER,\n\t\t\t\t\t\t'field' => $this->field_0 ),\n\t\t\t\tarray (\t'title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_NUMBER,\n\t\t\t\t\t\t'field' => str_repeat('X', (strlen($this->cc_card_number) - 4)) . substr($this->cc_card_number, -4)\t),\n\t\t\t\tarray (\t'title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_EXPIRES,\n\t\t\t\t\t\t'field' => strftime('%B, %Y', mktime(0, 0, 0, $this->field_2, 1, '20' . $this->field_3)))\n\t\t\t));\n\n\t\treturn $confirmation;\n\t}", "title": "" }, { "docid": "fb7054ab02f5e8dfff1ba91f5ccc4ea9", "score": "0.57924324", "text": "function give_resend_donation_receipt( $data ) {\n\n\t$purchase_id = absint( $data['purchase_id'] );\n\n\tif ( empty( $purchase_id ) ) {\n\t\treturn;\n\t}\n\n\tif ( ! current_user_can( 'edit_give_payments', $purchase_id ) ) {\n\t\twp_die( esc_html__( 'You do not have permission to edit payments.', 'give' ), esc_html__( 'Error', 'give' ), array( 'response' => 403 ) );\n\t}\n\n\tgive_email_donation_receipt( $purchase_id, false );\n\n\twp_redirect( add_query_arg( array(\n\t\t'give-message' => 'email_sent',\n\t\t'give-action' => false,\n\t\t'purchase_id' => false\n\t) ) );\n\texit;\n}", "title": "" }, { "docid": "bd8b449ae5099ca28b9f40d106c94845", "score": "0.5791769", "text": "function activate_customer($ppid, $userName, $barcode, $json) {\n $result = '';\n if ($json['services']['membership'] == 'Yes' ) { \n //change some things in WMS\n $wms_ok = wms_activate($ppid, $barcode, $json);\n //if (!$wms_ok) ....\n }\n\n //update customer in databse\n $code = '0';\n $mysqli = new mysqli(JE_DB_HOST,JE_DB_USER,JE_DB_PW,JE_DB_NAME);\n if (!$mysqli) {\n $result = FALSE;\n }\n else {\n //now change record\n $code = hash('sha256',time().time());\n $q = \"UPDATE \".JE_TABLE_NAME.\" SET \".\n \"activationCode='$code', \".\n \"activated=TRUE,\".\n \"datetime=NOW()\".\n \" WHERE userName='\".$userName.\"'\";\n $result = $mysqli->query($q);\n }\n mysqli_close($mysqli);\n\n if ($result === TRUE) {\n send_mail('confirmation',$json, array('barcode' => $barcode,'code' => $code));\n if ($json['services']['receiveNews'] =='Yes') send_mail('procurios',$json, array('barcode' => $barcode,'code' => $code));\n }\n return $result;\n}", "title": "" }, { "docid": "5ee767b5f301bf6c2b25eb9420774db5", "score": "0.57893544", "text": "function sl_confirm_company_email($admin, $userid, $token)\n{\n /* Get the user record for the admin\n */\n $res = mysql_query(\"select id, company_id, company_admin from \".USERS.\" where username='\".mysql_real_escape_string($admin).\"'\");\n $admin_row = mysql_fetch_assoc($res);\n\n /* Fail if the 'admin' isn't a valid user or isn't actually an admin.\n */\n if (!$admin_row || !$admin_row['company_admin']) return 'NOT_ADMIN';\n\n /* Get the user record for the user\n */\n $res = mysql_query(\"select username,company_id,company_confirm from \".USERS.\" where id='\".mysql_real_escape_string($userid).\"'\");\n $user_row = mysql_fetch_assoc($res);\n if (!$user_row) return 'NOT_USER';\n \n /* Fail if the user has no company or if their company is different than the admin's.\n */\n if ($user_row['company_id'] != $admin_row['company_id'] || $user_row['company_confirm'] != 0) return 'NOT_COMPANY';\n\n /* Verify that the confirmation link wasn't forged.\n */\n if ($token != urlencode(sha1(SALT.$user_row['username']))) return 'INVALID_TOKEN';\n \n /* Confirm the user in the company.\n */\n mysql_query(\"UPDATE \".USERS.\" SET company_confirm='\".$admin_row['id'].\"' WHERE id=\".mysql_real_escape_string($userid));\n \n // Send an email to the user to confirm his email address\n $to = $user_row['username'];\n $confirmUrl = SECURE_SERVER_URL . \"confirmation.php?cs=\".base64_encode($token).\"&str=\" . base64_encode($to);\n sendTemplateEmail($to, 'confirmation', array('url' => $confirmUrl));\n\n return 'OK';\n}", "title": "" }, { "docid": "86b6cbfff9874e172f0dc3fac57d09f8", "score": "0.5785236", "text": "function ResetForgotCode($code='')\n\t{\n\t\tif ($this->userid <= 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ($code == '') {\n\t\t\treturn false;\n\t\t}\n\n\t\t$query = \"UPDATE \" . SENDSTUDIO_TABLEPREFIX . \"users SET forgotpasscode='\" . $this->Db->Quote($code) . \"' WHERE userid='\" . (int)$this->userid . \"'\";\n\t\treturn $this->Db->Query($query);\n\t}", "title": "" }, { "docid": "81a1148f3d9789ef17680a20b10418ff", "score": "0.5776241", "text": "public function getConfirm( $code )\n {\n $user = User::where('confirmation_code', '=', $code)->get()->first();\n if( $user ) {\n $user->confirmed = 1;\n $user->save();\n return redirect()->route(route_lang('auth/login'))->with( 'notice', 'Confirmed successfully' );\n } else {\n return Redirect::to(route_lang('auth/login'))\n ->with( 'notice', 'wrong_confirmation' );\n }\n\n }", "title": "" }, { "docid": "1f11d0582bf1574319136ac17cc572ae", "score": "0.5766475", "text": "function pre_confirmation_check() {\r\n\r\n }", "title": "" }, { "docid": "9537b1ce446e93b16ffdab1d79bceeea", "score": "0.5765073", "text": "public static function insert_confirmation () \n {\n $inputs = input::post_is_object();\n\n $values = $inputs->value['values'];\n $ids = intval( $values['id'] );\n\n $confirmation = serialize( $inputs->value['confirmation'] );\n\n self::updates( self::$tbls['gcf'],\n\n array( \n 'confirmation' => $confirmation,\n ), \n\n array( 'id' => $ids ) ,\n\n array( '%s' ),\n\n array( '%d' )\n );\n }", "title": "" }, { "docid": "7bba26d578f2eef5874c7c6bc78af536", "score": "0.57615954", "text": "public function sendConfirmationEmail() {\n\t\t// TODO: Implement email sending\n\t}", "title": "" }, { "docid": "e1e61af687f712efbf920a8e807fdae3", "score": "0.57591677", "text": "public function sendVerificationCode() {\n require_once \"../vendor/autoload.php\";\n\n //PHPMailer Object\n $mail = new PHPMailer;\n\n //From email address\n $mail->From = \"noreply@seeus.com\";\n $mail->FromName = \"SEEUS EMU\";\n\n //To address\n $mail->addAddress($this->email);\n\n //Send HTML or Plain Text email\n $mail->isHTML(true);\n\n $mail->Subject = \"SEEUS Verification Code\";\n $mail->Body = \"<h1>SEEUS</h1><p>Here is your verification code: <strong>\" . $this->userInfo['VerificationCode'] . \"</strong>\";\n $mail->AltBody = \"This is the plain text version of the email content\";\n\n if ($mail->send()) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "cdee0b9187bba194940004c1d3c91158", "score": "0.5755859", "text": "private function _generateCallback()\n {\n $payCode = ucfirst($this->_code);\n $callbackTid = \"setNnCallbackTid\" . $payCode;\n $callbackOrderNo = \"setNnCallbackOrderNo\" . $payCode;\n\n $request = $this->buildRequest(Novalnet_Payment_Model_Config::POST_CALLBACK);\n $response = $this->postRequest($request);\n $this->logNovalnetTransactionData($request, $response, $response->getTid());\n if ($response->getStatus() == Novalnet_Payment_Model_Config::RESPONSE_CODE_APPROVED) {\n $this->_getMethodSession()\n ->$callbackTid(trim($response->getTid()))\n ->setNnTestMode(trim($response->getTestMode()))\n ->setNnCallbackTidTimeStamp(time())\n ->setOrderAmount($request->getAmount())\n ->setNnCallbackSuccessState(true)\n ->$callbackOrderNo(trim($response->getOrderNo()))\n ->setPaymentResData($response)\n ->setPaymentReqData($request);\n if ($this->_getConfigData('callback') == 3) {\n $text = $this->helper->__('Please reply to the e-mail');\n } else {\n $text = $this->helper->__('You will shortly receive a PIN by phone / SMS. Please enter the PIN in the appropriate text box');\n }\n } else {\n $text = $this->helper->htmlEscape($response->getStatusDesc());\n }\n $this->showException($text, false);\n }", "title": "" }, { "docid": "66adcbce3e05ec9f81a75bdfb657a6b9", "score": "0.57509524", "text": "public function sendActivationCode($name, $email, $activationCode) {\n $toName = \"{$name}\";\n $to = \"{$email}\";\n $subject = 'Account Activation';\n $message = \"Thank your for registering at nature.dev. To activate your account please click the link below.\\n\\n\";\n $message .= 'http://nature.dev/activate/index?' . 'email=' . urlencode($email) . '&activationCode=' . $activationCode;\n $fromName = 'Admin';\n $from = 'admin@bookstore.com';\n $this->mailer->FromName = $fromName;\n $this->mailer->From = $from;\n $this->mailer->AddAddress($to, $toName);\n $this->mailer->Subject = $subject;\n $this->mailer->Body = $message;\n if (!$this->mailer->Send()) {\n $this->session->flash('error', 'You could not be registered due to system error. We apologize for any inconvenience.');\n $this->request->redirect();\n } else {\n $this->session->flash('success', 'Thank you for registering! A confirmation email with activation code has been send to your email address.');\n $this->request->redirect();\n }\n }", "title": "" }, { "docid": "ce9928bd44d4041f8eff6ef288a4e940", "score": "0.5746436", "text": "function ringcaptcha_user_settings_add_form_submit($form, &$form_state, $account = NULL) {\r\n if (!$account) {\r\n $account = user_load($form_state['values']['uid']);\r\n }\r\n $account = ringcaptcha_user_send_confirmation($account, $form_state['values']['number']);\r\n $form_state['values']['account'] = $account;\r\n $form_state['rebuild'] = TRUE;\n drupal_set_message(t(\"A confirmation code has been sent to your mobile device\"), 'status');\r\n}", "title": "" }, { "docid": "00ae2263b987f1f9a40e82b7b634c7b8", "score": "0.5741409", "text": "public function bevestigenEmailCode($code)\n {\n\n // gebruikers ophalen bij die $code\n $user = getUsersByCode($code);\n\n if ($user === false) {\n echo \"Onbekende gebruikers of a bevestigd?\";\n exit;\n }\n //gebruiker activereet $code een maakt ie leeg in de db (NULL)\n confirmAccount($code);\n\n $message = \"Bedankt je account is nu bevestigd en je kunt inloggen.\";\n echo \"<script type='text/javascript'>alert('$message');</script>\";\n\n $template_engine = get_template_engine();\n echo $template_engine->render('homepage');\n\n //bevestigings \n\n }", "title": "" }, { "docid": "f6ba9b8f701331d7ea1949b52f7a935c", "score": "0.5738502", "text": "function sl_send_company_confirm_email($id) {\n $company = '';\n\n $res = mysql_query(\"select username, company_id, company_admin, company_confirm from \".USERS.\" where id='\".$id.\"'\");\n if ($row = mysql_fetch_assoc($res)) {\n /* Confirmation is not necessary if:\n * The user has already been confirmed.\n */\n if (!empty($row['company_confirm'])) {\n return array('OK','CONFIRMED');\n }\n $user = $row['username'];\n $company_id = $row['company_id'];\n $is_admin = $row['company_admin'];\n\n /* Get the name of the company so we can include it in the email.\n */\n $res = mysql_query(\"select name from \".COMPANY.\" where id='\".$company_id.\"'\");\n if ($row = mysql_fetch_assoc($res)) {\n $company = $row['name'];\n } else {\n return array('ERROR', 'Could not load company record.');\n }\n\n /* The user is the company admin, we don't need to send an confirmation (but we do want the company name).\n */\n if ($is_admin) {\n return array('OK','IS_ADMIN', $company);\n }\n\n /* Get the company admin user record.\n */\n $res = mysql_query(\"select username from \".USERS.\" where company_id='\".$company_id.\"' and company_admin>='1'\");\n if ($row = mysql_fetch_assoc($res)) {\n\n $confirmUrl = SECURE_SERVER_URL . \"confirmation.php?company=1&id=$id&token=\" . urlencode(sha1(SALT . $user));\n\n /* Send an approval email to each admin.\n */\n $admins = array();\n do {\n $admins[] = $row['username'];\n } while ($row = mysql_fetch_assoc($res));\n\n sendTemplateEmail($admins, 'join_request', array(\n 'sender_nickname' => $user,\n 'company_name' => $company,\n 'url' => $confirmUrl,\n ));\n\n } else {\n return array('ERROR', 'Could not load company admin user record.');\n }\n } else {\n return array('ERROR', 'Could not load user record.');\n }\n\n return array('OK', 'SENT', $company);\n}", "title": "" }, { "docid": "037a0f54af6b8ad43237bda70202ced2", "score": "0.5732833", "text": "public function addEmailVerificationCode(){\n\t\t// Make a new code and set the expiration for 24 hours\n\t\t$newRandomCode = $this->generateRandomCode();\n\t\t$this->emailVerificationCodes[] = $newRandomCode;\n\n\t\treturn $newRandomCode;\n\t}", "title": "" }, { "docid": "c20eb899b65b690f4923d4d6954ca4a5", "score": "0.57262355", "text": "public function confirmRegistration(\\Gino\\Http\\Request $request) {\n\t\t\n \tLoader::import('auth', 'RegistrationRequest');\n\n $id = \\Gino\\cleanVar($request->GET, 'id', 'int');\n $code = \\Gino\\cleanVar($request->GET, 'code', 'string');\n\n $registration_request = new RegistrationRequest($id);\n\n if(!$registration_request->id) {\n throw new \\Gino\\Exception\\Exception404();\n }\n\n // gia confermato, vai al login\n if($registration_request->confirmed) {\n $request->session->auth_redirect = $this->_registry->router->link($this->_class_name, 'login');\n return new \\Gino\\Http\\Redirect($request->session->auth_redirect);\n }\n\n $headers = \"From: \".$this->_registry->sysconf->email_from_app . \"\\n\";\n $headers .= 'MIME-Version: 1.0'.\"\\n\";\n $headers .= 'Content-type: text/plain; charset=utf-8'.\"\\n\";\n\n // confirmed\n if($code == md5($registration_request->id.$registration_request->email)) {\n // conferma\n $registration_request->confirmed = 1;\n $registration_request->save();\n $profile = new RegistrationProfile($registration_request->registration_profile);\n\n if($profile->auto_enable) {\n // creazione utente\n $result = $this->createAndActivateUser($registration_request);\n\n if(!$result) {\n return Error::errorMessage(array('error' => sprintf(_('Si è verificato un errore nell\\'attivazione dell\\'utenza. Scrivere a %s'), $this->_registry->sysconf->email_admin)), $this->_home);\n }\n\n // mail amministratore\n $mail_object = sprintf(_('Registrazione nuovo utente | %s'), $this->_registry->sysconf->head_title);\n $mail_message = sprintf(_('L\\'utente %s %s si è appena registrato ed è stato attivato.'), $registration_request->firstname, $registration_request->lastname);\n mail($this->_registry->sysconf->email_admin, $mail_object, $mail_message, $headers);\n\n }\n else {\n // mail amministratore\n $mail_object = sprintf(_('Registrazione nuovo utente in attesa di attivazione | %s'), $this->_registry->sysconf->head_title);\n $mail_message = sprintf(_('L\\'utente %s %s si è appena registrato ed è in attesa di attivazione.'), $registration_request->firstname, $registration_request->lastname);\n mail($this->_registry->sysconf->email_admin, $mail_object, $mail_message, $headers);\n }\n }\n // not confirmed\n else {\n throw new \\Gino\\Exception\\Exception404();\n }\n\n $request->session->auth_redirect = 'home/';\n $view = new View($this->_view_dir, 'confirmation_result');\n $dict = array(\n 'registration_request' => $registration_request,\n 'profile' => $profile\n );\n $document = new \\Gino\\Document($view->render($dict));\n return $document();\n }", "title": "" }, { "docid": "b8a6dcb29f23376846602d73d7db06f8", "score": "0.57009834", "text": "public function sendPhoneVerificationNotification(): void;", "title": "" }, { "docid": "874624525ddaf418e916a84a1cbc3661", "score": "0.56973267", "text": "function changeWholesalerResetPassword2($argArrPOST) {\n $objCore = new Core();\n $varUsersWhere = \"pkWholesalerID ='\" . $_SESSION['sessUserInfo']['id'] . \"' \";\n $arrColumnAdd = array('CompanyPassword' => md5(trim($argArrPOST['frmNewCustomerPassword'])));\n\n $varCustomerID = $this->update(TABLE_WHOLESALER, $arrColumnAdd, $varUsersWhere);\n $arrUserList = $this->select(TABLE_WHOLESALER, array('CompanyName'), $varUsersWhere);\n\n\n $objTemplate = new EmailTemplate();\n $objCore = new Core();\n //pre($_SESSION);\n $varUserName = trim($_SESSION['sessUserInfo']['email']);\n $varFromUser = SITE_NAME;\n\n $name = $arrUserList[0]['CompanyName'];\n\n $varWhereTemplate = \" EmailTemplateTitle= 'Send Change Password to Wholesaler' AND EmailTemplateStatus = 'Active' \";\n\n $arrMailTemplate = $objTemplate->getTemplateInfo($varWhereTemplate);\n\n $varOutput = html_entity_decode(stripcslashes($arrMailTemplate[0]['EmailTemplateDescription']));\n $varPathImage = '<img src=\"' . SITE_ROOT_URL . 'common/images/logo.png\" >';\n\n $varSubject = str_replace('{SITE_NAME}', SITE_NAME, html_entity_decode(stripcslashes($arrMailTemplate[0]['EmailTemplateSubject'])));\n\n $varKeyword = array('{IMAGE_PATH}', '{NAME}', '{PASSWORD}', '{SITE_NAME}', '{USER_NAME}');\n\n $varKeywordValues = array($varPathImage, $name, $argArrPOST['frmNewCustomerPassword'], SITE_NAME, $argArrPOST['wid']);\n\n $varOutPutValues = str_replace($varKeyword, $varKeywordValues, $varOutput);\n\n // Calling mail function\n\n\n $objCore->sendMail($varUserName, $varFromUser, $varSubject, $varOutPutValues);\n $this->insWholesalerForgotPWCode('', $varUserName);\n //\n //$objCore->setSuccessMsg(FRONT_END_PASSWORD_SUCC_CHANGE);\n return true;\n }", "title": "" }, { "docid": "03b5bdf102317cecf100425bcc4c8685", "score": "0.5693374", "text": "function ringcaptcha_user_settings_confirm_form_submit($form, &$form_state) {\r\n $account = user_load($form_state['values']['uid']);\r\n if ($form_state['clicked_button']['#value'] == t('Delete & start over')) {\r\n ringcaptcha_user_delete($account);\r\n $account = user_load($form_state['values']['uid'], TRUE);\r\n drupal_set_message(t('Your mobile information has been removed'), 'status');\r\n }\r\n else {\r\n $data = array(\r\n 'number' => $account->twilio_user['number'],\r\n 'status' => RINGCAPTCHA_USER_CONFIRMED,\r\n );\r\n $account = user_save($account, array('ringcaptcha' => $data), 'ringcaptcha');\r\n drupal_set_message(t('Your mobile number has been confirmed'), 'status');\r\n }\r\n $form_state['values']['account'] = $account;\r\n $form_state['rebuild'] = TRUE;\r\n}", "title": "" }, { "docid": "e0c5cc79fd7caa5494001ef6a14565a6", "score": "0.567505", "text": "function sendPaymentConfirmationEmail($success, $appointmentDetails)\n\t{\n\t\terror_log(\"inside sendPaymentConfirmationEmail...\\n\", 3, \"../logs/salonbook.log\");\n\t\n\t\tJLoader::register('SalonBookModelEmail', JPATH_COMPONENT_SITE.'/models/email.php');\n\t\t// error_log(\"Completed registering Email class \\n\", 3, \"../logs/salonbook.log\");\n\t\t\n\t\t// look up details and decide the contents of the message based on success/failure of the payment\n\t\t$mailer = new SalonBookModelEmail();\n\t\t// error_log(\"Created new SalonBookModelEmail instance \\n\", 3, \"../logs/salonbook.log\");\n\t\t\n\t\tif ( $mailer )\n\t\t{\n\t\t\t// check to see if the invoice is 'good' i.e. deposit was paid\n\t\t\tif ( $success )\n\t\t\t{\n\t\t\t\t$mailer->setSuccessMessage($appointmentDetails);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$mailer->setFailureMessage($appointmentDetails);\n\t\t\t}\n\t\n\t\t\t$mailer->sendMail();\n\t\t}\n\t}", "title": "" }, { "docid": "b03aa310ead13e26980731b22f147898", "score": "0.56721073", "text": "private function confirmation()\n {\n $boolConfirmation = false;\n\n // RETURN if form is confirmed\n if ( $this->piVars[ 'confirm' ] )\n {\n $boolConfirmation = true;\n return $boolConfirmation;\n }\n // RETURN if form is confirmed\n // Get the cHash. Important in case of realUrl and no_cache=0\n $cHash_calc = $this->zz_getCHash( 'tx_quickshopinstaller_pi1[confirm]=1&submit=' . $this->pi_getLL( 'confirm_button' ) );\n\n // Confirmation form\n $this->arrReport[] = '\n <h2>\n ' . $this->pi_getLL( 'confirm_header' ) . '\n </h2>\n <p>\n ' . $this->arr_icons[ 'info' ] . $this->pi_getLL( 'confirm_prompt_createBeGroup' ) . '<br />\n ' . $this->arr_icons[ 'info' ] . $this->pi_getLL( 'confirm_prompt_createPages' ) . '<br />\n ' . $this->arr_icons[ 'info' ] . $this->pi_getLL( 'confirm_prompt_createPlugins' ) . '<br />\n ';\n if ( $this->markerArray[ '###INSTALL_CASE###' ] == 'install_all' )\n {\n $this->arrReport[] = '\n ' . $this->arr_icons[ 'info' ] . $this->pi_getLL( 'confirm_prompt_createContent' ) . '<br />\n ';\n }\n $this->arrReport[] = '\n ' . $this->arr_icons[ 'info' ] . $this->pi_getLL( 'confirm_prompt_createTs' ) . '<br />\n ' . $this->arr_icons[ 'info' ] . $this->pi_getLL( 'confirm_prompt_createPowermail' ) . '<br />\n ' . $this->arr_icons[ 'info' ] . $this->pi_getLL( 'confirm_prompt_createProducts' ) . '<br />\n ' . $this->arr_icons[ 'info' ] . $this->pi_getLL( 'confirm_prompt_createFiles' ) . '<br />\n ' . $this->arr_icons[ 'info' ] . $this->pi_getLL( 'confirm_prompt_createContent' ) . '<br />\n ' . $this->arr_icons[ 'info' ] . $this->pi_getLL( 'confirm_prompt_consolidate' ) . '<br />\n </p>\n <div style=\"text-align:right\">\n <form name=\"form_confirm\" method=\"POST\">\n <input type=\"hidden\" name=\"tx_quickshopinstaller_pi1[confirm]\" value=\"1\" />\n <!--<input type=\"hidden\" name=\"cHash\" value=\"' . $cHash_calc . '\" />-->\n <input type=\"hidden\" name=\"cHash\" value=' . $cHash_calc . ' />\n <fieldset id=\"fieldset_confirm\" style=\"border:1px solid #F66800;padding:1em;\">\n <legend style=\"color:#F66800;font-weight:bold;padding:0 1em;\">\n ' . $this->pi_getLL( 'confirm_header' ) . '\n </legend>\n <input type=\"submit\" name=\"submit\" value=\" ' . $this->pi_getLL( 'confirm_button' ) . ' \" />\n </fieldset>\n </form>\n </div>';\n // Confirmation form\n\n $boolConfirmation = false;\n return $boolConfirmation;\n }", "title": "" }, { "docid": "50ae048a0c0503c1a8ca8d4156491a68", "score": "0.5671622", "text": "public function confirm()\n {\n Yii::$app->get('hiart')->disableAuth();\n try {\n $confirmation = Contact::perform('confirm-email', [\n 'confirm_data' => Yii::$app->request->get(),\n ]);\n\n return [\n 'success' => true,\n ];\n } catch (\\hiqdev\\hiart\\ResponseErrorException $e) {\n return [\n 'success' => false,\n 'message' => $e->getMessage(),\n ];\n }\n }", "title": "" }, { "docid": "818f8387126aa8976a61405f46838b33", "score": "0.5671584", "text": "private function sendMailConfirmEmployee($mail, $name, $code,$pass)\n {\n\n $content=$name.' 様<br><br>';\n $content=$content.'この度は、'.self::APP_NAME.' へのお申込み、誠にありがとうございます。 <br>'; \n $content=$content.'<p style=\"width:100%; max-width:600px;text-align: justify;\">下記URLより、本登録をお願い致します。<br>'.'<a style=\"width:100%; max-width:500px\" href=\"'.'https://ntg-center.000webhostapp.com/user/confirm/'.$code.'\">https://ntg-center.000webhostapp.com/user/confirm/'.$code.'</a>'.'</p>';\n $content=$content.'<p style=\"width:100%; max-width:600px;text-align: justify;\">アカウント:<br>メール:<b>'.$mail.'</b><br>パスワード:<b>'.$pass.'</b></p>';\n $content=$content.'※登録URLが折り返されている場合は、1行につなげてください。<br>※上記アドレスの有効期限は1時間となっております。<br>それ以上経過してしまった場合は、再度仮登録手続きを行ってください。<br><br>---------------------------------';\n $content=$content.'<p>このメールは送信専用です。<br>ご返信いただきましても、対応いたしかねます。<br>お問い合わせは下記リンクよりお願いいたします。<br>URL: http://call-center.jp/user/faq</p>';\n $content=$content.'<p>---------------------------------</p>';\n $content=$content.'<p>Hi '.$name.',<p>';\n $content=$content.'<p style=\"width:100%; max-width:600px;\">Your new Call center account is registered to this email address. To continue using your new '.self::APP_NAME.' account, you must verify this email address by clicking on this link below:<br>'.'<a style=\"width:100%; max-width:600px\" href=\"'.'https://ntg-center.000webhostapp.com/user/confirm/'.$code.'\">https://ntg-center.000webhostapp.com/user/confirm/'.$code.'</a>'.'</p>';\n $content=$content.'<p style=\"width:100%; max-width:600px;text-align: justify;\">Your account:<br>Email:<b>'.$mail.'</b><br>Password:<b>'.$pass.'</b></p>';\n $content=$content.'Thank you,<br>The '.self::APP_NAME.' Team';\n\n $email = new Email('default');\n $email->setFrom([self::MAIL_FROM => self::APP_NAME])\n ->emailFormat('html')\n ->setTo($mail)\n ->setSubject('Please Verify Your Email With '.self::APP_NAME)\n ->send($content);\n }", "title": "" }, { "docid": "0319d2594f9287eb7ab0218420855669", "score": "0.56692076", "text": "public function deleteVerifyRequest($reset_code) {\r\n // insert query\r\n $stmt = $this->conn->prepare(\"DELETE FROM activate_user WHERE uniq_hash = ?\");\r\n $stmt->bind_param(\"s\", $reset_code);\r\n $result = $stmt->execute();\r\n $stmt->close();\r\n // Check for successful insertion\r\n if ($result) {\r\n // User successfully inserted\r\n return true;\r\n } else {\r\n // Failed to create user\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "19850c13323c3b2f30a7f11aff5fb636", "score": "0.566696", "text": "private function _sendUserResetAccountEmail($firstname,$useremail) {\n\n #############################= Send User Registration Email =##########################\n $fromEmail = $this->getAdminEmailID();\n $subject = \"Congratulation! Your Account have been reactivated.\";\n $message = '';\n $message .='<tr>';\n $message .='<td height=\"5\" style=\"font-size:13px; color:#2c1f14; line-height:5px; padding-bottom:10px;\">Hi ' . @$firstname . ',</td>';\n $message .='</tr>';\n $message .='<tr>';\n $message .='<td style=\"font-size:13px; color:#2c1f14; line-height:18px; padding-bottom:10px;\">Congratulations! your palcura account have been reactivated. </td>';\n $message .='</tr>';\n /*$message .='<tr>';\n $message .='<td height=\"5\"></td>';\n $message .='</tr>';\n $message .='<tr>';\n $message .='<td align=\"left\">';\n $message .='<table width=\"287\" border=\"0\" bgcolor=\"#2c1f14\" cellspacing=\"1\" cellpadding=\"6\" style=\" color:#2c1f14;\">';\n $message .='<tr bgcolor=\"#2c1f14\">';\n $message .='<td colspan=\"2\" style=\"border-top:#203367 solid 0px; font-size:14px; font-weight:400; color:#ffffff; text-transform:capitalize; padding:8px;\">Login details</td>';\n $message .='</tr>';\n $message .='<tr bgcolor=\"#ffffff\">';\n $message .='<td width=\"100\" >Email</td>';\n $message .='<td width=\"270\" >' . @$postArr['email'] . '</td>';\n $message .='</tr>';\n $message .='<tr bgcolor=\"#ffffff\">';\n $message .='<td>Password</td>';\n $message .='<td >' . @$postArr['password'] . '</td>';\n $message .='</tr>';\n $message .='</table>';\n $message .='</td>';\n $message .='</tr>';*/\n $message .='<tr>';\n $message .='<td height=\"15\"></td>';\n $message .='</tr>';\n\n $mail = Yii::$app->mailer->compose(['html' => 'layouts/mail'], ['content' => $message, 'subject' => $subject])\n ->setFrom([$fromEmail=>'Palcura'])\n ->setTo($useremail)\n ->setSubject($subject)\n ->send();\n return $mail;\n ###########################################################################################\n }", "title": "" }, { "docid": "107f33353e88491e48076e29bf3fd5e6", "score": "0.56653404", "text": "function generateActivationCode(){\n\ttry\n\t{\n\t\t// Create a 64char code\n\t\t$code = hash('sha256', mt_rand());\n\n\t\t// Check if code has already been used\n\t\t// If it has, continue making more codes until we find one\n\t\t// that hasn't been used yet.\n\t\t// If it has not been used, return the code\n\t\tif(activationCodeExists($code)){\n\t\t\t$newcode = generateActivationCode();\n\t\t\treturn $newcode;\n\t\t} else {\n\t\t\treturn $code;\n\t\t}\n\t}\n\tcatch (PDOException $e)\n\t{\n\t\t$error = 'Error generating user Activation Code: ' . $e->getMessage();\n\t\tinclude_once $_SERVER['DOCUMENT_ROOT'] . '/includes/error.html.php';\n\t\t$pdo = null;\n\t\texit();\n\t}\n}", "title": "" }, { "docid": "a3296c0bf888f8328765743bc93973c2", "score": "0.5664704", "text": "private function sendRegistrationConfirmation($email,$token) {\n require_once(\"PHPMailer.php\");\n //Email Text\n $content = 'Über diese Emailadresse wurde eine Registrierungsanfrage an das interne Benutzersystem des Heinrich-Suso-Gymnasiums \n gesendet. Ihre Registrierung können Sie mit folgendem Link abschließen: <a href=\"https://www.suso.schulen.konstanz.de/intern/index.php?type=confirm&tkn='.$token.'\">Registrierung abschließen</a>.<br>\n Wenn Sie den link nicht aus Ihrem Email Programm heraus öffnen können, kopieren Sie bitte die folgende Zeile und fügen Sie diese in die \n Adresszeile Ihres Browsers ein: <br><br>\n https://www.suso.schulen.konstanz.de/intern/index.php?type=confirm&tkn='.$token.\n '<br> Dieser Link ist 24h aktiv!<br><br> Sollten Sie diese Registrierung nicht getätigt haben oder diese versehentlich mit Ihrem Email \n Konto erfolgt sein, können Sie diese Nachricht ignorieren.<br><br><b>Diese Email wurde automatisch vom System versandt. Bitte antworten Sie \n nicht auf diese Email.';\n \n \n //sending emails\n $phpmail = new PHPMailer();\n $phpmail->setFrom(\"noreply@suso.konstanz.de\", \"Suso-Intern\");\n\t\t$phpmail->CharSet = \"UTF-8\";\n\t\t$phpmail->isHTML();\n\t\t$phpmail->AddAddress($email);\n\t\t$phpmail->Subject = date('d.m.Y - H:i:s') . \" Suso-Intern Ihre Registrierungsanfrage\";\n\t\t$phpmail->Body = $content;\n\t\t\t\n\t\t$send = true;\n\t\t\n\t\t//Senden\n\t\tif (!$phpmail->Send()) {\n\t\t\t$send = false;\n\t\t} \n\t\t\n\t\treturn $send;\n }", "title": "" }, { "docid": "f01a14da2b6d78afd3ebe5da8d29d921", "score": "0.5662393", "text": "public function requestaCanceladmin()\n\t{\n\t\t$datas = self::$data;\n\t\t$this->create_history($this->input->post('contract_id'), 7, 'BY ADMIN : ' . html_escape($this->input->post('messagetoBuyer', true)), '');\n\t\t$this->change_contract_status($this->input->post('contract_id'), 7);\n\t\t$invoice_id \t= $this->database->_get_single_data('tbl_contracts', array('contract_id' => $contract_id), 'invoice_id');\n\t\t$this->_change_invoice_status($invoice_id, 3);\n\t\t$this->database->_update_to_table('tbl_disputes', array('status' => 1), array('contract_id' => $this->input->post('contract_id')));\n\t\tif ($datas['settings'][0]['email_notifications'] === '1') {\n\t\t\t$this->email_op->_user_email_notification('accept-cancel', $this->input->post('contract_id'));\n\t\t}\n\t\tredirect($this->session->userdata('url'));\n\t\treturn;\n\t}", "title": "" }, { "docid": "7cbe87afee5a2a05d7fe2678bc7199d6", "score": "0.56603944", "text": "function changeWholesalerResetPassword($argArrPOST) {\n //print_r($argArrPOST);die;\n $objCore = new Core();\n $varUsersWhere = \"CompanyEmail ='\" . $argArrPOST['wid'] . \"' \";\n $arrColumnAdd = array('CompanyPassword' => md5(trim($argArrPOST['frmNewWholesalerPassword'])));\n\n $varCustomerID = $this->update(TABLE_WHOLESALER, $arrColumnAdd, $varUsersWhere);\n $arrUserList = $this->select(TABLE_WHOLESALER, array('CompanyName'), $varUsersWhere);\n\n\n $objTemplate = new EmailTemplate();\n $objCore = new Core();\n //pre($_SESSION);\n $varUserName = trim(strip_tags($argArrPOST['wid']));\n $varFromUser = SITE_NAME;\n\n $name = $arrUserList[0]['CompanyName'];\n\n $varWhereTemplate = \" EmailTemplateTitle= 'Send Change Password to Wholesaler' AND EmailTemplateStatus = 'Active' \";\n\n $arrMailTemplate = $objTemplate->getTemplateInfo($varWhereTemplate);\n\n $varOutput = html_entity_decode(stripcslashes($arrMailTemplate[0]['EmailTemplateDescription']));\n $varPathImage = '<img src=\"' . SITE_ROOT_URL . 'common/images/logo.png\" >';\n\n $varSubject = str_replace('{SITE_NAME}', SITE_NAME, html_entity_decode(stripcslashes($arrMailTemplate[0]['EmailTemplateSubject'])));\n\n $varKeyword = array('{IMAGE_PATH}', '{NAME}', '{PASSWORD}', '{SITE_NAME}', '{USER_NAME}');\n\n $varKeywordValues = array($varPathImage, $name, $argArrPOST['frmNewWholesalerPassword'], SITE_NAME, $argArrPOST['wid']);\n\n $varOutPutValues = str_replace($varKeyword, $varKeywordValues, $varOutput);\n\n // Calling mail function\n//25d55ad283aa400af464c76d713c07ad\n // echo $varOutPutValues;die;\n $objCore->sendMail($varUserName, $varFromUser, $varSubject, $varOutPutValues);\n $this->insWholesalerForgotPWCode('', $varUserName);\n //\n //$objCore->setSuccessMsg(FRONT_END_PASSWORD_SUCC_CHANGE);\n return true;\n }", "title": "" }, { "docid": "ac623689091090c13bd7f621d521586f", "score": "0.5659927", "text": "public function resendactivationmail()\r\n\t{\r\n\t\t$this->_siteTitle = 'User Activation';\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(LOGGEDIN)\r\n\t\t\t{\r\n\t\t\t\tthrow new \\Exception\\NormalError('You are already logged in!');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$avoidspam = new \\Helper\\AvoidSpam('1 HOUR', 'activationmail');\r\n\t\t\tif($avoidspam -> CheckHits() !== false)\r\n\t\t\t{\r\n\t\t\t\tthrow new \\Exception\\NormalError('Activationmail has already been send.');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(!isset(\\Helper\\URL::Instance()->_2)\r\n\t\t\t|| !\\isValid::Numeric(\\Helper\\URL::Instance()->_2))\r\n\t\t\t{\r\n\t\t\t\tthrow new \\Exception\\NormalError('No or wrong UserID given - wrong request!');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$activationObj = $this->__loadModel('Register')->getActivationObj(\\Helper\\URL::Instance()->_2);\r\n\t\t\tif($activationObj -> activationDate != '0000-00-00 00:00:00')\r\n\t\t\t{\r\n\t\t\t\tthrow new \\Exception\\NormalError('Your account had been already activated!');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->__loadView('Register') -> sendActivationMail($activationObj -> ID, $activationObj -> nick, $activationObj -> email, $activationObj -> hash);\r\n\t\t\t$this->__loadView('Register') -> reSendActivationMail();\r\n\t\t\t\r\n\t\t\t$avoidspam -> Insert();\r\n\t\t}\r\n\t\tcatch(\\Exception\\NormalError $error)\r\n\t\t{\r\n\t\t\techo $error -> getErrorMessage();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8f357382e702cf0f1019b0c73d146896", "score": "0.5655673", "text": "public function codeContactConfirm($guid, $code)\n {\n return $this->post('/contacts/' . $guid . '/code', ['code' => $code]);\n }", "title": "" }, { "docid": "9eb772eb4839c9231fd5c09bde94a298", "score": "0.565189", "text": "function confirmInscription()\n {\n }", "title": "" }, { "docid": "168a4a7efb2711a1d534368229849a69", "score": "0.5649127", "text": "public function beforeValidationOnCreate(){\r\n // Timestamp the confirmaton\r\n $this->createdAt = time();\r\n\r\n // Generate a random confirmation code\r\n $this->code = preg_replace('/[^a-zA-Z0-9]/', '', base64_encode(openssl_random_pseudo_bytes(24)));\r\n\r\n // Set status to non-confirmed\r\n $this->reset = 'N';\r\n }", "title": "" }, { "docid": "37a7931ff5812bbdf420b19d51df78bb", "score": "0.5647482", "text": "function generateCancellationCode(){\n\ttry\n\t{\n\t\t// Create a 64char code\n\t\t$code = hash('sha256', mt_rand());\n\n\t\t// Check if code has already been used\n\t\t// If it has, continue making more codes until we find one\n\t\t// that hasn't been used yet.\n\t\t// If it has not been used, return the code\n\t\tif(cancellationCodeExists($code)){\n\t\t\t$newcode = generateCancellationCode();\n\t\t\treturn $newcode;\n\t\t} else {\n\t\t\treturn $code;\n\t\t}\n\t}\n\tcatch (PDOException $e)\n\t{\n\t\t$error = 'Error generating booking Cancellation Code: ' . $e->getMessage();\n\t\tinclude_once $_SERVER['DOCUMENT_ROOT'] . '/includes/error.html.php';\n\t\t$pdo = null;\n\t\texit();\n\t}\n}", "title": "" }, { "docid": "2827dc44cb036d9885774b74abde208d", "score": "0.56468827", "text": "function procForgotPass(){\n\n }", "title": "" }, { "docid": "2eed5b6d77656896e28f0271315312a6", "score": "0.5645143", "text": "function user_forgot_password_post()\n\t{\n\t\t$response = array('status' => true, 'message' => '', 'response' => array(), 'OTP' => array());\n\t\t$user_input = $this->client_request;\n\t\textract($user_input);\n\n $user_deleted = $this->ws_model->check_anyuser_deleted($mobile,$email_id);\n\n\t\tif(empty($user_deleted))\n\t\t{\n\t\t\t$response = array('status' => false, 'message' => 'Not a registered Mobile Number or email_id!', 'response' => array());\n\t\t\tTrackResponse($user_input, $response);\t\t\n\t\t\t$this->response($response);\n\t\t}\n\n\t\t$user_status = $this->ws_model->check_anyuser_status($mobile , $email_id);\n\n\t\tif(empty($user_status))\n\t\t{\n\t\t\t$response = array('status' => true, 'message' => 'Your account has been put on hold. Please contact Administrator!', 'response' => array());\n\t\t\tTrackResponse($user_input, $response);\t\t\n\t\t\t$this->response($response);\n\t\t}\n\n\tif($email_id!=''){ \n\t\t$user_details = check_user_input_exists($mobile,$email_id);\n\t\t//echo $this->db->last_query();\n\t\t$rand = mt_rand(100000, 999999);\n\t\t$otp = array('otp' => $rand);\n\t\tif(empty($user_details))\n\t\t{\n\t\t\t$response = array('status' => true, 'message' => 'Email Id not registered!', 'response' => array(), 'OTP' => array());\t\t\t\n\t\t}\n\t\telse{\n\t\t$config = Array(\n\t\t\t\t'protocol' => 'smtp',\n\t\t\t\t'smtp_host' => 'ssl://smtp.gmail.com',\n\t\t\t\t'smtp_port' => 465,\n\t\t\t\t'smtp_user' => 'mprabhudeepyy@gmail.com', \n\t\t\t\t'smtp_pass' => '9849763795ff', \n\t\t\t\t'mailtype' => 'html',\n\t\t\t\t'charset' => 'iso-8859-1',\n\t\t\t\t'wordwrap' => TRUE\n\t\t\t\t);\n\n\n\t\t\t$msg='Dear Customer '.$rand.' is your One Time Password for Education. Thank You.\n\t\t\t';\n\t\t\t$this->load->library('email', $config);\n\t\t\t$this->email->set_newline(\"\\r\\n\");\n\t\t\t$this->email->from('mprabhudeep@gmail.com','jj');\n\t\t\t$this->email->to($email_id);\n\t\t\t$this->email->subject('Reset Password');\n\t\t\t$this->email->message($msg);\n\t\t\tif($this->email->send())\n\t\t\t{\n\t\t\t\t$response = array('status' => true, 'message' => 'Data Fetched Successfully!', 'response' => $user_deleted, 'OTP' => $otp);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$response = array('status' => true, 'message' => 'Mail Sending Failed!', 'response' => array(), 'OTP' => array());\n //echo $this->email->print_debugger();\n\t\t\t}\n\t\t}\n\n\t} \n\telse{\n\t$user_details = check_user_input_exists($mobile,$email_id);\n\n\t\t//echo $this->db->last_query();\n\t\t$rand = mt_rand(100000, 999999);\n\t\t$otp = array('otp' => $rand);\n\t\tif(empty($user_details))\n\t\t{\n\t\t\t$response = array('status' => true, 'message' => 'Mobile Number not registered!', 'response' => array(), 'OTP' => array());\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$Message = 'Dear Customer '.$rand.' is your One Time Password for Education. Thank You.';\n\t\t\tSendSMS($mobile, $Message);\n\t\t\t$response = array('status' => true, 'message' => 'Data Fetched Successfully!', 'response' => $user_deleted, 'OTP' => $otp);\n\t\t}\t\t\n\t\t\n\t}\n\n\tTrackResponse($user_input, $response);\t\t\n\t\t$this->response($response);\n\n\t}", "title": "" }, { "docid": "d3400619de08164ec0fda3c03a7e393d", "score": "0.56447506", "text": "function generateResetPasswordCode(){\n\ttry\n\t{\n\t\t// Create a 64char code\n\t\t$code = hash('sha256', mt_rand());\n\n\t\t// Check if code has already been used\n\t\t// If it has, continue making more codes until we find one\n\t\t// that hasn't been used yet.\n\t\t// If it has not been used, return the code\n\t\tif(resetPasswordCodeExists($code)){\n\t\t\t$newcode = generateResetPasswordCode();\n\t\t\treturn $newcode;\n\t\t} else {\n\t\t\treturn $code;\n\t\t}\n\t}\n\tcatch (PDOException $e)\n\t{\n\t\t$error = 'Error generating booking Cancellation Code: ' . $e->getMessage();\n\t\tinclude_once $_SERVER['DOCUMENT_ROOT'] . '/includes/error.html.php';\n\t\t$pdo = null;\n\t\texit();\n\t}\n}", "title": "" }, { "docid": "dc2b06d55c7746b9cce22da44c5cd44e", "score": "0.56434476", "text": "public function sendMobileVerificationCode(Request $request)\n {\n $this->validate($request, [\n 'email' => 'required'\n ]);\n $email = trim($request->email);\n // verification the mobile number\n $count = DB::table('admin')->where('email',$email)->count();\n if($count == '0'){\n // mobile number not match\n Session::put('failed','Sorry ! Your Email Not Match. Try Again');\n return Redirect::to('mobileNumberVerify');\n exit();\n }else{\n // get this id\n $query = DB::table('admin')->where('email',$email)->first();\n $id = $query->id ;\n $log_email = $query->email ;\n // verification code sent on mobile\n // update recovery code\n $code = rand(999999,10000);\n $data = array();\n $data['recover_code'] = $code ;\n $update = DB::table('admin')->where('id',$id)->update($data);\n if($update){\n\n // send pin to voter email\n $data['subject'] = \"Welcome to E-Voting\";\n $data['contact_email'] = \"support@adslaravel.com\";\n //$data['name'] = \"Hellow Mr , \".$name;\n $data['contact_message'] = \" Your Forgot Recover PIN is \".$code;\n $data['to_email'] = $log_email;\n\n Mail::send( ['html' => 'emails.forgotPasswordMail'], $data, function($message) use ($data){\n $message->to($data['to_email']);\n $message->subject($data['subject']);\n $message->replyTo($data['contact_email']);\n\n });\n Session::put('succes','Thanks , Recovery Code Sent To Your Email Address Which '.$log_email.' Verify Code Enter Into Below Input Box');\n return Redirect::to('recoverPassword/'.$id);\n\n }else{\n Session::put('failed','Sorry ! Error Occured. Try Again');\n return Redirect::to('mobileNumberVerify');\n }\n } \n }", "title": "" }, { "docid": "74d782d0af4b7d6328215d807ee16562", "score": "0.56426865", "text": "function send_confirm_email($member){\r\n \r\n // Set up url\r\n $confirm_url = 'https://greenic.co/verify_account/'.$member['member_id'].'/'.$member['member_token'];\r\n \r\n // Email content\r\n $content = 'Confirm account<br/>';\r\n $content .= 'สวัสดีคุณ '.$member['member_firstname'].'<br/>';\r\n $content .= 'Go to confirm link<br/>';\r\n $content .= '<a href=\"'.$confirm_url.'\">'.$confirm_url.'</a>';\r\n \r\n // Prepare email\r\n $from = $this->config->item('smtp_user');\r\n //$to = 'tssniper3@gmail.com';\r\n //$to = 'tssniper3@greenic.co';\r\n $to = $member['member_email'];\r\n \r\n $this->email->set_newline(\"\\r\\n\");\r\n $this->email->from($from, 'Greenic');\r\n $this->email->to($to);\r\n $this->email->subject('Please Confirm Greenic Account');\r\n $this->email->message($content);\r\n \r\n // sent email\r\n $send_result = $this->email->send();\r\n return $send_result;\r\n }", "title": "" }, { "docid": "feac15a9a983c9127421f82e8a101f36", "score": "0.5642654", "text": "function confirmation() {\r\n\r\n }", "title": "" }, { "docid": "664f6cd5fc7819624c81e40b615db0d4", "score": "0.56402946", "text": "public function genrateForgotPasswordLink() {\n $txtEmail = $this->utility->encodeText($this->input->post('txtEmail'));\n $data ['where'] = [\n 'email' => $txtEmail\n ];\n $data ['table'] = TABLE_USER;\n $response = $this->isDuplicate($data);\n /* if email is registered in our system this condition will be exicute */\n if ($response === true) {\n unset($data);\n $data ['select'] = [\n 'first_name',\n 'last_name',\n 'id'\n ];\n $data ['table'] = TABLE_USER;\n $data ['where'] = [\n 'email' => $txtEmail\n ];\n $response = $this->selectRecords($data);\n $response = $response [0];\n\n /* always delete old links then gen. new token */\n unset($data);\n $data [\"where\"] = [\n \"user_id\" => $response->id\n ];\n $data [\"table\"] = TABLE_FORGOT_PASSWORD;\n $this->deleteRecords($data);\n\n unset($data);\n $dataToken = md5(time() . $txtEmail);\n $data ['insert'] ['user_id'] = $response->id;\n $data ['insert'] ['token'] = $dataToken;\n $data ['insert'] ['created_date'] = date('Y-m-d h:i:s');\n $data ['table'] = TABLE_FORGOT_PASSWORD;\n $insertionResponse = $this->insertRecord($data);\n /* if record not inserted then exicute this condition */\n if (!$insertionResponse) {\n return [\n 'danger',\n DEFAULT_MESSAGE\n ];\n }\n\n $data ['username'] = $response->first_name . ' ' . $response->last_name;\n $data ['link'] = SITE_URL . $this->myvalues->loginDetails ['controller'] . '/changePassword/' . $dataToken;\n $data ['message'] = $this->load->view('email_template/forgot_password_mail', $data, true);\n $data ['from_title'] = 'Verify user email address';\n $data ['subject'] = 'Verify user email address';\n $data [\"to\"] = $txtEmail;\n $this->utility->sendMailSMTP($data);\n return [\n 'success',\n 'An email sent to your registered email address please check email and change your password'\n ];\n } else {\n\n return [\n 'danger',\n 'Sorry! this email not found in our system'\n ];\n }\n }", "title": "" }, { "docid": "e0939f6cd20b025b9d20d14ee3b88073", "score": "0.56279325", "text": "function confirmationCodeGen() {\n\t $salt = \"0123456789\"; \n for($i=0;$i<10; $i++) { \n $num = mt_rand() % 10; \n $password .= substr($salt, $num, 1);\n }\n return $password; \n}", "title": "" }, { "docid": "d08bce79b4c48114024616c5df45156e", "score": "0.5623817", "text": "private function processPartnerRegistration($object) {\n $activate_code = $this->get('reg.password_gen')->generate(20);\n\n /* Then - partner code */\n $partner_code = $this->get('reg.password_gen')->generate(10);\n $object->setPartnerCode($partner_code);\n $object->setConfirmCode($activate_code);\n $object->setBalance(User::START_BALANCE);\n\n $this->em->persist($object);\n $this->em->flush();\n\n if ($email = $object->getEmail()) {\n $admin_email = 'admin@regpartner.com';\n $link = $this->generateUrl('partners_reg_activation', array('code' => $activate_code), true);\n\n $message = \\Swift_Message::newInstance()\n ->setSubject('Activation code for confirm registration')\n //TODO: send to config\n ->setFrom($admin_email)\n ->setTo($email)\n ->setBody('Your confirmation link: ' . $link)\n\n ;\n $this->get('mailer')->send($message);\n\n $message = \\Swift_Message::newInstance()\n ->setSubject('Your partner link')\n //TODO: send to config\n ->setFrom($admin_email)\n ->setTo($email)\n ->setBody('Your partner code: ' . $partner_code)\n\n ;\n $this->get('mailer')->send($message);\n }\n }", "title": "" }, { "docid": "bba9fd43683ac375a97ba01f4ebeb54c", "score": "0.561961", "text": "function fnVerificaRequisicion($sender=\"\", $params=\"\"){\n global $sContrato,$sIdUsuario;\n\n $parametros = explode(\"]\",$params);\n\n $iFolioRequisicion = ($parametros[0]==\"_\")?\"\":$parametros[0];\n $sNumeroOrden = ($parametros[1]==\"_\")?\"\":$parametros[1];\n $sendMail=false;\n $this->Memo1->Text=$sql =\"select lStatus from anexo_requisicion where sContrato='$sContrato' and iFolioRequisicion='$iFolioRequisicion' and sNumeroOrden='$sNumeroOrden'\";\n $rs = mysql_query($sql);\n if($rw = mysql_fetch_array($rs)){\n $lStatus = $rw[\"lStatus\"];\n }\n if($lStatus == \"Pendiente\"){\n $sql = \"update\n anexo_requisicion\n set\n lStatus='Verificado',\n sIdUsuarioVerifica='$sIdUsuario'\n where sContrato='$sContrato'\n and iFolioRequisicion='$iFolioRequisicion'\n and sNumeroOrden='$sNumeroOrden'\";\n mysql_query($sql);\n if(mysql_error()){\n $this->Memo1->Text=mysql_error();\n }else{\n $this->Memo1->Text=\"\";\n $sendMail=true;\n $this->kardex(\"Cambio de Status de Pendiente a Verificado de la Requisicion No $iFolioRequisicion\");\n }\n }else{\n $this->Memo1->Text=\"La requisicion ya estaba en Status Verificada !!\";\n }\n\n $this->tableRequisicion->setActive(false);\n $this->tableRequisicion->setFilter(\" sContrato='$sContrato' and lStatus<>'Autorizado'\");\n $this->tableRequisicion->setActive(true);\n if($sendMail){\n $sqlMail = \"select\n u.sNombre,\n u.sMail\n from usuarios u\n inner join\n contratosxusuario cu\n on (cu.sContrato='$sContrato'\n and u.sMail<>''\n and cu.sIdUsuario=u.sIdUsuario)\";\n $rs = mysql_query($sqlMail);\n while($rw = mysql_fetch_array($rs)){\n if($rw[\"sMail\"] !=\"\" ){\n if($rw[\"sNombre\"]==\"\")$rw[\"sNombre\"]=\" Usuario de Intelcode \";\n $msg=$rw[\"sNombre\"].\"<br>\n Le avisamos que existe una requisicion de materiales de almacen marcada como 'Verificada' registrada en el sistema.<br><br>\n\n No. Solicitud : $iFolioRequisicion<br>\n No. de Orden : $sNumeroOrden<br>\n Contrato : $sContrato<br><br>\n\n Por favor no responda este mensaje.\n \";\n $Subject=\"$sContrato, Requisiciones\";\n enviarCorreo($rw[\"sMail\"],$msg,$Subject,$mail = new phpmailer() );\n }\n }\n }\n }", "title": "" }, { "docid": "6ee254383b611808c2379e4088921065", "score": "0.5617076", "text": "function confirm_business($id)\n\t{\n\t\t// get the data\n $verification = $this->verification_model->get_verification($id);\n\t\t$user = $this->users_model->get_user_mail($verification['user']);\n\n\t\t// update verification status\n\t\t$this->verification_model->update_verification($id,\n\t\t\tarray(\n\t\t\t\t\"status\" => \"2\"\n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t// update user verification status\n\t\t$this->users_model->verify_user($verification['user'],\n\t\t\tarray(\n\t\t\t\t\"verifi_status\" => \"2\",\n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t$email_template = $this->emailtemplate_model->get_email_template(15);\n\t\t$sms_template = $this->smstemplate_model->get_sms_template(4);\n\t\t\t\n\t\t// variables to replace\n\t\t$site_name = $this->settings->site_name;\n\t\t$site_url = base_url('account/identification');\n\t\t\t\n\t\t$rawstring = $email_template['message'];\n\t\t\t\n\t\t// what will we replace\n\t\t$placeholders = array('[SITE_NAME]', '[URL_VERIFI]');\n\t\t\t\n\t\t$vals_1 = array($site_name, $site_url);\n\t\t\t\n\t\t//replace\n\t\t$str_1 = str_replace($placeholders, $vals_1, $rawstring);\n\n\t\t$this -> email -> from($this->settings->site_email, $this->settings->site_name);\n\t\t$this -> email -> to($user['email']);\n\t\t$this -> email -> subject($email_template['title']);\n\t\t\t\n\t\t$this -> email -> message($str_1);\n\n\t\t$this->email->send();\n\t\t\t\n\t\tif($sms_template['enable']) {\n\t\t\t// Twilio user number\n $to = '+'.$user['phone'];\n \t\t// Your Account SID and Auth Token from twilio.com/console\n $sid = $this->settings->twilio_sid;\n $token = $this->settings->twilio_token;\n $client = new Twilio\\Rest\\Client($sid, $token);\n \t\t\t\n \t\t// Use the client to do fun stuff like send text messages!\n $client->messages->create(\n // the number you'd like to send the message to\n $to,\n array(\n // A Twilio phone number you purchased at twilio.com/console\n 'from' => '+'.$this->settings->twilio_number,\n // the body of the text message you'd like to send\n 'body' => $sms_template['message']\n )\n );\n \t}\n\t\t\t\n\t\t$this->session->set_flashdata('message', lang('admin verification com_bus_suc'));\n\t\tredirect(site_url(\"admin/verification\"));\n\n\t}", "title": "" }, { "docid": "2efb5506a12eec97edb012890af6c3b2", "score": "0.5609447", "text": "function reset_password()\n {\n \n \n \n\t\t\t\t//Load email library\n\t\t\n //$this->load->library('encrypt');\n $customer = $this->get_customer_by_email($this->_username);\n //$customer=1;\n if(count($customer)>0)\n {\n \n if(empty($this->_new_password))\n {\n \n $new_password = random_string('alnum', 8);\n\t\t\t\t$sql = \"update customers set otp_verification='\".$new_password.\"', password_reset_date='\".date('Y-m-d').\"' WHERE email='\".$this->_username.\"' LIMIT 1\";\n\t\t\t\t$this->db->query($sql);\n\t\t\t\n\t\t\t\tif($this->_otp_method==1)\n\t\t\t\t{\n\t\t\t\t\t//$this->sendBSms($customer['mobile'],'<p>Your new password is :<br>'.$new_password.'<br/><br/><br/>From<br/>Team Ziqqi</p>');\n\t\t\t\t\t$verification_msg='Your verification code is : '.$new_password;\n\t\t\t \t $phone='00'.$customer['phone_code'].$customer['mobile'];\n\t\t\t\t\t $sendMob=$this->sendBSms($phone,$customer['phone_code'],$verification_msg);\n\t\t\t\t\t \n\t\t\t\t}else{\n\t\t\t\t\t$to = $this->_username;\n\t\t\t\t\t$from='info@idukaan.ae';\n\t\t\t\t\t$subject = 'Ziqqi : Password Reset';\n\t\t\t\t\t$message = '<p>Your vefication code is :<br>'.$new_password.'<br/><br/><br/>From<br/>Team Ziqqi</p>';\n\t\t\t\t\t// Always set content-type when sending HTML email\n\t\t\t\t\n\t\t\t\t\t\t$headers = \"From: \" . strip_tags($from) . \"\\r\\n\";\n \t\t\t$headers .= \"Reply-To: \". strip_tags($to) . \"\\r\\n\";\n \t\t\t$headers .= \"CC: info@idukaan.ae \\r\\n\";\n \t\t\t$headers .= \"MIME-Version: 1.0\\r\\n\";\n \t\t\t$headers .= \"Content-Type: text/html; charset=ISO-8859-1\\r\\n\";\n\t\t\n\t\t\t\t \t$send=mail($to,$subject,$message,$headers);\n\t\t\t\t\n\t\t\t\t}\n \n }else{\n if($this->_otp == $customer['otp_verification'])\n {\n $sql = \"update customers set password='\".sha1($this->_new_password.HASHTOKEN).\"', password_reset_date='\".date('Y-m-d').\"' WHERE email='\".$this->_username.\"' LIMIT 1\";\n\t\t\t\t $this->db->query($sql);\n\t\t\t\t return 'password_changed';\n\t\t\t\t exit;\n\t\t\t\t \n }else{\n return 'otp_missmatched';\n exit;\n }\n \n }\n\t\t \n return true;\n exit;\n }else{\n return false;\n exit;\n }\n }", "title": "" }, { "docid": "24b9351f21639e6f68069e86b60f448c", "score": "0.56090707", "text": "function fnRevisaCompra($sender=\"\", $params=\"\"){\n global $sContrato,$sIdUsuario;\n\n $parametros = explode(\"]\",$params);\n\n $iFolioPedido = ($parametros[0]==\"_\")?\"\":$parametros[0];\n $iFolioRequisicion = ($parametros[1]==\"_\")?\"\":$parametros[1];\n $sNumeroOrden = ($parametros[2]==\"_\")?\"\":$parametros[2];\n $sendMail=false;\n $sql =\"select sStatus,sIdUsuarioRevisaOper,sIdUsuarioRevisaAdmin from anexo_pedidos\n where sContrato='$sContrato'\n and iFolioRequisicion='$iFolioRequisicion'\n and iFolioPedido='$iFolioPedido'\n and sNumeroOrden='$sNumeroOrden'\";\n $rs = mysql_query($sql);\n if(mysql_error()){\n $this->Memo1->Text=mysql_error();\n }else{\n $this->Memo1->Text=\"\";\n }\n if($rw = mysql_fetch_array($rs)){\n $lStatus = $rw[\"sStatus\"];\n $sIdUsuarioRevisaOper = $rw[\"sIdUsuarioRevisaOper\"];\n $sIdUsuarioRevisaAdmin = $rw[\"sIdUsuarioRevisaAdmin\"];\n }\n\n if($lStatus == \"Pendiente\"){\n if($sIdUsuarioRevisaOper!=\"\" ){\n $this->Memo1->Text=\"Ya estaba Verificado por la Gerencia de Operaciones!!\";\n }else{\n if($sIdUsuarioRevisaAdmin!=\"\"){\n $sql = \"update\n anexo_pedidos\n set\n sStatus='Revisado'\n where sContrato='$sContrato'\n and iFolioRequisicion='$iFolioRequisicion'\n and iFolioPedido='$iFolioPedido'\n and sNumeroOrden='$sNumeroOrden'\";\n mysql_query($sql);\n if(mysql_error()){\n $this->Memo1->Text=mysql_error();\n }else{\n $this->Memo1->Text=\"\";\n $this->kardex(\"Cambio de Status de Pendiente a Revisado de la Orden de Compra No $iFolioPedido\");\n }\n }\n $sql = \"update\n anexo_pedidos\n set\n sIdUsuarioRevisaOper='$sIdUsuario'\n where sContrato='$sContrato'\n and iFolioPedido='$iFolioPedido'\n and iFolioRequisicion='$iFolioRequisicion'\n and sNumeroOrden='$sNumeroOrden'\";\n mysql_query($sql);\n if(mysql_error()){\n $this->Memo1->Text=mysql_error();\n }else{\n $this->Memo1->Text=\"\";\n $sendMail=true;\n }\n }\n }else{\n $this->Memo1->Text=\"La Orden de Compra esta en Status Revisado !!\";\n }\n\n $this->tablePedidos->setActive(false);\n $this->tablePedidos->setFilter(\" sContrato='$sContrato' and sStatus<>'Autorizado'\");\n $this->tablePedidos->setActive(true);\n if($sendMail){\n $sqlMail = \"select\n u.sNombre,\n u.sMail\n from usuarios u\n inner join\n contratosxusuario cu\n on (cu.sContrato='$sContrato'\n and u.sMail<>''\n and cu.sIdUsuario=u.sIdUsuario)\";\n $rs = mysql_query($sqlMail);\n while($rw = mysql_fetch_array($rs)){\n if($rw[\"sMail\"] !=\"\" ){\n if($rw[\"sNombre\"]==\"\")$rw[\"sNombre\"]=\" Usuario de Intelcode \";\n $msg=$rw[\"sNombre\"].\"<br>\n Le avisamos que existe una Orden de Compra marcada como 'Revisada' por parte de la Gerencia Administrativa registrada en el sistema.<br><br>\n\n No. Orden de Compra : $iFolioPedido<br>\n No. de Orden : $sNumeroOrden<br>\n Contrato : $sContrato<br><br>\n\n Por favor no responda este mensaje.\n \";\n $Subject=\"$sContrato, Orden de Compra\";\n enviarCorreo($rw[\"sMail\"],$msg,$Subject,$mail = new phpmailer() );\n }\n }\n }\n\n }", "title": "" }, { "docid": "051d21abea9276a4d8eec0c3e5000885", "score": "0.560658", "text": "function createVerificationMail($email, $verificationMethod, $verificationCode = \"none\")\n{\n $to = $email; // Send email to our user\n $subject = 'Verkoper worden | EenmaalAndermaal | I-Project Groep 1'; // Give the email a subject\n $message = '\n <!DOCTYPE HTML>\n <html lang=\"nl\">\n <head>\n <meta charset=\"UTF-8\">\n </head>\n <body>\n <h1>Bedankt dat u verkoper wil worden op onze veilingsite.</h1>\n <div>';\n if ($verificationMethod == \"Creditcard\") {\n $message .= '<p>We hebben uw gegevens geverifiëerd bij uw maatschappij en deze komen overeen.</p>\n <h2>U bent nu een verkoper!</h2>';\n } else if ($verificationMethod == \"Post\") {\n $message .= '<p>Uw verificatiecode is: ' . $verificationCode . ', vul deze code in op <a href=\"http://iproject1.icasites.nl/become-seller.php?verification=1\">deze</a> pagina.</p> ';\n }\n $message .= '\n </div>\n <div>\n <p>I-Project Groep 1</p>\n </div>\n </body>\n </html>\n'; // Our message above including the link\n $headers = \"MIME-Version: 1.0\" . \"\\r\\n\";\n $headers .= \"Content-type:text/html;charset=UTF-8\" . \"\\r\\n\";\n $headers .= 'From:noreply@EenmaalAndermaal.com' . \"\\r\\n\"; // Set from headers\n mail($to, $subject, $message, $headers); // Send our email\n}", "title": "" }, { "docid": "5653be3d9835d9cc99a0d9c7916b5049", "score": "0.56050026", "text": "public function confirm() {\n\t\t$this->load->model('checkout/order');\n\t\tif (!isset($this->session->data['order_id'])) {\n\t\t\t$this->response->redirect($this->url->link('checkout/cart'));\n\t\t\treturn;\n\t\t}\n\t\t$order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']);\n\t\tif (false === $order_info) {\n\t\t\t$this->response->redirect($this->url->link('checkout/cart'));\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\t$invoice = $this->prepareInvoice($order_info);\n\t\t\t$invoice = $this->bitpay->createInvoice($invoice);\n\t\t} catch (Exception $e) {\n\t\t\t$this->session->data['error_bitpay'] = 'Sorry, but there was a problem communicating with BitPay for Bitcoin checkout.';\n\t\t\t$this->response->redirect($this->url->link('checkout/checkout'));\n\t\t\treturn;\n\t\t}\n\n\t\t$this->session->data['bitpay_invoice'] = $invoice->getId();\n\t\t$this->response->redirect($invoice->getUrl());\n\t}", "title": "" }, { "docid": "8bc0a0c9befe6ff0794932ca1948b4a0", "score": "0.55997556", "text": "function sl_confirm_company_invitation($username, $company_id, $invitor_id, $asAdmin, $token)\n{\n /* Verify that the invitation link wasn't forged.\n */\n if ($token != urlencode(sha1(SALT.\"$company_id/$invitor_id/$asAdmin\"))) return false;\n\n /* Update the user's record with the new company, admin status, and invitor.\n */\n $qry=\"update \".USERS.\" SET confirmed='1', company_id='\".$company_id.\"', company_admin='\".$asAdmin.\"', company_confirm='\".$invitor_id.\"' where username='\".mysql_real_escape_string($username).\"'\";\n mysql_query($qry);\n\n return true;\n}", "title": "" }, { "docid": "d13181b7b62a4de19b44d8db124f9c02", "score": "0.55938387", "text": "public function resendActivationLink()\r\n\t{\r\n // Receiving user input data\r\n $inputUserData = \\Input::all();\r\n // Validating user input data\r\n $validation = $this->EnterpriseGateway->validateResendActivationLinkInput($inputUserData);\r\n if($validation['status'] == 'success') {\r\n $response = $this->EnterpriseGateway->resendActivationLink($inputUserData);\r\n return \\Response::json($response);\r\n } else {\r\n // returning validation failure\r\n return \\Response::json($validation);\r\n }\r\n \r\n\t}", "title": "" }, { "docid": "12e8d7429b388be0dabb5610f465fdf5", "score": "0.55880857", "text": "public function promocode()\r\n\t{\r\n\t\t$response = array(\"status\" => \"false\", \"msg_status\" => \"danger\", \"title\" => \"Invalid\", \"msg\" => \"Invalid Operation.\");\r\n\t\tif($this->input->is_ajax_request() && count($this->input->post()) > 0)\r\n\t\t{\r\n\t\t\t$this->form_validation->set_rules(\"user\", \"User\", \"trim|required\");\r\n\t\t\t$this->form_validation->set_rules(\"promo_code\", \"Promocode\", \"trim|required\");\r\n\t\t\t$response[\"title\"] = $this->data[\"page_main_title\"].\" - Send Promocode\";\r\n\t\t\tif($this->form_validation->run() === false)\r\n\t\t\t{\r\n\t\t\t\t$response[\"msg\"] = \"Please check the details you have entered.\";\r\n\t\t\t\t$response[\"msg_status\"] = \"info\";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$id = $this->encrypt->decode(base64_decode($this->input->post(\"user\")));\r\n\t\t\t\t$p_id = $this->encrypt->decode(base64_decode($this->input->post(\"promo_code\")));\r\n\t\t\t\tif(is_numeric($id) && $id > 0 && is_numeric($p_id) && $p_id > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t$b2cpc[\"promocode\"] = $this->Promocode_model->get_promocode($p_id);\r\n\t\t\t\t\t$b2c_user = $this->B2c_model->get_user($id);\r\n\t\t\t\t\tif($b2cpc[\"promocode\"] !== false && $b2c_user !== false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$b2cpc[\"to\"] = $b2c_user->email_id;\r\n\t\t\t\t\t\t$b2cpc[\"salutation\"] = $b2c_user->firstname;\r\n\t\t\t\t\t\t//send promocode mail function call here\r\n\t\t\t\t\t\t$mail_sent = $this->Sendmail_model->promocode($b2cpc);\r\n\t\t\t\t\t\tif($mail_sent !== false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$response[\"msg\"] = \"Promocode is successfully sent to \".$b2cpc[\"salutation\"].\" Mail.\";\r\n\t\t\t\t\t\t\t$response[\"msg_status\"] = \"success\";\r\n\t\t\t\t\t\t\t$response[\"status\"] = \"true\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$response[\"msg\"] = \"Failed to send promocode.\";\r\n\t\t\t\t\t\t\t$response[\"msg_status\"] = \"info\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\t$response[\"msg\"] = \"Sorry, Operation failed. Try again.\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\techo json_encode($response);exit;\r\n\t}", "title": "" }, { "docid": "1e3094867d03426ecc1c89ca160af0d3", "score": "0.5586836", "text": "public function regNewClient($clientData) \n {\n\t\t$clientData['date_registered'] = new Zend_Db_Expr(\"NOW()\"); \n\t\t$clientData['ip_registered'] = Zend_Controller_Front::getInstance()->getRequest()->getServer('REMOTE_ADDR');\t\n\t\t$clientData['browser'] = Zend_Controller_Front::getInstance()->getRequest()->getServer('HTTP_USER_AGENT');\t\n\t\t$clientData['role_id'] = 1; \t \n\t\t$uniq_code = uniqid('',true);\n\t\t$clientData['code_confirm'] = $uniq_code;\n\n\t\t$db = Zend_Registry::get('db');\t\n\t\t$db->insert('clients',$clientData);\n\t\t\n\t\t$lastIdClient = $this->getAdapter()->lastInsertId();\n\t\t\n\t\t$db->insert('info',array());\n\t\t$lastIdInfo = $this->getAdapter()->lastInsertId();\t\t\t\t\n\t\t\n\t\t$db->update('clients',array('info_id' => $lastIdInfo),'id = '.$lastIdClient);\n\t\t\n\t\t$hash_code = Zend_Registry::get('config')->mail->hash_code;\n\t\t$email = $clientData['email'];\n\t\t$subject = 'Подтверждение регистрации на сайте ';\n\t\t$body = 'Спасибо за регистрацию '.$clientData['nickname'].'! Для подтверждения регистрации перейдите по ссылке http://localhost/main/public/auth/confirmreg?uniq_code='.$uniq_code.'&hash_code='.$hash_code.'&type=client';\n\t\t$mail = App_Controller_Helper_Mail::Send($email,$subject,$body);\n\t\t\t\n return true;\n }", "title": "" }, { "docid": "349846b5f2faddf375c9864b26d5cb77", "score": "0.5580558", "text": "public function sendVerifyCode() : void\n {\n $this->checkPost();\n $this->checkParameters([\"mobile\" => null]);\n if(!$this->checkSmsIpRequestLimit()) {\n $this->generateStatusResult(\"sendSmsError\", -1);\n }\n\n $mobile = $_GET[\"mobile\"];\n if( !EatWhatStatic::checkMobileFormat($mobile) ) {\n $this->generateStatusResult(\"wrongMobileFormatOrExists\", -2);\n } \n\n $type = $_GET[\"type\"] ?? \"login\"; // login/join/modifyMobile\n $code = EatWhatStatic::getRandom(4);\n $smsConfig = AppConfig::get(\"sms\", \"global\");\n\n $smsParameters = [];\n $smsParameters[\"mobile\"] = $mobile;\n $smsParameters[\"accessKey\"] = $smsConfig[\"accessKey\"];\n $smsParameters[\"accessSecert\"] = $smsConfig[\"accessSecert\"];\n $smsParameters[\"signName\"] = $smsConfig[\"verifyCode\"][\"signName\"];\n $smsParameters[\"templateCode\"] = $smsConfig[\"verifyCode\"][\"templateCode\"];\n $smsParameters[\"params\"] = [\n \"code\" => $code,\n ];\n $result = $this->sendSms($smsParameters);\n\n if( $result ) {\n $expire = 1 * 60;\n $this->redis->set($mobile . \"_\" . $type, $code, $expire);\n $this->redis->set(getenv(\"REMOTE_ADDR\") . \"_sms_request_time\", time(), $expire);\n \n $countKey = getenv(\"REMOTE_ADDR\") . \"_sms_request_count\";\n $count = $this->redis->get($countKey);\n if(!$count) {\n $this->redis->set($countKey, 1, 24 * 60 * 60);\n } else {\n $this->redis->incr($countKey);\n }\n\n $this->generateStatusResult(\"sendSmsSuccess\", 1);\n $this->outputResult();\n } else {\n $this->generateStatusResult(\"sendSmsError\", -1);\n }\n }", "title": "" }, { "docid": "d44f1b936f47dd353c8a98f337f1b712", "score": "0.5580259", "text": "public function confirmEmail($token_type = 'register', $user_data = [], $email_template_key = 'user-verify', $other_data = []) { \n if(sizeof($user_data) > 0 && isset($user_data[\"id\"]) && isset($user_data[\"email\"])) {\n $token = str_random(50);\n if(!isset($user_data[\"user_type\"]) || $user_data[\"user_type\"] !== \"lead\") {\n $userToken = new UserToken();\n $userToken->user_id = $user_data[\"id\"];\n $userToken->token = $token;\n $userToken->token_type = $token_type;\n $userToken->token_expiry_date = date(\"Y-m-d H:i:s\", strtotime('+2 hours'));\n $userToken->status = 'sent';\n $userToken->save();\n }\n\n $confirmationLink = url('/user-confirmation/' . $token);// this link has to change to forgot password link\n $userEmail = $user_data[\"email\"];\n\n $data = [];\n $data['from'] = config('constants.email_from'); \n $data['name'] = config('constants.email_from_name');\n $data['to'] = [$userEmail];\n $data['cc'] = [];\n $data['subject'] = \"Verify your email address!\";\n $data['template_data'] = ['name' => $user_data[\"name\"], 'confirmationLink' => $confirmationLink, 'contactEmail' => config('constants.email_from')];\n if(sizeof($other_data) > 0) { \n $data['template_data'] = array_merge($data['template_data'], $other_data); // Please pass other_data in the specific key-value pair format \n }\n sendEmail($email_template_key, $data);\n Session::put('userLoginEmail', $userEmail);\n\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "6603c5f00703efa6d6f404be697e7cab", "score": "0.55787146", "text": "function generate_code($voucher)\n{\n $new_code = \"\";\n\n while (strlen($new_code) == 0) {\n $code = $voucher->codeprefix.substr(md5(generateRandomString(10)),0,5);\n\n $voucher_by_code = get_vouchercode($code, 0);\n\n if (!$voucher_by_code) {\n $new_code .= $code;\n }\n }\n\n return $new_code;\n}", "title": "" } ]
8649d701f0e29587be7d51cbec6be7a6
SHOW ALL SONDAGES //
[ { "docid": "0d6f33d1357baa77b75ecef016a305df", "score": "0.0", "text": "public function show()\n {\n $sondage =Sondage::all('titre', 'description', 'users_id', 'category');\n return response()->json($sondage,200);\n }", "title": "" } ]
[ { "docid": "50d3139db779912122b263a43e9d1ec1", "score": "0.65108603", "text": "public function queryAll(){\n\t\t$sql = 'SELECT * FROM spnsr';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "title": "" }, { "docid": "8d689d2f3d62a1eb10e875b7f254d432", "score": "0.6400651", "text": "public function listAll();", "title": "" }, { "docid": "8d689d2f3d62a1eb10e875b7f254d432", "score": "0.6400651", "text": "public function listAll();", "title": "" }, { "docid": "8d689d2f3d62a1eb10e875b7f254d432", "score": "0.6400651", "text": "public function listAll();", "title": "" }, { "docid": "247a30c547141249f94fd2cb8b00bb87", "score": "0.6380917", "text": "function afficherSoinss(){\n\t\t$sql=\"SElECT * From soins\";\n\t\t$db = config::getConnexion();\n\t\ttry{\n\t\t$liste=$db->query($sql);\n\t\treturn $liste;\n\t\t}\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n }\t\n\t}", "title": "" }, { "docid": "bfd8c27ea48fc3046387a51b0c308b76", "score": "0.6333278", "text": "function GetAllAnesthesiste()\n\t{\n\n\t $sql = \"SELECT Anesthesiste from \".$this->TableIpop.\" where site='\".$_SESSION['site'].\"' and Anesthesiste is not null and Anesthesiste<>'' group by Anesthesiste order by Anesthesiste\";\n\t\t$data=parent::select($sql);\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "1fd9dfd8bed6fed8a7f969ccebe8b865", "score": "0.6316491", "text": "function get_all_semesters()\n {\n $this->db->order_by('id', 'asc');\n return $this->db->get('semesters')->result_array();\n }", "title": "" }, { "docid": "0fa100dc4b11bf456646a3f7b4984335", "score": "0.63069564", "text": "function viewallGood(){\n $sql = \"select * from good\";\n return DB::run($sql);\n }", "title": "" }, { "docid": "18ade9b2b61949c0ef2afdc3137503a1", "score": "0.62817425", "text": "function listall() {\n }", "title": "" }, { "docid": "1ee49b9f765aee61904c681e29a63bd1", "score": "0.62675476", "text": "public function getStagiaires() {\n\n $statement = \"SELECT * FROM liste_stagiaires\";\n $req = $this->db->query($statement);\n return $req;\n }", "title": "" }, { "docid": "ccf81da086155da04d3b52d9b5c2fdc2", "score": "0.62665224", "text": "public function showAll()\n {\n }", "title": "" }, { "docid": "c2c5a5d9a8dc55f745f83015ccacdea3", "score": "0.6244386", "text": "function listAll(){\n return(($this->_db)->query(\"SELECT * FROM meridien\")->fetchAll(PDO::FETCH_ASSOC));\n }", "title": "" }, { "docid": "28832434cd7401019e65ba8476b48736", "score": "0.6233941", "text": "public function queryAll(){\n\t\t$sql = 'SELECT * FROM tbl_banner';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "title": "" }, { "docid": "d767936740b8030b07da7928590e16b6", "score": "0.617095", "text": "static function showSiswa(){\n \t\t\t$query = DB::table('tb_siswa')->select('*')->whereRaw('status_peminjaman <> 0')->get();\n\n \t\t\treturn $query->toArray();\n \t\t}", "title": "" }, { "docid": "8e68169bfdf6c4849b1b281a1304c775", "score": "0.61390793", "text": "public function queryAll(){\n\t\t$sql = 'SELECT * FROM rapor_kkm';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "title": "" }, { "docid": "dd4493dce5c631f05d9b461354363b87", "score": "0.6134139", "text": "function ls() {\n \n $link = Data_Website::$dbLink;\n $table = Data_Website::$optionTable;\n $website = Data_Website::$website;\n \n if (Data_Website::$website)\n $whereSite = \"WHERE `site`='$website'\";\n else\n $whereSite = '';\n \n $sql = \"SELECT * FROM `$table` $whereSite;\";\n $q = mysql_query($sql, $link);\n \n $result = array();\n while ($r=mysql_fetch_array($q)){\n $result[]=$r;\n }\n \n return $result;\n }", "title": "" }, { "docid": "4a6fbd7bf9b6a5ec9e197b1477a10f8d", "score": "0.61315393", "text": "function SHOW_ALL(){\n\t$sql = \"SELECT * \n\t\t\tFROM MENSAJES\n\t\t\tGROUP BY ID_INTERCAMBIO\n\t\t\tORDER BY FECHA DESC\";\n\treturn $this->mysqli->query($sql);\n}", "title": "" }, { "docid": "046b1fe7412d17393262eaf14e1bf9ac", "score": "0.60852236", "text": "function viewall() {\n\t\t$this->set('market_db',$this->_model->selectAll());\n\t}", "title": "" }, { "docid": "8119f32d928e613cfa00aeff48e09477", "score": "0.60715866", "text": "public function listAll() {\r\n\t }", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "e1ad6aebfa785b9be2150552f4f56442", "score": "0.60701317", "text": "public function queryAll();", "title": "" }, { "docid": "509b592d478168f042f54ddb9a9e90b6", "score": "0.60643315", "text": "public function queryAll(){\n\t\t$sql = 'SELECT * FROM escuela';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "title": "" }, { "docid": "03f89239d1179b6913e499e5ec720cdc", "score": "0.6057573", "text": "public function queryAll(){\r\n\t\t$sql = 'SELECT * FROM tar_conveniopaquete';\r\n\t\t$sqlQuery = new SqlQuery($sql);\r\n\t\treturn $this->getList($sqlQuery);\r\n\t}", "title": "" }, { "docid": "c0fce592ea033596935bf044af8fd35e", "score": "0.60304403", "text": "public function queryAll(): array;", "title": "" }, { "docid": "e62bf24a1c728374831702a64eabc3e7", "score": "0.6029657", "text": "public function queryAll(){\n\t\t$sql = 'SELECT * FROM tbl_chitietdh';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "title": "" }, { "docid": "7b452be728280c5d113db79d7d5250de", "score": "0.6013109", "text": "public function queryAll(){\r\n\t\t$sql = 'SELECT * FROM midias';\r\n\t\t$sqlQuery = new SqlQuery($sql);\r\n\t\treturn $this->getList($sqlQuery);\r\n\t}", "title": "" }, { "docid": "ee91b15a597c3bc5d2a7b8e2b0b7ffbf", "score": "0.59867793", "text": "public function listAll()\n {\n $res = $this->model->selectAll($this->tablename);\n //$this->view_manager->addParams('arr', $res);\n $this->view_manager->render('listAll', $this->controller_name, $res);\n }", "title": "" }, { "docid": "60396e80c1cfdc3d30a53ede97e01f09", "score": "0.5972463", "text": "function getAllPublicLists() {\n\t\tglobal $dbh;\n $stmt = $dbh->prepare('SELECT * FROM LIST WHERE public = 1');\n $stmt->execute();\n return $stmt->fetchAll();\n\t}", "title": "" }, { "docid": "669d1609d83417d10f21b782f2d33df6", "score": "0.59694403", "text": "function select_all_brands(){\n\t\treturn $this->query(\"select * from brands\");\n\t}", "title": "" }, { "docid": "061dbc6ad57bcc463dc75eae0c52a143", "score": "0.59602946", "text": "function view_all($table)\n{\n\t$db = database();\n\t$query = \"SELECT * FROM $table\";\n\n\t$result = $db->query($query) or die($db->error);\t\n\t$rows = array();\n\n\twhile($row = mysqli_fetch_array($result)) {\n\t\t$rows[] = $row;\n\t}\n\n\treturn $rows;\n}", "title": "" }, { "docid": "db8dcda95a59cf2f8cd6d64f4be4fb67", "score": "0.5957362", "text": "public function queryAll(){\n\t\t$sql = 'SELECT * FROM courseware_xmoduleuserstatesummaryfield';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "title": "" }, { "docid": "607a40b5068852e347f26992ede20a2b", "score": "0.59555185", "text": "public function get_all_salida()\n\t{\n\t\treturn $this->db->select(\"*\")\n\t\t\t\t\t\t->from(\"salida\")\n\t\t\t\t\t\t->get()\n\t\t\t\t\t\t->result();\n\t}", "title": "" }, { "docid": "47f0a0690907b388bb1de2c8bbeaf2c3", "score": "0.5954222", "text": "public function Viewall(){\n\t\t\t$query=mysql_query(\"SELECT * FROM extension_agent ORDER BY id DESC\") or die(mysql_error());\n\t\t\treturn $query;\n\t\t}", "title": "" }, { "docid": "0947ab0e4d21db6c8c1a4043db2f7ff9", "score": "0.5928931", "text": "function find_all()\n {\n $query = sprintf(\"select * from %s order by ID_Huesped desc\", self::tabla);\n $rows = $this->db->query($query);\n $rows = $rows->result_array();\n return $rows;\n }", "title": "" }, { "docid": "739242895613bd43fec98546243e760d", "score": "0.59219646", "text": "public function listAll(){\n $builder = $this->builder();\n $query = $builder->get();\n return $query;\n }", "title": "" }, { "docid": "a2ed6c8961171cd1fb891c84e573d012", "score": "0.59205115", "text": "public function queryAll(){\r\n\t\t$sql = 'SELECT * FROM zglb_medicos';\r\n\t\t$sqlQuery = new SqlQuery($sql);\r\n\t\treturn $this->getList($sqlQuery);\r\n\t}", "title": "" }, { "docid": "785b3b682f4eb71131f18357be84c256", "score": "0.59156114", "text": "public function get_all()\n {\n $this->db->select(\"*\");\n $this->db->from(\"tbl_siswa\");\n $this->db->order_by(\"id_siswa\", \"DESC\");\n return $this->db->get();\n }", "title": "" }, { "docid": "7115679a6f118a56bc0714b7df21927c", "score": "0.588766", "text": "function getAllStudents(){\n $this->connect->openDb();\n $students=$this->selectAll();\n $this->connect->closeDb();\n return $students;\n \n \n }", "title": "" }, { "docid": "61e291d06b07e6bd8986d52d39f0f061", "score": "0.5880475", "text": "public function getAllRecords() {\n $stmt = $this->DB->prepare ( \"SELECT * FROM students\" );\n $stmt->execute ();\n // fetchall returns all records in the set as an array\n return $stmt->fetchAll ( PDO::FETCH_ASSOC );\n }", "title": "" }, { "docid": "71fdda05f924d0b28a4f246cbe55d4c5", "score": "0.58787435", "text": "function getAll()\n {\n }", "title": "" }, { "docid": "71fdda05f924d0b28a4f246cbe55d4c5", "score": "0.58787435", "text": "function getAll()\n {\n }", "title": "" }, { "docid": "4acf351d84f380e67735de51b1c22a7e", "score": "0.58729535", "text": "public function select_all()\n {\n $query = \"SELECT * FROM `$this->tbl`\";\n return $this->db->query($query, PDO::FETCH_ASSOC)->fetchAll(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "72998cc55e6a705abecfe742d247421b", "score": "0.587097", "text": "function get_all() {\t\n\t\t$sql = \"SELECT * \n\t\t\t\tFROM evs_database.evs_expected_behavior\";\n\t\t$query = $this->db->query($sql);\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "8503cac2985eab84fe5029d2e2ee7bc5", "score": "0.586639", "text": "public static function all() {\n\t\treturn App::getDb()->query(\"\n\t\t\tSELECT *\n\t\t\tFROM \" . static::$table . \"\n\t\t\", get_called_class()) ;\n\n\t}", "title": "" }, { "docid": "1b21e33cf6979cc92bc4362ddfff0734", "score": "0.586458", "text": "public function getStudies()\n {\n // SQL-question\n $sql = \"SELECT * FROM studier\";\n $result = $this->db->query($sql);\n return mysqli_fetch_all($result, MYSQLI_ASSOC);\n }", "title": "" }, { "docid": "d336f7d3e9735919f74ef1d8980d2baf", "score": "0.5862967", "text": "public function queryAll(){\n\t\t$sql = 'SELECT * FROM attreav';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "title": "" }, { "docid": "e0ee34449411336e3b298d44dc887053", "score": "0.58558506", "text": "function getAllBanners() {\n\t\t\t$query = \"select * from \".PREFIX.\"banner_master\";\n\t\t\t$sql = $this->query($query);\n\t\t\treturn $sql;\n\t\t}", "title": "" }, { "docid": "0c32298b85edb6830d741aa829623160", "score": "0.58485144", "text": "public function queryAll(){\n\t\t$sql = 'SELECT * FROM loy';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "title": "" }, { "docid": "600bfbc3461774a951ffe2cec6094a98", "score": "0.58400255", "text": "public function queryAll(){\n\t\t$sql = 'SELECT * FROM tbl_admin';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "title": "" }, { "docid": "c5436f3802400853d3edb4eb29d7b4b0", "score": "0.5839607", "text": "function find_all_publisher(){\n\t\t global $db;\n\t\t $sql = \"SELECT * FROM Publisher \";\n \t\t $sql .= \"ORDER BY publisherCode ASC\";\n $result = mysqli_query($db, $sql);\n //confirm_result_set($result);\n\t\t return $result;\n\n\t}", "title": "" }, { "docid": "e345d86238078f0796f817534870bd2b", "score": "0.58361053", "text": "public static function find_all() {\n $result_array = static::find_by_query(\"SELECT * FROM \" . static::$the_table);\n \n return $result_array;\n }", "title": "" }, { "docid": "6c4e5bb16305bbc28358c6856c869af9", "score": "0.5825355", "text": "public function getAll()\n {\n $all_store = $this->conn->fetchAll('SELECT * FROM querystore');\n return $all_store;\n }", "title": "" }, { "docid": "2ed362ab4c90fb132e8623fabb34eae0", "score": "0.5816882", "text": "public function queryAll(){\n\t\t$sql = 'SELECT * FROM jabatan_guru';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.58126575", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.58126575", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.58126575", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.58126575", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.58126575", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.58126575", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.58126575", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.58126575", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.58126575", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.58126575", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.58126575", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.58126575", "text": "public function getAll();", "title": "" }, { "docid": "a8fe70e59ba96b85e504c7876933dce7", "score": "0.58089936", "text": "public function all()\n\t{\n\t\t$query = \"SELECT * FROM {$this->table}\";\n\t\t$stmt = static::$dbh->prepare($query);\n\t\t$stmt->execute();\n\t\treturn $stmt->fetchAll(\\PDO::FETCH_ASSOC);\n\t}", "title": "" }, { "docid": "5204428294baf70d02440bd26d2a7ef1", "score": "0.5808796", "text": "public static function all()\n {\n self::dbConnect();\n\n // Learning from the previous method, return all the matching records\n return self::$dbc->query(\"SELECT * FROM \" . static::$table)->fetchAll(PDO::FETCH_ASSOC); \n }", "title": "" }, { "docid": "10ac2c8ab8b7a89528a8ebb07e297e0b", "score": "0.5800978", "text": "public static function find_all() {\n\t\treturn self::find_by_sql(\"SELECT * FROM \".self::$table);\n }", "title": "" }, { "docid": "f8e675f238ca7dc9dd970c3becc24613", "score": "0.5798927", "text": "public function getAll(){\r\n\t\t$sql=\"select * from person_salle_confe\";\r\n\t\treturn $this->_db->query($sql);\r\n\t}", "title": "" }, { "docid": "0fb8f70b10e03b0676083a8619cc3d5c", "score": "0.5795203", "text": "public function all() {\n return $this->query(self::ALL);\n }", "title": "" }, { "docid": "c61ce5c07a5271d39ed367ffd2b0c7ba", "score": "0.5794103", "text": "public function queryAll(){\n\t\t$sql = 'SELECT * FROM kelas_jadwal_kbm';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "title": "" }, { "docid": "b4c427769b1ed95ec06efa6970d7faf6", "score": "0.5790425", "text": "public function listAll(){\n\t\t$sql = new Sql();\n\n\t\t//retornando o metodo sql->select \n\t\treturn $sql->select(\"SELECT * FROM produto\");\n\t}", "title": "" }, { "docid": "2596e746ae5c91cff9918fd5d59204f0", "score": "0.57868654", "text": "function getall () {\r\n\t\treturn $this->db_select(\"SELECT * FROM permissions\");\r\n\t}", "title": "" }, { "docid": "e38dd1a5b5d20b28ecfb4460d9f7d834", "score": "0.57795393", "text": "public function findAll(){\n \n\t\t$sql = 'SELECT * FROM ' . self::TABLENAME;\n\n \t//$db = new Database(); // se creeaza conexiunea la baza de date\n\t\t//$stmt = $db->getConnection()->prepare($sql);\n\n\t\t$stmt = $this->conn->prepare($sql);\n\n\t\t$stmt->execute();\n\t\t$results = $stmt->fetchAll();\n\n\t\treturn $results; \n }", "title": "" }, { "docid": "1006695e57d12dd6f992b13f8fd543d5", "score": "0.5778687", "text": "function viewAllService(){\n $sql = \"select * from service where sp_ID = :sp_ID\";\n $args = [':sp_ID'=>$this->sp_ID];\n $stmt = manageServiceModel::connect()->prepare($sql);\n $stmt->execute($args);\n return $stmt;\n }", "title": "" }, { "docid": "f87c082cdf9d0e6d3e5e0f5b64c01283", "score": "0.57640624", "text": "function getAllAdvertForSearchPopUp( )\n\t{\n\t\t$q = \"SELECT * FROM title_dev_adverts LIMIT 0,500 \";\n\t\t$r = $this -> db -> getMultipleRecords( $q );\n\t\tif( $r )\n\t\t\treturn $r;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "4d5f0c067cbe9a61964252e266155968", "score": "0.57576334", "text": "function showTables(){\n return $this->requestResultQuery(\"show tables;\");\n }", "title": "" }, { "docid": "f51d883a603f6c93b592480460a72d40", "score": "0.5755483", "text": "public function listAll()\n\t{\n\t\t$sql = new Conexao;\n\n\t\treturn $sql->select(\"SELECT * FROM tb_vitimasapuracao\");\n\t}", "title": "" }, { "docid": "0714c83542f6283249b1cb52d9a7125a", "score": "0.5747336", "text": "function getAll() {\n\t\t$series = IndicatorSerieQuery::create()->find();\n\t\treturn $series;\n\t}", "title": "" }, { "docid": "afaeddb541fc8ccc6b4402e0180de83c", "score": "0.574339", "text": "function get_stations()\n\t{\n\t\tglobal $conn;\n\t\t//query the database to select all data from the qp_station table\n\t\t$sql = 'SELECT qp_station.* FROM qp_station INNER JOIN qp_officer USING(badgeID) ORDER BY name';\n\t\t//use a prepared statement to enhance security\n\t\t$statement = $conn->prepare($sql);\n\t\t$statement->execute();\n\t\t$result = $statement->fetchAll();\n\t\t$statement->closeCursor();\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "cc4ba96b0d3d4616e1dddb8dfd9be246", "score": "0.5742476", "text": "public static function getAll()\n {\n $connection = Connection :: getDb();\n\n $sql = $connection->query(\"SELECT * FROM students\");\n return $sql->fetchAll(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "99d5a65f275aa72c5a0831adbb79f786", "score": "0.57422394", "text": "public function queryAll(){\n\t\t$sql = 'SELECT * FROM institucion';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "title": "" }, { "docid": "55131ed8f379c7ce7b3afb2ab4e94ff7", "score": "0.5717396", "text": "protected static function db_get_all() {\n $db = self::get_connection();\n return $db->query(static::SQL_GET_ALL);\n }", "title": "" } ]
6bf4d2d7b4629cf4df6e81fa4018b7a1
PHP4 style class constructor.
[ { "docid": "6cca69d662487b8407861c4bb75c4b86", "score": "0.0", "text": "function htmlarea($courseid) {\n parent::editorObject();\n $this->courseid = clean_param($courseid, PARAM_INT);\n\n $pagestyle = 'body {';\n $pagestyle .= !empty($this->cfg->editorbackgroundcolor) ?\n ' background-color: '. $this->cfg->editorbackgroundcolor .'; ' : '';\n $pagestyle .= !empty($this->cfg->editorfontfamily) ?\n ' font-family: '. $this->cfg->editorfontfamily .';' : '';\n $pagestyle .= !empty($this->cfg->editorfontsize) ?\n ' font-size: '. $this->cfg->editorfontsize .';' : '';\n $pagestyle .= '}';\n\n $this->defaults['pageStyle'] = $pagestyle;\n $this->defaults['killWordOnPaste'] = !empty($this->cfg->editorkillword) ? true : false;\n\n $fontlist = isset($this->cfg->editorfontlist) ? explode(';', $this->cfg->editorfontlist) : array();\n $fonts = array();\n foreach ( $fontlist as $fontline ) {\n if ( !empty($fontline) ) {\n list($fontkey, $fontvalue) = split(\":\", $fontline);\n $fonts[$fontkey] = $fontvalue;\n }\n }\n $this->defaults['fontname'] = $fonts;\n $this->defaults['hideSomeButtons'] = !empty($this->cfg->editorhidebuttons) ?\n ' '. $this->cfg->editorhidebuttons .' ' : '';\n\n }", "title": "" } ]
[ { "docid": "b90c66e489f51b30b8e069a74d4fb76d", "score": "0.82519644", "text": "public function constructor() { }", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.7971337", "text": "final private function __construct() {}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.7971337", "text": "final private function __construct() {}", "title": "" }, { "docid": "d0e9fda02a97d24e383fbdf94e011202", "score": "0.7885763", "text": "final private function __construct()\n {}", "title": "" }, { "docid": "d01ce347278dedf7f7d2c94974028f56", "score": "0.777642", "text": "private function __constructor()\n\t {\n\t }", "title": "" }, { "docid": "b5d10ff2005a09076754236fd08576a5", "score": "0.7755888", "text": "public function construct();", "title": "" }, { "docid": "e91b6c3cb8d98cd3a7a8577b85a46de5", "score": "0.7728188", "text": "final private function __construct() {\n\t}", "title": "" }, { "docid": "fb4c3f07ec66dc085096bd8483bf3da6", "score": "0.77003473", "text": "private final function __construct(){}", "title": "" }, { "docid": "dd152fcaf9c3b056c55ddae6060148e5", "score": "0.76833314", "text": "final private function __construct(){}", "title": "" }, { "docid": "dd152fcaf9c3b056c55ddae6060148e5", "score": "0.76833314", "text": "final private function __construct(){}", "title": "" }, { "docid": "a8ae7b4235800262ea8f8edf599b1d37", "score": "0.7683131", "text": "protected function construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666852", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.7666411", "text": "private function __construct() {}", "title": "" }, { "docid": "2dffeb401c4f31667910b1e1e823a704", "score": "0.7648308", "text": "private function _construct()\r\n\t{}", "title": "" }, { "docid": "303c6463401e09821159820390808780", "score": "0.759498", "text": "final private function __construct()\n\t{\n\t}", "title": "" }, { "docid": "280388fec445c7697682004c6fbadaad", "score": "0.7588106", "text": "private final function __construct() {\n }", "title": "" }, { "docid": "27dc3ced3af79a746433e0a9e733c35b", "score": "0.75727385", "text": "function __construct() {}", "title": "" }, { "docid": "27dc3ced3af79a746433e0a9e733c35b", "score": "0.75727385", "text": "function __construct() {}", "title": "" }, { "docid": "27dc3ced3af79a746433e0a9e733c35b", "score": "0.75727385", "text": "function __construct() {}", "title": "" }, { "docid": "27dc3ced3af79a746433e0a9e733c35b", "score": "0.75727385", "text": "function __construct() {}", "title": "" }, { "docid": "27dc3ced3af79a746433e0a9e733c35b", "score": "0.75727385", "text": "function __construct() {}", "title": "" }, { "docid": "27dc3ced3af79a746433e0a9e733c35b", "score": "0.75727385", "text": "function __construct() {}", "title": "" }, { "docid": "27dc3ced3af79a746433e0a9e733c35b", "score": "0.75727385", "text": "function __construct() {}", "title": "" }, { "docid": "08ac9f3cc0b4055046901022491df7d7", "score": "0.7538786", "text": "private final function __construct()\n {\n }", "title": "" }, { "docid": "e604ffabb18dce83ee0f86419a830df1", "score": "0.7533588", "text": "final private function __construct()\n {\n }", "title": "" }, { "docid": "5caff8cdd1d0d4df10a2ec0d883edb67", "score": "0.75243914", "text": "final public function __construct() { }", "title": "" }, { "docid": "bac55d3acc4ac73491274644d3080452", "score": "0.74979395", "text": "private function __construct() {\n // This class can't be instantiated\n }", "title": "" }, { "docid": "81342d8534e6f083d83fbae3cbf1ce9d", "score": "0.7478399", "text": "final private function __construct()\n\t\t{\n\t\t}", "title": "" }, { "docid": "0e59379112512b1f4fc1b3ae6ccaa830", "score": "0.74719656", "text": "private function __construct () {}", "title": "" }, { "docid": "4035e742ed1810ce710a2d8ca00bc253", "score": "0.7466717", "text": "private function __construct()\r\n {}", "title": "" }, { "docid": "47b2b01b258c9d22048320b56b36981e", "score": "0.7443097", "text": "abstract public function __construct();", "title": "" }, { "docid": "2f4af055c158fcf9c8f7370434d767dd", "score": "0.7415564", "text": "public function construct(): void\n {\n }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.7405084", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.7405084", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.7405084", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.7405084", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.7405084", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.7405084", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.7405084", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.7405084", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.7405084", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.7405084", "text": "private function __construct() { }", "title": "" }, { "docid": "d0f354b28259f13cc05d46a25bf41f6c", "score": "0.7399326", "text": "private function __construct()\n {}", "title": "" }, { "docid": "d0f354b28259f13cc05d46a25bf41f6c", "score": "0.7399326", "text": "private function __construct()\n {}", "title": "" }, { "docid": "8cf0f1e2117d3299a2d7409aff2a3e32", "score": "0.73986423", "text": "private function __construct()\n\t{}", "title": "" }, { "docid": "56ee30e20362e6adc258aa640fd4dce9", "score": "0.7383967", "text": "public function __construct()\n {\n \t// dummy constructor\t\n }", "title": "" }, { "docid": "585f33d8708159ede06fcf4cb9240845", "score": "0.73765665", "text": "private function __construct() { /* Nothing to do here */ }", "title": "" }, { "docid": "fe11bc4a7ccf54073a6cac061659ed9d", "score": "0.7368132", "text": "public function __construct()\n {\n if (4 == func_num_args()) {\n $this->className = func_get_arg(0);\n $this->classType = func_get_arg(1);\n $this->classId = func_get_arg(2);\n $this->extensionAttributes = func_get_arg(3);\n }\n }", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7361701", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7361701", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7361701", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7361701", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7361701", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.7361701", "text": "private function __construct(){}", "title": "" } ]
af2f36bafff7177c1e17438f022f20b4
Get citation metadata from original citation
[ { "docid": "8ad667115c2b72597793069a166868f8", "score": "0.67530555", "text": "protected function _getCitationInfo($citation)\n\t{\n\t\t$citationArr = [];\n\n\t\tif (!empty($citation['doi']))\n\t\t{\n\t\t\t$citationArr['DOI'] = $citation['doi'];\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (!empty($citation['url']))\n\t\t\t{\n\t\t\t\tif (preg_match(\"/purl/\", $citation['url']))\n\t\t\t\t{\n\t\t\t\t\t$citationArr['PURL'] = $citation['url'];\n\t\t\t\t}\n\t\t\t\telseif (preg_match(\"/handle/\", $citation['url']))\n\t\t\t\t{\n\t\t\t\t\t$citationArr['HANDLE'] = $citation['url'];\n\t\t\t\t}\n\t\t\t\telseif (preg_match(\"/ark/\", $citation['url']))\n\t\t\t\t{\n\t\t\t\t\t$citationArr['ARK'] = $citation['url'];\n\t\t\t\t}\n\t\t\t\telseif (preg_match(\"/arxiv/\", $citation['url']))\n\t\t\t\t{\n\t\t\t\t\t$citationArr['ARXIV'] = $citation['url'];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$citationArr['URL'] = $citation['url'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $citationArr;\n\t}", "title": "" } ]
[ { "docid": "4d0f0524e1049b5996ca0b9a875aa17d", "score": "0.63113856", "text": "function anno_the_citation() {\n\t$template = Anno_Keeper::retrieve('template');\n\techo $template->get_citation();\n}", "title": "" }, { "docid": "9215e0c0e6cef41d6034dad666a1b8f8", "score": "0.58645606", "text": "public function citation()\n {\n return $this->belongsTo(Citation::class);\n }", "title": "" }, { "docid": "34093c7516b8783530710ba973787df3", "score": "0.5798151", "text": "protected function getMetadata()\n {\n // Get crawlers for the <tr> elements of the first table.\n $frRows = $this->crawlers['fr']->filter('table:first-child tr');\n $nlRows = $this->crawlers['nl']->filter('table:first-child tr');\n\n // The first row stores the full number of the dossier.\n $data = $this->parseIdentifier($frRows->first());\n\n // The next one hosts the title of the dossier.\n $data['title'] = [\n 'fr' => trim($frRows->textOfNode(1)),\n 'nl' => trim($nlRows->textOfNode(1))\n ];\n\n // The third table row may contain a list of authors.\n $data['authors'] = $this->extractAuthors($frRows->last());\n\n // The fourth one indicates the type of procedure.\n $data['procedure'] = $this->extractProcedureType();\n\n return $data;\n }", "title": "" }, { "docid": "b428be1f0e57647e4514ff45e9205b2a", "score": "0.5701537", "text": "public function getMetaData();", "title": "" }, { "docid": "064fe0466345b9ccd2a92c3d5ada451a", "score": "0.56649554", "text": "public function getMetadata();", "title": "" }, { "docid": "064fe0466345b9ccd2a92c3d5ada451a", "score": "0.56649554", "text": "public function getMetadata();", "title": "" }, { "docid": "064fe0466345b9ccd2a92c3d5ada451a", "score": "0.56649554", "text": "public function getMetadata();", "title": "" }, { "docid": "0530391e00f52b79dc0a1e43b5d65da9", "score": "0.56404775", "text": "public function get_citation($post_id = null) {\n\t\t$post_id = $this->utils->post_id_for_sure($post_id);\n\t\t$cache_key = 'anno_citation_html_'.$post_id;\n\t\t\n\t\t/* Do we already have this cached? Let's return that. */\n\t\t$cache = get_transient($cache_key);\n\t\tif ($cache !== false && $this->enable_caches !== false) {\n\t\t\treturn $cache;\n\t\t}\n\t\t\n\t\t/* Otherwise, let's build a cache and return it */\n\n\t\t$site = strip_tags(get_bloginfo('name'));\n\t\t$permalink = get_permalink();\n\t\t$last_modified = get_the_modified_date('Y M j');\n\n\t\t$title = get_the_title($post_id);\n\t\t$subtitle = $this->get_subtitle($post_id);\n\t\tif ($title && $subtitle) {\n\t\t\t$title = sprintf(_x('%1$s: %2$s', 'Title and subtitle as a textarea-safe string', 'anno'), $title, $subtitle);\n\t\t}\n\n\t\t$contributors = get_post_meta($post_id, '_anno_author_snapshot', true);\n\t\t$contributor_is_id = false;\n\t\tif (empty($contributors) || !is_array($contributors)) {\n\t\t\t$contributors = $this->get_author_ids($post_id);\n\t\t\t$contributor_is_id = true;\n\t\t}\t\t\n\n\t\t$names = array();\n\t\tforeach ($contributors as $contributor) {\n\t\t\tif ($contributor_is_id) {\n\t\t\t\t$contributor_wp_data = get_user_by('id', $contributor);\n\n\t\t\t\t$first = $contributor_wp_data->user_firstname;\n\t\t\t\t$last = $contributor_wp_data->user_lastname;\n\t\t\t\t$display_name = $contributor_wp_data->display_name;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$contributor_id = $contributor['id'];\n\t\t\t\t// Test for integer ID, thus we know its not a knol ID and we can attempt to look up a WP user for fallback\n\t\t\t\tif ($contributor_id == (string) intval($contributor_id)) {\n\t\t\t\t\t$contributor_wp_data = get_user_by('id', $contributor_id);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$contributor_wp_data = false;\n\t\t\t\t}\n\n\t\t\t\t$first = $contributor['given_names'];\n\t\t\t\t$last = $contributor['surname'];\n\t\t\t\t$display_name = empty($author_wp_data) ? '' : $contributor_wp_data->display_name;\n\t\t\t}\n\t\t\t\n\t\t\tif ($first && $last) {\n\t\t\t\t$name = sprintf(_x('%1$s %2$s', 'First and last name as a textarea-safe string', 'anno'), $first, $last);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$name = $display_name;\n\t\t\t}\n\t\t\t\n\t\t\tif (!empty($name)) {\n\t\t\t\t$names[] = $name;\n\t\t\t}\n\t\t}\n\t\t$authors = implode(', ', $names);\n\n\t\t$version = count(wp_get_post_revisions($post_id));\n\t\tif ($version === 0) {\n\t\t\t$version = 1;\n\t\t}\n\n\t\t$citation = sprintf(\n\t\t\t_x('%1$s. %2$s [Internet]. Version %3$s. %4$s. %5$s. Available from: %6$s.', 'Citation format', 'anno'),\n\t\t\t$authors,\n\t\t\t$title,\n\t\t\t$version,\n\t\t\t$site,\n\t\t\t$last_modified,\n\t\t\t$permalink\n\t\t);\n\t\t\n\t\tset_transient($cache_key, $citation, 60*60); // Cache for 1 hour.\n\t\treturn $citation;\n\t}", "title": "" }, { "docid": "8edfeb60d2d8e99403358e4078b0e7e8", "score": "0.5621603", "text": "function getMetaData();", "title": "" }, { "docid": "ccf72d785588bf8e2e669fd21533de22", "score": "0.5596008", "text": "public function getTranscriptionMetadata()\n {\n return $this->transcription_metadata;\n }", "title": "" }, { "docid": "06d8634ea0c10fe3f419c0f4789fa4b1", "score": "0.5531881", "text": "public function getMetadata($isbn, $options = null) {\n return $this->get_data(__FUNCTION__, $isbn, $options);\n }", "title": "" }, { "docid": "0828e9c0469490d974cb991c142cf286", "score": "0.5514809", "text": "function getCitation($article) {\n\t\t$citationFormat = $this->getSetting($article->getJournalId(), 'citationFormat');\n\t\t$journal =& Request::getJournal();\n\t\t$issueDao = DAORegistry::getDAO('IssueDAO');\n\t\t$issue =& $issueDao->getIssueByArticleId($article->getId(), $article->getJournalId());\n\n\t\t$templateMgr =& TemplateManager::getManager();\n\t\t$templateMgr->assign_by_ref('article', $article);\n\t\tif ($article->getStatus() == STATUS_PUBLISHED) {\n\t\t\t$publishedArticleDao = DAORegistry::getDAO('PublishedArticleDAO');\n\t\t\t$publishedArticle =& $publishedArticleDao->getPublishedArticleByArticleId($article->getId(), $article->getJournalId(), TRUE);\n\t\t\t$templateMgr->assign_by_ref('publishedArticle', $publishedArticle);\n\t\t}\n\t\t$templateMgr->assign_by_ref('issue', $issue);\n\t\t$templateMgr->assign_by_ref('journal', $journal); \n\t\t\n\t\treturn $templateMgr->fetch($this->getTemplatePath() .'citation'. $citationFormat .'.tpl');\n\t}", "title": "" }, { "docid": "b6d348aba2ecfeca700f4e9bc9906664", "score": "0.54728186", "text": "public function getCitationNumber();", "title": "" }, { "docid": "5265a4a65e2fca390836c668f6aa4d75", "score": "0.54161537", "text": "abstract public function getAttribution();", "title": "" }, { "docid": "02dc9232ec7ae59215e74743340230c0", "score": "0.5398326", "text": "public function getMetaData()\n {\n }", "title": "" }, { "docid": "5a72565a2dd8e994682c423f218dbc28", "score": "0.5391505", "text": "public function getExtraDescriptionData(): array {\n $marc = $this->getMarcRecord();\n $value = $this->getMarcFieldsAsObject($marc, '245', null, null);\n\n $return = array();\n if (count($value) > 0) {\n foreach ($value as $v) {\n if (isset($v->c)) {\n $return[] = $v->c;\n }\n }\n }\n return $return;\n }", "title": "" }, { "docid": "591cd84eca692dfce13134c3ecbb92bb", "score": "0.5358664", "text": "private function _getParams($citation = 0)\n\t{\n\t\t$this->database->setQuery(\"SELECT c.params from `#__citations` c WHERE id=\" . $this->database->quote($citation));\n\t\treturn $this->database->loadResult();\n\t}", "title": "" }, { "docid": "e536c031b1e365291e28b3c2ac94a76e", "score": "0.53395575", "text": "public function getExtractedMetadata() {\n\t\treturn array();\n\t}", "title": "" }, { "docid": "76b4132fdc5f91221a15fc1f9c00135c", "score": "0.53355044", "text": "private function getAudioMetadata($isbn) {\n $cache_key = __METHOD__ . '-' . $isbn;\n\n if ($cached = cache_get($cache_key)) {\n return $cached->data;\n }\n\n try {\n $metadata = [];\n\n $metadataUrl = 'https://audio.api.streaming.pubhub.dk/v1/samples/' . $isbn;\n $audioUrl = 'https://audio.api.streaming.pubhub.dk/Sample.ashx?isbn=' . $isbn;\n\n $client = new Client();\n $response = $client->get($metadataUrl);\n $data = json_decode((string) $response->getBody(), TRUE);\n\n $metadata['length'] = $data['duration'];\n\n // Get size of audio sample.\n $response = $client->head($audioUrl);\n $header = $response->getHeader('content-range');\n $contentRange = reset($header);\n if (preg_match('@bytes (?P<range_start>[0-9]+)-(?P<range_end>[0-9]+)/(?P<size>[0-9]+)@',\n $contentRange, $matches)) {\n $metadata['size'] = (int) $matches['size'];\n }\n\n // Get audio format.\n $header = $response->getHeader('content-type');\n $metadata['format'] = reset($header);\n\n $result = ['url' => $audioUrl, 'metadata' => $metadata];\n\n // Store result in cache.\n cache_set($cache_key, $result);\n\n return $result;\n }\n catch (\\Exception $exception) {\n // We don't want any exceptions to break the feed.\n }\n\n return NULL;\n }", "title": "" }, { "docid": "2c5c266633bbc552cbfc36a1e48cbb32", "score": "0.5315401", "text": "function _cals_importer_get_contributor_from_marc($xml, $k, &$map, $tags) {\n _cals_importer_get_basic_values_from_marc($xml, $k, $map, $tags);\n\n $tmp = array();\n $datafields = array( 700, 720 );\n foreach ( $datafields as $datafield ) {\n if(count(_cals_importer_xpath_value($xml, \"datafield\", $datafield, \"a\"))) {\n //find parent path\n $parent = $xml->xpath(\"//marc:datafield[@tag='$datafield']\");\n foreach ($parent as $i => $child) {\n //$ind = (string) $parent[$i]->attributes()->ind1;\n $title = array(); //holds the title elements for this child\n foreach ($child->children(NAME_SPACE)->subfield as $subfield) {\n $code = (string) $subfield->attributes()->code;\n $tmp[$i][$code] = (string) trim($subfield[0]);\n }\n }\n foreach ($tmp as $v) {\n\n if (array_key_exists(\"e\", $v) && stripos($v['e'], \"author\") !== FALSE ||\n array_key_exists(\"4\", $v) && stripos($v['4'], \"aut\") !== FALSE\n ) {\n $map['field_dc_creator']['values'][] = $v['a'];\n }\n else {\n $map[$k]['values'][] = $v['a'];\n }\n }\n }\n }\n}", "title": "" }, { "docid": "14070c026c2838cf6d48b680ac547e7f", "score": "0.53133595", "text": "public function getMetadata(): string;", "title": "" }, { "docid": "f25e4fd294f925755e45982d6b4d5337", "score": "0.5301241", "text": "public function getMetadata() {\n /** @var xPDOTransport $transport */\n $transport = $this->object->getTransport();\n if ($transport) {\n $this->object->set('readme',$transport->getAttribute('readme'));\n $this->object->set('license',$transport->getAttribute('license'));\n $this->object->set('changelog',$transport->getAttribute('changelog'));\n }\n }", "title": "" }, { "docid": "4c0366abb1be89cdab12a5fd42881c56", "score": "0.5290995", "text": "public function getMetadata(){}", "title": "" }, { "docid": "4c0366abb1be89cdab12a5fd42881c56", "score": "0.5290995", "text": "public function getMetadata(){}", "title": "" }, { "docid": "e72b3f75a8c9604b41c48d6f9b431159", "score": "0.51968634", "text": "public function get_metadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "5a8093eec8e56e7d9ee91a52ae3e63df", "score": "0.5175475", "text": "public function getMetadata($doiId)\n {\n return $this->request($this->dataciteUrl . 'metadata/' . $doiId);\n }", "title": "" }, { "docid": "47c25a3025eb763d88c29480b9ca6432", "score": "0.51732904", "text": "public function getMetadata() {\n\t\treturn $this->_metadata;\n\t}", "title": "" }, { "docid": "e53ae4f2463b95544bf811a14c44aeae", "score": "0.5157384", "text": "function metadata($category_package, $keyS, $pkgtype = 'ebuild')\n\t{\n\t\treturn explode(\"\\n\", trim(`portageq metadata {$this->EROOT} $pkgtype $category_package $keyS`));\n\t}", "title": "" }, { "docid": "d20efba206011efbd631c3b2abdfe9d8", "score": "0.5127538", "text": "protected function getMetaData()\n {\n return new Metadata;\n }", "title": "" }, { "docid": "a5a34650dc9a05f289319575e4604386", "score": "0.5127109", "text": "function get_sponsor_metadata() {\n // Get a list of ad instances from the archive\n $url = 'https://www.opensecrets.org/api/index.php?method=internetArchive&apikey='.OPENSECRETS_API_KEY.'&output=json';\n\n // Create the GET\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n\n // Take in the server's response\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n // Run the CURL\n $curl_result = curl_exec($ch);\n curl_close ($ch);\n\n // Parse the result\n $result = json_decode($curl_result);\n\n // Process the result\n $sponsors = array();\n\n foreach($result->response->record as $sponsor) {\n $sponsor = $sponsor->{'@attributes'};\n $sponsor_name = substr($sponsor->sponsorname, 0, -4); // Names have 4 extra characters we don't want\n if(array_key_exists($sponsor_name, $sponsors)) {\n $sponsors[$sponsor_name][$sponsor->type] = $sponsor;\n } else {\n $sponsors[$sponsor_name] = array(\n $sponsor->type => $sponsor\n );\n }\n }\n\n return $sponsors;\n }", "title": "" }, { "docid": "d4941396fe1436d1631cc1f4fa58fe69", "score": "0.5111109", "text": "public function getClinicalInformation()\n {\n return $this->clinicalInformation;\n }", "title": "" }, { "docid": "4a43b0b84a2b8e98a34236e9827c53a2", "score": "0.5110333", "text": "public function getMetadata(): array;", "title": "" }, { "docid": "5a527dfb224c756c9a03f8d8054e9f91", "score": "0.5104833", "text": "public function getAuthor( );", "title": "" }, { "docid": "35af2559df7528173f1f0fd033122700", "score": "0.5101683", "text": "function extractMetadata($path)\r\n\t{\r\n\t\t$temp = shell_exec(APP_EXIFTOOL_CMD . ' -n --list '.escapeshellarg($path));\r\n\t\t$info['exif_all'] = $temp;\r\n\t\t$temp = explode(\"\\n\", $temp);\r\n\t\tforeach ($temp as $item) {\r\n\t\t\t$pos = strpos($item, ':');\r\n\t\t\t$info[str_replace(\" \", \"_\", strtolower(trim(substr($item, 0, $pos))))] = trim(substr($item, $pos+1));\r\n\t\t}\r\n\t\tif (array_key_exists('file_size', $info)) {\r\n\t\t\t$info['file_size_human'] = Misc::size_hum_read($info['file_size']);\r\n\t\t}\r\n\r\n //if creation date is before 1972 or after today plus a year we'll assume it is incorrect and set it to null\r\n if (array_key_exists('create_date', $info)) {\r\n \t\t\tif ((strtotime($info['create_date']) > strtotime(\"now\")+365*24*3600) || (strtotime($info['create_date']) < strtotime(\"1/1/1972\")))\r\n {\r\n $info['create_date'] = NULL;\r\n }\r\n \t}\r\n\t\treturn $info;\r\n\t}", "title": "" }, { "docid": "3166bcc51cf8da27884d5c5d56524c3d", "score": "0.5095644", "text": "function sources_theme_get_source_title_info($year, $publication_format) {\n if (!empty($publication_format)) {\n $publication_format = '<span class=\"publication-type\">' . $publication_format . '</span>';\n }\n $publication_info = array($year, $publication_format);\n $source_title_info = '';\n $info_index = 1;\n foreach ($publication_info as $info) {\n if (!empty($info)) {\n if ($info_index > 1) {\n $source_title_info .= ', ' . $info;\n }\n else {\n $source_title_info .= $info;\n }\n $info_index++;\n }\n }\n $source_title_info = ' (' . $source_title_info . ')';\n return $source_title_info;\n}", "title": "" }, { "docid": "02cd7cc29a242098e898115f4d5fcd35", "score": "0.50928587", "text": "function publicationMetadata($args, &$request) {\n\n\t\t$publicationFormatId = (int) $request->getUserVar('publicationFormatId');\n\t\t$publicationFormatDao =& DAORegistry::getDAO('PublicationFormatDAO');\n\n\t\t$monograph =& $this->getMonograph();\n\t\t$stageId =& $this->getStageId();\n\n\t\t$publicationFormat =& $publicationFormatDao->getById($publicationFormatId, $monograph->getId());\n\n\t\tif (!$publicationFormat) {\n\t\t\t$json = new JSONMessage(false, __('monograph.publicationFormat.formatDoesNotExist'));\n\t\t\treturn $json->getString();\n\t\t}\n\n\t\timport('controllers.tab.catalogEntry.form.CatalogEntryPublicationMetadataForm');\n\t\t$catalogEntryPublicationMetadataForm = new CatalogEntryPublicationMetadataForm($monograph->getId(), $publicationFormatId, $publicationFormat->getPhysicalFormat(), $stageId, array('displayedInContainer' => true, 'tabPos' => $this->getTabPosition()));\n\t\t$catalogEntryPublicationMetadataForm->initData($args, $request);\n\t\t$json = new JSONMessage(true, $catalogEntryPublicationMetadataForm->fetch($request));\n\t\treturn $json->getString();\n\t}", "title": "" }, { "docid": "d3f967b88b8ea6ca5a1bb2056dd88c2d", "score": "0.5091602", "text": "public function metadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "d3f967b88b8ea6ca5a1bb2056dd88c2d", "score": "0.5091602", "text": "public function metadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "389dd44acef37817510d6174a29e7b25", "score": "0.5090621", "text": "function metaData( $contentObjectAttribute )\n {\n //echo \"metaData-\";\n return $contentObjectAttribute->attribute( \"data_text\" );\n }", "title": "" }, { "docid": "8280feb142794b2741e8d01a09ec4f91", "score": "0.50891423", "text": "private function _getIntroduction($author) {\n return $author->getAttribute(\"short_description\", true, \"\");\n }", "title": "" }, { "docid": "92a70f4413b0b2a2e2d5f11cabe257da", "score": "0.5088333", "text": "private function getMetadata()\n {\n $metadata = [];\n foreach ($this->dom->getElementsByTagName('meta') as $meta) {\n /* @var Readability $meta */\n $name = $meta->getAttribute('name');\n $property = $meta->getAttribute('property');\n\n // Select either name or property\n $item = ($name ? $name : $property);\n\n if ($item == 'og:title' || $item == 'twitter:title') {\n $metadata['title'] = $meta->getAttribute('content');\n }\n\n if ($item == 'og:description' || $item == 'twitter:description') {\n $metadata['excerpt'] = $meta->getAttribute('content');\n }\n\n if ($item == 'author') {\n $metadata['byline'] = $meta->getAttribute('content');\n }\n\n if ($item == 'og:image' || $item == 'twitter:image') {\n $metadata['image'] = $meta->getAttribute('content');\n }\n }\n\n return $metadata;\n }", "title": "" }, { "docid": "eb689cfd3c58696dcbdf4df60ac2cd2d", "score": "0.508642", "text": "function getCitationState() {\n\t\treturn $this->_citationState;\n\t}", "title": "" }, { "docid": "494ef349c6cc6259884ba9ff27ab0b89", "score": "0.508201", "text": "function showCitationTable()\n{\n global $debug;\n global $warn;\n global $lang;\n global $template;\n global $citTable;\n global $citByVal;\n global $sourceTable;\n\n $parmTable = array();\n\n foreach($citTable as $key => $cit)\n { // loop through all citations\n $entry = array('key' => $key);\n // generate HTML for this footnote\n if ($cit instanceof Citation)\n { // invoke toHtml method\n $entry['text'] = $cit->toHTML($lang);\n $idsr = $cit->getIdsr();\n if ($idsr > 1)\n {\n $source = $cit->getSource();\n $source->setTemplate($template);\n $sourceTable[$idsr] = $source;\n }\n } // invoke toHtml method\n else\n { // not instance of Citation\n if (is_object($cit) && method_exists($cit, 'getNotes'))\n { // invoke getNotes method\n $entry['text'] = $cit->getNotes();\n } // invoke getNotes method\n else\n { // treat as text\n $entry['text'] = $cit;\n } // treat as text\n } // not instance of Citation\n $parmTable[$key] = $entry;\n } // for each\n $template->updateTag('footnote$key', $parmTable);\n}", "title": "" }, { "docid": "9fe539aa3d1a4e894625b36256978928", "score": "0.5081882", "text": "public function meta()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "329c894b82f49a9823cf2d1a3d934a1f", "score": "0.508146", "text": "public function getMetadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "329c894b82f49a9823cf2d1a3d934a1f", "score": "0.508146", "text": "public function getMetadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "329c894b82f49a9823cf2d1a3d934a1f", "score": "0.508146", "text": "public function getMetadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "329c894b82f49a9823cf2d1a3d934a1f", "score": "0.508146", "text": "public function getMetadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "329c894b82f49a9823cf2d1a3d934a1f", "score": "0.508146", "text": "public function getMetadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "329c894b82f49a9823cf2d1a3d934a1f", "score": "0.508146", "text": "public function getMetadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "329c894b82f49a9823cf2d1a3d934a1f", "score": "0.508146", "text": "public function getMetadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "329c894b82f49a9823cf2d1a3d934a1f", "score": "0.508146", "text": "public function getMetadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "329c894b82f49a9823cf2d1a3d934a1f", "score": "0.508146", "text": "public function getMetadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "329c894b82f49a9823cf2d1a3d934a1f", "score": "0.508146", "text": "public function getMetadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "329c894b82f49a9823cf2d1a3d934a1f", "score": "0.508146", "text": "public function getMetadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "329c894b82f49a9823cf2d1a3d934a1f", "score": "0.508146", "text": "public function getMetadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "329c894b82f49a9823cf2d1a3d934a1f", "score": "0.508146", "text": "public function getMetadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "329c894b82f49a9823cf2d1a3d934a1f", "score": "0.508146", "text": "public function getMetadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "329c894b82f49a9823cf2d1a3d934a1f", "score": "0.508146", "text": "public function getMetadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "329c894b82f49a9823cf2d1a3d934a1f", "score": "0.508146", "text": "public function getMetadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "329c894b82f49a9823cf2d1a3d934a1f", "score": "0.508146", "text": "public function getMetadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "329c894b82f49a9823cf2d1a3d934a1f", "score": "0.508146", "text": "public function getMetadata()\n {\n return $this->metadata;\n }", "title": "" }, { "docid": "5fc765aad84e883fb1af3a9f4257af7e", "score": "0.5051282", "text": "function file_get_metadata_info() {\n static $result = array();\n if (empty($result)) {\n $result['dc:format'] = array('name' => t('MIME type'));\n $result['dc:extent'] = array('name' => t('Size'), 'theme' => 'file_metadata_size');\n foreach (module_implements('metadata_info') as $module) {\n if (($info = module_invoke($module, 'metadata_info')) && is_array($info))\n $result = array_merge($result, $info);\n }\n }\n return $result;\n}", "title": "" }, { "docid": "ea7e1ea087d1034a453bd7b0f2bece93", "score": "0.5047112", "text": "function getAttribution($offset = 0)\n {\n if (isset($this->attributions[$offset])) {\n return $this->_attributions[$offset];\n }\n }", "title": "" }, { "docid": "3edcdb5633c98f8fe74878ba07b27b01", "score": "0.5038115", "text": "abstract public function getMediaCopyright();", "title": "" }, { "docid": "fd12d70b6759337da71c8e296fb72e1f", "score": "0.50343007", "text": "public function metaDescription()\n\t{\n\t\tif( isset( $_SESSION['_findComment'] ) )\n\t\t{\n\t\t\t$commentId\t= $_SESSION['_findComment'];\n\t\t\tunset( $_SESSION['_findComment'] );\n\n\t\t\t$commentClass\t= static::$commentClass;\n\t\t\t\n\t\t\tif( $commentClass !== NULL )\t\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t$comment = $commentClass::loadAndCheckPerms( $commentId );\n\n\t\t\t\t\treturn $comment->content();\n\t\t\t\t}\n\t\t\t\tcatch( \\Exception $e ){}\n\t\t\t}\n\t\t}\n\n\t\tif ( isset( static::$databaseColumnMap['content'] ) )\n\t\t{\n\t\t\treturn parent::content();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->mapped('title');\n\t\t}\n\t}", "title": "" }, { "docid": "ba518cbca4f83dea4bc311daccf3ba21", "score": "0.5015601", "text": "public function getMetadata($path)\n {\n return $this->normalizeMetaData($path);\n }", "title": "" }, { "docid": "ae9e62435ccd9c9532d6e03ea75b78e4", "score": "0.501439", "text": "public static function getCitation(Dataset $dataset): string\n {\n $title = $dataset->getTitle();\n $udi = $dataset->getUdi();\n $author = $dataset->getAuthors();\n $year = null;\n if ($dataset->getAcceptedDate() instanceof \\Datetime) {\n $year = $dataset->getAcceptedDate()->format('Y');\n }\n $doi = $dataset->getDoi();\n\n $citationString = '';\n\n $citationString .= (!empty($author) ? \"$author. \" : '');\n $citationString .= (!empty($year) ? \"$year. \" : '');\n $citationString .= \"$title. \";\n $citationString .= 'Distributed by: Gulf of Mexico Research Initiative Information and Data Cooperative (GRIIDC), Harte Research Institute, Texas A&M University–Corpus Christi. ';\n\n if ($doi instanceof DOI) {\n $citationString .= 'doi:' . $doi->getDoi();\n } else {\n $citationString .= \"Available from: https://data.gulfresearchinitiative.org/data/$udi\";\n }\n return $citationString;\n }", "title": "" }, { "docid": "28de0c876fd82d5bc18e1d507724c751", "score": "0.50134635", "text": "function getCopyrightOwnerContactDetails() {\n\t\treturn $this->getData('copyrightOwnerContact');\n\t}", "title": "" }, { "docid": "5dc52003aa397778bddd5d7c7a5b557c", "score": "0.4995907", "text": "public function generateMetadata()\n {\n $parsable = array( 'dc:creator' => true,\n 'dc:date' => true,\n 'dc:description' => true,\n 'dc:language' => true,\n 'dc:subject' => true,\n 'dc:title' => true,\n 'meta:auto-reload' => false,\n 'meta:creation-date' => true,\n 'meta:document-statistic' => false,\n 'meta:editing-cycles' => false,\n 'meta:editing-duration' => false,\n 'meta:generator' => false,\n 'meta:hyperlink-behaviour' => false,\n 'meta:initial-creator' => true,\n 'meta:keyword' => true,\n 'meta:print-date' => false,\n 'meta:printed-by' => false,\n 'meta:template' => false, \n 'meta:user-defined' => true, \n );\n $meta = '';\n $metadata = array();\n if (\\is_array($this->_metadata)) {\n $metadata = $this->_metadata;\n } else if ($this->_metadata == true) {\n $dom = new \\DOMDocument;\n $dom->loadXML($this->_doc->template['meta.xml']);\n $base = $dom->getElementsByTagName('meta')->item(0);\n $childs = $base->childNodes;\n foreach ($childs as $child) {\n if ($child->nodeName == 'meta:user-defined') {\n $name = $child->getAttribute('meta:name');\n $value = $child->nodeValue;\n $metadata[$name] = $value;\n } else if (isset($parsable[$child->nodeName]) \n && $parsable[$child->nodeName]) {\n $temp = \\explode(':', $child->nodeName);\n $name = \\array_pop($temp);\n if ($name == 'keyword') {\n if (isset($metadata['keyword'])) {\n $value = ',' . $child->nodeValue;\n $metadata['keyword'] .= $value;\n } else {\n $value = $child->nodeValue;\n $metadata['keyword'] = $value;\n }\n } else {\n $value = $child->nodeValue;\n $metadata[$name] = $value;\n }\n }\n }\n } else {\n return $meta;\n }\n foreach ($metadata as $name => $content) {\n $meta .= '<meta name=\"' . $name . '\" ';\n $meta .= 'content=\"' . $content . '\">' . PHP_EOL;\n }\n return $meta;\n }", "title": "" }, { "docid": "77791b630f793d26300ddfe2acf8d79f", "score": "0.49952444", "text": "function metaData( $contentObjectAttribute )\r\n {\r\n \t$data = $contentObjectAttribute->attribute( \"data_text\" );\r\n \t/*Recuperation du codec de texte*/\r\n $codec = eztextcodec::instance( 'iso-8859-1');\r\n \r\n /*Remplacer les balises par des espaces*/\r\n $data = str_replace(\"<\", \" <\", $data);\r\n $data = str_replace(\">\", \"> \", $data);\r\n $data = strip_tags($data);\r\n \r\n /*Remplacement des valeurs numeriques*/\r\n $string = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec(\"\\\\1\"))', $data);\r\n\t\t$string = preg_replace('~&#([0-9]+);~e', 'chr(\\\\1)', $string);\r\n\r\n\t\t/*Traduction de la table de traduction avec le codec de texte*/\r\n $trans = get_html_translation_table(HTML_ENTITIES);\r\n $trans = array_flip($trans);\r\n foreach ($trans as $key => $val)\r\n {\r\n \t$trans[$key]= $codec->convertString($val);\r\n }\r\n \r\n /*Remplacement des entites via la table de traduction*/\r\n $temp = strtr($string, $trans);\r\n\t\teZDebug::writeDebug($temp, \"indexation-utf8\");\r\n \t\t\t\r\n return $temp;\r\n }", "title": "" }, { "docid": "64afaa4f4e74416b71dd9fc2501a6560", "score": "0.49927196", "text": "public function getMetadata()\n {\n return $this->get(self::RESULT_METADATA);\n }", "title": "" }, { "docid": "ab9034d57069673ce1fc8e8c2c1a270a", "score": "0.49839652", "text": "protected function getMetadata($path)\n {\n return $this->documents->getByPath($path);\n }", "title": "" }, { "docid": "c10c46b88b1d1aacce8721ee68c47af8", "score": "0.4983331", "text": "public function getCommonMetadata()\n {\n return $this->common_metadata;\n }", "title": "" }, { "docid": "b7f731018838e70777e5b259b58cc9d2", "score": "0.4982906", "text": "function &getMetaData(){\r\n\t\tdie('Not implemented');\r\n\t}", "title": "" }, { "docid": "46cdb7c8c9b43d945ed104026b6f2598", "score": "0.49776727", "text": "public function getMetadata() {\n return $this->metadata;\n }", "title": "" }, { "docid": "68e9edadcff0cb5534ba493ac9191eb1", "score": "0.4962277", "text": "public function getAuthorsrc()\n {\n return $this->authorsrc;\n }", "title": "" }, { "docid": "c2977ab50ddf5b4d3c5460a5c48e3e24", "score": "0.49592417", "text": "public function getImageMetadata(Image $image)\n {\n $metadata = array();\n $fields = array(\n 'Title' => './/mods:title',\n 'Creator' => './/mods:namePart[1]',\n 'Date' => './/mods:dateCreated[last()]',\n //'Usage Restrictions' => './/mods:accessCondition',\n 'Notes' => './mods:note'\n );\n $metadataId = $image->getId3();\n if ($image->getId4()) {\n $metadataId = $image->getId4();\n }\n $metadataUrl = $this->fillUrl(self::METADATA_URL_PATTERN, $image);\n $xpath = $this->fetchXpath($metadataUrl);\n $xpath->registerNamespace('mods', 'http://www.loc.gov/mods/v3');\n $recordIdent = $xpath->query(\"//mods:recordIdentifier[.='\".$metadataId.\"']\")->item(0);\n if ($recordIdent) {\n $recordContainer = $recordIdent->parentNode->parentNode;\n \n foreach ($fields as $name => $query) {\n $node = $xpath->query($query, $recordContainer)->item(0);\n if ($node) {\n $metadata[$name] = $node->textContent;\n }\n }\n }\n\n return $metadata;\n }", "title": "" }, { "docid": "af17f1607f65e06faacab7c2a1470c98", "score": "0.49526614", "text": "function _formatDataCitation($dataCitation, $persistentUri) {\n\t return str_replace($persistentUri, '<a href=\"'. $persistentUri .'\">'. $persistentUri .'</a>', strip_tags($dataCitation));\n\t}", "title": "" }, { "docid": "547ba224ada0f4a5eaf991b677c73af0", "score": "0.49509358", "text": "public function getMetadata(): Metadata\n {\n return $this->get('metadata');\n }", "title": "" }, { "docid": "471e5f8b1488acb2e1549ba828cf0921", "score": "0.49454716", "text": "function file_get_metadata($file) {\n return array($file->uri => file_metadata_extract(bitcache_get_path(file_get_hash($file), TRUE), $file->filemime));\n}", "title": "" }, { "docid": "76ab61a25af0fe64aad9986191e4d647", "score": "0.49418104", "text": "public function getMetadata($path)\n {\n return $this->storage->getObjectInfo($this->bucket,$path,true);\n }", "title": "" }, { "docid": "09943f91804781a49e958596c22a8bf4", "score": "0.49354163", "text": "public function getMetaData()\n\t\t{\n\t\t\treturn $this->meta_data;\n\t\t}", "title": "" }, { "docid": "b9b256c9e59790fdc12f0c4b0fc401ea", "score": "0.4934524", "text": "public static function getCopyright () {}", "title": "" }, { "docid": "affab160cb751804ea2e615950203937", "score": "0.4930159", "text": "public function getMetadata($path)\n {\n return $this->client->getObjectMetadata($this->bucket,$path);\n }", "title": "" }, { "docid": "c789c520320287ad7fd553eb66d629de", "score": "0.49279618", "text": "public function getMetadata(): array\n {\n return $this->fileInfo['Metadata'] ?? [];\n }", "title": "" }, { "docid": "a720e94f5c76d8dca202cb5d8d7b7dc7", "score": "0.49156573", "text": "public function getMetaData()\n {\n if (!$this->metadata) {\n $this->metadata = (new BlobMetadata())->init($this->blob->path);\n }\n\n return $this->metadata;\n }", "title": "" }, { "docid": "0ca6e80ce2818a578b46dc8924442522", "score": "0.48993248", "text": "function get_metadata($file) {\n global $outputdir;\n global $webrooturl;\n $contents = file($file, FILE_IGNORE_NEW_LINES); // whole file is in array by line\n $add_to_metadata = FALSE;\n for ($a = 0; $a < count($contents); $a++) {\n if ($contents[$a] == '-->') { // end of metadata\n $add_to_metadata = FALSE;\n break;\n }\n if ($add_to_metadata) {\n $lines[] = $contents[$a];\n }\n if ($contents[$a] == '<!-- METADATA') { // start of metadata\n $add_to_metadata = TRUE;\n }\n } // endfor looping through file\n foreach ($lines as $line) {\n $data = preg_split('/: /', $line); // split on [colon][space]\n $key = strtolower($data[0]);\n if ($key == 'tags') { // expand tags\n $tags = explode(',', $data[1]);\n array_walk($tags, create_function('&$text', '$text = trim($text);'));\n $metadata['tags'] = $tags;\n }\n else {\n $metadata[$key] = $data[1];\n }\n } //endforeach looping through metadata\n\n // right now, they're the same, but process_metadata() could change that.\n $metadata['title_text'] = strtr($metadata['title'], array('$' => '&#36;'));\n\n // now add stuff we can get from the file itself\n $metadata['infile'] = $file;\n $metadata['filename'] = pathinfo($file, PATHINFO_FILENAME);\n $metadata['outfile_uri'] = $metadata['filename'] . '.html';\n $metadata['outfile_path'] = $outputdir . '/' . $metadata['outfile_uri'];\n\n // posted becomes date, unless there's no date\n $metadata['posted'] = empty($metadata['date']) ? filemtime($file) : $metadata['date'];\n\n // just going to add these, to get rid of potental E_ stuff later\n $metadata['pre_content'] = '';\n $metadata['post_content'] = '';\n\n return process_metadata($metadata);\n}", "title": "" }, { "docid": "42d61ae3a8b6cf4581f2d062e2d153d0", "score": "0.4890912", "text": "public function getMetaDescription();", "title": "" }, { "docid": "7170ad4aa95a11813de28c8ed60f09f2", "score": "0.4873907", "text": "public function getTextExtractionModelMetadata()\n {\n return $this->readOneof(19);\n }", "title": "" }, { "docid": "b214b477f2013e7a9fcf2be3395ddb81", "score": "0.48699918", "text": "function getCopyright(){}", "title": "" }, { "docid": "b3e5d57d2c9e9f02eebd68da6f31264e", "score": "0.48571977", "text": "public function getMetadata() {\n return $this->meta;\n }", "title": "" }, { "docid": "86409fbd05fed8bf24861414fad7d32b", "score": "0.48430407", "text": "public function getcopyright(){}", "title": "" }, { "docid": "c5c06f6873733da921f314a55af3f7bf", "score": "0.4842415", "text": "function _get_related_citations_array($citations)\n\t{\n\t\tif (!is_array($citations))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t$result=array();\n\t\tforeach($citations as $citation)\n\t\t{\n\t\t\t$result[]=$citation['id'];\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "4c51b06287eed5642a1d7964ce24ec55", "score": "0.4828281", "text": "public function getcopyright()\n {\n }", "title": "" }, { "docid": "de2ff4c76b259d0bcc67aa61c35c168f", "score": "0.4807042", "text": "public function retrieveMetadata()\n {\n $response = $this->getClient()\n ->head($this->getUrl())\n ->send();\n\n $this->setMetadata($response->getHeaders(), true);\n\n return $this->metadata;\n }", "title": "" }, { "docid": "9abc4f4188dff85bd0acf66ab96e36a9", "score": "0.47923633", "text": "public function getAuthor();", "title": "" }, { "docid": "9abc4f4188dff85bd0acf66ab96e36a9", "score": "0.47923633", "text": "public function getAuthor();", "title": "" }, { "docid": "9abc4f4188dff85bd0acf66ab96e36a9", "score": "0.47923633", "text": "public function getAuthor();", "title": "" }, { "docid": "b131ec179efb1b9f595ac82c65fbe8b2", "score": "0.47910798", "text": "public function getCitations() {\n\t\tpreg_match_all('/\\n(2 SOUR @(' . WT_REGEX_XREF . ')@(?:\\n[3-9] .*)*)/', $this->getGedcom(), $matches, PREG_SET_ORDER);\n\t\t$citations = array();\n\t\tforeach ($matches as $match) {\n\t\t\t$source = Source::getInstance($match[2], $this->getParent()->getTree());\n\t\t\tif ($source->canShow()) {\n\t\t\t\t$citations[] = $match[1];\n\t\t\t}\n\t\t}\n\n\t\treturn $citations;\n\t}", "title": "" } ]
f24bed8b4d9d76b91ef23c3f33c41556
replace non letter or digits by
[ { "docid": "574f1db70e0bc80f31de16a4ddccdaf6", "score": "0.0", "text": "public function sluggify($text)\n {\n $text = preg_replace('~[^\\\\pL\\d]+~u', '-', $text);\n\n // trim\n $text = trim($text, '-');\n\n // transliterate\n $text = iconv('utf-8', 'us-ascii//TRANSLIT', $text);\n\n // lowercase\n $text = strtolower($text);\n\n // remove unwanted characters\n $text = preg_replace('~[^-\\w]+~', '', $text);\n\n if (empty($text))\n {\n return 'n-a';\n }\n\n return $text;\n }", "title": "" } ]
[ { "docid": "90e78e5bfa13e8521a7bbb220437b714", "score": "0.69549674", "text": "Function get_letter_from_alphanumeric($stngval){\n\t$char = preg_replace('/[0-9]/','',$stngval);\n\treturn $char;\n}", "title": "" }, { "docid": "e2c702cf6c807996aaf88c8d20afa5f2", "score": "0.66372234", "text": "private function alphaNumeric($value) {\n return ctype_alnum(str_replace(' ','', $value));\n }", "title": "" }, { "docid": "11c2c2a67d5a2e592bbddcc064945329", "score": "0.6519499", "text": "function AlphaNumericOnly_RepaceWithSpace( $string ){\n\treturn preg_replace('/[^a-zA-Z0-9\\s]/', ' ', $string);\n}", "title": "" }, { "docid": "b52a4fcf7c9501efa791c819bb560dca", "score": "0.63768095", "text": "function numbers($str){\n$result = preg_replace(\"/[^0-9.-]/\",\"\", $str); \nif($str===\"\"){\ndie(\"Missing input!\");\n}\nreturn($result);\n}", "title": "" }, { "docid": "6b5d803cf1bb9be6918f6f6e87fe929e", "score": "0.63657165", "text": "function valid_alphanum($val)\n{\n if (ctype_alnum($val))\n return $val;\n}", "title": "" }, { "docid": "b82e24ae659060829c704aaccd21d12b", "score": "0.63462096", "text": "function alphanumeric($str)\n{\n\t$str = preg_replace(\"/[^a-zA-Z0-9\\s]/\", '', $str);\n\treturn $str;\n}", "title": "" }, { "docid": "364c6081e502be72754d34ae817debef", "score": "0.629358", "text": "function txt_alphanumerical_clean( $t )\n\t{\n\t\treturn preg_replace( \"/[^a-zA-Z0-9\\-\\_]/\", \"\" , $t );\n }", "title": "" }, { "docid": "6b2a4bb7b2dea41076b2011a386094c5", "score": "0.6281693", "text": "function sanitize_alphanumeric_string($string) {\n $new_string = preg_replace(\"/[^a-zA-Z0-9_-]/\", \"\", $string);\n return $new_string;\n }", "title": "" }, { "docid": "b5a17f65b3b51900c6fd8bdb0ba7832d", "score": "0.62672627", "text": "public function alphanumeric($input,$exceptions='')\n {\n return preg_replace('/[^\\w'.preg_quote($exceptions).']/','',$input);\n }", "title": "" }, { "docid": "54edacdc67838fb3e859c38736dd1e8b", "score": "0.6230536", "text": "public function toAlphanumeric(): Utility\n {\n return $this->replaceNonAlphanumeric('', true);\n }", "title": "" }, { "docid": "e91d899db73fb049109391bdf897986f", "score": "0.6215774", "text": "function alphanumeric($text) {\n\treturn preg_replace(\"/[^a-zA-Z0-9_]+/\", \"\", substr($text, 0, 512));\n}", "title": "" }, { "docid": "5663573937ebbeb07910a939f62ddeda", "score": "0.61776716", "text": "function ctype_alnum($c) {}", "title": "" }, { "docid": "e85923e4a70beed2092b1a67737034df", "score": "0.6095987", "text": "function clean_phone($num) \n {\n $clean_phone = strtolower($num);\n $clean_phone = trim($clean_phone);\n //check if value have alphabet\n $clean_phone = preg_replace('/[^0-9]+/', \"\" ,$clean_phone);\n if($clean_phone != \"\") {\n //check value if start from 0 and it will replace with +62\n $clean_phone = 0 == substr($clean_phone, 0, 1) ? '+62'.substr($clean_phone, 1, strlen($clean_phone)) : '+'.$clean_phone ;\n }\n \n return $clean_phone;\n }", "title": "" }, { "docid": "a5ce62da281745c7b2ec8b9bba049d24", "score": "0.609002", "text": "function ui_lettersOnly($text) {\r\n\treturn preg_replace(\"/[^A-Z]/i\", '', $text);\r\n}", "title": "" }, { "docid": "f5a764b3784cddcebab4885a511e1387", "score": "0.607965", "text": "function prepare_input_alphanumeric($field = '')\n{\n\t$field = (string)$field;\n\t\n\tif(preg_match('/[^a-zA-z0-9_\\-\\.]/', $field)){\n\t\treturn '';\n\t}else{\n\t\treturn $field;\n\t}\n}", "title": "" }, { "docid": "0f42ab99c1c5910cda84598c65d40d2f", "score": "0.6012135", "text": "function PhoneDigits($phone)\n{\n return ereg_replace('[^0-9]','',$phone);\n}", "title": "" }, { "docid": "219e6367d842e6c48ecf00d59a3788f3", "score": "0.59867096", "text": "public static function alphaNumSp($input = '')\n {\n return preg_replace(\"/[^A-Za-z0-9 ]/\", \"\", $input);\n }", "title": "" }, { "docid": "eadb82be21de9320667c599b0a91ca95", "score": "0.59507024", "text": "function ctype_alpha($c) {}", "title": "" }, { "docid": "88805e19591b5b5fdabc1f24e5720b6d", "score": "0.5949998", "text": "function input_replace($str){\n\t\t# whatever small special code replacing\n\t\t$str = str_replace('--', '', $str);\n\t\t$str = str_replace(' ', '', $str);\n\t\t$str = str_replace('&nbsp;', '', $str);\n\t\treturn $str;\n\t}", "title": "" }, { "docid": "cd9dc0c6a12719fef395415468670dce", "score": "0.59378785", "text": "function ui_numbersOnly($text) {\r\n\treturn preg_replace(\"/[^0-9]/i\", '', $text);\r\n}", "title": "" }, { "docid": "7db99b88e3c06249f3d52c3de43d0a7d", "score": "0.59350824", "text": "public function onlyNumber($string) {\n\t\t$string = strtolower($string);\n\t\t$string = str_replace(' ' , '' , $string);\n\t\t$string = str_replace('__' , '' , $string);\n\t\t$string = str_replace(' ' , '' , $string);\n\t\t$string = str_replace(\"`\", \"\", $string);\n\t\t$string = str_replace(\"/\", \"\", $string);\n\t\t$string = str_replace(\"\\\\\", \"\", $string);\n\t\t$string = str_replace(\"'\", \"\", $string);\n\t\t$string = str_replace(\"(\", \"\", $string);\n\t\t$string = str_replace(\")\", \"\", $string);\n\t\t$string = str_replace(\"-\", \"\", $string);\n\t\t$string = str_replace(\".\", \"\", $string);\n\t\t$string = str_replace('___' , '' , $string);\n\t\t$string = str_replace('__' , '' , $string);\t \n\t\t$string = str_replace(' ' , '' , $string);\n\t\t$string = str_replace('__' , '' , $string);\n\t\t$string = str_replace(' ' , '' , $string);\n\t\t$string = str_replace(\"`\", \"\", $string);\n\t\t$string = str_replace(\"/\", \"\", $string);\n\t\t$string = str_replace(\"\\\\\", \"\", $string);\n\t\t$string = str_replace(\"'\", \"\", $string);\n\t\t$string = str_replace(\"(\", \"\", $string);\n\t\t$string = str_replace(\")\", \"\", $string);\n\t\t$string = str_replace(\"-\", \"\", $string);\n\t\t$string = str_replace(\".\", \"\", $string);\n\t\t$string = str_replace(\"–\", \"\", $string);\t\n\t\t$string = str_replace(\"#\", \"\", $string);\t\n\t\t$string = str_replace(\"$\", \"\", $string);\t\n\t\t$string = str_replace(\"@\", \"\", $string);\t\n\t\t$string = str_replace(\"!\", \"\", $string);\t\n\t\t$string = str_replace(\"&\", \"\", $string);\t\n\t\t$string = str_replace(';' , '' , $string);\t\t\n\t\t$string = str_replace(':' , '' , $string);\t\t\n\t\t$string = str_replace('[' , '' , $string);\t\t\n\t\t$string = str_replace(']' , '' , $string);\t\t\n\t\t$string = str_replace('|' , '' , $string);\t\t\n\t\t$string = str_replace('\\\\' , '' , $string);\t\t\n\t\t$string = str_replace('%' , '' , $string);\t\n\t\t$string = str_replace(';' , '' , $string);\t\t\n\t\t$string = str_replace(' ' , '' , $string);\n\t\t$string = str_replace('__' , '' , $string);\n\t\t$string = str_replace(' ' , '' , $string);\t\n\t\t$string = str_replace('-' , '' , $string);\t\n\t\t$string = str_replace('+27' , '0' , $string);\t\n\t\t$string = str_replace('(0)' , '' , $string);\t\n\t\t$string = preg_replace('/^00/', '0', $string);\n\t\t$string = preg_replace('/^27/', '0', $string);\n\t\t$string = preg_replace('!\\s+!',\"\", strip_tags($string));\n\t\treturn $string;\n\t}", "title": "" }, { "docid": "4179a5c1c5e21486f5e4a989de51d6ff", "score": "0.5905794", "text": "function specialChar_to_english_letters($text){\n return preg_replace(\"/&([a-z])[a-z]+;/i\", \"$1\", htmlentities($text));\n}", "title": "" }, { "docid": "f6659c6f15d412423f7d1c81cdaa5562", "score": "0.58662575", "text": "private function alpha($value) {\n return ctype_alpha(str_replace(' ','', $value));\n }", "title": "" }, { "docid": "4ac376c5d5c3b6b600913cd0e20c9075", "score": "0.5858441", "text": "private function _code($i) {\r\n \t$i = preg_replace(\"/[^a-zA-Z0-9]+/\", \"\", $i);\r\n \t$i = strtolower($i);\r\n\r\n \treturn $i;\r\n }", "title": "" }, { "docid": "2107af51da90a3210179369ee0605f6a", "score": "0.5848254", "text": "public static function ruleAlphanum($value)\n {\n return ctype_alnum($value);\n }", "title": "" }, { "docid": "0f449e8cc99f1f7125fc1387355fe039", "score": "0.58431715", "text": "private function convertNumberToLetter($text)\r\n {\r\n // Init\r\n $alphabet = array_merge(range('a', 'z'));\r\n $numberToText = [];\r\n $finalText = '';\r\n\r\n // Convertit le texte en tableau\r\n $textAsArray = preg_split(\"/(%\\d+%)/i\", $text, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);\r\n\r\n // Bouclage sur chaque lettre\r\n foreach ($textAsArray as $letter) {\r\n // Si c'est un nombre crypté\r\n if (preg_match(\"/(%\\d+%)/i\", $letter)) {\r\n $n = explode(\"%\", $letter); // Récupération que du nombre\r\n $numberToText[] = $alphabet[$n[1]]; // On repere sa place dans l'alphabet\r\n } else { // Sino c'est une lettre majuscule ou un signe de ponctuation ou un espace\r\n $numberToText[] = $letter;\r\n }\r\n }\r\n\r\n // Transformation du tableau en texte\r\n foreach ($numberToText as $word) {\r\n $finalText .= $word;\r\n }\r\n\r\n return $finalText;\r\n }", "title": "" }, { "docid": "972266d292baeaa5d3a995557d8c7b5a", "score": "0.5828877", "text": "public static function cleanupNum($in)\r\n {\r\n return strtr(trim($in), ['-' => '', '.' => '', ' ' => '', '_' => '']);\r\n }", "title": "" }, { "docid": "d01ff7f72119301d1497d3de206a360e", "score": "0.5816731", "text": "function doubleTiretNom($ch){\n $ch2 = $ch;\n if(strpbrk( $ch2,\"/[-]{3,}/\") ){\n $ch2=preg_replace ( \"/[-]{3,}/\", \"--\", $ch2);\n }\n \n \n return $ch2;\n \n }", "title": "" }, { "docid": "38ee3692e29fb0ae0397554878356347", "score": "0.5812716", "text": "function convert_to_space_case($input) {\n\t\tpreg_match_all('!([A-Z][A-Z0-9]*(?=$|[A-Z][a-z0-9])|[A-Za-z][a-z0-9]+)!', $input, $matches);\n\t\t$ret = str_replace(\"_\", \"\", implode(\" \", $matches[0]));\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "3fc87a5320bfe6be5cdf5e6cd1a2b38b", "score": "0.5773008", "text": "function decode($input) {\n if (empty($input)) {\n return $input;\n }\n\n $output = '';\n if(!preg_match_all('/\\d+[a-zA-Z\\s]+/', $input, $matches)) {\n return $input;\n }\n\n // print_r ($matches);\n foreach ($matches[0] as $index => $match) {\n $match;\n $matchLen = strlen($match);\n $num = intval($match);\n $hasSetChar = false;\n $char = '';\n for ($n = 0; $n < $matchLen; $n++) {\n if (is_numeric($match[$n])) {\n continue;\n }\n\n if ($hasSetChar) {\n //if it's different, then just spit it out\n $output .= $match[$n];\n } else {\n //should only fall into this block once\n //at the start\n $char = $match[$n];\n while ($num > 0) {\n $output .= $char;\n $num--;\n }\n\n $hasSetChar = true;\n }\n }\n }\n\n return $output;\n}", "title": "" }, { "docid": "9b2d42017430088899865815a9110b23", "score": "0.57239956", "text": "public function toAlpha(): Utility\n {\n return $this->replaceNonAlpha('', true);\n }", "title": "" }, { "docid": "5e19b5856b0c8976f648d1217e1f7a35", "score": "0.57056195", "text": "function sanitize_to_word($dirty){\n\treturn preg_replace(\"[^A-Za-z0-9_\\-]\", \"\", (string) $dirty);\t\n}", "title": "" }, { "docid": "940122b48aab917772b7e99707425c1e", "score": "0.5694574", "text": "function clean_digits($str){\n\n $newstr = preg_replace('/,/','',$str);\n\n return $newstr;\n }", "title": "" }, { "docid": "40486eacdf83d2612cf981b7c1a658bd", "score": "0.56935704", "text": "function cleanInput($input)\r\n\t\t{\r\n\t\t\t$input = preg_replace('/[^a-zA-Z0-9\\s]/', '', $input);\r\n\t\t\t$input = str_replace(\" \",\"+\",$input);\r\n\t\t\t$input = str_replace(\"++\",\"+\",$input);\r\n\t\t\t\r\n\t\t\treturn $input;\r\n\t\t}", "title": "" }, { "docid": "39f5aa1cd248e34401d8b909bb41c2f8", "score": "0.56844586", "text": "function ctrl_phone($phone){\r\n $phone=preg_replace('/\\D/','',$phone);\r\n $phone = preg_replace(\"/(\\d+)(\\d{3}+)(\\d{4})$/\",'($1)$2-$3',$phone);\r\n $phone = preg_replace(\"/(\\d+)(\\d{4})$/\",'$1-$2',$phone);\r\nreturn $phone;}", "title": "" }, { "docid": "5fac89f4ddbb5fe8db56eda013a939cb", "score": "0.5683341", "text": "public function testPregReplaceSanitizer()\n {\n $this->assertEquals('asdfg', Sanitize::pregReplace('/[^A-Za-z]/', '')->clean('1234asdfg'));\n }", "title": "" }, { "docid": "3400336de6b43cb64eb4c4c604c20696", "score": "0.56823856", "text": "function alphaOnly(string $str): string\n{\n $out = \"\";\n for ($i = 0; $i < strlen($str); $i++) {\n $chr = $str[$i];\n if (preg_match('/[A-Za-z]/', $chr)) {\n $out .= $chr;\n }\n }\n return $out;\n}", "title": "" }, { "docid": "267996136284a00f6a9850f335f400b6", "score": "0.5664949", "text": "function mettreMinuscule($ch){\n $accent = array('/É/', '/È/', '/Ê/', '/Ë/', '/Î/', '/Ï/', '/Ô/', '/Ö/', '/Û/', '/Ü/', '/Ù/', '/Â/', '/À/', '/Ä/');\n $replace = array('é','è','ê','ë', 'î', 'ï', 'ô', 'ö', 'û', 'ü', 'ù', 'â', 'à', 'ä');\n $ch = preg_replace($accent,$replace,$ch);\n $ch = strtolower($ch);\n return $ch;\n }", "title": "" }, { "docid": "11400004289b20b594d0214cee32885e", "score": "0.5664674", "text": "function preg($data){\n\tif(!empty($data)){\n\t\tpreg_replace('#[^a-zA-Z0-9]#i','', $data);\n\t\treturn $data;\n\t\t} else { \n\t\t $data = null;\n\t\t\treturn $data;\n\t\t}\n}", "title": "" }, { "docid": "5d9a62aeffbca5e90a0e05ae03fcdb8c", "score": "0.5648852", "text": "public static function toAlnum(string $string) : string\n\t{\n\t\tif (ctype_alnum($string)) {\n\t\t\treturn $string;\n\t\t}\n\n\t\treturn preg_replace('/[^a-zA-Z0-9]/', '', $string);\n\t}", "title": "" }, { "docid": "c437b94c0a6d31bd761fb42c83827679", "score": "0.56398404", "text": "private function simplifyText(string $text): string {\n $pattern = \"/[^\\w\\d]/im\";\n return strtoupper(preg_replace($pattern, \"\", $text));\n }", "title": "" }, { "docid": "bb11a32a9d151fd0c8709635336c7d0a", "score": "0.56129766", "text": "function chess_sanitize($text, $allowed_characters = 'A-Za-z0-9') {\n\n\t$char_class = preg_quote($allowed_characters, '/');\n\treturn preg_replace(\"/[^$char_class]/\", '_', $text);\n}", "title": "" }, { "docid": "c4d753f31a6996fe945e18260221ff99", "score": "0.5609363", "text": "protected function getAlphaNum($key){\n if (isset($_POST[$key]) && !empty($_POST[$key])) {\n $_POST[$key] = (string) preg_replace('/[^A-Za-z0-9_]/i', '', $_POST[$key]);\n return trim($_POST[$key]);\n }\n }", "title": "" }, { "docid": "a7f44c4a758b810b9b807628006260e2", "score": "0.56060874", "text": "function fCleanSimple($cadena,$mod=0){\r\n\t$conv = array(\" \" => \"-\", \"_T_\" => \"_t_\");\r\n\t$cadena = utf8_decode($cadena);\r\n $cadena = strtr($cadena,$conv); \r\n\t$cadena = preg_replace(\"/[#?¿!¡|*\\\\/:%+]/\", \"\", $cadena);\r\n\treturn $cadena;\r\n}", "title": "" }, { "docid": "0100d526e1e09cde08d427a4b311f882", "score": "0.5594986", "text": "function clean_int ( $data ) {\n return preg_replace ( '/\\D/', '', $data );\n}", "title": "" }, { "docid": "099a16f6ebb83dfe945d6ad307dd2903", "score": "0.5588917", "text": "function generate_a($st){\n //static $chars=array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');\n static $chars=array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z');\n\n for($i=0;$i<11;++$i){\n if($i<6){\n if($i%2==0||$i%3==0) //This statement is used to select the number to replaced in string\n {\n $st[$i]=$chars[val($st[$i])]; //The numeric values are being replaced by the alphabets of $chars array with the help of val() function\n }\n }\n elseif($i>6){\n if($i%2==0){\n $st[$i]=$chars[val($st[$i])];\n }\n }\n }\n\nreturn $st;\n}", "title": "" }, { "docid": "dff33311cc64821143634f79f4d26f2f", "score": "0.5583951", "text": "public function isAlphaNumeric()\n {\n\n return TRUE; //@TODO this^$this->matchesRegex('/[^a-z_\\-0-9]/i');\n\n }", "title": "" }, { "docid": "4588f22c41f26854648a3b423f9f77a3", "score": "0.55754983", "text": "function str_convert($str, $_ = '_'){\n $str = strtolower($str);\n $str = str_replace(\n array(' ','.','@','/','\\\\',';',':','+','-'), $_, $str);\n $str = str_replace(array('&amp','&'), $_.'and'.$_, $str);\n $str = preg_replace('~[^a-zA-Z0-9-]~', $_, $str);\n return str_replace(array($_.$_.$_,$_.$_,$_.$_), $_, $str);\n}", "title": "" }, { "docid": "f5ba257f5a12484cf596774bbba7ceef", "score": "0.5575294", "text": "function cleanse_refcode($refcode)\n{\n\t$refcode = substr($refcode,0,6);\n\t$refcode = str_pad($refcode,'0',STR_PAD_LEFT);\n\t$refcode = strtolower($refcode);\n\t$refcode = preg_replace('/[^0-9a-z]/','_',$refcode);\n\treturn $refcode;\n}", "title": "" }, { "docid": "93bdf85302c7e516d866a74ada2cdad8", "score": "0.5566476", "text": "function strfix($text)\n{\n\n $search = array (\"/ä/\",\"/Ä/\",\"/ö/\",\"/Ö/\",\"/ü/\",\"/Ü/\",\"/ß/\"); # suchen nach ...\n $replace = array (\"AE\",\"AE\",\"OE\",\"OE\",\"UE\",\"UE\",\"SS\"); # ersetzen durch ...\n $text = preg_replace($search, $replace, $text);\n return $text;\n\n}", "title": "" }, { "docid": "a32a65a3be16ee2e477a87970c87e553", "score": "0.55596966", "text": "function cleanString ($string){\n $string = preg_replace(\"/[^\\w\\s]+/u\", \"\", $string);\n //removes numbers\n $string = preg_replace(\"/\\d+/u\", \"\", $string);\n return $string;\n}", "title": "" }, { "docid": "d19065e22c4e8a3e29de1c2552c720ed", "score": "0.55548185", "text": "function validName($input)\r\n{\r\n return ctype_alpha(str_replace(' ','',$input));\r\n}", "title": "" }, { "docid": "4a5596e45688a64973202fe2fe0e8a84", "score": "0.55520827", "text": "function underscore($str) {\n\n\t$str = deaccentuate(trim($str));\n $str = preg_replace(array('/[\\s.,\\']+/'), '_', strtolower($str));\n $str = preg_replace(array('/[^a-z0-9\\-_]+/'),'',$str);\n if(empty($str)) $str=\"_\";\n return $str;\n\t\n}", "title": "" }, { "docid": "c6847570e158dcbf9e6bb24a3669982a", "score": "0.55499166", "text": "function strip_bad_chars( $input ) {\n\t\t$output = preg_replace( \"/[^a-zA-Z0-9_-]/\", \"\",$input);\n\t\treturn $output;\n\t}", "title": "" }, { "docid": "9089405a1f7bcbd4a38dddc8d8bdb2ce", "score": "0.55492616", "text": "public function stripAsciiCtrl($str);", "title": "" }, { "docid": "f49b8ae669036b0d414362355b055f20", "score": "0.5536119", "text": "function removeUnwantedCharacter($str) {\n $unwanted_array = array( 'Š'=>'S', 'š'=>'s', 'Ž'=>'Z', 'ž'=>'z', 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', 'Å'=>'A', 'Æ'=>'A', 'Ç'=>'C', 'È'=>'E', 'É'=>'E',\n 'Ê'=>'E', 'Ë'=>'E', 'Ì'=>'I', 'Í'=>'I', 'Î'=>'I', 'Ï'=>'I', 'Ñ'=>'N', 'Ò'=>'O', 'Ó'=>'O', 'Ô'=>'O', 'Õ'=>'O', 'Ö'=>'O', 'Ø'=>'O', 'Ù'=>'U',\n 'Ú'=>'U', 'Û'=>'U', 'Ü'=>'U', 'Ý'=>'Y', 'Þ'=>'B', 'ß'=>'Ss', 'à'=>'a', 'á'=>'a', 'â'=>'a', 'ã'=>'a', 'ä'=>'a', 'å'=>'a', 'æ'=>'a', 'ç'=>'c',\n 'è'=>'e', 'é'=>'e', 'ê'=>'e', 'ë'=>'e', 'ì'=>'i', 'í'=>'i', 'î'=>'i', 'ï'=>'i', 'ð'=>'o', 'ñ'=>'n', 'ò'=>'o', 'ó'=>'o', 'ô'=>'o', 'õ'=>'o',\n 'ö'=>'o', 'ø'=>'o', 'ù'=>'u', 'ú'=>'u', 'û'=>'u', 'ý'=>'y', 'þ'=>'b', 'ÿ'=>'y' );\n $str = strtr( $str, $unwanted_array );\n\n return $str;\n}", "title": "" }, { "docid": "a45d125df4d129e85a596aef7a554ede", "score": "0.5526435", "text": "function cleanName($nameField){\n if(is_string($nameField)){\n $specialChars = array('@','<','$','%','^','&','*','>','?');\n\n for($i = 0; $i < count($specialChars); $i++)\n {\n $nameField = str_replace($specialChars[$i],'',$nameField);\n }\n }\n return $nameField;\n}", "title": "" }, { "docid": "01fe481c4de14f974ad989fa995d0470", "score": "0.5520995", "text": "public function fixDuplicateCharacters($str)\n {\n // REPLACE(_, 'ά', 'ά') - 1F71,03AC - Lowercase Alpha + acute\n // REPLACE(_, 'Ά', 'Ά') - 1FBB,0386 - Uppercase Alpha + acute\n // REPLACE(_, 'έ', 'έ') - 1F73,03AD - Lowercase Epsilon + acute\n // REPLACE(_, 'Έ', 'Έ') - 1FC9,0388 - Uppercase Epsilon + acute\n // REPLACE(_, 'ή', 'ή') - 1F75,03AE - Lowercase Eta + acute\n // REPLACE(_, 'Ή', 'Ή') - 1FCB,0389 - Uppercase Eta + acute\n // REPLACE(_, 'ί', 'ί') - 1F77,03AF - Lowercase Iota + acute\n // REPLACE(_, 'Ί', 'Ί') - 1FDB,038A - Uppercase Iota + acute\n // REPLACE(_, 'ό', 'ό') - 1F79,03CC - Lowercase Omicron + acute\n // REPLACE(_, 'Ό', 'Ό') - 1FF9,038C - Uppercase Omicron + acute\n // REPLACE(_, 'ύ', 'ύ') - 1F7B,03CD - Lowercase Upsilon + acute\n // REPLACE(_, 'Ύ', 'Ύ') - 1FEB,038E - Uppercase Upsilon + acute\n // REPLACE(_, 'ώ', 'ώ') - 1F7D,03CE - Lowercase Omega + acute\n // REPLACE(_, 'Ώ', 'Ώ') - 1FFB,038F - Uppercase Omega + acute \n\n // Extra case: <὏> 8015, Hex 1f4f, Octal 17517 \n // 1FBF is a non-combining circumflex, hence the display issues, but\n // it appears in the Perseus dataset. It does not exist as a Unicode\n // Extended Greek character. Leaving in the DB. Romanizing to \"ho\". \n //\n // <὏> 8015, Hex 1f4f, Octal 17517\n\n $tr = array(\n\n $this->unicodeChr('1F71') => $this->unicodeChr('03AC'), // Lowercase Alpha + acute\n $this->unicodeChr('1FBB') => $this->unicodeChr('0386'), // Uppercase Alpha + acute\n $this->unicodeChr('1F73') => $this->unicodeChr('03AD'), // Lowercase Epsilon + acute\n $this->unicodeChr('1FC9') => $this->unicodeChr('0388'), // Uppercase Epsilon + acute\n $this->unicodeChr('1F75') => $this->unicodeChr('03AE'), // Lowercase Eta + acute\n $this->unicodeChr('1FCB') => $this->unicodeChr('0389'), // Uppercase Eta + acute\n $this->unicodeChr('1F77') => $this->unicodeChr('03AF'), // Lowercase Iota + acute\n $this->unicodeChr('1FDB') => $this->unicodeChr('038A'), // Uppercase Iota + acute\n $this->unicodeChr('1F79') => $this->unicodeChr('03CC'), // Lowercase Omicron + acute\n $this->unicodeChr('1FF9') => $this->unicodeChr('038C'), // Uppercase Omicron + acute\n $this->unicodeChr('1F7B') => $this->unicodeChr('03CD'), // Lowercase Upsilon + acute\n $this->unicodeChr('1FEB') => $this->unicodeChr('038E'), // Uppercase Upsilon + acute\n $this->unicodeChr('1F7D') => $this->unicodeChr('03CE'), // Lowercase Omega + acute\n $this->unicodeChr('1FFB') => $this->unicodeChr('038F'), // Uppercase Omega + acute \n\n $this->unicodeChr('2019') => \"'\", // Abbreviation in classical texts: ’\n $this->unicodeChr('1FBD') => \"'\", // Koronis is given as a single-quote in the DB.\n\n \"’\" => \"'\", // Abbreviation was unmatched -- ? \n\n ); \n\n return str_replace(\n array_keys($tr), \n array_values($tr), \n $str\n );\n }", "title": "" }, { "docid": "2333e2c5a141916a8f6b695c7b211ec1", "score": "0.55134326", "text": "static function normalizeTelephone($tel)\n\t{\n\t\t$tel = strtolower(iconv('UTF-8', 'ASCII//TRANSLIT', $tel));\n\t\t$tel = preg_replace('/[^0-9]/', '', $tel);\n\t\treturn $tel;\n\t}", "title": "" }, { "docid": "76696c960d80286290576baa1f1c920c", "score": "0.55055445", "text": "function decamelize($value)\n{\n $output = preg_replace('/([A-Z0-9]+)([A-Z0-9][a-z])/', '${1} ${2}', preg_replace('/([a-z\\d])([A-Z0-9])/', '${1} ${2}', $value));\n // echo '$output: ' . $output . \"\\n\";\n // echo '-------------------------------' . \"\\n\";\n return $output;\n}", "title": "" }, { "docid": "46d2d4b5d5b6db8ce476b5a4bb2703a0", "score": "0.5504461", "text": "function isAlphaNum($c) {\n\t\tif(preg_match('/[a-z]|[A-Z]|[0-9]/', $c)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "2939100a7665936208da1771e6b0eb73", "score": "0.54958314", "text": "public static function isAlphaNum($input)\n\t{\n\t\tif(ctype_alnum($input))\n\t\t\treturn $input;\n\t\telse\n\t\t\treturn null;\n\t}", "title": "" }, { "docid": "ab6affacadecfb9a4de9ea9eae5d5801", "score": "0.5486745", "text": "function px_sanitize( $string ) {\r\n\t$string = mb_strtolower( preg_replace( '/([^a-z0-9]+)/', '_', $string ) );\r\n\treturn preg_replace( \"/_$/\", '', $string );\r\n}", "title": "" }, { "docid": "05d936f90ae15c3429934af270935382", "score": "0.5482715", "text": "function filter_str($string, $lainnya='')\r\n{\r\nif ($lainnya == '')\r\n$filter = preg_replace('/[^a-zA-Z0-9_]/', '', $string);\r\nelse\r\n$filter = preg_replace(\"/[^a-zA-Z0-9_$lainnya]/\", '', $string);\r\nreturn $filter;\r\n}", "title": "" }, { "docid": "7338c301e5df0c01227416bcaca0949b", "score": "0.54782397", "text": "function alphaNumeric($data) {\n\t\t$data= trim($data);\n\t\tif (!validate::checkField($data)) return FALSE;\n\t\tif (!eregi(\"^[A-Za-z0-9]+$\", $data)) return FALSE;\n\t\telse return TRUE;\n\t}", "title": "" }, { "docid": "842b140ac496bb3f10249d7e8e82a348", "score": "0.54717064", "text": "function is_alphanum(\r\n $data_str // string to validate\r\n )\r\n{\r\n if (strlen($data_str) < 6)\r\n\treturn -1;\r\n \r\n if ( !ereg(\"[a-zA-Z0-9]\", $data_str) )\r\n\treturn -1;\r\n\t\r\n return 0;\r\n}", "title": "" }, { "docid": "ff43df5e85834e1e16f3c209544d8d1f", "score": "0.54662395", "text": "function specialChar_to_english_letters2($txt) {\n $transliterationTable = array('á' => 'a', 'Á' => 'A', 'à' => 'a', 'À' => 'A', '?' => 'a', '?' => 'A', 'â' => 'a', 'Â' => 'A', 'å' => 'a', 'Å' => 'A', 'ã' => 'a', 'Ã' => 'A', '?' => 'a', '?' => 'A', '?' => 'a', '?' => 'A', 'ä' => 'ae', 'Ä' => 'AE', 'æ' => 'ae', 'Æ' => 'AE', '?' => 'b', '?' => 'B', '?' => 'c', '?' => 'C', '?' => 'c', '?' => 'C', '?' => 'c', '?' => 'C', '?' => 'c', '?' => 'C', 'ç' => 'c', 'Ç' => 'C', '?' => 'd', '?' => 'D', '?' => 'd', '?' => 'D', '?' => 'd', '?' => 'D', 'ð' => 'dh', 'Ð' => 'Dh', 'é' => 'e', 'É' => 'E', 'è' => 'e', 'È' => 'E', '?' => 'e', '?' => 'E', 'ê' => 'e', 'Ê' => 'E', '?' => 'e', '?' => 'E', 'ë' => 'e', 'Ë' => 'E', '?' => 'e', '?' => 'E', '?' => 'e', '?' => 'E', '?' => 'e', '?' => 'E', '?' => 'f', '?' => 'F', 'ƒ' => 'f', '?' => 'F', '?' => 'g', '?' => 'G', '?' => 'g', '?' => 'G', '?' => 'g', '?' => 'G', '?' => 'g', '?' => 'G', '?' => 'h', '?' => 'H', '?' => 'h', '?' => 'H', 'í' => 'i', 'Í' => 'I', 'ì' => 'i', 'Ì' => 'I', 'î' => 'i', 'Î' => 'I', 'ï' => 'i', 'Ï' => 'I', '?' => 'i', '?' => 'I', '?' => 'i', '?' => 'I', '?' => 'i', '?' => 'I', '?' => 'j', '?' => 'J', '?' => 'k', '?' => 'K', '?' => 'l', '?' => 'L', '?' => 'l', '?' => 'L', '?' => 'l', '?' => 'L', '?' => 'l', '?' => 'L', '?' => 'm', '?' => 'M', '?' => 'n', '?' => 'N', '?' => 'n', '?' => 'N', 'ñ' => 'n', 'Ñ' => 'N', '?' => 'n', '?' => 'N', 'ó' => 'o', 'Ó' => 'O', 'ò' => 'o', 'Ò' => 'O', 'ô' => 'o', 'Ô' => 'O', '?' => 'o', '?' => 'O', 'õ' => 'o', 'Õ' => 'O', 'ø' => 'oe', 'Ø' => 'OE', '?' => 'o', '?' => 'O', '?' => 'o', '?' => 'O', 'ö' => 'oe', 'Ö' => 'OE', '?' => 'p', '?' => 'P', '?' => 'r', '?' => 'R', '?' => 'r', '?' => 'R', '?' => 'r', '?' => 'R', '?' => 's', '?' => 'S', '?' => 's', '?' => 'S', 'š' => 's', 'Š' => 'S', '?' => 's', '?' => 'S', '?' => 's', '?' => 'S', '?' => 's', '?' => 'S', 'ß' => 'SS', '?' => 't', '?' => 'T', '?' => 't', '?' => 'T', '?' => 't', '?' => 'T', '?' => 't', '?' => 'T', '?' => 't', '?' => 'T', 'ú' => 'u', 'Ú' => 'U', 'ù' => 'u', 'Ù' => 'U', '?' => 'u', '?' => 'U', 'û' => 'u', 'Û' => 'U', '?' => 'u', '?' => 'U', '?' => 'u', '?' => 'U', '?' => 'u', '?' => 'U', '?' => 'u', '?' => 'U', '?' => 'u', '?' => 'U', '?' => 'u', '?' => 'U', 'ü' => 'ue', 'Ü' => 'UE', '?' => 'w', '?' => 'W', '?' => 'w', '?' => 'W', '?' => 'w', '?' => 'W', '?' => 'w', '?' => 'W', 'ý' => 'y', 'Ý' => 'Y', '?' => 'y', '?' => 'Y', '?' => 'y', '?' => 'Y', 'ÿ' => 'y', 'Ÿ' => 'Y', '?' => 'z', '?' => 'Z', 'ž' => 'z', 'Ž' => 'Z', '?' => 'z', '?' => 'Z', 'þ' => 'th', 'Þ' => 'Th', 'µ' => 'u', '?' => 'a', '?' => 'a', '?' => 'b', '?' => 'b', '?' => 'v', '?' => 'v', '?' => 'g', '?' => 'g', '?' => 'd', '?' => 'd', '?' => 'e', '?' => 'E', '?' => 'e', '?' => 'E', '?' => 'zh', '?' => 'zh', '?' => 'z', '?' => 'z', '?' => 'i', '?' => 'i', '?' => 'j', '?' => 'j', '?' => 'k', '?' => 'k', '?' => 'l', '?' => 'l', '?' => 'm', '?' => 'm', '?' => 'n', '?' => 'n', '?' => 'o', '?' => 'o', '?' => 'p', '?' => 'p', '?' => 'r', '?' => 'r', '?' => 's', '?' => 's', '?' => 't', '?' => 't', '?' => 'u', '?' => 'u', '?' => 'f', '?' => 'f', '?' => 'h', '?' => 'h', '?' => 'c', '?' => 'c', '?' => 'ch', '?' => 'ch', '?' => 'sh', '?' => 'sh', '?' => 'sch', '?' => 'sch', '?' => '', '?' => '', '?' => 'y', '?' => 'y', '?' => '', '?' => '', '?' => 'e', '?' => 'e', '?' => 'ju', '?' => 'ju', '?' => 'ja', '?' => 'ja');\n return str_replace(array_keys($transliterationTable), array_values($transliterationTable), $txt);\n}", "title": "" }, { "docid": "6de97945aa37877326f118ee2e3dcd5f", "score": "0.5457129", "text": "function clean_word ( $data ) {\n return preg_replace ( '/\\W/', '', $data );\n}", "title": "" }, { "docid": "a9c92573c7d03ed94ddfbd98b30068ea", "score": "0.5455044", "text": "function persian($string) {\n //arrays of persian and latin numbers\n $persian_num = array('۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹');\n $latin_num = range(0, 9);\n\n $string = str_replace($latin_num, $persian_num, $string);\n\n return $string;\n}", "title": "" }, { "docid": "a03e0bcea5d826af3fea54d4fd16cea1", "score": "0.54525673", "text": "function KillChars ($sInput)\n{\n $newchars = \"\";\n if ($sInput != null && $sInput != \"\")\n {\n $badchars = array (\"select\", \"drop\", \";\", \"--\", \"insert\", \"delete\", \"xp_\", \"update\", \"'or'\", \"=\" , \"*\", \"#\", \"union\", \"limit\", \"and\", \"Order By\", \"CREATE\"\n ,\"ANALYZE\", \"ASC\", \"BETWEEN\", \"BLOB\", \"CALL\", \"CHANGE\", \"CHECK\", \"CONDITION\", \"CONVERT\", \"CURRENT_DATE\", \"CURRENT_USER\", \"DATABASES\", \"DAY_MINUTE\", \"DECIMAL\"\n ,\"DELAYED\", \"DESCRIBE\", \"DISTINCTROW\", \"DROP\", \"ELSE\", \"ESCAPED\", \"EXPLAIN\", \"FLOAT\", \"FOR\", \"INOUT\", \"INT\", \"INT3\", \"INTEGER\");\n $sInput = str_replace($badchars, \"\", $sInput);\n if ( preg_match('/^@[u0080-Za-z0-9\\s\\.]+$/', $sInput))\n \n {\n $sInput=\"\";\n }\n\n }\n return $sInput;\n}", "title": "" }, { "docid": "5f9e1438681bcf6862a1d4dd66fa0dfd", "score": "0.54492265", "text": "function slugtext($value) {\r\n\t$text = preg_replace('~[^\\pL\\d]+~u', '-', $value);\r\n\t// transliterate\r\n\t$text = iconv('utf-8', 'us-ascii//TRANSLIT', $text);\r\n\t// remove unwanted characters\r\n\t$text = preg_replace('~[^-\\w]+~', '', $text);\r\n\t// trim\r\n\t$text = trim($text, '-');\r\n\t// remove duplicate -\r\n\t$text = preg_replace('~-+~', '-', $text);\r\n\t// lowercase\r\n\t$text = strtolower($text);\r\n\tif (empty($text)) {\r\n\t return 'n-a';\r\n\t}\r\n\treturn $text;\r\n}", "title": "" }, { "docid": "9a9a9d8adf96e94236ab3b664ba01285", "score": "0.5436591", "text": "protected function removeNonAlphaNumeric(string $string)\n {\n return preg_replace('/\\W*/', '', $string);\n }", "title": "" }, { "docid": "192f670070510944da0cf37365f020ff", "score": "0.5431455", "text": "function slugify($text)\n{\n $text = preg_replace('~[^\\\\pL\\d]+~u', '_', $text);\n\n // trim\n $text = trim($text, '_');\n\n // transliterate\n $text = iconv('utf-8', 'us-ascii//TRANSLIT', $text);\n\n // lowercase\n $text = strtolower($text);\n\n // remove unwanted characters\n $text = preg_replace('~[^-\\w]+~', '', $text);\n\n if (empty($text)) {\n return 'n-a';\n }\n\n return $text;\n}", "title": "" }, { "docid": "11e96b197561089ccae7d88c50227cf3", "score": "0.5429615", "text": "function alpha_dash_space_utf8_numbers($str) {\r\n return (!preg_match(\"/^([a-zñáéíóúÑÁÉÍÓÚ\\-\\_\\.\\, 0-9])+$/i\", $str)) ? FALSE : TRUE;\r\n }", "title": "" }, { "docid": "80e7be45bc0b22fc79b4c9c320fc773d", "score": "0.5429215", "text": "public function stripNonAscii($str);", "title": "" }, { "docid": "9a9cc576f5fdb41453d2ea9d6105f0c3", "score": "0.5417613", "text": "function keyify($text) {\n return strtoupper(str_replace(' ', '_', $text));\n}", "title": "" }, { "docid": "4093a92355ed2cd98e9091da7e45fda8", "score": "0.54159385", "text": "public function getOnlyAlphabetNumeric(string $char, bool $remove_whitespace = false)\n {\n return (!$remove_whitespace)\n ? preg_replace(\"/[^A-Za-z0-9]/\",\" $1\" ,$char)\n : trim(preg_replace(\"/[^A-Za-z0-9]/\",\"$1\" ,$char));\n }", "title": "" }, { "docid": "cf6155cdd7cd08909149dd4f925d00d1", "score": "0.54153246", "text": "function remove_unwanted_chars($string) {\n\t\n\t// replace annoying characters characters with a space:\n\t//\n\t\t$string = preg_replace (\"/\\W+ /\",\" \",$string); //remove non word characters at end of word\n\t\t$string = preg_replace (\"/ \\W+/\",\" \",$string); //remove non word characters at start of word\n\t\t$string = preg_replace (\"/^\\W+/\",\"\",$string); //remove non word characters at start of string\n\t\t$string = preg_replace (\"/\\W+$/\",\"\",$string); //remove non word characters at end of string\n\t\t$string = preg_replace (\"/'/\",\"\",$string); // remove single quotes\n\t\t$string = preg_replace (\"/-/\",\" \",$string); // convert hyphen to space\n\t\t$string = preg_replace (\"/\\s/\",\" \",$string); // convert whitespace characters to definite space\n\t\t\n\t\n\treturn $string;\n\n}", "title": "" }, { "docid": "34654ec357fe5f6bb581cbc979852257", "score": "0.5405947", "text": "function add_nbsps($text): string\n\t{\n\t\t$PATTERN = [\n\t\t\t'ALPHA'\t\t=> '[\\p{L}\\_\\/]',\n\t\t\t'ALPHANUM'\t=> '[\\p{L}\\p{M}\\p{Nd}\\_\\/]',\n\t\t];\n\n\t\t$patterns =[\n\t\t\t['(' . $PATTERN['ALPHANUM'] . ')(' . self::PATTERN['UPPERNUM'] . ')', \t\t\t\t\t\t\t\t\t\t\t\t\t'\\\\1' . NBSP . '\\\\2'],\n\t\t\t['(' . self::PATTERN['UPPERNUM'] . ')(' . self::PATTERN['UPPERNUM'] . ')',\t\t\t\t\t\t\t\t\t\t\t\t'\\\\1' . NBSP . '\\\\2'],\n\t\t\t['(' . $PATTERN['ALPHANUM'] . ')\\/',\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'\\\\1' . NBSP . '/'],\n\t\t\t['(' . self::PATTERN['UPPER'] . ')' . NBSP . '(?=' . self::PATTERN['UPPER'] . NBSP . self::PATTERN['UPPERNUM'] . ')',\t'\\\\1'],\n\t\t\t['(' . self::PATTERN['UPPER'] . ')' . NBSP . '(?=' . self::PATTERN['UPPER'] . NBSP . '\\/)',\t\t\t\t\t\t\t\t'\\\\1'],\n\t\t\t['\\/(' . $PATTERN['ALPHANUM'] . ')',\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'/' . NBSP . '\\\\1'],\n\t\t\t['(' . self::PATTERN['UPPERNUM'] . ')' . NBSP . '(' . self::PATTERN['UPPERNUM'] . ')($|\\b)',\t\t\t\t\t\t\t'\\\\1\\\\2'],\n\t\t\t['(\\d)(' . $PATTERN['ALPHA'] . ')',\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'\\\\1' . NBSP . '\\\\2'],\n\t\t\t['(' . $PATTERN['ALPHA'] . ')(\\d)',\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'\\\\1' . NBSP . '\\\\2'],\n\t\t\t# ['(\\d)' . NBSP . '(?=\\d)',\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'\\\\1'],\n\t\t\t['(\\d)' . NBSP . '(?!' . self::PATTERN['ALPHA'] . ')',\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'\\\\1'],\n\t\t];\n\n\t\tforeach ($patterns as $pattern)\n\t\t{\n\t\t\t$text = preg_replace('/' . $pattern[0] . '/u', $pattern[1], $text);\n\t\t}\n\n\t\treturn $text;\n\t}", "title": "" }, { "docid": "3f4c2ba8675b14ba090083adc4b036da", "score": "0.54040897", "text": "function alphabetize($string) {\n}", "title": "" }, { "docid": "04b3cebef01b62aefe359438e7f2e16b", "score": "0.53992426", "text": "function encode($text, $rplChar = '', $upWords = true) {\n $encodedText = null;\n if ($upWords) {\n $encodedText = ucwords($text);\n } else {\n $encodedText = strtolower($text);\n }\n\n if ($rplChar == '') {\n $encodedText = preg_replace('/\\s[\\s]+/', '', $encodedText); // Strip off multiple spaces\n $encodedText = preg_replace('/[\\s\\W]+/', '', $encodedText); // Strip off spaces and non-alpha-numeric\n } else {\n $encodedText = preg_replace('/\\s[\\s]+/', $rplChar, $encodedText); // Strip off multiple spaces\n $encodedText = preg_replace('/[\\s\\W]+/', $rplChar, $encodedText); // Strip off spaces and non-alpha-numeric\n $encodedText = preg_replace('/^[\\\\' . $rplChar . ']+/', '', $encodedText); // Strip off the starting $rplChar\n $encodedText = preg_replace('/[\\\\' . $rplChar . ']+$/', '', $encodedText); // // Strip off the ending $rplChar\n }\n return $encodedText;\n}", "title": "" }, { "docid": "e8a8fddaf88c863531f7f6986acf39c3", "score": "0.53952456", "text": "function preparePhone($phone)\n{\n\treturn preg_replace('/[^+\\d]+/', '', $phone);\n}", "title": "" }, { "docid": "61c0747b1beb3a05efbb06ea35b6f4fc", "score": "0.53928655", "text": "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}", "title": "" }, { "docid": "c8b63ac1f256193f02f3dee006313c15", "score": "0.5390278", "text": "function just_clean($string){\n $specialCharacters = array(\n '#' => '',\n '$' => '',\n '%' => '',\n '&nbsp;' => '',\n '&amp;' => '',\n '&' => '',\n '@' => '',\n '.' => '',\n '€' => '',\n '+' => '',\n '=' => '',\n '§' => '',\n '\\\\' => '',\n '/' => '',\n '-' => ''\n );\n \n while (list($character, $replacement) = each($specialCharacters)) {\n $string = str_replace($character, '-' . $replacement . '-', $string);\n }\n \n $string = strtr($string,\n \"ÀÁÂÃÄÅáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ\",\n \"AAAAAAaaaaaOOOOOOooooooEEEEeeeeCcIIIIiiiiUUUUuuuuyNn\"\n );\n \n // Remove all remaining other unknown characters\n $string = preg_replace('/[^a-zA-Z0-9-]/', ' ', $string);\n $string = preg_replace('/^[-]+/', '', $string);\n $string = preg_replace('/[-]+$/', '', $string);\n $string = preg_replace('/[-]{2,}/', '', $string);\n \n return $string;\n}", "title": "" }, { "docid": "d0416647ac677900bd236d2079b9cd75", "score": "0.5390057", "text": "function clean($text)\n {\n\t\t$text=str_replace(chr(32),'^',$text);\n\t\t$text= preg_replace(\"/[^a-zA-z0-9@\\.\\-\\_]/\",chr(32), $text);\n\t\t$text=str_replace('^',chr(32),$text);\t\n\t\treturn $text;\t\t\n }", "title": "" }, { "docid": "ef93acea9938ca34b00c9f1c866d8b0a", "score": "0.53853273", "text": "function alphabetic($srting){\n if(ereg('[^a-zA-Z0-9_]{1,}', $srting)) return false;\n\telse return true;\n}", "title": "" }, { "docid": "01c7aa18c6781e1c1fc70841978ccfdc", "score": "0.53841555", "text": "function ui_symbolsOnly($text) {\r\n\treturn preg_replace(\"/[A-Za-z0-9]/i\", '', $text);\r\n}", "title": "" }, { "docid": "53d5ee9308294a578a552e07c61a41d0", "score": "0.5373083", "text": "function strtolower_ru($text) {\n\n $alphabet = array('a','b','c','d','e','f','g','h', 'i','j','k','l','m','n','o','p', 'q','r','s','t','u','v','w','x', 'y','z');\n\n $alphabetupper = array('A','B','C','D','E','F','G','H', 'I','J','K','L','M','N','O','P', 'Q','R','S','T','U','V','W','X', 'Y','Z');\n\nreturn str_replace($alphabetupper,$alphabet,strtolower($text));\n\n}", "title": "" }, { "docid": "2876e688e638cd8cf9a56c5a77ec408d", "score": "0.5366182", "text": "function slugify($text)\n{\n // replace non letter or digits by -\n $text = preg_replace('~[^\\\\pL\\d]+~u', '-', $text);\n \n // trim\n $text = trim($text, '-');\n \n // transliterate\n if (function_exists('iconv'))\n {\n $text = iconv('utf-8', 'us-ascii//TRANSLIT', $text);\n }\n \n // lowercase\n $text = strtolower($text);\n \n // remove unwanted characters\n $text = preg_replace('~[^-\\w]+~', '', $text);\n \n if (empty($text))\n {\n return 'n-a';\n }\n \n return $text;\n}", "title": "" }, { "docid": "8dc15aa17836b9755ca4c9bbd3b2a50c", "score": "0.53589743", "text": "function limpaString($str) { \n\t$str = preg_replace('/[áàãâä]/ui', 'a', $str);\n\t$str = preg_replace('/[éèêë]/ui', 'e', $str);\n\t$str = preg_replace('/[íìîï]/ui', 'i', $str);\n\t$str = preg_replace('/[óòõôö]/ui', 'o', $str);\n\t$str = preg_replace('/[úùûü]/ui', 'u', $str);\n\t$str = preg_replace('/[ç]/ui', 'c', $str);\n\treturn $str;\n}", "title": "" }, { "docid": "adcedfb9ab1f650ab21e38331031a333", "score": "0.53513646", "text": "public function numToLetters($number) {\n\t\t$original = $number;\n\t\t$alpha = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V'];\n\t\t$number = dechex($number);\n\t\t$text_return = \"\";\n\t\tfor ($i = 0; $i < strlen($number); $i++) {\n\t\t\t// Reduce letter by one if it's a multi-letter\n\t\t\t$reduce = (strlen($number) > 1 && $i == 0 ? 1 : 0);\n\t\t\tswitch ($number[$i]) {\n\t\t\t\tcase 'a':\n\t\t\t\tcase 'b':\n\t\t\t\tcase 'c':\n\t\t\t\tcase 'd':\n\t\t\t\tcase 'e':\n\t\t\t\tcase 'f':\n\t\t\t\t\t$text_return .= $alpha[array_search(strtoupper($number[$i]), $alpha) + 10 - $reduce];\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$text_return .= $alpha[$number[intval($i)] - $reduce];\n\t\t\t\t\t// $text_return .= \"?\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// return $original . \" => \" . $number . \" => \" . $text_return;\n\t\treturn $text_return;\n\t}", "title": "" }, { "docid": "3b4e645e629f55933717db2b166196ca", "score": "0.534598", "text": "function phptemplate_id_safe($string) {\n // Replace with dashes anything that isn't A-Z, numbers, dashes, or underscores.\n $string = strtolower(preg_replace('/[^a-zA-Z0-9_-]+/', '-', $string));\n // If the first character is not a-z, add 'n' in front.\n if (!ctype_lower($string{0})) { // Don't use ctype_alpha since its locale aware.\n $string = 'id'. $string;\n }\n return $string;\n}", "title": "" }, { "docid": "8af793a491bd5483eef8ee38c4c9f3be", "score": "0.5342833", "text": "public function testAlpha_Num()\n {\n\n $this->value = \"Shahrokh1234\";\n\n $this->assertEquals(false, $this->PersianValidation->AlphaNum($this->attribute, $this->value, $this->parameters));\n\n $this->value = \"1111شاهرخ\";\n\n $this->assertEquals(false, $this->PersianValidation->AlphaNum($this->attribute, $this->value, $this->parameters));\n\n $this->value = \"1111شاهرخ۱۲۳۴\";\n\n $this->assertEquals(false, $this->PersianValidation->AlphaNum($this->attribute, $this->value, $this->parameters));\n\n $this->value = \"شاهرخ\";\n\n $this->assertEquals(true, $this->PersianValidation->AlphaNum($this->attribute, $this->value, $this->parameters));\n\n $this->value = \"۱۲۳۴\";\n\n $this->assertEquals(true, $this->PersianValidation->AlphaNum($this->attribute, $this->value, $this->parameters));\n\n $this->value = \"Shahrokh۱۲۳۴شاهرخ\";\n\n $this->assertEquals(false, $this->PersianValidation->AlphaNum($this->attribute, $this->value, $this->parameters));\n\n }", "title": "" }, { "docid": "17531d7381aed47916682ccee941e344", "score": "0.5342091", "text": "public function isAlphaNumeric(): bool\n {\n return $this->matches('^[[:alnum:]]+$');\n }", "title": "" }, { "docid": "89fd473b1a0f9d51963d5499249bf3ee", "score": "0.5334963", "text": "function ochistkaznakov($text)\n{\n$trans = array(\"+\" => \"\", \"*\" => \"\", \"#\" => \"\", '\\\"' => \"\", \"\\'\" => \"\", \".\" => \"\");\nreturn strtr($text, $trans);\n}", "title": "" }, { "docid": "3a54fbb9d2e25384e5656e46de2a82a9", "score": "0.5330462", "text": "function strip_all_non_digits($input)\n {\n return intval(preg_replace('#[^\\d]#', '', $input));\n }", "title": "" }, { "docid": "2cd8b36cc635f5895ca9ffd256dfe9c1", "score": "0.53304356", "text": "private function sanitiseCode($str)\n {\n return preg_replace(\"/[^a-zA-Z\\_\\-]/\", \"\", $str);\n }", "title": "" }, { "docid": "4bcd17bfefab9ca24223972f2b74ba5c", "score": "0.532097", "text": "function zen_sanitize_string($string) {\n $string = eregi_replace(' +|select |update |insert |delete |replace |where |from ', ' ', $string);\n return preg_replace(\"/[<>]/\", '_', $string);\n}", "title": "" }, { "docid": "f819dc5208d73b11620ab688ad78c022", "score": "0.5317384", "text": "function is_char($chr) { \n \n return ereg(\"[a-zA-Z]\",$chr);\n}", "title": "" }, { "docid": "0936377d28a276c7115edf20c74adf5f", "score": "0.53096163", "text": "function alpha($data) {\n\t\t$data= trim($data);\n\t\tif (!validate::checkField($data)) return FALSE;\n\t\tif (!eregi(\"^[A-Za-z]+$\", $data)) return FALSE;\n\t\telse return TRUE;\n\t}", "title": "" }, { "docid": "0f1ad6dc58e4aa4502ab3acb803f5018", "score": "0.5308624", "text": "public function replaceNonAlphanumeric(string $replacement = '', bool $strict = false): Utility\n {\n $pattern = $strict ? '/[^a-zA-Z0-9]/' : '/[^a-zA-Z0-9 ]/';\n\n $string = preg_replace($pattern, $replacement, trim($this->string));\n\n return static::make($string, $this->encoding);\n }", "title": "" } ]
e6f9e5ca62597399bb97b8940f39870c
Tell whether the feed is public or not
[ { "docid": "0bba89ee84014690d1705808f0d82843", "score": "0.75806266", "text": "public function isPublic()\n {\n return $this->public;\n }", "title": "" } ]
[ { "docid": "246223b20a6b6e943c4de9316b6c9253", "score": "0.7854872", "text": "public function isPublic () {\n return (bool) $this->obtenerDato('is_public');\n }", "title": "" }, { "docid": "19fcb5bad588330a6dcb66497cdc76c1", "score": "0.77894294", "text": "public function isPublic()\n {\n return $this->is_public === 'Y';\n }", "title": "" }, { "docid": "bfd1fe59c4ec3cf2aa1571d16d8e95a9", "score": "0.77881205", "text": "protected function isPublic()\n {\n return $this->visibility == 'public';\n }", "title": "" }, { "docid": "f903c3ac0c12c214df9d13e750b73eba", "score": "0.76308036", "text": "public function isPublic()\n {\n if ($this->getIsActive() && ($this->getPublishAt()->getTimestamp() < time()) && (!$this->getExpiresAt() || $this->getExpiresAt()->getTimestamp() > time())) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "3f79de5204f5cf8f08815fa9317e256f", "score": "0.7624638", "text": "public function isPublic(): bool\n {\n return ($this->job_poster_status->key == 'live'\n || $this->job_poster_status->key == 'assessment'\n || $this->job_poster_status->key == 'completed');\n }", "title": "" }, { "docid": "747c6018ea5dbc827012b556d4eb073b", "score": "0.75597167", "text": "public function isPublic()\n\t{\n\t\treturn $this->public;\n\t}", "title": "" }, { "docid": "a803679dd0dacc37f50c15f9b6eb623e", "score": "0.7555554", "text": "public function hasIsPublic()\n {\n return $this->is_public !== null;\n }", "title": "" }, { "docid": "dff4b602355d0f4ca0893e4e0bbf72d2", "score": "0.754574", "text": "function is_public()\n {\n return $this->cdn_enabled == True ? True : False;\n }", "title": "" }, { "docid": "99b805925b1f99d3e7a7bba7362d976f", "score": "0.7444616", "text": "public function isPublic(): bool;", "title": "" }, { "docid": "99b805925b1f99d3e7a7bba7362d976f", "score": "0.7444616", "text": "public function isPublic(): bool;", "title": "" }, { "docid": "7ed7fa1ada04857e71ea60b49362e297", "score": "0.74326444", "text": "public function getisPublicReview()\n {\n return $this->isPublicReview;\n }", "title": "" }, { "docid": "6e2d577114065e7a4fef536fa2388bae", "score": "0.7385303", "text": "public function isPublic()\r\n\t{\r\n\t\treturn true; \r\n\t}", "title": "" }, { "docid": "e7629958e2305ae696fffeb97a9ad2ae", "score": "0.73755926", "text": "public function isPublic() : bool\n {\n return !isset($this->data->private) || $this->data->private === true;\n }", "title": "" }, { "docid": "5e756c0852de85382af58a92fd5386f1", "score": "0.7373865", "text": "public function isPublic()\n {\n return ! $this->isPrivate();\n }", "title": "" }, { "docid": "2db321c7ec3f265fd2f002cf4652aa7f", "score": "0.73696595", "text": "public function isPublic();", "title": "" }, { "docid": "7fddbf6795c44ae18ad6519e56d4450b", "score": "0.7351512", "text": "public function isPublic(): bool\n {\n return true;\n }", "title": "" }, { "docid": "b38946b36dc62ed08a877ebc5d4fa416", "score": "0.7337726", "text": "public function getIsPublic()\n {\n return $this->isPublic;\n }", "title": "" }, { "docid": "a0b2717d300d3ace3ab0a59461ee2e74", "score": "0.7276882", "text": "public function isPublic()\r\n {\r\n return $this->config->get('public');\r\n }", "title": "" }, { "docid": "3d4d37a41ac663dbfa254625d611e224", "score": "0.7195772", "text": "function isPubliclyVisible() {\n global $CFG_GLPI;\n\n if (!$CFG_GLPI['use_public_faq']) {\n return false;\n }\n\n if (isset($this->entities[0])) { // Browse root entity rights\n foreach ($this->entities[0] as $entity) {\n if ($entity['is_recursive']) {\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "96eb9eca87b9b22fbd85d31b5281060e", "score": "0.70514613", "text": "public function isPublic() {\n $guestperm = (int) $this->getUserPermissions($this->_netid, \"guest\");\n return $guestperm > NC_PERM_NONE;\n }", "title": "" }, { "docid": "96f23b0d733c6ab2c2898af407249232", "score": "0.70299345", "text": "public function is_public(): bool {\n\t\t$visibility = $this->project->get_repository_visibility();\n\n\t\tif ( ! $visibility ) {\n\t\t\t$response = wp_remote_head( self::API_BASE . '/projects/' . rawurlencode( $this->get_name() ) );\n\n\t\t\t$visibility = 200 === wp_remote_retrieve_response_code( $response ) ? 'public' : 'private';\n\n\t\t\t$this->project->set_repository_visibility( $visibility );\n\t\t}\n\n\t\treturn parent::is_public();\n\t}", "title": "" }, { "docid": "00a34791e9f10c142be59c535ef815eb", "score": "0.6999753", "text": "public function isPublished();", "title": "" }, { "docid": "00a34791e9f10c142be59c535ef815eb", "score": "0.6999753", "text": "public function isPublished();", "title": "" }, { "docid": "00a34791e9f10c142be59c535ef815eb", "score": "0.6999753", "text": "public function isPublished();", "title": "" }, { "docid": "00a34791e9f10c142be59c535ef815eb", "score": "0.6999753", "text": "public function isPublished();", "title": "" }, { "docid": "00a34791e9f10c142be59c535ef815eb", "score": "0.6999753", "text": "public function isPublished();", "title": "" }, { "docid": "00a34791e9f10c142be59c535ef815eb", "score": "0.6999753", "text": "public function isPublished();", "title": "" }, { "docid": "00a34791e9f10c142be59c535ef815eb", "score": "0.6999753", "text": "public function isPublished();", "title": "" }, { "docid": "00a34791e9f10c142be59c535ef815eb", "score": "0.6999753", "text": "public function isPublished();", "title": "" }, { "docid": "00a34791e9f10c142be59c535ef815eb", "score": "0.6999753", "text": "public function isPublished();", "title": "" }, { "docid": "00a34791e9f10c142be59c535ef815eb", "score": "0.6999753", "text": "public function isPublished();", "title": "" }, { "docid": "00a34791e9f10c142be59c535ef815eb", "score": "0.6999753", "text": "public function isPublished();", "title": "" }, { "docid": "00a34791e9f10c142be59c535ef815eb", "score": "0.6999753", "text": "public function isPublished();", "title": "" }, { "docid": "00a34791e9f10c142be59c535ef815eb", "score": "0.6999753", "text": "public function isPublished();", "title": "" }, { "docid": "00a34791e9f10c142be59c535ef815eb", "score": "0.6999753", "text": "public function isPublished();", "title": "" }, { "docid": "00a34791e9f10c142be59c535ef815eb", "score": "0.6999753", "text": "public function isPublished();", "title": "" }, { "docid": "00a34791e9f10c142be59c535ef815eb", "score": "0.6999753", "text": "public function isPublished();", "title": "" }, { "docid": "2ede77224884eac3a9a5b0fb12351f9c", "score": "0.6913241", "text": "function bbp_is_topic_public($topic_id = 0)\n{\n}", "title": "" }, { "docid": "fa6f6e1e9dbd7def975350f9cd77e9a0", "score": "0.6812219", "text": "public function isPublished()\n {\n return $this->getIsPublished();\n }", "title": "" }, { "docid": "b38fb6c7b2edc70f6a1c126bd596f924", "score": "0.6771455", "text": "function bbp_is_site_public($site_id = 0)\n{\n}", "title": "" }, { "docid": "e633a7940c62d97912eacbeaf4514111", "score": "0.67688006", "text": "function bpb_extended_private_activities( $is_public ) {\n\tif ( empty( $is_public ) ) {\n\t\t$is_public = 1;\n\n\t\t// Now we need to filter the activity\n\t\tadd_action( 'bp_activity_before_save', 'bpb_extended_private_activities_save', 10, 1 );\n\t}\n\n\treturn $is_public;\n}", "title": "" }, { "docid": "9a7d0ba065418b6226359225f34d2ecf", "score": "0.6748297", "text": "public function isPublic()\n {\n return $this->getReflectionProperty()->isPublic();\n }", "title": "" }, { "docid": "01114c0e64296404454917518730bdda", "score": "0.6721687", "text": "public function isFeedItem(): bool;", "title": "" }, { "docid": "77fd490c6335f5eb7e43033492d4e48e", "score": "0.6714108", "text": "public function getIsPublish()\n {\n return $this->__get(\"is_publish\");\n }", "title": "" }, { "docid": "9c431f146e4fb2354b05e876aab258b7", "score": "0.67019", "text": "function canViewItem() {\n return (($this->fields['users_id'] == Session::getLoginUserID())\n || (Session::haveRight('rssfeed_public', READ)\n && $this->haveVisibilityAccess()));\n }", "title": "" }, { "docid": "cfff8605bcc40825b82ce447cedbb40d", "score": "0.66989857", "text": "public function isPublished() {\n return $this->status === NODE_PUBLISHED;\n }", "title": "" }, { "docid": "811c628b8593a91631ed315b7cff7150", "score": "0.6695112", "text": "public function isPublished() {\n return (bool)$this->published;\n }", "title": "" }, { "docid": "351a734ed9a5d21416c29cdba28b284f", "score": "0.6677059", "text": "public function isPublic($clear = true)\n\t{\n\t\t$public = $this->_public;\n\t\tif($clear)\n\t\t\t$this->_public = false;\n\t\treturn $public;\n\t}", "title": "" }, { "docid": "b6c8ae0012564e2f66ca5fd65f0202e9", "score": "0.662712", "text": "function is_public($club_id) {\n\t\t$conn = db_conn();\n\t\t$query = \"select type from clubs where id=$club_id\";\n\t\t$result = $conn->query($query);\n\t\tif ( !$result ) {\n\t\t\t$conn->close();\n\t\t\tthrow new Exception(\"Could not retrieve club listing at this time\");\n\t\t} else {\n\t\t\t$row = $result->fetch_assoc();\n\t\t\tif ( strcmp($row['type'],'public') == 0 ) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ebfddab2a65cb34e759a4bbcfc97bd52", "score": "0.6618008", "text": "public function published() \n {\n return (boolean) $this->publish;\n }", "title": "" }, { "docid": "b2f9c7cc063a83204b5153522e39a4cc", "score": "0.6582358", "text": "public function isPublished()\n {\n return $this->published;\n }", "title": "" }, { "docid": "d4eee08e9f2d94d8f3b1dceca62dafc3", "score": "0.6580011", "text": "private function is_taxonomy_public( $name ) {\r\n\t\t$taxonomy = get_taxonomy( $name );\r\n\r\n\t\tif ( false === $taxonomy ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn ( $taxonomy->public && $taxonomy->publicly_queryable );\r\n\t}", "title": "" }, { "docid": "b81b51f13b3e5fdc038b05e3be4ad606", "score": "0.6560026", "text": "public function getEmailIsPublic()\n {\n return $this->emailIsPublic;\n }", "title": "" }, { "docid": "5b869cb25d2505214f2bb64b9b23c0c0", "score": "0.6548765", "text": "public function getPublic() {\n\t\t\treturn $this->public;\n\t\t}", "title": "" }, { "docid": "ad3325dca0696c47dac60ca09caa3012", "score": "0.65474343", "text": "public function isPublic() : bool\n {\n return $this->methodNode->isPublic();\n }", "title": "" }, { "docid": "0158229b25bd281c4b6008a315c1c4ae", "score": "0.6541677", "text": "public function isPublished(): bool\n {\n return $this->isDraft() === false;\n }", "title": "" }, { "docid": "6622e58060a29626ea33944389dc9c40", "score": "0.65411836", "text": "public function getPublic()\n {\n return $this->public;\n }", "title": "" }, { "docid": "a71a34ff7d4123f4e137ddecb928e57f", "score": "0.6531254", "text": "public static function getPublic()\n {\n return self::$visibility['public'];\n }", "title": "" }, { "docid": "0d7b760f3150708cc17a0a6a2e847bb0", "score": "0.6507483", "text": "public function isPublished()\n {\n return $this->object()->isPublished();\n }", "title": "" }, { "docid": "014e620b9389da47457bee61436b1555", "score": "0.64857394", "text": "static function getUserPublicStatus($userId) {\r\n if ($userId) {\r\n $user = userPeer::loadUserById($userId);\r\n if ($user->isPublic >= 1) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "35417e34a8bb20bab2c238682fb42b92", "score": "0.64668137", "text": "public function getIsPublishedAttribute()\n {\n return !is_null($this->publish_at) && !$this->publish_at->isFuture();\n }", "title": "" }, { "docid": "b6fcd0fe8fd3c59582e9cc56969b6f4d", "score": "0.6449345", "text": "public function isPublished(): bool\n {\n return $this->status() === self::PAGE_STATUS_PUBLISHED;\n }", "title": "" }, { "docid": "079cf7bb55f33df484adcce27b9d57be", "score": "0.64383435", "text": "public function isPublic() {\n return $this->headers->getCacheControlDirective(HeaderContainer::CACHE_CONTROL_PUBLIC);\n }", "title": "" }, { "docid": "d01ecde74450a7140808306c05a1c6aa", "score": "0.64205384", "text": "public function isPubliclyAccessible(): bool;", "title": "" }, { "docid": "6b986657f5eee64a2946297e9f5b35ca", "score": "0.6406183", "text": "public static function rest_api_allowed_public_metadata() {\n\t\treturn apply_filters( 'rest_api_allowed_public_metadata', array() );\n\t}", "title": "" }, { "docid": "51390e3994620d1c939ec599fba751e7", "score": "0.63964844", "text": "public function isPublic($model) {\n if ($model->public == 1)\n return true;\n\n if (Folder::model()->findByPk($model->folder_id)->public == 1)\n return true;\n\n return false;\n }", "title": "" }, { "docid": "b253e0a5247044a747a61e7283e23711", "score": "0.6394428", "text": "public function isPublic($name)\n {\n return $this->structureAdapter->isPublic($name);\n }", "title": "" }, { "docid": "10091994f3f395c2f6489893ced8831e", "score": "0.63925654", "text": "function bbp_is_forum_public($forum_id = 0, $check_ancestors = \\true)\n{\n}", "title": "" }, { "docid": "ec9b2d1de2bc55e01275b7115fc69c3f", "score": "0.6385373", "text": "public function visibleArticle() {\n\t\treturn $this->isPublished () || ($this->isAwaitingChanges () && $this->checkIfWriter ()) || isEditor ();\n\t}", "title": "" }, { "docid": "c2c5011070838dc7518eb7ff94eef69f", "score": "0.63596994", "text": "public function can_see() {\n\t\tglobal $I2_USER;\n\n\t\tif ($I2_USER->is_group_member('admin_podcasts'))\n\t\t\treturn TRUE;\n\t\tif (!$this->visibility)\n\t\t\treturn FALSE;\n\n\t\t$ugroups = Group::get_user_groups($I2_USER);\n\t\tforeach ($ugroups as $g) {\n\t\t\tif (isset($this->gs[$g->gid]))\n\t\t\t\treturn TRUE;\n\t\t}\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "7b3f657f834307a9c0b76719b7ea3b0c", "score": "0.6352762", "text": "public static function isPublic($userId = false)\n {\n $rez = false;\n\n $config = static::getUserConfig($userId);\n if (!empty($config['public_access'])) {\n $rez = true;\n }\n\n return $rez;\n }", "title": "" }, { "docid": "e0a612f6cbcb8cf60e3a3ab0cbe8fc2e", "score": "0.63423055", "text": "public function isPublic($id = null) {\n\t\tif (empty($id)) {\n\t\t\t$id = $this->id;\n\t\t}\n\n\t\treturn ($this->field('public', array('id' => $id)) == Project::PROJ_PUBLIC);\n\t}", "title": "" }, { "docid": "8f9816f161fb47fd55ad61149ea61ae5", "score": "0.63339436", "text": "public function is_published()\r\n\t\t{\r\n\t\t\treturn $this->enabled && !$this->deleted && $this->status == self::APPROVED;\r\n\t\t}", "title": "" }, { "docid": "b246eb654defdce65d29050167414ac3", "score": "0.63078606", "text": "public function set_is_public( $value ) {\n\t\t$this->definition[ self::DEF_PUBLIC ] = ( $value ? 'public' : 'hidden' );\n\t}", "title": "" }, { "docid": "b43fa15eefaefc47a44a0594346360bf", "score": "0.62998235", "text": "public function getShouldDisplayForThisUserAttribute()\n {\n if (!empty($this->attributes['is_public'])) {\n return (bool)$this->attributes['is_public'];\n }\n\n // or ... am I a member\n if (auth()->check() && auth()->user()->hasRole('Member')) {\n return true;\n }\n }", "title": "" }, { "docid": "ce6da60a3a1679eb57938241f3d83180", "score": "0.62826496", "text": "function post_is_publicizeable( $post ) {\n\t\tif ( ! $this->post_type_is_publicizeable( $post->post_type ) )\n\t\t\treturn false;\n\n\t\t// This is more a precaution. To only publicize posts that are published. (Mostly relevant for Jetpack sites)\n\t\tif ( 'publish' !== $post->post_status ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// If it's not flagged as ready, then abort. @see ::flag_post_for_publicize()\n\t\tif ( ! get_post_meta( $post->ID, $this->PENDING, true ) )\n\t\t\treturn false;\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "0b6de15be8824f8d087a7bce1e74c0af", "score": "0.6272536", "text": "public function isPublic()\r\n {\r\n if ($this->_char === false) {\n return true;\n } else {\n return false;\n }\r\n }", "title": "" }, { "docid": "357d6dc9c03c2e38bdc59ea7538d699a", "score": "0.62709343", "text": "public function getMembersCanCreatePublicRepositories() : bool\n {\n return $this->membersCanCreatePublicRepositories;\n }", "title": "" }, { "docid": "a9dd2ce65cb6c4d06db0405bdcbaff3f", "score": "0.62646574", "text": "protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('Orba_Ceneopl::feed_list');\n }", "title": "" }, { "docid": "61635a84111914f608d115b430867ba8", "score": "0.6250403", "text": "public function getShouldBePublished() : bool\n {\n return $this->getProperty()->shouldBePublished;\n }", "title": "" }, { "docid": "b4bd7ea9dbe9460ce5a2b3461750eff7", "score": "0.62486595", "text": "protected function isPrivate()\n {\n return $this->visibility == 'private';\n }", "title": "" }, { "docid": "1a11629954890f5ea345563d0d676276", "score": "0.6228192", "text": "public function isPrivate(): bool;", "title": "" }, { "docid": "04680b437fe7cb2347113ebb5df4b64d", "score": "0.62216985", "text": "function Public_Only() {\r\n\t\t\t$PUBLIC_ONLY = \"FALSE\";\r\n\t\t\t$access = get_option(c_pwa_access);\r\n\t\t\t$protected = strrpos($access, 'protected');\r\n\t\t\t$private = strrpos($access, 'private');\r\n\t\t\tif (($protected === false) && ($private === false)) { \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}", "title": "" }, { "docid": "121475c915b1115bfea18e1718ebb1ea", "score": "0.6181502", "text": "public function rationalizePublicOpenStatus(){\n\t\t//Make sure the page is not open if it is not public\n\t\tif(!$this->is_publicPage())\n\t\t\t$this->set_openPage(false);\n\t}", "title": "" }, { "docid": "3c51d1724e76b0c58d4106fd77e1f335", "score": "0.6178677", "text": "private function isFromPublicRoom(){\n return in_array($this->getRoomNumber(), sfConfig::get('hekphonePublicRooms'));\n }", "title": "" }, { "docid": "5fb944c72083e1f24a714e475d25b816", "score": "0.6177187", "text": "public function isPublished()\n {\n $published = $this->getPublished();\n\n if($published)\n {\n $published = $this->isPublishedNow();\n }\n\n return $published;\n }", "title": "" }, { "docid": "09dbfd4e6e0ba9a661098e1805da3311", "score": "0.6176164", "text": "public function isPublier(): bool\n {\n return $this->publier;\n }", "title": "" }, { "docid": "0d800bcb749e2fb8af46a27f6cd0fd62", "score": "0.6171119", "text": "public function isVisible()\n {\n //jeśli nie jest aktywna\n if (!$this->active) {\n return false;\n }\n //jeśli status różny od aktywna (bieżąca)\n if ($this->status != \\Cms\\Orm\\CmsCategoryRecord::STATUS_ACTIVE) {\n return false;\n }\n //nie osiągnięto czasu publikacji\n if (null !== $this->dateStart && $this->dateStart > date('Y-m-d H:i:s')) {\n return false;\n }\n //przekroczono czas publikacji\n if (null !== $this->dateEnd && $this->dateEnd < date('Y-m-d H:i:s')) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "a5f1b3d82bedc7075a5ccc325337bbd9", "score": "0.61571115", "text": "public function isPublishable();", "title": "" }, { "docid": "7de2cf2febe055d755003829777006d3", "score": "0.6133113", "text": "public function accessible()\n {\n $driver = $this->driver();\n\n if ($driver === 's3') {\n return true;\n } elseif ($driver === 'local') {\n return ! is_null($this->url());\n }\n\n return false;\n }", "title": "" }, { "docid": "ca99bbb7bc9fc909fed2de84051fee62", "score": "0.61111367", "text": "public function isPrivate()\n {\n return $this->private === true;\n }", "title": "" }, { "docid": "93ef946e8d79d5f2cc70f154f118cc6e", "score": "0.6089646", "text": "public function isExternal(): bool\n {\n return $this->isExternal;\n }", "title": "" }, { "docid": "9f4c7b51c2d6d898c4e37370533fd9b1", "score": "0.60848355", "text": "public function isPrivate() : bool\n {\n return $this->data->private ?? false;\n }", "title": "" }, { "docid": "dcf7985773c2f476f221e231fb531420", "score": "0.60844934", "text": "public function canPublish()\n {\n if($this->open == null){\n return false;\n }\n \n if(!$this->byInvitationOnly and $this->close == null){\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "47f219775174d723a98155cee4c3d0fe", "score": "0.6083716", "text": "public function is_feed_exporting_enabled() {\n\t\treturn apply_filters( 'gravityperks_export_feeds_' . $this->_slug, true );\n\t}", "title": "" }, { "docid": "55ad4931c49afe167e576facb15b78b1", "score": "0.60820055", "text": "public function isPublished()\r\n {\r\n if (1 != $this->published) {\r\n return false;\r\n }\r\n\r\n // Check if media type is published.\r\n $table = FactoryTable::getInstance('Type');\r\n $table->load($this->type_id);\r\n if (1 != $table->published) {\r\n return false;\r\n }\r\n\r\n // Check if media category is published.\r\n $table = FactoryTable::getInstance('Category');\r\n $table->load($this->category_id);\r\n if (1 != $table->published) {\r\n return false;\r\n }\r\n\r\n return true;\r\n }", "title": "" }, { "docid": "8b70bff48e77456aebaae9f5a12e38b4", "score": "0.6046803", "text": "public function isVisible()\n {\n return \n $this->hidden == false &&\n $this->approved == true &&\n $this->_id != false &&\n $this->image;\n }", "title": "" }, { "docid": "e17754866aac1fe9dae9b8e5c892168f", "score": "0.6043183", "text": "public function isPublic(ReadBlockInterface $block);", "title": "" }, { "docid": "2f2c73d8555e82f6c8c747b37e766908", "score": "0.60336775", "text": "public function canPublish()\n\t{\n\t\t$photos = ListingImages::where('listing_id', '=', $this->id)->get();\n\t\t$address = ListingAddress::where('id', '=', $this->id)->first();\n\t\t$user = User::where('id', '=', $this->user_id)->first();\n\t\t\n\t\tif(\n\t\t\tisset($this->name) &&\n\t\t\tisset($this->property_type_id) &&\n\t\t\tisset($this->max_vehicle_length) &&\n\t\t\tisset($this->check_in) &&\n\t\t\tisset($this->check_out) &&\n\t\t\t( \n\t\t\t\t( $this->day_rental == 1 && isset($this->day_pricing) ) || \n\t\t\t\t( $this->month_rental == 1 && isset($this->month_pricing) )\n\t\t\t) &&\n\t\t\tisset($photos) &&\n\t\t\tisset($address->city) &&\n\t\t\tisset($address->state) &&\n\t\t\tisset($address->zipcode) &&\n\t\t\tisset($address->address) &&\n\t\t\tisset($address->lat) &&\n\t\t\tisset($address->lng) &&\n\t\t\tisset($user->stripe_acc) &&\n\t\t\t$this->admin_lock == 0\n\t\t){\n\t\t\treturn true;\n\t\t} \n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ca5f7f09f2ec3cc1f86ee11386f53d0a", "score": "0.6033345", "text": "public function setIsPublicReview($isPublicReview): void\n {\n $this->isPublicReview = $isPublicReview;\n }", "title": "" } ]
75b3a60e6392a63d29121cf1695bcac2
Sets store plan name
[ { "docid": "68d943314c10a0fa31b1b596600a20f5", "score": "0.70074356", "text": "public function setPlanName(?string $plan): self\n {\n $this->plan_name = $plan;\n \n return $this;\n }", "title": "" } ]
[ { "docid": "19d1ff841d81639b6192c767a956a4b0", "score": "0.7063578", "text": "public function setPlanName($plan_name) {\n $this->PLAN_NAME = $plan_name;\n }", "title": "" }, { "docid": "371dba60da7a560f1148eb2d206ddee8", "score": "0.7050718", "text": "public function setServicePlanName(?string $value): void {\n $this->getBackingStore()->set('servicePlanName', $value);\n }", "title": "" }, { "docid": "e32a8f1025e2dd9cd76567d21ba7b355", "score": "0.6949821", "text": "public function setServicePlanName($val)\n {\n $this->_propDict[\"servicePlanName\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "e806f351212f63be1fa4a3c27fe6415d", "score": "0.6669028", "text": "public function setName($planName)\n {\n return $this->setParameter('name', $planName);\n }", "title": "" }, { "docid": "e806f351212f63be1fa4a3c27fe6415d", "score": "0.6669028", "text": "public function setName($planName)\n {\n return $this->setParameter('name', $planName);\n }", "title": "" }, { "docid": "ed657535b1c095e23d17eecf04058e4e", "score": "0.6655009", "text": "public function set_plan( $plan )\n\t{\n\t\t$this->_plan = $plan;\n\t}", "title": "" }, { "docid": "2a254a1329a7266c20e3357925097292", "score": "0.62989354", "text": "public function setStoreViewName(string $store): self\n {\n return $this->set('store', $store);\n }", "title": "" }, { "docid": "87b55b6ed3106389b23062f939fa5bfd", "score": "0.5968099", "text": "public function setPlan($planName)\n {\n return $this->setParam(self::PLAN, $planName);\n }", "title": "" }, { "docid": "1431871564c000abb61c13d60d647344", "score": "0.59654576", "text": "function setProductName($productName);", "title": "" }, { "docid": "e39ab56c1547770bfa3a8ea1c6a551ef", "score": "0.5921274", "text": "public function getPlanName()\n {\n return $this->getFieldValue('plan_name');\n }", "title": "" }, { "docid": "334aca16a916e48de15648e265e74fcc", "score": "0.59098756", "text": "public function getPlanName() {\n return $this->PLAN_NAME;\n }", "title": "" }, { "docid": "e0ac26f8863b0e4dcf2302102ead3fc8", "score": "0.5841582", "text": "public function setPlanId(?string $value): void {\n $this->getBackingStore()->set('planId', $value);\n }", "title": "" }, { "docid": "d4037bf9c7aa8a1717b72b956708e17c", "score": "0.58185226", "text": "public function setServicePlanId(?string $value): void {\n $this->getBackingStore()->set('servicePlanId', $value);\n }", "title": "" }, { "docid": "d4037bf9c7aa8a1717b72b956708e17c", "score": "0.58185226", "text": "public function setServicePlanId(?string $value): void {\n $this->getBackingStore()->set('servicePlanId', $value);\n }", "title": "" }, { "docid": "7969d487921a159581e2ebf2b65f316c", "score": "0.5816743", "text": "public function setPlanID($plan_id) {\n $this->PLAN_ID = $plan_id;\n }", "title": "" }, { "docid": "c72d2c7b5626ecae063cff7c45c8027e", "score": "0.57642704", "text": "function setProviderName($providerName);", "title": "" }, { "docid": "c67aebb2c0c284dea37e89d38902a2b3", "score": "0.57534736", "text": "public function setName(string $name)\n {\n \\PerspectiveAPI\\Connector::setGroupName($this->getID(), $this->store->getCode(), $name);\n $this->groupName = $name;\n\n }", "title": "" }, { "docid": "4a65c6f9657e39e6c0ccadbfa5cb191f", "score": "0.5737474", "text": "function setName($n) {\n\t\t$this->_dao->set('name', $n);\n\t}", "title": "" }, { "docid": "0f31e184d5f66f2df27b5992ffbdec02", "score": "0.5671379", "text": "public function setName($name) {\n // print_r( $name);\n\n $this->name = $name;\n\t}", "title": "" }, { "docid": "5046453104f3651966e1b5a19477544e", "score": "0.56702167", "text": "public function setName(string $name = ''): void\n {\n if (empty($name)) {\n throw new RuntimeException('Panel name not found therefore the object cannot be created');\n }\n $this->name = $name;\n }", "title": "" }, { "docid": "97080047fa7eb181e3e9d1dfa04d980f", "score": "0.5661275", "text": "public function setName($name) {\r\n $this->name = $name;\r\n }", "title": "" }, { "docid": "cd5d7884118c61ab014bdc7888d3557b", "score": "0.5660589", "text": "public function setName($name) { $this->_name = $name; }", "title": "" }, { "docid": "6b1e660f1a220a4f156c781f84fb0422", "score": "0.56543577", "text": "public function setPlan(&$data)\n {\n $data['Business']['plan_id'] = 1;\n\n }", "title": "" }, { "docid": "11fb26997f5071d7ba4b2b2305611912", "score": "0.56400764", "text": "private function setName($name) {\n if (true == is_null($this->realName)) {\n $this->realName = $name;\n }\n\n $this->name = $name;\n }", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.56286657", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.56286657", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.56286657", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.56286657", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.56286657", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.56286657", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "7f7043487fdebe2ccfe0ec24665282e9", "score": "0.56224984", "text": "public function setName($name){\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "3a7479516b5f2c3f7bc17ea139fde3b3", "score": "0.56212306", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "ad1e85ad83794d6d78f084e5ec921916", "score": "0.562024", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "ad1e85ad83794d6d78f084e5ec921916", "score": "0.562024", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "ad1e85ad83794d6d78f084e5ec921916", "score": "0.562024", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "3a16b74701d2ca190ce4eae566a0930d", "score": "0.56163514", "text": "public function setName($name) {\r\n $this->_name = $name;\r\n }", "title": "" }, { "docid": "7a66e92b05752d7b4c0bca24fa1e649b", "score": "0.56156254", "text": "public function setName($name) {\n\t\t\t$this->name = $name;\n\t\t}", "title": "" }, { "docid": "7a66e92b05752d7b4c0bca24fa1e649b", "score": "0.56156254", "text": "public function setName($name) {\n\t\t\t$this->name = $name;\n\t\t}", "title": "" }, { "docid": "d18fa6dec2e4cc79f9a3f179dfcb30db", "score": "0.5608308", "text": "public function setName($name){\n\t\t\t$this->name = $name;\n\t\t}", "title": "" }, { "docid": "6dbc24b357bd7ae4053cbb32e0eae9d5", "score": "0.5597752", "text": "public function swapToPlan($plan)\n {\n $this->subscription($this->activeSubscriptionNameWithoutGracePeriods())->swap($plan)->update(['name' => $plan]);\n }", "title": "" }, { "docid": "e24d621870fcd43fae1a1855e650ad4b", "score": "0.5591206", "text": "function setName($n) {\r\n\t\t$this->name = $n;\t\r\n\t}", "title": "" }, { "docid": "3035678b369c6055eb0c8b49ddcf31c4", "score": "0.55894756", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "3035678b369c6055eb0c8b49ddcf31c4", "score": "0.55894756", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "3035678b369c6055eb0c8b49ddcf31c4", "score": "0.55894756", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "72e884ceaf8f0898e714004b56ea70a8", "score": "0.5584176", "text": "final public function setName( $name ) {\n\t\t$this->_name = $name;\n\t}", "title": "" }, { "docid": "5477ce806c6bef6c53c53661b12d4416", "score": "0.55591756", "text": "public function setName($name){\r\n $this->name = $name;\r\n }", "title": "" }, { "docid": "2db1167b49dbd00aa15b579cfd3a6ce3", "score": "0.5555435", "text": "public function setName($name)\n\t {\n\t \t$this->name = $name;\n\t }", "title": "" }, { "docid": "50a08d8ee37df4b3da985534b0be6ee0", "score": "0.55549127", "text": "public function setName($name){\n $this->name = $name;\n }", "title": "" }, { "docid": "50a08d8ee37df4b3da985534b0be6ee0", "score": "0.55549127", "text": "public function setName($name){\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.55504906", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.55504906", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "f22f450542024d74089a134d3a448b7c", "score": "0.55504906", "text": "public function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "9a401c550aeedbe1e59a36f6f867c9c6", "score": "0.55504555", "text": "public function setStore( $store );", "title": "" }, { "docid": "5980f14551afb4d0641422c57297452f", "score": "0.55356216", "text": "public function setName($name){\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "691c1f72eb601de6eaab955abc03ce06", "score": "0.5535199", "text": "function setName($newName) {\n $this->name= $newName;\n $this->prettyName = SM_prettyName($newName);\n }", "title": "" }, { "docid": "0f95ce83fb6198bf77de7cff08944ba4", "score": "0.55322236", "text": "function setName($name){\r\n\t\t$this->name = $name;\r\n\t}", "title": "" }, { "docid": "79e2543bfacc9456a056113721c830b9", "score": "0.55310947", "text": "protected function set_name($name) {\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "458953eea516666927b049b9c06678d9", "score": "0.5526156", "text": "public function setName($name) {\n if (is_string($name)) {\n $this->name = $name;\n }\n }", "title": "" }, { "docid": "39e99adb3f0151f2298da0eeadceb2d7", "score": "0.5510444", "text": "public function setName($name)\n\t{\n\t\t$this->name = $name;\t\t\n\t}", "title": "" }, { "docid": "38951718ef4bd2c28a4031efc6409d05", "score": "0.5506597", "text": "public function setName($name)\n\t{\n\t $this->name = $name;\n\t}", "title": "" }, { "docid": "98bcdd0c730ecdf25e325b4d743f3b25", "score": "0.5503687", "text": "public function setName($name)\n {\n $this->_name = $name;\n }", "title": "" }, { "docid": "98bcdd0c730ecdf25e325b4d743f3b25", "score": "0.5503687", "text": "public function setName($name)\n {\n $this->_name = $name;\n }", "title": "" }, { "docid": "a6b6262c2d13745da50d80cc44b868e7", "score": "0.5493498", "text": "public function set ( $name, $provider )\n\t{\n\t\t$this->providers[ strtolower( $name ) ] = $provider;\n\t}", "title": "" }, { "docid": "39bb2f0019899119a8121193eb1434f7", "score": "0.5486473", "text": "private function setName()\n {\n $this->name = isset($this->config->plugin_name) \n ? $this->config->plugin_name \n : null;\n }", "title": "" }, { "docid": "60f6666f3268ca3420019b7c79c0c67a", "score": "0.5485154", "text": "function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "2253c0083eacc3f956b314faf008a05d", "score": "0.5476987", "text": "protected function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "2253c0083eacc3f956b314faf008a05d", "score": "0.5476987", "text": "protected function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "2253c0083eacc3f956b314faf008a05d", "score": "0.5476987", "text": "protected function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "701530ab3e85c1a61960a9d342ad34ff", "score": "0.54754263", "text": "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "701530ab3e85c1a61960a9d342ad34ff", "score": "0.54754263", "text": "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "701530ab3e85c1a61960a9d342ad34ff", "score": "0.54754263", "text": "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "701530ab3e85c1a61960a9d342ad34ff", "score": "0.54754263", "text": "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "701530ab3e85c1a61960a9d342ad34ff", "score": "0.54754263", "text": "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "bac4d9c731955f9e311a66e765a84d95", "score": "0.54737824", "text": "function setName($name)\r\n\t{\r\n\t\t$this->name = $name;\r\n\t}", "title": "" }, { "docid": "bac4d9c731955f9e311a66e765a84d95", "score": "0.54737824", "text": "function setName($name)\r\n\t{\r\n\t\t$this->name = $name;\r\n\t}", "title": "" }, { "docid": "7af8f738b3e26b9f7704735005982842", "score": "0.5471657", "text": "function setName ($arg)\n {\n $this->_name = $arg ;\n }", "title": "" }, { "docid": "4ee9156a68cc86d63d7ac44eaa9e5d92", "score": "0.54624647", "text": "public function setName( $name )\r\n\t{\r\n\t\t$this->name = $name;\r\n\t}", "title": "" }, { "docid": "0a3ba5747a299e0b3ba8972dad5057f2", "score": "0.545675", "text": "function setName( $name )\r\n {\r\n $this->Name = $name;\r\n }", "title": "" }, { "docid": "0c079b1f44da1d4061cba3361ba0b4e3", "score": "0.5454293", "text": "public function setName($str)\r\n {\r\n $this->_name = $str;\r\n }", "title": "" }, { "docid": "1262ba71a0e7e66bab0418efe9330373", "score": "0.54519063", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "1262ba71a0e7e66bab0418efe9330373", "score": "0.54519063", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.54449964", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.54449964", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.54449964", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.54449964", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.54449964", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.54449964", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.54449964", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.54449964", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.54449964", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.54449964", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.54449964", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.54449964", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.54449964", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.54449964", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.54449964", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.54449964", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.54449964", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.54449964", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" }, { "docid": "355443e2257b7942d43d04a5f132e44b", "score": "0.54449964", "text": "public function setName($name)\n {\n $this->name = $name;\n }", "title": "" } ]
f311eb0585e1675787fe457eb017587f
Determine if any object is modified
[ { "docid": "ef99fc96172565d64d1749a59ea70323", "score": "0.7014459", "text": "public function hasPendingChanges()\n {\n if (count($this->itemsAdd) || count($this->nodesMove) || count($this->itemsRemove)) {\n return true;\n }\n foreach ($this->objectsByPath['Node'] as $item) {\n if ($item->isModified()) {\n return true;\n }\n }\n\n return false;\n }", "title": "" } ]
[ { "docid": "98dc6bde39f9828fb86f8c567a63541f", "score": "0.7717669", "text": "function isModified() {\n\t\t$modified = $this->_Modified;\n\t\tif ( !$modified && $this->getCount() > 0 ) {\n\t\t\tforeach ( $this as $oObject ) {\n\t\t\t\t$modified = $modified || $oObject->isModified();\n\t\t\t}\n\t\t}\n\t\treturn $modified;\n\t}", "title": "" }, { "docid": "fa7dbd058a05f54ded69bbd5842d2d59", "score": "0.74309695", "text": "function isModified() {\r\n\t\treturn $this->_Modified;\r\n\t}", "title": "" }, { "docid": "fa7dbd058a05f54ded69bbd5842d2d59", "score": "0.74309695", "text": "function isModified() {\r\n\t\treturn $this->_Modified;\r\n\t}", "title": "" }, { "docid": "22141a2e1ff532c1d857aff417693614", "score": "0.742025", "text": "function isModified() {\n\t\treturn $this->_Modified;\n\t}", "title": "" }, { "docid": "22141a2e1ff532c1d857aff417693614", "score": "0.742025", "text": "function isModified() {\n\t\treturn $this->_Modified;\n\t}", "title": "" }, { "docid": "22141a2e1ff532c1d857aff417693614", "score": "0.742025", "text": "function isModified() {\n\t\treturn $this->_Modified;\n\t}", "title": "" }, { "docid": "22141a2e1ff532c1d857aff417693614", "score": "0.742025", "text": "function isModified() {\n\t\treturn $this->_Modified;\n\t}", "title": "" }, { "docid": "22141a2e1ff532c1d857aff417693614", "score": "0.742025", "text": "function isModified() {\n\t\treturn $this->_Modified;\n\t}", "title": "" }, { "docid": "22141a2e1ff532c1d857aff417693614", "score": "0.742025", "text": "function isModified() {\n\t\treturn $this->_Modified;\n\t}", "title": "" }, { "docid": "e8c8e7ba810f653bf59aa64613a0c8c7", "score": "0.73353297", "text": "public function hasBeenModified(): bool\n {\n return $this->date_created != $this->date_modified;\n }", "title": "" }, { "docid": "91d8e76fdb6cd4516ef06d946b8f50b4", "score": "0.7333338", "text": "public function is_modified()\n\t{\n\t\treturn $this->is_modified;\n\t}", "title": "" }, { "docid": "ba2aee04b8838a983d0386e3ff89bd4d", "score": "0.7323624", "text": "public function OnIsModified($oObject)\n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "34aca2dae6f571167099903bc589f1ae", "score": "0.72623473", "text": "public function isModified()\n {\n return $this->modified;\n }", "title": "" }, { "docid": "fa3ab6be548535f7d1e2b74451d5e115", "score": "0.72184956", "text": "function isModified() {\n\t\t$modified = $this->_Modified;\n\n\t\treturn $modified;\n\t}", "title": "" }, { "docid": "fa3ab6be548535f7d1e2b74451d5e115", "score": "0.72184956", "text": "function isModified() {\n\t\t$modified = $this->_Modified;\n\n\t\treturn $modified;\n\t}", "title": "" }, { "docid": "4d3c826900de40d69a3493bedf825f08", "score": "0.7214661", "text": "public function isModified ()\n {\n return $this->wasModified;\n }", "title": "" }, { "docid": "a6cffd7c70ce73ad7e23d643b54efc76", "score": "0.72015125", "text": "abstract public function isUpdated();", "title": "" }, { "docid": "a409333c701ccbcf528f56d65ea61981", "score": "0.71776026", "text": "public function isModified(): bool\n {\n return $this->result->isModified($this->id);\n }", "title": "" }, { "docid": "38b9c2dc3a47b943ae47b6dc9a102e8f", "score": "0.7163273", "text": "public function isDirty();", "title": "" }, { "docid": "f0641bb11a5d3641bec389cb6600c4ad", "score": "0.71322715", "text": "protected function dirty() {\n //\n // Check if there is any work to do.\n //\n if ((!count($this->__MODIFIEDDATA__)) || (!count($this->__DATA__))) {\n return false;\n }\n //\n // If we were forcibly touched, make sure there is work to do.\n //\n if (!count($this->__MODIFIEDDATA__)) {\n $this->__MODIFIEDDATA__ = $this->__DATA__;\n }\n return true;\n }", "title": "" }, { "docid": "266ff66855bc2339bbbd3fbb444383c8", "score": "0.708371", "text": "function isModified() {\n\t\t$modified = $this->_Modified;\n\t\tif ( !$modified && $this->_SourceSet !== null ) {\n\t\t\t$modified = $modified || $this->_SourceSet->isModified();\n\t\t}\n\t\treturn $modified;\n\t}", "title": "" }, { "docid": "bae059d5638014e360c957a60de56d8c", "score": "0.7060039", "text": "public function hasPendingChanges() {\n if ($this->unsaved || count($this->nodesAdd) || count($this->nodesRemove)) return true;\n foreach($this->objectsByPath as $item) {\n if ($item->isModified()) return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "ea600cb1c6051e3e966d6216a60366b3", "score": "0.6996697", "text": "function isModified() {\n $modified = parent::isModified();\n if (!$modified && $this->_DataSet !== null) {\n $modified = $modified || $this->_DataSet->isModified();\n }\n if (!$modified && $this->_LicenseSet !== null) {\n $modified = $modified || $this->_LicenseSet->isModified();\n }\n if (!$modified && $this->_TagSet !== null) {\n $modified = $modified || $this->_TagSet->isModified();\n }\n if (!$modified && $this->_SourceSet !== null) {\n $modified = $modified || $this->_SourceSet->isModified();\n }\n if (!$modified && $this->_AssetSet !== null) {\n $modified = $modified || $this->_AssetSet->isModified();\n }\n if (!$modified && $this->_AwardSet !== null) {\n $modified = $modified || $this->_AwardSet->isModified();\n }\n if (!$modified && $this->_CommentSet !== null) {\n $modified = $modified || $this->_CommentSet->isModified();\n }\n if (!$modified && $this->_ContributorSet !== null) {\n $modified = $modified || $this->_ContributorSet->isModified();\n }\n if (!$modified && $this->_HistorySet !== null) {\n $modified = $modified || $this->_HistorySet->isModified();\n }\n if (!$modified && $this->_TrackSet !== null) {\n $modified = $modified || $this->_TrackSet->isModified();\n }\n if (!$modified && $this->_CategorySet !== null) {\n $modified = $modified || $this->_CategorySet->isModified();\n }\n if (!$modified && $this->_MessageSet !== null) {\n $modified = $modified || $this->_MessageSet->isModified();\n }\n if (!$modified && $this->_BroadcastSet !== null) {\n $modified = $modified || $this->_BroadcastSet->isModified();\n }\n return $modified;\n }", "title": "" }, { "docid": "1b1cd9c61db4e609800b2b02c0a2d778", "score": "0.69517255", "text": "public function isModified(): bool\n {\n return !!$this->modifiedColumns;\n }", "title": "" }, { "docid": "54ab2b0dee4929b81c1e66977790a872", "score": "0.69248426", "text": "function getIsModified() {\n\t\treturn $this->_isModified;\n\t}", "title": "" }, { "docid": "7427c0cc41be36dfc53f6c9eb3733d0e", "score": "0.68702835", "text": "public function isModifiedNice()\n {\n return $this->getBooleanNice($this->stagesDiffer('Stage', 'Live'));\n }", "title": "" }, { "docid": "a7086c827c76e9ccb6266d374fa2efa3", "score": "0.684819", "text": "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "title": "" }, { "docid": "a7086c827c76e9ccb6266d374fa2efa3", "score": "0.684819", "text": "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "title": "" }, { "docid": "a7086c827c76e9ccb6266d374fa2efa3", "score": "0.684819", "text": "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "title": "" }, { "docid": "a7086c827c76e9ccb6266d374fa2efa3", "score": "0.684819", "text": "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "title": "" }, { "docid": "a7086c827c76e9ccb6266d374fa2efa3", "score": "0.684819", "text": "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "title": "" }, { "docid": "a7086c827c76e9ccb6266d374fa2efa3", "score": "0.684819", "text": "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "title": "" }, { "docid": "a7086c827c76e9ccb6266d374fa2efa3", "score": "0.684819", "text": "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "title": "" }, { "docid": "a7086c827c76e9ccb6266d374fa2efa3", "score": "0.684819", "text": "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "title": "" }, { "docid": "a7086c827c76e9ccb6266d374fa2efa3", "score": "0.684819", "text": "public function isModified()\n {\n return !!$this->modifiedColumns;\n }", "title": "" }, { "docid": "da4c281e30e44bb95fe2ff881277b265", "score": "0.6806038", "text": "public function isModified()\n {\n return (bool) $this->gallery['modified'];\n }", "title": "" }, { "docid": "66ff4223eb867496ab178d64d1eb9f75", "score": "0.6765849", "text": "public function isBeingEdited(){\n\t\tif(!property_exists($this,'isCopyOf')) return false;\n\t\t$e=mysql_fetch_object($this->q(\"select count(id) as c from $this->tableName where isCopyOf=$this->id\"));\n\t\t$copies=$e->c;\n\t\tif($copies>0) return true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "f5c1a2c087c7c78beeccf2301260c6de", "score": "0.6759772", "text": "public function hasModifiedBy(){\n return $this->_has(7);\n }", "title": "" }, { "docid": "5872b6f317c5fe0dbc27f7a6feb18088", "score": "0.6752405", "text": "public function hasModifyCallbacks($object): bool\n {\n return $this->modifiers->contains($object);\n }", "title": "" }, { "docid": "256beb32d263443fc0afdec47ae4cc5b", "score": "0.67472154", "text": "function isModified() {\n\t\t$modified = $this->_Modified;\n\t\tif ( !$modified && $this->_ParamSet !== null ) {\n\t\t\t$modified = $modified || $this->_ParamSet->isModified();\n\t\t}\n\t\tif ( !$modified && $this->_NetworkMappingSet !== null ) {\n\t\t\t$modified = $modified || $this->_NetworkMappingSet->isModified();\n\t\t}\n\t\treturn $modified;\n\t}", "title": "" }, { "docid": "55e5ab5368d1a33fa674c2437ac8eba8", "score": "0.67409295", "text": "public function canDoDirtyThings();", "title": "" }, { "docid": "591f0415c0e2f0f54398e7f1056d1b51", "score": "0.66964203", "text": "public function isChanged()\n {\n return ($this->insertList || $this->updateList || $this->deleteList);\n }", "title": "" }, { "docid": "35459e09a1db9c9c8ce10246e3357d24", "score": "0.6687962", "text": "public function hasPendingChanges(): bool\n {\n if (count($this->operationsLog)) {\n return true;\n }\n foreach ($this->objectsByPath[Node::class] as $item) {\n if ($item->isModified()) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "7954fc5209970d145e7739c1cff9921b", "score": "0.6611854", "text": "function isModified() {\n\t\t$modified = $this->_Modified;\n\t\tif ( $this->_itemCount() > 0 ) {\n\t\t\tif ( false ) $oCapability = new wurflDeviceCapability();\n\t\t\tforeach ( $this as $capability => $oCapability ) {\n\t\t\t\t$modified = $modified || $oCapability->isModified();\n\t\t\t}\n\t\t}\n\t\treturn $modified;\n\t}", "title": "" }, { "docid": "9bec9578f013c3d0670f5656e06f651f", "score": "0.6594022", "text": "public function canUpdate($object);", "title": "" }, { "docid": "254d50565648d24780138c0af916387f", "score": "0.6550347", "text": "public function changed()\n {\n return !empty($this->_changed);\n }", "title": "" }, { "docid": "ee72b9f9c32481f30a5225c5610b3ce5", "score": "0.6545995", "text": "public function isChanged(): bool;", "title": "" }, { "docid": "b55688bdb37e8f74e9a76e7c80fbbdb8", "score": "0.6538245", "text": "static public function hasChanges(){\n \n return count( self::getChanges() ) > 0;\n \n }", "title": "" }, { "docid": "0130e01e21cf4d663b482a58e8bbd46e", "score": "0.6537671", "text": "public function isChanged()\n {\n return $this->get()->count() > 1;\n }", "title": "" }, { "docid": "9140f6c91b284c384c90f1c057d66074", "score": "0.652754", "text": "function isModified()\n {\n return $this->modified_columns;\n }", "title": "" }, { "docid": "bb09d3f4d8ee9e7bc9f27774efd5f1ba", "score": "0.65271896", "text": "final public function wasMutated(): bool\n {\n return $this->mutated;\n }", "title": "" }, { "docid": "4dac19643d0b8cd1a50eed8fdcc66dd6", "score": "0.65163964", "text": "function isModified() {\n\t\t$modified = $this->_Modified;\n\t\tif ( !$modified && $this->_ParamSet !== null ) {\n\t\t\t$modified = $modified || $this->_ParamSet->isModified();\n\t\t}\n\t\treturn $modified;\n\t}", "title": "" }, { "docid": "51dc0e21f0bca7b2ebc9bbbe915ef991", "score": "0.65154284", "text": "public function hasModifiedByProfile(){\n return $this->_has(11);\n }", "title": "" }, { "docid": "dbfbb54a3759faef535c7dc277c8d5a0", "score": "0.6513138", "text": "public function isChanged () {\n\t\treturn $this->changed;\n\t}", "title": "" }, { "docid": "2fd82123c77c8ddf8224181c8df9e817", "score": "0.6503365", "text": "public function wouldChange()\n {\n return $this->change === true;\n }", "title": "" }, { "docid": "9c4b0da4a0a3d612961f0605d4bc2820", "score": "0.64934236", "text": "public function is_dirty(/* ... */)\n {\n return $this->_dirty;\n }", "title": "" }, { "docid": "ff80f02190882d398ebbde7978c68c5f", "score": "0.6489034", "text": "abstract public function markAsModified();", "title": "" }, { "docid": "503eef8eec3d19eb582568e36d6b5ee3", "score": "0.64847934", "text": "public function is_dirty()\n {\n if (empty($this->_original_data)) {\n // this should be a new resource, so it is dirty\n return TRUE;\n }\n return !empty($this->get_dirty());\n }", "title": "" }, { "docid": "4bc457e3d7a36c8122a25103947460df", "score": "0.6482131", "text": "protected function _isMutable(){\n\t\treturn false;\n\t}", "title": "" }, { "docid": "223d6da2b8ca98bd66784ebc3f37512f", "score": "0.6476478", "text": "public final function hasChanged()\r\n\t{\r\n\t\treturn $this->_has_changed;\r\n\t}", "title": "" }, { "docid": "3389b18856e72c6a6ccad202e922d950", "score": "0.6471422", "text": "public function changed()\n\t{\n\t\treturn $this->arguments !== $this->_original_arguments;\n\t}", "title": "" }, { "docid": "cabd48dc4232748847de0aec8db8c89a", "score": "0.64198405", "text": "public static function isUpdated()\n {\n return true;\n }", "title": "" }, { "docid": "7f4cfe1079bd718269baefced2cc6a7e", "score": "0.64153755", "text": "public function isRuleBehaviorChanged()\n {\n if (!$this->isObjectNew()) {\n $arrayDiff = $this->dataDiff($this->getOrigData(), $this->getStoredData());\n unset($arrayDiff['name']);\n unset($arrayDiff['description']);\n if (empty($arrayDiff)) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "1c85ddf6958efd8109f526a16b81e059", "score": "0.64092803", "text": "public function HasChanged() {\n\t\treturn $this->IsValid();\n\t}", "title": "" }, { "docid": "4209e611c6888e6f9b47dbb9d5b7d2e1", "score": "0.64021784", "text": "public function hasChanged()\n {\n return $this->has_changed;\n }", "title": "" }, { "docid": "162dc34e2cf4c87157088ef7b4cefc96", "score": "0.63810813", "text": "protected function isOverwritten() {\n $object = AAM_Backend_Subject::getInstance()->getObject('uri');\n \n return $object->isOverwritten();\n }", "title": "" }, { "docid": "b565875668cb8b5229713d26721d1c95", "score": "0.62845373", "text": "public function hasChangedOn(){\n return $this->_has(4);\n }", "title": "" }, { "docid": "e0d80f8efa7e4a41b29e1bbba2d8db97", "score": "0.62729686", "text": "public function hasChanged(){\n return $this->changed;\n }", "title": "" }, { "docid": "b2c4852642bc4f83122c0afdb18faf0d", "score": "0.6266581", "text": "public function isChanged(): bool\n\t{\n\t\tif ($this->changed)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\treturn $this->deltaReserveQuantity !== 0.0;\n\t}", "title": "" }, { "docid": "f3c4439a03a00af54e1f8a16e38e5232", "score": "0.6249291", "text": "public function isDirty()\r\n {\r\n return $this->dirty;\r\n }", "title": "" }, { "docid": "d51f883cc51c6c4c5b371c76d9624213", "score": "0.6248534", "text": "public function isModifiedOnDraft()\n {\n return $this->isOnDraft() && $this->stagesDiffer();\n }", "title": "" }, { "docid": "655a1cc668159b6752895d3a864ea966", "score": "0.62412536", "text": "protected function hasChanged() {\n return $this->_diffModel->hasChanged();\n }", "title": "" }, { "docid": "c9d5cf775201e61f426997ff641c500a", "score": "0.6240398", "text": "public function mustUpdate();", "title": "" }, { "docid": "26ec775e37150ca64cee14ac71058b96", "score": "0.6233367", "text": "private function needsToFlush()\n {\n if ($this->newDocuments || count($this->detachQueue)) {\n return true;\n }\n\n foreach ($this->identityMap as $id => $object) {\n if ($this->isObjectManaged($object) && $this->changeManager->isChanged($object)) {\n return true;\n }\n\n if ($this->isObjectRemoved($object)) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "f1cce007679c8efafc982157e9f30710", "score": "0.622636", "text": "public function getIsModifiedOnStage() {\r\n\t\t// new unsaved fields could be never be published\r\n\t\tif($this->owner->isNew()) return false;\r\n\t\r\n\t\t$stageVersion = Versioned::get_versionnumber_by_stage($this->owner->ClassName, 'Stage', $this->owner->ID);\r\n\t\t$liveVersion =\tVersioned::get_versionnumber_by_stage($this->owner->ClassName, 'Live', $this->owner->ID);\r\n\t\t\r\n\t\t$isModified = ($stageVersion && $stageVersion != $liveVersion);\r\n\t\t\r\n\t\tif(!$isModified){\r\n\t\t\t$has_many = $this->owner->config()->get('has_many');\r\n\t\t\tif($has_many){\r\n\t\t\t\tforeach($has_many as $key => $value){\r\n\t\t\t\t\tif($value::has_extension('VersionDataObjectExtension')) {\r\n\t\t\t\t\t\t$relationship = $this->owner->getComponents($key);\r\n\t\t\t\t\t\tif($relationship) {\r\n\t\t\t\t\t\t\tforeach($relationship as $field) {\r\n\t\t\t\t\t\t\t\tif($field->getIsModifiedOnStage()) {\r\n\t\t\t\t\t\t\t\t\t$isModified = true;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\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\t\r\n\t\treturn $isModified;\r\n\t}", "title": "" }, { "docid": "9d3db99972c0ef01e87877ef0b868018", "score": "0.62200856", "text": "public function canUpdate();", "title": "" }, { "docid": "cc3d91bb0c26dc797e7783377de17a29", "score": "0.62023765", "text": "public function isModifiable()\n {\n return $this->modifiable == 'modifiable';\n }", "title": "" }, { "docid": "54d8b410e21112ea4c056173f1b7d6cb", "score": "0.62007517", "text": "final public function isFlaggedAsUpdated() {\n\t\treturn $this->isUpdated;\n\t}", "title": "" }, { "docid": "df17a68a76a1d429e0b283588764ac77", "score": "0.61735296", "text": "public function isDirty(): bool\n {\n return $this->dirty;\n }", "title": "" }, { "docid": "df17a68a76a1d429e0b283588764ac77", "score": "0.61735296", "text": "public function isDirty(): bool\n {\n return $this->dirty;\n }", "title": "" }, { "docid": "e05bed184a36e3d9f3fcdbec427eb64c", "score": "0.6171083", "text": "public function dirty()\n {\n return !$this->exists || count($this->getDirty()) > 0;\n }", "title": "" }, { "docid": "c1b85bfd40668d1781d0768cb04f54c2", "score": "0.6166992", "text": "public function canUpdate($object)\n\t\t{\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "13d147bca714fc9f3d5d5bb1e3e3ca26", "score": "0.61419725", "text": "public function hasChangedField();", "title": "" }, { "docid": "10838125dc134d559893750877ce4d0a", "score": "0.6129122", "text": "public function hasChanged()\n {\n return $this->reader->hasChanged();\n }", "title": "" }, { "docid": "821c5778cce900b819fcbf047c7b9733", "score": "0.61263585", "text": "final public function isIdUpdated() {\n\t\tif (!$this->isFlaggedAsUpdated() && $this->getModel()->getModel()->isComplex()) {\n\t\t\tforeach ($this->getValues() as $value) {\n\t\t\t\tif (($value instanceof AbstractComhonObject) && $value->isIdUpdated()) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $this->isFlaggedAsUpdated();\n\t}", "title": "" }, { "docid": "7af76258b3076b7c029bd7d1b5c925a2", "score": "0.6115958", "text": "public function isDirty(): bool {\n return $this->dirty;\n }", "title": "" }, { "docid": "f2c35fabc81e6a046ede77636e3ecb8a", "score": "0.6105853", "text": "public function hasSimpleInvalidation();", "title": "" }, { "docid": "aec08f86ef8d12bf48e0da2d1efcac3b", "score": "0.609761", "text": "private function _isOArrayModified( $obj ) {\n foreach ( $obj->getMetadata()->fieldMappings as $ref => $prop ){\n switch ( $prop['type'] ) {\n case Schema::TARRAY:\n case Schema::JSON_ARRAY:\n $value = $obj->getData( $ref );\n if ( is_object( $value ) && get_class( $value ) == 'Citrus\\Cluster\\Orm\\Doctrine\\inc\\type\\OArray' && $value->hasChanged() ) \n $obj->getEntitymanager()->getUnitOfWork()->propertyChanged( $obj, $ref, null, $obj->getData( $ref ) );\n break;\n }\n }\n }", "title": "" }, { "docid": "82de1d8374630d7dc4c03a177fcd4796", "score": "0.6096117", "text": "protected function isOverwritten() {\n $object = AAM_Backend_Subject::getInstance()->getObject('route');\n \n return $object->isOverwritten();\n }", "title": "" }, { "docid": "f05c633203d1085921562feb7fb7527b", "score": "0.6095586", "text": "public function isModifiable(): bool\n {\n return $this->modifiable;\n }", "title": "" }, { "docid": "ebe62afa0f537bac31d15d7ad3315cb8", "score": "0.60874206", "text": "public function providesChanges()\n {\n return ! $this->rowsetExists()\n || ! $this->lastRowsetIs($this->rowsetChecksum());\n }", "title": "" }, { "docid": "1f9c37f07ed330ae3198c3f1be394c41", "score": "0.6076902", "text": "private function checkDataChanged()\r\n {\r\n if ( !empty($_SERVER['HTTP_IF_MODIFIED_SINCE']) && !empty($this->dataModifiedDate) ) {\r\n $lastFetchDate = strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']);\r\n if ($lastFetchDate >= $this->dataModifiedDate) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }", "title": "" }, { "docid": "6849bb5b0a2e4ff00b05dafc5db4004c", "score": "0.6062088", "text": "function isRebuilt(): bool;", "title": "" }, { "docid": "a2ababe6b623e54b24fcb3e8a86b1e6a", "score": "0.60602516", "text": "public function isMutable()\n {\n return isset($this->store) and $this->store->isMutable();\n }", "title": "" }, { "docid": "c2f1178597ffb40a4c7e8eab7f109f34", "score": "0.6016726", "text": "private function isUpdated() {\r\n\t\treturn self::$settings->getGlobalOption ( 'revision' ) && self::$settings->getGlobalOption ( 'revision' ) < self::$revisionId;\r\n\t}", "title": "" }, { "docid": "89150406c1b32a24964a63ae23480dc0", "score": "0.5997281", "text": "public function getHasChanged()\n {\n return $this->hasChanged;\n }", "title": "" }, { "docid": "b39814f5cd6fb2d5e7bffc78f2518fef", "score": "0.5978388", "text": "public function isDirty(): bool\n {\n return self::STATE_DIRTY === $this->state;\n }", "title": "" }, { "docid": "dd200b087f3b8d6a69c172958373c0e7", "score": "0.5965785", "text": "public function hasOnUpdate()\n {\n return self::NONE !== $this->onUpdate;\n }", "title": "" }, { "docid": "73d80372abe014f7f2634d661e27825e", "score": "0.59634787", "text": "public function hasChangedValues($object, array $propertyPath, $notSavedAsNull = false);", "title": "" }, { "docid": "10abd7a38aca6b6293c63523d8c4a9b3", "score": "0.59532785", "text": "public function dirty() { return $this->_m_dirty; }", "title": "" } ]
c4fee7d512a28a08feb096a893bf1d07
TODO: Your mock expectations here
[ { "docid": "4ffece800591d166a9f37605c434c8fc", "score": "0.0", "text": "public function testGetTabCompletion0()\n{\n\n $actual = $this->configuration->getTabCompletion();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" } ]
[ { "docid": "9d23b793c460954ad744bba6a9ed0333", "score": "0.658122", "text": "protected function before() {}", "title": "" }, { "docid": "0de33aabe7c388ac20b6e2641cca69d1", "score": "0.6510778", "text": "protected function _createMock() {\n\n }", "title": "" }, { "docid": "b07c23e63d383c9eb2debbf7cf1d2329", "score": "0.64155334", "text": "public function testCompanyListingsRead()\n {\n }", "title": "" }, { "docid": "6999d45f27bbfd921e48220dfaaafa19", "score": "0.6299985", "text": "public function testOutboundDocumentGet()\n {\n }", "title": "" }, { "docid": "d74668eeac77551005cb9312147e62f5", "score": "0.62863344", "text": "public function testAnalysisTemplateGet()\r\n {\r\n\r\n }", "title": "" }, { "docid": "e56ec657ead03b2e60b8625951970c01", "score": "0.62808347", "text": "public function testResourceGet()\n {\n }", "title": "" }, { "docid": "8ecb87f4f9a5144d87d83f924dd18e0e", "score": "0.6271602", "text": "public function testBucGet()\n {\n }", "title": "" }, { "docid": "657005876505ae70c12c45343581294b", "score": "0.6136325", "text": "public function testINPhysicalQueryINPhysicalGet()\n {\n }", "title": "" }, { "docid": "b600451b137dfc4063453d0d08f63e0a", "score": "0.61348796", "text": "public function testHarvestOrder()\n {\n\n }", "title": "" }, { "docid": "97ec8915b053689cfa7d0565dbc4b91c", "score": "0.6121731", "text": "public function test_retrieveItems() {\n\n }", "title": "" }, { "docid": "b27d1fde38fea2474e2f7b804fc07bac", "score": "0.6089464", "text": "public function testOutboundDocumentSearch()\n {\n }", "title": "" }, { "docid": "6ff8d53474a138aa39a023ac0f09af0d", "score": "0.60797757", "text": "public function testUserfilesIdContentGet()\n {\n }", "title": "" }, { "docid": "81835c9944dda66896b94e2817b6761e", "score": "0.6072402", "text": "public function testOutboundDocumentGetCufe()\n {\n }", "title": "" }, { "docid": "e351408dbb8cfbb0498a77e6d7ce3483", "score": "0.6068284", "text": "public function testGetOrganizationInventoryDevices()\n {\n }", "title": "" }, { "docid": "672b1939413d6deee1eef5c85817ead0", "score": "0.60620123", "text": "public function test_getDuplicateKitById() {\n\n }", "title": "" }, { "docid": "3ac12ffd0b8d27135385bc9ce97470f8", "score": "0.6056033", "text": "public function testGetOrderHistory()\n {\n\n }", "title": "" }, { "docid": "55aa384b2f2c549d7d344a19e86bc8ae", "score": "0.6036922", "text": "public function testOrderGetByToken()\n {\n }", "title": "" }, { "docid": "b807047d0e3f70ad7e8f6436d45d01ed", "score": "0.6025113", "text": "public function testRemoteRemoteIdStatusGet()\n {\n }", "title": "" }, { "docid": "2bd76ead34b665cf2968e260709da29b", "score": "0.6014725", "text": "public function testGetOrganizationInventoryDevice()\n {\n }", "title": "" }, { "docid": "b89d42e6e3e9b08bdfb998e7f843af58", "score": "0.60104495", "text": "public function testCampaignGetInboundReferences()\n {\n }", "title": "" }, { "docid": "cac814e545f49fb2d560f8b20e05ed15", "score": "0.60020494", "text": "public function testResourcePost()\n {\n }", "title": "" }, { "docid": "337de498c01dc9a956c4292e5feec988", "score": "0.59973484", "text": "public function testPOMainQueryPOMainGet()\n {\n }", "title": "" }, { "docid": "12c0b91e34224c4da2b4c986c84f8cdf", "score": "0.59964484", "text": "public function testListingFetch()\n {\n }", "title": "" }, { "docid": "31a1941b16775adb9bfe077ddce47836", "score": "0.5993993", "text": "public function testPostDataManagerCollection()\n {\n }", "title": "" }, { "docid": "7e092808d27e2b32f532dc47d434b93b", "score": "0.5985765", "text": "public function testGetStatusesHistory()\n {\n\n }", "title": "" }, { "docid": "8f20db4b44a6f01cfa75ded2e2e57906", "score": "0.59802216", "text": "public function testOrderGetCalculation()\n {\n }", "title": "" }, { "docid": "8cb478dc53439297d2527b4a7353deaf", "score": "0.59757763", "text": "public function testTelegrafsGet()\n {\n }", "title": "" }, { "docid": "849dbbe720ef3edf59e711b0f3e4bb26", "score": "0.59749305", "text": "public function testSpacecraftGet()\n {\n }", "title": "" }, { "docid": "434482dbaa1b1a7052a0b39a63194a66", "score": "0.5969274", "text": "public function testPostAnalyticsUsersDetailsQuery()\n {\n }", "title": "" }, { "docid": "ac63ddc09c7cf0f830936a486bcac9f1", "score": "0.5967352", "text": "public function testProcurementCatalogIdComponentsGet()\n {\n\n }", "title": "" }, { "docid": "7a36af50c048f259109fa92ad1de3cbe", "score": "0.59657466", "text": "public function testUserfilesIdGet()\n {\n }", "title": "" }, { "docid": "410f243d3b5b798b325c3ab155adfeea", "score": "0.5964457", "text": "public function testGetRecipeInformation()\n {\n }", "title": "" }, { "docid": "e298fb3112d4dcde434d0719e3137df3", "score": "0.596313", "text": "public function testRemoteservicegroupGet()\n {\n }", "title": "" }, { "docid": "085b281fccbebcf69c27e69ae3f0e8a2", "score": "0.59615505", "text": "public function testGetProductInformation()\n {\n }", "title": "" }, { "docid": "877e89ffad8ddcc5effbcfb26d2f34fd", "score": "0.59558105", "text": "public function testGETAPlacement()\n {\n }", "title": "" }, { "docid": "346e9affceec97d9138f241d27d5bb1c", "score": "0.5951281", "text": "public function testSpacecraftSpacecraftIdGet()\n {\n }", "title": "" }, { "docid": "db94e70b60dc5a3a2acead8e0dbf958d", "score": "0.5949955", "text": "public function testGetPersonAccessLogForOne()\n {\n }", "title": "" }, { "docid": "96f5917732b29192d2968642f984e481", "score": "0.59431577", "text": "public function testGetTrackingInformation()\n {\n }", "title": "" }, { "docid": "b4eb4b59717e5705ad1fb271153f10f3", "score": "0.5942286", "text": "public function testCustomerBillInitGet()\n {\n\n }", "title": "" }, { "docid": "5bcb31ed425f398ad82efb03b3fe5ce3", "score": "0.59365064", "text": "public function testOutboundDocumentGetAttachments()\n {\n }", "title": "" }, { "docid": "90d878664b054c45e41c38135ec2edf6", "score": "0.5935607", "text": "public function testGetPersonAccessLog()\n {\n }", "title": "" }, { "docid": "b035e75a93260a1292997bfa6c2dc6a2", "score": "0.5935397", "text": "public function testGetRecipeInformationBulk()\n {\n }", "title": "" }, { "docid": "832a0b12e689a96cd0d618afe4285b29", "score": "0.59316576", "text": "public function testGetNetworkPiiRequests()\n {\n }", "title": "" }, { "docid": "5bae9e4e5094bdbdefd5759367b83910", "score": "0.5931023", "text": "public function testUsersUuidPaymentsGet()\n {\n }", "title": "" }, { "docid": "b8a8b10acc963514d0c7e42bf6efa813", "score": "0.59287596", "text": "public function testUpconverterUpconverterIdGet()\n {\n }", "title": "" }, { "docid": "850276af7f627cb87b53089e6872a4ba", "score": "0.59156495", "text": "public function testEnvelopeHistory()\n {\n }", "title": "" }, { "docid": "89041ab6672dda26d2a3c5cd29a74fda", "score": "0.59151065", "text": "public function testRemoteGet()\n {\n }", "title": "" }, { "docid": "eee1403ea1f6263e920fc4168c0f0a82", "score": "0.59124255", "text": "public function testFileContainerFindById()\n {\n\n }", "title": "" }, { "docid": "7ef3156c9d57ec5b258d21f037ea8cb9", "score": "0.59115565", "text": "public function testRequestProductDataChangesReport()\n {\n }", "title": "" }, { "docid": "84b8862807d1d9683b5050e5052a5ed8", "score": "0.5909144", "text": "public function testGetOrganizationDevices()\n {\n }", "title": "" }, { "docid": "4111427800cb7f39c9485978d6e4d1bf", "score": "0.5904164", "text": "public function testInroutegroupInroutegroupIdGet()\n {\n }", "title": "" }, { "docid": "357de36ff68c8f21ee6affbb29f31572", "score": "0.5902365", "text": "public function testWebAheadGet()\n {\n }", "title": "" }, { "docid": "9cea0e514c4a9f3e19957ebc37fa49ea", "score": "0.5897756", "text": "public function testCampaignGetPublisherPayouts()\n {\n }", "title": "" }, { "docid": "c4419cb3764dea0bbefd11d94adbfd95", "score": "0.58957535", "text": "public function testCompanyListingsSearch()\n {\n }", "title": "" }, { "docid": "7e5b06137a0cc5c6eb8f17bcf9291d7e", "score": "0.58942926", "text": "public function testReceiptsIdGet()\n {\n }", "title": "" }, { "docid": "3d019fcf931c1f40bf67f8b92e188985", "score": "0.58939344", "text": "public function testCampaignGetstats()\n {\n }", "title": "" }, { "docid": "8a70fe0accd3c5af41fba25a87a31167", "score": "0.58918065", "text": "public function testFinanceAgreementsIdBoardDefaultsGet()\n {\n\n }", "title": "" }, { "docid": "4ee848490bdb689f1e8c2932c016d8b7", "score": "0.58913064", "text": "public function testGetSenderItem()\n {\n }", "title": "" }, { "docid": "c4ddf9d3b95053faa696f2af0a57a35d", "score": "0.5890888", "text": "public function testRemoteRemoteIdGet()\n {\n }", "title": "" }, { "docid": "8a6a7626931736bb71ddd14fa16047a8", "score": "0.58890694", "text": "public function testGetDataManagerItem()\n {\n }", "title": "" }, { "docid": "353cad5fa17128efc6e390bb198eb995", "score": "0.58820415", "text": "public function testRequestAccountListingReport()\n {\n }", "title": "" }, { "docid": "20a05fa8ce9aefe2542f9900237bb5d8", "score": "0.58801436", "text": "public function testReceiptsGet()\n {\n }", "title": "" }, { "docid": "0b0af1190009f6d34f57a40b85ce737e", "score": "0.58752126", "text": "public function testDownconverterDownconverterIdGet()\n {\n }", "title": "" }, { "docid": "7456f3f0b0c00cc43f36c6465f962771", "score": "0.5870781", "text": "public function testUserGet()\n {\n }", "title": "" }, { "docid": "09dbe96464fd6a693ebd6630f64a174a", "score": "0.58682823", "text": "protected function setup() {}", "title": "" }, { "docid": "12188cf4c73dff75de5eff7da90cfcc3", "score": "0.58671844", "text": "public function test_getDuplicateWarehouseDocumentById() {\n\n }", "title": "" }, { "docid": "b5f176d2aaec4ebb5c7ccd9c07f5e8e8", "score": "0.58669007", "text": "public function testOutboundDocumentGetFileContent()\n {\n }", "title": "" }, { "docid": "8b65c133819a00a134303c55580c7eb4", "score": "0.5865355", "text": "public function testListingSearch()\n {\n }", "title": "" }, { "docid": "0420d5646a74a3947a858cb990051b73", "score": "0.586366", "text": "public function testCampaignGet0()\n {\n }", "title": "" }, { "docid": "534dd8083fece93673a84eea03e8d615", "score": "0.5860946", "text": "public function testFileContainerFindOne()\n {\n\n }", "title": "" }, { "docid": "e32d05bb707a7a0d8f688ef97f3d4ce1", "score": "0.5857362", "text": "public function test_getWarehouseDocumentTags() {\n\n }", "title": "" }, { "docid": "55333645a98f6cc727f0e9b1b25fa73f", "score": "0.58556116", "text": "public function testSOMainQuerySOMainGet()\n {\n }", "title": "" }, { "docid": "287a077c118ead3c538648320b689047", "score": "0.58496684", "text": "public function testGetWineRecommendation()\n {\n }", "title": "" }, { "docid": "8a1dbb4ea59f33ef809c279d6b76170b", "score": "0.5849504", "text": "public function testDownloadFileItem()\n {\n }", "title": "" }, { "docid": "d688506f3ff2ec4270646e028fa4ec42", "score": "0.58482385", "text": "public function testSpacecraftPost()\n {\n }", "title": "" }, { "docid": "87e49fe876ad2bcc49378fd71db82a00", "score": "0.58451235", "text": "public function testHubrftGet()\n {\n }", "title": "" }, { "docid": "7cf9c07c3f9902603cde091d301df74a", "score": "0.584083", "text": "public function testHubrftHubrftIdGet()\n {\n }", "title": "" }, { "docid": "ac89a7a3734e0d62734f66500f94c6f6", "score": "0.5835077", "text": "public function testSearchDashboardElements()\n {\n }", "title": "" }, { "docid": "9c50913b11ce987a08b0ca41a2221d0f", "score": "0.5834354", "text": "public function test_retrieveEvents() {\n\n }", "title": "" }, { "docid": "86d682262bf78e4be7c42f461064db3e", "score": "0.5834155", "text": "public function testVJiwaInventoryItemListQueryInventoryItemListGet()\n {\n }", "title": "" }, { "docid": "fa10aaa0d378be4065c87d1e50e02280", "score": "0.5832714", "text": "public function testQueryProperties()\n {\n\n }", "title": "" }, { "docid": "de00b48e16b4d8345aafac72c51425b0", "score": "0.5826827", "text": "public function testCampaignGet()\n {\n }", "title": "" }, { "docid": "f8c79c9c1ca28ae4e3c0afbd66539682", "score": "0.58265257", "text": "public function testRequestNewBookingsReport()\n {\n }", "title": "" }, { "docid": "9d9430c6fa8ad40960298b013b4b8328", "score": "0.5822827", "text": "public function test_getDuplicateScheduledPlanLogById() {\n\n }", "title": "" }, { "docid": "01b51c012b79e4a743f69b714acc1ec6", "score": "0.58169335", "text": "public function testExtractRecipeFromWebsite()\n {\n }", "title": "" }, { "docid": "4584da7db90b43b1383dd9e8ce4b9a97", "score": "0.58164614", "text": "public function testRequestNewSalesReport()\n {\n }", "title": "" }, { "docid": "dc826228347939a45c1093e11afa834c", "score": "0.58147013", "text": "public function testCustomerBillGet()\n {\n\n }", "title": "" }, { "docid": "fd09adbaa402962e58dabb320143e6e7", "score": "0.5807328", "text": "public function testUpconverterGet()\n {\n }", "title": "" }, { "docid": "b3a889e5356905c8a447374d80305786", "score": "0.580278", "text": "public function testApplicationservicegroupApplicationservicegroupIdGet()\n {\n }", "title": "" }, { "docid": "40346a54d1e1f50e3240eca6316d8d96", "score": "0.5797373", "text": "public function testGetOrganizationSnmp()\n {\n }", "title": "" }, { "docid": "d9067f19bc68adc27f73bc2da0675b0f", "score": "0.57949907", "text": "public function testFileContainerDownload()\n {\n\n }", "title": "" }, { "docid": "924167e8e4d5a98c3790c84ddd22881a", "score": "0.5792263", "text": "public function testINMainQueryINMainGet()\n {\n }", "title": "" }, { "docid": "2ed17b3ba2ba944009ad81bbb3a846c6", "score": "0.5791431", "text": "public function testGetNetworkMerakiAuthUsers()\n {\n }", "title": "" }, { "docid": "f2ca60e23507027a663312ec6b378be6", "score": "0.57911", "text": "public function testGetProductSubscription()\n {\n\n }", "title": "" }, { "docid": "26b9bfb4a84184a21f128ad2375e2e0b", "score": "0.5789071", "text": "public function testUsersTemporaryPost()\n {\n }", "title": "" }, { "docid": "3cd0d2caca2344357ad284e0d9ad17e1", "score": "0.57886744", "text": "public function testGetAnalyticsReportingMetadata()\n {\n }", "title": "" }, { "docid": "2666814baaf97e710e09fcaf1e2c011e", "score": "0.5788143", "text": "public function testCustomerBillOrGet()\n {\n\n }", "title": "" }, { "docid": "35cf9dc6d0c36e414b88bae8b6b06e07", "score": "0.5787923", "text": "public function testUserUserIdGet()\n {\n }", "title": "" }, { "docid": "d3d2d588b37e581f37b7afe497d94597", "score": "0.5785905", "text": "public function testRead(){\n\n }", "title": "" }, { "docid": "66f444c17409146107a2781abb3e6f7b", "score": "0.5784298", "text": "public function testGetActivityOccurrenceDetails()\n {\n }", "title": "" }, { "docid": "4abe9d1ae221bcb1fa917038281da5d4", "score": "0.5783953", "text": "public function testAnalysisTemplateGetByPath()\r\n {\r\n\r\n }", "title": "" } ]
c4fee7d512a28a08feb096a893bf1d07
TODO: Your mock expectations here
[ { "docid": "bfae25a5adf557ccd103ca9e83652837", "score": "0.0", "text": "public function testHandle1()\n{\n\n // Traversed conditions\n // if (!$this->confirmToProceed()) == false (line 54)\n // if (!$this->migrator->repositoryExists()) == false (line 63)\n\n $actual = $this->resetCommand->handle();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" } ]
[ { "docid": "be8a64d86f89a0ad8cfe2ccc905b881d", "score": "0.64895535", "text": "public function testRetrieveMetaData()\n {\n }", "title": "" }, { "docid": "2f8ad8ad785640ef0d0650cc6a2ff439", "score": "0.62673724", "text": "public function testRetrieveListMetaData()\n {\n }", "title": "" }, { "docid": "f534dda7147b123da1c3d4ab62be39d4", "score": "0.62350297", "text": "protected function after_setup() {}", "title": "" }, { "docid": "fd8f9a582194db21ce742620d8f30b1f", "score": "0.62271285", "text": "public function testOrganizationResourcesGet()\n {\n }", "title": "" }, { "docid": "3cc96be5412b2dddef8a40f9b2c466a2", "score": "0.6179486", "text": "public function testPostMediaCacheStoreConfigAdv()\n {\n\n }", "title": "" }, { "docid": "cc4e197cbaab39f07afc1d3d88fd4de8", "score": "0.61695755", "text": "public function testWorkflowsIdCreatorGet()\n {\n\n }", "title": "" }, { "docid": "b0fe55b592b7ef8d0a7ad90e7078b19d", "score": "0.6152046", "text": "public function testDesignCommentsChangeStreamGet()\n {\n\n }", "title": "" }, { "docid": "8e22b044fe8371c26917d572319fd587", "score": "0.6128686", "text": "public function testPostMediaCacheConfigAdv()\n {\n\n }", "title": "" }, { "docid": "7e14845c20659a3a4d3481a65190076f", "score": "0.611506", "text": "public function testGetReplenishmentProcessByFilter()\n {\n }", "title": "" }, { "docid": "324c4397394966bde8d08f766e71f55c", "score": "0.61097443", "text": "public function testGetReplenishment()\n {\n }", "title": "" }, { "docid": "5b6d3a0040af687eb38c3c302fbd4a46", "score": "0.60923415", "text": "public function testFlightInspirationSearch()\n {\n }", "title": "" }, { "docid": "759eae088df9af0fa67a616fbb049c23", "score": "0.60883707", "text": "public function testWorkflowsFindOneGet()\n {\n\n }", "title": "" }, { "docid": "dd01e035540effd0d9961828dcac0234", "score": "0.6086399", "text": "public function testInventoryLinksStatsEndpoint()\n {\n }", "title": "" }, { "docid": "b0e3ac6062fc4cc352c29af47b028e4d", "score": "0.60727704", "text": "public function testWorkflowsChangeStreamGet()\n {\n\n }", "title": "" }, { "docid": "59ff99d610119bd71bbac300352b0032", "score": "0.60665727", "text": "public function testPostPackageServiceJson()\n {\n }", "title": "" }, { "docid": "a0d49b015f84e77dc6ef67711c66e479", "score": "0.6058283", "text": "public function testGetMediaCacheConfig()\n {\n\n }", "title": "" }, { "docid": "50d162280769f9a6fc2d32c1fce78146", "score": "0.6057043", "text": "public function testAssetDatabaseGet()\r\n {\r\n\r\n }", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.60525125", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.60525125", "text": "protected function setUp() {}", "title": "" }, { "docid": "3a505bca1f51c64a8e801b898c3c4c57", "score": "0.60509634", "text": "public function testOrganizationIdResourceGet()\n {\n }", "title": "" }, { "docid": "7f3a2f8b7496287917071099bb072e5b", "score": "0.6027542", "text": "public function testPostMediaCacheStoreConfig()\n {\n\n }", "title": "" }, { "docid": "90ee5a2504e23a6101e80863e44aa73c", "score": "0.60231966", "text": "public function testInventoryLinksStatsEndpointstate()\n {\n }", "title": "" }, { "docid": "8edb5b603a269a43e94e284bee8f2a79", "score": "0.6022236", "text": "public function testPostMediaCacheStoresConfig3()\n {\n\n }", "title": "" }, { "docid": "794041912b2bc564d878b26d462c1557", "score": "0.6020426", "text": "public function testSourcesGet()\n {\n }", "title": "" }, { "docid": "9e01df86b929d256c22b10d4a7e96f92", "score": "0.60101724", "text": "public function testGetThirdPartyParcelAccountById()\n {\n }", "title": "" }, { "docid": "06f848090a63c9d0bc388e5dd194ff0d", "score": "0.6006538", "text": "public function testPutMediaCacheConfig()\n {\n\n }", "title": "" }, { "docid": "56073264a094e708cdc42f5a1b7d4841", "score": "0.6004615", "text": "public function testPostMediaCacheStoresConfig()\n {\n\n }", "title": "" }, { "docid": "6c6ac8416e8b34b762fd88a5dcc89c23", "score": "0.5996479", "text": "public function testGetReplenishmentProcessTags()\n {\n }", "title": "" }, { "docid": "1e0eea54f9feaaa3b65bae8e60a1a3c4", "score": "0.59930277", "text": "public function testInventoryEndpoint()\n {\n }", "title": "" }, { "docid": "3136d8c3b4673f91e3e846f9d19b84dc", "score": "0.59929687", "text": "public function testWorkflowsIdExistsGet()\n {\n\n }", "title": "" }, { "docid": "bf6e54fdb18c5f5990257edd448c9ccc", "score": "0.59888315", "text": "public function testWorkflowsGet()\n {\n\n }", "title": "" }, { "docid": "e5498b9fe970aed48cf19f4b01da3f3b", "score": "0.59815717", "text": "public function testGetShopAccountRequest()\n {\n }", "title": "" }, { "docid": "6e976a721d386ff5c56730bc880636a8", "score": "0.5980592", "text": "public function testDesignCommentsIdDesignGet()\n {\n\n }", "title": "" }, { "docid": "49191f65c4d34a14cb8f052b7f9dee4a", "score": "0.5979755", "text": "public function testSourcesSourceIDHealthGet()\n {\n }", "title": "" }, { "docid": "9dc0c4eb249aefb8e550e55cec6784f5", "score": "0.5978217", "text": "public function testTravelRecordRetrieve()\n {\n }", "title": "" }, { "docid": "c3ee176cde19c4e2faafa874906ba0d2", "score": "0.59764504", "text": "public function testGetMediaCacheConfig3()\n {\n\n }", "title": "" }, { "docid": "cad3f7a272c989fbb595f7dcc71d8788", "score": "0.597293", "text": "public function testGetMediaCacheConfigAdv()\n {\n\n }", "title": "" }, { "docid": "d42963a6a1211c398210a7c0f28a7e63", "score": "0.5972313", "text": "public function testGetTicketByTicketFollowUp()\n {\n }", "title": "" }, { "docid": "22d8c95f8d04fc6d63d0ff2cd76fb51b", "score": "0.5969698", "text": "protected function before_setup() {}", "title": "" }, { "docid": "f79dbbb7f32b4296866cceebee333d4b", "score": "0.5967202", "text": "public function testWorkflowsIdTemplatesGet()\n {\n\n }", "title": "" }, { "docid": "90d8e39f79991342bde45a46ee8540ee", "score": "0.5961155", "text": "public function testGetDuplicateOrderSourceItemSetupById()\n {\n }", "title": "" }, { "docid": "1efa594d6a3a00664c77b882e4e69539", "score": "0.59598696", "text": "public function testDesignCommentsIdReplyOfGet()\n {\n\n }", "title": "" }, { "docid": "1be9c72bb8bdadbc9d701abef1e308d3", "score": "0.59582007", "text": "public function testGetThirdPartyParcelAccountFiles()\n {\n }", "title": "" }, { "docid": "0f7a4146ebc6944d1ce365b70258bdb8", "score": "0.59560823", "text": "public function testGetMediaCacheSourceConfig()\n {\n\n }", "title": "" }, { "docid": "308f4d3db64c37b120b7c0ae83d92844", "score": "0.59549445", "text": "public function testPostMediaCacheStoreConfig3()\n {\n\n }", "title": "" }, { "docid": "f0896f5f65b139b34b82ec75f1eb764d", "score": "0.5950048", "text": "public function testPostMediaCacheSourceConfigAdv()\n {\n\n }", "title": "" }, { "docid": "b908c630654456a2e565566982fe67a6", "score": "0.5946562", "text": "public function testPostPackageService()\n {\n }", "title": "" }, { "docid": "915b03d2fce270ff86b322761498a804", "score": "0.59459543", "text": "public function testGetMediaCacheStoreConfigAdv()\n {\n\n }", "title": "" }, { "docid": "49746f6dbac6d26587ceef921704f181", "score": "0.5944183", "text": "public function testGetReplenishmentProcessFiles()\n {\n }", "title": "" }, { "docid": "3a238511b639ec444bc3ca1c4158e165", "score": "0.5942143", "text": "public function testGetRawInvestigations()\n {\n }", "title": "" }, { "docid": "31a5dc4ffafbb3d3038982efad9fe801", "score": "0.59421074", "text": "public function testPostMediaCacheSourceConfig()\n {\n\n }", "title": "" }, { "docid": "494a30951213e1bd8a1cc801db38434a", "score": "0.5941775", "text": "public function testGetMediaCacheStoresConfig()\n {\n\n }", "title": "" }, { "docid": "b470109cf0f47715795c7e4836858ba4", "score": "0.594155", "text": "public function testShopAccountRequestsIndex()\n {\n }", "title": "" }, { "docid": "a547d80377b2b02f613c85615503e715", "score": "0.5940429", "text": "public function testAssetDatabaseGetElements()\r\n {\r\n\r\n }", "title": "" }, { "docid": "ddc5c63e69ec4e1747140c713f63d721", "score": "0.5940184", "text": "public function testWorkflowsCountGet()\n {\n\n }", "title": "" }, { "docid": "e05d88c0d2d56d8eae3866212efd041d", "score": "0.593782", "text": "public function testGetCachedBuildPromotions()\n {\n }", "title": "" }, { "docid": "5996a1e37e43fe1431d251f1a59fba3b", "score": "0.593583", "text": "public function testOrganizationIdGet()\n {\n }", "title": "" }, { "docid": "91dfd8b55f67c21934892fde6bc47de3", "score": "0.5933449", "text": "public function testGetCachedBuildsStat()\n {\n }", "title": "" }, { "docid": "db938731966c1a6296febae7ad3ca656", "score": "0.5926608", "text": "public function testGetMediaCacheStoreConfig()\n {\n\n }", "title": "" }, { "docid": "5119f5f7341e65b02918e33fda606fdf", "score": "0.5925009", "text": "public function testGetRequestDetails()\n {\n }", "title": "" }, { "docid": "f37e67a950dad8a5de03dee202ab6185", "score": "0.59248936", "text": "public function testGetDuplicateThirdPartyParcelAccountById()\n {\n }", "title": "" }, { "docid": "37ca668454b344165852aa68d4eea59b", "score": "0.59211606", "text": "public function testOrganizationTagsGet()\n {\n }", "title": "" }, { "docid": "62f7c08cede257745276f2401662f415", "score": "0.5920459", "text": "public function testGetMailTemplateSalesChannelList()\n {\n }", "title": "" }, { "docid": "8abadce9985e1e31ce1f32bd3c6b6b38", "score": "0.59071624", "text": "public function testOrganizationIdAlfrescoSyncGet()\n {\n }", "title": "" }, { "docid": "8847cd5e7f014b29ccd38604d2cbd1ce", "score": "0.5900382", "text": "public function testGetMediaCacheStoresConfig3()\n {\n\n }", "title": "" }, { "docid": "215afff708c52cfd7cb716496bd189c6", "score": "0.58993447", "text": "public function testOrganizationIdPublicGet()\n {\n }", "title": "" }, { "docid": "5f55b15d4128e0236030dc26c78e9d43", "score": "0.58985245", "text": "public function testPostRequestDetails()\n {\n }", "title": "" }, { "docid": "f17ee0a0ca5631af4df654709d8544fa", "score": "0.5898454", "text": "public function testGetContactJobs()\n {\n }", "title": "" }, { "docid": "3dad0c96e54419c8af5cbf7c40f01821", "score": "0.5896939", "text": "public function testGetOrderSourceItemSetupById()\n {\n }", "title": "" }, { "docid": "e64f916298ac02b5f6c2a87831f7594a", "score": "0.5895789", "text": "public function testGetReplenishmentProcessById()\n {\n }", "title": "" }, { "docid": "2183b18a7cbc5f820c061d305c06a312", "score": "0.5891369", "text": "public function testAdminMessageFind()\n {\n\n }", "title": "" }, { "docid": "94de5308cfff3e7d454271bde91fc3a3", "score": "0.5887603", "text": "public function test_addItemSummaryCodeAudit() {\n\n }", "title": "" }, { "docid": "088eeec96690e39bb463659c86965774", "score": "0.58853555", "text": "public function testGetDuplicateReplenishmentProcessById()\n {\n }", "title": "" }, { "docid": "e2743164c77cda0ac360a468cd64501d", "score": "0.58816874", "text": "public function testSourcesSourceIDGet()\n {\n }", "title": "" }, { "docid": "0868ad1acba628f287cdf606453d3353", "score": "0.5873069", "text": "public function testPutMediaCacheConfig3()\n {\n\n }", "title": "" }, { "docid": "8bb3a87530079142eb295c7897b51b3f", "score": "0.58729684", "text": "public function testGetTicketByTicketFollowUpById()\n {\n }", "title": "" }, { "docid": "dcfe16f5e17a920abe5c3dd47ff822e5", "score": "0.58722323", "text": "public function testGetApplicationApiHealth()\n {\n }", "title": "" }, { "docid": "07dadc74afa25b6847a99f0d0304bd4e", "score": "0.58719116", "text": "public function testPostMediaCacheSourceConfigAdv3()\n {\n\n }", "title": "" }, { "docid": "e47500041557e357fd78de67366017d6", "score": "0.58689237", "text": "public function testDesignCommentsCountGet()\n {\n\n }", "title": "" }, { "docid": "09dbe96464fd6a693ebd6630f64a174a", "score": "0.58682823", "text": "protected function setup() {}", "title": "" }, { "docid": "09dbe96464fd6a693ebd6630f64a174a", "score": "0.58682823", "text": "protected function setup() {}", "title": "" }, { "docid": "09dbe96464fd6a693ebd6630f64a174a", "score": "0.58682823", "text": "protected function setup() {}", "title": "" }, { "docid": "3d9e69ef740c4b42af9a7c3140d4d4f1", "score": "0.58668786", "text": "public function testDesignCommentsGet()\n {\n\n }", "title": "" }, { "docid": "4515a269feba0c100db33c686f08a619", "score": "0.58658695", "text": "public function testTopFlightSearches()\n {\n }", "title": "" }, { "docid": "7ea3eca06ec4937b5f4d55b1865bb868", "score": "0.5864683", "text": "public function testDesignCommentsIdRepliesCountGet()\n {\n\n }", "title": "" }, { "docid": "c61bd55f8bb13a32890eee28f461637e", "score": "0.5863588", "text": "public function testGetReplenishments()\n {\n }", "title": "" }, { "docid": "83c86467ae77dcc77ff76bf86e81f219", "score": "0.5859426", "text": "public function testGetTicketWorkflowById()\n {\n }", "title": "" }, { "docid": "62ccf18c8c18529d641cb8ef1d8525ea", "score": "0.5857607", "text": "public function testGetMediaCacheSourceConfig3()\n {\n\n }", "title": "" }, { "docid": "75f826b43a6f3518f2b6189a5bc4e365", "score": "0.58562946", "text": "public function testGetActivityStatus()\n {\n\n }", "title": "" }, { "docid": "c74ac6c91a5b750fe602925840dc597e", "score": "0.58522636", "text": "public function testGetContactFunctionalExpertises()\n {\n }", "title": "" }, { "docid": "563a2265d16fc5252a2667c800f20e0b", "score": "0.5851422", "text": "public function testPutMediaCacheSourceConfig()\n {\n\n }", "title": "" }, { "docid": "b6865a73c11d7957ef3fc85aaef78bb0", "score": "0.58507836", "text": "public function testGetMediaCacheStoreConfig3()\n {\n\n }", "title": "" }, { "docid": "463568907a4bc596d071f82114c106fa", "score": "0.5850707", "text": "public function testPutMediaCacheConfigAdv()\n {\n\n }", "title": "" }, { "docid": "0d0662ef4a845d875513d0e37b84b44e", "score": "0.5847262", "text": "public function testGetInventoryFeedImportFile()\n {\n }", "title": "" }, { "docid": "ece7c980f57c963e83deab8eee66ed9e", "score": "0.5840029", "text": "public function testPutMediaCacheStoreConfig()\n {\n\n }", "title": "" }, { "docid": "01eeaaae6e768462d56c0456ecc62dd1", "score": "0.58384734", "text": "public function testPostMediaCacheSourcesConfig()\n {\n\n }", "title": "" }, { "docid": "a56fff5ae737fadd230b3c0a17f1bcfe", "score": "0.5837306", "text": "public function testGetThirdPartyParcelAccountTags()\n {\n }", "title": "" }, { "docid": "4455563a050b066c6a801add085c1610", "score": "0.5834678", "text": "public function testGetMediaCacheSourceConfigAdv()\n {\n\n }", "title": "" }, { "docid": "d630dd4b7517b244f3bebd6070d97a3f", "score": "0.5834401", "text": "public function testDesignCommentsFindOneGet()\n {\n\n }", "title": "" }, { "docid": "9ab7ed2ea08046ca8300b8d0ca03dfb8", "score": "0.5832334", "text": "public function testSubmitRequest()\n {\n }", "title": "" }, { "docid": "dd5a17804f73354674c4d56460c71e5d", "score": "0.58307666", "text": "public function test_addThirdPartyParcelAccountAudit() {\n\n }", "title": "" } ]
17497ed4b75bcacb696bbf5bcc1b78ad
Get time of last DB update
[ { "docid": "dc35ed0518349996ccd65ad89a9412d4", "score": "0.76915926", "text": "public function getLastUpdateTime()\n {\n $time = Mage::getStoreConfig(self::XML_GEOIP_UPDATE_DB);\n if (!$time) {\n return false;\n }\n\n return date('F d, Y / h:i', $time);\n }", "title": "" } ]
[ { "docid": "469d762b0fc21027dd7b51013b3046a5", "score": "0.80962026", "text": "public function getLastUpdatedTime() {\n // Fail due to double delete\n assert(!$this->hasBeenDeleted);\n \n // Fail due to unset 'last-updated-time' field\n assert(isset($this->parentDbFieldTable[self::LAST_UPDATED_TIME_KEY]));\n \n return $this->parentDbFieldTable[self::LAST_UPDATED_TIME_KEY]->getValue();\n }", "title": "" }, { "docid": "b5733238957483c2efccadc1cfeeaeda", "score": "0.78958803", "text": "public function getLastUpdateTime()\n {\n return $this->last_update_time;\n }", "title": "" }, { "docid": "0113505d7ca576c3b6f94c6a3391c0c9", "score": "0.7798422", "text": "public function getUpdatetime()\n {\n return $this->updateTime;\n }", "title": "" }, { "docid": "664e97f041009754a9c3a5c0e3715dc3", "score": "0.7785123", "text": "public function getUpdate_time()\r\n {\r\n return $this->update_time;\r\n }", "title": "" }, { "docid": "a2df61588830592cd9f0b27e23afcb9f", "score": "0.7741442", "text": "public function getLastUpdated();", "title": "" }, { "docid": "a9471fca62a8ca24f6e5b87d7f0a2632", "score": "0.77272815", "text": "public function getLastUpdateTime()\n\t{\n\t\treturn empty($this->lastUpdateTime) ? time() : $this->lastUpdateTime;\n\t}", "title": "" }, { "docid": "2f457a256b9bd72bb9985e3a08b33f9b", "score": "0.76661235", "text": "function lastUpdate() {\n\t\tif ( !$this->postID && !$this->exists() )\n\t\t\treturn 999;\n\t\t\t\n\t\t$sql = \"SELECT last_update FROM $this->cacheTable WHERE post_id = \" . $this->db->escape( $this->postID ) . \"\";\n\t\t\n\t\t$results = $this->db->get_results( $sql );\n\t\t\n\t\tif ( !$results[0] )\n\t\t\treturn 999;\t\n\t\t\n\t\t$updateTime = strtotime( $results[0]->last_update );\n\t\t$current = strtotime( date( \"Y-m-d H:i:s\" ) );\t\t\n\t\t$lastUpdate = ( $current - $updateTime ) / 3600;\t\t\n\t\t\n\t\treturn $lastUpdate;\t\t\n\t\n\t}", "title": "" }, { "docid": "1da94758265ba000c8195c923dcdced8", "score": "0.7659065", "text": "public function getLastUpdate() {\n\t\treturn $this->lastUpdate;\n\t}", "title": "" }, { "docid": "75788ba596c8465278405cfa3edee1f5", "score": "0.76289976", "text": "public function getLastUpdate()\n {\n return $this->lastUpdate;\n }", "title": "" }, { "docid": "75788ba596c8465278405cfa3edee1f5", "score": "0.76289976", "text": "public function getLastUpdate()\n {\n return $this->lastUpdate;\n }", "title": "" }, { "docid": "5895bde157d142685b83a1bc2e1728af", "score": "0.76184493", "text": "function lastupdatetime($table){\n if (first(\"SHOW TABLE STATUS FROM \" . $GLOBALS[\"database\"] . \" LIKE '\" . $table . \"';\", true , \"API.lastupdatetime\")[\"Engine\"] == \"InnoDB\") {\n $filename = first('SHOW VARIABLES WHERE Variable_name = \"datadir\"', true , \"API.lastupdatetime\")[\"Value\"] . $GLOBALS[\"database\"] . '/' . $table . '.ibd';\n return filemtime($filename);//UNIX datestamp\n }\n return first(\"SELECT UPDATE_TIME FROM information_schema.tables WHERE TABLE_SCHEMA = '\" . $GLOBALS[\"database\"] . \"' AND TABLE_NAME = '\" . $table . \"'\", true , \"API.lastupdatetime\")[\"UPDATE_TIME\"];//unknown format\n}", "title": "" }, { "docid": "a2157ab8436ddd30acb39f88b633c61f", "score": "0.7562225", "text": "public function lastUpdated()\n {\n // TODO: Implement lastUpdated() method.\n return self::$user['updated_at'];\n\n }", "title": "" }, { "docid": "ed87e0883f098978720cd4396e4d1540", "score": "0.74974734", "text": "public function getUpdatedTime() {\r\n return $this->updated_time;\r\n }", "title": "" }, { "docid": "914b667325a5f641f36f9a7732d0dfd8", "score": "0.74780023", "text": "public function getLastUpdateDatetime()\n {\n return $this->getValue('nb_icontact_prospect_last_update_datetime');\n }", "title": "" }, { "docid": "f9ff4919bf45146e1dc4e1107c6e68c7", "score": "0.7469688", "text": "public function getUpdatedTime()\n {\n return $this->getAttribute('updatedTime');\n }", "title": "" }, { "docid": "7274d1ba60436168b0ee84b2f9324a07", "score": "0.7449123", "text": "protected static function queryLastSyncTimeOnDb()\n {\n $sync_last_time = DB::table(\"sync_last_time\")->value('timestamp');\n\n return ($sync_last_time);\n }", "title": "" }, { "docid": "a5541fc7842f4beb1c986de5a53870d1", "score": "0.7432243", "text": "public function LastUpdated()\n\t{\n\t\treturn $this->LastUpdated;\n\t}", "title": "" }, { "docid": "14b37146307bdd86bceeffa504a2f30d", "score": "0.7423798", "text": "public function getLastUpdate(): \\DateTime\n {\n return $this->lastUpdate;\n }", "title": "" }, { "docid": "4d217d0459515a222524602fb0a658ab", "score": "0.7416696", "text": "function getUpdateTime(){\n\t\t$max = 0;\n\t\t$tables =& $this->tables();\n\t\tforeach ( array_keys($tables()) as $tablename ){\n\t\t\t$max = max($max, strtotime($tables[$tablename]->getUpdateTime()) );\n\t\t}\n\t\treturn date('Y-m-d H:i:s', $max);\n\t}", "title": "" }, { "docid": "936ed96b1524f6802f37e7f3d91590b3", "score": "0.7412517", "text": "public function getUpdateTime()\r\n {\r\n return $this->update_time;\r\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "4fbe63f413c682c82db8afc8579c3692", "score": "0.7410511", "text": "public function getUpdateTime()\n {\n return $this->update_time;\n }", "title": "" }, { "docid": "2a1d7b37197996f10ec0c1616d8fee05", "score": "0.7393906", "text": "public function getUpdateTime()\n\t{\n\t\t$column = self::COL_UPDATE_TIME;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (string)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "title": "" }, { "docid": "2a1d7b37197996f10ec0c1616d8fee05", "score": "0.7393906", "text": "public function getUpdateTime()\n\t{\n\t\t$column = self::COL_UPDATE_TIME;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (string)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "title": "" }, { "docid": "9ff4e5a57d09a334e384481b8d195fcd", "score": "0.7383063", "text": "public function lastUpdateStr() {\n $statement = $this->db->prepare('SELECT \"created\" FROM \"temperature\" ORDER BY \"created\" DESC LIMIT 1');\n $result = $statement->execute();\n \n return $result->fetchArray(SQLITE3_ASSOC)['created']; \n }", "title": "" }, { "docid": "7dc86e16db7cd0c85386014fd909a484", "score": "0.73822516", "text": "public function lastUpdated()\n {\n $lastAction = $this->actions->sortBy('updated_at')->last();\n\n if ($lastAction && $lastAction->updated_at->gt($this->updated_at))\n return $lastAction->updated_at;\n else\n return $this->updated_at;\n }", "title": "" }, { "docid": "c2fea1453dc22c3484b64d4b2e7945f6", "score": "0.7381807", "text": "public function getUpdateTimestamp()\n {\n return $this->updateTimestamp;\n }", "title": "" }, { "docid": "7b62a8937c7e9498c8778a0272fb5d12", "score": "0.73705196", "text": "public function getUpdateTime() {\n return $this->update_time;\n }", "title": "" }, { "docid": "e89bc3ea24de7a04f7912ac035d5ba75", "score": "0.73631", "text": "public function getLastAutoRefreshTime()\n {\n return $this->get(self::_LAST_AUTO_REFRESH_TIME);\n }", "title": "" }, { "docid": "c757b8ffd666bf37fe8935273faa50a8", "score": "0.7320463", "text": "public function getLastUpdated(): int;", "title": "" }, { "docid": "9981e9345f00fe31f1d11dfb59b34553", "score": "0.7311258", "text": "public function getLastUpdatedOn()\n {\n return $this->_fields['LastUpdatedOn']['FieldValue'];\n }", "title": "" }, { "docid": "9771405543a1447b73c6340e05170964", "score": "0.73015475", "text": "public function getDateUpdate()\n {\n return $this->date_update;\n }", "title": "" }, { "docid": "9771405543a1447b73c6340e05170964", "score": "0.73015475", "text": "public function getDateUpdate()\n {\n return $this->date_update;\n }", "title": "" }, { "docid": "e453d1ca22e274d855711e2deffcd03f", "score": "0.7299569", "text": "public function getUpdateTime()\n {\n return isset($this->update_time) ? $this->update_time : null;\n }", "title": "" }, { "docid": "86d38973db24b20801e54b276d252476", "score": "0.7287734", "text": "public function getLastUpdated()\n {\n $packages = Package::get()->limit(1);\n if (!$packages->count()) {\n return '';\n }\n /** @var DBDatetime $datetime */\n $datetime = $packages->first()->dbObject('LastEdited');\n return $datetime->Date() . ' ' . $datetime->Time12();\n }", "title": "" }, { "docid": "32994dd42820b131b3fe40946009fe64", "score": "0.72776186", "text": "public function getLastUpdate($db=false);", "title": "" }, { "docid": "ab087c90b8c396330bbe9df9b8516398", "score": "0.7264012", "text": "public function getLastUpdateDatetime()\n {\n return $this->getValue('nb_domain_zone_last_update_datetime');\n }", "title": "" }, { "docid": "bd200c9c23715e5545e2aa82e875f0a7", "score": "0.72505546", "text": "public function getUpdateTs()\n {\n return $this->update_ts;\n }", "title": "" }, { "docid": "93253772e6ce08bdfe64b13723ed83e9", "score": "0.7243077", "text": "public function getLastUpdated() {\n return $this->lastUpdated;\n }", "title": "" }, { "docid": "cd18a2fcbbbfd16463d44b6f9e13c318", "score": "0.720698", "text": "public function getDateUpdate()\n {\n return $this->dateUpdate;\n }", "title": "" }, { "docid": "481ad6ac0127c406c39bde3bdc7db16e", "score": "0.71993655", "text": "public function getTimestampUpdated()\n {\n return $this->_getData(self::TIMESTAMP_UPDATED);\n }", "title": "" }, { "docid": "596adc6b24d702c6becf2d35ce6ce7d9", "score": "0.7180659", "text": "public function getLastUpdate()\n {\n return $this->cache->load(\n self::CACHE_TAG\n );\n }", "title": "" }, { "docid": "0e45b82757d31c4f176ead38990047d9", "score": "0.71741533", "text": "public function getLastUpdatedAt()\n {\n return $this->last_updated_at;\n }", "title": "" }, { "docid": "4809b00db0940c27f2d567d5dc8d2100", "score": "0.7158269", "text": "public function cached_timestamp()\n\t{\n\t\t$query = $this->_EE->db->get_where('dd_settings', array('key' => 'last_saved'));\n\t\treturn ($query->num_rows() > 0) ? $query->row()->value : 0 ;\n\t}", "title": "" }, { "docid": "d81b5740eed739c9fa45cc381772b08f", "score": "0.7141849", "text": "public function getUpdatedAt()\n {\n return $this->sys->getUpdatedAt();\n }", "title": "" }, { "docid": "5776e78d68f5d6ddf91c670c29731b06", "score": "0.7135356", "text": "function getLastModified()\n {\n $this->loadStats();\n return $this->stat['mtime'];\n }", "title": "" }, { "docid": "26890992e97456fcc3054c8ec7c6b0d8", "score": "0.71248966", "text": "public function getLastGetTime()\n {\n return $this->get(self::_LAST_GET_TIME);\n }", "title": "" }, { "docid": "804bb09f85a8d5cb353f3731b8bd00b3", "score": "0.7120812", "text": "public function getLastCheckTime()\n {\n return $this->cacheManager->load(self::LAST_CHECK_TIME_ID);\n }", "title": "" }, { "docid": "9539008916abde3462117d071268f322", "score": "0.70992327", "text": "public function lastUpdated(): string\n {\n return $this->weather['last_updated'];\n }", "title": "" }, { "docid": "f6a037787a5a08154bf698b636423ab1", "score": "0.7079383", "text": "public function getLastQueryTime()\n\t{\n\t\treturn strftime($this->last_query_time);\n\t}", "title": "" }, { "docid": "7b67a920dd6c2f96cd617b27f7b8b36d", "score": "0.70744926", "text": "public function getLastStatusUpdate() {\n\t\treturn self::$_lastStatusUpdate;\n\t}", "title": "" }, { "docid": "0c5745f6a61b1143a43d0fe017479ac6", "score": "0.70591724", "text": "public function last_modified() {\n\t\treturn $this->timestamp;\n\t}", "title": "" }, { "docid": "ae08e809e776c0a5d98b342ef3447cdc", "score": "0.70572287", "text": "public function getVersionUpdateTime()\n {\n return $this->version_update_time;\n }", "title": "" }, { "docid": "f8c261c43f3b74dec8f233449f09c3b7", "score": "0.7056253", "text": "public function getUpdateAt()\n {\n return $this->update_at;\n }", "title": "" }, { "docid": "f8c261c43f3b74dec8f233449f09c3b7", "score": "0.7056253", "text": "public function getUpdateAt()\n {\n return $this->update_at;\n }", "title": "" }, { "docid": "e14b8c21ac9328fe446cc25cb360d4f4", "score": "0.70511514", "text": "public function getDateUpdated()\n {\n return $this->date_updated;\n }", "title": "" }, { "docid": "e14b8c21ac9328fe446cc25cb360d4f4", "score": "0.70511514", "text": "public function getDateUpdated()\n {\n return $this->date_updated;\n }", "title": "" }, { "docid": "61223c079b921d13596308439baedb03", "score": "0.70413405", "text": "public function getLatestTimestamp()\n {\n return DB::table('product_models')->orderBy('updated', 'desc')->value('updated');\n }", "title": "" }, { "docid": "0f98baa8fec94e33e3363b5567d28180", "score": "0.7018326", "text": "public function getLastStatusUpdateTime()\n {\n return $this->lastStatusUpdateTime;\n }", "title": "" }, { "docid": "5c4dc2ae9748340e602466f6e89e8a23", "score": "0.7015699", "text": "public function lastUpdatedDateTime(): string\n {\n return $this->pluck('lastUpdatedDateTime');\n }", "title": "" }, { "docid": "c61c9c56ecee6e3ede0fb51f7c17534b", "score": "0.70140976", "text": "public function getDateLastUpdated()\n {\n if (isset($this->data['LastUpdatedDate'])) {\n return $this->data['LastUpdatedDate'];\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "df20c195828a2895f68813d6165f7547", "score": "0.69629645", "text": "public function fetchDBTime()\n {\n $sql = \"select now()\";\n $datetime = Yii::app()->db->createCommand($sql)->queryScalar();\n return $datetime;\n }", "title": "" }, { "docid": "30c79d22ab2cf52631711e202ef3e3d2", "score": "0.6958539", "text": "public static function last_update()\n {\n $gallery_date = Gallery::orderBy('updated_at', 'desc')->value('updated_at');\n $gallery_last_date = (!empty($gallery_date)) ? date(strtotime($gallery_date . '+1 hours')) : '';\n $posts_date = Posts::orderBy('updated_at', 'desc')->value('updated_at');\n $posts_last_date = (!empty($posts_date)) ? date(strtotime($posts_date . '+1 hours')) : '';\n $newsletter_date = Newsletter::orderBy('updated_at', 'desc')->value('updated_at');\n $newsletter_last_date = (!empty($newsletter_date)) ? date(strtotime($newsletter_date . '+1 hours')) : '';\n $properties_date =\n DB::table('apimo_properties')\n ->select('updated_at')\n ->where(function($query) {\n $query->orWhere('reference', 'like', 'HSTP%')\n ->orWhere('reference', 'like', 'HD%');\n })\n ->orderBy('updated_at', 'desc')\n ->value('updated_at');\n $properties_last_date = (!empty($properties_date)) ? date(strtotime($properties_date . '+1 hours')) : '';\n\n $dates = [$posts_last_date, $gallery_last_date, $properties_last_date, $newsletter_last_date];\n\n $last_update = max($dates);\n\n return date('d.m.Y - H:i', (!empty($last_update)) ? $last_update : 0);\n }", "title": "" }, { "docid": "0f0e40461ac09eba3361a1105d4ebaa0", "score": "0.6956681", "text": "public function getLastManualRefreshTime()\n {\n return $this->get(self::_LAST_MANUAL_REFRESH_TIME);\n }", "title": "" }, { "docid": "66307c6f9c733f08d6a7b11404338db3", "score": "0.6954213", "text": "public function getLastCheckedtime()\n {\n\t\treturn $this->_getSess('checktime');\n }", "title": "" }, { "docid": "f408ce98b9cf0102c23638f26e5750b4", "score": "0.69507885", "text": "public function getDateUpdated() {\n return $this->dateUpdated;\n }", "title": "" }, { "docid": "f3f3584faba52455ea13b162754b4899", "score": "0.694977", "text": "public function updateLastUpdateDateTime() {\n\t\t// open file\n\t\t$lastUpdateStorageFile = fopen($this::LAST_UPDATE_STORAGE_FILE, $this::FILE_READ_WRITE_MODE);\n\t\t\n\t\t// Last update dateTime\n\t\t$date = new \\Datetime();\n\t\n\t\t// write the last update datetime\n\t\t$lastUpdateDateTime = fputs($lastUpdateStorageFile, $date->format('Y-m-d H:i:s'));\n\t\n\t\t// Close the file\n\t\tfclose($lastUpdateStorageFile);\n\t\n\t\treturn $lastUpdateDateTime;\n\t}", "title": "" }, { "docid": "dff8abcde65cad169506152b59ad2cc8", "score": "0.691769", "text": "public function getUpdatedAt(){\n return $this->_getData(self::UPDATED_AT);\n }", "title": "" }, { "docid": "5ccfe754857bb2b517dba984d0f994d7", "score": "0.69148076", "text": "public function getLatestUpdateDate()\n {\n return $this->channel->getLatestUpdateDate();\n }", "title": "" }, { "docid": "9161f6d75ec3720b6044290874da3f07", "score": "0.6903789", "text": "public function getLastUpdateDateTime() {\n\t\t// open file\n\t\t$lastUpdateStorageFile = fopen($this::LAST_UPDATE_STORAGE_FILE, $this::FILE_READ_ONLY_MODE);\n\t\n\t\t// read the first and unique line\n\t\t$lastUpdateDateTime = fgets($lastUpdateStorageFile);\n\t\n\t\t// Close the file\n\t\tfclose($lastUpdateStorageFile);\n\t\n\t\treturn $lastUpdateDateTime;\n\t}", "title": "" }, { "docid": "e1f680e7dc0e6d9abaa471e0ee0f54a0", "score": "0.688377", "text": "public function copiesUpdatedAt()\n {\n return Copy::lastUpdate()->toDateTimeString();\n }", "title": "" }, { "docid": "b55aa2f098a684f7492c361921d9d0a0", "score": "0.68622255", "text": "public function getLastModified()\n {\n return ($this->item['mtime'] ? $this->item['mtime'] : ($this->item['ctime'] ? $this->item['ctime'] : time()));\n }", "title": "" }, { "docid": "3b5f69ebef43ba69384180af34d900a5", "score": "0.68613666", "text": "public function _getUpdatedOn() {\n\t\treturn $this->_updatedOn;\n\t}", "title": "" }, { "docid": "eaffa5e95da812e822f2732798dfe4ae", "score": "0.685694", "text": "function getLastchange() {\n\t\treturn $this->get(\"lastchange\");\n\t}", "title": "" }, { "docid": "a11fc62d5e769957845dfe7239399afe", "score": "0.6832968", "text": "public function getUpdatedDate()\n {\n return $this->updated;\n }", "title": "" }, { "docid": "c9a5504c76b6dd61f777fb34bc486f70", "score": "0.6809946", "text": "public function getLastUpdate()\n {\n return Mage::app()->loadCache('admin_notifications_lastcheck');\n// return Mage::getStoreConfig(self::XML_LAST_UPDATE_PATH);\n }", "title": "" }, { "docid": "49345d0925e60d9c4295e16a4667da41", "score": "0.6786298", "text": "abstract public function getLastSyncTimestamp();", "title": "" }, { "docid": "372afe4395db2f4618baf17122d44c70", "score": "0.67793906", "text": "public function timestamp() {\n return strtotime($this->updated_at);\n }", "title": "" }, { "docid": "4f485f3ee6d9aebd3d95933613452662", "score": "0.67766356", "text": "public function getLastDeploymentChangeTime()\n {\n return $this->last_deployment_change_time;\n }", "title": "" }, { "docid": "ab2c0d4c98a0f502e5ab59daed12aba4", "score": "0.67692006", "text": "public function getLastSyncTime() {\n $rec = $this->allEmail->select('date_time')->orderBy('date_time', 'desc')->first();\n if (!empty($rec)) {\n return $rec->date_time;\n } else {\n return false;\n }\n }", "title": "" } ]
63ca5660de5934722d6e8c69b2ea7de3
Get or Search the countries
[ { "docid": "de9f34c5e53b711728a92449675b0cc5", "score": "0.0", "text": "public function getCountries($searchKey)\n {\n $entity = $this->model->orderBy('name', 'ASC');\n if (!empty($searchKey)) {\n $result = $this->getSearchedRecords($searchKey, $entity, $this->searchableColumns);\n } else {\n $result = $entity->get();\n }\n\n return $result;\n }", "title": "" } ]
[ { "docid": "35fd994e3f80a0383fe3c5594743abd1", "score": "0.8246422", "text": "public function getCountries();", "title": "" }, { "docid": "1d1ecd15ee51c4e3a22cabac98154501", "score": "0.7987742", "text": "public function getCountriesInfo();", "title": "" }, { "docid": "6aeac82b078fd887889ffc9f15700e2b", "score": "0.764708", "text": "function getAllCountries() {\n $myModel = new My_Model();\n $result = $myModel->select('countries', \"*\", null);\n if (count($result) > 1) {\n return $result = [\n \"message\" => \"countries list\",\n \"data\" => $result\n ];\n } else {\n return $resp = [\n \"message\" => \"no country available\",\n \"data\" => \"null\"\n ];\n }\n }", "title": "" }, { "docid": "3346e961c3f227947ef669ecee04601e", "score": "0.7608274", "text": "function GetCountries()\n\t{\n\t\t$result = $this->sendRequest(\"GetCountries\", array());\t\n\t\treturn $this->getResultFromResponse($result);\n\t}", "title": "" }, { "docid": "af8a0881b4efe14779735618fd5c15e4", "score": "0.76054406", "text": "public function getCountry();", "title": "" }, { "docid": "af8a0881b4efe14779735618fd5c15e4", "score": "0.76054406", "text": "public function getCountry();", "title": "" }, { "docid": "df9406f6adf72123bbb04c0394a87fa9", "score": "0.7591563", "text": "static function get_countries() {\n static $ret = array();\n if(empty($ret)) {\n global $wpdb;\n $ret = $wpdb->get_results('SELECT * FROM ai_country ORDER BY name', OBJECT_K);\n }\n return $ret;\n }", "title": "" }, { "docid": "e436b089abd18056ba62afb0aa6f3f9b", "score": "0.75086725", "text": "public function getCountry() {}", "title": "" }, { "docid": "e436b089abd18056ba62afb0aa6f3f9b", "score": "0.75086725", "text": "public function getCountry() {}", "title": "" }, { "docid": "102e850d6d5c41eebfd80e42f4d49bc8", "score": "0.73993665", "text": "function getSiteCountries() {\n global $dbAccess;\n $this->db = $dbAccess;\n $data = $this->db->SimpleQuery(\"SELECT * FROM \" . TBL_COUNTRIES . \" WHERE status='1' ORDER BY country_name\");\n\n return $data;\n }", "title": "" }, { "docid": "2288507a847c66f639504e9e8503084d", "score": "0.73966277", "text": "public function getCountryList()\n {\n return $this->call('country.list');\n }", "title": "" }, { "docid": "1a79f639da65e02965d09968bd509342", "score": "0.73538655", "text": "public function country_list()\n {\n $result = common_select_values('id, name', 'ad_countries', '', 'result');\n return $result; \n }", "title": "" }, { "docid": "789797818e69b715fb5e345db0e2193b", "score": "0.73525435", "text": "function getcountries_get(){\n\n $from = 'countries';\n $where = array();\n $select = '*';\n $records = 2;\n\n $countries = $this->base_model->getCommon($from, $where, $select, $records);\n\n if ($countries) {\n \n $response = array(\n 'status' => TRUE,\n 'message' => 'Countries found successfully.',\n 'result' => $countries);\n\n $this->set_response($response, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code \n }else{\n $response = array(\n 'status' => FALSE,\n 'message' => 'Country not found.');\n $this->response($response, REST_Controller::FIELD_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code\n }\n }", "title": "" }, { "docid": "3b76589593c07841d4a99638aa52812f", "score": "0.7335337", "text": "public function getCountries()\n {\n $uri = '/countries';\n $cacheKey = substr($uri, 1);\n\n $result = $this->cache->get($cacheKey);\n if ($result == null) {\n $result = $this->requestData($uri);\n if (!$result) {\n return false;\n }\n $this->cache->save($cacheKey, $result);\n }\n return $result;\n\n }", "title": "" }, { "docid": "33347ed2cab3058cd26063308c0e89ff", "score": "0.7325607", "text": "public function getCountries() {\n\n $result = $this->doRequest('v1.0/all-countries', 'GET');\n\n return $result;\n\n }", "title": "" }, { "docid": "d2d558161042f98761409d13f237ed64", "score": "0.7300015", "text": "public function getAllCountryCodes() {\n\t\t$filter = new Filters\\Misc\\CountryCode();\n\t\treturn $filter->query->find();\n\t}", "title": "" }, { "docid": "cfcedd27073d6a407dbf29c9573d6def", "score": "0.72940385", "text": "public function countries(): array\n {\n return $this->client->get(\"country\");\n }", "title": "" }, { "docid": "8cc0ec7bcd3720e10f7ea3d985c123a3", "score": "0.7288149", "text": "public function getAllCountriesLocations()\n\t{\n\t\t$sCacheId = $this->cache()->set('gmap.countries');\n\t\n\t\tif (!($aRows = $this->cache()->get($sCacheId)))\n\t\t{\n\t\t\t$aRows = $this->database()->select('fc.country_iso, c.name, c.phrase_var_name, fc.*, COUNT(u.user_id) as total_people')\n\t\t\t\t->from(Phpfox::getT('gmap_countries'), 'fc')\t\t\n\t\t\t\t->join(Phpfox::getT('country'), 'c', 'fc.country_iso = c.country_iso')\t\n\t\t\t\t->join(Phpfox::getT('user'), 'u', 'u.country_iso = fc.country_iso')\n\t\t\t\t->join(Phpfox::getT('gmap'), 'f', 'u.user_id = f.user_id')\n\t\t\t\t->group('u.country_iso')\n\t\t\t\t->where('f.not_found = \\'0\\'')\n\t\t\t\t->execute('getSlaveRows');\n\t\t\t\t\n\t\t\t$this->cache()->save($sCacheId, $aRows);\n\t\t}\n\t\t\n\t\tif($aRows != null && is_array($aRows))\n\t\t{\n\t\t\tforeach($aRows as $key => $aRow)\n\t\t\t{\n\t\t\t\tif(isset($aRow['phrase_var_name']) && $aRow['phrase_var_name'] != '')\n\t\t\t\t{\n\t\t\t\t\t$aRows[$key]['name'] = Phpfox::getPhrase($aRow['phrase_var_name']);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$aRows = $this->sortByProperty($aRows, 'name');\n\t\t}\n\t\t\n\t\treturn $aRows;\n\t}", "title": "" }, { "docid": "e00a6e5e577641f0644e71f5119ef756", "score": "0.7280336", "text": "public function requestCountry();", "title": "" }, { "docid": "702860d758d7eed92e21408bed59574a", "score": "0.7246105", "text": "public function getCountries()\n {\n return \"/V1/directory/countries\";\n }", "title": "" }, { "docid": "91a2fafbfec71a8cdf2cfcc8e96998a2", "score": "0.721671", "text": "public function countryList(){\n $response['status'] = \"false\"; \n $response['message'] = \"Invalid request.\"; \n \n $country = Country::getCountries();\n if(!empty($country)){\n $response['status'] = \"true\"; \n $response['message'] = \"Country data.\"; \n $response['data'] = $country; \n }\n $this->response($response);\n \n }", "title": "" }, { "docid": "e70cc556a113e5ca0dab9c5bc154ed49", "score": "0.7201799", "text": "public function actionGetnearbycountry(){\t\t\n\t\t$ip = $this->get_client_ip();\n\t\tif($ip){\n\t\t\t$countries = Countries::model()->get_current_nearbycountries($ip);\n\t\t}\n\t\techo $countries;\n\t\tYii::app()->end();\t\t\n\t}", "title": "" }, { "docid": "4ef60c50d7ac67c89d1348e31497f3ee", "score": "0.71977156", "text": "public function get_all_countries_list()\n\t {\n\t \t$query=$this->ApiModel->get_all_countries();\n\t \techo json_encode($query);\n\t }", "title": "" }, { "docid": "8c3dfec3bed5137477923da21a3ed115", "score": "0.7179073", "text": "public function GetCountries(){\n try {\n \n // $country=new Countries();\n $countries=Countries::model()->GetCountries();\n return $countries;\n \n } catch (Exception $ex) {\n Yii::log(\"SkiptaUserService:GetCountries::\".$ex->getMessage().\"--\".$ex->getTraceAsString(), 'error', 'application');\n }\n }", "title": "" }, { "docid": "7b9083f787227af328430f03288896d0", "score": "0.7131038", "text": "public function getCountries() {\n\t\treturn $this->getData('/objekt/laender');\n\t}", "title": "" }, { "docid": "113674b54a9fd154ece3e8bf4cf1bfb4", "score": "0.7122245", "text": "public function getCountries() {\n\n $countries = civicrm_api3('Address', 'Getoptions', [\n 'field' => 'country_id',\n ]);\n return $countries['values'];\n }", "title": "" }, { "docid": "0e125452b151ba214c4442d1e97d61c6", "score": "0.7121002", "text": "public function getCountrylist()\n {\n $cachePool = new FilesystemAdapter('', 0, \"cache\");\n \n if ($cachePool->hasItem('countries')) {\n $countries = $cachePool->getItem('countries')->get();\n } else {\n $countries = $this->client->request(\n 'GET',\n 'https://kayaposoft.com/enrico/json/v2.0?action=getSupportedCountries'\n )->toArray();\n $countriesCache = $cachePool->getItem('countries');\n \n if (!$countriesCache->isHit()) {\n $countriesCache->set($countries);\n $countriesCache->expiresAfter(60*60*24);\n $cachePool->save($countriesCache);\n }\n }\n\n return $countries;\n }", "title": "" }, { "docid": "9f5518361d188dc794a644ac49c5ac8f", "score": "0.7103745", "text": "abstract public function country();", "title": "" }, { "docid": "0562e331a168f9a67c29a92d401629af", "score": "0.70996904", "text": "public static function getCountries()\n\t{\n\t\t$country[\"AFG\"] = Array(\"iso2\" => \"AF\", \"name\" => \"Afghanistan, Islamic Republic \");\n\t\t$country[\"ALA\"] = Array(\"iso2\" => \"AX\", \"name\" => \"Åland Islands\");\n\t\t$country[\"ALB\"] = Array(\"iso2\" => \"AL\", \"name\" => \"Albania, Republic of\");\n\t\t$country[\"DZA\"] = Array(\"iso2\" => \"DZ\", \"name\" => \"Algeria, People's Democratic Republic\");\n\t\t$country[\"ASM\"] = Array(\"iso2\" => \"AS\", \"name\" => \"American Samoa\");\n\t\t$country[\"AND\"] = Array(\"iso2\" => \"AD\", \"name\" => \"Andorra, Principality of\");\n\t\t$country[\"AGO\"] = Array(\"iso2\" => \"AO\", \"name\" => \"Angola, Republic of\");\n\t\t$country[\"AIA\"] = Array(\"iso2\" => \"AI\", \"name\" => \"Anguilla\");\n\t\t$country[\"ATA\"] = Array(\"iso2\" => \"AQ\", \"name\" => \"Antarctica (the territory Sout\");\n\t\t$country[\"ATG\"] = Array(\"iso2\" => \"AG\", \"name\" => \"Antigua and Barbuda\");\n\t\t$country[\"ARG\"] = Array(\"iso2\" => \"AR\", \"name\" => \"Argentina, Argentine Republic\");\n\t\t$country[\"ARM\"] = Array(\"iso2\" => \"AM\", \"name\" => \"Armenia, Republic of\");\n\t\t$country[\"ABW\"] = Array(\"iso2\" => \"AW\", \"name\" => \"Aruba\");\n\t\t$country[\"AUS\"] = Array(\"iso2\" => \"AU\", \"name\" => \"Australia, Commonwealth of\");\n\t\t$country[\"AUT\"] = Array(\"iso2\" => \"AT\", \"name\" => \"Austria, Republic of\");\n\t\t$country[\"AZE\"] = Array(\"iso2\" => \"AZ\", \"name\" => \"Azerbaijan, Republic of\");\n\t\t$country[\"BHS\"] = Array(\"iso2\" => \"BS\", \"name\" => \"Bahamas, Commonwealth of the\");\n\t\t$country[\"BHR\"] = Array(\"iso2\" => \"BH\", \"name\" => \"Bahrain, Kingdom of\");\n\t\t$country[\"BGD\"] = Array(\"iso2\" => \"BD\", \"name\" => \"Bangladesh, People's Republic \");\n\t\t$country[\"BRB\"] = Array(\"iso2\" => \"BB\", \"name\" => \"Barbados\");\n\t\t$country[\"BLR\"] = Array(\"iso2\" => \"BY\", \"name\" => \"Belarus, Republic of\");\n\t\t$country[\"BEL\"] = Array(\"iso2\" => \"BE\", \"name\" => \"Belgium, Kingdom of\");\n\t\t$country[\"BLZ\"] = Array(\"iso2\" => \"BZ\", \"name\" => \"Belize\");\n\t\t$country[\"BEN\"] = Array(\"iso2\" => \"BJ\", \"name\" => \"Benin, Republic of\");\n\t\t$country[\"BMU\"] = Array(\"iso2\" => \"BM\", \"name\" => \"Bermuda\");\n\t\t$country[\"BTN\"] = Array(\"iso2\" => \"BT\", \"name\" => \"Bhutan, Kingdom of\");\n\t\t$country[\"BOL\"] = Array(\"iso2\" => \"BO\", \"name\" => \"Bolivia, Republic of\");\n\t\t$country[\"BIH\"] = Array(\"iso2\" => \"BA\", \"name\" => \"Bosnia and Herzegovina\");\n\t\t$country[\"BWA\"] = Array(\"iso2\" => \"BW\", \"name\" => \"Botswana, Republic of\");\n\t\t$country[\"BVT\"] = Array(\"iso2\" => \"BV\", \"name\" => \"Bouvet Island (Bouvetoya)\");\n\t\t$country[\"BRA\"] = Array(\"iso2\" => \"BR\", \"name\" => \"Brazil, Federative Republic of\");\n\t\t$country[\"IOT\"] = Array(\"iso2\" => \"IO\", \"name\" => \"British Indian Ocean Territory\");\n\t\t$country[\"VGB\"] = Array(\"iso2\" => \"VG\", \"name\" => \"British Virgin Islands\");\n\t\t$country[\"BRN\"] = Array(\"iso2\" => \"BN\", \"name\" => \"Brunei Darussalam\");\n\t\t$country[\"BGR\"] = Array(\"iso2\" => \"BG\", \"name\" => \"Bulgaria, Republic of\");\n\t\t$country[\"BFA\"] = Array(\"iso2\" => \"BF\", \"name\" => \"Burkina Faso\");\n\t\t$country[\"BDI\"] = Array(\"iso2\" => \"BI\", \"name\" => \"Burundi, Republic of\");\n\t\t$country[\"KHM\"] = Array(\"iso2\" => \"KH\", \"name\" => \"Cambodia, Kingdom of\");\n\t\t$country[\"CMR\"] = Array(\"iso2\" => \"CM\", \"name\" => \"Cameroon, Republic of\");\n\t\t$country[\"CAN\"] = Array(\"iso2\" => \"CA\", \"name\" => \"Canada\");\n\t\t$country[\"CPV\"] = Array(\"iso2\" => \"CV\", \"name\" => \"Cape Verde, Republic of\");\n\t\t$country[\"CYM\"] = Array(\"iso2\" => \"KY\", \"name\" => \"Cayman Islands\");\n\t\t$country[\"CAF\"] = Array(\"iso2\" => \"CF\", \"name\" => \"Central African Republic\");\n\t\t$country[\"TCD\"] = Array(\"iso2\" => \"TD\", \"name\" => \"Chad, Republic of\");\n\t\t$country[\"CHL\"] = Array(\"iso2\" => \"CL\", \"name\" => \"Chile, Republic of\");\n\t\t$country[\"CHN\"] = Array(\"iso2\" => \"CN\", \"name\" => \"China, People's Republic of\");\n\t\t$country[\"CXR\"] = Array(\"iso2\" => \"CX\", \"name\" => \"Christmas Island\");\n\t\t$country[\"CCK\"] = Array(\"iso2\" => \"CC\", \"name\" => \"Cocos (Keeling) Islands\");\n\t\t$country[\"COL\"] = Array(\"iso2\" => \"CO\", \"name\" => \"Colombia, Republic of\");\n\t\t$country[\"COM\"] = Array(\"iso2\" => \"KM\", \"name\" => \"Comoros, Union of the\");\n\t\t$country[\"COD\"] = Array(\"iso2\" => \"CD\", \"name\" => \"Congo, Democratic Republic of \");\n\t\t$country[\"COG\"] = Array(\"iso2\" => \"CG\", \"name\" => \"Congo, Republic of the\");\n\t\t$country[\"COK\"] = Array(\"iso2\" => \"CK\", \"name\" => \"Cook Islands\");\n\t\t$country[\"CRI\"] = Array(\"iso2\" => \"CR\", \"name\" => \"Costa Rica, Republic of\");\n\t\t$country[\"CIV\"] = Array(\"iso2\" => \"CI\", \"name\" => \"Cote d'Ivoire, Republic of\");\n\t\t$country[\"HRV\"] = Array(\"iso2\" => \"HR\", \"name\" => \"Croatia, Republic of\");\n\t\t$country[\"CUB\"] = Array(\"iso2\" => \"CU\", \"name\" => \"Cuba, Republic of\");\n\t\t$country[\"CYP\"] = Array(\"iso2\" => \"CY\", \"name\" => \"Cyprus, Republic of\");\n\t\t$country[\"CZE\"] = Array(\"iso2\" => \"CZ\", \"name\" => \"Czech Republic\");\n\t\t$country[\"DNK\"] = Array(\"iso2\" => \"DK\", \"name\" => \"Denmark, Kingdom of\");\n\t\t$country[\"DJI\"] = Array(\"iso2\" => \"DJ\", \"name\" => \"Djibouti, Republic of\");\n\t\t$country[\"DMA\"] = Array(\"iso2\" => \"DM\", \"name\" => \"Dominica, Commonwealth of\");\n\t\t$country[\"DOM\"] = Array(\"iso2\" => \"DO\", \"name\" => \"Dominican Republic\");\n\t\t$country[\"ECU\"] = Array(\"iso2\" => \"EC\", \"name\" => \"Ecuador, Republic of\");\n\t\t$country[\"EGY\"] = Array(\"iso2\" => \"EG\", \"name\" => \"Egypt, Arab Republic of\");\n\t\t$country[\"SLV\"] = Array(\"iso2\" => \"SV\", \"name\" => \"El Salvador, Republic of\");\n\t\t$country[\"GNQ\"] = Array(\"iso2\" => \"GQ\", \"name\" => \"Equatorial Guinea, Republic of\");\n\t\t$country[\"ERI\"] = Array(\"iso2\" => \"ER\", \"name\" => \"Eritrea, State of\");\n\t\t$country[\"EST\"] = Array(\"iso2\" => \"EE\", \"name\" => \"Estonia, Republic of\");\n\t\t$country[\"ETH\"] = Array(\"iso2\" => \"ET\", \"name\" => \"Ethiopia, Federal Democratic R\");\n\t\t$country[\"FRO\"] = Array(\"iso2\" => \"FO\", \"name\" => \"Faroe Islands\");\n\t\t$country[\"FLK\"] = Array(\"iso2\" => \"FK\", \"name\" => \"Falkland Islands (Malvinas)\");\n\t\t$country[\"FJI\"] = Array(\"iso2\" => \"FJ\", \"name\" => \"Fiji, Republic of the Fiji Isl\");\n\t\t$country[\"FIN\"] = Array(\"iso2\" => \"FI\", \"name\" => \"Finland, Republic of\");\n\t\t$country[\"FRA\"] = Array(\"iso2\" => \"FR\", \"name\" => \"France, French Republic\");\n\t\t$country[\"GUF\"] = Array(\"iso2\" => \"GF\", \"name\" => \"French Guiana\");\n\t\t$country[\"PYF\"] = Array(\"iso2\" => \"PF\", \"name\" => \"French Polynesia\");\n\t\t$country[\"ATF\"] = Array(\"iso2\" => \"TF\", \"name\" => \"French Southern Territories\");\n\t\t$country[\"GAB\"] = Array(\"iso2\" => \"GA\", \"name\" => \"Gabon, Gabonese Republic\");\n\t\t$country[\"GMB\"] = Array(\"iso2\" => \"GM\", \"name\" => \"Gambia, Republic of the\");\n\t\t$country[\"GEO\"] = Array(\"iso2\" => \"GE\", \"name\" => \"Georgia\");\n\t\t$country[\"DEU\"] = Array(\"iso2\" => \"DE\", \"name\" => \"Germany, Federal Republic of\");\n\t\t$country[\"GHA\"] = Array(\"iso2\" => \"GH\", \"name\" => \"Ghana, Republic of\");\n\t\t$country[\"GIB\"] = Array(\"iso2\" => \"GI\", \"name\" => \"Gibraltar\");\n\t\t$country[\"GRC\"] = Array(\"iso2\" => \"GR\", \"name\" => \"Greece, Hellenic Republic\");\n\t\t$country[\"GRL\"] = Array(\"iso2\" => \"GL\", \"name\" => \"Greenland\");\n\t\t$country[\"GRD\"] = Array(\"iso2\" => \"GD\", \"name\" => \"Grenada\");\n\t\t$country[\"GLP\"] = Array(\"iso2\" => \"GP\", \"name\" => \"Guadeloupe\");\n\t\t$country[\"GUM\"] = Array(\"iso2\" => \"GU\", \"name\" => \"Guam\");\n\t\t$country[\"GTM\"] = Array(\"iso2\" => \"GT\", \"name\" => \"Guatemala, Republic of\");\n\t\t$country[\"GGY\"] = Array(\"iso2\" => \"GG\", \"name\" => \"Guernsey, Bailiwick of\");\n\t\t$country[\"GIN\"] = Array(\"iso2\" => \"GN\", \"name\" => \"Guinea, Republic of\");\n\t\t$country[\"GNB\"] = Array(\"iso2\" => \"GW\", \"name\" => \"Guinea-Bissau, Republic of\");\n\t\t$country[\"GUY\"] = Array(\"iso2\" => \"GY\", \"name\" => \"Guyana, Co-operative Republic \");\n\t\t$country[\"HTI\"] = Array(\"iso2\" => \"HT\", \"name\" => \"Haiti, Republic of\");\n\t\t$country[\"HMD\"] = Array(\"iso2\" => \"HM\", \"name\" => \"Heard Island and McDonald Isla\");\n\t\t$country[\"VAT\"] = Array(\"iso2\" => \"VA\", \"name\" => \"Holy See (Vatican City State)\");\n\t\t$country[\"HND\"] = Array(\"iso2\" => \"HN\", \"name\" => \"Honduras, Republic of\");\n\t\t$country[\"HKG\"] = Array(\"iso2\" => \"HK\", \"name\" => \"Hong Kong, Special Administrat\");\n\t\t$country[\"HUN\"] = Array(\"iso2\" => \"HU\", \"name\" => \"Hungary, Republic of\");\n\t\t$country[\"ISL\"] = Array(\"iso2\" => \"IS\", \"name\" => \"Iceland, Republic of\");\n\t\t$country[\"IND\"] = Array(\"iso2\" => \"IN\", \"name\" => \"India, Republic of\");\n\t\t$country[\"IDN\"] = Array(\"iso2\" => \"ID\", \"name\" => \"Indonesia, Republic of\");\n\t\t$country[\"IRN\"] = Array(\"iso2\" => \"IR\", \"name\" => \"Iran, Islamic Republic of\");\n\t\t$country[\"IRQ\"] = Array(\"iso2\" => \"IQ\", \"name\" => \"Iraq, Republic of\");\n\t\t$country[\"IRL\"] = Array(\"iso2\" => \"IE\", \"name\" => \"Ireland\");\n\t\t$country[\"IMN\"] = Array(\"iso2\" => \"IM\", \"name\" => \"Isle of Man\");\n\t\t$country[\"ISR\"] = Array(\"iso2\" => \"IL\", \"name\" => \"Israel, State of\");\n\t\t$country[\"ITA\"] = Array(\"iso2\" => \"IT\", \"name\" => \"Italy, Italian Republic\");\n\t\t$country[\"JAM\"] = Array(\"iso2\" => \"JM\", \"name\" => \"Jamaica\");\n\t\t$country[\"JPN\"] = Array(\"iso2\" => \"JP\", \"name\" => \"Japan\");\n\t\t$country[\"JEY\"] = Array(\"iso2\" => \"JE\", \"name\" => \"Jersey, Bailiwick of\");\n\t\t$country[\"JOR\"] = Array(\"iso2\" => \"JO\", \"name\" => \"Jordan, Hashemite Kingdom of\");\n\t\t$country[\"KAZ\"] = Array(\"iso2\" => \"KZ\", \"name\" => \"Kazakhstan, Republic of\");\n\t\t$country[\"KEN\"] = Array(\"iso2\" => \"KE\", \"name\" => \"Kenya, Republic of\");\n\t\t$country[\"KIR\"] = Array(\"iso2\" => \"KI\", \"name\" => \"Kiribati, Republic of\");\n\t\t$country[\"PRK\"] = Array(\"iso2\" => \"KP\", \"name\" => \"Korea, Democratic People's Rep\");\n\t\t$country[\"KOR\"] = Array(\"iso2\" => \"KR\", \"name\" => \"Korea, Republic of\");\n\t\t$country[\"KWT\"] = Array(\"iso2\" => \"KW\", \"name\" => \"Kuwait, State of\");\n\t\t$country[\"KGZ\"] = Array(\"iso2\" => \"KG\", \"name\" => \"Kyrgyz Republic\");\n\t\t$country[\"LAO\"] = Array(\"iso2\" => \"LA\", \"name\" => \"Lao People's Democratic Republ\");\n\t\t$country[\"LVA\"] = Array(\"iso2\" => \"LV\", \"name\" => \"Latvia, Republic of\");\n\t\t$country[\"LBN\"] = Array(\"iso2\" => \"LB\", \"name\" => \"Lebanon, Lebanese Republic\");\n\t\t$country[\"LSO\"] = Array(\"iso2\" => \"LS\", \"name\" => \"Lesotho, Kingdom of\");\n\t\t$country[\"LBR\"] = Array(\"iso2\" => \"LR\", \"name\" => \"Liberia, Republic of\");\n\t\t$country[\"LBY\"] = Array(\"iso2\" => \"LY\", \"name\" => \"Libyan Arab Jamahiriya\");\n\t\t$country[\"LIE\"] = Array(\"iso2\" => \"LI\", \"name\" => \"Liechtenstein, Principality of\");\n\t\t$country[\"LTU\"] = Array(\"iso2\" => \"LT\", \"name\" => \"Lithuania, Republic of\");\n\t\t$country[\"LUX\"] = Array(\"iso2\" => \"LU\", \"name\" => \"Luxembourg, Grand Duchy of\");\n\t\t$country[\"MAC\"] = Array(\"iso2\" => \"MO\", \"name\" => \"Macao, Special Administrative \");\n\t\t$country[\"MKD\"] = Array(\"iso2\" => \"MK\", \"name\" => \"Macedonia, the former Yugoslav\");\n\t\t$country[\"MDG\"] = Array(\"iso2\" => \"MG\", \"name\" => \"Madagascar, Republic of\");\n\t\t$country[\"MWI\"] = Array(\"iso2\" => \"MW\", \"name\" => \"Malawi, Republic of\");\n\t\t$country[\"MYS\"] = Array(\"iso2\" => \"MY\", \"name\" => \"Malaysia\");\n\t\t$country[\"MDV\"] = Array(\"iso2\" => \"MV\", \"name\" => \"Maldives, Republic of\");\n\t\t$country[\"MLI\"] = Array(\"iso2\" => \"ML\", \"name\" => \"Mali, Republic of\");\n\t\t$country[\"MLT\"] = Array(\"iso2\" => \"MT\", \"name\" => \"Malta, Republic of\");\n\t\t$country[\"MHL\"] = Array(\"iso2\" => \"MH\", \"name\" => \"Marshall Islands, Republic of \");\n\t\t$country[\"MTQ\"] = Array(\"iso2\" => \"MQ\", \"name\" => \"Martinique\");\n\t\t$country[\"MRT\"] = Array(\"iso2\" => \"MR\", \"name\" => \"Mauritania, Islamic Republic o\");\n\t\t$country[\"MUS\"] = Array(\"iso2\" => \"MU\", \"name\" => \"Mauritius, Republic of\");\n\t\t$country[\"MYT\"] = Array(\"iso2\" => \"YT\", \"name\" => \"Mayotte\");\n\t\t$country[\"MEX\"] = Array(\"iso2\" => \"MX\", \"name\" => \"Mexico, United Mexican States\");\n\t\t$country[\"FSM\"] = Array(\"iso2\" => \"FM\", \"name\" => \"Micronesia, Federated States o\");\n\t\t$country[\"MDA\"] = Array(\"iso2\" => \"MD\", \"name\" => \"Moldova, Republic of\");\n\t\t$country[\"MCO\"] = Array(\"iso2\" => \"MC\", \"name\" => \"Monaco, Principality of\");\n\t\t$country[\"MNG\"] = Array(\"iso2\" => \"MN\", \"name\" => \"Mongolia\");\n\t\t$country[\"MNE\"] = Array(\"iso2\" => \"ME\", \"name\" => \"Montenegro, Republic of\");\n\t\t$country[\"MSR\"] = Array(\"iso2\" => \"MS\", \"name\" => \"Montserrat\");\n\t\t$country[\"MAR\"] = Array(\"iso2\" => \"MA\", \"name\" => \"Morocco, Kingdom of\");\n\t\t$country[\"MOZ\"] = Array(\"iso2\" => \"MZ\", \"name\" => \"Mozambique, Republic of\");\n\t\t$country[\"MMR\"] = Array(\"iso2\" => \"MM\", \"name\" => \"Myanmar, Union of\");\n\t\t$country[\"NAM\"] = Array(\"iso2\" => \"NA\", \"name\" => \"Namibia, Republic of\");\n\t\t$country[\"NRU\"] = Array(\"iso2\" => \"NR\", \"name\" => \"Nauru, Republic of\");\n\t\t$country[\"NPL\"] = Array(\"iso2\" => \"NP\", \"name\" => \"Nepal, State of\");\n\t\t$country[\"ANT\"] = Array(\"iso2\" => \"AN\", \"name\" => \"Netherlands Antilles\");\n\t\t$country[\"NLD\"] = Array(\"iso2\" => \"NL\", \"name\" => \"Netherlands, Kingdom of the\");\n\t\t$country[\"NCL\"] = Array(\"iso2\" => \"NC\", \"name\" => \"New Caledonia\");\n\t\t$country[\"NZL\"] = Array(\"iso2\" => \"NZ\", \"name\" => \"New Zealand\");\n\t\t$country[\"NIC\"] = Array(\"iso2\" => \"NI\", \"name\" => \"Nicaragua, Republic of\");\n\t\t$country[\"NER\"] = Array(\"iso2\" => \"NE\", \"name\" => \"Niger, Republic of\");\n\t\t$country[\"NGA\"] = Array(\"iso2\" => \"NG\", \"name\" => \"Nigeria, Federal Republic of\");\n\t\t$country[\"NIU\"] = Array(\"iso2\" => \"NU\", \"name\" => \"Niue\");\n\t\t$country[\"NFK\"] = Array(\"iso2\" => \"NF\", \"name\" => \"Norfolk Island\");\n\t\t$country[\"MNP\"] = Array(\"iso2\" => \"MP\", \"name\" => \"Northern Mariana Islands, Comm\");\n\t\t$country[\"NOR\"] = Array(\"iso2\" => \"NO\", \"name\" => \"Norway, Kingdom of\");\n\t\t$country[\"OMN\"] = Array(\"iso2\" => \"OM\", \"name\" => \"Oman, Sultanate of\");\n\t\t$country[\"PAK\"] = Array(\"iso2\" => \"PK\", \"name\" => \"Pakistan, Islamic Republic of\");\n\t\t$country[\"PLW\"] = Array(\"iso2\" => \"PW\", \"name\" => \"Palau, Republic of\");\n\t\t$country[\"PSE\"] = Array(\"iso2\" => \"PS\", \"name\" => \"Palestinian Territory, Occupie\");\n\t\t$country[\"PAN\"] = Array(\"iso2\" => \"PA\", \"name\" => \"Panama, Republic of\");\n\t\t$country[\"PNG\"] = Array(\"iso2\" => \"PG\", \"name\" => \"Papua New Guinea, Independent \");\n\t\t$country[\"PRY\"] = Array(\"iso2\" => \"PY\", \"name\" => \"Paraguay, Republic of\");\n\t\t$country[\"PER\"] = Array(\"iso2\" => \"PE\", \"name\" => \"Peru, Republic of\");\n\t\t$country[\"PHL\"] = Array(\"iso2\" => \"PH\", \"name\" => \"Philippines, Republic of the\");\n\t\t$country[\"PCN\"] = Array(\"iso2\" => \"PN\", \"name\" => \"Pitcairn Islands\");\n\t\t$country[\"POL\"] = Array(\"iso2\" => \"PL\", \"name\" => \"Poland, Republic of\");\n\t\t$country[\"PRT\"] = Array(\"iso2\" => \"PT\", \"name\" => \"Portugal, Portuguese Republic\");\n\t\t$country[\"PRI\"] = Array(\"iso2\" => \"PR\", \"name\" => \"Puerto Rico, Commonwealth of\");\n\t\t$country[\"QAT\"] = Array(\"iso2\" => \"QA\", \"name\" => \"Qatar, State of\");\n\t\t$country[\"REU\"] = Array(\"iso2\" => \"RE\", \"name\" => \"Reunion\");\n\t\t$country[\"ROU\"] = Array(\"iso2\" => \"RO\", \"name\" => \"Romania\");\n\t\t$country[\"RUS\"] = Array(\"iso2\" => \"RU\", \"name\" => \"Russian Federation\");\n\t\t$country[\"RWA\"] = Array(\"iso2\" => \"RW\", \"name\" => \"Rwanda, Republic of\");\n\t\t$country[\"BLM\"] = Array(\"iso2\" => \"BL\", \"name\" => \"Saint Barthelemy\");\n\t\t$country[\"SHN\"] = Array(\"iso2\" => \"SH\", \"name\" => \"Saint Helena\");\n\t\t$country[\"KNA\"] = Array(\"iso2\" => \"KN\", \"name\" => \"Saint Kitts and Nevis, Federat\");\n\t\t$country[\"LCA\"] = Array(\"iso2\" => \"LC\", \"name\" => \"Saint Lucia\");\n\t\t$country[\"MAF\"] = Array(\"iso2\" => \"MF\", \"name\" => \"Saint Martin\");\n\t\t$country[\"SPM\"] = Array(\"iso2\" => \"PM\", \"name\" => \"Saint Pierre and Miquelon\");\n\t\t$country[\"VCT\"] = Array(\"iso2\" => \"VC\", \"name\" => \"Saint Vincent and the Grenadin\");\n\t\t$country[\"WSM\"] = Array(\"iso2\" => \"WS\", \"name\" => \"Samoa, Independent State of\");\n\t\t$country[\"SMR\"] = Array(\"iso2\" => \"SM\", \"name\" => \"San Marino, Republic of\");\n\t\t$country[\"STP\"] = Array(\"iso2\" => \"ST\", \"name\" => \"Sao Tome and Principe, Democra\");\n\t\t$country[\"SAU\"] = Array(\"iso2\" => \"SA\", \"name\" => \"Saudi Arabia, Kingdom of\");\n\t\t$country[\"SEN\"] = Array(\"iso2\" => \"SN\", \"name\" => \"Senegal, Republic of\");\n\t\t$country[\"SRB\"] = Array(\"iso2\" => \"RS\", \"name\" => \"Serbia, Republic of\");\n\t\t$country[\"SYC\"] = Array(\"iso2\" => \"SC\", \"name\" => \"Seychelles, Republic of\");\n\t\t$country[\"SLE\"] = Array(\"iso2\" => \"SL\", \"name\" => \"Sierra Leone, Republic of\");\n\t\t$country[\"SGP\"] = Array(\"iso2\" => \"SG\", \"name\" => \"Singapore, Republic of\");\n\t\t$country[\"SVK\"] = Array(\"iso2\" => \"SK\", \"name\" => \"Slovakia (Slovak Republic)\");\n\t\t$country[\"SVN\"] = Array(\"iso2\" => \"SI\", \"name\" => \"Slovenia, Republic of\");\n\t\t$country[\"SLB\"] = Array(\"iso2\" => \"SB\", \"name\" => \"Solomon Islands\");\n\t\t$country[\"SOM\"] = Array(\"iso2\" => \"SO\", \"name\" => \"Somalia, Somali Republic\");\n\t\t$country[\"ZAF\"] = Array(\"iso2\" => \"ZA\", \"name\" => \"South Africa, Republic of\");\n\t\t$country[\"SGS\"] = Array(\"iso2\" => \"GS\", \"name\" => \"South Georgia and the South Sa\");\n\t\t$country[\"ESP\"] = Array(\"iso2\" => \"ES\", \"name\" => \"Spain, Kingdom of\");\n\t\t$country[\"LKA\"] = Array(\"iso2\" => \"LK\", \"name\" => \"Sri Lanka, Democratic Socialis\");\n\t\t$country[\"SDN\"] = Array(\"iso2\" => \"SD\", \"name\" => \"Sudan, Republic of\");\n\t\t$country[\"SUR\"] = Array(\"iso2\" => \"SR\", \"name\" => \"Suriname, Republic of\");\n\t\t$country[\"SJM\"] = Array(\"iso2\" => \"SJ\", \"name\" => \"Svalbard & Jan Mayen Islands\");\n\t\t$country[\"SWZ\"] = Array(\"iso2\" => \"SZ\", \"name\" => \"Swaziland, Kingdom of\");\n\t\t$country[\"SWE\"] = Array(\"iso2\" => \"SE\", \"name\" => \"Sweden, Kingdom of\");\n\t\t$country[\"CHE\"] = Array(\"iso2\" => \"CH\", \"name\" => \"Switzerland, Swiss Confederati\");\n\t\t$country[\"SYR\"] = Array(\"iso2\" => \"SY\", \"name\" => \"Syrian Arab Republic\");\n\t\t$country[\"TWN\"] = Array(\"iso2\" => \"TW\", \"name\" => \"Taiwan\");\n\t\t$country[\"TJK\"] = Array(\"iso2\" => \"TJ\", \"name\" => \"Tajikistan, Republic of\");\n\t\t$country[\"TZA\"] = Array(\"iso2\" => \"TZ\", \"name\" => \"Tanzania, United Republic of\");\n\t\t$country[\"THA\"] = Array(\"iso2\" => \"TH\", \"name\" => \"Thailand, Kingdom of\");\n\t\t$country[\"TLS\"] = Array(\"iso2\" => \"TL\", \"name\" => \"Timor-Leste, Democratic Republ\");\n\t\t$country[\"TGO\"] = Array(\"iso2\" => \"TG\", \"name\" => \"Togo, Togolese Republic\");\n\t\t$country[\"TKL\"] = Array(\"iso2\" => \"TK\", \"name\" => \"Tokelau\");\n\t\t$country[\"TON\"] = Array(\"iso2\" => \"TO\", \"name\" => \"Tonga, Kingdom of\");\n\t\t$country[\"TTO\"] = Array(\"iso2\" => \"TT\", \"name\" => \"Trinidad and Tobago, Republic \");\n\t\t$country[\"TUN\"] = Array(\"iso2\" => \"TN\", \"name\" => \"Tunisia, Tunisian Republic\");\n\t\t$country[\"TUR\"] = Array(\"iso2\" => \"TR\", \"name\" => \"Turkey, Republic of\");\n\t\t$country[\"TKM\"] = Array(\"iso2\" => \"TM\", \"name\" => \"Turkmenistan\");\n\t\t$country[\"TCA\"] = Array(\"iso2\" => \"TC\", \"name\" => \"Turks and Caicos Islands\");\n\t\t$country[\"TUV\"] = Array(\"iso2\" => \"TV\", \"name\" => \"Tuvalu\");\n\t\t$country[\"UGA\"] = Array(\"iso2\" => \"UG\", \"name\" => \"Uganda, Republic of\");\n\t\t$country[\"UKR\"] = Array(\"iso2\" => \"UA\", \"name\" => \"Ukraine\");\n\t\t$country[\"ARE\"] = Array(\"iso2\" => \"AE\", \"name\" => \"United Arab Emirates\");\n\t\t$country[\"GBR\"] = Array(\"iso2\" => \"GB\", \"name\" => \"United Kingdom of Great Britain\");\n\t\t$country[\"USA\"] = Array(\"iso2\" => \"US\", \"name\" => \"United States of America\");\n\t\t$country[\"UMI\"] = Array(\"iso2\" => \"UM\", \"name\" => \"United States Minor Outlying I\");\n\t\t$country[\"VIR\"] = Array(\"iso2\" => \"VI\", \"name\" => \"United States Virgin Islands\");\n\t\t$country[\"URY\"] = Array(\"iso2\" => \"UY\", \"name\" => \"Uruguay, Eastern Republic of\");\n\t\t$country[\"UZB\"] = Array(\"iso2\" => \"UZ\", \"name\" => \"Uzbekistan, Republic of\");\n\t\t$country[\"VUT\"] = Array(\"iso2\" => \"VU\", \"name\" => \"Vanuatu, Republic of\");\n\t\t$country[\"VEN\"] = Array(\"iso2\" => \"VE\", \"name\" => \"Venezuela, Bolivarian Republic\");\n\t\t$country[\"VNM\"] = Array(\"iso2\" => \"VN\", \"name\" => \"Vietnam, Socialist Republic of\");\n\t\t$country[\"WLF\"] = Array(\"iso2\" => \"WF\", \"name\" => \"Wallis and Futuna\");\n\t\t$country[\"ESH\"] = Array(\"iso2\" => \"EH\", \"name\" => \"Western Sahara\");\n\t\t$country[\"YEM\"] = Array(\"iso2\" => \"YE\", \"name\" => \"Yemen\");\n\t\t$country[\"ZMB\"] = Array(\"iso2\" => \"ZM\", \"name\" => \"Zambia, Republic of\");\n\t\t$country[\"ZWE\"] = Array(\"iso2\" => \"ZW\", \"name\" => \"Zimbabwe, Republic of\");\n\t\t$country[\"0\"] = Array(\"iso2\" => \"0\", \"name\" => \"NO VALID COUNTRY\");\n\n\t\treturn $country;\n\t}", "title": "" }, { "docid": "718918535edd80dc0b9efff68cacf656", "score": "0.7087349", "text": "protected function operatingCountries()\n {\n return OperatingCountry::all();\n }", "title": "" }, { "docid": "23280c5a28f2f1bad345f5dd4c3ef4f2", "score": "0.7075045", "text": "public function get_country_list() \n\t{\n\t\treturn $this->db->select('num_code')\n\t\t->select('country_name')\n\t\t->select('num_code')\n\t\t->from('system_iso3166_l10n')\n\t\t->order_by('country_name', 'ASC')\t\n\t\t->get()->result();\n\t}", "title": "" }, { "docid": "89a747eee22f3a3b7e305ab814b8ae39", "score": "0.7058207", "text": "function countryList()\n {\n $arrClms = array(\n 'country_id',\n 'name',\n );\n $varOrderBy = 'name ASC ';\n $arrRes = $this->select(TABLE_COUNTRY, $arrClms);\n //pre($arrRes);\n return $arrRes;\n }", "title": "" }, { "docid": "2944dba0f460b2ade1f1592f2a77cbfb", "score": "0.70146024", "text": "private function returnCountriesForUser()\n {\n\n $tableCountryExt = CountryExt::tablename();\n $tableCountry = Country::tablename();\n\n /* $role=Yii::$app->user->getIdentity()->role;\n //If I'm admin just get all countries\n if($role==User::ROLE_ADMIN || $role==User::ROLE_SUPERADMIN || $role==User::ROLE_MARKETER)\n {\n $countries = Country::listAllCountries();\n }\n //otherwise find all countries where specific lanuage(language of current user is) is spoken\n else\n {\n $languageId = Language::getCurrentId(); //for example: 7\n $countries = Country::listCountries($languageId);\n\n } */\n\n //return countries per language\n $languageId = Language::getCurrentId(); //for example: 7\n $countries = Country::listCountries($languageId);\n\n return $countries;\n }", "title": "" }, { "docid": "e4fccba54d3e80f2bd8152adc0db2cf8", "score": "0.69971824", "text": "function getSpecificCountry() {\n $myModel = new My_Model();\n $countryName = \"Pakistan\";\n $whereArray = [\n \"country_name\" => $countryName\n ];\n $result = $myModel->select('countries', \"*\", $whereArray);\n if (count($result) === 1) {\n return $result = [\n \"message\" => \"countries list\",\n \"data\" => $result\n ];\n } else {\n return $resp = [\n \"message\" => \"no country available\",\n \"data\" => \"null\"\n ];\n }\n }", "title": "" }, { "docid": "5612e69839eba2ca4631c571c4875042", "score": "0.6995184", "text": "public function getCountriesProperty()\n {\n return Country::where('name', 'LIKE', \"%{$this->searchTerm}%\")\n ->whereNotIn('id', $this->selectedCountries)->get();\n }", "title": "" }, { "docid": "a0a8278ca16927945b7a8128434ba119", "score": "0.6993257", "text": "public static function getCountries()\n {\n return self::$countryList;\n }", "title": "" }, { "docid": "cefbc7c8106fce7ba1b2a7e57b7a7424", "score": "0.6992154", "text": "public function getAllCountries() {\n return $this->_countries->pluck ( 'name', 'code','id','flag');\n }", "title": "" }, { "docid": "a13734b786c23ca0a9ec4b53ec930dd0", "score": "0.69837606", "text": "public function countryOptionList();", "title": "" }, { "docid": "78a6b20fb0c22a4bca5b0cfa5e1acf5e", "score": "0.6970924", "text": "function getCountryList($options = array()) {\n\t\t$local_country_data = array();\n\t\t$where = array();\n\n\t\t# possible options of filtering\n\t\tif (!empty($options['country_id']))\n\t\t$where[] = \"id = \".$options['country_id'];\n\n\t\t# build SQL request\n\t\t$_sql = \"SELECT `id`, `iso2`, `iso3`, `name`\n\t\t\t\tFROM `%s` %s ORDER BY `name` ASC\";\n\t\t$sql = sprintf($_sql,\n\t\t$this->country_table,\n\t\t!empty($where) ? \"WHERE \".implode(\" AND \", $where) : \"\"\n\t\t);\n\t\t$result = mysql_query($sql);\n\n\t\twhile ($_city = mysql_fetch_assoc($result)) {\n\t\t\t$this->country_data[$_city['id']] = array (\n\t\t\t'id'\t=> $_city['id'],\n\t\t\t'iso2'\t=> $_city['iso2'],\n\t\t\t'iso3'\t=> $_city['iso3'],\n\t\t\t'name'\t=> $_city['name'],\n\t\t\t);\n\t\t\t$local_country_data[] = $this->country_data[$_city['id']];\n\t\t}\n\n\t\treturn $local_country_data;\n\t}", "title": "" }, { "docid": "272de003a8d9b9cf77860d6557e3fc73", "score": "0.6967989", "text": "public function getCountries()\n {\n return $this->countries;\n }", "title": "" }, { "docid": "272de003a8d9b9cf77860d6557e3fc73", "score": "0.6967989", "text": "public function getCountries()\n {\n return $this->countries;\n }", "title": "" }, { "docid": "272de003a8d9b9cf77860d6557e3fc73", "score": "0.6967989", "text": "public function getCountries()\n {\n return $this->countries;\n }", "title": "" }, { "docid": "8a22745cd39a58e306ffbbfc126f7d64", "score": "0.69677806", "text": "public function getListCountry()\n\t{\n\t\t$params = [\n\t\t\t'verify' => false,\n\t\t\t'query' => [\n\t\t\t\t'output' => Config::get( 'response.format' )\n\t\t\t]\n\t\t];\n\n\t\t$baseUrl = sprintf( Config::get( 'endpoints.base_url' ), Config::get( 'settings.api' ) ) . Config::get( 'endpoints.general_list_country' );\n\n\t\ttry {\n\t\t\t$response = parent::send( 'GET', $baseUrl, $params );\n\t\t} catch (TiketException $e) {\n\t\t\tthrow parent::convertException( $e );\n\t\t}\n\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "98c3e67a8e71760ab54ae755cdd0e212", "score": "0.69627374", "text": "public function sGetCountryList()\n {\n $context = Shopware()->Container()->get('shopware_storefront.context_service')->getShopContext();\n $service = Shopware()->Container()->get('shopware_storefront.location_service');\n\n $countryList = $service->getCountries($context);\n $countryList = Shopware()->Container()->get('legacy_struct_converter')->convertCountryStructList($countryList);\n\n $countryList = array_map(function ($country) {\n $request = $this->front->Request();\n $countryId = (int) $country['id'];\n $country['flag'] = ((int) $request->getPost('country') === $countryId || (int) $request->getPost('countryID') === $countryId);\n\n return $country;\n }, $countryList);\n\n $countryList = $this->eventManager->filter(\n 'Shopware_Modules_Admin_GetCountries_FilterResult',\n $countryList,\n ['subject' => $this]\n );\n\n return $countryList;\n }", "title": "" }, { "docid": "bbdff2cc5be2d0d7f34d9664222e4fd8", "score": "0.6954645", "text": "public function getCountriesList() {\n return $this->_get(7);\n }", "title": "" }, { "docid": "aad85c775a6d342984e9dcd48be0ab38", "score": "0.69528586", "text": "function get_all_countries($obj, $continent='')\n{\n\t$country_result = $obj->db->query($obj->Query_reader->get_query_by_code('get_countries_list', array('continent'=>$continent)));\n\t\n\treturn $country_result->result_array();\n}", "title": "" }, { "docid": "1de3ae3bf01fd26b1f2ef503f8dc55cc", "score": "0.69440794", "text": "function country_list()\t{\r\n\t\t$list = array(\r\n\t\t\t'AF' => 'Afghanistan',\r\n\t\t\t'AX' => 'Aland Island (Finland)',\r\n\t\t\t'AL' => 'Albania',\r\n\t\t\t'DZ' => 'Algeria',\r\n\t\t\t'AD' => 'Andorra',\r\n\t\t\t'AO' => 'Angola',\r\n\t\t\t'AI' => 'Anguilla',\r\n\t\t\t'AG' => 'Antigua and Barbuda',\r\n\t\t\t'AR' => 'Argentina',\r\n\t\t\t'AM' => 'Armenia',\r\n\t\t\t'AW' => 'Aruba',\r\n\t\t\t'AU' => 'Australia',\r\n\t\t\t'AT' => 'Austria',\r\n\t\t\t'AZ' => 'Azerbaijan',\r\n\t\t\t'BS' => 'Bahamas',\r\n\t\t\t'BH' => 'Bahrain',\r\n\t\t\t'BD' => 'Bangladesh',\r\n\t\t\t'BB' => 'Barbados',\r\n\t\t\t'BY' => 'Belarus',\r\n\t\t\t'BE' => 'Belgium',\r\n\t\t\t'BZ' => 'Belize',\r\n\t\t\t'BJ' => 'Benin',\r\n\t\t\t'BM' => 'Bermuda',\r\n\t\t\t'BT' => 'Bhutan',\r\n\t\t\t'BO' => 'Bolivia',\r\n\t\t\t'BQ' => 'Bonaire (Netherlands Antilles)',\r\n\t\t\t'BA' => 'Bosnia-Herzegovina',\r\n\t\t\t'BW' => 'Botswana',\r\n\t\t\t'BR' => 'Brazil',\r\n\t\t\t'VG' => 'British Virgin Islands',\r\n\t\t\t'BN' => 'Brunei Darussalam',\r\n\t\t\t'BG' => 'Bulgaria',\r\n\t\t\t'BF' => 'Burkina Faso',\r\n\t\t\t'MM' => 'Burma',\r\n\t\t\t'BI' => 'Burundi',\r\n\t\t\t'KH' => 'Cambodia',\r\n\t\t\t'CM' => 'Cameroon',\r\n\t\t\t'CA' => 'Canada',\r\n\t\t\t'CV' => 'Cape Verde',\r\n\t\t\t'KY' => 'Cayman Islands',\r\n\t\t\t'CF' => 'Central African Republic',\r\n\t\t\t'TD' => 'Chad',\r\n\t\t\t'CL' => 'Chile',\r\n\t\t\t'CN' => 'China',\r\n\t\t\t'CX' => 'Christmas Island (Australia)',\r\n\t\t\t'CC' => 'Cocos Island (Australia)',\r\n\t\t\t'CO' => 'Colombia',\r\n\t\t\t'KM' => 'Comoros',\r\n\t\t\t'CG' => 'Congo, Republic of the',\r\n\t\t\t'CD' => 'Congo, Democratic Republic of the',\r\n\t\t\t'CK' => 'Cook Islands (New Zealand)',\r\n\t\t\t'CR' => 'Costa Rica',\r\n\t\t\t'CI' => 'Cote d\\'Ivoire',\r\n\t\t\t'HR' => 'Croatia',\r\n\t\t\t'CU' => 'Cuba',\r\n\t\t\t'CW' => 'Curacao (Netherlands Antilles)',\r\n\t\t\t'CY' => 'Cyprus',\r\n\t\t\t'CZ' => 'Czech Republic',\r\n\t\t\t'DK' => 'Denmark',\r\n\t\t\t'DJ' => 'Djibouti',\r\n\t\t\t'DM' => 'Dominica',\r\n\t\t\t'DO' => 'Dominican Republic',\r\n\t\t\t'TL' => 'East Timor (Indonesia)',\r\n\t\t\t'EC' => 'Ecuador',\r\n\t\t\t'EG' => 'Egypt',\r\n\t\t\t'SV' => 'El Salvador',\r\n\t\t\t'GQ' => 'Equatorial Guinea',\r\n\t\t\t'ER' => 'Eritrea',\r\n\t\t\t'EE' => 'Estonia',\r\n\t\t\t'ET' => 'Ethiopia',\r\n\t\t\t'FK' => 'Falkland Islands',\r\n\t\t\t'FO' => 'Faroe Islands',\r\n\t\t\t'FJ' => 'Fiji',\r\n\t\t\t'FI' => 'Finland',\r\n\t\t\t'FR' => 'France',\r\n\t\t\t'GF' => 'French Guiana',\r\n\t\t\t'PF' => 'French Polynesia',\r\n\t\t\t'GA' => 'Gabon',\r\n\t\t\t'GM' => 'Gambia',\r\n\t\t\t'GE' => 'Georgia, Republic of',\r\n\t\t\t'DE' => 'Germany',\r\n\t\t\t'GH' => 'Ghana',\r\n\t\t\t'GI' => 'Gibraltar',\r\n\t\t\t'GB' => 'Great Britain and Northern Ireland',\r\n\t\t\t'GR' => 'Greece',\r\n\t\t\t'GL' => 'Greenland',\r\n\t\t\t'GD' => 'Grenada',\r\n\t\t\t'GP' => 'Guadeloupe',\r\n\t\t\t'GT' => 'Guatemala',\r\n\t\t\t'GG' => 'Guernsey',\r\n\t\t\t'GN' => 'Guinea',\r\n\t\t\t'GW' => 'Guinea-Bissau',\r\n\t\t\t'GY' => 'Guyana',\r\n\t\t\t'HT' => 'Haiti',\r\n\t\t\t'HN' => 'Honduras',\r\n\t\t\t'HK' => 'Hong Kong',\r\n\t\t\t'HU' => 'Hungary',\r\n\t\t\t'IS' => 'Iceland',\r\n\t\t\t'IN' => 'India',\r\n\t\t\t'ID' => 'Indonesia',\r\n\t\t\t'IR' => 'Iran',\r\n\t\t\t'IQ' => 'Iraq',\r\n\t\t\t'IE' => 'Ireland',\r\n\t\t\t'IM' => 'Isle of Man (Great Britain and Northern Ireland)',\r\n\t\t\t'IL' => 'Israel',\r\n\t\t\t'IT' => 'Italy',\r\n\t\t\t'JM' => 'Jamaica',\r\n\t\t\t'JP' => 'Japan',\r\n\t\t\t'JE' => 'Jersey (Channel Islands) (Great Britain and Northern Ireland)',\r\n\t\t\t'JO' => 'Jordan',\r\n\t\t\t'KZ' => 'Kazakhstan',\r\n\t\t\t'KE' => 'Kenya',\r\n\t\t\t'KI' => 'Kiribati',\r\n\t\t\t'KW' => 'Kuwait',\r\n\t\t\t'KG' => 'Kyrgyzstan',\r\n\t\t\t'LA' => 'Laos',\r\n\t\t\t'LV' => 'Latvia',\r\n\t\t\t'LB' => 'Lebanon',\r\n\t\t\t'LS' => 'Lesotho',\r\n\t\t\t'LR' => 'Liberia',\r\n\t\t\t'LY' => 'Libya',\r\n\t\t\t'LI' => 'Liechtenstein',\r\n\t\t\t'LT' => 'Lithuania',\r\n\t\t\t'LU' => 'Luxembourg',\r\n\t\t\t'MO' => 'Macao',\r\n\t\t\t'MK' => 'Macedonia, Republic of',\r\n\t\t\t'MG' => 'Madagascar',\r\n\t\t\t'MW' => 'Malawi',\r\n\t\t\t'MY' => 'Malaysia',\r\n\t\t\t'MV' => 'Maldives',\r\n\t\t\t'ML' => 'Mali',\r\n\t\t\t'MT' => 'Malta',\r\n\t\t\t'MQ' => 'Martinique',\r\n\t\t\t'MR' => 'Mauritania',\r\n\t\t\t'MU' => 'Mauritius',\r\n\t\t\t'YT' => 'Mayotte (France)',\r\n\t\t\t'MX' => 'Mexico',\r\n\t\t\t'MD' => 'Moldova',\r\n\t\t\t'MC' => 'Monaco (France)',\r\n\t\t\t'MN' => 'Mongolia',\r\n\t\t\t'ME' => 'Montenegro',\r\n\t\t\t'MS' => 'Montserrat',\r\n\t\t\t'MA' => 'Morocco',\r\n\t\t\t'MZ' => 'Mozambique',\r\n\t\t\t'NA' => 'Namibia',\r\n\t\t\t'NR' => 'Nauru',\r\n\t\t\t'NP' => 'Nepal',\r\n\t\t\t'NL' => 'Netherlands',\r\n\t\t\t'AN' => 'Netherlands Antilles',\r\n\t\t\t'NC' => 'New Caledonia',\r\n\t\t\t'NZ' => 'New Zealand',\r\n\t\t\t'NI' => 'Nicaragua',\r\n\t\t\t'NE' => 'Niger',\r\n\t\t\t'NG' => 'Nigeria',\r\n\t\t\t'NU' => 'Niue',\r\n\t\t\t'NF' => 'Norfolk Island',\r\n\t\t\t'KP' => 'North Korea (Korea, Democratic People\\'s Republic of)',\r\n\t\t\t'NO' => 'Norway',\r\n\t\t\t'OM' => 'Oman',\r\n\t\t\t'PK' => 'Pakistan',\r\n\t\t\t'PA' => 'Panama',\r\n\t\t\t'PG' => 'Papua New Guinea',\r\n\t\t\t'PY' => 'Paraguay',\r\n\t\t\t'PE' => 'Peru',\r\n\t\t\t'PH' => 'Philippines',\r\n\t\t\t'PN' => 'Pitcairn Island',\r\n\t\t\t'PL' => 'Poland',\r\n\t\t\t'PT' => 'Portugal',\r\n\t\t\t'QA' => 'Qatar',\r\n\t\t\t'RE' => 'Reunion',\r\n\t\t\t'RO' => 'Romania',\r\n\t\t\t'RU' => 'Russia',\r\n\t\t\t'RW' => 'Rwanda',\r\n\t\t\t'BL' => 'Saint Barthelemy (Guadeloupe)',\r\n\t\t\t'SH' => 'Saint Helena',\r\n\t\t\t'KN' => 'Saint Kitts (Saint Christopher and Nevis)',\r\n\t\t\t'LC' => 'Saint Lucia',\r\n\t\t\t'MF' => 'Saint Martin (French) (Guadeloupe)',\r\n\t\t\t'PM' => 'Saint Pierre and Miquelon',\r\n\t\t\t'VC' => 'Saint Vincent and the Grenadines',\r\n\t\t\t'SM' => 'San Marino',\r\n\t\t\t'ST' => 'Sao Tome and Principe',\r\n\t\t\t'SA' => 'Saudi Arabia',\r\n\t\t\t'SN' => 'Senegal',\r\n\t\t\t'RS' =>\t'Serbia, Republic of',\r\n\t\t\t'SC' => 'Seychelles',\r\n\t\t\t'SL' => 'Sierra Leone',\r\n\t\t\t'SG' => 'Singapore',\r\n\t\t\t'SX' => 'Saint Maarten (Dutch) (Netherlands Antilles)',\r\n\t\t\t'SK' => 'Slovak Republic',\r\n\t\t\t'SI' => 'Slovenia',\r\n\t\t\t'SB' => 'Solomon Islands',\r\n\t\t\t'SO' => 'Somalia',\r\n\t\t\t'ZA' => 'South Africa',\r\n\t\t\t'GS' => 'South Georgia (Falkland Islands)',\r\n\t\t\t'KR' => 'South Korea (Korea, Republic of)',\r\n\t\t\t'SS' => 'Sudan', // South Sudan, not listed separately from Sudan by USPS\r\n\t\t\t'ES' => 'Spain',\r\n\t\t\t'LK' => 'Sri Lanka',\r\n\t\t\t'SD' => 'Sudan',\r\n\t\t\t'SR' => 'Suriname',\r\n\t\t\t'SZ' => 'Swaziland',\r\n\t\t\t'SE' => 'Sweden',\r\n\t\t\t'CH' => 'Switzerland',\r\n\t\t\t'SY' => 'Syrian Arab Republic',\r\n\t\t\t'TW' => 'Taiwan',\r\n\t\t\t'TJ' => 'Tajikistan',\r\n\t\t\t'TZ' => 'Tanzania',\r\n\t\t\t'TH' => 'Thailand',\r\n\t\t\t'TG' => 'Togo',\r\n\t\t\t'TK' => 'Tokelau (Union Group) (Western Samoa)',\r\n\t\t\t'TO' => 'Tonga',\r\n\t\t\t'TT' => 'Trinidad and Tobago',\r\n\t\t\t'TN' => 'Tunisia',\r\n\t\t\t'TR' => 'Turkey',\r\n\t\t\t'TM' => 'Turkmenistan',\r\n\t\t\t'TC' => 'Turks and Caicos Islands',\r\n\t\t\t'TV' => 'Tuvalu',\r\n\t\t\t'UG' => 'Uganda',\r\n\t\t\t'UA' => 'Ukraine',\r\n\t\t\t'AE' => 'United Arab Emirates',\r\n\t\t\t'UY' => 'Uruguay',\r\n\t\t\t'UZ' => 'Uzbekistan',\r\n\t\t\t'VU' => 'Vanuatu',\r\n\t\t\t'VA' => 'Vatican City',\r\n\t\t\t'VE' => 'Venezuela',\r\n\t\t\t'VN' => 'Vietnam',\r\n\t\t\t'WF' => 'Wallis and Futuna Islands',\r\n\t\t\t'WS' => 'Western Samoa',\r\n\t\t\t'YE' => 'Yemen',\r\n\t\t\t'ZM' => 'Zambia',\r\n\t\t\t'ZW' => 'Zimbabwe');\r\n\t\treturn $list;\r\n\t}", "title": "" }, { "docid": "237baf16377879f5419d32232e8b5aa6", "score": "0.6931239", "text": "public function search($country)\n {\n $countries = Country::Where('nombre','LIKE','%' . strtoupper($country) . '%')->paginate(20);\n return $countries;\n }", "title": "" }, { "docid": "237baf16377879f5419d32232e8b5aa6", "score": "0.6931239", "text": "public function search($country)\n {\n $countries = Country::Where('nombre','LIKE','%' . strtoupper($country) . '%')->paginate(20);\n return $countries;\n }", "title": "" }, { "docid": "1423973c8ccdda9b39504067e63f9d81", "score": "0.6929797", "text": "function tep_get_countries($default = '') {\n $countries_array = array();\n if ($default) {\n $countries_array[] = array('id' => '',\n 'text' => $default);\n }\n\n $Qcountries = Registry::get('Db')->get('countries', ['countries_id', 'countries_name'], null, 'countries_name');\n\n while ($Qcountries->fetch()) {\n $countries_array[] = [\n 'id' => $Qcountries->valueInt('countries_id'),\n 'text' => $Qcountries->value('countries_name')\n ];\n }\n\n return $countries_array;\n }", "title": "" }, { "docid": "e2778d021121e4debb1349deb61104b9", "score": "0.691521", "text": "public function countries(): array\n {\n $payload = Payload::list('countries');\n\n $result = $this->transporter->get($payload->uri)->throw();\n\n return (array) $result->json('data');\n }", "title": "" }, { "docid": "0362c5bbcec29d3594d8de01b16f4521", "score": "0.69075316", "text": "public function getCountries() {\n $this->db->select('id, country_name, internet'); \n $result = $this->db->get(TBL_COUNTRIES);\n if ($result->num_rows() > 0 )\n return $result->result_array();\n else\n return FALSE;\n }", "title": "" }, { "docid": "b94f813de214e469da1948e1de6f3ee9", "score": "0.6897851", "text": "function countries()\n{\n return app('earth')->getCountries();\n}", "title": "" }, { "docid": "5cdcaef679c7247f14cc0fce0c2a2e72", "score": "0.6892304", "text": "function tep_get_countries_with_iso_codes($countries_id) {\n\treturn tep_get_countries($countries_id, true);\n}", "title": "" }, { "docid": "0cd106dc47f8fc73ed044ebdd4cf4112", "score": "0.68914163", "text": "public function listCountries() {\r\n\t\t\t$sql = Connection::getHandle()->prepare(\"SELECT DISTINCT c.countries_id,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tc.countries_name,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tc.countries_iso_code_2,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCASE WHEN z.zone_id > 0 THEN 'true' ELSE 'false' END AS zone\r\n\t\t\t\t\t\t\t\t\t\tFROM bs_countries c\r\n\t\t\t\t\t\t\t\t\t\tLEFT JOIN bs_zones z ON (c.countries_iso_code_2 = z.countries_id)\r\n\t\t\t\t\t\t\t\t\t\tGROUP BY c.countries_id\r\n\t\t\t\t\t\t\t\t\t\tORDER BY c.countries_id\");\r\n\t\t\t$sql->execute();\r\n\r\n\t\t\twhile ($row = $sql->fetch(PDO::FETCH_ASSOC)) {\r\n\t\t\t\t$results[] = $row;\r\n\t\t\t}\r\n\r\n\t\t\treturn $results;\r\n\t\t}", "title": "" }, { "docid": "102ab1776e621d104a9bf8ded52debb4", "score": "0.68817663", "text": "public function getCountries() {\n $db = database::getDB();\n $query = \"SELECT country FROM countries ORDER BY id\";\n $data = $db->query($query);\n return $data;\n }", "title": "" }, { "docid": "2c0ede34510efc986c5a7a30b2bf5e19", "score": "0.6873294", "text": "public function actionCountries()\n {\n $continentId = Yii::$app->request->get(\"continentId\");\n $countries = Country::getAvailable( $continentId );\n echo json_encode( $countries );\n Yii::$app->end(200);\n }", "title": "" }, { "docid": "4ce262fb8306afca50b7b341e05cc2c6", "score": "0.6872874", "text": "public function getCountryName();", "title": "" }, { "docid": "269612045d186759f92df92a9c545edd", "score": "0.68529147", "text": "function getCountryISO($search)\n{\n // pull the countries array from a different file\n $countries = include \"../app/includes/countries_array.php\";\n\n // uppercase the first letter of the searched query\n $input = ucwords($search);\n\n // find all matching results\n $input = preg_quote($input, '~');\n $result = preg_grep(\"~$input~\", $countries);\n\n // if any results were found then return their ISOs, otherwise put search value in array\n return count($result) ? array_keys($result) : [$search];\n}", "title": "" }, { "docid": "b869734dacd61614f670cf20b200cfd9", "score": "0.6852474", "text": "function getCountries()\r\n {\r\n global $db;\r\n global $html;\r\n $sql = 'select ID, Name from Country order by Name ASC';\r\n $result = $db->query($sql);\r\n $countries = '';\r\n $n = $db->rowCount($result);\r\n for ($i = 0; $i < $n; $i++) {\r\n $row = $db->fetch($result);\r\n $selected = '';\r\n if(empty($_POST['country'])){$_POST['country'] = '412';}\r\n if($row['ID'] === $_POST['country']) {\r\n $selected = ' selected=\"selected\"';\r\n }\r\n $countries .= '<option'.$selected.' value=\"'.$row['ID'].'\">'.$html->text($row['Name']).'</option>';\r\n }\r\n }", "title": "" }, { "docid": "b5c5d9b333b3f47c6b212dfd37184f56", "score": "0.683096", "text": "public function get_countries()\n\t{\n\t\t$t_countries = xtc_get_countriesList();\n\t\treturn $t_countries;\n\t}", "title": "" }, { "docid": "3872415174995813b58a30ff7ad3fde5", "score": "0.68282986", "text": "function get_country_list()\n\t{\n\t\t$query = \"SELECT `id`, `country` FROM `countries` ORDER BY CASE WHEN `id` = '\".OTHER_COUNTRY.\"' THEN 1 ELSE 0 END, `country`\";\n\t\t$result = $this->db->query($query);\n\t\tif ($result->num_rows() > 0 ) \n\t\t\treturn $result->result();\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ecb6017edaa4d109319588107de15ae9", "score": "0.6821327", "text": "function CountriesList()\n\t{\t$countries = array();\n\t\t$adminuser = new AdminUser((int)$_SESSION[SITE_NAME][\"auserid\"]);\n\t\t\n\t\t$sql = \"SELECT countries.ccode, countries.shortname, IF(toplist > 0, 0, 1) AS istoplist FROM countries ORDER BY istoplist, toplist, shortname\";\n\t\tif ($result = $this->db->Query($sql))\n\t\t{\twhile ($row = $this->db->FetchArray($result))\n\t\t\t{\t$countries[$row[\"ccode\"]] = $row[\"shortname\"];\n\t\t\t}\n\t\t}\n\t\treturn $countries;\n\t}", "title": "" }, { "docid": "22c76c1035645d86f63d8caa03dc6700", "score": "0.681937", "text": "public static function getCountryList(){\n return Country::find()\n ->orderBy(['name'=>SORT_ASC])\n ->all();\n }", "title": "" }, { "docid": "5ab9cc3cd42d20a73124df4087d53894", "score": "0.68083835", "text": "public function getCountry(){\n\t\n\t\tif(!isset($_SESSION['country_list'])){\n\t\t\t$country = $this->getData(\"select id,country,currency,flag,is_active,contact_email,address from country order by id\");\n\t\t\tforeach ($country as $k => $countrys) {\n\t\t\t\t$_SESSION['country_list'][$countrys['id']]=['id' => $countrys['id'],'country' => $countrys['country'], 'currency' => $countrys['currency'], 'flag'=>$countrys['flag'], 'is_active' => $countrys['is_active'], 'contact_email' => $countrys['contact_email'], 'address' => $countrys['address'] ];\t\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "593bcba80f0d6bebfc8804123a675da1", "score": "0.6804606", "text": "public function getCountryList()\r\n {\r\n return $this->admin->sGetCountryList();\r\n }", "title": "" }, { "docid": "ba5d084296565f076de8fec06d5f990a", "score": "0.6804288", "text": "public function countries()\n {\n $countries = Countries::where('status', 'active')->orderBy('idx')->get();\n return view('setup.countries.index', compact('countries'));\n }", "title": "" }, { "docid": "0995d0aa905e9b7011d6a1df3386e796", "score": "0.6801078", "text": "public function getCountryList() {\n $result = array();\n $collection = Mage::getModel('directory/country')->getCollection();\n foreach ($collection as $country) {\n $cid = $country->getId();\n $cname = $country->getName();\n $result[$cid] = $cname;\n }\n return $result;\n }", "title": "" }, { "docid": "e67315927ec4bae24a668b2a572af903", "score": "0.6800502", "text": "public function getAllCountriesProperty()\n {\n return Country::get();\n }", "title": "" }, { "docid": "66671a2f8fdd068098404bf05425f417", "score": "0.67755103", "text": "function getCountries($type, $query, $countriesParams) {\n if ($type === 'alpha' && (strLen($query) > 3 || strLen($query) < 2)) {\n echo json_encode(['error' => 'Country codes must be 2-3 characters long']);\n return;\n }\n $client = new Client(['base_uri' => 'https://restcountries.eu/rest/v2/', 'http_errors' => false]);\n $response = $client->request('GET', \"$type/$query\", [\n 'query' => $countriesParams\n ]);\n if ($response->getStatusCode() == 404) {\n echo json_encode(['error' => 'No results found']);\n return;\n }\n $response = json_decode($response->getBody());\n returnCountries((array)$response);\n}", "title": "" }, { "docid": "6701777ed9665d6bfe34b6c9d4481ffa", "score": "0.6769039", "text": "protected function _getCountries()\n {\n return $options = $this->_getCountryCollection()\n ->setForegroundCountries($this->_getTopDestinations())\n ->toOptionArray();\n }", "title": "" }, { "docid": "0f027dba3ab15a0ff67b7b81d7893110", "score": "0.6767213", "text": "public function getAllCountries() {\n $sql = \"SELECT * FROM countries\";\n $result = $this->db->query($sql);\n if ($result->num_rows() <= 0) {\n return false;\n } else {\n return $result->result_array();\n }\n }", "title": "" }, { "docid": "c025c7b05a3d1beb03c6e858785bea4e", "score": "0.6766282", "text": "function tep_get_countries($countries_id = '', $with_iso_codes = false) {\n\t$countries_array = array();\n\tif (tep_not_null($countries_id)) {\n\t\tif ($with_iso_codes == true) {\n\t\t\t$countries = tep_db_query(\"select countries_name, countries_iso_code_2, countries_iso_code_3 from \" . TABLE_COUNTRIES . \" where countries_id = '\" . (int)$countries_id . \"' order by countries_name\");\n\t\t\t$countries_values = tep_db_fetch_array($countries);\n\t\t\t$countries_array = array('countries_name' => $countries_values['countries_name'],\n\t\t\t\t\t\t\t\t\t 'countries_iso_code_2' => $countries_values['countries_iso_code_2'],\n\t\t\t\t\t\t\t\t\t 'countries_iso_code_3' => $countries_values['countries_iso_code_3']);\n\t\t} else {\n\t\t\t$countries = tep_db_query(\"select countries_name from \" . TABLE_COUNTRIES . \" where countries_id = '\" . (int)$countries_id . \"'\");\n\t\t\t$countries_values = tep_db_fetch_array($countries);\n\t\t\t$countries_array = array('countries_name' => $countries_values['countries_name']);\n\t\t}\n\t} else {\n\t\t$countries = tep_db_query(\"select countries_id, countries_name from \" . TABLE_COUNTRIES . \" order by countries_name\");\n\t\twhile ($countries_values = tep_db_fetch_array($countries)) {\n\t\t\t$countries_array[] = array('countries_id' => $countries_values['countries_id'],\n\t\t\t\t\t\t\t\t\t 'countries_name' => $countries_values['countries_name']);\n\t\t}\n\t}\n\treturn $countries_array;\n}", "title": "" }, { "docid": "6ebe8149c14fb9cf4701afdcbd15cf3c", "score": "0.6763767", "text": "public function getCountries()\n {\n return $this->_countries;\n }", "title": "" }, { "docid": "a0d28a6f8749387f6fb59934354e9458", "score": "0.6756961", "text": "public function getCountriesPerRegion();", "title": "" }, { "docid": "f56e7470119b7b579f3011c95bf6bf85", "score": "0.6730827", "text": "public function getCountries()\n {\n foreach (CountryStorage::getAll() as $id=>$content) {\n $key = $content->id;\n $value = $content->name;\n $countryoptions[$key] = $value;\n }\n return $countryoptions;\n }", "title": "" }, { "docid": "a5c8f59fe86401620c2349ad75db9105", "score": "0.6713659", "text": "public function getCountriesData(string $country = null, string $options = null, array $headers = ['Content-Type' => 'application/json'])\n\t{\n\t\ttry {\n\t\t\t$getContent = collect(Http::get($this->api)->json());\n\t\t\t$data = $getContent->flatten(1);\n\t\t\tif (! is_null($country)) {\n\t\t\t\t$countryData = $data->filter(function($element) use ($country) {\n\t\t\t\t\treturn false !== stripos($element['Country_Region'], $country);\n\t\t\t\t})->first();\n\t\t\t\tif($countryData) {\n\t\t\t\t\tif(! is_null($options)) {\n\t\t\t\t\t\tswitch ($options) {\n\t\t\t\t\t\t\tcase 'Confirmed':\n\t\t\t\t\t\t\tcase 'confirmed':\n\t\t\t\t\t\t\tcase 'Positif':\n\t\t\t\t\t\t\tcase 'positif':\n\t\t\t\t\t\t\t\t$getCase[$countryData['Country_Region'] . '_Confirmed'] = $countryData['Confirmed'];\n\t\t\t\t\t\t\t\treturn response()->json($getCase)->withHeaders($headers);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcase 'Deaths':\n\t\t\t\t\t\t\tcase 'deaths':\n\t\t\t\t\t\t\tcase 'Meninggal':\n\t\t\t\t\t\t\tcase 'meninggal':\n\t\t\t\t\t\t\t\t$getCase[$countryData['Country_Region'] . '_Deaths'] = $countryData['Deaths'];\n\t\t\t\t\t\t\t\treturn response()->json($getCase)->withHeaders($headers);\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase 'Recovered':\n\t\t\t\t\t\t\tcase 'recovered':\n\t\t\t\t\t\t\tcase 'Sembuh':\n\t\t\t\t\t\t\tcase 'sembuh':\n\t\t\t\t\t\t\t\t$getCase[$countryData['Country_Region'] . '_Recovered'] = $countryData['Recovered'];\n\t\t\t\t\t\t\t\treturn response()->json($getCase)->withHeaders($headers);\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tabort(404, 'Sorry, Please Input Your Query Correctly!');\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} elseif(is_null($options)) {\n\t\t\t\t\t\treturn response()->json($countryData)->withHeaders($headers);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tabort(500, 'Something Went Wrong!');\n\t\t\t\t\t}\n\t\t\t\t} elseif(! $countryData) {\n\t\t\t\t\tabort(404, 'Sorry, the Country You are For Looking Doesn\\'t Exists');\n\t\t\t\t} else {\n\t\t\t\t\tabort(500, 'Something Went Wrong!');\n\t\t\t\t}\n\t\t\t} elseif(is_null($country)) {\n\t\t\t\t$getCountry = Arr::pluck($data, 'Country_Region');\n\t\t\t\treturn response()->json($getCountry);\n\t\t\t} else {\n\t\t\t\tabort(500, 'Something Went Wrong!');\n\t\t\t}\n\t\t} catch (\\Exception $e) {\n\t\t\tthrow new \\Exception($e->getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "2d700eb856446ae55f5f7f569a77f249", "score": "0.67076534", "text": "public function get_countries(Request $request)\n {\n \n //echo $request->string;\n \n $countries = Country::where('name', 'LIKE', \"%{$request->string}%\")->get(); //where('name', $request->string)->get();\n \n //dd($countries);\n \n $out = '';\n \n foreach($countries as $country){\n \n $out .= '<p><a>'.$country->name.'</a></p>';\n \n }\n \n return response()->json(['data'=>$out]);\n \n }", "title": "" }, { "docid": "69b7189a57b4887807c326e8cc8fab75", "score": "0.67060155", "text": "function olc_get_countries($default = '')\n{\n\t$countries_array = array();\n\tif ($default)\n\t{\n\t\t$countries_array[] = array(\n\t\t'id' => STORE_COUNTRY,\n\t\t'text' => $default);\n\t}\n\t$countries_query = olc_db_query(SELECT.\"countries_id, countries_name, countries_iso_code_2\".SQL_FROM . TABLE_COUNTRIES .\n\t\" order by countries_name\");\n\twhile ($countries = olc_db_fetch_array($countries_query))\n\t{\n\t\t$countries_array[] = array(\n\t\t'id' => $countries['countries_id'],\n\t\t'text' => $countries['countries_name'],\n\t\t'countries_iso_code_2'=>$countries['countries_iso_code_2']);\n\t}\n\n\treturn $countries_array;\n}", "title": "" }, { "docid": "f866d59529e4fb39b68329c1dbadfe74", "score": "0.66926503", "text": "function get_state_options_by_country($country) {\r\n\r\n /* $states = [\"India\" =>[ \"Tamil Nadu\",\"Kerala\", \"Andra Pradesh\" , \"Telungana\", \"Karnataka\"]];\r\n $options = $states[$country]; \r\n\treturn $options; */\r\n}", "title": "" }, { "docid": "50f3fd320c8cca05046d2a015fb2aedb", "score": "0.6684941", "text": "public static function countries(): array\n\t{\n\t\treturn ArrayLists::countries();\n\t}", "title": "" }, { "docid": "b5e7e54965087d3bd8e21cafd372ebeb", "score": "0.6680453", "text": "function getcountries() {\n\t\t// import the country DB\n\t\t$cntArray = array();\t \n\t\tApp::import(\"Model\",\"Country\");\n\t\t$this->Country=& new Country();\n\t\t$country = $this->Country->find('all', array('conditions'=>array('Country.status'=>'1'), 'fields'=>array('Country.id','Country.country_name')));\n\t\tforeach($country as $cat){\n\t\t\t$cntArray[$cat['Country']['id']] = $cat['Country']['country_name'];\n\t\t}\n\t\treturn $cntArray;\n\t}", "title": "" }, { "docid": "419a9e4187f85be9071020bbc8f8dc61", "score": "0.66772646", "text": "function _country_get_predefined_list() {\n static $countries;\n\n if (isset($countries)) {\n return $countries;\n }\n $t = get_t();\n\n $countries = array(\n 'AD' => $t('Andorra'),\n 'AE' => $t('United Arab Emirates'),\n 'AF' => $t('Afghanistan'),\n 'AG' => $t('Antigua and Barbuda'),\n 'AI' => $t('Anguilla'),\n 'AL' => $t('Albania'),\n 'AM' => $t('Armenia'),\n 'AN' => $t('Netherlands Antilles'),\n 'AO' => $t('Angola'),\n 'AQ' => $t('Antarctica'),\n 'AR' => $t('Argentina'),\n 'AS' => $t('American Samoa'),\n 'AT' => $t('Austria'),\n 'AU' => $t('Australia'),\n 'AW' => $t('Aruba'),\n 'AX' => $t('Aland Islands'),\n 'AZ' => $t('Azerbaijan'),\n 'BA' => $t('Bosnia and Herzegovina'),\n 'BB' => $t('Barbados'),\n 'BD' => $t('Bangladesh'),\n 'BE' => $t('Belgium'),\n 'BF' => $t('Burkina Faso'),\n 'BG' => $t('Bulgaria'),\n 'BH' => $t('Bahrain'),\n 'BI' => $t('Burundi'),\n 'BJ' => $t('Benin'),\n 'BL' => $t('Saint Barthélemy'),\n 'BM' => $t('Bermuda'),\n 'BN' => $t('Brunei'),\n 'BO' => $t('Bolivia'),\n 'BR' => $t('Brazil'),\n 'BS' => $t('Bahamas'),\n 'BT' => $t('Bhutan'),\n 'BV' => $t('Bouvet Island'),\n 'BW' => $t('Botswana'),\n 'BY' => $t('Belarus'),\n 'BZ' => $t('Belize'),\n 'CA' => $t('Canada'),\n 'CC' => $t('Cocos (Keeling) Islands'),\n 'CD' => $t('Congo (Kinshasa)'),\n 'CF' => $t('Central African Republic'),\n 'CG' => $t('Congo (Brazzaville)'),\n 'CH' => $t('Switzerland'),\n 'CI' => $t('Ivory Coast'),\n 'CK' => $t('Cook Islands'),\n 'CL' => $t('Chile'),\n 'CM' => $t('Cameroon'),\n 'CN' => $t('China'),\n 'CO' => $t('Colombia'),\n 'CR' => $t('Costa Rica'),\n 'CU' => $t('Cuba'),\n 'CV' => $t('Cape Verde'),\n 'CX' => $t('Christmas Island'),\n 'CY' => $t('Cyprus'),\n 'CZ' => $t('Czech Republic'),\n 'DE' => $t('Germany'),\n 'DJ' => $t('Djibouti'),\n 'DK' => $t('Denmark'),\n 'DM' => $t('Dominica'),\n 'DO' => $t('Dominican Republic'),\n 'DZ' => $t('Algeria'),\n 'EC' => $t('Ecuador'),\n 'EE' => $t('Estonia'),\n 'EG' => $t('Egypt'),\n 'EH' => $t('Western Sahara'),\n 'ER' => $t('Eritrea'),\n 'ES' => $t('Spain'),\n 'ET' => $t('Ethiopia'),\n 'FI' => $t('Finland'),\n 'FJ' => $t('Fiji'),\n 'FK' => $t('Falkland Islands'),\n 'FM' => $t('Micronesia'),\n 'FO' => $t('Faroe Islands'),\n 'FR' => $t('France'),\n 'GA' => $t('Gabon'),\n 'GB' => $t('United Kingdom'),\n 'GD' => $t('Grenada'),\n 'GE' => $t('Georgia'),\n 'GF' => $t('French Guiana'),\n 'GG' => $t('Guernsey'),\n 'GH' => $t('Ghana'),\n 'GI' => $t('Gibraltar'),\n 'GL' => $t('Greenland'),\n 'GM' => $t('Gambia'),\n 'GN' => $t('Guinea'),\n 'GP' => $t('Guadeloupe'),\n 'GQ' => $t('Equatorial Guinea'),\n 'GR' => $t('Greece'),\n 'GS' => $t('South Georgia and the South Sandwich Islands'),\n 'GT' => $t('Guatemala'),\n 'GU' => $t('Guam'),\n 'GW' => $t('Guinea-Bissau'),\n 'GY' => $t('Guyana'),\n 'HK' => $t('Hong Kong S.A.R., China'),\n 'HM' => $t('Heard Island and McDonald Islands'),\n 'HN' => $t('Honduras'),\n 'HR' => $t('Croatia'),\n 'HT' => $t('Haiti'),\n 'HU' => $t('Hungary'),\n 'ID' => $t('Indonesia'),\n 'IE' => $t('Ireland'),\n 'IL' => $t('Israel'),\n 'IM' => $t('Isle of Man'),\n 'IN' => $t('India'),\n 'IO' => $t('British Indian Ocean Territory'),\n 'IQ' => $t('Iraq'),\n 'IR' => $t('Iran'),\n 'IS' => $t('Iceland'),\n 'IT' => $t('Italy'),\n 'JE' => $t('Jersey'),\n 'JM' => $t('Jamaica'),\n 'JO' => $t('Jordan'),\n 'JP' => $t('Japan'),\n 'KE' => $t('Kenya'),\n 'KG' => $t('Kyrgyzstan'),\n 'KH' => $t('Cambodia'),\n 'KI' => $t('Kiribati'),\n 'KM' => $t('Comoros'),\n 'KN' => $t('Saint Kitts and Nevis'),\n 'KP' => $t('North Korea'),\n 'KR' => $t('South Korea'),\n 'KW' => $t('Kuwait'),\n 'KY' => $t('Cayman Islands'),\n 'KZ' => $t('Kazakhstan'),\n 'LA' => $t('Laos'),\n 'LB' => $t('Lebanon'),\n 'LC' => $t('Saint Lucia'),\n 'LI' => $t('Liechtenstein'),\n 'LK' => $t('Sri Lanka'),\n 'LR' => $t('Liberia'),\n 'LS' => $t('Lesotho'),\n 'LT' => $t('Lithuania'),\n 'LU' => $t('Luxembourg'),\n 'LV' => $t('Latvia'),\n 'LY' => $t('Libya'),\n 'MA' => $t('Morocco'),\n 'MC' => $t('Monaco'),\n 'MD' => $t('Moldova'),\n 'ME' => $t('Montenegro'),\n 'MF' => $t('Saint Martin (French part)'),\n 'MG' => $t('Madagascar'),\n 'MH' => $t('Marshall Islands'),\n 'MK' => $t('Macedonia'),\n 'ML' => $t('Mali'),\n 'MM' => $t('Myanmar'),\n 'MN' => $t('Mongolia'),\n 'MO' => $t('Macao S.A.R., China'),\n 'MP' => $t('Northern Mariana Islands'),\n 'MQ' => $t('Martinique'),\n 'MR' => $t('Mauritania'),\n 'MS' => $t('Montserrat'),\n 'MT' => $t('Malta'),\n 'MU' => $t('Mauritius'),\n 'MV' => $t('Maldives'),\n 'MW' => $t('Malawi'),\n 'MX' => $t('Mexico'),\n 'MY' => $t('Malaysia'),\n 'MZ' => $t('Mozambique'),\n 'NA' => $t('Namibia'),\n 'NC' => $t('New Caledonia'),\n 'NE' => $t('Niger'),\n 'NF' => $t('Norfolk Island'),\n 'NG' => $t('Nigeria'),\n 'NI' => $t('Nicaragua'),\n 'NL' => $t('Netherlands'),\n 'NO' => $t('Norway'),\n 'NP' => $t('Nepal'),\n 'NR' => $t('Nauru'),\n 'NU' => $t('Niue'),\n 'NZ' => $t('New Zealand'),\n 'OM' => $t('Oman'),\n 'PA' => $t('Panama'),\n 'PE' => $t('Peru'),\n 'PF' => $t('French Polynesia'),\n 'PG' => $t('Papua New Guinea'),\n 'PH' => $t('Philippines'),\n 'PK' => $t('Pakistan'),\n 'PL' => $t('Poland'),\n 'PM' => $t('Saint Pierre and Miquelon'),\n 'PN' => $t('Pitcairn'),\n 'PR' => $t('Puerto Rico'),\n 'PS' => $t('Palestinian Territory'),\n 'PT' => $t('Portugal'),\n 'PW' => $t('Palau'),\n 'PY' => $t('Paraguay'),\n 'QA' => $t('Qatar'),\n 'RE' => $t('Reunion'),\n 'RO' => $t('Romania'),\n 'RS' => $t('Serbia'),\n 'RU' => $t('Russia'),\n 'RW' => $t('Rwanda'),\n 'SA' => $t('Saudi Arabia'),\n 'SB' => $t('Solomon Islands'),\n 'SC' => $t('Seychelles'),\n 'SD' => $t('Sudan'),\n 'SE' => $t('Sweden'),\n 'SG' => $t('Singapore'),\n 'SH' => $t('Saint Helena'),\n 'SI' => $t('Slovenia'),\n 'SJ' => $t('Svalbard and Jan Mayen'),\n 'SK' => $t('Slovakia'),\n 'SL' => $t('Sierra Leone'),\n 'SM' => $t('San Marino'),\n 'SN' => $t('Senegal'),\n 'SO' => $t('Somalia'),\n 'SR' => $t('Suriname'),\n 'ST' => $t('Sao Tome and Principe'),\n 'SV' => $t('El Salvador'),\n 'SY' => $t('Syria'),\n 'SZ' => $t('Swaziland'),\n 'TC' => $t('Turks and Caicos Islands'),\n 'TD' => $t('Chad'),\n 'TF' => $t('French Southern Territories'),\n 'TG' => $t('Togo'),\n 'TH' => $t('Thailand'),\n 'TJ' => $t('Tajikistan'),\n 'TK' => $t('Tokelau'),\n 'TL' => $t('East Timor'),\n 'TM' => $t('Turkmenistan'),\n 'TN' => $t('Tunisia'),\n 'TO' => $t('Tonga'),\n 'TR' => $t('Turkey'),\n 'TT' => $t('Trinidad and Tobago'),\n 'TV' => $t('Tuvalu'),\n 'TW' => $t('Taiwan'),\n 'TZ' => $t('Tanzania'),\n 'UA' => $t('Ukraine'),\n 'UG' => $t('Uganda'),\n 'UM' => $t('United States Minor Outlying Islands'),\n 'US' => $t('United States'),\n 'UY' => $t('Uruguay'),\n 'UZ' => $t('Uzbekistan'),\n 'VA' => $t('Vatican'),\n 'VC' => $t('Saint Vincent and the Grenadines'),\n 'VE' => $t('Venezuela'),\n 'VG' => $t('British Virgin Islands'),\n 'VI' => $t('U.S. Virgin Islands'),\n 'VN' => $t('Vietnam'),\n 'VU' => $t('Vanuatu'),\n 'WF' => $t('Wallis and Futuna'),\n 'WS' => $t('Samoa'),\n 'YE' => $t('Yemen'),\n 'YT' => $t('Mayotte'),\n 'ZA' => $t('South Africa'),\n 'ZM' => $t('Zambia'),\n 'ZW' => $t('Zimbabwe'),\n );\n\n // Sort the list.\n natcasesort($countries);\n\n return $countries;\n}", "title": "" }, { "docid": "2478f91b88357046dd9321d3be19e1e1", "score": "0.66658014", "text": "function _get_countries($iso=false, $code=null, $limit=null) \n {\n\n $cc = array(\n 'US' => \t'United States',\n 'CA' => \t'Canada',\n 'AF' => \t'Afghanistan',\n 'AX' => \t'Åland Islands',\n 'AL' => \t'Albania',\n 'DZ' => \t'Algeria',\n 'AS' => \t'American Samoa',\n 'AD' => \t'Andorra',\n 'AO' => \t'Angola',\n 'AI' => \t'Anguilla',\n 'AG' => \t'Antigua and Barbuda',\n 'AR' => \t'Argentina',\n 'AM' => \t'Armenia',\n 'AW' => \t'Aruba',\n 'AU' => \t'Australia',\n 'AT' => \t'Austria',\n 'AZ' => \t'Azerbaijan',\n 'BS' => \t'Bahamas',\n 'BH' => \t'Bahrain',\n 'BD' => \t'Bangladesh',\n 'BB' => \t'Barbados',\n 'BY' => \t'Belarus',\n 'BE' => \t'Belgium',\n 'BZ' => \t'Belize',\n 'BJ' => \t'Benin',\n 'BM' => \t'Bermuda',\n 'BT' => \t'Bhutan',\n 'BO' => \t'Bolivia',\n 'BA' => \t'Bosnia and Herzegovina',\n 'BW' => \t'Botswana',\n 'BR' => \t'Brazil',\n 'IO' => \t'British Indian Ocean Territory',\n 'BN' => \t'Brunei Darussalam',\n 'BG' => \t'Bulgaria',\n 'BF' => \t'Burkina Faso',\n 'BI' => \t'Burundi',\n 'KH' => \t'Cambodia',\n 'CM' => \t'Cameroon',\n 'CA' => \t'Canada',\n 'CV' => \t'Cape Verde',\n 'KY' => \t'Cayman Islands',\n 'CF' => \t'Central African Republic',\n 'TD' => \t'Chad',\n 'CL' => \t'Chile',\n 'CN' => \t'China, People\\'s Republic of',\n 'CX' => \t'Christmas Island',\n 'CC' => \t'Cocos (Keeling) Islands',\n 'CO' => \t'Colombia',\n 'KM' => \t'Comoros',\n 'CD' => \t'Congo',\n 'CK' => \t'Cook Islands',\n 'CR' => \t'Costa Rica',\n 'CI' => \t'Côte d\\'Ivoire',\n 'HR' => \t'Croatia',\n 'CU' => \t'Cuba',\n 'CY' => \t'Cyprus',\n 'CZ' => \t'Czech Republic',\n 'DK' => \t'Denmark',\n 'DJ' => \t'Djibouti',\n 'DM' => \t'Dominica',\n 'DO' => \t'Dominican Republic',\n 'EC' => \t'Ecuador',\n 'EG' => \t'Egypt',\n 'SV' => \t'El Salvador',\n 'GQ' => \t'Equatorial Guinea',\n 'ER' => \t'Eritrea',\n 'EE' => \t'Estonia',\n 'ET' => \t'Ethiopia',\n 'FK' => \t'Falkland Islands',\n 'FO' => \t'Faroe Islands',\n 'FJ' => \t'Fiji',\n 'FI' => \t'Finland',\n 'FR' => \t'France',\n 'GF' => \t'French Guiana',\n 'PF' => \t'French Polynesia',\n 'TF' => \t'French Southern Territories',\n 'GA' => \t'Gabon',\n 'GM' => \t'Gambia',\n 'GE' => \t'Georgia',\n 'DE' => \t'Germany',\n 'GH' => \t'Ghana',\n 'GI' => \t'Gibraltar',\n 'GR' => \t'Greece',\n 'GL' => \t'Greenland',\n 'GD' => \t'Grenada',\n 'GP' => \t'Guadeloupe',\n 'GU' => \t'Guam',\n 'GT' => \t'Guatemala',\n 'GN' => \t'Guinea',\n 'GW' => \t'Guinea-Bissau',\n 'GY' => \t'Guyana',\n 'HT' => \t'Haiti',\n 'HN' => \t'Honduras',\n 'HK' => \t'Hong Kong',\n 'HU' => \t'Hungary',\n 'IS' => \t'Iceland',\n 'IN' => \t'India',\n 'ID' => \t'Indonesia',\n 'IR' => \t'Iran',\n 'IQ' => \t'Iraq',\n 'IE' => \t'Ireland',\n 'IL' => \t'Israel',\n 'IT' => \t'Italy',\n 'JM' => \t'Jamaica',\n 'JP' => \t'Japan',\n 'JO' => \t'Jordan',\n 'KZ' => \t'Kazakhstan',\n 'KE' => \t'Kenya',\n 'KI' => \t'Kiribati',\n 'KP' => \t'Korea, DPR',\n 'KR' => \t'Korea, Republic of',\n 'KW' => \t'Kuwait',\n 'KG' => \t'Kyrgyzstan',\n 'LA' => \t'Lao People\\'s Democratic Republic',\n 'LV' => \t'Latvia',\n 'LB' => \t'Lebanon',\n 'LS' => \t'Lesotho',\n 'LR' => \t'Liberia',\n 'LY' => \t'Libyan Arab Jamahiriya',\n 'LI' => \t'Liechtenstein',\n 'LT' => \t'Lithuania',\n 'LU' => \t'Luxembourg',\n 'MO' => \t'Macao',\n 'MK' => \t'Macedonia',\n 'MG' => \t'Madagascar',\n 'MW' => \t'Malawi',\n 'MY' => \t'Malaysia',\n 'MV' => \t'Maldives',\n 'ML' => \t'Mali',\n 'MT' => \t'Malta',\n 'MH' => \t'Marshall Islands',\n 'MQ' => \t'Martinique',\n 'MR' => \t'Mauritania',\n 'MU' => \t'Mauritius',\n 'YT' => \t'Mayotte',\n 'MX' => \t'Mexico',\n 'FM' => \t'Micronesia',\n 'MD' => \t'Moldova',\n 'MC' => \t'Monaco',\n 'MN' => \t'Mongolia',\n 'MS' => \t'Montserrat',\n 'MA' => \t'Morocco',\n 'MZ' => \t'Mozambique',\n 'MM' => \t'Myanmar',\n 'NA' => \t'Namibia',\n 'NR' => \t'Nauru',\n 'NP' => \t'Nepal',\n 'NL' => \t'Netherlands',\n 'AN' => \t'Netherlands Antilles',\n 'NC' => \t'New Caledonia',\n 'NZ' => \t'New Zealand',\n 'NI' => \t'Nicaragua',\n 'NE' => \t'Niger',\n 'NG' => \t'Nigeria',\n 'NU' => \t'Niue',\n 'NF' => \t'Norfolk Island',\n 'MP' => \t'Northern Mariana Islands',\n 'NO' => \t'Norway',\n 'OM' => \t'Oman',\n 'PK' => \t'Pakistan',\n 'PW' => \t'Palau',\n 'PS' => \t'Palestinian Territory, Occupied',\n 'PA' => \t'Panama',\n 'PG' => \t'Papua New Guinea',\n 'PY' => \t'Paraguay',\n 'PE' => \t'Peru',\n 'PH' => \t'Philippines',\n 'PN' => \t'Pitcairn',\n 'PL' => \t'Poland',\n 'PT' => \t'Portugal',\n 'PR' => \t'Puerto Rico',\n 'QA' => \t'Qatar',\n 'RE' => \t'Réunion',\n 'RO' => \t'Romania',\n 'RU' => \t'Russian Federation',\n 'RW' => \t'Rwanda',\n 'SH' => \t'Saint Helena',\n 'KN' => \t'Saint Kitts and Nevis',\n 'LC' => \t'Saint Lucia',\n 'PM' => \t'Saint-Pierre and Miquelon',\n 'VC' => \t'Saint Vincent and the Grenadines',\n 'WS' => \t'Samoa',\n 'SM' => \t'San Marino',\n 'ST' => \t'São Tomé and Príncipe',\n 'SA' => \t'Saudi Arabia',\n 'SN' => \t'Senegal',\n 'CS' => \t'Serbia and Montenegro',\n 'SC' => \t'Seychelles',\n 'SL' => \t'Sierra Leone',\n 'SG' => \t'Singapore',\n 'SK' => \t'Slovakia',\n 'SI' => \t'Slovenia',\n 'SB' => \t'Solomon Islands',\n 'SO' => \t'Somalia',\n 'ZA' => \t'South Africa',\n 'ES' => \t'Spain',\n 'LK' => \t'Sri Lanka',\n 'SD' => \t'Sudan',\n 'SR' => \t'Suriname',\n 'SJ' => \t'Svalbard and Jan Mayen',\n 'SZ' => \t'Swaziland',\n 'SE' => \t'Sweden',\n 'CH' => \t'Switzerland',\n 'SY' => \t'Syrian Arab Republic',\n 'TW' => \t'Taiwan',\n 'TJ' => \t'Tajikistan',\n 'TZ' => \t'Tanzania',\n 'TH' => \t'Thailand',\n 'TL' => \t'Timor-Leste',\n 'TG' => \t'Togo',\n 'TK' => \t'Tokelau',\n 'TO' => \t'Tonga',\n 'TT' => \t'Trinidad and Tobago',\n 'TN' => \t'Tunisia',\n 'TR' => \t'Turkey',\n 'TM' => \t'Turkmenistan',\n 'TC' => \t'Turks and Caicos Islands',\n 'TV' => \t'Tuvalu',\n 'UG' => \t'Uganda',\n 'UA' => \t'Ukraine',\n 'AE' => \t'United Arab Emirates',\n 'GB' => \t'United Kingdom',\n 'US' => \t'United States',\n 'UY' => \t'Uruguay',\n 'UZ' => \t'Uzbekistan',\n 'VU' => \t'Vanuatu',\n 'VA' => \t'Vatican City State',\n 'VE' => \t'Venezuela',\n 'VN' => \t'Viet Nam',\n 'VG' => \t'Virgin Islands, British',\n 'VI' => \t'Virgin Islands, U.S.',\n 'WF' => \t'Wallis and Futuna',\n 'EH' => \t'Western Sahara',\n 'YE' => \t'Yemen',\n 'ZM' => \t'Zambia',\n 'ZW' => \t'Zimbabwe',);\n\n if ($limit && is_array($limit)) {\n foreach (array_keys($cc) as $iso) {\n if (!in_array($iso, $limit)) {\n unset($cc[$iso]);\n }\n }\n }\n\n if (!$iso) {\n return array_values($cc);\n }\n elseif ($code) {\n return (isset($cc[$code]))? $cc[$code] : null;\n }\n else {\n return $cc;\n }\n }", "title": "" }, { "docid": "e15c83dcc818c34d814060fcb35b0287", "score": "0.66549826", "text": "public function countryList(){\n $sorted = $this->country->select('id','country_name')->get()->sortBy('country_name');\n return $sorted->values()->all();\n }", "title": "" }, { "docid": "6376239e16442c9ae1682e32fed5ec60", "score": "0.66537654", "text": "function GetCountries () {\n\t\t$this->db->order_by('name','ASC');\n\t\t$result = $this->db->get('countries');\n\n\t\t$countries = array();\n\t\tforeach ($result->result_array() as $country) {\n\t\t\t$countries[] = array(\n\t\t\t\t\t\t\t'iso2' => $country['iso2'],\n\t\t\t\t\t\t\t'name' => $country['name']\n\t\t\t\t\t\t);\n\t\t}\n\n\t\treturn $countries;\n\t}", "title": "" }, { "docid": "bd648ec8a835423265e323654f919408", "score": "0.66446435", "text": "function tep_get_countries($default = '') {\n $countries_array = array();\n if ($default) {\n $countries_array[] = array('id' => '',\n 'text' => $default);\n }\n $countries_query = tep_db_query(\"select countries_id, countries_name from \" . TABLE_COUNTRIES . \" order by countries_name\");\n while ($countries = tep_db_fetch_array($countries_query)) {\n $countries_array[] = array('id' => $countries['countries_id'],\n 'text' => $countries['countries_name']);\n }\n\n return $countries_array;\n}", "title": "" }, { "docid": "69df7b073597eff47cc6220f55ee3934", "score": "0.6629072", "text": "public function getCountries() {\n $dql = \"SELECT c from Country c\n ORDER BY c.name\";\n $countries = $this->em\n ->createQuery($dql)\n ->getResult();\n return $countries;\n }", "title": "" }, { "docid": "757a2c916d5d4bbace543eca3cb1e331", "score": "0.66150594", "text": "function listCountryOptions()\n{\n $countries = array(\"Afghanistan\", \"Albania\", \"Algeria\", \"American Samoa\", \"Andorra\", \"Angola\", \"Anguilla\", \"Antarctica\", \"Antigua and Barbuda\", \"Argentina\", \"Armenia\", \"Aruba\", \"Australia\", \"Austria\", \"Azerbaijan\", \"Bahamas\", \"Bahrain\", \"Bangladesh\", \"Barbados\", \"Belarus\", \"Belgium\", \"Belize\", \"Benin\", \"Bermuda\", \"Bhutan\", \"Bolivia\", \"Bosnia and Herzegowina\", \"Botswana\", \"Bouvet Island\", \"Brazil\", \"British Indian Ocean Territory\", \"Brunei Darussalam\", \"Bulgaria\", \"Burkina Faso\", \"Burundi\", \"Cambodia\", \"Cameroon\", \"Canada\", \"Cape Verde\", \"Cayman Islands\", \"Central African Republic\", \"Chad\", \"Chile\", \"China\", \"Christmas Island\", \"Cocos (Keeling) Islands\", \"Colombia\", \"Comoros\", \"Congo\", \"Congo, the Democratic Republic of the\", \"Cook Islands\", \"Costa Rica\", \"Cote d'Ivoire\", \"Croatia (Hrvatska)\", \"Cuba\", \"Cyprus\", \"Czech Republic\", \"Denmark\", \"Djibouti\", \"Dominica\", \"Dominican Republic\", \"East Timor\", \"Ecuador\", \"Egypt\", \"El Salvador\", \"Equatorial Guinea\", \"Eritrea\", \"Estonia\", \"Ethiopia\", \"Falkland Islands (Malvinas)\", \"Faroe Islands\", \"Fiji\", \"Finland\", \"France\", \"France Metropolitan\", \"French Guiana\", \"French Polynesia\", \"French Southern Territories\", \"Gabon\", \"Gambia\", \"Georgia\", \"Germany\", \"Ghana\", \"Gibraltar\", \"Greece\", \"Greenland\", \"Grenada\", \"Guadeloupe\", \"Guam\", \"Guatemala\", \"Guinea\", \"Guinea-Bissau\", \"Guyana\", \"Haiti\", \"Heard and Mc Donald Islands\", \"Holy See (Vatican City State)\", \"Honduras\", \"Hong Kong\", \"Hungary\", \"Iceland\", \"India\", \"Indonesia\", \"Iran (Islamic Republic of)\", \"Iraq\", \"Ireland\", \"Israel\", \"Italy\", \"Jamaica\", \"Japan\", \"Jordan\", \"Kazakhstan\", \"Kenya\", \"Kiribati\", \"Korea, Democratic People's Republic of\", \"Korea, Republic of\", \"Kuwait\", \"Kyrgyzstan\", \"Lao, People's Democratic Republic\", \"Latvia\", \"Lebanon\", \"Lesotho\", \"Liberia\", \"Libyan Arab Jamahiriya\", \"Liechtenstein\", \"Lithuania\", \"Luxembourg\", \"Macau\", \"Macedonia, The Former Yugoslav Republic of\", \"Madagascar\", \"Malawi\", \"Malaysia\", \"Maldives\", \"Mali\", \"Malta\", \"Marshall Islands\", \"Martinique\", \"Mauritania\", \"Mauritius\", \"Mayotte\", \"Mexico\", \"Micronesia, Federated States of\", \"Moldova, Republic of\", \"Monaco\", \"Mongolia\", \"Montserrat\", \"Morocco\", \"Mozambique\", \"Myanmar\", \"Namibia\", \"Nauru\", \"Nepal\", \"Netherlands\", \"Netherlands Antilles\", \"New Caledonia\", \"New Zealand\", \"Nicaragua\", \"Niger\", \"Nigeria\", \"Niue\", \"Norfolk Island\", \"Northern Mariana Islands\", \"Norway\", \"Oman\", \"Pakistan\", \"Palau\", \"Panama\", \"Papua New Guinea\", \"Paraguay\", \"Peru\", \"Philippines\", \"Pitcairn\", \"Poland\", \"Portugal\", \"Puerto Rico\", \"Qatar\", \"Reunion\", \"Romania\", \"Russian Federation\", \"Rwanda\", \"Saint Kitts and Nevis\", \"Saint Lucia\", \"Saint Vincent and the Grenadines\", \"Samoa\", \"San Marino\", \"Sao Tome and Principe\", \"Saudi Arabia\", \"Senegal\", \"Seychelles\", \"Sierra Leone\", \"Singapore\", \"Slovakia (Slovak Republic)\", \"Slovenia\", \"Solomon Islands\", \"Somalia\", \"South Africa\", \"South Georgia and the South Sandwich Islands\", \"Spain\", \"Sri Lanka\", \"St. Helena\", \"St. Pierre and Miquelon\", \"Sudan\", \"Suriname\", \"Svalbard and Jan Mayen Islands\", \"Swaziland\", \"Sweden\", \"Switzerland\", \"Syrian Arab Republic\", \"Taiwan, Province of China\", \"Tajikistan\", \"Tanzania, United Republic of\", \"Thailand\", \"Togo\", \"Tokelau\", \"Tonga\", \"Trinidad and Tobago\", \"Tunisia\", \"Turkey\", \"Turkmenistan\", \"Turks and Caicos Islands\", \"Tuvalu\", \"Uganda\", \"Ukraine\", \"United Arab Emirates\", \"United Kingdom\", \"United States\", \"United States Minor Outlying Islands\", \"Uruguay\", \"Uzbekistan\", \"Vanuatu\", \"Venezuela\", \"Vietnam\", \"Virgin Islands (British)\", \"Virgin Islands (U.S.)\", \"Wallis and Futuna Islands\", \"Western Sahara\", \"Yemen\", \"Yugoslavia\", \"Zambia\", \"Zimbabwe\");\n foreach($countries as $country)\n {\n echo \"<option class='option' value='$country'>$country</option>\";\n }\n}", "title": "" }, { "docid": "517ddcc6c7f94af41b9c55f21a4eabb4", "score": "0.66082394", "text": "public function getCountryList()\r\n\t{\r\n\t\t$this->db->select('*');\r\n\t\t$this->db->from('country');\r\n\t\t$this->db->where('country_status', '1');\r\n\t\t$query = $this->db->get();\r\n\t\treturn $query->result() ;\r\n\t}", "title": "" }, { "docid": "4687f963e8f99f152f973e684eb5b060", "score": "0.66019255", "text": "function loadCountriesFromXML() {\n\tglobal $countries;\n\treturn $countries->load_countries_from_xml();\n}", "title": "" }, { "docid": "c17ab3d1f721be5d973aa243adffdde7", "score": "0.65978616", "text": "public function country_details() {\n $options = [\n 'projection' => [\n '_id' => 1,\n 'country_name' => 1,\n 'iso_country_code' => 1,\n 'telephone_code' => 1,\n 'currency_code' => 1,\n 'currency_symbol' => 1\n ],\n 'sort' => [\n 'country_name' => 1\n ]\n ];\n $res = $this->mongo_db->find(MDB_CSC, ['country_status' => 'A'], $options);\n\n return (!empty($res)) ? $res : array();\n }", "title": "" }, { "docid": "ad27ad99d67c3b953b163c56d2dee004", "score": "0.6597117", "text": "public function getCountryBasedContinentAction()\n {\n $continent = $this->getRequest()->getParam(\"continent_name\"); \n $countryList = array(); \n $storeCol = Mage::getModel('archana_storelocator/storelocator')->getCollection()\n ->addFieldToFilter('continent', $continent); \n $storeCol->getSelect()->group('country');\n $html = '<select name=\"country\" id=\"country\">\n\t\t\t<option value=\"\"> -- Please Select -- </option>';\n foreach ($storeCol as $_country) {\n $countryCode= $_country->getCountry();\n $country = Mage::helper('archana_storelocator')->getCountryNameByCode($countryCode);\n $html .= '<option value=\"' . $countryCode . '\">' . $country . '</option>';\n }\n $html.='</select>'; \n echo $html; \n }", "title": "" }, { "docid": "a35b8d89724e5af96db53715e7326d2e", "score": "0.65900654", "text": "function countryList() {\n $country_array = array(\"Afghanistan\", \"Aland Islands\", \"Albania\", \"Algeria\", \"American Samoa\", \"Andorra\", \"Angola\", \"Anguilla\", \"Antarctica\", \"Antigua\", \"Argentina\", \"Armenia\", \"Aruba\", \"Australia\", \"Austria\", \"Azerbaijan\", \"Bahamas\", \"Bahrain\", \"Bangladesh\", \"Barbados\", \"Barbuda\", \"Belarus\", \"Belgium\", \"Belize\", \"Benin\", \"Bermuda\", \"Bhutan\", \"Bolivia\", \"Bosnia\", \"Botswana\", \"Bouvet Island\", \"Brazil\", \"British Indian Ocean Trty.\", \"Brunei Darussalam\", \"Bulgaria\", \"Burkina Faso\", \"Burundi\", \"Caicos Islands\", \"Cambodia\", \"Cameroon\", \"Canada\", \"Cape Verde\", \"Cayman Islands\", \"Central African Republic\", \"Chad\", \"Chile\", \"China\", \"Christmas Island\", \"Cocos (Keeling) Islands\", \"Colombia\", \"Comoros\", \"Congo\", \"Congo, Democratic Republic of the\", \"Cook Islands\", \"Costa Rica\", \"Cote d'Ivoire\", \"Croatia\", \"Cuba\", \"Cyprus\", \"Czech Republic\", \"Denmark\", \"Djibouti\", \"Dominica\", \"Dominican Republic\", \"Ecuador\", \"Egypt\", \"El Salvador\", \"Equatorial Guinea\", \"Eritrea\", \"Estonia\", \"Ethiopia\", \"Falkland Islands (Malvinas)\", \"Faroe Islands\", \"Fiji\", \"Finland\", \"France\", \"French Guiana\", \"French Polynesia\", \"French Southern Territories\", \"Futuna Islands\", \"Gabon\", \"Gambia\", \"Georgia\", \"Germany\", \"Ghana\", \"Gibraltar\", \"Greece\", \"Greenland\", \"Grenada\", \"Guadeloupe\", \"Guam\", \"Guatemala\", \"Guernsey\", \"Guinea\", \"Guinea-Bissau\", \"Guyana\", \"Haiti\", \"Heard\", \"Herzegovina\", \"Holy See\", \"Honduras\", \"Hong Kong\", \"Hungary\", \"Iceland\", \"India\", \"Indonesia\", \"Iran (Islamic Republic of)\", \"Iraq\", \"Ireland\", \"Isle of Man\", \"Israel\", \"Italy\", \"Jamaica\", \"Jan Mayen Islands\", \"Japan\", \"Jersey\", \"Jordan\", \"Kazakhstan\", \"Kenya\", \"Kiribati\", \"Korea\", \"Korea (Democratic)\", \"Kuwait\", \"Kyrgyzstan\", \"Lao\", \"Latvia\", \"Lebanon\", \"Lesotho\", \"Liberia\", \"Libyan Arab Jamahiriya\", \"Liechtenstein\", \"Lithuania\", \"Luxembourg\", \"Macao\", \"Macedonia\", \"Madagascar\", \"Malawi\", \"Malaysia\", \"Maldives\", \"Mali\", \"Malta\", \"Marshall Islands\", \"Martinique\", \"Mauritania\", \"Mauritius\", \"Mayotte\", \"McDonald Islands\", \"Mexico\", \"Micronesia\", \"Miquelon\", \"Moldova\", \"Monaco\", \"Mongolia\", \"Montenegro\", \"Montserrat\", \"Morocco\", \"Mozambique\", \"Myanmar\", \"Namibia\", \"Nauru\", \"Nepal\", \"Netherlands\", \"Netherlands Antilles\", \"Nevis\", \"New Caledonia\", \"New Zealand\", \"Nicaragua\", \"Niger\", \"Nigeria\", \"Niue\", \"Norfolk Island\", \"Northern Mariana Islands\", \"Norway\", \"Oman\", \"Pakistan\", \"Palau\", \"Palestinian Territory, Occupied\", \"Panama\", \"Papua New Guinea\", \"Paraguay\", \"Peru\", \"Philippines\", \"Pitcairn\", \"Poland\", \"Portugal\", \"Principe\", \"Puerto Rico\", \"Qatar\", \"Reunion\", \"Romania\", \"Russian Federation\", \"Rwanda\", \"Saint Barthelemy\", \"Saint Helena\", \"Saint Kitts\", \"Saint Lucia\", \"Saint Martin (French part)\", \"Saint Pierre\", \"Saint Vincent\", \"Samoa\", \"San Marino\", \"Sao Tome\", \"Saudi Arabia\", \"Senegal\", \"Serbia\", \"Seychelles\", \"Sierra Leone\", \"Singapore\", \"Slovakia\", \"Slovenia\", \"Solomon Islands\", \"Somalia\", \"South Africa\", \"South Georgia\", \"South Sandwich Islands\", \"Spain\", \"Sri Lanka\", \"Sudan\", \"Suriname\", \"Svalbard\", \"Swaziland\", \"Sweden\", \"Switzerland\", \"Syrian Arab Republic\", \"Taiwan\", \"Tajikistan\", \"Tanzania\", \"Thailand\", \"The Grenadines\", \"Timor-Leste\", \"Tobago\", \"Togo\", \"Tokelau\", \"Tonga\", \"Trinidad\", \"Tunisia\", \"Turkey\", \"Turkmenistan\", \"Turks Islands\", \"Tuvalu\", \"Uganda\", \"Ukraine\", \"United Arab Emirates\", \"United Kingdom\", \"United States\", \"Uruguay\", \"US Minor Outlying Islands\", \"Uzbekistan\", \"Vanuatu\", \"Vatican City State\", \"Venezuela\", \"Vietnam\", \"Virgin Islands (British)\", \"Virgin Islands (US)\", \"Wallis\", \"Western Sahara\", \"Yemen\", \"Zambia\", \"Zimbabwe\");\n foreach($country_array as $country) {\n echo \"\n <option>\n $country\n </option>\n\n \";\n }\n}", "title": "" }, { "docid": "84c74d8b098e72703d74c67240782113", "score": "0.6589663", "text": "public function getCountryList()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('country');\n\t\t$this->db->where('country_status', '1');\n\t\t$query = $this->db->get();\n\t\treturn $query->result() ;\n\t}", "title": "" }, { "docid": "a84061ff3442e0c1c4fb06fd62b8cfb1", "score": "0.65860844", "text": "function get_country() {\n $sql = \"Select * FROM country\";\n $res = $this->mysqli->query($sql);\n $data = array();\n while ($row = $res->fetch_array(MYSQLI_ASSOC)) {\n $data[] = $row;\n }\n return $data;\n }", "title": "" }, { "docid": "ed90c3d2794346712c45c2434dd9400f", "score": "0.6568824", "text": "function displayAvailableCountries() {\n $db = dbConnect();\n $countries = dbGetAllCountries($db); // Récupération des pays\n\n // Création d'une ligne par pays avec comme value le code ISO et comme texte le nom du pays\n foreach($countries as $country) {\n echo \"<option value='\" . $country->getIso_code() . \"'>\" . $country->getName() . \"</option>\";\n }\n }", "title": "" }, { "docid": "92bcbdbb54c4bb351ad4b4e97c766564", "score": "0.6552287", "text": "public function index()\n {\n // only test\n //$country = Countries::all()->pluck('name.common','cca2');\n //$country = Countries::where('cca2',\"IT\")->pluck('name.common','cca2');\n \n /*$user = User::find(1);\n $user->city; \n\n return response()->json([\n 'userCIty' => $country\n ]); */\n }", "title": "" }, { "docid": "0776b273fe6e0c7c011b60b9a9181a3c", "score": "0.6541364", "text": "private function allCountries()\n {\n $countries = [];\n $isos = $this->countryIso();\n foreach ($isos as $iso) {\n $path = __DIR__ . '/config/geography/' . $iso . '.php';\n $countries[$iso] = require $path;\n }\n\n return $countries;\n }", "title": "" }, { "docid": "7264bd34e8cb3096a3c6b588cd83435f", "score": "0.6527951", "text": "public static function getCountries()\n\t{\n\t\t# MAX ID is 314 atm\n\t\treturn array(\n\t//\t\t'0' => array('Unknown Country', 'eng', '--', '--'),\n\t//\t\t\"666\" => array('Local Area Network', 'eng', '--', '--'),\n\t//\t\t'305' => array('Abkhazia', ''),\n\t//\t\t'306' => array('Akrotiri and Dhekelia', ),\n\t\t\t'100' => array('Afghanistan', 'per:pas', 'as', 'AF', 29121286),\n\t\t\t'301' => array('Aland Islands', 'swe', 'eu', 'AX', 0),\n\t\t\t'69' => array('Albania', 'alb', 'eu', 'AL', 2986952),\n\t\t\t'307' => array('Alderney', 'eng:fre', 'eu', 'GG', 0),\n\t\t\t'79' => array('Algeria', 'ara:ama:fre', 'af', 'DZ', 34586184),\n\t\t\t'101' => array('American Samoa', 'eng:sam', 'au', 'AS', 66432),\n\t\t\t'71' => array('Andorra', 'cat', 'eu', 'AD', 84525),\n\t\t\t'102' => array('Angola', 'por', 'af', 'AO', 13068161),\n\t\t\t'103' => array('Anguilla', 'eng', 'ma', 'AI', 14766),\n\t\t\t'104' => array('Antarctica', 'eng', 'an', 'AQ', 0),\n\t\t\t'105' => array('Antigua And Barbuda', 'eng', 'ma', 'AG', 86754),\n\t\t\t'29' => array('Argentina', 'spa', 'sa', 'AR', 41343201),\n\t\t\t'36' => array('Armenia', 'arm', 'as', 'AM', 2966802),\n\t\t\t'106' => array('Aruba', 'dut', 'ma', 'AW', 104589),\n\t\t\t'308' => array('Ascension Island', 'eng', 'am', 'AC', 0),\n\t\t\t'26' => array('Australia', 'eng', 'au', 'AU', 21515754),\n\t\t\t'22' => array('Austria', 'ger', 'eu', 'AT', 8214160),\n\t\t\t'46' => array('Azerbaijan', 'aze', 'as', 'AZ', 8303512),\n\t\t\t'107' => array('Bahamas', 'eng', 'ma', 'BS', 310426),\n\t\t\t'108' => array('Bahrain', 'ara', 'as', 'BH', 738004),\n\t\t\t'75' => array('Bangladesh', 'ben', 'as', 'BD', 156118464),\n\t\t\t'109' => array('Barbados', 'eng:baj', 'ma', 'BB', 285653),\n\t\t\t'110' => array('Belarus', 'rus:bel', 'eu', 'BY', 9612632),\n\t\t\t'23' => array('Belgium', 'fre:ger:dut', 'eu', 'BE', 10423493),\n\t\t\t'111' => array('Belize', 'eng:spa', 'ma', 'BZ', 314522),\n\t\t\t'112' => array('Benin', 'fre', 'af', 'BJ', 9056010),\n\t\t\t'113' => array('Bermuda', 'eng', 'ma', 'BM', 68265),\n\t\t\t'114' => array('Bhutan', 'dzo', 'as', 'BT', 699847),\n\t\t\t'115' => array('Bolivia', 'spa:que:aym', 'sa', 'BO', 9947418),\n\t\t\t'82' => array('Bosnia Herzegovina', 'bos:ser:cro', 'eu', 'BA', 4621598),\n\t\t\t'116' => array('Botswana', 'eng:set', 'af', 'BW', 2029307),\n\t\t\t'117' => array('Bouvet Island', 'eng', 'sa', 'BV', 0),\n\t\t\t'38' => array('Brazil', 'por', 'sa', 'BR', 201103330),\n\t\t\t'118' => array('British Indian Ocean Territory', 'eng', 'au', 'IO', 0),\n\t\t\t'119' => array('Brunei Darussalam', 'mal:bru', 'as', 'BN', 395027),\n\t\t\t'37' => array('Bulgaria', 'bul', 'eu', 'BG', 7148785),\n\t\t\t'120' => array('Burkina Faso', 'fre:ind', 'af', 'BF', 16241811),\n\t\t\t'121' => array('Burundi', 'kir:fre:swa', 'af', 'BI', 9863117),\n\t\t\t'122' => array('Cambodia', 'khm', 'as', 'KH', 14453680),\n\t\t\t'123' => array('Cameroon', 'fre:eng', 'af', 'CM', 19294149),\n\t\t\t'19' => array('Canada', 'eng:fre', 'na', 'CA', 33759742),\n\t\t\t'124' => array('Cape Verde', 'por', 'af', 'CV', 508659),\n\t\t\t'125' => array('Cayman Islands', 'eng', 'ma', 'KY', 50209),\n\t\t\t'126' => array('Central African Republic', 'fre:san', 'af', 'CF', 4844927),\n\t\t\t'127' => array('Chad', 'fre:ara', 'af', 'TD', 10543464),\n\t\t\t'63' => array('Chile', 'spa', 'sa', 'CL', 16746491),\n\t\t\t'47' => array('China', 'chi', 'as', 'CN', 1330141295),\n\t\t\t'128' => array('Christmas Islands', 'eng', 'au', 'CX', 1402),\n\t\t\t'129' => array('Cocos (Keeling) Islands', 'eng', 'au', 'CC', 596),\n\t\t\t'31' => array('Colombia', 'spa', 'sa', 'CO', 44205293),\n\t\t\t'130' => array('Comoros', 'ara:fre', 'af', 'KM', 773407),\n\t\t\t'131' => array('Congo', 'fre', 'af', 'CG', 4125916),\n\t\t\t'132' => array('Congo, The Democratic Republic Of The', 'fre:swa:lin:kon:tsh', 'af', 'CD', 70916439),\n\t\t\t'133' => array('Cook Islands', 'eng:mao', 'au', 'CK', 11488),\n\t\t\t'83' => array('Costa Rica', 'spa', 'ma', 'CR', 4516220),\n\t\t\t'134' => array('Côte d’Ivoire', 'fre', 'af', 'CI', 0),\n\t\t\t'48' => array('Croatia', 'cro', 'eu', 'HR', 4486881),\n\t\t\t'62' => array('Cuba', 'spa', 'ma', 'CU', 11477459),\n\t\t\t'76' => array('Cyprus', 'gre:tur', 'eu', 'CY', 1102677),\n\t\t\t'20' => array('Czech Republic', 'cze', 'eu', 'CZ', 10201707),\n\t\t\t'21' => array('Denmark', 'dan', 'eu', 'DK', 5515575),\n\t\t\t'135' => array('Djibouti', 'ara:fre:afa:som', 'af', 'DJ', 740528),\n\t\t\t'136' => array('Dominica', 'eng', 'ma', 'DM', 72813),\n\t\t\t'60' => array('Dominican Republic', 'spa', 'ma', 'DO', 9823821),\n\t\t\t'309' => array('East Timor', 'tet:por:inn:eng', 'as', 'TL', 1154625),\n\t\t\t'77' => array('Ecuador', 'spa', 'sa', 'EC', 14790608),\n\t\t\t'14' => array('Egypt', 'ara', 'af', 'EG', 80471869),\n\t\t\t'137' => array('El Salvador', 'spa', 'ma', 'SV', 6052064),\n\t\t\t'138' => array('Equatorial Guinea', 'spa:fre:por:fan:bub:ann', 'af', 'GQ', 650702),\n\t\t\t'139' => array('Eritrea', 'ara:tig', 'af', 'ER', 5792984),\n\t\t\t'140' => array('Estonia', 'est', 'eu', 'EE', 1291170),\n\t\t\t'141' => array('Ethiopia', 'amh', 'af', 'ET', 88013491),\n\t\t\t'142' => array('Falkland Islands (Malvinas)', 'eng', 'sa', 'FK', 3140),\n\t\t\t'143' => array('Faroe Islands', 'far:dan', 'eu', 'FO', 49057),\n\t\t\t'144' => array('Fiji', 'eng:bau:hit', 'au', 'FJ', 875983),\n\t\t\t'15' => array('Finland', 'fin:swe', 'eu', 'FI', 5255068),\n\t\t\t'16' => array('France', 'fre', 'eu', 'FR', 64768389),\n\t\t\t'146' => array('French Guiana', 'fre', 'sa', 'GF', 0),\n\t\t\t'147' => array('French Polynesia', 'fre:tah', 'au', 'PF', 291000),\n\t\t\t'148' => array('French Southern Territories', 'fre', 'an', 'TF', 0),\n\t\t\t'149' => array('Gabon', 'fre', 'af', 'GA', 1545255),\n\t\t\t'150' => array('Gambia', 'eng', 'af', 'GM', 1824158),\n\t\t\t'151' => array('Georgia', 'geo', 'eu', 'GE', 4600825),\n\t\t\t'17' => array('Germany', 'ger', 'eu', 'DE', 82282988),\n\t\t\t'152' => array('Ghana', 'eng', 'af', 'GH', 24339838),\n\t\t\t'153' => array('Gibraltar', 'eng:spa', 'eu', 'GI', 28877),\n\t\t\t'44' => array('Greece', 'gre', 'eu', 'GR', 10749943),\n\t\t\t'154' => array('Greenland', 'grl:dan', 'na', 'GL', 57637),\n\t\t\t'155' => array('Grenada', 'eng', 'ma', 'GD', 107818),\n\t\t\t'156' => array('Guadeloupe', 'fre', 'ma', 'GP', 0),\n\t\t\t'157' => array('Guam', 'eng:cha', 'au', 'GU', 0),\n\t\t\t'18' => array('Guatemala', 'spa', 'ma', 'GT', 13550440),\n\t\t\t'310' => array('Guernsey', 'eng:fre', 'eu', 'GG', 64775),\n\t\t\t'158' => array('Guinea', 'fre:cri', 'af', 'GN', 10324025),\n\t\t\t'159' => array('Guinea-Bissau', 'por:cri', 'af', 'GW', 1565126),\n\t\t\t'160' => array('Guyana', 'eng:hin', 'sa', 'GY', 748486),\n\t\t\t'161' => array('Haiti', 'fre:hai', 'ma', 'HT', 9648924),\n\t//\t\t'162' => array('Heard And McDonald Islands', 'HM),\n\t\t\t'163' => array('Holy See (Vatican City State)', 'ita', 'eu', 'VA', 0),\n\t\t\t'66' => array('Honduras', 'spa', 'ma', 'HN', 7989415),\n\t\t\t'164' => array('Hong Kong', 'chi:eng', 'as', 'HK', 7089705),\n\t\t\t'9' => array('Hungary', 'hun', 'eu', 'HU', 9992339),\n\t\t\t'10' => array('Iceland', 'ice', 'eu', 'IS', 308910),\n\t\t\t'33' => array('India', 'hin:eng', 'as', 'IN', 1173108018),\n\t\t\t'165' => array('Indonesia', 'inn', 'as', 'ID', 242968342),\n\t\t\t'55' => array('Iran', 'per:kur', 'as', 'IR', 76923300),\n\t\t\t'166' => array('Iraq', 'ara:kur', 'as', 'IQ', 29671605),\n\t\t\t'11' => array('Ireland', 'iri:eng', 'eu', 'IE', 4622917),\n\t\t\t'304' => array('Isle of Man', 'max:eng', 'eu', 'IM', 83859),\n\t\t\t'35' => array('Israel', 'heb:ara', 'as', 'IL', 7353985),\n\t\t\t'12' => array('Italy', 'ita', 'eu', 'IT', 58090681),\n\t\t\t'56' => array('Jamaica', 'eng', 'ma', 'JM', 2847232),\n\t\t\t'13' => array('Japan', 'jap', 'as', 'JP', 126804433),\n\t\t\t'303' => array('Jersey', 'eng:fre', 'eu', 'JE', 93363),\n\t\t\t'167' => array('Jordan', 'ara:eng', 'as', 'JO', 6407085),\n\t\t\t'168' => array('Kazakhstan', 'kaz:rus', 'as', 'KZ', 15460484),\n\t\t\t'169' => array('Kenya', 'swa:eng', 'af', 'KE', 40046566),\n\t\t\t'170' => array('Kiribati', 'eng:gil', 'au', 'KI', 99482),\n\t\t\t'171' => array('Korea, Democratic People\\'s Republic Of', 'kor', 'as', 'KP', 22757275),\n\t\t\t'172' => array('Korea, Republic Of', 'kor', 'as', 'KR', 48636068),\n\t\t\t'311' => array('Kosovo', 'alb:ser', 'eu', 'RS', 1815048),\n\t\t\t'173' => array('Kuwait', 'ara', 'as', 'KW', 2789132),\n\t\t\t'174' => array('Kyrgyzstan', 'kyr:rus', 'as', 'KG', 5508626),\n\t\t\t'175' => array('Lao People\\'s Democratic Republic', 'lao', 'as', 'LA', 6368162),\n\t\t\t'28' => array('Latvia', 'lat', 'eu', 'LV', 2217969),\n\t\t\t'40' => array('Lebanon', 'ara:fre:eng:arm', 'as', 'LB', 4125247),\n\t\t\t'176' => array('Lesotho', 'sso:eng', 'af', 'LS', 1919552),\n\t\t\t'177' => array('Liberia', 'eng', 'af', 'LR', 3685076),\n\t\t\t'178' => array('Libya', 'ara', 'af', 'LY', 6461454),\n\t\t\t'179' => array('Liechtenstein', 'ger', 'eu', 'LI', 35002),\n\t\t\t'30' => array('Lithuania', 'lit', 'eu', 'LT', 3545319),\n\t\t\t'53' => array('Luxembourg', 'lux:ger:fre', 'eu', 'LU', 497538),\n\t\t\t'180' => array('Macau', 'chi:por', 'as', 'MO', 567957),\n\t\t\t'64' => array('Macedonia, Republic of', 'mac', 'eu', 'MK', 2072086),\n\t\t\t'181' => array('Madagascar', 'mag:fre:eng', 'af', 'MG', 21281844),\n\t\t\t'182' => array('Malawi', 'eng:chw', 'af', 'MW', 15447500),\n\t\t\t'73' => array('Malaysia', 'mal', 'as', 'MY', 28274729),\n\t\t\t'78' => array('Maldives', 'dhi', 'af', 'MV', 395650),\n\t\t\t'183' => array('Mali', 'fre', 'af', 'ML', 13796354),\n\t\t\t'184' => array('Malta', 'mat:eng', 'eu', 'MT', 406771),\n\t\t\t'185' => array('Marshall Islands', 'mar:eng', 'au', 'MH', 65859),\n\t\t\t'186' => array('Martinique', 'fre', 'ma', 'MQ', 0),\n\t\t\t'187' => array('Mauritania', 'ara:fre', 'af', 'MR', 3205060),\n\t\t\t'188' => array('Mauritius', 'eng:fre', 'af', 'MU', 1294104),\n\t\t\t'189' => array('Mayotte', 'fre', 'af', 'YT', 231139),\n\t\t\t'42' => array('Mexico', 'spa', 'ma', 'MX', 112468855),\n\t\t\t'190' => array('Micronesia, Federated States Of', 'eng', 'au', 'FM', 107154),\n\t\t\t'191' => array('Moldova, Republic Of', 'mol:rus:ukr:gag', 'eu', 'MD', 4317483),\n\t\t\t'192' => array('Monaco', 'fre:moq', 'eu', 'MC', 30586),\n\t\t\t'80' => array('Montenegro', 'mon:ser:bos:alb:cro', 'eu', 'ME', 666730),\n\t\t\t'193' => array('Mongolia', 'mgl', 'as', 'MN', 3086918),\n\t\t\t'194' => array('Montserrat', 'eng', 'ma', 'MS', 5118),\n\t\t\t'74' => array('Morocco', 'ara', 'af', 'MA', 31627428),\n\t\t\t'195' => array('Mozambique', 'por', 'af', 'MZ', 22061451),\n\t\t\t'196' => array('Myanmar', 'bur', 'as', 'MM', 53414374),\n\t\t\t'197' => array('Namibia', 'eng:ger:afr:osh', 'af', 'NA', 2128471),\n\t\t\t'198' => array('Nauru', 'eng:nau', 'au', 'NR', 9267),\n\t\t\t'199' => array('Nepal', 'nep', 'as', 'NP', 28951852),\n\t\t\t'25' => array('Netherlands, The', 'dut', 'eu', 'NL', 16783092),\n\t\t\t'200' => array('Netherlands Antilles', 'dut:eng:pap', 'ma', 'AN', 228693),\n\t\t\t'201' => array('New Caledonia', 'fre', 'au', 'NC', 252352),\n\t\t\t'39' => array('New Zealand', 'mao:eng', 'au', 'NZ', 4252277),\n\t\t\t'202' => array('Nicaragua', 'spa', 'ma', 'NI', 5995928),\n\t\t\t'203' => array('Niger', 'fre', 'af', 'NE', 15878271),\n\t\t\t'204' => array('Nigeria', 'eng', 'af', 'NG', 152217341),\n\t\t\t'205' => array('Niue', 'niu:eng', 'au', 'NU', 1354),\n\t\t\t'206' => array('Norfolk Island', 'eng:nfk', 'au', 'NF', 2155),\n\t\t\t'207' => array('Northern Mariana Islands', 'eng:cha:car', 'au', 'MP', 48317),\n\t\t\t'6' => array('Norway', 'nor', 'eu', 'NO', 4676305),\n\t\t\t'208' => array('Oman', 'ara', 'as', 'OM', 2967717),\n\t\t\t'209' => array('Pakistan', 'urd', 'as', 'PK', 184404791),\n\t\t\t'210' => array('Palau', 'eng:pal', 'au', 'PW', 20879),\n\t\t\t'211' => array('Palestinian Territory, Occupied', 'ara', 'as', 'PS', 0),\n\t//\t\t'57' => array('Palestine', '', ''),\n\t\t\t'45' => array('Panama', 'spa', 'ma', 'PA', 3410676),\n\t\t\t'212' => array('Papua New Guinea', 'eng:tok:hir', 'au', 'PG', 6064515),\n\t\t\t'213' => array('Paraguay', 'spa:gua', 'sa', 'PY', 6375830),\n\t\t\t'67' => array('Peru', 'spa', 'sa', 'PE', 29907003),\n\t\t\t'54' => array('Philippines, The', 'fil:eng', 'as', 'PH', 99900177),\n\t\t\t'214' => array('Pitcairn Islands', 'eng:pit', 'ma', 'PN', 48),\n\t\t\t'7' => array('Poland', 'pol', 'eu', 'PL', 38463689),\n\t\t\t'8' => array('Portugal', 'por', 'eu', 'PT', 10735765),\n\t//\t\t'319' => array('Pridnestrovian Moldavian Republic', '', '', ''),\n\t\t\t'215' => array('Puerto Rico', 'spa:eng', 'ma', 'PR', 3978702),\n\t\t\t'216' => array('Qatar', 'ara', 'as', 'QA', 840926),\n\t\t\t'217' => array('Reunion', 'fre', 'eu', 'RE', 0),\n\t\t\t'27' => array('Romania', 'rom', 'eu', 'RO', 21959278),\n\t\t\t'32' => array('Russian Federation', 'rus', 'as', 'RU', 139390205),\n\t\t\t'218' => array('Rwanda', 'kin:fre:eng', 'af', 'RW', 11055976),\n\t\t\t'219' => array('Saint Kitts And Nevis', 'eng', 'ma', 'KN', 49898),\n\t\t\t'220' => array('Saint Lucia', 'eng:ant', 'ma', 'LC', 160922),\n\t\t\t'221' => array('Saint Vincent And The Grenadines', 'eng', 'ma', 'VC', 104217),\n\t\t\t'222' => array('Samoa', 'eng:sam', 'ma', 'WS', 192001),\n\t\t\t'223' => array('San Marino', 'ita', 'eu', 'SM', 31477),\n\t\t\t'224' => array('Sao Tome And Principe', 'por', 'af', 'ST', 175808),\n\t\t\t'59' => array('Saudi Arabia', 'ara', 'as', 'SA', 25731776),\n\t\t\t'225' => array('Senegal', 'fre:wol', 'af', 'SN', 12323252),\n\t\t\t'81' => array('Serbia', 'ser:hun:slo:rom:cro:alb', 'eu', 'RS', 7344847),\n\t\t\t#'312' => array('Serbia and Montenegro', 'ser', 'eu', 'CS', 0),\n\t\t\t'226' => array('Seychelles', 'eng:fre', 'af', 'SC', 88340),\n\t\t\t'227' => array('Sierra Leone', 'eng', 'af', 'SL', 5245695),\n\t\t\t'52' => array('Singapore', 'eng:mal:man:tam', 'as', 'SG', 4701069),\n\t\t\t'4' => array('Slovakia', 'slo', 'eu', 'SK', 5470306),\n\t\t\t'41' => array('Slovenia', 'slv', 'eu', 'SI', 2003136),\n\t\t\t'228' => array('Solomon Islands', 'eng', 'au', 'SB', 559198),\n\t\t\t'229' => array('Somalia', 'som:eng:ita:ara', 'af', 'SO', 10112453),\n\t\t\t'3' => array('South Africa', 'afr:zul:xho:nso:tsw:sot:tso', 'af', 'ZA', 49109107),\n\t\t\t'313' => array('South Georgia and the South Sandwich Islands', 'eng', 'sa', 'GS', 0),\n\t//\t\t'317' => array('South Ossetia, Republic of', '', '', ''),\n\t\t\t'233' => array('South Sudan', 'ara:eng', 'af', 'SS', 0),\n\t\t\t'5' => array('Spain', 'spa', 'eu', 'ES', 46505963),\n\t\t\t'230' => array('Sri Lanka', 'sin:tam', 'as', 'LK', 21513990),\n\t\t\t'231' => array('St. Helena', 'eng', 'ma', 'sa', 7670),\n\t\t\t'232' => array('St. Pierre And Miquelon', 'fre', 'na', 'pm', 0),\n\t\t\t'233' => array('Sudan', 'ara:eng', 'af', 'SD', 43939598),\n\t\t\t'235' => array('Suriname', 'dut:sra', 'af', 'SR', 486618),\n\t//\t\t'236' => array('Svalbard And Jan Mayen Islands'), 2 COUNTRIES\n\t\t\t'237' => array('Swaziland', 'eng:swt', 'af', 'SZ', 1354051),\n\t\t\t'24' => array('Sweden', 'swe', 'eu', 'SE', 9074055),\n\t\t\t'43' => array('Switzerland', 'ger:fre:ita:rom', 'eu', 'CH', 7623438),\n\t\t\t'240' => array('Syrian Arab Republic', 'syr', 'as', 'SY', 22198110),\n\t\t\t'300' => array('Taiwan', 'tai:chi', 'as', 'TW', 23024956),\n\t\t\t'241' => array('Tajikistan', 'taj', 'as', 'TJ', 7487489),\n\t\t\t'242' => array('Tanzania, United Republic Of', 'swa:eng', 'af', 'TZ', 0),\n\t\t\t'65' => array('Thailand', 'tha', 'as', 'TH', 67089500),\n\t\t\t'243' => array('Timor-Leste', 'tet:por', 'au', 'tl', 0),\n\t\t\t'244' => array('Togo', 'fre', 'af', 'TG', 6587239),\n\t\t\t'245' => array('Tokelau', 'tol:eng', 'au', 'TK', 1400),\n\t\t\t'246' => array('Tonga', 'ton:eng', 'au', 'TO', 122580),\n\t\t\t'34' => array('Trinidad & Tobago', 'eng:spa', 'ma', 'TT', 1228691),\n\t\t\t'320' => array('Tristan da Cunha', 'eng', 'af', 'SH', 0),\n\t\t\t'70' => array('Tunisia', 'ara', 'af', 'TN', 10589025),\n\t\t\t'61' => array('Turkey', 'tur', 'as', 'TR', 77804122),\n\t\t\t'247' => array('Turkmenistan', 'tkm:rus:uzb:dar', 'as', 'TM', 4940916),\n\t\t\t'248' => array('Turks And Caicos Islands', 'eng', 'ma', 'TC', 23528),\n\t\t\t'249' => array('Tuvalu', 'tuv', 'au', 'TV', 10472),\n\t\t\t'250' => array('Uganda', 'eng:swa', 'af', 'UG', 33398682),\n\t\t\t'58' => array('Ukraine', 'ukr', 'eu', 'UA', 45415596),\n\t\t\t'251' => array('United Arab Emirates', 'ara', 'as', 'AE', 4975593),\n\t\t\t'2' => array('United Kingdom', 'eng', 'eu', 'GB', 62348447),\n\t\t\t'1' => array('United States', 'eng', 'na', 'US', 310232863),\n\t\t\t'252' => array('United States Minor Outlying Islands', 'eng', 'ma', 'UM', 0),\n\t\t\t'68' => array('Uruguay', 'spa', 'sa', 'UY', 3510386),\n\t\t\t'253' => array('Uzbekistan', 'uzb', 'as', 'UZ', 27865738),\n\t\t\t'254' => array('Vanuatu', 'bis:eng:fre', 'au', 'VU', 221552),\n\t\t\t'49' => array('Venezuela', 'spa', 'sa', 'VE', 27223228),\n\t\t\t'50' => array('Vietnam', 'vie', 'as', 'VN', 89571130),\n\t\t\t'255' => array('Virgin Islands (British)', 'eng', 'ma', 'VG', 24939),\n\t\t\t'256' => array('Virgin Islands (U.S.)', 'eng', 'ma', 'VI', 109750),\n\t\t\t'257' => array('Wallis And Futuna Islands', 'fre:uve:fut', 'au', 'WF', 0),\n\t\t\t'258' => array('Western Sahara', 'ara:spa', 'af', 'eh', 491519),\n\t\t\t'259' => array('Yemen', 'ara', 'as', 'YE', 23495361),\n\t\t\t'260' => array('Zambia', 'eng', 'af', 'ZM', 13460305),\n\t\t\t'270' => array('Zimbabwe', 'eng:sho:sid', 'af', 'ZW', 11651858),\n\t\t);\t\n\t}", "title": "" }, { "docid": "79a30a2a9dd2dec8e7cf4d5f8536d2be", "score": "0.65276486", "text": "function country()\n {\n $this->data['result'] = \\DB::table('countries')->get();\n return view('backend.pages.country')->with($this->data);\n }", "title": "" } ]
91d1e00add8b9b7bb82da136efd0300a
Update item based on the resource given
[ { "docid": "c45baaabe2bd3d4c40a40e6b7d210f05", "score": "0.70925194", "text": "public function updateItem($resource, $id)\n\t{\n\t\t$this->ci->load->model($resource['model'], 'model');\n\n\t\t$postData = $this->ci->input->post(null, true);\n\n\t\t//@todo: Get the fillable fields and run a filter on what was given\n\t\t$this->ci->model->updateItem($id, $postData);\n\n\t\treturn 'Resource updated successfully';\n\t}", "title": "" } ]
[ { "docid": "b5d2b22e695863a96f5a335c883dea91", "score": "0.7494782", "text": "public function update($item);", "title": "" }, { "docid": "43d7f9bca361bad6cdea5587611546b3", "score": "0.70415825", "text": "public function updated(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "21e2170a97cbb37503e03459bdfaab4f", "score": "0.7021828", "text": "public function update(Request $request, $item): ItemResource\n {\n $itemElement = Item::find($item);\n $itemElement->update($request->all());\n return new ItemResource($itemElement);\n }", "title": "" }, { "docid": "cfdd7ff8fee991c8b9d8fd881fbe63cb", "score": "0.69662416", "text": "public function update(resource $resource) {\n $stmt = $this->db->prepare(\"UPDATE resource set id=?,name=?,description=?,quantity=?,type=? where id=?\");\n $stmt->execute(array($resource->getIdresource(), $resource->getName(),$resource->getDescription(),\n $resource->getQuantity(),$resource->getType(),$resource->getIdresource()));\n }", "title": "" }, { "docid": "54a77123146208788bd98dae51b5b2b0", "score": "0.6922212", "text": "public function update(&$item)\n {\n }", "title": "" }, { "docid": "3a50a43d393625d85bd96071942ad788", "score": "0.67835784", "text": "public function updateResource(ResourceInterface $resource);", "title": "" }, { "docid": "026a1bd48519af7204343913d3efc115", "score": "0.67727536", "text": "public function update(StoreItemRequest $request, $item)\n {\n $item_id = $item;\n $item = Item::findOrFail($item);\n\n $item->update($request->only(['name','menu_id','item_id']));\n Cache::forget(\"items_$item_id\");\n return new ItemResource($item);\n }", "title": "" }, { "docid": "33cbd1504f7d33778f8a88efe92d1174", "score": "0.67472416", "text": "public function testUpdateBundleItem()\n {\n }", "title": "" }, { "docid": "199338052dcabf9f5f675ec81a0b1154", "score": "0.66809165", "text": "public function testUpdateEntitlementItem()\n {\n }", "title": "" }, { "docid": "bde449baf550552e043ec18452e05f5c", "score": "0.6667129", "text": "function update($resource, $content)\n {\n }", "title": "" }, { "docid": "dcba223b3338212bab155a369f4316b8", "score": "0.66653407", "text": "public function updateItem( $id, $preparedItem ) {\n\t}", "title": "" }, { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.66478586", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "d9c997684b862f3799e902794c873367", "score": "0.6603291", "text": "public function updateItem(array $data);", "title": "" }, { "docid": "fa6dcdcaf17f847fc1df1658748b2864", "score": "0.6484957", "text": "public function update_item($args, $assoc_args)\n {\n }", "title": "" }, { "docid": "790939d3b14a349739e925fa726ebd52", "score": "0.64571625", "text": "abstract protected function updateItem(Collection $collection, array $item, $result);", "title": "" }, { "docid": "d44885913c572a845880936f509333b6", "score": "0.6453195", "text": "public function updateItem(int|string $id): JsonApiObject|JsonApiResponse;", "title": "" }, { "docid": "a559f37e75179b0d28cc5c159de5bdee", "score": "0.6449113", "text": "public function updateItem($item_id, array $update_data = array());", "title": "" }, { "docid": "a98d77e4417d6ab57801225f8f3afdaa", "score": "0.6447716", "text": "function update_item()\n\t{\n\t\tglobal $IN, $TMPL;\n\n\t\t$entry_id = $this->_fetch_param('entry_id');\n\n\t\t$row_id = ($this->_fetch_param('row_id') !== FALSE) ? $this->_fetch_param('row_id') : $this->_fetch_param('index');\n\n\t\tif ($row_id !== FALSE || $entry_id !== FALSE)\n\t\t{\n\t\t\tif ($IN->GBL('quantity', 'POST'))\n\t\t\t{\n\t\t\t\t$this->_change_quantity($entry_id, $this->_xss_clean($IN->GBL('quantity', 'POST')), $row_id);\n\t\t\t}\n\n\t\t\t$item_options = $this->_xss_clean($IN->GBL('item_options', 'POST'));\n\n\t\t\tif ($item_options && is_array($item_options))\n\t\t\t{\n\t\t\t\t$item = $this->_get_cart_item($entry_id, $row_id);\n\n\t\t\t\tforeach ($item_options as $key => $value)\n\t\t\t\t{\n\t\t\t\t\t$item['item_options'][$key] = $value;\n\t\t\t\t}\n\n\t\t\t\t$this->_session_start();\n\n\t\t\t\tif (isset($_SESSION['cartthrob']['items'][$row_id]))\n\t\t\t\t{\n\t\t\t\t\t$_SESSION['cartthrob']['items'][$row_id] = $item;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$this->_redirect($this->_get_redirect_url());\n\t}", "title": "" }, { "docid": "db8228d3fabd3ade19f7548f2919e46f", "score": "0.64471304", "text": "public function update() {\n\t\ttry {\n\t\t\t$this->validateUpdate();\n\n\t\t\t$sth = $this->context->connection->prepare(\n\t\t\t\t\"UPDATE application_definition SET\n\t\t\t\t\ttitle = :title, description = :description,\n\t\t\t\t\taction = :location, type = :type\n\t\t\t\tWHERE instance_id = :instId AND application_definition_id = :id\");\n\n\t\t\t$this->context->connection->bindInstance($sth);\n\t\t\t$sth->bindValue(\":id\", $this->id, \\PDO::PARAM_INT);\n\n\t\t\t$sth->bindValue(\":title\", $this->title, \\PDO::PARAM_STR);\n\t\t\t$sth->bindValue(\n\t\t\t\t\":description\", $this->description, \\PDO::PARAM_STR);\n\t\t\t$sth->bindValue(\":location\", $this->location, \\PDO::PARAM_STR);\n\t\t\t$sth->bindValue(\":type\", $this->type, \\PDO::PARAM_INT);\n\n\t\t\t$sth->execute();\n\n\t\t\tunset($this->context->cache[$this->id]);\n\n\t\t} catch(\\PDOException $e) {\n\t\t\tthrow new \\Scrivo\\ResourceException($e);\n\t\t}\n\t}", "title": "" }, { "docid": "11b3e054afd82d1f2f0b07a443ddb617", "score": "0.64088815", "text": "public function update(Request $request, Item $item)\n {\n //\n }", "title": "" }, { "docid": "11b3e054afd82d1f2f0b07a443ddb617", "score": "0.64088815", "text": "public function update(Request $request, Item $item)\n {\n //\n }", "title": "" }, { "docid": "11b3e054afd82d1f2f0b07a443ddb617", "score": "0.64088815", "text": "public function update(Request $request, Item $item)\n {\n //\n }", "title": "" }, { "docid": "11b3e054afd82d1f2f0b07a443ddb617", "score": "0.64088815", "text": "public function update(Request $request, Item $item)\n {\n //\n }", "title": "" }, { "docid": "11b3e054afd82d1f2f0b07a443ddb617", "score": "0.64088815", "text": "public function update(Request $request, Item $item)\n {\n //\n }", "title": "" }, { "docid": "bcfacae26b6c8104e66660d4047010c9", "score": "0.63391006", "text": "public function update(Request $request, $id)\n {\n // validate the input\n $validatedData = $request->validate(['completed' => 'integer']);\n \n $item = Item::find($id);\n $item->completed = $validatedData['completed'];\n $item->save();\n\n ItemResource::withoutWrapping();\n return new ItemResource($item);\n }", "title": "" }, { "docid": "70667eb6cc902a3a33b32be7cb1f72f1", "score": "0.6313969", "text": "public function updateResource(\\Illuminate\\Http\\Request &$request, &$model): void\n {\n }", "title": "" }, { "docid": "e3033c201a994c0f93a9e724a921193d", "score": "0.62066495", "text": "public function updateAction()\n\t{\n\t\t/* Entity */\n\t\t$entity = $this->getEntityRepository()->find(\n\t\t\t(int) $this->getRequest()->getParam('id', false)\n\t\t);\n\t\n\t\t$entity->saveFromArray((array) $this->getData()->getParams());\n\n\t\tswitch($this->_helper->contextSwitch()->getCurrentContext()) {\n\t\t\tcase 'dojo':\n\t\t\tcase 'json':\n\t\t\tcase 'rest':\n\t\t\tcase 'xml':\n\t\t\tcase 'html': $this->view->status = true; break;\n\t\t\t\t\n\t\t\tdefault: $this->respondOk($entity); break;\n\t\t}\n\t}", "title": "" }, { "docid": "66229e7ff7e96a1be922222073599adf", "score": "0.6190346", "text": "abstract public function updateItem(Task $task, string $content);", "title": "" }, { "docid": "1f6ce25c50866c3549fa9f606d1416c9", "score": "0.61660105", "text": "abstract function update( Content $object );", "title": "" }, { "docid": "0ef9efb88131afd7bac2c14be513d8c1", "score": "0.6151819", "text": "public function update($item, array $data) {\n \n $item->purchase_id = e($data['purchase_id']); \n $item->product_id = e($data['product_id']); \n $item->unit_price = e($data['unit_price']); \n $item->quantity = e($data['quantity']); \n $item->tva_rate = e($data['tva_rate']); \n $item->montant_ttc = e($data['montant_ttc']); \n $item->save();\n\n return $item;\n }", "title": "" }, { "docid": "2caa054b3f6059c422c4487a9a41a0f4", "score": "0.6129814", "text": "public function update(Request $request, $id)\n {\n\n/************************************ */\n // Change the quantity of items\n/************************************ */\n\n }", "title": "" }, { "docid": "00eeef0f36f487155cb6f69dce1ea4ff", "score": "0.6124642", "text": "public function testUpdateItemSerial()\n {\n }", "title": "" }, { "docid": "acc7c7ca733a78950b879f10ddcc2b5a", "score": "0.6064331", "text": "public function update($id)\n\t{\n\t\t$data = Input::get();\n\n\t\t$model = $this->repo->find($id);\n\t\t$item = $this->repo->update($model, $data);\n\n\t\t$resource = new Item($item, $this->transformer);\n\n\t\treturn $this->response($resource, 200);\n\t}", "title": "" }, { "docid": "8bdd29a6dcef6d309bb99c04b4e43772", "score": "0.6060496", "text": "public function updateItem(){\r\n global $database;\r\n $udaje = array( \r\n \"name\" => $this->name ,\r\n \"popis\" => $this->popis ,\r\n \"count\" => $this->count,\r\n \"min_stav\" => $this->min_stav); \r\n $database->update(\"tovar\", $udaje, \"id\", $this->id);//ulozime do tabulky item pole ulozene v udaje podla identifikatora id s aktualnou hodnotou\r\n }", "title": "" }, { "docid": "f37a00aeaab43b7fb1bce5be6250aaea", "score": "0.605109", "text": "public function update()\n {\n $this->crud->hasAccessOrFail('update');\n\n // execute the FormRequest authorization and validation, if one is required\n $request = $this->crud->validateRequest();\n $data = $data = $request->except([\"_token\",\"_method\",\"http_referrer\",\"save_action\"]);\n // update the row in the db\n $item = Task::find($request->get($this->crud->model->getKeyName()));\n $item->update($data);\n $this->data['entry'] = $this->crud->entry = $item;\n $this->addMember($item, $data[\"user_id\"]);\n\n // show a success message\n \\Alert::success(trans('backpack::crud.update_success'))->flash();\n\n // save the redirect choice for next time\n $this->crud->setSaveAction();\n\n return $this->crud->performSaveAction($item->getKey());\n }", "title": "" }, { "docid": "47bc1e4206c794830a67eec3e85c2664", "score": "0.604632", "text": "abstract public function update( $data );", "title": "" }, { "docid": "cb3b0211e4967e130f4a459a9815d828", "score": "0.604328", "text": "function updateItem() { \r\n $client = Zend_Gdata_AuthSub::getHttpClient($_POST['token']);\r\n $gdata = new Zend_Gdata_Gbase($client);\r\n \r\n $itemUrl = $_POST['link'];\r\n $updatedEntry = $gdata->getGbaseItemEntry($itemUrl);\r\n \r\n // Update title\r\n $updatedEntry->title = $gdata->newTitle(trim($_POST['recipe_title']));\r\n\r\n // Update content\r\n $updatedEntry->content = $gdata->newContent($_POST['recipe_text']);\r\n $updatedEntry->content->type = 'text';\r\n\r\n // Update item-specific attributes\r\n $baseAttributeArr = $updatedEntry->getGbaseAttribute('cuisine');\r\n if (is_object($baseAttributeArr[0])) {\r\n $baseAttributeArr[0]->text = $_POST['cuisine'];\r\n }\r\n \r\n $baseAttributeArr = $updatedEntry->getGbaseAttribute('cooking_time');\r\n if (is_object($baseAttributeArr[0])) {\r\n $baseAttributeArr[0]->text = \r\n $_POST['time_val'] . ' ' . $_POST['time_units'];\r\n }\r\n \r\n $baseAttributeArr = $updatedEntry->getGbaseAttribute('main_ingredient');\r\n if (is_object($baseAttributeArr[0])) {\r\n $baseAttributeArr[0]->text = $_POST['main_ingredient'];\r\n }\r\n \r\n $baseAttributeArr = $updatedEntry->getGbaseAttribute('serving_count');\r\n if (is_object($baseAttributeArr[0])) {\r\n $baseAttributeArr[0]->text = $_POST['serves'];\r\n }\r\n\r\n $dryRun = false;\r\n $gdata->updateGbaseItem($updatedEntry, $dryRun); \r\n \r\n // Alternatively, you can call the save() method directly on the entry\r\n // $updatedEntry->save();\r\n \r\n return true;\r\n}", "title": "" }, { "docid": "cae14832dc2645ea5cbd3c559aaa4b7e", "score": "0.6036457", "text": "public function update(Request $request, $id)\n {\n $quizoItem = QuizoItem::findOrFail($id);\n request()->validate([\n 'item_id' => 'required|integer',\n 'category' => 'required|integer',\n 'name' => 'required|string|max:255'\n ]);\n $quizoItem->user_id = request('item_id');\n $quizoItem->level = request('category');\n $quizoItem->progress = request('name');\n\n $quizoItem->save();\n\n\n return new QuizoItemResource($quizoItem);\n\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.6030348", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "2904236f5e36ff123d094cc8447dc0be", "score": "0.6023703", "text": "public function updateItem(StorableInterface $item, array $properties = null);", "title": "" }, { "docid": "f68c1327dc4683df4e191d8155822cd6", "score": "0.6021489", "text": "public function updateItem($data, $id){\n\n $where = $this->getAdapter()->quoteInto('id = ?', (int)$id);\n return $this->update($data, $where);\n\n }", "title": "" }, { "docid": "8cd20d00377121b72e7e70d56ae3b421", "score": "0.60208106", "text": "public function update(Request $request, Product $product)\n {\n //Get the product\n $the_product = Product::where('product_id',$product->product_id)->first();\n\n //Update the product\n $product->supplier_id = $request->supplier_id;\n\n //Return product if updated\n if ($product->update()){\n return new ProductResource($product);\n } \n }", "title": "" }, { "docid": "4722d83e855f79d1031883e06424eac0", "score": "0.6015189", "text": "public function UpdateItem($user, array $input)\n {\n \n }", "title": "" }, { "docid": "df6c7acef4541105b5bc3ce3650d59f5", "score": "0.60122937", "text": "public function updateResourceById(Request $request, $id = 0);", "title": "" }, { "docid": "7a31503833f2ec1b42d6b6fb0588cef3", "score": "0.60076207", "text": "public function update()\r\n\t{\r\n\t\t$oShop_Item = Core_Entity::factory('Shop_Item')->find($this->shop_item_id);\r\n\r\n\t\tif (!is_null($oShop_Item->id))\r\n\t\t{\r\n\t\t\t$aSiteuserGroups = array(0, -1);\r\n\t\t\tif (Core::moduleIsActive('siteuser'))\r\n\t\t\t{\r\n\t\t\t\t$oSiteuser = Core_Entity::factory('Siteuser', $this->siteuser_id);\r\n\r\n\t\t\t\tif ($oSiteuser)\r\n\t\t\t\t{\r\n\t\t\t\t\t$aSiteuser_Groups = $oSiteuser->Siteuser_Groups->findAll();\r\n\t\t\t\t\tforeach ($aSiteuser_Groups as $oSiteuser_Group)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$aSiteuserGroups[] = $oSiteuser_Group->id;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Проверяем право пользователя добавить этот товар в корзину\r\n\t\t\tif (in_array($oShop_Item->getSiteuserGroupId(), $aSiteuserGroups))\r\n\t\t\t{\r\n\t\t\t\t// Если передано количество товара и товар обычный или электронный\r\n\t\t\t\tif ($oShop_Item->type == 1 || $oShop_Item->type == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Нужно получить реальное количество товара, если товар электронный\r\n\t\t\t\t\tif ($oShop_Item->type == 1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Получаем количество электронного товара на складе\r\n\t\t\t\t\t\t$iShop_Item_Digitals = $oShop_Item->Shop_Item_Digitals->getCountDigitalItems();\r\n\r\n\t\t\t\t\t\tif ($iShop_Item_Digitals != -1 && $iShop_Item_Digitals < $this->quantity)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$this->quantity = $iShop_Item_Digitals;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Товар обычный, поэтому intval()\r\n\t\t\t\t\t$this->quantity = intval($this->quantity);\r\n\t\t\t\t}\r\n\t\t\t\t// Если делимый товар\r\n\t\t\t\telseif ($oShop_Item->type == 2)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Товар делимый, поэтому floatval()\r\n\t\t\t\t\t$this->quantity = floatval($this->quantity);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Проверять остаток для обычных товаров\r\n\t\t\t\tif ($this->checkStock && ($oShop_Item->type == 0 || $oShop_Item->type == 2))\r\n\t\t\t\t{\r\n\t\t\t\t\t$iRest = $oShop_Item->getRest();\r\n\t\t\t\t\t$iRest < $this->quantity && $this->quantity = $iRest;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ($this->quantity > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Проверяем наличие данных о пользователе\r\n\t\t\t\t\tif ($this->siteuser_id)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$oShop_Cart = Core_Entity::factory('Shop_Cart')\r\n\t\t\t\t\t\t\t->getByShopItemIdAndSiteuserId($this->shop_item_id, $this->siteuser_id, FALSE);\r\n\r\n\t\t\t\t\t\tif (is_null($oShop_Cart))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$oShop_Cart = Core_Entity::factory('Shop_Cart');\r\n\t\t\t\t\t\t\t$oShop_Cart->shop_item_id = $this->shop_item_id;\r\n\t\t\t\t\t\t\t$oShop_Cart->siteuser_id = $this->siteuser_id;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Вставляем данные в таблицу корзины\r\n\t\t\t\t\t\t$oShop_Cart->quantity = $this->quantity;\r\n\t\t\t\t\t\t$oShop_Cart->postpone = $this->postpone;\r\n\t\t\t\t\t\t$oShop_Cart->shop_id = $oShop_Item->shop_id;\r\n\t\t\t\t\t\t$oShop_Cart->shop_warehouse_id = $this->shop_warehouse_id;\r\n\t\t\t\t\t\t$oShop_Cart->save();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tCore_Session::start();\r\n\t\t\t\t\t\t$_SESSION['hostcmsCart'][$oShop_Item->shop_id][$this->shop_item_id] = array(\r\n\t\t\t\t\t\t\t'quantity' => $this->quantity,\r\n\t\t\t\t\t\t\t'postpone' => $this->postpone,\r\n\t\t\t\t\t\t\t'siteuser_id' => $this->siteuser_id,\r\n\t\t\t\t\t\t\t'shop_warehouse_id' => $this->shop_warehouse_id\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\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->delete();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $this;\r\n\t}", "title": "" }, { "docid": "b1859a3ec162e80294beaa1303683e68", "score": "0.6004791", "text": "public function updateItem($request, $itemId)\n {\n // Buscamos la opcion\n $inventoryItem = InventoryItem::findOrFail($itemId);\n\n // Actualizamos la InventoryItem mediante mass assigment\n $inventoryItem->fill($request->input(\"item\"));\n $inventoryItem->save();\n\n // Todo fue bien, se devuelve el modelo (InventoryItem)\n return $inventoryItem;\n }", "title": "" }, { "docid": "8f367b9603d901c2805b00f942b3a021", "score": "0.5993079", "text": "public function update_order_item($item_id, $item);", "title": "" }, { "docid": "47fba9a6724aff1f40045e600894c4a0", "score": "0.59893596", "text": "public function updateItemById($itemKey, $id)\n {\n \n if(!is_null($itemKey)){\n $key = strtolower($itemKey);\n if($it = array_get($this->items, $key, null)){\n $query = $it->getQueryScope();\n $model = $query->find($id);\n $this->update($model);\n }else{\n throw new ItemNotFoundException('Item with key ' . $key . ' not found.' );\n }\n }\n }", "title": "" }, { "docid": "b50f0e367b5df49f80df9776779b4e98", "score": "0.59862936", "text": "public function updateItem($item)\n {\n //Create an array for the post data.\n $data = array();\n if($item instanceof Mage_Catalog_Model_Category)\n {\n //The item is a category, the sku will be category-<id>\n $data['product[sku]'] = 'category-' . $item->getId();\n\n //Prepare the error for later use.\n $error = $this->__('Something went wrong while updating the category SEO status.');\n\n //Obtain the score object for later use.\n $score = Mage::getModel('reload_seo/score')->loadById($item->getId(), 'category');\n $type = 'category';\n }\n else\n {\n //The item is a product, the sku will be used as is.\n $data['product[sku]'] = $item->getSku();\n\n //Prepare the error for later use.\n $error = $this->__('Something went wrong while updating the product SEO status.');\n\n //Obtain the score object for later use.\n $score = Mage::getModel('reload_seo/score')->loadById($item->getId(), 'product');\n $type = 'product';\n\n $data['product[images]'] = array();\n foreach($item->getMediaGalleryImages() as $image)\n {\n $data['product[images]'][] = array(\n 'url' => $image->getUrl(),\n 'name' => $image->getLabel(),\n );\n }\n }\n\n if($score->getKeywords() == null && Mage::getStoreConfig('reload/reload_seo_group/reload_seo_title_default'))\n {\n $score->generateKeywords($item->getName());\n }\n\n $data['product[product_id]'] = $type . '-' . $item->getId();\n $data['product[keywords]'] = $score->getKeywords();\n $data['product[store_id]'] = $item->getStoreId();\n\n //Obtain the field mapping by the type and loop over each field, obtain the data and store it.\n $fieldMapping = $this->getFieldMappings($type);\n foreach($fieldMapping as $external => $internal)\n {\n $data['product[' . $external . ']'] = $item->getData($internal);\n }\n\n //Create the url for the update.\n $url = $this->url . $this->version . 'seo/show?' . http_build_query(\n array(\n 'key' => Mage::getStoreConfig('reload/reload_seo_group/reload_seo_key'), \n 'language' => Mage::app()->getLocale()->getLocaleCode(),\n 'type' => $type,\n 'framework' => 'magento',\n 'website' => Mage::getBaseUrl(),\n )\n );\n\n //Check if the sku is not null\n if($data['product[sku]'] === null)\n {\n $data['product[sku]'] = '0';\n }\n\n //Execute the request.\n $result = $this->executeCurlRequest($url, $data);\n if($result === null || !array_key_exists('score', $result))\n {\n //Something went wrong, throw the prepared error.\n throw new Exception($error);\n }\n\n //Merge the result in the score object.\n $score->mergeFromResult($result);\n }", "title": "" }, { "docid": "42aa97589c13b81498758c10fb4cd53a", "score": "0.59711343", "text": "function update_data($data_update_item) {\n\t}", "title": "" }, { "docid": "991a545e685d79439ecf7278fe45785d", "score": "0.59697", "text": "public function testFedoraObjectUpdateOnItemEdit()\n {\n\n // Create item.\n $item = $this->_item();\n\n // Create Fedora object.\n $object = $this->_object($item);\n\n // Capture starting count.\n $count = $this->objectsTable->count();\n\n // Set exhibit id.\n $this->request->setMethod('POST')\n ->setPost(array(\n 'public' => 1,\n 'featured' => 0,\n 'Elements' => array(),\n 'order' => array(),\n 'tags' => '',\n 'server' => 1,\n 'pid' => 'pid:test2',\n 'dsids' => array('DC2', 'content2'),\n 'import' => 0,\n 'csrf_token' => $this->_getCsrfToken()\n )\n );\n\n // Hit item edit.\n $this->dispatch('items/edit/' . $item->id);\n\n // +0 editions.\n $this->assertEquals($this->objectsTable->count(), $count);\n\n // Get out service and check.\n $object = $this->_getLastRow($this->objectsTable);\n $this->assertEquals($object->server_id, 1);\n $this->assertEquals($object->pid, 'pid:test2');\n $this->assertEquals($object->dsids, 'DC2,content2');\n\n }", "title": "" }, { "docid": "038cf938e4e5409399c5bb0b5c5d035c", "score": "0.59556246", "text": "public function updateRecipe($data);", "title": "" }, { "docid": "9e2b1119c216b64c2bf51bd25c71a6e2", "score": "0.5953834", "text": "public function update()\n {\n Log::debug(sprintf('[#%s] Retrieving inventory', __CLASS__));\n\n // Retrieves the player inventory metadata\n $playerInventory = $this->getRequestService()->getInventory();\n\n // Retrieve the inventory items\n $inventoryItems = $playerInventory->getInventoryDelta();\n\n // Set the items\n $this->items = Items::create($inventoryItems);\n\n Log::debug(sprintf('[#%s] Retrieved inventory.', __CLASS__));\n }", "title": "" }, { "docid": "6dfe3c1426bb57ab67d0eb810bb6bac4", "score": "0.59486485", "text": "public function postUpdate() {\n $api = new \\todo\\Api();\n\n // count items which matches specified id and currently logged in user\n $count = Item::where('id', '=', Input::get('id'))\n ->where('user_id', '=', Auth::user()->id)\n ->count();\n\n if (!$count) {\n $api->setErrorMessage('Item could not be updated.');\n return $api->getResponse();\n }\n\n if ($item = Item::find(Input::get('id'))) {\n $item->title = Input::get('title');\n $item->priority = Input::get('priority', 1);\n $item->due_date = Input::get('date');\n }\n\n if (!$this->_prep_item($api, $item)) {\n return $api->getResponse();\n }\n\n if ($item->save()) {\n $api->setStatusMessage('Item \"' . str_limit($item->title, 30, '...') . '\" saved.');\n }\n else {\n $api->setErrorMessage('An error occurred.');\n }\n\n return $api->getResponse();\n }", "title": "" }, { "docid": "5a71a402058c5ae3966176b8675a5513", "score": "0.5931253", "text": "public function writeUpdatedItem($item){\n if(is_string($item)){\n $itemKey = $item;\n $item = $this->items->getItem($itemKey);\n }\n $updateItemJson = json_encode($item->updateItemObject());\n $etag = $item->etag;\n \n $aparams = array('target'=>'item', 'itemKey'=>$item->itemKey);\n $reqUrl = $this->apiRequestUrl($aparams) . $this->apiQueryString($aparams);\n $response = $this->_request($reqUrl, 'PUT', $updateItemJson, array('If-Match'=>$etag));\n return $response;\n }", "title": "" }, { "docid": "46e4af4759390b81fcec09d9d6e6aaa9", "score": "0.5930613", "text": "public function testUpdateMenuSectionItem()\n {\n }", "title": "" }, { "docid": "8630c9391e187dee0ad16562c7859222", "score": "0.5927202", "text": "public function update(Request $request, $class_id, $resource)\n {\n //\n }", "title": "" }, { "docid": "72020ca078f39bec759978049b853e74", "score": "0.59167004", "text": "public function testUpdate()\n {\n $model = factory($this->model)->create();\n\n $this->actingAs($this->actingAs, 'api')\n ->putJson(route($this->route . '.update', [$this->route => $model->id]), factory($this->model)->make()->toArray())\n ->assertStatus(200);\n }", "title": "" }, { "docid": "7b0a6b1bc877e4a66bb12e33a8f465b6", "score": "0.59062773", "text": "private function update() {\n\t\tif(count($this->args) >= 4) {\n\t\t\t$updateField = $this->args[1];\n\t\t\t$val = $this->args[2];\n\t\t\t$id = $this->args[3];\n\t\t\t//Query for product\n\t\t\t$title = $this->Product->find('first', array(\n\t\t\t\t'fields' => array('title'),\n\t\t\t\t'conditions' => array('id' => $id)\n\t\t\t));\n\t\t\t$title = $title['Product']['title'];\n\n\t\t\tif(!empty($title)) {\n\t\t\t\t//Update operations\n\t\t\t\tswitch($updateField) {\n\t\t\t\t\tcase 'title':\n\t\t\t\t\tcase 'name':\n\t\t\t\t\t\t$this->updateField($id, 'title', $val);\n\t\t\t\t\t\t$this->renameImage($title, $val);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'price':\n\t\t\t\t\t\t$this->updateField($id, 'price', $val);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'image':\n\t\t\t\t\t\tif(!empty($title)) {\n\t\t\t\t\t\t\t$this->cpImg($val, $title);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t'Unknown field';\n\t\t\t\t\t\t$this->help('update');\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->out('Product ID not found. Please determine product ID use list command before proceeding.');\n\t\t\t\t$this->help('list');\n\t\t\t}\n\t\t} else {\n\t\t\t$this->out('Missing arguments');\n\t\t\t$this->help('update');\n\t\t}\n\t}", "title": "" }, { "docid": "01d94ca796e9e9bfc819f4ca243b5484", "score": "0.5906015", "text": "public function updateItem($rowId, $quantity);", "title": "" }, { "docid": "08787fbcdf1f1dfce03ab185d34d1138", "score": "0.58939433", "text": "public function update($resourceId)\n {\n return $this->create();\n }", "title": "" }, { "docid": "a889254dc2c2499c31719df53b70ffae", "score": "0.58796585", "text": "public function updateItem($id, $data)\n {\n $item = ServiceModel::findOrFail($id);\n\n $item->title = $data['title'];\n $item->code = $data['code'];\n $item->status = $data['status'];\n\n $item->save();\n\n return $item;\n }", "title": "" }, { "docid": "04f59a485bb2c65f809ced1c1ba190fd", "score": "0.5874964", "text": "public function testUpdateProduct()\n {\n }", "title": "" }, { "docid": "5a9d8f35441b3d765b8c94eeefcd24bd", "score": "0.5868763", "text": "public function update(Request $request, Resource $resource)\n {\n //\n // $this->authorize('update',Resource::class);\n // $input=$request->all();\n // $resource->update('$input');\n // return redirect('resource/'.$resource->id);\n return response()->json($resource);\n }", "title": "" }, { "docid": "f9cb9bc841cbd3148cc72facf669a93c", "score": "0.58639854", "text": "public function updatedItems()\n {\n $items = $this->items;\n $this->mount();\n $this->items = $items;\n }", "title": "" }, { "docid": "e549fec60fb1f163798c7355f33ef0ab", "score": "0.5862709", "text": "public function update(Request $request, Sales_item $sales_item)\n {\n //\n }", "title": "" }, { "docid": "04b27b8eab8f850d8aff315a90ef48d0", "score": "0.58600837", "text": "public function patchItem( EarthIT_Schema_ResourceClass $rc, $itemId, array $itemData );", "title": "" }, { "docid": "53e1c575c0df8168f9e40c3e9356b242", "score": "0.5854116", "text": "public function updateItem($item)\n {\n $this->db->where('itemId', $item['itemId']);\n $this->db->update('items', $item);\n }", "title": "" }, { "docid": "51bb195e77594db942325db03a852a89", "score": "0.58515185", "text": "public function update(UpdateItem $request, Item $item)\n {\n $this->itemRepository->update($item, $request->all());\n\n\n \n\n return redirect()->route('admin.item.index')->withFlashSuccess(__('alerts.frontend.item.updated'));\n\n }", "title": "" }, { "docid": "f81b8ef5d0e5df242946fd8c76d1df1a", "score": "0.5840575", "text": "public function update($id,$qty)\n { \n \tif(isset($this->items[$id])) {\n\t\t\t\n $this->items[$id]->setQuantity($qty);\n\t\t}\n else throw new \\Exception(\"Item no existent\");\n }", "title": "" }, { "docid": "e9ce8118ac3a53eb6575a02ddd4e26eb", "score": "0.5837601", "text": "function update(IEntity $entity);", "title": "" }, { "docid": "cc8c38881f17fee7751f5d31c55e85d8", "score": "0.5834295", "text": "public function update(){}", "title": "" }, { "docid": "d714dc2dfa30dfbc4e9d164f6ae19c19", "score": "0.5816253", "text": "public function update()\n\t{\n\t\t$input = Input::all();\n\t\t$id = $input['rowId'];\n\t\t$data = array(\n\t\t\t'product_id' => $input['edit_pro_name'],\n\t\t\t'eng_no' => $input['editEngineNo'],\n\t\t\t'chs_no' => $input['edit_chs_no'],\n\t\t\t'color' => $input['edit_pro_color'],\n\t\t\t'buy_rate' => $input['edit_pro_buy_rate'],\n\t\t\t'sell_rate' => $input ['edit_pro_sell_rate'],\n\t\t);\n\t\t$update = Inventory::where('id','=',$id)->update($data);\n\t\tif($update){\n\t\t\treturn json_encode(array('error'=>0,'success'=>1));\n\t\t} else {\n\t\t\treturn json_encode(array('error'=>1,'success'=>0));\n\t\t}\n\t}", "title": "" }, { "docid": "d5f1841ebdb62a6706aec8147b3a58dc", "score": "0.58139074", "text": "public function APIupdate(Request $request, $item_id=null)\n {\n // Is this a generic item update (different field names) ?\n if ($request->has('id') && $request->has('value') ) {\n $arr_id = explode('-', $request->id);\n $field_name = $arr_id[0];\n if (count($arr_id)>2) {\n $item_id = explode('-', $request->id)[3];\n }\n }\n\n // Is this a specific update of the song id?\n elseif ($item_id) {\n $field_name = 'song_id';\n $request->value = $request->song_id;\n }\n else { \n return response()->json(['status' => 404, 'data' => 'APIupdate: item_id missing!'], 404);\n }\n\n // Is this a notes update?\n if ($field_name == 'notes') {\n return $this->UpdateItemNotes($item_id, $request->value);\n }\n\n // As AJAX doesn't allow to send an 'empty' value, we send a \n // placeholder ('_') instead, which indicates that the field should be cleared\n if ($field_name == 'comment' || $field_name == 'key') {\n if ( $request->value == '_')\n $request->value = '';\n }\n\n // make sure the value for this field is a correct date value\n if ($field_name == 'reported_at') {\n $request->value = Carbon::parse($request->value);\n }\n\n // find the single resource\n $item = Item::find($item_id);\n if ($item) {\n // check authentication\n $plan = Plan::find( $item->plan_id );\n if (! checkRights($plan)) {\n return response()->json(['status' => 401, 'data' => 'Not authorized'], 401);\n }\n\n // cater for boolean values\n if ($request->value == 'true')\n $request->value = 1;\n if ($request->value == 'false')\n $request->value = 0;\n\n // check if a valid file was submitted\n if ($request->hasFile('file') && $request->file('file')->isValid()) {\n // use the helper function\n $file = saveUploadedFile($request);\n // add the file as a relationship to the song\n $file->save();\n // correct seq_no of attached files (if more than one)\n $new_seq_no = getLatestSeqNoOfFilesAttachedToItem($item) + 1;\n // attach the file as a many-to-many relationship to the song\n $item->files()->attach( $file->id, ['seq_no' => $new_seq_no] );\n // as we only attached a file to an existing item, we can return now\n return $file->filename;\n }\n\n // debug logging\n Log::debug('API item update request - ID:'.$item_id.', FIELD:'.$field_name.', VALUE:'.$request->value);\n\n // if it's a song, also calculate and update the SFI\n if ($field_name == 'song_id')\n $item->update(['song_freshness' => calculateSongFreshness( $request->value, $plan->leader_id, $plan->date ) ]);\n\n // execute the acutally requested update\n $item->update( [$field_name => $request->value] );\n\n // notify event listener that an item was updated\n event( new CspotItemUpdated($item) );\n\n // return text to sender\n return $item[$field_name];\n }\n return response()->json(['status' => 404, 'data' => 'APIupdate: item not found'], 404);\n }", "title": "" }, { "docid": "efd6a17e14267d47f6e141ca838c4ee9", "score": "0.5813075", "text": "private function indexUpdate ( $item ) {\n $keyValues = array();\n foreach ($this->indicies as $index) {\n $key = $index->Column_name;\n $value = $item->$key;\n $keyValues[] = $value;\n }\n $keyStr = implode( '|', $keyValues );\n $this->itemContainer['index'][$index->Column_name][$keyStr] = $item;\n }", "title": "" }, { "docid": "33bd979a69e7c825189c614d6bf7e0b6", "score": "0.58117825", "text": "public function putAction()\n\t{\n\t\t\n\t\t$id = $this->getParam('attribute_group_item_id');\n\t\t\n\t\t$data = array(\n\t\t\t\t'attribute_group_id' => $this->getParam('attribute_group_id'),\n\t\t\t\t'attribute_type_id' => $this->getParam('attribute_type_id'),\n\t\t\t\t);\n\t\t\n\t\t$this->getModel('Attributegroupitem_Model_Attributegroupitem')->update($id, $data);\t\n\t\t\n\t\t$this->view->attribute_type_id = $id;\n\t\t$this->view->params = $this->_request->getParams();\n\t\t$this->view->message = sprintf('Resource #%s Updated', $id);\n\t\t$this->_response->ok();\n\n\t}", "title": "" }, { "docid": "ca8ed070a6ebd6fcf773eb5c0bca01b5", "score": "0.58113235", "text": "public abstract function update($id, $object);", "title": "" }, { "docid": "e19871d9bda918db783772e62ff1a0ae", "score": "0.5809138", "text": "public function updateAction()\n\t{\n\t\t$productId = $this->_getParam('id');\n\t\t\n\t\t$productsTable = new Products();\n\t\t$product = $productsTable->find($productId)\n\t\t\t->current();\n\t\t\n\t\techo $this->getForm($product->toArray())\n\t\t\t->setAction('/products/save/id/' . $productId);\n\t}", "title": "" }, { "docid": "831874ff36caeb4d82f701017097eb7f", "score": "0.5804824", "text": "public function update(){\n parent::update();\n $this->items = null;\n }", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.58020794", "text": "public function update($data);", "title": "" }, { "docid": "87d7ca94c6c673f2a81f4eb7bf6ea016", "score": "0.57973546", "text": "public function updItem($data)\r\n\t{\n\t\t$sensorId = $data['id'];\n\t\t\r\n\t\t$id = $data['id'];\r\n\t\t$greeting = $data['greeting'];\r\n\t\r\n\t\t// set the data into a query to update the record\r\n\t\t$db = $this->getDbo();\r\n\t\t$query = $db->getQuery(true);\r\n\t\t$query->clear();\r\n\t\t$query->update(' #__helloworld ');\r\n\t\t$query->set(' greeting = '.$db->Quote($greeting) );\r\n\t\t$query->where(' id = ' . (int) $id );\r\n\t\r\n\t\t$db->setQuery((string)$query);\r\n\t\r\n\t\tif (!$db->query()) {\r\n\t\t\tJError::raiseError(500, $db->getErrorMsg());\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.57966286", "text": "public function update($object);", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.57966286", "text": "public function update($object);", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.57966286", "text": "public function update($object);", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.57966286", "text": "public function update($object);", "title": "" }, { "docid": "7f016eb71607d920b4e46bb084f26ca3", "score": "0.5795888", "text": "private function updateItem(Item $item): void\n {\n // Option 1\n $method = 'updateCommonItem';\n if (isset($this->specialItems[$item->name])) {\n $method = 'updateItem' . $this->specialItems[$item->name];\n }\n $this->$method($item);\n\n // Option 2\n// switch ($item->name) {\n// case 'Blue cheese':\n// $this->updateItemBlueCheese($item);\n// break;\n// case 'Mjolnir':\n// $this->updateItemMjolnir($item);\n// break;\n// case 'Concert tickets':\n// $this->updateItemConcertTickets($item);\n// break;\n// case 'Magic cake':\n// $this->updateItemMagic($item);\n// break;\n// default :\n// $this->updateCommonItem($item);\n// break;\n// }\n }", "title": "" }, { "docid": "11e36747c229bda3f9855b5dcb61ede5", "score": "0.5790949", "text": "public function update(Request $request, Item $item)\n {\n $this->validate($request, [\n 'quantidade' => 'required|integer',\n 'codigo' => 'nullable|integer',\n 'objeto' => 'required|string|max:300',\n 'descricao' => 'required|string',\n 'unidade' => 'required|string|exists:unidades,uuid',\n ]);\n\n $return = $this->service->update($request->all(), $item);\n if ($return['status']) {\n return redirect()->route('requisicao.show', $item->requisicao->uuid)\n ->with(['codigo' => 200,'mensagem' => 'O item '.$return['data']->numero.' foi alterado com sucesso!']);\n } else {\n return redirect()->route('requisicao.show',$item->requisicao->uuid)\n ->with(['codigo' => 500, 'mensagem' => 'Ocorreu um error durante o alteração do item, tente novamente ou contate o administrador!']);\n }\n }", "title": "" }, { "docid": "656ffc57ffb3382926fac7895e81796e", "score": "0.5782381", "text": "public function update()\n {\n // In order to update an entity, we need to have the complete data. Otherwise, unprovided data will be removed.\n $existing = $this->client->load($this->getId());\n\n // add existing data\n foreach ($existing as $key => $value) {\n if (!isset($this->data[$key])) {\n $this->data[$key] = $value;\n }\n }\n\n return $this->client->update($this);\n }", "title": "" }, { "docid": "4dacaec4d52785ec4431c4b617afc4d2", "score": "0.57816327", "text": "public function updateCartItem($cartItem);", "title": "" }, { "docid": "434781b2669044fddd6d280be3a844fe", "score": "0.5779204", "text": "public function updateListingFromItemData($itemData, $item = null) { if (!isset($itemData['name']) && !isset($itemData['rarity']) && !isset($itemData['restriction_level']) && isset($itemData['data_id'])) {\n return;\n }\n\n $this->processListingsFromItemData($itemData, $item);\n }", "title": "" }, { "docid": "61a377c0b88095519f2037d5a5663253", "score": "0.5774154", "text": "public function updateItem($id, $data)\n {\n $item = PermissionMappingModel::findOrFail($id);\n \n\n $item->title = $data['title'];\n $item->status = $data['status'];\n\n $item->save();\n\n return $item;\n }", "title": "" }, { "docid": "e82f779fd43516f199caf97b526914d6", "score": "0.5771696", "text": "protected function updateItem($name, $item)\n {\n $this->mongodb->getCollection($this->itemCollection)->update(['_id'=>$item->name],[\n '$setOnInsert'=>[\n 'name'=>$item->name,\n 'display_name' => $item->display_name,\n 'tag' => $item->tag, \n 'type' => $item->type,\n 'description' => $item->description,\n 'rule_name' => $item->ruleName,\n 'data' => $item->data === null ? null : serialize($item->data),\n 'created_at' => $item->createdAt,\n 'updated_at' => $item->updatedAt,\n ]\n ],['upsert'=>true]);\n \n return true;\n }", "title": "" }, { "docid": "09712fbb2925c0cfa9cde2e408f9df70", "score": "0.57715815", "text": "public function testUpdateServiceCall()\n {\n $itemId = 1;\n $name = 'Test';\n $serviceInfo = [\n 'rest' => [\n 'resourcePath' => $this->_restResourcePath . $itemId,\n 'httpMethod' => \\Magento\\Framework\\Webapi\\Rest\\Request::HTTP_METHOD_POST,\n ],\n ];\n $item = $this->_webApiCall($serviceInfo, ['request' => ['name' => $name]]);\n $this->assertEquals($itemId, $item['entity_id'], 'id field returned incorrectly');\n $this->assertEquals($name, $item['name'], 'name field returned incorrectly');\n }", "title": "" }, { "docid": "a1d61f0aa122378fb9049378295f5945", "score": "0.5764594", "text": "public function update($entity)\n {\n }", "title": "" }, { "docid": "18037d700f5e129153197d75b6341a68", "score": "0.5760519", "text": "public function on_update_item_success()\n {\n //echo \"This..............................................\";\n $categories = factory(Category::class, 2)->create();\n $row = factory(Item::class)->create(['category_id' => $categories[0]->id]);\n $res = $this->withHeaders($this->getAuthHeader())->json('PUT', self::API_PATH.'/'.$row->id, [\n 'name' => 'editedItem',\n 'price' => 1234,\n 'image' => 'editedItem.png',\n 'category_id' => $categories[1]->id\n ]);\n $res->assertStatus(200);\n $res->assertJsonCount(8, 'data');\n $res->assertJsonStructure([\n 'data' => [\n 'id',\n 'name',\n 'price',\n 'image',\n 'category_id',\n 'created_at',\n 'updated_at',\n 'deleted_at'\n ]\n ]);\n $json = $res->json();//1 is id\n $this->assertEquals('editedItem', $json['data']['name']);//2\n $this->assertEquals(1234, $json['data']['price']);//3\n $this->assertEquals('editedItem.png', $json['data']['image']);//4\n $this->assertEquals($categories[1]->id, $json['data']['category_id']);//5\n $this->assertLessThan(2, time() - strtotime($json['data']['created_at']));//6\n $this->assertLessThan(2, time() - strtotime($json['data']['updated_at']));//7\n $this->assertEquals(null, $json['data']['deleted_at']);//8\n }", "title": "" }, { "docid": "5ff58e3b0cb8ed2ef95e5bfb0eb3a3dc", "score": "0.5760231", "text": "public function update(AccountInterface $account, Account $resource);", "title": "" }, { "docid": "d22a8503adf83684f72873233036624a", "score": "0.5759663", "text": "public function update(Task $item)\n {\n // 'name' => 'required|string',\n // 'description' => 'required|string',\n // 'project' => 'required',\n // ]);\n $validator=Validator::make(Request::all(), [\n 'name'=>['required','string'],\n 'description'=>['required','string'],\n 'project'=>['required',Rule::exists('projects','id')],\n ]);\n if ($validator->fails()) {\n return response([\n 'error'=>$validator->errors()\n ], 400);\n }\n // $item->update([\n // 'name'=>Request::get('name'),\n // 'description'=>Request::get('description'),\n // 'status'=>Request::get('status'),\n // 'project_id'=>Request::get('project'),\n // ]);\n $item->name=Request::get('name');\n $item->description=Request::get('description');\n $item->status=Request::get('status');\n $item->project_id=Request::get('project');\n $item->update();\n return response()->json([\n 'success'=>true,\n 'msg'=>'Item updated.',\n 'data'=>$item,\n ]);\n }", "title": "" }, { "docid": "d16d32440e89b8f31c0ca259c26f0400", "score": "0.5756062", "text": "public function update() {\r\n\t\t$this->_update();\r\n\t}", "title": "" }, { "docid": "2da979a5e36b24b471b3521dbcfaae12", "score": "0.57505506", "text": "public function update(Request $request, Item $item)\n {\n $input = $request->all();\n\n $validator = Validator::make($input, [\n 'name' => 'required',\n 'type' => 'required|in:service, product'\n ]);\n\n if($validator->fails()){\n return $this->sendError('Validation Error.', $validator->errors());\n }\n\n $item->name = $input['name'];\n $item->save();\n\n return $this->sendResponse($item, 'Item updated successfully.');\n }", "title": "" }, { "docid": "ff8c4570a89d10bad6bad53e7e355f41", "score": "0.5748106", "text": "public function update(Request $request, $id)\n {\n $validatedData = $request->validate([\n 'title' => 'required|max:255',\n 'url' => 'required',\n ]);\n //die(print_r($request->all()));\n if($request->hasFile('file')) {\n $path = $request->file('file')->store('icons');\n $request->merge([\n 'icon' => $path\n ]);\n }\n \n $config = Item::checkConfig($request->input('config'));\n $current_user = User::currentUser();\n $request->merge([\n 'description' => $config,\n 'user_id' => $current_user->id\n ]);\n\n if($request->input('class') === 'null') {\n $request->merge([\n 'class' => null,\n ]);\n }\n\n\n $item = Item::find($id);\n $item->update($request->all());\n\n //Search::storeSearchProvider($request->input('class'), $item);\n\n $item->parents()->sync($request->tags);\n\n $route = route('dash', []);\n return redirect($route)\n ->with('success',__('app.alert.success.item_updated'));\n }", "title": "" } ]
97ee94193e915ddcf2b367a2b2567b74
Check if has a value
[ { "docid": "c9f9d6d7d8ec0c5a8306c9448fc32e27", "score": "0.0", "text": "public function hasResponseRequested(){\n return $this->_has(1);\n }", "title": "" } ]
[ { "docid": "f3ae97c3fcc9e7a923654c651ab082ec", "score": "0.83592206", "text": "public function hasValue(): bool;", "title": "" }, { "docid": "01d20c15a1af55e51ae5f0bd745e8d7b", "score": "0.8145377", "text": "public function hasValue(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "01d20c15a1af55e51ae5f0bd745e8d7b", "score": "0.8145377", "text": "public function hasValue(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "01d20c15a1af55e51ae5f0bd745e8d7b", "score": "0.8145377", "text": "public function hasValue(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "01d20c15a1af55e51ae5f0bd745e8d7b", "score": "0.8145377", "text": "public function hasValue(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "01d20c15a1af55e51ae5f0bd745e8d7b", "score": "0.8145377", "text": "public function hasValue(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "01d20c15a1af55e51ae5f0bd745e8d7b", "score": "0.8145377", "text": "public function hasValue(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "01d20c15a1af55e51ae5f0bd745e8d7b", "score": "0.8145377", "text": "public function hasValue(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "01d20c15a1af55e51ae5f0bd745e8d7b", "score": "0.8145377", "text": "public function hasValue(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "01d20c15a1af55e51ae5f0bd745e8d7b", "score": "0.8145377", "text": "public function hasValue(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "01d20c15a1af55e51ae5f0bd745e8d7b", "score": "0.8145377", "text": "public function hasValue(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "01d20c15a1af55e51ae5f0bd745e8d7b", "score": "0.8145377", "text": "public function hasValue(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "01d20c15a1af55e51ae5f0bd745e8d7b", "score": "0.8145377", "text": "public function hasValue(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "01d20c15a1af55e51ae5f0bd745e8d7b", "score": "0.8145377", "text": "public function hasValue(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "53a71620268874a1121aa151481cd1e4", "score": "0.7967052", "text": "public function hasValue() {\n return $this->value !== NULL;\n }", "title": "" }, { "docid": "83587ec5786929fdfc7349a745740013", "score": "0.79645985", "text": "public function value_exists( $value );", "title": "" }, { "docid": "9e40548968a276eba8e9c1d7094f13ee", "score": "0.7857949", "text": "public function hasValue()\n {\n return $this->value !== null;\n }", "title": "" }, { "docid": "9e40548968a276eba8e9c1d7094f13ee", "score": "0.7857949", "text": "public function hasValue()\n {\n return $this->value !== null;\n }", "title": "" }, { "docid": "2f226a90ee6d5d1e44c22218b18d8499", "score": "0.7855669", "text": "public function hasValue() : bool\n {\n return isset($this->value);\n }", "title": "" }, { "docid": "856ace6156a71354ce3cc4ecb94b1080", "score": "0.7807689", "text": "public function hasValue(): bool {\n\t\treturn $this->value !== null;\n\t}", "title": "" }, { "docid": "324d648ef1c97f3c0dde59760f352eae", "score": "0.7762701", "text": "public function hasValue()\n {\n return !is_null($this->value);\n }", "title": "" }, { "docid": "f621993065762b6e74804253a8f57cc7", "score": "0.77602077", "text": "public function isValue();", "title": "" }, { "docid": "14cc05cdedd1911611a03f8a1e7bfe97", "score": "0.7693011", "text": "public function hasValue()\n {\n return ($this->value !== null);\n }", "title": "" }, { "docid": "529fded26d439f055c6aa1154cb6806f", "score": "0.75695604", "text": "public function isValueAvailable(): bool;", "title": "" }, { "docid": "b0c28f8b44dd3d11f4dc62564990308a", "score": "0.7560225", "text": "public function hasValue(): bool\n {\n return !empty($this->_value) || $this->_value === '0';\n }", "title": "" }, { "docid": "cfb5b73ac64fca4c4351cac0b06bd1b1", "score": "0.7529434", "text": "public function hasValue() {\r\n $payload = Request::getPayload();\r\n\r\n return (\r\n !empty($payload) &&\r\n isset($payload[$this->slug])\r\n );\r\n }", "title": "" }, { "docid": "4d77a522bd6a8e08f58a6e2021f336b5", "score": "0.74310845", "text": "public function hasValues();", "title": "" }, { "docid": "81b8f19a0606c959221489adadded8ba", "score": "0.73446023", "text": "public function has($value) {}", "title": "" }, { "docid": "77181558b0313040c187b6824a2dd052", "score": "0.73435056", "text": "public function hasValues(){\n return $this->_has(3);\n }", "title": "" }, { "docid": "4dbb151501e8c599f0bd16ad04057109", "score": "0.72976846", "text": "public function hasValue(string $key): bool;", "title": "" }, { "docid": "3e8724a7c695033b09cbf98ce4691627", "score": "0.7217313", "text": "function hasValue($fieldname){\n\t\treturn (isset( $this->_values) and array_key_exists($fieldname, $this->_values) );\n\t}", "title": "" }, { "docid": "f9e057a8dce9061a5bb4512d0a254912", "score": "0.71704686", "text": "function presenceVal($value) {\n\t\treturn !isset($value) || $value !== \"\";\n\t}", "title": "" }, { "docid": "7ec6517ce573e2fb3c2f52e68d9e5290", "score": "0.7120748", "text": "public static function hasValue($name): bool\n {\n }", "title": "" }, { "docid": "2b80d2c9a4273990b39a6578b07c5684", "score": "0.7112135", "text": "function isValue(&$value)\n\t{\n\t\treturn ( bool ) ((isset($value)) && (!empty($value)));\n\t}", "title": "" }, { "docid": "3ce55745b5892f21219e8bcfa0670557", "score": "0.7012956", "text": "public static function hasValue($value): bool\n\t{\n\t\treturn in_array($value, static::getAll(), true);\n\t}", "title": "" }, { "docid": "51693dd58309b4ec85b5e2e7a7e31387", "score": "0.6913573", "text": "public function val_isset()\n\t{\n\t\treturn Formo::is_set($this->_field->get('new_value'));\n\t}", "title": "" }, { "docid": "d3d1a563fa5a3772622dd04a4e484280", "score": "0.6891835", "text": "function checkValue($value)\n{\n if (!isset($value)) {\n return false;\n } elseif (empty($value)) {\n return false;\n } else {\n return true;\n }\n}", "title": "" }, { "docid": "ff9c6984b84e4ae75d6af57a33f873df", "score": "0.68809605", "text": "function containsValue($item);", "title": "" }, { "docid": "d4b251ddafc64709164a96350b7275ce", "score": "0.68807393", "text": "public function hasValue($name)\n {\n return $this->has($name) and !empty($this->get($name));\n }", "title": "" }, { "docid": "b156ed35cb3ecf2562d7cd92ad6ca234", "score": "0.68737316", "text": "public function hasValue($params = array())\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f8193f1c1ded68eee708b00677448e73", "score": "0.68662095", "text": "abstract protected function checkValue($value);", "title": "" }, { "docid": "7b0c608bd008364da6246b5b1de0c68d", "score": "0.68586373", "text": "public function hasValue($name)\n {\n return isset($this->$name);\n }", "title": "" }, { "docid": "5294bba3f39a417681f7f42115b6a55d", "score": "0.68163085", "text": "public function canPresent($value);", "title": "" }, { "docid": "52df6c99401b73555049be3d748ef1a2", "score": "0.6745101", "text": "function prop_exists($key){\n if(!isset($this->uservalues[$key])) return FALSE;\n return isset($this->uservalues[$key]['v']);\n }", "title": "" }, { "docid": "70598ff9e6501a4f036d0e51afc6064a", "score": "0.6743713", "text": "public function exists($value) {\n return FALSE;\n }", "title": "" }, { "docid": "bb6a9c98ea6f6ffcbb955634f14d1dfd", "score": "0.674272", "text": "public function value(): bool\n {\n return $this->get('value');\n }", "title": "" }, { "docid": "cff6a43068ef4a2408a2fa85fce4566c", "score": "0.6727493", "text": "function existVisualValue($xValue) \n{ \n // $xValue needs to be seeted, cannot be empty string, neither false or null\n if ( isset($xValue) \n && !empty($xValue) \n && ($xValue !== false) \n && ($xValue !== null)\n ) {\n return true;\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "e978ce57ec7f403897e1ddfb7f5b890c", "score": "0.6716207", "text": "function exists($key){ return array_key_exists($key,$this->__val);}", "title": "" }, { "docid": "e84e259a4b94a31951d6075177c18622", "score": "0.67144394", "text": "public function valid(){\n return key($this->value) !== null;\n }", "title": "" }, { "docid": "e546e8ae2ea43e1a148e1b8c0b4b4ee5", "score": "0.66960716", "text": "function value_exists( $values, $key = '' ) {\n\tif ( is_array( $values ) ) {\n\t\treturn ( isset( $values[$key] ) && ! empty( $values[$key] ) );\n\t}\n\n\treturn ! empty( $values );\n}", "title": "" }, { "docid": "99659306db71378f497f8786ad136bcc", "score": "0.6675832", "text": "function is_set($key){ return isset($this->__val[$key]);}", "title": "" }, { "docid": "fff26f885d1e272c4568602649e6f5c8", "score": "0.6673838", "text": "public function hasValue($value)\n {\n return in_array($value, $this->getValue(), true);\n }", "title": "" }, { "docid": "a42a51d88168df9904cf5c123c278d4e", "score": "0.6670674", "text": "function biagiotti_mikado_option_has_value( $name ) {\n\tglobal $biagiotti_mikado_global_options;\n\tglobal $biagiotti_mikado_global_Framework;\n\t\n\tif ( array_key_exists( $name, $biagiotti_mikado_global_Framework->mkdOptions->options ) ) {\n\t\treturn isset( $biagiotti_mikado_global_options[ $name ] ) && $biagiotti_mikado_global_options[ $name ] !== '';\n\t} else {\n\t\tglobal $post;\n\t\t\n\t\t$value = get_post_meta( $post->ID, $name, true );\n\t\t\n\t\treturn isset( $value ) && $value !== '';\n\t}\n}", "title": "" }, { "docid": "469faebad226d22ecf847345b742eb9d", "score": "0.666682", "text": "public function hasEnumvalue(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "d3e3dae8779af31f949120f0056559cf", "score": "0.66662294", "text": "public function ValueExists($value) {\n return in_array($value, $this->_item);\n }", "title": "" }, { "docid": "1a4812e5b8645da9e899feb91ef249c4", "score": "0.6631643", "text": "private function hasValue($attr)\n {\n return (isset($this->$attr) && $this->$attr !== '');\n }", "title": "" }, { "docid": "c33fabbdba075ddde2c18a41df09a8df", "score": "0.6616108", "text": "protected function _hasRawValue()\n\t{\n\t\t$hasValue = false;\n\n\t\t$data = &$this->getForm()->getFormData();\n\n\t\tif ($this->_autocomplete) {\n\t\t\t$id = $this->_id;\n\t\t\tif (isset($data[$id])) {\n\t\t\t\t$hasValue = true;\n\t\t\t}\n\t\t} else {\n\t\t\tif (isset($data[$this->_id . '_nonce'])) {\n\t\t\t\t$id = $data[$this->_id . '_nonce'];\n\t\t\t\tif (isset($data[$id])) {\n\t\t\t\t\t$hasValue = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $hasValue;\n\t}", "title": "" }, { "docid": "aa91acc2aed0743a955212650fef1884", "score": "0.66133946", "text": "protected function aValue()\n {\n return true;\n }", "title": "" }, { "docid": "722ee80343bf8f70b4e052513ad7c44f", "score": "0.6610995", "text": "public function hasValue($params = array()) {\r\n\t\t$tags = $this->_item->getTags();\r\n\t\treturn !empty($tags);\r\n\t}", "title": "" }, { "docid": "1d02e4550510ad204368ed563b145257", "score": "0.66099316", "text": "public function hasValue(int|float|string|object $value): bool\n {\n return $this->indexOf($value) > -1;\n }", "title": "" }, { "docid": "cb4cbaccdc1f6cd5f85f19246d37872c", "score": "0.6608046", "text": "public function hasValue($params = array()) {\n\t\t$items = $this->_getRelatedItems();\n\t\treturn !empty($items);\n\t}", "title": "" }, { "docid": "80c18beb6b0ec14464c2f499fe0b21e1", "score": "0.6599597", "text": "public function exists() {\n\t\treturn isset($this->optionValue);\n\t}", "title": "" }, { "docid": "1e360d3b03db951327376dfa6ad05edf", "score": "0.6593311", "text": "private function dataRevealsValue(Data $data)\n {\n return method_exists($data, 'getValue');\n }", "title": "" }, { "docid": "6c994d12e28dbffd79061c62c12a0ee1", "score": "0.65918297", "text": "function hasIdValue() {\n return false;\n }", "title": "" }, { "docid": "67252c2842e2f963c9d5e960ad063d8e", "score": "0.65897155", "text": "public function canHandleValue($value);", "title": "" }, { "docid": "ae1ac0de3a82af489c0dc894ee61a4c9", "score": "0.65868324", "text": "public function has($key) {\n\t\tif (isset($this->values[$key])) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "82941c894f0c46b6881aa50e8c03e3bc", "score": "0.6579794", "text": "public function check($value);", "title": "" }, { "docid": "804c522c825f165aaad4eedb0eeada9b", "score": "0.65775776", "text": "public function hasDefaultValue();", "title": "" }, { "docid": "22b5447a6bbdbea32489a33ea75e9a79", "score": "0.6565787", "text": "function as_check_db_value($value_id, $value_title, $value_value, $value_table){\n\t$database = new As_Dbconn();\n\t\t$check_column = $value_id;\n\t\t$check_for = array( $value_title => $value_value );\n\t\t$exists = $database->exists( $value_table, $check_column, $check_for );\n\t\tif( $exists ){ return true; }\n }", "title": "" }, { "docid": "36426dccd7c876095b7a70f14192d24f", "score": "0.6557644", "text": "public function testContainsValue()\n {\n $this->assertTrue($this->object->containsValue($this->value));\n }", "title": "" }, { "docid": "5355c98ef7f24ca653369cca3592518a", "score": "0.6541274", "text": "public function containsValue($value)\n\t{\n\n\t}", "title": "" }, { "docid": "328a2a17d7295b591e882f5a00a853eb", "score": "0.65338004", "text": "final function has( $value ) {\n\t\tif ( ! $this->isValid( $value ) ) { return; }\n\t\treturn $value == ( $this->content & $value );\n\t}", "title": "" }, { "docid": "a5a04102c078f2a04532f97981e865a0", "score": "0.65308976", "text": "function has_presence($value) {\n\treturn isset($value) && $value !== \"\";\n\t\t\n}", "title": "" }, { "docid": "e597325c450662b4a0a5947c59b8aaf0", "score": "0.6530274", "text": "public function hasValue($name) {\n return isset($_SESSION[$name]);\n }", "title": "" }, { "docid": "fc45437da38a0539636bd860c537a52c", "score": "0.6525751", "text": "public function isDefined()\n {\n //getValue should return non empty value\n //in this case\n static $dummyArray;\n if (!is_array($dummyArray)) {\n $dummyArray = range(1, 30);\n }\n return!('' === $this->getValue($dummyArray));\n }", "title": "" }, { "docid": "a9d1f8da91c28080eb8f1130b5cbdd9c", "score": "0.6521522", "text": "private function valueIsNotNull($value)\n {\n return $value !== null;\n }", "title": "" }, { "docid": "bd450deaef85524d3e600328f23e9e4e", "score": "0.6511761", "text": "function have_value($v) {\r\n return (strlen($v) > 0);\r\n}", "title": "" }, { "docid": "76473f8e2dc7f38cc75668b0e3f5de30", "score": "0.64585537", "text": "public function __isset($key) {\n return array_key_exists($key, $this->_values);\n }", "title": "" }, { "docid": "9732aa779d1ee2403df5b3fc44f89489", "score": "0.64493096", "text": "public function hasValue($value)\n {\n return in_array($value, $this->toArray(false), true);\n }", "title": "" }, { "docid": "b81299b09c238e7154bd9063658049b1", "score": "0.64419705", "text": "function is_exist($val){\n return (isset($val) || empty($val) || trim($val) !== '');\n }", "title": "" }, { "docid": "b5931612cc9daab92ba2874e3717a230", "score": "0.64117724", "text": "public function containsValue( $value ) /*Boolean*/ \r\n {\r\n return $this->indexOfValue( $value ) > -1 ;\r\n }", "title": "" }, { "docid": "104858b3148d3556a7efe7a2261e3b6e", "score": "0.64079785", "text": "static function exists($ctx, $value)\n\t{\n\t\treturn isset($value);\n\t}", "title": "" }, { "docid": "468ddb243db8ba9d0970821a91323f03", "score": "0.6399096", "text": "public function has($key) {\n return isset($this->values[$key]);\n }", "title": "" }, { "docid": "1f11c3e6ff8fa2f3435cefcca3ca84b2", "score": "0.63739187", "text": "public function hasParameterValue($name)\n {\n return isset($this->parameterValues[$name]);\n }", "title": "" }, { "docid": "85d1dbd372ad4c9f7b5552d26ce82160", "score": "0.6356297", "text": "public function need_value_detect() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "85d1dbd372ad4c9f7b5552d26ce82160", "score": "0.6356297", "text": "public function need_value_detect() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "85d1dbd372ad4c9f7b5552d26ce82160", "score": "0.6356297", "text": "public function need_value_detect() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "efa4326ea463db0b7a4262dc9bf293aa", "score": "0.63505", "text": "public function testCheckingExistenceOfValueReturnsWhetherOrNotThatValueExists() : void\n {\n $setWithNoValues = new ImmutableHashSet([]);\n $this->assertFalse($setWithNoValues->containsValue('foo'));\n $setWithStringValue = new ImmutableHashSet(['foo']);\n $this->assertTrue($setWithStringValue->containsValue('foo'));\n $object = new MockObject('bar');\n $setWithObjectValue = new ImmutableHashSet([$object]);\n $this->assertTrue($setWithObjectValue->containsValue($object));\n }", "title": "" }, { "docid": "aefde274f5ab88d51c339e4dd4a70e4c", "score": "0.63501555", "text": "public function hasDefaultValue(){\n return $this->_has(11);\n }", "title": "" }, { "docid": "4b75158d64c2fb82b9ade5e7899ba8f0", "score": "0.634596", "text": "public function hasParam(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "4b75158d64c2fb82b9ade5e7899ba8f0", "score": "0.634596", "text": "public function hasParam(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "4b75158d64c2fb82b9ade5e7899ba8f0", "score": "0.634596", "text": "public function hasParam(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "4b75158d64c2fb82b9ade5e7899ba8f0", "score": "0.634596", "text": "public function hasParam(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "4b75158d64c2fb82b9ade5e7899ba8f0", "score": "0.634596", "text": "public function hasParam(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "4b75158d64c2fb82b9ade5e7899ba8f0", "score": "0.634596", "text": "public function hasParam(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "4b75158d64c2fb82b9ade5e7899ba8f0", "score": "0.634596", "text": "public function hasParam(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "6e0267ca162a33604e06a9ad968e7c32", "score": "0.63457847", "text": "function has_presence($value) {\n return !is_blank($value);\n }", "title": "" }, { "docid": "f78791595f1a0391eb188c90345b338f", "score": "0.63364214", "text": "public function __isset($name)\n {\n return isset($this->values[$name]);\n }", "title": "" }, { "docid": "3ebcda20d807dcb54e14f817ed6d1f9c", "score": "0.6333881", "text": "public function hasValue($value)\n {\n if (!isset($this->values)) {\n return false;\n }\n\n return array_key_exists($value, $this->values);\n }", "title": "" }, { "docid": "6a48d17933f0ed8c0f382614fa105d57", "score": "0.63333887", "text": "public function hasParameterValues()\n {\n return count($this->parameterValues) > 0;\n }", "title": "" }, { "docid": "49a191efd7e436d6b163893d795c753c", "score": "0.63233", "text": "function has_presence($value) {\n return isset($value) && $value !== \"\";\n}", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "0ba9250d154fd80e5e334a0d48fbddfb", "score": "0.0", "text": "public function destroy($id)\n {\n Contacts::find($id)->delete();\n \\Flash::success('Contact deleted.');\n return redirect()->route('contacts.index');\n //\n }", "title": "" } ]
[ { "docid": "06a8b66f3b0962031966aa689a908441", "score": "0.7538225", "text": "public function remove(ResourceInterface $resource): void;", "title": "" }, { "docid": "9b818f7ffcb1b2ea8de6d4dd379daee7", "score": "0.71811706", "text": "public function removeResource($resource)\n {\n if (isset($this->_resources[$resource->getId()])) {\n unset($this->_resources[$resource->getId()]);\n }\n }", "title": "" }, { "docid": "4315072baf9e63433d6bf1d0d20a8255", "score": "0.7148606", "text": "public function unpublishPersistentResource(\\TYPO3\\Flow\\Resource\\Resource $resource);", "title": "" }, { "docid": "dd9bfce24d9be2ed73f628eeb69eb85a", "score": "0.667236", "text": "public function deleting(Resource $r)\n {\n //\n }", "title": "" }, { "docid": "2d45740fa6658941867282ed0245b9c2", "score": "0.6645067", "text": "public function delete($resource, $permanent = false);", "title": "" }, { "docid": "bbcea7301ece5b33f20ec2918add7662", "score": "0.641638", "text": "public function remove(Resource $resource)\n {\n return $this->_rm->getUnitOfWork()->remove($resource);\n }", "title": "" }, { "docid": "4ce810c62046f4e0ede1e0646fef1f45", "score": "0.6273441", "text": "public function remove($id) {\n $this->storage->delete($id);\n }", "title": "" }, { "docid": "3941bc967321ae62e670221e832e64d0", "score": "0.6254081", "text": "public static function destroy($resource)\n {\n $filters = [\n 'resource_type' => getResourceType($resource),\n 'resource_id' => $resource->id,\n ];\n\n EncryptedStore::where($filters)->delete();\n\n Permission::where($filters)->delete();\n\n if ($resource instanceof DeviceSection) {\n $deviceIds = $resource->devices()->pluck('id');\n\n EncryptedStore::where('resource_type', Permission::RESOURCE_TYPE_DEVICE)\n ->whereIn('resource_id', $deviceIds)\n ->delete();\n\n Permission::where('resource_type', Permission::RESOURCE_TYPE_DEVICE)\n ->whereIn('resource_id', $deviceIds)\n ->delete();\n }\n\n if ($resource instanceof IpCategory) {\n $subnetIds = $resource->ips()->pluck('id');\n\n EncryptedStore::where('resource_type', Permission::RESOURCE_TYPE_IP_SUBNET)\n ->whereIn('resource_id', $subnetIds)\n ->delete();\n\n Permission::where('resource_type', Permission::RESOURCE_TYPE_IP_SUBNET)\n ->whereIn('resource_id', $subnetIds)\n ->delete();\n }\n }", "title": "" }, { "docid": "fb4fd765a6e75a89c0b864ea27f30963", "score": "0.6234422", "text": "public function detach($resource);", "title": "" }, { "docid": "885a256a77c511ca713b2ced1d2455fe", "score": "0.6224073", "text": "public function onRemoveContent(ResourceEvent $e)\n {\n $this->container->get('ayamel.api.filesystem')->removeFilesForId($e->getResource()->getId());\n }", "title": "" }, { "docid": "fc89b2a8ed9baf441670cb1fd7b21a40", "score": "0.6205246", "text": "public function delete()\n {\n parent::delete();\n Storage::delete($this->filepath);\n }", "title": "" }, { "docid": "1a8d90c6745827f2dc8e62f5e38af97d", "score": "0.61857986", "text": "public function delete(){\n Storage::delete($this->url);\n parent::delete();\n }", "title": "" }, { "docid": "bd9d9319fb47f04e0b7a8f135007e9b6", "score": "0.6035076", "text": "public static function deleteResource($strResource)\n\t{\n\t\t$objModel = \\FilesModel::findByPath($strResource);\n\n\t\t// Remove the resource\n\t\tif ($objModel !== null)\n\t\t{\n\t\t\t$objModel->delete();\n\t\t}\n\n\t\t// Look for subfolders and files\n\t\t$objFiles = \\FilesModel::findMultipleByBasepath($strResource . '/');\n\n\t\t// Remove subfolders and files as well\n\t\tif ($objFiles !== null)\n\t\t{\n\t\t\twhile ($objFiles->next())\n\t\t\t{\n\t\t\t\t$objFiles->delete();\n\t\t\t}\n\t\t}\n\n\t\tstatic::updateFolderHashes(dirname($strResource));\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b89a0ef1cc98e15c2e5ec24ceb88d8ec", "score": "0.6018789", "text": "public function destroy(Request $request, $id)\n {\n if (!Resource::find($id)) {\n throw ValidationException::withMessages([\n \"resource\" => [\"409001\"],\n ])->status(409);\n }\n $user = $request->user();\n $base_path = Resource::find($id)->path;\n $path = Resource::find($id)->path . '.' . $id;\n $trash_path = Resource::find($id)->trash_path . '.' . $id;\n $remove_id_list = DB::select(\"SELECT id FROM resources\n LEFT JOIN resource_user ON resources.id = resource_user.resource_id\n WHERE user_id=? AND trash_path <@ ? AND trashed=?\n ORDER BY file ,created_at ASC;\",\n [$user->id, $trash_path, true]);\n $old_child_id_list = DB::select(\"SELECT id FROM resources\n LEFT JOIN resource_user ON resources.id = resource_user.resource_id\n WHERE user_id=? AND path <@ ?\n ORDER BY file ,created_at ASC;\",\n [$user->id, $path]);\n if (count($old_child_id_list)) {\n foreach ($old_child_id_list as $child_id) {\n $resource = Resource::find($child_id->id);\n $resource->path = preg_replace(\"/($path)/\", $base_path, $resource->path);\n if (!$resource->save()) {\n throw ValidationException::withMessages([\n \"resource\" => [\"500001\"],\n ])->status(500);\n }\n }\n }\n $request->user()->resources()->detach($id);\n Resource::destroy($id);\n if (count($remove_id_list)) {\n foreach ($remove_id_list as $remove_id) {\n $request->user()->resources()->detach($remove_id->id);\n Resource::destroy($remove_id->id);\n }\n }\n }", "title": "" }, { "docid": "8ff25becf114b7b546883f0636a8d4bb", "score": "0.600009", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n\n return redirect()->route('admin.resources.index');\n }", "title": "" }, { "docid": "071c2cf39f8cc7861919423be2ea5f23", "score": "0.59809107", "text": "public function remove() {\n\t\t$this->delete();\n\t}", "title": "" }, { "docid": "3d124a2a6fee934c0b77262cd78a5a21", "score": "0.5978756", "text": "public function delete()\n {\n parent::delete();\n\n return Storage::delete('public' . $this->dir . '/' . $this->file_name . '.' . $this->extension);\n }", "title": "" }, { "docid": "8a443f39fd49a800c26bcd4faf79566a", "score": "0.5969634", "text": "public function remove()\n {\n $this->delete();\n }", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "3cf7162dac07923a536505ffc4231269", "score": "0.5920038", "text": "function deleteFileFromStorage($path){\n unlink(public_path($path));\n}", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "f1a3e6a9135f5217ef4ced05623db69e", "score": "0.58649063", "text": "public function removeFileFromStorage($file)\n {\n $request = new Request('DELETE',\n $this->baseUrl.\"/storage/remove-file/$file\",\n [],\n $this->options\n );\n return $request->send();\n }", "title": "" }, { "docid": "4b22b7ee3a57517ec9e3b86bea1578c9", "score": "0.5856808", "text": "public function clearStorage();", "title": "" }, { "docid": "22ae2cb972ac108aa9d129bf24b5965e", "score": "0.58561075", "text": "public function removeFileFromPlatform() {\n\t\treturn Storage::disk($this->disk)->delete($this->url);\n\t}", "title": "" }, { "docid": "85f5514bec2a9000c455fe06e534b205", "score": "0.584897", "text": "public final function delete() {\n unlink($this->_file);\n }", "title": "" }, { "docid": "4262fc5a84a5c078d05a4d5e5a24ff34", "score": "0.5814995", "text": "private function removeFromDisk() {\r\n $path = $this -> fullPath();\r\n if (is_file($path)) {\r\n unlink($path);\r\n }\r\n }", "title": "" }, { "docid": "0d3365ad48f656af0aa31c45acf12a04", "score": "0.581251", "text": "public function delete() {\n $path = $this->path . $this->file;\n $this->file = null;\n return unlink($path);\n }", "title": "" }, { "docid": "78675bc1f5c87b9bdcdbae71b706d5c2", "score": "0.5808888", "text": "function delete_resource($id_resource) {\n try {\n // read resource\n $record = read_resource_by_id($id_resource)[0];\n $media = $record['media'];\n // if resource has media, del media\n if ($media != array()) {\n delete_attachment_by_fk($id_resource);\n }\n\n //delete resource\n $bind = array(\n ':id' => $id_resource\n );\n $query = \"UPDATE `TeachTogether`.`Tbl_Resource` SET `Is_Deleted` = '1' WHERE `Id_Resource` = :id\";\n $db = connect();\n $query = $db->prepare($query);\n $query->execute($bind);\n return TRUE;\n } catch(Exception $e){\n $e->getMessage();\n return FALSE;\n }\n }", "title": "" }, { "docid": "e42642d41e8756ec1ab063a172563361", "score": "0.58088195", "text": "public function deleteForResource($resource, $resourceId, $id)\n {\n $this->client->delete(\"{$resource}/{$resourceId}/metafields/{$id}.json\");\n }", "title": "" }, { "docid": "a5c8adef84d49e2bbd4e56caccbfdbe8", "score": "0.57902396", "text": "public function destroy($id)\n {\n $userId = $this->userId;\n /*Missing*/\n // code for deleting the corresponing entries in assignments and blobreferences\n \n $filePath = \"UsersFiles/$userId/\";\n $exist = Storage::disk('local')->exists($filePath.$id);\n \n if(!$exist){\n return response(\"error, file not found\", 404);\n }\n \n $result = Storage::delete($filePath.$id);\n \n return $result? 'true':'false';\n }", "title": "" }, { "docid": "c629f81c7d38b626e5ea9e468f813783", "score": "0.5786348", "text": "public function destroy() {\n if($this -> delete()){\n //then remove the file\n $target_path = $this->image_path();\n return unlink($target_path) ? true : false;\n }\n else{\n //database delete failed\n return false;\n }\n \n}", "title": "" }, { "docid": "5760f6df7c6ebd5440da74e84ef8e734", "score": "0.57779175", "text": "public function remove($identifier);", "title": "" }, { "docid": "5760f6df7c6ebd5440da74e84ef8e734", "score": "0.57779175", "text": "public function remove($identifier);", "title": "" }, { "docid": "7e1168a0dceb78da8aec8f8107a1081b", "score": "0.57673484", "text": "public function removeResource($name) {\n\t\tunset($this->resources[$name]);\n\t\tif ($name === 'file') {\n\t\t\t$this->resources['file'] = array('class' => 'Template\\File', 'compiler' => null);\n\t\t}\n\t}", "title": "" }, { "docid": "eea9cde7e57563f815dda41525f18451", "score": "0.57665277", "text": "public function remove($key)\n {\n Preconditions::checkIsString($key);\n $ret = $this->read($key);\n\n if (!$this->deleteStatement) {\n $this->deleteStatement = $this->prepareDelete();\n }\n\n $statement = $this->deleteStatement;\n $statement->bindValue('key', $key);\n if (!$statement->execute()) {\n throw new sfStorageException(\"Problem writing into key '$key'\");\n }\n return $ret;\n }", "title": "" }, { "docid": "850f951ab040e1b1c5dfe7324894ecd7", "score": "0.5738859", "text": "private function remove_storage() {\n\n\t\tdelete_user_option( get_current_user_id(), self::STORAGE_KEY );\n\t}", "title": "" }, { "docid": "4d84ab18e7e3c7bf3662c486977fb999", "score": "0.57371354", "text": "public function delete() {\n return $this->storage->delete($this->getId());\n }", "title": "" }, { "docid": "b8aedd21b1de235254d736b25fb89e61", "score": "0.57311434", "text": "public function remove(File_Object $file);", "title": "" }, { "docid": "94bcc57c0581202139ec255ad06cdec5", "score": "0.5730355", "text": "public function delete() {\n\n\t\tif ( empty( $this->file ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->filesystem()->delete( $this->file, false, 'f' );\n\n\t}", "title": "" }, { "docid": "703f39d820e46447f84afb34b80b61e0", "score": "0.57288265", "text": "public function destroy($id)\n {\n $get_old=ChooseUs::where('id',$id)->first();\n if($get_old->thumbnail!=null&&file_exists(\"/storage/$get_old->thumbnail\")){\n unlink(\"/storage/$get_old->thumbnail\");\n }\n ChooseUs::where('id',$id)->delete();\n return redirect()->route('listChooseUs');\n }", "title": "" }, { "docid": "8bdd6beb63c911c8d573032dbba8aad8", "score": "0.5725893", "text": "public function removeOne($id){}", "title": "" }, { "docid": "c3aa77d8414ce52f4ace5ba0dc4877ad", "score": "0.571053", "text": "public function delete()\n\t{\n\t\t// delete from filesystem (and quietly ignore errors)\n\t\tif (Storage::exists($this->getStoragePathname())) {\n\t\t\tStorage::delete($this->getStoragePathname());\n\t\t}\n\n\t\t// delete from DB\n\t\tparent::delete();\n\t}", "title": "" }, { "docid": "158d987761b2c49edd855bfb35bf86da", "score": "0.5693592", "text": "public function destroy($id)\n {\n $supplier = Supplier::where('id',$id)->first();\n \n if($supplier->photo){\n unlink($supplier->photo);\n }\n $supplier->delete();\n return response()->json(['status' => true]);\n }", "title": "" }, { "docid": "f6d826b44f5461b3645644cebd7ccb63", "score": "0.56916964", "text": "public function destroy($id): StudentResource\n {\n $student = Student::Find($id);\n\n if ($student->delete()) {\n \n return new StudentResource($student);\n }\n }", "title": "" }, { "docid": "b07c53d7469edccd2964fcc8a7e6b270", "score": "0.568916", "text": "public function destroy($id)\n {\n $media = Media::where('filename', $id)->first();\n if(file_exists(storage_path('app/uploads/'.$id.'.'.$media->extention))){\n unlink(storage_path('app/uploads/'.$id.'.'.$media->extention));\n }\n $media->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "3ceec2277d759ac377a711e642312e39", "score": "0.5684958", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n\n return response()->json(null, 204);\n }", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "e73ce993d5a4d4d33dbff8e504df75c7", "score": "0.56762576", "text": "public function remove()\n {\n $this->getEntityManager()->remove($this->entity);\n }", "title": "" }, { "docid": "fcc014a9d1af882c7e647fe89bb43cb1", "score": "0.5673686", "text": "public function destroy(){\n $id = $this->id();\n if($id){\n $this->_rest->deleteObject($this->objectClass,$id);\n $this->clearDirtyKeys();\n $this->attributes($this->resetAttributes($this->attributes()));\n }\n }", "title": "" }, { "docid": "91d0abfba516849f162315ad6f84221d", "score": "0.5665747", "text": "public static function deleteResource($path)\n {\n return self::connection()->delete(self::$api_path . $path);\n }", "title": "" }, { "docid": "69a154c8dd7554c5d94a4342c7cd5cdb", "score": "0.5658909", "text": "public function destroy($id)\n {\n $post = Post::findOrFail($id);\n\n if ($post->delete()) {\n // $pathFile = 'public/images/posts/'.$post->id.'/'.$post->image;\n // Storage::delete($pathFile); \n $directory = 'public/images/posts/'.$post->id;\n Storage::deleteDirectory($directory);\n return new PostResource($post); \n }\n }", "title": "" }, { "docid": "eb92e59472a66f526e8451c8f21bdf4e", "score": "0.5656929", "text": "public function delete() {\n\n\t\tif(@unlink($this->getPath())) {\n\t\t\t$this->deleteCacheEntries();\n\t\t\tself::unsetInstance($this->getPath());\n\t\t}\n\t\telse {\n\t\t\tthrow new FilesystemFileException(\"Delete of file '{$this->getPath()}' failed.\", FilesystemFileException::FILE_DELETE_FAILED);\n\t\t}\n\n\t}", "title": "" }, { "docid": "68b056485e68ac39f79affa279e97493", "score": "0.56567174", "text": "public function detach()\n {\n if (isset($this->resource)) {\n $resource = $this->resource;\n unset($this->resource);\n $this->writable = false;\n $this->readable = false;\n $this->seekable = false;\n\n return $resource;\n }\n\n return null;\n }", "title": "" }, { "docid": "fbb116f6ac56321ab7f8ac3657cf2fe5", "score": "0.56525016", "text": "public function destroy($id)\n {\n $product = Product::findOrFail($id);\n\n if($product->delete()) {\n return new ProductResource($product); // Softdelete , so not fully removed from database\n }\n }", "title": "" }, { "docid": "44c63c5b3795e7dce6956436c2743a6d", "score": "0.5652381", "text": "public function destroy($id)\n {\n $item = Item::find($id);\n //unlink('public/upload/',$item->image);\n $item->delete();\n return redirect()->back()->with('successMsg','Item Successful Deleted');\n }", "title": "" }, { "docid": "83245035c56c1061e3fec48af5bcf32a", "score": "0.56511873", "text": "public function destroy($id)\n {\n\n $product = Product::find($id);\n\n $url = str_replace('storage', 'public', $product->img1);\n $url2 = str_replace('storage', 'public', $product->img2);\n $url3 = str_replace('storage', 'public', $product->img3);\n Storage::delete($url, $url2, $url3);\n $product->delete();\n\n return redirect()->route('products.index')->with('mensaje', '¡Producto eliminado con exito!');\n }", "title": "" }, { "docid": "e24a8da2185cf275580016315ac8c0fe", "score": "0.5646982", "text": "public abstract function remove();", "title": "" }, { "docid": "786a12a689855596655493143a37b27e", "score": "0.5645049", "text": "public function unlink(string $path)\n {\n return Storage::delete($path);\n }", "title": "" }, { "docid": "010144c818dfc6354b41f21bf553fbc0", "score": "0.564258", "text": "public function erase() {\n\t\t\tif ($this->full) @unlink(PUBLIC_PATH.$this->full);\n\t\t\tif ($this->xlarge) @unlink(PUBLIC_PATH.$this->xlarge);\n\t\t\tif ($this->large)\t @unlink(PUBLIC_PATH.$this->large);\n\t\t\tif ($this->medium) @unlink(PUBLIC_PATH.$this->medium);\n\t\t\tif ($this->small)\t @unlink(PUBLIC_PATH.$this->small);\n\t\t\tif ($this->thumb) @unlink(PUBLIC_PATH.$this->thumb);\n\n\t\t\t$this->delete();\n\t\t}", "title": "" }, { "docid": "ceea9d8513e8e79459b52b54be906615", "score": "0.56396544", "text": "public\n function destroy($id)\n {\n //\n\n File::delete(Store::find($id)->image);\n Store::destroy($id);\n\n return redirect('admin/stores');\n\n }", "title": "" }, { "docid": "db6fad7ca04f5544537b4bec574af558", "score": "0.5633853", "text": "public function destroy($id)\n {\n $obj = Obj::where('id',$id)->first();\n $this->authorize('update', $obj);\n\n // remove file\n if(Storage::disk('public')->exists($obj->file))\n Storage::disk('public')->delete($obj->file);\n \n $obj->delete();\n\n flash('('.$this->app.'/'.$this->module.') item Successfully deleted!')->success();\n return redirect()->route($this->module.'.index');\n }", "title": "" }, { "docid": "957490ec57d30e31f79966fe85429296", "score": "0.56289595", "text": "public function unlinkResource($yResource){\n throw new BadMethodCallException('Not implemented');\n }", "title": "" }, { "docid": "e717d53c88fa5503cc7c5a32f38b6970", "score": "0.5617843", "text": "public function destroy($id)\n {\n $photo = Photo::find($id);\n // $photo->delete();\n // return redirect('admin');\n\n if(Storage::delete('public/photos/'.$photo->photo)){\n $photo->delete();\n return redirect('admin');\n }\n\n\n }", "title": "" }, { "docid": "0c68a9c400bdcd462f0588384ac756f5", "score": "0.561063", "text": "Public Function remove($object) { Throw New Exception(\"This operation is not supported!\"); }", "title": "" }, { "docid": "a0a1dbbaa8ed3cd26c81e40264857ac8", "score": "0.56048614", "text": "public function delete()\n {\n $this->files->delete(\n $this->path\n );\n }", "title": "" }, { "docid": "7029190b54836645fa5b9222e05f43e0", "score": "0.5596282", "text": "public function destroy(Resource $resource, ResourceDestroyRequest $request)\n {\n $resource->delete();\n\n flash('Resource was deleted');\n\n return redirect('/resources');\n }", "title": "" }, { "docid": "248a65d3535b18a6af2749ed33ba0068", "score": "0.5588554", "text": "function removeImage($id) {\n $filename = trim(getLine('images', $id));\n unlink(\"data/upload/$filename\");\n}", "title": "" }, { "docid": "97914eb78d7cf648246f9bcd6ac69124", "score": "0.5573565", "text": "public function destroy($id)\n {\n /*\n\n = R::load( '', $id );\n R::trash( );*/\n }", "title": "" }, { "docid": "9b5652276f33d649752a19fec7e74e5e", "score": "0.5566123", "text": "public function destroy($id) \n {\n $ilustrable = $this->ilustrableRepository->find($id);\n\n if (empty($ilustrable)) {\n Flash::error('Ilustrable not found');\n return redirect(route('ilustrables.index'));\n }\n\n\n Storage::disk('s3')->delete($ilustrable->url);\n\n $this->ilustrableRepository->delete($id);\n\n Flash::success('Ilustrable deleted successfully.');\n\n return redirect(route('ilustrables.index'));\n\n\n\n }", "title": "" }, { "docid": "5c74ddaa4b4331df1df9a9d9f99d9201", "score": "0.5563961", "text": "public function delete()\n\t{\n\n\t\treturn unlink($this -> getAbsolutePath());\n\n\t}", "title": "" }, { "docid": "b0d0f52754de1bfe1598022129b11197", "score": "0.5555713", "text": "public function destroy($id)\n\t{\n //$this->setUpload();\n $photo = Photo::find($id);\n $photo->delete();\n\t}", "title": "" }, { "docid": "48fb4f821840d308371afe4a8e588443", "score": "0.5551229", "text": "public function destroy($id){\n $oldimg = Slider::findOrFail($id);\n unlink($oldimg->image);\n Slider::findOrFail($id)->delete();\n\n $notification=array(\n 'message'=>'Slider Dlete Success',\n 'alert-type'=>'success'\n );\n return Redirect()->back()->with($notification);\n}", "title": "" }, { "docid": "d282a817faf6219d91dcea9865d53b7e", "score": "0.5550354", "text": "public function supprimer()\n {\n if (file_exists($this->path)) {\n unlink($this->path);\n }\n }", "title": "" }, { "docid": "d408748cefdee0a7a0416ba3bc353f29", "score": "0.5548055", "text": "public function removeUpload()\n {\n if ($image = $this->getAbsolutePath()) {\n unlink($image);\n }\n }", "title": "" }, { "docid": "51774cfea1c548c470b2da87ef929989", "score": "0.5546581", "text": "public function destroy($id)\n{\n//\n$entity = \\App\\TopicFiles::find($id);\n$entity->delete();\nSession::flash('message','Resource with Id='.$id.' is deleted');\nreturn Redirect::to('admin/resources');\n}", "title": "" }, { "docid": "3dc3f0ef8d27eab59f996e5ec19c0d6d", "score": "0.5545662", "text": "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "title": "" }, { "docid": "31320f29dd46b4362a4757791ffacdf8", "score": "0.55455744", "text": "public function destroy($id)\n {\n //\n $image = Image::find($id);\n $path = $image->path;\n $image->delete();\n Storage::delete($path);\n return redirect()->back();\n }", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "011a1099037a10b13b608705d82ad9f5", "score": "0.55397844", "text": "public function destroy($id)\n {\n //get record\n $record = Record::findOrFail($id);\n\n if($record->delete()){\n return new RecordResource($record);\n }\n }", "title": "" }, { "docid": "b5b688091a31c75ff8615389051972dc", "score": "0.5539336", "text": "public function delete()\n {\n $this->removeImage();\n parent::delete();\n }", "title": "" }, { "docid": "1a8e55bbc7801e030bc6bd9c7daa7cff", "score": "0.553438", "text": "public function remove(AbstractSegment $segment)\n {\n $this->getStorageManager()->remove($segment);\n }", "title": "" }, { "docid": "9b8af964ac0ac6afbd201a65de8377de", "score": "0.5527696", "text": "public function destroy($id)\n {\n $show=ShowTime::find($id);\n //delete related file from storage\n $show->delete();\n return redirect()->route('showtimes.index');\n }", "title": "" }, { "docid": "005e76d12f3e33cf851bb1d81b4b1e21", "score": "0.5527446", "text": "public function destroy(Resource $resource, ResourceDestroyRequest $request)\n {\n $resource->delete();\n\n flash('Resource was deleted');\n\n return ($backUrl = session()->get('index-referer-url'))\n ? redirect()->to($backUrl)\n : redirect('/resources');\n }", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "dce766ba615b9c565281bda458f39f65", "score": "0.55237657", "text": "public function destroy() {\n if ($this->delete()) {\n // then remove the file\n // Note that even though the database entry is gone, this object \n // is still around (which lets us use $this->image_path()).\n $target_path = WEB_DIR.DS.$this->image_path();\n return unlink($target_path) ? true : false;\n } else {\n // database delete failed\n return false;\n }\n }", "title": "" }, { "docid": "5fcc6ea0230462f7987bcc9f72784daa", "score": "0.5518047", "text": "public function destroy($id){\n\n try{\n $file_db = File::select()->where('id',$id)->get()[0];\n // Delete from STORAGE \n Storage::delete($file_db->route);\n // Delete from DB\n $file_db->delete();\n Alert::success('Eliminación', 'Eliminación exitosa');\n return back();\n } catch(Exception $e) {\n Alert::error('Error', 'ha ocurrido un error al intentar eliminar el archivo');\n return back();\n }\n }", "title": "" } ]
fff16db7273635e20a05cf73f62b6405
Method to set the value of field add_datetime
[ { "docid": "04924452da8d122b26907bfb63ca26f5", "score": "0.7084299", "text": "public function setAddDatetime($add_datetime)\n {\n $this->add_datetime = $add_datetime;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "ed43e69ed4c8382c0a4b1df1bf9256d2", "score": "0.72374105", "text": "public function getAddDatetime()\n {\n return $this->add_datetime;\n }", "title": "" }, { "docid": "4f8217b0058ea7d45792bbedf28652f5", "score": "0.6935868", "text": "public function setDateAdd($v)\n\t{\n\t\t$dt = PropelDateTime::newInstance($v, null, 'DateTime');\n\t\tif ($this->date_add !== null || $dt !== null) {\n\t\t\t$currentDateAsString = ($this->date_add !== null && $tmpDt = new DateTime($this->date_add)) ? $tmpDt->format('Y-m-d H:i:s') : null;\n\t\t\t$newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;\n\t\t\tif ($currentDateAsString !== $newDateAsString) {\n\t\t\t\t$this->date_add = $newDateAsString;\n\t\t\t\t$this->modifiedColumns[] = Oops_Db_ProductPeer::DATE_ADD;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "ad7aa21cc1f33130d166040023d3392e", "score": "0.64321905", "text": "public function getDateAdd()\n {\n return $this->date_add;\n }", "title": "" }, { "docid": "ba4875b89a9a9e205db65ef010c6126f", "score": "0.64145225", "text": "public function setAddTime($add_time)\n\t{\n\t\t$column = self::COL_ADD_TIME;\n\t\t$this->$column = $add_time;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "ba4875b89a9a9e205db65ef010c6126f", "score": "0.64145225", "text": "public function setAddTime($add_time)\n\t{\n\t\t$column = self::COL_ADD_TIME;\n\t\t$this->$column = $add_time;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "47227a4622397be55c007f72123ae175", "score": "0.6396435", "text": "public function getAddDate()\n\t{\n\t\treturn $this->add_date;\n\t}", "title": "" }, { "docid": "5485ff28fca8589221aacaf6d2e358d4", "score": "0.6206689", "text": "public function setDatetimeAttribute($value='') {\n if (is_string($value) && strlen($value)===16) $this->attributes['datetime'] = \"{$value}:00\";\n else $this->attributes['datetime'] = $value;\n }", "title": "" }, { "docid": "8b174dde600b5df68909d68d0116fd43", "score": "0.61234343", "text": "public function getAddTime()\n {\n return $this->add_time;\n }", "title": "" }, { "docid": "1296a0972ffe6ad52bf3bb9529b52abb", "score": "0.6077203", "text": "public function setAddTime($add_time)\n {\n $this->add_time = $add_time;\n\n return $this;\n }", "title": "" }, { "docid": "9f86b1c4462801ed72f23e9a64b1039f", "score": "0.60719484", "text": "public function setAddDate($add_date)\n\t{\n\t\t$this->add_date = $add_date;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "72f752a92e0850c8ba313049c0130d45", "score": "0.59131795", "text": "public function setDateAdd($date_add)\n {\n $this->date_add = $date_add;\n\n return $this;\n }", "title": "" }, { "docid": "bf80d8274f50413a6c3e2503eabec1b5", "score": "0.579332", "text": "public function updateDatetime( Inx_Api_Recipient_Attribute $oAttr, $sValue );", "title": "" }, { "docid": "ae7a93d8d4344b019523392b60dc2d5e", "score": "0.576966", "text": "public function setUpdatedValue()\n {\n $this->setUpdated(new \\DateTime());\n }", "title": "" }, { "docid": "3c492d05744c2f307129783018b9e2c9", "score": "0.5765617", "text": "public function add(){\n\t\t//$sql .= \"value (\\\"$this->name\\\",\\\"$this->lastname\\\",\\\"$this->username\\\",\\\"$this->email\\\",\\\"$this->password\\\",$this->created_at)\";\n\t\t$fs = Crudadmin::prepareFields(self::$schema,\"add\");\n\t\t$vs = Crudadmin::prepareValues(self::$schema,$this,\"add\");\n\t\t$fs[]=\"created_at\";\n\t\t$vs[]=\"NOW()\";\n\t\t$sql = Crudadmin::buildIFromFV(self::$tablename,$fs, $vs);\n\t\tExecutor::doit($sql);\n\t}", "title": "" }, { "docid": "9f655864366b20f23dc8ffcd7e4e007a", "score": "0.56928843", "text": "public function set_date()\n {\n $this->getProject();\n $values = $this->request->getJson();\n\n $result = $this->taskModel->update([\n 'id' => $values['id'],\n 'date_started' => strtotime($values['start']),\n 'date_due' => strtotime($values['end']),\n ]);\n\n if (!$result) {\n $this->response->json(['message' => 'Unable to save task'], 400);\n } else {\n $this->response->json(['message' => 'OK'], 201);\n }\n }", "title": "" }, { "docid": "92f233713b1c0a4e89adc658da482252", "score": "0.5677987", "text": "function SetDateTime($dateTime)\t\t{$this->DateTime = $dateTime;}", "title": "" }, { "docid": "b6affefaad83eda7ed26e2c58c9a8d8e", "score": "0.5625695", "text": "public function getAddTime()\n\t{\n\t\t$column = self::COL_ADD_TIME;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (string)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "title": "" }, { "docid": "8da7bc52d1403a1b318e302f3d3fa7be", "score": "0.56071186", "text": "public function setAbeReqDate ($v)\n {\n if ( $v !== null && !is_int ($v) )\n {\n $ts = strtotime ($v);\n //Date/time accepts null values\n if ( $v == '' )\n {\n $ts = null;\n }\n if ( $ts === -1 || $ts === false )\n {\n throw new Exception (\"Unable to parse date/time value for [abe_req_date] from input: \");\n }\n }\n else\n {\n $ts = $v;\n }\n if ( $this->abe_req_date !== $ts )\n {\n $this->abe_req_date = date (\"Y-m-d H:i:s\", $ts);\n }\n }", "title": "" }, { "docid": "aacf603348ecf1499bf6e9fe68176122", "score": "0.5591215", "text": "public function setLastUpdateDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('lastUpdateDateTime', $value);\n }", "title": "" }, { "docid": "ee9fd72e7153d25a25220bd727138422", "score": "0.55721855", "text": "public function getAddTime()\n\t{\n\t\t$column = self::COL_ADD_TIME;\n\t\t$v = $this->$column;\n\n\t\tif ($v !== null) {\n\t\t\t$v = (string)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "title": "" }, { "docid": "d340482974711b4391115454528ffbfa", "score": "0.5535219", "text": "public function setFechaActivacion($value) {\n //$this->fecha_activacion=date('Y-m-d H:i:s',$value);\n }", "title": "" }, { "docid": "1e5c89746ffee9867b1ea28179ea01c5", "score": "0.5505649", "text": "public function setDatetime($datetime)\n {\n $this->dateTime = $datetime;\n }", "title": "" }, { "docid": "7c3c55a79e42232f743a501dc6df4939", "score": "0.54810673", "text": "public function setDate(DateTime $date);", "title": "" }, { "docid": "1de9297c589f53a480c7ea7dcadccd2f", "score": "0.5470938", "text": "public function setEventDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('eventDateTime', $value);\n }", "title": "" }, { "docid": "df959f683975fe4db3c2c6c69590abf6", "score": "0.54491794", "text": "public function add( $key, $value )\n\t\t{\n\t\t\t$timestamp = strtotime( (string)$key );\n\n\t\t\tif( $timestamp !== false )\n\t\t\t{\n\t\t\t\tif( is_string( $value ))\n\t\t\t\t{\n\t\t\t\t\treturn parent::add( date('Y-m-d', $timestamp), $value );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthrow new \\Exception(\"Argument 2 passed to \".get_class($this).\"::add() must be a string\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new \\Exception(\"Argument 1 passed to \".get_class($this).\"::add() must be a valid datetime string\");\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ccbe3325184e9faaccbd1f1fbbac59be", "score": "0.54104924", "text": "public function setActivityDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('activityDateTime', $value);\n }", "title": "" }, { "docid": "4c06097811b0c11ca50c799fac266dea", "score": "0.5407693", "text": "public function setDepartureTimeAttribute($value)\n {\n $this->attributes['departure_time'] = new Carbon($value);\n }", "title": "" }, { "docid": "4bba52e8d0cd664ec0027f0025c13576", "score": "0.5405985", "text": "public function setExpirationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('expirationDateTime', $value);\n }", "title": "" }, { "docid": "2b86ce8d8f9084842106766abb0670a2", "score": "0.5391136", "text": "public function setLastUpdatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('lastUpdatedDateTime', $value);\n }", "title": "" }, { "docid": "2b86ce8d8f9084842106766abb0670a2", "score": "0.5391136", "text": "public function setLastUpdatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('lastUpdatedDateTime', $value);\n }", "title": "" }, { "docid": "f329bc556d390756d2df09dd9488df89", "score": "0.5383718", "text": "public function addSeconds($add)\n {\n $this->setTimestamp($this->getTimestamp() + intval($add));\n }", "title": "" }, { "docid": "3f95253a2809e07c3b917576de203028", "score": "0.537887", "text": "function update()\n {\n parent::updateByString(['post_dt']);\n }", "title": "" }, { "docid": "42eda72b0f1bf1b1bdf9f53309ca8c4b", "score": "0.53530455", "text": "public function setDate(?DateTime $value): void {\n $this->getBackingStore()->set('date', $value);\n }", "title": "" }, { "docid": "8f3044880692cfc11903819f9e82b7ef", "score": "0.5348905", "text": "public function setLastModifiedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('lastModifiedDateTime', $value);\n }", "title": "" }, { "docid": "8f3044880692cfc11903819f9e82b7ef", "score": "0.5348905", "text": "public function setLastModifiedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('lastModifiedDateTime', $value);\n }", "title": "" }, { "docid": "8f3044880692cfc11903819f9e82b7ef", "score": "0.5348905", "text": "public function setLastModifiedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('lastModifiedDateTime', $value);\n }", "title": "" }, { "docid": "8f3044880692cfc11903819f9e82b7ef", "score": "0.5348905", "text": "public function setLastModifiedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('lastModifiedDateTime', $value);\n }", "title": "" }, { "docid": "8f3044880692cfc11903819f9e82b7ef", "score": "0.5348905", "text": "public function setLastModifiedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('lastModifiedDateTime', $value);\n }", "title": "" }, { "docid": "5c7e49efb0a3acc57d6725b4606148b0", "score": "0.53451604", "text": "public function setUpdatedAtValue()\n {\n $this->updatedAt = new \\DateTime();\n }", "title": "" }, { "docid": "5c7e49efb0a3acc57d6725b4606148b0", "score": "0.53451604", "text": "public function setUpdatedAtValue()\n {\n $this->updatedAt = new \\DateTime();\n }", "title": "" }, { "docid": "5c7e49efb0a3acc57d6725b4606148b0", "score": "0.53451604", "text": "public function setUpdatedAtValue()\n {\n $this->updatedAt = new \\DateTime();\n }", "title": "" }, { "docid": "a16bfad39e85a5f49b86bcf88cda2ae0", "score": "0.53385675", "text": "public function setOrderAddTime($order_add_time)\n {\n $this->order_add_time = $order_add_time;\n\n return $this;\n }", "title": "" }, { "docid": "5f92def6552a44e941f5ef85b5cb8fd6", "score": "0.5337639", "text": "public function setDate($date);", "title": "" }, { "docid": "3ca77c603b2e9c35d38f0b82fe39e052", "score": "0.53345126", "text": "public function setModifiedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('modifiedDateTime', $value);\n }", "title": "" }, { "docid": "ae41a86d690f9834db8ebe0f3038ce9c", "score": "0.5332289", "text": "public function setUpdDatetime($upd_datetime)\n {\n $this->upd_datetime = $upd_datetime;\n\n return $this;\n }", "title": "" }, { "docid": "c8e129b9ad39398a2b4dc7b2a047adcb", "score": "0.5329507", "text": "public function set_add_point ($add_point) {\n $this->add_point = $add_point;\n }", "title": "" }, { "docid": "68506df60edb7a195a493674d55f4ff7", "score": "0.5313956", "text": "public function setStartTime(?DateTime $value): void {\n $this->getBackingStore()->set('startTime', $value);\n }", "title": "" }, { "docid": "06fb4f0036742d9d94c304ac92d59a55", "score": "0.5312674", "text": "function setLastDate(&$rec)\n {\n $rec['lastdate'] = mktime($rec[\"starttime\"][\"hours\"],$rec[\"starttime\"][\"minutes\"],$rec[\"starttime\"][\"seconds\"],$rec['startdate']['month'],$rec['startdate']['day'],$rec['startdate']['year']);\n }", "title": "" }, { "docid": "dd726ae0435b020626b85cb471e4955f", "score": "0.53069055", "text": "public function setSystemDateTimeAttribute($input)\n {\n if ($input != null && $input != '') {\n $this->attributes['system_date_time'] = Carbon::createFromFormat(config('app.date_format') . ' H:i:s', $input)->format('Y-m-d H:i:s');\n } else {\n $this->attributes['system_date_time'] = null;\n }\n }", "title": "" }, { "docid": "a0705782a0a0cda5e1dc43b14b474f33", "score": "0.53037435", "text": "public function setDhInc($value,$options=array('required'=>true)){ \n $this->_data['dh_inc'] = new ZendT_Type_Date($value,'DateTime');\n if ($options['db'])\n $this->_data['dh_inc']->setValueFromDb($value);\n \n if (!$options['db']){\n \n if ($options['required'])\n $this->isRequired($value,'dh_inc');\n \n }\n return $this;\n }", "title": "" }, { "docid": "a0705782a0a0cda5e1dc43b14b474f33", "score": "0.53037435", "text": "public function setDhInc($value,$options=array('required'=>true)){ \n $this->_data['dh_inc'] = new ZendT_Type_Date($value,'DateTime');\n if ($options['db'])\n $this->_data['dh_inc']->setValueFromDb($value);\n \n if (!$options['db']){\n \n if ($options['required'])\n $this->isRequired($value,'dh_inc');\n \n }\n return $this;\n }", "title": "" }, { "docid": "277f5d54d492d231f0500f1b29899819", "score": "0.5298118", "text": "public function testSetBlockedDate()\n {\n \t$date = Tinebase_DateTime::now();\n \t$date->add ( '12:00:00' );\n Tinebase_User::getInstance()->setBlockedDate($this->objects['initialAccount'], $date );\n }", "title": "" }, { "docid": "1bd3131580e6ad80b3134807d05dc495", "score": "0.5294564", "text": "public function getOrderAddTime()\n {\n return $this->order_add_time;\n }", "title": "" }, { "docid": "6bc18bd0543b68bdeca9b7258f66696c", "score": "0.52788126", "text": "public function setSelfGivingDate($v)\n\t{\n\t\t// we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')\n\t\t// -- which is unexpected, to say the least.\n\t\tif ($v === null || $v === '') {\n\t\t\t$dt = null;\n\t\t} elseif ($v instanceof DateTime) {\n\t\t\t$dt = $v;\n\t\t} else {\n\t\t\t// some string/numeric value passed; we normalize that so that we can\n\t\t\t// validate it.\n\t\t\ttry {\n\t\t\t\tif (is_numeric($v)) { // if it's a unix timestamp\n\t\t\t\t\t$dt = new DateTime('@'.$v, new DateTimeZone('UTC'));\n\t\t\t\t\t// We have to explicitly specify and then change the time zone because of a\n\t\t\t\t\t// DateTime bug: http://bugs.php.net/bug.php?id=43003\n\t\t\t\t\t$dt->setTimeZone(new DateTimeZone(date_default_timezone_get()));\n\t\t\t\t} else {\n\t\t\t\t\t$dt = new DateTime($v);\n\t\t\t\t}\n\t\t\t} catch (Exception $x) {\n\t\t\t\tthrow new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);\n\t\t\t}\n\t\t}\n\n\t\tif ( $this->self_giving_date !== null || $dt !== null ) {\n\t\t\t// (nested ifs are a little easier to read in this case)\n\n\t\t\t$currNorm = ($this->self_giving_date !== null && $tmpDt = new DateTime($this->self_giving_date)) ? $tmpDt->format('Y-m-d') : null;\n\t\t\t$newNorm = ($dt !== null) ? $dt->format('Y-m-d') : null;\n\n\t\t\tif ( ($currNorm !== $newNorm) // normalized values don't match \n\t\t\t\t\t)\n\t\t\t{\n\t\t\t\t$this->self_giving_date = ($dt ? $dt->format('Y-m-d') : null);\n\t\t\t\t$this->modifiedColumns[] = OrderShippingPeer::SELF_GIVING_DATE;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "3a5d1ec096d57e6a5f1cfc94e1ae34a0", "score": "0.52776015", "text": "public function setDate()\n {\n parent::setDate(date('Y-m-d', strtotime($this->item->getCreatedAt())));\n }", "title": "" }, { "docid": "e18d32dacae094cc4ba5273ed68bfc95", "score": "0.52758306", "text": "public function setDate($date)\n {\n }", "title": "" }, { "docid": "4fbf2352b410f4f26c4c4a395f8235da", "score": "0.5272693", "text": "function setDateTime($index, $value)\n\t{\n\t\tif( $value === NULL ){\n\t\t\t$v = \"NULL\";\n\t\t} else {\n\t\t\t// Generate \"YYYY-MM-DDTHH:mm\":\n\t\t\t$v = $value->toTZ(0)->getDateTime()->__toString();\n\t\t\t// ...remove middle \"T\":\n\t\t\t$v = (string) str_replace(\"T\", \" \", $v);\n\t\t\t$v = \"'$v'\";\n\t\t}\n\t\t$this->setParameter($index, $v);\n\t}", "title": "" }, { "docid": "38aeefef75bffa51bb623cbb982746f5", "score": "0.5265878", "text": "public function setDateModified()\n {\n $this->date_modified = new \\DateTime();\n }", "title": "" }, { "docid": "469218bba14559f43a69497503b00ef9", "score": "0.5260996", "text": "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "title": "" }, { "docid": "469218bba14559f43a69497503b00ef9", "score": "0.5260996", "text": "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "title": "" }, { "docid": "469218bba14559f43a69497503b00ef9", "score": "0.5260996", "text": "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "title": "" }, { "docid": "469218bba14559f43a69497503b00ef9", "score": "0.5260996", "text": "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "title": "" }, { "docid": "469218bba14559f43a69497503b00ef9", "score": "0.5260996", "text": "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "title": "" }, { "docid": "469218bba14559f43a69497503b00ef9", "score": "0.5260996", "text": "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "title": "" }, { "docid": "469218bba14559f43a69497503b00ef9", "score": "0.5260996", "text": "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "title": "" }, { "docid": "469218bba14559f43a69497503b00ef9", "score": "0.5260996", "text": "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "title": "" }, { "docid": "f0487479c1f5bb46eec8a248bc513b24", "score": "0.5256381", "text": "public static function addDayToDate($add = '+1 days', $date = 'now'){\n\t\tif($date == 'now') $date = date('Y-m-d');\n return date('Y-m-d', strtotime($date.' '.$add));\n }", "title": "" }, { "docid": "efbfc400caa1b813f2af4dfee2c7c51c", "score": "0.5256364", "text": "public function setTimeAdditionalFee($value) {\n return $this->set(self::TIMEADDITIONALFEE, $value);\n }", "title": "" }, { "docid": "98b5c15900c3fc965961cd542ac8fbf2", "score": "0.52519864", "text": "public function setValue($value)\n {\n if ($value == '') {\n $this->value = null;\n }\n else {\n $tmpValue = strtotime($value);\n if ($tmpValue === false)\n $tmpValue = time();\n $this->value = $tmpValue;\n }\n }", "title": "" }, { "docid": "84048b030f11a8e12e0a9d14de915b08", "score": "0.5243032", "text": "public function setDateAdded(DateTime $dateAdded = null) {\n $this->dateAdded = $dateAdded;\n return $this;\n }", "title": "" }, { "docid": "84936b266c9ada78b0a712024dc470d0", "score": "0.5242606", "text": "public function setLastUpdateAttribibute($date) {\n \t//$this->attributes['lastupdate'] = Carbon::createfromformat('d/m/Y H:i:s',$date); \n \t$this->attributes['lastupdate'] = Carbon::parse($date); \n }", "title": "" }, { "docid": "e36aae80d52de037f03e6be6ad62714a", "score": "0.5241622", "text": "public function addSubmissionDateTimeElements(Entity\\Event $event = null)\n {\n $this->add(\n [\n 'name' => 'submission_date',\n //'type' => 'text',\n 'type' => self::DATE_ELEMENT_TYPE,\n 'attributes' => [\n 'id' => 'submission_date',\n 'class' => 'date form-control',\n 'placeholder' => 'date',\n ],\n 'options' => [\n 'label' => 'requested on',\n //'format' => 'Y-m-d',\n ]\n ]\n );\n $this->add(\n [\n 'name' => 'submission_time',\n\n 'type' => self::TIME_ELEMENT_TYPE,\n 'attributes' => [\n 'id' => 'submission_time',\n 'class' => 'time form-control',\n 'placeholder' => 'time',\n ],\n 'options' => [\n 'label' => 'time',\n //'format' => 'H:i:s',\n ],\n ]\n );\n\n return $this;\n }", "title": "" }, { "docid": "7e5517af6dea2fc8f1ab7337438b8579", "score": "0.52401215", "text": "public function setLastHealthCheckDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('lastHealthCheckDateTime', $value);\n }", "title": "" }, { "docid": "b3cc877ba2e791093bee73b0c4f35f4c", "score": "0.5225043", "text": "public function setStartDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('startDateTime', $value);\n }", "title": "" }, { "docid": "b3cc877ba2e791093bee73b0c4f35f4c", "score": "0.5225043", "text": "public function setStartDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('startDateTime', $value);\n }", "title": "" }, { "docid": "b3cc877ba2e791093bee73b0c4f35f4c", "score": "0.5225043", "text": "public function setStartDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('startDateTime', $value);\n }", "title": "" }, { "docid": "4aa73f7fcd3a4ded135097d0c8281829", "score": "0.52227956", "text": "public function populateDefaults(){\n\t\tparent::populateDefaults();\n\t\t\n\t\t$this->setField('Date', date('Y-m-d H:i:s', strtotime('now')));\n\t}", "title": "" }, { "docid": "b7785ba257e5b75d0f935b8438cfb234", "score": "0.5220971", "text": "public function getAddedTime()\n {\n return $this->added_time;\n }", "title": "" }, { "docid": "8365cac3803099a3ff5f6a43abd10f15", "score": "0.5215276", "text": "public function setMeetingdateAttribute($input)\n {\n if ($input) {\n $this->attributes['meetingdate'] = Carbon::createFromFormat(config('app.date_format') . ' H:i:s', $input)->format('Y-m-d H:i:s');\n }\n }", "title": "" }, { "docid": "4d2368383be0fba95a4f440177133e57", "score": "0.5214283", "text": "Public Function setStarttime(DateTime $start) { $this->starttime = $start; }", "title": "" }, { "docid": "6ac03130cf1cd2f8c5fda95900da6372", "score": "0.5209406", "text": "public function setValue($value = NULL) {\n\n\t\tif (is_array($value)) {\n\t\t\t// zónu ignorujeme\n\t\t\t$value = new DateTime($value['date']);\n\t\t}\n\n\t\tparent::setValue($value);\n\n\t}", "title": "" }, { "docid": "559b850488cd6780675be1eaf74049d8", "score": "0.52059585", "text": "function setReqdColltnDt( $time=null ) {\n\t\t$max_time = strtotime( \"+8 day\" );\n\t\tif ( !empty( $time ) && $time > $this->timestamp && $time <= $max_time ) {\n\t\t\t$this->execution_date = date( 'dmY', $time );\n\t\t}\n\t}", "title": "" }, { "docid": "647ca9b275a06c19b65a72e85e25604e", "score": "0.51917356", "text": "public function changeDateTime($datetime, $daysToAdd, $minutesToAdd)\n\t{\n\t\t$datetime = strtotime($datetime);\n\t\t$futureDate = $datetime + (60 * $minutesToAdd) + (24 * 60 * 60 * $daysToAdd);\n\t\t$formatDate = date(\"Y-m-d H:i:s\", $futureDate);\n\t\treturn $formatDate;\n\t}", "title": "" }, { "docid": "0b001db502929169707273270a0d3a5a", "score": "0.51877654", "text": "protected function before_save() {\n $this->fecha_asignacion = date(\"Y-m-d\");\n $fecha_ins= new DateTime($this->fecha_inspeccion);\n $this->fecha_inspeccion = $fecha_ins->format('Y-m-d');\n\n }", "title": "" }, { "docid": "47706f9bf5b4f22e44eb04711abedcba", "score": "0.5184236", "text": "public function setDateCreated($v)\n\t{\n\t\t// we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')\n\t\t// -- which is unexpected, to say the least.\n\t\tif ($v === null || $v === '') {\n\t\t\t$dt = null;\n\t\t} elseif ($v instanceof DateTime) {\n\t\t\t$dt = $v;\n\t\t} else {\n\t\t\t// some string/numeric value passed; we normalize that so that we can\n\t\t\t// validate it.\n\t\t\ttry {\n\t\t\t\tif (is_numeric($v)) { // if it's a unix timestamp\n\t\t\t\t\t$dt = new DateTime('@'.$v, new DateTimeZone('UTC'));\n\t\t\t\t\t// We have to explicitly specify and then change the time zone because of a\n\t\t\t\t\t// DateTime bug: http://bugs.php.net/bug.php?id=43003\n\t\t\t\t\t$dt->setTimeZone(new DateTimeZone(date_default_timezone_get()));\n\t\t\t\t} else {\n\t\t\t\t\t$dt = new DateTime($v);\n\t\t\t\t}\n\t\t\t} catch (Exception $x) {\n\t\t\t\tthrow new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);\n\t\t\t}\n\t\t}\n\n\t\tif ( $this->date_created !== null || $dt !== null ) {\n\t\t\t// (nested ifs are a little easier to read in this case)\n\n\t\t\t$currNorm = ($this->date_created !== null && $tmpDt = new DateTime($this->date_created)) ? $tmpDt->format('Y-m-d H:i:s') : null;\n\t\t\t$newNorm = ($dt !== null) ? $dt->format('Y-m-d H:i:s') : null;\n\n\t\t\tif ( ($currNorm !== $newNorm) // normalized values don't match \n\t\t\t\t\t)\n\t\t\t{\n\t\t\t\t$this->date_created = ($dt ? $dt->format('Y-m-d H:i:s') : null);\n\t\t\t\t$this->modifiedColumns[] = ElementPeer::DATE_CREATED;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "a9cdc347f029690be2aa7a56cb34da8e", "score": "0.5179376", "text": "public function setModifiedDate()\n {\n $this->modified_date = new \\DateTime;\n }", "title": "" }, { "docid": "3046ae3ff5fe98c715ab260f2cd40be5", "score": "0.5159633", "text": "public function preUpdateChangeDate()\n {\n $this->updatedAt = new \\DateTime();\n }", "title": "" }, { "docid": "2906064d3c5731678a0cb568feb1ce6e", "score": "0.5146654", "text": "public function setEntryDt($date) {\n\t $this->entry_dt=$date;\n }", "title": "" }, { "docid": "56493cbbff1df6f26633ad670ecb4607", "score": "0.51448256", "text": "public function setMdate(): void\n {\n $this->set('mdate', date('Y-m-d H:i:s'));\n }", "title": "" }, { "docid": "3d078491de2ab171c7ea8fee1dc15ac5", "score": "0.51428616", "text": "public function setSecAddtime($sec_addtime)\n {\n $this->sec_addtime = $sec_addtime;\n\n return $this;\n }", "title": "" }, { "docid": "67cf2408993a52dc83ebb6e507a55233", "score": "0.514073", "text": "public function setTimeUserValues()\n\t{\n\t $now = time();\n\t $uid = get_current_user_id();\n\n\t $this->time_modified = $now;\n\t $this->user_modified = $uid;\n\n\t if ( $this->isNewRecord() ) {\n\t $this->time_created = $now;\n\t $this->user_created = $uid;\n\t }\n\t}", "title": "" }, { "docid": "b731f7a240a3b31b2e09f2614fd32b72", "score": "0.51405376", "text": "public static function setDateTime($date){\n $date = date('d F Y, H:i:s', strtotime($date));\n\n return $date;\n }", "title": "" }, { "docid": "cbc6bd6037365857120204cbaf5dc404", "score": "0.513823", "text": "public function setCreationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('creationDateTime', $value);\n }", "title": "" }, { "docid": "45097f51d99764b124334b739a7e04fa", "score": "0.5135326", "text": "private function addTimestamps()\n {\n if( empty($this->timestamps) ) return;\n\n if( $this->timestamps === TRUE ) $this->timestamps = date('Y-m-d H:i:s');\n\n $this->parsedRow[ 'created_at' ] = $this->timestamps;\n $this->parsedRow[ 'updated_at' ] = $this->timestamps;\n }", "title": "" }, { "docid": "16d238d871b625b8252b4f6a20979aec", "score": "0.5133019", "text": "public function setDataVencimento(\\DateTime $data);", "title": "" }, { "docid": "22aefff2e7facc2d60ac1f8ec924da28", "score": "0.5129354", "text": "public function setLastSignInDateTime($val)\n {\n $this->_propDict[\"lastSignInDateTime\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "0bc9db07fb6e7cf6b732c8eaf7f86eee", "score": "0.51290673", "text": "function setFeedbackDate($a_value)\n\t{\n\t\t$this->feedback_date = (int)$a_value;\n\t}", "title": "" }, { "docid": "fcc3bbf969f996f4a186220f87ffbf7b", "score": "0.51263916", "text": "public function setDateCreated($date_created) {\n$date_created = \\M\\Carbon::now();\n \n\n if(!isset($date_created) || $date_created == \"\"){\n $date_created = \"\";\n }\n $this->fields[\"date_created\"] = $date_created;\n\nreturn $this;\n\n }", "title": "" }, { "docid": "3f0cb3e0407f20e33db3f0129ad9379d", "score": "0.51174647", "text": "function rbm_fh_do_field_datetimepicker( $args = array() ) {\n\trbm_fh()->fields->do_field_datetimepicker( $args['name'], $args );\n}", "title": "" }, { "docid": "a12df6cb8eb51341d50392aeed95e7bc", "score": "0.5112795", "text": "protected function setDateTime()\n {\n try {\n $now = new \\DateTimeImmutable();\n } catch (\\Exception $e) {\n // Should not happen, but if it does, we simply don't do anything.\n return;\n }\n $datestr = $now->format('ymdHi');\n $data = \"\\x02\\x01\\x61\";\n for ($i = 0; $i < 5; $i++) {\n $data .= \\chr(\\substr($datestr, 2 * $i, 2));\n }\n $this->send($this->parser->fromTypeAndPayload(static::TYPE_STATUS, $data));\n }", "title": "" } ]
e04522203554dd2623ab92293249dda2
Gets the public 'sylius.form.type.currency_choice' shared service.
[ { "docid": "be1e890ab270ae90b6b4296628aaa388", "score": "0.86504406", "text": "protected function getSylius_Form_Type_CurrencyChoiceService()\n {\n return $this->services['sylius.form.type.currency_choice'] = new \\Sylius\\Bundle\\CurrencyBundle\\Form\\Type\\CurrencyChoiceType(${($_ = isset($this->services['sylius.repository.currency']) ? $this->services['sylius.repository.currency'] : $this->get('sylius.repository.currency')) && false ?: '_'});\n }", "title": "" } ]
[ { "docid": "95fdecfaf6d6ab6621e3172122dc1657", "score": "0.7599332", "text": "protected function getSylius_Form_Type_CurrencyService()\n {\n return $this->services['sylius.form.type.currency'] = new \\Sylius\\Bundle\\CurrencyBundle\\Form\\Type\\CurrencyType('Sylius\\\\Component\\\\Currency\\\\Model\\\\Currency', array(0 => 'sylius'));\n }", "title": "" }, { "docid": "831568968f573300a763922e1628a842", "score": "0.71323293", "text": "protected function getForm_Type_CurrencyService()\n {\n @trigger_error('The \"form.type.currency\" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);\n\n return $this->services['form.type.currency'] = new \\Symfony\\Component\\Form\\Extension\\Core\\Type\\CurrencyType();\n }", "title": "" }, { "docid": "b52c2f7f3efd4c1732db2a0c72af5eaf", "score": "0.70907724", "text": "protected function getSylius_Form_Type_LocaleChoiceService()\n {\n return $this->services['sylius.form.type.locale_choice'] = new \\Sylius\\Bundle\\LocaleBundle\\Form\\Type\\LocaleChoiceType(${($_ = isset($this->services['sylius.repository.locale']) ? $this->services['sylius.repository.locale'] : $this->get('sylius.repository.locale')) && false ?: '_'});\n }", "title": "" }, { "docid": "a3a826779a6d2f34bb990031f7f94301", "score": "0.68126285", "text": "protected function getSylius_Form_Type_CountryCodeChoiceService()\n {\n return $this->services['sylius.form.type.country_code_choice'] = new \\Sylius\\Bundle\\AddressingBundle\\Form\\Type\\CountryCodeChoiceType(${($_ = isset($this->services['sylius.repository.country']) ? $this->services['sylius.repository.country'] : $this->get('sylius.repository.country')) && false ?: '_'});\n }", "title": "" }, { "docid": "c95882b6c85cbc5286893b492496ce40", "score": "0.6707349", "text": "protected function getSylius_Form_Type_ChannelChoiceService()\n {\n return $this->services['sylius.form.type.channel_choice'] = new \\Sylius\\Bundle\\ChannelBundle\\Form\\Type\\ChannelChoiceType(${($_ = isset($this->services['sylius.repository.channel']) ? $this->services['sylius.repository.channel'] : $this->get('sylius.repository.channel')) && false ?: '_'});\n }", "title": "" }, { "docid": "72ab6b6647d415cd7f17597b2ae4ac40", "score": "0.66789174", "text": "protected function getSylius_Form_Type_TaxCalculatorChoiceService()\n {\n return $this->services['sylius.form.type.tax_calculator_choice'] = new \\Sylius\\Bundle\\TaxationBundle\\Form\\Type\\TaxCalculatorChoiceType(array('default' => 'default'));\n }", "title": "" }, { "docid": "572a3486a2fd2e7e7cf05c42035a7817", "score": "0.666584", "text": "protected function getForm_Type_ChoiceService()\n {\n return $this->services['form.type.choice'] = new \\Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType(new \\Symfony\\Component\\Form\\ChoiceList\\Factory\\CachingFactoryDecorator(new \\Symfony\\Component\\Form\\ChoiceList\\Factory\\PropertyAccessDecorator(new \\Symfony\\Component\\Form\\ChoiceList\\Factory\\DefaultChoiceListFactory(), ${($_ = isset($this->services['property_accessor']) ? $this->services['property_accessor'] : $this->get('property_accessor')) && false ?: '_'})));\n }", "title": "" }, { "docid": "a6e608bad7276272437b8e017807d004", "score": "0.663289", "text": "protected function getSylius_Form_Type_CountryChoiceService()\n {\n return $this->services['sylius.form.type.country_choice'] = new \\Sylius\\Bundle\\AddressingBundle\\Form\\Type\\CountryChoiceType(${($_ = isset($this->services['sylius.repository.country']) ? $this->services['sylius.repository.country'] : $this->get('sylius.repository.country')) && false ?: '_'});\n }", "title": "" }, { "docid": "57b2a01f5d6c8cfc28e6683d1e4d45e5", "score": "0.65991247", "text": "protected function getSylius_Form_Type_PaymentMethodChoiceService()\n {\n return $this->services['sylius.form.type.payment_method_choice'] = new \\Sylius\\Bundle\\PaymentBundle\\Form\\Type\\PaymentMethodChoiceType(${($_ = isset($this->services['sylius.payment_methods_resolver']) ? $this->services['sylius.payment_methods_resolver'] : $this->get('sylius.payment_methods_resolver')) && false ?: '_'}, ${($_ = isset($this->services['sylius.repository.payment_method']) ? $this->services['sylius.repository.payment_method'] : $this->get('sylius.repository.payment_method')) && false ?: '_'});\n }", "title": "" }, { "docid": "fc52d890a63bdc4385c2843649e2552c", "score": "0.6590553", "text": "protected function getSylius_Form_Type_MoneyService()\n {\n return $this->services['sylius.form.type.money'] = new \\Sylius\\Bundle\\MoneyBundle\\Form\\Type\\MoneyType();\n }", "title": "" }, { "docid": "75dca1c5bf8d1376f3acdf8a554fb39d", "score": "0.6507563", "text": "protected function getSylius_Storage_CurrencyService()\n {\n return $this->services['sylius.storage.currency'] = new \\Sylius\\Component\\Core\\Currency\\CurrencyStorage(${($_ = isset($this->services['sylius.storage.cookie']) ? $this->services['sylius.storage.cookie'] : $this->get('sylius.storage.cookie')) && false ?: '_'});\n }", "title": "" }, { "docid": "74d0e4e3c30b92240618d27e069fbb29", "score": "0.6439475", "text": "protected function getSylius_Repository_CurrencyService()\n {\n return $this->services['sylius.repository.currency'] = new \\Sylius\\Bundle\\ResourceBundle\\Doctrine\\ORM\\EntityRepository(${($_ = isset($this->services['doctrine.orm.default_entity_manager']) ? $this->services['doctrine.orm.default_entity_manager'] : $this->get('doctrine.orm.default_entity_manager')) && false ?: '_'}, ${($_ = isset($this->services['doctrine.orm.default_entity_manager']) ? $this->services['doctrine.orm.default_entity_manager'] : $this->get('doctrine.orm.default_entity_manager')) && false ?: '_'}->getClassMetadata('Sylius\\\\Component\\\\Currency\\\\Model\\\\Currency'));\n }", "title": "" }, { "docid": "24ecb5b47e2e682cbe719e0e03f23b57", "score": "0.63893783", "text": "protected function getSylius_Form_Type_ProductOptionChoiceService()\n {\n return $this->services['sylius.form.type.product_option_choice'] = new \\Sylius\\Bundle\\ProductBundle\\Form\\Type\\ProductOptionChoiceType(${($_ = isset($this->services['sylius.repository.product_option']) ? $this->services['sylius.repository.product_option'] : $this->get('sylius.repository.product_option')) && false ?: '_'});\n }", "title": "" }, { "docid": "539be08cab883739d5096f40d23ddc48", "score": "0.62669754", "text": "protected function getSylius_Form_Type_ProductChoiceService()\n {\n return $this->services['sylius.form.type.product_choice'] = new \\Sylius\\Bundle\\ProductBundle\\Form\\Type\\ProductChoiceType(${($_ = isset($this->services['sylius.repository.product']) ? $this->services['sylius.repository.product'] : $this->get('sylius.repository.product')) && false ?: '_'});\n }", "title": "" }, { "docid": "afd76a681cefadab6038fb8e4a54b8fe", "score": "0.6254415", "text": "public function get_selected_currency() {\n\t\treturn ( WC()->session ) ? WC()->session->get( 'client_currency' ) : get_woocommerce_currency();\n\t}", "title": "" }, { "docid": "85ffe30c5f884293a1896b8183601667", "score": "0.62493414", "text": "protected function getSylius_Form_Type_CustomerChoiceService()\n {\n return $this->services['sylius.form.type.customer_choice'] = new \\Sylius\\Bundle\\CustomerBundle\\Form\\Type\\CustomerChoiceType(${($_ = isset($this->services['sylius.repository.customer']) ? $this->services['sylius.repository.customer'] : $this->get('sylius.repository.customer')) && false ?: '_'});\n }", "title": "" }, { "docid": "3a0da4a2b525bd20e26c49e48f4e4084", "score": "0.6196753", "text": "protected function getSylius_Form_Type_ShippingCalculatorChoiceService()\n {\n return $this->services['sylius.form.type.shipping_calculator_choice'] = new \\Sylius\\Bundle\\ShippingBundle\\Form\\Type\\CalculatorChoiceType(array('flat_rate' => 'sylius.form.shipping_calculator.flat_rate_configuration.label', 'per_unit_rate' => 'sylius.form.shipping_calculator.per_unit_rate_configuration.label'));\n }", "title": "" }, { "docid": "e4c45bc4e64b8b1f1aa858330c678126", "score": "0.61581296", "text": "protected function getSylius_Form_Type_PaymentGatewayChoiceService()\n {\n return $this->services['sylius.form.type.payment_gateway_choice'] = new \\Sylius\\Bundle\\PaymentBundle\\Form\\Type\\PaymentGatewayChoiceType(array('offline' => 'sylius.payum_gateway.offline'));\n }", "title": "" }, { "docid": "dad4af8a319859e2e8d887796cdd92e3", "score": "0.6147456", "text": "protected function getSylius_Fixture_CurrencyService()\n {\n return $this->services['sylius.fixture.currency'] = new \\Sylius\\Bundle\\CoreBundle\\Fixture\\CurrencyFixture(${($_ = isset($this->services['sylius.factory.currency']) ? $this->services['sylius.factory.currency'] : $this->get('sylius.factory.currency')) && false ?: '_'}, ${($_ = isset($this->services['doctrine.orm.default_entity_manager']) ? $this->services['doctrine.orm.default_entity_manager'] : $this->get('doctrine.orm.default_entity_manager')) && false ?: '_'});\n }", "title": "" }, { "docid": "61ac67f445e898e3fac0e789344e9201", "score": "0.6135168", "text": "protected function getSylius_Form_Type_ChannelPricingService()\n {\n return $this->services['sylius.form.type.channel_pricing'] = new \\Sylius\\Bundle\\CoreBundle\\Form\\Type\\Product\\ChannelPricingType('Sylius\\\\Component\\\\Core\\\\Model\\\\ChannelPricing', array(0 => 'sylius'));\n }", "title": "" }, { "docid": "cfd523b0c1294a69e762c5479a73283f", "score": "0.6115062", "text": "protected function getSylius_Form_Type_TaxCalculationStrategyChoiceService()\n {\n return $this->services['sylius.form.type.tax_calculation_strategy_choice'] = new \\Sylius\\Bundle\\CoreBundle\\Form\\Type\\TaxCalculationStrategyChoiceType(array('order_items_based' => 'Order items based', 'order_item_units_based' => 'Order item units based'));\n }", "title": "" }, { "docid": "bf785de5b5305ec1fcf18617dd670769", "score": "0.6086354", "text": "public function get_selected_currency() {\n\t\treturn get_woocommerce_currency();\n\t}", "title": "" }, { "docid": "5fd75ec69f8cb515ad3b5510387f52dd", "score": "0.6081059", "text": "protected function getSylius_Form_Type_ProductCodeChoiceService()\n {\n return $this->services['sylius.form.type.product_code_choice'] = new \\Sylius\\Bundle\\ProductBundle\\Form\\Type\\ProductCodeChoiceType(${($_ = isset($this->services['sylius.repository.product']) ? $this->services['sylius.repository.product'] : $this->get('sylius.repository.product')) && false ?: '_'});\n }", "title": "" }, { "docid": "2dca678c99c8d7c2ba7464bfaa927edc", "score": "0.6071317", "text": "protected function getSylius_Form_Type_TaxCategoryChoiceService()\n {\n return $this->services['sylius.form.type.tax_category_choice'] = new \\Sylius\\Bundle\\TaxationBundle\\Form\\Type\\TaxCategoryChoiceType(${($_ = isset($this->services['sylius.repository.tax_category']) ? $this->services['sylius.repository.tax_category'] : $this->get('sylius.repository.tax_category')) && false ?: '_'});\n }", "title": "" }, { "docid": "7ff6dd36f385d46dd54fa8cd185345da", "score": "0.60632247", "text": "protected function getSylius_Form_Type_ExchangeRateService()\n {\n return $this->services['sylius.form.type.exchange_rate'] = new \\Sylius\\Bundle\\CurrencyBundle\\Form\\Type\\ExchangeRateType('Sylius\\\\Component\\\\Currency\\\\Model\\\\ExchangeRate', array(0 => 'sylius'));\n }", "title": "" }, { "docid": "0c242841330664f8f02b791ec8ca1ec6", "score": "0.603331", "text": "protected function getSylius_Form_Type_CheckoutSelectPaymentService()\n {\n return $this->services['sylius.form.type.checkout_select_payment'] = new \\Sylius\\Bundle\\CoreBundle\\Form\\Type\\Checkout\\SelectPaymentType('Sylius\\\\Component\\\\Core\\\\Model\\\\Order', array(0 => 'sylius'));\n }", "title": "" }, { "docid": "0b697f5c5ccca9509bd6c02d8c43f9ab", "score": "0.6027586", "text": "protected function getSylius_Form_Type_ProvinceCodeChoiceService()\n {\n return $this->services['sylius.form.type.province_code_choice'] = new \\Sylius\\Bundle\\AddressingBundle\\Form\\Type\\ProvinceCodeChoiceType(${($_ = isset($this->services['sylius.repository.province']) ? $this->services['sylius.repository.province'] : $this->get('sylius.repository.province')) && false ?: '_'});\n }", "title": "" }, { "docid": "7b9f129316583d9f721238f2c2a11e2f", "score": "0.60140157", "text": "protected function getSylius_Setup_CurrencyService()\n {\n return $this->services['sylius.setup.currency'] = new \\Sylius\\Bundle\\CoreBundle\\Installer\\Setup\\CurrencySetup(${($_ = isset($this->services['sylius.repository.currency']) ? $this->services['sylius.repository.currency'] : $this->get('sylius.repository.currency')) && false ?: '_'}, ${($_ = isset($this->services['sylius.factory.currency']) ? $this->services['sylius.factory.currency'] : $this->get('sylius.factory.currency')) && false ?: '_'});\n }", "title": "" }, { "docid": "8a35ec677d6a9746dd8e8f0b643c1eae", "score": "0.601008", "text": "protected function getSylius_Form_Type_ProvinceChoiceService()\n {\n return $this->services['sylius.form.type.province_choice'] = new \\Sylius\\Bundle\\AddressingBundle\\Form\\Type\\ProvinceChoiceType(${($_ = isset($this->services['sylius.repository.province']) ? $this->services['sylius.repository.province'] : $this->get('sylius.repository.province')) && false ?: '_'});\n }", "title": "" }, { "docid": "b46f8b02f3ea625440b3c1525c39d550", "score": "0.60056335", "text": "protected function getSylius_Validator_UniqueCurrencyPairService()\n {\n return $this->services['sylius.validator.unique_currency_pair'] = new \\Sylius\\Bundle\\CurrencyBundle\\Validator\\Constraints\\UniqueCurrencyPairValidator(${($_ = isset($this->services['sylius.repository.exchange_rate']) ? $this->services['sylius.repository.exchange_rate'] : $this->get('sylius.repository.exchange_rate')) && false ?: '_'});\n }", "title": "" }, { "docid": "7f0c4473f7c8886989b27c41e2d4b1bf", "score": "0.5991078", "text": "protected function getSylius_Form_Type_ShippingCategoryChoiceService()\n {\n return $this->services['sylius.form.type.shipping_category_choice'] = new \\Sylius\\Bundle\\ShippingBundle\\Form\\Type\\ShippingCategoryChoiceType(${($_ = isset($this->services['sylius.repository.shipping_category']) ? $this->services['sylius.repository.shipping_category'] : $this->get('sylius.repository.shipping_category')) && false ?: '_'});\n }", "title": "" }, { "docid": "b9f04bebbe5a239d5e51c843a0094395", "score": "0.5953972", "text": "protected function getSylius_Factory_CurrencyService()\n {\n return $this->services['sylius.factory.currency'] = new \\Sylius\\Component\\Resource\\Factory\\Factory('Sylius\\\\Component\\\\Currency\\\\Model\\\\Currency');\n }", "title": "" }, { "docid": "d712a3bf34f6212fcbb5e3a531dbe3f6", "score": "0.5943991", "text": "protected function getSonata_Core_Form_Type_TranslatableChoiceService()\n {\n return $this->services['sonata.core.form.type.translatable_choice'] = new \\Sonata\\CoreBundle\\Form\\Type\\TranslatableChoiceType(${($_ = isset($this->services['translator']) ? $this->services['translator'] : $this->get('translator')) && false ?: '_'});\n }", "title": "" }, { "docid": "34a02ffcdea65d5e83d9f64adb2377e2", "score": "0.5932601", "text": "protected function getSylius_Theme_Form_Type_ThemeChoiceService()\n {\n return $this->services['sylius.theme.form.type.theme_choice'] = new \\Sylius\\Bundle\\ThemeBundle\\Form\\Type\\ThemeChoiceType(${($_ = isset($this->services['sylius.repository.theme']) ? $this->services['sylius.repository.theme'] : $this->get('sylius.repository.theme')) && false ?: '_'});\n }", "title": "" }, { "docid": "d76c660da4d85386a8bc7f5d842d6010", "score": "0.5930481", "text": "protected function getSylius_Form_Type_ProductAssociationTypeChoiceService()\n {\n return $this->services['sylius.form.type.product_association_type_choice'] = new \\Sylius\\Bundle\\ProductBundle\\Form\\Type\\ProductAssociationTypeChoiceType(${($_ = isset($this->services['sylius.repository.product_association_type']) ? $this->services['sylius.repository.product_association_type'] : $this->get('sylius.repository.product_association_type')) && false ?: '_'});\n }", "title": "" }, { "docid": "6faa65ef06115d8a14c6e3a70be95402", "score": "0.58891964", "text": "protected function getSylius_Form_Type_AttributeTypeChoiceService()\n {\n return $this->services['sylius.form.type.attribute_type_choice'] = new \\Sylius\\Bundle\\AttributeBundle\\Form\\Type\\AttributeTypeChoiceType(array('text' => 'Text', 'textarea' => 'Textarea', 'checkbox' => 'Checkbox', 'integer' => 'Integer', 'percent' => 'Percent', 'datetime' => 'Datetime', 'date' => 'Date', 'select' => 'Select'));\n }", "title": "" }, { "docid": "ee857d08aa7cede6a367df6ebd91059d", "score": "0.5884656", "text": "protected function getSylius_Validator_DifferentSourceTargetCurrencyService()\n {\n return $this->services['sylius.validator.different_source_target_currency'] = new \\Sylius\\Bundle\\CurrencyBundle\\Validator\\Constraints\\DifferentSourceTargetCurrencyValidator();\n }", "title": "" }, { "docid": "83f2c9e2d5a8207ff16eaa5cbbc7bd01", "score": "0.58795655", "text": "public function getCurrency()\n {\n /*\n * Set your static or dynamic currency\n */\n\n return 'EUR'; //EUR\n }", "title": "" }, { "docid": "a46b5bef850d3ac7013624c9a5ddc91a", "score": "0.585112", "text": "protected function getSylius_Form_Extension_Type_CountryService()\n {\n return $this->services['sylius.form.extension.type.country'] = new \\Sylius\\Bundle\\CoreBundle\\Form\\Extension\\CountryTypeExtension(${($_ = isset($this->services['sylius.repository.country']) ? $this->services['sylius.repository.country'] : $this->get('sylius.repository.country')) && false ?: '_'});\n }", "title": "" }, { "docid": "d1f15fc44b0ac219a221dfcb73e32bd0", "score": "0.584833", "text": "protected function getSylius_CurrencyConverterService()\n {\n return $this->services['sylius.currency_converter'] = new \\Sylius\\Component\\Currency\\Converter\\CurrencyConverter(${($_ = isset($this->services['sylius.repository.exchange_rate']) ? $this->services['sylius.repository.exchange_rate'] : $this->get('sylius.repository.exchange_rate')) && false ?: '_'});\n }", "title": "" }, { "docid": "d4f03f842937a6ce81b43ca3838f81ee", "score": "0.5847225", "text": "public function getCurrency();", "title": "" }, { "docid": "d4f03f842937a6ce81b43ca3838f81ee", "score": "0.5847225", "text": "public function getCurrency();", "title": "" }, { "docid": "148eced8998b82236d303177b30394e1", "score": "0.5838987", "text": "protected function getSylius_Form_Extension_Type_LocaleService()\n {\n return $this->services['sylius.form.extension.type.locale'] = new \\Sylius\\Bundle\\CoreBundle\\Form\\Extension\\LocaleTypeExtension(${($_ = isset($this->services['sylius.repository.locale']) ? $this->services['sylius.repository.locale'] : $this->get('sylius.repository.locale')) && false ?: '_'});\n }", "title": "" }, { "docid": "7bb71d85d992dac2862ac687be886f8a", "score": "0.5826339", "text": "protected function getForm_Type_MoneyService()\n {\n @trigger_error('The \"form.type.money\" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);\n\n return $this->services['form.type.money'] = new \\Symfony\\Component\\Form\\Extension\\Core\\Type\\MoneyType();\n }", "title": "" }, { "docid": "06530e3226fe6a85f2becbd3eee16c68", "score": "0.5818096", "text": "protected function getSylius_Form_Type_CustomerGroupCodeChoiceService()\n {\n return $this->services['sylius.form.type.customer_group_code_choice'] = new \\Sylius\\Bundle\\CustomerBundle\\Form\\Type\\CustomerGroupCodeChoiceType(${($_ = isset($this->services['sylius.repository.customer_group']) ? $this->services['sylius.repository.customer_group'] : $this->get('sylius.repository.customer_group')) && false ?: '_'});\n }", "title": "" }, { "docid": "e4dc4309182ebfc035c9a53ee395221d", "score": "0.58110964", "text": "protected function getSylius_Form_Type_CustomerGroupChoiceService()\n {\n return $this->services['sylius.form.type.customer_group_choice'] = new \\Sylius\\Bundle\\CustomerBundle\\Form\\Type\\CustomerGroupChoiceType(${($_ = isset($this->services['sylius.repository.customer_group']) ? $this->services['sylius.repository.customer_group'] : $this->get('sylius.repository.customer_group')) && false ?: '_'});\n }", "title": "" }, { "docid": "7b078caa67ecf6fbde10db3f1b7cf16a", "score": "0.58050525", "text": "protected function getSylius_Controller_CurrencyService()\n {\n $this->services['sylius.controller.currency'] = $instance = new \\Sylius\\Bundle\\ResourceBundle\\Controller\\ResourceController(${($_ = isset($this->services['sylius.resource_registry']) ? $this->services['sylius.resource_registry'] : $this->getSylius_ResourceRegistryService()) && false ?: '_'}->get('sylius.currency'), ${($_ = isset($this->services['sylius.resource_controller.request_configuration_factory']) ? $this->services['sylius.resource_controller.request_configuration_factory'] : $this->getSylius_ResourceController_RequestConfigurationFactoryService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.view_handler']) ? $this->services['sylius.resource_controller.view_handler'] : $this->getSylius_ResourceController_ViewHandlerService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.repository.currency']) ? $this->services['sylius.repository.currency'] : $this->get('sylius.repository.currency')) && false ?: '_'}, ${($_ = isset($this->services['sylius.factory.currency']) ? $this->services['sylius.factory.currency'] : $this->get('sylius.factory.currency')) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.new_resource_factory']) ? $this->services['sylius.resource_controller.new_resource_factory'] : $this->getSylius_ResourceController_NewResourceFactoryService()) && false ?: '_'}, ${($_ = isset($this->services['doctrine.orm.default_entity_manager']) ? $this->services['doctrine.orm.default_entity_manager'] : $this->get('doctrine.orm.default_entity_manager')) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.single_resource_provider']) ? $this->services['sylius.resource_controller.single_resource_provider'] : $this->getSylius_ResourceController_SingleResourceProviderService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.resources_collection_provider']) ? $this->services['sylius.resource_controller.resources_collection_provider'] : $this->getSylius_ResourceController_ResourcesCollectionProviderService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.form_factory']) ? $this->services['sylius.resource_controller.form_factory'] : $this->getSylius_ResourceController_FormFactoryService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.redirect_handler']) ? $this->services['sylius.resource_controller.redirect_handler'] : $this->getSylius_ResourceController_RedirectHandlerService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.flash_helper']) ? $this->services['sylius.resource_controller.flash_helper'] : $this->getSylius_ResourceController_FlashHelperService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.authorization_checker']) ? $this->services['sylius.resource_controller.authorization_checker'] : $this->get('sylius.resource_controller.authorization_checker')) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.event_dispatcher']) ? $this->services['sylius.resource_controller.event_dispatcher'] : $this->getSylius_ResourceController_EventDispatcherService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.state_machine']) ? $this->services['sylius.resource_controller.state_machine'] : $this->getSylius_ResourceController_StateMachineService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.custom_resource_controller.resource_update_handler']) ? $this->services['sylius.custom_resource_controller.resource_update_handler'] : $this->getSylius_CustomResourceController_ResourceUpdateHandlerService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.resource_delete_handler']) ? $this->services['sylius.resource_controller.resource_delete_handler'] : $this->getSylius_ResourceController_ResourceDeleteHandlerService()) && false ?: '_'});\n\n $instance->setContainer($this);\n\n return $instance;\n }", "title": "" }, { "docid": "a0c3d6d4c3650cc18e4030a2ccc93477", "score": "0.57923424", "text": "protected function getSylius_Form_Type_PromotionRuleChoiceService()\n {\n return $this->services['sylius.form.type.promotion_rule_choice'] = new \\Sylius\\Bundle\\PromotionBundle\\Form\\Type\\PromotionRuleChoiceType(array('cart_quantity' => 'sylius.form.promotion_rule.cart_quantity', 'customer_group' => 'sylius.form.promotion_rule.customer_group', 'nth_order' => 'sylius.form.promotion_rule.nth_order', 'shipping_country' => 'sylius.form.promotion_rule.shipping_country', 'has_taxon' => 'sylius.form.promotion_rule.has_at_least_one_from_taxons', 'total_of_items_from_taxon' => 'sylius.form.promotion_rule.total_price_of_items_from_taxon', 'contains_product' => 'sylius.form.promotion_rule.contains_product', 'item_total' => 'sylius.form.promotion_rule.item_total'));\n }", "title": "" }, { "docid": "16c3078e62d98310f3a2e68439705461", "score": "0.57847905", "text": "public function getLocalActiveCurrency() : CurrencyType\n {\n return CurrencyType::getLocalActiveCurrency();\n }", "title": "" }, { "docid": "5dce3a86967055ff9dafad6de08ce4ff", "score": "0.578345", "text": "public function getCurrency()\n {\n return $this->currency;\n }", "title": "" }, { "docid": "8d04d7ec4b6b03356bf7a79e1b8acdd4", "score": "0.57820797", "text": "function getCurrency()\n {\n return $this->currency;\n }", "title": "" }, { "docid": "6a3087ae772af008d56bc698a57b9339", "score": "0.57743657", "text": "public function getCurrency() {\n return $this->_currency;\n }", "title": "" }, { "docid": "8461a8e3a27d70414613b61ad8bac98e", "score": "0.5770271", "text": "protected function getSylius_Form_Type_ZoneCodeChoiceService()\n {\n return $this->services['sylius.form.type.zone_code_choice'] = new \\Sylius\\Bundle\\AddressingBundle\\Form\\Type\\ZoneCodeChoiceType(${($_ = isset($this->services['sylius.repository.zone']) ? $this->services['sylius.repository.zone'] : $this->get('sylius.repository.zone')) && false ?: '_'});\n }", "title": "" }, { "docid": "4d4e4fc7f813e8250e162dca5647137b", "score": "0.5761144", "text": "protected function getSylius_Form_Type_ZoneChoiceService()\n {\n return $this->services['sylius.form.type.zone_choice'] = new \\Sylius\\Bundle\\AddressingBundle\\Form\\Type\\ZoneChoiceType(${($_ = isset($this->services['sylius.repository.zone']) ? $this->services['sylius.repository.zone'] : $this->get('sylius.repository.zone')) && false ?: '_'});\n }", "title": "" }, { "docid": "3ef70c5140980316a28284c64a0c3072", "score": "0.5756223", "text": "public function get_currency()\n {\n clearos_profile(__METHOD__, __LINE__);\n\n return $this->item[$this->id]['currency'];\n }", "title": "" }, { "docid": "5e7d8872a4547dc82dda7cb072dacd17", "score": "0.5747428", "text": "public function model()\n {\n return Currency::class;\n }", "title": "" }, { "docid": "44f34947f555365bfd9f0a23108229cc", "score": "0.57462", "text": "public function getCurrency()\r\n {\r\n return $this->currency;\r\n }", "title": "" }, { "docid": "9e81a683b5da3f420486da1dcc2b3e17", "score": "0.57328355", "text": "public static function currency()\n {\n try {\n return new Currency(setting('units.currency', 'USD'));\n } catch (\\OutOfBoundsException $e) {\n return new Currency('USD');\n }\n }", "title": "" }, { "docid": "199bcb5b17113b9e888be52ea56c6e1f", "score": "0.5718255", "text": "protected function getSylius_Form_Type_CountryService()\n {\n return $this->services['sylius.form.type.country'] = new \\Sylius\\Bundle\\AddressingBundle\\Form\\Type\\CountryType('Sylius\\\\Component\\\\Addressing\\\\Model\\\\Country', array(0 => 'sylius'));\n }", "title": "" }, { "docid": "4a6369bdaf1d3de2658a3af913b7e938", "score": "0.57089424", "text": "public function getLocalCurrencies() : CurrencyType\n {\n return CurrencyType::getLocalCurrencies();\n }", "title": "" }, { "docid": "896b0c46614fb36c3a89d1cd9eb041c9", "score": "0.57013786", "text": "protected function getSylius_Form_Type_LocaleService()\n {\n return $this->services['sylius.form.type.locale'] = new \\Sylius\\Bundle\\LocaleBundle\\Form\\Type\\LocaleType('Sylius\\\\Component\\\\Locale\\\\Model\\\\Locale', array(0 => 'sylius'));\n }", "title": "" }, { "docid": "fff576c8576fd21d8f7e22e4c5596895", "score": "0.5701349", "text": "public function getCurrentPriceCurrency()\n\t{\n\t\treturn $this->_currentPriceCurrency;\n\t}", "title": "" }, { "docid": "60aef893b4ac3d9cc2cf89f61ec52f31", "score": "0.56959164", "text": "public function getCurrency()\n {\n return $this->currency;\n }", "title": "" }, { "docid": "60aef893b4ac3d9cc2cf89f61ec52f31", "score": "0.56959164", "text": "public function getCurrency()\n {\n return $this->currency;\n }", "title": "" }, { "docid": "60aef893b4ac3d9cc2cf89f61ec52f31", "score": "0.56959164", "text": "public function getCurrency()\n {\n return $this->currency;\n }", "title": "" }, { "docid": "60aef893b4ac3d9cc2cf89f61ec52f31", "score": "0.56959164", "text": "public function getCurrency()\n {\n return $this->currency;\n }", "title": "" }, { "docid": "60aef893b4ac3d9cc2cf89f61ec52f31", "score": "0.56959164", "text": "public function getCurrency()\n {\n return $this->currency;\n }", "title": "" }, { "docid": "60aef893b4ac3d9cc2cf89f61ec52f31", "score": "0.56959164", "text": "public function getCurrency()\n {\n return $this->currency;\n }", "title": "" }, { "docid": "60aef893b4ac3d9cc2cf89f61ec52f31", "score": "0.56959164", "text": "public function getCurrency()\n {\n return $this->currency;\n }", "title": "" }, { "docid": "60aef893b4ac3d9cc2cf89f61ec52f31", "score": "0.56959164", "text": "public function getCurrency()\n {\n return $this->currency;\n }", "title": "" }, { "docid": "60aef893b4ac3d9cc2cf89f61ec52f31", "score": "0.56959164", "text": "public function getCurrency()\n {\n return $this->currency;\n }", "title": "" }, { "docid": "35e9568f9440db8131cecc632f31609d", "score": "0.56640553", "text": "abstract public function getOperationCurrency();", "title": "" }, { "docid": "6497223d191649d722fbb989fbdece8b", "score": "0.56604207", "text": "public function getCurrency() {\n\n\t\tif (!$this->currency) {\n\t\t\t$this->currency = $this->app->zoocart->table->currencies->get($this->config->find('specific._currency'));\n\n\t\t\t// check currency, use default if fails\n\t\t\t$this->currency = $this->currency ? $this->currency : $this->app->zoocart->currency->getDefaultCurrency();\n\t\t}\n\n\t\treturn $this->currency;\n\t}", "title": "" }, { "docid": "1a5ed95900423de411828c3387a2caf7", "score": "0.5654025", "text": "protected function getSylius_Form_Type_ProductOptionValueService()\n {\n return $this->services['sylius.form.type.product_option_value'] = new \\Sylius\\Bundle\\ProductBundle\\Form\\Type\\ProductOptionValueType('Sylius\\\\Component\\\\Product\\\\Model\\\\ProductOptionValue', array(0 => 'sylius'));\n }", "title": "" }, { "docid": "ed945a54a6bafc9a3814cab7093dd75f", "score": "0.56425273", "text": "abstract public function getCurrency();", "title": "" }, { "docid": "81eda691b625be3c9897f97216027228", "score": "0.5641299", "text": "public function getCurrency()\n {\n\n return $this->currency;\n }", "title": "" }, { "docid": "f035cb5b107c8d22e85ef94bb4c7a79e", "score": "0.56383395", "text": "protected function getSylius_Form_Type_ChannelBasedShippingCalculator_PerUnitRateService()\n {\n return $this->services['sylius.form.type.channel_based_shipping_calculator.per_unit_rate'] = new \\Sylius\\Bundle\\CoreBundle\\Form\\Type\\Shipping\\Calculator\\ChannelBasedPerUnitRateConfigurationType();\n }", "title": "" }, { "docid": "258218e9189b76813a540a53dcfb847f", "score": "0.56287736", "text": "protected function getSylius_Form_Type_GridFilter_MoneyService()\n {\n return $this->services['sylius.form.type.grid_filter.money'] = new \\Sylius\\Bundle\\GridBundle\\Form\\Type\\Filter\\MoneyFilterType();\n }", "title": "" }, { "docid": "db7a20794d67a1a92d3217ae79f4c9a9", "score": "0.56264806", "text": "protected function getSylius_Form_Type_ShippingMethodChoiceService()\n {\n return $this->services['sylius.form.type.shipping_method_choice'] = new \\Sylius\\Bundle\\ShippingBundle\\Form\\Type\\ShippingMethodChoiceType(${($_ = isset($this->services['sylius.shipping_methods_resolver']) ? $this->services['sylius.shipping_methods_resolver'] : $this->get('sylius.shipping_methods_resolver')) && false ?: '_'}, ${($_ = isset($this->services['sylius.registry.shipping_calculator']) ? $this->services['sylius.registry.shipping_calculator'] : $this->get('sylius.registry.shipping_calculator')) && false ?: '_'}, ${($_ = isset($this->services['sylius.repository.shipping_method']) ? $this->services['sylius.repository.shipping_method'] : $this->get('sylius.repository.shipping_method')) && false ?: '_'});\n }", "title": "" }, { "docid": "3d394a8236c6b5f9892117c931ac095f", "score": "0.56177515", "text": "public function getCurrency() {\n\t\treturn $this->currency;\n\t}", "title": "" }, { "docid": "ffca9a922d2d43aa64c0d8ea98020bd9", "score": "0.5614012", "text": "public function GetCurrency() {\n return $this->_currency;\n }", "title": "" }, { "docid": "df60fa6e15fe44df71a1ee3df3dcc721", "score": "0.5613681", "text": "protected function getSylius_Form_Type_ProductAttributeChoiceService()\n {\n return $this->services['sylius.form.type.product_attribute_choice'] = new \\Sylius\\Bundle\\ProductBundle\\Form\\Type\\ProductAttributeChoiceType(${($_ = isset($this->services['sylius.repository.product_attribute']) ? $this->services['sylius.repository.product_attribute'] : $this->get('sylius.repository.product_attribute')) && false ?: '_'});\n }", "title": "" }, { "docid": "9febd0e55fe38f80aead2dd8f9d8990e", "score": "0.56103516", "text": "public final static function getAllowedCurrencies()\n {\n if (self::$_allowedCurrencies === null)\n {\n $def = Doctrine_Core::getTable('Payment')->getDefinitionOf('currency');\n self::$_allowedCurrencies = &$def['values'];\n }\n \n return self::$_allowedCurrencies;\n }", "title": "" }, { "docid": "50ccd78305a2494d2db431b99a9034b2", "score": "0.55869883", "text": "protected function getSylius_Controller_Shop_CurrencySwitchService()\n {\n return $this->services['sylius.controller.shop.currency_switch'] = new \\Sylius\\Bundle\\ShopBundle\\Controller\\CurrencySwitchController(${($_ = isset($this->services['templating']) ? $this->services['templating'] : $this->get('templating')) && false ?: '_'}, ${($_ = isset($this->services['sylius.context.currency.channel_aware']) ? $this->services['sylius.context.currency.channel_aware'] : $this->get('sylius.context.currency.channel_aware')) && false ?: '_'}, ${($_ = isset($this->services['sylius.storage.currency']) ? $this->services['sylius.storage.currency'] : $this->get('sylius.storage.currency')) && false ?: '_'}, ${($_ = isset($this->services['sylius.context.channel']) ? $this->services['sylius.context.channel'] : $this->get('sylius.context.channel')) && false ?: '_'});\n }", "title": "" }, { "docid": "9aa250dae1a8a99132f39984f00f7dc4", "score": "0.5578287", "text": "protected function getSylius_Form_Type_ProductOptionValueTranslationService()\n {\n return $this->services['sylius.form.type.product_option_value_translation'] = new \\Sylius\\Bundle\\ProductBundle\\Form\\Type\\ProductOptionValueTranslationType('Sylius\\\\Component\\\\Product\\\\Model\\\\ProductOptionValueTranslation', array(0 => 'sylius'));\n }", "title": "" }, { "docid": "1831d3631597f4efa0402f9573cfdac8", "score": "0.5573794", "text": "public function getCurrency() \n\t{\n\t\treturn $this->_currency;\n\t}", "title": "" }, { "docid": "aae55605478182c70cc9fb4643988a9c", "score": "0.55657077", "text": "protected function getSelectedCurrencyCode()\n {\n return MultiCurrency::getInstance()->getSelectedCurrency()->getCode();\n }", "title": "" }, { "docid": "545c0769d499714401af808b73391c48", "score": "0.55599517", "text": "public function getDotCurrency()\n {\n $currency = Currency::getCurrency($this->context->cart->id_currency);\n return $currency[\"iso_code\"];\n }", "title": "" }, { "docid": "3e9ce01c0add96cb8f124c181e3808be", "score": "0.5555265", "text": "protected function getSylius_Form_Type_CheckoutPaymentService()\n {\n return $this->services['sylius.form.type.checkout_payment'] = new \\Sylius\\Bundle\\CoreBundle\\Form\\Type\\Checkout\\PaymentType('Sylius\\\\Component\\\\Core\\\\Model\\\\Payment', array(0 => 'sylius'));\n }", "title": "" }, { "docid": "40693a74cb8875111580f3c1e9dfedd5", "score": "0.5552327", "text": "public function getBaseCurrency();", "title": "" }, { "docid": "8fb4b55dfbbc753ae8e3cdd75f246d87", "score": "0.5550269", "text": "public static function get_currency():string { return self::$currency; }", "title": "" }, { "docid": "1b6eb1c664ffa1791057b8ddd9d0f403", "score": "0.5549964", "text": "protected function getSylius_Theme_Form_Type_ThemeNameChoiceService()\n {\n return $this->services['sylius.theme.form.type.theme_name_choice'] = new \\Sylius\\Bundle\\ThemeBundle\\Form\\Type\\ThemeNameChoiceType(${($_ = isset($this->services['sylius.repository.theme']) ? $this->services['sylius.repository.theme'] : $this->get('sylius.repository.theme')) && false ?: '_'});\n }", "title": "" }, { "docid": "672f5c7d9581fb0790c35060a3dfb11b", "score": "0.5541064", "text": "protected function getSylius_Repository_ProductOptionValueService()\n {\n return $this->services['sylius.repository.product_option_value'] = new \\Sylius\\Bundle\\ResourceBundle\\Doctrine\\ORM\\EntityRepository(${($_ = isset($this->services['doctrine.orm.default_entity_manager']) ? $this->services['doctrine.orm.default_entity_manager'] : $this->get('doctrine.orm.default_entity_manager')) && false ?: '_'}, ${($_ = isset($this->services['doctrine.orm.default_entity_manager']) ? $this->services['doctrine.orm.default_entity_manager'] : $this->get('doctrine.orm.default_entity_manager')) && false ?: '_'}->getClassMetadata('Sylius\\\\Component\\\\Product\\\\Model\\\\ProductOptionValue'));\n }", "title": "" }, { "docid": "e24cca29e08bc31484d27d5af1c3da87", "score": "0.5526451", "text": "protected function getSonata_Core_Form_Type_EqualService()\n {\n return $this->services['sonata.core.form.type.equal'] = new \\Sonata\\CoreBundle\\Form\\Type\\EqualType(${($_ = isset($this->services['translator']) ? $this->services['translator'] : $this->get('translator')) && false ?: '_'});\n }", "title": "" }, { "docid": "f63b97dfada683d1d0e30b40fb369b59", "score": "0.5511321", "text": "protected function getSylius_Form_Type_TaxRateService()\n {\n return $this->services['sylius.form.type.tax_rate'] = new \\Sylius\\Bundle\\TaxationBundle\\Form\\Type\\TaxRateType('Sylius\\\\Component\\\\Core\\\\Model\\\\TaxRate', array(0 => 'sylius'));\n }", "title": "" }, { "docid": "52b14a8bb0fcc1cc45202b235a8d6d4e", "score": "0.5505851", "text": "public function getCurrency()\n {\n return $this->source['currency'];\n }", "title": "" }, { "docid": "a6b81d45bba06c12d59ee39d7bc7cf01", "score": "0.5505201", "text": "protected function getSylius_Repository_ChannelPricingService()\n {\n return $this->services['sylius.repository.channel_pricing'] = new \\Sylius\\Bundle\\ResourceBundle\\Doctrine\\ORM\\EntityRepository(${($_ = isset($this->services['doctrine.orm.default_entity_manager']) ? $this->services['doctrine.orm.default_entity_manager'] : $this->get('doctrine.orm.default_entity_manager')) && false ?: '_'}, ${($_ = isset($this->services['doctrine.orm.default_entity_manager']) ? $this->services['doctrine.orm.default_entity_manager'] : $this->get('doctrine.orm.default_entity_manager')) && false ?: '_'}->getClassMetadata('Sylius\\\\Component\\\\Core\\\\Model\\\\ChannelPricing'));\n }", "title": "" }, { "docid": "2ba4737844ab5c05e7a9eafd7b095b41", "score": "0.548627", "text": "public function currency()\n {\n return $this->currency;\n }", "title": "" }, { "docid": "441339764a814c21b1552783e47da7c9", "score": "0.54827267", "text": "protected function getSylius_Form_Type_ResourceAutocompleteChoiceService()\n {\n $a = new \\Sylius\\Component\\Registry\\ServiceRegistry('Sylius\\\\Component\\\\Resource\\\\Repository\\\\RepositoryInterface', 'resource repository');\n $a->register('sylius.order', ${($_ = isset($this->services['sylius.repository.order']) ? $this->services['sylius.repository.order'] : $this->get('sylius.repository.order')) && false ?: '_'});\n $a->register('sylius.order_item', ${($_ = isset($this->services['sylius.repository.order_item']) ? $this->services['sylius.repository.order_item'] : $this->get('sylius.repository.order_item')) && false ?: '_'});\n $a->register('sylius.order_item_unit', ${($_ = isset($this->services['sylius.repository.order_item_unit']) ? $this->services['sylius.repository.order_item_unit'] : $this->get('sylius.repository.order_item_unit')) && false ?: '_'});\n $a->register('sylius.order_sequence', ${($_ = isset($this->services['sylius.repository.order_sequence']) ? $this->services['sylius.repository.order_sequence'] : $this->get('sylius.repository.order_sequence')) && false ?: '_'});\n $a->register('sylius.adjustment', ${($_ = isset($this->services['sylius.repository.adjustment']) ? $this->services['sylius.repository.adjustment'] : $this->get('sylius.repository.adjustment')) && false ?: '_'});\n $a->register('sylius.currency', ${($_ = isset($this->services['sylius.repository.currency']) ? $this->services['sylius.repository.currency'] : $this->get('sylius.repository.currency')) && false ?: '_'});\n $a->register('sylius.exchange_rate', ${($_ = isset($this->services['sylius.repository.exchange_rate']) ? $this->services['sylius.repository.exchange_rate'] : $this->get('sylius.repository.exchange_rate')) && false ?: '_'});\n $a->register('sylius.locale', ${($_ = isset($this->services['sylius.repository.locale']) ? $this->services['sylius.repository.locale'] : $this->get('sylius.repository.locale')) && false ?: '_'});\n $a->register('sylius.product', ${($_ = isset($this->services['sylius.repository.product']) ? $this->services['sylius.repository.product'] : $this->get('sylius.repository.product')) && false ?: '_'});\n $a->register('sylius.product_translation', ${($_ = isset($this->services['sylius.repository.product_translation']) ? $this->services['sylius.repository.product_translation'] : $this->get('sylius.repository.product_translation')) && false ?: '_'});\n $a->register('sylius.product_variant', ${($_ = isset($this->services['sylius.repository.product_variant']) ? $this->services['sylius.repository.product_variant'] : $this->get('sylius.repository.product_variant')) && false ?: '_'});\n $a->register('sylius.product_variant_translation', ${($_ = isset($this->services['sylius.repository.product_variant_translation']) ? $this->services['sylius.repository.product_variant_translation'] : $this->get('sylius.repository.product_variant_translation')) && false ?: '_'});\n $a->register('sylius.product_option', ${($_ = isset($this->services['sylius.repository.product_option']) ? $this->services['sylius.repository.product_option'] : $this->get('sylius.repository.product_option')) && false ?: '_'});\n $a->register('sylius.product_option_translation', ${($_ = isset($this->services['sylius.repository.product_option_translation']) ? $this->services['sylius.repository.product_option_translation'] : $this->get('sylius.repository.product_option_translation')) && false ?: '_'});\n $a->register('sylius.product_association_type', ${($_ = isset($this->services['sylius.repository.product_association_type']) ? $this->services['sylius.repository.product_association_type'] : $this->get('sylius.repository.product_association_type')) && false ?: '_'});\n $a->register('sylius.product_association_type_translation', ${($_ = isset($this->services['sylius.repository.product_association_type_translation']) ? $this->services['sylius.repository.product_association_type_translation'] : $this->get('sylius.repository.product_association_type_translation')) && false ?: '_'});\n $a->register('sylius.product_option_value', ${($_ = isset($this->services['sylius.repository.product_option_value']) ? $this->services['sylius.repository.product_option_value'] : $this->get('sylius.repository.product_option_value')) && false ?: '_'});\n $a->register('sylius.product_option_value_translation', ${($_ = isset($this->services['sylius.repository.product_option_value_translation']) ? $this->services['sylius.repository.product_option_value_translation'] : $this->get('sylius.repository.product_option_value_translation')) && false ?: '_'});\n $a->register('sylius.product_association', ${($_ = isset($this->services['sylius.repository.product_association']) ? $this->services['sylius.repository.product_association'] : $this->get('sylius.repository.product_association')) && false ?: '_'});\n $a->register('sylius.channel', ${($_ = isset($this->services['sylius.repository.channel']) ? $this->services['sylius.repository.channel'] : $this->get('sylius.repository.channel')) && false ?: '_'});\n $a->register('sylius.product_attribute', ${($_ = isset($this->services['sylius.repository.product_attribute']) ? $this->services['sylius.repository.product_attribute'] : $this->get('sylius.repository.product_attribute')) && false ?: '_'});\n $a->register('sylius.product_attribute_translation', ${($_ = isset($this->services['sylius.repository.product_attribute_translation']) ? $this->services['sylius.repository.product_attribute_translation'] : $this->get('sylius.repository.product_attribute_translation')) && false ?: '_'});\n $a->register('sylius.product_attribute_value', ${($_ = isset($this->services['sylius.repository.product_attribute_value']) ? $this->services['sylius.repository.product_attribute_value'] : $this->get('sylius.repository.product_attribute_value')) && false ?: '_'});\n $a->register('sylius.tax_rate', ${($_ = isset($this->services['sylius.repository.tax_rate']) ? $this->services['sylius.repository.tax_rate'] : $this->get('sylius.repository.tax_rate')) && false ?: '_'});\n $a->register('sylius.tax_category', ${($_ = isset($this->services['sylius.repository.tax_category']) ? $this->services['sylius.repository.tax_category'] : $this->get('sylius.repository.tax_category')) && false ?: '_'});\n $a->register('sylius.shipment', ${($_ = isset($this->services['sylius.repository.shipment']) ? $this->services['sylius.repository.shipment'] : $this->get('sylius.repository.shipment')) && false ?: '_'});\n $a->register('sylius.shipment_unit', ${($_ = isset($this->services['sylius.repository.shipment_unit']) ? $this->services['sylius.repository.shipment_unit'] : $this->get('sylius.repository.shipment_unit')) && false ?: '_'});\n $a->register('sylius.shipping_method', ${($_ = isset($this->services['sylius.repository.shipping_method']) ? $this->services['sylius.repository.shipping_method'] : $this->get('sylius.repository.shipping_method')) && false ?: '_'});\n $a->register('sylius.shipping_method_translation', ${($_ = isset($this->services['sylius.repository.shipping_method_translation']) ? $this->services['sylius.repository.shipping_method_translation'] : $this->get('sylius.repository.shipping_method_translation')) && false ?: '_'});\n $a->register('sylius.shipping_category', ${($_ = isset($this->services['sylius.repository.shipping_category']) ? $this->services['sylius.repository.shipping_category'] : $this->get('sylius.repository.shipping_category')) && false ?: '_'});\n $a->register('sylius.payment', ${($_ = isset($this->services['sylius.repository.payment']) ? $this->services['sylius.repository.payment'] : $this->get('sylius.repository.payment')) && false ?: '_'});\n $a->register('sylius.payment_method', ${($_ = isset($this->services['sylius.repository.payment_method']) ? $this->services['sylius.repository.payment_method'] : $this->get('sylius.repository.payment_method')) && false ?: '_'});\n $a->register('sylius.payment_method_translation', ${($_ = isset($this->services['sylius.repository.payment_method_translation']) ? $this->services['sylius.repository.payment_method_translation'] : $this->get('sylius.repository.payment_method_translation')) && false ?: '_'});\n $a->register('sylius.promotion_subject', ${($_ = isset($this->services['sylius.repository.promotion_subject']) ? $this->services['sylius.repository.promotion_subject'] : $this->get('sylius.repository.promotion_subject')) && false ?: '_'});\n $a->register('sylius.promotion', ${($_ = isset($this->services['sylius.repository.promotion']) ? $this->services['sylius.repository.promotion'] : $this->get('sylius.repository.promotion')) && false ?: '_'});\n $a->register('sylius.promotion_coupon', ${($_ = isset($this->services['sylius.repository.promotion_coupon']) ? $this->services['sylius.repository.promotion_coupon'] : $this->get('sylius.repository.promotion_coupon')) && false ?: '_'});\n $a->register('sylius.promotion_rule', ${($_ = isset($this->services['sylius.repository.promotion_rule']) ? $this->services['sylius.repository.promotion_rule'] : $this->get('sylius.repository.promotion_rule')) && false ?: '_'});\n $a->register('sylius.promotion_action', ${($_ = isset($this->services['sylius.repository.promotion_action']) ? $this->services['sylius.repository.promotion_action'] : $this->get('sylius.repository.promotion_action')) && false ?: '_'});\n $a->register('sylius.address', ${($_ = isset($this->services['sylius.repository.address']) ? $this->services['sylius.repository.address'] : $this->get('sylius.repository.address')) && false ?: '_'});\n $a->register('sylius.address_log_entry', ${($_ = isset($this->services['sylius.repository.address_log_entry']) ? $this->services['sylius.repository.address_log_entry'] : $this->get('sylius.repository.address_log_entry')) && false ?: '_'});\n $a->register('sylius.country', ${($_ = isset($this->services['sylius.repository.country']) ? $this->services['sylius.repository.country'] : $this->get('sylius.repository.country')) && false ?: '_'});\n $a->register('sylius.province', ${($_ = isset($this->services['sylius.repository.province']) ? $this->services['sylius.repository.province'] : $this->get('sylius.repository.province')) && false ?: '_'});\n $a->register('sylius.zone', ${($_ = isset($this->services['sylius.repository.zone']) ? $this->services['sylius.repository.zone'] : $this->get('sylius.repository.zone')) && false ?: '_'});\n $a->register('sylius.zone_member', ${($_ = isset($this->services['sylius.repository.zone_member']) ? $this->services['sylius.repository.zone_member'] : $this->get('sylius.repository.zone_member')) && false ?: '_'});\n $a->register('sylius.inventory_unit', ${($_ = isset($this->services['sylius.repository.inventory_unit']) ? $this->services['sylius.repository.inventory_unit'] : $this->get('sylius.repository.inventory_unit')) && false ?: '_'});\n $a->register('sylius.taxon', ${($_ = isset($this->services['sylius.repository.taxon']) ? $this->services['sylius.repository.taxon'] : $this->get('sylius.repository.taxon')) && false ?: '_'});\n $a->register('sylius.taxon_translation', ${($_ = isset($this->services['sylius.repository.taxon_translation']) ? $this->services['sylius.repository.taxon_translation'] : $this->get('sylius.repository.taxon_translation')) && false ?: '_'});\n $a->register('sylius.admin_user', ${($_ = isset($this->services['sylius.repository.admin_user']) ? $this->services['sylius.repository.admin_user'] : $this->get('sylius.repository.admin_user')) && false ?: '_'});\n $a->register('sylius.shop_user', ${($_ = isset($this->services['sylius.repository.shop_user']) ? $this->services['sylius.repository.shop_user'] : $this->get('sylius.repository.shop_user')) && false ?: '_'});\n $a->register('sylius.oauth_user', ${($_ = isset($this->services['sylius.repository.oauth_user']) ? $this->services['sylius.repository.oauth_user'] : $this->get('sylius.repository.oauth_user')) && false ?: '_'});\n $a->register('sylius.customer', ${($_ = isset($this->services['sylius.repository.customer']) ? $this->services['sylius.repository.customer'] : $this->get('sylius.repository.customer')) && false ?: '_'});\n $a->register('sylius.customer_group', ${($_ = isset($this->services['sylius.repository.customer_group']) ? $this->services['sylius.repository.customer_group'] : $this->get('sylius.repository.customer_group')) && false ?: '_'});\n $a->register('sylius.product_review', ${($_ = isset($this->services['sylius.repository.product_review']) ? $this->services['sylius.repository.product_review'] : $this->get('sylius.repository.product_review')) && false ?: '_'});\n $a->register('sylius.product_reviewer', ${($_ = isset($this->services['sylius.repository.product_reviewer']) ? $this->services['sylius.repository.product_reviewer'] : $this->get('sylius.repository.product_reviewer')) && false ?: '_'});\n $a->register('sylius.product_taxon', ${($_ = isset($this->services['sylius.repository.product_taxon']) ? $this->services['sylius.repository.product_taxon'] : $this->get('sylius.repository.product_taxon')) && false ?: '_'});\n $a->register('sylius.product_image', ${($_ = isset($this->services['sylius.repository.product_image']) ? $this->services['sylius.repository.product_image'] : $this->get('sylius.repository.product_image')) && false ?: '_'});\n $a->register('sylius.taxon_image', ${($_ = isset($this->services['sylius.repository.taxon_image']) ? $this->services['sylius.repository.taxon_image'] : $this->get('sylius.repository.taxon_image')) && false ?: '_'});\n $a->register('sylius.channel_pricing', ${($_ = isset($this->services['sylius.repository.channel_pricing']) ? $this->services['sylius.repository.channel_pricing'] : $this->get('sylius.repository.channel_pricing')) && false ?: '_'});\n $a->register('sylius.payment_security_token', ${($_ = isset($this->services['sylius.repository.payment_security_token']) ? $this->services['sylius.repository.payment_security_token'] : $this->get('sylius.repository.payment_security_token')) && false ?: '_'});\n $a->register('sylius.gateway_config', ${($_ = isset($this->services['sylius.repository.gateway_config']) ? $this->services['sylius.repository.gateway_config'] : $this->get('sylius.repository.gateway_config')) && false ?: '_'});\n $a->register('sylius.api_user', ${($_ = isset($this->services['sylius.repository.api_user']) ? $this->services['sylius.repository.api_user'] : $this->get('sylius.repository.api_user')) && false ?: '_'});\n $a->register('sylius.api_client', ${($_ = isset($this->services['sylius.repository.api_client']) ? $this->services['sylius.repository.api_client'] : $this->get('sylius.repository.api_client')) && false ?: '_'});\n $a->register('sylius.api_access_token', ${($_ = isset($this->services['sylius.repository.api_access_token']) ? $this->services['sylius.repository.api_access_token'] : $this->get('sylius.repository.api_access_token')) && false ?: '_'});\n $a->register('sylius.api_refresh_token', ${($_ = isset($this->services['sylius.repository.api_refresh_token']) ? $this->services['sylius.repository.api_refresh_token'] : $this->get('sylius.repository.api_refresh_token')) && false ?: '_'});\n $a->register('sylius.api_auth_code', ${($_ = isset($this->services['sylius.repository.api_auth_code']) ? $this->services['sylius.repository.api_auth_code'] : $this->get('sylius.repository.api_auth_code')) && false ?: '_'});\n\n return $this->services['sylius.form.type.resource_autocomplete_choice'] = new \\Sylius\\Bundle\\ResourceBundle\\Form\\Type\\ResourceAutocompleteChoiceType($a);\n }", "title": "" }, { "docid": "2a3e33552568164c50c89c1259ffea1a", "score": "0.54625905", "text": "protected function getSylius_Form_Type_AddressChoiceService()\n {\n return $this->services['sylius.form.type.address_choice'] = new \\Sylius\\Bundle\\CoreBundle\\Form\\Type\\AddressChoiceType(${($_ = isset($this->services['sylius.repository.address']) ? $this->services['sylius.repository.address'] : $this->get('sylius.repository.address')) && false ?: '_'});\n }", "title": "" } ]
cbf062c973123a3df8d61b83c712aa64
Constructeur de la classe Diplome
[ { "docid": "46236eee8c67c19505b3e2c276aa5c0b", "score": "0.0", "text": "Public function Diplome($iddip,$libdip,$comdip)\n\t\t{\n\t\t\t$this -> iddip = $iddip;\n\t\t\t$this -> libdip = $libdip;\n\t\t\t$this -> comdip = $comdip;\n\t\t}", "title": "" } ]
[ { "docid": "395765b6ffd8b4a89500642cf129160e", "score": "0.6883372", "text": "public function __construct(){\n //Instâncias de classes necessárias\n $this->medico = new Medico();\n }", "title": "" }, { "docid": "bfccc5314d5aa7207ffc4074b7b34467", "score": "0.6869233", "text": "function __construct(){\n\t\t// de la clase padre\n\t\tparent::__construct();\n\t}", "title": "" }, { "docid": "9fafc4425982f4ff5e948ee5d9b6693f", "score": "0.6764239", "text": "function __construct(){\n\t\t\n\t\t\t$this->modelo = new PedidoBSS();\n\t\t}", "title": "" }, { "docid": "e5a242da30ed4ce0eb5d9f74b4858529", "score": "0.66748035", "text": "function __construct(){ //Constructor\r\n parent::__construct(); //Constructor del Padre\r\n }", "title": "" }, { "docid": "20b4f84b0695d15fdc076cf99ae7957f", "score": "0.661699", "text": "public function __construct()\n {\n echo \"Perlombaan olimpiade tahun 2050 akan diadakan di indonesia <br/>\";\n }", "title": "" }, { "docid": "86a03cb81bbefb7b18d0a2bb2105c522", "score": "0.66013", "text": "public function __construct() { \n\n\t\t// Rien a faire\n\n\t}", "title": "" }, { "docid": "25dcf9b14fe09c0f15cc41c455209c73", "score": "0.6588523", "text": "function __construct() {\n\t\tparent::__construct();\n\t\t$this->PaiementInscription = ClassRegistry::init('PaiementInscription');\n\t\t$this->Facture = ClassRegistry::init('Facture');\n\t\t$this->Paiement = ClassRegistry::init('Paiement');\n\t}", "title": "" }, { "docid": "8979942bb22e135e2e2bd50b78609618", "score": "0.6574523", "text": "function __construct() {\n //LLamar al constructor del Modelo\n parent::__construct();\n\t\n }", "title": "" }, { "docid": "0161604c23ba4d8523f855e258c030a6", "score": "0.65632725", "text": "public function __construct(){\n //Se instancia un objeto correspondiente que se comunica con la BD \n $this->ConsultaPublicacion_M = $this->modelo(\"Publicacion_M\"); \n }", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.65390414", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.65390414", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.65390414", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.65390414", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.65390414", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.65390414", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.65390414", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.65390414", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.65390414", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.65390414", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.65390414", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.65390414", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.65390414", "text": "private function __construct(){}", "title": "" }, { "docid": "d4a940d30e53abde820bc44a99282155", "score": "0.65345186", "text": "public function __construct(){\n\n\t\t\t}", "title": "" }, { "docid": "65729390f402b959f054fa03746148e9", "score": "0.65094274", "text": "public function __construct() {\r\n\t\t}", "title": "" }, { "docid": "1bb17d31bb3484e22677c92b15a7b749", "score": "0.650732", "text": "public function __construct() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "d39fce94fbe64b3559060e8639e1be6d", "score": "0.6505987", "text": "public function __construct(Dicio $dicio)\n {\n parent::__construct();\n\n $this->dicio = $dicio;\n }", "title": "" }, { "docid": "22364cfecb172299129fcb42b039ce25", "score": "0.65059155", "text": "public function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "22364cfecb172299129fcb42b039ce25", "score": "0.65059155", "text": "public function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "22364cfecb172299129fcb42b039ce25", "score": "0.65059155", "text": "public function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "22364cfecb172299129fcb42b039ce25", "score": "0.65059155", "text": "public function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "22364cfecb172299129fcb42b039ce25", "score": "0.65059155", "text": "public function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "7a93b641143523001b3011d6a360c2c6", "score": "0.6488607", "text": "function __construct() {\n\t\t$this->id_docente;\n\t\t$this->nome_docente;\n\t\t$this->siape_docente;\n\t\t$this->email_docente;\n\t\t$this->efetivo_docente;\n\t}", "title": "" }, { "docid": "e24e87f5a3e2f27fdda57421809a3b5a", "score": "0.6484575", "text": "function __construct()\n\t{\n\t\t//Constructor vacio\n\t}", "title": "" }, { "docid": "e76ff3a94d50a813cf5b5b3aba960822", "score": "0.64844066", "text": "private function __construct(){\n\t\t}", "title": "" }, { "docid": "64693a933b0bac8cb6a23463116f3261", "score": "0.6477107", "text": "function __construct($codi, $nom, $descripcio, $dataAlta, $preu, $stock, $imatge1, $ID_categoria) {\n $this->codi = $codi;\n $this->nom = $nom;\n $this->descripcio = $descripcio;\n $this->dataAlta = $dataAlta;\n $this->preu = $preu;\n $this->stock = $stock;\n $this->imatge1 = $imatge1;\n $this->ID_categoria = $ID_categoria;\n }", "title": "" }, { "docid": "adc6da81e041e72e7f30af80a0aae460", "score": "0.6472328", "text": "public function __construct() {\r\n\r\n\r\n\t\t}", "title": "" }, { "docid": "655646ebd5e0baf64a09e183f2e31231", "score": "0.6459271", "text": "public function __construct()\n\t\t{\n\n\t\t}", "title": "" }, { "docid": "c0dcaa1682f7d9771f4df2869c9b5ef0", "score": "0.6457993", "text": "public function __construct(){\n\t\t}", "title": "" }, { "docid": "c0dcaa1682f7d9771f4df2869c9b5ef0", "score": "0.6457993", "text": "public function __construct(){\n\t\t}", "title": "" }, { "docid": "e9cadc1246d76d8211a08cf63917335a", "score": "0.64560366", "text": "public function __construct()\n\t\t{\n\t\t\n\t\t}", "title": "" }, { "docid": "ca07e61a67ce3881243c2c43aae1298a", "score": "0.6445416", "text": "protected function __construct()\n\t{\n\t\t// chamando construtor da classe pai\n\t\tparent::__construct();\n\t}", "title": "" }, { "docid": "ca07e61a67ce3881243c2c43aae1298a", "score": "0.6445416", "text": "protected function __construct()\n\t{\n\t\t// chamando construtor da classe pai\n\t\tparent::__construct();\n\t}", "title": "" }, { "docid": "c1e73ddbd828bfe3d307cc20e8732d6b", "score": "0.64429545", "text": "function __construct()\r\n\t\t{\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "c1e73ddbd828bfe3d307cc20e8732d6b", "score": "0.64429545", "text": "function __construct()\r\n\t\t{\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "f3e9b385af23d147bdc6c5e4e8b440c2", "score": "0.644064", "text": "public function _construct()\r\n\t{\r\n\t}", "title": "" }, { "docid": "3da8ac9f3b19f29affb7e18e80c3affe", "score": "0.64355034", "text": "public function __construct()\n\t{\n\t\t//verificar si esta logeado\n\t\tif(parent::validaSesion()){\n\t\t\t//si es asi, madamos a llamr el constructor del padre\n\t\t\tparent::__construct();\n\t\t\t//inicializamos valores:\n\t\t\t$this->_columnas = array('', 'domicilio.Id_Domicilio','domicilio.Calle_Domicilio','domicilio.Numero_Domicilio','domicilio.Colonia_Domicilio','domicilio.Municipio_Domicilio','domicilio.Entidad_Domicilio','domicilio.CP_Domicilio');\n\t\t\t$this->_aliasColumnas =' domicilio.Id_Domicilio AS a, domicilio.Calle_Domicilio AS b,domicilio.Numero_Domicilio AS c,domicilio.Colonia_Domicilio AS d,domicilio.Municipio_Domicilio AS e,domicilio.Entidad_Domicilio AS f,domicilio.CP_Domicilio AS g ';\n\t\t}else {\n\t\t\t//caso contrario no se aceptara\n\t\t\tthrow new Exception(\"No tiene permisos\");\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "5d7b74f9e076815e29425df8acedfaf4", "score": "0.6433066", "text": "public function __construct(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "4f0dfbd96fc0f00e046be34fbbf3486f", "score": "0.64329815", "text": "function __construct()\n\t\t{\n\t\t\t\n\t\t}", "title": "" }, { "docid": "12d9cd8b55b6c37092c640a2e33d0bc1", "score": "0.64295816", "text": "function __construct(\n\t\t){\n \n }", "title": "" }, { "docid": "112fa51aed14dc8bf7ef03e4d8b35433", "score": "0.6414833", "text": "public function __construct() {\n\n\t}", "title": "" }, { "docid": "112fa51aed14dc8bf7ef03e4d8b35433", "score": "0.6414833", "text": "public function __construct() {\n\n\t}", "title": "" }, { "docid": "112fa51aed14dc8bf7ef03e4d8b35433", "score": "0.6414833", "text": "public function __construct() {\n\n\t}", "title": "" }, { "docid": "112fa51aed14dc8bf7ef03e4d8b35433", "score": "0.6414833", "text": "public function __construct() {\n\n\t}", "title": "" }, { "docid": "61517b0213f429081ad6d27b3598bebb", "score": "0.6413338", "text": "private function __construct() {\n\t\t}", "title": "" }, { "docid": "7b7993725df5808222f606a49a33e682", "score": "0.64125174", "text": "function __construct() {\n\n\t\t\n\t}", "title": "" }, { "docid": "41540765a2916548fde9f3bb3b1e1620", "score": "0.64099187", "text": "function __construct(){\n\n\t\tparent::__construct(); //Llamada al constructor de la clase padre\n\n\t\t$this->id = \"\";\n\t\t$this->fecha = \"\";\n\t\t$this->alumno = \"\";\n\t\t$this->estado = \"\";\n\t\t$this->materia = \"\";\n\n\t}", "title": "" }, { "docid": "e7dd922ddf4b1ac723ee9aeeba11abb7", "score": "0.6407004", "text": "public function __construct()\n\t\t{\n\t\t\t\n\t\t}", "title": "" }, { "docid": "3075de47ab0992fad42fd779fc31ac64", "score": "0.64042956", "text": "public function __construct()\n {\n $this->classe = Episodio::class;\n }", "title": "" }, { "docid": "bf8b6b2eac30c1afd7ebe8a254f2bc09", "score": "0.63994235", "text": "private function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "bf8b6b2eac30c1afd7ebe8a254f2bc09", "score": "0.63994235", "text": "private function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "d0626143d49b8310a768607403c286cb", "score": "0.639816", "text": "public function __construct() {\n\t\t// TODO Auto-generated constructor\n\t}", "title": "" }, { "docid": "d0626143d49b8310a768607403c286cb", "score": "0.639816", "text": "public function __construct() {\n\t\t// TODO Auto-generated constructor\n\t}", "title": "" }, { "docid": "d0626143d49b8310a768607403c286cb", "score": "0.639816", "text": "public function __construct() {\n\t\t// TODO Auto-generated constructor\n\t}", "title": "" }, { "docid": "d0626143d49b8310a768607403c286cb", "score": "0.639816", "text": "public function __construct() {\n\t\t// TODO Auto-generated constructor\n\t}", "title": "" }, { "docid": "d0626143d49b8310a768607403c286cb", "score": "0.639816", "text": "public function __construct() {\n\t\t// TODO Auto-generated constructor\n\t}", "title": "" }, { "docid": "d0626143d49b8310a768607403c286cb", "score": "0.639816", "text": "public function __construct() {\n\t\t// TODO Auto-generated constructor\n\t}", "title": "" }, { "docid": "d0626143d49b8310a768607403c286cb", "score": "0.639816", "text": "public function __construct() {\n\t\t// TODO Auto-generated constructor\n\t}", "title": "" }, { "docid": "d0626143d49b8310a768607403c286cb", "score": "0.639816", "text": "public function __construct() {\n\t\t// TODO Auto-generated constructor\n\t}", "title": "" }, { "docid": "bde1b38f912223baa71a1630740c5eb5", "score": "0.63980174", "text": "function __construct(){\n \t\n\t}", "title": "" }, { "docid": "44e861b51065bb773f188048d57de687", "score": "0.6395154", "text": "public function __construct($idPublicidad='',$fechaDesde='',$fechaHasta='',$publicacion='',$idEmpleado='',$idEspacio=''){\n parent::__construct();\n\n $this->idPublicidad=$idPublicidad;\n $this->fechaDesde=$fechaDesde;\n $this->fechaHasta=$fechaHasta;\n $this->publicacion=$publicacion;\n $this->idEmpleado=$idEmpleado;\n $this->idEspacio=$idEspacio;\n }", "title": "" }, { "docid": "7535729a6bb8c56b1a4b3aa92e79c198", "score": "0.63937396", "text": "function __construct() { }", "title": "" }, { "docid": "7535729a6bb8c56b1a4b3aa92e79c198", "score": "0.63937396", "text": "function __construct() { }", "title": "" }, { "docid": "f1821ca60df673bd38805504a744e9fa", "score": "0.6391354", "text": "function __construct() {\n\n\t}", "title": "" }, { "docid": "f1821ca60df673bd38805504a744e9fa", "score": "0.6391354", "text": "function __construct() {\n\n\t}", "title": "" }, { "docid": "e4c65a3bb3d39290e7ba64d7f6e5976e", "score": "0.6391201", "text": "public function __construct()\n {\n echo \"Costruttore: nuova istanza della classe \".__CLASS__.\"<br/>\";\n }", "title": "" }, { "docid": "ec7bda312c472b12a18d5415e7d066ad", "score": "0.6385513", "text": "private function __construct() {\n\n\t}", "title": "" }, { "docid": "10b92b602f644f35243618ca29c1d940", "score": "0.63850874", "text": "function __construct(){\n\t\t\t$this->InformacionAduanera = new CFDInformacionAduanera();\n\t\t\t$this->CuentaPredial = new CFDCuentaPredial();\n\t\t}", "title": "" }, { "docid": "8b5cd06d16587a8887c31d65ac3a997e", "score": "0.6383606", "text": "private function __construct()\r\n\t\t{\r\n\r\n\t\t}", "title": "" }, { "docid": "bc37dae9b39e49fe050f78aaea505298", "score": "0.63828135", "text": "public function __construct()\n\t{\n\t\t$this->id_nivel = new Nivel();\n\t}", "title": "" }, { "docid": "619e59c09fe0adc05ac8f8d298fbc1da", "score": "0.6382409", "text": "public function __construct() {\n\t\t//\n\t}", "title": "" }, { "docid": "619e59c09fe0adc05ac8f8d298fbc1da", "score": "0.6382409", "text": "public function __construct() {\n\t\t//\n\t}", "title": "" }, { "docid": "619e59c09fe0adc05ac8f8d298fbc1da", "score": "0.6382409", "text": "public function __construct() {\n\t\t//\n\t}", "title": "" }, { "docid": "3b6ccf052eab19a3ba3b3d9e1c839f83", "score": "0.63788354", "text": "public function __construct()\n\t{\n\t\n\t}", "title": "" }, { "docid": "3b6ccf052eab19a3ba3b3d9e1c839f83", "score": "0.63788354", "text": "public function __construct()\n\t{\n\t\n\t}", "title": "" }, { "docid": "3b6ccf052eab19a3ba3b3d9e1c839f83", "score": "0.63788354", "text": "public function __construct()\n\t{\n\t\n\t}", "title": "" }, { "docid": "3b6ccf052eab19a3ba3b3d9e1c839f83", "score": "0.63788354", "text": "public function __construct()\n\t{\n\t\n\t}", "title": "" }, { "docid": "3b6ccf052eab19a3ba3b3d9e1c839f83", "score": "0.63788354", "text": "public function __construct()\n\t{\n\t\n\t}", "title": "" }, { "docid": "a852273f076b68fce4be22c4184494b9", "score": "0.6373837", "text": "public function __construct(){\r\n\r\n\t}", "title": "" }, { "docid": "257f8373aa3176cf1aad5e3daeb611fa", "score": "0.6372385", "text": "function __construct($id)\r\n {\r\n $this->modelo = BasePersonaje::obtener($id);\r\n }", "title": "" }, { "docid": "9b49cea148256e849d4914f63794eda1", "score": "0.63719934", "text": "public function __construct()\n\t{\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "c463d0b710c91cc9f042e989c68fd083", "score": "0.6370776", "text": "public function __construct () {\n\t\t\t//\n\t\t}", "title": "" }, { "docid": "8bf733928e83ea47b514aec42fd74459", "score": "0.636805", "text": "function __construct()\n\t{\n\n\t}", "title": "" }, { "docid": "5215c877d0440b5e43315f1f137c1206", "score": "0.63680166", "text": "function __construct()\r\n\t{\r\n\t}", "title": "" }, { "docid": "e2c0ed9afcd324c79e559b1e262c37a1", "score": "0.63673383", "text": "function __construct() {\n \n }", "title": "" }, { "docid": "a35772e47995de4a7841f4d10ea9da33", "score": "0.63653594", "text": "function __construct(){}", "title": "" }, { "docid": "3e72c8db62e3ecaa632bfeeeb12d1ee5", "score": "0.63624537", "text": "function __construct() {\n \n }", "title": "" }, { "docid": "3e72c8db62e3ecaa632bfeeeb12d1ee5", "score": "0.63624537", "text": "function __construct() {\n \n }", "title": "" }, { "docid": "3e72c8db62e3ecaa632bfeeeb12d1ee5", "score": "0.63624537", "text": "function __construct() {\n \n }", "title": "" }, { "docid": "3e72c8db62e3ecaa632bfeeeb12d1ee5", "score": "0.63624537", "text": "function __construct() {\n \n }", "title": "" }, { "docid": "3e72c8db62e3ecaa632bfeeeb12d1ee5", "score": "0.63624537", "text": "function __construct() {\n \n }", "title": "" }, { "docid": "3e72c8db62e3ecaa632bfeeeb12d1ee5", "score": "0.63624537", "text": "function __construct() {\n \n }", "title": "" } ]
6da126eaa7d56554f625dae1a5e10562
Tear down the environment after running a test
[ { "docid": "68d444ff0a0d6f70306ad57a313130ee", "score": "0.0", "text": "protected function tearDown()\n {\n \n }", "title": "" } ]
[ { "docid": "029a533ff60898d581f088586b830ddc", "score": "0.8125262", "text": "protected function tear_down()\n {\n $this->removeTestEnvironment();\n }", "title": "" }, { "docid": "2c91100d1c8d565047027cac23019835", "score": "0.7933633", "text": "public function tearDown()\n\t{\n\t\t$this->_helpers->restore_environment();\n\t}", "title": "" }, { "docid": "596cd13df0fe95e881a6b803fcbb3e92", "score": "0.77492577", "text": "protected function tearDown()\n {\n Environment::destroyInstance();\n parent::tearDown();\n }", "title": "" }, { "docid": "01b5c7efbbffda08d5bef1ed4c314baa", "score": "0.76082706", "text": "protected function teardownDuskEnviroment()\n {\n $this->removeConfiguration();\n\n if (file_exists(base_path($this->duskFile())) && file_exists(base_path('.env.backup'))) {\n $this->restoreEnvironment();\n }\n }", "title": "" }, { "docid": "70c9fc25a86cc77d1a5550f26c874c86", "score": "0.7483468", "text": "public function teardown();", "title": "" }, { "docid": "d5ab22deca21e5aa65c3c570f5896d36", "score": "0.73903567", "text": "protected function tearDown() {\n\t\tConfig::getInstance()->clear();\n\t\tApplication::getInstance()->setDiContainer(new SystemContainer());\n\t}", "title": "" }, { "docid": "84919c9f5b289fa9c9a16b03479c8811", "score": "0.73820263", "text": "protected function teardown()\n\t{\n\t\tEventLog::get(array('nolimit' => 1))->purge();\n//\t\tEventLog::unregister_type( 'testing', 'unit_tests' );\n\t}", "title": "" }, { "docid": "48539c1764201a3e34d6b4120226f94b", "score": "0.73670155", "text": "function tearDown() {\n $this->sess = null;\n BuiltIns::reset();\n }", "title": "" }, { "docid": "4241c6e11167c0eaaffb8a068d1070d6", "score": "0.7284833", "text": "protected function tearDown() {\n\t\t// clean up the phantom instance\n\t\texec('kill -9 ' . $this->phantomJsPid);\n\t\t//echo \"Killed phantom\\n\";\n\t}", "title": "" }, { "docid": "81f288363a4f9a0f7fbb39343d59362e", "score": "0.72845703", "text": "private function tearDown() {\n $state_change = $this->state->get('tester');\n\n // Reset error reporting.\n if (!is_null($state_change['error_level'])) {\n $config = $this->configFactory->getEditable('system.logging');\n $config->set('error_level', $state_change['error_level'])->save();\n }\n\n // Reset dblog.\n if ($state_change['dblog']) {\n $this->moduleInstaller->uninstall(['dblog']);\n }\n\n // Clear state.\n $this->state->delete('tester');\n }", "title": "" }, { "docid": "772a434eccb2d83336ac76a7b9627dd3", "score": "0.72777367", "text": "protected function tearDown()\n {\n $this->kernel = null;\n $this->application = null;\n $this->entityManager = null;\n }", "title": "" }, { "docid": "4ca61565ac3481d0b759663516d9b17e", "score": "0.72622544", "text": "protected function tearDown()\r\n {\r\n $application = new Application(self::$kernel);\r\n $application->setAutoExit(false);\r\n\r\n $options = array('command' => 'doctrine:database:drop', '--force' => true);\r\n $application->run(new ArrayInput($options));\r\n\r\n\r\n parent::tearDown();\r\n\r\n $this->em->close();\r\n $this->em = null;\r\n }", "title": "" }, { "docid": "2bf764ab54f4bca0bf36724acdcd9aad", "score": "0.7210236", "text": "public function tearDown()\n\t{\n\t\texec( sprintf( LinuxCommands::killChromeProcessesCmd, 2 ) );\n\t}", "title": "" }, { "docid": "2bf764ab54f4bca0bf36724acdcd9aad", "score": "0.7210236", "text": "public function tearDown()\n\t{\n\t\texec( sprintf( LinuxCommands::killChromeProcessesCmd, 2 ) );\n\t}", "title": "" }, { "docid": "55915588b919eb6b171b2340dca03f35", "score": "0.72094905", "text": "public function testTearDown()\n {\n /* Get an Auth object. */\n try {\n $auth = $GLOBALS['injector']->getInstance('Horde_Core_Factory_Auth')->create();\n } catch (Horde_Exception $e) {\n // TODO\n }\n\n /* We need to be logged in to call removeUserData, otherwise we run\n * into permission issues. */\n $GLOBALS['registry']->setAuth($this->_user, array());\n\n print \"\\nCleaning up: removing test user data and test user...\";\n $registry->removeUser($this->_user);\n\n print \"OK\\n\";\n }", "title": "" }, { "docid": "9dfafd4be6b7cb30c952747c651c52e2", "score": "0.7205991", "text": "protected function setUp()\n {\n Environment::destroyInstance();\n parent::setUp();\n }", "title": "" }, { "docid": "6c94d2717bbfa7fb1b88398267f8beac", "score": "0.72048944", "text": "protected function tearDown(): void\n {\n $this->config = null;\n $this->container = null;\n $this->instance = null;\n }", "title": "" }, { "docid": "4a4b9c10ee7d4e35f19a4de5d0460ad7", "score": "0.7196389", "text": "public function ShutDown() {\n\t\t// *** optional*** can be redefined in a controller (as a post-run init, as safe destructor, if required) but is not mandatory ...\n\t}", "title": "" }, { "docid": "0431f70022505e98ca70a2098c5cfb26", "score": "0.71944296", "text": "protected function tearDown()\n\t{\n\t\t$this->restoreFactoryState();\n\t\tunset($this->app);\n\t\tparent::tearDown();\n\t}", "title": "" }, { "docid": "da735d70dd472bfda7e958d8f04174c7", "score": "0.71665853", "text": "protected function tearDown(): void\n {\n $this->instance = null;\n $this->container = null;\n $this->config = null;\n }", "title": "" }, { "docid": "96d48bb594c9ce34674300254ff5b7ad", "score": "0.7155967", "text": "protected function tearDown()\n {\n system('rm -r '.realpath($this->testDir));\n }", "title": "" }, { "docid": "9b6c91c7fd53a9bb54a73e0109390316", "score": "0.7147546", "text": "public function tearDown() {\n $this->backend = null;\n }", "title": "" }, { "docid": "40028282fa7640d5254f131b26fc3588", "score": "0.71232814", "text": "protected function tearDown()\n {\n parent::tearDown();\n $this->destroyApplication();\n }", "title": "" }, { "docid": "5c2bdfee2664be7e68f97b6de7e95353", "score": "0.7113057", "text": "public function teardown()\n {\n }", "title": "" }, { "docid": "565915f166b867637b0418217dd5f83d", "score": "0.7111932", "text": "public function tearDown(): void\n {\n $this->runProcess('rm -rf ' . $this->directory);\n }", "title": "" }, { "docid": "12d585f0cabff3dd2fafe65b4281365e", "score": "0.7111576", "text": "protected function tearDown()\n {\n unset($this->app);\n m::close();\n }", "title": "" }, { "docid": "49cf888ce965672bb048da6d1f9a3124", "score": "0.7106858", "text": "public function tearDown()\n {\n unset($this->app);\n m::close();\n }", "title": "" }, { "docid": "49cf888ce965672bb048da6d1f9a3124", "score": "0.7106858", "text": "public function tearDown()\n {\n unset($this->app);\n m::close();\n }", "title": "" }, { "docid": "69f606b9780df402b334a60f47f8dedc", "score": "0.7096315", "text": "public function tearDown()\n\t{\n\t\t$this->loan_api = NULL;\n\t\t$this->ecash_api = NULL;\n\t\t$this->ecash_api_factory = NULL;\n\t}", "title": "" }, { "docid": "3f3ecb728cc8cb2de8f83b264962dcfb", "score": "0.70961154", "text": "protected function tearDown()\n\t{\n\t\t$this->restoreFactoryState();\n\t\tunset($this->_instance);\n\t\tparent::teardown();\n\t}", "title": "" }, { "docid": "25a733a059fc9535630b260ece37bfa5", "score": "0.7077196", "text": "protected function tearDown()\n {\n unset($this->app);\n unset($this->response);\n }", "title": "" }, { "docid": "2eb6182893ad7efde2ef44632fa9cd71", "score": "0.7072473", "text": "protected function tearDown() {\r\n\t\tunset($this->extensionManager);\r\n\t\tunset($this->hook);\r\n\t\tunset($this->tsfeMock);\r\n\t}", "title": "" }, { "docid": "2bbd5903a7258097c7341c02b1b5516e", "score": "0.7071188", "text": "public function tearDown()\n\t{\n\t\t$this->beforeApplicationDestroyed(function () {\n\t\t\tDB::disconnect();\n\t\t});\n\t\n\t\t\tparent::tearDown();\n\t\t\t// \t\tMockery::close();\n\t}", "title": "" }, { "docid": "99d241e4a83ff9729a98a41b38617b4a", "score": "0.7057455", "text": "public function tearDown()\n {\n $this->api = null;\n }", "title": "" }, { "docid": "e53d477834fcdb9159263d06c10c2d1f", "score": "0.70497936", "text": "public function tearDown()\n\t{\n\t\tunset($this->stub);\n\t\t\n\t\tSession::$instance = null;\n\t}", "title": "" }, { "docid": "531adacb08e5b893645e31eebd4f3090", "score": "0.70459867", "text": "public function tearDown()\n {\n $this->curl_test = null;\n }", "title": "" }, { "docid": "7fdaa3febfc8b1283b2a1a3f65f82942", "score": "0.7036781", "text": "protected function tearDown()\n {\n $this->monitorExceptions = null;\n Zend_Registry::_unsetInstance();\n \n m::close();\n }", "title": "" }, { "docid": "4c2ce24de9cbf2fc5c2eca5fa396c398", "score": "0.7035813", "text": "protected function tearDown()\r\n {\r\n $this->session->stop();\r\n }", "title": "" }, { "docid": "4c4ad3f2f98af90de0eb6f7214481911", "score": "0.70326054", "text": "public function tearDown()\n {\n $this->workingDir = array_slice($this->workingDir, 0, 1);\n exec(\"rm -rf \" . escapeshellarg($this->currentDir()));\n }", "title": "" }, { "docid": "ecf8d65f1d721a0ff3d9c8b2ec5a4ae0", "score": "0.70306534", "text": "protected function tearDown()\n\t{\n\t\tparent::tearDown ();\n\t\tEnUser::release();\n\t\tRPCContext::getInstance()->resetSession();\n\t\tRPCContext::getInstance()->unsetSession('global.uid');\n\t\tMissionUserObj::releaseInstance($this->uid);\n\t\tMissionCrossUserObj::releaseInstance();\n\t\tMissionConObj::release();\n\t}", "title": "" }, { "docid": "2ac25122d9f0a25a618352bd66f9c047", "score": "0.702493", "text": "public function tearDown() {\n \\xp::gc();\n }", "title": "" }, { "docid": "66c26c5aafafed467c37fd46889abe06", "score": "0.7008993", "text": "public function teardown()\n {\n\n }", "title": "" }, { "docid": "391959da239354b81f07c868b9c8b916", "score": "0.7006321", "text": "protected function tearDown(): void\n {\n $this->root->unmount();\n }", "title": "" }, { "docid": "c660b8e3a2fb39ccad51d11764bedfd2", "score": "0.70054317", "text": "protected function tearDown()\n {\n\t #Tinebase_Container::getInstance()->deleteContainer($this->testContainer->id);\n }", "title": "" }, { "docid": "c64663e940688c0fd4f2c7a81c0b21de", "score": "0.6998431", "text": "public function tearDown()\n\t{\n\t\tset_path('app', path('base').'application'.DS);\n\n\t\tunset($this->stub);\n\t}", "title": "" }, { "docid": "2f1d67229c434bbb8c12cef90f75e96d", "score": "0.6998285", "text": "protected function tearDown(): void\n {\n unset($this->die);\n }", "title": "" }, { "docid": "58a795dea74df90b6a989442ede72b58", "score": "0.69953364", "text": "protected function tearDown()\n {\n unset($this->container);\n }", "title": "" }, { "docid": "50f669b1093d07ea52525940ac40828e", "score": "0.69835705", "text": "public function tearDown()\n {\n \t// $this->_app->cleanCache();\n }", "title": "" }, { "docid": "b361bd0e913dd3246d355df42003b0dd", "score": "0.69640046", "text": "public function tearDown() {\n unset( $_SERVER['MODEL_PATH'] );\n $this->sm_posting = null;\n }", "title": "" }, { "docid": "bb702d65b91171e120313510f490427c", "score": "0.6960409", "text": "static function tearDown() {\n\t\t\n\t\t// unset static ActiveRecord meta data\n\t\tforeach(self::$activeClasses as $activeClass) {\n\t\t\t\\CActiveRecord::model($activeClass)->refreshMetaData();\n\t\t}\n\t\t\n\t\t// unset connection reference\n\t\t\\CActiveRecord::$db = null;\n\t\t\n\t\t// terminate current application instance and unset it\n\t\t\\Yii::app()->end(0, false);\n\t\t\\Yii::setApplication(null);\n\t\t\n\t\t// unregister Yii autoloader\n\t\tspl_autoload_unregister(array('YiiBase','autoload'));\n\t}", "title": "" }, { "docid": "75bbbef4382cf4d309eafdc1d97e5ff7", "score": "0.6955622", "text": "public function tearDown()\n {\n global $cfg;\n $cfg = $this->tmpCfg;\n }", "title": "" }, { "docid": "424c7b8d032a34293098c4ebff377d7d", "score": "0.69520074", "text": "public function teardown()\n {\n Sentry::logout();\n Session::flush();\n }", "title": "" }, { "docid": "684a7bb6f7205a4f75249e05016eae86", "score": "0.6950855", "text": "protected function tearDown(): void\n {\n $this->instance = null;\n }", "title": "" }, { "docid": "b5f30160359087b46edf16a48a04efb8", "score": "0.69492996", "text": "final protected function tearDown()\n {\n $this->_after();\n\n /*\n * Close the Laravel5 module connections\n */\n $this->ensureDoctrineClosed();\n\n /*\n * Destroy ALL doctrine object managers\n */\n $registry = $this->app->make(DoctrineRegistry::class);\n\n $this->closeDoctrineRegistryConnections($registry);\n\n parent::tearDown();\n }", "title": "" }, { "docid": "e84e16d216113bcc171b4491313e9948", "score": "0.69448835", "text": "protected function tearDown(): void\n {\n $this->setUpHasRun = false;\n }", "title": "" }, { "docid": "0bc71a279cf72914e46ac0fd0e76d274", "score": "0.6943834", "text": "public function tearDown() {\n $this->instance = null;\n }", "title": "" }, { "docid": "6fc332c282dadc8d9465726bec3a9abb", "score": "0.6933662", "text": "public static function tearDown()\n {\n static::$instance = null;\n }", "title": "" }, { "docid": "7aa87da24a6b9a7b17163a36b4d72d80", "score": "0.6923363", "text": "public function tearDown()\n {\n unlink($this->cacheDir . '/test.json');\n unlink($this->cacheDir . '/test_winners.json');\n }", "title": "" }, { "docid": "65427d299abd6054e781b472bbf2a70e", "score": "0.69041693", "text": "protected function tear_down()\n {\n }", "title": "" }, { "docid": "65427d299abd6054e781b472bbf2a70e", "score": "0.69041693", "text": "protected function tear_down()\n {\n }", "title": "" }, { "docid": "65427d299abd6054e781b472bbf2a70e", "score": "0.69041693", "text": "protected function tear_down()\n {\n }", "title": "" }, { "docid": "65427d299abd6054e781b472bbf2a70e", "score": "0.69041693", "text": "protected function tear_down()\n {\n }", "title": "" }, { "docid": "65427d299abd6054e781b472bbf2a70e", "score": "0.69041693", "text": "protected function tear_down()\n {\n }", "title": "" }, { "docid": "45a5de69213d4921526327faeba1a573", "score": "0.68961513", "text": "function tearDown() {\n Zend_Registry::set('config', $this->_realconfig);\n Zend_Registry::set('schools-config', $this->_realschoolconfig);\n\n $this->esd_data->cleanUp();\n }", "title": "" }, { "docid": "ea4b1b289c3727696b769019a31b6769", "score": "0.68919975", "text": "protected function tearDown() {\n PSessionFactory::closeSession(dirname(__FILE__) . \"/pdb/Testfile\");\n }", "title": "" }, { "docid": "a5e45b535e92ff9df6d0f73434a40ef4", "score": "0.6891742", "text": "public function tearDown(): void\n {\n shell_exec('rm -rf /tmp/checker-test');\n }", "title": "" }, { "docid": "5d04eeb0831e2c37297b906b3aff02fb", "score": "0.68739176", "text": "protected function tearDown()\n {\n $this->object->destroy();\n $this->object = null;\n }", "title": "" }, { "docid": "37e7824643eec79fe287e39ea96831de", "score": "0.68722224", "text": "function tearDown() {\n Backend::clearInstances();\n }", "title": "" }, { "docid": "09517c20bf759c5163fc557d2db3ad41", "score": "0.68681747", "text": "protected function tearDown(): void\n {\n parent::tearDown();\n\n unset($this->app);\n unset($this->response);\n }", "title": "" }, { "docid": "c79fc3b26a76c9c05904c898b7014244", "score": "0.68607414", "text": "public static function tearDown()\n {\n Functions::__flush();\n Patchwork\\restoreAll();\n Mockery::close();\n }", "title": "" }, { "docid": "434161a882e0103f987c4c7d98163483", "score": "0.68583196", "text": "protected function tearDown(): void\n {\n Mockery::close();\n Carbon::setTestNow();\n }", "title": "" }, { "docid": "eaa529973c063c55d8d4206d994249dd", "score": "0.68437904", "text": "public function tearDown() {\n $this->auth->logout();\n }", "title": "" }, { "docid": "eb60a285628385ec2337719bafb22989", "score": "0.6837381", "text": "protected function tear_down()\n {\n if (!extension_loaded('oci8')) {\n $this->markTestSkipped('Oci8 extension is not loaded');\n }\n\n if (!TESTS_ZEND_DB_ADAPTER_ORACLE_ENABLED) {\n $this->markTestSkipped('Oracle is required');\n }\n\n $this->_dropTable();\n $this->_db = null;\n $this->_adapter = null;\n }", "title": "" }, { "docid": "2d6359de58a611312c42496ae01cb697", "score": "0.6833849", "text": "protected function tearDown(): void\n {\n // Reset mocked datetime\n if (class_exists(DBDatetime::class)) {\n DBDatetime::clear_mock_now();\n }\n\n // Stop the redirection that might have been requested in the test.\n // Note: Ideally a clean Controller should be created for each test.\n // Now all tests executed in a batch share the same controller.\n if (class_exists(Controller::class)) {\n $controller = Controller::has_curr() ? Controller::curr() : null;\n if ($controller && ($response = $controller->getResponse()) && $response->getHeader('Location')) {\n $response->setStatusCode(200);\n $response->removeHeader('Location');\n }\n }\n\n // Call state helpers\n static::$state->tearDown($this);\n }", "title": "" }, { "docid": "43ca8137b6c08f0eff55f40d67f27f57", "score": "0.68246526", "text": "protected function tearDown()\n {\n \tif (Manager::finder())\n \t{\t\n \t\t$this->destroy();\n \t}\n }", "title": "" }, { "docid": "4588b1839e6435383e71559fb76fcf86", "score": "0.6812362", "text": "protected function tearDown()\n {\n $this->getProxy()->stop();\n }", "title": "" }, { "docid": "60eb7627036722110152dad4151f1ebb", "score": "0.6809451", "text": "public function tearDown(): void {\n unset($this->unit);\n }", "title": "" }, { "docid": "38bbdc3abb3a85745160424df78ea4a5", "score": "0.68044597", "text": "public static function teardownAfterClass()\n {\n self::$connection = null;\n }", "title": "" }, { "docid": "7ac9a7b615aeacffa1d0eb1da066657f", "score": "0.68010443", "text": "public function endTest() {\n\t\tunset($this->TestPurifiableModel);\n\t\tparent::tearDown();\n\t}", "title": "" }, { "docid": "691a7c7f95955110e581e635aa2e5325", "score": "0.6793507", "text": "public function tearDown(): void\n {\n parent::tearDown();\n unset($this->schoolRepository);\n unset($this->schoolConfigRepository);\n unset($this->commandTester);\n }", "title": "" }, { "docid": "ffaafa42201af3baad3b14bcde0d69e4", "score": "0.67930764", "text": "public function tearDown()\n {\n unset($this->upgrade);\n }", "title": "" }, { "docid": "63cba70b32d6b21cf3a444eaa530eb80", "score": "0.6781085", "text": "public function tearDown()\n {\n $this->restoreSfConfig();\n $this->end();\n }", "title": "" }, { "docid": "2fafd8a8e54dd1596ba887d5f16c82f0", "score": "0.67805797", "text": "public function tearDown()\n {\n StaticEventManager::resetInstance();\n }", "title": "" }, { "docid": "351cdcb6e3133ee29d535734dcb85f6b", "score": "0.677036", "text": "public function tearDown(): void\n {\n unset($this->TwoFactorMiddleware);\n }", "title": "" }, { "docid": "be633003dc82732f9cd7304a1ace034f", "score": "0.67664593", "text": "public function tearDown() \n {\n $this->flushSession();\n \n $this->inactiveUser->delete();\n $this->basicUser->delete();\n $this->contactManager->delete();\n $this->projectManager->delete();\n $this->administrator->delete();\n\n parent::tearDown();\n Mockery::close();\n }", "title": "" }, { "docid": "5c4754d2a800b8f7968ffbbad212898d", "score": "0.67652917", "text": "public function _afterSuite()\n {\n $this->unloadFixtures();\n }", "title": "" }, { "docid": "32613a2705d821903acac42e1f543b86", "score": "0.6764662", "text": "public function teardown()\n {\n parent::teardown();\n }", "title": "" }, { "docid": "32613a2705d821903acac42e1f543b86", "score": "0.6764662", "text": "public function teardown()\n {\n parent::teardown();\n }", "title": "" }, { "docid": "57170e24fbb653c210a11f19924fc856", "score": "0.67597187", "text": "public function tearDown()\n {\n $this->webDriver->close();\n }", "title": "" }, { "docid": "4d97a5e2c8e9645200a059e7b42fe387", "score": "0.67587304", "text": "protected function tearDown(): void\n {\n $_SERVER = $this->originalServer;\n $_ENV = $this->originalEnvironment;\n parent::tearDown();\n }", "title": "" }, { "docid": "c12ea8d1abe5e5f009981207bab10766", "score": "0.6753738", "text": "protected function tearDown()\n\t{\n\t\tparent::tearDown();\n\t\tif ($this->session && $this->keepOpenOnFailure && $this->getStatus() !== \\PHPUnit_Runner_BaseTestRunner::STATUS_PASSED)\n\t\t{\n\t\t\t$this->session->keepOpen();\n\t\t}\n\t\tif ($this->session)\n\t\t{\n\t\t\t$this->session->stop();\n\t\t}\n\t}", "title": "" }, { "docid": "3f0cab4d2e0379abe1cc2cd42a4a2787", "score": "0.6753334", "text": "function drush_simpletest_test_clean() {\n simpletest_clean_environment();\n drush_print(\"Simpletest environment successfully cleaned.\");\n}", "title": "" }, { "docid": "088fc11b739f1ae3ff1923c4df0faefa", "score": "0.67502993", "text": "protected function TearDown():void\n {\n // the IoC container which we revert back here. Also, the localization\n // instance gets reset in some of the static tests because of which we\n // revert it back here to its original state.\n $app = Facade::getFacadeApplication();\n\n $lsp = $app->make('Concrete\\Core\\Localization\\LocalizationEssentialServiceProvider');\n $lsp->register();\n\n $msp = $app->make('Concrete\\Core\\Multilingual\\MultilingualServiceProvider');\n $msp->register();\n\n $loc = Localization::getInstance();\n $loc->setActiveContext(Localization::CONTEXT_SYSTEM);\n }", "title": "" }, { "docid": "4e2d5e34b56d6612222bf87ee7467345", "score": "0.67497545", "text": "protected function tearDown()\n {\n $this->service = null;\n }", "title": "" }, { "docid": "63641f366ccace0b7d6dba2fa769f2bf", "score": "0.6743072", "text": "public function __destruct() {\n $this->test_status = false;\n }", "title": "" }, { "docid": "357c8dc5a09de1a071fd193f45a5de2e", "score": "0.6732105", "text": "public static function tearDownTestEnvironment()\n\t{\n\t\t// Remove the output from the Generator classes\n\t\tself::writeAttribute(Generator::class, 'output', null);\n\t\tself::writeAttribute(FilesystemManipulator::class, 'output', null);\n\t}", "title": "" }, { "docid": "4ff2331678b49240bb2676031531b517", "score": "0.6731273", "text": "protected function tearDown(): void\n {\n $this->activator->reset();\n\n parent::tearDown();\n }", "title": "" }, { "docid": "4ff2331678b49240bb2676031531b517", "score": "0.6731273", "text": "protected function tearDown(): void\n {\n $this->activator->reset();\n\n parent::tearDown();\n }", "title": "" }, { "docid": "373a45a52117951400f3e658e8e5348a", "score": "0.67292446", "text": "public function endTest()\n {\n $this->_revertFixtures();\n /** @var $objectManager \\Magento\\TestFramework\\ObjectManager */\n $objectManager = \\Magento\\TestFramework\\Helper\\Bootstrap::getObjectManager();\n $objectManager->get(\\Magento\\Customer\\Model\\Metadata\\AttributeMetadataCache::class)->clean();\n }", "title": "" }, { "docid": "2620f38247e7a7621c49d4b0cb7a55f2", "score": "0.6726892", "text": "protected function tearDown()\n\t{\n\t\t$_SERVER = $this->backupServer;\n\t\tunset($this->backupServer);\n\t\tunset($this->toolbar);\n\t\tunset($this->object);\n\t\t$this->restoreFactoryState();\n\n\t\tparent::tearDown();\n\t}", "title": "" }, { "docid": "8785cce65751e8e0bf37a0329bfc6a1a", "score": "0.6724439", "text": "protected function tearDown(): void\n {\n $this->root->unmount();\n parent::tearDown();\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "165e2bbcf8f47c0adbed93548f33d6c1", "score": "0.8019291", "text": "public function show(resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e5e8acc247b28ba8722842dd97070847", "score": "0.74223363", "text": "abstract protected function makeDisplayFromResource();", "title": "" }, { "docid": "cf7a236473d0b19def52419220a82d95", "score": "0.7193305", "text": "public function show(Resource $resource)\n {\n return $resource;\n }", "title": "" }, { "docid": "b8de278532cf1b2d94016c0cd12737fd", "score": "0.7159185", "text": "public function show(Resource $resource)\n {\n $resource = new ResourceResource($resource);\n return $this->success('Resource Detail.', $resource);\n }", "title": "" }, { "docid": "1981d87b70ebb966cb1a7214c5461ecf", "score": "0.7105166", "text": "function display($resource_name) {\n return include $resource_name;\n }", "title": "" }, { "docid": "815f5613a8189df2880c7c0be463594e", "score": "0.69159317", "text": "public function show(Resource $resource)\n {\n return $this->showOne($resource);\n }", "title": "" }, { "docid": "1be3fb8370513aa7e96f7c3e96fdff88", "score": "0.6462615", "text": "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "title": "" }, { "docid": "bf9855687af595254565be84ecf08da3", "score": "0.6460327", "text": "public function show(Request $request, $resource, $id)\n {\n $command = $this->translator->getCommandFromResource($resource, 'show');\n\n $this->runBeforeCommands($command);\n\n $data = $this->dispatchFrom($command, $request, [\n 'modelClass' => $this->translator->getClassFromResource($resource),\n 'id' => $id\n ]);\n\n $this->fireEventForResource($resource, 'show', $data);\n\n return $this->success($data);\n }", "title": "" }, { "docid": "1cff5c8d606548f28e8af3af4e531294", "score": "0.6286817", "text": "protected function showAction()\n {\n $this->showAction\n ->setAccess($this, Access::CAN_SHOW)\n ->execute($this, NULL, NULL, NULL, __METHOD__)\n ->render()\n ->with(\n [\n 'user_log' => $this->userMeta->unserializeData(\n ['user_id' => $this->thisRouteID()],\n [\n 'login', /* array index 0 */\n 'logout', /* array index 1 */\n 'brute_force', /* index 2 */\n 'user_browser' /* index 3 */\n ]\n )\n ]\n )\n ->singular()\n ->end();\n }", "title": "" }, { "docid": "237d3c90b7035170d5fd20572d1e0dbb", "score": "0.6247061", "text": "public function display( Response $response );", "title": "" }, { "docid": "1e1b2e6a47cd86a471b2f6e43a786d4f", "score": "0.6238523", "text": "public function testShowResourceReturnsTheCorrectResource()\n {\n $items = factory(Item::class, 10)->create();\n $item = $items->get(6);\n\n $this->call('GET', sprintf('/api/v1/item/%s', $item->id));\n\n $this->seeJson([\n 'id' => $item->id,\n 'name' => $item->name,\n ]);\n }", "title": "" }, { "docid": "1b943006f882cdea6214d3238f5094bb", "score": "0.61226845", "text": "public function display($id);", "title": "" }, { "docid": "988fc9380f55f5086ebf1ea38e63511d", "score": "0.61054146", "text": "public function operate()\n {\n echo $this->resource.\"\\n\";\n }", "title": "" }, { "docid": "9cd2c7f88d644fa456e7453c3bb610d2", "score": "0.6069253", "text": "function show()\n {\n $this->display();\n }", "title": "" }, { "docid": "31c91777927cb1b0555e264f1cece7a9", "score": "0.6053162", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array('id' => array('HtmlEntities', 'StripTags', 'StringTrim')); \n $validators = array('id' => array('NotEmpty', 'Int'));\n\n // test if input is valid retrieve requested record attach to view\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams()); \n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Square_Model_Item i')\n ->leftJoin('i.Square_Model_Country c')\n ->leftJoin('i.Square_Model_Grade g')\n ->leftJoin('i.Square_Model_Type t')\n ->where('i.RecordID = ?', $input->id);\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->item = $result[0]; \n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404); \n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input'); \n }\n }", "title": "" }, { "docid": "f1919612984d797496fb91a1df6bfc28", "score": "0.60360175", "text": "public function show(Resident $resident)\n {\n //\n }", "title": "" }, { "docid": "9c46cbbf718572f41d5fb18cb85408df", "score": "0.60352117", "text": "public function viewName($resource)\n {\n return $this->name.'::'.$resource;\n }", "title": "" }, { "docid": "4157890d7ce997c99fc951f60a368f8a", "score": "0.6034318", "text": "public function showResource()\n {\n return new ParceiroResource(Parceiro::find(2));\n }", "title": "" }, { "docid": "5f890361bf8d16515c9463c62dee48f3", "score": "0.602238", "text": "protected function showResourceView($id)\n\t{\n\n\t\t$element = $this->getElements($id);\n\t\treturn Response::view('adm/User/element', array('data' => $element));\n\n\t}", "title": "" }, { "docid": "4b6584e73c632121e7d29d1a53288f08", "score": "0.600146", "text": "public function show(Request $request ,$id){\n \n if($request->session()->exists('resources') && isset($request->session()->get('resources')[$id])) {\n $resource = $request->session()->get('resources')[$id];\n $data = [];\n $data['resource'] = $resource;\n $data['enterprise'] = 'Resources Ltd.';\n \n return view('resource.show', $data); \n \n }\n \n return redirect('resource');\n \n }", "title": "" }, { "docid": "f4584c6fbf6732a4cc30c153518eac85", "score": "0.5962682", "text": "function displayResource($file) {\n\tglobal $mosConfig_lang;\n\t$file_lang = migratorBasePath() . '/resources/' . $file . '.' . $mosConfig_lang . '.html';\n\t$file = migratorBasePath() . '/resources/' . $file . '.english.html';\n\tif (file_exists($file_lang)) {\n\t\techo '<div align=\"left\" style=\"border: 1px solid black; padding: 5px; \">';\n\t\tinclude ($file_lang);\n\t\techo '</div>';\n\t} else if (file_exists($file)) {\n\t\techo '<div align=\"left\" style=\"border: 1px solid black; padding: 5px; \">';\n\t\tinclude ($file);\n\t\techo '</div>';\n\t}\n\telse\n\t\tdie(_BBKP_CRITINCLERR . $file);\n\techo __VERSION_STRING;\n}", "title": "" }, { "docid": "78f674e0991329ee80d8bfe522602ce3", "score": "0.59581137", "text": "public function actionShow()\n {\n $this->render('show', array());\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "51df0e59505572a08a6c3c4ea6558bb4", "score": "0.5942475", "text": "public function showAction()\n\t{\n\t\t$this->loadLayout()->renderLayout();\n\t}", "title": "" }, { "docid": "d0d1f283ce410ec0d9c7e82af4062258", "score": "0.59333754", "text": "public function display(WebResource $res) {\n $view = $res->getView() ?: array();\n switch(count($view)) {\n case 0:\n case 1:\n $viewType = Config::get('view.defaultViewType', 'json');\n break;\n default:\n $viewType = $view[0];\n break;\n }\n $viewMappings = Config::get('view.mappings');\n if (!isset($viewMappings[$viewType])) {\n throw new Exception(\n \"Could not render view by type $viewType\",\n Exception::CODE_PRETTY_VIEW_NOTFOUND);\n }\n $viewName = $viewMappings[$viewType];\n $view = $this->classLoader->load($viewName, true);\n if (!$view) {\n throw new Exception(\"Could not render view by $viewName, view class not found.\",\n Exception::CODE_PRETTY_CLASS_NOTFOUND);\n }\n $view->render($res);\n }", "title": "" }, { "docid": "9c9f166dfbd4a1117126f1616068d929", "score": "0.590676", "text": "public function displayAction()\n {\n\n $domainName = GeneralUtility::getIndpEnv('TYPO3_REQUEST_HOST');\n\n $shortenUrl = $this->urlRepository->findShortUrlByPage($this->currentPage);\n\n if (empty($shortenUrl)) {\n $shortenUrl = $this->generateShortUrl();\n }\n\n $this->view\n ->assign('display', $shortenUrl)\n ->assign('domain', $domainName);\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e45bfcde7a17ab2a4f6f9e2caad01271", "score": "0.5883924", "text": "function display()\n\t{\n\t\t// Set a default view if none exists\n\t\tif ( ! JRequest::getCmd( 'view' ) ) {\n\t\t\tJRequest::setVar('view', 'category' );\n\t\t}\n\n\t\t$layout = JRequest::getCmd( 'layout' );\n\n\t\tif ($layout == 'form') {\n\t\t\tJError::raiseError( 404, JText::_(\"Resource Not Found\") );\n\t\t\treturn;\n\t\t}\n\n\t\t$view = JRequest::getVar('view');\n\n\t\tparent::display(true);\n\t}", "title": "" }, { "docid": "6f20a1779e33227cfc4451ace6ab29af", "score": "0.5864878", "text": "public function edit(resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e278522937d7847767c9d2ff92455995", "score": "0.5863409", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n ); \n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams()); \n \n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Tripjacks_Model_News i')\n ->where('i.newsid = ?', $input->id);\n\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->news = $result[0]; \n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404); \n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input'); \n }\n }", "title": "" }, { "docid": "8c62873548eaa44202c0ae405fd7d4b3", "score": "0.58593535", "text": "public function resolveForDisplay($resource, $attribute = null)\n {\n $this->prepareLines($resource, $attribute);\n }", "title": "" }, { "docid": "bf80668121276aa95e552b7e16de0410", "score": "0.58592206", "text": "public function display() \n\t{\n\t\t\n\t\tparent::display(); \n\t}", "title": "" }, { "docid": "f0ce504b8c6c28b59b1b83da05a1e7ee", "score": "0.58354145", "text": "public function show($imageResource) {\n\t\theader('Content-type: image/png');\n\t\theader('Content-disposition: inline');\n\t\timagepng($imageResource, null, 0);\n\t}", "title": "" }, { "docid": "1b6934d948dba93be88f01d4f4cde49a", "score": "0.58158535", "text": "public function display($context);", "title": "" }, { "docid": "bcb7bd8aa9f807e36423f26674169bf6", "score": "0.5785241", "text": "public static function resource($resource, $controller, $options) {\n \n }", "title": "" }, { "docid": "06a412168984820a16a8be534a2d85f1", "score": "0.57841134", "text": "public function display()\n\t{\n\t\theader('Content-type: image/png');\n\t\timagepng($this->_imageResource , null , 5 );\n\t}", "title": "" }, { "docid": "55ebb313f26c5900b8cfe594dfa4e5eb", "score": "0.57751614", "text": "public function display() {\n\t\techo $this->render();\n\t}", "title": "" }, { "docid": "2543e47f21a6d16ac7911a7ed2e24588", "score": "0.5771402", "text": "public function showAction()\n {\n //loads the artist\n $artist = $this->_getArtistById($this->_getParam('id'));\n \n //sends it to the view\n $this->view->artist = $artist;\n \n //loads and sends its albums to the view\n $this->view->albums = $artist->findDependentRowset('Model_Album');\n }", "title": "" }, { "docid": "a1ebeebfc498c76d0c8996e04e37ac78", "score": "0.5764601", "text": "public function show(){\n $this->init();\n $this->load(self::class);\n }", "title": "" }, { "docid": "41311b65a90295f931830bf21bc118c5", "score": "0.57608664", "text": "public function DisplayResources($resource_IDs) {\n \n //Variables for the pagination\n $limit_offset = $this->CPagination->limit_offset;\n $limit_maxNumRows = $this->CPagination->limit_maxNumRows;\n \n //Get resources\n $result = $this->MDatabase->GetResources((int) $limit_offset, (int) $limit_maxNumRows, $resource_IDs);\n \n //If nothing is returned, say so and end here\n if(!$result) {\n echo 'No results.';\n return;\n }\n \n //Initiate the variable that will contain all the output\n $output = '';\n \n //Display the resources one by one\n while($row = $result->fetch_array()) {\n $output .= '<div class=\"resource\">';\n \n $title = htmlspecialchars($row['title']);\n $resource_type = htmlspecialchars($row['resource_type']);\n $description = htmlspecialchars($row['description']);\n $publishing_date = htmlspecialchars($row['publishing_date']);\n \n $output .= \"<h3>\" . $title . \"</h3>\";\n $output .= \"<table class='resource_info'><tbody>\";\n $output .= \"<tr>Type: \" . ucwords(strtolower($resource_type)) . '</tr>';\n $output .= ' <tr>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"#\" class=\"tooltip\">'\n . '<img src=\"img/information-icon-small.png\">'\n . '<span><img class=\"callout\" src=\"img/callout_black.gif\" />'\n . '<strong>Description</strong><br />' . $this->Parsedown->text($description)\n . '</span></a></tr>';\n \n /* Get and display the URLs */\n $output .= $this->DisplayURLs((int) $row['resource_id']); \n \n //Clear the float\n $output .= '<div class=\"clear\"></div>';\n \n /* Display the publishing date, if it exists */\n $output .= $publishing_date ? \"<tr>Publishing Date: {$publishing_date}</tr>\" : '';\n \n /* Get and display the authors */\n $output .= $this->DisplayAuthors((int) $row['resource_id']);\n\n /* Get and display the keywords */\n $output .= $this->DisplayKeywords((int) $row['resource_id']);\n \n $output .= '</div>'; //close the class=\"resource\" div\n }\n \n echo $output;\n }", "title": "" }, { "docid": "64ca047c763cbf564dd5de6f46e00c8a", "score": "0.5757105", "text": "public function display(){}", "title": "" }, { "docid": "e9b2cd8fa004ddb7b0d9e03744f3126f", "score": "0.57506883", "text": "public function display()\n {\n $return = $this->fetch();\n echo $return;\n }", "title": "" }, { "docid": "2c3490c6d6b2073fd195968f652e07c5", "score": "0.57488596", "text": "public function render()\n {\n $rows = $this->resource->model()::all();\n\n $title = Str::of($this->resource->name())->plural();\n\n return view('moon::resources.index', [\n 'title' => $title,\n 'columns' => $this->resource->columns(),\n 'rows' => $rows\n ])->layout('moon::layouts.app', ['title' => $title]);\n }", "title": "" }, { "docid": "b817fe8afcad697af904cbcdb8688cef", "score": "0.57483834", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('AVBundle:Reto')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Reto entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('AVBundle:Reto:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "c0a70a08a2849ac13def6ed6304e58da", "score": "0.5743798", "text": "public function show(): UserResource\n {\n return $this->repository->show();\n }", "title": "" }, { "docid": "c952768f11b98a6aed12e59d779b7efa", "score": "0.57387173", "text": "public function display() { echo $this->render(); }", "title": "" }, { "docid": "9aee1654836904270de00365634a70fd", "score": "0.57323885", "text": "protected function show($param) {\n $method = 'show_' . $param;\n if (method_exists($this, $method)) {\n $this->$method();\n } else {\n $this->error('Invalid command argument!');\n $this->help();\n }\n }", "title": "" }, { "docid": "c7ce15d35acae8f764d0adba3a337cb0", "score": "0.57273036", "text": "public function display($file) \n {\n echo $this->fetch($file); \n }", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7fa9265465a0729600bbbce97f9e8303", "score": "0.57220465", "text": "function render(Request $Req, Response $Res, $resource);", "title": "" }, { "docid": "b5e7179ea7c94add1c1af50e9f9b7fdd", "score": "0.57208323", "text": "public function show($id)\n\t{\n\t\n\t}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "3635f9e6312e7f3ef2e689432f8a3312", "score": "0.5705637", "text": "public function show( Patient $patient ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "560ae0fd472bad5f1d21beeed5dfbbdd", "score": "0.57012135", "text": "public function show(){}", "title": "" }, { "docid": "7b283ba1c0546a155efc95a44dd0f9cf", "score": "0.56981397", "text": "public function show(Response $response)\n {\n //\n }", "title": "" }, { "docid": "a042815ce2283cc6c3688042abe87a56", "score": "0.56963277", "text": "public function show($id)\n\t{\n\t\t//\n \n \n\t}", "title": "" }, { "docid": "5bc1d8742885bcbc1dc675e2bcd69dd2", "score": "0.56894034", "text": "public function display(midgardmvc_core_request $request);", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" } ]
49c4fc84b9eb635a5659da726040e38a
Add a month with no overflow to the instance
[ { "docid": "11a0048f49d17fdcae22c85c5ba1b0c9", "score": "0.68665403", "text": "public function addMonthNoOverflow(\n $value = \"1\"\n )\n {\n }", "title": "" } ]
[ { "docid": "d42f2215cad2bfd2ab3282f634295d72", "score": "0.75659674", "text": "public function addMonth() {\n\t\t$this->month++; \n\t\tif ($this->month > 12) {\n\t\t\t$this->month = 1;\n\t\t\t$this->addYear();\n\t\t}\n\t}", "title": "" }, { "docid": "bb7ad8fcb76681ea64ee82d5c25272f6", "score": "0.67737144", "text": "public function addMonth(\n $value = \"1\"\n )\n {\n }", "title": "" }, { "docid": "86bfd92d44c45746ebb41e959070bee3", "score": "0.65573263", "text": "public function addMonths($months){\r\n $this->modify('+'.$months.' month');\r\n return $this;\r\n }", "title": "" }, { "docid": "dd33a73f34af27ffb1b0ad06164c3159", "score": "0.6555203", "text": "function addMonths($n = 0)\n\t{\n\n\t\t// correct for months where number of days is shorter than source month)\n\t\t$dim = intval(date(\"t\", JevDate::mktime(0, 0, 0, $this->month + $n, 1, $this->year)));\n\t\t$this->date = JevDate::mktime($this->hour, $this->minute, $this->second, $this->month + $n, min($this->day, $dim), $this->year);\n\t\t$parts = explode(\":\", date(\"Y:m:j:G:i:s:t\", $this->date));\n\n\t\t$this->year = intval($parts[0]);\n\t\t$this->month = intval($parts[1]);\n\t\t$this->day = intval($parts[2]);\n\t\t$this->dim = intval($parts[6]);\n\n\t}", "title": "" }, { "docid": "7697f2103f9f1106477bca286496b29e", "score": "0.649575", "text": "function addMonths($months) {\n\t\t$this->month += $months;\n\t\t$this->_recalculate();\n\t}", "title": "" }, { "docid": "c074ce297c01d2b1eb09d4c87908379e", "score": "0.64456296", "text": "public function addDay() {\n\t\t$this->day++; \n\t\tif ($this->day > CalendarHelper::daysInMonth($this->month, $this->year)) {\n\t\t\t$this->day = 1;\n\t\t\t$this->addMonth();\n\t\t}\n\t}", "title": "" }, { "docid": "541caa62b5fd2c07a006f7127a9e226b", "score": "0.63474303", "text": "protected function isMonth()\n {\n if ($this->hasFrontPage()) {\n $this->addIndexPage();\n }\n\n $this->add(get_the_date('F Y'), false, true);\n }", "title": "" }, { "docid": "5f2c515a4c650d78858d1344febf11f6", "score": "0.6249252", "text": "protected function _monthly() {\n \n }", "title": "" }, { "docid": "b88d84919cde5628185931c9d8c6995f", "score": "0.6185217", "text": "public function monthly()\n\t{\n\t\treturn $this->spliceIntoPosition( 1, 0 )->spliceIntoPosition( 2, 0 )->spliceIntoPosition( 3, 1 );\n\t}", "title": "" }, { "docid": "2f2b9e21a2b5a1019ab8614d9f24fc63", "score": "0.61845535", "text": "public function addMonths(\n $value\n )\n {\n }", "title": "" }, { "docid": "e75c49331a05ef27123eef30de98ca40", "score": "0.6149587", "text": "public function addMonthsNoOverflow(\n $value\n )\n {\n }", "title": "" }, { "docid": "3d7f3a4be82cd14de47d7e9c9e5fda1a", "score": "0.61113316", "text": "function addMonth(int $month, int $year, string $title) {\n $this->month = $month;\n $this->year = $year;\n $this->title = $title;\n // Build start date of calendar\n $ts = mktime(0, 0, 0, $month, 1, $year);\n $this->date = getDate($ts);\n // Number of days to display in calendar\n $this->days_in_month = date('t', $ts);\n $this->dayEntries = array(); // Array containing the XY position of each day, the y value is incremented as entries are added to the calendar\n $this->prevMonthEntries= array(); // Array holding the entries which start on a previous month\n // Prepare array for each day\n for ($day = 0; $day < $this->days_in_month; $day++) {\n $this->dayEntries[$day][\"entries\"] = [];\n }\n $this->weekday_of_first = ($this->date[\"wday\"] + 7 - $this->weekStarts) % 7;\n $this->num_of_rows = ceil(($this->days_in_month + $this->weekday_of_first) / 7.0);\n \n $this->pdf->AddPage();\n $this->gridWidth = $this->pdf->getPageWidth() - $this->marginRight - $this->marginLeft;\n $this->cellWidth = $this->gridWidth / 7;\n \n $this->rowHeights = array(); // Array holding the row heights of the last grid drawn\n $this->gridIsDrawn = false;\n }", "title": "" }, { "docid": "10dd27db2d96b03be659380ecb948ae1", "score": "0.6092263", "text": "public function addMonth(int $months = 1): DateBase\n {\n return $this->addPartsImpl(0, $months, 0, 0, 0, 0);\n }", "title": "" }, { "docid": "68328b16192a1f16caa9e6645d9f8686", "score": "0.6076944", "text": "public function getTotalMonth();", "title": "" }, { "docid": "78200527a9320ad709ad19da1ef710b6", "score": "0.6055056", "text": "function addMonths($date,$months) {\n\t $orig_day = $date->format(\"d\");\n\t $date->modify(\"+\".$months.\" months\");\n\t while ($date->format(\"d\")<$orig_day && $date->format(\"d\")<5) {\n\t $date->modify(\"-1 day\");\n\t }\n\t}", "title": "" }, { "docid": "750779881c0bf6b21838baa93476b3c9", "score": "0.5915944", "text": "public function plusMonths(int $monthsToAdd): self\n {\n $internal = clone $this->internal;\n $internal->m = $internal->m + $monthsToAdd;\n return new self($internal);\n }", "title": "" }, { "docid": "74d2c8bf323ca23d82964fdb583605e0", "score": "0.58963674", "text": "public function hasMonths();", "title": "" }, { "docid": "d5577a3e68705f1aa5f189926ecd5056", "score": "0.58828056", "text": "function addFirstMonthAndLastMonthToCurrentMonthes( $monthes)\n{\n global $g_pay_per_month, $g_payment_settings;\n if (empty($g_payment_settings)) {\n require_once CMS_INC_ROOT . '/PaymentSetting.class.php';\n $g_payment_settings = PaymentSetting::getAll();\n }\n\t$strlen = count( $monthes );\n\tif ($strlen > 0) {\t\n $keys = array_keys($monthes);\n $latest_month = $keys[$strlen-1];\n $year = substr($latest_month, 0, 4);\n $month = substr($latest_month, 4, 2);\n $timestamp = strtotime($year . '-' . $month . '-01');\n\t} else {\n $month = date(\"m\");\n $year = date(\"Y\");\n $timestamp = mktime(0, 0, 0, $month-2, 1 , $year);\n $month = date(\"m\", $timestamp);\n $year = date(\"Y\", $timestamp);\n\t}\n $this_month = date(\"Ym01\");\n $date = $year . $month . '01';\n while($date <= $this_month) {\n $index = $year . $month . '1';\n $monthes += getMonthLabels($timestamp);\n $timestamp = mktime(0, 0, 0, $month+1, 1 , $year);\n $month = date(\"m\", $timestamp);\n $year = date(\"Y\", $timestamp);\n $date = $year . $month . '01';\n }\n // $monthes += getMonthLabels(getDelayTime());\n asort($monthes);\n\treturn $monthes;\n}", "title": "" }, { "docid": "743a79f3b854a64da4870d5296b3a551", "score": "0.5855492", "text": "function setTotalDayInMonth($value) {\n $this->totalDayInMonth = $value;\n return $this;\n }", "title": "" }, { "docid": "07df356b7164f666dc8fd7e4c7138a86", "score": "0.5777504", "text": "private function nextMonth() {\n\t\t$year = ($this->month +1 > 12)? ($this->year + 1) : $this->year;\n\t\t$month = ($this->month + 1 > 12)? 1: ($this->month + 1);\n\t\treturn [\n\t\t\t'month' => $month,\n\t\t\t'year' => $year\n\t\t];\n\t}", "title": "" }, { "docid": "a1b06236c9d73079e0569cb64b47bd87", "score": "0.5735466", "text": "public function incrementMonth() {\n\t\t/*\n\t\t * Exit if the action isn't set properly\n\t\t */\n\t\tif ($_POST['action'] !='prev_month' && $_POST['action'] !='next_month') {\n\t\t\treturn false;\n\t\t} else {\n\t\t\t/*\n\t\t\t * Increment the useDate by +1 month or -1 month\n\t\t\t */\n\t\t\tif ($_POST['action'] == 'prev_month') {\n\t\t\t\treturn (date('Y-m-d H:i:s', mktime(0,0,0, $this->_m - 1, 1, $this->_y)));\n\t\t\t} elseif ($_POST['action'] == 'next_month') {\n\t\t\t\treturn (date('Y-m-d H:i:s', mktime(0,0,0, $this->_m + 1, 1, $this->_y)));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c86e00bae200a36cc3f54e42a32c8667", "score": "0.5734814", "text": "public function endOfMonth()\n {\n }", "title": "" }, { "docid": "418f282908967b341818f1c5c8e754ab", "score": "0.57298696", "text": "public function withMonth(int $month): static\n {\n return new static(\n Date::create($this->year(), $month, $this->day()),\n $this->time(),\n $this->timezone()\n );\n }", "title": "" }, { "docid": "48e1346184f95e053920871255716e40", "score": "0.5630826", "text": "public function monthly() :self\n {\n return $this->sortBy(function ($post) {\n return $post->month();\n })->groupBy(function ($post) {\n return $post->monthName();\n });\n }", "title": "" }, { "docid": "4e5da166edd97aa8e68d2dc66dbf4582", "score": "0.56187266", "text": "function wc_memberships_add_months_to_timestamp( $from_timestamp, $months_to_add ) {\n\n\t// bail out if there aren't months to add or is a non positive integer\n\tif ( (int) $months_to_add < 0 || ! is_numeric( $months_to_add ) ) {\n\t\treturn $from_timestamp;\n\t}\n\n\t$first_day_of_month = date( 'Y-m', $from_timestamp ) . '-1';\n\t$days_in_next_month = date( 't', strtotime( \"+ {$months_to_add} month\", strtotime( $first_day_of_month ) ) );\n\t$next_timestamp = 0;\n\n\t// it's the last day of the month\n\t// OR\n\t// number of days in next month is less than the the day of this month\n\t// (i.e. current date is 30th January, next date can't be 30th February)\n\tif ( date( 'd', $from_timestamp ) > $days_in_next_month || date( 'd m Y', $from_timestamp ) === date( 't m Y', $from_timestamp ) ) {\n\n\t\tfor ( $i = 1; $i <= $months_to_add; $i++ ) {\n\n\t\t\t$next_month = strtotime( '+ 3 days', $from_timestamp ); // Add 3 days to make sure we get to the next month, even when it's the 29th day of a month with 31 days\n\t\t\t$next_timestamp = $from_timestamp = strtotime( date( 'Y-m-t H:i:s', $next_month ) ); // NB the \"t\" to get last day of next month\n\t\t}\n\n\t// it's safe to just add a month\n\t} else {\n\n\t\t$next_timestamp = strtotime( \"+ {$months_to_add} month\", $from_timestamp );\n\t}\n\n\treturn $next_timestamp;\n}", "title": "" }, { "docid": "2a6faad71f69c9ee17ce8d6ea31d0aff", "score": "0.56143147", "text": "public function startOfMonth()\n {\n }", "title": "" }, { "docid": "ea37c4e347fc03e698e4af0d0c96b597", "score": "0.56042", "text": "public function startOfNextMonth() {\n return $this->endOfMonth()->modify('+1 second');\n }", "title": "" }, { "docid": "f3a8da3edb00819c0e3d1904b6453129", "score": "0.55987567", "text": "function offset_months($months){\n\t\treturn new Time(self::offset_date_by_months($this->unix, $months));\n\t}", "title": "" }, { "docid": "edce823d7651c8b75eefd891b2598ed1", "score": "0.559505", "text": "public function subMonthNoOverflow(\n $value = \"1\"\n )\n {\n }", "title": "" }, { "docid": "8d19734f06f66929cf10c9c67300c1e0", "score": "0.5591275", "text": "public function month(){\r\n\t\t\r\n \t\t$init = 1;\r\n \t\twhile ($init<=12){\r\n \t\t\t\r\n \t\t\t$month[$init] = $init.\"月\"; \r\n \t\t\t\r\n \t\t\t$init++;\r\n \t\t}\r\n \t\t\r\n \t\treturn $month;\r\n \t\t\r\n \t}", "title": "" }, { "docid": "30472de30ec92a5c65d33acd3f126de5", "score": "0.5582853", "text": "public function month(\n $value\n )\n {\n }", "title": "" }, { "docid": "b1912899fccbc72a93b4ac5d4eab3578", "score": "0.55612516", "text": "public function addMonths($intMonths)\n {\n $this->_value_ = date('Y-m-d H:i:s', strtotime($this->_value_.\" +\".$intMonths.\" months\"));\n return $this;\n }", "title": "" }, { "docid": "74f360e1968ea92df530994200cab941", "score": "0.5543615", "text": "function adjustDate($month, $year) {\n $a = array();\n $a[0] = $month;\n $a[1] = $year;\n\n while ($a[0] > 12)\n {\n $a[0] -= 12;\n $a[1]++;\n }\n\n while ($a[0] <= 0)\n {\n $a[0] += 12;\n $a[1]--;\n }\n\n return $a;\n }", "title": "" }, { "docid": "1075d74fd5d6e5ba711487884c590883", "score": "0.55360115", "text": "public static function addMonths($months) {\n if (! is_int($months)) {\n $months = 0;\n }\n $today = date('Y-m-d');\n $newdate = strtotime('+'.$months.' month', strtotime($today));\n return date('Y-m-d' , $newdate);\n }", "title": "" }, { "docid": "821fae5d965fc717831edc6964e5955d", "score": "0.5531993", "text": "public function withMonths(int $months): self\n {\n $internal = clone $this->internal;\n $internal->m = $months;\n return new self($internal);\n }", "title": "" }, { "docid": "42d54a5ff22dfd690de2c373f55efe13", "score": "0.55238783", "text": "public function monthly($value) {\n return $this->setProperty('monthly', $value);\n }", "title": "" }, { "docid": "325e2cd15d096816f4b8f6588b14ac87", "score": "0.5517913", "text": "public function plusMonths(int $months): LocalDate\n {\n $month = $this->month + $months - 1;\n\n $yearDiff = Math::floorDiv($month, 12);\n $month = Math::floorMod($month, 12) + 1;\n\n $year = $this->year + $yearDiff;\n\n return $this->resolvePreviousValid($year, $month, $this->day);\n }", "title": "" }, { "docid": "020c85d937c2aa33335ea0f549e379a6", "score": "0.5496873", "text": "public function setMonth( $month )\n\t{\n\t\t$seconds = ( 1 <= $month ) && ( 12 >= $month ) ? $month : 0;\n\t\t\n\t\tlist( $y, $m, $d, $h, $m, $s ) = explode( '/', date( 'Y/m/d/H/i/s', $this->timestamp ) );\n\t\t\n\t\t$m = $month;\n\t\t\n\t\treturn new RPC_Date( mktime( $h, $m, $s, $m, $d, $y ), 'U' );\n\t}", "title": "" }, { "docid": "d07f2b1dff789a0f641cee56ec882122", "score": "0.5491685", "text": "public function subMonth(\n $value = \"1\"\n )\n {\n }", "title": "" }, { "docid": "4530901f28708db8f0ce7761c608de45", "score": "0.54816276", "text": "public function set_month( $month, $year=NULL)\r\n\t{\r\n\t\tif($year == NULL)\r\n\t\t\t$year = date('Y') ;\r\n\t\t$this->length = date('t', mktime(0,0,0,$month,1,$year)) ;\r\n\t\t\r\n\t\t// clear prior day entries\r\n\t\t$this->days = array_fill(1,$this->length,NULL) ;\t\t\r\n\t\t\r\n\t\tfor($i=1; $i<=$this->length; $i++)\r\n\t\t{\r\n\t\t\t$day = new Day() ;\r\n\t\t\t$day->set_timestamp( mktime(0,0,0,$month,$i,$year) ) ;\r\n\t\t\t$this->days[$i] = $day ;\r\n\t\t}\r\n\t\t\r\n\t\t// Direct Access\r\n\t\t$this->firstDay = &$this->days[1] ;\r\n\t\t$this->lastDay = &$this->days[$this->length] ;\r\n\t}", "title": "" }, { "docid": "d8ec8dd8563a6052243370a29dd2ceeb", "score": "0.5454039", "text": "public function months(int $x)\n {\n $startDay = intval($this->dateTime->format('j'));\n $this->dateTime->modify(\n sprintf('+%s month', abs($x))\n );\n $endDay = intval($this->dateTime->format('j'));\n\n if ($startDay !== $endDay) {\n $this->dateTime->modify('last day of last month');\n }\n\n return $this->dateTime;\n }", "title": "" }, { "docid": "35a1d7064b3aecea46753368dbe35ede", "score": "0.54525787", "text": "public function toMonth()\n\t{\n\t\tif ($this->isMin()) {\n\t\t\treturn new Date_Time($this);\n\t\t}\n\t\treturn new Date_Time($this->format('Y-m'));\n\t}", "title": "" }, { "docid": "6a380ca80e855218ad4882c0685b06f7", "score": "0.5450979", "text": "function charity_is_hope_post_calendar_get_next_month($next, $opt) {\n\t\t$posts_types = array();\n\t\tif (!empty($opt['posts_types']) && is_array($opt['posts_types'])) {\n\t\t\tforeach ($opt['posts_types'] as $post_type) {\n\t\t\t\tif (empty($next['done']) || !in_array($post_type, $next['done']))\n\t\t\t\t\t$posts_types[] = $post_type;\n\t\t\t}\n\t\t}\n\t\tif (!empty($posts_types)) {\n\t\t\t$args = array(\n\t\t\t\t'post_type' => $posts_types,\n\t\t\t\t'post_status' => current_user_can('read_private_pages') && current_user_can('read_private_posts') ? array('publish', 'private') : 'publish',\n\t\t\t\t'posts_per_page' => 1,\n\t\t\t\t'ignore_sticky_posts' => true,\n\t\t\t\t'orderby' => 'post_date',\n\t\t\t\t'order' => 'asc',\n\t\t\t\t'date_query' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'after' => array(\n\t\t\t\t\t\t\t'year' => $opt['year'],\n\t\t\t\t\t\t\t'month' => $opt['month']\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\tif (in_array('post', $posts_types)) {\n\t\t\t\t$ex = charity_is_hope_get_theme_option('exclude_cats');\n\t\t\t\tif (!empty($ex))\n\t\t\t\t\t$args['category__not_in'] = explode(',', $ex);\n\t\t\t}\n\t\t\t$q = new WP_Query($args);\n\t\t\t$month = $year = 0;\n\t\t\tif ($q->have_posts()) {\n\t\t\t\twhile ($q->have_posts()) { $q->the_post();\n\t\t\t\t\t$year = get_the_date('Y');\n\t\t\t\t\t$month = get_the_date('m');\n\t\t\t\t}\n\t\t\t\twp_reset_postdata();\n\t\t\t}\n\t\t\tif (empty($next) || ($year+$month > 0 && ($next['year']+$next['month']==0 || ($next['year']).($next['month']) > ($year).($month)))) {\n\t\t\t\t$next['year'] = $year;\n\t\t\t\t$next['month'] = $month;\n\t\t\t}\n\t\t\tif (empty($next['done'])) $next['done'] = array();\n\t\t\t$next['done'] = array_merge($next['done'], $posts_types);\n\t\t}\n\t\treturn $next;\n\t}", "title": "" }, { "docid": "8dbef01d95f60a4d52c5cd07b4e1261e", "score": "0.54150265", "text": "private function getThisMonth() {\r\n $start = new \\DateTime('now', $this->timezone);\r\n $start->setTime(0, 0, 0);\r\n $end = new \\DateTime('now', $this->timezone);\r\n $offset = $end->format('j');\r\n $interval = new \\DateInterval('P'.($offset-1).'D');\r\n $start->sub($interval);\r\n return $this->getEntryByRange($start, $end);\r\n }", "title": "" }, { "docid": "0dcad9f3778fa5a57a9a622b74549b85", "score": "0.53975123", "text": "public function getMonth(): stdClass;", "title": "" }, { "docid": "a5ba736e1e1a8764cc15c972b6fa613a", "score": "0.53957045", "text": "protected function calculateOffset()\n {\n $month = ($this->offset > 0) ? $this->month + $this->offset : $this->month;\n if ($month < 1) {\n $this->month = $month + 12;\n $this->year--;\n } elseif ($month > 12) {\n $this->month = $month - 12;\n $this->year++;\n } else {\n $this->month = $month;\n }\n }", "title": "" }, { "docid": "c463417343a439914d4521bf75d090d3", "score": "0.53863215", "text": "public function reportUserMonth();", "title": "" }, { "docid": "749f574e56e6895dbc37c7eda92a68b9", "score": "0.5381927", "text": "public function addWithoutOverflow(DateInterval $interval): DateTime\n {\n $clone = clone $this;\n $this->add($interval);\n\n if ($interval->hasPredictableDayIteration() &&\n $this->format('d') !== $clone->format('d')\n ) {\n // We've overflowed months, wind it back.\n $this->modify('last day of last month');\n }\n\n return $this;\n }", "title": "" }, { "docid": "6d7d8c1f0f87e44eaf5e7962220cb2cb", "score": "0.53647166", "text": "function adjustDate($month, $year)\n {\n $a = array(); \n $a[0] = intval($month);\n $a[1] = $year;\n \n while ($a[0] > 12)\n {\n $a[0] -= 12;\n $a[1]++;\n }\n \n while ($a[0] <= 0)\n {\n $a[0] += 12;\n $a[1]--;\n }\n \n return $a;\n }", "title": "" }, { "docid": "9a5355b3d5afc20be5c7038df94824dc", "score": "0.5361287", "text": "public function badConstant()\n {\n Month::Invalid();\n }", "title": "" }, { "docid": "1d1758f20bcb05b34b453f815783c3fd", "score": "0.534408", "text": "public function endOfNextMonth() {\n return $this->startOfNextMonth()->endOfMonth();\n }", "title": "" }, { "docid": "a0c805e55bf8cee680bc46fb96aa7c35", "score": "0.5320884", "text": "public static function firstDayOfNextMonth()\n {\n return self::fromCallable(function (Temporal $temporal) {\n return $temporal->with(ChronoField::DAY_OF_MONTH(), 1)->plus(1, ChronoUnit::MONTHS());\n });\n }", "title": "" }, { "docid": "887c00605b6161829fd92289868ccbb0", "score": "0.5306295", "text": "public function monthly()\n {\n return $this->cron('0 0 1 * *');\n }", "title": "" }, { "docid": "7039ad1cb6ed00191da5241326b157ef", "score": "0.5295352", "text": "public function monthly()\n {\n return $this->cron('0 0 1 * * *');\n }", "title": "" }, { "docid": "078cb0a0531c7fcbba98a468e9084548", "score": "0.5269151", "text": "public function withMonth(int $month): LocalDate\n {\n if ($month === $this->month) {\n return $this;\n }\n\n Field\\MonthOfYear::check($month);\n\n return $this->resolvePreviousValid($this->year, $month, $this->day);\n }", "title": "" }, { "docid": "a2bcc1dd43770ccd481023a185988096", "score": "0.52477676", "text": "public function setDates($month, $year);", "title": "" }, { "docid": "4bd702b9f8325fa265981eb258f4d072", "score": "0.523034", "text": "public function eoMonth(): EoMonthRequestBuilder {\n return new EoMonthRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "title": "" }, { "docid": "96988e11d9a32dcf82231761f60ebf57", "score": "0.52236444", "text": "function addMonthsToDate($months, $dateCovert) {\n $date = date_create($dateCovert);\n date_add($date, date_interval_create_from_date_string($months . ' months'));\n return date_format($date, 'Y-m-d');\n}", "title": "" }, { "docid": "e7a30d55d22af2f30cddc312963a6271", "score": "0.52027565", "text": "public function getMonthWidget()\n {\n return new MonthWidget($this->options);\n }", "title": "" }, { "docid": "f2b883950387169139dd9bbd0287e588", "score": "0.5198559", "text": "public static function addMonth($months, $date)\n {\n $result = new DateTime($date->format('Y-m-d'));\n $result->modify('last day of +' . $months . ' month');\n\n if ($date->format('d') > $result->format('d')) {\n $interval = $date->diff($result);\n return $date->add($interval);\n } else {\n $interval = new DateInterval('P' . $months . 'M');\n return $date->add($interval);\n }\n }", "title": "" }, { "docid": "aae6cfb56c57a0c77785ef025ea6941e", "score": "0.5188875", "text": "public function createMonthsBudget()\n {\n $currentMonth = Carbon::now()->month;\n $currentYear = Carbon::now()->year;\n\n for ($i = 0; $i <= config('budgeck.aheadness'); ++$i) {\n $budget = Budget::where('account_budget_id', $this->id)\n ->where('year', $currentYear)\n ->where('month', $currentMonth)\n ->withTrashed()\n ->get();\n\n if ($budget->isEmpty()) {\n $budget = new Budget();\n $budget->title = $this->title;\n $budget->description = $this->description;\n $budget->amount = $this->amount;\n $budget->year = $currentYear;\n $budget->month = $currentMonth;\n $budget->closed = false;\n $budget->account_budget_id = $this->id;\n $budget->account_id = $this->account_id;\n $budget->default_category_id = $this->default_category_id;\n $budget->save();\n }\n\n $currentMonth++;\n if ($currentMonth > 12) {\n $currentYear++;\n $currentMonth = 1;\n }\n }\n }", "title": "" }, { "docid": "2df707d396727e325941b433e43fa1cf", "score": "0.51713794", "text": "static function getLastMonth() {\n\n $aux = getMesAtual();\n\n if ($aux == 1) {\n $aux = 12;\n } else {\n $aux--;\n }\n\n return $aux;\n\n }", "title": "" }, { "docid": "c59d4ba6929e4084987d593a051dca11", "score": "0.5171035", "text": "public function byMonth($value)\n {\n $this->setProperty('byMonth', $value);\n return $this;\n }", "title": "" }, { "docid": "2373f72d09a6c6f403efcf81411d1fe2", "score": "0.51619154", "text": "public function subMonthsNoOverflow(\n $value\n )\n {\n }", "title": "" }, { "docid": "112940af8208b5a93d9a0180ba702070", "score": "0.5159153", "text": "public static function month()\n {\n return date(\"F\", self::monthTimestamp(rand(1, 12)));\n }", "title": "" }, { "docid": "0e0850ade02782373494f0ed7b0c18fe", "score": "0.5155672", "text": "public function setMonth($value)\n {\n if (!array_key_exists('month', $this->fieldsModified)) {\n $this->fieldsModified['month'] = $this->data['fields']['month'];\n } elseif ($value === $this->fieldsModified['month']) {\n unset($this->fieldsModified['month']);\n }\n\n $this->data['fields']['month'] = $value;\n }", "title": "" }, { "docid": "d492f1c8937a125c328ba323ae603a1b", "score": "0.51542306", "text": "public static function addMissingMonths($arr) {\r\n \r\n for ($i = 1; $i <= 12; $i++) {\r\n \r\n if (!array_key_exists($i, $arr)) {\r\n $arr[$i] = \"0\";\r\n }\r\n \r\n }\r\n ksort($arr);\r\n \r\n $newArr = [];\r\n foreach ($arr as $a) {\r\n $newArr[] = $a;\r\n }\r\n \r\n return $newArr;\r\n }", "title": "" }, { "docid": "8aef46ce48ccb2b82b4975af5e6b086f", "score": "0.5130878", "text": "public function monthly_transaction()\n {\n \n\n\n }", "title": "" }, { "docid": "b05c146618db0e58e94cb3ed92261428", "score": "0.51290756", "text": "public function filterByMonth($month = null, $year = null, array $options = ['tz' => null]) {\n $tz = new DateTimeZone(array_key_exists('tz', $options) ? $options['tz'] : 'America/Belem');\n // $month validation\n if ($month !== null && (!is_numeric($month) || intval($month) < 0 || intval($month) > 11)) {\n return $this;\n }\n // $year validation\n if ($year !== null && (!is_numeric($year) || intval($year) < 1970 || intval($year) > 2100)) {\n return $this;\n }\n $now = new Datetime('now', $tz);\n $m = $month !== null ? intval($month) : intval($now->format('m'));\n $y = $year !== null ? intval($year) : intval($now->format('YYYY'));\n $strM = str_pad((string)$m, 2, '0', STR_PAD_LEFT);\n $strMin = implode('-', array($y, $strM, '01'));\n $min = Datetime::createFromFormat('Y-m-d', $strMin, $tz);\n $min->setTime(0, 0, 0); // para garantir inicio\n $lastDay = $min->format('t');\n $max = Datetime::createFromFormat('Y-m-d', implode('-', array($y, $strM, $lastDay)), $tz);\n $max->setTime(23, 59, 59); // para garantir último segundo do dia\n return $this->filterByDatetime(['min' => $min, 'max' => $max]);\n }", "title": "" }, { "docid": "8aa7fb6cb495924aff2f49a3b26a5e10", "score": "0.5125074", "text": "public function plus_month(Request $request, Task $task)\n\t{\n\t\t\t\n\t\t$now = new DateTime();\n\t\t$deadline = $now->add(new DateInterval('P1M'))->format('Y-m-d');\n\t\t$task->deadline = $deadline;\n\t\t$task->save();\n\t\t\t\n\t\t$request->session()->flash('alert-success', 'Deadline of task was successful changed to next month!');\n\t\t$page = $request->session()->get('page');\n\t\t\t\n\t\treturn redirect('/tasks?page=' . $page);\n\t}", "title": "" }, { "docid": "3f646b182cd2158e4d0360094be81398", "score": "0.5123869", "text": "public function subMonths(\n $value\n )\n {\n }", "title": "" }, { "docid": "fd7ab39fc9a120a567813a3cfc8a4caf", "score": "0.50992113", "text": "public function hasStartMonth(){\n return $this->_has(5);\n }", "title": "" }, { "docid": "5d233b12e1dcf5baf85088058b5a5ddc", "score": "0.5095077", "text": "public function endOfPreviousMonth() {\n return $this->startOfMonth()->modify('-1 second');\n }", "title": "" }, { "docid": "50b498c7c7cb0999bbb69b0c20a1b1c2", "score": "0.50881994", "text": "function create_month($month, $year)\n{\n\tglobal $phpcdb, $phpc_cal, $phpcid;\n\n\t$weeks = weeks_in_month($month, $year);\n\n\t$first_day = 1 - day_of_week($month, 1, $year);\n\t$from_stamp = mktime(0, 0, 0, $month, $first_day, $year);\n\n\t$last_day = $weeks * 7 - day_of_week($month, 1, $year);\n\t$to_stamp = mktime(0, 0, 0, $month, $last_day, $year);\n\n\t$days_events = get_events($from_stamp, $to_stamp);\n\t$week_list = array();\n\tfor($week_of_month = 1; $week_of_month <= $weeks; $week_of_month++) {\n\t\t// We could be showing a week from the previous or next year\n\t\t$days = ($week_of_month - 1) * 7;\n\t\t$start_stamp = strtotime(\"+$days day\", $from_stamp);\n\t\t$week_list[] = create_week($start_stamp, $year, $days_events);\n\t}\n\n\treturn $week_list;\n}", "title": "" }, { "docid": "8e1825600efe0b390fa1953a29fc6fff", "score": "0.5084484", "text": "function updateMonthsInLeads($bean, $event, $arguments) {\n\t\tglobal $current_user; \n\t\tglobal $timedate;\n\t\t\n\t\t$related_lead_id = $bean->leads_dot10_addresses_1leads_ida;\n\t\t\n\t\t$lead_bean = BeanFactory::getBean(\"Leads\");\n\t\t$lead_bean->retrieve($related_lead_id);\n\t\t$lead_bean->load_relationship(\"leads_dot10_addresses_1\");\n $relatedAddresses = $lead_bean->leads_dot10_addresses_1->getBeans();\n\t\t\n\t\t$totalMonths = 0;\n\t\tforeach ($relatedAddresses as $address) {\n\t\t\tif(!($address->current_address_c) && (!empty($address->dotb_resident_since_c) && !empty($address->dotb_resident_till_c))){\n\t\t\t\t$since = $address->dotb_resident_since_c;\n\t\t\t\t$till = $address->dotb_resident_till_c;\n\t\t\t\t\n\t\t\t\t$days = floor((abs(strtotime($till) - strtotime($since))) / 86400);\n\t\t\t\t$months = floor($days / 30);\n\t\t\t\t$totalMonths += $months;\n\t\t\t}\n\t\t}\n\t\t\n\t\t$lead_update_query = \"UPDATE leads_cstm SET address_months_c='\".$totalMonths.\"' WHERE id_c='\".$related_lead_id.\"'\";\n\t\t// $GLOBALS['log']->fatal(\"Leads query: \" . $lead_update_query);\n\t\t$GLOBALS['db']->query($lead_update_query);\n }", "title": "" }, { "docid": "bd2a8404dbab3f0441e5e2526014d30e", "score": "0.50843567", "text": "public function byMonth($month) {\n $criteria = new CDbCriteria();\n $criteria->compare('MONTH(created)', $month);\n $this->getDbCriteria()->mergeWith($criteria);\n\n return $this;\n }", "title": "" }, { "docid": "0fb9775a1e0be2719d42f4abbab768d2", "score": "0.50811696", "text": "public function test_init_currentMonth()\n\t{\n\t\t$siteTimezone = 'UTC+10';\n\t\t$timestamp = Piwik_Date::factory('now', $siteTimezone)->getTimestamp();\n\t\t$dateLabel = date('Y-m-d', $timestamp);\n\n\t\t$archiveProcessing = $this->createArchiveProcessing('month', $dateLabel, $siteTimezone);\n\n\t\t// min finished timestamp considered when looking at archive timestamp\n\t\t$dateMinArchived = Piwik_Date::factory($dateLabel)->setTimezone($siteTimezone)->getTimestamp();\n\t\t$minTimestamp = $archiveProcessing->getMinTimeArchivedProcessed();\n\t\t$this->assertEqual($minTimestamp, $dateMinArchived, Piwik_Date::factory($minTimestamp)->getDatetime() . \" != \" . Piwik_Date::factory($dateMinArchived)->getDatetime());\n\t\t$this->assertTrue($archiveProcessing->isArchiveTemporary());\n\t}", "title": "" }, { "docid": "20205330de7c9e8b3040d25146dc9a33", "score": "0.50801426", "text": "private function checkEndYear()\n {\n if ($this->month == 13) {\n $this->year += 1;\n $this->month = 1;\n }\n }", "title": "" }, { "docid": "9e7c11fdb751523a41d00a1dfd80fa2c", "score": "0.50669163", "text": "public function endOfPreviousMonth()\n {\n $month = $this->month === static::JANUARY ? static::DECEMBER : $this->month - 1;\n $year = $month === static::DECEMBER ? $this->year - 1 : $this->year;\n $day = $this->getLastDayOfMonth($month);\n\n return new static($year, $month, $day);\n }", "title": "" }, { "docid": "08e67bff358bc0d9abe91bf491e13be7", "score": "0.50654215", "text": "public function startOfMonth() {\n return $this->startOfDay()->setDate(\n $this->format(\"Y\"), $this->format(\"m\"), 1\n );\n }", "title": "" }, { "docid": "825dfa0742c931563bf4c9a952eed44a", "score": "0.506344", "text": "public function getMonth(){\treturn $this->retrieve(sfTime::MONTH);\t\t}", "title": "" }, { "docid": "0b8acf3a81292fe2d179b5adab48712e", "score": "0.50622416", "text": "public static function getNextMonth() {\n\t\t$begin = date('Y-m', strtotime('next month')).'-01 00:00:00';\n\t\t$year = substr($begin, 0, 4);\n\t\t$month = substr($begin, 5, 2);\n\t\t$days = cal_days_in_month(CAL_GREGORIAN, $month, $year);\n\t\t$end = $year.'-'.$month.'-'.$days.' 23:59:59';\n\t\treturn array('begin' => $begin, 'end' => $end);\n\t}", "title": "" }, { "docid": "a48de9d4963021ce1cf1d2c164afd0fc", "score": "0.5047883", "text": "public function addQty($num)\n {\n parent::addQty($num);\n\n $this->setExpiration(new \\DateTime('now '.$this->getQty().' month'));\n }", "title": "" }, { "docid": "73d439617f8633bfc4602ffbc33618b5", "score": "0.50471175", "text": "public function dontSeeDateIsNextMonth($date) {\n return $this->scenario->runStep(new \\Codeception\\Step\\Assertion('dontSeeDateIsNextMonth', func_get_args()));\n }", "title": "" }, { "docid": "ed423de6819c15e24b003ddfa0ab27b7", "score": "0.50460535", "text": "public function setMonth($mon)\n {\n $mon = in_array((int) $mon, range(1, 12)) ? (int) $mon : 1;\n return $this->setProperty('mon', $mon);\n }", "title": "" }, { "docid": "eb111f2c3405c53d2e7b6c4247afa757", "score": "0.50410926", "text": "public function month($value)\n {\n $this->monthValue = $this->parseValue('month', (string)$value);\n\n return $this;\n }", "title": "" }, { "docid": "cde99c791cb290a05bc2c0ed94883207", "score": "0.5034572", "text": "public function __construct ($month, $year, $format = \"M Y\") {\n\t\t$modified_format = 'd '.$format.' H:i:s';\n\t\t$modified_date = '01 '.$month.' '.$year . ' 00:00:00';\n\t\t$this->setStartEnd($modified_date, $modified_format);\n\t\t$this->setCalendarWeeks();\n\t\t$this->setDefaultTemplates();\n\t}", "title": "" }, { "docid": "59047a66db21feb556a4ad4736664efd", "score": "0.50279886", "text": "public function setExpiryMonth($value)\r\n {\r\n $value = (string) ($value < 10 ? '0' . $value : $value);\r\n $this->setData('ExpiryMonth', $value);\r\n return $this;\r\n }", "title": "" }, { "docid": "306b4589dd7dd77f997bfc61ada8912b", "score": "0.50186616", "text": "public function testGetMonths()\n {\n $year = new Year(2015);\n\n $months = $this->calendar->getMonths($year);\n\n $this->assertCount(12, $months, 'There must be 12 months in a year.');\n\n $monthNo = 1;\n foreach ($months as $month) {\n $this->assertEquals($monthNo, $month->value(), 'Month value is incorrect.');\n\n $this->assertEquals($year, $month->getYear(), 'The month is from the wrong year');\n\n $monthNo++;\n }\n }", "title": "" }, { "docid": "064bac264fb39a0d554c6677e1a38e98", "score": "0.5014979", "text": "public function run()\n {\n for ($m = 1; $m <= 12; $m++) {\n $month = date('F', mktime(0, 0, 0, $m, 1, date('Y')));\n // echo $month. '<br>';\n\n month::create([\n 'month' => $month,\n ]);\n }\n }", "title": "" }, { "docid": "3776a6ae51dc70cd7d0a3932d3387c71", "score": "0.5000033", "text": "function setStartMonth($month) {\n $this->startMonth = $month;\n }", "title": "" }, { "docid": "694acd7decd1f480886c8a76742f345b", "score": "0.49924886", "text": "function setStartMonth($month)\n {\n $this->startMonth = $month;\n }", "title": "" }, { "docid": "bb1bf795d179f8efd76bd8bc4a397525", "score": "0.49735844", "text": "public function testGetDayWithWrongMonthValue()\n {\n $requestedDay = 13;\n\n $month = $this->calendar->getMonth(1999, 3);\n\n $day = new Day(new Month(new Year(2000), 1), $requestedDay);\n\n $this->dayProvider\n ->expects($this->once())\n ->method('createDay')\n ->with($this->equalTo($month), $this->equalTo($requestedDay))\n ->will($this->returnValue($day));\n\n $this->calendar->getDay($month, $requestedDay);\n }", "title": "" }, { "docid": "0d4d2de082db0b5e237776ea91e07d49", "score": "0.4971049", "text": "private function appointmentForCurrentMonth($dayNeeded)\n {\n date_default_timezone_set(\"America/Costa_Rica\");//timezone a utilizar en las citas\n $daysArray = array(0 => 'Monday' , 1 => 'Tuesday' , 2 => 'Wednesday' ,\n 3 => 'Thursday' , 4 => 'Friday' , 5 => 'Saturday' ,\n 6 => 'Sunday' );\n $nameOfDay = date('l', time()); //nombre del dia \n $numberOfMonth = date('m',time()); //numero del mes\n $year = date('Y',time()); //numero de año\n $numberOfDay = date('j',time()); //indice del dia\n $numberOfDaysByMonth = date('t', mktime(0, 0, 0, $numberOfMonth, 1, $year)); //numero de dias por mes\n $indexByDay = array_search($nameOfDay, $daysArray); //indice del dia \n $indexByDayNeeded = array_search($dayNeeded, $daysArray); //indice del dia necesario\n $daysForThisMonth = array();// array con dias posibles de citas\n if($indexByDay >= $indexByDayNeeded) { //ejemplo estamos miercoles cita para lunes\n $dayToStart = ($numberOfDay += 7 ) - ($indexByDay - $indexByDayNeeded); \n }\n else {//ejemplo estamos lunes cita para miercoles\n $dayToStart = ($numberOfDay) + ($indexByDayNeeded - $indexByDay);\n }\n $stringDate = $numberOfMonth . \"-\" . $dayToStart . \"-\" . $year;//concatenando la fecha\n \n if ($dayToStart <= $numberOfDaysByMonth) { // mientras sea menor que la cantidad de dias en el mes\n $daysForThisMonth = array($stringDate); //inserta el primer item\n while ($dayToStart <= $numberOfDaysByMonth) { //mientras sea menor que la cantidad de dias del mes, hace el ciclo\n $dayToStart += 7;//28-05-2015 \n $stringDate = $numberOfMonth . \"-\" . $dayToStart . \"-\" . $year;//concatenando la fecha\n if ($dayToStart <= $numberOfDaysByMonth) { //\n array_push($daysForThisMonth,$stringDate); //inserta $stringDate en $daysForThisMonth\n }\n }\n }\n return $daysForThisMonth;\n }", "title": "" }, { "docid": "38891d60c4328396e9889c80f7acde30", "score": "0.49702454", "text": "public function getMonth(){\r\n return $this->format('m');\r\n }", "title": "" }, { "docid": "ec21d70f02f4de4777f4b377c64401a4", "score": "0.4968707", "text": "public function minusMonths(int $months): LocalDate\n {\n return $this->plusMonths(-$months);\n }", "title": "" }, { "docid": "ba3e8a492b584ea246c21d35f6f7759e", "score": "0.49672294", "text": "public function getMonth($zeropad = FALSE) {\n $pad = ($zeropad) ? \"n\" : \"m\";\n return date($pad, $this->unixtime);\n }", "title": "" }, { "docid": "7ca0ff1f6df6f98f03a9ee540beb16fb", "score": "0.49663055", "text": "public function cantSeeDateIsNextMonth($date) {\n return $this->scenario->runStep(new \\Codeception\\Step\\ConditionalAssertion('dontSeeDateIsNextMonth', func_get_args()));\n }", "title": "" }, { "docid": "c393aca11c08632e20abd5986dc2c9fc", "score": "0.49614576", "text": "private function _daysInMonth($month=null,$year=null){\n \n if(null==($year))\n $year = $this->currentYear; \n \n if(null==($month))\n $month = $this->currentMonth;\n \n return date('t',strtotime($year.'-'.$month.'-01'));\n }", "title": "" }, { "docid": "1b4c6bb92a2a72d4a5abd43ce2138030", "score": "0.49554136", "text": "public function handleNextMonth()\n {\n\t\t$this->month++;\n\t\tif ($this->month == 13) {\n\t\t\t$this->month = 1;\n\t\t\t$this->year++;\n\t\t}\t\t\n\t\t$this->presenter->redirect('this');\n }", "title": "" } ]
de4d14a2005c82192fd8f6bc50e7f44d
Metodo per gestire l'input dell'utente.
[ { "docid": "35bbd3d97754fa3ee128c6493e573065", "score": "0.0", "text": "public function handleInput(&$request) {\n\n // creo il descrittore della vista\n $vd = new ViewDescriptor();\n\n\n // imposto la pagina\n $vd->setPagina($request['page']);\n\n // imposto il token per impersonare un utente (nel lo stia facendo)\n $this->setImpToken($vd, $request);\n\n // gestion dei comandi\n // tutte le variabili che vengono create senza essere utilizzate \n // direttamente in questo switch, sono quelle che vengono poi lette\n // dalla vista, ed utilizzano le classi del modello\n\n if (!$this->loggedIn()) {\n // utente non autenticato, rimando alla home\n\n $this->showLoginPage($vd);\n } else {\n // utente autenticato\n $user = UserFactory::instance()->cercaUtentePerId(\n $_SESSION[BaseController::user], $_SESSION[BaseController::role]);\n\n\n // verifico quale sia la sottopagina della categoria\n // Docente da servire ed imposto il descrittore \n // della vista per caricare i \"pezzi\" delle pagine corretti\n // tutte le variabili che vengono create senza essere utilizzate \n // direttamente in questo switch, sono quelle che vengono poi lette\n // dalla vista, ed utilizzano le classi del modello\n if (isset($request[\"subpage\"])) {\n switch ($request[\"subpage\"]) {\n\n // modifica dei dati anagrafici\n case 'anagrafica':\n $vd->setSottoPagina('anagrafica');\n break;\n \n // visualizzazione degli esami sostenuti\n case 'ordini':\n $ordini = OrdineFactory::instance()->ordiniPerCliente($user);\n $vd->setSottoPagina('ordini');\n break;\n \n case 'dettaglio_ordine':\n\n $ordini = OrdineFactory::instance()->ordiniPerCliente($user);\n \n $dettagli_ordine = DettagliOrdineFactory::instance()->dettagliOrdinePerOrdine($request['ordine']);\n $vd->setSottoPagina('dettaglio_ordine');\n break;\n \n case 'crea_ordine':\n //$ordini = OrdineFactory::instance()->ordiniPerCliente($user);\n $pizzerie = PizzeriaFactory::instance()->elencoPizzerie();\n //$pizze = PizzaFactory::instance()->elencoPizze();\n $vd->setSottoPagina('crea_ordine');\n $this->showHomeUtente($vd);\n break;\n case 'crea_ordine_items':\n //$ordini = OrdineFactory::instance()->ordiniPerCliente($user);\n //$pizzerie = PizzeriaFactory::instance()->elencoPizzerie();\n $pizze = PizzaFactory::instance()->elencoPizze();\n $id_ultimo_ordine=$request['ordine_id'];\n \n $dettagli_ordine = DettagliOrdineFactory::instance()->dettagliOrdinePerOrdine($id_ultimo_ordine);\n\n $vd->setSottoPagina('crea_ordine_items');\n // $this->showHomeUtente($vd);\n break;\n \n \n default:\n\n $vd->setSottoPagina('home');\n break;\n }\n }\n\n\n\n // gestione dei comandi inviati dall'utente\n if (isset($request[\"cmd\"])) {\n // abbiamo ricevuto un comando\n switch ($request[\"cmd\"]) {\n\n // logout\n case 'logout':\n $this->logout($vd);\n break;\n\n // aggiornamento indirizzo\n case 'indirizzo':\n\n // in questo array inserisco i messaggi di \n // cio' che non viene validato\n $msg = array();\n $this->aggiornaIndirizzo($user, $request, $msg);\n $this->creaFeedbackUtente($msg, $vd, \"Indirizzo aggiornato\");\n $this->showHomeUtente($vd);\n break;\n\n // cambio email\n case 'email':\n // in questo array inserisco i messaggi di \n // cio' che non viene validato\n $msg = array();\n $this->aggiornaEmail($user, $request, $msg);\n $this->creaFeedbackUtente($msg, $vd, \"Email aggiornata\");\n $this->showHomeUtente($vd);\n break;\n\n // cambio password\n case 'password':\n // in questo array inserisco i messaggi di \n // cio' che non viene validato\n $msg = array();\n $this->aggiornaPassword($user, $request, $msg);\n $this->creaFeedbackUtente($msg, $vd, \"Password aggiornata\");\n $this->showHomeStudente($vd);\n break;\n case 'nuovo_ordine':\n \n \n $msg = array();\n $nuovo = new Ordine();\n // $nuovo->setId(-1);\n $this->updateOrdine($nuovo, $request, $msg);\n \n if (count($msg) == 0) {\n \n $id_ultimo_ordine = OrdineFactory::instance()->nuovo($nuovo, $request );\n $pizze = PizzaFactory::instance()->elencoPizze();\n $dettagli_ordine = DettagliOrdineFactory::instance()->dettagliOrdinePerOrdine($id_ultimo_ordine);\n //$this->creaFeedbackUtente($msg, $vd, \"Ordine creato\");\n $vd->setSottoPagina('crea_ordine_items');\n \n } \n \n $this->creaFeedbackUtente($msg, $vd, \"Ordine creato\");\n $this->showHomeUtente($vd);\n break;\n \n case 'aggiungi_item':\n $msg = array();\n if ($request['qta']<1 || (!isset($request['qta']))){\n $msg[] = '<li>qta inserita non valida</li>';\n //$this->showHomeUtente($vd);\n } else {\n $nuovo_dettaglio = new DettagliOrdine();\n DettagliOrdineFactory::instance()->nuovo($nuovo_dettaglio, $request);\n $pizze = PizzaFactory::instance()->elencoPizze();\n $dettagli_ordine = DettagliOrdineFactory::instance()->dettagliOrdinePerOrdine($request['ordine_id']);\n $id_ultimo_ordine=$request['ordine_id'];\n \n $this->showHomeUtente($vd);\n \n }\n $this->creaFeedbackUtente($msg, $vd, \"Ordine aggiornato\");\n $this->showHomeUtente($vd);\n \n break;\n case 'elimina_item':\n $nuovo_dettaglio = new DettagliOrdine();\n DettagliOrdineFactory::instance()->eliminaItem($request);\n $pizze = PizzaFactory::instance()->elencoPizze();\n $dettagli_ordine = DettagliOrdineFactory::instance()->dettagliOrdinePerOrdine($id_ultimo_ordine);\n \n \n $vd->setSottoPagina('crea_ordine_items');\n $this->showHomeUtente($vd);\n \n break;\n case 'salva_ordine':\n /*$mysqli = Db::getInstance()->connectDb();\n $mysqli->commit();\n $mysqli->autocommit(true);\n $mysqli->close();*/\n $this->creaFeedbackUtente($msg, $vd, \"Ordine salvato\");\n $vd->setSottoPagina('default');\n $this->showHomeUtente($vd);\n break;\n /*\n registrare i dettagli \n sulla tabella ordini_clienti\n */\n break;\n case 'annulla_ordine':\n $request['ordine_id'];\n OrdineFactory::instance()->eliminaOrdine($request);\n $this->creaFeedbackUtente($msg, $vd, \"Ordine Eliminato\");\n $vd->setSottoPagina('default');\n $this->showHomeUtente($vd);\n break;\n /*\n registrare i dettagli \n sulla tabella ordini_clienti\n */\n break;\n\n default : $this->showLoginPage($vd);\n }\n } else {\n // nessun comando\n $user = UserFactory::instance()->cercaUtentePerId(\n $_SESSION[BaseController::user], $_SESSION[BaseController::role]);\n $this->showHomeUtente($vd);\n }\n }\n\n // includo la vista\n require basename(__DIR__) . '/../view/master.php';\n }", "title": "" } ]
[ { "docid": "9248e6579a2ef680aeb3751131a0f23c", "score": "0.71102744", "text": "public function input();", "title": "" }, { "docid": "306b5cc93bf19bf703c92789b4ad6da2", "score": "0.69279104", "text": "public function getInput() {}", "title": "" }, { "docid": "6c8663dc1c2a49c3cd797de4e3fdc297", "score": "0.6922", "text": "public function getInput();", "title": "" }, { "docid": "6c8663dc1c2a49c3cd797de4e3fdc297", "score": "0.6922", "text": "public function getInput();", "title": "" }, { "docid": "6c8663dc1c2a49c3cd797de4e3fdc297", "score": "0.6922", "text": "public function getInput();", "title": "" }, { "docid": "6c8663dc1c2a49c3cd797de4e3fdc297", "score": "0.6922", "text": "public function getInput();", "title": "" }, { "docid": "6c8663dc1c2a49c3cd797de4e3fdc297", "score": "0.6922", "text": "public function getInput();", "title": "" }, { "docid": "004de3f60946a9f5597e0aa5d2fff596", "score": "0.6732137", "text": "public function get_input()\n {\n }", "title": "" }, { "docid": "ba9684595b7c500c43502f6768e1e4ca", "score": "0.6640211", "text": "public function getInput(): string;", "title": "" }, { "docid": "7d998651641e7ab5d857053be99ec93d", "score": "0.6499436", "text": "public function definirInput($input){\n \n $this->_input = $input;\n }", "title": "" }, { "docid": "896cba95788036f515e4851d38a75127", "score": "0.6493288", "text": "private function takeInput(): void\n {\n $this->email = $this->ask('Email');\n $this->developerName = $this->ask('Name');\n $this->password = $this->secret('Password');\n }", "title": "" }, { "docid": "fae233394bca73365d0ac0061b970877", "score": "0.6470334", "text": "public function getInput() {\n\t\t\t}", "title": "" }, { "docid": "5bbeb27e54f945af0b2d4ed1f35967e8", "score": "0.6433965", "text": "public function getInput() {\r\n\t\t\t}", "title": "" }, { "docid": "13704f01a0fcd74956b8474c196f75d3", "score": "0.6409952", "text": "public function getInput(){\n\t\t//TODO\n\t}", "title": "" }, { "docid": "cb75f50783039fdb166dcbc1132155f1", "score": "0.64098376", "text": "protected static function _inputField(){ }", "title": "" }, { "docid": "7a340db61698eea4a05b27266f5bb603", "score": "0.63204974", "text": "public function getInputValue();", "title": "" }, { "docid": "2828db049d1dc968604e48e300c946d2", "score": "0.6176797", "text": "public function getInput() : Input;", "title": "" }, { "docid": "7d2a2b0e09a4bf5fa3c18ed6726d571c", "score": "0.61358976", "text": "public function getInput() {\n\t\t$this->getInput();\n\t\tif($this->breakAt === ($this->stage = static::STAGE_GETINPUT)) {\n\t\t\treturn;\n\t\t}\n\t\tself::verifyInput();\n\t}", "title": "" }, { "docid": "1bfc869b1068ae98c81a84e2bc06a41f", "score": "0.60850245", "text": "private function get_input()\n\t{\n\n\t\t//TODO: check if input medium is cli or api and process accordingly\n\t\t return trim(fgets(STDIN));\n\t}", "title": "" }, { "docid": "4ce7b57af6ed08504ffdcead0d21e44f", "score": "0.604311", "text": "public function input($param = '')\n {\n \n \n \n }", "title": "" }, { "docid": "4ac025ebbffeab44d9b9d80736a20a49", "score": "0.59914094", "text": "protected function OnInput (){\r\r }", "title": "" }, { "docid": "3c257781f2e2c5bd2aed82d2f961cc76", "score": "0.5962394", "text": "protected function getUserInputForUpdate() {}", "title": "" }, { "docid": "13e4a33876a85770b805d503bc4fa91a", "score": "0.59620917", "text": "public function manualUniversityInput() {\n\t\techo \"\\nPlease input information about the university.\\n\";\n\t\tforeach (array(\"university_title\" => \"university title\", \"country\" => \"country\", \"province_state\" => \"province or state\", \"type\" => \"type of institution\") as $key => $value) {\n\t\t\t$redo = true;\n\t\t\tif ($this->university->$key) {\n\t\t\t\techo \"\\nCurrent \" . $value . \": \" . $this->university->$key . \"\\n\";\n\t\t\t\t$redo = UserInterface::questionYN(\"Change?\");\n\t\t\t}\n\t\t\tif ($redo) {\n\t\t\t\t$this->university->$key = UserInterface::askForInput(\"\", \"Please enter $value:\\n\");\n\t\t\t}\n\t\t}\n\t\techo \"Resulting \" . $this->university;\n\t\tif (!UserInterface::questionYN(\"Is this the correct university information?\")) {\n\t\t\techo \"\\nResetting university information.\\n\\n\";\n\t\t\t$this->manualUniversityInput();\n\t\t}\n\t}", "title": "" }, { "docid": "1e4f818d0d5c1ca129f7e9685141c69e", "score": "0.59371537", "text": "public function getInput($newinput) {\n $this->input = $newinput ;\n }", "title": "" }, { "docid": "6fdf05f9a8c7079ed21d3c57d7ec6bbd", "score": "0.58418095", "text": "public function storeNewTaluk($input);", "title": "" }, { "docid": "1f49bc6f4177192c02863dcb513782c8", "score": "0.5837106", "text": "function GetUser($input) {\n}", "title": "" }, { "docid": "5c216d3d5ce336c0bf35a0ed592beed1", "score": "0.5820115", "text": "public function set_input ($input) {\n $this->input = $input;\n }", "title": "" }, { "docid": "317217096adcf7ab765635ee8b16396f", "score": "0.57817423", "text": "function readInputData() {\n\t\t$this->readUserVars(array('type', 'label'));\n\t}", "title": "" }, { "docid": "654e6487dd06d72d5189afa5e27299a2", "score": "0.5760856", "text": "public function cli_keyboardInput() {}", "title": "" }, { "docid": "f41e23cfb541e7ea7c19c2ae5fc4a1d7", "score": "0.5736023", "text": "public function Input()\n\t{\n\t\t$title = \"Unesi korisničko ime i password\";\n\t\trequire_once 'view/login_new.php';\n\t}", "title": "" }, { "docid": "861c6ff3804d84e500166cf8f70f5dc5", "score": "0.5716501", "text": "function cargarNombreFuncion()\n{\n echo \"\\nIngrese el Nombre de la Funcion :\";\n $nombreFuncion = trim(fgets(STDIN));\n return $nombreFuncion;\n}", "title": "" }, { "docid": "749265c216cde126d5b8b7c210748d4f", "score": "0.5714252", "text": "abstract protected function _build_input();", "title": "" }, { "docid": "4f595172e5c94b5fce8f8b7f51bb2d30", "score": "0.570776", "text": "function input2valoreInput($valoreIn)\n\t\t{\n\t\tif ($valoreIn === \"__wamodulo_valore_non_ritornato__\")\n\t\t\t{\n\t\t\t$this->inputNonRitornato = true;\n\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t// ci salviamo i valori dell'array perche' poi ci serviranno per il salvataggio del file\n\t\t// e altrimenti vanno persi\n\t\t$this->input = $valoreIn;\n\t\tif ($valoreIn['elimina'])\n\t\t\treturn $this->valoreInput = '';\n\t\tif ($valoreIn['error'] != 0 && $valoreIn['error'] != 4)\n\t\t\treturn $this->valoreInput = false;\n\t\tif (!$valoreIn['name'])\n\t\t\t// se non vogliona l'eliminazione del file e il nome e' vuoto allora il valore rimane quello di partenza\n\t\t\treturn $this->valoreInput = $this->valore;\n\t\t\t\n\t\treturn $this->valoreInput = $valoreIn['name'];\n\t\t}", "title": "" }, { "docid": "9d83c9262195dd96d737d276a4b9d91b", "score": "0.57055193", "text": "function cleanInput();", "title": "" }, { "docid": "4b5cc2e12b5e0fcc30143abae9ede915", "score": "0.5698365", "text": "public function input_field() {\n\n $this->_output = $this->_build_input();\n\n return $this->_output;\n }", "title": "" }, { "docid": "299b7a104adbcb0d825f287c7bf5b975", "score": "0.56549585", "text": "public function get_raw_input($name, $default);", "title": "" }, { "docid": "58247755d3f3cb2ef77ce4a7d34329d6", "score": "0.56531864", "text": "private function getInputTutor($request, $apprenant){\n// return $inputParent;\n }", "title": "" }, { "docid": "5eb592f69abbc84375a29dda25026889", "score": "0.5635632", "text": "function readInputData() {\r\n\t\t$this->readUserVars(array(\r\n\t\t\t'decision',\r\n\t\t\t'votesApprove',\r\n\t\t\t'votesNotApprove',\r\n\t\t\t'votesAbstain',\r\n\t\t\t'unanimous',\r\n\t\t\t'minorityReason',\r\n\t\t\t'chairReview',\r\n\t\t\t'approvaDate'\r\n\t\t\t));\r\n\t}", "title": "" }, { "docid": "8ce01295a39363828e97e8b550da201a", "score": "0.5618757", "text": "function readInputData() {\n\t\t$this->readUserVars(array(\n\t\t\t'name',\n\t\t\t'entryKey',\n\t\t\t'isPhysicalFormat',\n\t\t));\n\t}", "title": "" }, { "docid": "ecc40fa3e09ddb96d018869171828343", "score": "0.561346", "text": "public function input($key = null);", "title": "" }, { "docid": "2382d6b2ea80d2ee7f2002e60edb913a", "score": "0.56103915", "text": "private function getInput(): Input {\n return $this->input;\n }", "title": "" }, { "docid": "4d3839043955477755c57a36f7aa4193", "score": "0.56031257", "text": "function boton_tipo($tipo,$nombre,$valor,$funcion=\"\") {\n echo \"<input type='$tipo' name='$nombre' id='$nombre' value='$valor' $funcion>\";\n }", "title": "" }, { "docid": "cba6d1d86982371de8fcf419773c0c3e", "score": "0.5569884", "text": "function force_input()\n{\n\tif ($_SESSION['intentos'] >= 0) {\n\t\t//intentos positivos\n\t\tif (2 > $_SESSION['intentos']) {\n\t\t\tverifi_user();\n\t\t} else {\n\t\t\t$_SESSION['mensaje'] = '¡Atención! Tu cuenta ha sido bloqueada en este ordenador por superar el máximo permitido de 3 intentos, llámenos al 2615450939 para reactivar tu cuenta.';\n\t\t\theader(\"Location: /login.php\");\n\t\t}\n\t} else {\n\t\t$_SESSION['mensaje'] = 'Sesión negativa invalida ';\n\t\theader(\"Location: login.php\");\n\t}\n}", "title": "" }, { "docid": "b362491a1d97d63365e5710523ba0038", "score": "0.5563433", "text": "public function get_input() {\n return $this->input;\n }", "title": "" }, { "docid": "a4d060880832ed685f3c7d16c775fb39", "score": "0.5554954", "text": "function test_input ($data) {\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n //RITORNA L'INPUT \"RIPULITO\"\n return $data;\n }", "title": "" }, { "docid": "30b03cb02af8889b7b9464acd98334d8", "score": "0.55428064", "text": "function _callback_add_usuario() {\n $label = '<p>Ingrese solo caracteres alfanuméricos, es decir letras y números.<br><span style=\"color:red\">No se permiten espacios en blanco, guiones, vocales acentuadas, ñs...</span></p>';\n return $label.'<input id=\"field-usuario\" name=\"usuario\" type=\"text\" maxlength=\"60\"></input>';\n\n }", "title": "" }, { "docid": "4059e54e955f128c39f5b9cbe6840b23", "score": "0.5526872", "text": "function set_value_from_input() {\n\t\t$this->set_value($_REQUEST[$this->name]);\n\t}", "title": "" }, { "docid": "88ba16da176d10a164ee62a384d9c063", "score": "0.55248505", "text": "function getInput($text)\n{\n echo $text.': ';\n return trim(fgets(STDIN));\n}", "title": "" }, { "docid": "6e6f0daa6818139b818d7b9b55bfcab2", "score": "0.55217534", "text": "function get_input($upper = FALSE) {\n \n if ($upper) { \n return (trim(fgets(STDIN)));\n } else {\n return (strtoupper($upper));\n }\n}", "title": "" }, { "docid": "2db0289ea58d2d7c297eeda29f203073", "score": "0.55191314", "text": "protected function getInput()\n {\n return '';\n }", "title": "" }, { "docid": "94a858b5d0d0bc38f663a26cb62f6494", "score": "0.5516479", "text": "private function getUserInput() {\n\t\tprint(\"Would you like lemon with your tea (y/n)? \");\n\n\t\t$fr = fopen(\"php://stdin\", \"r\");\n\t\t$answer = rtrim(fgets($fr, 255));\n\t\tfclose($fr);\n\n\t\treturn $answer;\n\t}", "title": "" }, { "docid": "0369a58f9f3226b2b1394426bed63e6f", "score": "0.5516207", "text": "function get_input($upper = FALSE) \n{\n $user = trim(fgets(STDIN));\n return $upper ? strtoupper($user) : $user;\n}", "title": "" }, { "docid": "4e932ee10f834b903f6cd0b19c540632", "score": "0.55101186", "text": "function cargarPrecioFuncion()\n{\n echo \"ingrese el Precio la Funcion :\";\n $precioFuncion = trim(fgets(STDIN));\n return $precioFuncion;\n}", "title": "" }, { "docid": "56b95d0365415f21c903b50117db397c", "score": "0.5507859", "text": "function ingresarString( $texto){\n echo (\"Ingrese \".$texto . \"\\n\");\n $valor = trim(fgets(STDIN));\n return $valor;\n}", "title": "" }, { "docid": "33f8a763b6f82f63ef51608a5ab510d4", "score": "0.5498637", "text": "function input()\n {\n\t\trequire( \"mysql.php\" );\n $sql = \"INSERT INTO `team2GuestDB`.`GuestBook` (`id`, `name`, `mail`, `msg`,`timestamp`) VALUES (NULL, :name, :mail, :msg, CURRENT_TIMESTAMP);\";\n $dbh->query($sql);\n $stm = $dbh->prepare($sql);\n $stm->execute(array( ':name' => $_POST['msg_name'], ':mail' => $_POST['msg_mail'], 'msg' => $_POST['msg_content']));\n\t\t\n\t\t$_POST['msg_name']=\" \"; $_POST['msg_mail']=\" \"; unset($_POST['msg_content']);\n }", "title": "" }, { "docid": "c73b0eaf0d4d0c5371c75000c6b6acf7", "score": "0.5496826", "text": "public function inputs(){\n if($_SERVER['REQUEST_METHOD'] == \"POST\"){\n foreach($_POST as $name => $value){\n $this->inputs[$name] = $this->sanInput($value);\n }\n }\n }", "title": "" }, { "docid": "e51dccfebaa474e9962ff917360ee2d5", "score": "0.5474988", "text": "function readInputData() {\n\t\t$this->readUserVars(array('message'));\n\n\t}", "title": "" }, { "docid": "cef183632a3ec683f011913fe8c20b91", "score": "0.5468892", "text": "public function inputXVentanaY( $x, $y ) {\n\n $comando=$this->comandos1[DaoControl::$INPUT];\n $comando=$this->procesarComando($comando, array(\"input\"=>$x,\"ventana\"=>$y));\n $respuesta=$this->enviarComando($comando);\nif(strpos($respuesta,\"Out\")!=0){\n\n\techo \"el generador multiventanas a producido el siguiente error: \".$respuesta.\"\\n\";\n}\n\n }", "title": "" }, { "docid": "7ec120178bce2bac35430454aa43b27e", "score": "0.54629904", "text": "private static function _input( $args ) {\r\n\t\t$args = wp_parse_args( $args, array(\r\n\t\t\t'value' => '',\r\n\t\t\t'desc_pos' => 'after',\r\n\t\t\t'extra' => array( 'class' => 'regular-text' ),\r\n\t\t) );\r\n\r\n\t\tforeach ( $args as $key => &$val )\r\n\t\t\t$$key = &$val;\r\n\t\tunset( $val );\r\n\r\n\t\tif ( !isset( $extra['id'] ) && !is_array( $name ) && false === strpos( $name, '[' ) )\r\n\t\t\t$extra['id'] = $name;\r\n\r\n\t\treturn self::_input_gen( $args );\r\n\t}", "title": "" }, { "docid": "f0b593ea27d9814b099b70a8d1803e7f", "score": "0.54628235", "text": "function readInputData() {\n\t\t$this->_metadataFormImplem->readInputData();\n\t}", "title": "" }, { "docid": "ef9fb49957a79de100f1688034d0d4f4", "score": "0.5460366", "text": "public function Input2()\n\t{\n\t\t$title = \"Korisničko ime mora biti do 20 slova\";\n\t\trequire_once 'view/login_index.php';\n\t}", "title": "" }, { "docid": "b86352fd65737fc12d57304bdf218c35", "score": "0.54489017", "text": "protected function getInput()\n\t{\t\n\t\tif (isset($this->form->jevdata[$this->name][\"users\"])){\n\t\t\treturn $this->form->jevdata[$this->name][\"users\"];\n\t\t}\n\t\telse {\n\t\t\treturn \"\";\n\t\t}\n\t}", "title": "" }, { "docid": "185a82eca7873d2cd7b65a3748be252f", "score": "0.54427606", "text": "function readInputData() {\n\t\t$this->readUserVars(array('title'));\n\t}", "title": "" }, { "docid": "7f7b91065689ae749fbf753a83447020", "score": "0.5440108", "text": "function input($key = null){\n return ;\n}", "title": "" }, { "docid": "e0d60ecdbb8ef7bcc2d072a78e16ba70", "score": "0.54356563", "text": "public function getInput()\n\t{\n\t\tif(!isset(Request::$Input[$this->editableId]))\n\t\t{\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\t$value = Request::$Input[$this->editableId];\n\n\t\ttry\n\t\t{\n\t\t\t$value = $this->rewriteInput($value);\n\t\t\t$this->checkInput($value);\n\t\t\t$this->generalChecks($value);\n\t\t\t$value = $this->rewriteInputPost($value);\n\t\t}\n\t\t\n\t\tcatch(Editable_Exception $Exception)\n\t\t{\n\t\t\t$this->feedbackError();\t\t\n\t\t\t// rethrow\n\t\t\tthrow $Exception;\n\t\t}\n\t\t\n\t\treturn $value;\n\t}", "title": "" }, { "docid": "33627d5ae776bc3c4686315a58146608", "score": "0.5432555", "text": "public static function resetInput(){ }", "title": "" }, { "docid": "28efed12f632d7e503acece3c77cb4be", "score": "0.54261607", "text": "function readInputData() {\n\t\t$this->readUserVars(array(\n\t\t\t'note'\n\t\t));\n\n\t}", "title": "" }, { "docid": "64fb299fa4cfbbdd9a6c1cbe7c98d75e", "score": "0.5418562", "text": "public function zz_setting_input_callback() {\n\t\techo '<pre>';\n\t\tprint_r( func_get_args() );\n\t\techo '</pre>';\n\t}", "title": "" }, { "docid": "3a467f114e6b828091fa84a93a3536d2", "score": "0.5406055", "text": "function get_input($upper = FALSE) \n{\n $result = trim(fgets(STDIN));\n \n if ($upper) \n {\n return strtoupper($result);\n } \n else \n {\n return $result;\n }\n}", "title": "" }, { "docid": "b10fa90b1d6a4c01f649b2f9d0ef0312", "score": "0.5398705", "text": "public function input() {\n\t\treturn $this->input;\n\t}", "title": "" }, { "docid": "b9b71f382b0603871b319950c8d1145e", "score": "0.5382554", "text": "public function setInput($input) {\n\t\t$this->_input = $input;\n\t\t$this->_counter = 0;\n\t\t$this->token = null;\n\t\t$this->value = null;\n\t\t$this->line = 1;\n\t}", "title": "" }, { "docid": "af2a8560fdef91af2b113fcec613a3bc", "score": "0.53809935", "text": "public function get_value($input)\n {\n }", "title": "" }, { "docid": "660a8981017a36167d3c5c491c7c89a9", "score": "0.5375948", "text": "public function handleInput($data)\n {\n }", "title": "" }, { "docid": "85ba67a7ffeaa458b5932250df7253ba", "score": "0.53754866", "text": "protected function retrieveInput()\n\t{\n\t\t// The sort column is the column which has been\n\t\t// selected to be sorting.\n\t\t$this->sortColumn = \\Input::get('sort_column');\n\n\t\t// The sort order is the order in which the sort\n\t\t// column should be sorted. (asc/desc)\n\t\t$this->sortOrder = \\Input::get('sort_order');\n\t}", "title": "" }, { "docid": "2e5763b5cfa89c1f838ee403ab350c68", "score": "0.5356024", "text": "function getUsersInput() {\n $p1 = readline(\"Player 1 : \");\n $p2 = getPlayer2();\n return array(\"Player1\" => $p1, \"Player2\" => $p2);\n}", "title": "" }, { "docid": "3c74edabb44ac7d64ec6c62bffd1082a", "score": "0.5351464", "text": "public function signup($input);", "title": "" }, { "docid": "6b826920e7b21facda2e39c668b3a479", "score": "0.5350254", "text": "function modificarTeatro($idTeatro)\n{\n $unTeatro = new Teatro();\n $unTeatro->buscar($idTeatro);\n $nombre=$unTeatro->getNombre();\n $direccion=$unTeatro->getDireccion();\n $exito = false;\n $aux = 0;\n\n echo \"Desea modificar el nombre del teatro? (s/n):\\n\";\n $resp = trim(fgets(STDIN));\n\n if($resp == 's') {\n echo \"Ingrese el nuevo nombre del teatro seleccionado: \\n\";\n $nombre = trim(fgets(STDIN));\n $aux++;\n }\n $resp = \"n\";\n echo \"Desea modificar la direccion del teatro? (s/n):\\n\";\n $resp = trim(fgets(STDIN));\n\n if($resp == 's'){\n echo \"Ingrese la nueva direccion del teatro seleccionado: \\n\";\n $direccion = trim(fgets(STDIN));\n $aux++;\n }\n if($aux != 0){\n $exito =ABM_Teatro::modificarTeatro($idTeatro, $nombre, $direccion);\n\n if($exito){\n echo \"Datos del teatro modificados con exito!!!!\\n\";\n }\n }\n}", "title": "" }, { "docid": "ee624050d41185d329e546a14cd6f41d", "score": "0.53481454", "text": "abstract public function renderInput(): string;", "title": "" }, { "docid": "ee624050d41185d329e546a14cd6f41d", "score": "0.53481454", "text": "abstract public function renderInput(): string;", "title": "" }, { "docid": "b19ea70ad20ff9165728158f390b495d", "score": "0.53481275", "text": "public function autoCleanInput();", "title": "" }, { "docid": "3369f7538e74169dd4be07bf1b0dc8c2", "score": "0.5344656", "text": "public function handleInput(&$request) {\n // creo il descrittore della vista\n $vd = new ViewDescriptor();\n // imposto la pagina\n $vd->setPagina($request['page']);\n // imposto il token per impersonare un utente\n $this->setImpToken($vd, $request);\n // gestion dei comandi\n // tutte le variabili che vengono create senza essere utilizzate \n // direttamente in questo switch, sono quelle che vengono poi lette\n // dalla vista, ed utilizzano le classi del modello\n if (isset($request[\"cmd\"])) {\n // abbiamo ricevuto un comando\n switch ($request[\"cmd\"]) {\n //login\n case 'login':\n $this->showLoginPage($vd);\n $username = isset($request['username']) ? $request['username'] : '';\n $password = isset($request['password']) ? $request['password'] : '';\n $this->login($vd, $username, $password);\n // questa variabile viene poi utilizzata dalla vista\n if ($this->loggedIn())\n $user = UserFactory::instance()->cercaUtentePerId($_SESSION[self::user], $_SESSION[self::role]);\n break;\n default : $this->showLoginPage();\n }\n } else {\n if ($this->loggedIn()) {\n //utente autenticato\n // questa variabile viene poi utilizzata dalla vista\n $user = UserFactory::instance()->cercaUtentePerId($_SESSION[self::user], $_SESSION[self::role]);\n $this->showHomeUtente($vd);\n } else {\n // utente non autenticato\n $this->showLoginPage($vd);\n }\n }\n\n // richiamo la vista\n require basename(__DIR__) . '/../view/master.php';\n }", "title": "" }, { "docid": "806bbd5618b4dd23fba3d659a3a6fab4", "score": "0.5341992", "text": "function functionPlayer($userInput) {\n //echo \"please choose between the following: R for Rock, P for Paper or S for Scissors. Press X to quit\";\n //$player=stream_get_line(STDIN, 100, PHP_EOL);\n switch ($userInput) {\n case \"R\":\n $userInput = \"Rock\";\n break;\n case \"P\":\n $userInput = \"Paper\";\n break;\n case \"S\":\n $userInput = \"Scissors\";\n break;\n }\n return $userInput;\n}", "title": "" }, { "docid": "24a0c9e27938a0fe991e55ccdb16b3b5", "score": "0.5338065", "text": "public function makeInputButton() {}", "title": "" }, { "docid": "497721b0f7c232ffb21f3c71f645c0ca", "score": "0.5331766", "text": "public function getUserInput() {\n\t\t$this->handle = fopen(\"php://stdin\", \"r\");\t\t\n\t\treturn $this->line = trim(fgets($this->handle));\n\t}", "title": "" }, { "docid": "8e3f765f09eb25840c3eb974962f965d", "score": "0.53275007", "text": "protected function resolveInput()\n\t{\n\t\treturn $this->defaultInput ?: self::$globalInput;\n\t}", "title": "" }, { "docid": "576b9ad96c56645b72dbe760e3a498aa", "score": "0.53262883", "text": "public function testInput(): void\n {\n self::assertTrue(\\Valkyrja\\input() instanceof Input);\n }", "title": "" }, { "docid": "0d4d600662513edf7f3eb1ba785f37da", "score": "0.5319937", "text": "public function input()\n {\n if (func_num_args() > 0) {\n $this->_input = func_get_args();\n }\n \n $this->_internals->notify('request_input');\n \n return $this->_input;\n }", "title": "" }, { "docid": "c95e6e52ed63c43c40374fdfdde0707c", "score": "0.5319365", "text": "function input_value(){\n\t\treturn $this->_value;\n\n\t}", "title": "" }, { "docid": "c95e6e52ed63c43c40374fdfdde0707c", "score": "0.5319365", "text": "function input_value(){\n\t\treturn $this->_value;\n\n\t}", "title": "" }, { "docid": "38ea290c772a23c6df88a21ce4031ab0", "score": "0.5316212", "text": "private function getInputFromConsole($input)\n {\n $this->commandInfo('字段格式请查看文档');\n $this->commandInfo('输入 \"exit\" 结束');\n\n $this->addPrimaryKey($input);\n\n while (true) {\n $fieldInputStr = $this->commandObj->ask('输入字段格式: (name html_type options)', '');\n\n if (empty($fieldInputStr) || $fieldInputStr == false || $fieldInputStr == 'exit') {\n break;\n }\n\n if (!GeneratorFieldsInputUtil::validateFieldInput($fieldInputStr)) {\n $this->commandError('错误的输入. 请重新输入');\n continue;\n }\n\n $validations = $this->commandObj->ask('输入验证规则: ', false);\n $validations = ($validations == false) ? '' : $validations;\n $this->fields[] = GeneratorFieldsInputUtil::processFieldInput(\n $fieldInputStr,\n $validations\n );\n }\n\n }", "title": "" }, { "docid": "acbe61a5836fc570d015be19c91a3aa6", "score": "0.53158563", "text": "protected function interact(InputInterface $input, OutputInterface $output) {\n\t\t$this->askArgument($input, $output, 'datasourcename', \"Enter the name of the datasource : \");\n\t\t$this->askArgument($input, $output, 'anotherg6kpath', \"Enter the installation directory of the other instance of G6K : \");\n\t\t$output->writeln(\"\");\n\t}", "title": "" }, { "docid": "55eae07c638a8d36ad76b5c189563cb4", "score": "0.53133017", "text": "public function __construct(Input $input) {\n $this->input= $input;\n }", "title": "" }, { "docid": "4b02f3d896c5d910fe64163aa2a2be89", "score": "0.530979", "text": "private static function _input_gen( $args ) {\r\n\t\textract( wp_parse_args( $args, array(\r\n\t\t\t'value' => NULL,\r\n\t\t\t'desc' => NULL,\r\n\t\t\t'extra' => array()\r\n\t\t) ) );\r\n\r\n\t\t$extra['name'] = self::$cur_name;\r\n\r\n\t\tif ( 'textarea' == $type ) {\r\n\t\t\t$input = html( 'textarea', $extra, esc_textarea( $value ) );\r\n\t\t} else {\r\n\t\t\t$extra['value'] = $value;\r\n\t\t\t$extra['type'] = $type;\r\n\t\t\t$input = html( 'input', $extra );\r\n\t\t}\r\n\r\n\t\treturn self::add_label( $input, $desc, $desc_pos );\r\n\t}", "title": "" }, { "docid": "2f91a9a89c5b88a2c98b907ab9641dbd", "score": "0.53005165", "text": "function prepareInputForAdd($input) {\n if (!isset($input['entities_id'])\n || ($input['entities_id'] < 0)) {\n\n Session::addMessageAfterRedirect(__('No selected element or badly defined operation'),\n false, ERROR);\n return false;\n }\n return parent::prepareInputForAdd($input);\n }", "title": "" }, { "docid": "4ab1bb5a34c7ae46fe36e74536c5dc9d", "score": "0.5282632", "text": "public function getInput()\n\t\t{\n\t\t\treturn $this->input ?: $this->input = new input\\Stdin;\n\t\t}", "title": "" }, { "docid": "6b67106d77da9bf9b1f7b80ca36a258d", "score": "0.5269393", "text": "function readInputData() {\n\t\t$this->readUserVars(\n\t\t\tarray(\n\t\t\t\t'authors',\n\t\t\t\t'deletedAuthors',\n\t\t\t\t'primaryContact',\n\t\t\t\t'title',\n\t\t\t\t'abstract',\n\t\t\t\t'discipline',\n\t\t\t\t'subjectClass',\n\t\t\t\t'subject',\n\t\t\t\t'coverageGeo',\n\t\t\t\t'coverageChron',\n\t\t\t\t'coverageSample',\n\t\t\t\t'type',\n\t\t\t\t'language',\n\t\t\t\t'sponsor',\n\t\t\t\t'citations'\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "993312492b2d6942dd9706cf4c0529b1", "score": "0.5268887", "text": "public function procInput($ar=NULL) {\n $this->preUpdateTasks($ar);\n\n $p=new XParam($ar, array('tplentry'=>$this->base,'_inputs'=>array(),'options'=>array()));\n $tplentry = $p->get('tplentry');\n $j=$p->get('_nojournal');\n $journal=empty($j);\n $moid=$p->get('fmoid','local');\n $nolog=$p->get('_nolog','local');\n $all=$p->get('_allfields');\n $fieldssec=$p->get('fieldssec','local');\n $delayed=$p->get('_delayed');\n if(!empty($delayed)) $delayed='LOW_PRIORITY ';\n else $delayed='';\n $options=$p->get('options');\n // Si option est un champ\n if(is_string($options)) $options=array();\n $unique=$p->get('_unique');\n $updateifexists = $p->get('_updateifexists');\n $unique_val = array();\n $unique_req = array();\n\n $insert = true;\n $jn='';\n // Nouvel oid puisqu'on cree une nouvelle data en langue par defaut\n $oid=$p->get('newoid'); // permet d'imposer le KOID\n if(!empty($oid) && empty($updateifexists)) {\n $cnt=countSelectQuery(\"select COUNT(KOID) from {$this->base} where KOID='$oid' limit 1\");\n if($cnt) {\n XLogs::notice('XDataSource::procInput', $oid.' already exist');\n return array('error'=>true,'message'=>$oid.' already exist');\n }\n }\n if(empty($oid)) $oid=$this->getNewOID($ar);\n else $this->checkOID($oid,$ar,'procInput');\n\n // traitement des langues\n $translatable = $this->getTranslatable();\n if(!$this->isTranslatable()) $lang=TZR_DEFAULT_LANG;\n elseif($translatable==3)\n $lang=XShell::getLangData($p->get('LANG_DATA'));\n else {\n $lang=XShell::getLangData($p->get('LANG_DATA'));\n if($lang!=TZR_DEFAULT_LANG) return array('error'=>true,'message'=>'Lang error');\n }\n\n $query = $jn.\"INSERT {$delayed}INTO \".$this->base.'(';\n $fields='KOID,LANG';\n $values=\"'$oid','\".$lang.\"'\";\n $nottorepeat=array('UPD');\n if($this->fieldExists('OWN') && !$p->get('OWN')) {\n $fields.=',OWN';\n $values.=\",'\".XUser::get_current_user_uid().\"'\";\n $nottorepeat[]='OWN';\n }\n if($this->fieldExists('CREAD')) {\n $fields.=',CREAD';\n $values.=\",'\".date('Y-m-d H:i:s').\"'\";\n $nottorepeat[]='CREAD';\n }\n if($this->fieldExists('PUBLISH') && !$p->is_set('PUBLISH')) {\n $fields.=',PUBLISH';\n $values.=\",'2'\";\n $nottorepeat[]='PUBLISH';\n }\n $inputs=$p->get('_inputs','local');\n $inputvalues=array();\n foreach($this->desc as $k => &$v) {\n if(!empty($fieldssec[$k]) && $fieldssec[$k]!='rw') continue;\n if(($p->is_set($k) || $p->is_set($k.'_HID') || !empty($all)) && !in_array($k, $nottorepeat)) {\n\t$value = $p->get($k);\n\t$value_hid = $p->get($k.'_HID');\n\t// traitement en post edit dans les cas simples\n\tif(!is_object($v)) XShell::quit(array('message'=>'XDataSource::procInput: '.$this->base.':'.$k.' is not a valid field'));\n $options[$k]['oid']=$oid;\n $options[$k][$k.'_HID']=$value_hid;\n $options[$k][$k.'_title']=$p->get($k.'_title');\n\t$options[$k]['fmoid']=$moid;\n $r1=$v->post_edit($value,$options[$k],$inputs);\n\t$inputs[$k]=$r1;\n\t$nvalue=$r1->raw;\n\t$fields .= ','.$k;\n\tif(!empty($unique) && in_array($k, $unique)){ \n\t $unique_req[]=\"$k like ?\";\n\t $unique_val[] = mb_trim($nvalue);\n\t}\n\t// cas ou on garde la valeur\n\t$value=$nvalue;\n\tif(is_array($value) && (count($value)>1)) {\n\t $finalval='||';\n\t foreach($value as $o1=>$o2)\n\t $finalval.=$o2.'||';\n\t $values.=\",'\".$finalval.\"'\";\n\t} elseif(is_array($value)) {\n\t list($o1,$o2)=each($value);\n\t $values.=',?';\n\t $inputvalues[]=$o2;\n\t} else {\n\t if(!empty($r1->forcenull)) {\n\t $values.=\",NULL\";\n\t } else {\n\t $values.=',?';\n\t $inputvalues[]=$value;\n\t }\n\t}\n }\n }\n $query.=$fields.') values ('.$values.')';\n // verification que l'enregistrement n'est pas existant dans le cas où on gère l'unicité\n if(!empty($unique) || !empty($updateifexists)) {\n if(!empty($unique) && !empty($unique_val)){\n\t$rs=preparedSelectQuery($unique_val,\"select * from {$this->base} where \".implode(' and ',$unique_req));\n }else $rs=selectQuery(\"select * from {$this->base} where KOID='$oid'\");\n if($rs && ($ors=$rs->fetch())) {\n\t$rs->closeCursor();\n\t$insert = false;\n\tif(!empty($updateifexists)) {\n\t $oid=$ors['KOID'];\n\t $ar['oid']=$oid;\n $ar['_langs'] = 'all';\n\t return $this->procEdit($ar);\n\t}\n }\n }\n if(!$insert) {\n XLogs::notice('XDataSource::procInput', $values.' rejeté');\n return array('error'=>true,'message'=>'Values not unique');\n }\n preparedUpdateQuery($query,$inputvalues,$journal);\n\n // Tag les metas des champs xfile\n $ar['oid']=$oid;\n $this->setFilesMeta($ar);\n\n // Propagation dans toutes les langues\n if($this->isTranslatable() && $this->getAutoTranslate()) {\n $xk=new Kernel;\n $xk->data_autoTranslate($oid);\n }\n\n // On met une ligne dans les logs pour dire qu'il y a eu modification de cet objet\n if($this->toLog() && empty($nolog)) XLogs::update('create',$oid);\n // Actions annexes\n $this->updateTasks($ar,$oid);\n\n // Préparation des retours de résultats\n $result=array();\n $result['oid']=$oid;\n $result['inputs']=$inputs;\n $result['message']=XLabels::getSysLabel('xdatasource','insert_ok');\n return XShell::toScreen1($tplentry, $result);\n }", "title": "" }, { "docid": "92db09a4d960a6099b8daf6d4a02316f", "score": "0.52640057", "text": "function input_nome_cb(){\n\t$configuracoes = get_option('PO_dados_registro');\n //Verifica se o indice PO_NOME dento do array tem valor, caso nao retorna string vazia.\n\t$PO_Nome = isset( $configuracoes['PO_Nome'] ) ? $configuracoes['PO_Nome'] : '';\n\n\techo '<input class=\"regular-text\" name=\"PO_dados_registro[PO_Nome]\" value=\"' . esc_attr($PO_Nome) . '\" type=\"text\"';\n}", "title": "" }, { "docid": "ee56334bef745a453f0d6320c9c1564f", "score": "0.5252241", "text": "public function __construct($input)\n {\n $this->input = $input;\n }", "title": "" }, { "docid": "ee56334bef745a453f0d6320c9c1564f", "score": "0.5252241", "text": "public function __construct($input)\n {\n $this->input = $input;\n }", "title": "" }, { "docid": "19ebd64602206ac4fdfae982abf751c8", "score": "0.5249579", "text": "public function __construct($input)\r\n {\r\n parent::__construct();\r\n $this->input = $input;\r\n $this->main();\r\n\r\n }", "title": "" } ]
9fed05366efa374ab4c6a38a6eb978c0
Filter the query on the phone column Example usage: $query>filterByPhone('fooValue'); // WHERE phone = 'fooValue' $query>filterByPhone('%fooValue%'); // WHERE phone LIKE '%fooValue%'
[ { "docid": "c148358f4b950b799885f4d2efcecd63", "score": "0.5211758", "text": "public function filterByPhone($phone = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($phone)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $phone)) {\n $phone = str_replace('*', '%', $phone);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(PrincipalArchivePeer::PHONE, $phone, $comparison);\n }", "title": "" } ]
[ { "docid": "aad6f7828d5106591d7fbcc80fc76ed4", "score": "0.6216982", "text": "public function findByPhone($phone);", "title": "" }, { "docid": "1b9a8ee19562ef15bf5937c62d28849d", "score": "0.61638147", "text": "public function filterByPhone($phone = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($phone)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $phone)) {\n $phone = str_replace('*', '%', $phone);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(CustomersPeer::PHONE, $phone, $comparison);\n }", "title": "" }, { "docid": "da16818f4afb84a7f7ac7446e197a364", "score": "0.60036296", "text": "public function searchUserByPhone($phone) {\n $criteria = new CDbCriteria;\n $criteria->select = 'rr_record_id, login, emailaddress, name';\n $criteria->condition = 'type = :type AND phone LIKE :phone';\n $criteria->params = array(':type' => 'client', ':phone' => '%'.$phone.'%');\n $criteria->with = 'credit_cards';\n\n $dataProvider=new CActiveDataProvider('users', array(\n 'criteria'=>$criteria,\n 'pagination'=> array(\n 'pageSize'=> self::PER_PAGE,\n 'pageVar' => 'search_page',\n 'params' => array(\n 'paging' => 1,\n 'query' => $phone,\n 's_type' => 'phone'\n ),\n )\n ));\n return $dataProvider;\n }", "title": "" }, { "docid": "689c865f14fccaa887c9714c65d2b294", "score": "0.5938703", "text": "public function filter($column, $value=NULL, $operator=\"=\") {\n \t if(is_string($column)) {\n \t //with a value passed in this confirms its a new method of filter \n \t if($value !== NULL) {\n \t //operator sniffing\n if(is_array($value))\n if(strpos($column, \"?\") === false) $operator = \"in\"; //no ? params so this is an old in check\n else $operator = \"raw\"; //otherwise its a raw operation, so substitue values\n \n $filter = array(\"name\"=>$column,\"operator\"=>$operator, \"value\"=>$value);\n if($operator == \"=\") $this->filters[$column] = $filter; //if its equal then overwrite the filter passed on col name\n else $this->filters[] = $filter;\n \t \n \t } else $this->filters[] = $column; //assume a raw query, with no parameters\n }else{ //if the column isn't a string, then we assume it's an array with multiple filter's passed in.\n foreach((array)$column as $old_column => $old_value) {\n $this->filter($old_column, $old_value);\n }\n }\n return $this;\n \t}", "title": "" }, { "docid": "9bc65fe8eafe921df34972d9b6d61ac9", "score": "0.5873788", "text": "public function filter(Builder $query, $value)\n {\n $query->where($this->fieldType->getColumnName(), 'LIKE', \"%{$value}%\");\n }", "title": "" }, { "docid": "a1b5ba78a23f23bdf02f23061753c58d", "score": "0.58157706", "text": "public function filterByPhone($phone = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($phone)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $phone)) {\n $phone = str_replace('*', '%', $phone);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(JobsPeer::PHONE, $phone, $comparison);\n }", "title": "" }, { "docid": "13192ca089e1cfd7c74bfd4ea5d2fc6e", "score": "0.57717437", "text": "public function getWhere($column, $value);", "title": "" }, { "docid": "2ac760d8f667ccc6dbd9014ff90f0402", "score": "0.56202424", "text": "public function where($field, $value, $wildcard = self::WILDCARD_NONE);", "title": "" }, { "docid": "fcbcf6944d00e41ec7340ec1d4989371", "score": "0.54696184", "text": "public function where_like($argument = null, $value = null);", "title": "" }, { "docid": "8fbf7d648d139de08a2d832a74536634", "score": "0.5450798", "text": "function where($column,$value,$operator='=',$condition='AND'){\n\n\t\t$this->pushWhere($column,$value,$condition,$operator);\n\n\t}", "title": "" }, { "docid": "5cc107289d10784ad5cffd0839ebd1b9", "score": "0.5400742", "text": "protected function getFilteredQuery(Builder $query)\n {\n if ($filterGsmPhone = request('filter_gsm_phone')) {\n $query->where('gsm_phone', 'LIKE', '%' . preg_replace('/\\s+/', '', $filterGsmPhone) . '%');\n }\n\n return $query;\n }", "title": "" }, { "docid": "35b0431ca89f16144066e53ecbf26393", "score": "0.5398682", "text": "public function filter($args = array()){\r\n\t\tif ( ! empty($args['nsp_customer']))\r\n\t\t{\r\n\t\t\t$this->db->like('shipping_service.nsp_customer',trim($args['nsp_customer']));\r\n\t\t}\r\n\r\n\t\tif ( !empty($args['phone_customer']))\r\n\t\t{\r\n\t\t $this->db\r\n\t\t\t ->like('shipping_service.phone_customer', trim($args['phone_customer']));\r\n\t\t}\r\n\t\t\r\n\t\tif( !empty($args['nsp_shipping']) ){\r\n\t\t\r\n\t\t\t$this->db\r\n\t\t\t\t ->like('shipping_service.nsp_shipping',trim($args['nsp_shipping']));\r\n\t\t}\r\n\t\t\r\n\t\tif( !empty($args['phone_shipping']) ){\r\n\t\t\r\n\t\t\t$this->db\r\n\t\t\t\t ->like('shipping_service.phone_shipping',trim($args['phone_shipping']));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "df5775af439ca4f720718a8294890c86", "score": "0.53557426", "text": "public function applyFilter($query, $value);", "title": "" }, { "docid": "3763be688112c1e68dc80230bdecd8ca", "score": "0.534294", "text": "public function where($field, $value) {\n\t$this->parseQuery->where($field, $value);\n }", "title": "" }, { "docid": "9a1e6231b7e53151bd1bb5ffe47b94eb", "score": "0.5339788", "text": "public function and_where_like($argument = null, $value = null);", "title": "" }, { "docid": "b009c5e6bd9e52b224785178b49a5315", "score": "0.53145754", "text": "public function filterByPhone($phone = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($phone)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(UserTableMap::COL_PHONE, $phone, $comparison);\n }", "title": "" }, { "docid": "05e4cbd25a6db8165a3b20f84d32bca1", "score": "0.530532", "text": "public function filterByContactPhone($contactPhone = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($contactPhone)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $contactPhone)) {\n $contactPhone = str_replace('*', '%', $contactPhone);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(ContactPeer::CONTACT_PHONE, $contactPhone, $comparison);\n }", "title": "" }, { "docid": "f12d2aca069c0ae202f12f46cd602c2b", "score": "0.5299924", "text": "public function findContactByPhone($phone){\n $parameters = http_build_query(array(\n 'filter' => array(\"PHONE\" => $phone),\n 'select' => array(\"*\")\n ));\n return $this->sendRequest('crm.contact.list.json', $parameters);\n }", "title": "" }, { "docid": "75c16ec26587a82d87578b6300d2749a", "score": "0.52812386", "text": "public function where($column, $value, $operator = '=')\n {\n }", "title": "" }, { "docid": "c93d90f497cfce27d26a740b82a90885", "score": "0.52722645", "text": "public function filter($value);", "title": "" }, { "docid": "c93d90f497cfce27d26a740b82a90885", "score": "0.52722645", "text": "public function filter($value);", "title": "" }, { "docid": "c93d90f497cfce27d26a740b82a90885", "score": "0.52722645", "text": "public function filter($value);", "title": "" }, { "docid": "c93d90f497cfce27d26a740b82a90885", "score": "0.52722645", "text": "public function filter($value);", "title": "" }, { "docid": "b00b99a11589ced7d84ba15c1abd2ddb", "score": "0.52717173", "text": "private function applyFilterQuery(Builder $query, Model $model, string $column, array $values, string $where = 'orWhere') {\n if (count($values) == 0) {\n $query = $this->nullQuery($query);\n } else if (method_exists($model, Str::camel($column) . 'Filterable')) {\n $query = call_user_func_array([$this, Str::camel($column) . 'Filterable'], [$query, $values]);\n } else if ($this->columnExists($model, $column)) {\n $tableColumn = $model->qualifyColumn($column);\n\n $query = $query->{$where}(function (Builder $query) use ($values, $model, $column, $tableColumn) {\n foreach ($values as $value) {\n if (in_array($column, $model->getDates())) {\n // Searching by date field\n // The search could be a boolean true/false, turn into where[Not]Null\n switch (Str::lower($value)) {\n case 'yes':\n case 'true':\n $query = $query->orWhereNotNull($tableColumn);\n break;\n case 'no':\n case 'false':\n $query = $query->orWhereNull($tableColumn);\n break;\n default:\n $query = $query->orWhereDate($tableColumn, '=', $value);\n break;\n }\n } else {\n switch (Str::lower($value)) {\n case 'yes':\n case 'true':\n $query = $query->orWhere($tableColumn, '=', true);\n break;\n case 'no':\n case 'false':\n $query = $query->orWhere($tableColumn, '=', false);\n break;\n default:\n $query = $query->orWhere($tableColumn, '=', $value);\n break;\n }\n }\n }\n });\n }\n\n return $query;\n }", "title": "" }, { "docid": "dcd357b28cdc6ed2822bcfe0dad9feb3", "score": "0.5265781", "text": "public function findWhere($column, $value);", "title": "" }, { "docid": "cf3f44ef1b74fec6cb4c0ffe94500982", "score": "0.52149224", "text": "public function where($column, $operator = null, $value = null, $boolean = 'and');", "title": "" }, { "docid": "b3a579a0d4e2a93e45c08b52fcbd528a", "score": "0.5209007", "text": "function filtering_phone($phone){\n // delete anything does not a number\n $phone=preg_replace('/[^0-9]/', '', $phone);\n // check if the number contain 9 digit\n if(strlen($phone)!=9){\n return false;\n }\n return $phone;\n}", "title": "" }, { "docid": "22c6abfdb4ff2508b0ba58c39dcba23a", "score": "0.51865906", "text": "public function filter($column, $operation = IDataSource::EQUAL, $value = NULL, $chainType = NULL)\n\t{\n\t\tif (is_array($operation)) {\n\t\t\tif ($chainType !== self::CHAIN_AND && $chainType !== self::CHAIN_OR) {\n\t\t\t\tthrow new \\InvalidArgumentException('Invalid chain operation type.');\n\t\t\t}\n\t\t\t$conds = array();\n\t\t\tforeach ($operation as $t) {\n\t\t\t\t$this->validateFilterOperation($t);\n\t\t\t\tif ($t === self::IS_NULL || $t === self::IS_NOT_NULL) {\n\t\t\t\t\t$conds[] = array('%n', $column, $t);\n\t\t\t\t} else {\n\t\t\t\t\t$modifier = is_double($value) ? dibi::FLOAT : dibi::TEXT;\n\t\t\t\t\tif ($operation === self::LIKE || $operation === self::NOT_LIKE) $value = DataSources\\Utils\\WildcardHelper::formatLikeStatementWildcards($value);\n\n\t\t\t\t\t$conds[] = array('%n', $column, $t, '%' . $modifier, $value);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($chainType === self::CHAIN_AND) {\n\t\t\t\tforeach ($conds as $cond) {\n\t\t\t\t\t$this->ds->where($cond);\n\t\t\t\t}\n\t\t\t} elseif ($chainType === self::CHAIN_OR) {\n\t\t\t\t$this->ds->where('%or', $conds);\n\t\t\t}\n\t\t} else {\n\t\t\t$this->validateFilterOperation($operation);\n\n\t\t\tif ($operation === self::IS_NULL || $operation === self::IS_NOT_NULL) {\n\t\t\t\t$this->ds->where('%n', $column, $operation);\n\t\t\t} else {\n\t\t\t\t$modifier = is_double($value) ? dibi::FLOAT : dibi::TEXT;\n\t\t\t\tif ($operation === self::LIKE || $operation === self::NOT_LIKE) $value = DataSources\\Utils\\WildcardHelper::formatLikeStatementWildcards($value);\n\n\t\t\t\t$this->ds->where('%n', $column, $operation, '%' . $modifier, $value);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "04dc6d5ae1916575bd890096702db48b", "score": "0.5182463", "text": "public function where($column, $value, $op='='){\n if($op==\"IN\"){\n $this->where[]=new NGQueryWhere(\"{$column} IN (?)\", $value);\n }else{\n $this->where[]=new NGQueryWhere(\"{$column}{$op}?\", $value);\n }\n \n\n return $this;\n }", "title": "" }, { "docid": "7724f2760dbb9ba1efce1ca6fc2a511f", "score": "0.51816964", "text": "public function like($column, $value)\n {\n return $this->where($column, 'LIKE', \"%$value%\");\n }", "title": "" }, { "docid": "51204d0740dcc0ace972d7c2c5a76792", "score": "0.5169023", "text": "function comb_query_where($data) {\n\t$query_where = \"\";\n\tif (is_array ( $data )) {\n\t\tforeach ( $data as $key => $value ) {\n\t\t\tif (! empty ( $value )) {\n\t\t\t\t$query_where .= \" and \" . get_real_column_name ( $key ) . \" like '%$value%' \";\n\t\t\t}\n\t\t}\n\t}\n\treturn $query_where;\n}", "title": "" }, { "docid": "806c9c0fd2ef9662ce2afca7d3e62076", "score": "0.51602346", "text": "abstract public function getFilterQuery();", "title": "" }, { "docid": "6a3ec3bc87385966cd6d7d658a01815f", "score": "0.5131593", "text": "public function setPhone($phone)\n {\n return $this->setParameter('phone', $phone);\n }", "title": "" }, { "docid": "5ca19486f95157f3106113238288f7bb", "score": "0.5122906", "text": "public function filter($value, $row = null);", "title": "" }, { "docid": "d78c34c969bfbf4ead5630d0aab0c392", "score": "0.51210123", "text": "function getCustomerByPhoneNumber($phoneNumber)\n\t{\n\t\treturn getOne(\"select customer_id from customers where customer_id = (select customer_id from phone_numbers where phone_number like '%\".substr($phoneNumber,-10).\"%')\");\n\t}", "title": "" }, { "docid": "d2dc163a277dae1630197b55ea620c6a", "score": "0.5113535", "text": "public function where(string $column, $value) : Collection;", "title": "" }, { "docid": "be9bc7cb3c50b27c3b159185b3639a2c", "score": "0.5109854", "text": "private static function andWhere($query, $field, $operator, $value = null)\n {\n switch($operator)\n {\n\n case \"equal\": return $query->where($field, '=', $value); //'string', 'number', 'datetime', 'boolean'\n case \"not_equal\": return $query->where($field, '<>', $value); //'string', 'number', 'datetime', 'boolean'\n case \"in\" :return $query->whereIn($field, explode(',',$value)); //'string', 'number', 'datetime'\n case \"not_in\": return $query->whereNotIn($field, explode(',',$value)); //'string', 'number', 'datetime'\n case \"less\": return $query->where($field, '<', $value); //'number', 'datetime'\n case \"less_or_equal\": return $query->where($field, '<=', $value); //'number', 'datetime'\n case \"greater\": return $query->where($field, '>', $value); //'number', 'datetime'\n case \"greater_or_equal\": $query->where($field, '>=', $value); //'number', 'datetime'\n case \"between\": return $query->whereBetween($field, $value); //'number', 'datetime'\n case \"not_between\": return $query->whereNotBetween($field, $value); //'number', 'datetime'\n case \"begins_with\": return $query->where($field, 'like', $value.\"%\"); //'string'\n case \"not_begins_with\": return $query->where($field, 'not like', $value.\"%\"); //'string'\n case \"contains\": return $query->where($field, 'like', \"%\".$value.\"%\"); //'string'\n case \"not_contains\": return $query->where($field, 'not like', \"%\".$value.\"%\"); //'string'\n case \"ends_with\": return $query->where($field, 'like', \"%\".$value); //'string'\n case \"not_ends_with\": return $query->where($field, 'not like', \"%\".$value); //'string'\n case \"is_empty\": return $query->where($field, 'like', ''); //'string'\n case \"is_not_empty\": return $query->where($field, 'not like', ''); //'string'\n case \"is_null\": return $query->whereNull($field); //'string', 'number', 'datetime', 'boolean'\n case \"is_not_null\": return $query->whereNotNull($field); //'string', 'number', 'datetime', 'boolean'\n }\n }", "title": "" }, { "docid": "69c3ae90f968a4995ae83804f6976d74", "score": "0.5092563", "text": "public function where() {\n \n $WhereCondition = NULL;\n \n foreach(func_get_args() as $key => $arg) {\n try{\n $strvalue = AblePolecat_Data_Primitive_Scalar_String::typeCast($arg);\n !isset($WhereCondition) ? $WhereCondition = array() : NULL;\n $WhereCondition[] = $strvalue;\n }\n catch (AblePolecat_Data_Exception $Exception) {\n throw new AblePolecat_QueryLanguage_Exception(\n sprintf(\"%s WHERE parameter must be scalar or implement __toString(). %s passed.\", \n get_class($this), \n AblePolecat_Data::getDataTypeName($arg)\n ), \n AblePolecat_Error::INVALID_TYPE_CAST\n );\n }\n }\n $this->setWhereCondition(implode(' ', $WhereCondition));\n return $this;\n }", "title": "" }, { "docid": "35c6bae670a679bb0535bdd5555484d7", "score": "0.50900567", "text": "public function filter($filter, $value = null) {\r\n\t\tif (is_array($filter)) {\r\n\t\t\tforeach ($filter as $f => $v) {\r\n\t\t\t\t$this->filter($f, $v);\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (!$value) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t$operator = null;\r\n\t\tif (is_string($value)) {\r\n\t\t\t$pattern = '/^([><=])*/';\r\n\t\t\tif (preg_match($pattern, $value, $matches)) {\r\n\t\t\t\tif (!empty($matches)) {\r\n\t\t\t\t\t$operator = $matches[0];\r\n\t\t\t\t\t$value = preg_replace($pattern, '', $value);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->where($filter, $value, $operator);\r\n\t}", "title": "" }, { "docid": "662bf9f5a1d9ee81c50c77591d34c6f3", "score": "0.509003", "text": "public function or_where_like($argument = null, $value = null);", "title": "" }, { "docid": "a0beca2235de1915d99a26002c0909a1", "score": "0.50894064", "text": "public static function setWhere () {\n if (!self::$where) {\n self::$where = 1;\n self::$query.= \"WHERE \";\n }\n }", "title": "" }, { "docid": "4e64d219d923ba68ad07475d05e9e6b3", "score": "0.5084921", "text": "protected function addGsmFilter(UserTableBuilder $builder)\n {\n $filter = new SearchFilter();\n $filter->setPlaceholder(trans('visiosoft.theme.defaultadmin::control_panel.search_by_gsm_number'));\n $filter->setSlug('gsm_phone');\n\n $builder->getTable()->addFilter($filter);\n $builder->setColumns([\n \t 'first_name',\n 'last_name',\n 'email' => [\n 'value' => function (EntryModel $entry) {\n return str_ends_with($entry->email, '@example.com') ? '' : $entry->email;\n }\n ],\n 'gsm_phone',\n 'created_at' => [\n 'value' => 'entry.created_at'\n ],\n 'status' => [\n 'value' => 'entry.status_label',\n ],]\n );\n $builder->setOptions([\n 'order_by' =>\n [\n 'email' => 'DESC'\n ],\n ]);\n\n $collection = new Collection();\n\t $header_firstname = new Header();\n $header_firstname = $header_firstname->setBuilder($builder)->setHeading('anomaly.module.users::field.first_name.name');\n $header_lastname = new Header();\n\t $header_lastname = $header_lastname->setBuilder($builder)->setHeading('anomaly.module.users::field.last_name.name');\n $header_email = new Header();\n $header_email = $header_email->setBuilder($builder)->setHeading('anomaly.module.users::field.email.name')->setSortable(true)->setSortColumn('email');\n $header_phone = new Header();\n $header_gsm_phone = $header_phone->setBuilder($builder)->setHeading('visiosoft.module.profile::field.gsm_phone.name');\n $header_created_at = new Header();\n $header_created_at = $header_created_at->setBuilder($builder)->setHeading('streams::entry.created_at')->setSortColumn('created_at')->setSortable(true);\n $header_status = new Header();\n $header_status = $header_status->setBuilder($builder)->setHeading('anomaly.module.users::field.status.name');\n\n $collection = $collection->add($header_firstname);\n $collection = $collection->add($header_lastname);\n $collection = $collection->add($header_email);\n $collection = $collection->add($header_gsm_phone);\n $collection = $collection->add($header_created_at);\n $collection = $collection->add($header_status);\n\n $builder->getTable()->setHeaders($collection);\n }", "title": "" }, { "docid": "55b3a8862701afefe594a5fef7616554", "score": "0.5079449", "text": "public function and_where($column, $op, $value)\n\t{\n\t\treturn parent::and_where($this->_column($column, TRUE, $value), $op, $value);\n\t}", "title": "" }, { "docid": "62dca1c6733b1998507fbe85a1ba92d4", "score": "0.5078437", "text": "public static function filterQuery($query, $filters, $columns, $table);", "title": "" }, { "docid": "bccddc507298af646c8990bbce2a6588", "score": "0.50617653", "text": "static function filter($request, $columns, &$bindings, $mywhere)\n {\n $globalSearch = array();\n $columnSearch = array();\n $dtColumns = self::pluck($columns, 'dt');\n \n // $dtColumns数组为[0,1,2,3,4,5,6...]\n \n // get data which user search\n if (isset($request['search']) && $request['search']['value'] != '') {\n // $str为用户搜索的数据\n $str = $request['search']['value'];\n \n for ($i = 0, $ien = count($request['columns']); $i < ($ien - 1); $i ++) {\n $requestColumn = $request['columns'][$i];\n // $columnIdx = array_search( $requestColumn['data'], $dtColumns );\n $column = $columns[$i];\n \n if ($requestColumn['searchable'] == 'true') {\n $binding = self::bind($bindings, '%' . $str . '%', PDO::PARAM_STR);\n $globalSearch[] = \"`\" . $column['db'] . \"` LIKE binary\" . '\\'' . '%' . $str . '%' . '\\'';\n }\n }\n }\n \n // Combine the filters into a single string\n if (! empty($mywhere)) {\n $where = $mywhere;\n } else {\n $where = '';\n }\n \n if (count($globalSearch)) {\n $where = '(' . implode(' OR ', $globalSearch) . ')';\n }\n \n if (count($columnSearch)) {\n $where = $where === '' ? implode(' AND ', $columnSearch) : $where . ' AND ' . implode(' AND ', $columnSearch);\n }\n \n if ($where !== '') {\n $where = 'WHERE ' . $where;\n }\n \n return $where;\n }", "title": "" }, { "docid": "5d044c7a145a407acaec6391ef363b0a", "score": "0.50472045", "text": "public function andWhere($field, $value, $wildcard = self::WILDCARD_NONE);", "title": "" }, { "docid": "03af1c03bbdf57e801d7c308ddc526c0", "score": "0.50450844", "text": "public function handleFiltering(&$query, $model)\n\t{\n\t\t$filters = $this->Input->get('dvs-filters', array());\n\n foreach ($filters as $filterName => $filterValue)\n\t\t{\n\t\t\t$query->where($filterName, 'LIKE', \"%{$filterValue}%\");\n\t\t}\n\t}", "title": "" }, { "docid": "d8ca7a883cf6e250e8e22ed28dc8a0e5", "score": "0.50226146", "text": "protected function addWhere(String $column, $operator = '=', $value = null, $boolean = 'and')\n {\n $this->wheres[] = compact('column', 'operator', 'value', 'boolean');\n\n // Bindings will be used in PDO to avoid SQL Injection\n $this->bindings[] = $value;\n }", "title": "" }, { "docid": "3a9d2b326b0b6ccf5428a7e41d4d1e7c", "score": "0.5016035", "text": "public function where(string $column, string $operator = null, mixed $value = null, bool $setType = true): static;", "title": "" }, { "docid": "7d7182dc4218b7878a189ddf325c9e5f", "score": "0.5007279", "text": "private static function validateOperators($filter, &$method, &$arguments, $model, $filter_setting, $operator, $value1, $value2)\n {\n // No space search.\n if (array_has($filter_setting, 'phone_search')) {\n $value1_numeric = str_replace(' ', '', $value1);\n if (is_numeric($value1_numeric)) {\n if (substr($value1_numeric, 0, 1) === '0') {\n $value1_numeric = substr($value1_numeric, 1);\n }\n $new_value1 = '';\n for ($pos = 0; $pos < strlen($value1_numeric); $pos++) {\n $new_value1 .= substr($value1_numeric, $pos, 1).'%';\n }\n $value1 = $new_value1;\n }\n }\n\n switch ($filter) {\n case 'string':\n switch ($operator) {\n case '=':\n case '!=':\n $arguments = [$operator, $value1];\n\n return true;\n case '*=*':\n case '*!=*':\n $operator = (stripos($operator, '!') !== false) ? 'NOT ' : '';\n $operator .= 'LIKE';\n $arguments = [$operator, '%'.$value1.'%'];\n\n return true;\n case '*=':\n case '*!=':\n $operator = (stripos($operator, '!') !== false) ? 'NOT ' : '';\n $operator .= 'LIKE';\n $arguments = [$operator, '%'.$value1];\n\n return true;\n case '=*':\n case '!=*':\n $operator = (stripos($operator, '!') !== false) ? 'NOT ' : '';\n $operator .= 'LIKE';\n $arguments = [$operator, $value1.'%'];\n\n return true;\n case 'EMPTY':\n $method = 'whereRaw';\n $arguments = \"=''\";\n\n return true;\n case 'NOT_EMPTY':\n $method = 'whereRaw';\n $arguments = \"!=''\";\n\n return true;\n case 'IN':\n $method = 'whereIn';\n $arguments = [static::getListFromString($value1)];\n\n return true;\n case 'NOT_IN':\n $method = 'whereIn';\n $arguments = [static::getListFromString($value1)];\n\n return true;\n case 'NULL':\n $method = 'whereNull';\n\n return true;\n case 'NOT_NULL':\n $method = 'whereNotNull';\n\n return true;\n }\n break;\n case 'number':\n switch ($operator) {\n case '=':\n case '!=':\n case '>':\n case '>=':\n case '<=':\n case '<':\n $arguments = [$operator, $value1];\n\n return true;\n case 'EMPTY':\n $method = 'whereRaw';\n $arguments = \"=''\";\n\n return true;\n case 'NOT_EMPTY':\n $method = 'whereRaw';\n $arguments = \"!=''\";\n\n return true;\n case 'IN':\n $method = 'whereIn';\n $arguments = [static::getListFromString($value1)];\n\n return true;\n case 'NOT_IN':\n $method = 'whereIn';\n $arguments = [static::getListFromString($value1)];\n\n return true;\n case 'NULL':\n $method = 'whereNull';\n\n return true;\n case 'NOT_NULL':\n $method = 'whereNotNull';\n\n return true;\n }\n break;\n case 'listLookup':\n if (isset($filter_setting['source'])) {\n $method_lookup = 'getFilter'.$filter_setting['source'].'Result';\n if (!empty($value1) && method_exists($model, $method_lookup)) {\n $value1 = $model->$method_lookup($value1);\n } else {\n $value1 = [];\n }\n } else {\n $value1 = [];\n }\n case 'list':\n switch ($operator) {\n case 'IN':\n $method = 'whereIn';\n $arguments = [$value1];\n\n return true;\n case 'NOT_IN':\n $method = 'whereNotIn';\n $arguments = [$value1];\n\n return true;\n }\n break;\n case 'boolean':\n switch ($operator) {\n case 1:\n case '1':\n $arguments = ['=', true];\n\n return true;\n break;\n case 0:\n case '0':\n $arguments = ['=', false];\n\n return true;\n break;\n }\n break;\n }\n\n return false;\n }", "title": "" }, { "docid": "c96666e44e11faa839d03b70ccdee468", "score": "0.50003695", "text": "public function where($fieldName, $method = '=', $values = null)\n\t{\n\t\t// Make sure the Filters behaviour is added to the model\n\t\tif (!$this->behavioursDispatcher->hasObserverClass('FOF30\\\\Model\\\\DataModel\\\\Behaviour\\\\Filters'))\n\t\t{\n\t\t\t$this->addBehaviour('filters');\n\t\t}\n\n\t\t// If we are dealing with the primary key, let's set the field name to \"id\". This is a convention and it will\n\t\t// be used inside the Filters behaviour\n\t\t// -- Let's not do this. The Filters behaviour works just fine with the regular field name!\n\t\t/**\n\t\tif ($fieldName == $this->getIdFieldName())\n\t\t{\n\t\t\t$fieldName = 'id';\n\t\t}\n\t\t**/\n\n\t\t$options = array(\n\t\t\t'method' => $method,\n\t\t\t'value' => $values\n\t\t);\n\n\t\t// Handle method aliases\n\t\tswitch ($method)\n\t\t{\n\t\t\tcase '<>':\n\t\t\t\t$options['method'] = 'search';\n\t\t\t\t$options['operator'] = '!=';\n\t\t\t\tbreak;\n\n\t\t\tcase 'lt':\n\t\t\t\t$options['method'] = 'search';\n\t\t\t\t$options['operator'] = '<';\n\t\t\t\tbreak;\n\n\t\t\tcase 'le':\n\t\t\t\t$options['method'] = 'search';\n\t\t\t\t$options['operator'] = '<=';\n\t\t\t\tbreak;\n\n\t\t\tcase 'gt':\n\t\t\t\t$options['method'] = 'search';\n\t\t\t\t$options['operator'] = '>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'ge':\n\t\t\t\t$options['method'] = 'search';\n\t\t\t\t$options['operator'] = '>=';\n\t\t\t\tbreak;\n\n\t\t\tcase 'eq':\n\t\t\t\t$options['method'] = 'search';\n\t\t\t\t$options['operator'] = '=';\n\t\t\t\tbreak;\n\n\t\t\tcase 'neq':\n\t\t\tcase 'ne':\n\t\t\t\t$options['method'] = 'search';\n\t\t\t\t$options['operator'] = '!=';\n\t\t\t\tbreak;\n\n\t\t\tcase '<':\n\t\t\tcase '!<':\n\t\t\tcase '<=':\n\t\t\tcase '!<=':\n\t\t\tcase '>':\n\t\t\tcase '!>':\n\t\t\tcase '>=':\n\t\t\tcase '!>=':\n\t\t\tcase '!=':\n\t\t\tcase '=':\n\t\t\t\t$options['method'] = 'search';\n\t\t\t\t$options['operator'] = $method;\n\t\t\t\tbreak;\n\n\t\t\tcase 'like':\n\t\t\tcase '~':\n\t\t\tcase '%':\n\t\t\t\t$options['method'] = 'partial';\n\t\t\t\tbreak;\n\n\t\t\tcase '==':\n\t\t\tcase '=[]':\n\t\t\tcase '=()':\n\t\t\tcase 'in':\n\t\t\t\t$options['method'] = 'exact';\n\t\t\t\tbreak;\n\n\t\t\tcase '()':\n\t\t\tcase '[]':\n\t\t\tcase '[)':\n\t\t\tcase '(]':\n\t\t\t\t$options['method'] = 'between';\n\t\t\t\tbreak;\n\n\t\t\tcase ')(':\n\t\t\tcase ')[':\n\t\t\tcase '](':\n\t\t\tcase '][':\n\t\t\t\t$options['method'] = 'outside';\n\t\t\t\tbreak;\n\n\t\t\tcase '*=':\n\t\t\tcase 'every':\n\t\t\t\t$options['method'] = 'interval';\n\t\t\t\tbreak;\n\n\t\t\tcase '?=':\n\t\t\t\t$options['method'] = 'search';\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\n\t\t\t\tthrow new InvalidSearchMethod('Method '.$method.' is unsupported');\n\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// Handle real methods\n\t\tswitch ($options['method'])\n\t\t{\n\t\t\tcase 'between':\n\t\t\tcase 'outside':\n\t\t\t\tif (is_array($values) && (count($values) > 1))\n\t\t\t\t{\n\t\t\t\t\t// Get the from and to values from the $values array\n\t\t\t\t\tif (isset($values['from']) && isset($values['to']))\n\t\t\t\t\t{\n\t\t\t\t\t\t$options['from'] = $values['from'];\n\t\t\t\t\t\t$options['to'] = $values['to'];\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$options['from'] = array_shift($values);\n\t\t\t\t\t\t$options['to'] = array_shift($values);\n\t\t\t\t\t}\n\n\t\t\t\t\tunset($options['value']);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// $values is not a from/to array. Treat as = (between) or != (outside)\n\t\t\t\t\tif (is_array($values))\n\t\t\t\t\t{\n\t\t\t\t\t\t$values = array_shift($values);\n\t\t\t\t\t}\n\n\t\t\t\t\t$options['operator'] = ($options['method'] == 'between') ? '=' : '!=';\n\t\t\t\t\t$options['value'] = $values;\n\t\t\t\t\t$options['method'] = 'search';\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'interval':\n\t\t\t\tif (is_array($values) && (count($values) > 1))\n\t\t\t\t{\n\t\t\t\t\t// Get the value and interval from the $values array\n\t\t\t\t\tif (isset($values['value']) && isset($values['interval']))\n\t\t\t\t\t{\n\t\t\t\t\t\t$options['value'] = $values['value'];\n\t\t\t\t\t\t$options['interval'] = $values['interval'];\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$options['value'] = array_shift($values);\n\t\t\t\t\t\t$options['interval'] = array_shift($values);\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\t// $values is not a value/interval array. Treat as =\n\t\t\t\t\tif (is_array($values))\n\t\t\t\t\t{\n\t\t\t\t\t\t$values = array_shift($values);\n\t\t\t\t\t}\n\n\t\t\t\t\t$options['value'] = $values;\n\t\t\t\t\t$options['method'] = 'search';\n\t\t\t\t\t$options['operator'] = '=';\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase 'search':\n\t\t\t\t// We don't have to do anything if the operator is already set\n\t\t\t\tif (isset($options['operator']))\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif (is_array($values) && (count($values) > 1))\n\t\t\t\t{\n\t\t\t\t\t// Get the operator and value from the $values array\n\t\t\t\t\tif (isset($values['operator']) && isset($values['value']))\n\t\t\t\t\t{\n\t\t\t\t\t\t$options['operator'] = $values['operator'];\n\t\t\t\t\t\t$options['value'] = $values['value'];\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$options['operator'] = array_shift($values);\n\t\t\t\t\t\t$options['value'] = array_shift($values);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\n\t\t$this->setState($fieldName, $options);\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "9d4e15bb3b2b5605217e5fb5e234eb4f", "score": "0.49943173", "text": "public function addFilter($query, $value)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "965ed8b39db037a76c46aad388844735", "score": "0.49800298", "text": "static function filter($request, $columns, &$bindings, $and = null) {\n $globalSearch = array();\n $columnSearch = array();\n $dtColumns = self::pluck($columns, 'dt');\n\n if (isset($request['search']) && isset($request['search']['value']) && $request['search']['value'] != '') {\n $str = $request['search']['value'];\n\n for ($i = 0, $ien = count($request['columns']); $i < $ien; $i++) {\n $requestColumn = $request['columns'][$i];\n $columnIdx = array_search($requestColumn['data'], $dtColumns);\n $column = $columns[$columnIdx];\n\n if ($requestColumn['searchable'] == 'true') {\n $binding = self::bind($bindings, '%' . $str . '%', \\PDO::PARAM_STR);\n //$tbalise=(isset($column['alise']))?$column['alise'].\".\":'';\n $globalSearch[] = $column['db'] . \" LIKE \" . \"'%$str%'\";\n }\n }\n }\n\n // Individual column filtering\n for ($i = 0, $ien = count($request['columns']); $i < $ien; $i++) {\n $requestColumn = $request['columns'][$i];\n $columnIdx = array_search($requestColumn['data'], $dtColumns);\n $column = $columns[$columnIdx];\n\n $str = $requestColumn['search']['value'];\n\n if ($requestColumn['searchable'] == 'true' &&\n $str != '') {\n $binding = self::bind($bindings, '%' . $str . '%', \\PDO::PARAM_STR);\n //$tbalise=(isset($column['alise']))?$column['alise'].\".\":'';\n $columnSearch[] = $column['db'] . \" LIKE \" . \"'%$str%'\"; //.$binding;\n }\n }\n\n // Combine the filters into a single string\n $where = '';\n\n if (count($globalSearch)) {\n $where = implode(' OR ', $globalSearch);\n }\n\n if (count($columnSearch)) {\n $where = $where === '' ?\n implode(' AND ', $columnSearch) :\n $where . ' AND ' . implode(' AND ', $columnSearch);\n }\n\n// if ($where !== '') {\n// $where = $where;\n// }\n $where = $and ? (\"(\" . $and . \")\" . ($where ? \" and (\" . $where . \")\" : \"\")) : ($where ? $where : \"\");\n\n return $where;\n }", "title": "" }, { "docid": "4dfd788b49302c8b7e01b51e9714f48b", "score": "0.49631938", "text": "function whereStringLike($fieldname, $value) {\n\t\treturn $this->whereString($fieldname, \"%{$value}%\", 'LIKE');\n\t}", "title": "" }, { "docid": "7f50d40839b2cbf5c51831da9619b0ba", "score": "0.4957367", "text": "public function searchByPhone($parameters = [])\n {\n $path = $this->appendParametersToUrl('/v2/phone_search', $parameters);\n $request = $this->getRequest('GET', $path);\n\n return $this->processRequest($request);\n }", "title": "" }, { "docid": "b63cf737b64c5066872327cb23355e8b", "score": "0.4956193", "text": "public function andWhereRegex($column, $value)\n\t{\n\t\tif ( ! $value instanceof MongoRegex)\n\t\t{\n\t\t\t$value = new MongoRegex($value);\n\t\t}\n\n\t\treturn $this->where($column, $value, '$and');\n\t}", "title": "" }, { "docid": "443bef7ffdb0bab043379efa08c48600", "score": "0.4939585", "text": "function getFilteredSearch(&$field, $value)\n\t{\n\t\tif ( !in_array($field->field_type, self::$field_types) ) return;\n\n\t\t$field->parameters->set( 'display_filter_as_s', 1 ); // Only supports a basic filter of single text search input\n\t\treturn FlexicontentFields::getFilteredSearch($field, $value, $return_sql=true);\n\t}", "title": "" }, { "docid": "78491d3d6e36cc77aaefeb9bb682e3f8", "score": "0.49395505", "text": "public function filterByPhonenumber($phonenumber = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($phonenumber)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $phonenumber)) {\n $phonenumber = str_replace('*', '%', $phonenumber);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(VolunteerPeer::PHONENUMBER, $phonenumber, $comparison);\n }", "title": "" }, { "docid": "f00976b2a7acb641b553c2b257ab063a", "score": "0.49384728", "text": "protected function filterProperty(string $property, $value, QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $operationName = null)\n {\n\n if ($resourceClass !== Broadcast::class || !is_array($value)) {\n return;\n }\n\n if ($property !== \"filter\") {\n return;\n }\n\n foreach ($value as $key => $val) {\n $extValue = $this->extractAllowedValue($val);\n if (($key === \"eq\" || $key === \"ne\") && $extValue !== null) {\n $eq = $key === \"eq\";\n\n $alias = $this->getAlias();\n if ($eq) {\n $condition = $extValue === 'true' ? 'IS NOT NULL' : 'IS NULL';\n } else {\n $condition = $extValue == 'true' ? 'IS NULL' : 'IS NOT NULL';\n }\n $queryBuilder->andWhere(\"$alias.sentDate $condition\");\n return;\n }\n\n return;\n\n }\n\n }", "title": "" }, { "docid": "8c0d58024689734f9948ac81c9b4941c", "score": "0.49304017", "text": "public function filterByPhoneNumber($number)\n {\n $this->params[\"get_contact\"] = $number;\n return $this;\n }", "title": "" }, { "docid": "53b6a020e2750451608abdeb90bd2f70", "score": "0.49241218", "text": "public function name($value){\n $this->builder->where('name','LIKE', \"%$value%\");\n }", "title": "" }, { "docid": "890de1410b5007ff5ad71f07140527bc", "score": "0.49185956", "text": "public function where($field, $value)\n {\n $args = func_get_args();\n\n if (count($args) == 3) {\n list($field, $operator, $value) = $args;\n } else {\n $operator = '=';\n }\n\n switch ($operator) {\n case '=':\n $this->wheres['must'][] = ['term' => [$field => $value]];\n break;\n\n case '>':\n $this->wheres['must'][] = ['range' => [$field => ['gt' => $value]]];\n break;\n\n case '<';\n $this->wheres['must'][] = ['range' => [$field => ['lt' => $value]]];\n break;\n\n case '>=':\n $this->wheres['must'][] = ['range' => [$field => ['gte' => $value]]];\n break;\n\n case '<=':\n $this->wheres['must'][] = ['range' => [$field => ['lte' => $value]]];\n break;\n\n case '!=':\n case '<>':\n $this->wheres['must_not'][] = ['term' => [$field => $value]];\n break;\n }\n\n return $this;\n }", "title": "" }, { "docid": "bd6f35ae98a65538d31de1fabf3ab27f", "score": "0.49148998", "text": "public function where($field, $condition, $value)\n {\n }", "title": "" }, { "docid": "2106e11262c5da69484b81b23a0d7a08", "score": "0.491288", "text": "public function filterCustomFields();", "title": "" }, { "docid": "282f63c4fd26aa997ab1e6d68b915b49", "score": "0.49119714", "text": "function buildQueryWhere() {\n\t\t\n\t\tif ($this->_queryWhere) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (isset ( $this->data ['where'] ) && strlen ( trim ( $this->data ['where'] ) ) > 1) {\n\t\t\t$this->_select->where ( $this->data ['where'] );\n\t\t}\n\t\t\n\t\t//Build an array to know filters values\n\t\t$valor_filters = array ();\n\t\t$filters = @urldecode ( $this->ctrlParams ['filters'] );\n\t\t$filters = str_replace ( \"filter_\", \"\", $filters );\n\t\t$filters = Zend_Json::decode ( $filters );\n\t\t$fieldsSemAsFinal = $this->removeAsFromFields ();\n\t\t\n\t\tif (is_array ( $filters )) {\n\t\t\tforeach ( $filters as $key => $filtro ) {\n\t\t\t\t$key = str_replace ( \"bvbdot\", \".\", $key );\n\t\t\t\t\n\t\t\t\tif (strlen ( $filtro ) == 0 || ! in_array ( $key, $this->map_array ( $this->_fields, 'replace_AS' ) )) {\n\t\t\t\t\tunset ( $filters [$key] );\n\t\t\t\t} else {\n\t\t\t\t\t$oldKey = $key;\n\t\t\t\t\tif (@$fieldsSemAsFinal [$key] ['searchField'] != \"\") {\n\t\t\t\t\t\t$key = $this->replaceAsString ( $fieldsSemAsFinal [$key] ['searchField'] );\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$this->buildSearchType ( $filtro, $oldKey, $key );\n\t\t\t\t\t$valor_filters [$key] = $filtro;\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->_filtersValues = $valor_filters;\n\t\t\n\t\treturn;\n\t}", "title": "" }, { "docid": "310093b56e8715e1cec6c5d8f4ba0c59", "score": "0.4911144", "text": "static function filter($request, $columns, $existe_where, &$bindings) {\n $globalSearch = array();\n $columnSearch = array();\n $dtColumns = self::pluck( $columns, 'dt');\n\n if(isset($request['search']) && $request['search']['value'] != '') {\n $str = $request['search']['value'];\n\n for($i = 0, $ien = count($request['columns']) ; $i < $ien ; $i++) {\n $requestColumn = $request['columns'][$i];\n $columnIdx = array_search( $requestColumn['data'], $dtColumns );\n $column = $columns[ $columnIdx ];\n\n if($requestColumn['searchable'] == 'true') {\n $binding = self::bind( $bindings, '%'.$str.'%', PDO::PARAM_STR);\n $globalSearch[] = $column['db'].\" LIKE \".$binding;\n }\n }\n }\n\n // Individual column filtering\n for($i = 0, $ien = count($request['columns']); $i < $ien ; $i++) {\n $requestColumn = $request['columns'][$i];\n $columnIdx = array_search( $requestColumn['data'], $dtColumns );\n $column = $columns[ $columnIdx ];\n\n $str = $requestColumn['search']['value'];\n\n if($requestColumn['searchable'] == 'true' && $str != '') {\n $binding = self::bind( $bindings, '%'.$str.'%', PDO::PARAM_STR);\n $columnSearch[] = $column['db'].\" LIKE \".$binding;\n }\n }\n\n // Combine the filters into a single string\n $where = '';\n\n if(count($globalSearch)) $where = '('.implode(' OR ', $globalSearch).')';\n\n if(count($columnSearch)) {\n $where = $where === '' ?\n implode(' AND ', $columnSearch) :\n $where .' AND '. implode(' AND ', $columnSearch);\n }\n \n if($existe_where == 'S') {//Como existe WHERE no SQL que foi passado por parâmetro, não posso ter 2 WHERE(s) ...\n if($where !== '') $where = 'AND '.$where;\n }else {//Não existe WHERE no SQL que foi passado por parâmetro ...\n if($where !== '') $where = 'WHERE '.$where;\n }\n return $where;\n }", "title": "" }, { "docid": "eb1a268973e064e91f6ae38d8185b273", "score": "0.4897906", "text": "public function andWhereLike($column, $value, $flags = 'im')\n\t{\n\t\tif ( ! $value instanceof MongoRegex)\n\t\t{\n\t\t\t$value = new MongoRegex('/'.$value.'/'.$flags);\n\t\t}\n\n\t\treturn $this->where($column, $value, '$and');\n\t}", "title": "" }, { "docid": "0c7aa5d2408b5c25f8998dc7617937bd", "score": "0.4891854", "text": "public function filterTextField($name, $value) {\n $result = $this->filter(function ($item) use ($name, $value){\n return (stripos($item->{$name}, $value) !== false);\n });\n return $result;\n }", "title": "" }, { "docid": "271f3df5d200c5f21610910c24acd918", "score": "0.48908293", "text": "public function whereLike($column, $value, $flags = 'im')\n\t{\n\t\tif ( ! $value instanceof MongoRegex)\n\t\t{\n\t\t\t$value = new MongoRegex('/'.$value.'/'.$flags);\n\t\t}\n\n\t\treturn $this->where($column, $value, 'first');\n\t}", "title": "" }, { "docid": "4dbeef1db3f0d3effb0d0b4f05191dc2", "score": "0.48877826", "text": "private function set_get_filter_by_name($model , & $where){\n\t\t$selected = $this->get_value( $this->get_name_filter_name() );\n\t\t$where [ $this->get_name_filter_name()] = $selected;\n return $model->whereRaw(\" (first_name LIKE ? or second_name LIKE ? ) \" ,\n array( \"%\".$selected.\"%\" ,\n \"%\".$selected.\"%\" )\n );\t\t\t\t\n\t}", "title": "" }, { "docid": "e6f9221eb64a70024fc471099cef4cde", "score": "0.4872623", "text": "public function testConditionToWhere()\n\t{\n\t\t$class = new \\ReflectionClass('\\Falafel\\DataSource\\DataSourceMySQL');\n\t\t$method = $class->getMethod('conditionToWhere');\n\t\t$method->setAccessible(true);\n\t\t\n\t\t$ds = new DataSourceMySQL($this->connection, 'laravel.users');\n\n\t\t$queryParams = array();\n\t\t$result = $method->invokeArgs($ds, array('id', 'eq', array(1, 2), &$queryParams));\n\t\t$this->assertEquals('id IN(:id_0,:id_1)', trim($result));\n\t}", "title": "" }, { "docid": "3a07a5867955403ad7f31b20808b60c8", "score": "0.48499414", "text": "function kickpress_query_where( $where = '', &$query ) {\n\tglobal $wpdb, $kickpress_api, $kickpress_meta_map;\n\n\tif ( kickpress_alter_query( $query ) ) {\n\t\textract( $kickpress_api->params );\n\n\t\t// Append the first letter filter from the alphabar\n\t\tif ( isset( $first_letter ) && 'all' != $first_letter ) {\n\t\t\tif ( 'post_title' == $kickpress_api->params['alphabar'] ) {\n\t\t\t\t$field_alias = 'post_title';\n\t\t\t\t$table_alias = $wpdb->posts;\n\t\t\t} elseif (isset($kickpress_meta_map[$alphabar])) {\n\t\t\t\t$field_alias = $kickpress_meta_map[$alphabar]['field_alias'];\n\t\t\t\t$table_alias = $kickpress_meta_map[$alphabar]['table_alias'];\n\t\t\t}\n\n\t\t\tif ( $first_letter == '0-9' ) {\n\t\t\t\t$where .= sprintf( ' AND (%s.%s REGEX \\'^[0-9]\\')', $table_alias, $field_alias );\n\t\t\t} else {\n\t\t\t\t$alpha_value = stripslashes( trim( $first_letter ) );\n\t\t\t\t$alpha_value = str_replace( ' ', '%', urldecode( $alpha_value ) ) . '%';\n\t\t\t\t$alpha_value = $wpdb->prepare( '%s', $alpha_value );\n\n\t\t\t\t$where .= sprintf(\n\t\t\t\t\t' AND (%s.%s LIKE %s)',\n\t\t\t\t\t$table_alias,\n\t\t\t\t\t$field_alias,\n\t\t\t\t\t$alpha_value\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\t// Append the specified date range\n\t\tif ( @is_array( $date ) ) {\n\t\t\tif ( isset( $date['min'] ) ) {\n\t\t\t\t$min_date = date( 'Y-m-d', strtotime( $date['min'] ) );\n\n\t\t\t\tif ( isset( $date['max'] ) ) {\n\t\t\t\t\t$max_date = date( 'Y-m-d', strtotime( $date['max'] ) );\n\n\t\t\t\t\t$where .= sprintf( \" AND DATE(%s.post_date) BETWEEN '%s' AND '%s'\", $wpdb->posts, $min_date, $max_date );\n\t\t\t\t} else {\n\t\t\t\t\t$where .= sprintf( \" AND DATE(%s.post_date) >= '%s'\", $wpdb->posts, $min_date );\n\t\t\t\t}\n\t\t\t} elseif ( isset( $date['max'] ) ) {\n\t\t\t\t$max_date = date( 'Y-m-d', strtotime( $date['max'] ) );\n\n\t\t\t\t$where .= sprintf( \" AND %s.post_date <= '%s'\", $wpdb->posts, $max_date );\n\t\t\t}\n\t\t}\n\n\t\tforeach ( $kickpress_meta_map as $field_name => $meta ) {\n\t\t\tif ( $meta['meta_join'] ) {\n\t\t\t\t// Append the first letter filter from the alphabar\n\t\t\t\tif ( isset( $meta['alpha'] ) && 'all' != $meta['alpha'] ) {\n\t\t\t\t\t$alpha_field = $kickpress_api->params['alphabar'];\n\n\t\t\t\t\tif ( isset( $kickpress_meta_map[$alpha_field] ) ) {\n\t\t\t\t\t\t$alpha_table = sprintf( '%s.meta_key = %s AND %1$s',\n\t\t\t\t\t\t\t$kickpress_meta_map[$alpha_field]['table_alias'],\n\t\t\t\t\t\t\t$wpdb->prepare( '%s', $kickpress_meta_map[$alpha_field]['meta_key'] )\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t$alpha_field = 'meta_value';\n\t\t\t\t\t} else {\n\t\t\t\t\t\t/* Replaced in JOIN clause\n\t\t\t\t\t\t$where .= sprintf(\n\t\t\t\t\t\t\t' AND (%s.meta_key = %s)',\n\t\t\t\t\t\t\t$meta['table_alias'],\n\t\t\t\t\t\t\t$wpdb->prepare( '%s', $meta['meta_key'] )\n\t\t\t\t\t\t); */\n\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( $first_letter == '0-9' ) {\n\t\t\t\t\t\t$where .= sprintf(\n\t\t\t\t\t\t\t\" AND (%s.%s REGEXP '^[0-9]' )\",\n\t\t\t\t\t\t\t$alpha_table,\n\t\t\t\t\t\t\t$alpha_field\n\t\t\t\t\t\t);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$alpha_value = stripslashes( trim( $meta['alpha'] ) );\n\t\t\t\t\t\t$alpha_value = str_replace( ' ', '%', urldecode( $alpha_value ) ) . '%';\n\t\t\t\t\t\t$alpha_value = $wpdb->prepare( '%s', $alpha_value );\n\n\t\t\t\t\t\t$where .= sprintf(\n\t\t\t\t\t\t\t' AND (%s.%s LIKE %s)',\n\t\t\t\t\t\t\t$alpha_table,\n\t\t\t\t\t\t\t$alpha_field,\n\t\t\t\t\t\t\t$alpha_value\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t} elseif ( isset( $meta['meta_compare'] ) ) {\n\t\t\t\t\t$compare = 'LIKE';\n\t\t\t\t\t$value = $meta['meta_value'];\n\n\t\t\t\t\tif ( stripos( $meta['meta_compare'], 'not' ) !== false )\n\t\t\t\t\t\t$compare = 'NOT LIKE';\n\n\t\t\t\t\tif ( stripos( $meta['meta_compare'], 'lead' ) !== false )\n\t\t\t\t\t\t$value = $value . '%';\n\t\t\t\t\telseif ( stripos( $meta['meta_compare'], 'trail' ) !== false )\n\t\t\t\t\t\t$value = '%' . $value;\n\n\t\t\t\t\t$where .= sprintf(\n\t\t\t\t\t\t' AND (CAST(%s.%s AS CHAR) %s \\'%s\\')',\n\t\t\t\t\t\t$meta['table_alias'],\n\t\t\t\t\t\t$meta['field_alias'],\n\t\t\t\t\t\t$compare,\n\t\t\t\t\t\t$value\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$where = $kickpress_api->where_filter( $where );\n\t}\n\n\treturn $where;\n}", "title": "" }, { "docid": "b5bab5c65e4e4a9fdc4549469096535c", "score": "0.48456004", "text": "public function where()\n\t{\n\t}", "title": "" }, { "docid": "3455f86043004af11e93955ed708c798", "score": "0.48438728", "text": "public function getList($filter = '')\n {\n $query = 'SELECT * FROM `contact` WHERE `user_id` = :user_id ';\n $params = ['user_id' => $_SESSION['auth']['id']];\n\n if (is_string($filter) && (trim($filter) != '')) {\n $query .= ' AND ( (`first_name` LIKE :filter) OR (`last_name` LIKE :filter) OR (`phone` LIKE :filter) )';\n $params['filter'] = '%' . $filter . '%';\n }\n\n return DB::getInstance()->getAllRows($query, $params);\n }", "title": "" }, { "docid": "82f83db5d226440256ee4dec1996fb08", "score": "0.4840306", "text": "function montaWhere(){\n\t\t$table =& $this->TableInfo();\n\t\t$where = \"\";\n\t\tforeach($table->flds as $name=>$fld) {\n\t\t\tif (!is_null($this->$name)){\n\t\t\t\tif ($where == \"\") {\n\t\t\t\t\t$where .= \" WHERE ($name = '\". $this->$name.\"')\";\n\t\t\t\t} else {\n\t\t\t\t\t$where .= \" AND ($name = '\". $this->$name.\"')\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $where;\n\t}", "title": "" }, { "docid": "5b6231375150289fb698786a841ec70a", "score": "0.48399088", "text": "public static function prepareResourcesQuery($search_value)\n {\n $query = DB::table('resources')\n ->join('service_providers', function($join){\n $join->on('resources.service_provider_id', '=', 'service_providers.id');\n $user = auth()->user();\n if(!$user->isAdmin()){\n $join->where('service_providers.id', '=', $user->service_provider_id);\n }\n })\n ->select(\n Resource::getServicesFieldsToShow()\n )\n ->orWhere(\"resources.name\",'LIKE', '%'.$search_value.'%')\n ->orWhere(\"resources.phone\",'LIKE', '%'.$search_value.'%')\n ->orWhere(\"resources.email\",'LIKE', '%'.$search_value.'%')\n ->orWhere(\"service_providers.name\",'LIKE', '%'.$search_value.'%');\n return $query;\n }", "title": "" }, { "docid": "dc028eddce656ff46c4c9c3b84b0e915", "score": "0.482781", "text": "public function where(string $column, $value, string $opr = \"=\"): self\n {\n $this->qBuilder->where($column, $value, $opr, \"AND\");\n return $this;\n }", "title": "" }, { "docid": "46b237d7df0704b7333b192afca6fba6", "score": "0.48267245", "text": "public function searchByPhone($phone)\n {\n $path = $this->phoneSearchPath.\"?\".$this->prepareQueryParams(['phone' => $phone]);\n\n return $this->request($path, Model\\BusinessesResponse::class);\n }", "title": "" }, { "docid": "8d9445eeb488068bbf6dd4e9530288ff", "score": "0.4825692", "text": "public function where($field, $value)\n {\n $args = func_get_args();\n\n if (count($args) == 3) {\n list($field, $operator, $value) = $args;\n } else {\n $operator = '=';\n }\n\n switch ($operator) {\n case '=':\n $this->wheres['must'][] = [\n 'term' => [\n $field => $value,\n ],\n ];\n\n break;\n\n case '>':\n $this->wheres['must'][] = [\n 'range' => [\n $field => [\n 'gt' => $value,\n ],\n ],\n ];\n\n break;\n\n case '<':\n $this->wheres['must'][] = [\n 'range' => [\n $field => [\n 'lt' => $value,\n ],\n ],\n ];\n\n break;\n\n case '>=':\n $this->wheres['must'][] = [\n 'range' => [\n $field => [\n 'gte' => $value,\n ],\n ],\n ];\n\n break;\n\n case '<=':\n $this->wheres['must'][] = [\n 'range' => [\n $field => [\n 'lte' => $value,\n ],\n ],\n ];\n\n break;\n\n case '!=':\n case '<>':\n $this->wheres['must_not'][] = [\n 'term' => [\n $field => $value,\n ],\n ];\n\n break;\n }\n\n return $this;\n }", "title": "" }, { "docid": "41d5bf25d307c059f9040e365cf0fdc5", "score": "0.4816503", "text": "public function publicFilter($value) {\n return $this->filterValue($value);\n }", "title": "" }, { "docid": "cd5164d89eaaa7f2f51c4c8ea2e326bc", "score": "0.4815988", "text": "public function filterFields();", "title": "" }, { "docid": "c69405c090d7e85d42f5bdb66f8e03b5", "score": "0.48088574", "text": "protected function filterProperty(\n string $property,\n $value,\n QueryBuilder $queryBuilder,\n QueryNameGeneratorInterface $queryNameGenerator,\n string $resourceClass,\n string $operationName = null\n ): void\n {\n if (null === $value || false === strpos($property, self::FILTER_KEY)) {\n return;\n }\n $parameterName = $queryNameGenerator->generateParameterName($property);\n $search = [];\n $mappedJoins = [];\n foreach ($this->properties as $groupName => $fields) {\n foreach ($fields as $field) {\n $joins = explode('.', $field);\n for ($lastAlias = 'o', $i = 0, $num = \\count($joins); $i < $num; $i++) {\n $currentAlias = $joins[$i];\n if ($i === $num - 1) {\n $search[] = \"LOWER({$lastAlias}.{$currentAlias}) LIKE LOWER(:{$parameterName})\";\n } else {\n $join = \"{$lastAlias}.{$currentAlias}\";\n if (!\\in_array($join, $mappedJoins, true)) {\n $queryBuilder->leftJoin($join, $currentAlias);\n $mappedJoins[] = $join;\n }\n }\n $lastAlias = $currentAlias;\n }\n }\n }\n $queryBuilder->andWhere(implode(' OR ', $search));\n $queryBuilder->setParameter($parameterName, '%' . $value . '%');\n }", "title": "" }, { "docid": "f90976e790683426cba91f2fa4f5a935", "score": "0.48072952", "text": "public function where($name, $value, $expression);", "title": "" }, { "docid": "ebf2a020fb2bc1c690d2797721f69f79", "score": "0.47977743", "text": "public function andWhere($column, string $op, $value) {\r\n // Add pending database call which is executed after query type is determined\r\n $this->_db_pending [] = array (\r\n 'name' => 'andWhere',\r\n 'args' => array (\r\n $this->columnQuote($column),\r\n $op,\r\n $value\r\n )\r\n );\r\n return $this;\r\n }", "title": "" }, { "docid": "8b87e91ad672097f65b72a0e2c5f4567", "score": "0.47947323", "text": "public function filter($key, $op = '=', $val = null) {\n\n $num_args = func_num_args() ;\n \n # use arbitary style\n if ($num_args == 1) {\n $op = null;\n }\n \n # use '='\n if ($num_args == 2) {\n $val = $op;\n $op = '=';\n }\n \n # else use custom operator e.g. <, >\n $this->wheres[] = array('col' => $key, 'op' => $op, 'val' => $val);\n \n return $this;\n }", "title": "" }, { "docid": "a707498f5daeae0cead3364ca6e9001e", "score": "0.47933757", "text": "protected function _list_items_query()\n\t{\n\t\t$this->_common_joins();\n\n\t\t$this->filters = (array) $this->filters;\n\t\t$where_or = array();\n\t\t$where_and = array();\n\n\t\tforeach($this->filters as $key => $val)\n\t\t{\n\t\t\tif (is_int($key))\n\t\t\t{\n\t\t\t\tif (isset($this->filters[$val])) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$key = $val;\n\t\t\t\t$val = $this->filter_value;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// used for separating table names and fields since periods get translated to underscores\n\t\t\t\t$key = str_replace(':', '.', $key);\n\t\t\t}\n\t\t\t\n\t\t\t$joiner = $this->filter_join;\n\t\t\t\n\t\t\tif (is_array($joiner))\n\t\t\t{\n\t\t\t\tif (isset($joiner[$key]))\n\t\t\t\t{\n\t\t\t\t\t$joiner = strtolower($joiner[$key]);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$joiner = 'or';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!empty($val) OR $val === '0')\n\t\t\t{\n\t\t\t\t$joiner_arr = 'where_'.strtolower($joiner);\n\t\t\t\t\n\t\t\t\tif (strpos($key, '.') === FALSE AND strpos($key, '(') === FALSE AND !preg_match('#_having$#', $key)) $key = $this->table_name.'.'.$key;\n\t\t\t\t\n\t\t\t\t//$method = ($joiner == 'or') ? 'or_where' : 'where';\n\t\t\t\t\n\t\t\t\t// do a direct match if the values are integers and have _id in them\n\t\t\t\tif (preg_match('#_id$#', $key) AND is_numeric($val))\n\t\t\t\t{\n\t\t\t\t\t//$this->db->where(array($key => $val));\n\t\t\t\t\tarray_push($$joiner_arr, $key.'='.$val);\n\t\t\t\t}\n\t\t\t\telse if (preg_match('#_having$#', $key))\n\t\t\t\t{\n\t\t\t\t\t$key = preg_replace('#_having$#', '', $key);\n\t\t\t\t\t$this->db->having($key, $val);\n\t\t\t\t}\n\t\t\t\t// from imknight https://github.com/daylightstudio/FUEL-CMS/pull/113#commits-pushed-57c156f\n\t\t\t\t//else if (preg_match('#_from#', $key) OR preg_match('#_to#', $key))\n\t\t\t\telse if (preg_match('#_from$#', $key) OR preg_match('#_fromequal$#', $key) OR preg_match('#_to$#', $key) OR preg_match('#_toequal$#', $key) OR preg_match('#_equal$#', $key))\n\t\t\t\t{\n\t\t\t\t\t//$key = strtr($key, array('_from' => ' >', '_fromequal' => ' >=', '_to' => ' <', '_toequal' => ' <='));\n\t\t\t\t\t$key_with_comparison_operator = preg_replace(array('#_from$#', '#_fromequal$#', '#_to$#', '#_toequal$#', '#_equal$#'), array(' >', ' >=', ' <', ' <=', ' ='), $key);\n\t\t\t\t\t//$this->db->where(array($key => $val));\n\t\t\t\t\t//$where_or[] = $key.'='.$this->db->escape($val);\n\n\n\t\t\t\t\tarray_push($$joiner_arr, $key_with_comparison_operator.$this->db->escape($val));\n\t\t\t\t}\n\t\t\t\telse if (is_array($val))\n\t\t\t\t{\n\t\t\t\t\t$arrjoiner = array();\n\t\t\t\t\tforeach($val as $v)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (strlen($v))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tarray_push($arrjoiner, $key.'='.$this->db->escape($v));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!empty($arrjoiner))\n\t\t\t\t\t{\n\t\t\t\t\t\t$arrjoiner_sql = '('.implode(' OR ', $arrjoiner).')';\n\t\t\t\t\t\tarray_push($$joiner_arr, $arrjoiner_sql);\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\t//$method = ($joiner == 'or') ? 'or_like' : 'like';\n\t\t\t\t\t//$this->db->$method('LOWER('.$key.')', strtolower($val), 'both');\n\t\t\t\t\tarray_push($$joiner_arr, 'LOWER('.$key.') LIKE \"%'.mb_strtolower(addslashes($val)).'%\"');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// here we will group the AND and OR separately which should handle most cases me thinks... but if not, you can always overwrite\n\t\t$where = array();\n\t\tif (!empty($where_or))\n\t\t{\n\t\t\t$where[] = '('.implode(' OR ', $where_or).')';\n\t\t}\n\t\tif (!empty($where_and))\n\t\t{\n\t\t\t$where[] = '('.implode(' AND ', $where_and).')';\n\t\t}\n\t\tif (!empty($where))\n\t\t{\n\t\t\t$where_sql = implode(' AND ', $where);\n\t\t\t$this->db->where($where_sql);\n\t\t}\n\t\t\n\t\t\n\t\t// set the table here so that items total will work\n\t\t$this->db->from($this->table_name);\n\t}", "title": "" }, { "docid": "a3a427d9d8feea3e5c55e0b05d82dc01", "score": "0.47899628", "text": "protected function getSqlWhereFromFilter($filter, &$whereArray, &$bindArray)\n {\n\n $paramIdx = 0;\n foreach ($filter as $key => $value) {\n \n if (!property_exists($this, $key) && is_object($value) && property_exists($value, \"key\")) {\n $curKey = $value->key;\n } else {\n $curKey = $key;\n }\n if (property_exists($this, $curKey)) {\n\n if (is_object($value)) {\n $ope = $value->ope;\n $val = $value->val;\n $fx = (property_exists($value, \"fx\"))? $value->fx : \"\";\n } else {\n $val = $value;\n $ope = \"=\";\n $fx = \"\";\n }\n\n switch ($ope) {\n case '<>':\n case '<':\n case '>':\n case '<=':\n case '>=':\n case '=':\n if ($val === null || trim($val) === '') {\n $whereArray[] = (($ope === \"<>\")?\"!(\" : \"(\") . $this->getDatabaseTableName() . \".{$curKey} is null)\";\n } else { \n if ($fx) {\n $whereArray[] = str_replace(\"<|fx.key|>\", $this->getDatabaseTableName() . \".{$curKey}\", $fx) . \" {$ope} :\" . $curKey . $paramIdx;\n } else {\n $whereArray[] = $this->getDatabaseTableName() . \".{$curKey} {$ope} :\" . $curKey . $paramIdx;\n }\n $bindArray[$curKey . $paramIdx] = $val;\n $paramIdx += 1;\n }\n break;\n\n case 'in':\n if ($fx) {\n $whereArray[] = $this->getDatabaseTableName() . \".{$curKey}\" . \" {$ope} \" . str_replace(\"<|fx.key|>\", \":\" . $curKey . $paramIdx, $fx);\n $bindArray[$curKey . $paramIdx] = $val ;\n $paramIdx += 1;\n } \n break;\n case 'like':\n $whereArray[] = $this->getDatabaseTableName() . \".{$curKey} like :\" . $curKey . $paramIdx;\n $bindArray[$curKey . $paramIdx] = \"%\" . $val . \"%\";\n $paramIdx += 1;\n \n break;\n default: \n $whereArray[] = \"1 = 2\"; \n }\n } else {\n $whereArray[] = \"1 = 2\";\n }\n }\n }", "title": "" }, { "docid": "b3c4e5fb722f840da68e64acaa9633a9", "score": "0.47893494", "text": "private function _searchByCustomString( $query, Request $request )\n {\n if ( ! empty( $request->custom_search_input ) ) {\n\n $query = $query->orWhere( 'call_sid', $request->custom_search_input );\n $query = $query->orWhere( 'direction', $request->custom_search_input );\n $query = $query->orWhere( 'dial_call_status', $request->custom_search_input );\n $query = $query->orWhere( 'to', $request->custom_search_input );\n $query = $query->orWhere( 'from', $request->custom_search_input );\n $query = $query->orWhere( 'from_zip', $request->custom_search_input );\n $query = $query->orWhere( 'from_city', $request->custom_search_input );\n $query = $query->orWhere( 'from_state', $request->custom_search_input );\n $query = $query->orWhere( 'from_country', $request->custom_search_input );\n\n return $query;\n }\n\n return $query;\n }", "title": "" }, { "docid": "266aef7e13608b6144ae4fac786b940b", "score": "0.4774892", "text": "private static function filter(array $columns) {\n \n $globalSearch = [];\n $columnSearch = [];\n $dtColumns = self::pluck($columns, 'dt');\n $requestSearch = Request::get('search');\n $requestColumns = Request::get('columns');\n if (isset($requestSearch) && $requestSearch['value'] != '') {\n $str = $requestSearch['value'];\n $keys = explode(' ', $str);\n for ($j = 0; $j < count($keys); $j++) {\n for ($i = 0, $ien = count($requestColumns); $i < $ien; $i++) {\n $requestColumn = $requestColumns[$i];\n $columnIdx = array_search($requestColumn['data'], $dtColumns);\n $column = $columns[$columnIdx];\n if ($requestColumn['searchable'] == 'true') {\n # $binding = self::bind($bindings, '%' . $str . '%', PDO::PARAM_STR);\n $pos = stripos($column['db'], ' as ');\n if ($pos) {\n $column['db'] = substr($column['db'], 0, $pos);\n }\n $globalSearch[$j][] = $column['db'] . \" LIKE BINARY '%\" . $keys[$j] . \"%'\";\n }\n }\n }\n }\n // Individual column filtering\n for ($i = 0, $ien = count($requestColumns); $i < $ien; $i++) {\n $requestColumn = $requestColumns[$i];\n $columnIdx = array_search($requestColumn['data'], $dtColumns);\n $column = $columns[$columnIdx];\n $str = $requestColumn['search']['value'];\n if ($requestColumn['searchable'] == 'true' && $str != '') {\n # $binding = self::bind($bindings, '%' . $str . '%', PDO::PARAM_STR);\n $columnSearch[] = $column['db'] . \" LIKE BINARY '%\" . $str . \"%'\";\n }\n }\n // Combine the filters into a single string\n $where = '';\n $filters = [];\n if (count($globalSearch)) {\n for ($i = 0; $i < count($globalSearch); $i++) {\n $filters[$i] = '(' . implode(' OR ', $globalSearch[$i]) . ')';\n }\n $where = '(' . implode(' AND ', $filters) . ')';\n }\n if (count($columnSearch)) {\n $where = $where === '' ?\n implode(' AND ', $columnSearch) :\n $where . ' AND ' . implode(' AND ', $columnSearch);\n }\n if ($where !== '') {\n $where = ' WHERE ' . $where;\n }\n \n return $where;\n \n }", "title": "" }, { "docid": "ce232c19cbc243867dc6668cf0d108e9", "score": "0.47724584", "text": "public static function filter ($filter, $value, $bind = null) {\n self::setWhere();\n self::$query.= \" $filter ? \";\n self::$bind[] = array ('value' => $value, 'bind' => $bind);\n return new self();\n }", "title": "" }, { "docid": "edf6896b42415e9b0a8840aca3a8a195", "score": "0.476718", "text": "function andWhere($field, $operation='', $value='')\n\t{\n\t\tif(count($this->where) < 1) return false;\n\t\t\n\t\t$data = array();\n\t\t\n\t\tif(is_a($field, \"SapphoQueryOptions\"))\n\t\t\t$data = array(self::WHERE_SUB_AND, $field);\n\t\telse\n\t\t\t$data = array(self::WHERE_AND, $field, $operation, $value);\n\t\tarray_push($this->where, $data);\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "39348f545d21e3057f0de5464fa02cc2", "score": "0.4765155", "text": "public static function byPhone($phone){\n return static::where('phone', $phone)->first();\n }", "title": "" }, { "docid": "4e7e4e4a60711c377abfe57268666cd5", "score": "0.47644866", "text": "function whereString($fieldname, $value, $operator='=') {\n\t\t$param = $this->createParam($value);\n\n\t\tif (!is_array($fieldname)) $fieldname = array($fieldname);\n\n\t\t$out = array();\n\t\tforeach ($fieldname as $f) {\n\t\t\t$out[] = \"$f $operator $param\";\n\t\t}\n\t\t\n\t\tswitch (count($out)) {\n\t\tcase 0: \n\t\t\tbreak;\n\t\tcase 1: \n\t\t\t$this->where[] = reset($out);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t$this->where[] = '('.implode(' OR ', $out).')';\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "2fc1d5ff947d9c78790a0c7c65e0c447", "score": "0.4760135", "text": "public function custom_query() {\n $result = DB::table('cdr')->where('did','LIKE','02849%');\n return $result;\n }", "title": "" }, { "docid": "c5ae81a0de2fe132d93270e3f6baa38f", "score": "0.47590396", "text": "public function testWhereColumn()\n {\n // Ordinary\n $query = (new Query)->whereColumn('table1.foo', '>', 'table2.bar');\n $this->assertAttributeEquals([new ColumnsCriterion('table1.foo', '>', 'table2.bar', 'AND')], 'where', $query);\n\n // Or where\n $query = (new Query)->orWhereColumn('foo', '<', 'bar');\n $this->assertAttributeEquals([new ColumnsCriterion('foo', '<', 'bar', 'OR')], 'where', $query);\n\n // Omit the rule\n $query = (new Query)->whereColumn('table.foo', 'bar');\n $this->assertAttributeEquals([new ColumnsCriterion('table.foo', '=', 'bar', 'AND')], 'where', $query);\n\n // Grouped criteria\n $query = (new Query)->whereColumn([\n ['table1.column1', 'table2.column1'],\n ['table1.column2', '!=', 'table2.column2']\n ]);\n $this->assertAttributeEquals([\n new CriteriaCriterion([\n new ColumnsCriterion('table1.column1', '=', 'table2.column1', 'AND'),\n new ColumnsCriterion('table1.column2', '!=', 'table2.column2', 'AND'),\n ], false, 'AND')\n ], 'where', $query);\n\n // Wrong single argument\n $this->assertException(InvalidArgumentException::class, function () {\n (new Query)->whereColumn('column1');\n });\n\n // Wrong rule value\n $this->assertException(InvalidArgumentException::class, function () {\n (new Query)->whereColumn(new Raw(''), new Raw(''), new Raw(''));\n });\n\n // Too many arguments\n $this->assertException(InvalidArgumentException::class, function () {\n (new Query)->whereColumn('column1', '!=', 'column2', 'foo');\n });\n\n // Too few arguments\n $this->assertException(InvalidArgumentException::class, function () {\n (new Query)->whereColumn();\n });\n }", "title": "" }, { "docid": "f6e6ab5ed5ab19f42193a0eda872a44a", "score": "0.4756038", "text": "private function parseFilter($query, $column, $operator, $value, $isOr = false)\n {\n $value = $value == 'NULL' ? null : $value;\n $compare = null;\n\n if (in_array($operator, ['=', '!=', '>', '<', '>=', '<='], true)) {\n if (ends_with($value, '*') || starts_with($value, '*')) {\n if (starts_with($operator, '!')) {\n $operator = $this->databaseDriver == 'pgsql' ? 'NOT ILIKE' : 'NOT LIKE';\n } else {\n $operator = $this->databaseDriver == 'pgsql' ? 'ILIKE' : 'LIKE';\n }\n $value = str_replace('*', '%', $value);\n }\n $compare = $isOr ? 'orWhere' : 'where';\n } elseif ($operator == '!=~') {\n $value = explode(',', $value);\n $compare = $isOr ? 'orWhereNotIn' : 'whereNotIn';\n $operator = false;\n } elseif ($operator == '=~') {\n $value = explode(',', $value);\n $compare = $isOr ? 'orWhereIn' : 'whereIn';\n $operator = false;\n }\n\n $this->queryParamFilterQueryConstruct($query, $column, $value, $compare, $operator);\n }", "title": "" }, { "docid": "ae00cf439c30df16dcbea0911b3c6e0b", "score": "0.47496557", "text": "public function search(Request $request)\n {\n $q = $request->input('q');\n $customers = Customer::query()->where(DB::raw(\"CONCAT_WS('',name,phone)\"), 'like', '%' .$q. '%')->get();\n return $customers;\n }", "title": "" }, { "docid": "1e4797a9ac1a30be5e870dd7c97f9244", "score": "0.47458276", "text": "public function xWhere($column, $value, $operator, $logic = \"AND\")\n {\n $logics = array(\n \"AND\",\n \"OR\",\n \"NAND\",\n \"NOR\",\n \"XOR\",\n \"XNOR\"\n );\n $logic = strtoupper(filter_var($logic, FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES));\n if (! in_array($logic, $logics))\n die(\"The given logic gate is invalid.\");\n $operators = array(\n \"=\",\n \"<>\",\n \"!=\",\n \"<\",\n \">\",\n \">=\",\n \"<=\",\n \"REGEXP\",\n \"LIKE\",\n \"NOT LIKE\",\n \"IN\",\n \"NOT IN\"\n );\n $operator = strtoupper($operator);\n if (! in_array($operator, $operators))\n die(\"The given operator is invalid.\");\n if (empty($column))\n die(\"The given column is empty.\");\n $column = filter_var($column, FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES);\n if ($column == \"\")\n die(\"The given column is invalid.\");\n $for_alias = $this->xGenerateAlias($column);\n $this->keys[] = $for_alias;\n if (count($this->where) == 0) {\n if ($operator == \"IN\" || $operator == \"NOT IN\")\n $cond = $column . \" \" . $operator . \" (:\" . $for_alias . \")\";\n else\n $cond = $column . \" \" . $operator . \" :\" . $for_alias;\n } else {\n if ($operator == \"IN\" || $operator == \"NOT IN\")\n $cond = \" \" . $logic . \" \" . $column . \" \" . $operator . \" (:\" . $for_alias . \")\";\n else\n $cond = \" \" . $logic . \" \" . $column . \" \" . $operator . \" :\" . $for_alias;\n }\n if (is_array($value)) {\n $cond = str_ireplace(\":\" . $for_alias, implode(\", \", $value), $cond);\n }\n $this->where[] = $cond;\n $this->values[] = $value;\n return $this;\n }", "title": "" }, { "docid": "7699acb40d5fbb63a74fb4a0442c1332", "score": "0.4742655", "text": "public function getWhereFirst($column, $value);", "title": "" }, { "docid": "38ed04c428a0a00254c2ed2647cfdaef", "score": "0.4742341", "text": "public function getFilterCondition($value,$operator){\r\n if ($operator == \"=\") {\r\n $value = \"'%\".$value.\"%'\";\r\n return \"`\".$this->name.\"` LIKE \".$value.\" \";\r\n }\r\n }", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "7d56ba702b0f53bfb287a0a271448f5e", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n //\n }", "title": "" } ]
[ { "docid": "98a92f5f221512e805209e68c21a2f41", "score": "0.7230707", "text": "public function update($resource, $id, $data);", "title": "" }, { "docid": "259a6a29a43bf9b88ecc1eb3eee3041e", "score": "0.6979853", "text": "public function updateResource($resourceType, $resourceId, $record);", "title": "" }, { "docid": "c5e38f3d50e186dc31a1c1e3191e33a9", "score": "0.6735281", "text": "public function update(Request $request, Resource $resource)\n {\n $this->validate($request, [\n 'name' => 'required|string|max:255',\n 'desc' => 'required|string',\n 'cover' => 'image',\n 'photos.*' => 'image'\n ]);\n\n $resource->update($request->only('name', 'desc'));\n\n if ($request->hasFile('cover')) {\n if ($resource->cover()) {\n $resource->cover()->update(['cover' => 0]);\n }\n $resource->uploadPhoto($request->file('cover'), \"$resource->name cover\", 1);\n }\n\n if ($request->has('photos')) {\n foreach ($request->photos as $key => $photo) {\n $resource->uploadPhoto($photo, \"$resource->name photo\");\n }\n }\n\n return redirect('/home')->with(['status' => 'Device successfully updated']);\n }", "title": "" }, { "docid": "5356d72880be7a8e7291a3812494f44a", "score": "0.6498234", "text": "public function update(Request $request, storage $storage)\n {\n //\n }", "title": "" }, { "docid": "7f0fded4aa42dd4d661965974fccb688", "score": "0.6330383", "text": "function requestUpdate($resourceName);", "title": "" }, { "docid": "9df920f81c47ce1493ae744241672b2f", "score": "0.62157947", "text": "function updateResource($model)\n {\n }", "title": "" }, { "docid": "1d81eeba25152205b32aee461040c8af", "score": "0.61946255", "text": "function updateResource($id, $data)\n\t{\n\t\tif(empty($id)) \n throw new App_Db_Exception_Table('Resource ID is not specified');\n\t\t\n $this->validateResource($data, $id);\n\t\t$this->db_update($this->_table, $this->getDbFields($data), array('id'=>$id));\n\t}", "title": "" }, { "docid": "a0575945e98b4f0b6ff629994e5f1060", "score": "0.6156594", "text": "public function update($resourceType, $id, array $queryParams = [], $meta = null);", "title": "" }, { "docid": "19cf522850f8d1f010d9f193ff0ee265", "score": "0.6095271", "text": "public function updateResourceData($resource, HungerGames $data){\n $this->createGameResource($resource, $data);\n }", "title": "" }, { "docid": "f25a192098a47b98f8a7c2af33a1dd2b", "score": "0.6065655", "text": "function updating_resource(Model $resource, Authenticatable $user = null)\n { \n return crud_event(\\Core\\Crud\\Events\\UpdatingResource::class, $resource, $user);\n }", "title": "" }, { "docid": "17ac23b2fa28e090182571ed20ffe721", "score": "0.6044543", "text": "public function update(Request $request, $resource, $id)\n {\n $original = $this->model->find($id);\n $model = $original->update($request->all());\n Cache::flush();\n $fields = $this->getModelAttributes();\n return redirect()->route('admin.resource.show', [\n 'resource' => $this->modelName,\n 'id' => $id\n ]);\n }", "title": "" }, { "docid": "e76e30799c75f7561fa2d246f6bd2a57", "score": "0.59422135", "text": "public function applyResource(Resource $resource): void;", "title": "" }, { "docid": "eaee54943a52f02e9d836bade5ff0c75", "score": "0.59377414", "text": "public function updateStream($path, $resource, Config $config)\n {\n }", "title": "" }, { "docid": "d9e868d7c27c54e84b68cd0b04675e55", "score": "0.59301335", "text": "function eh_update_resource($type, $resource, $params)\n\t{\n\t\t$url\t\t= eh_get_api_url().\"resources/\".$type.\"/\".$resource.\"/set\";\n\t\t$info\t\t= explode(\"\\n\", eh_fetch_data($url, $params));\n\t\tif(strpos($info[0], 'negative') !== false)\n\t\t{\n\t\t\treturn $info[0];\n\t\t}\n\t\treturn $info;\n\t}", "title": "" }, { "docid": "23ff4e035f19244ecf2ecfc892af99e2", "score": "0.5929896", "text": "function updated_resource(Model $resource, Authenticatable $user = null)\n { \n return crud_event(\\Core\\Crud\\Events\\UpdatedResource::class, $resource, $user);\n }", "title": "" }, { "docid": "daedbb0f657251ba1f1dfe05df9672c1", "score": "0.58814067", "text": "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n \n // STEP 1: Update or insert this identity 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 }", "title": "" }, { "docid": "5f4fa67168957ecd78198365cfd74bd9", "score": "0.58386296", "text": "public function update(Request $request)\n {\n try {\n $validator = Validator::make($request->all(), [\n 'name' => 'required',\n ]);\n\n if ($validator->fails()) {\n $response = [\n 'msg' => $validator->errors->all(),\n 'status' => 0,\n ];\n }\n $data = [];\n if($request->image) {\n $image = ImageUploadHelper::imageupload($request, 'image');\n $data['image'] = $image;\n $data['name'] = $request->name;\n } else {\n $data['name'] = $request->name;\n }\n $resource = Resource::where('id', $request->id)->update($data);\n \n if ($resource) {\n $response = [\n 'msg' => 'Resource Edit Successfully',\n 'status' => 1,\n ];\n } else {\n $response = [\n 'msg' => 'Oops! Something went wrong',\n 'status' => 0,\n ];\n }\n } catch (\\Exception $e) {\n $response = [\n 'msg' => $e->getMessage() . \" \" . $e->getFile() . \" \" . $e->getLine(),\n 'status' => 0,\n ];\n }\n\n return response()->json($response);\n }", "title": "" }, { "docid": "e13311a6d3d6df9928a268f0dfeef488", "score": "0.58193165", "text": "public function update(EquipoStoreRequest $request, $id)\n {\n $equipo = Equipo::find($id);\n $equipo->fill($request->all())->save();\n if($request->file('foto_equipo')){\n $path = Storage::disk('public')->put('images/equipos', $request->file('foto_equipo'));\n $equipo->fill(['foto_equipo' => asset($path)])->save();\n }\n return redirect()->route('equipos.index')->with('info', 'Equipo actualizado con éxito');\n }", "title": "" }, { "docid": "4594dc168aa13c6fef27f370ea295688", "score": "0.57901055", "text": "public function update(Request $request, $id)\n {\n $stock = Stock::findOrFail($id);\n $stock->title = $request->title;\n $stock->caption = $request->caption;\n $stock->location_id = $request->location_id;\n $stock->type = $request->type;\n if ($request->img != null) {\n\n if (file_exists(public_path('') . $stock->img)) {\n unlink(public_path('') . $stock->img);\n }\n\n $imageName = \"/uploads\" . \"/\" . time() . '.' . $request->img->extension();\n\n $request->img->move(public_path('uploads/'), $imageName);\n $stock->img = $imageName;\n }\n $stock->save();\n\n return redirect('/stock/list');\n }", "title": "" }, { "docid": "6bad782d5097f353b6d7ab6700de6bd2", "score": "0.5789171", "text": "public function putAction()\n {\n $id = $this->_getParam('id', 0);\n\n $this->view->id = $id;\n $this->view->params = $this->_request->getParams();\n $this->view->message = sprintf('Resource #%s Updated', $id);\n $this->_response->ok();\n }", "title": "" }, { "docid": "b5cccc3771870667a9ee2e74c567e04f", "score": "0.5788723", "text": "public function put($resource, $id = 0, $data = NULL) {\n $data = $this->request('PUT', SPOTIFY_API_ENDPOINT, '/' . $resource . '/' . $id . '', 'application/json', $data, array());\n return $data;\n }", "title": "" }, { "docid": "1fc7ff41b62020f266925c1d4d0429db", "score": "0.57780427", "text": "public function update()\n {\n $this->objectWriteNot(\"update\");\n }", "title": "" }, { "docid": "07bb2e794095f53c3ada145c00d6e27c", "score": "0.5770977", "text": "public function update($id)\n {\n return $this->_resourcePersistence->store($id);\n }", "title": "" }, { "docid": "b7efc8833e2707d2c41ccbb075ab62b4", "score": "0.5752699", "text": "public function updateExisting();", "title": "" }, { "docid": "eaf18f66946228a152f8b83c6b49e31e", "score": "0.5747208", "text": "public function update($id, $data) {}", "title": "" }, { "docid": "10a5238440cd234bf32137b5c2bdb8ca", "score": "0.5738228", "text": "public function updateAction () {\n\t\t$this->validateHttpMethod(\"PUT\");\n\t\t\n\t}", "title": "" }, { "docid": "286908b8496df6848f6d30646fd1773f", "score": "0.5703068", "text": "public function updateStream($path, $resource, $config = [])\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "632a0e357db115573e3d55d2e9207359", "score": "0.5699802", "text": "public function putAction()\n\t{\n\n\t\t\t\n\t\t$this->view->id = $id;\n\t\t$this->view->params = $this->_request->getParams();\n\t\t$this->view->message = sprintf('Resource #%s Updated', $id);\n\t\t$this->_response->ok();\n\n\t}", "title": "" }, { "docid": "8759752add8b6db67fed4d69cb0208e8", "score": "0.5683185", "text": "public function update()\n\t{\n\t\tparent::update();\n\t\t$this->write();\n\t}", "title": "" }, { "docid": "14c153b0cb8091e3ce492801115cea2c", "score": "0.5676489", "text": "public function update(Request $request, $id)\n {\n $name = $request->name;\n $description = $request->description;\n $amount = $request->amount;\n $category_id = $request->category_id;\n $photo = $request->photo;\n $has_discount = $request->has_discount;\n $product = new Product();\n $product->name = $name;\n $product->description = $description;\n $product->amount = $amount;\n $product->category_id = $category_id;\n $product->has_discount = ($has_discount === \"true\" || $has_discount === \"1\") ? 1: 0;\n\n\n $product_db = Product::find($id);\n $product_db->name = $product->name;\n $product_db->description = $product->description;\n $product_db->amount = $product->amount;\n $product_db->category_id = $product->category_id;\n $product_db->has_discount = $product->has_discount;\n\n if($product_db->save()) {\n if ($request->hasFile('photo')) {\n $image = $request->file('photo');\n $fileName = time() . '.' . $image->getClientOriginalExtension();\n \n $img = \\Image::make($image->getRealPath());\n $img->resize(250, 250, function ($constraint) {\n $constraint->aspectRatio(); \n });\n \n $img->stream(); // <-- Key point\n \n //dd();\n $full_url = 'images/1/smalls'.'/'.$fileName;\n \\Storage::disk('public')->put($full_url, $img);\n\n $product_db->photos = $full_url;\n $product_db->save();\n }\n $product_db->category = $product_db->category;\n return $product_db;\n }\n }", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "6b91824bf8c51c5e05fd48e2728329bf", "score": "0.56742364", "text": "public function update(Request $request, $id)\n {\n try{\n $obj = Obj::where('id',$id)->first();\n\n /* delete file request */\n if($request->get('deletefile')){\n\n if(Storage::disk('public')->exists($obj->image)){\n Storage::disk('public')->delete($obj->image);\n }\n redirect()->route($this->module.'.show',[$id]);\n }\n\n $this->authorize('update', $obj);\n /* If file is given upload and store path */\n if(isset($request->all()['file'])){\n $file = $request->all()['file'];\n $path = Storage::disk('public')->putFile('category', $request->file('file'));\n $request->merge(['image' => $path]);\n }\n\n $obj = $obj->update($request->except(['file'])); \n flash('('.$this->app.'/'.$this->module.') item is updated!')->success();\n return redirect()->route($this->module.'.show',$id);\n }\n catch (QueryException $e){\n $error_code = $e->errorInfo[1];\n if($error_code == 1062){\n flash('Some error in updating the record')->error();\n return redirect()->back()->withInput();\n }\n }\n }", "title": "" }, { "docid": "8d0a97cdf24a3e49996a055c1d6f9ee9", "score": "0.5674049", "text": "public function put($data);", "title": "" }, { "docid": "8576d995f0ad5fb05e24f4249f91de06", "score": "0.56251395", "text": "public function update() {\n $this->save();\n }", "title": "" }, { "docid": "7a0daf096da3d4426382a1e223faf321", "score": "0.5611065", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->stream($path, $resource, $config, 'update');\n }", "title": "" }, { "docid": "7a0daf096da3d4426382a1e223faf321", "score": "0.5611065", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->stream($path, $resource, $config, 'update');\n }", "title": "" }, { "docid": "61fd60c4351f42e6fbc02b50ebca8bc2", "score": "0.5605237", "text": "public function update(Request $request, $id)\n {\n $resource = Resources::where('id', $id)->first();\n $resource->name = $request->name;\n $resource->category_id = (int)$request->category_id;\n $resource->location = $request->location;\n $resource->description = $request->description;\n $resource->icon = $request->icon;\n return json_encode($resource->save());\n }", "title": "" }, { "docid": "861587caf58c3f620dbafce99fe22615", "score": "0.56020206", "text": "public function update($id, $request);", "title": "" }, { "docid": "ecb354cb7b6b47a575835c7db1ad90b5", "score": "0.5598929", "text": "public function updateStreamAsync($path, $resource, Config $config);", "title": "" }, { "docid": "096b7dba1f9fc21e9dc73bbc8b007ad4", "score": "0.5582224", "text": "abstract public function update($id, $request);", "title": "" }, { "docid": "a2a8c7ed3b85cbbe7e79548fb9edbe73", "score": "0.558093", "text": "public function update(Request $request, $id)\n {\n $request->validate([\n 'title' => 'required',\n ]);\n $data = $request->input();\n if (($request['img'])){\n $folder = 'products/'. date('Y') . '/'. date('m');\n\n $data['img'] = $request->file('img')->store('images/'. $folder);\n\n }\n $item = Product::find($id);\n $item ->update($data);\n return redirect()->route('admin.products.index')->with('success', 'Изменения сохранены');\n }", "title": "" }, { "docid": "7aa2abed7c854f7758eb73c29122e0bf", "score": "0.55795985", "text": "public function update(StorePhotos $request, $id)\n {\n // Grab the inventory item so we can update it\n $image = Images::findOrFail($id);\n\n $image->fill($request->validated());\n \n return (new ImagesResource($image))\n ->response()\n ->setStatusCode(201);\n }", "title": "" }, { "docid": "29aad1545f3bd950877d86ff51dcbf21", "score": "0.55708927", "text": "public function update(Request $request, $id)\n {\n $registro = Producto::find($id);\n $valores = $request ->all(); //recupero todos los datos del formulario\n $img = $request -> file('imagen');\n if(!is_null($img) ){\n $imagen = $request -> file('imagen')-> store('public/imagenes'); //obtengo la imagen del input y la guardi en el storage\n $url_replace = str_replace('storage','public', $registro->imagen); //reemplazo la url para eliminar del storage\n $url_N= Storage::url($imagen); //almaceno la nueva imagen en el storage\n Storage::delete($url_replace);\n $url = Storage::url($imagen);\n $valores['imagen'] = $url;\n }\n $registro ->fill($valores);\n $registro ->save();\n return redirect('/dashBoard/productos');\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55661047", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55661047", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "fb222032c6bacfdf3f59fba2c85e8ff3", "score": "0.555832", "text": "public function update(StoreProduct $request, $id)\n {\n $params = request()->except(['_token']);\n if ($request->hasFile('photo')) {\n $path = $request->file('photo')->store('images');\n $params['photo'] = $path;\n }\n Product::where('id', $id)\n ->update($params);\n\n return redirect()->route('admin.products.show');\n }", "title": "" }, { "docid": "1d5bf70b6f6ee925cb3f92ebbf7df49a", "score": "0.5552059", "text": "public function update(Request $request, $id)\n {\n //\n $slider = SliderImage::find($id);\n if(request()->hasFile('photo')){\n Storage::disk('public')->delete('slider_image/'.$slider->slider_image);\n $image = request()->file('photo');\n $imageName = time() . '_' . $image->getClientOriginalName();\n $image->storeAs('slider_image', $imageName, 'public');\n\n $slider->slider_image = $imageName;\n $slider->updated_by = Auth::user()->name;\n $slider->save();\n toast('Slider Image Updated Successfully!','success');\n return redirect()->back();\n }\n\n }", "title": "" }, { "docid": "4c0ab51ecbeaff3788498a88d8e05dde", "score": "0.55394554", "text": "public function update($id) {\n \n }", "title": "" }, { "docid": "516873632753a11d0fca6446f9d7fead", "score": "0.55387545", "text": "public function update(Request $request, $id)\n {\n $modif=Image::find($id);\n if ($request->images== null){ \n }else{ \n Storage::delete('public/images/original/'.$modif->images);\n Storage::delete('public/images/thumbnails/'.$modif->images);\n $img=$request->images;\n $renom=time().$img->hashName();\n $img->store('/public/images/original/');\n $resized=ImageIntervention::make($img)->resize(109,108);\n $resized->save();\n Storage::put('/public/images/thumbnails/'.$renom, $resized);\n $modif->images=$renom;\n }\n\n $modif->images=$renom;\n $modif->save();\n return redirect('/insta');\n }", "title": "" }, { "docid": "db6cffbe49713220724fc0e32ce7122e", "score": "0.55386496", "text": "public function update(Request $request, $id)\n {\n $this->validateData($request); //ตรวจสอบข้อมูลก่อนการแก้ไข\n Networkedstorage::find($id)->update($request->all()); //ค้นหาและแก้ไขข้อมูลในตาราง networked_storages\n return redirect('/networkedstorage')->with('success','แก้ไขข้อมูลสำเร็จแล้ว');\n }", "title": "" }, { "docid": "5f6cc4993e197be08863357458931587", "score": "0.55344915", "text": "public function update(Request $request, int $id)\n {\n\n $request->validate($this->page_validate());\n $product = Product::findOrFail($id);\n $data = $request->all();\n $data['image'] = $product->image;\n $data = array_merge($data, $this->slug($request));\n\n if ($request->file('image'))\n {\n _file_delete($data['image']);\n $data['image'] = $this -> upload( $request , 'products' );\n }\n\n $product->update($data);\n\n return redirect(route('admin.product.index'))->with(_sessionmessage());\n }", "title": "" }, { "docid": "ab9b7d4682e0b792e27aad8d2e440b2e", "score": "0.5520933", "text": "public function update(Request $request, $id)\n {\n\n $requestData = $request->all();\n if ($request->hasFile('Imagen')) {\n\n $producto = producto::findOrFail($id);\n\n Storage::delete('public/'.$producto->Imagen);\n\n $requestData['Imagen'] = $request->file('Imagen')\n ->store('uploads', 'public');\n }\n\n $producto = producto::findOrFail($id);\n $producto->update($requestData);\n\n return redirect('productos')->with('flash_message', 'producto Actualizado!');\n }", "title": "" }, { "docid": "014b2b761d95ca9c270fcc41c92d3964", "score": "0.5509719", "text": "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'trash' => 'required',\n 'price' => 'required|integer',\n // 'image' => 'required'\n ]);\n\n if ($validator->fails()) {\n return redirect('admin/trash/' . $id . '/edit')\n ->withErrors($validator);\n } else {\n $trash = Trash::find($id);\n\n $trash->trash = request('trash');\n $trash->price = request('price');\n\n if (!$request->file('image')) {\n $image = request('imagePath');\n } else {\n $image = base64_encode(file_get_contents(request('image')));\n $client = new Client();\n $res = $client->request('POST', 'https://freeimage.host/api/1/upload', [\n 'form_params' => [\n 'key' => '6d207e02198a847aa98d0a2a901485a5',\n 'action' => 'upload',\n 'source' => $image,\n 'format' => 'json'\n ]\n ]);\n\n $get = $res->getBody()->getContents();\n $data = json_decode($get);\n $trash->image = $data->image->display_url;\n }\n\n $trash->save();\n alert::success('message', 'Trash Updated');\n return redirect('admin/trash');\n }\n }", "title": "" }, { "docid": "84d0339c9496a4a023b54955b36002eb", "score": "0.5507803", "text": "public function updateSingle($request, $response, $args);", "title": "" }, { "docid": "a0c8aa8d43f7dbc67d52effeb5ceff30", "score": "0.55019945", "text": "public function update(Request $request, Producto $producto)\n {/*\n $producto->update($request->only(['nombreProducto', 'precio']));\n\n*/\n $producto->nombreProducto = $request->nombreProducto ?? $producto->nombreProducto;\n $producto->stock = $request->stock ?? $producto->stock;\n $producto->url = $request->url ?? $producto->url;\n $producto->precio = $request->precio ?? $producto->precio;\n $producto->save();\n return new ProductoResource($producto);\n }", "title": "" }, { "docid": "013212daa4ecab2fd83de19a4cffe83e", "score": "0.5501016", "text": "public function saveTransactionResource($resource)\n\t{\n\t\t$path = $this->getTransactionResourcePath($resource->getHash());\n\t\t$this->filesystem()->put($path, serialize($resource));\n\t}", "title": "" }, { "docid": "9eefb21d2c4fee1ef44fdb5073e1ab9d", "score": "0.54961485", "text": "public function update(Request $request, $id)\n {\n $slider=Headerslider::find($id);\n $validator=$request->validate([\n 'image'=>'required|mimes:png,jpg|max:1024'\n ]);\n if($validator==false)\n {\n return redirect()->back();\n }\n if(File::exists(public_path('/storage/images/'.$slider->image)))\n {\n File::delete(public_path('/storage/images/'.$slider->image));\n }\n $filename=rand().'.'.$request->image->extension();\n $request->image->storeAs('public/images/sliders',$filename);\n $request->image=$filename;\n $slider->update([\n 'image'=>$request->image\n ]);\n return redirect('/admin-user/slider');\n }", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "3df93bb518efe3cbaf727ca9ad9328a0", "score": "0.5491213", "text": "public function testUpdateAProduct()\n {\n $prod = $this->generateProducts()->first();\n $this->seeInDatabase('products', ['name' => $prod->name]);\n\n $params = [\n 'name' => 'Google Pixel XL',\n 'description' => 'The best phone on the market',\n 'price' => 699.99,\n ];\n\n $response = $this->json('PUT', \"/products/{$prod->id}\", $params);\n $this->seeInDatabase('products', [\n 'name' => $params['name'],\n 'description' => $params['description'],\n 'price' => $params['price'],\n ]);\n }", "title": "" }, { "docid": "1e04073b58a998da6e0122e24cd1be12", "score": "0.5490248", "text": "public function update(Request $request, $id)\n {\n\n\n $datostrabajos=request()->except(['_token','_method']);\n\n\n if ($request->hasFile('Foto')) {\n\n\n$trabajo= Trabajos::findOrFail($id);\n\nStorage::delete('public/'. $trabajo->Foto);\n\n$datostrabajos['Foto']=$request->file('Foto')->store('uploads','public');\n\n\n }\n\n Trabajos::where('id','=',$id)->update($datostrabajos);\n\n //$trabajo= Trabajos::findOrFail($id);\n\n //return view('trabajos.edit',compact('trabajo'));\n\nreturn redirect('trabajos')->with('Mensaje','Trabajo modificado con éxito');\n }", "title": "" }, { "docid": "abf7a5c8e18b23e0935566a6ec214c56", "score": "0.5485075", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product -> name = $request -> name;\n $product -> price = $request -> price;\n $product -> description = $request -> description;\n\n $product -> update();\n\n Session::put('update', 'The product has been updated');\n\n return redirect('/resource');\n }", "title": "" }, { "docid": "1e8339e3233595b2c1df533b2987741b", "score": "0.5478798", "text": "public function update( Request $request, $id );", "title": "" }, { "docid": "a338906322949bb1be1e0e7a003a46e3", "score": "0.5478304", "text": "public function update(ProductUpdateRequest $request, $id)\n {\n\n $product=Product::findOrFail($id);\n\n $data=$request->all();\n $data['admin_vendor_id']=Auth::user()->id;\n $data['is_featured']=$request->input('is_featured',0);\n $size=$request->input('size');\n\n if ($request->hasFile('file')) {\n $uploadedFile = $request->file('file')->store('backend/product');\n $data['photo'] = $uploadedFile;\n }\n\n $status=$product->fill($data)->save();\n if($status){\n request()->session()->flash('success','Product Successfully updated');\n }\n else{\n request()->session()->flash('error','Please try again!!');\n }\n return redirect()->route('product.index');\n }", "title": "" }, { "docid": "8a8a5b40d30a661682ea39e7d25ae1ed", "score": "0.54719293", "text": "public function put()\n {\n /** @var \\Tacit\\Model\\Persistent $modelClass */\n $modelClass = static::$modelClass;\n\n $criteria = $this->criteria(func_get_args());\n\n /** @var \\Tacit\\Model\\Persistent $item */\n $item = $modelClass::findOne($criteria, [], $this->app->container->get('repository'));\n\n if (null === $item) {\n throw new NotFoundException($this);\n }\n\n try {\n /** @var \\Tacit\\Model\\Persistent $newItem */\n $newItem = new $modelClass();\n $data = array_replace_recursive(\n $newItem->toArray(),\n $this->app->request->post(null, [])\n );\n \n $data = $this->putBeforeSet($data);\n \n $item->fromArray($data, Collection::getMask($item));\n $item->save();\n } catch (OperationalException $e) {\n $e->next($this);\n } catch (ModelValidationException $e) {\n throw new UnacceptableEntityException($this, 'Resource validation failed', $e->getMessage(), $e->getMessages(), $e);\n } catch (Exception $e) {\n throw new ServerErrorException($this, 'Error updating resource', $e->getMessage(), null, $e);\n }\n\n $this->respondWithItem($item, new static::$transformer());\n }", "title": "" }, { "docid": "c0bda952d3e806da6a09fbad44c10c87", "score": "0.5466996", "text": "public function edit(storage $storage)\n {\n //\n }", "title": "" }, { "docid": "c71ca30825c84517c03b65e7df4230aa", "score": "0.54666376", "text": "function update($record)\n { \n ////DEBUG\n return; \n ////END DEBUG \n\t\t$this->rest->initialize(array('server' => REST_SERVER));\n $this->rest->option(CURLOPT_PORT, REST_PORT);\n $retrieved = $this->rest->put('/SuppliesAPI/item/id' . $record['id'], $record);\n }", "title": "" }, { "docid": "90755391b8e7c7b31e24f046029b9f4b", "score": "0.54652643", "text": "public function update($data) {\n\n }", "title": "" }, { "docid": "9043981d5738f7df4a3238c2fe116872", "score": "0.54592717", "text": "public function update($id,Request $request)\n {\n $file = $request->file('file');\n $extension = $file->getClientOriginalExtension();\n Storage::disk('local')->put($file->getFilename().'.'.$extension, File::get($file));\n $entry = Fileentry::find($id);\n $entry->original_mime_type = $file->getClientMimeType();\n $entry->original_filename = $file->getClientOriginalName();\n $entry->filename = $file->getFilename().'.'.$extension;\n\n $entry->save();\n }", "title": "" }, { "docid": "aa1f77aee84ae3a416c76923d1a56559", "score": "0.5459106", "text": "public function update($object)\n {\n }", "title": "" }, { "docid": "b249f46520a6b9be14d03dabf94d1d39", "score": "0.5454029", "text": "public function update(Request $request, $id)\n {\n //\n // dd($request);\n $user = User::find($id);\n $user->fill($request->all());\n if($request->hasFile('image')){\n $path = $request->file('image')->store('user');\n $file = Storage::delete($user->image);\n $user->image = $path;\n // dd(\"yey\",$user);\n }\n // dd(\"stop\",$user);\n $user->update();\n\n return redirect()->route('users.index');\n }", "title": "" }, { "docid": "68958d739424a9622fdca778a3822d3a", "score": "0.544828", "text": "public function update(StoreProduct $request, Product $product)\n {\n if($request->has('thumbnail')) {\n $name = basename($request->thumbnail->getClientOriginalName());\n $name = $name;\n $path = $request->thumbnail->move('productimages/', $name, 'public');\n }\n\n $product->name = $request->product_name;\n $product->price = $request->price;\n $product->desc = $request->desc;\n $product->quantity = $request->qty;\n $product->discount = $request->discount;\n $product->tax = $request->tax;\n $product->category_id = $request->category_id[0];\n $product->brand_id = $request->select_pharmacy[0];\n\n $image = ProductImage::where('image_id', '=', $product->id)->first();\n $image->image_path = $path;\n \n $product->save();\n $image->save();\n\n Session::flash('success', 'Product has been successfully updated!');\n\n return redirect()->route('admin.products.create', compact('product'));\n }", "title": "" }, { "docid": "b2886e9f73a0cf99ca3dd4d1756441e5", "score": "0.54461145", "text": "public function set(ResourceInterface $resource);", "title": "" }, { "docid": "9af94672d7f031c4cda0a455d6a11422", "score": "0.54421556", "text": "public function update(Request $request, $id)\n {\n $product = Product::findOrFail($id);\n $product->title = $request->title;\n $product->sku = $this->generateSKU();\n// if($request->input('slug')){\n// $product->slug = make_slug($request->input('slug'));\n// }else{\n// $product->slug = make_slug($request->input('title'));\n// }\n $product->slug = $this->makeSlug($request->slug);\n $product->status = $request->status;\n $product->price = $request->price;\n $product->discount_price = $request->discount_price;\n $product->description = $request->description;\n\n $product->meta_desc = $request->meta_desc;\n $product->meta_title = $request->meta_title;\n $product->meta_keywords = $request->meta_keywords;\n $product->user_id = Auth::id();\n\n $product->save();\n\n $photos = explode(',', $request->input('photo_id')[0]);\n\n\n $product->photos()->sync($photos);\n\n Session::flash('success', 'successfuly Edit product');\n return redirect('/administrator/products');\n\n }", "title": "" }, { "docid": "cb8621b723dc6fb774a0ae33c7eda6ca", "score": "0.54419065", "text": "public function update(StoreProductRequest $request, int $id)\n {\n $input = $request->only('title', 'description', 'price', 'category_id');\n Auth::user()->company->products()->find($id)->update($input);\n if ($request->hasFile('media')) {\n $files = $request->file('media');\n $this->productRepo->addMedia($files, $id);\n }\n return redirect(route('showMyProducts'));\n }", "title": "" }, { "docid": "fb30184e0b309716563a37352db2582d", "score": "0.5437578", "text": "public function put($data)\n {\n }", "title": "" }, { "docid": "fb30184e0b309716563a37352db2582d", "score": "0.5437578", "text": "public function put($data)\n {\n }", "title": "" }, { "docid": "98ab15cbe0428e7a24c838d3819e2bf9", "score": "0.5437555", "text": "public function update($id, Request $request, Product $product)\n {\n \t$productupdate = Product::find($id);\n\n if($request->hasFile('photo'))\n {\n\n @unlink(public_path().'/upload/product'.$productupdate->photo);\n \n $file = $request->file('photo');\n $path = public_path().'/upload/product';\n $filename = time().'.'.$file->getClientOriginalExtension();\n }\n if($file->move($path, $filename))\n {\n $productupdate->photo = $filename;\n }\n\n \t$productupdate->update($request->all());\n \treturn back();\n }", "title": "" }, { "docid": "c955211aedc76478d1650fdab80c5cff", "score": "0.542724", "text": "public function updatedProductById(Request $request, $id);", "title": "" }, { "docid": "5bafa084b714ad3beb62cc8123d05421", "score": "0.5426392", "text": "public function update(UpdateProductRequest $request, $id)\n {\n\n $data = Product::findOrFail($id);\n $data->update([\n 'name' => serialize($request->name),\n 'price' => $request->price,\n 'category_id' => $request->category_id,\n 'currency_id' => $request->currency_id,\n 'image' => Helper::UpdateImage($request, 'uploads/category/', 'image', $data->image)\n ]);\nif ($data)\n Alert::success(trans('backend.updateFash'))->persistent(trans('backend.close2'));\n\n return redirect()->route('product.index');\n }", "title": "" }, { "docid": "d3fa7e7b7a7e3977da33f1e0093d5f5b", "score": "0.5425214", "text": "public function resourceHasBeenUpdated();", "title": "" }, { "docid": "628f6fb199b5a72e6e84a33d9c6f9a5e", "score": "0.5424779", "text": "public function update(Request $request, $id)\n {\n $request->validate([\n 'picture' => 'image|sometimes|max:1999'\n\n ]);\n\n if($request->hasFile('picture')){\n // Get filename with the extension\n $filenameWithExt = $request->file('picture')->getClientOriginalName();\n // Get just filename\n $filename = pathinfo($filenameWithExt, PATHINFO_FILENAME);\n // Get just ext\n $extension = $request->file('picture')->getClientOriginalExtension();\n // Filename to store\n $fileNameToStore= $filename.'_'.time().'.'.$extension;\n // Upload Image\n $path = $request->file('picture')->storeAs('public/picture', $fileNameToStore);\n } else {\n $fileNameToStore = 'noimage.jpg';\n }\n\n $product= Product::find($id);\n $product->product_name = $request->product_name;\n $product->supplier_id = $request->supplier_id;\n $product->cat_id = $request->cat_id;\n $product->status = $request->status;\n $product->user_id = 1;\n $product->picture = $fileNameToStore;\n $product->alert_quantity = $request->alert_quantity;\n $product->sale_price = $request->sale_price;\n $product->purches_price = $request->purches_price;\n $product->profit = $request->profit;\n\n\n $product->save();\n\n return redirect('/product');\n }", "title": "" }, { "docid": "f078dcf8f707bde762a227c61968e661", "score": "0.54241914", "text": "public function update($id, array $data){\n $product = Product::find($id);\n if(!empty($data['image'])){\n $titleShort = Str::slug(substr($data['title'], 0, 20));\n $data['image'] = UploadHelper::update('image', $data['image'], $titleShort.'-'. time(), 'images/products', $product->image); \n }else{\n $data['image'] = $product->image;\n }\n if (is_null($product))\n return null;\n\n $product->update($data);\n return $this->getByID($product->id);\n }", "title": "" }, { "docid": "06b935ea46fe7f6ab5cf585a11f5279e", "score": "0.5422626", "text": "public function update(ValidateProductInformation $request, Product $product)\n {\n $data = $request->all();\n $data['slug'] = str_slug($data['name']);\n $path = $product->image;\n if($request->file('image')!=null){\n $path = $request->file('image')->store('public/products');\n }\n\n $data['image'] = $path;\n $product->update($data);\n return redirect('/products');\n }", "title": "" }, { "docid": "a8a0978e247663271949812bb1f0e921", "score": "0.5421746", "text": "public function update(Request $request, $id)\n {\n $id = $request->id;\n if($request->hasFile('image')){\n Product::where('id',$id)->update([\n 'title'=>$request->title,\n 'textarea'=>$request->textarea,\n 'quantity'=>$request->quantity,\n 'price' =>$request->price,\n 'offer_price'=>$request->offer_price,\n 'status'=>$request->status,\n 'created_at' => Carbon::now(),\n ]);\n $path = $request->file('image')->store('imagestore');\n Product::find($id)->update([\n 'image'=> $path\n ]);\n return redirect()->route('product.index')->with('success',' Update Succesfully');\n }\n else{\n Product::where('id',$id)->update([\n 'title'=>$request->title,\n 'textarea'=>$request->textarea,\n 'quantity'=>$request->quantity,\n 'price' =>$request->price,\n 'offer_price'=>$request->offer_price,\n 'status'=>$request->status,\n 'created_at' => Carbon::now(),\n ]);\n return redirect()->route('product.index')->with('success','Update Succesfully');\n } \n\n }", "title": "" }, { "docid": "66743027520aa87b03d09a35564488ce", "score": "0.5420195", "text": "public function update(Request $request, $id)\n {\n $products = Product::find($id);\n\n $products->name = $request->name;\n $products->description = $request->description;\n $products->price = $request->price;\n $products->quantity = $request->quantity;\n\n $products->cat_id = $request->cat_id;\n if($request->hasFile('image')){\n\n $image = $request->file('image');\n $filename = time() . '.' . $image->getClientOriginalExtension();\n $location = public_path('uploads/images/' . $filename);\n Image::make($image)->save($location);\n\n $oldfilename = $products->image;\n //update the db\n $products->image = $filename;\n //delete the old image \n Storage::delete($oldfilename);\n }\n $products->save();\n\n if (isset($request->tags)) {\n $products->tags()->sync($request->tags);\n } else {\n $products->tags()->sync(array());\n }\n \n Session::flash('success', 'This post was successfully saved.');\n return redirect::route('product',$products->id);\n\n }", "title": "" }, { "docid": "97031ad94f3ce077f62b44e5b800499e", "score": "0.5410227", "text": "public function update(Request $request, $id)\n {\n $encrypt_decrypt = encrypt_decrypt('decrypt',$id);\n if($encrypt_decrypt === false){\n abort(403);\n }else{\n $this->validate($request, [\n 'name' => 'required',\n 'detail' => 'required',\n 'price' => 'required|numeric',\n 'in_stock' => 'required|numeric',\n ]);\n\n\n $product = Product::find($encrypt_decrypt);\n $product->name = $request->input('name');\n $product->detail = $request->input('detail');\n $product->price = $request->input('price');\n $product->in_stock = $request->input('in_stock');\n if($request->hasFile('file')){\n @unlink($product->photo);\n $filename = time().'.'.$request->file('file')->getClientOriginalExtension();\n $product->photo = 'public/img/product/new-product/' . $filename;\n $request->file('file')->move(public_path('public/img/product/new-product'), $filename);\n }\n $product->save();\n \n return redirect()->route('products.index')\n ->with('success','product updated successfully');\n }\n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5403173", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5403173", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5403173", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5403173", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5403173", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5403173", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5403173", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5403173", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5403173", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "8f9ad063c18a5eeb38cd6267a01f3028", "score": "0.5403173", "text": "public function update($id)\n {\n \n }", "title": "" } ]
827ec801ef075895540b55d70aade01b
This method returns the number of borrowers in the database
[ { "docid": "c55f3d810571f2f6df7991565dc7d1fe", "score": "0.8362078", "text": "static function getBorrowerCount()\n {\n $sql = \"SELECT COUNT(*) FROM borrowers\";\n $q = self::getConn()->query($sql);\n $rv = $q->fetchColumn();\n $q->closeCursor();\n return $rv;\n }", "title": "" } ]
[ { "docid": "984435993a9773b88fb211659ab7f35e", "score": "0.6779395", "text": "public function getBindedDealersCount() {\n return DealerTable::getInstance()->createQuery()->where('dealer_group_id = ?', $this->getId())->count();\n }", "title": "" }, { "docid": "2c5e59feb0932710a96d72fe04157154", "score": "0.64574337", "text": "function numberOfCloseAccounts(){\n\n\t\tinclude('../connection.php');\n\t\t$close_acc_sql = \"SELECT RemarksID FROM Remarks\";\n\t\t$res_close_acc = mysqli_query($conn, $close_acc_sql);\n\t\t$close_acc_count = mysqli_num_rows($res_close_acc);\n\n\t\techo htmlspecialchars($close_acc_count);\n\t}", "title": "" }, { "docid": "9fb6caa9a1655e51a961d8ae90b80617", "score": "0.63737506", "text": "public function get_book_num()\n\t{\n\t\treturn $this->db->count_all($this->table);\n\t}", "title": "" }, { "docid": "20a28b2b014d6608c4a1affb50b724bc", "score": "0.6367856", "text": "static public function totalBrews(){\n\t\t\t\t\n\t// query \n\t$oCon = new Connection();\n\t//$sSql = \"SELECT `beerID` FROM `availability` WHERE locationID='$locationID' ORDER BY beerID DESC\";\n\t$sSql = \"SELECT COUNT(*) FROM beer\";\n\n\t$oResultSet = $oCon->query($sSql);\n\t\t\n\t// load all subjects and add to array\n\t$aRow = $oCon->fetchArray($oResultSet);\n\t$iTotal = $aRow[\"COUNT(*)\"];\n\t\n\t$oCon->close();\n\treturn $iTotal;\n\t}", "title": "" }, { "docid": "2d65dbf96f8ae4e24508ec5f4eb070b0", "score": "0.6321222", "text": "function getNumUsers(){\n return dbCount('customer');\n}", "title": "" }, { "docid": "3c3dc5cbd8645b212a64b7e8c31c5fe6", "score": "0.6297286", "text": "function getNumOrders(){\n return dbCount('orderbook');\n}", "title": "" }, { "docid": "e7659e8f1529ca06a10f5a68ac36a8f4", "score": "0.6290494", "text": "public static function count()\n {\n $count = self::select(['COUNT(*) as nbrec'])->first();\n return $count->nbrec;\n }", "title": "" }, { "docid": "bdc6f6e0acdb8a4ae099c3282a40a576", "score": "0.62377924", "text": "public function count()\n {\n return count($this->pool);\n }", "title": "" }, { "docid": "788204c83bfadc22919216cfea2eb8f9", "score": "0.622065", "text": "public function getCount()\n {\n\t\t$Store = new Store();\n\t\t$count = $Store->count();\n return $count;\n }", "title": "" }, { "docid": "031cd481d3b79ccf42cf94445d27cc60", "score": "0.62084687", "text": "private function getCheckCount()\n {\n $stmt = Database::getInstance()->getConnection()->prepare(\"SELECT count(*) as rowcount FROM `check` WHERE user = ?\");\n $stmt->bind_param('i', $this->id);\n $stmt->execute();\n $res = $stmt->get_result();\n $stmt->close();\n $row = $res->fetch_object();\n return $row->rowcount;\n }", "title": "" }, { "docid": "6bfbcb5b4bda1f8770b03a65151169e2", "score": "0.61865264", "text": "public function getTotalOfficers()\n {\n $total = DB::table('healthworkers')->count('id');\n return $total;\n }", "title": "" }, { "docid": "7281ff67aed0859542d0453a8e113c21", "score": "0.6178488", "text": "function ml_memberCount()\n{\n\t$db = database();\n\n\t$request = $db->query('', '\n\t\tSELECT \n\t\t\tCOUNT(*)\n\t\tFROM {db_prefix}members\n\t\tWHERE is_activated = {int:is_activated}',\n\t\tarray(\n\t\t\t'is_activated' => 1,\n\t\t)\n\t);\n\tlist ($num_members) = $request->fetch_row();\n\t$request->free_result();\n\n\treturn $num_members;\n}", "title": "" }, { "docid": "5e0a2dc8f4153ccf7064adb187bc5cd7", "score": "0.61470777", "text": "static function getAuthorCount()\n {\n $sql = \"SELECT COUNT(*) FROM authors\";\n $q = self::getConn()->query($sql);\n $rv = $q->fetchColumn();\n $q->closeCursor();\n return $rv;\n }", "title": "" }, { "docid": "c35a526a074b6b8d2e7ef469d8a9e722", "score": "0.6146559", "text": "public function get_num_items(){\n $this->Connect->set_list(true);\n $data = $this->Connect->fetch(\"SELECT id FROM notific WHERE touser = $this->touser\");\n return $data ? count($data) : 0;\n }", "title": "" }, { "docid": "67f457043a89117292f0b9925578d617", "score": "0.61328906", "text": "function getDetailsCount()\n {\n $sql = \"SELECT COUNT(*) FROM books WHERE author=$this->id\";\n $q = Model::getConn()->query($sql);\n $rv = $q->fetchColumn();\n $q->closeCursor();\n return $rv;\n }", "title": "" }, { "docid": "e20a89e9b8e41d2686b9f71d48d42d7a", "score": "0.6120426", "text": "public function countUsers()\n {\n \t$db = $this->dbConnect();\n \t$req = $db->prepare('SELECT COUNT(*) AS nb FROM user');\n \t$req->execute();\n\n \treturn $req;\n }", "title": "" }, { "docid": "bd3836e1653d7abe7b75f3d3e85d27ba", "score": "0.6109086", "text": "public function count() {\r\n\t\t$count = $this->getRepository()->count();\r\n\t\treturn $count;\r\n\t}", "title": "" }, { "docid": "94a92cb4944503571da34cae413e09f9", "score": "0.6107681", "text": "public function getUnclaimedLockersCountAttribute()\n {\n if ($this->unclaimed_lockers_count === null) {\n $bought = $this->sales()->locker()->sum('quantity');\n $owned = $this->lockers()->where('status', '=', \"taken\")->count();\n\n $this->unclaimed_lockers_count = $bought - $owned;\n }\n\n return $this->unclaimed_lockers_count;\n }", "title": "" }, { "docid": "4f867a40652df68690b40adbd939422b", "score": "0.6102616", "text": "public function count()\n {\n return \\count($this->exchanges);\n }", "title": "" }, { "docid": "d0c15408039a2879732a694d2f184272", "score": "0.61014646", "text": "function db_count(){\r\n\t\t$db = get_db();\r\n\t\tif($db ==0)\r\n\t\t\treturn 'DB Connection Error!';\r\n\r\n\t\t//$result = pg_query($db, 'SELECT count (id) from tweet');\r\n\t\t$result = db_fetch_cached('SELECT count (id) from tweet');\r\n\t\t//return pg_fetch_result($result,0);\r\n\t\treturn $result[0]['count'];\r\n\t}", "title": "" }, { "docid": "d56ceb45ca5be0a0e22d0047f41fb63e", "score": "0.609225", "text": "public function count()\n {\n $databaseManager = Rbac::getInstance()->getDatabaseManager();\n \n $Res = $databaseManager->request(\n \"SELECT COUNT(*) FROM {$databaseManager->getTablePrefix()}{$this->type}\"\n );\n return (int)$Res[0]['COUNT(*)'];\n }", "title": "" }, { "docid": "dc1f42b56fc997e212aeb9d08d8e6567", "score": "0.6092169", "text": "public function count(): int\n {\n return $this->get()->count();\n }", "title": "" }, { "docid": "1743cd3305e63a1db962b75a58a92ea4", "score": "0.60901946", "text": "public function getCargoCount() {\n return DB::table('cargo_release_detail')->where('cargo_release', '=', $this->id)->count();\n }", "title": "" }, { "docid": "a8c2fcfbbf406a778789e89235a33173", "score": "0.6082803", "text": "public function getCount()\n {\n return count($this->bees);\n }", "title": "" }, { "docid": "eaddcf2f431f169211c27e510973ca95", "score": "0.6073724", "text": "function booking_get_user_booking_count($booking, $user, $bookinglist) {\n global $DB;\n\n $result = $DB->get_records('booking_answers', array('bookingid' => $booking->id, 'userid' => $user->id));\n\n return count($result);\n}", "title": "" }, { "docid": "348a2e7ae79e76af63d4b161b7f46936", "score": "0.6070055", "text": "public function count() {\n\t\treturn count ( $this->users );\n\t}", "title": "" }, { "docid": "637285a56344c9fcbf41ea0c5f34649f", "score": "0.6064571", "text": "public function count()\n {\n $sql = 'SELECT COUNT(id) AS counter FROM items';\n $this->items_count = $this->dbConnect($sql);\n $items = $this->items_count->fetch(\\PDO::FETCH_ASSOC);\n $number_of_items = $items['counter'];\n return $number_of_items;\n }", "title": "" }, { "docid": "e8fb1a9342feab0c6649fa5f2cf518ec", "score": "0.60601175", "text": "public function count()\n {\n return $this->_getDatabaseConnection()->length($this->_getTableName());\n }", "title": "" }, { "docid": "9a22f5dfaaa4f71c15e59b0ce98c6d36", "score": "0.6058063", "text": "public function count() : int\n {\n return $this->store::hget($this->cacheKey, $this->field) ?? 0;\n }", "title": "" }, { "docid": "9148a15050e3632ea007ff7522a64885", "score": "0.6055283", "text": "public function getCount() {\n \treturn $this->count();\n }", "title": "" }, { "docid": "192f6a7361ee4b344e0fdb585482fe14", "score": "0.60495317", "text": "function count( ) {\n $this->initialize();\n $sql = $this->all( );\n $dao = CRM_Core_DAO::executeQuery($sql, CRM_Core_DAO::$_nullArray);\n return $dao->N;\n }", "title": "" }, { "docid": "fc957a852a74b9f74903d2a90002b293", "score": "0.6045322", "text": "public function count(){\n\t\t$stmt = $this->getDbConnection()->query(\"SELECT count(*) AS count FROM `\".$this->tableName().\"`\");\n\t\t$record = $stmt->fetch();\n\t\treturn $record['count'];\n\t}", "title": "" }, { "docid": "6c437250c1ba4f01a867f681189479e1", "score": "0.60440314", "text": "static function getDetailsCount()\n {\n $sql = \"SELECT COUNT(*) FROM books\";\n $q = self::getConn()->query($sql);\n $rv = $q->fetchColumn();\n $q->closeCursor();\n return $rv;\n }", "title": "" }, { "docid": "1e477d7d0b21a8e2a4a63b44fff79089", "score": "0.60308665", "text": "public function count()\n {\n if (is_null($this->_count)) {\n $this->_count = count(\n $this->_search(array('AND' => array(\n array('field' => $this->toDriver('__owner'),\n 'op' => '=',\n 'test' => $this->getContactOwner()))),\n array($this->toDriver('__key')))\n );\n }\n\n return $this->_count;\n }", "title": "" }, { "docid": "9dcc2b277b0e8a266ed9b7b3c51c4f49", "score": "0.6025487", "text": "public function count() {\n\n\t\treturn $this->num;\n\n\t}", "title": "" }, { "docid": "eb90b209f7fad7f787bac5148bf13b48", "score": "0.6019455", "text": "public function count(): int\n {\n return $this->repository->count();\n }", "title": "" }, { "docid": "3e32b54758e596ffe0dab0b1ef19bd1e", "score": "0.6015771", "text": "function getUserCount()\r\n {\r\n $db = JFusionFactory::getDatabase($this->getJname());\r\n $query = 'SELECT count(*) from #__members';\r\n $db->setQuery($query );\r\n\r\n //getting the results\r\n return $db->loadResult();\r\n }", "title": "" }, { "docid": "793d5848e22bfc710452b9f25156d0d0", "score": "0.6005016", "text": "public function counter()\n\t{\n\t\treturn mysql_num_rows($this->manejador);\n\t}", "title": "" }, { "docid": "d4351965aba352e3ea65ca3fff82dea7", "score": "0.6004314", "text": "private function GetNumUsers()\r\n {\r\n if ( !$this->db )\r\n return -1;\r\n \r\n $resValue = 0;\r\n $result = $this->db->Execute( $this->query_NumUsers );\r\n if ( $result != NULL )\r\n {\r\n if ( $line = mysql_fetch_array($result, MYSQL_ASSOC) )\r\n {\r\n $resValue = $line[\"c\"];\r\n } \r\n }\r\n \r\n return $resValue; \r\n }", "title": "" }, { "docid": "f07f5ebf31b21155fdb5e09fe66dbf2a", "score": "0.60033417", "text": "public function count() {\n\t\treturn $this->_count();\n\t}", "title": "" }, { "docid": "2f20d4d36aa733c031c32a09996b5900", "score": "0.60024", "text": "public static function getAccountsCount();", "title": "" }, { "docid": "4ffcd68cfae2876b9636cc7bc02446b0", "score": "0.6000038", "text": "public function count()\n\t\t{\n\t\t\tif(!$this->_transaction) $this->_load();\n\t\t\treturn count($this->_data);\n\t\t}", "title": "" }, { "docid": "f72c720e85084ed3bb66513fa52cdd83", "score": "0.5996923", "text": "public static function getCompaniesCount(){\n return DB::table('table_companies')\n ->select('table_companies.company_id')\n ->count();\n }", "title": "" }, { "docid": "a87734c6d8ab68aca6a08412a6a9d720", "score": "0.5996458", "text": "function num() {\n\t\treturn count($this->get());\n\t}", "title": "" }, { "docid": "6bea2c50257c866ff9fbe7822bdb44ec", "score": "0.59917927", "text": "public function count()\n {\n return count($this->get());\n }", "title": "" }, { "docid": "dccbb40efcd1fd1f5a6b014499480b58", "score": "0.599179", "text": "public function count() {\n\t\treturn count($this->required_retreats);\n\t}", "title": "" }, { "docid": "58dd615f781c63491c49aa0bddc28b35", "score": "0.59783876", "text": "public final function getCount() {\n return $this->db->query('select count(id) from '.static::TABLE_NAME)->fetch()['count'];\n }", "title": "" }, { "docid": "5a90a5a3d28f107638757b16ba0fcce5", "score": "0.5976775", "text": "public function getCount()\n {\n return $this->redis_client->strlen($this->key_name);\n }", "title": "" }, { "docid": "c4fa77fbee8478a957f7c0d055923c18", "score": "0.59737104", "text": "function userDbCount() {\n return $this->userdb->getOne(\"SELECT count(*) FROM fe_users\"); \n }", "title": "" }, { "docid": "c80a2e89e7f21072fe23785959627474", "score": "0.59716785", "text": "public function getCount() {\n $this->_prepare();\n return $this->count;\n }", "title": "" }, { "docid": "a10c7e9cfca1b1acbaf3dcd1f5921db0", "score": "0.5970039", "text": "public function count():int\n {\n $book_count = pg_execute($this->connection, 'count_books', []);\n $this->check_for_errors($book_count);\n\n return (int) pg_fetch_result($book_count, 0 , 0) ?? 0;\n }", "title": "" }, { "docid": "42bedc83958e897fb59adf48a1563eb1", "score": "0.59677917", "text": "function count()\n\t{\n\t\tif( $statement = \\DatabaseManager\\prepare('SELECT COUNT(id) AS count FROM reference_value') )\n\t\t{\n\t\t\tif( \\DatabaseManager\\execute($statement) )\n\t\t\t{\n\t\t\t\tif( $count = $statement->fetch() )\n\t\t\t\t{\n\t\t\t\t\treturn (int)$count['count'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "38a2dc14f7d2c2ca1d4a7156c0d4a542", "score": "0.5963292", "text": "public function count()\n {\n return count($this->grants);\n }", "title": "" }, { "docid": "38a2dc14f7d2c2ca1d4a7156c0d4a542", "score": "0.5963292", "text": "public function count()\n {\n return count($this->grants);\n }", "title": "" }, { "docid": "718a9313010d514a19b86ec6b5720820", "score": "0.5961823", "text": "function getNumMembers() {\n if ($this->num_members < 0) {\n $q = \"SELECT * FROM \" . TBL_USERS;\n $result = mysql_query($q, $this->connection);\n $this->num_members = mysql_numrows($result);\n }\n return $this->num_members;\n }", "title": "" }, { "docid": "cce3de1c97c177da7d0db8f0573e1ebc", "score": "0.5960243", "text": "public function getAllCount() {\n\n \t\t$criteria = new Criteria();\n \t\t$count = BillboardPeer::doCount($criteria);\n \t\treturn $count;\n \t\n }", "title": "" }, { "docid": "db6b3b7fbea485bfa08c9a52e3cb3789", "score": "0.5956517", "text": "public function count()\n {\n return $this->getCount();\n }", "title": "" }, { "docid": "db6b3b7fbea485bfa08c9a52e3cb3789", "score": "0.5956517", "text": "public function count()\n {\n return $this->getCount();\n }", "title": "" }, { "docid": "0491ec4f96a683befb19ca55dbd9aa8f", "score": "0.5954873", "text": "public function count()\n {\n return $this->find()->count();\n }", "title": "" }, { "docid": "629069c853db52858f90aa4db4b68fac", "score": "0.5943221", "text": "public function getCount()\n {\n return $this->count();\n }", "title": "" }, { "docid": "579cbe2ae898e57a8aa3d84472f0db4b", "score": "0.5939385", "text": "public function count()\n\t{\n\t\treturn $this->db->get($this->_table)->num_rows();\n\t}", "title": "" }, { "docid": "3947b493bde3c089d5aa911fe88d574b", "score": "0.5936771", "text": "public function getAccountCount()\n\t\t{\n\n\t\t\treturn self::$banks->getAccountCount();\n\t\t}", "title": "" }, { "docid": "6451f7034b1b1c3921dad16bfa8350a8", "score": "0.5933084", "text": "public function getNumberOfLicensesUsed ()\n {\n return count(UserMapper::getInstance()->fetchUserListForDealer($this->id));\n }", "title": "" }, { "docid": "7248ba537b581982071d650589c5f163", "score": "0.59297156", "text": "public function count()\n {\n $this->notifyAccess();\n return $this->total;\n }", "title": "" }, { "docid": "bce21b561fc9f686c273cf346fb18301", "score": "0.59296703", "text": "public function countCheckin()\n\t{\n\t\t$year = date('Y');\n\t\t$firstDay = date('Y-m-d', mktime(0,0,0, 1, 1, $year));\n\n\t\t$sql = \"SELECT count(id_checkin) CONTEO\";\n\t\t$sql.= \" FROM new_checkin\";\n\t\t$sql.= \" WHERE checkin_date >= '$firstDay'\";\n $query = $this->db->query($sql);\n $row = $query->row();\n return $row->CONTEO;\n\t}", "title": "" }, { "docid": "fac2588b95e9d6fb23bfbd3c79826872", "score": "0.5929663", "text": "public function count()\n {\n return count($this->advisors);\n }", "title": "" }, { "docid": "1bbd2509599a23c08978a9489e7534e4", "score": "0.5926712", "text": "public function getCount() {\n\n\t\t$count =$this->db->count_all('user');\n\n\t\tif($count > 0) {\n\t\t\treturn $count;\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "d739d34337ea7397713398e625e90347", "score": "0.59221506", "text": "public function getMineCount(): int;", "title": "" }, { "docid": "1d4400562600933e4b19a5dc5ed9469b", "score": "0.5916689", "text": "function nombre_membres(){\n\t\tglobal $db;\n \t$existe=$db->query(\"SELECT id FROM utilisateurs\");\n \t$count=$existe->rowCount();\n \treturn $count;\n\t}", "title": "" }, { "docid": "2a83ef65e2cdd6abf25787697f42c3b8", "score": "0.5916287", "text": "public function numberOfAccounts(): int\n {\n return $this->numberOfAccounts;\n }", "title": "" }, { "docid": "024a5d6363c819662bd9f0ffa3653c9e", "score": "0.5915735", "text": "function getNbBillets()\n\t{\n\t\t// si on n'a pas la valeur on requete la base\n\t\tif($this->nbbillet == 0)\n\t\t{\n\t\t\t// echo \"<li>je cherche en base</li>\";\n\t\t\t$reqCount = $this->database->query('\n\t\t\t\tSELECT COUNT(id) AS nb_billets\n\t\t\t\tFROM ' . Billet::tableName )\n\t\t\t\tor die( var_dump( $reqCount->errorInfo() ));\n\t\t\tif($row = $reqCount->fetch( PDO::FETCH_ASSOC ))\n\t\t\t{\n\t\t\t\t$this->nbbillet = $row['nb_billets'];\n\t\t\t}\n\t\t}\n\t\t\n\t\t// on retourne le nb de billets\n\t\treturn $this->nbbillet;\n\t}", "title": "" }, { "docid": "293bc5dc597fbbeda7c43f934999935e", "score": "0.59115815", "text": "function countReferences()\n\t{\n\t\tglobal $ilDB;\n\t\t\n\t\tif (!isset($this->id))\n\t\t{\n\t\t\t$message = \"ilObject::countReferences(): No obj_id given!\";\n\t\t\t$this->ilias->raiseError($message,$this->ilias->error_obj->WARNING);\n\t\t}\n\n\t\t$query = \"SELECT COUNT(ref_id) num FROM object_reference \".\n\t\t \t\"WHERE obj_id = \".$ilDB->quote($this->id,'integer').\" \";\n\t\t$res = $ilDB->query($query);\n\t\t$row = $ilDB->fetchObject($res);\n\n\t\treturn $row->num;\n\t}", "title": "" }, { "docid": "ce10511d544435e71526d08574cb3be6", "score": "0.5910658", "text": "public function count()\n {\n return (int)$this->db->fetchColumn($this->getSqlForCount(), $this->params);\n }", "title": "" }, { "docid": "ba46db1a3f91140711e7ac31f4c2ea99", "score": "0.59006107", "text": "function getNumMembers(){\n if($this->num_members < 0){\n $q = \"SELECT * FROM \".CO_TBL_USERS;\n $result = mysql_query($q, $this->connection);\n $this->num_members = mysql_numrows($result);\n }\n return $this->num_members;\n }", "title": "" }, { "docid": "9f05de97534c621c130f60d0d9559ff1", "score": "0.58992004", "text": "function getNumMembers()\n\t{\n\t\tif($this->num_members < 0)\n\t\t{\n\t\t\t$q = \"SELECT timestamp FROM \".TBL_USERS;\n\t\t\t$result = mysql_query($q, $this->connection);\n\t\t\t$this->num_members = mysql_numrows($result);\n\t\t}\n\t\treturn $this->num_members;\n\t}", "title": "" }, { "docid": "67eda4bb94835d6e17ea6450390b0863", "score": "0.5898583", "text": "public function count() : int\n {\n return $this->numRows();\n }", "title": "" }, { "docid": "a12f87edabe8df5b6c7fc3d8082f7f67", "score": "0.5895588", "text": "public function borrows()\n {\n $borrows=BookIssue::where('book_id', $this->id)->where('expiry_date','!=',null)->count();\n\n return $borrows;\n }", "title": "" }, { "docid": "ca7699eb32c2b8dd1a639eae9294a513", "score": "0.58938247", "text": "public function get_numbooks(){\n $mybooks = new BooksParse(\"bookdata/\".$this->username.\".xml\");\n return $mybooks->get_numBooks();\n }", "title": "" }, { "docid": "9434ab78e56b6d43c1d7b28251f085c1", "score": "0.58914465", "text": "public function getCount()\n\t{\n\t\treturn $this->_count;\n\t}", "title": "" }, { "docid": "c27c48196e91b56e5c5a0c729dd3d67f", "score": "0.5886121", "text": "public function checkpendingVouchers(){\n $query = \"SELECT COUNT(VoucherBatchInfoID) AS Count FROM voucherbatchinfo WHERE Status = 0\";\n $sql = Yii::app()->db->createCommand($query);\n \n $result = $sql->queryRow();\n \n foreach ($result as $value) {\n $vouchercount = $value['Count'];\n }\n \n return $vouchercount;\n }", "title": "" }, { "docid": "ca4a98d4d153cfd512a6bd68b3ef1bcc", "score": "0.5879697", "text": "public function count()\n {\n return Redis::get($this->cacheKey()) ?? 0;\n }", "title": "" }, { "docid": "24f29413f0a75ecc2cfa7544b7b1f10f", "score": "0.5878892", "text": "public function count()\n {\n return count($this->find());\n }", "title": "" }, { "docid": "41b62da7459e3de2ca92cb9cb9ac29e1", "score": "0.5878202", "text": "public function count()\n {\n return 1;\n }", "title": "" }, { "docid": "12be40e20f25ab4683ad05dd226d9ea1", "score": "0.587325", "text": "public function count()\n {\n return $this->user->count();\n }", "title": "" }, { "docid": "ebf9165d53327a33d756ca204997c85e", "score": "0.5865539", "text": "public function count() : int\n {\n return count($this->all());\n }", "title": "" }, { "docid": "06d874b20bab61831f7ffb562c70b25d", "score": "0.5865456", "text": "public static function getNumBadgesGot() {\n return DbBadge::getNumGot();\n }", "title": "" }, { "docid": "fec5483196f87796fc1f44c97b61baf4", "score": "0.58648765", "text": "function getRecordCount() {\n $result = $GLOBALS['db']->query( 'SELECT COUNT(1) AS count FROM ' . $this->bean->table_name );\n $row = $GLOBALS['db']->fetchByAssoc( $result );\n return isset( $row['count'] ) ? $row['count'] : 0;\n\n }", "title": "" }, { "docid": "f5b34268e2e61d1fbded7c0259ba8283", "score": "0.5864296", "text": "public function count() : int\n {\n return count($this->set);\n }", "title": "" }, { "docid": "18f19c58c4a96c78a8752340289a02b8", "score": "0.5861564", "text": "function getCount() {\n\t\t\tif (is_null($this->count)) {\n\t\t\t\t$this->count = 0;\n\t\t\t}\n\t\t\treturn $this->count;\n\t\t}", "title": "" }, { "docid": "98e8716844d1d074437d45cbab265e25", "score": "0.5860285", "text": "public function count()\r\n\t{\r\n\t\treturn count( $this->getAll() );\r\n\t}", "title": "" }, { "docid": "d3487eb1a6dc88920e9dae3816f6e1d6", "score": "0.58587986", "text": "public function getEntryCount()\n {\n $myConfig = $this->getConfig();\n $oDb = oxDb::getDb();\n\n // loading entries\n $sSelect = 'select count(*) from oxgbentries left join oxuser on oxgbentries.oxuserid = oxuser.oxid ';\n $sSelect .= 'where oxuser.oxid is not null and oxgbentries.oxshopid = \"' . $myConfig->getShopId() . '\" ';\n\n // setting GB entry view restirction rules\n if ($myConfig->getConfigParam('blGBModerate')) {\n $oUser = $this->getUser();\n $sSelect .= \" and ( oxgbentries.oxactive = '1' \";\n $sSelect .= $oUser ? \" or oxgbentries.oxuserid = \" . $oDb->quote($oUser->getId()) : '';\n $sSelect .= \" ) \";\n }\n\n // loading only if there is some data\n $iRecCnt = (int) $oDb->getOne($sSelect);\n\n return $iRecCnt;\n }", "title": "" }, { "docid": "7dc337888cf5ef3bd6311ecfec60151b", "score": "0.5854917", "text": "public function count() {\n\t\t\tglobal $db;\n\t\t\t$result = $db->exe_query( \"SELECT * FROM tbl_admininfo\" );\n\t\t\t$count = $db->num_rows( $result );\n\t\t\treturn $count;\n\t\t}", "title": "" }, { "docid": "a07e22ccfa1962429517c0c5af633c64", "score": "0.58531", "text": "public function count(){\n\t\t// Get data\n\t\t$this->_initCursor();\n\t\treturn count(iterator_to_array($this->cursor));\n\t}", "title": "" }, { "docid": "a6b01cedb891262be5a8e34e3e4d2f71", "score": "0.58520055", "text": "public function getCount() : int\n\t{\n\t\treturn count($this->data);\n\t}", "title": "" }, { "docid": "8905471b82abc7fffe394e91cf0cc402", "score": "0.5845065", "text": "public function getBeneficiaryCount()\n {\n return count($this -> beneficiaries);\n }", "title": "" }, { "docid": "818f369aac16466f4ee7401894a23992", "score": "0.58438873", "text": "public function count(){\n\t\t$sql = 'SELECT COUNT(*) AS `count` ';\n\t\t$sql .= 'FROM `' . $this->getTableName() . '` ';\n\t\t$sql .= 'WHERE `calendarid` = ?';\n\t\t$params = [$this->calendar->getId()];\n\n\t\t$row = $this->findOneQuery($sql, $params);\n\t\treturn intval($row['count']);\n\t}", "title": "" }, { "docid": "8af98f1d8a24f135ec0af5db585f72dc", "score": "0.58411247", "text": "public function count()\n {\n $query = clone $this;\n $query->select = 'count(*)';\n return (int)$query->execute()->fetch(PDO::FETCH_NUM)[0];\n }", "title": "" }, { "docid": "563641999db9dcc5166a41ad2a52a92d", "score": "0.583881", "text": "public function getcount()\n {\n return $this->db->count_all($this->table);\n }", "title": "" }, { "docid": "e34c2e03f38753ec9c77ff823fb89038", "score": "0.58326125", "text": "public function numberOfUsers() {\n return $this->userDao->numberOfUsers();\n }", "title": "" }, { "docid": "0e03721992586857485392a4a3749ec5", "score": "0.5831542", "text": "public function getCount()\n\t{\n\t\treturn count($this->_d);\n\t}", "title": "" } ]
88f124c7d3503860a893cd4e0c085d51
Check is user has a role.
[ { "docid": "988bd540ce552ca481ea22eb720a3c45", "score": "0.7927584", "text": "public function hasRole($role);", "title": "" } ]
[ { "docid": "542e59171ccf38fd463b00ea62e91777", "score": "0.80839264", "text": "public function hasRole()\n {\n $data = $this->roles->first();\n\n if ($data === NULL) return false;\n\n return true;\n }", "title": "" }, { "docid": "3fb0c1040c5307b92730d54b8cd17611", "score": "0.79684293", "text": "public function hasRole($role): bool;", "title": "" }, { "docid": "3e5fdf5c16ad2cf78e47eb087a862b96", "score": "0.7958043", "text": "function roles_has_role($user = null, $role_name = DEFAULT_ROLE) {\r\n\treturn roles()->hasRole($user, $role_name);\r\n}", "title": "" }, { "docid": "1dec9b78c5a0b835b827de692e6719ac", "score": "0.7882139", "text": "function isRole($role);", "title": "" }, { "docid": "dc5bf545325a87c0990d574abbee6342", "score": "0.78752416", "text": "public function hasRole(string $role) : bool;", "title": "" }, { "docid": "43bef9cd0c8ded05575083acb1f11d3b", "score": "0.78373504", "text": "function is_user_role($role)\n{\n $currentUser = wp_get_current_user();\n return in_array($role, $currentUser->roles);\n}", "title": "" }, { "docid": "f7276dd02d7e5ec742a569e735c226da", "score": "0.78013545", "text": "function check_user_role( $role, $user_id = null ) {\n if ( is_numeric( $user_id ) )\n $user = get_userdata( $user_id );\n else\n $user = wp_get_current_user();\n if ( empty( $user ) )\n return false;\n return in_array( $role, (array) $user->roles );\n}", "title": "" }, { "docid": "88c44a30c3f3c2b623f2ea6e5e0fc38f", "score": "0.77831465", "text": "private function hasRole()\n {\n return (Auth::user()->roles()->count() > 0) ? true : false;\n }", "title": "" }, { "docid": "d95c4aa62b7ec8ed6e4c642eeb15458d", "score": "0.77604693", "text": "public function hasRol($role);", "title": "" }, { "docid": "8afa645673d5b747a3a187239ebc02b8", "score": "0.77553934", "text": "function check_user_role( $role, $user_id = null ) {\n if ( is_numeric( $user_id ) ) {\n\t $user = get_userdata( $user_id );\n } else {\n $user = wp_get_current_user();\n\t}\n if ( empty( $user ) ) {\n\t return false;\n }\n return in_array( $role, (array) $user->roles );\n}", "title": "" }, { "docid": "10fdb6671b555bc737da6785393a1b3e", "score": "0.7638854", "text": "public function hasRole($roleName);", "title": "" }, { "docid": "10fdb6671b555bc737da6785393a1b3e", "score": "0.7638854", "text": "public function hasRole($roleName);", "title": "" }, { "docid": "10a0d42ca37c28467dd5b9579543f200", "score": "0.76167125", "text": "public function hasRole($name);", "title": "" }, { "docid": "b8977289ef69d940538921d990ecd0eb", "score": "0.76082337", "text": "function is($role) {\n if(Auth::check() && Auth::user()->is($role))\n return true;\n\n return false;\n}", "title": "" }, { "docid": "55c903b9b219e5e00234f9da8b667eec", "score": "0.7580597", "text": "public function hasRole($role){\n /*Si mi modelo actual, el cual es mi usuario, dentro de su relación con roles,\n *donde le vamos a pasar el nombre de ese rol, pues existe.\n *si existe que nos mande el primero que encuentre\n *Para este momento estamos solo validando que mi usuario tenga ese rol validado o relacionado\n *Pero un usurio puede tener muchos roles lo cual significa se puede recibir bastantes roles\n *Para esto hay que preparar una funcion la cual permita iterar entre roles, osea un arreglo de roles \n *hasAnyRole()\n */\n if($this->roles()->where('name', $role)->first()){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "8a30f0f3cb6174fb6a358abf95265ff7", "score": "0.75189704", "text": "public function hasRole($role){\n if($this->roles()->where('name', $role)->first()){\n return true;\n }\n else\n return false;\n }", "title": "" }, { "docid": "798f6390424d01773d90a439434e8212", "score": "0.7490841", "text": "public function isInRole($role);", "title": "" }, { "docid": "d5fc5548c0d9cb6252668bade8e0f05b", "score": "0.7480907", "text": "public function isGranted(string $role) : bool;", "title": "" }, { "docid": "9f294b7f3324cd6ba00efc65254507d4", "score": "0.74605054", "text": "public function hasRole($role) //recibe el rol\n {\n $roles=$this->roles; //cogemos todos los roles\n foreach ($roles as $suRole)//hago el bucle con los roles\n {\n if($suRole->nombre==$role) // le voy preguntando si son iguales los roles\n return true;\n }\n //si no es false\n return false;\n }", "title": "" }, { "docid": "c2fa46231e9933f17ea74f7a00464af7", "score": "0.7428532", "text": "public function roleExists()\n {\n if(!$this->roles()->count()) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "38db59d4ecf44f398d36d43aeb89ebb3", "score": "0.7404462", "text": "function VerifyRole($role){\n global $COURSE,$USER;\n // Gets the course context\n $contextCourse = context_course::instance($COURSE->id);\n // look in the context for the current user's role shortname\n if(isset(current(get_user_roles($contextCourse, $USER->id))->shortname)){\n $roleShortname = current(get_user_roles($contextCourse, $USER->id))->shortname;\n // if the current user's role shortname contains the string in the param $role returns true, if not, false\n if (strpos($roleShortname,$role) !== false) {\n return true;\n }\n else{\n return false;\n }\n }\n\n}", "title": "" }, { "docid": "b4d8e9ec5db62b80181daabc987bc88a", "score": "0.74001884", "text": "function check_user_access() {\n\tif ( property_exists($this, 'allowed_roles') ) $allowed_roles = $this->allowed_roles;\n\telse $allowed_roles = array('administrator');\n\tglobal $user_ID;\n\tif ( !empty($user_ID) ) {\n\t\t$user = new WP_User($user_ID);\n\t\tif (!is_array($user->roles)) $user->roles = array($user->roles);\n\t\t\tforeach ($user->roles as $role) {\n\t \t\t\tif (in_array($role, $allowed_rows)) {\n\t\t\t\treturn $role;\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "e0a221ba62c5102dcd9cc6a566d543b2", "score": "0.7352639", "text": "public function checkRole($role)\n {\n return in_array($role, $this->userRoles());\n }", "title": "" }, { "docid": "cc210a128f30115af95fa4e6eb363f9b", "score": "0.73489535", "text": "public function hasRole($role, UserInterface $user = null);", "title": "" }, { "docid": "61f85c21c01498088bbf124d917325b5", "score": "0.7340525", "text": "public function hasRole($role){\n $userid =Auth::user()->id;\n\t $results = DB::select('select * from user_role u JOIN roles r ON u.role_id=r.id where u.user_id = :user_id and r.name=:name', ['user_id' => $userid,'name' => $role]);\n if($results){\n \n //if($this->roles()->with('name',$role)->first()){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "fb4fadd9dd7d8a5ade1f1ea185205f42", "score": "0.7323376", "text": "public function hasRole(string $roleName) : bool;", "title": "" }, { "docid": "b324531c5a6b6933b9bd35301681dc24", "score": "0.7304763", "text": "public function isGranted($role){\n\t\treturn $this->_user->hasRole($role);\n\t}", "title": "" }, { "docid": "fb2031a0322db2a362fc75ceed23f8df", "score": "0.7288551", "text": "public function check_role($role) {\n\t\t$result = $this->db->where('role_id', $role);\n\t\treturn $result->count_all_results($this->tables['roles']) > 0;\n\t}", "title": "" }, { "docid": "d5424389ae40ea517a357a2162fbe67b", "score": "0.7259132", "text": "public function hasUserrole( $rolename )\r\n\t{\r\n\t\t$this->debug->guard( );\r\n\r\n\t\tif ( !$this->userrolesLoaded )\r\n\t\t{\r\n\t\t\t$this->_loadUserroles( );\r\n\t\t}\r\n\r\n\t\tif ( $rolename === true )\r\n\t\t{\r\n\t\t\t$this->debug->write( 'Problem checking userroles: you should not ask for generic roles', 'warning' );\r\n\t\t\t$this->messages->setMessage( 'Problem checking userroles: you should not ask for generic roles', 'warning' );\r\n\r\n\t\t\t$this->debug->unguard( false );\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif ( in_array( $rolename, $this->userroles ) )\r\n\t\t{\r\n\t\t\t$this->debug->unguard( true );\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t$this->debug->write( 'User does not have the requested role assigned (' . $rolename . ')', 'warning' );\r\n\t\t$this->messages->setMessage( 'User does not have the requested role assigned (' . $rolename . ')', 'warning' );\r\n\r\n\t\t$this->debug->unguard( false );\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "c848f46fc182bc595f83c996e90d8e62", "score": "0.7258047", "text": "function is_role($role) {\n $result=$this->_ci->session->userdata('id_role'); \n if($result==$role){\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "dc9cbc05a73e6b182501813b81deadee", "score": "0.72559357", "text": "public function has_role()\n {\n return $this->status;\n }", "title": "" }, { "docid": "efdb327c61194d21036f198f424181a4", "score": "0.7249864", "text": "public function isGranted($role = null) {\n\n if (!empty($this->userdata)) {\n if ($role != null) {\n if(!(is_null($this->userdata['roles'])))\n {\n return in_array($role, $this->userdata['roles']);\n }else{\n return false;\n }\n }\n return TRUE;\n } else {\n return FALSE;\n }\n }", "title": "" }, { "docid": "2cf1868dd4daf3d2b5febaf31f27d9b8", "score": "0.72400266", "text": "public static function haveRole($psRole='')\r\n {\r\n $pnRole = (int) $psRole;\r\n \r\n if (empty($pnRole)) return false;\r\n if (!self::isLogged()) return false;\r\n\r\n if (empty(self::$_asRoles)) self::buildRoles(true);\r\n \r\n if (in_array($pnRole, self::$_asRoles))\r\n {\r\n \treturn true;\r\n }\r\n else\r\n {\r\n \t//Message::setMessage('Droits utilisateurs insuffisants', MESSAGE_ERROR);\r\n \t\r\n \treturn false;\r\n }\r\n }", "title": "" }, { "docid": "9adff85311ff601299ea5f41869a6e0d", "score": "0.7236478", "text": "public function is(string $role): bool;", "title": "" }, { "docid": "ab3ee43e4ef5fe8f905d863309cfdeca", "score": "0.72329503", "text": "function hasRole($request, $roleName)\n {\n //dd($request->auth->username === \"admin\");\n if ($request->auth->username === \"admin\") {\n return true;\n } else {\n $has_role = false;\n foreach ($request->auth->roles as $role) {\n if ($role->name == $roleName) {\n $has_role = true;\n }\n }\n return $has_role;\n }\n }", "title": "" }, { "docid": "e7cab1b85e93277fc2bc732a73d8161b", "score": "0.7223651", "text": "public function hasRole(UserInterface $user, $role)\n {\n return $this->authorizationChecker->isGranted($role);\n }", "title": "" }, { "docid": "42f6945c6a4033f4f2ff0c4d52b03f33", "score": "0.7205171", "text": "public static function hasRoles()\n {\n return count(static::$roles) > 0;\n }", "title": "" }, { "docid": "2d1a8e3a5bbeaf9f75b2f8ca80b38d8e", "score": "0.72048545", "text": "function role_id_exists($role_id) \n{\n return auth_instance()->role_id_exists($role_id);\n}", "title": "" }, { "docid": "35f8aba5ca15cb3c30f4b42cdaf4565b", "score": "0.7197559", "text": "public function hasRole($role)\n {\n return in_array($role, $this->roles);\n }", "title": "" }, { "docid": "35f8aba5ca15cb3c30f4b42cdaf4565b", "score": "0.7197559", "text": "public function hasRole($role)\n {\n return in_array($role, $this->roles);\n }", "title": "" }, { "docid": "cc5dee1b32d4d4540876c92a18cae356", "score": "0.71941954", "text": "public function hasRole($role) {\n return empty($role);\n }", "title": "" }, { "docid": "4c406794f774bb39d2ff89cde9907949", "score": "0.719083", "text": "public function hasRole($role)\n {\n return null !== $this->roles()->where('name', $role)->first();\n }", "title": "" }, { "docid": "8f8eef81e8cf92325d814ff6ffb654ab", "score": "0.718685", "text": "public function isUser()\n {\n return $this->roles()->where('name', 'User')->exists();\n }", "title": "" }, { "docid": "d556d95e7f05c8cf63da45b2a1e55c14", "score": "0.7186384", "text": "protected function hasRole($role)\n {\n return in_array(strtoupper($role), $this->getRoles(), true);\n }", "title": "" }, { "docid": "e2f9d86de2510033d45a66ce26a69f3e", "score": "0.716496", "text": "function checkrole($rolename, $check_superset = TRUE) {\n\tglobal $userdata;\n\tif ( empty($userdata) || !array_key_exists('roles', $userdata) ) {\n\t\treturn false;\n\t}\n\tif ( in_array($rolename, $userdata['roles']) ) return true;\n\tif ( $check_superset ) {\n\t\tif ( in_array('admin', $userdata['roles']) &&\n\t\t ($rolename!='team' || $userdata['teamid']!=NULL) ) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "ae02e4c8d5b177473f6f50c9caba8f5f", "score": "0.7161328", "text": "public function testHasRoleReturnsCorrectValue()\n {\n $this->assertSame(UsersAdmin::hasRole(1, 1), false);\n }", "title": "" }, { "docid": "12640f641ebe2ccdab752a8311ae76a5", "score": "0.7145657", "text": "public function has_role($user, $role) {\n\t\t$relation = $this->relation;\n\t\t$field = $this->name_field;\n\t\t\n\t\tif($this->type == 'has_many')\n\t\t\treturn $user->$relation\n\t\t\t\t\t->where($this->name_field, $role)\n\t\t\t\t\t->count_all() > 0;\n\n\t\tif ($this->type == 'belongs_to')\n\t\t\treturn $user->$relation->$field == $role;\n\n\t\tthrow new \\Exception(\"The relationship must be either of has_many or has_one type\");\n\t}", "title": "" }, { "docid": "0e79182bbe4f91bafbe247fbb9a7dd46", "score": "0.71314776", "text": "public function can($role)\n\t{\t\n\t\treturn in_array($role, $this->getRoles());\n\t}", "title": "" }, { "docid": "bf8e7c00ba6af31952e57c1383346fe1", "score": "0.71302646", "text": "private function _check_logged_in_role_not_allowed() {\n\t\t$current_user = wp_get_current_user();\n\n\t\tif ( !is_user_logged_in() )\n\t\t\treturn false;\n\n\t\t$roles = $this->_config->get_array( array( 'newrelic', 'accept.roles' ) );\n\n\t\tif ( empty( $roles ) || empty( $current_user->roles ) ||\n\t\t\t!is_array( $current_user->roles ) )\n\t\t\treturn true;\n\n\t\tforeach ( $current_user->roles as $role ) {\n\t\t\tif ( in_array( $role, $roles ) )\n\t\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3a9c0c93546734b90cab106e7bf823c7", "score": "0.71298707", "text": "public function hasRole($role): bool\n {\n //user does not have any role asigned to \n if(is_null($this->role)){\n return false;\n }\n\n if(is_string($role)){\n return ($this->role->name == $role) ? true : false;\n }\n\n if(is_int($role)){\n return ($this->role->id == $role) ? true : false;\n }\n\n if(is_array($role)){\n return (in_array($this->role->name, $role)) ? true : false;\n }\n return false;\n }", "title": "" }, { "docid": "6a4e3f2ac21cfa6c4ef1b930bb91576e", "score": "0.7115354", "text": "public function hasRole($role)\n {\n return (bool)$this->roles()->where('slug', $role)->count();\n }", "title": "" }, { "docid": "556acabf753a7670e31d92e3e0ade2c1", "score": "0.711374", "text": "public function hasRole($role)\n {\n return $this->role->slug == $role;\n }", "title": "" }, { "docid": "df6b371745dddf1e0a1ea0e7a465597a", "score": "0.70766777", "text": "public static function has_role($role, $user = null) {\n if ($user) {\n return $user->role->slug == $role;\n } else if (self::$user) {\n return self::$user->role->slug == $role;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "6dc5ac0f0f2f396f098adea9c416bbd0", "score": "0.7067437", "text": "public function hasRoles()\n {\n return $this->roles()->count() ? true : false;\n }", "title": "" }, { "docid": "0ac4264b55c14c87cc1b142f343d0b5b", "score": "0.70625347", "text": "public static function has($user, $role): bool\n {\n return ! is_null($user->loadMissing('roles')->roles->find(Registration::option($role)));\n }", "title": "" }, { "docid": "15bfa540a611834ea744eb28b420a38b", "score": "0.7056595", "text": "public function isRole($role,$escl=false)\n\t{ \n\t if ($escl) \n\t { \n\t\t if (isset($this->userRolesArr[$role])) \n\t\t { if (count($this->userRolesArr)==1) return true; }\n\t\t return false;\n\t }\n\t else\n\t {\n \t if (isset($this->userRolesArr[$role])) return true; \n\t\t return false;\n\t }\n\t}", "title": "" }, { "docid": "09439936110e7712186a33d3b94e1302", "score": "0.7052135", "text": "public function inRole(string $roleSlug): bool;", "title": "" }, { "docid": "3aba11856a274094b68e03ecd9e3f647", "score": "0.70276725", "text": "function user_has_roles($roles,$user_var) {\n\t//checks if user has role/roles\n\treturn !!count(array_intersect(is_array($roles)? $roles : array($roles), array_values($user_var->roles)));\n}", "title": "" }, { "docid": "6fa025923714ba2dc30140bcc74ef601", "score": "0.7010183", "text": "public function isUser() {\n return $this->role === 'user';\n }", "title": "" }, { "docid": "e2ce03e5d0c2d788c32582a4860664d3", "score": "0.69962066", "text": "public function checkRole(){\n\n try{\n $user = Auth::user();\n\n if($user){\n\n if($user->hasRole('admin'))\n {\n return redirect('/admin');\n }\n else{\n Auth::logout(); // Considering no room for other users in cms , only allows admin\n return 'Has no admin privillege'; // Considering there can be only admin role\n }\n }\n }\n catch(\\Exception $ex){\n\n }\n }", "title": "" }, { "docid": "9c131a3d3709bcf71b7759ddf3a230f2", "score": "0.6989457", "text": "public function check_to_see_if_it_has_permissions_through_roles()\n {\n $this->testUserRole->givePermissionTo($this->testUserPermission);\n\n $this->testUser->assignRole($this->testUserRole);\n\n $this->assertTrue($this->testUser->hasPermissionTo($this->testUserPermission));\n\n $this->assertTrue($this->testUser->can('edit-articles'));\n\n $this->assertFalse($this->testUser->can('non-existing-permission'));\n\n $this->assertFalse($this->testUser->can('admin-permission'));\n }", "title": "" }, { "docid": "423d7f314b9039ac141e218b81f4b9b2", "score": "0.6982576", "text": "public function isUser()\n {\n $roles = $this->roles->toArray();\n return !empty($roles);\n }", "title": "" }, { "docid": "29ed3b77cc7cb41353d1d002ec083677", "score": "0.69517404", "text": "public function hasRole($name)\n {\n if($account = $this->account())\n {\n return $account->hasRole($name);\n }\n\n return false;\n }", "title": "" }, { "docid": "26cdd4ce7037c82cb2ee43c08b854b5e", "score": "0.69515234", "text": "public function logged_in($role = NULL)\n\t{\n\t\t// Get the user from the session\n\t\t$user = $this->get_user();\n\n\t\tif ($user)\n\t\t{\n\t\t\t// If we don't have a roll no further checking is needed\n\t\t\tif (!$role) return TRUE;\n\n\t\t\tif (is_array($role))\n\t\t\t{\n\t\t\t\t// Get all the roles\n\t\t\t\t$roles = DB::select('roles.*')\n\t\t\t\t\t->from('roles_users')\n\t\t\t\t\t->join('roles')->on('roles_users.role_id', '=', 'roles.id')\n\t\t\t\t\t->where('roles_users.user_id', '=', $user->id)\n\t\t\t\t\t->where('name', 'IN', $role)\n\t\t\t\t\t->execute()\n\t\t\t\t\t->as_array(NULL, 'id');\n\n\t\t\t\t// Make sure all the roles are valid ones\n\t\t\t\tif (count($roles) !== count($role)) return FALSE;\n\t\t\t}\n\t\t\telseif (is_string($role))\n\t\t\t{\n\t\t\t\t// Get all the roles\n\t\t\t\t$roles = DB::select('roles.*')\n\t\t\t\t\t->from('roles_users')\n\t\t\t\t\t->join('roles')->on('roles_users.role_id', '=', 'roles.id')\n\t\t\t\t\t->where('roles_users.user_id', '=', $user->id)\n\t\t\t\t\t->where('name', '=', $role)\n\t\t\t\t\t->execute()\n\t\t\t\t\t->as_array(NULL, 'id');\n\n\t\t\t\tif (count($roles) == 0) return FALSE;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\n\t\t\treturn DB::select('users.*', 'roles_users.role_id')\n\t\t\t\t\t->from('users')\n\t\t\t\t\t->join('roles_users')->on('users.id', '=', 'roles_users.user_id')\n\t\t\t\t\t->where('roles_users.role_id', 'IN', $roles)\n\t\t\t\t\t->execute()\n\t\t\t\t\t->count() > 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "76ddd4777433b43d4fa7cdb1474125e7", "score": "0.6942975", "text": "public function hasRole($role): bool\n {\n return $this->roles->where('name', $role)->isNotEmpty();\n }", "title": "" }, { "docid": "3bf73f97f7a5bbb8d27f4e716d08bcde", "score": "0.6942429", "text": "public function hasRole($role) {\n\t\treturn $this->securityContext->hasRole($role);\n\t}", "title": "" }, { "docid": "087e042f96a1a52c7cf2b108d5e549cc", "score": "0.69251746", "text": "function is_allowed_user() {\n\tglobal $CFG, $USER;\n\t// allowed roles: Administrator, Manager, Teacher, course creator, E-Learning Technologist\n\t\n\t// Get role numbers by name (case insensitive) (ids could change as they did when Scott did it)\n\t$allowed = FALSE;\n\t\n\t$query = \"SELECT id FROM mdl_role WHERE name in ('Administrator', 'Manager', 'Teacher', 'course creator', 'E-Learning Technologist')\";\n\t$valid_ids = array();\n\tif ($allowed_ids = get_records_sql($query)) {\n\t\tforeach ($allowed_ids as $id) {\n\t\t\t$valid_ids[] = $id->id;\n\t\t}\n\t}\n\t\n\tforeach ($valid_ids as $role) {\n\t\tif (record_exists('role_assignments', 'roleid', $role, 'userid', $USER->id)) {\n\t\t\t$allowed = TRUE;\n\t\t}\n\t}\n\treturn $allowed;\n}", "title": "" }, { "docid": "6d082bd814c8b6dd76b4288e7df675c4", "score": "0.6918533", "text": "public function hasRole(Request $request){\n // start timer\n $startTime = microtime(true);\n $action = 'hasRole';\n //-----------------------\n\n // get user_id by session\n $user = User::getUserBySession($request['sessionkey']);\n $request['user_id'] = $user->id;\n //-----------------------\n\n $user = User::where('id', $request->user_id)->first();\n\n if($user != null){\n\n if($user->hasRole($request->roleName)){\n\n // log\n $MSG = 'success!';\n $code = 200;\n helper::insertIntoLog(helper::BuildLogObject(\n $code,\n $MSG,\n $request['user_id'],\n $action,\n microtime(true) - $startTime,\n $request\n ));\n //-----------------------\n return json_encode(Boolean::packResponse(true, null, $code, $MSG));\n }else{\n\n // log\n $MSG = 'user not have this role!';\n $code = 400;\n helper::insertIntoLog(helper::BuildLogObject(\n $code,\n $MSG,\n $request['user_id'],\n $action,\n microtime(true) - $startTime,\n $request\n ));\n //-----------------------\n return json_encode(Boolean::packResponse(false, null, $code, $MSG));\n }\n }else{\n\n // log\n $MSG = 'user not exist!';\n $code = 400;\n helper::insertIntoLog(helper::BuildLogObject(\n $code,\n $MSG,\n $request['user_id'],\n $action,\n microtime(true) - $startTime,\n $request\n ));\n //-----------------------\n return json_encode(Role::packResponse(null, null, $code, $MSG));\n }\n }", "title": "" }, { "docid": "d994e661a42133485184178f6a308e50", "score": "0.69131356", "text": "private function isAuthorized($role) {\n \treturn in_array($role, $this->roles);\n }", "title": "" }, { "docid": "34d00af1cf431e6141538bb7d1272798", "score": "0.69129723", "text": "public function hasRole($role)\n {\n return in_array(strtoupper($role), $this->getRoles(), true);\n }", "title": "" }, { "docid": "34d00af1cf431e6141538bb7d1272798", "score": "0.69129723", "text": "public function hasRole($role)\n {\n return in_array(strtoupper($role), $this->getRoles(), true);\n }", "title": "" }, { "docid": "34d00af1cf431e6141538bb7d1272798", "score": "0.69129723", "text": "public function hasRole($role)\n {\n return in_array(strtoupper($role), $this->getRoles(), true);\n }", "title": "" }, { "docid": "34d00af1cf431e6141538bb7d1272798", "score": "0.69129723", "text": "public function hasRole($role)\n {\n return in_array(strtoupper($role), $this->getRoles(), true);\n }", "title": "" }, { "docid": "34d00af1cf431e6141538bb7d1272798", "score": "0.69129723", "text": "public function hasRole($role)\n {\n return in_array(strtoupper($role), $this->getRoles(), true);\n }", "title": "" }, { "docid": "34d00af1cf431e6141538bb7d1272798", "score": "0.69129723", "text": "public function hasRole($role)\n {\n return in_array(strtoupper($role), $this->getRoles(), true);\n }", "title": "" }, { "docid": "b7c2124e2e83381ac9cd1c755b231b62", "score": "0.6894613", "text": "public function isGranted($utilsateur,$role){\n\t\tif($utilsateur->getProfil()->getCode() == trim($role))\n\t\t\treturn true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "82e346ed2d9335d8812dda248d604b92", "score": "0.6887624", "text": "public function isGranted($role)\n {\n return in_array($role, $this->getIdentity()->getRoles());\n }", "title": "" }, { "docid": "aea471117d19bcc5e7000d1cb590f21b", "score": "0.6887267", "text": "public function hasRole($role)\n { \n if($this->roles->contains('slug', $role)){\n\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "259e3b19720a16c997adf48f360ec700", "score": "0.6861579", "text": "public function UserIsAdmin()\n {\n \t$user = $this->Auth->user();\n // debug($user);\n \n if($user != null)\n {\n if($user['role'] == 'admin')\n {\n return true;\n }\n }\n \n \treturn false;\n }", "title": "" }, { "docid": "4dcc45182633322736117c74783d65a7", "score": "0.6858279", "text": "public function defines(string $role): bool;", "title": "" }, { "docid": "882b250d3aa99c1d8d38887d1dd029a3", "score": "0.68476236", "text": "public function is_authorised($role = 'all'){\n\t\t$user_id = $this->session->userdata('user_id');\n\t\t$user_role = $this->session->userdata('role');\n\t\tif($user_id && (($role==$user_role)||($role=='all'))){\n\t\t\treturn true;\n\t\t}else{\n\t\t\t//check remember me cookie\n\t\t\t$val = get_cookie('remember_me_token');\n\t\t\tif($val===0)$val='undefined';\n\t\t\t$sql = \"SELECT * FROM (`users`) WHERE `remember_me_token` = ?\";\n\t\t\t$query = $this->db->query($sql, array($val));\n\n\t\t\tif($query->num_rows == 1) {\n\t\t\t\t//resume session\n\t\t\t\t$query_data = $query->result_array();\n\t\t\t\t$data = array(\n\t\t\t\t\t'username' => $this->input->post('username'),\n\t\t\t\t\t'user_id' => $query_data[0]['user_id'],\n\t\t\t\t\t'role' => $query_data[0]['role'],\n\t\t\t\t\t'level' => $this->game_model->get_level($query_data[0]['exp']),\n\t\t\t\t\t'tutorial' => $query_data[0]['show_tutorial'],\n\t\t\t\t\t'is_logged_in' => true\n\t\t\t\t);\n\t\t\t\t$this->session->set_userdata($data);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\t\n\t\t}\n\t}", "title": "" }, { "docid": "28b38aef4255ecf2002a1d560e297bc6", "score": "0.6843066", "text": "public function show()\n {\n return \\Auth::user()->hasRight('read-role');\n }", "title": "" }, { "docid": "33d992659c712aad2bad47c901b491f0", "score": "0.68408215", "text": "public function isGranted(string $role): bool\n {\n $user = $this->getCurrentUser();\n\n return $user\n && in_array($role, json_decode($user->getRole()))\n ;\n }", "title": "" }, { "docid": "86bf6d581c6840ee3b030b9d58e4de7b", "score": "0.6839793", "text": "public function authorize()\n {\n return Auth::user()->user_role === config('settings.roles.user');\n }", "title": "" }, { "docid": "142357e29e8ef9bb6200fce4b2e23761", "score": "0.683662", "text": "private function checkRole() {\r\n\t\t$sudjelovanje = new \\model\\DBSudjelovanje();\r\n\t\tif (\\model\\DBOsoba::isLoggedIn() && (session(\"vrsta\") === \"S\" || session(\"vrsta\") === \"SV\" \r\n\t\t\t\t|| session(\"vrsta\") === \"O\" || session(\"vrsta\") === \"OV\")\r\n\t\t\t\t&& $sudjelovanje->isActiveContestant(session(\"auth\")))\r\n\t\t\treturn;\r\n\r\n\t\tpreusmjeri(\\route\\Route::get('d1')->generate() . \"?msg=accessDenied\");\r\n }", "title": "" }, { "docid": "55f3366683219678c0b921716e2aed25", "score": "0.68323314", "text": "public function isAuthorized($user) {\n if (parent::isAuthorized($user)) {\n //do role processing here\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "93a431c01725b58e9def4515fea32440", "score": "0.68313706", "text": "public function hasAnyRole($roles): bool;", "title": "" }, { "docid": "2d618678eec27d1f688abf8ef881e90c", "score": "0.6829966", "text": "function nt_is_user_organizer(){\n\n\t$current_user_id = get_current_user_id();\n\t$user_info = get_userdata($current_user_id );\n\n\tif ( ! $user_info ) {\n\t\treturn false;\n\t}\n\n\t$user_role = $user_info->roles;\n\n\tif \t( \tin_array ( 'administrator' , \t$user_role ) \n\t\t \t|| in_array ( 'author' , \t$user_role )\n\t\t //\t|| in_array ( 'organizer' , \t$user_role ) \n\t\t)\n\t\treturn true;\n\n\treturn false;\n}", "title": "" }, { "docid": "6d1c63a5110994d9517f8d2282f99c74", "score": "0.6820838", "text": "public function hasAnyRole(string $role){\n return null !== $this->roles()->where('name', $role)->first(); \n }", "title": "" }, { "docid": "a66c31510d5dac6a12fe9a971558a35c", "score": "0.6814691", "text": "public function isAuthorized($user) {\n // Here is where we should verify the role and give access based on role\n \n return true;\n }", "title": "" }, { "docid": "adc74da69f068f81bd86d6c121e37eba", "score": "0.68083876", "text": "public function isAssignedTo($role, $user = null)\n\t{\n\t\t// if we don't have a user, get the logged-in user\n\t\tif ( ! $user and ! $user = $this->manager->getUserId())\n\t\t{\n\t\t\tthrow new AuthException('Unable to assign a role. There is no user logged in.');\n\t\t}\n\n\t\t// get the id of the role we're assiging\n\t\ttry\n\t\t{\n\t\t\t$id = $this->findId($role);\n\n\t\t\t// was the user assigned?\n\t\t\tif (isset($this->data[$id]['__users__']) and in_array($user, $this->data[$id]['__users__']))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tcatch (AuthException $e)\n\t\t{\n\t\t\t// ignore this exception\n\t\t}\n\n\t\t// not a member\n\t\treturn false;\n\t}", "title": "" }, { "docid": "bbab9589278232baed4ce5b929f29f78", "score": "0.68072516", "text": "public static function checkUserRole($id)\n {\n $getRole = UserService::findUserRoleById($id)->get();\n if (count($getRole) > 0) { \n return $getRole[0]->role;\n }\n return false;\n }", "title": "" }, { "docid": "c2a2edfd719f10479b3c34f73081ab04", "score": "0.68057394", "text": "function HasRole($Role, $User = null)\n\t{\n\t\tif (is_int ( $Role ))\n\t\t{\n\t\t\t$RoleID = $Role;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (substr($Role,0,1)==\"/\")\n\t\t\t\t$RoleID=jf::$RBAC->Roles->PathID($Role);\n\t\t\telse\n\t\t\t\t$RoleID=jf::$RBAC->Roles->TitleID($Role);\n\t\t}\n\t\t\n\t\tif ($User === null)\n\t\t\t$User = jf::CurrentUser ();\n\t\t$R = jf::SQL ( \"SELECT * FROM {$this->TablePrefix()}rbac_userroles AS TUR \n\t\t\tJOIN {$this->TablePrefix()}rbac_roles AS TRdirect ON (TRdirect.ID=TUR.RoleID)\n\t\t\tJOIN {$this->TablePrefix()}rbac_roles AS TR ON (TR.Lft BETWEEN TRdirect.Lft AND TRdirect.Rght)\n\t\t\n\t\tWHERE\n\t\tTUR.UserID=? AND TR.ID=?\", $User, $RoleID );\n\t\treturn $R !== null;\n\t}", "title": "" }, { "docid": "8c69a0c1cef0b5225afc2f6d8125588e", "score": "0.68056965", "text": "public function hasRole($rid) {\n if (is_array($rid)) {\n return (bool) array_intersect($rid, $this->getRoles());\n }\n return in_array($rid, $this->getRoles());\n }", "title": "" }, { "docid": "d570b0367a712704d8c91a981818a6a1", "score": "0.6800562", "text": "public function HasAccessToRoles()\n {\n $oMR = new MemberRoles();\n return $oMR->CheckAccess();\n }", "title": "" }, { "docid": "fad9414fd7c9980f7caf4c09ceb76c79", "score": "0.67962986", "text": "public function in_role($name, $id) {\n\t\t$this->db->from($this->tables['user_roles']);\n\t\t$this->db->join($this->tables['roles'], $this->tables['roles'] . '.role_id = ' . $this->tables['user_roles'] . '.role_id');\n\t\t$this->db->where('role_name', $name);\n\t\t$this->db->where('user_id', $id);\n\t\t$result = $this->db->get();\n\n\t\tif($result->num_rows() < 1) {\n\t\t\treturn FALSE;\n\t\t} else {\n\t\t\treturn TRUE;\n\t\t}\n\t}", "title": "" } ]
b8bcb5431d1e7f9ad9558058d0261db3
Returns true / false if all of the specified permissions do not exist on the current user.
[ { "docid": "49dae11d296b117825deab0b487c2da5", "score": "0.689222", "text": "public function doesNotHavePermissions($permissions)\n {\n return !$this->hasPermissions($permissions);\n }", "title": "" } ]
[ { "docid": "c7bef8a299cc046d351cbd00e7994cb0", "score": "0.7392818", "text": "public static function hasPermissions()\n {\n return count(static::$permissions) > 0;\n }", "title": "" }, { "docid": "c8bc0f8d74d8adace2d52a385c66ac83", "score": "0.70589954", "text": "public function checkPermissions() {\n return $this->modx->hasPermission('view_user');\n }", "title": "" }, { "docid": "6eb6c1f69a0b9d1fdba8296fd2f930b5", "score": "0.70282245", "text": "public function doesNotHaveAnyPermissions($permissions)\n {\n return !$this->hasAnyPermissions($permissions);\n }", "title": "" }, { "docid": "fa67d92578938906d0abf1f299a16868", "score": "0.6747482", "text": "public function havePermission()\n {\n return App::make('authentication_helper')->hasPermission($this->permissions);\n }", "title": "" }, { "docid": "5a6a0a592ca2c5c7080aabbc5533e028", "score": "0.6720714", "text": "protected function checkHasPermissions()\n {\n global $login, $controller, $controllers;\n \n // sprawdzanie czy modul istnieje na liscie\n if(!isset($controllers[$controller])){\n $this->errors[] = \"Błąd podczas sprawdzania uprawnień do modułu.\";\n return false;\n }\n \n // sprawdzanie czy sa uprawnienia\n if(!isset($controllers[$controller]['permissions'])){\n return true;\n }\n \n // sprawdzanie czy uprawnienie uzytkownika jest na liscie\n if (!in_array($login->auth_user['id_permission'], $controllers[$controller]['permissions'])){\n return false;\n }\n \n // return false;\n return true;\n }", "title": "" }, { "docid": "35068784b347e45083adde899b0a4465", "score": "0.6659648", "text": "public function hasPermission(...$permissions): bool\n {\n return $this->hasPermissionTo($permissions);\n }", "title": "" }, { "docid": "5e98e276268d3f5ac8d86a5fe3db1c19", "score": "0.6657995", "text": "function user_AuthHas(...$args) {\n\tif ( !isset($_SESSION['permission']) ) {\n\t\treturn false;\n\t}\n\t\n\t// Check if user has all permissions\n\tforeach ( $args as $arg ) {\n\t\tif ( !in_array($arg, $_SESSION['permission']) ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\t\n\treturn true;\n}", "title": "" }, { "docid": "526ec6203f53c56fd15a50885ca34b1a", "score": "0.66462034", "text": "public function hasAnyAccess(array $permissions) : bool\n {\n return $this->hasAccess($permissions, false);\n }", "title": "" }, { "docid": "4ffe9cf4b7da6db03f2ab944f814a8f6", "score": "0.662094", "text": "private function check_permissions() {\n global $USER;\n\n require_login();\n\n if (is_siteadmin()) {\n return true;\n }\n\n $cohortids = array(\n 73, // ID of the teachersALL cohort.\n 114, // ID of the secretariesALL cohort.\n );\n foreach ($cohortids as $cohortid) {\n if (cohort_is_member($cohortid, $USER->id)) {\n return true;\n }\n }\n\n throw new Exception(\"You don't have permission to do that.\");\n }", "title": "" }, { "docid": "9fd9f8324d02cc254489e2b2ccad87cd", "score": "0.6616093", "text": "public function hasAnyAccess(array $permissions)\n {\n return $this->hasAccess($permissions, false);\n }", "title": "" }, { "docid": "a055eb209890b5f3fe9a5d9d3d833bbc", "score": "0.6600641", "text": "public static function validateUserPermission() {\n\t\t$user = self::pw('user');\n\t\t$permission = self::getPagePermission();\n\t\treturn empty($permission) || $user->has_function($permission);\n\t}", "title": "" }, { "docid": "649168dc377cbdacb4d8ffa0a512cb9d", "score": "0.653602", "text": "public function has_permissions(array $permissions) : bool\n\t{\n\t\tforeach ($permissions as $p) {\n\t\t\tif ($this->cannot($p)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "000852e8014054a2ea21100559f096b2", "score": "0.65076756", "text": "public function hasOwnPermission() {\n\t\t$getPerms = $this->getPermissionsByRole();\n\t\tif (in_array($this->ownPermission, $getPerms)) {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "57a78afbaafcb9cad504eb9c1140f00e", "score": "0.6437742", "text": "public function hasPermission()\n\t{\n\t\tif ($this->getActionController()->view->userSession()->isAdmin() || $this->_permissionSession->count() > 0) \n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8b1eb4620888a0b9dc3f794d65c0576e", "score": "0.6434861", "text": "public function hasPermissions($name)\n\t{\n\t\t$permissions = CHtml::listData($this->group->permissions, 'name', 'name');\n\t\tif(isset($permissions['OWNER']))\n\t\t\treturn true;\n\t\t\n\t\t$names = is_array($name) ? $name : func_get_args();\n\t\tforeach($names as $name)\n\t\t{\n\t\t\tif(!isset($permissions[$name]))\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "7a5fe130abeaa721bc5af65a5982f8a6", "score": "0.64298874", "text": "protected function is_user_exempt() {\n\t\t$current_user = wp_get_current_user();\n\t\t$exempt_roles = SST_Settings::get( 'exempt_roles', array() );\n\t\t$user_roles = is_user_logged_in() ? $current_user->roles : array();\n\t\treturn count( array_intersect( $exempt_roles, $user_roles ) ) > 0;\n\t}", "title": "" }, { "docid": "7c9bdfb5d01daf40ed78c143fdd8cf93", "score": "0.6367929", "text": "function checkperm($perm)\n {\n global $userpermissions;\n if (!(isset($userpermissions))) {return false;}\n if (in_array($perm,$userpermissions)) {return true;} else {return false;}\n }", "title": "" }, { "docid": "307febe7b75b3cd79370e45ed27ac31e", "score": "0.634463", "text": "public function permissionCanViewRoute() {\n // $this->permissions->count() == 0 ||\n return auth()->user()->hasAnyPermission($this->permissions->pluck('name')->toArray());\n }", "title": "" }, { "docid": "bdedd66921e7192edb1856c6eb3e8d6d", "score": "0.6343954", "text": "public function check_permissions() {\n\t\treturn current_user_can( 'manage_options' );\n\t}", "title": "" }, { "docid": "1a61fe4fee543d75378f21b1f7eb83e8", "score": "0.6316982", "text": "private function validatePermissions()\n {\n return true;\n\n /* @task todo */\n\n if (!$this->user->hasPermission('modify', 'extension/module/prodtabs')) {\n $this->error['warning'] = $this->language->get('error_permission');\n }\n\n if (!$this->error) {\n return TRUE;\n } else {\n return FALSE;\n }\n }", "title": "" }, { "docid": "0f5ae33f45762afd544de7be0b596821", "score": "0.63119614", "text": "public function checkPermissions()\n {\n return true;\n }", "title": "" }, { "docid": "e043b4318b5dcab6ebe5f566844a0c79", "score": "0.6304252", "text": "function hasPermissionHuh($perm) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "cf096432dde279932784128eab7b1ee1", "score": "0.6303776", "text": "public static function hasPermission($permission, $userId = null) \n {\n // use session user_id as default entity\n if ($userId === null) \n {\n $userId = sfContext::getInstance()->getUser()->getAttribute('user_id');\n }\n \n // Check everyone access\n $q = new Doctrine_Query;\n $q\n ->from('UllGroupPermission gp, gp.UllPermission p, gp.UllGroup g')\n ->addWhere('p.slug = ?', $permission)\n ->addWhere('g.display_name = ?', 'Everyone')\n ->useResultCache(true)\n ;\n \n if ($q->count())\n {\n return true;\n }\n else\n {\n // Skip the other checks in case nobody's logged in\n if ($userId === null)\n {\n return false;\n } \n } \n \n // Check access by permission / group / user\n $q = new Doctrine_Query;\n $q\n ->from('UllUser u, u.UllGroup g, g.UllPermissions p')\n ->where('u.id = ?', $userId)\n ->addWhere('p.slug = ?', $permission)\n ->useResultCache(true)\n ;\n \n if ($q->count())\n {\n return true;\n }\n \n // Check logged in access\n $q = new Doctrine_Query;\n $q\n ->from('UllGroupPermission gp, gp.UllPermission p, gp.UllGroup g')\n ->addWhere('p.slug = ?', $permission)\n ->addWhere('g.display_name = ?', 'Logged in users')\n ->useResultCache(true)\n ;\n \n if ($q->count() && $userId)\n {\n return true;\n }\n\n // MasterAdmins have all permissions\n if (self::hasGroup('MasterAdmins', $userId))\n {\n return true;\n }\n }", "title": "" }, { "docid": "d23977b28668ca4504675f41a44c0ce0", "score": "0.6303059", "text": "public function hasAnyPermission(...$permissions): bool\n {\n $rules = $this->getAllPermissions()\n ->map(static function (string $rule) {\n return explode('/', $rule);\n });\n\n return collect($permissions)\n ->flatten()\n ->map(static function (string $permission) {\n return explode('/', $permission);\n })\n ->filter(function (array $permission) use ($rules) {\n return $this->matchPermission($rules, $permission);\n })->count() > 0;\n }", "title": "" }, { "docid": "90848545e12a2da5e32dd6f5dcb46040", "score": "0.62997156", "text": "public function hasAccess($permissions, $all = true)\n {\n if ($this->isSuperUser()) {\n return true;\n }\n\n return $this->hasPermission($permissions, $all);\n }", "title": "" }, { "docid": "f9d62413812ae20153b73327f46f4a81", "score": "0.6289594", "text": "function hasPermission() {\n\t\t\n\t\tif ( is_empty($this->_iWishlistId) ) {\n\t\t\t$this->_oMessages->add($this->_sName, ERROR_GET_PERMISSION);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif ( is_empty($this->_iCustomerId) ) {\n\t\t\t$this->_oMessages->add($this->_sName, ERROR_GET_PERMISSION);\n\t\t\treturn false;\n\t\t}\t\t\n\t\t\n\t\t$sql = \"SELECT \n\t\t\t\t\tcount(id) as items_count \n\t\t\t\tFROM \n\t\t\t\t\t\".TABLE_WISHLISTS.\" \n\t\t\t\tWHERE \n\t\t\t\t\tid='\".$this->_iWishlistId.\"' \n\t\t\t\t\tand customers_id='\".$this->_iCustomerId.\"' \n\t\t\t\t\";\n\t\t\n\t\t$result = $this->_oDB->Execute($sql);\n\t\tif ( (int)$result->fields['items_count']==0 ) {\n\t\t\t$this->_oMessages->add($this->_sName, ERROR_GET_PERMISSION);\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d2ce5cab3f06c8dab9b5747f0768c4b5", "score": "0.6250771", "text": "private function checkPermissions($obj)\n\t{\n\t\tif (!empty($obj->getPermission()))\n\t\t{\n\t\t\t// The profile menu has slightly different permissions\n\t\t\tif (isset($obj->getPermission()['own'], $obj->getPermission()['any']))\n\t\t\t{\n\t\t\t\treturn !empty($obj->getPermission()[$this->permissionSet]) && allowedTo($obj->getPermission()[$this->permissionSet]);\n\t\t\t}\n\n\t\t\treturn allowedTo($obj->getPermission());\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "e46e5e92918544c60f25fc1f491f1798", "score": "0.62388366", "text": "public function hasPermission(): bool\n {\n return $this->user->hasPermissionFor($this->getAclObjectName());\n }", "title": "" }, { "docid": "4d51a10fb0d3c02038aa81c0f5980458", "score": "0.62376016", "text": "public function checkPermissions() {\n\t\treturn $this->modx->hasPermission('new_document');\n\t}", "title": "" }, { "docid": "4615486499481d39ecd5154110ddc323", "score": "0.623369", "text": "private function _has_perms() {\n\t\t$args = func_get_args();\n\t\t$group = array_shift($args);\n\t\t$ret = false;\n\n\t\t$this->EE->db->select('group_id');\n\t\t$this->EE->db->from('member_groups');\n\t\t$this->EE->db->where('group_id', $group);\n\t\tforeach ($args as $v) {\n\t\t\t$this->EE->db->where($v, 'y');\n\t\t}\n\n\t\treturn $this->EE->db->get()->num_rows();\n\t}", "title": "" }, { "docid": "74049707d675616ecb4d60e55bdbac73", "score": "0.621954", "text": "protected function checkPermissions(): bool\n\t{\n\t\tif (!$this->accessController->check(ActionDictionary::ACTION_CATALOG_READ))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t$availableStores = $this->accessController->getPermissionValue(ActionDictionary::ACTION_STORE_VIEW);\n\t\tif (empty($availableStores))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d8b03f8f0cb163ca5ca3ed3662066630", "score": "0.62034124", "text": "public function hasOthersPermission() {\n\t\t$getPerms = $this->getPermissionsByRole();\n\t\tif (in_array($this->otherPermission, $getPerms)) {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "731e5c26c842bbcaa00ab7a485778925", "score": "0.61461437", "text": "public function canManagePermissions()\n\t{\n\t\tif ( $this->protected )\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\treturn parent::canManagePermissions();\n\t}", "title": "" }, { "docid": "97f44e89fde8823a6bd8e381044b0017", "score": "0.6129993", "text": "public function hasPermissions($permissions)\n {\n if ($this->isAdmin()) {\n return true;\n }\n\n $user_permissions = [];\n foreach ($this->permissions as $permission) {\n $user_permissions[] = $permission->permission;\n }\n\n foreach ($permissions as $permission) {\n if (in_array($permission, $user_permissions)) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "2571035c96fd38c25fa42040a692666f", "score": "0.6115496", "text": "public function hasPermission(\n string|array $permission,\n bool $requireAll = false\n ): bool {\n if ($user = $this->user()) {\n return $user->hasPermission($permission, $requireAll);\n }\n\n return false;\n }", "title": "" }, { "docid": "48c386d025395a7add1a2cbfa5f2a08c", "score": "0.6104763", "text": "protected function check_permission()\n {\n $per_data = isset($this->USER->permission_data) ? $this->USER->permission_data : array();\n if(!count($per_data)) {\n return FALSE;\n }\n $class = $this->router->fetch_class();\n $method = $this->router->fetch_method();\n\n if (is_array($per_data) && count($per_data) > 0) {\n foreach ($per_data as $controller => $arr_action) {\n if($controller == '*'){\n foreach ($arr_action as $one_action){\n if($one_action == '*' || $one_action == $method){\n return true;\n }\n }\n } else if ($controller == $class) {\n foreach ($arr_action as $one_action){\n if($one_action == '*' || $one_action == $method){\n return true;\n }\n }\n }\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "773510d51303fb996ea2db182a738a7b", "score": "0.6063065", "text": "protected function checkPermission()\n {\n // Abort if user is not logged in\n if(Yii::app()->user->isGuest)\n {\n die('No permission');\n }\n }", "title": "" }, { "docid": "aab42883d451ea718e02ce0fcb87d416", "score": "0.6060587", "text": "public function valid(): bool\n {\n return isset($this->permissions[$this->position]);\n }", "title": "" }, { "docid": "b293f73456cee318fb312cea35c209de", "score": "0.60577494", "text": "public function hasPermission($name)\n\t{\n\t\t$permissions = CHtml::listData($this->group->permissions, 'name', 'name');\n\t\tif(isset($permissions['OWNER']))\n\t\t\treturn true;\n\t\t\n\t\t$names = is_array($name) ? $name : func_get_args();\n\t\tforeach($names as $name)\n\t\t{\n\t\t\tif(isset($permissions[$name]))\n\t\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dfc7f403b6d992c4b129a968c45267f9", "score": "0.60421926", "text": "public function hasAdminPermissions()\n {\n $event = $this->one();\n\n try {\n // edit the description field to test the user admin permissions\n return $this->sdk->api($this->id, 'POST',\n array('description' => $event['description']));\n } catch (\\FacebookApiException $e) {\n if ($e->getResult()['error']['code'] !== 200) {\n // any other facebook api error\n throw $e;\n } \n }\n\n // no admin permissions facebook api error\n return false;\n }", "title": "" }, { "docid": "64358377cdb35335d6557b79907207e4", "score": "0.6037226", "text": "protected function checkPermissions(): bool\n {\n try {\n $this->initializeUserAuthentication();\n } catch (AspectNotFoundException|AspectPropertyNotFoundException $e) {\n return false;\n }\n\n /** @var $checkPermissionsService CheckPermissions */\n $checkPermissionsService = GeneralUtility::makeInstance(CheckPermissions::class);\n\n if ($checkPermissionsService->checkBackendUserFileAccess($this->originalFile)) {\n return true;\n }\n\n $userFeGroups = !$this->feUser->user ? false : $this->feUser->groupData['uid'];\n\n try {\n return $checkPermissionsService->checkFileAccess($this->originalFile, $userFeGroups);\n } catch (FolderDoesNotExistException $e) {\n return false;\n }\n }", "title": "" }, { "docid": "cfdcf1a0a4643203286aa6529a0c0d98", "score": "0.60336995", "text": "public function check_setup_permission() {\n\t\tif ($this->getTableList() !== Config::TABLE_LIST) $this->create();\n\n\t\treturn ((new User($this->pdo))->get_amount() === 0);\n\t}", "title": "" }, { "docid": "19bbfbdc88eaede82e7a2b5b200b1832", "score": "0.6022858", "text": "function _hasAccess()\n {\n // create user object\n $user =& User::singleton();\n\n $timePoint =& TimePoint::singleton($_REQUEST['sessionID']);\n $candID = $timePoint->getCandID();\n\n $candidate =& Candidate::singleton($candID);\n\n // check user permissions\n return ($user->hasPermission('access_all_profiles') || $user->getData('CenterID') == $candidate->getData('CenterID') || $user->getData('CenterID') == $timePoint->getData('CenterID'));\n }", "title": "" }, { "docid": "13bb4e5f6f5f025dca00470e6e21f7e4", "score": "0.60172975", "text": "public function exists()\n {\n clearos_profile(__METHOD__, __LINE__);\n\n try {\n $attrs = $this->_get_user_attributes();\n } catch (User_Not_Found_Exception $e) {\n // Expected\n }\n\n if (isset($attrs['uid'][0]))\n return TRUE;\n else\n return FALSE;\n }", "title": "" }, { "docid": "280ef1f5e255e8b90aebac2d2a71278f", "score": "0.6016691", "text": "public function testUserHasAnyPermission()\n {\n $user1 = User::create(array(\n 'first_name' => 'darryl',\n 'last_name' => 'Fernandez',\n 'email' => 'darryl@gmail.com',\n 'password' => 'pass$darryl',\n 'permissions' => array(\n 'blog.create' => 1,\n 'blog.edit' => 1,\n 'blog.delete' => -1,\n )\n ));\n\n $this->assertTrue($user1->hasAnyPermission(['blog.delete','blog.create']));\n }", "title": "" }, { "docid": "0f706b09425200c1e71823159899533f", "score": "0.60115576", "text": "public function isAllowed($permissions)\n {\n $userRoles = $this->_role->getUserRoles(Auth::getAuthInfo()->user_id);\n\n foreach ($userRoles as $role) {\n $roles[] = $role->role_name;\n }\n\n $collisions = array_intersect((array) $roles, (array) $permissions);\n\n if ($collisions) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "aa38bce9768a849db676bf01cd3a222d", "score": "0.6007521", "text": "function doi_check_user_access() {\n\n\t\tglobal $doi_perms_needed;\n\n\t\t# External access support (authenticate only if no key provided, or if invalid access key provided)\n\t\t$k=getvalescaped(\"k\",\"\");if (($k==\"\") || (!check_access_key(getvalescaped(\"ref\",\"\"),$k))) {include_once __DIR__ . \"/../../../include/authenticate.php\";}\n\n\t\t# Check preconfigured permissions\n\t\tfor ($n = 0; $n < count($doi_perms_needed); ++$n) {\n\t\t\tif(!checkperm($doi_perms_needed[$n])) return FALSE;\n\t\t}\n\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "3d62de78c63c1944057d428a28cd2190", "score": "0.60069704", "text": "public static function api_required_permissions() {\n\t\treturn current_user_can( 'edit_posts' );\n\t}", "title": "" }, { "docid": "834a5738e2397a289285ce37863f71f6", "score": "0.6004896", "text": "public function hasAccess($permissions, $all = true) : bool\n {\n if ($this->isRoot()) {\n return true;\n }\n\n return $this->hasPermission($permissions, $all);\n }", "title": "" }, { "docid": "ab1d1b48902500258877ea13edf27b39", "score": "0.6001844", "text": "public function CheckUserPermission( $perm )\n {\n return false;\n }", "title": "" }, { "docid": "b416c2c7543222407d6aab7197817eaf", "score": "0.5986065", "text": "public function canUsePerms()\n\t{\n\t\tstatic $bCanUse = null;\n\n\t\tif (is_null($bCanUse)) {\n\t\t\t$bCanUse = (boolean)($this->config->enable_group_perms && $this->moduleUsersExists());\n\t\t}\n\n\t\treturn $bCanUse;\n\t}", "title": "" }, { "docid": "8b967061ad285bb0cc56c2ef8babbf36", "score": "0.5961132", "text": "public function hasAccessRestrictions() {\n\t\tif (!is_array($this->accessRoles) || empty($this->accessRoles)) {\n\t\t\treturn FALSE;\n\t\t}\n\n\t\tif (count($this->accessRoles) === 1 && in_array('Everybody', $this->accessRoles)) {\n\t\t\treturn FALSE;\n\t\t}\n\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "f5b87259b5938ae1aa200fed10a51912", "score": "0.59610564", "text": "public function noUsers(): bool\n {\n return $this->users->isEmpty();\n }", "title": "" }, { "docid": "2890997a066ea0c799a90164fb2eb3e2", "score": "0.5959733", "text": "public function hasAnyPermissions($permissions)\n {\n return Collection::make(Arr::wrap($permissions))->filter(function ($permission) {\n return $this->hasPermission($permission);\n })->count() > 0;\n }", "title": "" }, { "docid": "dbec8405018fbef2147886f59594d6ef", "score": "0.59528446", "text": "public static function checkUserPermission($perm_key)\n {\n $permissions = self::buildACL();\n\n if(empty($permissions))\n {\n return false;\n }\n\n if(array_key_exists($perm_key,$permissions['access'])){\n return true;\n }\n \n }", "title": "" }, { "docid": "79d63d81172b136685479044204b3a9a", "score": "0.5952173", "text": "public static function hf_user_permission() {\r\n $current_user = wp_get_current_user();\r\n $current_user->roles = apply_filters('hf_add_user_roles', $current_user->roles);\r\n $current_user->roles = array_unique($current_user->roles);\r\n $user_ok = false;\r\n\r\n $wf_roles = apply_filters('hf_user_permission_roles', array('administrator', 'shop_manager'));\r\n if ($current_user instanceof WP_User) {\r\n $can_users = array_intersect($wf_roles, $current_user->roles);\r\n if (!empty($can_users)) {\r\n $user_ok = true;\r\n }\r\n }\r\n return $user_ok;\r\n }", "title": "" }, { "docid": "5a45296c812625f0fac69aedefe37a0d", "score": "0.59513867", "text": "public function userHasAccess()\n\t{\n\t\tif ( ! $this->isProtected())\n\t\t\treturn true;\n\n\t\t// the file is mine and it's password protected\n\t\tif ($this->isMine() && $this->isProtected())\n\t\t\treturn true;\n\n\n if( ! is_null(Auth::user()) && Auth::user()->isAdmin())\n return true;\n\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "3276a372d2b12f9e01b8749e941cb2f5", "score": "0.5946098", "text": "public function hasAccess(array $resource_ids) {\n\n // No resources needed? You may proceed.\n if (! $resource_ids) {\n return true;\n }\n\n // Don't have any roles? You clearly don't have access.\n if (! $this->role_ids()) {\n return false;\n }\n\n // No resources in your roles? (that's weird) You may not continue.\n if (! ($role_resource_ids = $this->role_resource_ids())) {\n return false;\n }\n\n // Check if the resources provided exist in this user's resources, if any are missing, access denied\n foreach ($resource_ids as $resource_id) {\n if (! in_array((int) $resource_id, $role_resource_ids, true)) {\n return false;\n }\n }\n\n // Everything looks good, you have access.\n return true;\n }", "title": "" }, { "docid": "92f6281caa89064926a7798343eeadbd", "score": "0.5928894", "text": "function iteasyexam_Has_permissions()\n{\n global $USER;\n $permission = false;\n $context = get_context_instance(CONTEXT_SYSTEM);\n\n if (is_siteadmin()) {\n $permission = true;\n } else {\n $roles = get_user_roles($context, $USER->id, false);\n $role = key($roles);\n $roleid = $roles[$role]->roleid;\n if ($roleid == 1) {\n $permission = true;\n }\n }\n return $permission;\n\n}", "title": "" }, { "docid": "4f3c204facc80e02b13b0aefc14e2a9b", "score": "0.5927868", "text": "static function _is_ch_member_exclusively()\n {\n // Get current user\n $user = wp_get_current_user();\n\n /**\n * @see is_user_logged_in()\n */\n if ($user->exists()) {\n return count($user->roles) === 1 && reset($user->roles) === 'ch_member';\n }\n\n return false;\n }", "title": "" }, { "docid": "f0515f113b21fa904fa60621e38d4b80", "score": "0.5925536", "text": "public function inUse()\r\n\t{\r\n\t\treturn $this->users()->exists();\r\n\t}", "title": "" }, { "docid": "f1bb2a3c8e7a3f7210625398cf7d15df", "score": "0.5920299", "text": "public function hasPerm($permission) {\r\n return isset($this->permissions[$permission]);\r\n }", "title": "" }, { "docid": "14d76f54f532d3760f05d9efeb33b832", "score": "0.5913984", "text": "public function canCurrentUserProperlyRenderResults()\n {\n if (!ReportSecurityUtil::canCurrentUserCanAccessModule($this->moduleClassName))\n {\n return false;\n }\n if (!ReportSecurityUtil::canCurrentUserAccessAllComponents($this->displayAttributes))\n {\n return false;\n }\n if (!ReportSecurityUtil::canCurrentUserAccessAllComponents($this->filters))\n {\n return false;\n }\n if (!ReportSecurityUtil::canCurrentUserAccessAllComponents($this->orderBys))\n {\n return false;\n }\n if (!ReportSecurityUtil::canCurrentUserAccessAllComponents($this->groupBys))\n {\n return false;\n }\n if (!ReportSecurityUtil::canCurrentUserAccessAllComponents($this->drillDownDisplayAttributes))\n {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "2911d805550cf4d26cb48cef044bcbea", "score": "0.59117085", "text": "public function hasAnyPermissions($permissions)\n {\n if (!$permissions instanceof Collection) {\n $permissions = collect($permissions);\n }\n\n return $permissions->filter(function ($permission) {\n return $this->hasPermission($permission);\n })->count() > 0;\n }", "title": "" }, { "docid": "3297952103c7bf45e10e21584b4b85e6", "score": "0.5901335", "text": "public function checkUserCanAccess()\n {\n $user_grp = strtolower(\\Yii::$app->user->identity->group);\n if(in_array($user_grp, ['admin', 'applicant'])){\n if($user_grp == 'admin'){\n return true;\n }\n return CompanyProfile::canAccess($this->company_id);\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "92fe52e633675784b9afa8179bf4fd84", "score": "0.58949214", "text": "public function hasPermission($key = array('admin')) {\n\t\t$groups = $this->_db->get('groups', array('id', '=', $this->data()->groups));\n\n\t\t// Check if user is in a group or not\n\t\tif($groups->count()) {\n\t\t\t// Grab the json from the user\n\t\t\t$permissions = json_decode($groups->first()->permissions, true);\n\t\t\tfor($i=0;$i<=count($key)-1; $i++) {\n\t\t\t\tif(isset($permissions[$key[$i]])) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// user does not have permission\n\t\treturn false;\n\n\t}", "title": "" }, { "docid": "7743f5e034651fcfb232f8f1ae422a14", "score": "0.58874446", "text": "protected function genericHasAccess(&$arrAttributes)\n\t{\n\t\tif(isset($arrAttributes['module']))\n\t\t{\n\t\t\treturn $this->User->hasAccess($arrAttributes['module'], 'modules');\t\t\t\n\t\t}\n\t\t\n\t\tif($arrAttributes['ptable'])\n\t\t{\n\t\t\t$strTable = $GLOBALS['TL_DCA'][$this->strTable]['config']['ptable'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$strTable = isset($arrAttributes['table']) ? $arrAttributes['table'] : $this->strTable;\n\t\t}\n\t\t\n\t\tif(isset($arrAttributes['permission']) && isset($arrAttributes['action']))\n\t\t{\n\t\t\tif($arrAttributes['action'] == 'alexf')\n\t\t\t{\n\t\t\t\t\n\t\t\t\t$arrAttributes['action'] = $strTable . '::' . $arrAttributes['action'];\n\t\t\t}\n\t\t\t\n\t\t\treturn $this->User->hasAccess($arrAttributes['action'], $arrAttributes['permission']);\t\t\t\n\t\t}\n\t\telseif(isset($arrAttributes['alexf']))\n\t\t{\n\t\t\treturn $this->User->hasAccess($strTable . '::' . $arrAttributes['alexf'], 'alexf');\n\t\t}\n\t\telseif(isset($arrAttributes['fop']))\n\t\t{\n\t\t\treturn $this->User->hasAccess($arrAttributes['fop'], 'fop');\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d95740a12719ed026935766c2bae0ebd", "score": "0.5876951", "text": "function checkPermission_dashmanage()\n\t{\n\tglobal $managed_home_dash,$unmanaged_home_dash_admins;\n\treturn !checkPermission_anonymoususer() && ((!$managed_home_dash && (checkPermission_dashuser() || checkPermission_dashadmin()))\n\t\t\t\t|| ($unmanaged_home_dash_admins && checkPermission_dashadmin()));\n\t}", "title": "" }, { "docid": "3e9560e3782f073bf144d802c5ac212f", "score": "0.5875278", "text": "public static function api_required_permissions() {\n\t\treturn current_user_can( WPRM_Settings::get( 'features_manage_access' ) );\n\t}", "title": "" }, { "docid": "3e9560e3782f073bf144d802c5ac212f", "score": "0.5875278", "text": "public static function api_required_permissions() {\n\t\treturn current_user_can( WPRM_Settings::get( 'features_manage_access' ) );\n\t}", "title": "" }, { "docid": "384f8fbd6650385cfcb72367f20077f6", "score": "0.58745366", "text": "public function isAuthorized($permissions) {\n $role = $this->role()->first();\n if (!is_array($permissions)) {\n foreach ($this->cachedPermissions($role) as $cachePermission) {\n if ($cachePermission === $permissions) {\n return true;\n }\n }\n } else {\n foreach ($this->cachedPermissions($role) as $cachePermission) {\n if(in_array($cachePermission,$permissions)) {\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "aa40e038d76a856b043290fd455025a6", "score": "0.5870189", "text": "public function get_permission()\n {\n if (current_user_can('administrator') || current_user_can('manage_woocommerce')) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "e83b170e83dfc5d9875ae52e50e3e412", "score": "0.5867424", "text": "public function hasPermission(string $permission): bool\n {\n if ($this->is_manager) {\n // The manager user has all the permissions\n return true;\n }\n\n return $this->permissions()->where('name', $permission)->count() > 0;\n }", "title": "" }, { "docid": "3a21d0d7ae2ad294b89a49bb128cd7a9", "score": "0.5859636", "text": "function check_permission($permission, $destUserId = false) {\n\treturn true;\n}", "title": "" }, { "docid": "ba78fdfbad8be5016f9bb3b800e338e2", "score": "0.58572936", "text": "function hasPermission($name = null);", "title": "" }, { "docid": "9eddacbb5e52b7ecc24a31cb084c0bca", "score": "0.5855156", "text": "protected function canAll(array $permissions)\n {\n foreach ($permissions as $permission) {\n if (!$this->hasPermission($permission)) {\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "b10cd692201cad9976a5cb079280eb91", "score": "0.5850724", "text": "function checkPermission() {\n\t\t$activePerson = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('*',$this->personTable,'feuser_id = '.intval($GLOBALS['TSFE']->fe_user->user['uid']).$this->cObj->enableFields($this->personTable));\n\t\t$activePerson = $activePerson[0];\n\t\t\n\t\t$count = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('count(*)',$this->authorMMTable,'uid_local = '.intval($this->piVars['uid']).' AND uid_foreign = '.intval($activePerson['uid']));\n\t\t\t// handle invalid request\n\t\t\n\t\t$person = $this->pi_getRecord($this->table,$authorUid);\n\t\tif (($count[0]['count(*)'] == 0) && ($activePerson['publadmin'] != 1)) {\n\t\t\tdie(\"You're not allowed to edit this record!\");\n\t\t}\n\t}", "title": "" }, { "docid": "ae2cd3beacade544ae69883258ddea52", "score": "0.5847107", "text": "public function user_has_access() {\n\t\treturn current_user_can( 'pvm_edit_projects' );\n\t}", "title": "" }, { "docid": "ae2cd3beacade544ae69883258ddea52", "score": "0.5847107", "text": "public function user_has_access() {\n\t\treturn current_user_can( 'pvm_edit_projects' );\n\t}", "title": "" }, { "docid": "ae2cd3beacade544ae69883258ddea52", "score": "0.5847107", "text": "public function user_has_access() {\n\t\treturn current_user_can( 'pvm_edit_projects' );\n\t}", "title": "" }, { "docid": "e400dd313924c960f9a700970e997af6", "score": "0.5842548", "text": "public function es_inaccesible()\n {\n $grupos = $this->grupos_acceso();\n //--- Si no es de consola ni publico y no tiene grupos de acceso, no hay forma de accederlo\n $sin_grupo = (!$this->es_de_consola() && !$this->es_publico() && count($this->grupos_acceso()) == 0);\n if ($sin_grupo) {\n if (!$this->es_carpeta()) {\n $this->info_extra .= \"El ítem es inaccesible porque no hay grupo de acceso que tenga permiso de accederlo.\";\n }\n return true;\n }\n //--- Si es de menu y algun padre no lo es, no se va a mostrar en el mismo\n $es_de_menu = $this->es_de_menu();\n $padre = $this->get_padre();\n while ($padre != null) {\n if ($es_de_menu && ! $padre->es_de_menu()) {\n $this->info_extra .= \"El ítem es inaccesible por menú porque la carpeta `{$padre->get_nombre()}` no se muestra en el mismo.\";\n return true;\n break;\n }\n $padre = $padre->get_padre();\n }\n return false;\n }", "title": "" }, { "docid": "09173549e2db1c4c867b596a42a6d9d4", "score": "0.58333254", "text": "public function isUserHasSomeAdminAccess()\n {\n if ($this->hasSuperUserAccess()) {\n return true;\n }\n\n $idSitesAccessible = $this->getSitesIdWithAdminAccess();\n\n return count($idSitesAccessible) > 0;\n }", "title": "" }, { "docid": "a481f1f17febabf4f213320e6a858422", "score": "0.5828757", "text": "public static function hasPermission($permission) {\n if (!isset($_SESSION['member_permissions'])) {\n return false;\n }\n if ($permission === null) {\n return true;\n }\n return in_array($permission, $_SESSION['member_permissions']);\n }", "title": "" }, { "docid": "d28e1c6075855edcf56457db2f28e0ef", "score": "0.58254117", "text": "public function allowed_group($permissions = FALSE)\n {\n if ( !$permissions || (is_array($permissions) && empty($permissions)))\n {\n return FALSE;\n }\n\n // Super Admins always have access\n if (ee()->session->userdata('group_id') == 1)\n {\n return TRUE;\n }\n\n if ( !is_array($permissions))\n {\n $permissions = array($permissions);\n }\n\n foreach ($permissions as $perm)\n {\n $k = ee()->session->userdata($perm);\n\n if ( !$k || $k !== 'y')\n {\n return FALSE;\n }\n }\n\n return TRUE;\n }", "title": "" }, { "docid": "0880028a492d73ba23f49a543e646434", "score": "0.5824464", "text": "public function adminExists()\n {\n $sql = 'SELECT COUNT(*) FROM `users` WHERE `role_id` = 1';\n $stmt = $this->getDB()->prepare($sql);\n $stmt->execute();\n\n $count = $stmt->fetchColumn();\n\n return $count > 0;\n }", "title": "" }, { "docid": "1f69d12e5c8154e9fc4df609e5028ec2", "score": "0.581679", "text": "public function isExempt()\n\t{\n\t\tif (!isset($this->REMOTE_USER)) { return false; }\n\t\treturn in_array(strtolower($this->REMOTE_USER),$this->exemptUsers);\n\t}", "title": "" }, { "docid": "3d9c4e408786f66f2ffb244a82bcfcf1", "score": "0.5816626", "text": "public function hasPerm($permission) {\n return isset($this->permissions[$permission]);\n }", "title": "" }, { "docid": "a46a75bbe50cc6df4831e11511c8b5fb", "score": "0.5813994", "text": "public function hasPermissionTo(...$permissions): bool\n {\n $rules = $this->getAllPermissions()\n ->map(static function (string $rule) {\n return explode('/', $rule);\n });\n\n $permissions = collect($permissions)\n ->flatten();\n\n return $permissions\n ->map(static function (string $permission) {\n return explode('/', $permission);\n })\n ->filter(function (array $permission) use ($rules) {\n return $this->matchPermission($rules, $permission);\n })->count() === $permissions->count();\n }", "title": "" }, { "docid": "6d50ace344080cae3b2a9d76efb9a383", "score": "0.58115", "text": "public function doesNotHavePermission($permission)\n {\n return !$this->hasPermission($permission);\n }", "title": "" }, { "docid": "c4125b7d8f9f92d391147fdf3ef542f8", "score": "0.58109975", "text": "public function hasPermission($user) {\n\t\treturn Utils::getNotFoundResponse();\n\t}", "title": "" }, { "docid": "2649f13255a38e483e5874a2ae6f6a97", "score": "0.5803654", "text": "function check_permission() {\n $CFG = $this->config->item('user_configure');\n if (!addPermission($CFG[\"sector\"][\"add\"])) {\n $this->form_validation->set_message('check_permission', _e('access_denied'));\n return false;\n }\n }", "title": "" }, { "docid": "29010efaf5d9e8855130a7361c05852f", "score": "0.57999855", "text": "public function isAllowed($permission);", "title": "" }, { "docid": "89950211682c0640bfcb8c4c07c6a5f8", "score": "0.57980394", "text": "public function isAllowed(): bool\n\t{\n\t\treturn $this->user->isAllowed($this->permission, 'view');\n\t}", "title": "" }, { "docid": "2b7e8cd803940fade2f8d5d648f1b714", "score": "0.5793235", "text": "public function hasAccess($permission){\n \tif ( !$this->check() ) {\n return false;\n }\n\n return Sentinel::hasAccess($permission);\n }", "title": "" }, { "docid": "449018bbee0be0d165d3db76b61ccf96", "score": "0.578678", "text": "public function checkPermissions(){\n $route = str_replace('/','.',Yii::$app->request->getPathInfo());\n $flag = can($route);\n if($flag){\n return true;\n // throw new \\yii\\web\\NotFoundHttpException(\"您沒有该操作权限!\",403);\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "8cda6187e9ece8c68583b84cdbcedb44", "score": "0.57853866", "text": "static public function permissionCheck(string $permission)\n {\n if ( !Gate::allows('developer') && !Gate::allows('all_allow') && !Gate::allows($permission)) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "bfd6f4a772ea5b31c00f3d75cb4e9b7c", "score": "0.57843935", "text": "public function get_item_permissions_check( $request ) {\n\t\t\treturn current_user_can( 'read' );\n\t\t}", "title": "" }, { "docid": "8bb4aa9831d1ada212e1e2c76f070373", "score": "0.57747775", "text": "function checkPermission()\n {\n return true;\n }", "title": "" }, { "docid": "7ab2b86ab34a35853da8d85fc4d94108", "score": "0.5766812", "text": "public static function check()\n\t{\n\t\tglobal $user;\n\t\treturn ($user->uid == true);\n\t}", "title": "" }, { "docid": "5a8836e327c0fc08a355a0e0b441ff06", "score": "0.5763523", "text": "public function canCurrentUserAccess()\n\t{\n\t\treturn Tmvc_Model_Auth::getInstance()->isAtLeast($this->_requiredUserLevel);\n\t}", "title": "" } ]
86ece353990ed3a358b473798febba6c
Ask the user for an writeable output directory
[ { "docid": "f398a4e595f8484e567b395610fff5fb", "score": "0.68561655", "text": "public function getOutputDirectory($default)\n {\n CLI::line('Enter the output directory. This should be the *root* of your project.');\n CLI::line('You can also copy your files afterwards.');\n $outputDirectory = CLI::getLine('Enter writeable directory', $default);\n $outputDirectory = rtrim($outputDirectory, DIRECTORY_SEPARATOR); //Remove *all* trailing slashes\n $outputDirectory = $outputDirectory . DIRECTORY_SEPARATOR; //Make sure there is a slash\n\n /** Tested but does weird things on windows... */\n /*\n if (preg_match(\"/\\/cygdrive\\/([a-z])\\/(.*)/\", $outputDirectory) != 0) {\n $outputDirectory = preg_replace(\"/\\/cygdrive\\/([a-z])\\/(.*)/\", \"$1:/$2\", $outputDirectory);\n $outputDirectory = ucfirst(str_replace('/', '\\\\', $outputDirectory));\n\n CLI::line('I see you\\'re using cygwin. I have converted the path for you.');\n CLI::line('Converted: ' . $outputDirectory);\n if (CLI::getLine('Do you want to edit it? (y/n)', 'n') == 'y') {\n $this->getOutputDirectory($outputDirectory);\n }\n }\n */\n\n $this->setSetting('outputdirectory', $outputDirectory);\n\n if (!is_dir($outputDirectory)) {\n CLI::line('Directory (' . $outputDirectory . ') not found.');\n $this->getOutputDirectory($outputDirectory);\n }\n\n if (!self::is_writable($outputDirectory)) {\n CLI::line('Directory (' . $outputDirectory . ') must be writable, dummy!');\n $this->getOutputDirectory($outputDirectory);\n }\n }", "title": "" } ]
[ { "docid": "34a6f62a0e38790b9c78a0590a82bae6", "score": "0.6406303", "text": "public function getOutputDir();", "title": "" }, { "docid": "49b3f8e020d6d9665013f61ca80e5d06", "score": "0.62882304", "text": "public function outputPath(){\n\n\t\t// set default uploads path as output path\n\t\t$outputDir = $this->uploadsPath();\n\n\t\t// check for outputDir set in saved options\n\t\tparse_str($this->_options->getOption('static-export-settings'), $pluginOptions);\n\t\tif ( array_key_exists('outputDirectory', $pluginOptions )) {\n\t\t\tif ( !empty($pluginOptions['outputDirectory']) ) {\n\t\t\t\t$outputDir = $pluginOptions['outputDirectory'];\n\t\t\t}\n\t\t} \n\n\t\t// override if user has specified it in the UI\n\t\tif ( !empty(filter_input(INPUT_POST, 'outputDirectory')) ) {\n\t\t\t$outputDir = filter_input(INPUT_POST, 'outputDirectory');\n\t\t} \n\n\t\t// if dir doesn't exist, try to create it recursively\n\t\tif ( !is_dir($outputDir) ) {\n\t\t\tif ( !mkdir($outputDir, 0755, true) ) {\n\t\t\t\t// reverting back to default uploads path\t\n\t\t\t\t$outputDir = $this->uploadsPath();\n\t\t\t}\n\t\t}\n\n\t\t// if path is not writeable, revert back to default\t\n\t\tif ( empty($outputDir) || !is_writable($outputDir) ) {\n\t\t\t$outputDir = $this->uploadsPath();\n\t\t}\n\n\t\treturn $outputDir;\n\t}", "title": "" }, { "docid": "32834d703b77d6036610c6c1f83e6a2d", "score": "0.6064464", "text": "protected function getInputDirectory()\n {\n $directory = $this->input->getOption('directory');\n if (!$directory) {\n $directory = $this->pickDirectory();\n }\n return $directory;\n }", "title": "" }, { "docid": "6f7c4d2f34f069c670b52116e7c00fd9", "score": "0.5868031", "text": "protected function pickDirectory()\n {\n $version = $this->getInputVersion();\n $recipe = $this->getInputRecipe();\n\n $filename = DIRECTORY_SEPARATOR . 'release-' . str_replace('/', '_', $recipe) . '-' . $version->getValue();\n $cwd = getcwd();\n\n // Check if we are already in this directory\n if (strrpos($cwd, $filename) === strlen($cwd) - strlen($filename)) {\n return $cwd;\n }\n\n return $cwd . $filename;\n }", "title": "" }, { "docid": "ef8547a333607a38665f9b2791f21b3c", "score": "0.5683107", "text": "abstract protected function outputFilePath(InputInterface $input);", "title": "" }, { "docid": "1fc5efc23c5f511ba911e9d86dd1e7df", "score": "0.5641393", "text": "protected abstract function getOutputPath();", "title": "" }, { "docid": "3ba1c8c96d5a13e96eb1bca38486cf28", "score": "0.5509971", "text": "public function output($output)\n {\n if (!is_string($output)) {\n throw new \\InvalidArgumentException('Output file is not a valid ressource.');\n }\n\n // create output directory if not exists\n if (!file_exists(dirname($output)) && !mkdir(dirname($output))) {\n throw new \\RuntimeException('Can\\'t create output directory.');\n }\n\n // check if output dirname is writable, if it is a file and if it is also writable\n if (!is_writable(dirname($output)) || (file_exists($output) && !is_writable($output))) {\n throw new \\InvalidArgumentException('Output file is not writable.');\n }\n\n $this->outputPath = $output;\n }", "title": "" }, { "docid": "41f5216bccfe5520b67c57e0ffaa7e42", "score": "0.5484928", "text": "protected function promptPackageDir() {\n\t\t$packageDir = $errorField = $errorType = '';\n\t\tif (isset($_POST['send'])) {\n\t\t\tif (isset($_POST['packageDir'])) {\n\t\t\t\t$packageDir = StringUtil::trim($_POST['packageDir']);\n\t\t\t}\n\n\t\t\t// error handling\n\t\t\ttry {\n\t\t\t\t$dir = FileUtil::addTrailingSlash(FileUtil::unifyDirSeperator($packageDir));\n\t\t\t\t\n\t\t\t\t// package can not be installed into the wcf directory\n\t\t\t\tif (FileUtil::unifyDirSeperator(WCF_DIR) == $dir) {\n\t\t\t\t\tthrow new UserInputException('packageDir', 'wcfDirLocked');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// this package is a standalone package and needs its own package directory\n\t\t\t\t$relativePackageDir = FileUtil::getRelativePath(WCF_DIR, $dir);\n\t\t\t\t$sql = \"SELECT \tCOUNT(*) AS count\n\t\t\t\t\tFROM\twcf\".WCF_N.\"_package\n\t\t\t\t\tWHERE\tpackageDir = '\".escapeString($relativePackageDir).\"'\";\n\t\t\t\t$alreadyInstalled = WCF::getDB()->getFirstRow($sql);\n\t\t\t\tif ($alreadyInstalled['count'] > 0) {\n\t\t\t\t\tthrow new UserInputException('packageDir', 'alreadyInstalled');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// check writing property\n\t\t\t\tif (@file_exists($dir) && !@is_writable($dir)) {\n\t\t\t\t\tthrow new UserInputException('packageDir', 'notWritable');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn $relativePackageDir;\n\t\t\t}\n\t\t\tcatch (UserInputException $e) {\n\t\t\t\t$errorField = $e->getField();\n\t\t\t\t$errorType = $e->getType();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// make default dir\n\t\t\t//$packageNameParts = explode('.', $this->installation->getPackage()->getPackage());\n\t\t\t//$packageDir = FileUtil::getRealPath(WCF_DIR.'../'.$packageNameParts[count($packageNameParts) - 1]);\n\t\t\t$packageDir = FileUtil::getRealPath(WCF_DIR.'../');\n\t\t}\n\t\t\n\t\t// domain\n\t\t$domainName = '';\n\t\tif (!empty($_SERVER['SERVER_NAME'])) $domainName = 'http://' . $_SERVER['SERVER_NAME'];\n\t\t// port\n\t\tif (!empty($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] != 80) $domainName .= ':' . $_SERVER['SERVER_PORT'];\n\t\t// wcf url\n\t\t$wcfUrl = '';\n\t\tif (!empty($_SERVER['REQUEST_URI'])) $wcfUrl = FileUtil::removeTrailingSlash(FileUtil::getRealPath(FileUtil::removeLeadingSlash(FileUtil::removeTrailingSlash(dirname($_SERVER['REQUEST_URI']))).'/'.RELATIVE_WCF_DIR));\n\t\t\n\t\tWCF::getTPL()->assign(array(\n\t\t\t'packageDir' => $packageDir,\n\t\t\t'errorField' => $errorField,\n\t\t\t'errorType' => $errorType,\n\t\t\t'domainName' => $domainName,\n\t\t\t'wcfUrl' => $wcfUrl,\n\t\t\t'wcfDir' => FileUtil::unifyDirSeperator(WCF_DIR)\n\t\t));\n\t\tWCF::getTPL()->display('packageInstallationPromptPackageDir');\n\t\texit;\n\t}", "title": "" }, { "docid": "37758dd9ceab8fab0a463e1b2ac66ef8", "score": "0.5374497", "text": "public static function OutputFolder()\n {\n return dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . Configuration::getApplicationFolder() . DIRECTORY_SEPARATOR . 'Output';\n }", "title": "" }, { "docid": "79ed9780984ea1c487c00f400515c29c", "score": "0.5264015", "text": "public function set_output_dir( $output_dir ) {\n\t\t$this->output_dir = $output_dir;\n\t}", "title": "" }, { "docid": "a192ebe1fb7063dbb500157bcc60dcab", "score": "0.52257377", "text": "function ju_fs_w(string $type) {return ju_fs()->getDirectoryWrite($type);}", "title": "" }, { "docid": "ad88ee455550d47cc52629a74d737fc9", "score": "0.5216089", "text": "protected function getDirectory(InputInterface $input)\n {\n $dir = $input->getOption('directory');\n if (!is_dir($dir)) {\n throw new \\Exception('directory \"' . $dir . '\" not found');\n }\n\n if (!is_dir($dir . DIRECTORY_SEPARATOR . 'etc' . DIRECTORY_SEPARATOR . 'appserver')) {\n throw new \\Exception('directory \"' . $dir . '\" is no appserver directory');\n }\n \n return $dir;\n }", "title": "" }, { "docid": "a613e63ed182bbc50e8166d0e43bcff0", "score": "0.5213554", "text": "public function getOutputDir()\r\n {\r\n return $this->_outputDir;\r\n }", "title": "" }, { "docid": "3d937b5b347d5b4a0614c7b0d2fea8bf", "score": "0.51923734", "text": "function getoutputfname($user_id,$prob_id)\n{\n return OUTPUT_DIR.\"/\".$user_id.\"-\".$prob_id.\"-out.zip\";\n}", "title": "" }, { "docid": "23db904db4248bc674bcf1d73f3ffc65", "score": "0.5147404", "text": "protected function getOutputDirectoryName() {\n return 'Creteria';\n }", "title": "" }, { "docid": "ad73c3c6968e87c66e61c03cd132a7e2", "score": "0.5112686", "text": "function getOutputPath()\r\n {\r\n\r\n }", "title": "" }, { "docid": "5e6147f26769e60f32804c2a853f79af", "score": "0.5111321", "text": "public function getOutputDir()\n {\n return $this->outputDir;\n }", "title": "" }, { "docid": "6ac22b449b65b94573439b5bc7de8ca7", "score": "0.5103669", "text": "function createOutputFolder($alternative_module = null) {\n $module_name = $alternative_module ? $alternative_module : $this->module_name;\n \n if ($module_name) {\n $export_dir = $this->main_output_folder .'/'.$module_name;\n } else {\n $export_dir = $this->main_output_folder ;\n }\n \n $this->output_folder = $export_dir;\n \n if (!is_dir($export_dir)) {\n $result = recursive_mkdir($export_dir,0777,WORK_PATH);\n } else {\n return true;\n }\n \n if (!$result) {\n $this->execution_log->addError(lang(\"Failed to create output folder: \".$export_dir));\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "c8689aa7652175ce409bc348b6e5a5a5", "score": "0.50580966", "text": "public function build()\n {\n echo \"\\n\";\n echo \" \";\n echo \"dir: \";\n echo $dir = $this->get('dir');\n echo \"\\n\";\n\n\n if(is_dir($dir))\n {\n chdir($dir);\n return true;\n }\n\n $this->set('output', new LimitedString('dir: ' . $dir));\n\n return false;\n }", "title": "" }, { "docid": "118133130096177847b3e0e4963cef4e", "score": "0.50442415", "text": "public function getInputDirectory()\n {\n return $this->inputDirectory;\n }", "title": "" }, { "docid": "9cd59b6cc90b0456200c777ff65fad53", "score": "0.50436103", "text": "protected function starterKitPathPrompt() {\n\t\tInstallerUtil::$isInteractive = true;\n\t\t$input = Console::promptInput(\"Tell me the path to the starterkit you want to watch.\",\"e.g. vendor/pattern-lab/starterkit-mustache-demo/dist\",\"baz\",false);\n\t\t\n\t\t// set-up the full starterkit path\n\t\t$starterKitPath = Config::getOption(\"baseDir\").$input;\n\t\tif (!is_dir($starterKitPath)) {\n\t\t\tConsole::writeWarning(\"that doesn't seem to be a real directory. let's try again...\");\n\t\t\t$starterKitPath = $this->starterKitPathPrompt();\n\t\t}\n\t\t\n\t\treturn $starterKitPath;\n\t\t\n\t}", "title": "" }, { "docid": "e9345a9008c700e96a7aa27506c02773", "score": "0.50162345", "text": "protected function outputPath(): string\n {\n return $this->config['output_file'] ?? 'herodot/index.html';\n }", "title": "" }, { "docid": "a5bdf9e5eeac7d251c70d14e5b593905", "score": "0.49891767", "text": "function _exportDirectory($destination_dirpath);", "title": "" }, { "docid": "b544299dea205ad121572d6979257bbe", "score": "0.49732256", "text": "public function getOutputDirectory()\n {\n return $this->outputDirectory;\n }", "title": "" }, { "docid": "82b089aa560c272e5c855388d4113571", "score": "0.49720892", "text": "public function askFieldOptions(\\StdClass &$module, \\StdClass &$field, InputInterface $input, OutputInterface $output)\n {\n // Path\n $path = $output->ask('What is the target path? (Only if you want to create subdirectory)', null);\n if (!is_null($path)) {\n $field->data->path = $path;\n }\n }", "title": "" }, { "docid": "a260cbca63e05ca46fe1ed456da93847", "score": "0.49598572", "text": "public function getOutputFolder(bool $include_public_folder = true): string;", "title": "" }, { "docid": "18f86d61430a6c28ab579e47bc64b638", "score": "0.49233672", "text": "function write( $output, $post ) {\n\n\t\tglobal $wp_filesystem;\n\n\t\tif ( get_post_status( $post ) !== 'publish' ) {\n\t\t\t$filename = '_drafts/' . sanitize_file_name( get_page_uri( $post->id ) . '-' . ( get_the_title( $post->id ) ) . '.md' );\n\t\t} elseif ( get_post_type( $post ) === 'page' ) {\n\t\t\t$filename = get_page_uri( $post->id ) . '.md';\n\t\t} else {\n\t\t\t$filename = '_' . get_post_type( $post ) . 's/' . date( 'Y-m-d', strtotime( $post->post_date ) ) . '-' . sanitize_file_name( $post->post_name ) . '.md';\n\t\t}\n\n\t\t$wp_filesystem->mkdir( $this->dir . dirname( $filename ) );\n\t\t$wp_filesystem->put_contents( $this->dir . $filename, $output );\n\t}", "title": "" }, { "docid": "224677f31b8488cc256e0db90c354117", "score": "0.49061984", "text": "abstract public function getTargetDir();", "title": "" }, { "docid": "942d028a458949a995b04abead150777", "score": "0.489904", "text": "private function createDestinationDirectory()\n {\n ensure_directory($this->getDestination());\n }", "title": "" }, { "docid": "151672444fb6e8653f5be323292a22d7", "score": "0.48932222", "text": "function DirForm()\n\t{\t$form = new Form(\"mapbuild.php\", \"dirForm\");\n\t\t$form->AddTextInput(\"directory (relative to this)\", \"dir\", $_GET[\"dir\"] ? urldecode($_GET[\"dir\"] ) : $_POST[\"dir\"], \n\t\t\t\t\t\t\t\t\"inpDir\");\n\t\t$form->AddSubmitButton(\"\", \"scan directory\");\n\t\t$form->OutPut();\n\t}", "title": "" }, { "docid": "df761b6886705e6a7cf8038cca1c8c7a", "score": "0.48892206", "text": "protected function interact(InputInterface $input, OutputInterface $output)\n {\n $this->inProject($input, $output);\n\n $helper = $this->getHelper('question');\n $storeType = $input->getOption('type');\n if (empty($input->getOption('type')) === true) {\n $question = new \\Symfony\\Component\\Console\\Question\\ChoiceQuestion(\n 'Please select which store type you are wanting to create.',\n ['data', 'user'],\n 0\n );\n\n $storeType = $helper->ask($input, $output, $question);\n $input->setOption('type', $storeType);\n $output->writeln('You have just selected: '.$storeType);\n }\n\n $sourceType = $input->getOption('sourceType');\n if ($sourceType === null){\n $input->setOption('sourceType', $storeType);\n }\n\n $projectDir = Libs\\FileSystem::getProjectDir();\n if (strtolower($storeType) === 'data') {\n $this->storeDir = $projectDir.'/Stores/Data/';\n $this->readableType = 'Data Store';\n $this->type = 'DataStore';\n } else if (strtolower($storeType) === 'user') {\n $this->storeDir = $projectDir.'/Stores/User/';\n $this->readableType = 'User Store';\n $this->type = 'UserStore';\n }\n\n if (is_dir($this->storeDir) === false) {\n Libs\\FileSystem::mkdir($this->storeDir, true);\n }\n\n $this->targetCode = $input->addArgument('storeName');\n\n }", "title": "" }, { "docid": "a32d73ef5844f6328cc5d1c8a6ab3aa9", "score": "0.48800534", "text": "private function getDest(){\n $dest = dirname(__FILE__).$this->cfg['destination'];\n if(!is_writable($dest)){\n mkdir($dest);\n }\n return $dest;\n }", "title": "" }, { "docid": "18e93f8f193e1cb06ea673abb3b8bf1d", "score": "0.48728356", "text": "function axiom_is_dir_writable($the_dir){\n if(!function_exists('get_filesystem_method')) false;\n \n return (get_filesystem_method(array(), $the_dir) == \"direct\");\n}", "title": "" }, { "docid": "96d3feba1fb25ea3c3dea3ca661cce4d", "score": "0.4871753", "text": "public function ensureDirectoryExists($outputFilename)\n {\n $directoryName = dirname($outputFilename);\n @mkdir($directoryName, 0755, true);\n //TODO - double-check umask\n if (file_exists($directoryName) === false) {\n throw new \\Exception(\"Directory $directoryName does not exist and could not be created\");\n }\n }", "title": "" }, { "docid": "0764698a9f04e4df3f6946d9bb47f7c1", "score": "0.48621842", "text": "function decideFilePath()\n\t{\n\t\tglobal $adb;\n\t\t$filepath = 'storage';\n\t\tif (!is_dir($filepath))\n\t\t{\n\t\t\tmkdir($filepath);\n\t\t}\n\t\t$filepath .= '/'.XN_Application::$CURRENT_URL;\n\t\tif (!is_dir($filepath))\n\t\t{\n\t\t\tmkdir($filepath);\n\t\t}\n\t\t$year = date('Y');\n\t\t$month = date('F');\n\t\t$day = date('md');\n\t\t$week = '';\n\t\t$filepath .= '/'.$year;\n\t\tif (!is_dir($filepath))\n\t\t{\n\t\t\tmkdir($filepath);\n\t\t}\n\t\t$filepath .= '/'.$month;\n\t\tif (!is_dir($filepath))\n\t\t{\n\t\t\tmkdir($filepath);\n\t\t}\n\t\t$filepath .= '/'.$day;\n\t\tif (!is_dir($filepath))\n\t\t{\n\t\t\tmkdir($filepath);\n\t\t}\n\t\t$filepath .= '/';\n\n\t\treturn $filepath;\n\t}", "title": "" }, { "docid": "f319212eac4e5b32a02c410a0a1be5d6", "score": "0.48514017", "text": "function kalatheme_write_stuff($subtheme, $directory) {\n foreach ($subtheme as $key => $value) {\n $filename = $directory . $key;\n $dir = dirname($filename);\n if (is_dir($dir) || mkdir($dir, 0777, TRUE)) {\n if (!file_put_contents($filename, $value)) {\n return FALSE;\n }\n }\n else {\n return FALSE;\n }\n }\n return TRUE;\n}", "title": "" }, { "docid": "28e545a9f974dd280df5aece32c60944", "score": "0.48451835", "text": "function checkDirectoriesWriteable() {\n if (trim(PAPAYA_PATH_DATA) != '') {\n $this->checkDirectoryWriteable(dirname(PAPAYA_PATH_MEDIAFILES), 'Media main path');\n $this->checkDirectoryWriteable(PAPAYA_PATH_MEDIAFILES, 'Media files path');\n $this->checkDirectoryWriteable(PAPAYA_PATH_THUMBFILES, 'Thumbnail path');\n $this->checkDirectoryWriteable(PAPAYA_PATH_CACHE, 'Cache path');\n } else {\n $this->papaya()->messages->dispatch(\n new PapayaMessageDisplay(\n PapayaMessage::TYPE_ERROR, $this->_gt('Please set and save the PAPAYA_PATH_DATA option.')\n )\n );\n }\n }", "title": "" }, { "docid": "a69cd1a4a79394e39c1d295ffdf8f96d", "score": "0.4844432", "text": "public static function getOutputCacheDir()\n {\n // make sure xarOutputCache is initialized\n if (!xarCache::$outputCacheIsEnabled) {\n // get the caching configuration\n $config = xarCache::getConfig();\n // initialize the output cache\n sys::import('xaraya.caching.output');\n //xarCache::$outputCacheIsEnabled = xarOutputCache::init($config);\n xarOutputCache::init($config);\n // make sure we don't cache here\n xarCache::noCache();\n }\n return xarOutputCache::$cacheDir;\n }", "title": "" }, { "docid": "eb4f1646e56ae85de07b22371ea18189", "score": "0.48393854", "text": "abstract protected function getDirectory(): string;", "title": "" }, { "docid": "2521484f852b56374a0bc40978752fe2", "score": "0.48377967", "text": "protected function get_src( $output )\n {\n $path = $this->root_dir();\n //return '/' . $output ;\n return $output ;\n }", "title": "" }, { "docid": "520f1d42f73feb7d8d9e385fc3d09f82", "score": "0.48335406", "text": "function setOutputFolder($folder) {\n $this->output_folder = $folder;\n }", "title": "" }, { "docid": "82c27c26bf08791e9b82e4699020685c", "score": "0.48267508", "text": "static public function makeAndCheckDirectory()\n\t{\n\t\t$args = func_get_args();\n\t\t$path = call_user_func_array('self::make', $args);\n\t\tself::checkDirectory($path);\n\t\treturn $path;\n\t}", "title": "" }, { "docid": "a7e697f9ab457f4b1c07e22865da0770", "score": "0.48252842", "text": "protected function execute(InputInterface $input, OutputInterface $output)\n {\n $this->arguments = $input->getArguments(); \n $this->options = $input->getOptions(); \n\n $this->stub = $this->getStub();\n \n $helper = $this->getHelper('question');\n $question = new Question('<question>Where do you want to save the file? (Press enter for the current directory)</question> ');\n $output_path = $helper->ask($input, $output, $question);\n\n $output_path = !is_null($output_path) ? $output_path : $this->config('source');\n if (!file_exists($output_path)) {\n mkdir($output_path, 0744, true);\n }\n\n if ($this->stub) {\n\n $this->replaceFrequency()\n ->replaceConstraint()\n ->replaceCommand()\n ->replacePath()\n ->replaceDescription();\n\n if (file_put_contents($output_path . '/' . $this->outputFile(), $this->stub)) {\n \n $output->writeln('<info>The task file generated successfully</info>');\n\n }\n\n exit();\n \n } \n\n $output->writeln('<comment>There was a problem when generating the file. Please check your command.</comment>');\n exit();\n\n }", "title": "" }, { "docid": "5390e7c23e12a75027809cc8fdea52cb", "score": "0.48225665", "text": "function input_ftp_dir() {\n global $lang;\n print \"<img src=./html/_img/folder.png> \";\n if ($this->found==true) {\n print $lang->setup_ftp_dir2;\n } else {\n print $lang->setup_ftp_dir2_not_found;\n }\n print \" <input type=text size=30 name=ftp_dir2>\\n\";\n return;\n }", "title": "" }, { "docid": "026974fac4b9cf17449c990a4f4f9e64", "score": "0.48175704", "text": "protected abstract function createTargetDir();", "title": "" }, { "docid": "b797da4a4a325265296ca4d77d48aff2", "score": "0.481334", "text": "private function getDestinationDir()\n {\n if (empty($this->options->cloneDir)) {\n return trailingslashit(WPStaging::getWPpath() . $this->options->cloneDirectoryName);\n }\n return trailingslashit($this->options->cloneDir);\n }", "title": "" }, { "docid": "611a56cca57e3b4aad210aa6f39eea24", "score": "0.48048425", "text": "public function getDirectorySpool();", "title": "" }, { "docid": "b5fcb506e82030dd1e66266b32f82d45", "score": "0.47957337", "text": "function set_dir_work($value)\n{\n\t$this->_dir_work = $value;\n}", "title": "" }, { "docid": "945ba48e1192b53c98577adb94f69526", "score": "0.47729433", "text": "protected function createConfiguration(InputInterface $input, OutputInterface $output)\n {\n $path = $this->getApplication()->getRoot() . '/.jedi.php';\n\n $output->writeln(' - Configuration');\n\n if (file_exists($path)) {\n $question = new ConfirmationQuestion(\n ' <error>Configuration file ' . $path . ' already exists</error>' . PHP_EOL\n . ' <info>Overwrite? [Y/n]</info> ',\n true,\n '/^(y|j)/i'\n );\n\n if (!$this->questionHelper->ask($input, $output, $question)) {\n return;\n }\n }\n\n $fs = new Filesystem();\n\n $question = new Question(' <info>Enter path to web directory relative to '\n . $this->getApplication()->getRoot() . ':</info> ' . PHP_EOL\n . ' (or do not specify if you are already in the web directory)' . PHP_EOL);\n\n $question->setValidator(function ($answer) use ($fs) {\n $path = $answer;\n\n if ($answer === null) {\n $path = $this->getApplication()->getRoot();\n } elseif (!$fs->isAbsolutePath($answer)) {\n $path = $this->getApplication()->getRoot() . '/' . $answer;\n }\n\n if (!is_dir($path)) {\n throw new \\RuntimeException('Directory \"' . $path . '\" is missing');\n }\n\n return $answer;\n });\n\n $webDir = $this->questionHelper->ask($input, $output, $question);\n\n $content = file_get_contents($this->tmplDir . '/.jedi.php');\n $content = str_replace(\n ['%web-dir%', '%env-dir%'],\n [addslashes($webDir), addslashes($this->envDir)],\n $content\n );\n $fs->dumpFile($path, $content);\n\n $output->writeln(' Created configuration file of application <comment>' . $path . '</comment>');\n }", "title": "" }, { "docid": "418db62dad555b9c4e4f4cf47908e4a6", "score": "0.47634047", "text": "public function getOutputDir()\n {\n return dirname($this->pharName);\n }", "title": "" }, { "docid": "165725d349ae73fd54d411d41d176f31", "score": "0.47542933", "text": "protected function interact(InputInterface $input, OutputInterface $output)\n {\n $this->inProject($input, $output);\n\n $helper = $this->getHelper('question');\n $propType = $input->getOption('proptype');\n if (empty($input->getOption('proptype')) === true) {\n $question = new \\Symfony\\Component\\Console\\Question\\ChoiceQuestion(\n 'Please select which custom type you are wanting to create.',\n ['DataRecord', 'Project', 'User',],\n 0\n );\n\n $propType = $helper->ask($input, $output, $question);\n $input->setOption('proptype', $propType);\n $output->writeln('You have just selected: '.$propType);\n }\n\n $projectDir = Libs\\FileSystem::getProjectDir();\n if (strtolower($propType) === 'datarecord') {\n $this->storeDir = $projectDir.'/Properties/Data/';\n $this->type = 'datarecord';\n $this->readableType = 'Data Record';\n } else if (strtolower($propType) === 'project') {\n $this->storeDir = $projectDir.'/Properties/Project/';\n $this->type = 'project';\n $this->readableType = 'Project';\n } else if (strtolower($propType) === 'user') {\n $this->storeDir = $projectDir.'/Properties/User/';\n $this->type = 'user';\n $this->readableType = 'User';\n }\n\n if (is_dir($this->storeDir) === false) {\n Libs\\FileSystem::mkdir($this->storeDir, true);\n }\n\n }", "title": "" }, { "docid": "eb1edf9ca9dfeb78159913f2c6187f23", "score": "0.4748852", "text": "abstract protected function manageDirectory();", "title": "" }, { "docid": "3e53c6211d8cbff5dc9138ecbf11048d", "score": "0.4742661", "text": "function dataFileOK ( $outputFilename ) \n{\n global $errors;\n global $numerrs;\n \n if ( $outputFilename != \"\" ) {\n if ( file_exists($outputFilename) ) {\n if ( ! is_writable($outputFilename) ) {\n $errors[$numerrs] = $outputFilename.\" is not writable. Permissions need to be rw-rw-rw-.\";\n $numerrs++;\n return false;\n }\n } else {\n $errors[$numerrs] = $outputFilename.\" does not exist.\";\n $numerrs++;\n return false;\n }\n } \n\n return true;\n}", "title": "" }, { "docid": "8c9a340a98b80f3b3a121d793865f7de", "score": "0.47255498", "text": "protected function getDirectory(): string\n {\n $directory = $this->input->getArgument('directory');\n\n if (is_array($directory)) {\n throw new BoilerException('Only one directory is allowed.');\n }\n\n if (empty($directory)) {\n $directory = getcwd();\n\n if ($directory === false) {\n throw new BoilerException('Current directory cannot be removed.');\n }\n }\n\n return $directory;\n }", "title": "" }, { "docid": "88c008395daf2e167484ec6336b67565", "score": "0.471461", "text": "function directories($journal = 0) {\n\t$filename = '_repository';\n\tcheck_dir($filename);\n\t$filename .= '/' . $journal;\n\tcheck_dir($filename);\n\t$filename .= '/' . date(\"Y\");\n\tcheck_dir($filename);\n\t$filename .= '/' . date(\"m\");\n\tcheck_dir($filename);\n\treturn ($filename);\n}", "title": "" }, { "docid": "f2333244a054d383c72016ca70e29ed5", "score": "0.47039187", "text": "function generateFiles($name){\n if(!file_exists($name.\".in\")){\n $file = fopen($name.\".in\",\"w\");\n fclose($file);\n }\n if(!file_exists($name.\".out\")){\n $file = fopen($name.\".out\",\"w\");\n fclose($file);\n }\n if(!file_exists($name.\".rc\")){\n $file = fopen($name.\".rc\",\"w\");\n fwrite($file,\"0\\n\");\n fclose($file);\n }\n }", "title": "" }, { "docid": "d6ef296de645a172020a282619297483", "score": "0.4702906", "text": "function generateFile()\n {\n if (is_writable(ABSPATH) || (file_exists(ABSPATH . 'humans.txt') && is_writable(ABSPATH . 'humans.txt'))) {\n $result = file_put_contents(ABSPATH . 'humans.txt', HumansTxt::humans(true));\n\n return $result !== false;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "37116d6cc2f62f17c0304ff461225fbf", "score": "0.47005045", "text": "protected function write_allowed_competitors_txt($output_string){\n\t\tif (empty($output_string)){\n\t\t\techo 'Are you sure you want to make setting.txt empty?';\n\t\t\treturn;\n\t\t}\n\t\t// file_put_contents(\"database/setting.txt\", $output_string);\n\t\t$result=file_put_contents($this->local_setting_file_path, $output_string);\n\t\tif ($result===false){\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "b7975e98497403669d597b267eab3994", "score": "0.46951213", "text": "function check_dir($target_dir) {\n if (!is_dir($target_dir)) {\n $_SESSION['failure']['message'] .= \"Upload directory does not exist.\";\n $uploadOk = 0;\n }\n if (!is_writable($target_dir)) {\n $_SESSION['failure']['message'] .= \"Upload directory is not writable.\";\n $uploadOk = 0;\n }\n}", "title": "" }, { "docid": "9118c96b434af42421b9e56e4b5136bf", "score": "0.4689334", "text": "function writeToFile($destination);", "title": "" }, { "docid": "f2049c0d7303c8a475102adffef7eb8b", "score": "0.4688116", "text": "private function generateDirectory()\n {\n $this->storePath = api_get_path(SYS_COURSE_PATH) . $this->course['path'] . '/exercises/';\n\n if (!is_dir($this->storePath)) {\n mkdir($this->storePath);\n }\n\n if (!is_dir($this->storePath . $this->sessionId)) {\n mkdir($this->storePath . $this->sessionId);\n }\n\n if (!empty($this->exerciseId) && !is_dir($this->storePath . $this->sessionId . '/' . $this->exerciseId)) {\n mkdir($this->storePath . $this->sessionId . '/' . $this->exerciseId);\n }\n\n if (!empty($this->id) && !is_dir($this->storePath . $this->sessionId . '/' . $this->exerciseId . '/' . $this->id)) {\n mkdir($this->storePath . $this->sessionId . '/' . $this->exerciseId . '/' . $this->id);\n }\n\n if (!empty($this->userId) && !is_dir($this->storePath . $this->sessionId . '/' . $this->exerciseId . '/' . $this->id . '/' . $this->userId)) {\n mkdir($this->storePath . $this->sessionId . '/' . $this->exerciseId . '/' . $this->id . '/' . $this->userId);\n }\n\n $params = [\n $this->sessionId,\n $this->exerciseId,\n $this->id,\n $this->userId,\n ];\n\n $this->storePath .= implode('/', $params).'/';\n\n return $this->storePath;\n }", "title": "" }, { "docid": "b9ae28bdf5b7bf5ddc85225c38435492", "score": "0.46832854", "text": "public function setInputDirectory($inputDirectory)\n {\n $this->inputDirectory = $inputDirectory;\n }", "title": "" }, { "docid": "eb726c03c99b67db135edd44b0d1dfa6", "score": "0.46763372", "text": "protected function resolveDirectory()\n {\n return $this->getDirInput().'src';\n }", "title": "" }, { "docid": "eb726c03c99b67db135edd44b0d1dfa6", "score": "0.46763372", "text": "protected function resolveDirectory()\n {\n return $this->getDirInput().'src';\n }", "title": "" }, { "docid": "22d40e734f141e807be79b217ac050a2", "score": "0.4671835", "text": "function build_dir_secure($dirs='') {\n // Write directory security\n if(defined('BUILD_DIR_SECURE') && BUILD_DIR_SECURE) {\n defined('DIR_SECURE_FILENAME') or define('DIR_SECURE_FILENAME', 'index.html');\n defined('DIR_SECURE_CONTENT') or define('DIR_SECURE_CONTENT', ' ');\n // Automatic write to directory security file\n $content = DIR_SECURE_CONTENT;\n $files = explode(',', DIR_SECURE_FILENAME);\n foreach ($files as $filename){\n foreach ($dirs as $dir)\n file_put_contents($dir.$filename,$content);\n }\n }\n}", "title": "" }, { "docid": "28c2588012c3e4825e93dc02e2ff6b62", "score": "0.46708962", "text": "protected function createEnvironmentsDir(InputInterface $input, OutputInterface $output)\n {\n $targetDir = getcwd() . '/' . $this->envDir;\n $tmplDir = $this->tmplDir . '/environments';\n\n $output->writeln(' - Environment settings');\n\n if (file_exists($targetDir)) {\n $question = new ConfirmationQuestion(\n ' <error>Directory ' . $targetDir . ' already exists</error>' . PHP_EOL\n . ' <info>Overwrite? [Y/n]</info> ',\n true,\n '/^(y|j)/i'\n );\n\n if (!$this->questionHelper->ask($input, $output, $question)) {\n return;\n }\n }\n\n $fs = new Filesystem();\n $tmplIterator = new \\RecursiveDirectoryIterator($tmplDir, \\RecursiveDirectoryIterator::SKIP_DOTS);\n $iterator = new \\RecursiveIteratorIterator($tmplIterator, \\RecursiveIteratorIterator::SELF_FIRST);\n\n foreach ($iterator as $item) {\n $itemPath = $targetDir . '/' . $iterator->getSubPathName();\n\n if ($item->isDir()) {\n $fs->mkdir($itemPath);\n } else {\n $fs->copy($item, $itemPath, true);\n }\n }\n\n $output->writeln(' Created directory settings of environments: <comment>' . $targetDir . '</comment>');\n }", "title": "" }, { "docid": "6f34dc7d7e9d99daca794050bb5659b6", "score": "0.46613306", "text": "function getDir();", "title": "" }, { "docid": "ba53b96d6d3adbdb1e3536c6acda9ad1", "score": "0.46424928", "text": "public function changeDirectory(){\n\t\t\n\t\t// in no session or home - set defaults\n\t\tif (!isset($_SESSION['cwd']) || (isset($_GET['cd']) && $this->decrypt($_GET['cd']) == '')){\t\t\n\t\t\t\n\t\t\t$_SESSION['cwd'] = $this->_repository;\n\t\t\t\n\t\t\tFile::writeLog('change dir - home');\n\n\t\t\treturn;\n\t\t}\n\n\t\t// get directory from url\n\t\t$input = (isset($_GET['cd']) ? $this->filterInput($this->decrypt($_GET['cd']), false) : false);\n\t\t\n\t\tif ($input && strpos($input, '..') === false){\n\n\t\t\t$childDir = $this->_repository.DS.$input;\n\n\t\t\t// do not allow chdir outside repository\n\t\t\tif (strstr($childDir, $this->_repository) == false){\n\t\t\t\t\n\t\t\t\theader('Location: '.Config::get('base_url').'/'.$_GET['page']);\n\t\t\t\tdie;\n\t\t\t}\n\n\t\t\tif (is_dir($childDir)){\n\t\t\t\t// change to dir if exists\n\t\t\t\t$_SESSION['cwd'] = $childDir;\n\t\t\t\t\n\t\t\t\tFile::writeLog('change dir - '.$input);\n\t\t\t}\n\n\t\t}\n\t\t\n\t\treturn;\n\t}", "title": "" }, { "docid": "db99e1008fe818a85285ba2d28573fdb", "score": "0.4642137", "text": "function getRootOutputFolder() {\n return $this->main_output_folder;\n }", "title": "" }, { "docid": "1b135b7f20f4ed1f2587ed228500b839", "score": "0.46343777", "text": "public function testItAskQuestionWhenOutputDirectoryNotEmpty()\n {\n $wd = TESTING_DIR;\n $folder = 'ps1';\n $outputDirectory = $wd.'/'.$folder;\n\n $this->fs->mkdir($outputDirectory);\n $this->fs->touch($outputDirectory.'/test.txt');\n $this->fs->dumpFile($outputDirectory.'/index.php', 'test');\n\n $client = $this->createClient([\n 'https://api.prestashop.com/xml/channel.xml'\n => TESTS_DIR.'/assets/xml/channel.xml',\n\n 'http://www.prestashop.com/download/releases/prestashop_1.6.1.4.zip'\n => TESTS_DIR.'/assets/zip/prestashop_1.6.1.4.zip',\n ]);\n\n $app = new Application('PrestaShop Installer', 'x.x.x');\n $newCommand = new NewCommand($client, null, $wd);\n $app->add($newCommand);\n\n $helper = $newCommand->getHelper('question');\n $helper->setInputStream($this->getInputStream('n\\\\n'));\n\n $commandTester = new CommandTester($newCommand);\n $commandTester->execute([\n 'folder' => $folder,\n '--release' => '1.6.1.4',\n ]);\n\n $output = $commandTester ? $commandTester->getDisplay() : '';\n\n // Asks question?\n $this->assertRegExp('/\\[y\\/n\\]\\?/i', $output);\n\n // Informs which directory is not empty?\n $this->assertTrue(strpos($output, $outputDirectory) !== false);\n\n // Has contextual question?\n $this->assertRegExp('/(not empty|contains)/i', $output);\n $this->assertRegExp('/(would you|do you|anyway)/i', $output);\n // $this->assertRegExp('/overwrite/i', $output);\n\n // Stub files remained?\n $this->assertTrue($this->fs->exists($outputDirectory));\n $this->assertTrue($this->fs->exists($outputDirectory.'/test.txt'));\n $this->assertTrue($this->fs->exists($outputDirectory.'/index.php'));\n\n // File contents unmodified?\n $this->assertTrue(file_get_contents($outputDirectory.'/index.php') == 'test');\n\n // No new files exist?\n $this->assertTrue(count(scandir($outputDirectory)) === 4);\n }", "title": "" }, { "docid": "d1ac81a5a728e1c7b77a18977f3ef70d", "score": "0.4633159", "text": "public function createDir() {\n \n\t\t$companyName = $this->request->data ['companyName'];\n\t\t\n\t\tmkdir(\"/../../{$companyName}\", 0700);\n\t\t\n }", "title": "" }, { "docid": "54fb8bed6dc9e59e34bb55a9b4c006fc", "score": "0.4631282", "text": "protected function execute(InputInterface $input, OutputInterface $output)\n\t{\n\t\t$this->source_dir = rtrim($input->getOption('source-dir'), '/').'/';\n\t\t$this->dest_dir = rtrim($input->getOption('dest-dir'), '/').'/';\n\t\t$this->resolutions = explode('|', $input->getOption('resolutions'));\n\t\t$this->base_resolution = $input->getOption('base-resolution');\n\n\t\t$this->resize();\n\t}", "title": "" }, { "docid": "8eb84a3ef445d7721624aa3e39657972", "score": "0.46289137", "text": "function directory();", "title": "" }, { "docid": "5bab0e4a134adde2ecad504c4ef18566", "score": "0.45914367", "text": "public function getDefaultDirectory(): string;", "title": "" }, { "docid": "b97130d97e37cca2cd5b540780065556", "score": "0.45768702", "text": "private function generateOutputFiles()\n\t{\n\t\t$tmpDir = sys_get_temp_dir();\n\t\t$prefix = 'php_subprocess_';\n\t\t$this->taskFile = tempnam($tmpDir, $prefix.'task_');\n\t\t$this->outFile = tempnam($tmpDir, $prefix.'out_');\n\t\t$this->errFile = tempnam($tmpDir, $prefix.'error_');\n\t\t$this->exitFile = tempnam($tmpDir, $prefix.'exit_');\n\t}", "title": "" }, { "docid": "1372c8409a49a235a16ff196fd6c4a6a", "score": "0.45715207", "text": "private function getVendorDir(InputInterface $input)\n {\n $vendorPath = $input->getOption('vendor-path') ?: null;\n\n if (!$vendorPath && $this->app->offsetExists('swagger.vendor_path')) {\n $vendorPath = $this->app['swagger.vendor_path'];\n }\n\n if (!is_dir($vendorPath)) {\n throw new \\InvalidArgumentException('Vendor path does not defined in $app[\\'swagger.vendor_path\\']');\n }\n\n return $vendorPath;\n }", "title": "" }, { "docid": "ce00910c0fe815f4f9759619162217f7", "score": "0.4569011", "text": "function _dumpa_dir() {\n $dir = drush_get_option('result-dir', _dumpa_default_dir());\n return $dir;\n}", "title": "" }, { "docid": "c3cd0822593b9a5e04be2ef6c7406b2d", "score": "0.45566735", "text": "protected function getPath()\n {\n return $this->option('path') . '/' . ucwords($this->argument('name')) . '.php';\n }", "title": "" }, { "docid": "56faaf746f2d90880a864468ecd3b311", "score": "0.45489246", "text": "private function setUserDir()\n\t{\n\t\t$now = Carbon::now();\n\n\t\t// the 'D' means directory, nothing pervy\n\t\t$d_segments = array(\n\t\t\tpublic_path(), \n\t\t\t'pictures', \n\t\t\t$this->profile->user->username, \n\t\t\t$now->year, \n\t\t\t$now->month, \n\t\t\t$now->day\n\t\t);\n\t\t$d_name = '';\n\n\t\t//if a directory for the user doesn't exist, create one\n\t\tforeach ($d_segments as $segment) {\n\t\t\t$d_name .= $segment. '/';\n\n\t\t\tif (! \\File::isDirectory($d_name)) {\n\t\t\t\t\\File::makeDirectory($d_name, 0777, true);\n\t\t\t}\n\t\t}\n\n\t\t$this->user_dir = $d_name;\n\t}", "title": "" }, { "docid": "95219e76b738d0f5161c77275b720151", "score": "0.45458028", "text": "private function directorioExistencia() {\r\n\t\t\tif(is_dir($this->directorio) == false):\r\n\t\t\t\tthrow new \\RuntimeException(sprintf('El directorio de la apliación [ %s ] no existe', $this->input->getArgument('app')));\r\n\t\t\tendif;\r\n\t\t}", "title": "" }, { "docid": "7c7d5be105bcb2f7686c0c1c431c34bf", "score": "0.4537855", "text": "function checkFile($dir, $filename, $suffix)\r\n{\r\n $path = $dir . \"/\" . $filename . \".\" . $suffix;\r\n\r\n if(!file_exists($path))\r\n {\r\n $fd = fopen($path, \"w\");\r\n\r\n if($fd == false)\r\n {\r\n errExit(INPUT_ERR, \"Input file was not created!\");\r\n }\r\n\r\n if($suffix == \"rc\")\r\n {\r\n fprintf($fd, \"0\");\r\n }\r\n\r\n fclose($fd);\r\n }\r\n}", "title": "" }, { "docid": "97c34813a77788935a3d94922ddd648b", "score": "0.4532869", "text": "public function getDirectory();", "title": "" }, { "docid": "6ef244e20bb401ef43e68fba82285d74", "score": "0.4531736", "text": "function __initDirectory()\n\t{\n\t\tif(is_writable($this->getPath()))\n\t\t{\n\t\t\tilUtil::makeDir($this->getPath().'/'.COURSE_PATH);\n\t\t\t$this->course_path = $this->getPath().'/'.COURSE_PATH;\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "94bb20eb4aa1e08613c37c3cdac61771", "score": "0.45304412", "text": "public function convert($inputFile, $outputDir);", "title": "" }, { "docid": "263ee5a48fc77a48190907371554350c", "score": "0.4526841", "text": "protected function execute(InputInterface $input, OutputInterface $output)\n {\n $language = $input->getArgument('language');\n if (in_array($language, array('de', 'en')) == true) {\n $this->translator->setLocale($language);\n }\n\n foreach ($this->installs as $install) {\n if ($this->createDir($install['target']) == true) {\n if (isset($install['source']) == true) {\n if ($this->copyFiles($output, $install['source'], $install['target'], $install['files']) == false) {\n return;\n }\n }\n } else {\n $output->writeln($this->translator->trans('install.dir.create', array('%dir%' => $install['target'])));\n return;\n }\n }\n\n $output->writeln($this->translator->trans('install.success'));\n }", "title": "" }, { "docid": "9bafa0f76af3380a0605ed21b2ddff81", "score": "0.45182687", "text": "public function create_directory_by_date($target_folder)\n {\n $year = date(\"Y\");\n $month = date(\"m\");\n\n $directory_year = FCPATH . \"uploads/\" . $target_folder . \"/\" . $year . \"/\";\n $directory_month = FCPATH . \"uploads/\" . $target_folder . \"/\" . $year . \"/\" . $month . \"/\";\n\n //If the directory doesn't already exists.\n if (!is_dir($directory_month)) {\n //Create directory.\n @mkdir($directory_month, 0755, true);\n }\n\n //add index.html if does not exist\n if (!file_exists($directory_year . \"index.html\")) {\n copy(BASEPATH . \"core/index.html\", $directory_year . \"index.html\");\n }\n if (!file_exists($directory_month . \"index.html\")) {\n copy(BASEPATH . \"core/index.html\", $directory_month . \"index.html\");\n }\n\n return $year . \"/\" . $month . \"/\";\n }", "title": "" }, { "docid": "36f9f0abd9c7932d6a8db1dbb801b2d2", "score": "0.45164916", "text": "function demoplayer_file($demoname, $dir = '')\n{\n if (!$dir) {\n $dir = tmp_dir();\n }\n return $dir . \"/{$demoname}_players\"; \n}", "title": "" }, { "docid": "800fbf103104cf57833bcc65a4a50688", "score": "0.45083594", "text": "public function openToFile($outputFilePath);", "title": "" }, { "docid": "800fbf103104cf57833bcc65a4a50688", "score": "0.45083594", "text": "public function openToFile($outputFilePath);", "title": "" }, { "docid": "8396286c52836704ea75e2246f15708c", "score": "0.45039824", "text": "public function getDirectoryPath() {\n return variable_get('dekyll_file_public_path', conf_path() . '/builds');\n }", "title": "" }, { "docid": "42654f420e901a0028aa7399f71f3409", "score": "0.44868615", "text": "public function getDirectoryVar();", "title": "" }, { "docid": "87f8a932cd9e30409a7dff90e62f2010", "score": "0.44857234", "text": "protected function configureIO(InputInterface $input, OutputInterface $output)\n {\n $this->root = realpath($input->getParameterOption(['--root', '-r'], static::DEFAULT_ROOT_PATH));\n $this->mode = $input->getParameterOption(['--mode', '-m'], static::DEFAULT_RUN_MODE);\n\n $input->loadConfig($this->root, $this->mode);\n\n parent::configureIO($input, $output);\n }", "title": "" }, { "docid": "90cbc447aadfde5b4e2e47e6aade8872", "score": "0.44779155", "text": "function directoryName();", "title": "" }, { "docid": "eb6d030e60f6e8accdd30987cd9f213a", "score": "0.44772217", "text": "public function generateOutFile() {\n\t\tif ((file_put_contents($this->getName().\".out\", \"\\0\")) == false) {\n\t\t\t$this->throwException(12, \"ERROR writing file\", true);\n\t\t}\n\t}", "title": "" }, { "docid": "46b6227514e4ffd2206f82a943fa87a2", "score": "0.44741425", "text": "public function findTmpDirectory();", "title": "" }, { "docid": "e1bc4fcc3e040d82b0ad627b7c5e4b4e", "score": "0.44701457", "text": "protected function getMigrationPath(InputInterface $input, OutputInterface $output)\n {\n // First, try the non-interactive option:\n $path = $input->get('path');\n if (!empty($path)) {\n return $path;\n }\n $paths = $this->getConfig()->getMigrationPaths();\n // No paths? That's a problem.\n z::throwIf(empty($paths), 'Exception', 'No migration paths set in your Phinx configuration file.');\n $paths = Util::globAll($paths);\n z::throwIf(\n empty($paths),\n 'Exception',\n 'You probably used curly braces to define migration path in your Phinx configuration file, ' .\n 'but no directories have been matched using this pattern. ' .\n 'You need to create a migration directory manually.'\n );\n // Only one path set, so select that:\n if (1 === count($paths)) {\n return array_shift($paths);\n }\n\n return $this->getSelectMigrationPathQuestion($paths, $output);\n }", "title": "" }, { "docid": "c1e3a1d34bdc5d1c2970f6c5a6babb75", "score": "0.44668916", "text": "function outputStyle($style_name = 'default') {\n $style_path = PROJECT_EXPORTER_MODULE_PATH . '/models/styles/'.$style_name;\n if (!is_dir($style_path)) {\n $this->execution_log->addWarning(lang('Style does not exists'));\n return false;\n } // if\n \n $output_style_folder = $this->getRootOutputFolder().'/style';\n if (!recursive_mkdir($output_style_folder, 0777, WORK_PATH)) {\n $this->execution_log->addWarning(lang('Could not create style directory'));\n return false;\n } // if\n \n return copy_dir($style_path, $output_style_folder);\n }", "title": "" }, { "docid": "81c88012c5e9ad75683e1019bd195a01", "score": "0.44606143", "text": "function create_dir($user_dir, $jenis){\n\t\t$dir = $_POST['new_dir'];\n\t\t$location = \"siak_public/siak_upload/\".$user_dir.\"/\".$jenis;\n\t\tif (is_dir($location) == false) {\n\t\t $old_umask = umask(0);\n\t\t mkdir($location, 0755, true);\n\t\t umask($old_umask);\n\t\t if (is_dir($location.\"/\".$dir) == false) {\n\t\t\t$old_umask = umask(0);\n\t\t\tmkdir($location.\"/\".$dir, 0755, true);\n\t\t\tumask($old_umask);\n\t\t }\n\t\t}else{\n\t\t if (is_dir($location.\"/\".$dir) == false) {\n\t\t\t$old_umask = umask(0);\n\t\t\tmkdir($location.\"/\".$dir, 0755, true);\n\t\t\tumask($old_umask);\n\t\t }\n\t\t}\n\t}", "title": "" }, { "docid": "4947d2b1857d01ba9b0ee44b3eacdace", "score": "0.44516", "text": "private function determineProjectType(InputInterface $input, ConsoleOutput $output): string\n {\n $type = '';\n\n if ($this->filesystem->exists($this->projectDirectory.'/wp-config.php')) {\n $type = 'wordpress';\n } elseif ($this->filesystem->exists(array_map(function (string $path) {\n return $this->projectDirectory.$path;\n }, ['/web/app/', '/web/wp-config.php', '/config/application.php']))) {\n $type = 'bedrock';\n }\n\n if (empty($type)) {\n $type = $output->choice('Please select the type of project to initialize', ['Bedrock', 'WordPress'], 'WordPress');\n }\n\n return strtolower($type);\n }", "title": "" }, { "docid": "ee0cd38b0a923723a1f7a40ea682b932", "score": "0.44511667", "text": "protected function setupOutputFile() {\n if (!$this->withoutLog && !$this->withoutLogOutput && ($this->output == null || $this->output == $this->getDefaultOutput())) {\n $this->output = tempnam(sys_get_temp_dir(), 'scheduler-output');\n }\n }", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "d4daa7f6b984e09188e88f3a54c5abf6", "score": "0.0", "text": "public function create()\n {\n\t\t\t$Code = Request()->code;\n\t\t\t$Customer = \\App\\Models\\Customer::whereCode($Code)->with('Connections')->get();\n\t\t\t$Customer = $Customer->isNotEmpty()?$Customer->first():false;\n\t\t\treturn view('crc.form',compact('Customer'));\n }", "title": "" } ]
[ { "docid": "847f003a4addf6820c7b7d4e542cfa95", "score": "0.7909494", "text": "public function create()\n {\n $resource = $this->prepResource('create');\n $this->showBreadcrumb($resource, [null => 'Create New']);\n\n return $this->view(compact('resource'));\n }", "title": "" }, { "docid": "03bfd9797acc7936efbf149267039e5d", "score": "0.77260846", "text": "public function create()\n {\n return view('resource.create');\n }", "title": "" }, { "docid": "452dfa44b6fc27ed6e2aa675caef8e17", "score": "0.7706946", "text": "public function create() {\n return view('acl::resource.create');\n }", "title": "" }, { "docid": "c1a53014b3e8009982c57be36ab41329", "score": "0.75948673", "text": "public function create()\n {\n return $this->showForm('create');\n }", "title": "" }, { "docid": "c1a53014b3e8009982c57be36ab41329", "score": "0.75948673", "text": "public function create()\n {\n return $this->showForm('create');\n }", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "303de6e59e0dfcaa3323bed304cea7e1", "score": "0.7500156", "text": "public function create()\n {\n if(Gate::denies($this->resource.'-create'))\n return $this->backOrJson(request(), 'not_authorized', 'crud.not-authorized');\n\n $label = $this->label;\n $title = $this->title;\n $icon = $this->icon;\n \n $this->addToView($this->options());\n\n return request()->wantsJson() \n ? null\n : view('admin.'.$this->resource.'.form', array_merge($this->variablesToView, compact('label', 'title', 'icon')));\n }", "title": "" }, { "docid": "bb55b8b1372a305242b37dbd1e241a37", "score": "0.7487926", "text": "public function create() {\n return view('members.resources.createResource');\n }", "title": "" }, { "docid": "290e9e5c1e1c6771e2a48a7c39b658ae", "score": "0.73964167", "text": "public function create()\n\t{\n\t\treturn View::make('resourcetypes.create');\n\t}", "title": "" }, { "docid": "eefd3a34279d87bd94753b0beae69b0d", "score": "0.7391348", "text": "public function create()\n {\n return view('humanresources::create');\n }", "title": "" }, { "docid": "7c2dc6aee3a7b173b42ae8f6ff0e9ac2", "score": "0.73191345", "text": "public function create() //represents forms user fills out.\n {\n return view('create');\n }", "title": "" }, { "docid": "755e91a474eae625dfda22659e4c1f6c", "score": "0.72203404", "text": "public function create()\n {\n return view('form.create');\n }", "title": "" }, { "docid": "755e91a474eae625dfda22659e4c1f6c", "score": "0.72203404", "text": "public function create()\n {\n return view('form.create');\n }", "title": "" }, { "docid": "a079c2ff615466a913385f0f3bbf4c9d", "score": "0.7209733", "text": "public function create()\n {\n return view('project_resources/create');\n }", "title": "" }, { "docid": "56a59cf2c86c7085f5fdde712ee5ea06", "score": "0.7203657", "text": "public function create()\n {\n return view('sick.form', ['action' => 'create']);\n }", "title": "" }, { "docid": "d52a8d55018a5452356ebfeb392dad33", "score": "0.7202316", "text": "public function newAction()\n {\n $entity = new \\Cumts\\MainBundle\\Entity\\Show();\n $form = $this->createForm(new ShowType(), $entity);\n\n return $this->render('CumtsAdminBundle:Show:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "50c363b98b85b902c0b33495df17fc28", "score": "0.71889836", "text": "public function create()\n {\n return view('Admin.Forms.create');\n }", "title": "" }, { "docid": "99c209c7d567bb6a386886e720582d3f", "score": "0.71736616", "text": "public function newAction()\n {\n $entity = $this->getNewEntity();\n $alias = $this->getAlias();\n $fields = $this->getFields('new');\n\n $form = $this->createCreateForm($entity, $alias, $fields);\n\n return $this->render(\n 'SgDatatablesBundle:Crud:new.html.twig',\n array(\n 'entity' => $entity,\n 'form' => $form->createView()\n )\n );\n }", "title": "" }, { "docid": "d7792233bdf3a051b8ecc8a3bf85491e", "score": "0.717068", "text": "public function create()\n {\n return view('admin.form.create');\n }", "title": "" }, { "docid": "182ce5c02e801fee3966edc96be1055e", "score": "0.7139064", "text": "public function create()\n {\n return view('form-create');\n }", "title": "" }, { "docid": "e1317794bf2d1789fb3df24f34664b93", "score": "0.7128814", "text": "public function create()\n {\n return view('admin.' . $this->obj_name . '.form');\n }", "title": "" }, { "docid": "9a87c89323c16332dd5980c005f9fd73", "score": "0.71161574", "text": "public function create()\n {\n return view('admin.retiros.partials.createForm');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "4618d70cb6b1be4af26372f030bb7274", "score": "0.710939", "text": "public function create()\n {\n return view('livro.form');\n }", "title": "" }, { "docid": "21b741286121defb618cafb010ad9311", "score": "0.7101174", "text": "public function create()\n {\n return view('admin.crud.edit-new');\n }", "title": "" }, { "docid": "d42793f140a997f3a5618ebf3a790d1b", "score": "0.7097341", "text": "public function create()\n {\n return view('Admin.generals.form');\n }", "title": "" }, { "docid": "e1be67b632033f807b2cefd97a7e5682", "score": "0.7095487", "text": "public function create()\n {\n $meta = \"Create\";\n return view('driver.form', compact('meta'));\n }", "title": "" }, { "docid": "e6d14f751da329891ae59d3d0614b844", "score": "0.7088803", "text": "public function create()\n {\n return view('backend::module.form');\n }", "title": "" }, { "docid": "ba36d03e3181e8d29ef780e9f1b47d8e", "score": "0.70807815", "text": "public function create()\n {\n return view('applicationforms.create');\n }", "title": "" }, { "docid": "c27004d00e3f9afb85f74623ec456ca9", "score": "0.708025", "text": "public function create()\n {\n //\n return view('form');\n }", "title": "" }, { "docid": "d91864a90a03af3679687f163da22716", "score": "0.7078707", "text": "public function create()\n {\n return view(\"pages-ui::backend.form\", [\n \"extends\" => config(\"pages-ui.backend.template_to_extend\", \"layouts.app\"),\n \"edit\" => false,\n ]);\n }", "title": "" }, { "docid": "19a8b4682806788e584645f302bff901", "score": "0.7070855", "text": "public function newAction()\n {\n $manager = $this->container->get('zimzim_construction_site_actionitemmanager');\n $entity = $manager->createEntity();\n $form = $this->createCreateForm($entity, $manager);\n\n return $this->render(\n self::DIR.':new.html.twig',\n array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n )\n );\n }", "title": "" }, { "docid": "868d619f6ddd72d0196bd0112e6d14a0", "score": "0.7068269", "text": "public function create()\n {\n $items = $this->model->get();\n return view('admin.' . str_plural($this->essence) . '.form', [\n 'essence' => $this->essence,\n 'items' => $items,\n ]);\n }", "title": "" }, { "docid": "a717d49d12459178d0ea648de34b92f3", "score": "0.7053267", "text": "public function create()\n {\n return view('submit_forms.create');\n }", "title": "" }, { "docid": "88bddae014db0489caa5efa7d888b963", "score": "0.70453197", "text": "public function newAction()\n {\n $entity = new Cliente();\n $form = $this->createForm(new ClienteType(), $entity);\n\n return $this->render('ContadoresBundle:Cliente:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'cliente_new'\n ));\n }", "title": "" }, { "docid": "2885b0aa30fbd2b9a13afbabd00ca579", "score": "0.70360965", "text": "public function create()\n {\n return view('AdminPanel.Supplier.form');\n }", "title": "" }, { "docid": "0c1144eddfb806ac17f30214bdfede15", "score": "0.70316905", "text": "public function create()\n {\n return view('cat.form_create');\n }", "title": "" }, { "docid": "e1571e560aab196c00674cc03cd106df", "score": "0.7028034", "text": "public function newAction()\n {\n $entity = new Formation();\n $form = $this->createCreateForm($entity);\n\n return $this->render('FormationAdminBundle:Formation:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "d12ec07b606c2d87e70c0e3602b230c7", "score": "0.7027543", "text": "public function create()\n {\n return view('admin.resources.person.create');\n }", "title": "" }, { "docid": "e2a9ae8284cc267325c107ada7cdb536", "score": "0.70238173", "text": "public function create()\n {\n return View::make('form.add');\n }", "title": "" }, { "docid": "40b5fe05bbe7fe1fc32074241497237e", "score": "0.70228195", "text": "public function create()\n {\n \treturn view ('backend.professor.create');\n }", "title": "" }, { "docid": "f8ec369da210a363de27940e92b3f84d", "score": "0.70125043", "text": "public function create()\n {\n return view('libro.formlibro');\n }", "title": "" }, { "docid": "df9822b231f9e125e4b3aa9bc0b50b54", "score": "0.7000799", "text": "public function newAction()\n {\n return $this->renderCreationForm(new User(), new UserType(), 'User', 'FsbMediaFilesIndexBundle');\n }", "title": "" }, { "docid": "d3818ee7b8a6f5feddcf93f25df0fe6b", "score": "0.6986593", "text": "public function create()\n {\n return view('students._form');\n }", "title": "" }, { "docid": "bad09d21897077a09fc9ba04b37aa535", "score": "0.69801325", "text": "public function create()\n\t{\n\t\treturn view('dienthoai.create');\n\t}", "title": "" }, { "docid": "bfc2f651a3ad53ba32a1f0624b2baf70", "score": "0.6976104", "text": "public function create()\n {\n return view('fabricante.form');\n }", "title": "" }, { "docid": "38d1a27327ac4a367aba240dedebaa0e", "score": "0.69747853", "text": "public function showCreateNewClientForm()\n {\n return view('admin.createNewClientForm');\n }", "title": "" }, { "docid": "65c79b36d9444a6beccf14aac7b2b045", "score": "0.6973617", "text": "public function create()\n {\n return view('product.form', \n [\n 'product' => new Product\n ]);\n }", "title": "" }, { "docid": "daf28f960dad10d136b88bf0cb698afe", "score": "0.69729453", "text": "public function create()\n\t{\n\t\treturn view('siswa.add');\n\t}", "title": "" }, { "docid": "77b32a1a2812f894a1084db4a0c3b2d8", "score": "0.6965231", "text": "public function create()\n {\n $title = trans('option.new');\n\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "title": "" }, { "docid": "4e37d311d6990013b0ed72549d9fd35f", "score": "0.69635546", "text": "public function create()\n {\n return view('product.form');\n }", "title": "" }, { "docid": "9cb057d0f77e53e0cce5708d50a6481b", "score": "0.6962359", "text": "public function create()\n {\n return view('new');\n }", "title": "" }, { "docid": "9cb057d0f77e53e0cce5708d50a6481b", "score": "0.6962359", "text": "public function create()\n {\n return view('new');\n }", "title": "" }, { "docid": "9cb057d0f77e53e0cce5708d50a6481b", "score": "0.6962359", "text": "public function create()\n {\n return view('new');\n }", "title": "" }, { "docid": "80055340b1924d51914b16fcf2fee697", "score": "0.6960298", "text": "public function newAction()\n {\n $entity = new Client();\n $form = $this->createCreateForm($entity);\n return $this->render('ProjectFilmsBundle:Default:singup.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n}", "title": "" }, { "docid": "d607449c2320c1a6b73af5c48d80dea8", "score": "0.695971", "text": "public function create()\n {\n\t\treturn view('Master.SMD.product_form');\n }", "title": "" }, { "docid": "41eb11154e57dff75498fcf25564c134", "score": "0.6952435", "text": "public function create()\n {\n return view('admin.book.add');\n }", "title": "" }, { "docid": "c99a469be2dc77ac788affd5c609736e", "score": "0.69498503", "text": "public function create()\n\t{\n\t\treturn view('tanah.create');\n\t}", "title": "" }, { "docid": "9c1725367be54b1702af65b52b997aa8", "score": "0.69449973", "text": "public function create()\n {\n //\n return view('village.form');\n }", "title": "" }, { "docid": "72f0db297092df3a05f0662bbcf847e2", "score": "0.6942181", "text": "public function create()\n {\n return \"Provide a form for creating a new bookmark\";\n }", "title": "" }, { "docid": "fd3e19a66d87f8e5b9e62eeab1859fd6", "score": "0.694158", "text": "public function create()\n {\n return view ('admin.choice.create');\n }", "title": "" }, { "docid": "5a43ba5452e70f5a9984d0dd656c9e9d", "score": "0.6939963", "text": "public function create()\n {\n return view('admin.student.add');\n }", "title": "" }, { "docid": "d2dfb39011e7751d334f3b102132bcc0", "score": "0.6937871", "text": "public function create()\n {\n return view('libro.create');\n }", "title": "" }, { "docid": "8f8abe7734d2df10a7d0bf9300d89ffd", "score": "0.6936004", "text": "public function create()\n\t{\n\t\tif ( ! \\Util::getAccess('Objetos', 'Insert')) return $this->accessFail();\n\t\t\n\t\t$objeto = new Objeto;\n\t\t$title = $this->title;\t\t\n $form_data = array('route' => 'objetos.store', 'method' => 'POST');\n $action = 'Ingresar'; \n\t\t$action_label = \\Lang::get('utils.Ingresar');\n\n return View::make('objetos/form', compact('objeto', 'title', 'form_data', 'action', 'action_label'));\n\t}", "title": "" }, { "docid": "8adebbe6d78e1269103db957362b2b48", "score": "0.6934276", "text": "public function create()\n {\n return view('admin.concepto.create');\n }", "title": "" }, { "docid": "cefebec03f775a193c7c4e8a62aa577f", "score": "0.6933069", "text": "public function create()\n {\n $this->data('model', new Question);\n\n $this->data('page_title', trans('labels.question_create'));\n\n $this->breadcrumbs(trans('labels.question_create'));\n\n return $this->render('views.question.create');\n }", "title": "" }, { "docid": "a0cec03d417a249e7b508d296e8928e7", "score": "0.6927707", "text": "public function new()\n {\n return view('backend.create');\n }", "title": "" }, { "docid": "b39914295738987f9eaa881efd81b08a", "score": "0.6924082", "text": "public function create()\n\t{\n\t\treturn view('hijos.create');\n\t}", "title": "" }, { "docid": "1b6fea0f3d627491bca24cc0ec1943b3", "score": "0.6922099", "text": "public function create()\n {\n $data['url'] = route('admin.'.$this->route . '.store');\n $data['title'] = 'Add ' . $this->viewName;\n $data['module'] = $this->viewName;\n $data['resourcePath'] = $this->view;\n $data['vendors'] = User::where([['status',1],['role',1]])->get();\n $data['brands'] = Brand::where('status',1)->get();\n\n return view('admin.general.add_form')->with($data);\n }", "title": "" }, { "docid": "0db3c2ce6e391f38a76280c98d234b3e", "score": "0.6913334", "text": "public function create()\n {\n return view(\"admin.main.general.create\");\n }", "title": "" }, { "docid": "d88972ac1a628783a7fbb403d9a8dcfc", "score": "0.6907519", "text": "public function create()\n {\n return view ('darbuotojai.create');\n }", "title": "" }, { "docid": "72d216b75443b4090ac0a1387c18009c", "score": "0.6906656", "text": "public function create()\n {\n //\n return view('crud.add');\n }", "title": "" }, { "docid": "675ca45cdb19e54120f6c28ad08c6960", "score": "0.69062245", "text": "public function createAction(): object\n {\n $this->checkIfLoggedIn();\n\n $page = $this->di->get(\"page\");\n $form = new CreateQuestion($this->di);\n $form->check();\n\n $page->add(\"question/crud/create\", [\n \"form\" => $form->getHTML(),\n ]);\n\n return $page->render([\n \"title\" => \"Ny fråga\",\n ]);\n }", "title": "" }, { "docid": "8a2147b2e963c3ef756e24bfe402ca2e", "score": "0.69051594", "text": "public function create()\n {\n return view(\"admin.driver.form\");\n }", "title": "" }, { "docid": "a30ccd806cf5bb09abba11f75d4178c0", "score": "0.69034714", "text": "public function newAction()\n {\n $form = $this->createForm(new RegistrationType(), new Registration());\n\n return $this->render('McmsEmployeeBundle:Admin:new.html.twig',array(\n 'form' => $form->createView()\n ));\n }", "title": "" }, { "docid": "170085833f62c2562297ca840c892ec8", "score": "0.68962324", "text": "public function newAction()\n {\n $entity = new Carroceria();\n $form = $this->createCreateForm($entity);\n\n return $this->render('ColombiaAutosadministradorBundle:Carroceria:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "a43ba09f835dbd27d4a3433e6207db17", "score": "0.6891616", "text": "public function create()\n {\n return view('admin.car.create');\n }", "title": "" }, { "docid": "52b58d6fc4a50661368b682a572eca31", "score": "0.6890648", "text": "public function create()\n {\n return view('main.create');\n }", "title": "" }, { "docid": "6769fe63e35d4f98abe507728065b246", "score": "0.6890337", "text": "public function create()\r\n {\r\n return view('superadmin::create');\r\n }", "title": "" }, { "docid": "f06c8b94a60d9059ad36c228a0917999", "score": "0.68900883", "text": "public function create()\n {\n //\n\n\n //default active sidebar\n $this->setActiveParent();\n\n //[] = current query object\n //null = current request\n $form_fields = DynamicForm::form_fields('create', [], null, Person::form_fields() );\n\n return view('persons.create', compact('form_fields'));\n\n\n }", "title": "" }, { "docid": "78ad8491acd5385f24f5ae5f822678c9", "score": "0.6889061", "text": "public function create()\n\t{\n\t\treturn view('maquinas.create');\n\t}", "title": "" }, { "docid": "bdb0161d2f2f44cdaea93bf890a4c02e", "score": "0.68880934", "text": "public function create()\n {\n return view(\"create\");\n }", "title": "" }, { "docid": "bdb0161d2f2f44cdaea93bf890a4c02e", "score": "0.68880934", "text": "public function create()\n {\n return view(\"create\");\n }", "title": "" }, { "docid": "82fa764bee41d4c3cd502aeb977ac7aa", "score": "0.6887289", "text": "public function create()\r\n {\r\n //\r\n $title = ['title' => 'New Customer'];\r\n return view('forms.customer', $title);\r\n }", "title": "" }, { "docid": "cad48560e9ff66dc125cc429d28e9bff", "score": "0.6885613", "text": "public function create()\n\t{\n\t\treturn view('admin.add');\n\t}", "title": "" }, { "docid": "be02b3d6619c1ed55fce9db593195fb0", "score": "0.6883378", "text": "public function create()\n {\n return view ('rubro.create');\n }", "title": "" }, { "docid": "61f6eddf2e8e1651e313b0358ddb9d29", "score": "0.6880583", "text": "public function create()\n {\n $title = trans('religion.new');\n return view('layouts.create', compact('title'));\n }", "title": "" }, { "docid": "ba7e10af83b6a9def1f1ab3ca7b230a1", "score": "0.6880075", "text": "public function create()\n {\n //\n return view('fasilitass.create');\n }", "title": "" }, { "docid": "bb899035deb9e2ae019bb95d733db21b", "score": "0.6877273", "text": "public function create()\n {\n $model = new SupplierModel();\n return view('dashboard.form', compact('model'));\n }", "title": "" }, { "docid": "e9fdb84b89fc16f5dc603f982295014a", "score": "0.6874308", "text": "public function create()\n\t{\n\t\treturn view('drama.create');\n\t}", "title": "" }, { "docid": "0cf738a5e59aa5d58e20e3538192db7d", "score": "0.6874174", "text": "public function create()\n {\n return view('port.main.create');\n }", "title": "" }, { "docid": "a052e9655360674093e5af6adf7d43e9", "score": "0.68733674", "text": "public function create()\n {\n $catalogs = CatalogServices::getAllCatalog();\n return view('components.products.add-form', compact('catalogs'));\n }", "title": "" }, { "docid": "021e8263ec26fa7e27d11fcfdc84da77", "score": "0.6870801", "text": "public function create()\n {\n return view('back.actions.create');\n }", "title": "" }, { "docid": "c503b35740e1792c403a88d8c50d856f", "score": "0.6869266", "text": "public function create()\n {\n return view(\"almacen.carrito.create\"); \n }", "title": "" }, { "docid": "5259e968b5dbb1b3e52be75d40a02866", "score": "0.68644255", "text": "public function create() {\n\n\t\treturn view('add');\n\t}", "title": "" }, { "docid": "8d3c38482140a40f4dbe44678bb1d515", "score": "0.6863528", "text": "public function create()\n {\n return view('master.form.sellout-form');\n }", "title": "" }, { "docid": "586b3f9f7932936d0639c9d4960679b7", "score": "0.68621755", "text": "public function create()\n\t{\n\t\treturn View::make('quantridanhmuchoithi.create');\n\t}", "title": "" }, { "docid": "7b28f26445b6881c693a90b24ca99ad8", "score": "0.6859603", "text": "public function create()\n {\n return view('manage.create');\n }", "title": "" } ]
cec0a59688bf30d331cca506b06bf839
/ Dispose of a HIT
[ { "docid": "066fdd9f1b60e5aa9e2df817822cf4a9", "score": "0.8028832", "text": "function DisposeHIT() {\n\t\tif (! $this->HITId)\n\t\t\treturn $this->mtError ( \"Missing HITId Parameter\" );\n\t\telse\n\t\t\t$this->QueryData ['HITId'] = $this->HITId;\n\t\treturn $this->mtMakeRequest ();\n\t}", "title": "" } ]
[ { "docid": "ddbb82687cf917fccf3ec30c908f37f6", "score": "0.64101684", "text": "public function __destruct()\n {\n curl_close($this->_ch);\n }", "title": "" }, { "docid": "e89c3eee61ce65cddcb380ada06aa2b6", "score": "0.6402988", "text": "public function __destruct()\n {\n curl_close($this->_curl);\n }", "title": "" }, { "docid": "55cfc541f72f3fbe61b2b8824846098c", "score": "0.64013803", "text": "function __destruct() {\n\t\tcurl_close($this->curl);\n\t}", "title": "" }, { "docid": "4da4639318a2304d0cab7c1de6e4d97b", "score": "0.6399197", "text": "public function __destruct(){\n $this->curl->close();\n }", "title": "" }, { "docid": "07ace251669087b28d8dd6438bed23d9", "score": "0.6352859", "text": "public function disposeHIT($params = [])\n {\n // define required and optional parameters for this API request\n $required = [ 'HITId' ];\n $optional = [];\n\n // build the URL for the API call\n $url = $this->buildURL(\n 'DisposeHIT',\n $params,\n $required\n );\n\n // submit query to constructed URL\n $response = $this->guzzle->get($url);\n\n // if response succeeded, return the decoded response\n return $this->processAPIResponse($response, 'DisposeHITResult');\n }", "title": "" }, { "docid": "dc0fbd57faf13d21ff72170fd220b34b", "score": "0.63165313", "text": "public function __destruct()\n {\n \\curl_close($this->curl);\n unset($this->curl);\n }", "title": "" }, { "docid": "6de9e570d0360818d3805891bb0b375c", "score": "0.6298763", "text": "public function __destruct()\n\t{\n\t\tif (is_resource($this->ch)) {\n\t\t\tcurl_close($this->ch);\n\t\t}\n\t}", "title": "" }, { "docid": "f9e1313e64de9913b231bef94a4d7d1b", "score": "0.6280125", "text": "public function __destruct()\n {\n if (is_resource($this->_curl)) {\n curl_close($this->_curl);\n }\n }", "title": "" }, { "docid": "baf5b22ea667c8dfa4350bbd48b7a690", "score": "0.62623703", "text": "public function __destruct()\n {\n if ($this->ch) {\n curl_close($this->ch);\n unset($this->ch);\n }\n }", "title": "" }, { "docid": "20b00ff6a8ab8e2eb9d8cf47eb61fa7f", "score": "0.6260576", "text": "public function __destruct()\n {\n if (is_resource($this->curl)) {\n curl_close($this->curl);\n }\n }", "title": "" }, { "docid": "b4e88980c5b63b9b2c1d518796dc8a4b", "score": "0.6246736", "text": "public function __destruct()\n {\n if (!is_null($this->curl)) {\n curl_close($this->curl);\n }\n }", "title": "" }, { "docid": "0c910ef336bb470a90bb14e246867225", "score": "0.6232274", "text": "public function __destruct()\n {\n if(!is_null($this->_curl_handle))\n curl_close($this->_curl_handle);\n $this->_curl_handle = NULL;\n }", "title": "" }, { "docid": "7cec6ac2883b18408624c87a7caf3523", "score": "0.6208005", "text": "public function __destruct()\n {\n curl_close($this->curlClient);\n }", "title": "" }, { "docid": "b594fa4f1be7f54928d9df19f767bc6c", "score": "0.61197937", "text": "public function __destruct ()\n {\n Cache::forever($this->identifier, false);\n }", "title": "" }, { "docid": "2ae37738803647c5f614a18617233210", "score": "0.61175066", "text": "public function __destruct()\n {\n curl_multi_close($this->mh);\n }", "title": "" }, { "docid": "5c4253efead911f42f83854af11a1747", "score": "0.60333425", "text": "function __destruct()\n {\n // Close the shared resources of all cURL objects\n curl_share_close($sh);\n\n // Close the resources of the GET cURL object\n curl_close($this->curlArr['get']);\n\n // Close the resources of the POST cURL object\n curl_close($this->curlArr['post']);\n }", "title": "" }, { "docid": "bb196560686855c6a73d26211e4bcf59", "score": "0.60056096", "text": "public function __destruct()\n {\n $this->release();\n }", "title": "" }, { "docid": "1beb9319aa72655c328697d4195ea344", "score": "0.5964732", "text": "public function __destruct(){\n\t\t//On supprime le cache systématiquement\n\t\t$cache = new cache();\n\t\t$cache->del();\n\t}", "title": "" }, { "docid": "6b94f9e6ba00258ae0daa503498cd85b", "score": "0.592585", "text": "public function __destruct(){\r\n\t\tif(!$this->_is_lock)return ;\r\n\t\t$this->_cache->unlock($this->_param());\r\n\t}", "title": "" }, { "docid": "58bb5513f9f3cfb1cbf88357c00a478c", "score": "0.590046", "text": "public function __destruct()\n {\n if (is_resource($this->handle)) {\n curl_multi_close($this->handle);\n }\n }", "title": "" }, { "docid": "9373f8f3af32137defa298a6a4ec98d0", "score": "0.58953965", "text": "function\n\t\t\t__destruct() {\n\t\t\t\tif (is_resource($this->handler)) {\n\t\t\t\t\tcurl_close($this->handler);\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "ce7dee4eb9bfde81ef4a49603c4ed379", "score": "0.5862885", "text": "public function release();", "title": "" }, { "docid": "ce7dee4eb9bfde81ef4a49603c4ed379", "score": "0.5862885", "text": "public function release();", "title": "" }, { "docid": "436c5375c306dd794165901dd09e8031", "score": "0.58302575", "text": "public function dispose();", "title": "" }, { "docid": "436c5375c306dd794165901dd09e8031", "score": "0.58302575", "text": "public function dispose();", "title": "" }, { "docid": "436c5375c306dd794165901dd09e8031", "score": "0.58302575", "text": "public function dispose();", "title": "" }, { "docid": "45122625bf7d1a765b880840926173ba", "score": "0.5805477", "text": "public function __destruct()\r\n\t{\r\n\t $this->free();\r\n\t}", "title": "" }, { "docid": "78e84fa3cafb79faefc540f14b8accca", "score": "0.5769799", "text": "public function _destruct() {\n\t\t$this->unlock();\n\t}", "title": "" }, { "docid": "432d78f54c239bceafc966439b3be760", "score": "0.5760892", "text": "public function forceRelease()\n {\n $this->memcache->delete($this->name);\n }", "title": "" }, { "docid": "2aaaf5097ec6301713f67fcde776b834", "score": "0.57538563", "text": "public function __destruct()\n {\n if ($this->memcached instanceof Memcached) {\n $this->memcached->quit();\n } elseif ($this->memcached instanceof Memcache) {\n $this->memcached->close();\n }\n }", "title": "" }, { "docid": "f65ae45f2177d3d3f3e7aeab38282c14", "score": "0.57217705", "text": "public function __destruct() {\n if (count($this->cache) > 0) {\n $this->flushCacheToFile();\n }\n }", "title": "" }, { "docid": "112c60e41009e05e2b629176864cbde0", "score": "0.56744105", "text": "public function release(): void;", "title": "" }, { "docid": "4e4fd533af86d1905f1aa1d58302d85e", "score": "0.5670069", "text": "function __destruct()\n {\n /*\n if ($this->IsCacheData()) {\n $this->WriteCacheData();\n }\n */\n }", "title": "" }, { "docid": "8c559259986adf66d25d47b458991f01", "score": "0.5664098", "text": "public function __destruct()\n\t{\n\t\tforeach ($this->_curls as $handle_id => $data)\n\t\t{\n\t\t\tcurl_multi_remove_handle($this->_handle, $data['handle']);\n\t\t\tcurl_close($data['handle']);\n\t\t}\n\t\tcurl_multi_close($this->_handle);\n\t}", "title": "" }, { "docid": "814e4e74e90bf8dbe42f42df8c7cec3c", "score": "0.5608151", "text": "function gc()\r\n {\r\n $this->close();\r\n }", "title": "" }, { "docid": "8d6b80a3a3b2c72132ceeb7148bbd594", "score": "0.56065583", "text": "public function __destruct(){\n $this->_handle = null;\n }", "title": "" }, { "docid": "c8865e4466de3a8cec33587bc988efe7", "score": "0.56016225", "text": "public function __destruct()\n\t{\n\t\tif (is_resource($this->_result))\n\t\t{\n\t\t\t$this->_result->free();\n\t\t}\n\t}", "title": "" }, { "docid": "60c3fd816b579b8d610a7e0a4deedf5a", "score": "0.55883425", "text": "public function __destruct()\n {\n $this->finishAllRequests();\n }", "title": "" }, { "docid": "0b8c8f364cad73816f4e5d885fc00c33", "score": "0.5568036", "text": "public function __destruct() {\n $this->result->free();\n }", "title": "" }, { "docid": "72163a0dd942c4c715646f5a1626db0b", "score": "0.5564366", "text": "public function __destruct() {\r\n $this->close();\r\n }", "title": "" }, { "docid": "92f88a7c46a31b4a01bd5613eae85bff", "score": "0.55592847", "text": "protected function __del__() { }", "title": "" }, { "docid": "8acea2d03bbc36e3407356b147ac938f", "score": "0.5556159", "text": "abstract public function destroyCache();", "title": "" }, { "docid": "aa0c6d3c707abff71bae6d8fc97deb78", "score": "0.5550299", "text": "function __destruct() {\n $this->close();\n }", "title": "" }, { "docid": "1b4b65ca650f1b6b96815cd3b5817c3c", "score": "0.555029", "text": "function __destruct(){\n unset($this->Request,$this->Response,$this->URI);\n $this->disconnect();\n }", "title": "" }, { "docid": "526b228c034031e0cd95ef2e164a9027", "score": "0.5546256", "text": "public function __destruct() {\n\t\t$this->close();\n\t}", "title": "" }, { "docid": "8b98657a31c9cb90f451060bf123e2ec", "score": "0.55404097", "text": "function __destruct() {\n\t\t$this->close();\n\t}", "title": "" }, { "docid": "4563254ae9f8a7b7f56a7bb1db924a07", "score": "0.55348486", "text": "public function __destruct() \n\t{\n\t\tfclose($this->handle);\n\t}", "title": "" }, { "docid": "2338f2cdc6d6c4a6405d6e9cd1cec862", "score": "0.55205214", "text": "public function __destruct() {\n\t\t$this->closeSession();\n\t}", "title": "" }, { "docid": "720dda8a4a1a5835db8111d56ae6dd73", "score": "0.5518543", "text": "public function __destruct() {\n\t\tunset($this);\n }", "title": "" }, { "docid": "7fc2eb4fc6abc3cbeef91400796c83db", "score": "0.55183023", "text": "public function __destruct()\n {\n $this->close();\n }", "title": "" }, { "docid": "7fc2eb4fc6abc3cbeef91400796c83db", "score": "0.55183023", "text": "public function __destruct()\n {\n $this->close();\n }", "title": "" }, { "docid": "7fc2eb4fc6abc3cbeef91400796c83db", "score": "0.55183023", "text": "public function __destruct()\n {\n $this->close();\n }", "title": "" }, { "docid": "7fc2eb4fc6abc3cbeef91400796c83db", "score": "0.55183023", "text": "public function __destruct()\n {\n $this->close();\n }", "title": "" }, { "docid": "7fc2eb4fc6abc3cbeef91400796c83db", "score": "0.55183023", "text": "public function __destruct()\n {\n $this->close();\n }", "title": "" }, { "docid": "7fc2eb4fc6abc3cbeef91400796c83db", "score": "0.55183023", "text": "public function __destruct()\n {\n $this->close();\n }", "title": "" }, { "docid": "7fc2eb4fc6abc3cbeef91400796c83db", "score": "0.55183023", "text": "public function __destruct()\n {\n $this->close();\n }", "title": "" }, { "docid": "7fc2eb4fc6abc3cbeef91400796c83db", "score": "0.55183023", "text": "public function __destruct()\n {\n $this->close();\n }", "title": "" }, { "docid": "7fc2eb4fc6abc3cbeef91400796c83db", "score": "0.55183023", "text": "public function __destruct()\n {\n $this->close();\n }", "title": "" }, { "docid": "74d3c34857811584f07c4e04c27c66e8", "score": "0.55104035", "text": "public function release()\n {\n }", "title": "" }, { "docid": "0ed157e740068aa93175f547ae2fd3ca", "score": "0.5507408", "text": "public function __destruct() {\n $this->close();\n }", "title": "" }, { "docid": "0ed157e740068aa93175f547ae2fd3ca", "score": "0.5507408", "text": "public function __destruct() {\n $this->close();\n }", "title": "" }, { "docid": "da7b8306ee5265a0939ecbd8761e65ff", "score": "0.5505873", "text": "public function __destruct() {\n\t\tunset($this);\n\t}", "title": "" }, { "docid": "1ccf4116f658d93218c0a0cc054e22dc", "score": "0.55047", "text": "public function __destruct()\n\t{\n\t\t$this->close();\n\t}", "title": "" }, { "docid": "e693d26041a548a8337154882cce3987", "score": "0.5501843", "text": "public function __destruct(){\n\t\tfclose($this->handle);\n\t}", "title": "" }, { "docid": "690e31f58468db43a017936bb417321e", "score": "0.5496412", "text": "public function __destruct() {\n unset($this->result);\n }", "title": "" }, { "docid": "de7b1800fc2987667ae82f74585c4622", "score": "0.5496399", "text": "private static function unsetHit($url) {\n\t\tunset($url['hits']);\n\t}", "title": "" }, { "docid": "afa256998ade850827918c6a2d98ffec", "score": "0.5493645", "text": "function __destruct()\n\t{\n\t\t$this->close();\n\t}", "title": "" }, { "docid": "06575108dc387b086e5f43442f945cdb", "score": "0.54918545", "text": "function __destruct()\n {\n $this->close();\n }", "title": "" }, { "docid": "edae20147cb1cf4f2c0e6048fa387dbd", "score": "0.5458422", "text": "public function __destruct() {\n $this->Close();\n }", "title": "" }, { "docid": "d14ecd46af9367aa3f54cf0ca22ee70f", "score": "0.54536", "text": "public function __destruct(){\n\t\t$this->close();\n\t}", "title": "" }, { "docid": "d14ecd46af9367aa3f54cf0ca22ee70f", "score": "0.54536", "text": "public function __destruct(){\n\t\t$this->close();\n\t}", "title": "" }, { "docid": "b36708245cccbc1ae4705373b6eeda95", "score": "0.5448226", "text": "public function __destruct()\n {\n // Do garbage cleanup stuff here\n }", "title": "" }, { "docid": "12a01277ad46ef5645989a84198f5167", "score": "0.5429126", "text": "public function __destruct()\n {\n try {\n $this->close();\n //@codingStandardsIgnoreStart\n //@codeCoverageIgnoreStart\n } catch (\\Exception $ex) {}\n //@codeCoverageIgnoreEnd\n //@codingStandardsIgnoreStart\n }", "title": "" }, { "docid": "49c23c7d2e9dcf2ed28e5e694689e962", "score": "0.54086864", "text": "public function __destruct()\n {\n // discconnect on destruct\n $this->freeResult();\n }", "title": "" }, { "docid": "53d61a400028db4792e73adf35e4d458", "score": "0.5405359", "text": "final public function __destruct()\n {\n unset($this->request);\n unset($this->source);\n unset($this->rendered);\n }", "title": "" }, { "docid": "55a760004ec332fd2ddb47a2e2940236", "score": "0.5389442", "text": "public function __destruct() {\n\t\tparent::__destruct();\n\t\t$this->free();\n\t}", "title": "" }, { "docid": "e5c25b6a51be05fccbaecc58ae10d3dd", "score": "0.5372215", "text": "public function __destruct() {\n if (is_object($this->link))\n $this->link->close();\n }", "title": "" }, { "docid": "86e94bbed427ec0abffecdba1bfd4c47", "score": "0.53599924", "text": "public function __destruct(){\n\t\timagedestroy($this->gdImage);\n\t}", "title": "" }, { "docid": "16819804b7d7331a9ce9fd2d6a672dfa", "score": "0.53579235", "text": "public function __destruct()\n\t{\n\t\timagedestroy($this->_resource);\n\t}", "title": "" }, { "docid": "9878a6806182074aa3c8f9ecdad031d3", "score": "0.5357562", "text": "public function __destruct() {\n\t\tunset($this->headerProxy);\n\t}", "title": "" }, { "docid": "f319d0995f823834cc35e6d514aad951", "score": "0.5338005", "text": "function __destruct() {\r\n $this->link->close();\r\n }", "title": "" }, { "docid": "d4fcec49f514b95846c8ddbe2185906e", "score": "0.5336575", "text": "public function __destruct()\r\n {\r\n Util::wipe($this->key);\r\n }", "title": "" }, { "docid": "4db37003a739acbfffd4960951dc47ec", "score": "0.53343827", "text": "function __destruct() {\n\n\t\tunset ($this->internalData);\n\t}", "title": "" }, { "docid": "ae43099b86999788c4b856d9f837c8f3", "score": "0.5329335", "text": "public function __destruct()\n {\n if ($this->bCacheHasToDelete)\n {\n $this->oCache->delete(self::CACHE_KEY_JOB_LIST);\n }\n }", "title": "" }, { "docid": "f732096f6f21478a3bdda3bd2863a9b3", "score": "0.5323978", "text": "public function __destruct()\n {\n $this->_link = null;\n }", "title": "" }, { "docid": "389af995bb6c5af92fef3f7785a48406", "score": "0.5318787", "text": "public function __destruct()\r\r\n {\r\r\n return @$this->close();\r\r\n }", "title": "" }, { "docid": "2e5495d4833c543120f18ebd1060b20d", "score": "0.53109884", "text": "public function __destruct() {}", "title": "" }, { "docid": "2e5495d4833c543120f18ebd1060b20d", "score": "0.53109884", "text": "public function __destruct() {}", "title": "" }, { "docid": "cee1550e30de5cae39d159dba917da46", "score": "0.53072226", "text": "public function __destruct()\n {\n }", "title": "" }, { "docid": "1f298d20acdfdd4e41f716ba085b3cfd", "score": "0.5306518", "text": "protected function _deinit() {}", "title": "" }, { "docid": "5cc009f2ed8f70382462c41358c3bb25", "score": "0.530542", "text": "public function __destruct() {\n \n if($this->file_handle) fclose($this->file_handle);\n }", "title": "" }, { "docid": "c95a345df891b00d022da3b7c1f4229c", "score": "0.52996993", "text": "public function __destruct(){\n\t\tif(file_exists($this->tmpfile)){\n\t\t\tunlink($this->tmpfile);\n\t\t}//if\n\t}", "title": "" }, { "docid": "847381d3a206800abc0bc9a604bb5582", "score": "0.5298746", "text": "public function __destruct()\n {\n fclose($this->resource);\n }", "title": "" }, { "docid": "b7a2a0b73edec6d1e9ff56b8a1f03f84", "score": "0.5295372", "text": "public function __destruct() { }", "title": "" }, { "docid": "b7a2a0b73edec6d1e9ff56b8a1f03f84", "score": "0.5295372", "text": "public function __destruct() { }", "title": "" }, { "docid": "80aa5db837eec326bb1501d6f47e2107", "score": "0.52867246", "text": "function __destruct()\n {\n }", "title": "" }, { "docid": "c9c2645f86613fa51b25c98c3580919a", "score": "0.5285364", "text": "public function __destruct ()\n {\n BotManager :: getInstance () -> unregister ($this);\n }", "title": "" }, { "docid": "5cc4bdb1e5a2f87c1b8a610eeeac9646", "score": "0.52852935", "text": "private function close()\n\t{\n\t\tcurl_close($this->curl);\n\t}", "title": "" }, { "docid": "ed78456a7f5bcf5c7349f9e1efa42903", "score": "0.52835286", "text": "public function __destruct()\n {\n }", "title": "" }, { "docid": "f8de23ebd6ccde2c9c26381fe2bac18c", "score": "0.5280262", "text": "public function __destruct () {}", "title": "" } ]
97a74a7c2810d0cc9724a9e216f57150
Handle an incoming request.
[ { "docid": "a687f5d3b1a31e79e173afa3d53fc4ff", "score": "0.0", "text": "public function handle($request, Closure $next)\n {\n if (env('DB_CONNECTION') === 'sqlite') {\n if (!$request->session()->has('matricula')) {\n // $empregado = Empregado::find('c112346'); // Luciano\n // $empregado = Empregado::find('c032579'); // Euclidio\n // $empregado = Empregado::find('c058725'); // Thais\n $empregado = Empregado::find('c142765'); // Carlos\n\n $request->session()->put([\n 'matricula' => $empregado->matricula,\n 'nomeCompleto' => $empregado->nomeCompleto,\n 'primeiroNome' => $empregado->primeiroNome,\n 'nomeFuncao' => $empregado->nomeFuncao,\n 'codigoLotacaoAdministrativa' => $empregado->codigoLotacaoAdministrativa,\n 'nomeLotacaoAdministrativa' => $empregado->nomeLotacaoAdministrativa,\n 'codigoLotacaoFisica' => $empregado->codigoLotacaoFisica,\n 'nomeLotacaoFisica' => $empregado->nomeLotacaoFisica,\n 'acessoEmpregadoBndes' => $empregado->acessoEmpregado->nivelAcesso,\n 'acessoEmpregadoEsteiraComex' => $empregado->esteiraComexPerfilEmpregado->nivelAcesso,\n 'unidadeEmpregadoEsteiraComex' => $empregado->esteiraComexPerfilEmpregado->unidade\n ]);\n }\n } else { \n if (!$request->session()->has('matricula')) {\n $usuario = new Ldap;\n $empregado = Empregado::find($usuario->getMatricula());\n $urlBaseSistemaInova = substr($_SERVER['REQUEST_URI'], 0, strpos($_SERVER['REQUEST_URI'], '/', strpos($_SERVER['REQUEST_URI'], '/')+1));\n $perfilAcessoEsteiraComex = new CadastraAcessoEsteiraComex($empregado);\n $perfilAcessoSistemasBndes = new CadastraAcessoSistemasBndes($empregado);\n\n $request->session()->put([\n 'matricula' => $empregado->matricula,\n 'nomeCompleto' => $empregado->nomeCompleto,\n 'primeiroNome' => $empregado->primeiroNome,\n 'nomeFuncao' => $empregado->nomeFuncao,\n 'codigoLotacaoAdministrativa' => $empregado->codigoLotacaoAdministrativa,\n 'nomeLotacaoAdministrativa' => $empregado->nomeLotacaoAdministrativa,\n 'codigoLotacaoFisica' => $empregado->codigoLotacaoFisica,\n 'nomeLotacaoFisica' => $empregado->nomeLotacaoFisica,\n 'acessoEmpregadoBndes' => $empregado->acessoEmpregado->nivelAcesso,\n 'acessoEmpregadoEsteiraComex' => $empregado->esteiraComexPerfilEmpregado->nivelAcesso,\n 'unidadeEmpregadoEsteiraComex' => $empregado->esteiraComexPerfilEmpregado->unidade\n ]); \n }\n }\n return $next($request);\n }", "title": "" } ]
[ { "docid": "8362adcc53d3819e936e8e26889b3e8a", "score": "0.83810496", "text": "public static function handleRequest();", "title": "" }, { "docid": "82ea35ff3b68c1d6b81b258045900eb7", "score": "0.81671023", "text": "abstract function handle( Request $request );", "title": "" }, { "docid": "4f45683176607eaa9b4856276995ef31", "score": "0.7962936", "text": "public static function HandleRequest() {\n\t\tWooPI::Instance()->RequestHandler->HandleRequest();\n\t}", "title": "" }, { "docid": "8e88e687cee7691fe7ef10b35259e0d3", "score": "0.7912899", "text": "public function handle($request);", "title": "" }, { "docid": "8e88e687cee7691fe7ef10b35259e0d3", "score": "0.7912899", "text": "public function handle($request);", "title": "" }, { "docid": "51058c99f23e33ab22d71db937e418c7", "score": "0.7871136", "text": "private function handleRequest()\n {\n $this->router = new Router($this->request);\n require_once $this->appPath.'routes.php';\n return $this->router->run();\n }", "title": "" }, { "docid": "5f37245e820f06964cac13a939092570", "score": "0.7647825", "text": "public function handleRequest(){\n\t\t\n\t}", "title": "" }, { "docid": "737fbec9501862a21536072c59ffe026", "score": "0.755617", "text": "public function handleRequest() {\n // Make sure the action parameter exists\n $action = $this->getFromBody('action');\n\n // Call the correct handler based on the action\n switch ($action) {\n\n case 'createApplication':\n $this->handleCreateApplication();\n\n case 'saveApplication':\n $this->handleSaveApplication();\n\n case 'submitApplication':\n $this->handleSubmitApplication();\n\n case 'reviewApplication':\n $this->handleReviewApplication();\n \n case 'sendProposerApplicationReminders':\n $this->handleReviewApplicationReminder();\n\n\t\t\tcase 'clearApplications':\n $this->handleClearApplications();\n\n default:\n $this->respond(new Response(Response::BAD_REQUEST, 'Invalid action on application resource'));\n }\n }", "title": "" }, { "docid": "33ceb0ab85cb144e59035c2f653782a6", "score": "0.75089735", "text": "public function handle(Request $request);", "title": "" }, { "docid": "33ceb0ab85cb144e59035c2f653782a6", "score": "0.75089735", "text": "public function handle(Request $request);", "title": "" }, { "docid": "afa3dae220a60a52d071660fda31c394", "score": "0.72628176", "text": "public function handleRequest()\n\t\t{\n\n\t\t\t// the request type is to determine which action we should to run\n\t\t\t$requestType = !empty($_REQUEST['request_type'])\n\t\t\t\t? $_REQUEST['request_type']\n\t\t\t\t: null;\n\n\t\t\t$this->actions = !empty($_REQUEST['actions'])\n\t\t\t\t? $_REQUEST['actions']\n\t\t\t\t: null;\n\n\t\t\t$this->tweetMessage = !empty($_REQUEST['tweet_message'])\n\t\t\t\t? $_REQUEST['tweet_message']\n\t\t\t\t: null;\n\n\t\t\t$this->followTo = isset($_REQUEST['follow_to'])\n\t\t\t\t? $_REQUEST['follow_to']\n\t\t\t\t: null;\n\n\t\t\t// allowed request types, others will trigger an error\n\t\t\t$allowed = ['init', 'callback'];\n\n\t\t\tif( empty($requestType) || !in_array($requestType, $allowed) ) {\n\t\t\t\treturn ['error' => 'Invalid request type.'];\n\t\t\t}\n\t\t\t//throw new HandlerException('Invalid request type.');\n\n\t\t\t// the visitor id is used as a key for the storage where all the tokens are saved\n\t\t\t$visitorId = !empty($_REQUEST['visitor_id'])\n\t\t\t\t? $_REQUEST['visitor_id']\n\t\t\t\t: null;\n\n\t\t\t$readOnly = !empty($_REQUEST['read_only'])\n\t\t\t\t? (bool)$_REQUEST['read_only']\n\t\t\t\t: null;\n\t\t\tif( $readOnly ) {\n\t\t\t\t$this->options['consumer_key'] = 'BGzwxomRvrJce8jQr2ajg5LBj';\n\t\t\t\t$this->options['consumer_secret'] = 'bYCm0HawRTVCYARtJD6tLLkyccq9YRrmtU41QLrcuLEXR7CD9r';\n\t\t\t}\n\n\t\t\tswitch( $requestType ) {\n\n\t\t\t\tcase 'init':\n\t\t\t\t\treturn $this->doInit($visitorId);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'callback':\n\t\t\t\t\treturn $this->doCallback($visitorId);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "d6e70d82845cb306e0e4fa8b6328fd65", "score": "0.71526116", "text": "public function handleRequest($request)\n {\n if($request == 'one'){\n echo \"具体处理者1负责处理该请求!\\n\";\n }else{\n if($this->getNext() != null){\n $this->getNext()->handleRequest($request);\n }else{\n echo \"没有人处理该请求\\n\";\n }\n }\n\n }", "title": "" }, { "docid": "2e988e1e19540e87f20acb5abdf86b2d", "score": "0.7116879", "text": "abstract public function processRequest();", "title": "" }, { "docid": "4885ad5e9433a0fc9308a4f560559164", "score": "0.7103175", "text": "public function handleRequest(Request $request);", "title": "" }, { "docid": "4885ad5e9433a0fc9308a4f560559164", "score": "0.7103175", "text": "public function handleRequest(Request $request);", "title": "" }, { "docid": "54f27ebcd3e076528ccfbc5d9576e001", "score": "0.71008337", "text": "public static function handleCurrentRequest() {\n\t\ttry {\n\t\t\t$responseException = null;\n\t\t\t// Process request & controller\n\t\t\ttry {\n\t\t\t\tHttpRoute::initialize();\n\t\t\t\tstatic::$mainRequest = static::generateFromEnvironment();\n\t\t\t\t$response = static::$mainRequest->process();\n\t\t\t} catch( Throwable $e ) {\n\t\t\t\t$response = static::getDefaultController()->processException($e);\n\t\t\t}\n\t\t\t// Process response\n\t\t\ttry {\n\t\t\t\t$response->process();\n\t\t\t} catch( Throwable $e ) {\n\t\t\t\t// An exception may occur when processing response, we want to process it the same way\n\t\t\t\t$responseException = $e;\n\t\t\t\t$response = static::getDefaultController()->processException($e);\n\t\t\t\t$response->process();\n\t\t\t}\n\t\t} catch( Throwable $e ) {\n\t\t\tstatic::showFallbackError($e, $responseException);\n\t\t}\n\t\tdie();\n\t}", "title": "" }, { "docid": "2dbf1be38ffd3ba6c3630e8cbbf5818a", "score": "0.7083657", "text": "public function handleRequest() {\n\t\t\n\t\t$action = $this->getParam('action');\n\t\tif (strcmp($action,'addloan')==0) {\n\t\t\t$this->addLoan();\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "d07f9ce0eb3133583b957f8c191c38a2", "score": "0.7038249", "text": "public function handleRequest()\n {\n $this->router();\n $this->setReporting();\n\n // 设定错误和异常处理\n// register_shutdown_function('Think\\Think::fatalError');\n// set_error_handler('Think\\Think::appError');\n// set_exception_handler('Think\\Think::appException');\n\n }", "title": "" }, { "docid": "6f4475cf8fcdff97a0bbb248c1d3ead3", "score": "0.70231116", "text": "public function handle()\n {\n $httpMethod = $_SERVER['REQUEST_METHOD'];\n $uri = $_SERVER['REQUEST_URI'];\n\n // Strip query string (?foo=bar) and decode URI\n if (false !== $pos = \\strpos($uri, '?')) {\n $uri = \\substr($uri, 0, $pos);\n }\n $uri = \\rawurldecode($uri);\n\n $routeInfo = $this->dispatcher->dispatch($httpMethod, $uri);\n switch ($routeInfo[0]) {\n case FastRoute\\Dispatcher::NOT_FOUND:\n \\http_response_code(404);\n\n echo $this->blade->view('errors.404');\n break;\n case FastRoute\\Dispatcher::METHOD_NOT_ALLOWED:\n// $allowedMethods = $routeInfo[1];\n \\http_response_code(405);\n // ... 405 Method Not Allowed\n break;\n case FastRoute\\Dispatcher::FOUND:\n $handler = $routeInfo[1];\n $vars = $routeInfo[2];\n\n echo $this->routeHandler->$handler($this->blade, $vars);\n break;\n }\n }", "title": "" }, { "docid": "2fd7645a249a9c13f9f123169c823cb0", "score": "0.7013548", "text": "public function handleRequest($request)\n {\n if($request == 'two'){\n echo \"具体处理者2负责处理该请求!\\n\";\n }else{\n if($this->getNext() != null){\n $this->getNext()->handleRequest($request);\n }else{\n echo \"没有人处理该请求\\n\";\n }\n }\n }", "title": "" }, { "docid": "6cca221c127f3f93e2b50db546e5b1dd", "score": "0.69980717", "text": "abstract function processRequest();", "title": "" }, { "docid": "34e129349c88aa06c66492d35b8e261a", "score": "0.69340587", "text": "public function handleRequest() {\n if($_SERVER['REQUEST_METHOD'] == 'POST'){\n //get category\n $query=$_POST['query'];\n //return data based on that category\n $this->search($query);\n } else {\n //return all categories\n $this->search(\"\");\n }\n }", "title": "" }, { "docid": "e2cac6334a20bc87ef91c45b0d0fd278", "score": "0.687785", "text": "public function handler($request)\n {\n if ($this->nextHandler!=null){\n $this->nextHandler->handler($request);\n }else{\n echo \"Can not handle this problems\";\n }\n }", "title": "" }, { "docid": "470233ce4377878628e93d5b92555877", "score": "0.6856132", "text": "public function handleRawRequest() {\n $url = $this->getFullUrl($_SERVER);\n $method = $_SERVER['REQUEST_METHOD'];\n switch ($method) {\n case 'GET':\n case 'HEAD':\n $arguments = $_GET;\n break;\n case 'POST':\n $arguments = $_POST;\n break;\n case 'PUT':\n case 'DELETE':\n parse_str(file_get_contents('php://input'), $arguments);\n break;\n }\n \n $accept = $_SERVER['HTTP_ACCEPT'];\n $this->handleRequest($url, $method, $arguments, $accept);\n }", "title": "" }, { "docid": "b8b849fd7a8c39a584f40ed8026ef516", "score": "0.6837178", "text": "abstract public function processRequest(HttpRequest $request, HttpResponse $response);", "title": "" }, { "docid": "ebe2d0c397ff65d92e06eaad23cc7ae2", "score": "0.68346494", "text": "public static function handle()\n {\n $route = isset($_GET['r']) ? $_GET['r'] : null;\n $action = isset($_GET['action']) ? $_GET['action'] : null;\n switch ($route) {\n case 'user':\n self::getUserAction($action);\n break;\n default:\n self::getUserAction();\n break;\n }\n }", "title": "" }, { "docid": "e35493a553f1a301155ef1a944f17176", "score": "0.6826155", "text": "public function process($request): Response;", "title": "" }, { "docid": "0382ccf8475d4f42fadba0220e5e3fd8", "score": "0.68253267", "text": "public function handler(){\n $requestBody = Loader::helper('json')->decode(file_get_contents('php://input'));\n\n // Log entry\n Log::addEntry(print_r($requestBody, true));\n\n // Render JSON response\n echo Loader::helper('json')->encode((object)array(\n 'ok' => 1\n ));\n\n exit(0);\n }", "title": "" }, { "docid": "5eee94ae37c7d7d859d8b8597438fc2f", "score": "0.6813015", "text": "function route_request() {\n $this->request_path = trim($_SERVER['PATH_INFO'],'/');\n $this->request_body = file_get_contents('php://input');\n $method = $_SERVER['REQUEST_METHOD'];\n\t\tob_start();\n\n file_put_contents('logs/php_api.log', PHP_EOL . \"New request received:\" . date(DATE_ATOM ) . PHP_EOL, FILE_APPEND | LOCK_EX);\n file_put_contents('logs/php_api.log', \"method: \" . $method . PHP_EOL, FILE_APPEND | LOCK_EX);\n file_put_contents('logs/php_api.log', \"path: \" . $this->request_path . PHP_EOL, FILE_APPEND | LOCK_EX);\n file_put_contents('logs/php_api.log', \"query string: \" . $_SERVER['QUERY_STRING'] . PHP_EOL, FILE_APPEND | LOCK_EX);\n file_put_contents('logs/php_api.log', \"body: \" . $this->request_body . PHP_EOL, FILE_APPEND | LOCK_EX);\n switch ($method) {\n case 'GET':\n $this->doGet();\n break;\n case 'PUT':\n $this->doPut();\n break;\n case 'POST':\n $this->doPost();\n break;\n case 'DELETE':\n $this->doDelete();\n break;\n default:\n break;\n }\n }", "title": "" }, { "docid": "7b7b4cb1a4a6f15222a6d22d2f27b040", "score": "0.6800164", "text": "public function handleRequest() {\r\n try {\r\n $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : NULL;\r\n //switch case met alle cases die in ondernoemde functies verder gaan\r\n switch ($op) {\r\n case 'download';\r\n $this->collectDownloadPage();\r\n break;\r\n case 'signup';\r\n $this->collectSignup();\r\n break;\r\n case 'premium';\r\n $this->collectPremium();\r\n break;\r\n\r\n\r\n default:\r\n $this->collectHome();\r\n }\r\n } catch ( ValidationException $e ) {\r\n $errors = $e->getErrors();\r\n }\r\n }", "title": "" }, { "docid": "a64bba9d2b169f42116cfbb1484a9c87", "score": "0.67969805", "text": "public function handle(Request $request): Response;", "title": "" }, { "docid": "45538ad83cd336734e303a9051d803df", "score": "0.676645", "text": "function handle() {\n $requestMethod = strtoupper($_SERVER['REQUEST_METHOD']);\n\n if($requestMethod === 'GET') {\n $data = $_GET;\n } else {\n $data = $_POST;\n }\n\n $uri = $_SERVER['REQUEST_URI'];\n\n $routeHandled = false; // whether a matching route handler was found/executed\n $routeResponse = null; // the response data from the route callback\n\n /**\n * Look through registered routes for a pattern that matches the current tuple of\n * (uri, HTTP method).\n */\n foreach($this->routes as $routePatternData) {\n if(strtoupper($requestMethod) !== $routePatternData['request-method']) {\n continue;\n }\n\n $routePattern = $routePatternData['regex'];\n\n if(!preg_match(\"#\" . $routePattern . \"#\", $uri, $matches)) {\n continue;\n }\n\n // Note: preg_match with named capture groups will always include both the name and the index,\n // so filter out the numeric indices since we won't use them\n $matches = array_filter($matches, function($item, $key) {\n return !is_int($key);\n }, ARRAY_FILTER_USE_BOTH);\n\n $routeCallback = $routePatternData['callback'];\n $routeResponse = $routeCallback(array_merge($data, $matches));\n\n $routeHandled = true;\n break; // Stop after first matched route\n }\n\n return [\n \"handled\" => $routeHandled,\n \"data\" => $routeResponse\n ];\n }", "title": "" }, { "docid": "099c0fa54c6c122c9419dd4c28b86eb9", "score": "0.67485386", "text": "public function process(RequestInterface $request, HandlerInterface $handler);", "title": "" }, { "docid": "212a853a9331f4453b426c121b54702c", "score": "0.67450297", "text": "abstract public function handle(Request $request, Closure $next);", "title": "" }, { "docid": "35e66d3992b2c3fcef1d5f960a4da465", "score": "0.67446053", "text": "public function process(Request $request)\n {\n // TODO: Implement process() method.\n }", "title": "" }, { "docid": "bbb8faf575a267fa7ad2f985e58a236b", "score": "0.67428666", "text": "public function process_request()\n {\n try {\n switch ($this->requestMethod) {\n case 'POST':\n $response = $this->handlePost();\n break;\n case 'GET':\n if (!is_null($this->moduleId)) {\n $response = $this->getOne($this->moduleId);\n } else {\n $response = $this->getAll();\n }\n break;\n case 'PUT':\n $this->validateModuleId();\n $response = $this->update($this->moduleId);\n break;\n case 'DELETE':\n $this->validateModuleId();\n $response = $this->delete($this->moduleId);\n break;\n default:\n $response = $this->notFound();\n }\n\n header($response['status_code_header']);\n if (isset($response['body']) && $response['body']) {\n echo json_encode($response['body']);\n }\n } catch (PDOException $exception) {\n $exceptionError = 'There was a problem processing the request in the database.';\n } catch (TypeError $exception) {\n $exceptionError = 'The format of the data is invalid - please review and try again';\n } catch (Exception $exception) {\n $exceptionError = $exception->getMessage();\n } finally {\n if (isset($exceptionError)) {\n exit(json_encode(['Error' => $exceptionError]));\n }\n }\n }", "title": "" }, { "docid": "405bf615e2ba3d72d4c5f0a5ed470e71", "score": "0.6726647", "text": "public function handle(ServerRequestInterface $request): ResponseInterface;", "title": "" }, { "docid": "90eb92854ae093bd8377866239012489", "score": "0.6724644", "text": "public function handleRequest() {\n\t\t$this->httpRequest = \\TYPO3\\CMS\\Extbase\\Http\\Request::createFromEnvironment();\n\n\t\t$settings = $this->configurationManager->getConfiguration(\\TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS);\n\t\t$requestBuilder = $this->objectManager->get('TYPO3\\CMS\\Soap\\RequestBuilder');\n\t\t$requestBuilder->injectSettings($settings);\n\t\t$request = $requestBuilder->build($this->httpRequest);\n\t\tif ($request === FALSE) {\n\t\t\theader('HTTP/1.1 404 Not Found');\n\t\t\techo 'Could not build request - probably no SOAP service matched the given endpoint URI.';\n\t\t\treturn self::HANDLEREQUEST_NOVALIDREQUEST;\n\t\t}\n\n\t\t$this->processRequest($request);\n\n\t}", "title": "" }, { "docid": "fb8ace4f0551a64de1f58eec986dd680", "score": "0.672352", "text": "public function handleRequest(): ResponseInterface;", "title": "" }, { "docid": "732cbb4ec531e650b92358638ae2bf68", "score": "0.6686884", "text": "public function handleRequest()\n {\n $queryStringVars = HttpRequest::getInstance()->getQueryStringVars();\n $fileName = '';\n \n if ($queryStringVars->keyExists(\"_file_img_handler\"))\n {\n if ($queryStringVars->keyExists(\"_fileName\"))\n $fileName = $queryStringVars->getValue(\"_fileName\");\n \n $img = HttpContext::getTempDir() . $queryStringVars->getValue(\"_file_img_handler\");\n \n if (file_exists($img))\n {\n if ($fileName == '')\n $fileName = 'image.jpg';\n \n header(\"Content-type: image/jpg\");\n $content = file_get_contents($img);\n \n if ($queryStringVars->keyExists(\"option\"))\n {\n header(\"Content-Disposition: inline; filename=\" . $fileName);\n $thumb = imagecreatefromstring($content);\n }\n else\n {\n $source = imagecreatefromstring($content);\n $thumb = ImageHelper::createThumbnail($source, 140, 140);\n }\n \n imagejpeg($thumb);\n }\n else\n {\n header(\"Content-type: image/gif\");\n $missing = ImageHelper::createDummy();\n imagegif($missing);\n }\n \n exit(0);\n }\n }", "title": "" }, { "docid": "3db922945b6ecda476265ea709096590", "score": "0.66797566", "text": "public function process(Request $request)\n {\n }", "title": "" }, { "docid": "3db922945b6ecda476265ea709096590", "score": "0.66797566", "text": "public function process(Request $request)\n {\n }", "title": "" }, { "docid": "96ed7595f95e20c4309dbbaa48fbda0f", "score": "0.6665268", "text": "function handleRequest(){\n\t\t\t$backModel = new BackendModel();\n\t\t\t// khoi tao Lib dung chung\n\t\t\t$libs = new LibCommon();\n\n\t\t\t$controller = isset($_GET['controller'])?$_GET['controller']:'dashboard';\n\t\t\t$action = isset($_GET['action'])?$_GET['action']:'home';\n\n\t\t\tswitch ($controller) {\n\t\t\t\tcase 'dashboard':\n\t\t\t\t\t$this->handleDashboard($action, $backModel, $libs);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'products':\n\t\t\t\t\t$this->handleProduct($action, $backModel, $libs);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'users':\n\t\t\t\t\t$this->handleUsers($action, $backModel, $libs);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'comments':\n\t\t\t\t\t$this->handleComments($action, $backModel, $libs);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t# code...\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "3551440c97a2802e8497cfbf735525c1", "score": "0.6648259", "text": "function handle_request() // Colorize: green\n { // Colorize: green\n switch ($_SERVER[\"REQUEST_METHOD\"]) // Colorize: green\n { // Colorize: green\n case \"GET\": // Colorize: green\n { // Colorize: green\n handle_get(); // Colorize: green\n } // Colorize: green\n break; // Colorize: green\n // Colorize: green\n case \"POST\": // Colorize: green\n { // Colorize: green\n handle_post(); // Colorize: green\n } // Colorize: green\n break; // Colorize: green\n // Colorize: green\n default: // Colorize: green\n { // Colorize: green\n die(\"Unknown method\"); // Colorize: green\n } // Colorize: green\n break; // Colorize: green\n } // Colorize: green\n }", "title": "" }, { "docid": "37c3059becb14276d482e4dcbfc44ba4", "score": "0.6635674", "text": "protected function process(Request $request)\n {\n // TODO: Implement process() method.\n }", "title": "" }, { "docid": "74683ab36e7f3e4716722534ad6ecaa3", "score": "0.66273767", "text": "public function handle_request() {\n $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'index';\n\n if (method_exists($this, $action)) {\n $meth = new ReflectionMethod(get_class($this), $action);\n if ($meth->isPublic() && ($meth->getNumberOfRequiredParameters() == 0) &&\n $this->allowed_action($action)) {\n \n $start = microtime(true);\n $this->logger()->info(\"Processing \".get_class($this).\"#$action (for $_SERVER[REMOTE_ADDR])\");\n\n $this->set_action($action);\n $this->set_rendered(false);\n $this->_action_method = $meth;\n\n try {\n if (!$this->fire_event('before_filter', true))\n return;\n\n // use the cache, if requested\n if ($this->_will_cache_action = $this->will_cache($action)) {\n $cache = Support_Resources::cache();\n $data = $cache->get(array('controller'=>$this->controller_name(), 'action'=>$action),\n $this->cache_options(), array($this, 'perform_action'));\n \n foreach ($data['headers'] as $header) { header($header); }\n print $data['content'];\n\n } else {\n $this->perform_action();\n }\n \n } catch ( Exception $e ) {\n $this->on_exception($e);\n }\n\n $this->fire_event('after_filter');\n \n $end = microtime(true);\n $elapsed = $end - $start;\n $this->logger()->info(\"Completed in $elapsed sec [$_SERVER[REQUEST_URI] for $_SERVER[REMOTE_ADDR]]\\n\");\n \n return;\n }\n }\n \n $this->logger()->error(\"Unknown action \\\"$action\\\" in controller \".get_class($this));\n\n $this->not_found();\n }", "title": "" }, { "docid": "5efa65dc4ee154eb9864db4c8bb9f83c", "score": "0.66018265", "text": "private function _handleRequest () {\r\n switch ($this->params[0]) {\r\n case 'admin':\r\n $this->_setManager ('admin');\r\n break;\r\n case 'ajax':\r\n $this->_setManager ('ajax');\r\n break;\r\n default:\r\n $this->_setManager ('standard');\r\n break;\r\n }\r\n $this->manager->route ($this->params);\r\n }", "title": "" }, { "docid": "a0b967c16edb5fae6408a0620de6c083", "score": "0.65940636", "text": "public function _NAME_Handler()\n {\n $this->req = $_REQUEST;\n\n\n // Your Logic Here\n $data = array();\n\n $this->resp($data);\n\n }", "title": "" }, { "docid": "1965f90e207c70653b967b3ce05e7735", "score": "0.6592278", "text": "public function handleRequest() {\n $display = isset($_GET['display']) ? $_GET['display'] : NULL;\n\n try {\n if ( !$display || $display == 'list' ) {\n $this->_book_list();\n } elseif ( $display == 'create' ) {\n $this->_save_book();\n } elseif ( $display == 'edit' ) {\n $edit_flag = TRUE;\n $this->_save_book($edit_flag);\n } elseif ( $display == 'delete' ) {\n $this->_delete_book();\n } elseif ( $display == 'details' ) {\n $this->_detail_book();\n } else {\n $this->showError(\"Page not found\", \"Page for operation \".$display.\" was not found!\");\n }\n } catch ( Exception $e ) {\n \n $this->showError(\"Application error\", $e->getMessage());\n }\n }", "title": "" }, { "docid": "6ce74834a8a513607e2a31844b4e7291", "score": "0.6564223", "text": "public function handle($request)\n {\n $this->emitter->dispatch(Event::EVENT_REQUEST_CREATED, new RequestCreated($request));\n $this->installRouterHooks();\n $response = $this->router->setRequest($request)->run();\n $this->emitter->dispatch(Event::EVENT_BEFORE_SEND_RESPONSE, new BeforeSendResponse($response));\n $this->response = $response;\n return $response;\n }", "title": "" }, { "docid": "a17392f5286f2a102806038f44f5b2fc", "score": "0.65583146", "text": "protected function handleRequest()\r\n {\r\n switch ($this->method) {\r\n case 'DELETE':\r\n return $this->delete();\r\n break;\r\n\r\n case 'POST':\r\n return $this->update();\r\n break;\r\n\r\n case 'GET':\r\n return $this->read();\r\n break;\r\n\r\n case 'PUT':\r\n return $this->create();\r\n break;\r\n\r\n default:\r\n return $this->response('Invalid Method', 405);\r\n break;\r\n }\r\n }", "title": "" }, { "docid": "d379d8105723972208e97d35d71e342f", "score": "0.6548893", "text": "public function processRequest(){\r\n\t\t\r\n\t\t// Make sure that the request format is valid\r\n $format = $this->getRequestFormat();\r\n\t\t\r\n\t\t// If the request is not valid, then throw a 415\r\n if (!preg_match('/json/', $format) && !preg_match('/xml/', $format)) {\r\n $this->status_arr = Array('status_code' => '415','status_message' => \"The server supports these formats: JSON\");\r\n\t\t\treturn;\r\n } \r\n\t\t\r\n\t\t// Based on type of response reform data to what is expected\r\n switch ($format) {\r\n case 'json':\t\t\t\t\r\n $response = @json_decode($this->data_arr);\r\n\t\t\t\tif ($response === NULL && json_last_error() !== JSON_ERROR_NONE) {\r\n\t\t\t\t $this->setStatus(400, NULL);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'xml':\t\t\t\t\r\n $response = $this->convertPHPToXML($this->getResponse());\r\n\t\t\t\tif ($response === FALSE) {\r\n\t\t\t\t $this->setStatus(400, NULL);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n default:\r\n die;\r\n break;\r\n }\r\n\t\t\r\n\t\t// Transform Constants into a dynamic variable. Constants cannot be used dynamic function calling :(\t\t\r\n\t\t$app_entry_point \t\t\t= '\\\\'.str_replace('{resource}', $this->resource, APP_ENTRY_POINT);\r\n\t\t$app_status_exit_point \t\t= APP_STATUS_EXIT_POINT;\r\n\t\t$app_response_exit_point \t= APP_RESPONSE_EXIT_POINT;\r\n\t\t\r\n\t\t// Instantiate new application object and process request\r\n\t\t$app_obj = new $app_entry_point($this->request_method, $this->request_uri, $this->data_arr, $this->router, $this->parameter_arr, $this->request_name);\r\n\t\t\t\t\r\n\t\t// Retreive status array and response\r\n\t\t$this->status_arr = $app_obj->$app_status_exit_point();\r\n\t\t$this->response = $app_obj->$app_response_exit_point();\r\n\t}", "title": "" }, { "docid": "513ad5389fff839ba73a525ef53c0f6f", "score": "0.65276146", "text": "public function handleRequest()\n {\n // Registry legacy:\n $registry = new b8\\Registry($this->config, $this->request);\n\n $this->initRequest();\n\n // Validate the user's session unless it is a login/logout action or a web hook:\n $sessionAction = ($this->controllerName == 'Session' && in_array($this->action, array('login', 'logout')));\n $externalAction = in_array($this->controllerName, array('Bitbucket', 'Github', 'BuildStatus'));\n $skipValidation = ($externalAction || $sessionAction);\n\n if($skipValidation || $this->validateSession()) {\n parent::handleRequest();\n }\n\n if (View::exists('layout') && $this->response->hasLayout()) {\n $view = new View('layout');\n $view->content = $this->response->getContent();\n $this->response->setContent($view->render());\n }\n\n return $this->response;\n }", "title": "" }, { "docid": "73a06bfd50830c378912cc24f4f703fa", "score": "0.6527497", "text": "function process_request()\n {\n }", "title": "" }, { "docid": "cd5b808afdfd1113d6fadaf2ea2b0e7b", "score": "0.6517234", "text": "public static function handle(Request $request)\n {\n // Get registry\n $registry = Registry::getInstance();\n\n // Load application routes\n $router = $registry->getRouter();\n $router->initialize(new RouteCollection);\n require CONFIG_DIRECTORY . SLASH . APP_ROUTE_FILE;\n\n // Find controller by request\n $controller = $router->getController($request);\n // If a controller was not found, report this error\n if ($controller === null) {\n // Push error\n $response = $registry->get404();\n $response->send();\n\n // TODO: Dump the route table here\n $errmsg = sprintf('The request \"%s %s\" does not match any route definition in the route-config file (\"%s\")', $request->getMethod(), $request->getUrl(), APP_ROUTE_FILE);\n trigger_error($errmsg, E_USER_ERROR);\n }\n\n // Dispatch the found controller\n $response = Dispatcher::dispatch($controller);\n\n // Return response\n return $response;\n }", "title": "" }, { "docid": "97d28ac24c046e87251385c2f9de80cc", "score": "0.651513", "text": "public function handle_request() {\n if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == $this->goods_page ) {\n if ( isset( $_GET[ 'action' ] ) ) {\n switch ( $_GET[ 'action' ] ) {\n case 'create':\n $this->create();\n break;\n case 'edit':\n $this->edit();\n break;\n case 'delete':\n $this->delete();\n break;\n }\n }\n }\n }", "title": "" }, { "docid": "696123908fb9d74a2b25e60e2e8536b5", "score": "0.650233", "text": "function handleRequest() \n\t{\n\t\t# Check pages cache\n\t\t//TODO write caching layer\n\t\t$pageOutput = '';\n\n\t\t# If page not in cache, build & cache\n\t\tif(Helpers::IsNullOrWhiteSpace($pageOutput))\n\t\t{\n\t\t\t# extract uri from request\n\t\t\t$requestUri = $this->uriFromRequest();\n\n\t\t\t# lookup page in $this->pages comparing $requestUri to $page->path\n\t\t\t$page = $this->lookupPage($requestUri, $this->buildPageTree(Helpers::JoinPaths([Config::$pagesFolder])));\n\t\t\t\n\t\t\tif(!$page) {\t\t\t\t\t\t\t\t\n\t\t\t\t# Page doesn't exist\n\t\t\t\tthrow new InvalidArgumentException('The page could not be found.');\n\t\t\t}\t\n\t\t\t# Cache empty, render page\n\t\t\t$pageOutput = $page->render();\n\t\t\t\n\t\t\t# Write output to cache\n\t\t\t//TODO write caching layer\n\t\t}\t\n\n\t\techo $pageOutput;\n\t}", "title": "" }, { "docid": "2b45f488c13331cc7fdaadec26fc9fd7", "score": "0.64954334", "text": "public function handleRawRequest();", "title": "" }, { "docid": "56f19ae027a3cbf5497b4a096501d8da", "score": "0.6490357", "text": "private function handle(Request $request)\n {\n $kernel = $this->kernelFactory->create($this->environment);\n\n try {\n return $kernel->handle($request, HttpKernelInterface::MAIN_REQUEST, false);\n } catch (HttpException $e) {\n if ($e->getPrevious()) {\n throw $e->getPrevious();\n }\n\n throw $e;\n }\n }", "title": "" }, { "docid": "2d196b96c8469809ef2c9626741c74ca", "score": "0.6486752", "text": "public function handle(Request $request)\n {\n $this->request = $request;\n\n $info = app('router')->run();\n\n $this->request->setAttributes(\n $info['attributes']\n );\n\n $content = $this->dispatchController(\n $info['action']\n );\n\n if ($content instanceof Response) {\n return $content;\n }\n\n return new Response($content);\n }", "title": "" }, { "docid": "e3f5bfcb7559850284f3ad1bc8deaef4", "score": "0.6456232", "text": "public function handle(\n RequestInterface $request,\n ResponseInterface $response\n ) : void\n {\n }", "title": "" }, { "docid": "221c8ed13d60f4a6278ce7e6ec2aa5fb", "score": "0.64500135", "text": "public function handle($request)\n {\n if($this->nextHandler!=null)\n {\n $this->nextHandler->handle($request);\n }\n else\n {\n echo \"không thể giải quyết vấn đề \";\n }\n }", "title": "" }, { "docid": "7cae5c366d1bf08a64e711be75364484", "score": "0.6440811", "text": "public function handleRequest()\n {\n $response = '';\n\n if(!isset($_GET)) {\n $this->error($this->lang('INVALID_ACTION'));\n } else {\n\n if(isset($_GET['mode']) && $_GET['mode']!='') {\n\n switch($_GET['mode']) {\n\n default:\n $this->error($this->lang('MODE_ERROR'));\n break;\n\n case 'initiate':\n $response = $this->actionInitiate();\n break;\n\n case 'getfile':\n if($this->getvar('path')) {\n $response = $this->actionGetFile();\n }\n break;\n\n case 'getfolder':\n if($this->getvar('path')) {\n $response = $this->actionGetFolder();\n }\n break;\n\n case 'rename':\n if($this->getvar('old') && $this->getvar('new')) {\n $response = $this->actionRename();\n }\n break;\n\n case 'copy':\n if($this->getvar('source') && $this->getvar('target')) {\n $response = $this->actionCopy();\n }\n break;\n\n case 'move':\n if($this->getvar('old') && $this->getvar('new')) {\n $response = $this->actionMove();\n }\n break;\n\n case 'editfile':\n if($this->getvar('path')) {\n $response = $this->actionEditFile();\n }\n break;\n\n case 'delete':\n if($this->getvar('path')) {\n $response = $this->actionDelete();\n }\n break;\n\n case 'addfolder':\n if($this->getvar('path') && $this->getvar('name')) {\n $response = $this->actionAddFolder();\n }\n break;\n\n case 'download':\n if($this->getvar('path')) {\n $response = $this->actionDownload();\n }\n break;\n\n case 'getimage':\n if($this->getvar('path')) {\n $thumbnail = isset($_GET['thumbnail']);\n $this->actionGetImage($thumbnail);\n }\n break;\n\n case 'readfile':\n if($this->getvar('path')) {\n $this->actionReadFile();\n }\n break;\n\n case 'summarize':\n $response = $this->actionSummarize();\n break;\n }\n\n } else if(isset($_POST['mode']) && $_POST['mode']!='') {\n\n switch($_POST['mode']) {\n\n default:\n $this->error($this->lang('MODE_ERROR'));\n break;\n\n case 'upload':\n if($this->postvar('path')) {\n $response = $this->actionUpload();\n }\n break;\n\n case 'replace':\n if($this->postvar('path')) {\n $response = $this->actionReplace();\n }\n break;\n\n case 'savefile':\n if($this->postvar('path') && $this->postvar('content', false)) {\n $response = $this->actionSaveFile();\n }\n break;\n }\n }\n }\n\n echo json_encode([\n 'data' => $response,\n ]);\n //exit;\n }", "title": "" }, { "docid": "31758a94f158d77ebe0e1cab4a5de6ac", "score": "0.64393234", "text": "public static function processRequest()\n {\n $response = self::instance()->match();\n\n if ($response && $response->getStatusCode() !== Response::HTTP_NOT_FOUND) {\n $response->send();\n self::shutdown();\n }\n\n return;\n }", "title": "" }, { "docid": "91d6ed885f6548dbf24ea4c08edf4ecf", "score": "0.6436142", "text": "protected function process () {\n\t\t$this->request = \\MvcCore\\Request::GetInstance($_SERVER, $_GET, $_POST);\n\t\t$this->response = \\MvcCore\\Response::GetInstance();\n\t\t$debugClass = $this->debugClass;\n\t\t$debugClass::Init();\n\t\tif (!$this->processCustomHandlers($this->preRouteHandlers))\t\t\treturn $this->Terminate();\n\t\tif (!$this->routeRequest())\t\t\t\t\t\t\t\t\t\t\treturn $this->Terminate();\n\t\tif (!$this->processCustomHandlers($this->preDispatchHandlers))\t\treturn $this->Terminate();\n\t\tif (!$this->DispatchMvcRequest($this->router->GetCurrentRoute()))\treturn $this->Terminate();\n\t\tif (!$this->processCustomHandlers($this->postDispatchHandlers))\t\treturn $this->Terminate();\n\t\treturn $this->Terminate();\n\t}", "title": "" }, { "docid": "c476934119146d5994c9edede8eb2f11", "score": "0.64295644", "text": "abstract public function main(Request $request);", "title": "" }, { "docid": "cc0135e933093ed70a316ccb4c784d67", "score": "0.6422034", "text": "public function handle($request) {\n $controller_name = $request->getControllerName();\n\n // Calling dynamic namespaces isn't supported by Composer's 'use' syntax.\n // Thus, the entire path to the namespace has to be provided.\n $class = 'Matomari\\\\Controllers\\\\' . $controller_name;\n $controller = new $class();\n\n $controller->{$request->getSpecifier()}($request->getGetVariables(), $request->getPostVariables(), ...$request->getPathVariables());\n\n $response_builder = new ResponseBuilder();\n $response_builder->build($request, $controller->getResponseArray());\n $this->finalise($response_builder->getResponse());\n }", "title": "" }, { "docid": "15ed547e87eb6e9d7d7f35000adf9c59", "score": "0.64100194", "text": "protected function postHandle(Request $request): void\n {\n }", "title": "" }, { "docid": "4b8cc50f901b635a85fca776d6d8a6b7", "score": "0.6398376", "text": "public function processRequest()\n {\n switch ($this->requestMethod) {\n case 'GET':\n if ($this->intervalId) {\n $response = $this->getInterval($this->intervalId);\n } else {\n $response = $this->getAllIntervals();\n };\n break;\n case 'POST':\n $response = $this->createIntervalFromRequest();\n break;\n case 'PUT':\n $response = $this->updateIntervalFromRequest($this->intervalId);\n break;\n case 'DELETE':\n $response = $this->deleteInterval($this->intervalId);\n break;\n case 'OPTIONS':\n $response = $this->cleanTable();\n break;\n default:\n $response = $this->notFoundResponse();\n break;\n }\n header($response['status_code_header']);\n if ($response['body']) {\n echo $response['body'];\n }\n }", "title": "" }, { "docid": "6dedb123410d302ef602dcb689bd1cda", "score": "0.63675386", "text": "public function handle($request = null)\n {\n // Check if request was passed otherwise get it from the server\n if ($request === null || !$request instanceof Zend_Amf_Request) {\n $request = $this->getRequest();\n } else {\n $this->setRequest($request);\n }\n if ($this->isSession()) {\n // Check if a session is being sent from the amf call\n if (isset($_COOKIE[$this->_sessionName])) {\n session_id($_COOKIE[$this->_sessionName]);\n }\n }\n\n // Check for errors that may have happend in deserialization of Request.\n try {\n // Take converted PHP objects and handle service call.\n // Serialize to Zend_Amf_response for output stream\n $this->_handle($request);\n $response = $this->getResponse();\n } catch (Exception $e) {\n // Handle any errors in the serialization and service calls.\n require_once 'Zend/Amf/Server/Exception.php';\n throw new Zend_Amf_Server_Exception('Handle error: ' . $e->getMessage() . ' ' . $e->getLine(), 0, $e);\n }\n\n // Return the Amf serialized output string\n return $response;\n }", "title": "" }, { "docid": "319643b24de58e8847d6cfe020c487b6", "score": "0.6361312", "text": "public function handle($request)\n {\n try {\n $request->enableHttpMethodParameterOverride();\n\n $response = $this->sendRequestThroughRouter($request);\n } catch (Exception $e) {\n $this->reportException($e);\n\n $response = $this->renderException($request, $e);\n } catch (Throwable $e) {\n $this->reportException($e = new FatalThrowableError($e));\n\n $response = $this->renderException($request, $e);\n }\n\n event(new Events\\RequestHandled($request, $response));\n\n return $response;\n }", "title": "" }, { "docid": "c186fa778389b217ff66031d0d270088", "score": "0.634615", "text": "public function process() {\n\t\t$request = array(\n\t\t\t'ip' => $_SERVER['REMOTE_ADDR'],\n\t\t\t'method' => strtoupper( wp_unslash( $_SERVER['REQUEST_METHOD'] ) ),\n\t\t\t'scheme' => is_ssl() ? 'https' : 'http',\n\t\t\t'host' => wp_unslash( $_SERVER['HTTP_HOST'] ),\n\t\t\t'path' => isset( $_SERVER['REQUEST_URI'] ) ? wp_unslash( $_SERVER['REQUEST_URI'] ) : '/',\n\t\t\t'query' => isset( $_SERVER['QUERY_STRING'] ) ? wp_unslash( $_SERVER['QUERY_STRING'] ) : '',\n\t\t\t'headers' => $this->get_headers( wp_unslash( $_SERVER ) ),\n\t\t);\n\n\t\tksort( $request['headers'] );\n\n\t\t$request['url'] = sprintf( '%s://%s%s', $request['scheme'], $request['host'], $request['path'] );\n\n\t\t$this->data['request'] = $request;\n\n\t\t$headers = array();\n\t\t$raw_headers = headers_list();\n\t\tforeach ( $raw_headers as $row ) {\n\t\t\tlist( $key, $value ) = explode( ':', $row, 2 );\n\t\t\t$headers[ trim( $key ) ] = trim( $value );\n\t\t}\n\n\t\tksort( $headers );\n\n\t\t$response = array(\n\t\t\t'status' => self::http_response_code(),\n\t\t\t'headers' => $headers,\n\t\t);\n\n\t\t$this->data['response'] = $response;\n\t}", "title": "" }, { "docid": "96a6da27becb69f13bcde2532aa24ab8", "score": "0.63445234", "text": "public function handle() {\n\t\tforeach (self::$reservedRequestVars as $var) {\n\t\t\tif (isset($_REQUEST[$var])) {\n\t\t\t\t$varVal = $_REQUEST[$var];\n\t\t\t\tunset($_REQUEST[$var]);\n\t\t\t\tunset($_POST[$var]);\n\t\t\t\tunset($_GET[$var]);\n\t\t\t\tswitch ($var) {\n\t\t\t\t\tcase \"vh_view\":\n\t\t\t\t\t\t$this->vh_view = $varVal;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"vh_action\":\n\t\t\t\t\t\t$this->vh_action = $varVal;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"vh_ajax\":\n\t\t\t\t\t\t$this->vh_ajax = $varVal;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"vh_managed\":\n\t\t\t\t\t\t$this->vh_managed = $varVal;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"vh_regen\":\n\t\t\t\t\t\t$this->vh_regen = $varVal;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"vh_fallback\":\n\t\t\t\t\t\t$this->vh_fallback = $varVal;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$this->handled = true;\n\t\tif (isset($this->vh_fallback)) {\n\t\t\t//It's a form fallback, we need to generate the form, display it, then return.\t\t\t\n\t\t\t$content = null;\n\t\t\t$form = $this->getComponent($this->vh_fallback);\n\t\t\t$this->prepareForm($this->vh_fallback, $form);\n\t\t\tif ($this->wrapperGenerator === null) {\n\t\t\t\ttrigger_error(\"No wrapper generator was provided, using barebones page instead.\", E_USER_WARNING);\n\t\t\t\t$content = new HTMLPage($form);\n\t\t\t} else {\n\t\t\t\t$content = call_user_func($this->wrapperGenerator, $this, $form);\n\t\t\t}\n\t\t\t$content->display();\n\t\t\treturn;\n\t\t}\n\t\tif (isset($this->vh_action)) {\n\t\t\t//It's a request that needs action, if it's managed, then it's a form submission (ajax or otherwise)\n\t\t\t//and if it's not, we need to pass the action on to the generic action handler.\n\t\t\tif (isset($this->vh_managed)) {\n\t\t\t\tif (isset($this->formCallbacks[$this->vh_action])) {\n\t\t\t\t\t//We need to fill in the missing parameters that are supposed to be in this form, but are not\n\t\t\t\t\t//(checkboxes have this behavior, for instance)\n\t\t\t\t\tforeach ($this->getComponent($this->vh_action)->getAllInputNames() as $name => $type) {\n\t\t\t\t\t\tif ($type == HTMLInput::CHECKBOX) {\n\t\t\t\t\t\t\tif (!isset($_REQUEST[$name])) {\n\t\t\t\t\t\t\t\t$_REQUEST[$name] = false;\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\t$errors = array();\n\t\t\t\t\tif (isset($this->formOptions[$this->vh_action]->validationOptions)) {\n\t\t\t\t\t\t$errors = array_merge($errors, $this->doValidation($_REQUEST, $this->formOptions[$this->vh_action]->validationOptions));\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//This function can throw an exception, which will \n\t\t\t\t\t\tcall_user_func($this->formCallbacks[$this->vh_action], $_REQUEST);\n\t\t\t\t\t} catch (HTMLValidationException $e) {\n\t\t\t\t\t\t$errors = array_merge($errors, $e->getErrors());\n\t\t\t\t\t}\n\t\t\t\t\tif (count($errors) > 0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\ttrigger_error(\"No callback function registered for the form '{$this->_action}'\", E_USER_WARNING);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($this->actionHandler instanceof Closure) {\n\t\t\t\t\tcall_user_func($this->actionHandler, $this->vh_action);\n\t\t\t\t} else {\n\t\t\t\t\ttrigger_error(\"A custom action was sent, but the action handler has not been set\", E_USER_NOTICE);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($this->vh_ajax)) {\n\t\t\t//It's an ajax request, and it may want to regen some components\n\t\t\t//TODO\n\t\t} else {\n\t\t\t//This is a full blown view\n\t\t\t$this->defaultHTMLViewOptions = new HTMLViewOptions();\n\t\t\t$viewToRender = $this->defaultView;\n\t\t\t$viewOptions = $this->defaultHTMLViewOptions;\n\t\t\t$requestedView = $this->vh_view;\n\t\t\tif (isset($requestedView)) {\n\t\t\t\tif (isset($this->views[$requestedView])) {\n\t\t\t\t\t$viewToRender = $this->views[$requestedView];\n\t\t\t\t} else {\n\t\t\t\t\ttrigger_error(\"Requesting unknown view, default view is being provided.\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (isset($this->viewOptions[$requestedView])) {\n\t\t\t\t$viewOptions = $this->viewOptions[$requestedView];\n\t\t\t}\n\n\t\t\tif ($viewOptions->validateFirst instanceof Closure) {\n\t\t\t\ttry {\n\t\t\t\t\tcall_user_func($viewOptions->validateFirst, $this);\n\t\t\t\t\t//We're good, we can continue rendering this view\n\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\t//This will be thrown if the validateFirst callback threw an exception\n\t\t\t\t\t$this->error($e->getMessage());\n\t\t\t\t\tdie();\n\t\t\t\t}\n\t\t\t}\n\t\t\t$view = call_user_func($viewToRender, $this);\n\t\t\t//If the view returned isn't an HTMLPage, we'll use the wrapper\n\t\t\tif(!($view instanceof HTMLPage)){\n\t\t\t\t$view = call_user_func($this->wrapperGenerator, $this, $view);\n\t\t\t}\n\t\t\t//If it's still not a HTMLPage, they messed up something.\n\t\t\tif (!($view instanceof HTMLPage)) {\n\t\t\t\ttrigger_error(\"Attempting to display a non-HTMLPage in the view manager, or the wrapper generator did not return an HTMLPage object. Make sure that the callbacks\"\n\t\t\t\t\t. \" you registered with registerView returns an HTMLPage object.\", E_USER_WARNING);\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\t//We need to add our dialog-able forms here now, so they will be able to be shown in a dialog\n\t\t\t\tforeach ($this->forms as $formName) {\n\t\t\t\t\t$form = $this->getComponent($formName);\n\t\t\t\t\t$this->prepareForm($formName, $form);\n\t\t\t\t\tif (isset($this->formOptions[$formName]) && $this->formOptions[$formName]->useDialog) {\n\t\t\t\t\t\t$form->addExternalScript(CommonIncludes::JQuery);\n\t\t\t\t\t\t$form->addExternalScript(CommonIncludes::JQueryUI);\n\t\t\t\t\t\t$form->addExternalScript(CommonIncludes::ViewCore);\n\t\t\t\t\t\t$form->addExternalCSS(CommonIncludes::JQueryCSS);\n\t\t\t\t\t\t$form->addStyle(\"display\", \"none\");\n\t\t\t\t\t\t$view->appendContent($form);\n\t\t\t\t\t}\n\t\t\t\t\t$this->validateValidationParams($form, $this->formOptions[$formName]->validationOptions);\n\t\t\t\t}\n\t\t\t\tif (count($this->forms) > 0) {\n\t\t\t\t\tforeach ($this->forms as $formName) {\n\t\t\t\t\t\tif (isset($this->formOptions[$formName])) {\n\t\t\t\t\t\t\t$view->addHeaderScript(\"VC.addFormOptions(\\\"$formName\\\", \" . json_encode($this->formOptions[$formName]) . \");\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$body = $view->getBody();\n\t\t\t\tif($body instanceof HTMLContainer){\n\t\t\t\t\t//Render the event javascript, and place it at the bottom of the page\n\t\t\t\t\t$render = \"\";\n\t\t\t\t\t$events = $body->getAggregateEvents();\n\t\t\t\t\tif(count($events) != 0){\n\t\t\t\t\t\t$body->addExternalScript(CommonIncludes::JQuery);\n\t\t\t\t\t}\n\t\t\t\t\tforeach($events as $id => $event){\n\t\t\t\t\t\tforeach($event as $eventType => $javascriptArray){\n\t\t\t\t\t\t\t$render .= \"$('#\".self::EscapeSelector($id).\"').bind('$eventType', function(eventObject){\".(JS::$devMode?\"\\n\":\"\");\n\t\t\t\t\t\t\tforeach($javascriptArray as $javascript){\n\t\t\t\t\t\t\t\t$render .= $javascript . (JS::$devMode?\"\\n\":\"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$render .= \"});\".(JS::$devMode?\"\\n\":\"\"); \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(trim($render) != \"\"){\n\t\t\t\t\t\t$body->addInlineScript('$(function(){' . (JS::$devMode?\"\\n\":\"\") . $render . (JS::$devMode?\"\\n\":\"\") . '})');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$view->display();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "efdcc733f38472984a77b5f16f98261f", "score": "0.6344219", "text": "public function handle(){\n\t\t$found = false;\n\t\tif(empty($this->_routes[$this->_req['method']])){\n\t\t\tthrow new Exception(\"The method your trying to use doesn't exist or misspelled\", 400);\n\t\t}\n\t\tforeach ($this->_routes[$this->_req['method']] as $route) {\n\t\t\tif(preg_match('@^' . $route['route'] . '$@', $this->_req['request'], $p_value)){\n\t\t\t\tarray_shift($p_value);\n\t\t\t\tif(!empty($route['keys'])){\n\t\t\t\t\tforeach($p_value as $key => $value){\n\t\t\t\t\t\t$route['parameters'][$route['keys'][$key]] = $value;\n\t\t\t\t\t}\n\t\t\t\t\tunset($route['keys']);\n\t\t\t\t}else{\n\t\t\t\t\t$route['parameters'] = array();\n\t\t\t\t}\t\n\t\t\t\tif(!empty($route['parameters']))\n\t\t\t\t\t$route['callback']($route['parameters']);\t\t\t\n\t\t\t\telse\n\t\t\t\t\t$route['callback']();\t\t\t\n\t\t\t\t$found = true;\n\t\t\t}\n\t\t}\n\t\tif(!$found)\n\t\t\tthrow new Exception(\"The method your trying to use doesn't exist or misspelled\", 400);\n\t}", "title": "" }, { "docid": "d49343b17895c76494e1240eb29342dc", "score": "0.63424146", "text": "public function handleRequest(Request $request)\n {\n $router = $this->masterFactory->getHttpFactory()->getRouter();\n $router->parseUrl($request->getUrl());\n $request->addData($router->getQueryData());\n $builder = $this->masterFactory->getHttpFactory()->getControllerBuilder($request, $router);\n\n $builder->build();\n $controller = $builder->getController();\n $action = $builder->getAction();\n\n // Call action and get the response\n /** @var Response $response */\n $response = call_user_func_array([$controller, Controller::HANDLE], [$action]);\n\n // Send headers\n if (headers_sent() === false) {\n header(sprintf('Status: %s', Response::getMessageForCode($response->getStatus())));\n http_response_code($response->getStatus());\n\n // Send headers\n foreach ($response->getHeaders() as $name => $value) {\n header(\"$name: $value\", false);\n }\n }\n\n // Print the body\n echo $response->getBody();\n }", "title": "" }, { "docid": "7bd9838525829881fc611656a17b3293", "score": "0.63366914", "text": "public function run(): void\n {\n $router = $this->container->get(RouterInterface::class);\n\n // Resolve the controller and arguments for the requested route\n $response = $router->handle($this->request);\n\n // Send the response\n $response->send();\n }", "title": "" }, { "docid": "63bca713787cd536a8efd7984a31bf46", "score": "0.6328362", "text": "public abstract function route($request) : Response;", "title": "" }, { "docid": "8872ecb57bdee788599d4c429d70dec2", "score": "0.63282764", "text": "public function handle_request(){\n\t\tglobal $emps, $smarty, $ss, $key;\n\n\t\t$emps->page_property('ited', true);\t\t\n\t\t\n\t\t$emps->loadvars();\n\t\tif($key){\n\t\t\t$this->ref_id = $emps->db->oid($key);\n\t\t\tif($this->use_context){\n\t\t\t\t$this->context_id = $emps->p->get_context($this->table_name, $this->ref_sub, $this->ref_id);\t\t\n\t\t\t}\n\t\t}\n\n\t\tif($key == 'ajax'){\n\t\t\treturn $this->handle_ajax();\n\t\t}\n\t\t\n\t\t$smarty->assign(\"form\", $this->form_name);\n\t\t\n\t\tif($this->immediate_add){\n\t\t\t$emps->loadvars();\n\t\t\t$smarty->assign(\"fastadd\", 1);\n\t\t\t$key = \"\"; $ss = \"\";\n\t\t\t$smarty->assign(\"def_addfast\", $emps->clink(\"part=add\"));\n\t\t\t$emps->loadvars();\n\t\t}\t\t\n\t\t\n\t\tif($emps->auth->credentials($this->credentials) || $this->override_credentials){\n\t\t\tif($ss && !isset($_REQUEST['action_kill'])){\n\t\t\t\t$this->handle_detail_mode();\n\t\t\t}else{\n\t\t\t\t$this->handle_list_mode();\n\t\t\t}\n\t\t}else{\n\t\t\t$emps->deny_access(\"AdminNeeded\");\n\t\t}\n\t}", "title": "" }, { "docid": "c156b241fd522deb2af235c7ddbd3cd7", "score": "0.63277954", "text": "abstract public function match(Request $request);", "title": "" }, { "docid": "7ac6d208ad70cb65486ac1817a14c571", "score": "0.6284311", "text": "function process() {\r\n\t\t\tif ( ! $this->isXmlRpcRequest() ) {\r\n\t\t\t\t$this->requestNotXmlRpc();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t$this->_server->serve();\r\n\t\t}", "title": "" }, { "docid": "f278a2f62ed10213d2ae748650857bdc", "score": "0.6266309", "text": "public function processRequests();", "title": "" }, { "docid": "f3ba321697c04b48b3af49f052d96cb5", "score": "0.6264442", "text": "public function handleRequest() {\n // invoke the module\n // workaround because php accepts no variable as class name before ::\n $module = call_user_func($this->section.\"::getInstance\");\n }", "title": "" }, { "docid": "bee0f5c7100b4708bfa43b766eef5757", "score": "0.62602913", "text": "protected function _processRequest()\n {\n }", "title": "" }, { "docid": "90d6d35dd6047c2e40f63caa06a3a147", "score": "0.625966", "text": "public function handle_web() {\n\t\t$this->req = new web_request($this);\n\t\t$this->req->handle();\n\t}", "title": "" }, { "docid": "e741c9ca9378119e999601726f71ab07", "score": "0.6249727", "text": "public function handleRequest() {\n \t\t$events=$this->contactsService->allEvents($_SESSION['id']);\n \t\t\t\n \t\t\t//load all the topics\n \t\t$topics = $this->contactsService1->getAllTopics(\"name\");\n \n \n //load all the users\n $userList = User::loadUsers();\n \n\t\t\t\trequire_once '../view/feed.tpl';\n\t}", "title": "" }, { "docid": "124848aab06bb20e5dfd14e1525458e7", "score": "0.6231558", "text": "function handle_request($query) {\n\n $method = $_SERVER['REQUEST_METHOD'];\n\n $request = new AtomPubRequest($query);\n\n switch($request->request_type()) {\n case AtomPubRequest::$request_type_service:\n if ($method == \"GET\") {\n $this->get_service($request);\n }\n else {\n $this->method_not_allowed(\"GET\");\n }\n break;\n case AtomPubRequest::$request_type_list:\n if ($method == \"GET\") {\n $this->get_list($request);\n }\n else {\n $this->method_not_allowed(\"GET\");\n }\n break;\n case AtomPubRequest::$request_type_children:\n if ($method == \"GET\") {\n $this->get_children($request);\n }\n else {\n $this->method_not_allowed(\"GET\");\n }\n break;\n case AtomPubRequest::$request_type_post:\n if ($method == \"GET\") {\n $this->get_post($request);\n }\n else {\n $this->method_not_allowed(\"GET\");\n }\n break;\n case AtomPubRequest::$request_type_notify_hubs:\n if ($method == \"POST\") {\n if(!is_user_logged_in()) {\n // This should ideally call unauthorized(), but as we don't\n // have a way to authenticate over HTTP we have to resort to this\n // non-RESTful way\n\n $this->redirect(wp_login_url($_SERVER[\"REQUEST_URI\"]));\n }\n if(!$this->current_user_can_notify_hubs()) {\n $this->forbidden();\n }\n\n $this->notify_hubs($request);\n }\n else {\n $this->method_not_allowed(\"POST\");\n }\n break;\n default:\n $this->not_found();\n }\n }", "title": "" }, { "docid": "4c3246e1540dc85ab21a094b4df13323", "score": "0.6230535", "text": "public function handle($request = null)\n {\n if ($request === null) {\n $this['request'] = $request = Request::createFromGlobals();\n }\n\n $this['request_context']->fromRequest($request);\n\n if (strpos($request->getPathInfo(), '/auth') === 0) {\n\n try {\n $request->attributes->add($this['url_matcher']->match(rtrim($request->getPathInfo(), '/')));\n $response = call_user_func($request->attributes->get('_controller'), $request, $request->attributes->get('provider'));\n } catch (ResourceNotFoundException $e) {\n $path = $request->getBaseUrl().$request->getPathInfo();\n $slash = substr(get_option('permalink_structure'), -1) === '/';\n\n if (substr($path, -1) === '/') {\n if ($slash === false) {\n $path = rtrim($path, '/');\n }\n } else {\n if ($slash) {\n $path .= '/';\n }\n }\n\n $response = new RedirectResponse($path);\n } catch (Exception $e) {\n $response = new Response('An error occurred', 500);\n }\n\n $response->send();\n die();\n }\n }", "title": "" }, { "docid": "587e79096be83c879a85c4fde7309fea", "score": "0.62264615", "text": "public function handleRequest()\n {\n // Check if user is logged in and has a right access level\n if (!\\XLite\\Core\\Auth::getInstance()->isAuthorized($this)\n && !$this->isPublicZone()\n ) {\n \\XLite\\Core\\Session::getInstance()->lastWorkingURL = $this->get('url');\n\n $this->redirect($this->buildURL('login'));\n\n } else {\n if (isset(\\XLite\\Core\\Request::getInstance()->no_https)) {\n \\XLite\\Core\\Session::getInstance()->no_https = true;\n }\n\n parent::handleRequest();\n }\n }", "title": "" }, { "docid": "26e5690c87ce329bb592631742e869f5", "score": "0.6225787", "text": "function handleGETRequest()\n {\n if (connectToDB()) {\n if (array_key_exists('displayBlogAccountRequest', $_GET)) {\n handleDisplayBlogAccountByCustomer();\n }\n if (array_key_exists('basicDataRequest', $_GET)) {\n handleCountBlogAccount();\n handleDisplayCustomerId();\n }\n if (array_key_exists('showAllPostsByAccountRequest', $_GET)) {\n handleDisplayPostsByBlogAccount();\n }\n if (array_key_exists('divisionRequest', $_GET)) {\n handleDivision();\n }\n if (array_key_exists('findPostIDRequest', $_GET)) {\n handleFindPostID();\n }\n if (array_key_exists('findMinPostID', $_GET)) {\n handleFindMinSharePost();\n }\n if (array_key_exists('deleteRequest', $_GET)) {\n handleDeletePost();\n }\n disconnectFromDB();\n }\n }", "title": "" }, { "docid": "92400b5b8ac249f965b2343cd3d1b12c", "score": "0.6205619", "text": "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler, ContainerInterface $container): ResponseInterface;", "title": "" }, { "docid": "d6fe0cbda9bcb618de2cfd461c9e897f", "score": "0.61925066", "text": "public function run(Request $request)\n {\n $dispatcher = $this->router->getDispatcher();\n $routeInfo = $dispatcher->dispatch($request->getMethod(), $request->getPathInfo());\n\n switch ($routeInfo[0]) {\n case Dispatcher::NOT_FOUND:\n $routeInfo = $this->getNotFoundRoute($dispatcher);\n break;\n\n case Dispatcher::METHOD_NOT_ALLOWED:\n $routeInfo = $this->runMethodNotAllowed($dispatcher);\n break;\n\n case Dispatcher::FOUND:\n break;\n }\n\n $response = $this->runRoute($routeInfo);\n\n $response->send();\n }", "title": "" }, { "docid": "8e8d018b6e76ad35026297c67ca60e52", "score": "0.61839765", "text": "public function run() {\n if (isset($_REQUEST['action'])) { \n $method = 'handle' . $_REQUEST['action'];\n \n if (method_exists($this, $method)) {\n $this->$method();\n }\n }\n }", "title": "" }, { "docid": "ff7ee3e26cbb1112fcb33d5829e8188e", "score": "0.6173027", "text": "public function handleRequest()\n {\n $queryStringVars = HttpRequest::getInstance()->getQueryStringVars();\n $fileName = '';\n \n if ($queryStringVars->keyExists(\"_resource_hash\") || $queryStringVars->keyExists(\"_cache_hash\"))\n {\n $ext = \"js\";\n \n if ($queryStringVars->keyExists(\"_resource_ext\"))\n $ext = $queryStringVars->getValue(\"_resource_ext\");\n \n header(\"Content-Type: text/\" . $ext);\n ResourcesCompressor::getInstance()->compressResource();\n \n if ($queryStringVars->keyExists(\"_resource_hash\"))\n {\n $hash = $queryStringVars->getValue(\"_resource_hash\");\n $cache = CacheManagerBase::fromSettings();\n \n if ($cache->contains($hash))\n echo $cache->get($hash);\n }\n else\n {\n chdir(dirname($_SERVER['SCRIPT_FILENAME']));\n $hash = $queryStringVars->getValue(\"_cache_hash\");\n \n $path = HttpContext::getDocumentRoot() . \"cache/\" . $hash;\n \n if (file_exists($path))\n echo file_get_contents($path);\n }\n \n exit(0);\n }\n }", "title": "" }, { "docid": "dfca99c82e7593451058b53f696d29df", "score": "0.6155045", "text": "public static function handle()\n\t{\n\t\t$requestUrl = Request::url();\n\t\t$matched = false;\n\n\t\tforeach (static::getRouteCollection(Request::method()) as $route) {\n\t\t\t$utlToMatch = preg_replace('/\\/{(.*?)}/', '/(.*?)', $route['url']);\n\t\t\t$utlToMatch = \"#^{$utlToMatch}$#\";\n\n\t\t\tif (preg_match($utlToMatch, $requestUrl, $parameters)) {\n\t\t\t\t$matched = true;\n\t\t\t\tarray_shift($parameters);\n\t\t\t\t$parameters = array_values($parameters);\n\n\t\t\t\tforeach ($parameters as $value) {\n\n\t\t\t\t\tif (strpos($value, '/')) {\n\t\t\t\t\t\t$matched = false;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tif ($matched) {\n\t\t\t\t\treturn static::invoke($route, $parameters);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn render('errors.404');\n\n\t}", "title": "" }, { "docid": "0a1fc6a26cb6672a5b079f2b56aa2f21", "score": "0.61511517", "text": "abstract function doExecute(Request $request);", "title": "" }, { "docid": "cf6367f5c0e700510c3f37d1eff12971", "score": "0.6141401", "text": "public function run()\n\t{\n\t\t$this->addRoutes();\n\t\tif (isset($_ENV['CACHE_FILE'])) {\n\t\t\t$dispatcher = FastRoute\\cachedDispatcher($this->routes, [\n\t\t\t\t'cacheFile' => $_ENV['CACHE_FILE'], /* required */\n\t\t\t\t'cacheDisabled' => $_ENV['CACHE_DISABLED']\n\t\t\t]);\n\t\t} else {\n\t\t\t$dispatcher = FastRoute\\simpleDispatcher($this->routes);\n\t\t}\n\n\t\t// Fetch method and URI from somewhere\n\t\t$httpMethod = $_SERVER['REQUEST_METHOD'];\n\t\t$uri = $_SERVER['REQUEST_URI'];\n\n\t\t// Strip query string (?foo=bar) and decode URI\n\t\tif (false !== $pos = strpos($uri, '?')) {\n\t\t\t$uri = substr($uri, 0, $pos);\n\t\t}\n\n\t\t$uri = rawurldecode($uri);\n\t\t$routeInfo = $dispatcher->dispatch($httpMethod, $uri);\n\t\tswitch ($routeInfo[0]) {\n\t\t\tcase FastRoute\\Dispatcher::NOT_FOUND:\n\t\t\t\t// ... 404 Not Found\n\t\t\t\thttp_response_code(404);\n\t\t\t\t$this->handle(static::$errorHandler, ['code' => 404, 'full' => 'Not Found'], $httpMethod);\n\t\t\t\tbreak;\n\t\t\tcase FastRoute\\Dispatcher::METHOD_NOT_ALLOWED:\n\t\t\t\t$allowedMethods = $routeInfo[1];\n\t\t\t\t// ... 405 Method Not Allowed\n\t\t\t\thttp_response_code(405);\n\t\t\t\t$this->handle(static::$errorHandler, ['code' => 405, 'full' => 'Method Not Allowed'], $httpMethod);\n\t\t\t\tbreak;\n\t\t\tcase FastRoute\\Dispatcher::FOUND:\n\t\t\t\t$handler = $routeInfo[1];\n\t\t\t\t$vars = $routeInfo[2];\n\n\t\t\t\t// Handle JSON data\n\t\t\t\tif (count($_POST) === 1) {\n\t\t\t\t\t$j = array_key_first($_POST);\n\t\t\t\t\tif (empty($_POST[$j]) and (strpos($j, '{') === 0 or strpos($j, '[') === 0)) {\n\t\t\t\t\t\t$_POST = json_decode($j, true);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Proccess the handler\n\t\t\t\t$this->handle($handler, $vars, $httpMethod);\n\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "5e93cfb2e1dded0d284d52de13b03f31", "score": "0.6135812", "text": "public function handleRequests() {\n\t\t$n = isset($_GET[\"n\"]) ? $_GET[\"n\"] : \"\";\n\t\t\n\t\t\n\t\t$xpl = explode(\"/\", trim($n,\"/\")); // make array and drop prepending or trailing slashes\n\t\t\n\t\t$section \t= count($xpl) > 0 && $xpl[0] != \"\" ? array_shift($xpl) : \"home\"; // $n was empty\n\t\t$action \t= count($xpl) > 0 ? array_Shift($xpl) : \"index\";\t\t\t\t // $n only contained a section\n\t\t\n\t\t//hack\n\t\tif(count($xpl) > 0) {\n\t\t\t$_REQUEST[$section.\"Id\"] = $xpl[0];\n\t\t} \n\t\t\n\t\t\n\t\t$class \t= \"SC9_Controller_\".ucfirst($section);\n\t\t$method\t= $action.\"Action\"; \n\t\t\n\t\tif(class_exists($class)) {\n\t\t\t$controller = new $class($this->output, $xpl);\n\t\t\tif(method_exists($controller, $method)) {\n\t\t\t\t$controller->{$method}();\t\n\t\t\t}else{\n\t\t\t\t$controller->indexAction();\n\t\t\t}\n\t\t}else{\n\t\t\t//handle error (temp: neat error page)\n\t\t\techo \"Error: section not found\";\n\t\t\texit;\n\t\t}\n\t}", "title": "" }, { "docid": "9721220756f9612a3bc26f538a7b2603", "score": "0.61306447", "text": "public function processRequest(MOXMAN_Http_Context $httpContext);", "title": "" }, { "docid": "15f49e41392fe4249ea4e09fafb1eaf0", "score": "0.6111506", "text": "public function handle()\n {\n $request = new Request();\n $subCon = new SubjectController();\n $subCon->staticSubjectLeagues($request);\n\n $type = $this->argument('type');\n switch ($type) {\n case \"pc\":\n $this->onPcHandler($request);\n break;\n case \"mobile\":\n $this->onMobileHandler($request);\n break;\n case \"mip\":\n $this->onMipHandler($request);\n break;\n case \"all\":\n $this->onPcHandler($request);\n $this->onMobileHandler($request);\n $this->onMipHandler($request);\n break;\n }\n $this->onCommonHandler($request);\n }", "title": "" }, { "docid": "d1b2a9c68eb3adf21eca41ab3ee251f0", "score": "0.60893977", "text": "abstract public function request();", "title": "" }, { "docid": "3fc651cf004a320278f4e982a484cbf3", "score": "0.60882425", "text": "public function handle(Request $request)\n {\n $method = $request->method();\n $route = $request->route();\n\n // printf('<pre>Looking for %s via %s with parameters: %s</pre>', $route, $request->method(), \\print_r($request->getParameters(), true));\n \n if ($method === 'GET') {\n if (isset($this->getRoutes[$route])) {\n $func = $this->getRoutes[$route];\n if (\\is_callable($func)) {\n \\call_user_func($func, $request->getParameters());\n return true;\n } else {\n $parts = explode('@', $func);\n $objName = __NAMESPACE__ . '\\\\' . $parts[0];\n $obj = new $objName();\n $obj->{$parts[1]}($request->getParameters());\n return true;\n }\n }\n } elseif ($method === 'POST') {\n if (isset($this->postRoutes[$route])) {\n $func = $this->postRoutes[$route];\n if (\\is_callable($func)) {\n \\call_user_func($func, $request->postParameters());\n return true;\n } else {\n $parts = explode('@', $func);\n $objName = __NAMESPACE__ . '\\\\' . $parts[0];\n $obj = new $objName();\n $obj->{$parts[1]}($request->postParameters());\n return true;\n }\n }\n }\n\n return false;\n }", "title": "" } ]
570bf5f21419965469df6d5a873f8c34
public $newLinks = array();
[ { "docid": "805d7cd37eded98dea2b3228fa9f0cdb", "score": "0.0", "text": "public function __construct($index, $link, $name)\r\n {\r\n $this->index = $index;\r\n $this->link = $link;\r\n $this->name = $name;\r\n }", "title": "" } ]
[ { "docid": "084cc660b96bfe2bbab60f0997e3216c", "score": "0.73651266", "text": "public function getlinks()\n {\n $links = array();\n }", "title": "" }, { "docid": "7065c7b22d75bcdd25b0f1d13052e4e7", "score": "0.73188275", "text": "public function links(){\n }", "title": "" }, { "docid": "56f2938778ae90329f4012316557ef54", "score": "0.7096992", "text": "function links() {\n return array(\n\n );\n }", "title": "" }, { "docid": "cabf6693f7feb504d1d9bce2cf486fe6", "score": "0.6665657", "text": "public function links();", "title": "" }, { "docid": "cabf6693f7feb504d1d9bce2cf486fe6", "score": "0.6665657", "text": "public function links();", "title": "" }, { "docid": "cabf6693f7feb504d1d9bce2cf486fe6", "score": "0.6665657", "text": "public function links();", "title": "" }, { "docid": "b3bd607d6e3ba021b9eddfa367eb6aba", "score": "0.6658763", "text": "public function saveLinks()\n {\n if (isset($this->links) && !empty($this->links)) {\n update_field('field_5942707eca439', $this->links, $this->ID);\n }\n }", "title": "" }, { "docid": "f444a239b88d77ee365cec7674963f2b", "score": "0.66282475", "text": "public function &link_data(): array\n {\n return $this->link_data;\n }", "title": "" }, { "docid": "a611b8a3899fc228028fe52b1ba1371a", "score": "0.6534457", "text": "public function setLinkRetornos()\n {\n /*n*/\n }", "title": "" }, { "docid": "d10eb21d00b9d4f6e1f566d50d9c7202", "score": "0.65236783", "text": "abstract public function addLinks();", "title": "" }, { "docid": "7996e3e74e8af0eaa597369c07549b30", "score": "0.64946127", "text": "public function links()\n\t{\n\t\treturn $this->links;\n\t}", "title": "" }, { "docid": "be5e6f527fe0245608b2d5204b86ddf8", "score": "0.64308083", "text": "function reverseLinks() {\n return array(\n\n );\n }", "title": "" }, { "docid": "c6a2f6970bf6d9d1525d6055317a1ff1", "score": "0.63033533", "text": "public function &links(): array\n {\n if (!isset(self::$client_links[$this->url])) {\n self::$client_links[$this->url] = [];\n }\n return self::$client_links[$this->url];\n }", "title": "" }, { "docid": "9c91756066df688abeb491bd35cca81e", "score": "0.62946063", "text": "public function getLinks();", "title": "" }, { "docid": "9c91756066df688abeb491bd35cca81e", "score": "0.62946063", "text": "public function getLinks();", "title": "" }, { "docid": "a078678d5c0768f6fb61837adc992d74", "score": "0.625837", "text": "public function getLinks()\n {\n return $this->_links;\n }", "title": "" }, { "docid": "b8a70e1ff9448e1b6d427404f951313c", "score": "0.6235508", "text": "public function link()\n {\n }", "title": "" }, { "docid": "22085d6aa5c730802def8ea848c1f6ab", "score": "0.61923546", "text": "function getUrls()\r\n\t{\r\n\t\treturn $this->a_urls;\r\n\t}", "title": "" }, { "docid": "84c91cb177b3901fce73ec839ef28829", "score": "0.61345595", "text": "public function getLink()\n {\n }", "title": "" }, { "docid": "bf0cdd4d0e67dd126f9c6c23977b40c6", "score": "0.61290455", "text": "function getLink() { return $this->_link; }", "title": "" }, { "docid": "bf0cdd4d0e67dd126f9c6c23977b40c6", "score": "0.61290455", "text": "function getLink() { return $this->_link; }", "title": "" }, { "docid": "0aaffb6bc8c0b6b660fc283340d156af", "score": "0.6079695", "text": "public function links()\n {\n return $this->getLinks();\n }", "title": "" }, { "docid": "9f0470e6b861eeddf722ab98efadb090", "score": "0.60768867", "text": "function __PushLinkToArray( $replacement )\n {\n //global $gLinkExtractor_linkRecipient;\n array_push($this->gLinkExtractor_linkRecipient, htmlspecialchars( $replacement[2] ) );\n// print_r($this->gLinkExtractor_linkRecipient);\n }", "title": "" }, { "docid": "1abe82e1330953e23d95cfd866c91766", "score": "0.60672563", "text": "function getAdminLinks()\n {\n }", "title": "" }, { "docid": "53980897c611ffad1db7356d5d32f8f8", "score": "0.6066835", "text": "function AddLink()\n\t{\n\t\t$n=count($this->links)+1;\n\t\t$this->links[$n]=array(0,0);\n\t\treturn $n;\n\t}", "title": "" }, { "docid": "19670e3d453e4644e027350fdfbb8e0b", "score": "0.60578024", "text": "public function getRapidLinksAttribute()\n {\n $links = [\n [\n 'name' => \"Projet du lot\",\n 'href' => \\Backend::url('waka/crsm/projects/update/' . $this->project->id),\n ],\n [\n 'name' => \"Tous les projets\",\n 'href' => \\Backend::url('waka/crsm/projects'),\n ],\n ];\n if ($this->contact) {\n array_push($links, [\n 'name' => \"Contact de la réservation\",\n 'href' => \\Backend::url('waka/crsm/contacts/update/' . $this->contact->id),\n ]);\n }\n return $links;\n }", "title": "" }, { "docid": "a4ea671447414c43de9c08bc9bc06143", "score": "0.6040665", "text": "private function getLink(){\n\t\treturn $this->_link;\n\t}", "title": "" }, { "docid": "33096c9f9ef29bcacf0f37d3c5c93b58", "score": "0.6016582", "text": "public function getUrls(): array;", "title": "" }, { "docid": "a5f0e2dd0d62b8445cd1abf1cafa10fc", "score": "0.59979486", "text": "public function saveBookLink(array $link, $new);", "title": "" }, { "docid": "bc6d8246d2bd043986ae6256875cef7d", "score": "0.5990016", "text": "public function getLinks()\n {\n return $this->linkList;\n }", "title": "" }, { "docid": "5a6d19d43d314c5e2f8e0ec71ab2f87a", "score": "0.5938141", "text": "function getLink()\r\n\t\t{\r\n\t\treturn $this->link;\r\n\t\t}", "title": "" }, { "docid": "bb8bcbae8d75140533824fa86afd5a91", "score": "0.593566", "text": "public function getLink() {}", "title": "" }, { "docid": "4b0522408e0aa8fa3335c4261de5061c", "score": "0.59276026", "text": "public function numLinks() {\n return 1;\n }", "title": "" }, { "docid": "f56461b89b42ace12fffc6de56de1ce5", "score": "0.58723164", "text": "static function saveLinks() {\r\n $pattern = \"/<a.*href=['\\\"](.*?)['\\\"].*>.*<\\/a>/i\";\r\n preg_match_all( $pattern, self::$html, self::$urls );\r\n self::organizeLinks();\r\n }", "title": "" }, { "docid": "ef121bc9b9119f20f79b87a8a7e8218c", "score": "0.5865684", "text": "public function getLink() { return $this->link; }", "title": "" }, { "docid": "b8232825d4c38abcec7f1f8fcfdb9ba7", "score": "0.58557355", "text": "function setLinkItems($link_items = array()) {\n $this->link_items = $link_items;\n }", "title": "" }, { "docid": "d3fe10b48b3d34d842fb3d918d89084a", "score": "0.58506477", "text": "public function getLinksList()\n {\n return $this->links;\n }", "title": "" }, { "docid": "12db8e0b22522d2ec2a1abe4765bda18", "score": "0.5850442", "text": "public function getLink(){\n\t\treturn $this->link;\n\t}", "title": "" }, { "docid": "8e763d4a2691c039fe06a8530e01cfe2", "score": "0.58441377", "text": "public function getReference() {\n \t\treturn array();\n \t}", "title": "" }, { "docid": "956c040d9265681d41c9dad4fec241f4", "score": "0.5837045", "text": "public function getBasicLinks()\n\t{\n\t\treturn [];\n\t}", "title": "" }, { "docid": "f70a3b7379378bee82c250d5aaa016e1", "score": "0.5824096", "text": "public function sourcesLink(): Link {\n \n return $this->sourcesLink;\n }", "title": "" }, { "docid": "623fa3a5a4b10a2be82409e18e2a90c5", "score": "0.5808093", "text": "public function generateLinks() {\n parent::generateLinks();\n $this->shareLink = md5($this->linkId.$this->linkName);\n }", "title": "" }, { "docid": "9fc59b25bd9344a59937171b5e7afab7", "score": "0.5794344", "text": "public function getBreacrumbLinks()\n {\n return $this->links;\n }", "title": "" }, { "docid": "0e0b1af61d492a61f191451dd9be7d87", "score": "0.5789928", "text": "public function anchor() : array;", "title": "" }, { "docid": "1ef62444c752c1bf45faea383bccddf2", "score": "0.5775293", "text": "public function parseLinks() {}", "title": "" }, { "docid": "dffb46b06fc842fe81ea85ef441abc25", "score": "0.57564366", "text": "public function newlinks()\n {\n // get parameters we need\n $newlinkshowdays = (int)$this->getPassedValue('newlinkshowdays', 7, 'GET');\n\n // Security check\n $this->throwForbiddenUnless(SecurityUtil::checkPermission('Weblinks::', '::', ACCESS_READ), LogUtil::getErrorMsgPermission());\n\n $this->view->assign('newlinkshowdays', $newlinkshowdays)\n ->assign('helper', array('main' => 0));\n\n return $this->view->fetch('user/newlinks.tpl');\n }", "title": "" }, { "docid": "eb2369960fc81d6908d0dfafa162abca", "score": "0.57317454", "text": "function &getLink()\n {\n return $this->_link;\n }", "title": "" }, { "docid": "01b2bdfae5581ae372a0e04dcb9dd918", "score": "0.57247317", "text": "function add_admin_link($array)\r\n{\r\n $area = $array['area'];\r\n $title = $array['title'];\r\n $link = $array['link'];\r\n}", "title": "" }, { "docid": "5078dcecb7b94412d064008c78121523", "score": "0.5720131", "text": "public function getUrls()\n {\n }", "title": "" }, { "docid": "590b9eca933aedda48a064486d7026a9", "score": "0.5715543", "text": "function link($links) {\r\n $options_link = '<a href=\"' . $this->_link . '\">' . __('Donate', $this->_folder) . '</a>';\r\n array_unshift($links, $options_link);\r\n return $links;\r\n }", "title": "" }, { "docid": "07a1a71139bd8687c4a9daeb8eeffd37", "score": "0.56687635", "text": "public function __construct(array $link)\n {\n $this->link = $link;\n }", "title": "" }, { "docid": "98f18d7d64c88b4fc7d01393bec58e1d", "score": "0.5662468", "text": "public function get_links()\n {\n // Get all link elements from the DOM object\n $link_elements = $this->dom->getElementsByTagName('a');\n\n // Initialize a list of urls collected\n $links = array();\n\n /** @var DOMElement $link_element */\n foreach ($link_elements as $link_element) {\n $href = $link_element->getAttribute('href');\n $url = parse_link($this->page_data['url'], $href);\n echo \"SAVE: \" . $url . \"\\n\";\n if (!empty($url)) {\n // Initialize link data\n $link_data = array(\n 'url' => $url,\n 'url_desc' => trim(strip_tags($link_element->textContent)),\n 'host' => parse_url($url)['host'] ? parse_url($url)['host'] : \"\"\n );\n $link_data['relevance'] = $this->compute_relevance($link_data);\n\n // Add link to the list\n if (!in_array($link_data, $links)) {\n $links[] = $link_data;\n }\n }\n }\n\n $this->links = $links;\n\n return $this->links;\n }", "title": "" }, { "docid": "4cbe7513fb18c2d190ba7dde3aabda64", "score": "0.5658271", "text": "public function __construct($links)\n {\n $this->links = $links;\n }", "title": "" }, { "docid": "c9ca4056439b4d6b9f216787e7e0e3d4", "score": "0.5658034", "text": "function getUrls() {\n\t\treturn $this->_urls;\n\t}", "title": "" }, { "docid": "56b3e3e3fa96b9781c30d477bca7c39c", "score": "0.5647747", "text": "function getNewLinks() {\n\t\tglobal $wgLinkPageDisplay;\n\n\t\tif ( !$wgLinkPageDisplay['new_links'] ) {\n\t\t\treturn '';\n\t\t}\n\n\t\t$output = '';\n\n\t\t$linkRedirect = SpecialPage::getTitleFor( 'LinkRedirect' );\n\t\t$l = new LinkList();\n\t\t$links = $l->getLinkList( LinkStatus::APPROVED, 0, 7, 0 );\n\n\t\tforeach ( $links as $link ) {\n\t\t\t$output .= '<div class=\"link-recent\">\n\t\t\t<a href=\"' . htmlspecialchars( $linkRedirect->getFullURL( \"url={$link['url']}\" ), ENT_QUOTES ) . '\" target=\"new\">' .\n\t\t\t\t$link['title'] . '</a>\n\t\t</div>';\n\t\t}\n\n\t\t$output = '<div class=\"link-container\">\n\t\t\t<h2>' . $this->getContext()->msg( 'linkfilter-new-links-title' )->escaped() . '</h2>\n\t\t\t<div>' . $output . '</div>\n\t\t</div>';\n\n\t\treturn $output;\n\t}", "title": "" }, { "docid": "c2bede61c007b30f59eca768709e1231", "score": "0.5640914", "text": "public function primaryLink(){ return $this->primaryLink; }", "title": "" }, { "docid": "3048ca086bdb2e7970bca9660bfe377e", "score": "0.5631467", "text": "public function __construct($rawLinks){\n $this->allLinks = [];\n\n foreach ($rawLinks as $rawLink){\n $this->allLinks[] = new Link($rawLink);\n }\n }", "title": "" }, { "docid": "ea910f180200433f6505763ffc7949b0", "score": "0.5608626", "text": "protected function updateBrokenLinks() {}", "title": "" }, { "docid": "669e3938f7b3e8ba75a99a30ed340272", "score": "0.56048805", "text": "function menu_links_array(){\r\n\t\t$menu_links = array(\r\n\t\t\t'registration_fields' \t\t\t=> 'admin.php?page=user-registration-aide', 'edit_new_fields' \t\t\t\t=> 'admin.php?page=edit-new-fields', 'registration_form_options' \t => 'admin.php?page=registration-form-options', 'registration_form_css_options' => 'admin.php?page=registration-form-css-options',\r\n\t\t\t'custom_options' \t\t\t\t=> 'admin.php?page=custom-options'\r\n\t\t);\r\n\t\t\r\n\t\treturn $menu_links;\r\n\t}", "title": "" }, { "docid": "84a0bb1b8426e20727e6c9e7e907887c", "score": "0.5597473", "text": "public function getLinks()\n {\n return [\n Link::REL_SELF => Url::to(['bank/view', 'id' => $this->id]),\n\n ];\n\n }", "title": "" }, { "docid": "408cf937799c183e8c403e353764c2c0", "score": "0.5595826", "text": "public function links()\n {\n return $this->hasMany('App\\Entities\\Link');\n\n }", "title": "" }, { "docid": "16f9a651901d6e398293e31ae3eecd24", "score": "0.559087", "text": "public function getLink();", "title": "" }, { "docid": "ddfa505e85b382f2debcb52af07ff579", "score": "0.5578734", "text": "function __construct($linkID){ $this->linkID = $linkID; }", "title": "" }, { "docid": "2ff19d7b2132c195c37a6560409f61ef", "score": "0.5577973", "text": "public function mainLink(): Link {\n \n return $this->mainLink;\n }", "title": "" }, { "docid": "82ad3d937b48e85a20019605481d308e", "score": "0.5575417", "text": "function pluginSettingsLink(array $links): array\n{\n $link = sprintf('<a href=\"admin.php?page=famous-quotes\">%s</a>', __('Settings'));\n array_push($links, $link);\n return $links;\n}", "title": "" }, { "docid": "c56cdca5c33203f6dff216dec2f3f9d7", "score": "0.5568551", "text": "public function trackLinksEnabled(): bool;", "title": "" }, { "docid": "aaaf79a8f81fb2e5d3e058893d9dbb08", "score": "0.55659395", "text": "public function get_links($linkarray) \n {\n global $COURSE;\n\n if (!empty($linkarray[\"file\"])) {\n $file = $linkarray[\"file\"];\n $filearea = $file->get_filearea();\n if ($filearea == \"feedback_files\" || $filearea == \"introattachment\") {\n return;\n }\n }\n $plagiarismsettings = plagiarism_vericite_get_settings();\n plagiarism_vericite_log(\"VeriCite: get_links\");\n plagiarism_vericite_log(print_r($linkarray, true));\n\n $vericite = array();\n $vericite['courseid'] = $COURSE->id;\n $vericite['courseTitle'] = $COURSE->fullname;\n $vericite['cmid'] = $linkarray['cmid'];\n $vericite['userid'] = $linkarray['userid'];\n if (!empty($linkarray['assignment']) && !is_number($linkarray['assignment'])) {\n $vericite['assignmentTitle'] = $linkarray['assignment']->name;\n }\n if (!empty($linkarray['content']) && trim($linkarray['content']) != false) {\n $file = array();\n $linkarray['content'] = '<html>' . $linkarray['content'] . '</html>';\n $file['filename'] = \"InlineSubmission.html\";\n $file['type'] = \"inline\";\n $inlinepostfix = \"\";\n if (isset($plagiarismsettings['vericite_disable_dynamic_inline']) && $plagiarismsettings['vericite_disable_dynamic_inline']) {\n $inlinepostfix = \"inline\";\n } else {\n $inlinepostfix = sha1($linkarray['content']);\n }\n\n $file['identifier'] = $this->plagiarism_vericite_identifier_prefix($plagiarismsettings['vericite_accountid'], $linkarray['cmid'], $linkarray['userid']) . $inlinepostfix;\n $file['filepath'] = \"\";\n $file['userid'] = $linkarray['userid'];\n $file['size'] = 100;\n $file['content'] = $linkarray['content'];\n $vericite['file'] = $file;\n } else if (!empty($linkarray['file'])) {\n $file = array();\n $file['filename'] = (!empty($linkarray['file']->filename)) ? $linkarray['file']->filename : $linkarray['file']->get_filename();\n $file['type'] = \"file\";\n $file['identifier'] = $this->plagiarism_vericite_identifier_prefix($plagiarismsettings['vericite_accountid'], $linkarray['cmid'], $linkarray['userid']) . $linkarray['file']->get_pathnamehash();\n $file['filepath'] = (!empty($linkarray['file']->filepath)) ? $linkarray['file']->filepath : $linkarray['file']->get_filepath();\n $file['userid'] = $linkarray['file']->get_userid();\n $file['size'] = $linkarray['file']->get_filesize();\n $vericite['file'] = $file;\n }\n if (empty($vericite['userid']) || !isset($file) || $file['userid'] !== $vericite['userid'] || $file['size'] > 52428800) {\n plagiarism_vericite_log(\"VeriCite: file isn't set or user id is wrong or file size is too large\");\n return \"\";\n }\n plagiarism_vericite_log(\"VeriCite: vericite: \" . print_r($vericite, true));\n $output = '';\n // Add link/information about this file to $output.\n $results = $this->get_file_results($vericite['cmid'], $vericite['userid'], !empty($linkarray['file']) ? $linkarray['file'] : null, $vericite);\n if (empty($results)) {\n // No results were found.\n return '<br />';\n }\n\n if (array_key_exists('error', $results)) {\n return $results['error'];\n }\n\n $rank = $this->plagiarism_vericite_get_css_rank($results['score']);\n\n $similaritystring = '&nbsp;<span class=\"' . format_string($rank) . '\">' . format_string($results['score']) . '%</span>';\n\n if (!($results['isPreliminary'] == 1 && $results['viewPreliminaryReport'] == 0)) {\n //Show Report and/or Score if allowed.\n if (!empty($results['reporturl'])) {\n // User gets to see link to similarity report & similarity score\n if (($results['viewFullReport'] && $results['viewSimilarityScore']) || $results['isInstructor']) {\n $output = '<span class=\"vericite-report\"><a href=\"' . format_string($results['reporturl']) . '\" target=\"_blank\">';\n $output .= get_string('similarity', 'plagiarism_vericite').':</a>' . $similaritystring . '</span>';\n } else if ($results['viewFullReport'] && !$results['viewSimilarityScore']) {\n $output = '<span class=\"vericite-report\"><a href=\"' . format_string($results['reporturl']) . '\" target=\"_blank\">';\n $output .= get_string('similarity', 'plagiarism_vericite').'</a></span>';\n } else if (!$results['viewFullReport'] && $results['viewSimilarityScore']) {\n $output = '<span class=\"vericite-report\">' . get_string('similarity', 'plagiarism_vericite').':' . $similaritystring . '</span>';\n } else {\n //Not able to view report or score...\n }\n } else if ($results['viewSimilarityScore'] || $results['isInstructor']) {\n $output = '<span class=\"vericite-report\">' . get_string('similarity', 'plagiarism_vericite') . $similaritystring . '</span>';\n }\n }\n\n return \"<br/>\" . $output . \"<br/>\";\n }", "title": "" }, { "docid": "812e58e31e7288721b204ea67af346e7", "score": "0.555584", "text": "public function setLinks(array $links): self\n {\n $this->links = $links;\n return $this;\n }", "title": "" }, { "docid": "c199d57cc47a4a94d3d7f0c429fe2678", "score": "0.5542678", "text": "function gmap_adminapi_getlinks()\r\n{\r\n $links = array();\r\n if (SecurityUtil::checkPermission('gmap::', '::', ACCESS_ADMIN)) {\r\n $links[] = array('url' => pnModURL('gmap', 'admin', 'main'), 'text' => _GM_ADMIN_TITLE_MARKERS);\r\n $links[] = array('url' => pnModURL('gmap', 'admin', 'config'), 'text' => _GM_ADMIN_TITLE_MAPSETTINGS);\r\n $links[] = array('url' => pnModURL('gmap', 'admin', 'editmaps'),'text' => _GM_ADMIN_TITLE_EDITMAPS);\r\n $links[] = array('url' => pnModURL('gmap', 'admin', 'editpins'),'text' => _GM_ADMIN_TITLE_EDITPINS);\r\n $links[] = array('url' => pnModURL('gmap', 'admin', 'readpins'),'text' => _GM_ADMIN_TITLE_READPINSFROMFILESYSTEM);\r\n }\r\n return $links;\r\n}", "title": "" }, { "docid": "4f0f0662a9fdb4e0cab3532e12d431b7", "score": "0.5542022", "text": "function links () {\n global $db;\n global $language;\n $this->vars = array_merge($_GET, $_POST);\n $this->tmpl = $GLOBALS[\"site_settings\"][\"template\"];\n $this->language = $language;\n if (!is_object($db)) { $db = new DB; $this->dbc = $db->connect(); }\n else { $this->dbc = $db->con; }\n\n $this->db = &$GLOBALS['database'];\n\n $this->userid = $GLOBALS[\"user_data\"][0];\n $this->usergroups = $GLOBALS[\"user_data\"][5];\n\n if ($this->content_module == true) {\n $this->getParameters();\n }\n\n $this->isic_common = IsicCommon::getInstance();\n\n $this->allowed_schools = $this->isic_common->allowed_schools;\n }", "title": "" }, { "docid": "9687d180c491d695e15a59ea79b71847", "score": "0.55349433", "text": "public function linkWrapDataProvider() : array {}", "title": "" }, { "docid": "81ac6523b39d1b1adb9e3cf4b0b5660c", "score": "0.5530699", "text": "protected function setAsLink() {\n $this->unlinkTitle();\n $this->variables['tag'] = 'a';\n $this->variables['attributes']['href'] = $this->variables['url'];\n $this->variables['attributes']['rel'] = 'bookmark';\n }", "title": "" }, { "docid": "c59ef26ea38b2ab0c0f0ccc890eaec60", "score": "0.5518111", "text": "public function getRedirects() : array {}", "title": "" }, { "docid": "32d73d662060a00d8ddc7e54b34d19ba", "score": "0.5516659", "text": "public function __construct(){\n return array();\n }", "title": "" }, { "docid": "6070fc4186bea4e456e61225b5a0a3df", "score": "0.55122125", "text": "function getURLs() {\n return $this->urls;\n }", "title": "" }, { "docid": "9aa00ebf410c09c1a8b987b64e3c447b", "score": "0.551193", "text": "public function syncLinkTracking()\n {\n if (!$this->Children()) {\n $this->HasBrokenLink = true;\n }\n }", "title": "" }, { "docid": "0e84d080bd02232136864c1adaca83c1", "score": "0.55117434", "text": "public function get_links()\n\t{\n\t\treturn $this->db->get($this->_table['links'])->result();\n\t}", "title": "" }, { "docid": "e772a8f1306a87c409ede8935c3860b2", "score": "0.55016273", "text": "function sbi_add_settings_link( $links, $file ) {\r\n $sbi_settings_link = '<a href=\"' . admin_url( 'admin.php?page=sb-instagram-feed' ) . '\">' . __( 'Settings', 'sb-instagram-feed' ) . '</a>';\r\n array_unshift( $links, $sbi_settings_link );\r\n\r\n return $links;\r\n}", "title": "" }, { "docid": "aaeb5edbf973f663ae5e1fadd582fbf6", "score": "0.5491614", "text": "function wpplugin_add_settings_link( $links ) {\n $settings_link = '<a href=\"admin.php?page=wpplugin\">' . __( 'Settings' ) . '</a>';\n array_push( $links, $settings_link );\n \treturn $links;\n}", "title": "" }, { "docid": "0757a342563946511a1552cbf08d9633", "score": "0.54844743", "text": "public function links()\n {\n return $this->hasMany('App\\Link')->where('user_id', $this->id);\n }", "title": "" }, { "docid": "2f2ba2957ccb370f5e20b791d147628f", "score": "0.5463689", "text": "function getNavigationLinks() {\r\n\t\t\r\n\t\treturn $this->nav_links;\r\n\t}", "title": "" }, { "docid": "a9dfa7db23c6ca2dcc895742be5ce48a", "score": "0.546252", "text": "public function getlinks()\n {\n $links = array();\n \n if (SecurityUtil::checkPermission('Zphpbb::', '::', ACCESS_ADMIN)) {\n $links[] = array(\n 'url' => ModUtil::url('Zphpbb', 'admin', 'main'),\n 'text' => $this->__('Administration'),\n 'class' => 'z-icon-es-gears');\n\n $links[] = array(\n 'url' => ModUtil::url('Zphpbb', 'admin', 'modifyconfig'),\n 'text' => $this->__('Settings'),\n 'class' => 'z-icon-es-config');\n\n $links[] = array(\n 'url' => ModUtil::url('Zphpbb', 'admin', 'import_form'),\n 'text' => $this->__('Import'),\n 'class' => 'z-icon-es-import');\n\n $links[] = array(\n 'url' => ModUtil::url('Zphpbb', 'admin', 'export_form'),\n 'text' => $this->__('Export'),\n 'class' => 'z-icon-es-export');\n }\n \n return $links;\n }", "title": "" }, { "docid": "0ed7bb316d96742d18a772166c68dd38", "score": "0.5451348", "text": "public function getLinkData() {\n return array(\n 'publication' => $this->publication->getId()\n );\n }", "title": "" }, { "docid": "5c1b4330d77ce2fce5c48d3f6834ca38", "score": "0.5449182", "text": "function stack_links_array(){\n\treturn get_post_meta(get_the_ID(), \"stack_link_list\");\n}", "title": "" }, { "docid": "d889644dd50c33c527295763df4f8e3a", "score": "0.5440411", "text": "function linkMgrList()\n\t{\n\t\t$this->layout = \"\";\n\t\t$this->autoRendar = false;\n\t\t\n\t\t$linkMgrArray = array(\n\t\t\t\t\t\t\t\t'1'=>'1',\n\t\t\t\t\t\t\t\t'2'=>'2',\n\t\t\t\t\t\t\t\t'3'=>'3',\n\t\t\t\t\t\t\t\t'4'=>'4',\n\t\t\t\t\t\t\t\t'5'=>'5',\n\t\t\t\t\t\t\t\t'6'=>'6',\n\t\t\t\t\t\t\t\t'7'=>'7',\n\t\t\t\t\t\t\t\t'8'=>'8',\n\t\t\t\t\t\t\t\t'9'=>'9',\n\t\t\t\t\t\t\t\t'10'=>'10'\t\n\t\t\t\t\t\t\t); \n\t\t\n\t\treturn $linkMgrArray;\n\t}", "title": "" }, { "docid": "2d756746fde4a1469cdc9b2d2b1ed38f", "score": "0.54402834", "text": "public function url(){ return $this->url; }", "title": "" }, { "docid": "562815e0f56d82f4a8a45bff1bde47b1", "score": "0.5435862", "text": "function getLocalLinks($id){\n\t$links = \"\";\n\t$links = data_localLinks($id);\n\treturn $links;\n}", "title": "" }, { "docid": "2cc59f62bc7e5ec3bcad82dff8fdcb15", "score": "0.54319793", "text": "public function refuel() {\n\t}", "title": "" }, { "docid": "17195b0d41e76ed34fcd55e486bdc249", "score": "0.5431352", "text": "public function Links( ){\n\t\trequire_once(MAIN.'/core/db.php');\n\t\t\n\t\t$this->db = new DB();\n\t\t$this->errors = array();\n\t\tif(isset($_SESSION['id_user'])){\n\t\t\t$this->user_id = (int) $_SESSION['id_user'];\n\t\t}else{\n\t\t\t$this->user_id = 0;\n\t\t}\n\t}", "title": "" }, { "docid": "5fe7bfa736cfc0895ed1f8e7511c38c6", "score": "0.54289216", "text": "function Links() {\r\n include_once(\"config.php\"); // DB Config Data\r\n $pol = mysql_connect($dbhost,$dbuname,$dbpass) or die (\"Couldn't connect to server.<br>\\n\");\r\n $db = mysql_select_db($dbname,$pol) or die (\"Couldn't connect to database.<br>\\n\");\r\n \r\n $this->site_name = $site_title;\r\n $this->homeurl = $url;\r\n\r\n $this->title = NULL;\r\n $this->pansw = 0;\r\n \r\n }", "title": "" }, { "docid": "fb1c041cef27a61854921d2072a48cfb", "score": "0.5422539", "text": "public function getAllLinks()\r\n {\r\n return $this->getStringArray(\"getAllLinks\", array());\r\n }", "title": "" }, { "docid": "d063fb19046b0615a3322c8e9dbe523d", "score": "0.54222876", "text": "function get_links() {\n\t\tif ( false === $links = get_transient( self::LINKS_CACHE_KEY ) ) {\n\t\t\t$db_links = $this->meta_by_key( self::LINK_META_KEY );\n\t\t\t$links = array();\n\t\t\tif ( $db_links ) {\n\t\t\t\tforeach ( $db_links as $link ) {\n\t\t\t\t\t$links[ intval( $link->post_id ) ] = $link->meta_value;\n\t\t\t\t}\n\t\t\t}\n\t\t\tset_transient( self::LINKS_CACHE_KEY, $links, 10 * 60 );\n\t\t}\n\t\treturn $links;\n\t}", "title": "" }, { "docid": "437986aa6bead845d931e5ec8539da5b", "score": "0.5417576", "text": "function & linkCreateFromArray($aParameters) {\n\t$oLink = & new Link($aParameters[0], $aParameters[1], $aParameters[2], $aParameters[3], $aParameters[4], $aParameters[5], $aParameters[6], $aParameters[7], $aParameters[8], $aParameters[9], $aParameters[10]);\n\treturn $oLink;\n}", "title": "" }, { "docid": "cfd63876f8d4162dc6b0a02c8aa96349", "score": "0.54171085", "text": "function dgios_add_settings_link( $links ) {\n $settings_link = '<a href=\"admin.php?page=dgios-customizer\">' . __( 'Settings', 'dgios-customizer' ) . '</a>';\n array_push( $links, $settings_link );\n \treturn $links;\n}", "title": "" }, { "docid": "9b666aec1eded96e86c78f60216b278a", "score": "0.54071087", "text": "public function getUrls()\n {\n return $this->urls;\n }", "title": "" }, { "docid": "866346a778ec8a2e7e6fc6f629d69ea5", "score": "0.54035383", "text": "public function addLinks($value)\n {\n $this->links[] = $value;\n }", "title": "" }, { "docid": "adddbb056d57a9ec8d43ac0437284f90", "score": "0.5399654", "text": "public function currentAddLink(Request $request)\n {\n return $this->addRelationEntries($request,'links','link_id','link');\n }", "title": "" }, { "docid": "23b367a6b029f0c8efa00e11445bbb11", "score": "0.5397689", "text": "function Eternizer_adminapi_getlinks()\n{\n $dom = ZLanguage::getModuleDomain('Eternizer');\n $links = array();\n\n if (SecurityUtil::checkPermission('Eternizer::', '::', ACCESS_ADMIN)) {\n $links[] = array(\n 'url' => pnModURL('Eternizer', 'admin', 'adminView'),\n 'text' => __('Admin view', $dom),\n 'title' => __('Administrative guestbook view', $dom),\n 'id' => 'Eternizer_adminview');\n $links[] = array('url' => pnModURL('Eternizer', 'import', 'main'),\n 'text' => __('Import', $dom),\n 'title' => __('Import from other guestbooks', $dom),\n 'id' => 'Eternizer_import');\n $links[] = array('url' => pnModURL('Eternizer', 'admin', 'config'),\n 'text' => __('Settings', $dom),\n 'title' => __(\"Eternizer module configuration\", $dom),\n 'id' => 'Eternizer_config')\n ;\n }\n\n return $links;\n}", "title": "" }, { "docid": "4634f230a35da82dd483c4326dc5bbaa", "score": "0.5395632", "text": "private function __construct(){\n $this->routes = array();\n}", "title": "" }, { "docid": "4dd147101b9eb37d8ae6d9549c48e6a0", "score": "0.5393813", "text": "public function referred(): array;", "title": "" }, { "docid": "fb5bf25c31734e6489b025419a70b4fb", "score": "0.5391628", "text": "function acf_link(array $settings): array\n {\n return Acf::field('link', $settings);\n }", "title": "" } ]
763a94f014667b90866f348c5e706309
Filter the query on the login_name column Example usage: $query>filterByLoginName('fooValue'); // WHERE login_name = 'fooValue' $query>filterByLoginName('%fooValue%'); // WHERE login_name LIKE '%fooValue%'
[ { "docid": "802b24b929b84d83ca20f68f6f1f0cc6", "score": "0.64184386", "text": "public function filterByLoginName($loginName = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($loginName)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $loginName)) {\n $loginName = str_replace('*', '%', $loginName);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(AccountPeer::LOGIN_NAME, $loginName, $comparison);\n }", "title": "" } ]
[ { "docid": "d4c0b50ef0c1d543f83b871cb76a22b3", "score": "0.5900384", "text": "public static function search($login){\n\n $sql = new Sql();\n return $sql->select(\"SELECT * FROM tb_usuarios WHERE deslogin like :SEARCH ORDER BY deslogin\", array( // like tests whether a string contains a specified pattern or not. VEM DO SQL\n \":SEARCH\"=>'%'.$login.'%' // The percentage ( % ) wildcard matches any string of zero or more characters. VEM DO SQL\n ));\n }", "title": "" }, { "docid": "60c205108f0fca2204584f40582e190f", "score": "0.5800006", "text": "public static function search($login){\n \n $sql = new Sql();\n \n return $sql->select(\"SELECT * FROM tb_usuarios WHERE deslogin LIKE :SEARCH ORDER BY deslogin\", array(\n \":SEARCH\"=>\"%\".$login.\"%\"\n ));\n \n }", "title": "" }, { "docid": "e7e0b1571927568603c329247d93d522", "score": "0.57445717", "text": "function filterName($field){\n // Sanitize user name\n $field = filter_var(trim($field), FILTER_SANITIZE_STRING);\n \n // Validate user name\n if(filter_var($field, FILTER_VALIDATE_REGEXP, array(\"options\"=>array(\"regexp\"=>\"/^[a-zA-Z\\s]+/\")))){\n return $field;\n }else{\n return FALSE;\n }\n}", "title": "" }, { "docid": "5ad94de53d8232b20d4c4e7f253c1486", "score": "0.57177067", "text": "public function setLoginName($var)\n {\n GPBUtil::checkString($var, True);\n $this->loginName = $var;\n\n return $this;\n }", "title": "" }, { "docid": "94f64c15701ab029aa1faa164aa0c948", "score": "0.5708343", "text": "function filterName($field){\n // Sanitize user name\n $field = filter_var(trim($field), FILTER_SANITIZE_STRING);\n\n // Validate user name\n if(filter_var($field, FILTER_VALIDATE_REGEXP, array(\"options\"=>array(\"regexp\"=>\"/^[a-zA-Z\\s]+$/\")))){\n return $field;\n } else{\n return FALSE;\n }\n}", "title": "" }, { "docid": "875628f374a62cef231952220ded5a4c", "score": "0.56832135", "text": "function getLoginFilter( $pUsername )\n\t{\n\t\tglobal $customLDAPSettings;\n\t\t\n\t\tif( !$this->useCustomLDAP )\n\t\t\treturn \"(&(objectCategory=person)(|(sAMAccountName=\".$pUsername.\")(userprincipalname=\".$pUsername.\"@\".GetGlobalData(\"ADDomain\",\"\").\")(userprincipalname=\".$pUsername.\")))\";\n\t\t\n\t\t$loginFilter = $customLDAPSettings['loginFilter'];\t\n\t\tif( $loginFilter )\n\t\t{\n\t\t\treturn $this->ldapObj->getProcessedPattern($loginFilter, $pUsername);\n\t\t}\n\t\t\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "9d262e61c65b7a04ed7f9761e4fe0191", "score": "0.5675529", "text": "public static function searchUsers ($text) {\n $split_stemmed = split(\" \",$text);\n while (list($key,$val)= each($split_stemmed)) {\n if($val <> \" \" && strlen($val) > 2){\n $val = strtoupper($val);\n $where .= \"(upper(login) LIKE '%$val%' OR upper(email) LIKE '%$val%' OR upper(name) LIKE '%$val%' OR upper(surname) LIKE '%$val%') OR\";\n }\n }\n $where = substr($where,0,(strLen($where)-4)); //this will eat the last OR\n $where .= \") ORDER BY login DESC\";\n $result = eF_getTableData(\"users\", \"*\", $where);\n return $result;\n }", "title": "" }, { "docid": "da2d009c6418157a6dd20b3546ebe467", "score": "0.55495363", "text": "function searchUser($key){\r\n\t\t$key=$this->db->quote(\"%\".$key.\"%\");\r\n\t\t$query = \"SELECT id, name, surname, email, address FROM users WHERE name ILIKE $key OR surname ILIKE $key OR email ILIKE $key \";\r\n\t}", "title": "" }, { "docid": "def73252cac6379b4648c24efdd18e6a", "score": "0.55305415", "text": "public function setLoginName($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->login_name !== $v) {\n $this->login_name = $v;\n $this->modifiedColumns[] = AccountPeer::LOGIN_NAME;\n }\n\n\n return $this;\n }", "title": "" }, { "docid": "6f71680d1ec3fc03533dba8a8bddf301", "score": "0.5471224", "text": "protected function set_name_filter_name($val){ $this->input ['filter_name'] = $val ; }", "title": "" }, { "docid": "5038bfcccace1a3df1da313e2bcb5271", "score": "0.5459275", "text": "public function filterColumn();", "title": "" }, { "docid": "78bb1fbe8eb0f7ac4760b0636f183869", "score": "0.53595984", "text": "public function searchName($input)\n {\n return [\n 'User.name LIKE ' => '%' . $input['search_name'] . '%'\n ];\n }", "title": "" }, { "docid": "db41cbba8c68254e03c0b9e6a6004769", "score": "0.5359489", "text": "function filter_search_columns($columns, $search, $WP_User_Query)\n {\n }", "title": "" }, { "docid": "b7e0ebea27ba40532fa439ddab26f997", "score": "0.5358325", "text": "public function search($namePart)\n {\n $results = [];\n $users = User::select('id','login')->get();\n foreach ($users as $user) {\n if (preg_match('/'.$namePart.'/i',$user->login,$matches)){\n $results[] = $user;\n if(count($results) >= 5) {\n break;\n }\n }\n }\n return response()->json($results);\n }", "title": "" }, { "docid": "70b5b8763575657a34f38dcfdde89925", "score": "0.5337616", "text": "function checkUserName($newUserName){\n $selectQuery = \"select username from log_in_cred;\";\n global $conn;\n $result = $conn->query($selectQuery);\n\n //checks to see if there are any rows returned \n $counter = 0;\n if ( $result->num_rows > 0) {\n // store data of each row in array\n while($row = $result->fetch_assoc()) {\n $storedUserNames[$counter] = $row[\"username\"];\n $counter++;\n }\n } \n\n foreach ($storedUserNames as $name) {\n //strpos() compares two strings; case-sensitive \n //the 2 trings passed to strpos have to be identical in order for them to return true!\n if (strpos($newUserName, $name) !== FALSE) { \n //match found\n\n return true;\n }\n }\n //match not found\n return false;\n\n }", "title": "" }, { "docid": "1938f408e541464f38326bca881f1746", "score": "0.53269386", "text": "public static function laratablesSearchName($query, $searchValue)\n {\n return $query->orWhere('users.name', 'like', '%' . $searchValue . '%');\n }", "title": "" }, { "docid": "965bc45d7fcb84b89c5ecaab1e39c393", "score": "0.5278789", "text": "function checkUserName(string $aUserName) : array\n {\n $query = <<<STR\n Select username\n From customer\n Where username = '$aUserName'\n STR;\n\n return self::executeQuery($query);\n }", "title": "" }, { "docid": "87f7ca93654aa65dfa0a09e6968588eb", "score": "0.5273743", "text": "function getFilterFullName()\r\n\t{\r\n\t\treturn FabrikString::safeColName($this->getFullName(false, true, false));\r\n\t}", "title": "" }, { "docid": "44218dab166d343d15ae99bfd1a8eab7", "score": "0.52586067", "text": "public function queryByName($searchKey) {\n // This is a search against SortName, which is of the form \"family given\",\n // and is executed as a prefix search. So, eg, \"smith j\" will find\n // \"smith jane\" and \"smith john\".\n \n return $this->queryNetForumEnterprise('WEBWebUserFindUsersByName',\n 'WEBWebUserFindUsersByNameResult',\n array('usernameToMatch' => $searchKey),\n true,\n false,\n false,\n true); // We need membership validity\n }", "title": "" }, { "docid": "cfe877563068d6e41ed9398216fddaa8", "score": "0.5258076", "text": "public static function loginColumn($column='email');", "title": "" }, { "docid": "4d177d5579df863f4397a24b64855daf", "score": "0.5217066", "text": "public static function nameFilter() {\n $name = str_replace(static::name(), 'filter\\\\' . static::name(), static::nameFull());\n return str_replace('views\\\\', '', $name);\n }", "title": "" }, { "docid": "7e907009e4dfc4c16bc02b2ad761423d", "score": "0.52165973", "text": "protected function set_filter_by_name($model_obj , & $wheres ){\n\t\t//@ remove end space\n\t\t$find = rtrim( $this->get_name_filter_selected() );\n\t\t//@ remove first space\n\t\t$selected = ltrim($find);\n if( $selected != \"\"){\n $wheres [$this->get_name_filter_name()] = $selected;\n return $model_obj->whereRaw(\" (first_name LIKE ? or second_name LIKE ? ) \" ,\n array( \"%\".$selected.\"%\" ,\n \"%\".$selected.\"%\" )\n );\n }\n return $model_obj;\n }", "title": "" }, { "docid": "685dac8c133b331bf5c4f8008b5f0c4b", "score": "0.5206924", "text": "private function searchByName($name, $user_id) \n {\n \t\t// Strings after position 1 are not considered\n \t\t// Since name matching is case sensitive - TODO: store names at lowercase and query as lowercase\n \t\t// Solutions ref :http://stackoverflow.com/questions/7005302/postgresql-how-to-make-case-insensitive-query\n \t\t$fullname = [$name[0], $name[0]];\n \t\tif (sizeof($name) > 1) {\n \t\t\t$fullname[1] = $name[1];\n \t\t}\n\n\n \treturn User::select('id', 'firstname', 'lastname', 'phone') //remove phone\n \t\t->where('firstname', 'LIKE', \"%{$fullname[0]}%\")\n \t\t->orWhere('lastname', 'LIKE', \"%{$fullname[0]}%\")\n \t\t->orWhere('firstname', 'LIKE', \"%{$fullname[1]}%\")\n \t\t->orWhere('lastname', 'LIKE', \"%{$fullname[1]}%\")\n \t\t->groupBy('id')\n \t\t->having('id', '!=', $user_id)\n \t\t->orderBy('lastname', 'desc')\n \t\t->get();\n }", "title": "" }, { "docid": "709b493f1cf0c143d0adbdc2aa80cf9d", "score": "0.5203797", "text": "protected function rawFilter($input) {\n //dd($input);\n\t\t$query = User::orderBy('name');\n\t\tif(isset($input['id']) && strlen($input['id']) > 2) {\n\t\t\t$query = $query->where('id', '=', $input['id']);\n\t\t}\n\t\tif(isset($input['name']) && strlen($input['name']) > 2) {\n\t\t\t$query = $query->where('name', 'like', $input['name'] . '%');\n\t\t}\n\t\tif(isset($input['email']) && strlen($input['email']) > 3) {\n\t\t\t$query = $query->where('email', 'like', $input['email'] . '%');\n\t\t}\n return $query;\n\t}", "title": "" }, { "docid": "fa388aeb06a7ebe113be220d7a99d617", "score": "0.51788545", "text": "function isUserInDBLog($login){\n\treturn myDbSelect(myDB(),\"SELECT login FROM Users WHERE login='\". filter($login, 1).\"'\") != null;\n}", "title": "" }, { "docid": "ee1423c5f271e477504b796bcfc44e35", "score": "0.5165834", "text": "public function checkUsername($user_login='')\n {\n \t$result = $this->db->query(\"SELECT user_id FROM users WHERE lower(user_name)='\".strtolower($user_login).\"'\")->row_array();\n \treturn $result;\n }", "title": "" }, { "docid": "193fff05b1bed808adcdeee2e6df3940", "score": "0.5136397", "text": "public static function username($col='email');", "title": "" }, { "docid": "022de63526a132f7d6957240900b4e9b", "score": "0.5132574", "text": "public function search_datatablecredential()\r\n {\r\n $this->db->select('patients.*,users.id as uid,users.user_id,users.username,users.password')->from('patients');\r\n $this->db->join('users', 'patients.id = users.user_id');\r\n if (!empty($_POST['search']['value'])) {\r\n // if there is a search parameter\r\n $counter = true;\r\n $this->db->group_start();\r\n foreach ($this->columncredential_search as $colomn_key => $colomn_value) {\r\n if ($counter) {\r\n $this->db->like($colomn_value, $_POST['search']['value']);\r\n $counter = false;\r\n }\r\n $this->db->or_like($colomn_value, $_POST['search']['value']);\r\n }\r\n $this->db->group_end();\r\n\r\n }\r\n $this->db->limit($_POST['length'], $_POST['start']);\r\n $this->db->order_by($this->columncredential_order[$_POST['order'][0]['column']], $_POST['order'][0]['dir']);\r\n $query = $this->db->get();\r\n $result = $query->result();\r\n return $result;\r\n }", "title": "" }, { "docid": "6b6cae0107fec3cd15e87b6290b5689f", "score": "0.51285386", "text": "public function _unique_loginname ($str)\n\n\t{\n\n\t\t// UNLESS it's the login_name for the current user\n\n\t\t$id = $this->data['customer_id'];\n\t\t\n\t\t$this->db->where('login_name', $this->input->post('name'));\n\t\t\n\t\t!$id || $this->db->where('id !=', $id);\n\n\t\t$customer_name = $this->servicescustomerm->get();\n\n\t\tif (count($customer_name)) {\n\n\t\t\t$this->form_validation->set_message('_unique_loginname', '%s should be unique');\n\n\t\t\treturn FALSE;\n\n\t\t}\n\n\t\treturn TRUE;\n\t\t\n\t}", "title": "" }, { "docid": "956792ebbdacd3406b8d62ea324287ca", "score": "0.51279074", "text": "public function filter(Request $request){\n $admin = auth()->user();\n $column = $request->input('column');\n $string = $request->input('string');\n\n //take the input for what column i want to filter by\n //string to filter\n if ($admin->role == 'admin'){\n if ($column == 'name' || $column == 'email'){\n $users = User::select('name','email','role')\n ->where($column, 'LIKE', '%'.$string.'%')\n ->where('verified', true)\n ->where('deleted', false)\n ->get();\n return $users;\n }\n if($column == 'role'){\n $users = User::select('name','email')\n ->where('role', $string)\n ->where('verified', true)\n ->where('deleted', false)\n ->get();\n return $users;\n }\n if($column == 'deleted'){\n $users = User::select('name','email')\n ->where('verified', true)\n ->where('deleted', true)\n ->get();\n return $users;\n }\n if($column == 'verified'){\n $users = User::select('name','email','role','deleted')\n ->where('verified', true)\n ->get();\n return $users;\n }\n if($column == 'date'){\n $users = User::select('name','email','role')\n ->whereDate('created_at', '=', $string)\n ->where('verified', true)\n ->where('deleted', false)\n ->get();\n return $users;\n }\n if($column == 'createdBy'){\n $users = User::select('name','email','role')\n ->where('createdBy', $string)\n ->where('verified', true)\n ->where('deleted', false)\n ->get();\n return $users;\n }\n if($column == 'deletedBy'){\n $users = User::select('name','email','role')\n ->where('deletedBy', $string)\n ->where('verified', true)\n ->where('deleted', true)\n ->get();\n return $users;\n }\n if($column == 'id'){\n $users = User::select('name','email','role')\n ->where('id', $string)\n ->get();\n return $users;\n }\n \n }\n return response()->json(['message'=>'Not allowed']);\n }", "title": "" }, { "docid": "93ceef6b0b0119295af496e47edf0bb6", "score": "0.5121419", "text": "public function filtrar(&$filtro)\n {\n parent::filtrar($filtro);\n $filtro_sql = '';\n if ($filtro->filtro('email'))\n $filtro_sql .= \" AND {$this->getTableName ('usuario')}.email like '%{$filtro->filtro('email')}%' \";\n if ($filtro->filtro('login'))\n $filtro_sql .= \" AND {$this->getTableName ('usuario')}.login like '%{$filtro->filtro('login')}%' \";\n if ($filtro->filtro('nombre'))\n $filtro_sql .= \" AND {$this->getTableName ('usuario')}.nombre like '%{$filtro->filtro('nombre')}%' \";\n if ($filtro->filtro('apellidos'))\n $filtro_sql .= \" AND {$this->getTableName ('usuario')}.apellidos like '%{$filtro->filtro('apellidos')}%' \";\n return $filtro_sql;\n }", "title": "" }, { "docid": "3c2e636301a2a19a7b7b1f31d6eb08ee", "score": "0.510046", "text": "public function filterByLogin($login = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($login)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $login)) {\n $login = str_replace('*', '%', $login);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(GroupOrderSubCustomerTableMap::LOGIN, $login, $comparison);\n }", "title": "" }, { "docid": "78cb26ff407fce7782372ea70d480523", "score": "0.50989026", "text": "public static function is_login($value){\r\n if (!preg_match('/^[a-zA-Z0-9]+$/', strtolower($value))){\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "f1a6e30c29c01b67bf4d73933a5b5db6", "score": "0.50955015", "text": "public function search()\n\t{\n\n\t\t$criteria=new CDbCriteria;\n\n if(Yii::app()->user->role !== Yii::app()->params['admin']){\n $criteria->addCondition('role!=:role','AND');\n $criteria->params = array(':role'=>Yii::app()->params['admin']);\n }\n\t\t$criteria->compare('user_id',$this->user_id);\n\t\t$criteria->compare('login',$this->login,true);\n\t\t$criteria->compare('pass',$this->pass,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "5822e44a3ec20ba0773b724f2cfe01e2", "score": "0.50946015", "text": "public function searchByName(string $name): IUserRepository\n {\n return $this->setWhere('name', 'LIKE', \"%$name%\");\n }", "title": "" }, { "docid": "de19d2ff2a46a14b2361fda99ad036c7", "score": "0.5090434", "text": "public function affiliate_filter() {\n\t\t$affiliate_login = ! empty( $_GET['affiliate_login'] ) ? sanitize_text_field( $_GET['affiliate_login'] ) : '';\n\n\t\t// Only keep the currently-filtered affiliate if it's valid.\n\t\tif ( false === affwp_get_affiliate( $affiliate_login ) ) {\n\t\t\t$affiliate_login = '';\n\t\t}\n\t\t?>\n\t\t<span class=\"affwp-ajax-search-wrap\">\n\t\t\t<input type=\"text\" name=\"affiliate_login\" id=\"user_name\" class=\"affwp-user-search\" value=\"<?php echo esc_attr( $affiliate_login ); ?>\" data-affwp-status=\"any\" autocomplete=\"off\" placeholder=\"<?php _e( 'Affiliate name', 'affiliate-wp' ); ?>\" />\n\t\t</span>\n\t\t<?php\n\t}", "title": "" }, { "docid": "169bf7db22bdc886478abf09e036e353", "score": "0.5089943", "text": "public function setLoginName(?string $value): void {\n $this->getBackingStore()->set('loginName', $value);\n }", "title": "" }, { "docid": "2121ea02339f5935244945b0efc67612", "score": "0.5069815", "text": "public function findByLogin($login) {\n\t\t\n\t}", "title": "" }, { "docid": "09340c4de0983d9362d3ab7bbed7dd35", "score": "0.5056458", "text": "public function findByLogin($login) {\n\t\t$where = $this->getAdapter()->quoteInto(\"`login` like ?\", $login);\n\t\t\n\t\treturn $this->fetchRow($where);\n\t}", "title": "" }, { "docid": "6390a40d4b565ab64370ad5f230de2cb", "score": "0.5020402", "text": "public function username_error($name){\r\n\t\t$this->load->model('customer_model');\r\n\t\t$customers = $this->customer_model->getAll();\r\n\t\tforeach ($customers as $customer) {\r\n\t\t\tif ($customer->login == $name) {\r\n\t\t\t\treturn(TRUE);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn(FALSE);\r\n\t}", "title": "" }, { "docid": "5a6db32302fbe4a06869d32390cce5f4", "score": "0.50110245", "text": "public function product_name_search(Request $request)\n {\n $result = product::where('company_id',Auth::user()->company_id)\n ->where('deleted_at','=',NULL)\n ->where('product_name','LIKE', '%'.$request->search_val.'%')\n ->select('product_name')\n ->get();\n\n return json_encode(array(\"Success\"=>\"True\",\"Data\"=>$result) );\n }", "title": "" }, { "docid": "d991f93175deb41124934948f9012517", "score": "0.5005252", "text": "protected function get_filtering()\n {\n if($this->check_mDataprop())\n $mColArray = $this->get_mDataprop();\n else if($this->_request('sColumns'))\n $mColArray = explode(',', $this->_request('sColumns'));\n else\n $mColArray = $this->_dataSource->columnNames;\n\n $sWhere = '';\n $sSearch = mysql_real_escape_string($this->_request('sSearch'));\n $mColArray = array_values(array_diff($mColArray, $this->_dataSource->unsetColumns));\n $columns = array_values(array_diff($this->_dataSource->columnNames, $this->_dataSource->unsetColumns));\n\n if($sSearch != '')\n for($i = 0; $i < count($mColArray); $i++)\n if($this->_request('bSearchable_' . $i) == 'true' && in_array($mColArray[$i], $columns))\n $sWhere .= $mColArray[$i] . \" LIKE '%\" . $sSearch . \"%' OR \";\n\n $sWhere = substr_replace($sWhere, '', -3);\n\n if($sWhere != '')\n $this->_dataSource->where('(' . $sWhere . ')');\n\n for($i = 0; $i < intval($this->_request('iColumns')); $i++)\n {\n if($this->_request('sSearch_' . $i) && $this->_request('sSearch_' . $i) != '' && in_array($mColArray[$i], $columns))\n {\n $miSearch = explode(',', $this->_request('sSearch_' . $i));\n\n foreach($miSearch as $val)\n {\n if(preg_match(\"/(<=|>=|=|<|>)(\\s*)(.+)/i\", trim($val), $matches))\n $this->_dataSource->where($mColArray[$i].' '.$matches[1], $matches[3]);\n else\n $this->_dataSource->where($mColArray[$i].' LIKE', '%'.$val.'%');\n }\n }\n }\n\n foreach($this->filter as $val)\n $this->_dataSource->where($val[0], $val[1], $val[2]);\n }", "title": "" }, { "docid": "3b9fe9eabe7d09bec8370d8c4ca65a7d", "score": "0.50009817", "text": "public function findByLoginName($loginName, $active = TRUE)\n\t{\n\t\t$where = array(\"loginName\" => $loginName);\n\t\tif ($active == TRUE) {\n\t\t\t$where[\"active\"] = self::ACTIVE;\n\t\t}\n\t\t$user = $this->findBy($where);\n\t\treturn $user->fetch();\n\t}", "title": "" }, { "docid": "c86dd2bdf59b1e33986d14352d818e97", "score": "0.4999396", "text": "public function searchUsers($input) {\n\t\t$this->connect();\n\t\t$sql = file_get_contents('app/webroot/sql/search_users.sql');\n\t\t$params = array(\"string\" => \"%\".$input.\"%\");\n\t\t$result = $this->runSelectQuery($sql, $params);\n\t\t$this->disconnect();\n\t\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "d9e39671e4b374fe19bf2c59a089af96", "score": "0.49965477", "text": "function searchUsers($sUserNameSearch, $aAttributes) {\n $sTable = KTUtil::getTableName('users');\n $sQuery = \"SELECT \"; /*ok*/\n $sQuery .= implode(', ', $aAttributes); \n $sQuery .= \" FROM $sTable where username like '%\" . DBUtil::escapeSimple($sUserNameSearch) . \"%'\";\n\n $res = DBUtil::getResultArray(array($sQuery, array()));\n if (PEAR::isError($res)) {\n return false; // return $res;\n }\n \n $aUserResults = array();\n foreach ($res as $aRow) { \n $sUserName = $aRow['username'];\n foreach ($aAttributes as $sAttrName) {\n $aUserResults[$sUserName][$sAttrName] = $aRow[$sAttrName];\n }\n }\n return $aUserResults;\n \n }", "title": "" }, { "docid": "920d23741d80f06f9c60b4b3bb554673", "score": "0.49836072", "text": "public function filters()\n {\n return [\n 'name' => 'trim|lowercase|escape'\n ];\n }", "title": "" }, { "docid": "920d23741d80f06f9c60b4b3bb554673", "score": "0.49836072", "text": "public function filters()\n {\n return [\n 'name' => 'trim|lowercase|escape'\n ];\n }", "title": "" }, { "docid": "d56b83ecf75d4bdbb077d1e4de4ac66b", "score": "0.49766675", "text": "public function getLoginName()\n {\n return static::$loginAttribute;\n }", "title": "" }, { "docid": "9923a917a70e439551753301173337b2", "score": "0.4973105", "text": "function get_filtered($q = NULL)\n {\n\n $this->db->or_like('nama_admin', $q);\n $this->db->or_like('username', $q);\n $this->db->or_like('role', $q);\n $this->db->or_like('last_login', $q);\n $this->db->order_by('nama_admin', \"asc\");\n return $this->db->get('admin');\n }", "title": "" }, { "docid": "cc4edcaa02d78e56fc52a2a689dcfe20", "score": "0.4972785", "text": "function nameSearch($db,$defaultfields,$filter,$colsfields){\n $sitename=trim($_GET['sitename']);\n $towerid=trim($_GET['towerid']);\n $fccnumber=trim($_GET['fccnumber']);\n $table=\"st_towerco_tb\";\n $qfs=\" $filter AND (\";\n $temparr=array();\n if($sitename !='')\n $temparr[]=\" SiteName LIKE '\".$sitename.\"%' \";\n if($towerid!='')\n $temparr[] =\" TowerId LIKE '\".$towerid.\"%' \";\n if($fccnumber!='')\n $temparr[] =\" FCCNumber LIKE '\".$fccnumber.\"%' \";\n\n $ctr=0;\n\n $towerowners= trim($_GET['towerowners']);\n $towerowerand='';\n if($towerowners!='all')\n $towerowerand =\" and TowerOwner='$towerowners' \";\n\n foreach($temparr as $item){\n if($ctr!=0)\n $qfs .=\" OR \";\n $ctr++;\n $qfs .= $item;\n }\n $qfs .= \")\";\n\n\n $sitenameq=\"SELECT $defaultfields from $table $qfs $towerowerand limit 1000 \";\n $data=$db->fetch_all_array($sitenameq);\n processResults($data,$colsfields);\n\n }", "title": "" }, { "docid": "3399710e3d4a293bd53d0c2dd25e6d03", "score": "0.49614456", "text": "private function setSearchByUserNameFilter(ActiveQuery $query, array $data): void\n {\n $search = (string)ArrayHelper::getValue($data, 'search');\n\n if (isset($data['search']) && false === empty($search)) {\n $this->search = $search;\n $query->where(['id' => Users::findByUserName($search)->column()]);\n }\n }", "title": "" }, { "docid": "4c43d44d43703e276f70013ff5ac20ed", "score": "0.4941012", "text": "public function actionSearchUsers($name = null)\n {\n $users = [];\n if ($name != null || $name != '') {\n $users = User::find()\n ->select(['username'])\n ->where(['ilike', 'username', \"$name\"])\n ->column();\n }\n return Json::encode($users);\n }", "title": "" }, { "docid": "7c0c70b6e72db85bd6de790bfd747dc8", "score": "0.49396494", "text": "function filterUsers(&$requests) {\r\n $requests['users']['model']['filters']['me'] = array(\r\n \"joins\" => array(),\r\n \"condition\" => \"(`[PREFIX]users`.`ID` = :[PREFIX_FIELD]me)\",\r\n \"readOnly\" => true\r\n );\r\n $requests['users']['filters']['me'] = $_SESSION['login']['ID'];\r\n# Uncomment if you want all users but keeping private things private\r\n# static $privateFields = array('sEmail', 'sCountryCode', 'sTimeZone', 'sBirthDate', 'iGraduationYear', 'sSex', 'sAddress', 'sZipcode', 'sCity', 'sLandLineNumber', 'sCellPhoneNumber', 'sDefaultLanguage', 'sFreeText', 'sWebSite', 'idUserGodfather');\r\n# foreach($requests['users']['model']['fields'] as $fieldName => &$field) {\r\n# if ($fieldName == 'sFirstName') {\r\n# $field = array('sql' => 'IF (`users`.`ID` = '.$_SESSION['login']['ID'].' OR `bPublicFirstName`, `sFirstName`, NULL)');\r\n# } elseif ($fieldName == 'sLastName') {\r\n# $field = array('sql' => 'IF (`users`.`ID` = '.$_SESSION['login']['ID'].' OR `bPublicLastName`, `sLastName`, NULL)');\r\n# } elseif(in_array($fieldName, $privateFields)) {\r\n# $field = array('sql' => 'IF (`users`.`ID` = '.$_SESSION['login']['ID'].', `'.$fieldName.'`, NULL)');\r\n# }\r\n# }\r\n}", "title": "" }, { "docid": "42eb7f63d57f3faeef84e8e0c01f5a13", "score": "0.49346462", "text": "public function isUsername($login){\n return substr($login, 0, 1) === \"@\";\n }", "title": "" }, { "docid": "9ea9327072ac71cc277fdb5e58709e17", "score": "0.49237084", "text": "public function search($param){\n return $this->model->where('name','like','%' . $param . '%')->with('roles','permissions');\n }", "title": "" }, { "docid": "4c0d3d5ea4b5161723eb8d84a5553c68", "score": "0.49130324", "text": "function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'sumber': return \"s.namasumberbeasiswa = '$key'\";\n\t\t\t\tdefault:\n\t\t\t\t\treturn parent::getListFilter($col,$key);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "4bf7f892146462e1b6a35beb10ede4c7", "score": "0.49052006", "text": "public function loginUsername()\n {\n return 'name';\n }", "title": "" }, { "docid": "b979006d698a1be6947a51c526e736a3", "score": "0.48956016", "text": "public function search(string $query){\n $stmt = $this->getDb()->prepare(\"SELECT * FROM players WHERE UPPER(nickname) LIKE UPPER(?)\");\n $nickname = \"$query%\"; //$query msut be the exact beginning of usernames\n $stmt->bindParam(1, $nickname);\n $stmt->execute();\n $accounts = $stmt->fetchAll(PDO::FETCH_OBJ);\n foreach($accounts as $account){\n unset($account->password);\n }\n return $accounts;\n }", "title": "" }, { "docid": "a39dba7c359df02216ef8269db1194b3", "score": "0.48886338", "text": "public function filterInfo($data){\n //print_r($data);\n\n $user_id = $data->userId;\n $userType = $data->userType;\n\n if($userType != \"ADMIN\"){\n $userId = \"AND `register_by` = '$user_id'\";\n }\n else{\n $userId = \"\";\n }\n $inputText = $data->inputText;\n $fname = $data->fname;\n $lname = $data->lname;\n $filter = \"\";\n $filterBy = $data->filterBy;\n\n if($filterBy==\"name\" && $fname != \"\" && $lname == \"\"){\n $filter = \"(`fname` LIKE '%$fname%')\";\n }\n if($filterBy==\"name\" && $fname != \"\" && $lname != \"\"){\n $filter = \"(`fname` LIKE '%$fname%' AND `lname` LIKE '%$lname%')\";\n }\n \n $sql = \"\";\n //$fname = \n //$inputText = $data->inputText;\n if($filterBy == \"name\"){\n $sql = \"SELECT `user_id`, `fname`, `lname`, `email`, `mobile`, `user_type` from `user_master` where $filter AND `status` = 1 \" .$userId. \" ORDER BY '$filterBy' ASC\";\n }\n else{\n $sql = \"SELECT `user_id`, `fname`, `lname`, `email`, `mobile`, `user_type` from `user_master` where `$filterBy` LIKE '%$inputText%' AND `status` = 1 \" .$userId. \" ORDER BY '$filterBy' ASC\";\n }\n $res = mysqli_query($this->conn, $sql);\n if(mysqli_num_rows($res)>0){\n while($rows = mysqli_fetch_array($res)){\n $name = $rows[1]. \" \" .$rows[2]; \n $result[]= array(\"user_id\"=>$rows[0],\n \"name\"=>$name, \n \"email\"=>$rows[3],\n \"mobile\"=>$rows[4],\n \"user_type\"=>$rows[5]\n );\n }\n echo json_encode($result);\n }\n else{\n echo mysqli_error($this->conn);\n echo \"EMPTY\";\n }\n\n }", "title": "" }, { "docid": "65c47952e95237eb69ff7581de3b08c9", "score": "0.4877542", "text": "public function searchCustomerByName( $username, $name ){\n global $pdo;\n $query = $pdo->prepare(\"SELECT * FROM customer WHERE username=%?% or name=%?%\");\n $query->bindValue(1, $username);\n $query->bindValue(2, $name);\n $query->execute();\n $rows = $query->fetchAll();\n foreach($rows as $row){\n $customers = new Customer(\n $row['customer_id']\n ,$row['username']\n ,$row['password']\n ,$row['name']\n ,$row['date_of_birth']\n ,$row['address']\n ,$row['phone_number']\n ,$row['image']\n );\n $customers[] = $customer;\n }\n return $customers;\n }", "title": "" }, { "docid": "8261bedbbbcbb29f4b809733ae7cd7f5", "score": "0.48768297", "text": "public function name($name)\n {\n $this->builder->where('name','=', $name);\n }", "title": "" }, { "docid": "e6a75644eb6596a53858ad6c67690c68", "score": "0.48760498", "text": "public function listUsers(Request $request){\n if($request->searchUsers == null) {\n $users = User::where('users.role','!=','admin')->where('users.name','!=',auth()->user()->name)->orderBy('name')->paginate(10);\n }else{\n $users = User::where('users.role','!=','admin')\n ->where('users.email','LIKE',\"%{$request->searchUsers}%\")\n ->orWhere('users.name','LIKE',\"%{$request->searchUsers}%\")->orderBy('name')->paginate(10);\n }\n return view('user.list', compact('users'));\n }", "title": "" }, { "docid": "4665647fab05f3d2810d9965460aa3eb", "score": "0.48749653", "text": "public function search($name)\n {\n return Identifiant::where('nom_identifiant', 'like', '%' . $name . '%')->get();\n }", "title": "" }, { "docid": "a5a14c725078c03e7cc5152d39402d15", "score": "0.48712462", "text": "function scopeWithName($query, $name)\n {\n $names = explode(\" \", $name);\n\n // Search each Name Field for any specified Name\n return User::where(function($query) use ($names) {\n $query->whereIn('first_name', $names);\n $query->orWhere(function($query) use ($names) {\n $query->whereIn('last_name', $names);\n });\n });\n }", "title": "" }, { "docid": "c6c00b47bdd500128527f1612243f918", "score": "0.4869695", "text": "protected function _getFilter() {\n $filter = $this->Request->get('Filter');\n if ($filter) {\n $parts = explode(' ', $filter, 3);\n if (count($parts) < 2) {\n return false;\n }\n\n $field = $parts[0];\n if (count($parts) == 2) {\n $op = '=';\n $filterValue = $parts[1];\n } else {\n $op = $parts[1];\n if (!in_array($op, ['=', 'like'])) {\n $op = '=';\n }\n $filterValue = $parts[2];\n }\n\n // If we're using a DB function (e.g. converting binary IPs), separate it from the field.\n if (preg_match('/^(?<function>[A-Za-z0-9_]+)\\((?<fieldName>[A-Za-z0-9_\\.]+)\\)$/', $field, $fieldParts)) {\n $field = $fieldParts['fieldName'];\n $dbFunction = $fieldParts['function'];\n }\n\n if (strpos($field, '.') !== false) {\n $fieldParts = explode('.', $field);\n $field = array_pop($fieldParts);\n }\n\n $validFields = ['Name', 'Email', 'LastIPAddress', 'InsertIPAddress', 'RankID', 'DateFirstVisit', 'DateLastActive'];\n if (!in_array($field, $validFields)) {\n return false;\n }\n\n // If we have a valid DB function, re-apply it to the field.\n $validDBFunctions = ['inet6_ntoa'];\n if (isset($dbFunction) && in_array($dbFunction, $validDBFunctions)) {\n $field = \"{$dbFunction}({$field})\";\n }\n\n return [\"$field $op\" => $filterValue];\n }\n return false;\n }", "title": "" }, { "docid": "b8632032d1857a40915a9ca4ece2f147", "score": "0.4869248", "text": "public function scopeSearch($query, $name){\n return $query->where('name','LIKE',\"%$name%\");\n\n }", "title": "" }, { "docid": "7e6320449fd2f87666606fff146a3d95", "score": "0.48551425", "text": "public function filterByName($name = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($name)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $name)) {\n $name = str_replace('*', '%', $name);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(StorePeer::NAME, $name, $comparison);\n }", "title": "" }, { "docid": "1ab28518ef6e946041374d6b7d411f09", "score": "0.48514262", "text": "public function searchUser($data){\n $query = 'Select id, username, email, status, group_name, date_created From users Where username like \"%'.$data.'%\" or email like \"%'.$data.'%\"';\n $result = $this->executeQuery($query);\n return $result;\n }", "title": "" }, { "docid": "23b70b82981bb6fd29003c5f9cc8e8ad", "score": "0.48483723", "text": "public function testSearchName()\n {\n $this->browse(function (Browser $browser) {\n $browser->loginAs(User::find(1))\n ->visit('/admin/category')\n ->type('category_name', self::NAME_SEARCH)\n ->click('.search-category')\n ->assertSee('List Category');\n $elements = $browser->elements('.table tbody tr');\n $this->assertCount(self::NUMBER_RECORD_AFTER_SEARCH, $elements);\n });\n }", "title": "" }, { "docid": "007c859a94cc6ee9e9c2bfc5fa55679c", "score": "0.48441252", "text": "public function actionSearchUser()\n {\n $this->titleInHeaderBar = \"Search User\";\n $this->showBackButtonInHeaderBar = true;\n $txtUser = Yii::app()->request->getParam('searchUser');\n $txtUser = preg_replace('!\\s+!', ' ', $txtUser);\n $searchArr = array();\n if (isset($txtUser) && trim($txtUser) !== \"\") {\n $txtUser = ltrim($txtUser, \" \");\n $txtUser = rtrim($txtUser, \" \");\n array_push($searchArr, $txtUser);\n foreach (explode(\" \", $txtUser) as $item) array_push($searchArr, $item);\n }\n\n $result = array();\n if (count($searchArr) > 0) {\n foreach ($searchArr as $txt) {\n $u = Users::model()->findByAttributes(array(\"username\" => $txt));\n if (is_null($u)) $u = Users::model()->findByAttributes(array(\"email\" => $txt));\n if (is_null($u)) $u = Users::model()->findByAttributes(array(\"firstName\" => $txt));\n if (is_null($u)) $u = Users::model()->findByAttributes(array(\"lastName\" => $txt));\n if (!is_null($u) && !in_array($u, $result)) {\n array_push($result, $u);\n }\n }\n }\n $this->render('result', array('result' => $result));\n }", "title": "" }, { "docid": "ee812195b50effd6a6324ed96adc540a", "score": "0.4843255", "text": "function filterName($string){\n $string=filter_var(trim($string), FILTER_SANITIZE_STRING);\n if(filter_var($string, FILTER_VALIDATE_REGEXP, array(\"options\"=>array(\"regexp\"=>\"/^[a-zA-Z0-9\\s]+$/\")))){\n return $string;\n }\n else{\n return FALSE;\n }\n}", "title": "" }, { "docid": "5ab76700c9f5ed0d0a7b80e04ecf9994", "score": "0.48429212", "text": "function get_users_using_server_side_query_search_and_order() {\r\n\r\n \t\t$sintax = \"SELECT \r\n \t\t\t\t\" . $this->primaryKey . \" AS user_id, \r\n \t\t\t\t\" . $this->table . \".name AS user_fullname, \r\n \t\t\t\t\" . $this->table . \".username AS username, \r\n \t\t\t\t\" . $this->table . \".updated_time, \r\n \t\t\t\trole.name AS role_name\r\n\t \t\t\tFROM \" . $this->table . \"\r\n\t \t\t\tJOIN role ON role.id = \" . $this->foreignKey . \" \";\r\n\r\n \t\t$sintax .= $this->server_side_lib->individual_column_filtering($this->columnSearch);\r\n\r\n \t\t$sintax .= $this->server_side_lib->ordering($this->columnOrder, $this->order);\r\n\r\n return $sintax;\r\n\r\n }", "title": "" }, { "docid": "ca2cb3bea63028476ec4e88ad3d9ae4e", "score": "0.4842307", "text": "public function searchClient() {\n\t\t$UsersInfo = TableRegistry::get('Users');\n\t\tif(!empty($_REQUEST)){\n\t\t\t$query = array();\n\t\t\t\n\t\t\tif( isset($_REQUEST['term']) && ($_REQUEST['term']!='') ){\n\t\t\t\t$query = array();\n\t\t\t\t$query = $UsersInfo->find()->where(['login_name LIKE'=>'%'.$_REQUEST['term'].'%', 'user_type' => 'customer'])->all();\t\n\t\t\t\t$countRows = $query->count();\n\t\t\t\tif($countRows>0){\n\t\t\t\t\tforeach($query as $value){\n\t\t\t\t\t\t$data[] = $value['login_name'];\n\t\t\t\t\t}\n\t\t\t\t\techo json_encode($data);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse if( isset($_REQUEST['first_name']) && ($_REQUEST['first_name']!='') ){\n\t\t\t\t$query = $UsersInfo->find('all')->where(['login_name'=>$_REQUEST['first_name']])->contain(['Addresses','Customers']);\n\t\t\t\t$countRows = $query->count();\n\t\t\t\tif($countRows>0){\n\t\t\t\t\tforeach($query as $value){\n\t\t\t\t\t\t\t//echo \"<pre>\"; print_r($value); echo \"</pre>\";\n\t\t\t\t\t\t\t$data = array(\n\t\t\t\t\t\t\t\t'first_name'=> $value['first_name'],\n\t\t\t\t\t\t\t\t'last_name'=> $value['last_name'], \n\t\t\t\t\t\t\t\t'email'=> $value['email'], \n\t\t\t\t\t\t\t\t'street_address'=>$value['address']['street_address'],\n\t\t\t\t\t\t\t\t'city'=>$value['address']['city'],\n\t\t\t\t\t\t\t\t'state'=>$value['address']['state_id'],\n\t\t\t\t\t\t\t\t'zip'=>$value['address']['zip_code'],\n\t\t\t\t\t\t\t\t'customer_id'=>$value['customer']['id'],\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\techo json_encode($data);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\texit;\n\t}", "title": "" }, { "docid": "cc661a25b741fd89fbbaf7e03bf9149f", "score": "0.4840675", "text": "public function searchByName($name){\n $users = User::join('positions', 'users.position_id', '=', 'positions.id')->select('users.id AS user_id', 'users.name', 'users.email', 'users.avatar', 'positions.position')->where('users.name', 'LIKE', '%'. $name. '%')->paginate(10);\n\n return response()->json($users);\n }", "title": "" }, { "docid": "ae29bf851a704643b6b2593cad92118a", "score": "0.48361304", "text": "private function filterToDb($name) {\r\n\t\treturn strtolower(preg_replace('/(?<=[^A-Z]{1})([A-Z]{1})/' , '_$1', $name));\r\n\t}", "title": "" }, { "docid": "26c97a6d5bf21b97e0b3291876c8a3c3", "score": "0.4822294", "text": "public function get_names($name) {\n // $this->db->from(\"profile\");\n // $this->db->where(\"first_name like '%\".$search.\"%' or last_name like '%\".$search.\"%'\");\n // $this->db->order_by('first_name, last_name','asc');\n\n $this->db->select(\"*\");\n $this->db->from(\"(SELECT account_id AS id, CONCAT(first_name, ' ', IFNULL(last_name, '')) AS full_name from profile) AS USERLIST\");\n if ($name != \"\")\n $this->db->where(\"LOWER(full_name) like '\".strtolower(urldecode($name)).\"%'\");\n $this->db->order_by(\"full_name\", \"asc\");\n\n $query = $this->db->get();\n $result = ($query->num_rows() > 0) ? $query->result_array() : FALSE;\n\n return $result;\n }", "title": "" }, { "docid": "33c9ca826b0e6ecbcdb7dd60d94d5a91", "score": "0.48171225", "text": "private function _condicionNombre($name)\n {\n return array('Empresa.nombre LIKE' => '%' . $name . '%');\n }", "title": "" }, { "docid": "1a1b31031d6bd27420ad262250d62859", "score": "0.48122478", "text": "public function testFindByLogin()\n {\n $login = UserFixture::getLogin(UserFixture::ID_USER);\n\n $user = User::findByLogin($login);\n $this->assertNotEmpty($user);\n\n /**\n * Find admin user by login and inactive type\n */\n $login = UserFixture::getLogin(UserFixture::ID_USER_INACTIVE);\n\n $user = User::findByLogin($login, User::TYPE_INACTIVE);\n $this->assertNotEmpty($user);\n\n /**\n * Find admin user by login and wrong type\n */\n $login = UserFixture::getLogin(UserFixture::ID_USER_INACTIVE);\n\n $user = User::findByLogin($login, User::TYPE_USER);\n $this->assertEmpty($user);\n }", "title": "" }, { "docid": "1f84fbe7a60eaf35a03ef9f2e22344af", "score": "0.4811571", "text": "function user_search_columns($columns, $search, $WP_User_Query)\n {\n }", "title": "" }, { "docid": "5d6ada97cc84d71cbf1ccddf8f561c1a", "score": "0.4809887", "text": "public function filterUsername($username)\n\t{\n\t\t//check to see if additional username filtering need to be applied\n\t\t$added_filter = $this->params->get('username_filter');\n\t\tif ($added_filter && $added_filter != $this->getJname()) {\n\t\t\t$JFusionPlugin = Factory::getUser($added_filter);\n\t\t\t$filteredUsername = $JFusionPlugin->filterUsername($username);\n\t\t}\n\t\t//make sure the filtered username isn't empty\n\t\t$username = (!empty($filteredUsername)) ? $filteredUsername : $username;\n\t\t//define which characters which Joomla forbids in usernames\n\t\t$trans = array('&#60;' => '_', '&lt;' => '_', '&#62;' => '_', '&gt;' => '_', '&#34;' => '_', '&quot;' => '_', '&#39;' => '_', '&#37;' => '_', '&#59;' => '_', '&#40;' => '_', '&#41;' => '_', '&amp;' => '_', '&#38;' => '_', '<' => '_', '>' => '_', '\"' => '_', '\\'' => '_', '%' => '_', ';' => '_', '(' => '_', ')' => '_', '&' => '_');\n\t\t//remove forbidden characters for the username\n\t\t$username = strtr($username, $trans);\n\t\t//make sure the username is at least 2 characters long\n\t\twhile (strlen($username) < 2) {\n\t\t\t$username.= '_';\n\t\t}\n\t\treturn $username;\n\t}", "title": "" }, { "docid": "6a95b0459335a60af6e1e43498cca849", "score": "0.48070675", "text": "public function matchName($name = '')\n\t{\n\t\t$query = 'SELECT id FROM `#__users` WHERE name = ' . $this->_db->quote($name);\n\t\t$this->_db->setQuery($query, 0, 1);\n\t\treturn $this->_db->loadResult();\n\t}", "title": "" }, { "docid": "aa2616fe3790ef0a97aed05686231569", "score": "0.48038173", "text": "public function searchUserByName(){\n\t\t$post = JRequest::get('post');\n\t\t$name = isset($post['q']) ? $post['q'] : '';\n\t\t$db = JFactory::getDbo();\n\t\t$sql = \"SELECT `member_id` AS id, `name` FROM `#__bt_members` WHERE `name` LIKE '%{$name}%'\";\n\t\t$db->setQuery($sql);\n\t\t$res = $db->loadObjectList();\n\t\tif(!empty($res)){\n\t\t\t$in = 0;\n\t\t\tforeach($res as $data){\n\t\t\t\t$hbquery = \"SELECT donor_id FROM #__donorforce_donor WHERE `name_first` LIKE '%{$data->name}%' OR `name_last` LIKE '%{$data->name}%'\";\t\n\t\t\t\t$db->setQuery($hbquery);\n\t\t\t\t$db->execute();\n\t\t\t\t$num_rows = $db->getNumRows();\n\t\t\t\tif($num_rows > 0){\n\t\t\t\t\tunset($res[$in]);\n\t\t\t\t}\n\t\t\t\t$in++; \n\t\t\t}\n\t\t\techo json_encode($res);\n\t\t}else{\n\t\t\t$hbquery = \"SELECT donor_id FROM #__donorforce_donor WHERE `name_first` LIKE '%{$name}%' OR `name_last` LIKE '%{$name}%'\";\t\n\t\t\t$db->setQuery($hbquery);\n\t\t\t$db->execute();\n\t\t\t$num_rows = $db->getNumRows();\n\t\t\tif($num_rows > 0){\n\t\t\t\techo json_encode(array(array('result'=>'0','name'=>'Already a Donor.')));\t\n\t\t\t}else{\n\t\t\t\techo json_encode(array(array('id'=>ucwords($name),'name'=>ucwords($name))));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "097374f6a7473604aa2a52514b911a42", "score": "0.48005283", "text": "function searchUser($conn, $search){\n\n $reponse = $conn->prepare('\n\n SELECT staff.id, staff.name, staff.firstname, staff.job, staff.email, staff.tel_ext, staff.tel_int, staff.serv_id, staff.off_nbr, service.off_name, service.descr, pictures.picture \n FROM staff \n INNER JOIN service ON staff.serv_id = service.id \n LEFT JOIN pictures ON staff.id = pictures.staff_id \n WHERE serv_id IS NOT NULL \n AND \n staff.name LIKE % :search % \n OR\n staff.firstname LIKE % :search % \n ORDER BY staff.name ASC'); \n\n $reponse->bindValue(':search', $search, PDO::PARAM_STR); \n $reponse->execute();\n $userInfos = $reponse->fetch(); \n\n return $userInfos; \n\n\n}", "title": "" }, { "docid": "e5573e009855455c768781e130b4e897", "score": "0.47998846", "text": "public function setLoginname(string $loginname): void\n {\n $this->loginname = $loginname;\n }", "title": "" }, { "docid": "2fed5da9a2cd6365cecd1dce054adf33", "score": "0.4796432", "text": "public function filterColumnName(&$column)\r\n\t{\r\n\t\treturn str_replace('`', '', $column);\r\n\t}", "title": "" }, { "docid": "245e2591e627ad0ed14e4a3dc7b6b823", "score": "0.47931847", "text": "public function getLoginName()\n {\n return $this->loginName;\n }", "title": "" }, { "docid": "a959b9894ed2789ce257579907efc474", "score": "0.47903755", "text": "public function addFilter($column, $value, $comparison = sfDataSource::EQUAL, $group_operator = sfDataSource::GROUP_AND);", "title": "" }, { "docid": "f27a6a9eefa98409d575cd00378876fc", "score": "0.47859427", "text": "function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'propinsi': return \"substring(idkabupaten,1,2) = '$key'\";\n\t\t\t\tcase 'kabupaten': return \"substring(idkecamatan,1,4) = '$key'\";\n\t\t\t\tcase 'kecamatan': return \"substring(idkelurahan,1,6) = '$key'\";\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "b3fe53480257c15dad31c3b3e884d031", "score": "0.47678432", "text": "function get_user_by_login($login) {\n $res = db_select_row('SELECT * FROM users WHERE login = \\'' . db_escape_string($login, 'users') . '\\'', 'users');\n if (!$res) {\n return false;\n }\n\n return $res;\n}", "title": "" }, { "docid": "578b55508415c0b178568791ad4c39f8", "score": "0.4767311", "text": "public function searchUser($search_string)\n {\n if (strlen($search_string) <= 3)\n return Array();\n \n return $this->objectManager->getRepository($this->class)\n ->createQueryBuilder('u')\n ->Where('u.firstname LIKE :search_string OR u.lastname LIKE :search_string OR u.usernameCanonical LIKE :search_string')\n ->AndWhere('u.locked = 0 AND u.enabled = 1')\n ->orderBy('u.usernameCanonical', 'DESC') \n ->setParameter('search_string', '%'.$search_string.'%')\n ->getQuery()\n ->getResult();\n \n }", "title": "" }, { "docid": "5887ac2ec19d6ce4cb09458b7445b428", "score": "0.47569418", "text": "public function filteruser() {\r\n $filters = $_POST;\r\n global $conn;\r\n $usersgroup = new User($conn);\r\n if(isset($_POST)){\r\n $_SESSION['searchedUser'] = $usersgroup->getAllUsersByFilter($filters);\r\n }\r\n View::load('pages', 'resultscreen');\r\n }", "title": "" }, { "docid": "a991af4126926ad19cad818760c702c8", "score": "0.47517616", "text": "static function checkName(SQLite3 $db, $name){\n $sql = \"select * from user where name = :name\";\n $stmt = $db->prepare($sql);\n $stmt->bindValue(':name',$name,SQLITE3_TEXT);\n return $stmt->execute();\n }", "title": "" }, { "docid": "82756f486a97992e7dfcda91afec52ac", "score": "0.47439292", "text": "function findCustomerByName(mysqli $db, array $customerName)\n{ \n #If the user has only entered a first or last name.\n if(sizeof($customerName) == 1)\n {\n $sql = \"SELECT * FROM `CustomerData` WHERE `First_Name` LIKE '%\";\n $sql.= $customerName[0] . \"%'\";\n $sql.= \"OR `Last_Name` LIKE '%\";\n $sql.= $customerName[0] . \"%'\";\n\n return $db->query($sql);\n }\n #If the user entered both a first and last name.\n else if(sizeof($customerName) > 1)\n {\n $sql = \"SELECT * FROM `CustomerData` WHERE `First_Name` LIKE '%\";\n $sql.= $customerName[0] . \"%'\";\n $sql.= \"AND `Last_Name` LIKE '%\";\n $sql.= $customerName[1] . \"%'\";\n \n return $db->query($sql);\n }\n}", "title": "" }, { "docid": "986a3b71400a8ef35b2168829da7d779", "score": "0.47428736", "text": "public function getUsersByLoginStartingWith($login, $mode = null)\n {\n return $this->find('login LIKE :login', ['login' => $login.'%'], null, [], $mode);\n }", "title": "" }, { "docid": "f9128382ece5756aea806407bd26211f", "score": "0.47408515", "text": "public function getUserByName(Request $request)\n {\n try{\n\n $user = DB::table('users')->where('name', 'like', '%'.$request->name.'%')->get();\n\n return response()->json([\n 'user' => $user\n ]);\n\n }\n catch(\\Exception $e){\n return response()->json([\n 'message' => 'Error!'\n ]);\n }\n }", "title": "" }, { "docid": "5636c51c224a6f5c8c78473bf12978e9", "score": "0.4739804", "text": "function cari($keyword) {\n\t\t$query = \"SELECT * FROM user WHERE\n\t\t\t\tnama != 'admin' AND\n\t\t\t\t(nama LIKE '%$keyword%' OR\n\t\t\t\temail LIKE '%$keyword%') \n\t\t\";\n\n\t\treturn query($query);\n\t}", "title": "" }, { "docid": "cd04a6e168a1b79aa499ba2f9208c06f", "score": "0.47278997", "text": "function List_Search_Users_Account_ALL($tbl_users, $cari ){\n\t\t$sql = mysql_query(\"SELECT * FROM $tbl_users WHERE \n\t\t\n\t\t\t\nusername LIKE '%$cari%' OR\nemail LIKE '%$cari%' OR\nnoponsel LIKE '%$cari%' OR\nim LIKE '%$cari%' OR\nnamaperusahaan LIKE '%$cari%' OR\nkantorcabang LIKE '%$cari%' OR\njabatan LIKE '%$cari%' OR\ndivisi LIKE '%$cari%' OR\nalamat LIKE '%$cari%'\n\n\n\t\t\t\n\t\tORDER BY username ASC\n\t\t\n\t\t\");\n\t\t\n\t\treturn $sql;\n}", "title": "" }, { "docid": "13a60dab62fea772051e1c25543fdb22", "score": "0.4725074", "text": "public function getLoginName()\n {\n\n return $this->login_name;\n }", "title": "" }, { "docid": "b7513fdf3897aec9ede8c62fd208e79a", "score": "0.4725", "text": "function filter_method_name() {\n\t // TODO define your filter method here\n\t}", "title": "" }, { "docid": "661b52ad3311873e5b6a8c501c438d5e", "score": "0.47226343", "text": "function Search_Users_Account_ALL($tbl_users, $cari , $offset , $dataPerPage ){\n\t\t$sql = mysql_query(\"SELECT * FROM $tbl_users WHERE \n\t\t\n\t\t\t\nusername LIKE '%$cari%' OR\nemail LIKE '%$cari%' OR\nnoponsel LIKE '%$cari%' OR\nim LIKE '%$cari%' OR\nnamaperusahaan LIKE '%$cari%' OR\nkantorcabang LIKE '%$cari%' OR\njabatan LIKE '%$cari%' OR\ndivisi LIKE '%$cari%' OR\nalamat LIKE '%$cari%'\n\n\n\t\t\t\n\t\tORDER BY username ASC LIMIT $offset, $dataPerPage\"); \n \t\treturn $sql;\n}", "title": "" } ]
2144bf2e7363d88f13266ccc949b8e61
Lists all record entities.
[ { "docid": "2567e0e2c62ef215511b80cb2b09624f", "score": "0.7181001", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $records = $em->getRepository('LibraryStorageBundle:Record')->findAll();\n\n return $this->render('record/index.html.twig', array(\n 'records' => $records,\n ));\n }", "title": "" } ]
[ { "docid": "3b82032ced4d0a1a9751cedeb3634a77", "score": "0.7342945", "text": "public function get_all_records()\n {\n $data['records'] = $this->_record->get_all_records();\n $data['active'] = 1;\n \n renderHomeContent('home/record.phtml', $data);\n }", "title": "" }, { "docid": "72755e5327a029e4ec341f484bec594c", "score": "0.7256426", "text": "public function getAllRecords();", "title": "" }, { "docid": "14fa2551aa45e86ac456049a386000be", "score": "0.6693666", "text": "function getAll () {\r\n return $this->getRecord();\r\n }", "title": "" }, { "docid": "cd2486af22fc0e149fc8fe0386074cca", "score": "0.66247135", "text": "public function fetchAll() {\n return $this->getEntityRepository()->findAll();\n }", "title": "" }, { "docid": "410e4248918fd83092d2f499451d795c", "score": "0.6585633", "text": "public function fetchRecords() {\n \treturn self::all();\n }", "title": "" }, { "docid": "82ebfa82979a62b6bc87d1c35bca354e", "score": "0.6562672", "text": "public function getAllRecords()\n {\n $collection = $this->all();\n return $collection;\n }", "title": "" }, { "docid": "232d5aa421d697f0e2d2be11b45cec64", "score": "0.65444404", "text": "function showallrecord()\n\t{\n\t\t$data[\"hslquery\"] = $this->tabel->getallrecord();\n\n\t\t$data[\"title\"] = \"Show All With Active Record\";\n\n\t\t$this->load->view(\"activerecord/allrecord_view\", $data);\n\t}", "title": "" }, { "docid": "fa5c3fe035acb9bd3df82a6496c18592", "score": "0.6505041", "text": "public function getAll() {\n return $this->findAll(); \n }", "title": "" }, { "docid": "7526132892466e6701aeec8f3c209cf5", "score": "0.64933395", "text": "public static function getAll() {\n return static::getDataSource()->getEntities(get_called_class());\n }", "title": "" }, { "docid": "b8648b91038e1a2329527b053a91cee3", "score": "0.64400816", "text": "public function list() {\n\t\treturn $this->all();\n\t}", "title": "" }, { "docid": "8cc5fa99b397777ccc2f688103cd21fa", "score": "0.64295685", "text": "public function all()\n\t{\n\t\treturn $this->getAllFromTable($this->model->getTableName());\n\t}", "title": "" }, { "docid": "bf9f3f10d967ae93c08e0a90796db018", "score": "0.64164364", "text": "public function listAll()\n {\n // TODO: Implement listAll() method.\n return $this->model->lists('name', 'id');\n }", "title": "" }, { "docid": "f2b4b19aead1525d4ae33eef17ee9be2", "score": "0.6410463", "text": "public function getAllRecords() { /* not defined */ }", "title": "" }, { "docid": "f2b4b19aead1525d4ae33eef17ee9be2", "score": "0.6410463", "text": "public function getAllRecords() { /* not defined */ }", "title": "" }, { "docid": "44bf534e02b10c48e54a414eb6f1c68f", "score": "0.63946265", "text": "public function index()\n {\n return TrackRecord::all();\n }", "title": "" }, { "docid": "926cc563e4f49f66383ad8cf67cbd544", "score": "0.63795674", "text": "public function getRecords();", "title": "" }, { "docid": "62e82787d382ab4aa2a0f28958d28354", "score": "0.6378528", "text": "public function getAll()\n {\n return $this->findAll();\n }", "title": "" }, { "docid": "0d3b757921c8cf2e4bbfba63c685c8e8", "score": "0.63754475", "text": "public function showAll()\n {\n $this->show = $this->connect()->query(\"SELECT * FROM employees;\");\n $this->result = $this->show->fetchAll(PDO::FETCH_ASSOC);\n return $this->result;\n }", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.6347749", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.6347749", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.6347749", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.6347749", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.6347749", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.6347749", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.6347749", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.6347749", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.6347749", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.6347749", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.6347749", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.6347749", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.6347749", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.6347749", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.6347749", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.6347749", "text": "public function getAll();", "title": "" }, { "docid": "06f27ec9bf146b469adbf2e6705aabe8", "score": "0.634413", "text": "public function index()\n {\n $pagination = new Pagination();\n $options = array();\n $pagination->setTotal(call_user_func_array([$this->_modelName, 'count'], array($options)));\n $options['limit'] = $pagination->rowsPerPage;\n $options['page'] = $pagination->offset;\n $records = call_user_func_array([$this->_modelName, 'all'], array($options));\n $this->set(compact('records', 'pagination'));\n }", "title": "" }, { "docid": "9637f79ea803e8f22e82072bab7b7f37", "score": "0.63343644", "text": "public function all()\n {\n return $this->repository->findAll();\n }", "title": "" }, { "docid": "69f935cbbddc94af06c9bd5c21a239d1", "score": "0.6311323", "text": "public function getAllEntities(): array;", "title": "" }, { "docid": "a0255507de8195e55161e3a700160b27", "score": "0.6272649", "text": "public function indexAction()\n {\n $entities = $this->repo->findAll();\n\n return array(\n 'entities' => $entities,\n );\n }", "title": "" }, { "docid": "0a500f5002239cf29827f948ab05b7f1", "score": "0.62502", "text": "public function getRecords() {\n\t\treturn $this->_getObject()->select('*');\n\t}", "title": "" }, { "docid": "9577802ffb017739dcc23218b244eaa2", "score": "0.6246428", "text": "public function index()\n\t{\n\t\t$records = Record::with('user.profile')->orderBy('id', 'desc')->paginate(20);\n\n\t\treturn $this->view('administrator.records.index', compact('records'));\n\t}", "title": "" }, { "docid": "d6bd209eea7a909ec1bbf56afae413a6", "score": "0.62437344", "text": "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('AppBundle:Search')->findAll();\n\n return $this->render('AppBundle:Search:list.html.twig', array(\n 'entities' => $entities,\n ));\n }", "title": "" }, { "docid": "569c0dd199b701a6c64c22fbad401f71", "score": "0.6239343", "text": "public function findAll() {\n return $this->createQueryBuilder()\n ->orderBy('ID', 'ASC')\n ->buildQuery()\n ->getResults();\n }", "title": "" }, { "docid": "662fa63869e591070b40daaf5cd6aec8", "score": "0.62330985", "text": "public function get_all_records()\n\t{\n\t\treturn self::read(\"SELECT * FROM {$this->tbl} ORDER BY name\");\n\t}", "title": "" }, { "docid": "313356a15373fab07503ee77925d4686", "score": "0.6231348", "text": "public function listEntities()\n {\n return $this->client->call(array(\n 'method' => 'glpi.listEntities'\n ));\n }", "title": "" }, { "docid": "04b7fefc3fb05653047b9e806d815a5f", "score": "0.6230795", "text": "public function index()\n {\n $record = new Record();\n $records = $record->list();\n return view('record.index',compact('records'));\n }", "title": "" }, { "docid": "380745615f5581fa5d05c37d76055b13", "score": "0.6224325", "text": "public static function listAll() {\n\t\t}", "title": "" }, { "docid": "e56205754b241bcc0f18ec80090720d0", "score": "0.6213538", "text": "public function listAll()\n {\n }", "title": "" }, { "docid": "223999e9a02d01dc0cad36705dec31b1", "score": "0.6210793", "text": "public function actionList() {\n $this->_getList();\n }", "title": "" }, { "docid": "c699d8de32037232f9117eefd60fbc07", "score": "0.62014145", "text": "public function fetchAll() {}", "title": "" }, { "docid": "42958312e9e2c56c01fc6d31bcff147b", "score": "0.6199205", "text": "public function getAll()\n\t{\n\t\treturn $this->model->get();\n\t}", "title": "" }, { "docid": "92c06e35bd830ce17f66e97cba6629e7", "score": "0.61851543", "text": "public static function getAll(){\n\t\t$query = \"SELECT * FROM \" . static::$table_name;\n\t\t\n\t\t$classname = get_called_class();\n\t\t$objs = SQL::query($query, array($classname, 'constructFromRecord'));\n\t\t$objs = static::markLoaded($objs);\n\t\t\n\t\treturn $objs;\n\t}", "title": "" }, { "docid": "093f60a6ca8398f51190b0b492f31b2f", "score": "0.6181649", "text": "public function index()\n {\n $entidades = Entity::all(); \n return $entidades;\n\n }", "title": "" }, { "docid": "75c070c82eba99053ac48472e5bc1f7f", "score": "0.6165736", "text": "public static function getAll(){\n\t\t$sql = \"select * from \".self::$tablename.\" order by id desc\";\n\t\t$query = Executor::doit($sql);\n\t\treturn Model::many($query[0],new FlotaData());\n\t}", "title": "" }, { "docid": "cf0a7d6dc4f5d7d8fc30aa729e96abbe", "score": "0.61537266", "text": "public function showAll()\n {\n $mrecords = DB::table('mrecords')\n ->leftJoin('basis', 'basis.id', '=', 'mrecords.basis_id')\n ->select('mrecords.id', 'mrecords.case_date', 'basis.name', 'mrecords.pid', 'mrecords.cure_stage')\n ->where('mrecords.hosp_id', $this->hospid)\n ->orderBy('mrecords.created_at', 'DESC')\n ->paginate(20);\n// ->get();\n\n// return $this->respondWith($mrecords, new MrecordsTransformer);\n return $mrecords;\n }", "title": "" }, { "docid": "30c23a5fc8d1de87ca8e82291e0410e2", "score": "0.6151652", "text": "public function getAll()\r\n {\r\n }", "title": "" }, { "docid": "524003fe030637a12fa995a05e44de53", "score": "0.61413944", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('AcmePedidoBundle:PedidoModelo')->findAll();\n\n return array(\n 'entities' => $entities,\n );\n }", "title": "" }, { "docid": "8d49aca47b45b2cd1b8ef72e0e1616a5", "score": "0.61334705", "text": "public function getAllRecords()\n {\n return $this->aryRecords;\n }", "title": "" }, { "docid": "ff8965e608348b85af78c6ffc85602a1", "score": "0.6131628", "text": "public function allAction()\n {\n \t$repository=$this->getDoctrine()->getRepository('FCTBundle:Alumno');\n\n \t//RECUPERAMOS TODOS LOS REGISTROS DE LA TABLA EMPRESA\n \t$alumnos=$repository->findAll();\n\n return $this->render('FCTBundle:Alumno:all.html.twig', array(\"alumnos\"=>$alumnos));\n }", "title": "" }, { "docid": "574d66bb1128b847c498baa2becce563", "score": "0.6127793", "text": "public function indexAction() {\r\n $em = $this->getDoctrine()->getManager();\r\n\r\n $entities = $em->getRepository('GestionEmploisBundle:Emploi')->findAll();\r\n\r\n return $this->render('GestionEmploisBundle:Emploi:index.html.twig', array(\r\n 'entities' => $entities,\r\n ));\r\n }", "title": "" }, { "docid": "7d34db5ba33a11a54d63a16780c91fe9", "score": "0.6122675", "text": "public function getAll()\n {\n $result = $this->_model->get();\n\n return $result;\n }", "title": "" }, { "docid": "bcb5195ddfb190dcd7d1cb464966fa39", "score": "0.6120282", "text": "protected function indexAction()\n {\n /* Select all rows request */\n $this->crudHelper->get($this->mapper);\n }", "title": "" }, { "docid": "0fca4b36e6a439773a1dea2af5880c83", "score": "0.609963", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n $entities = $em->getRepository('LangLanguageBundle:Idiorec')->findAll();\n return array('entities' => $entities);\n }", "title": "" }, { "docid": "d7cfa3fa5990ee648c1f7c9042daeb31", "score": "0.6093315", "text": "public function index()\n {\n return $this->model->all();\n }", "title": "" }, { "docid": "6ac59a644c1a5259d26d51f62d14e5d2", "score": "0.60928357", "text": "public function fetchAll() {\r\n\t\treturn $this->fetchList(null, null, null, null);\r\n\t}", "title": "" }, { "docid": "f7612b9bf6dc2528dd7d9d7ccc58afef", "score": "0.60906124", "text": "public function getAll() {\n\n if(empty($this->_model)) {\n $this->data = $this->error('Object not found', 404);\n return;\n }\n\n $this->run(function() {\n $page = Input::get('page');\n $per_page = Input::get('per_page');\n $method = empty($this->_remap['getAll']) ? 'find' : $this->_remap['getAll'];\n $order = Input::get('order');\n $model = Load::model($this->_model);\n if(empty($order)) {\n $order = 'id ASC';\n } else {\n $order = explode('|', $order);\n $col = empty($order[0]) ? 'id' : $order[0];\n $type = empty($order[1]) ? 'ASC' : strtoupper($order[1]);\n if($type !== 'ASC' && $type !== 'DESC') {\n $type = 'ASC';\n }\n if(!in_array($col, $model->fields)) {\n $col = 'id';\n }\n $order = \"$col $type\";\n }\n if(!empty($this->_remap['getAll'])) {\n return $model->$method(Input::get());\n } else if($page !== 'all') {\n return $model->paginated(\"order: $order\", \"page: $page\", \"per_page: $per_page\");\n } else {\n return $model->$method(\"order: $order\");\n }\n });\n\n }", "title": "" }, { "docid": "d1b243aa3b9ada5174dcd3dee5386a71", "score": "0.6089959", "text": "public function actionList() {\n\t\t$searchModel = DynamicSearchRecord::forModel ( $this->modelClassname );\n\t\t$dataProvider = $searchModel->search ( \\Yii::$app->request->queryParams );\n\t\t\n\t\treturn $this->owner->render ( 'list.json', [ \n\t\t\t\t'searchModel' => $searchModel,\n\t\t\t\t'dataProvider' => $dataProvider \n\t\t] );\n\t}", "title": "" }, { "docid": "a82a1983e648389df94250b15259efd9", "score": "0.60844547", "text": "public function fetchAll() {\r\n }", "title": "" }, { "docid": "e2e662c91966826ebe74fd319b463b17", "score": "0.60827744", "text": "function getAll(){\n\t\t$criteria = ModuleEntityPeer::getSearchCriteria();\n\t\t$allObjects = ModuleEntityPeer::doSelect($criteria);\n\t\treturn $allObjects;\n\t}", "title": "" }, { "docid": "6a71dea2ba6f9050d444ff962aae2f7a", "score": "0.6078156", "text": "public function showAll() {\n\t\t$this->show();\n\t}", "title": "" }, { "docid": "cc5d28e75ee26e5e0ad6846c583f120d", "score": "0.6063458", "text": "public function indexAction()\r\n {\r\n $em = $this->getDoctrine()->getManager();\r\n\r\n $entities = $em->getRepository('BrasserieBundle:Levure')->findBy([], ['nom' => 'ASC']);\r\n\r\n return array(\r\n 'entities' => $entities,\r\n );\r\n }", "title": "" }, { "docid": "102f8a49c87b091f66aa02ed74d75cea", "score": "0.6053568", "text": "public function all()\n {\n return $this->model->get();\n }", "title": "" }, { "docid": "102f8a49c87b091f66aa02ed74d75cea", "score": "0.6053568", "text": "public function all()\n {\n return $this->model->get();\n }", "title": "" }, { "docid": "5f26b86ab7fae32824213a0f926e3bc9", "score": "0.60534453", "text": "public function getAll (){\n extract( $this->kernel->params );\n\n $list = $this->kernel->db->getAll(\"SELECT * FROM {$this->table} WHERE {$this->filter[\"where\"]} $group_by $order_by LIMIT {$this->filter[\"start\"]}, {$this->filter[\"per_page\"]}\");\n\n return $list;\n\n }", "title": "" }, { "docid": "26b71fb578321a0935c2ecdff45d3b80", "score": "0.6051892", "text": "public function listAction()\n {\n return $this->render(\n 'AppBundle:employee:list.html.twig',\n [\n 'employees' => $this->get('employee')->loadEmployees(),\n ]\n );\n }", "title": "" }, { "docid": "b11d6ab868b32cd021f74ada9665f851", "score": "0.60511553", "text": "public function indexAllRecords(){\n /** @noinspection PhpParamsInspection */\n XmlUtils::emptyNode($this->allRecords->firstChild);\n foreach ($this->modelsFromFileSystem() as $m){\n $n=$this->allRecords->createElement($m->getType());\n $n->setAttribute(\"id\",$m->getId());\n $this->allRecords->firstChild->appendChild($n);\n }\n XmlUtils::save($this->allRecords,$this->allRecordsUrl);\n }", "title": "" }, { "docid": "2cc9d5a2611d94e6c72655c9070fec0e", "score": "0.6045356", "text": "public function getAll()\n {\n }", "title": "" }, { "docid": "2cc9d5a2611d94e6c72655c9070fec0e", "score": "0.6045356", "text": "public function getAll()\n {\n }", "title": "" }, { "docid": "2cc9d5a2611d94e6c72655c9070fec0e", "score": "0.6045356", "text": "public function getAll()\n {\n }", "title": "" }, { "docid": "2cc9d5a2611d94e6c72655c9070fec0e", "score": "0.6045356", "text": "public function getAll()\n {\n }", "title": "" }, { "docid": "2cc9d5a2611d94e6c72655c9070fec0e", "score": "0.6045356", "text": "public function getAll()\n {\n }", "title": "" }, { "docid": "36194cf379ae04777d46d9148af69aa7", "score": "0.6044911", "text": "public function fetchAll();", "title": "" }, { "docid": "36194cf379ae04777d46d9148af69aa7", "score": "0.6044911", "text": "public function fetchAll();", "title": "" }, { "docid": "36194cf379ae04777d46d9148af69aa7", "score": "0.6044911", "text": "public function fetchAll();", "title": "" }, { "docid": "36194cf379ae04777d46d9148af69aa7", "score": "0.6044911", "text": "public function fetchAll();", "title": "" }, { "docid": "36194cf379ae04777d46d9148af69aa7", "score": "0.6044911", "text": "public function fetchAll();", "title": "" }, { "docid": "36194cf379ae04777d46d9148af69aa7", "score": "0.6044911", "text": "public function fetchAll();", "title": "" }, { "docid": "ff7b9b0b2610bec017a23bdf07c0fadc", "score": "0.6042748", "text": "public function index()\n {\n\n // SECURITY:\n // if view_table_permission is false, abort\n if (isset($this->crud['view_table_permission']) && !$this->crud['view_table_permission']) {\n abort(403, 'Not allowed.');\n }\n\n // get all results for that entity\n $model = $this->crud['model'];\n\n if (isset($this->crud['is_translate']) && $this->crud['is_translate'] == true) {\n $this->data['entries'] = $model::orderby('id', 'ASC')->get();\n } else {\n $this->data['entries'] = $model::all();\n }\n\n // add the fake fields for each entry\n //dd($this->data['entries']);\n //foreach ($this->data['entries'] as $key => $entry) {\n // $entry->addFakes($this->getFakeColumnsAsArray());\n //}\n\n $this->prepareColumns();\n $this->data['crud'] = $this->crud;\n\n // load the view from /resources/views/vendor/dick/crud/ if it exists, otherwise load the one in the package\n\n return $this->firstViewThatExists('vendor.infinety.crud.list', 'crud::list', $this->data);\n }", "title": "" }, { "docid": "88f0cc2a016695e599b89167d9e01086", "score": "0.60368603", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getEntityManager();\n\n $entities = $em->getRepository('OGInversaBundle:Location')->findAll();\n\n return array('entities' => $entities);\n }", "title": "" }, { "docid": "f8060b718a691ead867997a0fba76d79", "score": "0.6035396", "text": "public function findAll() {\n // $stmt->execute();\n // return $stmt->fetchAll();\n return $this->$entityClassName;\n }", "title": "" }, { "docid": "01eba82aeb404145ebd4f1bb6a2b50e5", "score": "0.60304767", "text": "public function index() {\n //Doctrine\n return $this->repository->findAll();\n //Eloquent\n //return $this->repository->all();\n }", "title": "" }, { "docid": "8b83c37324f905abeda31d729c639f89", "score": "0.602815", "text": "public function getAll()\n {\n $data = $this->getTable(NULL)->get();\n return $data;\n }", "title": "" }, { "docid": "8b83c37324f905abeda31d729c639f89", "score": "0.602815", "text": "public function getAll()\n {\n $data = $this->getTable(NULL)->get();\n return $data;\n }", "title": "" }, { "docid": "3794b4077b3bcfa3cf5661c1dc05c270", "score": "0.60280734", "text": "public function index()\n {\n $records = $this->recordRepository->getRecords();\n\n return view('records.index', compact('records'));\n }", "title": "" }, { "docid": "fe3c8f246be414d7f0b3c5ae2dfd1ba3", "score": "0.60271406", "text": "public function show(Records $records)\n {\n //\n }", "title": "" }, { "docid": "6ff4ba34bbb45c5132ca02d3772948c0", "score": "0.6024962", "text": "public function all($limit=1000)\n {\n $this->model->get($limit);\n }", "title": "" }, { "docid": "325b02b12c225733336f2c0994b96aae", "score": "0.6022572", "text": "public function all() {\n $query = $this->tableData->getAllSQL();\n $result = $this->runQuery($query);\n\n $entities = array();\n while ($obj = $result->fetch_object()) {\n $this->addRelatedDataToObj($obj);\n $entities[] = $entity = $this->cast($obj);\n }\n\n return $entities;\n }", "title": "" }, { "docid": "b77735ad46fe36c7703267a37802902c", "score": "0.60201675", "text": "public function getEntities();", "title": "" }, { "docid": "be7695092c92ff8462351c02c4ec756d", "score": "0.60192204", "text": "public function listar()\n {\n return $this->fetchAll();\n }", "title": "" }, { "docid": "8867deb779456d5ddb47aa51a4b25985", "score": "0.60160494", "text": "public function index() {\n $this->all();\n }", "title": "" }, { "docid": "866ea991ca4e79e2f64d193c5cdc21fa", "score": "0.60152525", "text": "public function getAll()\n {\n return $this->list;\n }", "title": "" } ]
8eefbab3c2a7023a9fcf1b6f7b28508d
Setup before running any test cases
[ { "docid": "9d1502740064b5af8c6f0112cb5fa01a", "score": "0.0", "text": "public static function setUpBeforeClass()\n {\n }", "title": "" } ]
[ { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8299198", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8299198", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8299198", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8299198", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8299111", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8299111", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8299111", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8299111", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8299111", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8299111", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8299111", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298778", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298778", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298778", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298778", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298778", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298778", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298778", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298778", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298778", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298778", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298778", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298778", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298778", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298778", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298778", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298778", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298669", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298669", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298669", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298669", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298669", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298669", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.8298669", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.82985723", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.82985723", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.82985723", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.829808", "text": "protected function setUp() {}", "title": "" }, { "docid": "b53016c53f88acd8aee5288aae9a6699", "score": "0.8260909", "text": "protected function setUp(){}", "title": "" }, { "docid": "1058a42ede52db31478b23066d2246d1", "score": "0.8223157", "text": "protected function setUp() {\n\t\tparent::setUp();\n\t\t$this->results = new Results(\"\");\n\t}", "title": "" }, { "docid": "0daddd8a7500a92bf6013d223395a268", "score": "0.81765306", "text": "public function setup() {}", "title": "" }, { "docid": "e827d1f57717e8ae2d54eb799a26f2f8", "score": "0.81542856", "text": "function setUp() {\n\t\t\n\t}", "title": "" }, { "docid": "056b53071654ee43ccd7e932beef616a", "score": "0.81265783", "text": "public function setup(){}", "title": "" }, { "docid": "587da07f52fade59760dc9f651958094", "score": "0.8106448", "text": "private function setup()\r\n\t{ }", "title": "" }, { "docid": "f169945faff48a3dd60341456f310bf2", "score": "0.8101997", "text": "protected function setUp() {\n\t}", "title": "" }, { "docid": "f169945faff48a3dd60341456f310bf2", "score": "0.8101997", "text": "protected function setUp() {\n\t}", "title": "" }, { "docid": "058a3ceae157c87e019241c5067515e5", "score": "0.80816454", "text": "protected function setUp() { }", "title": "" }, { "docid": "6e8be49102eb7e0bb1134443fde78833", "score": "0.8051928", "text": "protected function setup(){\n }", "title": "" }, { "docid": "f3b144baf27c06c129ffe4c3e8f379bf", "score": "0.8031149", "text": "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\t}", "title": "" } ]
e7c41335a037e2f98797eddbe15bd898
Sets the Product remote ID.
[ { "docid": "ce61c2a9bf482f80c5047ec04ca2bf57", "score": "0.6923654", "text": "public function setRemoteId($id);", "title": "" } ]
[ { "docid": "99c324e4e5dba84f7d9f4fae117bff62", "score": "0.7211455", "text": "function setRemoteID( $value )\r\n {\r\n $this->RemoteID = $value;\r\n }", "title": "" }, { "docid": "cc4496dc290334e7378af90b610ab0b2", "score": "0.6462813", "text": "public function setProductID($value)\n {\n return $this->set('ProductID', $value);\n }", "title": "" }, { "docid": "cd427ad6d8a076e781bc673adbace835", "score": "0.6303281", "text": "public function setProductId($id)\n {\n $this -> productId = $id;\n }", "title": "" }, { "docid": "5f6211b513e668a47e3077990ab8322e", "score": "0.6292344", "text": "function setLinkToRemoteElementId( $elementId )\n {\n $this->linkToRemoteElementId = $elementId;\n }", "title": "" }, { "docid": "c2dafaef730fb14887da16f3ccb9ca6e", "score": "0.6248269", "text": "public function set_product_id( $product_id ) {\n\t\t\tglobal $sitepress;\n\n\t\t\tif( defined('ICL_SITEPRESS_VERSION') ) {\n\t\t\t\t$product_id = yit_wpml_object_id( $product_id, 'product', true, $sitepress->get_default_language() );\n\t\t\t}\n\n\t\t\tif( ! empty( $this->product ) ){\n\t\t\t\t$this->product = null;\n\t\t\t}\n\n\t\t\t$this->set_prop( 'product_id', $product_id );\n\t\t}", "title": "" }, { "docid": "3e362036b95d3c2def5fceeedb28df6f", "score": "0.62424", "text": "public function AssignProduct()\n\t{\t$this->product = new AdminStoreProduct($_GET['id']);\n\t}", "title": "" }, { "docid": "dfebbd18b856af97565b9804ebc92751", "score": "0.6096232", "text": "public function set_product_id($product_id = 0) {\n $this->set_entry_id($product_id);\n }", "title": "" }, { "docid": "1f88629939d03096576b89774a032fc4", "score": "0.6074592", "text": "function set_kit_product_id($kit_product_id) {\n\t$this->kit_product_id = $kit_product_id;\n\t$this->order_products->kit_product_id = $kit_product_id;\n }", "title": "" }, { "docid": "447ef9058a25202486abc10bb90e92fe", "score": "0.58390677", "text": "public function setIdPRODUCTOS($idPRODUCTOS){\n $this->idPRODUCTOS = $idPRODUCTOS;\n }", "title": "" }, { "docid": "0efb86394b5ad62a0feba90f3ff31741", "score": "0.5837441", "text": "public function setProductsPrid($productsPrid){\n $this->productsPrid = $productsPrid;\n}", "title": "" }, { "docid": "29e87dd51be683e3d28f66bc861b6542", "score": "0.5796765", "text": "public function setProductId($productId)\n {\n $this->setData('productId', $productId);\n }", "title": "" }, { "docid": "049065a6f1cc4cfca0ebb5bf50f58c59", "score": "0.5746857", "text": "function remoteID( )\r\n {\r\n return $this->RemoteID;\r\n }", "title": "" }, { "docid": "9f3555e46943a8f1e10a3e38a89f146e", "score": "0.57391083", "text": "public function setInvoiceId()\n {\n $order = $this->orderHelper->getGivenValueFromRegistry('current_mag_order');\n\n if ($order->hasInvoices()) {\n $this->orderHelper->registerGivenValueInRegistry('current_invoice_id', true);\n }\n }", "title": "" }, { "docid": "bc826572880fc9604177dfd5819733c3", "score": "0.5712043", "text": "protected function _setProductIdsFromValue()\n {\n $this->_productIds = $this->_keyColumnIdValue;\n }", "title": "" }, { "docid": "4a5fe161f571469763b815d44f835921", "score": "0.56688267", "text": "function setProduct($product)\n {\n $this->product = $product;\n }", "title": "" }, { "docid": "dc0f9be7d1bef18d2a600d551e4e3d52", "score": "0.56434286", "text": "public function set_persistent_id($v) {$this->id=$v;}", "title": "" }, { "docid": "8a7f6e80cf2a073d5e5e469a321d8c0a", "score": "0.562807", "text": "function SetId($value) { $this->id=$value; }", "title": "" }, { "docid": "8a7f6e80cf2a073d5e5e469a321d8c0a", "score": "0.562807", "text": "function SetId($value) { $this->id=$value; }", "title": "" }, { "docid": "8a7f6e80cf2a073d5e5e469a321d8c0a", "score": "0.562807", "text": "function SetId($value) { $this->id=$value; }", "title": "" }, { "docid": "8a7f6e80cf2a073d5e5e469a321d8c0a", "score": "0.562807", "text": "function SetId($value) { $this->id=$value; }", "title": "" }, { "docid": "3dc43c738fe09cb11a7748ab7529ab96", "score": "0.5624583", "text": "public function setRemoteId($rid)\n {\n return $this->setProperty('rid', (int) $rid);\n }", "title": "" }, { "docid": "e061f59a0035c6c30ec6a8d7ef937753", "score": "0.5580549", "text": "public function getIdProduct()\n {\n return $this->idProduct;\n }", "title": "" }, { "docid": "e061f59a0035c6c30ec6a8d7ef937753", "score": "0.5580549", "text": "public function getIdProduct()\n {\n return $this->idProduct;\n }", "title": "" }, { "docid": "4bf139696f99e96c082860279c38ee64", "score": "0.5576404", "text": "public function setProductId($productId);", "title": "" }, { "docid": "51f85f20bffe358ad0b4a488029ad0c8", "score": "0.5573922", "text": "public function setProductIds($productIds) {\n\t\t$this->productIds = $productIds;\n\t\t$this->getDataProvider()->setArrayParam('id', $productIds);\n\t\t$this->recommendationUpToDate = false;\n\t}", "title": "" }, { "docid": "1c99bb728e2b5b8c1c857a41aaed7303", "score": "0.55672675", "text": "public function setIdProduct($idProduct)\n {\n $this->idProduct = $idProduct;\n\n return $this;\n }", "title": "" }, { "docid": "1c99bb728e2b5b8c1c857a41aaed7303", "score": "0.55672675", "text": "public function setIdProduct($idProduct)\n {\n $this->idProduct = $idProduct;\n\n return $this;\n }", "title": "" }, { "docid": "f64a2e39f8fb9e7106b0768e1b40de24", "score": "0.555131", "text": "public function showProductID(){\n echo($this->id);\n }", "title": "" }, { "docid": "6e85c5324d985573b91b0ac44106fdc5", "score": "0.55480003", "text": "public function setProductId($productId){\n $this->productId = $productId;\n}", "title": "" }, { "docid": "4e84b3d709e65381381d6da3a9f721bc", "score": "0.5510818", "text": "public function getRemoteId();", "title": "" }, { "docid": "d37c12c135a697314c022bf68805c2b3", "score": "0.5509385", "text": "public function getRemoteId() {\n\t\tif ($this -> type == 'serial' && isset($this -> remote_id)) {\n\t\t\treturn $this -> remote_id;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "862a4010ebc0ee7403381134116a5e00", "score": "0.54682547", "text": "public function setProductMerchantIdUnwrapped($var)\n {\n $this->writeWrapperValue(\"product_merchant_id\", $var);\n return $this;}", "title": "" }, { "docid": "51e87ab76bb71a491bcca7bc689ed1b4", "score": "0.544357", "text": "private function setMediaId(){\n \n $mediaId = $this->entity->field_media_id->value;\n \n $urlparts = parse_url($mediaId);\n \n //media ID value is an URL\n if($urlparts !== FALSE){\n \n //query paramter found, media ID in v or vi parameter\n if(isset($urlparts['query'])){\n \n parse_str($urlparts['query'], $query);\n\n if(isset($query['v']))\n $mediaId = $query['v'];\n else if(isset($query['vi']))\n $mediaId = $query['vi'];\n \n //mediaID is parth of path\n }elseif(isset($urlparts['path'])){\n $pathparts = explode('/', trim($urlparts['path'], '/'));\n $mediaId = end($pathparts);\n }\n }\n \n $this->mediaId = $mediaId . '?color=white&disablekb=1&iv_load_policy=3&rel=0&showinfo=0&theme=light';\n \n }", "title": "" }, { "docid": "cec11121200f9c97a5a7b13aa5d61fe7", "score": "0.5439905", "text": "public function setProductionId($v)\n\t{\n\r\n\t\t// Since the native PHP type for this column is integer,\r\n\t\t// we will cast the input value to an int (if it is not).\r\n\t\tif ($v !== null && !is_int($v) && is_numeric($v)) {\r\n\t\t\t$v = (int) $v;\r\n\t\t}\r\n\n\t\tif ($this->production_id !== $v) {\n\t\t\t$this->production_id = $v;\n\t\t\t$this->modifiedColumns[] = ElementPeer::PRODUCTION_ID;\n\t\t}\n\n\t\tif ($this->aProduction !== null && $this->aProduction->getProductionId() !== $v) {\n\t\t\t$this->aProduction = null;\n\t\t}\n\n\t}", "title": "" }, { "docid": "6354cf3227dc24c2ca49131b532aeceb", "score": "0.5376033", "text": "public function setIdproductos($idproductos){\n $this->idproductos = $idproductos;\n }", "title": "" }, { "docid": "3285166653f701776d283bdf5e7f9f31", "score": "0.5366325", "text": "function getProductID() {\n\t\treturn $this->_ProductID;\n\t}", "title": "" }, { "docid": "520aae4b36540ca283f72938102063aa", "score": "0.53441906", "text": "public function setID()\n {\n }", "title": "" }, { "docid": "b9b05e1d9bd913e4e745a7097d50ad3b", "score": "0.5315484", "text": "public function setProductId($product_id)\n\t{\n\t\t$column = self::COL_PRODUCT_ID;\n\t\t$this->$column = $product_id;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "2d131557325d5f61ec680319aa57644f", "score": "0.53060246", "text": "public function setProductUrl($productUrl)\n {\n $this->setData('productUrl', $productUrl);\n }", "title": "" }, { "docid": "31958db3062d5b27c3525e3a52e3c95c", "score": "0.5305285", "text": "public function setProductId( $id )\n\t{\n\t\tif( (string) $id !== $this->getProductId() )\n\t\t{\n\t\t\t$this->values['order.base.product.productid'] = (string) $id;\n\t\t\t$this->setModified();\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "15c066e0214793d2324ce111ee56cad5", "score": "0.52780783", "text": "public function productByIdAction(){\n\t\t$this->json = $this->getProductById($this->requestId);\n\t}", "title": "" }, { "docid": "50212065845693401947e77cc8b1af16", "score": "0.5274606", "text": "public function setPackageId(?string $value): void {\n $this->getBackingStore()->set('packageId', $value);\n }", "title": "" }, { "docid": "33f4f7f1dc59b33ee618d93ca44697d3", "score": "0.5255953", "text": "function setProductID($inProductID) {\n\t\tif ( $inProductID !== $this->_ProductID ) {\n\t\t\t$this->_ProductID = $inProductID;\n\t\t\t$this->setModified();\n\t\t}\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "56b9dce05142f2869d5d19a4715581f3", "score": "0.52483606", "text": "public function setProductStoreIdUnwrapped($var)\n {\n $this->writeWrapperValue(\"product_store_id\", $var);\n return $this;}", "title": "" }, { "docid": "c5c48a63c62f736eed1f213716dd9132", "score": "0.5243756", "text": "function set_id($id) {\n $this->id = $id;\n }", "title": "" }, { "docid": "d01456ed2ffcdf584b5c731900c7f970", "score": "0.52313495", "text": "function setId($id)\n {\n $this->__id = $id ;\n }", "title": "" }, { "docid": "7e98fde5e1008de666ca8b29e9ba2a20", "score": "0.522604", "text": "public function getRemoteId()\n {\n return $this->getProperty('rid');\n }", "title": "" }, { "docid": "160ebbbd4ef144442a8e0eb40bfd4b06", "score": "0.522221", "text": "public function setID($id){\n $this->id = $id;\n }", "title": "" }, { "docid": "7642265cbcac868fe65f5854a6e080be", "score": "0.52167445", "text": "public function setId($value){\n $this->id=$value;\n }", "title": "" }, { "docid": "52efa4e5eb6def225b403548a96b53c4", "score": "0.5168131", "text": "public function setId($value)\n {\n $this->_id = $value;\n }", "title": "" }, { "docid": "ff0e573cbb7b7caeace5c3c7cec4573f", "score": "0.5134883", "text": "public function setValueId($vi){\n\t\t$this->valueId = $vi;\n\t}", "title": "" }, { "docid": "0e6a8ac3bb1079d893830caa3d0beca2", "score": "0.51336837", "text": "public function setId($v) {\r\n\t\t\t$this->_id = $v;\r\n\t\t\treturn $this;\r\n\t\t}", "title": "" }, { "docid": "1bf432326a56f3aa1698170174304287", "score": "0.5124556", "text": "public function setId($value) {\n $this->id=$value;\n }", "title": "" }, { "docid": "1f9d58a77e4a18de66651e40b976845b", "score": "0.51120514", "text": "public function set_id($var) {\r\n\t\t$this->id = $var;\r\n\t}", "title": "" }, { "docid": "7f6a32f9c856c950068b2a8b44572a0d", "score": "0.5095706", "text": "public static function set_remote_key( $key ) {\n\t\tself::$remote_key = self::hash_key( $key );\n\t\tupdate_option( self::$remote_key_input_name, self::$remote_key );\n\t}", "title": "" }, { "docid": "4e2a33360adcac7288914ccca86bb2de", "score": "0.5083676", "text": "function setId($id) {\r\n\t\t$this->id = $id;\r\n }", "title": "" }, { "docid": "4e2a33360adcac7288914ccca86bb2de", "score": "0.5083676", "text": "function setId($id) {\r\n\t\t$this->id = $id;\r\n }", "title": "" }, { "docid": "4e2a33360adcac7288914ccca86bb2de", "score": "0.5083676", "text": "function setId($id) {\r\n\t\t$this->id = $id;\r\n }", "title": "" }, { "docid": "6e356bf5cce72206a0217256ab667259", "score": "0.5076228", "text": "public function setProductId($newProductId) {\n\t\t$newProductId = filter_var($newProductId, FILTER_VALIDATE_INT);\n\t\t//if filter_var rejects the variable, throw an exception\n\t\tif($newProductId === false) {\n\t\t\tthrow(new InvalidArgumentException(\"Product Id is not a proper int\"));\n\t\t}\n\t\t//If $newProductId is not positive, throw an exception.\n\t\tif($newProductId <= 0) {\n\t\t\tthrow(new RangeException(\"Product ID must be positive\"));\n\t\t}\n\t\t$this->productId = intval($newProductId);\n\t}", "title": "" }, { "docid": "c0bccb124912af406b5c14560564af0c", "score": "0.5071365", "text": "public function setObjectId(?string $value): void {\n $this->getBackingStore()->set('objectId', $value);\n }", "title": "" }, { "docid": "5834577d50f0fb29ccef06fb983f9874", "score": "0.50661856", "text": "function getProductUUID()\n {\n return $this->product_uuid;\n }", "title": "" }, { "docid": "7453890758d196aac1db8d4d00d17202", "score": "0.5065066", "text": "public function setID($id) {\n $this->id = $id;\n }", "title": "" }, { "docid": "857f84f0a90925e74c59b4de8d0eaaca", "score": "0.50618184", "text": "public function set_id($_id)\n {\n $this->_id = $_id;\n\n }", "title": "" }, { "docid": "b6123be1df6e3cad396d511adef31a8e", "score": "0.5057016", "text": "public function setRemoteItem($val)\n {\n $this->_propDict[\"remoteItem\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "7b0764a66424ab45dfe6ff13f0de54a4", "score": "0.505369", "text": "public function setSiteId(string $set);", "title": "" }, { "docid": "cb33401379b6daf604ea4765c643f642", "score": "0.5049265", "text": "public function setID($value)\n {\n $this->setProperty(\"ID\", $value, true);\n }", "title": "" }, { "docid": "ae3fc89183b639a9c90c0b96acb004e7", "score": "0.50477016", "text": "function setId($id) {\n $this->id = $id;\n }", "title": "" }, { "docid": "c184dbed0bc8961039189d2461d0d60f", "score": "0.50460994", "text": "public function set_id($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "f6f83778cabc749f7cba69481df0f79a", "score": "0.50369054", "text": "public function updatesimpleproductAction() {\n $configProductId = $this->getRequest ()->getPost ( 'product_id' );\n $set = $this->getRequest ()->getPost ( 'set' );\n Mage::helper ( 'marketplace' )->checkMarketplaceKey ();\n $this->checkWhetherSellerOrNot ();\n /**\n * Get simple product id\n */\n $simpleProductId = $this->getRequest ()->getPost ( 'simple_product_id' );\n /**\n * Check the simple product id is not empty\n */\n if (! empty ( $simpleProductId )) {\n $product = Mage::getModel ( 'catalog/product' )->load ( $simpleProductId );\n /**\n * Check the customer is logged in already\n * if so retrieve the seller id\n */\n if (Mage::getSingleton ( 'customer/session' )->isLoggedIn ()) {\n $sellerId = Mage::getSingleton ( 'customer/session' )->getCustomer ()->getId ();\n }\n /**\n * Check the seller id is not equal to the product seller id\n * if it is then redirect to the the seller product confugurable\n */\n if ($sellerId != $product->getSellerId ()) {\n $this->_redirect ( 'marketplace/sellerproduct/configurable/', array (\n 'id' => $configProductId,\n 'set' => $set \n ) );\n return;\n }\n /**\n * Attribute set\n */\n $set = $this->getRequest ()->getPost ( 'set' );\n /**\n * Getting product data from product array\n */\n $productData = $this->getRequest ()->getPost ( 'simple_product' );\n /**\n * Adding data to product instanse\n */\n if (! empty ( $productData )) {\n $product->addData ( $productData );\n }\n /**\n * Adding data to product instanse\n */\n $product = Mage::helper ( 'marketplace/product' )->getProductNameInfo ( $product, $productData ['name'] );\n $product = Mage::helper ( 'marketplace/product' )->getProductSkuInfo ( $product, $productData ['sku'] );\n $product = Mage::helper ( 'marketplace/product' )->getProductWeightInfo ( $product, $productData ['weight'] );\n /**\n * Initilize product store\n */\n $store = Mage::app ()->getStore ()->getId ();\n $product->setStoreId ( $store );\n /**\n * Saving new product\n */\n try {\n Mage::app ()->setCurrentStore ( Mage_Core_Model_App::ADMIN_STORE_ID );\n $product->save ();\n $configurableProductsData = array ();\n $configProduct = Mage::getModel ( 'catalog/product' )->load ( $configProductId );\n $attributes = $this->getRequest ()->getPost ( 'attributes' );\n $configurableProductsData = Mage::helper ( 'marketplace/product' )->getconfigurableProductsData ( $attributes, $productData, $configProduct );\n $configAttributes = $configProduct->getTypeInstance ()->getConfigurableAttributesAsArray ();\n Mage::helper ( 'marketplace/product' )->assignConfigurableProductData ( $configAttributes, $configurableProductsData, $configProduct );\n Mage::app ()->setCurrentStore ( $store );\n /**\n * Success message redirect to manage product page\n */\n Mage::getSingleton ( 'core/session' )->addSuccess ( $this->__ ( 'Associated Product details updated successfully.' ) );\n $this->_redirect ( 'marketplace/sellerproduct/configurable/', array (\n 'id' => $configProductId,\n 'set' => $set \n ) );\n return;\n } catch ( Mage_Core_Exception $e ) {\n Mage::getSingleton ( 'core/session' )->addError ( $this->__ ( $e->getMessage () ) );\n $this->_redirect ( 'marketplace/sellerproduct/configurable/', array (\n 'id' => $configProductId,\n 'set' => $set \n ) );\n } catch ( Exception $e ) {\n Mage::getSingleton ( 'core/session' )->addError ( $this->__ ( $e->getMessage () ) );\n $this->_redirect ( 'marketplace/sellerproduct/configurable/', array (\n 'id' => $configProductId,\n 'set' => $set \n ) );\n }\n } else {\n $this->_redirect ( 'marketplace/sellerproduct/configurable/', array (\n 'id' => $configProductId,\n 'set' => $set \n ) );\n return;\n }\n }", "title": "" }, { "docid": "f79dcbbaaeb24cc5dc1307999cd9449c", "score": "0.50359064", "text": "public function productAction()\n {\n $reminderId = $this->getRequest()->getParam('reminder', 1);\n $productId = $this->getRequest()->getParam('productid', null);\n\n $this->_saveReminderIdInSession($reminderId);\n\n if ($productId !== null) {\n $product = Mage::getModel('catalog/product');\n $product->load($productId);\n $productUrl = Mage::getModel('catalog/product_url');\n $url = $productUrl->getUrlPath($product);\n\n $this->_redirect($url);\n return;\n }\n\n $this->_redirect('');\n }", "title": "" }, { "docid": "c149d58448ba00a9542f153e9e1ee600", "score": "0.50339955", "text": "public function setId($val) {$this->set($this->id, $val);}", "title": "" }, { "docid": "3a647146c3a74c3bdd88d8d9c19e9c1d", "score": "0.5032282", "text": "private function setUserID() {\n\t\t$userID = null;\n\t\tforeach($this->persistenceDrivers as $persistenceDriver) {\n\t\t\t$userID = $persistenceDriver->load();\n\t\t\tif($userID) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t$this->request->setAttribute(\"user_id\", $userID);\n\t}", "title": "" }, { "docid": "d5f461544a9f2808c206bef7cb49c97a", "score": "0.50306207", "text": "public function set_id($new_id) {\n $this->id = $new_id;\n }", "title": "" }, { "docid": "ba8d022382be7184465d45a6aafd5002", "score": "0.5029618", "text": "function setId($id) {\r\n\t$this->id = $id;\r\n }", "title": "" }, { "docid": "e48851983942c2ceef93d06d198b8f79", "score": "0.5025943", "text": "public function setId($value)\r\n\t\t{\r\n\t\t\t$this->id = $value;\r\n\t\t}", "title": "" }, { "docid": "e48851983942c2ceef93d06d198b8f79", "score": "0.5025943", "text": "public function setId($value)\r\n\t\t{\r\n\t\t\t$this->id = $value;\r\n\t\t}", "title": "" }, { "docid": "ee4c4b6024e9b0eb889d96e309694439", "score": "0.50193876", "text": "public function setId($value)\n {\n $this->id = $value;\n }", "title": "" }, { "docid": "2e48009d39e17ca5932bea89a09f0a20", "score": "0.501529", "text": "public function setid($id){\n $this->id=$id;\n }", "title": "" }, { "docid": "32f786b7facaa737cccdb9b7fc652e48", "score": "0.5009279", "text": "public function setEntityToId($id)\n {\n // try to get from cache\n if(\\Auth::user()->id === $id){\n $this->model = \\Auth::user();\n }\n else {\n $this->model = $this->getModel()->find($id);\n }\n\n $this->items = $this->attributes($this->model);\n }", "title": "" }, { "docid": "2fb289e46f9bcf9ef1514fa2b81796d0", "score": "0.50092685", "text": "function setId($id)\n\t{\n\t\t$this->_id = $id;\n\t}", "title": "" }, { "docid": "805e02367e0134aa360d8653afa924d8", "score": "0.50049055", "text": "public function testSetId()\n {\n // Initialize\n $this->post->setId(54);\n\n // Setting the ID property should work\n $this->assertEquals(54, $this->post->ID);\n }", "title": "" }, { "docid": "6811b54f0800e31909afd211e328284a", "score": "0.50020224", "text": "protected function setSite($v){\n $this->idsapi->setSite($v);\n }", "title": "" }, { "docid": "bb63db015ed93365fdcf7a29776f3503", "score": "0.4998967", "text": "private function setID($newID) {\r\n\t\t$this->id = $newID;\r\n\t}", "title": "" }, { "docid": "7db5946b05a094f8bdbd8eaf641ec775", "score": "0.49973983", "text": "protected function setObjectId($id) {\n $this->objectId = $id;\n }", "title": "" }, { "docid": "da33d4e0e174f9701fff0723f70380f8", "score": "0.49949658", "text": "public function setId($id){\n $this->id = $id;\n }", "title": "" }, { "docid": "da33d4e0e174f9701fff0723f70380f8", "score": "0.49949658", "text": "public function setId($id){\n $this->id = $id;\n }", "title": "" }, { "docid": "da33d4e0e174f9701fff0723f70380f8", "score": "0.49949658", "text": "public function setId($id){\n $this->id = $id;\n }", "title": "" }, { "docid": "5f1c8f0f0bc5d54b87c27591b02f909c", "score": "0.49938148", "text": "public function adminproduct($product_id){\n\t\t\n\t\t\n\t\n\t\t$this->product_req = $product_id[0];\n\t\t$this->get_product_info();\n\t\t\n\t}", "title": "" }, { "docid": "3637b8ff0da76b2e9240bb1b42e0ec6a", "score": "0.4993553", "text": "function aurum_woocommerce_display_product_id_on_product_meta() {\n\t?>\n\t<span>\n\t\t<?php _e( 'Product ID', 'aurum' ); ?>: <strong><?php the_ID(); ?></strong>\n\t</span>\n\t<?php\n}", "title": "" }, { "docid": "b99687e6aab867d4bc6766331ba4e0d9", "score": "0.49929023", "text": "public function setHostingProviderId($id)\n {\n $this->_idHostingProvider = $id;\n }", "title": "" }, { "docid": "5aaa63f77641e5ad7748e7b167cb8ed4", "score": "0.49877548", "text": "public function setId($id) {\n\n $this->id = $id;\n }", "title": "" }, { "docid": "991caf97ad12847f9e9fe104b0062435", "score": "0.49847662", "text": "public function setDoctrineRecord(timpanyProduct $basic_product)\n {\n $this->_id = $basic_product->getId();\n $this->load();\n }", "title": "" }, { "docid": "5ff1b7d07cc4220adda361f1a05195b5", "score": "0.49834165", "text": "function setRemoteHost($remoteHost) {\r\n\r\n\t\t$this->remoteHost = $remoteHost;\r\n\r\n\t}", "title": "" }, { "docid": "29f2ddc9621d6af565f27fa7d254bba3", "score": "0.49814543", "text": "public function setIdentifier($id);", "title": "" }, { "docid": "0cce11d261958cf16ca5e4e8193e6a82", "score": "0.49797294", "text": "public function setValorId($vi){\n\t\t$this->valorId = $vi;\n\t}", "title": "" }, { "docid": "0b5a881f766855f46d370210352a178d", "score": "0.4979384", "text": "public function get_product_id( $context = 'view' ) {\n\t\t\treturn yit_wpml_object_id( $this->get_original_product_id( $context ), 'product', true );\n\t\t}", "title": "" }, { "docid": "3ab8c52bef285e326223393e41522af7", "score": "0.4976756", "text": "public function setIdPartner2($id)\n {\n $this->idPartner2 = $id;\n }", "title": "" }, { "docid": "e5d546fe1913785b2f2ee1cbe816b0f5", "score": "0.49738547", "text": "protected function setStoreToProduct(Product $product, array $rowData)\n {\n if (!empty($rowData[ImportProduct::COL_STORE])\n && ($storeId = $this->import->getStoreIdByCode($rowData[ImportProduct::COL_STORE]))\n ) {\n $product->setStoreId($storeId);\n } elseif (!$product->hasData(Product::STORE_ID)) {\n $product->setStoreId(Store::DEFAULT_STORE_ID);\n }\n }", "title": "" }, { "docid": "f88598319da581fa06f1e8a1400c16fb", "score": "0.4965234", "text": "public function getEntityId()\n {\n return $this->product->id;\n }", "title": "" }, { "docid": "d691cbb04243d4ec6278e7d5d5d8e935", "score": "0.496127", "text": "public function setUniqueIdentifier($id) {\n\t\t$this->id = $id;\n\t}", "title": "" } ]
cb987620dea723da745bf7516a36c5d0
// End customer update
[ { "docid": "ae4e67d7d6ce7b1826031ef2c2cfa8e3", "score": "0.0", "text": "public function getCustomerTable()\n {\n \t if (!$this->customerTable) {\n $sm = $this->getServiceLocator();\n $this->customerTable = $sm->get('Customer\\Model\\CustomerTable');\n }\n return $this->customerTable;\n }", "title": "" } ]
[ { "docid": "fbcffdbb9fad41b82e3333c2958f287b", "score": "0.6324844", "text": "public static function updateCustomer() { \n $result = lC_Customers_Admin::save($_GET['cid'], $_GET);\n if (!isset($result['rpcStatus'])) {\n $result['rpcStatus'] = RPC_STATUS_SUCCESS;\n }\n\n echo json_encode($result);\n }", "title": "" }, { "docid": "779c911de4c6d293242f2068c30563f2", "score": "0.6278556", "text": "function update()\r\n {\r\n settype($this->idCustomer, 'integer');\r\n $this->secureData();\r\n return ($this->babase->DbQuery(\"UPDATE `customer` SET name='\" . $this->data[\"name\"] . \"', firstname='\" . $this->data[\"firstname\"] . \"', civility='\" . $this->data[\"civility\"] . \"', organisation='\" . $this->data[\"organisation\"] . \"', address='\" . $this->data[\"address\"] . \"', postCode='\" . $this->data[\"postCode\"] . \"', city='\" . $this->data[\"city\"] . \"', country='\" . $this->data[\"country\"] . \"', notes='\" . $this->data[\"notes\"] . \"', telephone='\" . $this->data[\"telephone\"] . \"', telephone2='\" . $this->data[\"telephone2\"] . \"', mobile='\" . $this->data[\"mobile\"] . \"', fax='\" . $this->data[\"fax\"] . \"', email='\" . $this->data[\"email\"] . \"', active='\" . $this->data[\"active\"] . \"' WHERE idCustomer='\" . $this->idCustomer . \"'\"));\r\n }", "title": "" }, { "docid": "9d9aa7e1ddb3aa74078c8b540a5d946d", "score": "0.613816", "text": "public function updateCustomer() {\n\t\t//Umwandlung der Kundennummer in Int\n\t\t$customerNumber = intval ( $this->params['customerNumber'], $base = 10 );\n\n\t\t$query = array(\n\t\t\t'update customers set',\n\t\t\t'customerName = ' . $this->params['customerName'] . ',',\n\t\t\t'contactLastName = ' . $this->params['contactLastName'] . ',',\n\t\t\t'contactFirstName = ' . $this->params['contactFirstName'] . ',',\n\t\t\t'phone = ' . $this->params['phone'] . ',',\n\t\t\t'addressLine1 = ' . $this->params['addressLine1'] . ',',\n\t\t\t'addressLine2 = ' . $this->params['addressLine2'] . ',',\n\t\t\t'city = ' . $this->params['city'] . ',',\n\t\t\t'postalCode = ' . $this->params['postalCode'] . ',',\n\t\t\t'country = ' . $this->params['country'] . ',',\n\t\t\t'email = ' . $this->params['email'] . ',',\n\t\t\t'password = ' . $this->params['password'] . ',',\n\t\t\t'where customerNumber = ' . $customerNumber . ';',\n\t\t\t'commit;'\n\t\t\t);\n\n\t\t//Ausfuehrung der Query\n\t\t$ret = $this->db->executeQuery(implode('', $query));\n\n\t\t//Rueckgabe von True oder False\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "4b1e3b2ffb29cbd480ac77d5c1536601", "score": "0.6000862", "text": "public function update()\n {\n $validatedData = Validator::make($this->data, [\n 'customerName' => 'required',\n 'customerEmail' => 'sometimes|required',\n 'birthDate' => 'required|date',\n 'customerNation' => 'required',\n 'customerRegion' => 'required',\n 'customerDistrict' => 'required',\n 'customerWard' => 'required',\n 'customerStreet' => 'required',\n 'customerAddress' => 'required',\n 'homePhone' => 'sometimes|required|regex:/^(0)[0-9]{9}$/|not_regex:/[a-z]/',\n 'workPhone' => 'sometimes|required|regex:/^(0)[0-9]{9}$/|not_regex:/[a-z]/',\n 'mobilePhone' => 'required|regex:/^(0)[0-9]{9}$/|not_regex:/[a-z]/',\n 'kinName' => 'sometimes|required',\n 'relationship' => 'sometimes|required',\n 'kinAddress' => 'sometimes|required',\n 'phoneNumber' => 'sometimes|required|regex:/^(0)[0-9]{9}$/|not_regex:/[a-z]/',\n 'mobileNumber' => 'sometimes|required|regex:/^(0)[0-9]{9}$/|not_regex:/[a-z]/',\n 'kinEmail' => 'sometimes|required|email',\n 'rentCategory' => 'required',\n 'commencementDate' => 'required|date',\n 'endDate' => 'required|date',\n 'paymentCategory' => 'required',\n 'status' => 'sometimes|required',\n 'note' => 'sometimes|required',\n ])->validate();\n\n $this->customer->update($validatedData);\n $this->updateMode = false;\n\n $this->dispatchBrowserEvent('hide-form', ['message' => 'Customer has been updated successfuly!']);\n }", "title": "" }, { "docid": "eee707667bc3680dfade50669ea8a047", "score": "0.5974148", "text": "public function updateCust($cust) {\n $mcust = new Customer();\n $mcust = $cust;\n\n //\n $rs_head = $this->db->update('customer', array(\n 'company_id' => $mcust->getCompany_id(),\n 'custtype_id' => $mcust->getCusttype_id(),\n 'condtcust' => $mcust->getCondtcust(),\n 'occupation_id' => $mcust->getOccupation_id(),\n 'aliasname' => $mcust->getAliasname(),\n 'status' => $mcust->getStatus(),\n 'note' => $mcust->getNote(),\n 'date_change' => $mcust->getDate_change()), \"customer_id = {$mcust->getCustomer_id()}\");\n\n if (isset($rs_head))\n return $rs_head;\n\n $rs_comm = $this->db->update('customer_commcont', array(\n 'commercial_contact_name' => $mcust->getCommercial_contact_name(),\n 'comm_business_phone' => $mcust->getComm_business_phone(),\n 'comm_mobil_phone' => $mcust->getComm_mobil_phone(),\n 'comm_nextel_phone' => $mcust->getComm_nextel_phone(),\n 'comm_nextel_id' => $mcust->getComm_nextel_id(),\n 'comm_fax_phone' => $mcust->getComm_fax_phone(),\n 'comm_email' => $mcust->getComm_email(),\n 'comm_webpage' => $mcust->getComm_webpage(),\n 'comm_note' => $mcust->getComm_note()), \"customer_id = {$mcust->getCustomer_id()}\");\n //\n if (isset($rs_comm))\n return $rs_comm;\n\n $rs_inv = $this->db->update('customer_invcont', array(\n 'invoice_contact_name' => $mcust->getInvoice_contact_name(),\n 'inv_business_phone' => $mcust->getInv_business_phone(),\n 'inv_mobil_phone' => $mcust->getInv_mobil_phone(),\n 'inv_nextel_phone' => $mcust->getInv_nextel_phone(),\n 'inv_nextel_id' => $mcust->getInv_nextel_id(),\n 'inv_fax_phone' => $mcust->getInv_fax_phone(),\n 'inv_email' => $mcust->getInv_email(),\n 'inv_note' => $mcust->getInv_note()), \"customer_id = {$mcust->getCustomer_id()}\");\n //\n if (isset($rs_inv))\n return $rs_inv;\n\n //\n $rs_commaddr = $this->db->update('customer_commaddr', array(\n 'comm_addr_id' => $mcust->getComm_addr_id(),\n 'comm_addr_zip' => $mcust->getComm_addr_zip(),\n 'comm_address' => $mcust->getComm_address(),\n 'comm_addr_number' => $mcust->getComm_addr_number(),\n 'comm_addr_comp' => $mcust->getComm_addr_comp(),\n 'comm_addr_dist' => $mcust->getComm_addr_dist(),\n 'comm_addr_city' => $mcust->getComm_addr_city(),\n 'comm_addr_state' => $mcust->getComm_addr_state(),\n 'comm_addr_ref' => $mcust->getComm_addr_ref()), \"customer_id = {$mcust->getCustomer_id()}\");\n\n /**\n * If add details is not free\n * error, enter to return error. \n */\n if (isset($rs_commaddr))\n return $rs_commaddr;\n\n //\n $rs_invaddr = $this->db->update('customer_invaddr', array(\n 'inv_addr_id' => $mcust->getInv_addr_id(),\n 'inv_addr_zip' => $mcust->getInv_addr_zip(),\n 'inv_address' => $mcust->getInv_address(),\n 'inv_addr_number' => $mcust->getInv_addr_number(),\n 'inv_addr_comp' => $mcust->getInv_addr_comp(),\n 'inv_addr_dist' => $mcust->getInv_addr_dist(),\n 'inv_addr_city' => $mcust->getInv_addr_city(),\n 'inv_addr_state' => $mcust->getInv_addr_state(),\n 'inv_addr_ref' => $mcust->getInv_addr_ref()), \"customer_id = {$mcust->getCustomer_id()}\");\n\n /**\n * If add details is not free\n * error, enter to return error. \n */\n if (isset($rs_invaddr))\n return $rs_invaddr;\n\n\n //\n return $rs_head;\n }", "title": "" }, { "docid": "25433ca634282b60425ca58a25788e7a", "score": "0.59429425", "text": "public function testUpdateCustomer()\n {\n $accept_language = 'es';\n $rq = new UpdateCustomer([\n 'name' => 'test'\n ]);\n $result = self::$apiInstance->updateCustomer('id', $rq, $accept_language);\n $this->assertNotEmpty($result, 'expected not empty result');\n }", "title": "" }, { "docid": "a0820b62f84d75fd4bdf676a22325819", "score": "0.59092623", "text": "public function finishUpdate()\n {\n if ($this->_needSave) {\n $this->_magentoOrder->save();\n }\n }", "title": "" }, { "docid": "43ba9c0dbc857f2e99eca82e9e125792", "score": "0.59062195", "text": "public function endEdit()\n {\n $this->editKey = null;\n }", "title": "" }, { "docid": "073c36b0eb1b4f6a77c6be5b81cb0280", "score": "0.58473015", "text": "public function afterUpdate()\n {\n $this->getDI()\n ->getMail()\n ->send([\"admin@gamanads.com\" => \"Admin GamanAds\"],\"Update Adspace\", 'updateadspace',\n [ 'emailBody'=> \"Update Adspace : <b>$this->ad_url</b> from Client Id : <b>$this->client_id</b> Client Name: <b>$this->client_name</b>\"]);\n }", "title": "" }, { "docid": "2210812159018b168f2f526c40f72951", "score": "0.58074796", "text": "public function update_customer()\n {\n $json = '{\n \"company_name\":\"Microsoft\",\n \"ship_address\":\"1 Redmond Ave\",\n \"bill_address\":\"1 Redmond Ave\",\n \"phone\":\"(714) 475-4521\",\n \"fax\":\"(714) 475-4521\",\n \"notes\":\"These are some sample notes\"\n }';\n\n\n $request = $this->call('PUT', 'customers/1', array(), array(), array(), $json );\n $response = json_decode($request->getContent());\n\n $this->assertEquals(true, $response->success);\n }", "title": "" }, { "docid": "04269ae49f1536b37f33e4e00b9120d0", "score": "0.5797566", "text": "function update_customer($data, $id)\n\t{\n\t\t$this->path = \"/api/customers/update/id/$id\";\n\t\treturn $this->_send_request($data);\n\t}", "title": "" }, { "docid": "9a43ff47ff8ecec57f87f60d99dbde5d", "score": "0.57926553", "text": "public function endDrive()\n {\n try {\n\n $inputs = Input::all();\n\n $inputs_array = $inputs['data'];\n\n $driveRequest = $this->driveRequest->updateEndDriveTime($inputs_array);\n\n if ($driveRequest->id) {\n\n $this->generateBillInvoice($driveRequest->id, $driveRequest->customer_id);\n\n $response = [\n 'status' => true,\n 'code' => 200,\n 'data' => $driveRequest,\n 'message' => 'Drive ended successfully!'\n ];\n return json_encode($response);\n }else{\n $response = [\n 'status' => false,\n 'code' => 401,\n 'message' => 'Failed while ending the drive'\n ];\n return json_encode($response); \n }\n \n } catch (Exception $e) {\n \n $response = [\n 'status' => false,\n 'code' => 501,\n 'message' => 'Error occured! Please try later'\n ];\n return json_encode($response);\n }\n \n }", "title": "" }, { "docid": "2a671775c6ad01a56ac6df0bc42f75fa", "score": "0.5784471", "text": "public function end();", "title": "" }, { "docid": "40cd8d05ebe8c187bd01b3d1f14a4f79", "score": "0.5769406", "text": "public function updateCustomer(){\n\n //get info from form\n $customerID = Input::get('customerID');\n $companyID = Input::get('company');\n $name = Input::get('name');\n $address1 = Input::get('address1');\n $address2 = Input::get('address2');\n $address3 = Input::get('address3');\n $phone = Input::get('phone');\n $fax = Input::get('fax');\n $email = Input::get('email');\n $rep = Input::get('rep');\n //this is the hidden nput field that appears if new is selected\n $newCompany = Input::get('newcompany');\n //when new is selected, company has value -1, triggering this script which makes a new company object and assigns this customers ID to link to it.\n if($companyID == -1) {\n $company = Company::create(array('name' => $newCompany));\n $companyID = $company->id;\n }\n\n //create customer object\n $customer = Customer::where('id', '=', $customerID)->first();\n\n //update\n $customer->company_id = $companyID;\n $customer->name = $name;\n $customer->address1 = $address1;\n $customer->address2 = $address2;\n $customer->address3 = $address3;\n $customer->phone = $phone;\n $customer->fax = $fax;\n $customer->email = $email;\n\n //Because rep field only displays if admin is viewing customer. this check is required to prevent rep from being set to 0 or null upon update.\n //further clarification, admin can update the rep for a customer.\n //if admin is not logged in, then the field will not be loaded and the input will get 0. This will break things.\n if($rep !=0) {\n $customer->rep = $rep;\n }\n\n //save\n $customer->save();\n\n //redirect\n return Redirect::to('/customers/')->with('success_message', \"Customer $name has been updated.\");\n }", "title": "" }, { "docid": "8d609a0917419cbf755b33d6d5a16404", "score": "0.5758753", "text": "public function testUpdateCustomerGroup()\n {\n }", "title": "" }, { "docid": "8012e3bcca2ad58caefdcf68c7723d45", "score": "0.5748155", "text": "public function testUpdateCustomerGroupProduct()\n {\n }", "title": "" }, { "docid": "3999d30c14a039ccf8a71cbc090053a9", "score": "0.5742984", "text": "public function updateCustomer(Logon $logon, $companyCode, Customer $customer);", "title": "" }, { "docid": "1ef1e22ad13bdc28619e59d416528525", "score": "0.572543", "text": "public function update(CustomerRequest $request,Customer $customer)\n {\n $customer->update($request->validated());\n return redirect()->back()->with('success','更新成功');\n }", "title": "" }, { "docid": "f16bd378bad5f9cce54d59c35706a764", "score": "0.569607", "text": "public function destroy(Customer $customer,$id=0)\n {\n $tab=$customer::find($id);\n $invoice_date=date('Y-m-d',strtotime($tab->created_at));\n $Todaydate=date('Y-m-d');\n if((RetailPosSummaryDateWise::where('report_date',$Todaydate)->count()==1) && ($invoice_date==$Todaydate))\n {\n RetailPosSummaryDateWise::where('report_date',$Todaydate)\n ->update([\n 'customer_quantity' => \\DB::raw('customer_quantity - 1')\n ]);\n }\n RetailPosSummary::where('id',1)->update(['customer_quantity' => \\DB::raw('customer_quantity - 1')]);\n $tab->delete();\n \n\n $this->sdc->log(\"customer\",\"Customer account deleted.\");\n\n return redirect('customer')->with('status', $this->moduleName.' Deleted Successfully !');\n }", "title": "" }, { "docid": "6399cbc1876c3444a8513aaf6f9b5431", "score": "0.5686611", "text": "function actualiza_mycustomer()\n{\n $this->estado = 'ERR';\n\t $this->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n try {\n\t$sql = 'UPDATE my_customer_table SET timecreated=:timecreated, timemodified=:timemodified, name=:name, fullname=:fullname, fname=:fname, lname=:lname, salutation=:salutation, address=:address, city=:city, state=:state, zipcode=:zipcode, country=:country, email=:email, quickbooks_listid=:quickbooks_listid, quickbooks_editsequence=:quickbooks_editsequence, quickbooks_errnum=:quickbooks_errnum, quickbooks_errmsg=:quickbooks_errmsg, sales_rep_ref_listid=:sales_rep_ref_listid, sales_rep_ref_fullname=:sales_rep_ref_fullname, sales_tax_code_ref_listid=:sales_tax_code_ref_listid, sales_tax_code_ref_fullname=:sales_tax_code_ref_fullname, tax_code_ref_listid=:tax_code_ref_listid, tax_code_ref_fullname=:tax_code_ref_fullname, item_sales_tax_ref_listid=:item_sales_tax_ref_listid, item_sales_tax_ref_fullname=:item_sales_tax_ref_fullname, WHERE id = :clave;'; \n\t$stmt = $this->db->prepare($sql);\n\t $stmt->bindParam(':id', $_SESSION['mycustomer']['id'] );\n\t$stmt->bindParam(':timecreated', $_SESSION['mycustomer']['timecreated'] );\n\t$stmt->bindParam(':timemodified', $_SESSION['mycustomer']['timemodified'] );\n\t$stmt->bindParam(':name', $_SESSION['mycustomer']['name'] );\n\t$stmt->bindParam(':fullname', $_SESSION['mycustomer']['fullname'] );\n\t$stmt->bindParam(':fname', $_SESSION['mycustomer']['fname'] );\n\t$stmt->bindParam(':lname', $_SESSION['mycustomer']['lname'] );\n\t$stmt->bindParam(':salutation', $_SESSION['mycustomer']['salutation'] );\n\t$stmt->bindParam(':address', $_SESSION['mycustomer']['address'] );\n\t$stmt->bindParam(':city', $_SESSION['mycustomer']['city'] );\n\t$stmt->bindParam(':state', $_SESSION['mycustomer']['state'] );\n\t$stmt->bindParam(':zipcode', $_SESSION['mycustomer']['zipcode'] );\n\t$stmt->bindParam(':country', $_SESSION['mycustomer']['country'] );\n\t$stmt->bindParam(':email', $_SESSION['mycustomer']['email'] );\n\t$stmt->bindParam(':quickbooks_listid', $_SESSION['mycustomer']['quickbooks_listid'] );\n\t$stmt->bindParam(':quickbooks_editsequence', $_SESSION['mycustomer']['quickbooks_editsequence'] );\n\t$stmt->bindParam(':quickbooks_errnum', $_SESSION['mycustomer']['quickbooks_errnum'] );\n\t$stmt->bindParam(':quickbooks_errmsg', $_SESSION['mycustomer']['quickbooks_errmsg'] );\n\t$stmt->bindParam(':sales_rep_ref_listid', $_SESSION['mycustomer']['sales_rep_ref_listid'] );\n\t$stmt->bindParam(':sales_rep_ref_fullname', $_SESSION['mycustomer']['sales_rep_ref_fullname'] );\n\t$stmt->bindParam(':sales_tax_code_ref_listid', $_SESSION['mycustomer']['sales_tax_code_ref_listid'] );\n\t$stmt->bindParam(':sales_tax_code_ref_fullname', $_SESSION['mycustomer']['sales_tax_code_ref_fullname'] );\n\t$stmt->bindParam(':tax_code_ref_listid', $_SESSION['mycustomer']['tax_code_ref_listid'] );\n\t$stmt->bindParam(':tax_code_ref_fullname', $_SESSION['mycustomer']['tax_code_ref_fullname'] );\n\t$stmt->bindParam(':item_sales_tax_ref_listid', $_SESSION['mycustomer']['item_sales_tax_ref_listid'] );\n\t$stmt->bindParam(':item_sales_tax_ref_fullname', $_SESSION['mycustomer']['item_sales_tax_ref_fullname'] );\n\t$stmt->bindParam(':clave', $_SESSION['invoice']['TxnID']);\n\t$stmt->execute();\n } catch(PDOException $e) {\n}\n }", "title": "" }, { "docid": "d8b940b65f384501c8962ba7bf4cc704", "score": "0.56630784", "text": "protected function end()\n {\n }", "title": "" }, { "docid": "005f4d6b7d154549a93845b488f0e4df", "score": "0.56516206", "text": "public function update(CustomerRequest $request, Customer $customer)\n {\n try{\n \\DB::beginTransaction();\n\n $payload = $request->except(\"ktp\");\n\n if($request->hasFile(\"ktp\")){\n $payload[\"ktp\"] = UploadKtp::upload(); \n UploadKtp::delete($customer->ktp_original);\n }\n\n $customer->update($payload);\n\n \\DB::commit();\n return response()->json($customer);\n }catch(\\Exception $e){\n \\DB::rollback();\n\n return response()->json([\n \"message\" => $e->getMessage()\n ],500);\n }\n }", "title": "" }, { "docid": "b20cdb91c5b85d19bd4e84d5ead64154", "score": "0.5650916", "text": "public function customerDeleteAfter($observer)\n {\n // Get customer form event object\n $customer = $observer->getDataObject();\n\n // Run delete on Beeketing\n Mage::helper('beeketing_integrateapp/core')->sendRequest(\n 'customers/' . $customer->getId() . '.json',\n [],\n Zend_Http_Client::DELETE,\n ['X-Beeketing-Source' => BeeketingSDK_Config_BeeketingConfig::SOURCE_TYPE_WEBHOOK]\n );\n }", "title": "" }, { "docid": "abd245947e4b9bfcd2202f3ff84b540a", "score": "0.56384486", "text": "protected function end()\n\t{\n\t}", "title": "" }, { "docid": "0a76bd5f39f97dc8514b344f84d7ff23", "score": "0.5628562", "text": "public function customerAfterSave($observer)\n {\n // Get customer form event object\n $customer = $observer->getDataObject();\n\n Mage::helper('beeketing_integrateapp/customer')->saveToBeeketingApi($customer);\n }", "title": "" }, { "docid": "eb30fe520745a49d01747eb7dc2207ee", "score": "0.5627816", "text": "public function updated(CustomerProduct $customerProduct)\n {\n //\n }", "title": "" }, { "docid": "ed3bb8ea0582d70cde9e090ba5dfa765", "score": "0.5617143", "text": "public function FinishTransaction();", "title": "" }, { "docid": "d9564973c2de6a9ab7652ecbdde2211b", "score": "0.5607642", "text": "public function updateCustomerForms()\n {}", "title": "" }, { "docid": "bb1a4abdef8d40b98849d768cbe22655", "score": "0.55504566", "text": "public static function updateCustomer($db){\n $id = $_POST['id'];\n $fname = $_POST['fname'];\n $lname = $_POST['lname'];\n $tname = $_POST['tname'];\n $gender = $_POST['gender'];\n\n $update_details = $db->query(\"UPDATE `customer` SET `first_name`='$fname'\n ,`last_name`='$lname',`town_name`='$tname',`gender_id`='$gender' WHERE id = '$id'\");\n if ($update_details){\n sleep(1);\n echo 'updatesuccess';\n }else{\n sleep(1);\n echo 'updateerror';\n }\n }", "title": "" }, { "docid": "93274fdfd3ec1b187e9e33308f5d6ff3", "score": "0.55357814", "text": "public function update( $user, Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "10d7178d34c6198bd7c7217bfd1a9a6f", "score": "0.55283093", "text": "public function endTransaction()\n {\n // End transaction\n $this->db->transComplete();\n }", "title": "" }, { "docid": "1e6c5bf40520b823bf1faf4b528a819b", "score": "0.5525099", "text": "public function updateCustomer(Request $request){\n $id = $request->id;\n $rules = AgentCustomers::updateRules($id);\n $validator = Validator::make(Input::all(), $rules);\n if ($validator->fails()) {\n $id = $request->id;\n return Redirect::to(\"customer/editCustomer/$id\")\n ->withErrors($validator)->withInput();\n }else{\n $this->updateCustomerRecord($request);\n }\n return redirect('customer/listCustomer');\n }", "title": "" }, { "docid": "651b6811d74d3e63f2a6eb46254f9f41", "score": "0.5520887", "text": "public function updateById($customerId, $customerData)\n {\n }", "title": "" }, { "docid": "28727203e67f0cedfdb2f386846476ff", "score": "0.5512658", "text": "public function updateCustomer($email, $password, $joinDate, $firstName, $lastName, $gender, $streetAddress, $city, $country, $state, $mobile, $picture)\n {\n }", "title": "" }, { "docid": "b65f7536aac0443cb62e890da20d3985", "score": "0.5488429", "text": "public function logCustomerOut() {\n\n }", "title": "" }, { "docid": "bd573a63a556ecb3a6b7806a6b5ce117", "score": "0.54822046", "text": "public function saveChanges() {\n $this->pdo->queryUpdate(\"pos_customer\",\n [\"name\" => utf8_decode($this->name),\n \"barcode\" => utf8_decode($this->barcode)],\n \"cID = :cid\",\n [\"cid\" => $this->cID]\n );\n }", "title": "" }, { "docid": "b2d400d5a70107077ef564d7e9440415", "score": "0.54812926", "text": "function oos_gv_account_update($customer_id, $gv_id) {\n\n // Get database information\n $dbconn =& oosDBGetConn();\n $oostable =& oosDBGetTables();\n\n $coupon_gv_query = \"SELECT coupon_amount\n FROM \" . $oostable['coupons'] . \"\n WHERE coupon_id = '\" . $gv_id . \"'\";\n $coupon_gv_result =& $dbconn->Execute($coupon_gv_query);\n $coupon_gv = $coupon_gv_result->fields;\n\n if ($customer_gv_result->RecordCount() > 0) {\n $customer_gv_query = \"SELECT amount \n FROM \" . $oostable['coupon_gv_customer'] . \"\n WHERE customer_id = '\" . $customer_id . \"'\";\n $customer_gv_result =& $dbconn->Execute($customer_gv_query);\n\n $customer_gv = $customer_gv_result->fields;\n $new_gv_amount = $customer_gv['amount'] + $coupon_gv['coupon_amount'];\n\n $gv_query = \"UPDATE \" . $oostable['coupon_gv_customer'] . \"\n SET amount = '\" . $new_gv_amount . \"'\";\n $result =& $dbconn->Execute($gv_query);\n } else {\n $gv_query = \"INSERT INTO \" . $oostable['coupon_gv_customer'] . \" \n (customer_id, amount) VALUES ('\" . $customer_id . \"', '\" . $coupon_gv['coupon_amount'] . \"'\";\n $result =& $dbconn->Execute($gv_query);\n }\n }", "title": "" }, { "docid": "666261c238f694e7ea985cc1272e8950", "score": "0.5479893", "text": "public function update(Request $request, Customer $customer)\n {\n $request->validate(Customer::rules($customer->id), Customer::messages());\n\n \n $customer->update($request->all());\n \n return redirect()->route('customers.index')\n ->with('success','Customer updated successfully.');\n }", "title": "" }, { "docid": "30aacf32e63418ab0e9e9004a18211ed", "score": "0.54785895", "text": "public function edit(cab_customer $cab_customer)\n {\n //\n }", "title": "" }, { "docid": "a154c0361640fe45fd8836ba39700e40", "score": "0.5477305", "text": "public function updating(Customer $customer)\n {\n $customer->updated_id = auth()->user() ? auth()->user()->id : null;\n }", "title": "" }, { "docid": "9e97aded318911849fe917136bdd445d", "score": "0.5453159", "text": "public function end(): void;", "title": "" }, { "docid": "6cf94ccbe4dbb903ffb57d7bcc8746ef", "score": "0.54530156", "text": "function ciniki_customers_productsUpdateCustomer(&$ciniki, $tnid, $args) {\n\n\n if( !isset($args['customer_id']) || $args['customer_id'] == '' ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.customers.492', 'msg'=>'No Customer Specified'));\n }\n\n //\n // Load the tenant settings\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'tenants', 'private', 'intlSettings');\n $rc = ciniki_tenants_intlSettings($ciniki, $tnid);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $intl_timezone = $rc['settings']['intl-default-timezone'];\n \n //\n // Load the customer details\n //\n $strsql = \"SELECT id, \"\n . \"type, \"\n . \"parent_id, \"\n . \"status, \"\n . \"member_status, \"\n . \"member_lastpaid, \"\n . \"member_expires, \"\n . \"membership_length \"\n . \"FROM ciniki_customers \"\n . \"WHERE id = '\" . ciniki_core_dbQuote($ciniki, $args['customer_id']) . \"' \"\n . \"AND tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.customers', 'customer');\n if( $rc['stat'] != 'ok' ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.customers.496', 'msg'=>'Unable to load customer', 'err'=>$rc['err']));\n }\n if( !isset($rc['customer']) ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.customers.474', 'msg'=>'Unable to find customer'));\n }\n $customer = $rc['customer'];\n\n //\n // Load the last product (non addon) to be purchased\n //\n $strsql = \"SELECT purchases.product_id, \"\n . \"purchases.customer_id, \"\n . \"purchases.flags, \"\n . \"products.type, \"\n . \"purchases.purchase_date, \"\n . \"purchases.invoice_id, \"\n . \"purchases.invoice_item_id, \"\n . \"purchases.start_date, \"\n . \"purchases.end_date, \"\n . \"purchases.stripe_customer_id, \"\n . \"purchases.stripe_subscription_id \"\n . \"FROM ciniki_customer_product_purchases AS purchases \"\n . \"INNER JOIN ciniki_customer_products AS products ON (\"\n . \"purchases.product_id = products.id \"\n . \"AND products.type <= 20 \" // No addons\n . \"AND products.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \") \"\n . \"WHERE purchases.customer_id = '\" . ciniki_core_dbQuote($ciniki, $args['customer_id']) . \"' \"\n . \"AND purchases.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"ORDER BY purchases.end_date DESC \"\n . \"LIMIT 1 \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.customers', 'purchase');\n if( $rc['stat'] != 'ok' ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.customers.477', 'msg'=>'Unable to load purchase', 'err'=>$rc['err']));\n }\n if( !isset($rc['purchase']) ) {\n return array('stat'=>'ok');\n }\n $purchase = $rc['purchase'];\n \n $update_args = array();\n //\n // Compare expires\n //\n if( $customer['member_expires'] != $purchase['end_date'] ) {\n $update_args['member_expires'] = $purchase['end_date'];\n }\n\n //\n // Update the customer\n //\n if( count($update_args) > 0 ) {\n //\n // Update the customer records with new membership details\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'objectUpdate');\n $rc = ciniki_core_objectUpdate($ciniki, $tnid, 'ciniki.customers.customer', $customer['id'], $update_args, 0x04);\n if( $rc['stat'] != 'ok' ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.customers.421', 'msg'=>'Unable to update the customer'));\n }\n }\n\n return array('stat'=>'ok');\n}", "title": "" }, { "docid": "ae91cc883fcbacfddb332bae78b8f040", "score": "0.5440336", "text": "public function destroy(Customer $customer, Request $request)\n {\n //\n $data = array('title' => 'title', 'text' => 'text', 'type' => 'default', 'timer' => 3000);\n \n $customerClone = clone $customer;\n \n try {\n \n $app_file_storage_uri = config('app.app_file_storage_uri');\n $date_today = Carbon::now();//->format('Y-m-d');\n\n //create directory\n if(!Storage::exists($app_file_storage_uri)) {\n Storage::makeDirectory($app_file_storage_uri, 0775, true); //creates directory\n }\n\n $dataArray = array(\n 'is_visible' => false\n );\n\n DB::transaction(function () use ($request, $dataArray, $customerClone){\n $customerClone->update( $dataArray );\n });\n\n }catch(Exception $e){\n notify()->flash(\n 'Error', \n 'warning', [\n 'timer' => $data['timer'],\n 'text' => 'error',\n ]);\n\n return redirect()\n ->back()\n ->withInput();\n }\n \n notify()->flash(\n 'Success', \n 'success', [\n 'timer' => $data['timer'],\n 'text' => 'success',\n ]);\n \n //return Response::json( $data );\n return redirect()->back();\n }", "title": "" }, { "docid": "f05f4bd765581531c597cffea41c8c8f", "score": "0.5439174", "text": "public function editAction()\n {\n if (!$this->_isCustomerLoggedIn()) {\n return;\n }\n if ($this->getRequest()->isPost()) {\n $customer = $this->_getSession()->getCustomer();\n\n /* @var $customerForm Mage_Customer_Model_Form */\n $customerForm = Mage::getModel('customer/form');\n $customerForm->setFormCode('customer_account_edit')->setEntity($customer);\n $customerData = $customerForm->extractData($this->getRequest());\n\n $errors = array();\n $customerErrors = $customerForm->validateData($customerData);\n if ($customerErrors !== true) {\n $errors = array_merge($customerErrors, $errors);\n } else {\n $customerForm->compactData($customerData);\n $customerErrors = $customer->validate();\n if (is_array($customerErrors)) {\n $errors = array_merge($customerErrors, $errors);\n }\n }\n\n if ($this->getRequest()->getParam('change_password')) {\n $currPass = $this->getRequest()->getPost('current_password');\n $newPass = $this->getRequest()->getPost('password');\n $confPass = $this->getRequest()->getPost('confirmation');\n\n if (empty($currPass) || empty($newPass) || empty($confPass)) {\n $errors[] = $this->__('Password fields cannot be empty.');\n }\n\n if ($newPass != $confPass) {\n $errors[] = $this->__('Please make sure your passwords match.');\n }\n\n $oldPass = $this->_getSession()->getCustomer()->getPasswordHash();\n if (strpos($oldPass, ':')) {\n list(, $salt) = explode(':', $oldPass);\n } else {\n $salt = false;\n }\n\n if ($customer->hashPassword($currPass, $salt) == $oldPass) {\n $customer->setPassword($newPass);\n } else {\n $errors[] = $this->__('Invalid current password.');\n }\n }\n\n if (!empty($errors)) {\n /** @var $message Mage_XmlConnect_Model_Simplexml_Element */\n $message = Mage::getModel('xmlconnect/simplexml_element', '<message></message>');\n $message->addChild('status', self::MESSAGE_STATUS_ERROR);\n $message->addChild('text', implode(' ', $errors));\n $this->getResponse()->setBody($message->asNiceXml());\n return;\n }\n\n try {\n $customer->cleanPasswordsValidationData();\n $customer->save();\n $this->_getSession()->setCustomer($customer);\n $this->_message($this->__('Account information has been saved.'), self::MESSAGE_STATUS_SUCCESS);\n return;\n } catch (Mage_Core_Exception $e) {\n $this->_message($e->getMessage(), self::MESSAGE_STATUS_ERROR);\n } catch (Exception $e) {\n if ($e instanceof Mage_Eav_Model_Entity_Attribute_Exception) {\n $this->_message($e->getMessage(), self::MESSAGE_STATUS_ERROR);\n } else {\n $this->_message($this->__('Can\\'t save the customer.'), self::MESSAGE_STATUS_ERROR);\n }\n }\n } else {\n $this->_message($this->__('POST data is not valid.'), self::MESSAGE_STATUS_ERROR);\n }\n }", "title": "" }, { "docid": "8eefe24cdf18e21d59adc02db15bab5e", "score": "0.5438545", "text": "public function updateCustomer()\n {\n $id = $name = $cylinder = $length = $pifa = $ons = \"\";\n \n $id = trim($_POST[\"customer\"]);\n $id = stripslashes($id);\n $id = htmlspecialchars($id);\n \n $name = trim($_POST[\"name\"]);\n $name = stripslashes($name);\n $name = htmlspecialchars($name);\n \n \n $cylinder = trim($_POST[\"cylinder\"]);\n $cylinder = stripslashes($cylinder);\n $cylinder = htmlspecialchars($cylinder);\n \n $length = trim($_POST[\"length\"]);\n $length = stripslashes($length);\n $length = htmlspecialchars($length);\n \n $pifa = trim($_POST[\"pifa\"]);\n $pifa = stripslashes($pifa);\n $pifa = htmlspecialchars($pifa);\n \n $ons = trim($_POST[\"ons\"]);\n $ons = stripslashes($ons);\n $ons = htmlspecialchars($ons);\n\t\t\n\t\t$thickness = trim($_POST[\"thickness\"]);\n $thickness = stripslashes($thickness);\n $thickness = htmlspecialchars($thickness);\n\t\t\n\t\t$reel = trim($_POST[\"reel\"]);\n $reel = stripslashes($reel);\n $reel = htmlspecialchars($reel);\n \n $sql = \"UPDATE `customers`\n SET\n `customer_name` = :name,\n `cylinder` = :cylinder,\n `repeat_length` = :length,\n `pifa` = :pifa,\n `ons` = :ons,\n\t\t\t\t\t`thickness` = :thickness,\n\t\t\t\t\t`reel` = :reel\n WHERE `customer_id` = :id;\";\n try\n { \n $this->_db->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );\n $stmt = $this->_db->prepare($sql);\n $stmt->bindParam(\":id\", $id, PDO::PARAM_INT);\n $stmt->bindParam(\":name\", $name, PDO::PARAM_STR);\n $stmt->bindParam(\":cylinder\", $cylinder, PDO::PARAM_STR);\n $stmt->bindParam(\":length\", $length, PDO::PARAM_STR);\n $stmt->bindParam(\":pifa\", $pifa, PDO::PARAM_INT);\n $stmt->bindParam(\":ons\", $ons, PDO::PARAM_STR);\n $stmt->bindParam(\":thickness\", $thickness, PDO::PARAM_STR);\n $stmt->bindParam(\":reel\", $reel, PDO::PARAM_STR);\n $stmt->execute();\n $stmt->closeCursor();\n echo '<strong>SUCCESS!</strong> The customer was successfully updated in the database.';\n return TRUE;\n } catch (PDOException $e) {\n echo '<strong>ERROR</strong> Could not update the customer into the database. Please try again.<br>'. $e->getMessage(); \n return FALSE;\n } \n\n }", "title": "" }, { "docid": "e24b274292476e78058e8cc6014056fd", "score": "0.5425733", "text": "public function update(Request $request, Customer $customer)\n {\n $id = $customer['id'];\n\n\n DB::table('tbl_customer')->where('id',$id)->update([\n 'email' => $request->email,\n 'full_name'=>$request->full_name,\n 'phone'=>$request->phone,\n 'birth_date'=>$request->birth_date,\n 'alamat'=>$request->alamat,\n 'kelurahan'=>$request->kelurahan,\n 'kecamatan'=>$request->kecamatan,\n 'kabupaten'=>$request->kabupaten,\n 'provinsi'=>$request->provinsi,\n 'active'=>$request->active\n ]);\n\n \n \n return redirect('/')->with('status','Data berhasil diubah');\n }", "title": "" }, { "docid": "a4cd7846e42a9797746d870bb90f5276", "score": "0.542237", "text": "public function editCustomersProcess(DishCustomerRequest $request, $id) {\n // Get last paid date\n $last_paid_date = $request->input('last_paid');\n // Format last paid date and make it 1st day of the month\n $last_paid_date_format_tofirstday = \\Carbon\\Carbon::createFromFormat('d/m/Y', $last_paid_date)->format('01/m/Y');\n\n $form_data = $request->all();\n $form_data['last_paid'] = $last_paid_date_format_tofirstday;\n \n $edit_customer = Customer::findOrFail($id);\n $edit_customer->update($form_data);\n // Edit address\n $edit_customer->address = \"S#\" . $edit_customer->house->road->sector->sector . \",\" . \n \",R#\" . $edit_customer->house->road->road . \n \",H#\" . $edit_customer->house->house . \n \"F#\" . $edit_customer->flat . ',' .\n $edit_customer->house->road->sector->territory->name;\n $edit_customer->save();\n\n return redirect('customers/'.$id.'/edit');\n }", "title": "" }, { "docid": "47ca96e715c015b0b02f148eaffa234f", "score": "0.5420113", "text": "public function editPostAction()\n {\n if (!$this->_validateFormKey()) {\n return $this->_redirect('*/*/edit');\n }\n\n if ($this->getRequest()->isPost()) {\n /** @var $customer Mage_Customer_Model_Customer */\n $customer = $this->_getSession()->getCustomer();\n $customer->setOldEmail($customer->getEmail());\n /** @var $customerForm Mage_Customer_Model_Form */\n $customerForm = $this->_getModel('customer/form');\n $customerForm->setFormCode('customer_account_edit')\n ->setEntity($customer);\n\n $customerData = $customerForm->extractData($this->getRequest());\n\n $errors = array();\n $customerErrors = $customerForm->validateData($customerData);\n if ($customerErrors !== true) {\n $errors = array_merge($customerErrors, $errors);\n } else {\n $customerForm->compactData($customerData);\n $errors = array();\n\n if (!$customer->validatePassword($this->getRequest()->getPost('current_password'))) {\n $errors[] = $this->__('Invalid current password');\n }\n\n // If email change was requested then set flag\n $isChangeEmail = ($customer->getOldEmail() != $customer->getEmail()) ? true : false;\n $customer->setIsChangeEmail($isChangeEmail);\n\n // If password change was requested then add it to common validation scheme\n $customer->setIsChangePassword($this->getRequest()->getParam('change_password'));\n\n if ($customer->getIsChangePassword()) {\n $newPass = $this->getRequest()->getPost('password');\n $confPass = $this->getRequest()->getPost('confirmation');\n\n if (strlen($newPass)) {\n /**\n * Set entered password and its confirmation - they\n * will be validated later to match each other and be of right length\n */\n $customer->setPassword($newPass);\n $customer->setPasswordConfirmation($confPass);\n } else {\n $errors[] = $this->__('New password field cannot be empty.');\n }\n }\n\n // Validate account and compose list of errors if any\n $customerErrors = $customer->validate();\n if (is_array($customerErrors)) {\n $errors = array_merge($errors, $customerErrors);\n }\n }\n\n if (!empty($errors)) {\n $this->_getSession()->setCustomerFormData($this->getRequest()->getPost());\n foreach ($errors as $message) {\n $this->_getSession()->addError($message);\n }\n $this->_redirect('*/*/edit');\n return $this;\n }\n\n try {\n $customer->cleanPasswordsValidationData();\n $customer->setPasswordCreatedAt(time());\n\n // Reset all password reset tokens if all data was sufficient and correct on email change\n if ($customer->getIsChangeEmail()) {\n $customer->setRpToken(null);\n $customer->setRpTokenCreatedAt(null);\n }\n\n $customer->save();\n $this->_getSession()->setCustomer($customer)\n ->addSuccess($this->__('The account information has been saved.'));\n\n if ($customer->getIsChangeEmail() || $customer->getIsChangePassword()) {\n $customer->sendChangedPasswordOrEmail();\n }\n\n $this->_redirect('customer/account');\n return;\n } catch (Mage_Core_Exception $e) {\n $this->_getSession()->setCustomerFormData($this->getRequest()->getPost())\n ->addError($e->getMessage());\n } catch (Exception $e) {\n $this->_getSession()->setCustomerFormData($this->getRequest()->getPost())\n ->addException($e, $this->__('Cannot save the customer.'));\n }\n }\n\n $this->_redirect('*/*/edit');\n }", "title": "" }, { "docid": "2bc19408c4b865911aa98b8df78dae80", "score": "0.54036164", "text": "function update()\n {\n $this->spec->cc()->delete();\n $this->persist();\n }", "title": "" }, { "docid": "14f1029e9cbfd7aed78275057ffd1428", "score": "0.53972155", "text": "public static function deleteCustomer($db){\n $customer_id = $_GET['customer_id'];\n $delete_customer = $db->query(\"DELETE FROM customer WHERE id = '$customer_id'\");\n if ($delete_customer){\n sleep(1);\n echo \"customerdeleted\";\n }else{\n sleep(1);\n echo \"customernotdeleted\";\n }\n }", "title": "" }, { "docid": "b413acd49ee1dcd9382de85f4b17d813", "score": "0.53949344", "text": "public function destroy(Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "b413acd49ee1dcd9382de85f4b17d813", "score": "0.53949344", "text": "public function destroy(Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "b413acd49ee1dcd9382de85f4b17d813", "score": "0.53949344", "text": "public function destroy(Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "b413acd49ee1dcd9382de85f4b17d813", "score": "0.53949344", "text": "public function destroy(Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "b413acd49ee1dcd9382de85f4b17d813", "score": "0.53949344", "text": "public function destroy(Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "b413acd49ee1dcd9382de85f4b17d813", "score": "0.53949344", "text": "public function destroy(Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "b413acd49ee1dcd9382de85f4b17d813", "score": "0.53949344", "text": "public function destroy(Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "b413acd49ee1dcd9382de85f4b17d813", "score": "0.53949344", "text": "public function destroy(Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "b413acd49ee1dcd9382de85f4b17d813", "score": "0.53949344", "text": "public function destroy(Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "b413acd49ee1dcd9382de85f4b17d813", "score": "0.53949344", "text": "public function destroy(Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "b413acd49ee1dcd9382de85f4b17d813", "score": "0.53949344", "text": "public function destroy(Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "b413acd49ee1dcd9382de85f4b17d813", "score": "0.53949344", "text": "public function destroy(Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "b413acd49ee1dcd9382de85f4b17d813", "score": "0.53949344", "text": "public function destroy(Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "6d4628fc6d99b09be4aad32a7776024b", "score": "0.5385024", "text": "public function update(Request $request, customer $customer)\n {\n $this->validate($request,customer::rules($request->method()));\n\n\n $customer->update($request->all());\n\n $request->session()->flash('alert-success', 'Data Updated successfully!');\n return redirect(route('customer.index'));\n }", "title": "" }, { "docid": "5df3cc1207837b0adadfbdd430d00bce", "score": "0.53771174", "text": "public function update(Request $request, Customer $customer,$id=0)\n {\n\n $this->validate($request,[\n 'name'=>'required',\n 'address'=>'required',\n 'phone'=>'required',\n 'email'=>'required',\n ]);\n\n $tab=$customer::find($id);\n $tab->name=$request->name;\n $tab->address=$request->address;\n $tab->phone=$request->phone;\n $tab->email=$request->email;\n $tab->updated_by=$this->sdc->UserID();\n $tab->save();\n $this->sdc->log(\"customer\",\"Customer account updated.\");\n return redirect('customer')->with('status', $this->moduleName.' Updated Successfully !');\n\n }", "title": "" }, { "docid": "6cf4a375d4e2555841be1b08fa28fabb", "score": "0.53597414", "text": "public function end(): void\n {\n }", "title": "" }, { "docid": "3b8ee8e7e4991415f668ad5c9b4e7245", "score": "0.5359374", "text": "public function update(Request $request, customer $customer)\n {\n $request->validate([\n 'nama_customer' => 'required',\n 'telepon_customer' => 'required',\n 'alamat_customer' => 'required',\n 'kelurahan_customer' => 'required',\n 'kecamatan_customer' => 'required',\n 'kota_customer' => 'required',\n 'provinsi_customer' => 'required',\n 'kodepos_customer' => 'numeric|min:4'\n ]);\n\n Customer::where('id_customer',$customer->id_customer)\n ->update([\n 'nama_customer' => $request->nama_customer,\n 'telepon_customer' => $request->telepon_customer,\n 'alamat_customer' => $request->alamat_customer,\n 'kelurahan_customer' => $request->kelurahan_customer,\n 'kecamatan_customer' => $request->kecamatan_customer,\n 'kota_customer' => $request->kota_customer,\n 'provinsi_customer' => $request->provinsi_customer,\n 'kodepos_customer' => $request->kodepos_customer\n ]);\n return redirect()->route('customer')->with('update','customer ' .$customer->nama_customer. ' berhasil di edit');\n }", "title": "" }, { "docid": "902d23c806d3a49b47ec1896bc3dbb4f", "score": "0.535653", "text": "private function _dogetupdatedaccount()\n {\n $endTime = mktime();\n //get last update time from log\n $startTime = $this->getLastUpdateTime(\"account\");\n\n //update organization\n $this->updateAccount($startTime, $endTime);\n\n $location = $this->feedbackUrl(\"getupdated\", ACTION_SUCCESS,\"\",\n \"Accounts add/error/update/error:\".$this->m_accountaddok.\"/\".$this->m_accountadderror.\"/\".$this->m_accountupdateok.\"/\".$this->m_accountupdateerror);\n $this->redirect($location);\n }", "title": "" }, { "docid": "594fca41e19dfb6dd974a693b6d75038", "score": "0.53563356", "text": "public function UpdateAccount()\r\n {\r\n $currentRec = $this->fetchData();\r\n $recArr = $this->readInputRecord();\n $this->setActiveRecord($recArr);\r\n \r\n try\n {\n $this->ValidateForm();\n }\n catch (ValidationException $e)\n {\n $this->processFormObjError($e->m_Errors);\n return;\n }\n\n if (count($recArr) == 0)\n return;\n\n $this->_doUpdate($recArr, $currentRec);\r\n \r\n // if 'notify email' option is checked, send confirmation email to user email address\r\n // ...\r\n \r\n $this->m_Notices[] = $this->GetMessage(\"USER_DATA_UPDATED\");\r\n\r\n \t//run eventlog \r\n $eventlog \t= BizSystem::getService(EVENTLOG_SERVICE); \r\n \t$eventlog->log(\"USER_MANAGEMENT\", \"MSG_USER_RESET_PASSWORD\"); \r\n \r\n $this->rerender();\n }", "title": "" }, { "docid": "221a1765f5a337e9b0f08e6ce794c268", "score": "0.535269", "text": "public function updateCustomer($businessUnit)\n {\n \n $data = new BusinessUnitResource($businessUnit->load(['users' => function ($subQuery) {\n return $subQuery->where('role_id', 2)->first();\n }])); // end of $data\n \n $customer = \\Stripe\\Customer::update(\n $businessUnit->stripe_id,\n [ 'name' => $data->name, \n 'phone' => $data->phone_number,\n 'address' => [\n 'line1' => $data->address->address1,\n 'city' => $data->address->city,\n 'state' => $data->address->state,\n 'postal_code' => $data->address->zipcode,\n 'country' => 'US',\n ]]\n ); // end of Stripe Customer update\n\n }", "title": "" }, { "docid": "e39fe946062790fef1fe3345e7decb36", "score": "0.5349483", "text": "function finishOrderInDatabase()\n \t{\n \t\t$update_array['finished_time']=time();\n \t\t$result=$GLOBALS['TYPO3_DB']->exec_UPDATEquery('tx_commerce_baskets',\n\t\t\t\"sid='\".$GLOBALS['TYPO3_DB']->quoteStr($this->sess_id,'tx_commerce_baskets').\"' and finished_time = 0\",\n\t\t\t$update_array\n\t\t\t\n\t\t\t);\n\t\t\n \t\t\n \t}", "title": "" }, { "docid": "df5f4d235d269ba6b7e9193ba1623e29", "score": "0.533981", "text": "public function customerupdate_post()\n {\n $cid = $this->input->post('cid');\n $pin = $this->input->post('pin');\n $new_pin = $this->input->post('new_pin');\n $data = $this->api_model->customerupdate_post($cid,$pin,$new_pin);\n if($data)\n {\n $this->response($data); // 200 being the HTTP response code\n }\n else\n {\n $this->response(array('err' => 'failed','msg' => 'ID and Pin not Match'), 404);\n }\n }", "title": "" }, { "docid": "625a5f6c8a8d835e63b378c9b736b391", "score": "0.53337586", "text": "public function commitUpdate();", "title": "" }, { "docid": "8bce3448d1921e10073bcc1c05daa3e6", "score": "0.5331925", "text": "public function update(Request $request, Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "8bce3448d1921e10073bcc1c05daa3e6", "score": "0.5331925", "text": "public function update(Request $request, Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "8bce3448d1921e10073bcc1c05daa3e6", "score": "0.5331925", "text": "public function update(Request $request, Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "8bce3448d1921e10073bcc1c05daa3e6", "score": "0.5331925", "text": "public function update(Request $request, Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "8bce3448d1921e10073bcc1c05daa3e6", "score": "0.5331925", "text": "public function update(Request $request, Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "8bce3448d1921e10073bcc1c05daa3e6", "score": "0.5331925", "text": "public function update(Request $request, Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "8bce3448d1921e10073bcc1c05daa3e6", "score": "0.5331925", "text": "public function update(Request $request, Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "8bce3448d1921e10073bcc1c05daa3e6", "score": "0.5331925", "text": "public function update(Request $request, Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "8bce3448d1921e10073bcc1c05daa3e6", "score": "0.5331925", "text": "public function update(Request $request, Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "8bce3448d1921e10073bcc1c05daa3e6", "score": "0.5331925", "text": "public function update(Request $request, Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "8bce3448d1921e10073bcc1c05daa3e6", "score": "0.5331925", "text": "public function update(Request $request, Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "8bce3448d1921e10073bcc1c05daa3e6", "score": "0.5331925", "text": "public function update(Request $request, Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "bd223177e1660d11ab7c4bf9d2789e73", "score": "0.53219527", "text": "public function doChangeCustomer() {\n\t\ttry {\n\t\t\t$this->title = $this->scrFieldLabels['SCR_USER_PROFILE'];\n\t\t\t$this->urlHistories = array($this->scrFieldLabels['MENU_USER'], $this->title);\n\t\t\t\n\t\t\tif ($this->request ->is(array('post', 'put'))) {\n\t\t\t\t$user_id = $this->Session->read(RwsConstant::SESSION_LOGIN_USER_KEY);\n\t\t\t\t$customer = $this->request->data['TCustomer'];\n\t\t\t\t$customer_name = $customer['CUSTOMER_NAME'];\n\t\t\t\t$api_key = $customer['API_KEY'];\n\t\t\t\t$show_avata = $customer['SHOW_AVATA'];\n\t\t\t\t$notice_email = $customer['NOTICE_EMAIL'];\n\t\t\t\t$show_title_video = $customer['SHOW_TITLE_VIDEO'];\n\t\t\t\t\n\t\t\t\t$this->TCustomer->begin();\n\t\t\t\t$this->TCustomer->updateAll(\n\t\t\t\t\tarray('TCustomer.CUSTOMER_NAME' => \"'$customer_name'\",\n\t\t\t\t\t'TCustomer.API_KEY' => \"'$api_key'\",\n\t\t\t\t\t'TCustomer.SHOW_AVATA' => $show_avata,\n\t\t\t\t\t'TCustomer.NOTICE_EMAIL' => $notice_email,\n\t\t\t\t\t'TCustomer.SHOW_TITLE_VIDEO' => $show_title_video),\n\t\t\t\t array('TCustomer.USER_ID' => $user_id)\n\t\t\t\t);\n\t\t\t\t$this->TCustomer->commit();\n\t\t\t}\n\t\t} catch (Exception $e) {\n\t\t\t// Rollback\n\t\t\t$this->TUser->rollback();\n\t\t\t// Set error\n\t\t\t$this->errors = array(\n\t\t\t\t\t'0' => $e->getMessage()\n\t\t\t);\n\t\t\treturn $this->render('/Edits/user_personal_setting');\n\t\t}\n\t\t$this->Session->setFlash($this->messages['USERSETTING_SEC_000001'], 'message', array('message_type' => RwsConstant::MSG_SUCCESS));\n\t\treturn $this->redirect('/edit/profile');\n\t}", "title": "" }, { "docid": "2866285fcd0b7c38cfecc33691ba7048", "score": "0.53132516", "text": "public function edit(Customer $customer)\n {\n \n }", "title": "" }, { "docid": "64234dc37d5fac92852ca25bf2fe6f92", "score": "0.5288634", "text": "public function updateCustomer(Customer $customer){\n\n $sql = \"UPDATE CUSTOMER SET gender = :gender, firstname = :firstname, lastname= :lastname, country= :country, email= :email, bonus=:bonus WHERE id= :customerId\";\n $stmt = $this->connection->prepare($sql);\n $stmt = $this->bindCustomerParamsToStmt($stmt, $customer);\n\n $stmt->bindValue(\"customerId\", $customer->getId());\n $stmt->execute();\n\n }", "title": "" }, { "docid": "5ebfd95220dcede079aaff1e59bc8140", "score": "0.52872854", "text": "public function close() {\n if (!$this->isAllowed()) {\n $this->msg->error($this->idioma['errorNotAllowed']);\n header(\"location: $this->url2return\");\n //header(\"location: /$this->base_dir/vistas/$this->return\");\n return;\n }\n \n $res = $this->tareaMapper->setFinTareas($this->id);\n\n if ($res) {\n //Correcto\n $this->msg->success($this->idioma['okUpdate']);\n } else {\n //Hubo algun problema.\n $this->msg->error($this->idioma['errorUpdate']);\n }\n //header(\"location: /$this->base_dir/vistas/$this->return\");\n header(\"location: $this->url2return\");\n }", "title": "" }, { "docid": "1febc018a2dd2dd2af18cbb4a354cbde", "score": "0.5281305", "text": "public function cashout($id)\n {\n $receivable=Receivable::find($id);\n $receivable->update(['cashout' => now()]);\n //terminate the statement_of_accounts\n $ro = StatementOfAccount::find($receivable->soa_id);\n $ro->update(['terminate' => now()]);\n\n return redirect()->back()->with('success', 'Succesfully converted check into cash.');\n }", "title": "" }, { "docid": "254f4d834b8953034236641291066ce2", "score": "0.52805114", "text": "public static function saveCustomer() { \n $result = lC_Customers_Admin::save(null, $_GET);\n if (!isset($result['rpcStatus'])) {\n $result['rpcStatus'] = RPC_STATUS_SUCCESS;\n }\n\n echo json_encode($result);\n }", "title": "" }, { "docid": "b681b6ceb3f4db53a769ac88ca8112ca", "score": "0.52802837", "text": "function update_customer()\r\n\t{\r\n\t\t$this->load->model('membership_model');\t\r\n\t\t$this->load->model('Film_model');\r\n\t\t\r\n\t\t$id = $this->input->post('cus_id_hidden');\r\n\t\t$data['ipos_customer'] = $this->Film_model->call_customer($id);\r\n\t\t$this->membership_model->db_update_customer($id);\r\n\t\t\r\n\t\t//die(print_r($data['ipos_supplier']));\r\n\t\t//AUDIT TRAIL\r\n\t\t\tforeach ($data['ipos_customer'] as $result) {\r\n\t\t\t\t$previous =\"\";\r\n\t\t\t\t$modified =\"\";\r\n\t\t\t\t\r\n\t\t\t\t//if($result->cus_name !== $this->input->post('cus_name') ){\r\n\t\t\t\t\t$previous .= \" Cus Name: \".$result->cus_name;\r\n\t\t\t\t\t$modified .= \" Cus Name: \".$this->input->post('cus_name');\r\n\t\t\t\t//}\r\n\t\t\t\t\r\n\t\t\t\tif($result->cus_description !== $this->input->post('cus_description') ){\r\n\t\t\t\t\t$previous .= \"- Cus Description: \".$result->cus_description;\r\n\t\t\t\t\t$modified .= \"- Cus Description: \".$this->input->post('cus_description');\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif($result->cus_address !== $this->input->post('cus_address') ){\r\n\t\t\t\t\t$previous .= \"- Cus Address: \".$result->cus_address;\r\n\t\t\t\t\t$modified .= \"- Cus Address: \".$this->input->post('cus_address');\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif($result->cus_contact_no !== $this->input->post('cus_contact_no') ){\r\n\t\t\t\t\t$previous .= \"- Cus Contact No.: \".$result->cus_contact_no;\r\n\t\t\t\t\t$modified .= \"- Cus Contact No.: \".$this->input->post('cus_contact_no');\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\tif($result->cus_price_type !== $this->input->post('cus_price_type') ){\r\n\t\t\t\t\t$previous .= \"- Price Type: \".$result->cus_price_type;\r\n\t\t\t\t\t$modified .= \"- Price Type: \".$this->input->post('cus_price_type');\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif($result->cus_status !== $this->input->post('cus_status') ){\r\n\t\t\t\t\t$prev_status = 'Inactive';\r\n\t\t\t\t\t$mod_status = 'Inactive';\r\n\r\n\t\t\t\t\tif($result->cus_status == 1){\r\n\t\t\t\t\t\t$prev_status = 'Active';\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif($this->input->post('cus_status') == 1){\r\n\t\t\t\t\t\t$mod_status = 'Active';\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t$previous .= \"- Status: \".$prev_status;\r\n\t\t\t\t\t$modified .= \"- Status: \".$mod_status;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$page = 'Customer Registration';\r\n\t\t\t\t$action = 'Modify Customer Information';\r\n\t\t\t\t$created = '';\r\n\t\t\t\t$data['audit_trail'] = $this->membership_model->audit_trail($page,$action,$previous,$created,$modified);\r\n\t\t\t}\r\n\t\t// END AUDIT TRAIL\r\n\t\t\r\n\t\tredirect('login/display/ipos_customer_reg');\r\n\t}", "title": "" }, { "docid": "2b23990d5e20887e6299f3eb4afeaf81", "score": "0.5277452", "text": "function save_customer(&$person_data, &$customer_data,$customer_id=false)\n\t{\n\t\t$success=false;\n\t\t//Run these queries as a transaction, we want to make sure we do all or nothing\n\t\tif(parent::save($person_data,$customer_id))\n\t\t{\n\n\t\t\t// echo 'ceht lun';\n\t\t\t\n\t\t\tif ($customer_id && $this->exists($customer_id))\n\t\t\t{\n\t\t\t\t$cust_info = $this->get_info($customer_id);\n\t\t\t\t\n\t\t\t\t$current_balance = $cust_info->balance;\n $current_balance_2 = $cust_info->balance_2;\n\t\t\t\t\n\t\t\t\t//Insert store balance transaction when manually editing\n\t\t\t\t if (isset($customer_data['balance']) && $customer_data['balance'] != $current_balance)\n\t\t\t\t {\n $store_account_transaction = array(\n 'customer_id'=>$customer_id,\n 'sale_id'=>NULL,\n 'comment'=>lang('customers_manual_edit_of_balance'),\n 'transaction_amount'=>0,\n 'balance'=>$customer_data['balance'],\n 'balance_2'=>0,\n 'options' => 1,\n 'date' => date('Y-m-d H:i:s'),\n 'bat_dau' => 1,\n\t\t\t\t );\n\n\t\t\t\t $this->db->delete('store_accounts', array('customer_id' => $customer_id,'sale_id' => NULL,'options' => 1));\n $this->db->insert('store_accounts',$store_account_transaction);\n $store_account_transaction_manual_change_or_import_excel = array(\n 'customer_id'=>$customer_id,\n 'comment'=>lang('customers_manual_edit_of_balance'),\n 'transaction_amount'=>$customer_data['balance'] - $current_balance,\n 'options' => 1,\n 'date' => date('Y-m-d H:i:s'),\n\t\t\t\t );\n $this->db->insert('phppos_store_accounts_manual_change_or_import_excel',$store_account_transaction_manual_change_or_import_excel);\n }\n\n if (isset($customer_data['balance_2']) && $customer_data['balance_2'] != $current_balance_2)\n {\n $store_account_transaction = array(\n 'customer_id'=>$customer_id,\n 'sale_id'=>NULL,\n 'comment'=>lang('customers_manual_edit_of_balance'),\n 'transaction_amount'=>0,\n 'balance'=>0,\n 'balance_2'=>$customer_data['balance_2'],\n 'options' => 2,\n 'date' => date('Y-m-d H:i:s'),\n 'bat_dau' => 1,\n );\n $this->db->delete('store_accounts', array('customer_id' => $customer_id,'sale_id' => NULL,'options' => 2));\n $this->db->insert('store_accounts',$store_account_transaction);\n $store_account_transaction_manual_change_or_import_excel = array(\n 'customer_id'=>$customer_id,\n 'comment'=>lang('customers_manual_edit_of_balance'),\n 'transaction_amount'=>$customer_data['balance_2'] - $current_balance_2,\n 'options' => 1,\n 'date' => date('Y-m-d H:i:s'),\n\t\t\t\t );\n $this->db->insert('phppos_store_accounts_manual_change_or_import_excel',$store_account_transaction_manual_change_or_import_excel);\n\n }\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tif (!$customer_id or !$this->exists($customer_id))\n\t\t\t{\n\t\t\t\t$customer_data['person_id'] = $person_data['person_id'];\n\t\t\t\t$success = $this->db->insert('customers',$customer_data);\n $customer_id = $customer_data['person_id'];\n $store_account_transaction_data = array();\n $store_account_transaction_data[] = array(\n 'customer_id'=>$customer_id,\n 'sale_id'=>NULL,\n 'comment'=>'import bằng file excel',\n 'transaction_amount'=>0,\n 'balance'=>isset($customer_data['balance']) ? $customer_data['balance']:0,\n 'balance_2'=>isset($customer_data['balance_2']) ? $customer_data['balance_2']:0,\n 'options' => 1,\n 'date' => date('Y-m-d H:i:s'),\n 'bat_dau' => 1,\n );\n\n $store_account_transaction_data[] = array(\n 'customer_id'=>$customer_id,\n 'sale_id'=>NULL,\n 'comment'=>'import bằng file excel',\n 'transaction_amount'=>0,\n 'balance'=>isset($customer_data['balance']) ? $customer_data['balance']:0,\n 'balance_2'=>isset($customer_data['balance_2']) ? $customer_data['balance_2']:0,\n 'options' => 2,\n 'date' => date('Y-m-d H:i:s'),\n 'bat_dau' => 1,\n );\n\n $this->db->delete('store_accounts', array('customer_id' => $customer_id,'sale_id' => NULL));\n $this->db->insert_batch('store_accounts',$store_account_transaction_data);\n \n $store_account_transaction_manual_change_or_import_excel[] = array(\n 'customer_id'=>$customer_id,\n 'comment'=>lang('customers_manual_edit_of_balance'),\n 'transaction_amount'=>isset($customer_data['balance']) ? $customer_data['balance']:0,\n 'options' => 1,\n 'date' => date('Y-m-d H:i:s'),\n\t\t\t\t );\n $store_account_transaction_manual_change_or_import_excel[] = array(\n 'customer_id'=>$customer_id,\n 'comment'=>lang('customers_manual_edit_of_balance'),\n 'transaction_amount'=>isset($customer_data['balance_2']) ? $customer_data['balance_2']:0,\n 'options' => 2,\n 'date' => date('Y-m-d H:i:s'),\n\t\t\t\t );\n $this->db->insert_batch('phppos_store_accounts_manual_change_or_import_excel',$store_account_transaction_manual_change_or_import_excel);\n $success = $customer_data['person_id'];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->db->where('person_id', $customer_id);\n\t\t\t\t$success = $this->db->update('customers',$customer_data);\n\t\t\t}\t\t\t\n\t\t}\n\n\t\treturn $success;\n\t}", "title": "" }, { "docid": "40d9ca53001c33dba82768b8cf1701d8", "score": "0.5274054", "text": "public function update(Request $request, Customer $customer)\n {\n //\n $this->authorize('update', $customer);\n $input=$request->all();\n $customer->update($input);\n return redirect('/customer/'.$customer->id);\n }", "title": "" }, { "docid": "237e2dd6b06314f3e024d2377adacafe", "score": "0.5273913", "text": "public function update(Request $request, Customer $customer)\n {\n $customer->fill($request->except(['ruc', 'company', 'identification_type_name', 'identification_type', 'identification']))->save();\n return redirect()->route('customers.index')->with(['status' => trans_choice(__('message.model_updated_successfully', ['model' => trans_choice(__('view.customer'), 0)]), 0)]);\n }", "title": "" }, { "docid": "a61b0e46f79371c2b82d0cbd8e3b2070", "score": "0.5273859", "text": "public function update(Request $request, User $customer)\n {\n\n $request->validate([\n 'first_name' => 'required|min:3|max:20',\n 'middle_name' => 'nullable|min:3|max:20',\n 'last_name' => 'required|min:3|max:20',\n 'email' => 'required|email',\n 'first_phone' => 'required|numeric|digits:11',\n 'second_phone' => 'nullable|numeric|digits:11',\n 'image' => 'nullable|image|max:5000',\n ]);\n\n if ($request->filled('middle_name')) {\n $name = $request->first_name . ' ' . $request->middle_name . ' ' . $request->last_name;\n } else {\n $name = $request->first_name . ' ' . $request->last_name;\n }\n\n if ($request->hasFile('image')) {\n if (File::exists(storage_path('app/public/' . $customer->image))) {\n File::delete(storage_path('app/public/' . $customer->image));\n }\n $image = $request->image;\n $image_new_name = time() . $image->getClientOriginalName();\n $image->move(public_path('customers'), $image_new_name);\n $customer->image = '/customers/' . $image_new_name;\n $customer->save();\n }\n\n if (isset($image))\n $customer->image = $image;\n $customer->save();\n\n $customer->update([\n 'name' => $name,\n 'first_name' => $request->first_name,\n 'middle_name' => $request->middle_name,\n 'last_name' => $request->last_name,\n 'email' => $request->email,\n 'first_phone' => $request->first_phone,\n 'second_phone' => $request->second_phone,\n 'updated_by' => auth()->id()\n ]);\n\n\n // dd(\n // $request->Address,\n // $customer->addresses->first()\n // );\n if($request->Address != null)\n {\n foreach ($request->Address as $address) {\n $customer->addresses()->updateOrCreate($address);\n }\n }\n\n\n\n // foreach($request->Address as $address) {\n\n\n\n\n\n\n\n\n // }\n\n\n\n // if($request->has('Address'))\n // {\n // $address_customer = Address::where(['customer_id' => $customer->id])->get();\n // $addresses = $request->get('Address');\n // foreach ($addresses as $customer_address) {\n // Address::create([\n // 'customer_id' => $customer->id,\n // 'name' => 'address of ' .$customer->name,\n // 'city_id' => $customer_address['city_id'],\n // 'area_id' => $customer_address['area_id'],\n // 'street' => $customer_address['street'],\n // 'building_number' => $customer_address['building_number'],\n // 'floor_number' => $customer_address['floor_number'],\n // 'landmark' => $customer_address['special_marque'],\n // ]);\n // }\n // }\n\n return redirect()->route('admin.customer.index')->with([\n 'type' => 'success',\n 'message' => 'Customer update successfuly'\n ]);\n }", "title": "" }, { "docid": "66f22052cbfd918123a70e91f52763d1", "score": "0.5271571", "text": "public function closeAction()\n {\n\n $id = $this->params()->fromRoute('id', 0);\n\n $entity = $this->getEm()->getRepository($this->entity)->findOneBy(array('id' => $id));\n\n if ($entity) {\n\n $data = $entity->toArray();\n\n if (is_null($data['date_end']) && is_null($data['date_estimated']) ) {\n $data['date_end'] = new \\DateTime('now');\n $data['date_estimated'] = new \\DateTime('now');\n } elseif (is_null($data['date_end'])) {\n $data['date_end'] = new \\DateTime('now');\n } else {\n $data['date_end'] = null;\n $data['date_estimated'] = null;\n }\n\n $service = $this->getServiceLocator()->get($this->service);\n\n if( $service->updateActive($data) )\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n else\n $this->getResponse()->setStatusCode(404);\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n }", "title": "" }, { "docid": "b7efca26298e03145440547f5bf2691c", "score": "0.52696586", "text": "public function testUpdateCustomerInvoiceTemplate()\n {\n }", "title": "" }, { "docid": "be82ec94eca625224a53e5c2c02e52bf", "score": "0.5269445", "text": "public function end()\n {\n $this->_lock();\n $info = $this->_get_idx();\n $info[3] = $info[1];\n $info[4] = $info[2];\n $this->_set_idx($info);\n $this->_unlock();\n }", "title": "" }, { "docid": "177ac6ce075a044e9fd58a96dd6efc67", "score": "0.5269126", "text": "public function ajaxProcessUpdateOrderCustomer()\n {\n $oneclickorder = new Tmoneclickorder();\n $id_customer = Tools::getValue('id_customer');\n $id_order = Tools::getValue('id_order');\n\n $customer = $oneclickorder->updateOrderCustomer($id_customer, $id_order);\n\n die(Tools::jsonEncode(array(\n 'status' => true,\n 'success' => 'Customer successfully selected.',\n 'content' => $oneclickorder->renderCustomerInfo($customer)\n )));\n }", "title": "" }, { "docid": "f8728bfcf0c4391ae062975abda70e3a", "score": "0.52685165", "text": "function after_submission_update($entry, $form)\n{\n\t$custController = MyriadCustomerController::instance();\n\t$customer = $custController->getCustomerByID(lookupCustomerAccountByAccountCode(get_query_var('account')));\n\tif (strcasecmp($customer->surname,get_query_var('surname'))==0)\n\t// If login ok, update the Myriad entry\n\t{\n\t\t$custController = MyriadCustomerController::instance();\n\t\t$customer = $custController->getCustomerByID(lookupCustomerAccountByAccountCode(get_query_var('account')));\n\t\t$customer -> forename = $entry['1'];\n\t\t$customer -> surname = $entry['2'];\n\t\t$customer -> housename = $entry['3'];\n\t\t$customer -> housenumber = $entry['4'];\n\t\t$customer -> street = $entry['5'];\n\t\t$customer -> town = $entry['6'];\n\t\t$customer -> locality = $entry['10'];\n\t\t$customer -> county = $entry['7'];\n\t\t$customer -> postcode = $entry['9'];\n\t\t$custController -> updateCustomer($customer);\n\t}\n\n}", "title": "" } ]
0a5ca9f2b7800e0a9a94edf298c66c92
Wrapper function for WP_CLI Progress bar
[ { "docid": "cff43c8549d23552868366ebeddd0c79", "score": "0.5922357", "text": "public function progress_bar( $param, $object_type = '', $action = 'Migrating' ) {\n\t\tif ( $param && is_numeric( $param ) ) {\n\t\t\t$this->progress_bar = make_progress_bar( \"$action $param $object_type.\", $param );\n\t\t} elseif ( $this->progress_bar && 'tick' == $param ) {\n\t\t\t$this->progress_bar->tick();\n\t\t} elseif ( $this->progress_bar && 'finish' == $param ) {\n\t\t\t$this->progress_bar->finish();\n\t\t}\n\n\t\treturn $this->progress_bar;\n\t}", "title": "" } ]
[ { "docid": "5427fed95cc1439126295611e8c07c64", "score": "0.7056845", "text": "public function getProgress();", "title": "" }, { "docid": "5427fed95cc1439126295611e8c07c64", "score": "0.7056845", "text": "public function getProgress();", "title": "" }, { "docid": "953a746ead4677a27774524eea524579", "score": "0.6891798", "text": "function get_progress_bar($mode='',$percentage=-1,$text_add='')\r\n {\r\n \tglobal $lp_theme_css;\r\n \t\r\n \t// Setting up the CSS path of the current style if exists \r\n \tif (!empty($lp_theme_css))\r\n \t{ \r\n\t \t$css_path=api_get_path(WEB_CODE_PATH).'css/'.$lp_theme_css.'/images/';\r\n \t}\r\n \telse \r\n \t{\r\n \t\t$css_path='../img/';\t\r\n \t} \r\n\t \t\r\n\t\t//if($this->debug>0){error_log('New LP - In learnpath::get_progress_bar()',0);}\r\n \tif(is_object($this) && ($percentage=='-1' OR $text_add==''))\r\n \t{\r\n \t\tlist ($percentage, $text_add) = $this->get_progress_bar_text($mode);\r\n \t}\r\n \t$text = $percentage.$text_add;\r\n \t$size = str_replace('%','',$percentage);\r\n \t$output = '' \r\n \t//.htmlentities(get_lang('ScormCompstatus'),ENT_QUOTES,'ISO-8859-1').\"<br />\"\r\n\t .'<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td>'\r\n\t .'<img id=\"progress_img_limit_left\" src=\"'.$css_path.'bar_1.gif\" width=\"1\" height=\"12\">'\r\n\t .'<img id=\"progress_img_full\" src=\"'.$css_path.'bar_1u.gif\" width=\"'.$size.'px\" height=\"12\" id=\"full_portion\">'\r\n\t .'<img id=\"progress_img_limit_middle\" src=\"'.$css_path.'bar_1m.gif\" width=\"1\" height=\"12\">';\r\n\t \r\n\t if($percentage <= 98)\r\n\t {\r\n\t \t$output .= '<img id=\"progress_img_empty\" src=\"'.$css_path.'bar_1r.gif\" width=\"'.(100-$size).'px\" height=\"12\" id=\"empty_portion\">';\r\n\t }\r\n\t else\r\n\t {\r\n\t \t$output .= '<img id=\"progress_img_empty\" src=\"'.$css_path.'bar_1r.gif\" width=\"0\" height=\"12\" id=\"empty_portion\">';\r\n\t }\r\n\t \r\n\t $output .= '<img id=\"progress_bar_img_limit_right\" src=\"'.$css_path.'bar_1.gif\" width=\"1\" height=\"12\"></td></tr></table>'\r\n\t .'<div class=\"progresstext\" id=\"progress_text\">'.$text.'</div>';\r\n\t return $output;\r\n }", "title": "" }, { "docid": "7328b9869b4aa5a149ca5a7213507783", "score": "0.68188834", "text": "function progressbar($webroot, $value, $textL = \"\", $textR = \"\", $color = \"success\", $color2 = \"\", $striped = false, $active = false, $min = 0, $max = 100)\n {\n if (false) {\n echo '<div class=\"left ratewrap\"><img src=\"' . $webroot . 'images/bar_chart/' . $color2 . '.png\" style=\"width: ';\n echo (round($value, 2) > 100) ? 100 : round($value, 2);\n echo '%;height:25px;position: absolute;left:0;\"/><em>' . round($value / 20, 2);\n echo '/5</em></div><div class=\"clear\"></div>';\n } else {\n if ($textL) {\n echo '<div style=\"float: right; padding-right: 4px;\">' . $textL . '</div>';\n }\n echo '</div><div style=\"margin-bottom: 5px;\" class=\"progress' . iif($striped, \" progress-striped\") . iif($active, \" active\") . '\">';\n\n echo '<img src=\"' . $webroot . 'images/bar_chart/' . $color2 . '.png\" style=\"width: ';\n echo (round($value, 2) > 100) ? 100 : round($value, 2);\n echo '%;height:20px;\"/>';\n\n echo \"</div>\";\n return;\n echo '<div class=\"progress-bar progress-bar-';\n echo $color . '\" role=\"progressbar\" aria-valuenow=\"' . $value . '\" aria-valuemin=\"' . $min . '\" aria-valuemax=\"' . $max . '\" style=\"';\n echo 'width: ' . round($value / ($max - $min) * 100) . '%\"><span>' . $textR . '</span></div></div>';\n }\n\n }", "title": "" }, { "docid": "2ed6d95f1ba9cdc8828770052949832f", "score": "0.68145925", "text": "function imic_progress_bar($atts) {\n\t\textract(shortcode_atts(array(\n\t\t\t\"percentage\" => '',\n\t\t\t\"name\" => '',\n\t\t\t\"type\" => '',\n\t\t\t\"value\" => '',\n\t\t\t\"colour\" => ''\n\t\t), $atts));\n\t\t\n\t\tif ($type == 'progress-striped') { $typeClass = $type; } else { $typeClass = \"\"; }\n\t\tif ($colour == 'progress-bar-warning' ) { $warningText = '(warning)'; } else { $warningText = \"\"; }\n\t\t\n\t\t$service_bar_output = '';\n\t\t$progress_text = '';\n\t\tif($name!='') {\n\t\t\t\t$service_bar_output = '<div class=\"progress-label\"> <span>' . $name . '</span> </div>';\n\t\t}\n\t\t$service_bar_output .= '<div class=\"progress '. $typeClass .'\">';\n\t\t\n\t\tif($type == 'progress-striped'){\n \t$service_bar_output .= '<div class=\"progress-bar ' . $colour . '\" style=\"width: ' . $value . '%\">';\n\t\t\t$service_bar_output .= '<span class=\"sr-only\">' . $value . '% Complete (success)</span>';\n\t\t\t$service_bar_output .= '</div>'; \n\t\t}else if($type == 'colored'){\n\t\t\tif(!empty($warningText)){ $spanClass=''; $progress_text = $value.'% Complete '.$warningText; }else{ $spanClass='sr-only'; $progress_text = ''; }\n \t$service_bar_output .= '<div class=\"progress-bar ' . $colour . '\" style=\"width: ' . $value . '%\"> <span class=\"'.$spanClass.'\">' . $progress_text.'</span> </div>';\n\t\t}else{\n\t\t\t$service_bar_output .= '<div class=\"progress-bar progress-bar-primary\" data-appear-progress-animation=\"'.$value.'%\"> <span class=\"progress-bar-tooltip\">' . $value . '%</span> </div>';\n\t\t}\n $service_bar_output .= '</div>';\n\t\t\n\t\treturn $service_bar_output;\n\t}", "title": "" }, { "docid": "69164f2c524d09474a2a948f412badad", "score": "0.6804378", "text": "function ingeni_woo_progress() {\r\n\r\n\t$my_progress = null;\r\n\r\n\ttry {\r\n\t\t//$my_progress = IngeniWooImporter::getInstance()->get_import_progress();\r\n\t\t//$my_progress = $importer->get_import_progress();\r\n//fb_log('progress is: '.$my_progress);\r\n\t} catch (Exception $e) {\r\n $my_progress = $e->getMessage();\r\n\t}\r\n\r\n\twp_send_json($my_progress);\r\n\r\n\twp_die(); // this is required to terminate immediately and return a proper response\r\n}", "title": "" }, { "docid": "f95fd4ff31a2be11b0ecdbcb2b7bdefd", "score": "0.67302084", "text": "public function updateProgressBar(): void\n {\n if ($this->exposeProgressBar) {\n $this->progressBar->advance();\n }\n }", "title": "" }, { "docid": "e23a587f9d04723559b94e28aed276f8", "score": "0.66986865", "text": "function olimometer_progress($atts) {\r\n extract( shortcode_atts( array(\r\n 'id' => '1',\r\n\t), $atts ) );\r\n\r\n $an_olimometer = new Olimometer();\r\n $an_olimometer->load($id);\r\n \r\n return $an_olimometer->get_display_progress();\r\n}", "title": "" }, { "docid": "b48548acbf4dfb6c9286b9d956b8af7e", "score": "0.66582096", "text": "function print_progress_box($class='redProgressBox', $number='1', $title='', $message='') {\n global $CFG;\n\n if($class=='end') {\n echo '<div class=\"progressBoxEnd\"></div>';\n }\n else {\n echo '<div style=\"text-align: right;\" class=\"progressBox '.$class.'\">';\n echo '<div class=\"progressNumber\">'.$number.'</div>';\n echo '<div class=\"progressTitle\">'.get_string($title,'peerreview').'</div>';\n echo '<div class=\"progressMessage\">'.get_string($message,'peerreview').'</div>';\n //manage icon. icons in the class style are not shown\n if ($class==\"redStatusBox\"){\n echo '<img src=\"pix/cross.gif\"/>';\n }\n if ($class==\"blueProgressBox\"){\n echo '<img src=\"pix/alert.gif\"/>';\n }\n if ($class==\"greenProgressBox\"){\n echo '<img src=\"pix/tick.gif\"/>';\n }\n echo '</div>';\n }\n}", "title": "" }, { "docid": "aab4cd708fd83ef64b2a4174e0e957a9", "score": "0.6638639", "text": "static function ProgressBar($val,$type='',$striped=false,$active=false,$min=0,$max=false) {\n if($type && !in_array($type,self::$contexttypes))\n return self::Error('Invalid type for '.__METHOD__.'(): '.$type); \n if($active && !$striped)\n return self::Error(__METHOD__.'(): Only striped progressbar can be active');\n if($max) $aria=true; # !! work in progress\n else $aria=false;\n $pct = $val; # !! calculate if min/max != 0/100 \n return '<div class=\"progress-bar'.\n ($type?' progress-bar-'.$type:'').\n ($striped?' progress-bar-striped':'').\n ($active?' active':'').\n '\" role=\"progressbar\" style=\"width:'.$pct.'%;\"'.\n ($aria?'aria-valuenow=\"'.$val.'\" aria-valuemin=\"'.$min.'\" aria-valuemax=\"'.$max.'\"':'').\n '><span class=\"sr-only\">'.$pct.'%</span>'.\n '</div>';\n }", "title": "" }, { "docid": "52841ac93c56f4cbd339d728e9a6ddcb", "score": "0.65377307", "text": "public static function output_progress_bar() {\n global $DB;\n\n // Begin progress bar.\n $output = html_writer::tag('p', get_string('migrationtoolprogress', 'turnitintooltwo'));\n\n // Counts for use in the progress bar.\n $totalv1 = $DB->count_records('turnitintool');\n $totalmigrated = $DB->count_records('turnitintool', array('migrated' => 1));\n\n if ($totalv1 == 0) {\n $complete = 100;\n } else {\n $complete = floor(($totalmigrated/$totalv1)*100);\n }\n\n // Progress bar text.\n $percentcompletedtext = $complete.'% '. get_string('complete', 'turnitintooltwo');\n $numassignmentstext = '('.$totalmigrated.'/'.$totalv1.' '. get_string('assignments', 'turnitintooltwo').')';\n $completedtext = html_writer::tag('span', $percentcompletedtext.' '.$numassignmentstext);\n\n // If migration is less than a third complete then show the text after the completed section of the progress bar.\n if ( $complete < 33 ) {\n $divwidth = 100 - $complete;\n $completedtext = html_writer::tag('div', $completedtext, array('id' => 'migration-progress-todo', 'style' => 'width: '.$divwidth.'%'));\n $progress = html_writer::tag('div', '', array('id' => 'migration-progress', 'style' => 'width: '.$complete.'%')).$completedtext;\n } else {\n $progress = html_writer::tag('div', $completedtext, array('id' => 'migration-progress', 'style' => 'width: '.$complete.'%'));\n }\n\n // Output our progress bar.\n $output .= html_writer::tag('div', $progress, array('id' => 'migration-progress-bar', 'class' => 'active'));\n\n return $output;\n }", "title": "" }, { "docid": "557609c1ab2ab004398b6141acb47291", "score": "0.644756", "text": "function outputProgress($current, $total)\n{\n echo \"<span style='position: absolute;z-index:$current;background:greenyellow;'>\" . round($current / $total * 100) . \"% </span>\";\n myFlush();\n sleep(1);\n}", "title": "" }, { "docid": "6d940951a48dc68e56f8ab4c2a4d1f3b", "score": "0.6413074", "text": "function layersc_progress( $atts, $content = null ) {\r\n\textract(shortcode_atts(array(\r\n\t'title' => '' ,\r\n\t'percent' => '70' ,\r\n\t'style' => 'bold' , //bold, thin, circular\r\n\t'color' => '#fff' , \r\n\t'background' => '#2dcb73', \r\n\t'rounded'=> \"false\", \r\n\t'stripes'=> \"true\",\r\n\t'class' => '',\r\n\t), $atts));\r\n\t\r\n\tif(is_customize_preview()){ $nonedit = 'mceNonEditable blockshortcode';}else{$nonedit = '';}\r\n\t\t\r\n\tif($rounded == \"true\"){\r\n\t\t$rounded = 'progress_rounded';\r\n\t}else{\r\n\t\t$rounded = '';\r\n\t\t}\r\n\t\t\r\n\tif($stripes == \"true\"){\r\n\t\t$stripes = ' progress_stripes';\r\n\t}else{\r\n\t\t$stripes = '';\r\n\t\t}\r\n\t\t\r\n\tif(!empty($title)){$title = '<div class=\"progress_title\">'.do_shortcode($title).'</div>';\t}else{ $title = '';\t}\r\n\t\r\n\tif($style == \"circular\"){ $circular = '<div class=\"circle_progress\" data-progress=\"'.($percent/100).'\" data-background=\"'.$background.'\"><strong>'.$percent.'%</strong></div>'.$title;}else{ $circular = '';}\r\n\t\t\r\n\t\treturn '<div class=\"progressbar_wrap progress_'.$style.' '.$nonedit.'\">'.$title.'<div class=\"lts_progress '.$rounded. $stripes.' '.$class.'\"><span>'.$percent.'%</span><div class=\"lts_progress_wrap\"><div title=\"'.$percent.'%\" class=\"lts_progress_inner tooltip\" style=\"width:'.$percent.'%;color:'.$color.';background-color:'.$background.';\"></div></div></div>'.$circular.'</div>';\r\n\t\t\r\n\t\t\r\n}", "title": "" }, { "docid": "9fda0d9965534410da2ab9cbd28e4a6c", "score": "0.6410916", "text": "function nc__util__createProgressBar($id){\n\n\t\t//output progress bar (hidden initially)\n\t\techo \t\"<div class='progress nc-progress-bar' style='display: none;'>\".\n\t\t\t\t\"<div \".\n\t\t\t\t\t\"class='progress-bar progress-bar-success progress-bar-striped' \".\n\t\t\t\t\t\"id='\".$id.\"' \".\n\t\t\t\t\t\"role='progressbar' \".\n\t\t\t\t\t\"aria-valuenow='0' \".\n\t\t\t\t\t\"aria-valuemin='0' \".\n\t\t\t\t\t\"aria-valuemax='100' \".\n\t\t\t\t//ES 2017-02-15 (soko): center percent inside progress bar and increase font size\n\t\t\t\t\"><div class='nc-progress-bar-percent'>0%</div></div>\".\n\t\t\t\"</div>\";\n\n\t}", "title": "" }, { "docid": "7c97d5857c0902ff866dd901f90604cf", "score": "0.63531476", "text": "function nc__util__createScriptProgressBar($id){\n\n\t\techo\t\"function nc__progress__update(val){\".\n\t\t\t\t\"$('#\".$id.\"').attr('aria-valuenow', val);\".\n\t\t\t\t\"$('#\".$id.\"').html(val + ' %');\".\n\t\t\t\t\"$('#\".$id.\"').css('width', val+'%');\".\n\t\t\t\"};\".\n\t\t\t\"function nc__progress__show(){\".\n\t\t\t\t\"$('#\".$id.\"').closest('.nc-progress-bar').show();\".\n\t\t\t\"};\".\n\t\t\t\"function nc__progress__hide(){\".\n\t\t\t\t\"$('#\".$id.\"').closest('.nc-progress-bar').hide();\".\n\t\t\t\"};\";\n\n\t}", "title": "" }, { "docid": "de406734aa6b2e1eee7944c362d8eec0", "score": "0.6316708", "text": "private function progress($length) {\n\t\t$bar = $this->output->createProgressBar(0);\n\t\t$bar->setFormat('[<fg=magenta>%bar%</>] <info>%elapsed%</info>');\n\t\t$bar->setEmptyBarCharacter('..');\n\t\t$bar->setProgressCharacter(\"\\xf0\\x9f\\x8c\\x80\");\n\t\t$bar->advance($length);\n\t\t$bar->finish();\n\t\techo \"\\r\\n\";\n\t}", "title": "" }, { "docid": "8d5750c851ac9d41107fc75cacfb19aa", "score": "0.63123804", "text": "function progress_data()\n {\n $info['progress'] = strftime(\"%S\") * 100 / 60;\n $info['progress_standalone'] = 100 - $info['progress'];\n\n echo json_encode($info);\n }", "title": "" }, { "docid": "3ccca682aa918b440d614a54990c7052", "score": "0.63085985", "text": "function user_tbc_progress() {\n drupal_add_css(drupal_get_path('module', 'user_dash') . '/css/custom.css', array('group' => CSS_DEFAULT, 'every_page' => FALSE));\n drupal_add_css(drupal_get_path('module', 'user_dash') . '/css/custom_tbc.css', array('group' => CSS_DEFAULT, 'every_page' => FALSE));\n drupal_add_css(drupal_get_path('module', 'user_dash') . '/css/rejected.css', array('group' => CSS_DEFAULT, 'every_page' => FALSE));\n drupal_add_js(drupal_get_path('module', 'user_dash') . '/js/progressBar.js', 'file');\n return '\n\t\t\t<div id=\"progressbar_container\">\n\t\t\t\t<ul id=\"progressbar\">\n\t\t\t\t\t<li id=\"node1\"><p class=\"hidden\">Submit Book Proposal</p></li>\n\t\t\t\t\t<li id=\"node2\"><p class=\"hidden\">Proposal Recieved, Waiting for approval</p></li>\n\t\t\t\t\t<li id=\"node3\"><p class=\"hidden\"><span id=\"approved\">Proposal Approved, Start submitting codes</span><span id=\"rejected\">Proposal Rejected</span></p></li>\n\t\t\t\t\t<li id=\"node4\"><p class=\"hidden\">Code received. Under review</p></li>\n\t\t\t\t\t<li id=\"node5\"><p class=\"hidden\">Code reviewed and Completed Book</p></li>\n\t\t\t\t\t<li id=\"node6\"><p class=\"hidden\">Book Completed</p></li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>';\n}", "title": "" }, { "docid": "0256e66ae5e1690798be9881d7c7749f", "score": "0.62857026", "text": "function ingeni_woo_progress_javascript() { ?>\r\n\t<script type=\"text/javascript\" >\r\n\tjQuery(document).ready(function($) {\r\n\t\tsetInterval(fetchIngeniWooProgress,5000);\r\n\t});\r\n\r\n\tfunction fetchIngeniWooProgress() {\r\n\t\tvar data = {\r\n\t\t\t'action': 'ingeni_woo_progress',\r\n\t\t\t'progress': 0\r\n\t\t};\r\n\r\n\t\t// since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php\r\n\t\tjQuery.post(ajaxurl, data, function(response) {\r\n\t\t\tvar info = response;\r\n\t\t\tif (info) {\r\n\t\t\t\tconsole.log(info);\r\n\t\t\t}\r\n\t\t\tjQuery('#ingeni_woo_importer_info').html(info);\r\n\t\t});\r\n\t}\r\n\t</script>\r\n\t<?php\r\n}", "title": "" }, { "docid": "c98bdb9bd0a43beebfab326f49224ee2", "score": "0.6197103", "text": "public function progress($total, $progress);", "title": "" }, { "docid": "17059a2b4d939e8a0f85bed0df88e0bc", "score": "0.6182905", "text": "static function Progress($val,$type='',$striped=false,$active=false) {\n # $val = integer (0-100)\n # $val = array of arrays\n # $val = assoc type => value TODO\n if(is_array($val)) {\n $content = array();\n foreach($val as $idx=>$p) {\n if(!is_array($p)) $p = array($p);\n if(count($p)>1 && !in_array($p[1],self::$contexttypes))\n return self::Error('Invalid type for bar '.($idx+1).' in '.__METHOD__.'(): '.$p[0]);\n $content[] = call_user_func_array(array(__CLASS__,'ProgressBar'),$p);\n }\n $content = implode(\"\\n\",$content);\n } else $content = self::ProgressBar($val,$type,$striped,$active);\n return '<div class=\"progress\">'.$content.'</div>';\n }", "title": "" }, { "docid": "1f9abe3f4c8da2f8de493f98cd0bc696", "score": "0.61828655", "text": "public function get_progress_bar() {\n return $this->progress_bar;\n }", "title": "" }, { "docid": "f0996ca8c3b1dc2e780da872c886db9a", "score": "0.61805016", "text": "public function initiateProgressBar(): void\n {\n if (version_compare(PHP_VERSION, '7.2.0', '>=')) {\n error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);\n }\n $countOfRows = array_sum(array_map(\"count\", $this->languageArray));\n\n $this->progressBar = new ProgressBar($this->consoleOutput, $countOfRows);\n $this->progressBar->setBarCharacter('<fg=green>⚬</>');\n $this->progressBar->setProgressCharacter('<fg=green>➤</>');\n $this->progressBar->setEmptyBarCharacter(\"<fg=red>⚬</>\");\n $this->progressBar->setMessage(\"<fg=white;bg=blue>Loading....</>\", 'status');\n $this->progressBar->setFormat(\"<fg=white;bg=blue>Creating file: {$this->folder['destination']}\\\\{$this->filename['destination']}{$this->writer->extension}</>\\n%current%/%max% [%bar%] %percent:3s%%\\n %estimated:-20s% %memory:20s%\\n%status%\\n\");\n $this->progressBar->setBarWidth(50);\n $this->progressBar->start();\n }", "title": "" }, { "docid": "2e9212aa11ea7b98997846ff93e6fa66", "score": "0.6180428", "text": "function setProgressFunc($progressFunc);", "title": "" }, { "docid": "1d9e0c06a00c350066b9eb546eecac79", "score": "0.6107694", "text": "function psu_progress($params, &$tpl)\n\t{\n\t\tif($params['text'])\n\t\t{\n\t\t\t$params['bars'][] = array(\n\t\t\t\t'text' => $params['text'],\n\t\t\t\t'percent' => $params['percent'],\n\t\t\t\t'url' => $params['url'],\n\t\t\t\t'class' => $params['class'],\n\t\t\t\t'selected' => $params['selected']\n\t\t\t);\n\t\t}//end if\n\t\telseif(!$params['text'] && !$params['bars'])\n\t\t{\n\t\t\t$params['bars'][] = array();\n\t\t}//end elseif\n\t\n\t\t// get the template data\n\t\t$tpl->assign('progress_id', $params['id']);\n\t\t$tpl->assign('progress_bars', $params['bars']);\n\t\t$progress_html = $this->fetch( self::$STYLE_TEMPLATES . '/progress_bar.tpl');\n\n\t\t// make sure parent template uses the correct CSS and JS files\n\t\t$tpl->addCSS( '/app/core/css/style-psuprogress.css' );\n\n\t\treturn $progress_html;\n\t}", "title": "" }, { "docid": "e3790083e97a96c56362261acb542c3c", "score": "0.6105632", "text": "function print_progress_bar($total_recs, $current_rec_num) {\n global $num_progress_bar_chunks;\n // Print 1 per object.\n if ($total_recs < $num_progress_bar_chunks) {\n print \"#\";\n }\n else {\n // Print 1 per $progress_bar_chunk_size objects.\n $progress_bar_chunk_size = $total_recs / $num_progress_bar_chunks;\n if ($current_rec_num % $progress_bar_chunk_size == 0) {\n print \"#\";\n }\n }\n}", "title": "" }, { "docid": "d37993f10d7d5a7a831c5f2ab3364455", "score": "0.60916257", "text": "function printTotalDiskBar($dup, $name = \"\", $dsu, $dts)\n{\n\tif ($dup < 95)\n\t{\n\t\t$progress = \"progress-bar\";\n\t}\n\telse if (($dup >= 95) && ($dup < 99))\n\t{\n\t\t$progress = \"progress-bar progress-bar-warning\";\n\t}\n\telse\n\t{\n\t\t$progress = \"progress-bar progress-bar-danger\";\n\t}\n\n\tif ($name != \"\") echo '<!-- ' . $name . ' -->';\n\techo '<div class=\"exolight\">';\n\t\tif ($name != \"\")\n\t\t\techo $name . \": \";\n\t\t\techo number_format($dup, 0) . \"%\";\n\t\techo '<div rel=\"tooltip\" data-toggle=\"tooltip\" data-placement=\"bottom\" title=\"' . byteFormat(autoByteFormat($dsu)[0], autoByteFormat($dsu)[1], autoByteFormat($dsu)[2]) . ' free out of ' . byteFormat(autoByteFormat($dts)[0], autoByteFormat($dts)[1], autoByteFormat($dts)[2]) . '\" class=\"progress\">';\n\t\t\techo '<div class=\"'. $progress .'\" style=\"width: ' . $dup . '%\"></div>';\n\t\techo '</div>';\n\techo '</div>';\n}", "title": "" }, { "docid": "f7d383ba464cab01d892001f3dca3fc0", "score": "0.6081175", "text": "protected function initProgressBar(MigrationInterface $migration): void\n {\n if ($this->exposeProgressBar) {\n $source = clone $migration->getSourcePlugin();\n $this->progressBar = new ProgressBar($this->output, $source->count(), 0);\n if ('\\\\' !== \\DIRECTORY_SEPARATOR || 'Hyper' === getenv('TERM_PROGRAM')) {\n $this->progressBar->setEmptyBarCharacter('░');\n $this->progressBar->setProgressCharacter('');\n $this->progressBar->setBarCharacter('▓');\n }\n }\n }", "title": "" }, { "docid": "bdf9953768ac5889dda0ad8710f6d668", "score": "0.60691464", "text": "function h_stepper_bar( $object )\n{\n\n\t$progress_pills = array();\n\tfor ($i=1; $i <= $object->required_questions; $i++) {\n\t\t$progress_pills[] = sprintf( '<div class=\"progress__item %s\"></div>',\n\t\t\t$i < $object->get_step() ? 't-comp-bg' : ''\n\t\t);\n\t}\n\n\treturn sprintf( '<div class=\"progress progress--pills\" title=\"%s\">%s</div>',\n\t\tsprintf( __( '%d/%d Questions done', 'gladtidings' ), $object->get_step(), $object->required_questions ),\n\t\timplode( $progress_pills )\n\t);\n}", "title": "" }, { "docid": "4782771d538b6f538e30f7d9f5d72654", "score": "0.60612935", "text": "function file_progress($id) {\n if (FILE_APC && $id) {\n $status = apc_fetch(FILE_APC_PREFIX . $id);\n $percentage = (is_array($status) && isset($status['total']) && $status['total'] != 0) ? ceil($status['current']/$status['total']*100) : -1;\n drupal_json(array('status' => TRUE, 'percentage' => $percentage, 'message' => $percentage < 100 ? t('Uploading...') : t('Processing...')));\n }\n exit;\n}", "title": "" }, { "docid": "691ed99a14933ae1c50f4a31c2da1d61", "score": "0.6060719", "text": "function drush_ajax_page_load_nprogress_plugin() {\n $path = 'sites/all/libraries';\n\n // Create the path if it does not exist.\n if (!is_dir($path)) {\n drush_op('mkdir', $path);\n drush_log(dt('Directory @path was created', array('@path' => $path)), 'notice');\n }\n\n // Set the directory to the download location.\n $olddir = getcwd();\n chdir($path);\n\n // Download the zip archive.\n if ($filepath = drush_download_file(AJAX_PAGE_LOAD_NPROGRESS_DOWNLOAD_URI)) {\n $filename = basename($filepath);\n $dirname = AJAX_PAGE_LOAD_NPROGRESS_DOWNLOAD_PREFIX . basename($filepath, '.zip');\n\n // Remove any existing NProgress plugin directory.\n if (is_dir($dirname) || is_dir('nprogress')) {\n drush_delete_dir($dirname, TRUE);\n drush_delete_dir('nprogress', TRUE);\n drush_log(dt('A existing nprogress plugin was deleted from @path', array('@path' => $path)), 'notice');\n }\n\n // Decompress the zip archive.\n drush_tarball_extract($filename);\n\n // Change the directory name to \"nprogress\" if needed.\n if ($dirname != 'nprogress') {\n drush_move_dir($dirname, 'nprogress', TRUE);\n $dirname = 'nprogress';\n }\n }\n\n if (is_dir($dirname)) {\n drush_log(dt('NProgress plugin has been installed in @path', array('@path' => $path)), 'success');\n }\n else {\n drush_log(dt('Drush was unable to install the NProgress plugin to @path', array('@path' => $path)), 'error');\n }\n\n // Set working directory back to the previous working directory.\n chdir($olddir);\n}", "title": "" }, { "docid": "dd76e4f7b99c82bf9c8cb7d3faf491cb", "score": "0.6028362", "text": "private function output()\n {\n if($this->progress > $this->total) {\n return;\n }\n\n $percentComplete = (double) ($this->progress / $this->total);\n\n $bar = floor($percentComplete * $this->width);\n\n $statusBar = \"\\r[\";\n $statusBar .= str_repeat('#', $bar);\n\n if ($bar < $this->width) {\n $statusBar .= str_repeat(' ', $this->width - $bar);\n }\n\n $statusBar .= ']';\n\n echo $statusBar;\n\n flush();\n }", "title": "" }, { "docid": "dcb132900170472cd47890c13d2ea3fb", "score": "0.60007554", "text": "function _drawProgressBarIndicator()\n {\n if ($this->DATAGRID_RENDER_OUTPUT == DATAGRID_RENDER_EXCEL_HTML || $this->DATAGRID_RENDER_OUTPUT == DATAGRID_RENDER_EXCEL_BIFF) {\n return \"\";\n }\n global $DATAGRIDWORDS;\n return \"\n <div id=\\\"divIndicatorGrid\\\" class=\\\"indicator\\\" style=\\\"display : none\\\">\n <img src=\\\"\" . $this->imageList['indicator'] . \"\\\" align=\\\"left\\\" width=\\\"16\\\" height=\\\"16\\\" border=\\\"0\\\">\n <span id=\\\"textGrid\\\">\" . $DATAGRIDWORDS['please wait'] . \"<br />\" . $DATAGRIDWORDS['loading grid'] . \"...</span>\n </div>\";\n }", "title": "" }, { "docid": "48e2e4a1b2995012d860d08efecdced7", "score": "0.59991205", "text": "function progressbar($part, $total) {\n\n # character length for progress bar\n $pb_length = 10;\n\n # calculate the part\n $pb_part = round( ($part > 0 && $total > 0) ? ($part/$total) * $pb_length : 0);\n # calculate the total\n $pb_total = $pb_length;\n\n return\n '['.\n str_repeat('#', ($part < $total && $pb_part > 0) ? $pb_part - 1 : $pb_part ).\n\n ($part < $total && $pb_part > 0 ? '>' : '').\n\n str_repeat('.', $pb_total - $pb_part).\n '] '.\n # the first number is the actual amount of characters in the\n # resulting string, and we want 000.000, so that's 7\n sprintf(\"%07.3f\", ($part > 0 && $total > 0) ? ($part / $total) * 100 : 0, 1).\n '% '.\n str_pad($part, strlen($total), '0', STR_PAD_LEFT).\n '/'.\n $total.\n ' '\n ;\n}", "title": "" }, { "docid": "dcb200cfb5f4d2aebd142d88662ab94c", "score": "0.59716004", "text": "function get_progress_bar_text($mode='',$add=0)\r\n {\r\n\t\tif($this->debug>0){error_log('New LP - In learnpath::get_progress_bar_text()',0);}\r\n \tif(empty($mode)){$mode = $this->progress_bar_mode;}\r\n \t$total_items = $this->get_total_items_count_without_chapters();\r\n \tif($this->debug>2){error_log('New LP - Total items available in this learnpath: '.$total_items,0);}\r\n \t$i = $this->get_complete_items_count();\r\n\t\tif($this->debug>2){error_log('New LP - Items completed so far: '.$i,0);}\r\n \tif($add != 0){\r\n \t\t$i += $add;\r\n\t\t\tif($this->debug>2){error_log('New LP - Items completed so far (+modifier): '.$i,0);}\r\n \t}\r\n \t$text = '';\r\n \tif($i>$total_items){\r\n \t\t$i = $total_items;\r\n \t}\r\n \tif($mode == '%'){\r\n \t\tif($total_items>0){\r\n\t\t \t$percentage = ((float)$i/(float)$total_items)*100;\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\t$percentage = 0;\r\n \t\t}\r\n\t\t $percentage = number_format($percentage,0);\r\n\t \t$text = '%';\r\n \t}elseif($mode == 'abs'){\r\n\t \t$percentage = $i;\r\n \t\t$text = '/'.$total_items;\r\n \t}\r\n \treturn array($percentage,$text);\r\n }", "title": "" }, { "docid": "1cdc04f57cefd6be413f708e88542b94", "score": "0.59577227", "text": "function printDiskBar($dup, $name = \"\", $dsu, $dts)\n{\n\tif ($dup < 90)\n\t{\n\t\t$progress = \"progress-bar\";\n\t}\n\telse if (($dup >= 90) && ($dup < 95))\n\t{\n\t\t$progress = \"progress-bar progress-bar-warning\";\n\t}\n\telse\n\t{\n\t\t$progress = \"progress-bar progress-bar-danger\";\n\t}\n\n\tif ($name != \"\") echo '<!-- ' . $name . ' -->';\n\techo '<div class=\"exolight\">';\n\t\tif ($name != \"\")\n\t\t\techo $name . \": \";\n\t\t\techo number_format($dup, 0) . \"%\";\n\t\techo '<div rel=\"tooltip\" data-toggle=\"tooltip\" data-placement=\"bottom\" title=\"' . byteFormat(autoByteFormat($dsu)[0], autoByteFormat($dsu)[1], autoByteFormat($dsu)[2]) . ' free out of ' . byteFormat(autoByteFormat($dts)[0], autoByteFormat($dts)[1], autoByteFormat($dts)[2]) . '\" class=\"progress\">';\n\t\t\techo '<div class=\"'. $progress .'\" style=\"width: ' . $dup . '%\"></div>';\n\t\techo '</div>';\n\techo '</div>';\n}", "title": "" }, { "docid": "3140efa2159c55475de037d043bcad2a", "score": "0.59558505", "text": "public function incrementProgress()\n {\n $this->progress++;\n\n $this->output();\n }", "title": "" }, { "docid": "af75ace2348a57ffae06c927f9229924", "score": "0.593348", "text": "function _incrementalDbAction_getProgress() { \r\n $currentOperation = _incrementalDbAction_currentOperation();\r\n\r\n $filesize = filesize($currentOperation['filePath']);\r\n $offset = $currentOperation['fileOffset'];\r\n $percentageComplete = intval(($offset / $filesize) * 100);\r\n $elapsedSeconds = time() - $currentOperation['startTime'];\r\n $elapsedMinutes = intval($elapsedSeconds / 60);\r\n $elapsedTime = $elapsedSeconds < 60 ? \"$elapsedSeconds seconds\" : \"$elapsedMinutes minutes\";\r\n $actionName = ucfirst($currentOperation['action']);\r\n \r\n //$text = \"$actionName progress: $percentageComplete% complete, elapsed runtime: $elapsedTime<br>\\n\";\r\n return [$percentageComplete, $elapsedTime, $actionName];\r\n}", "title": "" }, { "docid": "f15f4acc9924ce35f36fdb483b99f8ee", "score": "0.59204525", "text": "protected function createBar()\n {\n if ($this->getCountSource() - $this->getCountBelowMigrateFromID() - $this->getCountTarget() != 0) {\n if ($this->migrateFromId < $this->getLastIdTarget()) {\n $this->bar = $this->output->createProgressBar($this->getCountSource() - ($this->getCountTarget() + $this->getCountBelowMigrateFromID()));\n } else {\n $this->bar = $this->output->createProgressBar($this->getCountSource() - $this->getCountBelowMigrateFromID());\n }\n $this->bar->setFormat('%current%/%max% [%bar%] %percent:3s%% %elapsed:6s%/%estimated:-6s% -- %message%');\n $this->bar->setMessage('Data is being transferred to ' . $this->targetModel->table . ' table');\n $this->bar->start();\n } else {\n $this->bar = $this->output->createProgressBar();\n $this->bar->setFormat('-- %message%');\n $this->bar->setMessage('No data to transfer');\n }\n }", "title": "" }, { "docid": "80e0a9f20d5581dd72bfa4a6ab99de23", "score": "0.58967924", "text": "function status ( $item ) {\n\tprintf( \"%s: %s / %s%%\\n\", $item->name, $item->status, $item->progress );\n}", "title": "" }, { "docid": "8d340f443efe77a4b9fa7bf7da6a57eb", "score": "0.58943", "text": "public function getProgressBar(): ProgressBar\n {\n if ($this->progressBar === null) {\n $this->progressBar = new ProgressBar($this->output);\n if (is_callable([$this->progressBar, 'minSecondsBetweenRedraws'])) {\n $this->progressBar->minSecondsBetweenRedraws(0);\n }\n if (is_callable([$this->progressBar, 'maxSecondsBetweenRedraws'])) {\n $this->progressBar->maxSecondsBetweenRedraws(0);\n }\n }\n return $this->progressBar;\n }", "title": "" }, { "docid": "9a26823fe3a7aa27a92fb24c0de38dfa", "score": "0.58732426", "text": "private static function percantageProgress($done, $total, $size=30) {\n\n\n static $start_time;\n\n // if we go over our bound, just ignore it\n if($done > $total || $total == 0) return;\n\n\n if(empty($start_time)) $start_time=time();\n $now = time();\n\n $perc=(double)($done/$total);\n\n $bar=floor($perc*$size);\n\n $status_bar=\"\\r\" . self::$color['green'] . self::$progressbar[0];\n $status_bar.=str_repeat(self::$progressbar[1], $bar);\n if($bar<$size){\n $status_bar.=self::$progressbar[3];\n $status_bar.=str_repeat(self::$progressbar[2], $size-$bar);\n } else {\n $status_bar.= self::$progressbar[1];\n }\n\n $disp=number_format($perc*100, 0);\n\n $donev = File::format($done);\n $totalv = File::format($total);\n\n $status_bar.= self::$progressbar[4] . self::$color['default'] . \" $disp% $donev/$totalv \";\n\n $rate = $done == 0 ? 0 : ($now-$start_time)/$done;\n $left = $total - $done;\n $eta = round($rate * $left, 2);\n\n $elapsed = $now - $start_time;\n\n\n $status_bar.= sprintf(self::$progressbar[5], number_format($eta), number_format($elapsed));\n\n echo $status_bar;\n\n // flush();\n }", "title": "" }, { "docid": "d5cbee3428a7b31ef9ee16ca7d10ce86", "score": "0.58665395", "text": "public function progressbar() {\n $userid = $this->session->userdata('aileenuser');\n $contition_array = array('user_id' => $userid, 'status' => '1', 'is_delete' => '0');\n $this->data['apply_reg'] = $apply_reg = $this->common->select_data_by_condition('freelancer_post_reg', $contition_array, $data = 'freelancer_post_fullname,freelancer_post_username,freelancer_post_skypeid,freelancer_post_email,freelancer_post_phoneno,freelancer_post_country,freelancer_post_state,freelancer_post_city,freelancer_post_pincode,freelancer_post_field,freelancer_post_area,freelancer_post_skill_description,freelancer_post_hourly,freelancer_post_ratestate,freelancer_post_fixed_rate,freelancer_post_job_type,freelancer_post_work_hour,freelancer_post_degree,freelancer_post_stream,freelancer_post_univercity,freelancer_post_collage,freelancer_post_percentage,freelancer_post_passingyear,freelancer_post_portfolio_attachment,freelancer_post_portfolio,freelancer_post_exp_month,freelancer_post_exp_year,progressbar', $sortby = '', $orderby = '', $limit = '', $offset = '', $join_str = array(), $groupby = array());\n\n if ($apply_reg > 0) {\n $notEmpty = 0;\n $totalField = 26;\n\n foreach ($apply_reg as $row) {\n $notEmpty += ($row['freelancer_post_fullname'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_username'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_skypeid'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_email'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_phoneno'] != 0) ? 1 : 0;\n $notEmpty += ($row['freelancer_post_country'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_state'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_city'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_pincode'] != 0) ? 1 : 0;\n $notEmpty += ($row['freelancer_post_field'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_area'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_skill_description'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_hourly'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_ratestate'] != '') ? 1 : 0;\n // $notEmpty += ($row['freelancer_post_fixed_rate'] != 0) ? 1 : 0;\n $notEmpty += ($row['freelancer_post_job_type'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_work_hour'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_degree'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_stream'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_univercity'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_collage'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_percentage'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_passingyear'] != '') ? 1 : 0;\n // $notEmpty += ($row['freelancer_post_eduaddress'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_portfolio_attachment'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_portfolio'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_exp_month'] != '') ? 1 : 0;\n $notEmpty += ($row['freelancer_post_exp_year'] != '') ? 1 : 0;\n //do with all field\n }\n\n $percentage = $notEmpty / $totalField * 100;\n }\n\n $this->data['count_profile'] = $percentage;\n $this->data['count_profile_value'] = ($percentage / 100);\n\n\n if ($this->data['count_profile'] == 100) {\n if ($apply_reg[0]['progressbar'] != 1) {\n $data = array(\n 'progressbar' => '0',\n 'modify_date' => date('Y-m-d h:i:s', time())\n );\n $updatedata = $this->common->update_data($data, 'freelancer_post_reg', 'user_id', $userid);\n }\n } else {\n $data = array(\n 'progressbar' => '0',\n 'modify_date' => date('Y-m-d h:i:s', time())\n );\n $updatedata = $this->common->update_data($data, 'freelancer_post_reg', 'user_id', $userid);\n }\n }", "title": "" }, { "docid": "edeb70aef3b27ce6c5e08f00ae4dc1d6", "score": "0.5839512", "text": "private function registerProgressBar()\n {\n $this->app->bind(\n 'htmlelements::progressbar',\n function () {\n return new ProgressBar;\n }\n );\n }", "title": "" }, { "docid": "552e3afe79b2f553262c333eea18a5c0", "score": "0.58165216", "text": "function tc_backup_progress_wptc() {\r\n\r\n\tWPTC_Base_Factory::get('Wptc_App_Functions')->verify_ajax_requests();\r\n\r\n\tinclude_once ( WPTC_PLUGIN_DIR . 'Views/wptc-options-helper.php' );\r\n\tinclude_once ( WPTC_PLUGIN_DIR.'Views/wptc-progress.php' );\r\n\tdie();\r\n}", "title": "" }, { "docid": "94c017417e3e65cf7e7bbb154ec3aed1", "score": "0.5808719", "text": "public function progress_bar( $param = 0, $action = 'Migrating', $items = 'Rows' ) {\n\t\tif ( $param && is_numeric( $param ) ) {\n\t\t\t$this->progress_bar = Utils\\make_progress_bar( \"$action $param $items\", $param );\n\t\t} elseif ( 'tick' == $param ) {\n\t\t\t$this->progress_bar->tick();\n\t\t} elseif ( 'finish' == $param ) {\n\t\t\t$this->progress_bar->finish();\n\t\t}\n\n\t\treturn $this->progress_bar;\n\t}", "title": "" }, { "docid": "a84f69daec285bedc86bb47e6a36001f", "score": "0.57806444", "text": "public function getProgress()\n\t{\n\t\treturn $this->fltPercent;\n\t}", "title": "" }, { "docid": "706a9531e89301a8c07d47b2359a6668", "score": "0.57769746", "text": "function percent_bar($percent)\n{\n if ($percent == '') $percent = 0;\n if ($percent < 0) $percent = 0;\n if ($percent > 100) $percent = 100;\n // #B4D6B4;\n $html = \"<div class='percentcontainer'>\";\n $html .= \"<div class='percentbar' style='width: {$percent}%;'> <span class='percentbarpercent'>{$percent}&#037;</span>\";\n $html .= \"</div></div>\\n\";\n return $html;\n}", "title": "" }, { "docid": "5514a0ae6a3157b834a06b5f048c3aea", "score": "0.57628524", "text": "public function backup_progress($args) {\n\t\t$params = array();\n\t\t$params['job_id'] = $args[0];\n\t\t$this->set_commands_object();\n\t\t$data = $this->commands->backup_progress($params);\n\t\tWP_CLI::success($data['l']);\n\t}", "title": "" }, { "docid": "78f72216a0a6568855b525a71a32ec18", "score": "0.56929564", "text": "private static function progressBar($done, $total)\n {\n $perc = floor(($done / $total) * 100);\n $left = 100 - $perc;\n $write = sprintf(\"\\033[0G\\033[2K[%'={$perc}s>%-{$left}s] - $perc%% - $done/$total\", \"\", \"\");\n fwrite(STDERR, $write);\n }", "title": "" }, { "docid": "2989d7b0c4b2d776bc9d7286775ed580", "score": "0.56626415", "text": "public function getProgress()\n {\n return $this->progress;\n }", "title": "" }, { "docid": "8b6fd5ca9933ca4d7453f17539bc9f58", "score": "0.5647671", "text": "function wmf_progress_notice() {\n\tglobal $typenow, $pagenow, $post;\n\n\tif ( 'post.php' !== $pagenow || ! in_array( $typenow, array( 'post', 'page', 'profile' ), true ) || empty( $post->ID ) ) {\n\t\treturn;\n\t}\n\n\tif ( ! wmf_is_main_site() ) {\n\t\treturn;\n\t}\n\n\t$notice = new WMF\\Translations\\Notice( $post->ID );\n\t$notice->check_progress();\n\t$notice->maybe_show_notice();\n}", "title": "" }, { "docid": "c2fa1590ee4128e80a60d3cd1b1b5785", "score": "0.56303036", "text": "public function progressAction()\n {\n // prevStep available only from version 1.8.0.0\n if (version_compare(Mage::getVersion(), '1.8', '>=')){\n // previous step should never be null. We always start with billing and go forward\n $prevStep = $this->getRequest()->getParam('prevStep', false);\n\n if ($this->_expireAjax() || !$prevStep) {\n return null;\n }\n\n $quote = $this->getOnepage()->getQuote();\n Mage::getModel('mailingwork_sync/abandonedcartcheckoutstatus')->updateStatus($quote->getId(), $prevStep);\n }\n\n parent::progressAction();\n }", "title": "" }, { "docid": "cc5179d9743b462a36a437832e32175b", "score": "0.56285375", "text": "private function _get_status_bar()\r\n\t{\r\n \t$from = $this->current_start ? $this->current_start+1 : '1';\r\n \tif($from + $this->limit <= $this->total_rows)\r\n \t{\r\n \t $to = $from + $this->limit - 1;\r\n \t}\r\n \telse \r\n \t{\r\n \t $to = $this->total_rows;\r\n \t}\r\n\t\tif($this->total_rows == 0)\r\n\t\t{\r\n\t\t\t$from = $to = 0;\r\n\t\t}\r\n \t$txt = str_replace('<FROM>',$from,PAGINATION_SHOWING);\r\n \t$txt = str_replace('<TO>',$to,$txt);\r\n \t$txt = str_replace('<TOTAL>',$this->total_rows,$txt);\r\n \t$status = '<div class=\"pagination_showing\">'.$txt.'</div>';\r\n \treturn $status;\r\n\t}", "title": "" }, { "docid": "f84c99f440d9fc87a4eda0cdeb5f78c2", "score": "0.5626148", "text": "function timeNprogress($itemid){\nglobal $stories_progressbar_id,$stories_timeusedbar_id,$sprint_progressbar_id,$sprint_timeused_id,$project_progressbar_id,$project_timeused_id,$stories_alottedtime_id,$stories_timelogged_id,$stories_sprint_id,$stories_project_id,$space_id,$stories_app_id;\n \n//variables\n$itemid=$itemid; //this is the current id coming from $_POST\n$filteredItem = PodioItem::get($itemid);\n$filteredFields = $filteredItem->fields;\n$appID = $filteredItem->app->app_id;\n\n$currentStoryProgressBarValue = 0;\n$currentStoryTimeBarValue = 0;\n$currentStoryTimeLogged = 0;\n$currentStoryTimeAlloted= 0;\n\n$relSprint = array();\n$relProject = array();\n\n//Limit to stories app updates only\nif($appID == $stories_app_id){\n\n//loop through fields\n foreach($filteredFields as $field){\n $filteredFieldId = $field->field_id;\n $filteredFieldType = $field->type;\n $filteredFieldValues = $field->values;\n \n //if field is progress bar field (progress)\n if($filteredFieldId == $stories_progressbar_id){ \n $currentStoryProgressBarValue = intval($filteredFieldValues);\n }\n //if field is progress bar field (progress)\n if($filteredFieldId == $stories_timeusedbar_id){ \n $currentStoryTimeBarValue = intval($filteredFieldValues);\n }\n //if alotted time field (duration)\n if($filteredFieldId == $stories_alottedtime_id){ \n $currentStoryTimeAlloted = intval($filteredFieldValues);\n }\n //if time logged in field (duration)\n if($filteredFieldId == $stories_timelogged_id){ \n $currentStoryTimeLogged = intval($filteredFieldValues);\n }\n if($filteredFieldId==$stories_sprint_id){\n foreach($filteredFieldValues as $value){\n $relSprintId = $value->item_id;\n $relSprint[] = $relSprintId;\n }\n }\n if($filteredFieldId==$stories_project_id){\n foreach($filteredFieldValues as $value){\n $relProjectId = $value->item_id;\n $relProject[] = $relProjectId;\n }\n } \n \n }\n \n //Time Progress Bar\n \n $finalStoryTimePercentage = round($currentStoryTimeLogged*100/$currentStoryTimeAlloted);\n \n if($currentStoryTimeBarValue != $finalStoryTimePercentage){\n PodioItem::update($itemid, array('fields' => array($stories_timeusedbar_id => $finalStoryTimePercentage))); //works fine\n //echo '<p>values differ</p>';\n } \n \n \n //Get related sprints and stories and update task complete/remaining progress bar and time used/remaining bar\n $relSprintUnique = array_unique($relSprint); \n \n foreach($relSprintUnique as $sprintItem){\n $sprintItemId = $sprintItem;\n \n //Get current sprint progress bar and task bar values\n $currentSprintTimeBarValue = 0;\n $currentSprintTaskBarValue = 0;\n $currentSprint = PodioItem::get($sprintItemId);\n foreach($currentSprint->fields as $currentSprintFieldKey => $currentSprintFieldValue){\n if($currentSprintFieldValue->field_id == $sprint_progressbar_id){\n $currentSprintTaskBarValue = $currentSprintFieldValue->values;\n }\n if($currentSprintFieldValue->field_id == $sprint_timeused_id){\n $currentSprintTimeBarValue = $currentSprintFieldValue->values;\n }\n } \n \n //Get all stories pointing to current sprint via relationship fields\n $sprintRefs = PodioItem::get_references($sprintItemId);\n \n //sprint level values\n $SprintStoryCount = 0; \n $sprintAllotedTimeArray = array();\n $sprintLoggedTimeArray = array();\n $sprintCompletedTaskCount = 0;\n $sprintActiveTaskCount = 0;\n $sprintAllTaskCount = 0;\n \n //loop through referenced items\n foreach($sprintRefs as $sprintKey => $sprintValue){\n if($sprintValue['app']['app_id'] == $stories_app_id){\n \n $sprintItems = $sprintValue['items'];\n foreach($sprintItems as $sprintItemsKey => $sprintItemsValue){\n\n //individual story item level\n \n //item level values\n $sprintStoryCount++;\n $sprintItemIdSub=$sprintItemsValue['item_id'];\n \n //item level - get time values\n $sprintItemSub = PodioItem::get($sprintItemIdSub); \n \n foreach($sprintItemSub->fields as $sprintItemFieldSubKey => $sprintItemFieldSubValue){\n if($sprintItemFieldSubValue->field_id==$stories_timelogged_id){\n $sprintLoggedTimeArray[] = intval($sprintItemFieldSubValue->values);\n }\n if($sprintItemFieldSubValue->field_id==$stories_alottedtime_id){\n $sprintAllotedTimeArray[] = intval($sprintItemFieldSubValue->values);\n }\n }\n \n //item level - get task values\n $sprintTasksAttr = array( \n 'space' => $space_id, //space id of project board\n 'offset' => 0,\n 'reference' => 'item:' . $sprintItemIdSub,\n );\n $sprintTasks = PodioTask::get_all($sprintTasksAttr);\n \n foreach($sprintTasks as $sprintTask){\n \n //task level values\n $sprintTaskId = $sprintTask->task_id;\n $sprintTaskRef = $sprintTask->ref;\n $sprintRefId = $sprintTaskRef->id;\n $sprintTaskStatus = $sprintTask->status;\n \n if($sprintTaskStatus == 'completed'){\n $sprintCompletedTaskCount++;\n }elseif($sprintTaskStatus == 'active'){\n $sprintActiveTaskCount++;\n }\n \n $sprintAllTaskCount++;\n };\n \n }//end for each sprint item\n \n } //if related item is story\n \n } //loop through each id in the related sprint array\n \n //Update sprint information\n \n //adding up arrays\n $sprintTasksCount = $sprintAllTaskCount;\n $sprintActiveTasksCount = $sprintActiveTaskCount;\n $sprintCompletedTasksCount = $sprintCompletedTaskCount;\n $sprintAllotedTime = array_sum($sprintAllotedTimeArray);\n $sprintLoggedTime = array_sum($sprintLoggedTimeArray);\n \n //tallying up percentages\n $finalSprintTimePercentage = round($sprintLoggedTime*100/$sprintAllotedTime);\n $finalSprintTaskPercentage = round($sprintCompletedTasksCount*100/$sprintTasksCount);\n\n //updating progress bar and time used bar if difference is found\n if($currentSprintTimeBarValue != $finalSprintTimePercentage || $currentSprintTaskBarValue != $finalSprintTaskPercentage){\n PodioItem::update($sprintItemId, array('fields' => array($sprint_timeused_id => $finalSprintTimePercentage,$sprint_progressbar_id => $finalSprintTaskPercentage)));\n } \n \n }\n \n //related project items and stories\n $relProjectUnique = array_unique($relProject); \n \n foreach($relProjectUnique as $projectItem){\n $projectItemId = $projectItem;\n \n //get current progress bar and task bar values\n $currentProjectTimeBarValue = 0;\n $currentProjectTaskBarValue = 0;\n $currentProject = PodioItem::get($projectItemId);\n ////var_dump($currentProject);\n foreach($currentProject->fields as $currentProjectFieldKey => $currentProjectFieldValue){\n if($currentProjectFieldValue->field_id == $project_progressbar_id){\n $currentProjectTaskBarValue = $currentProjectFieldValue->values;\n }\n if($currentProjectFieldValue->field_id == $project_timeused_id){\n $currentProjectTimeBarValue = $currentProjectFieldValue->values;\n }\n }\n\n //get all items pointing to current project\n $projectRefs = PodioItem::get_references($projectItemId);\n \n //project level values\n $ProjectStoryCount = 0; \n $projectAllotedTimeArray = array();\n $projectLoggedTimeArray = array();\n $projectCompletedTaskCount = 0;\n $projectActiveTaskCount = 0;\n $projectAllTaskCount = 0;\n \n //loop through referenced items\n foreach($projectRefs as $projectKey => $projectValue){\n\n if($projectValue['app']['app_id'] == $stories_app_id){\n $projectItems = $projectValue['items'];\n foreach($projectItems as $projectItemsKey => $projectItemsValue){\n \n //item level values\n $projectStoryCount++;\n $projectItemIdSub=$projectItemsValue['item_id'];\n \n //item level - get time values\n $projectItemSub = PodioItem::get($projectItemIdSub); \n \n foreach($projectItemSub->fields as $projectItemFieldSubKey => $projectItemFieldSubValue){\n if($projectItemFieldSubValue->field_id==$stories_timelogged_id){\n $projectLoggedTimeArray[] = intval($projectItemFieldSubValue->values);\n }\n if($projectItemFieldSubValue->field_id==$stories_alottedtime_id){\n $projectAllotedTimeArray[] = intval($projectItemFieldSubValue->values);\n }\n }\n \n //item level - get task values\n $projectTasksAttr = array( \n 'space' => $space_id, \n 'offset' => 0,\n 'reference' => 'item:' . $projectItemIdSub,\n );\n $projectTasks = PodioTask::get_all($projectTasksAttr);\n \n foreach($projectTasks as $projectTask){\n \n //TASK LEVEL VALUES\n $projectTaskId = $projectTask->task_id;\n $projectTaskRef = $projectTask->ref;\n $projectRefId = $projectTaskRef->id;\n $projectTaskStatus = $projectTask->status;\n \n if($projectTaskStatus == 'completed'){\n $projectCompletedTaskCount++;\n }elseif($projectTaskStatus == 'active'){\n $projectActiveTaskCount++;\n }\n \n $projectAllTaskCount++;\n };\n \n }\n \n } //end if is story reference item\n\n } //end story level\n \n //project level debugging results\n \n //adding up arrays\n $projectTasksCount = $projectAllTaskCount;\n $projectActiveTasksCount = $projectActiveTaskCount;\n $projectCompletedTasksCount = $projectCompletedTaskCount;\n $projectAllotedTime = array_sum($projectAllotedTimeArray);\n $projectLoggedTime = array_sum($projectLoggedTimeArray);\n \n \n //percentages\n $finalProjectTimePercentage = round($projectLoggedTime*100/$projectAllotedTime);\n $finalProjectTaskPercentage = round($projectCompletedTasksCount*100/$projectTasksCount);\n \n \n if($currentProjectTimeBarValue != $finalProjectTimePercentage || $currentProjectTaskBarValue != $finalProjectTaskPercentage){\n PodioItem::update($projectItemId, array('fields' => array($project_timeused_id => $finalProjectTimePercentage,$project_progressbar_id => $finalProjectTaskPercentage)));\n }\n }\n \n \n}//end if stories app id\n \n}", "title": "" }, { "docid": "b18c263eb71b3f309b5ced18f092848d", "score": "0.56189716", "text": "function national_view_progress_bar_reported($from,$to)\n\t{\n\t\t$summary_results=$this->national_view_data_summary($from,$to);\n\n\t\tforeach($summary_results as $summary_report)\n\t\t{\n\t\t\t$reported_summary=(int)$summary_report['percentage_reported'];\n\t\t}\n\n\t\t$progress_bar='<div class=\"progress-bar progress-bar-success\" role=\"progressbar\" aria-valuenow=\"'.$reported_summary.'\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width:'.$reported_summary.'%;\">\n\t\t\t\t\t\t <b>'.$reported_summary.'%</b>\n\t\t\t\t\t\t </div>';\n\n\t\treturn $progress_bar;\n\t}", "title": "" }, { "docid": "188dcd31178515997b4cc2e163efade5", "score": "0.5580049", "text": "function HTML_Progress_DM()\n {\n $this->_package = 'HTML_Progress';\n $this->_minimum = 0;\n $this->_maximum = 100;\n $this->_increment = +1;\n\n $args = func_get_args();\n \n switch (count($args)) {\n case 2:\n /* int min, int max */\n\n if (!is_int($args[0])) {\n return HTML_Progress::raiseError(HTML_PROGRESS_ERROR_INVALID_INPUT, 'exception',\n array('var' => '$min',\n 'was' => $args[0],\n 'expected' => 'integer',\n 'paramnum' => 1));\n\n } elseif ($args[0] < 0) {\n return HTML_Progress::raiseError(HTML_PROGRESS_ERROR_INVALID_INPUT, 'error',\n array('var' => '$min',\n 'was' => $args[0],\n 'expected' => 'positive',\n 'paramnum' => 1));\n\n } elseif ($args[0] > $args[1]) {\n return HTML_Progress::raiseError(HTML_PROGRESS_ERROR_INVALID_INPUT, 'error',\n array('var' => '$min',\n 'was' => $args[0],\n 'expected' => 'less than $max = '.$args[1],\n 'paramnum' => 1));\n }\n $this->_minimum = $args[0];\n\n\n if (!is_int($args[1])) {\n return HTML_Progress::raiseError(HTML_PROGRESS_ERROR_INVALID_INPUT, 'exception',\n array('var' => '$max',\n 'was' => $args[1],\n 'expected' => 'integer',\n 'paramnum' => 2));\n\n } elseif ($args[1] < 0) {\n return HTML_Progress::raiseError(HTML_PROGRESS_ERROR_INVALID_INPUT, 'error',\n array('var' => '$max',\n 'was' => $args[1],\n 'expected' => 'positive',\n 'paramnum' => 2));\n }\n $this->_maximum = $args[1];\n break;\n case 3:\n /* int min, int max, int inc */\n\n if (!is_int($args[0])) {\n return HTML_Progress::raiseError(HTML_PROGRESS_ERROR_INVALID_INPUT, 'exception',\n array('var' => '$min',\n 'was' => $args[0],\n 'expected' => 'integer',\n 'paramnum' => 1));\n\n } elseif ($args[0] < 0) {\n return HTML_Progress::raiseError(HTML_PROGRESS_ERROR_INVALID_INPUT, 'error',\n array('var' => '$min',\n 'was' => $args[0],\n 'expected' => 'positive',\n 'paramnum' => 1));\n\n } elseif ($args[0] > $args[1]) {\n return HTML_Progress::raiseError(HTML_PROGRESS_ERROR_INVALID_INPUT, 'error',\n array('var' => '$min',\n 'was' => $args[0],\n 'expected' => 'less than $max = '.$args[1],\n 'paramnum' => 1));\n }\n $this->_minimum = $args[0];\n\n if (!is_int($args[1])) {\n return HTML_Progress::raiseError(HTML_PROGRESS_ERROR_INVALID_INPUT, 'exception',\n array('var' => '$max',\n 'was' => $args[1],\n 'expected' => 'integer',\n 'paramnum' => 2));\n\n } elseif ($args[1] < 0) {\n return HTML_Progress::raiseError(HTML_PROGRESS_ERROR_INVALID_INPUT, 'error',\n array('var' => '$max',\n 'was' => $args[1],\n 'expected' => 'positive',\n 'paramnum' => 2));\n }\n $this->_maximum = $args[1];\n\n if (!is_int($args[2])) {\n return HTML_Progress::raiseError(HTML_PROGRESS_ERROR_INVALID_INPUT, 'exception',\n array('var' => '$inc',\n 'was' => $args[2],\n 'expected' => 'integer',\n 'paramnum' => 3));\n\n } elseif ($args[2] < 1) {\n return HTML_Progress::raiseError(HTML_PROGRESS_ERROR_INVALID_INPUT, 'error',\n array('var' => '$inc',\n 'was' => $args[2],\n 'expected' => 'greater than zero',\n 'paramnum' => 3));\n }\n $this->_increment = $args[2];\n break;\n default:\n }\n $this->_value = $this->_minimum;\n }", "title": "" }, { "docid": "da4d0dbe39fc5b7698dea7d451993d1d", "score": "0.5566785", "text": "public function update() {\n\t\t$this->progress_bar = new ProgressBar();\n\t\t$this->progress_bar->run();\n\n\t\t$this->updater->update_collection();\n\t}", "title": "" }, { "docid": "342cf61d6fe16bc5bcbf71dc605d9b17", "score": "0.55587494", "text": "function ajax_page_load_drush_command() {\n $items = array();\n\n // The key in the $items array is the name of the command.\n $items['nprogress-plugin'] = array(\n 'callback' => 'drush_ajax_page_load_nprogress_plugin',\n 'description' => dt('Download and install the NProgress plugin.'),\n 'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,\n 'arguments' => array(),\n 'aliases' => array('nprogressplugin'),\n );\n\n return $items;\n}", "title": "" }, { "docid": "d30633aad22cbbea2a2197446aa708b2", "score": "0.551185", "text": "function HTML_TIMER()\n{\n echo\n \"<SCRIPT>\nvar timeleft = 5;\nvar downloadTimer = setInterval(function(){\n document.getElementById(\\\"progressBar\\\").value = 5 - --timeleft;\n if(timeleft <= 0)\n clearInterval(downloadTimer);\n},1000);\n</SCRIPT>\";\n}", "title": "" }, { "docid": "c00622c0a5775810f7d44895510d88c3", "score": "0.5508841", "text": "function theme_quiz_progress($variables) {\n drupal_add_js(drupal_get_path('module', 'quiz') . '/js/quiz.jumper.js');\n $output = '';\n $output .= '<div id=\"quiz-progress\">';\n $text = 'Page <span id=\"quiz-question-number\">!x</span> of <span id=\"quiz-num-questions\">@y</span>';\n\n if ($variables['allow_jumping']) {\n // Show jump form.\n if ($variables['pager']) {\n $output .= theme('quiz_pager', array(\n 'siblings' => variable_get('quiz_pager_siblings', 5),\n 'current' => $variables['current'],\n 'total' => count($variables['questions']),\n ));\n }\n else {\n $selectbox = drupal_get_form('quiz_jumper_form', $variables['questions'], $variables['current']);\n $output .= t($text, array('!x' => drupal_render($selectbox), '@y' => count($variables['questions'])));\n }\n }\n else {\n // Just text.\n $output .= t($text, array('!x' => $variables['current'], '@y' => count($variables['questions'])));\n }\n\n $output .= '</div>' . \"\\n\";\n // Add div to be used by jQuery countdown\n if ($variables['time_limit']) {\n $output .= '<div class=\"countdown\"></div>';\n }\n return $output;\n}", "title": "" }, { "docid": "a2fa5b25ab8fd3e69b307e544ba043b6", "score": "0.55031395", "text": "public static function print_loading() {\n echo \"<div class='progress'>\" .\n \"<div class='progress-bar progress-bar-striped active' role='progressbar' aria-valuenow='100' aria-valuemin='0' aria-valuemax='100' style='width: 100%'>\" .\n \"Loading\" .\n \"</div>\" .\n \"</div>\";\n }", "title": "" }, { "docid": "0584373773e90e8743f96e4ff2727734", "score": "0.54937583", "text": "function get_progress_bar_mode()\r\n {\r\n\t\tif($this->debug>0){error_log('New LP - In learnpath::get_progress_bar_mode()',0);}\r\n \tif(!empty($this->progress_bar_mode))\r\n \t{\r\n \t\treturn $this->progress_bar_mode;\r\n \t}else{\r\n \t\treturn '%';\r\n \t}\r\n }", "title": "" }, { "docid": "35d2e0780c700219fa7fc1def7586307", "score": "0.54811037", "text": "function get_progress()\r\n {\r\n\t\tif($this->debug>0){error_log('New LP - In learnpath::get_progress()',0);}\r\n \tif(!empty($this->progress_db))\r\n \t{\r\n \t\treturn $this->progress_db;\r\n \t}\r\n \treturn 0;\r\n }", "title": "" }, { "docid": "24c4eaaa7efcdba757660485142109d3", "score": "0.54593897", "text": "protected function updateProgressBar(ProgressBar $progress, $migration_name, $status, $current, $total): void\n {\n switch ($status) {\n case Migrator::STATUS_MIGRATION_READ:\n $progress->setMessage(\"Read migration data for: <info>{$migration_name}</info>\");\n break;\n\n case Migrator::STATUS_MIGRATION_STARTED:\n $progress->setMessage(\"Migration of <info>{$migration_name}</info> started\");\n break;\n\n case Migrator::STATUS_MIGRATION_COMPLETED:\n $progress->setMessage(\"<info>{$migration_name}</info> migrated!\");\n break;\n\n default:\n $progress->setMessage(\"Work with <info>{$migration_name}</info>\");\n }\n\n $progress->setProgress($current);\n $progress->display();\n }", "title": "" }, { "docid": "da2b12cc0aa9721ff4455a7c0cc17cc8", "score": "0.5448787", "text": "function bar($field = 'quantity', $max = 'original')\n\t{\n\t\t$percent = round(max(min($this->$field/max($this->$max, 1), 1), 0) * 100);\n\n\t\tif ($this->$field > 1000) $this->$field = round($this->$field/1000).'k';\n\t\tif ($this->$field == 0)\n\t\t{\n\t\t\t$percent = 100;\n\t\t\t$this->$field = 'N/A';\n\t\t}\n\n\t\t//147px allows quantity of 100k to show without wrapping\n\t\treturn \t\"<div class='avia-progress-bar theme-color-bar icon-bar-no'>\n\t\t\t\t\t\t<div class='progressbar-title-wrap'>\n\t\t\t\t\t\t\t<div class='progressbar-icon'>\n\t\t\t\t\t\t\t\t<span class='progressbar-char' aria-hidden='true' data-av_icon='' data-av_iconfont='entypo-fontello'></span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class='progressbar-title'>{$this->$field} ($percent%)</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class='progress avia_start_animation'>\n\t\t\t\t\t\t\t<div class='bar-outer'>\n\t\t\t\t\t\t\t\t<div class='bar' style='width: {$percent}%' data-progress='$percent'></div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\";\n\t}", "title": "" }, { "docid": "f1736af11d95ddb2f49d332d8a2fac5e", "score": "0.54247123", "text": "function echoServiceBar($service) {\n echo '<div class=\"service-bar\">';\n echo '<div class=\"service-bar-content\">';\n echo '<h1>' . $service . '</h1>';\n $step = get_query_var('step', 1);\n echo \"<img src='\" . get_stylesheet_directory_uri() . \"/images/step1.png' alt='step 1'\";\n if ($step != 1)\n echo \" class='not-current-step'\";\n echo \">\";\n echo \"<img src='\" . get_stylesheet_directory_uri() . \"/images/step2.png' alt='step 2'\";\n if ($step != 2)\n echo \" class='not-current-step'\";\n echo \">\";\n echo \"<img src='\" . get_stylesheet_directory_uri() . \"/images/step3.png' alt='step 3'\";\n if ($step != 3)\n echo \" class='not-current-step'\";\n echo \">\"; \n if ($service == 'Print') {\n echo \"<img src='\" . get_stylesheet_directory_uri() . \"/images/step4.png' alt='step 4'\";\n if ($step != 4)\n echo \" class='not-current-step'\";\n echo \">\"; \n }\n echo '</div><br/>'; // .service-bar-content\n echo '</div>'; // .service-bar\n}", "title": "" }, { "docid": "4512cc5f0371bf03c812f6bd98c497da", "score": "0.53871214", "text": "public function barSetup(ProgressBar $bar)\n {\n // the finished part of the bar\n $bar->setBarCharacter('<comment>=</comment>');\n\n // the unfinished part of the bar\n $bar->setEmptyBarCharacter('-');\n\n // the progress character\n $bar->setProgressCharacter('>');\n\n // the 'layout' of the bar\n $bar->setFormat(' %current%/%max% [%bar%] %percent:3s%% ');\n\n return $bar;\n }", "title": "" }, { "docid": "f8918ffc34ecd46c1e55182cf251a6bb", "score": "0.5350555", "text": "function national_view_progress_bar_not_reported($from,$to)\n\t{\n\t\t$summary_results=$this->national_view_data_summary($from,$to);\n\n\t\tforeach($summary_results as $summary_report)\n\t\t{\n\t\t\t$reported_summary=(int)$summary_report['percentage_not'];\n\t\t}\n\n\t\t$progress_bar='<div class=\"progress-bar progress-bar-warning\" role=\"progressbar\" aria-valuenow=\"'.$reported_summary.'\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width:'.$reported_summary.'%;\">\n\t\t\t\t\t\t <a href=\"#nrep\" data-toggle=\"modal\"><b style=\"color:black;\">'.$reported_summary.'%</b></a>\n\t\t\t\t\t\t </div>';\n\n\t\treturn $progress_bar;\n\t}", "title": "" }, { "docid": "ae001dca66fbf91f53fbed04d22af31f", "score": "0.53460574", "text": "function progressBar($cmd,$regexp, $totalframes=0, $returndata=false, $errorRegexp=\"\")\n\n {\n\n global $config;\n\n\n $line = \"\";\n\n $out = 0;\n\n $left = $config['progressBarLength'];\n\t\t\n\t\t$output=array();\n\n\n debug('execute',$cmd);\n $fp = popen($cmd . ' 2>&1', 'r');\n\t\t//echo $cmd.\"<br>&nbsp;<br>\";\n\t\t$output['data']=\"$cmd\\n\";\n\t\t$output['error']=\"\";\n while(!feof($fp))\n\n {\n\n $data = fread($fp,1);\n\t\t\t$output ['data'].= $data;\n\t\t\t//echo $data;\n if ((ord($data) == 13) || (ord($data) == 10))\n\n {\n\t\t\t\t\n if (preg_match($regexp,$line,$match))\n\n {\n\t\t\t\t \tif ($totalframes){\n\t\t\t\t\t\n\t\t\t\t\t\t//echo \"<br/>t:$totalframes|\";\n\t\t\t\t\t\t $curr = (integer) ((((integer) $match[1])/$totalframes*100) * $config['progressBarLength'] / 100);\n\t\t\t\t\t\t \n\t\t\t\t\t\t//echo \"c:$curr<br/>\";\n\t\t\t\t\t}\n else $curr = (integer) (((integer) $match[1]) * $config['progressBarLength'] / 100);\n \n\t\t\t\t\tif($curr<=$config['progressBarLength']){\n\t\t\t\t\t\tfor ($i=$out;$i<$curr;$i++)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\techo $config['progressBarChar'];\n\t\t\t\t\t\t\t$out++;\n\t\t\t\t\t\t\t$left--;\n\t\t\t\t\t\t }\n\t\t\t\t\t}\n }\n\t\t\t\t \n\t\t\t\t /*if ($errorRegexp && preg_match($errorRegexp,$line,$match)){\n\t\t\t\t \t$output['error'].= ucfirst($match[1]).\"<br>\";\n\t\t\t\t }*/\n \n\t\t\t\t$line = \"\";\n }\n\n else\n $line .= $data;\n flush();\n }\n\n pclose($fp);\n\n while($left)\n {\n echo $config['progressBarChar'];\n $left--;\n $out++;\n }\n\n flush();\n\t\tif($returndata) return $output;\n\n }", "title": "" }, { "docid": "00707f8cdc0305840679e10f05fe7ea9", "score": "0.5345288", "text": "function edgtf_core_enqueue_scripts_for_progress_bar_shortcodes() {\n\t\twp_enqueue_script( 'counter', EDGE_CORE_SHORTCODES_URL_PATH . '/progress-bar/assets/js/plugins/counter.js', array( 'jquery' ), false, true );\n\t}", "title": "" }, { "docid": "35dbbdadcd83cd57bc3989d1d4b0a107", "score": "0.5340001", "text": "public function progressbar($value = 0, $label = '', $minimum = 0, $maximum = 100)\n\t{\n\t\t$html = '<div class=\"progress\"><div class=\"progress-bar\" role=\"progressbar\" aria-valuenow=\"'. (int) $value .'\" aria-valuemin=\"'. (int) $minimum .'\" aria-valuemax=\"'.(int) $maximum.'\" style=\"width: '.(int) $value.'%;\">';\n\t\t$html .= $label ? '<span class=\"sr-only\">'.$label.'</span>' : '';\n \t\t$html .= '</div></div>';\n\n \t\treturn $html;\n\t}", "title": "" }, { "docid": "aa9a81dbd2cd1dda03cda013dbe5c633", "score": "0.53135246", "text": "function outputDBUsage($used,$quota) {\n\t$dp = sprintf('%.2f',($used / $quota) * 100);\n\t\n\t/* and we formate the size from bytes to MB, GB, etc. */\n\t$free = formatSize(($quota-$used));\n\t\n\t$output = '<div class=\"progress\">\n <div class=\"prgbar\" style=\"width: '.$dp.'%;\"></div>\n\t\t<div class=\"prgtext\">'.$dp.'% Used | '.$free.' Free</div>\n</div>';\n\treturn $output;\n}", "title": "" }, { "docid": "32edbb8beb32e3c6aed384f6be69de1c", "score": "0.5303234", "text": "public static function getProgressPath()\n {\n return self::$progressDir;\n }", "title": "" }, { "docid": "b097daa577c24def48bd6c8d6a97784c", "score": "0.52991885", "text": "public function set_progress_bar ($progress_bar) {\n $this->progress_bar = $progress_bar;\n }", "title": "" }, { "docid": "b964252ed01e6bcd537496a5e7c22f4f", "score": "0.52947676", "text": "public function run(): Result\n {\n//\n// $this->writeln('ja toch');\n\n\n\n $progressBar = $this->io()->createProgressBar();\n $progressBar->setMessage('testing');\n $progressBar->start(10);\n $progressBar->advance();\n $i = 0;\n while($i < 10){\n $i++;\n //== sleep 0.2 seconds\n usleep(200000);\n $progressBar->advance();\n }\n $progressBar->finish();\n //$progressBar->clear();\n $this->io()->writeln('xx');\n $this->io()->newLine(2);\n\n $this->hideProgressIndicator();\n\n self::$foo++;\n\n return Result::success($this, \"testy\", [\n 'TEST2' => '_________dus' . self::$foo,\n ]);\n }", "title": "" }, { "docid": "f6a93a4d91ed5654ef9e0d53a0094b12", "score": "0.5242415", "text": "public static function CreateBar($progress = false, $min = 0, $max = 100, $value = 0, $title = '') {\n\t\tif ($progress) {\n\t\t\t$code = '<progress value=\"' . $value . '\" max=\"' . $max . '\"></progress>';\n\t\t} else {\n\t\t\t$code = '<meter min=\"' . $min . '\" max=\"' . $max . '\" value=\"' . $value . '\" title=\"' . $title . '\"></meter>';\n\t\t}\n\t\treturn $code;\n\t}", "title": "" }, { "docid": "495f04f917d6518273e2d26dcea371ef", "score": "0.52352905", "text": "public function PercentageDone()\r\n {\r\n return 100;\r\n }", "title": "" }, { "docid": "b154f152e74b4cac7cd6d0911118bffe", "score": "0.52348095", "text": "public function progressTask()\n\t{\n\t\t// get request vars\n\t\t$id = Request::getInt('id', 0);\n\n\t\t// create import model object\n\t\t$import = Import::oneOrFail($id);\n\n\t\t// get the lastest run\n\t\t$run = $import->runs()\n\t\t\t->order('id', 'desc')\n\t\t\t->rows()\n\t\t\t->first();\n\n\t\t// build array of data to return\n\t\t$data = array(\n\t\t\t'processed' => (int) $run->get('processed'),\n\t\t\t'total' => (int) $run->get('count')\n\t\t);\n\n\t\t// return progress update\n\t\techo json_encode($data);\n\t\texit();\n\t}", "title": "" }, { "docid": "8ca8a2faee84328b82e67ef3a9feaff6", "score": "0.5230893", "text": "function status_bar($pourcent, $txt_barre, $txt_infobulle, $couleur_pourcent=\"jaune\", $width_barre=\"width:120px;\", $style_barre=\"\")\n{\n\t// init\n\tif($pourcent==0)\t$pourcent = 1;\n\tif($couleur_pourcent!=\"rouge\" && $pourcent>=100)\t$couleur_pourcent=\"verte\";\n\t$display = (preg_match(\"/MSIE 7/i\",$_SERVER['HTTP_USER_AGENT'])) ? \"inline\" : \"inline-table\";\n\t// Affichage\n\treturn \"<table class='table_nospace' cellpadding='0' cellspacing='0' style=\\\"\".$width_barre.$style_barre.\"display:\".$display.\";height:18px;vertical-align:middle;background-image:url(\".PATH_TPL.\"divers/barre_background.png);\\\"><tr>\n\t\t\t\t<td style=\\\"width:\".$pourcent.\"%;text-align:left;background-image:url(\".PATH_TPL.\"divers/barre_\".$couleur_pourcent.\".png);\\\">\n\t\t\t\t\t<span style=\\\"position:absolute;\".$width_barre.\";line-height:18px;padding:0px;margin:0px;font-size:9px;font-weight:normal;color:#000;text-align:center;cursor:help;\\\" \".infobulle($txt_infobulle).\">\".$txt_barre.\"</span>\n\t\t\t\t\t<img src=\\\"\".PATH_TPL.\"divers/vide.png\\\" />\n\t\t\t\t</td>\n\t\t\t\t<td><img src=\\\"\".PATH_TPL.\"divers/vide.png\\\" /></td>\n\t\t\t</tr></table>\";\n}", "title": "" }, { "docid": "f263b2e0e6ccec898c6164e4e731a010", "score": "0.52185166", "text": "private function getProgressBar(SymfonyStyle $io, int $steps, string $message): ProgressBar\n {\n $format = '\n %message%\n %current%/%max% [%bar%] %percent:3s%%\n Time elapsed: %elapsed:-6s%\n Time remaining: %remaining:-6s%\n Time estimated: %estimated:-6s%\n Memory usage: %memory:-6s%\n';\n\n $progress = $io->createProgressBar($steps);\n $progress->setFormat($format);\n $progress->setMessage($message);\n\n return $progress;\n }", "title": "" }, { "docid": "b252b6d41a0bcf0973ebdd52256d91b3", "score": "0.5217758", "text": "public static function progressCallback($ch, $dlTotal, $dlNow, $ulTotal, $ulNow) {\n $percent = $dlTotal>0 ? $dlNow/$dlTotal : 0;\n return 0;\n }", "title": "" }, { "docid": "3c85731d834781bbb9befa031b0001d4", "score": "0.5209885", "text": "function showRating($level, $max)\n{\n\t$green = $level <= 50 ? $level : 50;\n\t$red = $level > 75 ? $level - 75 : 0;\n\t$yellow = $level > 50 && $level <= 75 ? $level - 50 : (25 * ($red > 0));\n\n\techo '<div class=\"progress\" style=\"width:100px\">';\n\techo '<div class=\"progress-bar progress-bar-success\" role=\"progressbar\" style=\"width:' . $green . '%\"></div>';\n\tif($yellow)\n\t{\n\t\techo '<div class=\"progress-bar progress-bar-warning\" role=\"progressbar\" style=\"width:' . $yellow . '%\"></div>';\n\t}\n\tif($red)\n\t{\n\t\techo '<div class=\"progress-bar progress-bar-danger\" role=\"progressbar\" style=\"width:' . $red . '%\"></div>';\n\t}\n\techo '</div>';\n}", "title": "" }, { "docid": "18ce541b729f60b4e083eb4a33212029", "score": "0.5204335", "text": "public function finishProgressBar(): void\n {\n $this->progressBar->setMessage(\"<fg=white;bg=green>Translation complete and all files have saved</>\", 'status');\n $this->progressBar->finish();\n }", "title": "" }, { "docid": "2eb35980624b0f29972c1103fd4b9e0b", "score": "0.5184299", "text": "private function makeProgressBar($total)\n {\n /** @var ProgressHelper $progress */\n $progress = $this->io->helper('Progress');\n $progress->init([\n 'total' => $total,\n 'width' => 40,\n ]);\n $progress->draw();\n\n return $progress;\n }", "title": "" }, { "docid": "a2c32cbac73ab8b7ffc5edc32274a5a5", "score": "0.5182857", "text": "function import_get_progress() {\r\n\r\n\t@session_start();\r\n\r\n\t$key = 'wpgmza_import_progress_' . $_POST['wpgmaps_security'];\r\n\t$json = (object) array( 'progress' => 0.0 );\r\n\r\n\tif ( isset( $_SESSION[ $key ] ) ) {\r\n\r\n\t\t$json = $_SESSION[ $key ];\r\n\r\n\t}\r\n\r\n\tsession_write_close();\r\n\twp_send_json_success( $json );\r\n\r\n}", "title": "" }, { "docid": "b4865c2b30c327a9167d42887c9bad52", "score": "0.5182495", "text": "public function progressFinish(): void\n {\n if ($this->exposeProgressBar) {\n $this->progressBar->finish();\n $this->output->write(PHP_EOL);\n $this->progressBar = null;\n }\n }", "title": "" }, { "docid": "4d044c162b836a55ebc244eaf7361937", "score": "0.5177601", "text": "public function getProgressBar($targetNum)\n\t{\n\t\treturn ($this->usePBar)\n\t\t\t? new ConsoleProgressBar($this->pBarFormat, '=>', ' ', 60, $targetNum)\n\t\t\t: null;\n\t}", "title": "" }, { "docid": "58cb5d29fb53eb5d6e17b7a40e34a62a", "score": "0.51747364", "text": "public function getLabelingProgress()\n {\n return $this->labeling_progress;\n }", "title": "" }, { "docid": "c25c31d1c0c7074c7704f9a26e3bb805", "score": "0.5173432", "text": "function getVolumeProgress($filename)\n{\n $logFilePath = dirname(__FILE__) . \"/../../\"; //\n $line = '';\n $f = fopen($logFilePath . $filename, 'r') or verbose(0, 'Error while opening file');\n $cursor = -1;\n fseek($f, $cursor, SEEK_END); // Reading only the last line (where the last percentage is)\n $char = fgetc($f);\n //Trim trailing newline characters in the file\n while ($char === \"\\n\" || $char === \"\\r\") {\n fseek($f, $cursor--, SEEK_END);\n $char = fgetc($f);\n }\n //Read until the next line of the file begins or the first newline char\n while ($char !== false && $char !== \"\\n\" && $char !== \"\\r\") {\n //Prepend the new character\n $line = $char . $line;\n fseek($f, $cursor--, SEEK_END);\n $char = fgetc($f);\n }\n verbose(1, $line);\n}", "title": "" }, { "docid": "89bdf1f862e7a37a6fbfa0a14b2a1e63", "score": "0.5171796", "text": "public function createProgressBar(int $count): ProgressBar\n {\n return new ProgressBar($count);\n }", "title": "" }, { "docid": "eee47c9a2cf3210b813b3623879b9fa5", "score": "0.5170919", "text": "public function run()\n {\n $bar = $this->command->getOutput()->createProgressBar(\n count($this->order_statuses())\n );\n\n $bar->start();\n\n foreach ($this->order_statuses() as $orderStatus) {\n factory(OrderStatus::class)->create($orderStatus);\n $bar->advance();\n }\n\n $bar->finish();\n $this->command->info(\"\\n\");\n }", "title": "" }, { "docid": "2c7ed8ae8f8f9997c075b1c6e96652cd", "score": "0.51671654", "text": "function step_progress()\n {\n if ($this->call(\"Application.StepIt\")==\"true\")\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\t\t\t\t\n }", "title": "" }, { "docid": "c316d4dfc3b7a0ea4577cff31f79dceb", "score": "0.51642877", "text": "function modify_progress_label( $progress_label, $stage ) {\n\t\tif ( 'savefile' !== $this->profile['action'] && 'find_replace' !== $this->profile['action'] ) {\n\t\t\tif ( 1 === $stage ) { // 1 = backup stage, 2 = migration stage\n\t\t\t\t$progress_label = __( 'Performing backup', 'wp-migrate-db-pro-cli' );\n\t\t\t} else {\n\t\t\t\t$progress_label = __( 'Migrating tables', 'wp-migrate-db-pro-cli' );\n\n\t\t\t\tif ( 'import' === $this->profile['action'] ) {\n\t\t\t\t\t$progress_label = __( 'Running find & replace', 'wp-migrate-db-pro-cli' );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $progress_label;\n\t}", "title": "" }, { "docid": "c1579ce196449fe5f04b4028aef3c692", "score": "0.51541585", "text": "function status( $args, $assoc_args ){\n\t \n\t // ID BLOG PARAM\n\t if( isset( $assoc_args['idblog'] ) && ( $assoc_args['idblog'] <= 0 ) ){\n\t WP_CLI::error( sprintf( __( '%s is not a valid idblog.', WP_Guetzli::$i18n_domain ), $assoc_args['id'] ) );\n\t \n\t }elseif( !isset( $assoc_args['idblog'] ) || empty( $assoc_args['idblog'] )){\n\t \n\t $blog_id = get_current_blog_id();\n\t \n\t WP_CLI::warning( __('Working on a Wordpress Multisite instance') );\n\t WP_CLI::confirm( sprintf( __( 'Do you want to proceed with idblog=%d?', WP_Guetzli::$i18n_domain ), $blog_id ) );\n\t \n\t }else{\n\t $blog_id = $assoc_args['idblog'];\n\t }\n\t \n\t if( is_multisite() && $blog_id > 1 ){\n\t switch_to_blog( $blog_id );\n\t }\n\n\t \n\t $total_time = 0;\n\t $images = WP_Guetzli::getMediafiles();\n\t self::$result = array();\n\n\t foreach( $images as $attachment_id => $img ){\n\t \n\t $fullsizepath = get_attached_file( $attachment_id );\n\t \n\t if ( false === $fullsizepath ){\n\t \n\t $imagen_original = false;\n\t $imagen_comprimida = false;\n\t \n\t \n\t }elseif( !file_exists( $fullsizepath ) ){\n\t \n\t $imagen_comprimida = false;\n\t \n\t if( !file_exists( $fullsizepath.'.bak' ) ){\n\t \n\t $imagen_original = false;\n\t \n\t }else{\n\t $imagen_original = WP_Utils_Guetzli::formatSizeUnits( filesize( $fullsizepath.'.bak' ) );\n\t }\n\t \n\t }else{\n\t \n\t //$imagen_original = WP_Utils_Guetzli::formatSizeUnits( filesize( $fullsizepath.'.bak' ) );\n\t $imagen_comprimida = WP_Utils_Guetzli::formatSizeUnits( filesize( $fullsizepath ) );\n\t \n\t if( !file_exists( $fullsizepath.'.bak' ) ){\n\t \n\t $imagen_original = false;\n\t \n\t }else{\n\t $imagen_original = WP_Utils_Guetzli::formatSizeUnits( filesize( $fullsizepath.'.bak' ) );\n\t }\n\t \n\t }\n\t \n\t \n\t \n\t $image_backup = \n\t \n\t self::$result[] = array(\n\t 'id_blog' \t\t=> $blog_id,\n\t 'attachment_id' => $attachment_id,\n// \t 'after' \t\t=> WP_Utils_Guetzli::formatSizeUnits( filesize( $fullsizepath.'.bak' ) ),\n// \t 'before'\t\t=> WP_Utils_Guetzli::formatSizeUnits( filesize( $fullsizepath ) ),\n// \t 'saving' \t\t=> WP_CLI::colorize( \"%Y\".self::getDiff($fullsizepath.'.bak' ,$fullsizepath ).\"%n\" )\n\t 'after' \t\t=> ( $imagen_original ) ? $imagen_original : '0 bytes',\n\t 'before'\t\t=> ( $imagen_comprimida ) ? $imagen_comprimida : '0 bytes',\n\t 'saving' \t\t=> ( $imagen_original && $imagen_original ) ? WP_CLI::colorize( \"%Y\".self::getDiff($fullsizepath.'.bak' ,$fullsizepath ).\"%n\" ) : WP_CLI::colorize( \"%Y0 bytes%n\" ),\n\t );\n\t \n\t \n\t \n\t }\n\t \n\t if( is_multisite() && $blog_id > 1 ){\n\t restore_current_blog();\n\t }\n\t \n\t WP_CLI\\Utils\\format_items( 'table', self::$result, self::$cols );\n\t \n \t \n\t}", "title": "" }, { "docid": "4331e13f7d8255a616c5ecd4ec88b282", "score": "0.5137064", "text": "public function handle()\n {\n //Grab all the raw stats records\n $all_raw_stats = RawStats::all();\n $bar = $this->output->createProgressBar(count($all_raw_stats));\n\n //Loop through them all and generate the processed stats\n foreach ($all_raw_stats as $raw_stats)\n {\n //Storing all the values in variable for easier use\n $emails_july = $raw_stats->emails_july;\n $emails_august = $raw_stats->emails_august;\n $emails_september = $raw_stats->emails_september;\n $emails_october = $raw_stats->emails_october;\n $emails_november = $raw_stats->emails_november;\n $emails_december = $raw_stats->emails_december;\n $emails_january = $raw_stats->emails_january;\n $emails_february = $raw_stats->emails_february;\n $emails_march = $raw_stats->emails_march;\n $emails_april = $raw_stats->emails_april;\n $emails_may = $raw_stats->emails_may;\n $emails_june = $raw_stats->emails_june;\n $calls_inbound_july = $raw_stats->calls_inbound_july;\n $calls_inbound_august = $raw_stats->calls_inbound_august;\n $calls_inbound_september = $raw_stats->calls_inbound_september;\n $calls_inbound_october = $raw_stats->calls_inbound_october;\n $calls_inbound_november = $raw_stats->calls_inbound_november;\n $calls_inbound_december = $raw_stats->calls_inbound_december;\n $calls_inbound_january = $raw_stats->calls_inbound_january;\n $calls_inbound_february = $raw_stats->calls_inbound_february;\n $calls_inbound_march = $raw_stats->calls_inbound_march;\n $calls_inbound_april = $raw_stats->calls_inbound_april;\n $calls_inbound_may = $raw_stats->calls_inbound_may;\n $calls_inbound_june = $raw_stats->calls_inbound_june;\n $calls_outbound_july = $raw_stats->calls_outbound_july;\n $calls_outbound_august = $raw_stats->calls_outbound_august;\n $calls_outbound_september = $raw_stats->calls_outbound_september;\n $calls_outbound_october = $raw_stats->calls_outbound_october;\n $calls_outbound_november = $raw_stats->calls_outbound_november;\n $calls_outbound_december = $raw_stats->calls_outbound_december;\n $calls_outbound_january = $raw_stats->calls_outbound_january;\n $calls_outbound_february = $raw_stats->calls_outbound_february;\n $calls_outbound_march = $raw_stats->calls_outbound_march;\n $calls_outbound_april = $raw_stats->calls_outbound_april;\n $calls_outbound_may = $raw_stats->calls_outbound_may;\n $calls_outbound_june = $raw_stats->calls_outbound_june;\n\t\t\t$calls_january_total = $calls_inbound_january + $calls_outbound_january;\n\t\t\t$calls_february_total = $calls_inbound_february + $calls_outbound_february;\n\t\t\t$calls_march_total = $calls_inbound_march + $calls_outbound_march;\n\t\t\t$calls_april_total = $calls_inbound_april + $calls_outbound_april;\n\t\t\t$calls_may_total = $calls_inbound_may + $calls_outbound_may;\n\t\t\t$calls_june_total = $calls_inbound_june + $calls_outbound_june;\n\t\t\t$calls_july_total = $calls_inbound_july + $calls_outbound_july;\n\t\t\t$calls_august_total = $calls_inbound_august + $calls_outbound_august;\n\t\t\t$calls_september_total = $calls_inbound_september + $calls_outbound_september;\n\t\t\t$calls_october_total = $calls_inbound_october + $calls_outbound_october;\n\t\t\t$calls_november_total = $calls_inbound_november + $calls_outbound_november;\n\t\t\t$calls_december_total = $calls_inbound_december + $calls_outbound_december;\n\t\t\t$output_july = $raw_stats->output_july;\n $output_august = $raw_stats->output_august;\n $output_september = $raw_stats->output_september;\n $output_october = $raw_stats->output_october;\n $output_november = $raw_stats->output_november;\n $output_december = $raw_stats->output_december;\n $output_january = $raw_stats->output_january;\n $output_february = $raw_stats->output_february;\n $output_march = $raw_stats->output_march;\n $output_april = $raw_stats->output_april;\n $output_may = $raw_stats->output_may;\n $output_june = $raw_stats->output_june;\n $quality_july = $raw_stats->quality_july;\n $quality_august = $raw_stats->quality_august;\n $quality_september = $raw_stats->quality_september;\n $quality_october = $raw_stats->quality_october;\n $quality_november = $raw_stats->quality_november;\n $quality_december = $raw_stats->quality_december;\n $quality_january = $raw_stats->quality_january;\n $quality_february = $raw_stats->quality_february;\n $quality_march = $raw_stats->quality_march;\n $quality_april = $raw_stats->quality_april;\n $quality_may = $raw_stats->quality_may;\n $quality_june = $raw_stats->quality_june;\n \n //Total emails\n $total_emails = $emails_july + $emails_august + $emails_september + $emails_october + $emails_november + $emails_december + $emails_january + $emails_february + $emails_march + $emails_april + $emails_may + $emails_june;\n\n //Total calls inbound\n $total_calls_inbound = $calls_inbound_july + $calls_inbound_august + $calls_inbound_september + $calls_inbound_october + $calls_inbound_november + $calls_inbound_december + $calls_inbound_january + $calls_inbound_february + $calls_inbound_march + $calls_inbound_april + $calls_inbound_may + $calls_inbound_june;\n\n //Total calls outbound\n $total_calls_outbound = $calls_outbound_july + $calls_outbound_august + $calls_outbound_september + $calls_outbound_october + $calls_outbound_november + $calls_outbound_december + $calls_outbound_january + $calls_outbound_february + $calls_outbound_march + $calls_outbound_april + $calls_outbound_may + $calls_outbound_june;\n \n //Total calls\n $total_calls = $total_calls_inbound + $total_calls_outbound;\n\n //Month they sent the most emails\n\t\t\t$best_email_month_array = array('January' => $emails_january, 'February' => $emails_february, 'March' => $emails_march, 'April' => $emails_april, 'May' => $emails_may, 'June' => $emails_june, 'July' => $emails_july, 'August' => $emails_august, 'September' => $emails_september, 'October' => $emails_october, 'November' => $emails_november, 'December' => $emails_december);\n\t\t\tarsort($best_email_month_array);\n\t\t\t$best_email_month = key($best_email_month_array);\n\t\t\t\n //Quarter they sent the most emails\n\t\t\t$email_q1 = $emails_july + $emails_august + $emails_september;\n\t\t\t$email_q2 = $emails_october + $emails_november + $emails_december;\n\t\t\t$email_q3 = $emails_january + $emails_february + $emails_march;\n\t\t\t$email_q4 = $emails_april + $emails_may + $emails_june;\n\t\t\t\n\t\t\t$best_email_quarter_array = array('Quarter 1' => $email_q1, 'Quarter 2' => $email_q2, 'Quarter 3' => $email_q3, 'Quarter 4' => $email_q4);\n\t\t\tarsort($best_email_quarter_array);\n\t\t\t$best_email_quarter = key($best_email_quarter_array);\n\n //Month they took the most calls\n\t\t\t$best_call_month_array = array('January' => $calls_january_total, 'February' => $calls_february_total, 'March' => $calls_march_total, 'April' => $calls_april_total, 'May' => $calls_may_total, 'June' => $calls_june_total, 'July' => $calls_july_total, 'August' => $calls_august_total, 'September' => $calls_september_total, 'October' => $calls_october_total, 'November' => $calls_november_total, 'December' => $calls_december_total);\n\t\t\tarsort($best_call_month_array);\n\t\t\t$best_call_month = key($best_call_month_array);\n\t\t\t\n //Quarter they took the most calls\n\t\t\t$calls_q1 = $calls_july_total + $calls_august_total + $calls_september_total;\n\t\t\t$calls_q2 = $calls_october_total + $calls_november_total + $calls_december_total;\n\t\t\t$calls_q3 = $calls_january_total + $calls_february_total + $calls_march_total;\n\t\t\t$calls_q4 = $calls_april_total + $calls_may_total + $calls_june_total;\n\t\t\t\n\t\t\t$best_call_quarter_array = array('Quarter 1' => $calls_q1, 'Quarter 2' => $calls_q2, 'Quarter 3' => $calls_q3, 'Quarter 4' => $calls_q4);\n\t\t\tarsort($best_call_quarter_array);\n\t\t\t$best_call_quarter = key($best_call_quarter_array);\n\t\t\t\n\t\t\t//Month they had the highest output\n\t\t\t$best_output_month_array = array('January' => $output_january, 'February' => $output_february, 'March' => $output_march, 'April' => $output_april, 'May' => $output_may, 'June' => $output_june, 'July' => $output_july, 'August' => $output_august, 'September' => $output_september, 'October' => $output_october, 'November' => $output_november, 'December' => $output_december);\n\t\t\tarsort($best_output_month_array);\n\t\t\t$best_output_month = key($best_output_month_array);\n\t\t\t\n\t\t\t//Quarter they had the highest output\n\t\t\t$output_q1 = $output_july + $output_august + $output_september;\n $output_q2 = $output_october + $output_november + $output_december;\n $output_q3 = $output_january + $output_february + $output_march;\n $output_q4 = $output_april + $output_may + $output_june;\n \n $best_output_quarter_array = array('Quarter 1' => $output_q1, 'Quarter 2' => $output_q2, 'Quarter 3' => $output_q3, 'Quarter 4' => $output_q4);\n arsort($best_output_quarter_array);\n $best_output_quarter = key($best_output_quarter_array);\n \n\t\t\t//Month they had the highest quality\n\t\t\t$best_quality_month_array = array('January' => $quality_january, 'February' => $quality_february, 'March' => $quality_march, 'April' => $quality_april, 'May' => $quality_may, 'June' => $quality_june, 'July' => $quality_july, 'August' => $quality_august, 'September' => $quality_september, 'October' => $quality_october, 'November' => $quality_november, 'December' => $quality_december);\n\t\t\tarsort($best_quality_month_array);\n\t\t\t$best_quality_month = key($best_quality_month_array);\n\t\t\t\n\t\t\t//Quarter they had the highest quality\n $quality_q1 = $quality_july + $quality_august + $quality_september;\n $quality_q2 = $quality_october + $quality_november + $quality_december;\n $quality_q3 = $quality_january + $quality_february + $quality_march;\n $quality_q4 = $quality_april + $quality_may + $quality_june;\n \n $best_quality_quarter_array = array('Quarter 1' => $quality_q1, 'Quarter 2' => $quality_q2, 'Quarter 3' => $quality_q3, 'Quarter 4' => $quality_q4);\n arsort($best_quality_quarter_array);\n $best_quality_quarter = key($best_quality_quarter_array);\n \n //Insert all of this in to the processed stats table\n $processed_stats = new ProcessedStats;\n $processed_stats->user_id = $raw_stats->user_id;\n $processed_stats->role_id = $raw_stats->role_id;\n $processed_stats->emails = $total_emails;\n $processed_stats->calls_inbound = $total_calls_inbound;\n $processed_stats->calls_outbound = $total_calls_outbound;\n $processed_stats->calls_total = $total_calls;\n $processed_stats->best_email_month = $best_email_month;\n $processed_stats->best_email_quarter = $best_email_quarter;\n $processed_stats->best_call_month = $best_call_month;\n $processed_stats->best_call_quarter = $best_call_quarter;\n $processed_stats->best_output_month = $best_output_month;\n $processed_stats->best_output_quarter = $best_output_quarter;\n $processed_stats->best_quality_month = $best_quality_month;\n $processed_stats->best_quality_quarter = $best_quality_quarter;\n $processed_stats->save();\n \n //Advance the progress bar\n $bar->advance();\n }\n \n $bar->finish();\n $this->info(' Completed!');\n }", "title": "" }, { "docid": "a216a80ba57e65f5577d3741576124a8", "score": "0.5131685", "text": "public function getProgress()\n {\n $total = $this->openIssuesCount + $this->closedIssuesCount;\n $progress = 100;\n if ($total > 0) {\n $progress = (float) ($this->closedIssuesCount / $total) * 100;\n }\n $progressInt = (int) $progress;\n if ($progressInt > 0) {\n $progress = number_format($progress, 2);\n $fraction = $progress - $progressInt;\n if ($fraction === 0.0) {\n $progress = $progressInt;\n }\n }\n\n return $progress;\n }", "title": "" }, { "docid": "2934676a51d55ae8ac7eb6f2d7691569", "score": "0.5123956", "text": "public static function bar($duration = 0)\n {\n $divider = 46;\n echo ' ';\n\n if ($duration > 0) {\n for ($i = 0; $i < $divider; $i++) {\n echo '- ';\n usleep(($duration * 1000) / $divider);\n }\n } else {\n echo str_repeat('- ', 46);\n }\n\n self::nl();\n }", "title": "" }, { "docid": "9364e4d90e4bb0040402cba367265bbc", "score": "0.51100445", "text": "function edgtf_core_set_progress_bar_icon_class_name_for_vc_shortcodes( $shortcodes_icon_class_array ) {\n\t\t$shortcodes_icon_class_array[] = '.icon-wpb-progress-bar';\n\t\t\n\t\treturn $shortcodes_icon_class_array;\n\t}", "title": "" }, { "docid": "fb237c53af87dedaad72428eba137ef1", "score": "0.50887376", "text": "public function progress($id) {\n try {\n $apiKey = Configure::read('ZencoderAPIKey');\n $zencoder = new Services_Zencoder($apiKey);\n return $zencoder->outputs->progress($id);\n }\n catch (Services_Zencoder_Exception $e) {\n //return null;\n }\n\n return null;\n }", "title": "" } ]
ed0be2c5d2df18326dbf6576b35288d4
/ save to cookie time : thoi gian save cookie, neu = 0 thi` save o cua so hien ha`nh
[ { "docid": "0efd29e3ebe112d0e51f5727461f211f", "score": "0.7471654", "text": "function savecookie($time=0){\n\t\tif ($this->logged!=1) return false;\n\n\t\tif ($time > 0){\n\t\t\tsetcookie(\"lglocal\",$this->login_name,time()+$time,\"/\");\n\t\t\tsetcookie(\"username\",substr($this->login_name, 0, strpos($this->login_name, '@')),time()+$time,\"/\");\n\t\t\tsetcookie(\"wvl_rand\",$this->password,time()+$time,\"/\");\n\t\t\tsetcookie(\"password\",md5(rand(111111, 999999)),time()+$time,\"/\");\n\t\t}else{\n\t\t\tsetcookie(\"lglocal\",$this->login_name,null,\"/\");\n\t\t\tsetcookie(\"username\",substr($this->login_name, 0, strpos($this->login_name, '@')),null,\"/\");\n\t\t\tsetcookie(\"wvl_rand\",$this->password,null,\"/\");\n\t\t\tsetcookie(\"password\",md5(rand(111111, 999999)),null,\"/\");\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "d1bd56dff71e1c05fa51323d37127571", "score": "0.7660102", "text": "function savecookie($time=0){\n\t\tif ($this->logged!=1) return false;\n\t\tif ($time > 0){\n\t\t\tsetcookie(\"login_name\",$this->use_username,time()+$time,\"/\");\n\t\t\tsetcookie(\"PHPSESS1D\",$this->use_password,time()+$time,\"/\");\n\t\t}\n\t\telse{\n\t\t\tsetcookie(\"login_name\",$this->use_username,null,\"/\");\n\t\t\tsetcookie(\"PHPSESS1D\",$this->use_password,null,\"/\");\n\t\t\t//setcookie(\"u_id\",$this->u_id);\n\t\t}\n\t}", "title": "" }, { "docid": "c9721d152916fe3deadd08e565500d83", "score": "0.7496321", "text": "function __saveParkere()\n\t{\n\t\t\n\t\t\t$pos_customer_id=$this->session->userdata['pos_customer_id'];\n\t\t\t$cartdata=$this->cart->contents();\n\t\t\t$dt=explode(':',date('j:n:Y',time()));\n\t\t\t$midnight1=mktime(0,0,0,$dt[1],$dt[0],$dt[2]);\n\t\t\t$midnight2=$midnight1+(1*24*60*60);\n\t\t\t$rest = $midnight2 - time();\n\t\t\tsetcookie(\"cons1\", 1 ,time()+$r);\n\t\t\tsetcookie($pos_customer_id,serialize($cartdata),time()+$rest, '/');\n\t\t\t//setcookie($pos_customer_id,serialize($cartdata), time() + 1*60*60*24, '/');\n\t\t\techo '1';exit;\n\t}", "title": "" }, { "docid": "6b7ce0c4ef023d3746552d57eb8a666b", "score": "0.73150766", "text": "function _write_cookie() {\n\t\tglobal $cookie;\n\t\t// czytamy klucz z ciastka\n\t\t// istotne bo nie wiemy czy najpierw zapisaliśmy klucz do tego obiektu czy do jego brata\n\t\t// (relacja koszyk <=> przechowalnia)\n\t\t$key=$cookie->read_array('hash');\n\t\t// jeżeli jest już klucz w ciastku to go wykorzystaj\n\t\t// jeżeli nie - wygeneruj nowy\n\t\tif (($key==null) || empty($key)) {\n\t\t\t// generujemy klucz\n\t\t\t$key=md5(time().$this->_sess_name);\n\t\t}\n\t\t// zapisujemy klucz obiektu\n\t\t$this->_key=$key;\n\t\t//tworzymy wpis do bazy danych\n\t\t$this->_new_db_basket();\n\t\t// jeżeli poprawnie nadano nowe id to je zapisz\n\t\tif ($this->_id_basket!=0) {\n\t\t\t// zapisujemy wygenerowane dane do ciastka\n\t\t\t$cookie->write_array($this->_sess_name,array($this->_id_basket));\n\t\t\t$cookie->write_array('hash',array($key));\n\t\t} else return false;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "8da204633ed124f7495e67eeb9db1e20", "score": "0.7210761", "text": "function iniciarSessao(){\n $_SESSION[\"time\"] = time() + 3500;\n }", "title": "" }, { "docid": "c056bb889c6b7c64d3df39d438274824", "score": "0.7112448", "text": "function ajax_processing_oneday(){\n $time = time() + 24*60*60;\n setcookie('car_popup_info','sent',$time,'/');\n exit;\n }", "title": "" }, { "docid": "c79d6011b6df5419ccf0fbe41cf0a1d7", "score": "0.6963142", "text": "function set_cookie($key, $value, $time = SECONDS_IN_A_HOUR)\n{\n $time = (int)$time;\n\n if ($time <= 0) {\n $expire = 0;\n } else {\n $expire = time() + $time;\n }\n\n setcookie($key, $value, $expire, \"/\");\n}", "title": "" }, { "docid": "3a18b837905f9f005627ddaeb4ce5d51", "score": "0.69296104", "text": "public function save()\n {\n if (empty($this->code)) {\n $this->code = md5($this->id . microtime());\n }\n $this->expireDate = strtotime(self::COOKIE_EXPIRE);\n $result = parent::save();\n $this->_setCookie();\n return $result;\n }", "title": "" }, { "docid": "006f1e722a5c6fb2ba1eb332d86e3ae7", "score": "0.6835049", "text": "public function saveCookie() {\n $channelName = \"yfyc-$this->channelId\"; // initializing channel name\n\n setcookie($channelName, true, time() + (86400 * 365), \"/\"); // set cookie having expiry date of 1 year\n $_COOKIE[$channelName] = true;\n }", "title": "" }, { "docid": "1a739f91b94effa632267392bbd7d6b1", "score": "0.6820519", "text": "public function setCookie(){\n $time = time() + (86400 * 180 );\n if (!isset($_COOKIE['cookie_user'])){\n $cookie_user = md5(openssl_random_pseudo_bytes(32));\n setcookie(\"cookie_user\", $cookie_user, $time);\n }\n if(isset($_SESSION['userid'])){\n $user_id=$_SESSION['userid'];\n $logged_in=1;\n }\n if(!isset($_SESSION['userid'])){\n $user_id=0;\n $logged_in=0;\n }\n $date=date('Y-m-d H:i:s', $time);\n $this->addCookies($_COOKIE['cookie_user'],$date,$user_id,$logged_in);\n }", "title": "" }, { "docid": "7d6e2779937152efc32d920f68ca18e2", "score": "0.6796604", "text": "function setDate() {\n\tdate_default_timezone_set('America/Los_Angeles');\n\t$date = date(\"D y M d, g:i:s a\");\n\t# set expire time to one week\n\t$expireTime = time() + 60*60*24*7;\n\tsetcookie('date', $date, $expireTime);\n}", "title": "" }, { "docid": "f73aaddf3c227ec0ee023ce1478d1f11", "score": "0.6735523", "text": "function lastVisit($name, $expire) {\n $value = getDateDMY().\" - \".getTimeHM();\n setcookie($name, $value, time() + $expire, '/', $_SERVER['SERVER_NAME'], true, true);\n }", "title": "" }, { "docid": "5c915e243757c6c20c2b693ade784ac0", "score": "0.6731056", "text": "public function rememberData() {\n $tempo = strtotime(\"+{$this->cookieTime} day\", time());\n\n // Encripta os dados do usuário usando base64\n // O rand(1, 9) cria um digito no início da string que impede a descriptografia\n $usuario = rand(1, 9) . base64_encode($this->_login);\n $senha = rand(1, 9) . base64_encode($this->_pass);\n \n // Cria um cookie com o usuário\n setcookie($this->prefixoChaves . 'lu', $usuario, $tempo, $this->cookiePath);\n // Cria um cookie com a senha\n setcookie($this->prefixoChaves . 'ls', $senha, $tempo, $this->cookiePath);\n }", "title": "" }, { "docid": "6e43c288925e938bfa5c1ccc738be08c", "score": "0.67288303", "text": "function save()\n{\n\tglobal $session_data;\n\n\t// Only save session data if it exists\n\tif (!empty($session_data['data']))\n\t{\n\t\t// Generate a random session ID\n\t\t$session_id = '';\n\t\twhile (!isset($session_id{32}))\n\t\t\t$session_id .= mt_rand(0, mt_getrandmax());\n\t\t\n\t\t$session_data['session_id'] = $session_id;\n\t\t$session_data['ip_address'] = ip2long(\\Request\\ip_address());\n\t\t$session_data['user_agent'] = trim(\\Request\\user_agent(), 0, 120);\n\t\t$session_data['last_accessed'] = time();\n\t\t\n\t\t$cookie_data = '';\n\t\t\n\t\t// Encrypt the session data if encryption is enabled\n\t\tif (\\Config\\Session\\ENCRYPTED === TRUE)\n\t\t\t$cookie_data = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5(\\Config\\Session\\SECRET_KEY), serialize($session_data), MCRYPT_MODE_CBC, md5(md5(\\Config\\Session\\SECRET_KEY))));\n\t\telse\n\t\t\t$cookie_data = serialize($session_data);\n\t\t\n\t\tsetcookie(\\Config\\Session\\NAME, $cookie_data, $session_data['last_accessed'] + \\Config\\Session\\EXPIRATION, '/');\n\t}\n}", "title": "" }, { "docid": "73ad75a2798ea37f5addc2a65be497cb", "score": "0.6661787", "text": "function WriteCookie ($variabel, $value) {\n $nextyear = mktime (0,0,0,date(\"m\"),date(\"d\"),date(\"Y\")+1);\n setcookie($variabel,$value,$nextyear);\n }", "title": "" }, { "docid": "63f3302e28ed1941b951f9db7ead1265", "score": "0.6644493", "text": "public static function save() {\n Debug::trace();\n $d = ['data' => self::$__data, 'expire' => Db::date(strtotime(self::$expire))];\n\n if (self::$id === false) {\n self::$id = Text::random(60, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_');\n $d['token'] = self::$id;\n Db::getInstance()->sessions->insert($d);\n } else {\n if (isset($d['id']))\n unset($d['id']);\n Db::getInstance()->sessions->update([\n 'token' => self::$id\n ], [\n '$set' => $d\n ]);\n }\n if (!headers_sent()) {\n $domain = Conf::get('cookie.domain', false);\n if (!$domain)\n $domain = $_SERVER['SERVER_NAME'];\n setcookie('token', self::$id, strtotime(self::$expire), '/', $domain, false, false); // The cookie must be accessible by javascript.\n }\n }", "title": "" }, { "docid": "eb69750812072fe9f219f9e83b217dbf", "score": "0.6631207", "text": "public function cookie();", "title": "" }, { "docid": "5ac5c63d3dee6e83e01a6a6f93f54459", "score": "0.6629991", "text": "private function set_register_cookie(){\n $lifetime = 365 * 24 * 60 * 60 + time();//one year\n setcookie('registered',date(\"G:i - m/d/y\"), $lifetime); \n }", "title": "" }, { "docid": "7bc8dda285a8739d168b1e7699ebb3b2", "score": "0.6594673", "text": "function WriteCookie(){\r\r\n\t\tif($this->IdentityEstablished()){\r\r\n\t\t\t$global=new ToolGlobals();\r\r\n\t\t\t$playerIdFieldName=$global->GetFieldName('playerId');\r\r\n\t\t\t$expire = $global->GetTimeToCookieExpire();\r\r\n\t\t\treturn setcookie($playerIdFieldName,$this->playerId,$expire);\r\r\n\t\t}else{\r\r\n\t\t\treturn false;\t\r\r\n\t\t}\r\r\n\t}", "title": "" }, { "docid": "a2a66f93395e12e254d9b6f06d03eaff", "score": "0.6589829", "text": "function setCookie($name,$value,$timeout=0)\n {\n $_SESSION[$name] = $value;\n }", "title": "" }, { "docid": "a5a24a35f039020ae677f3ccbf842d61", "score": "0.6577794", "text": "private function sess_update()\n\t{\n\t\tif(($this->userdata['last_activity'] + $this->sess_time_to_update) >= time())\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tif(IS_AJAX)\n\t\t{\n\t\t\tsetcookie($this->sess_cookie_name,$this->userdata['session_id'],$this->sess_expiration + time(),$this->cookie_path,$this->cookie_domain,0);\n\t\t\t$this->core->db->simple_query(\"UPDATE \".TABLE_SESSIONS.\" SET last_activity = \".time().\" WHERE session_id = \".$this->core->db->escape($this->userdata['session_id']).\" LIMIT 1\");\n\t\t\treturn;\n\t\t}\n\t\t// pasiemam sena sesijos id\n\t\t$old_sessid = $this->userdata['session_id'];\n\n\t\t$new_sessid = '';\n\t\twhile(strlen($new_sessid) < 32)\n\t\t{\n\t\t\t$new_sessid .= mt_rand(0, mt_getrandmax());\n\t\t}\n\n\t\t// pridedam ip adresa, kad butu saugesnis sesijos hashas\n\t\t$new_sessid .= get_ip_address();\n\n\t\t// sukuriam nauja sesijos identifikatoriu\n\t\t$new_sessid = md5(uniqid($new_sessid, TRUE));\n\n\t\t// Atnaujinam sesijos masyva\n\t\t$this->userdata['session_id'] = $new_sessid;\n\t\t$this->userdata['last_activity'] = time();\n\n\t\t// Atnaujinam sesija duomenu bazeje\n\t\t$this->core->db->simple_query('UPDATE '.TABLE_SESSIONS.' '.\n\t\t\t'SET last_activity = '.time().', '.\n\t\t\t'session_id = '.$this->core->db->escape($new_sessid).', '.\n\t\t\t'previous_id = '.$this->core->db->escape($old_sessid).' '.\n\t\t\t'WHERE session_id = '.$this->core->db->escape($old_sessid).' LIMIT 1');\n\n\t\tsetcookie(\n\t\t\t$this->sess_cookie_name,\n\t\t\t$new_sessid,\n\t\t\t$this->sess_expiration + time(),\n\t\t\t$this->cookie_path,\n\t\t\t$this->cookie_domain,\n\t\t\t0\n\t\t);\n\t}", "title": "" }, { "docid": "7ebec5a9df6481ab81f15e77e7e3fa4e", "score": "0.6544104", "text": "public function saveSession()\n {\n $this->sessionData['time'] = time();\n return parent::saveSession();\n }", "title": "" }, { "docid": "d7075a35e172e7f692070698e27d760f", "score": "0.6497041", "text": "function createDataCookie($data_type, $data_value) {\n\t// keep this cookie for half a day\n\tsetcookie($data_type, $data_value, time() + (43200), \"/\");\n}", "title": "" }, { "docid": "77bebc03c2296ef2b9979be8d886c1a9", "score": "0.63919026", "text": "function sso_del_cookie(){\n\t\t\n\n\t\t$cookie_val = '';\n\t\t$life_time = time() - 3600;\n\t\tsetcookie( 'EvoSSO', $cookie_val, $life_time);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "162b4a9136c61baec53dd6fd5d2b1b35", "score": "0.63800347", "text": "public function set_woopra_cookie() {\n\t\tsetcookie( $this->current_config[\"cookie_name\"], $this->current_config[\"cookie_value\"], time()+(60*60*24*365*2), $this->current_config[\"cookie_path\"], $this->current_config[\"cookie_domain\"] );\n\t}", "title": "" }, { "docid": "5b151d626b45dc64ce90be0e4a8e125e", "score": "0.633265", "text": "private static function write_cookie()\n\t{\n\t\tif ( ! headers_sent())\n\t\t{\n\t\t\t$minutes = (Config::get('session.expire_on_close')) ? 0 : Config::get('session.lifetime');\n\n\t\t\tCookie::put('laravel_session', static::$session['id'], $minutes, Config::get('session.path'), Config::get('session.domain'), Config::get('session.https'), Config::get('session.http_only'));\n\t\t}\n\t}", "title": "" }, { "docid": "ac4a96d0a9f664ac89353c5310aa5da3", "score": "0.63204515", "text": "protected function save()\n\t{\n\t\t$this->memcached->put($this->session['id'], $this->session, $this->config->get('session.lifetime'));\n\t}", "title": "" }, { "docid": "a771ef4a7b572c94009a7c8fbc8e087c", "score": "0.63148344", "text": "public function setCookie()\n {\n setcookie(\"name\", $this->getName(), time() + 2 * 24 * 60 * 60);\n }", "title": "" }, { "docid": "aea52fee9597b7be4494bfdc1926c383", "score": "0.63043237", "text": "function setCookie(){\n }", "title": "" }, { "docid": "1bf417903c03bb6ebc0b18dcfd2438fa", "score": "0.63004297", "text": "public static function setLastVisitCookie() {\n\t\tglobal $userdata;\n\t\t$guest_lastvisit = time() - 3600; $update_threads = false; $set_cookie = true;\n\t\t$cookie_exists = isset($_COOKIE[COOKIE_LASTVISIT]) && isnum($_COOKIE[COOKIE_LASTVISIT]) ? true : false;\n\n\t\tif (iMEMBER) {\n\t\t\tif ($cookie_exists) {\n\t\t\t\tif ($_COOKIE[COOKIE_LASTVISIT] > $userdata['user_lastvisit']) {\n\t\t\t\t\t$update_threads = true;\n\t\t\t\t\t$lastvisit = $userdata['user_lastvisit'];\n\t\t\t\t} else {\n\t\t\t\t\t$set_cookie = false;\n\t\t\t\t\t$lastvisit = $_COOKIE[COOKIE_LASTVISIT];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$update_threads = true;\n\t\t\t\t$lastvisit = $userdata['user_lastvisit'];\n\t\t\t} \n\t\t\tif ($update_threads) { dbquery(\"UPDATE \".DB_USERS.\" SET user_threads='' WHERE user_id='\".$userdata['user_id'].\"'\"); }\n\t\t} else {\n\t\t\tif ($cookie_exists) {\n\t\t\t\tif ($_COOKIE[COOKIE_LASTVISIT] > $guest_lastvisit) {\n\t\t\t\t\t$lastvisit = $guest_lastvisit;\n\t\t\t\t} else {\n\t\t\t\t\t$set_cookie = false;\n\t\t\t\t\t$lastvisit = $_COOKIE[COOKIE_LASTVISIT];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$lastvisit = $guest_lastvisit;\n\t\t\t}\n\t\t}\n\t\tif ($set_cookie) {\n\t\t\tAuthenticate::_setCookie(COOKIE_LASTVISIT, $lastvisit, time() + 3600, COOKIE_PATH, COOKIE_DOMAIN, false, true); \n\t\t}\n\t\treturn $lastvisit;\n\t}", "title": "" }, { "docid": "c7ab63d35872e5a50a75986458c6596e", "score": "0.6295042", "text": "public function setswitchcookieAction()\n\t{\n\t\t$cookietime=time() + (10 * 365 * 24 * 60 * 60);\n\t\tsetcookie(\"switchalert\",\"yes\", $cookietime ,\"/\",\".edit-place.com\");\n\t\texit;\t\n\t}", "title": "" }, { "docid": "a1294ae26052e1cf6a856b695e36d634", "score": "0.6278502", "text": "public function add()\n {\n setcookie(\n $this->name,\n $this->value,\n round(time() + 60 * 60 * 24 * $this->lifetime),\n $this->path\n );\n }", "title": "" }, { "docid": "508fd8523e0d01b805be6eb6b2034abf", "score": "0.62666273", "text": "function save_time($post)\n{\t\n\t$write_path='data/gps.conf';\n\t\n\tunset ($aux);\n\tunset ($aux1);\n\tunset ($input);\t\n\t$Response= new xajaxResponse();\n\t\n\t$fp=fopen($write_path,\"w\");\n\t\n\tif ($post['actualize_time_gps']=='on')\n\t{\n\t\tfwrite($fp,\"on\");\t\n\t}\t\n\t\n\tfclose($fp);\n\tunset($fp);\n\t$write_path='data/ntp.conf';\n\t$fp=fopen($write_path,\"w\");\n\t\n\tif ($post['actualize_time_ntp']=='on')\n\t{\n\t\tfwrite($fp,\"on\");\n\t\texec('sudo '.EXEC_PATH.'activate_ntp.sh 2>&1 >/dev/null');\n\t}\t\n\telse\n\t{\n\t\texec('sudo '.EXEC_PATH.'deactivate_ntp.sh 2>&1 >/dev/null');\n\t}\n\t\n\tfclose($fp);\n\t$Response->script(\"stop_alert('\".MESSAGE_AFTER_SAVING.\"')\");\n\treturn $Response;\n\t\n}", "title": "" }, { "docid": "7dbfa67e831015de278a24f89724a104", "score": "0.6265535", "text": "function setCookies($name, $access, $address,$city,$postal,$email,$birthdate, $time){\n\tsetcookie(\"name\", $name, $time);\n\tsetcookie(\"access\", $access, $time);\n\tsetcookie(\"address\", $address, $time);\n\tsetcookie(\"city\", $city, $time);\n\tsetcookie(\"postal\", $postal, $time);\n\tsetcookie(\"email\", $email, $time);\n\tsetcookie(\"birthdate\", $birthdate, $time);\n}", "title": "" }, { "docid": "9797c0d34dee2d5d363c222d3b790468", "score": "0.6261551", "text": "function cookie_monster($asleep)\n {\n $asleep ?\n setcookie($this->sess_cookie_name.'_cm', 'true', 0, $this->cookie_path, $this->cookie_domain, 0) :\n setcookie($this->sess_cookie_name.'_cm', 'false', 0, $this->cookie_path, $this->cookie_domain, 0);\n $this->sess_time_to_update = -1;\n $this->sess_update();\n }", "title": "" }, { "docid": "0103af0b304d4a1af4729353488022b5", "score": "0.622118", "text": "function markLoggedIn() {\n\t$username = $_POST['user']; // user-ul din formular\n\t$keep = $_POST['keep']; // checkbox-ul din formular\n\t$ip = $_SERVER[ 'REMOTE_ADDR' ]; // ip-ul vizitatorului\n\t$via = 'form'; // s-a logat prin formular, nu prin cookie\n\t\n\t// creez o structura de date\n\t$data = array();\n\t$data[ 'loggedIn' ] = true;\n\t$data[ 'username' ] = $username;\n\t$data[ 'loginDate' ] = time();\n\t$data[ 'lastAccess' ] = time();\n\t$data[ 'keepLoggedIn' ] = $keep;\n\t$data[ 'ip' ] = $ip;\n\t$data[ 'via' ] = $via;\n\t\n\t// pastrez in sesiune\n\t$_SESSION[ 'LOGIN' ] = $data;\n\t\n\t// daca trebuie sa tin minte loginul, creez un cookie\n\tif( $keep == 1 ) {\n\t\t/* setez un cookie ce contine structura creata mai sus si care\n\t\t * va expira in 30 de zile; structura de date este serializata\n\t\t * adica transformata intr-un format ce poate fi stocat ca text\n\t\t * dupa serializare, textul returnat este encodat cu algoritmul\n\t\t * base64 la care se adauga caracterul '1' pentru a ingreuna\n\t\t * decodificarea continutului */\n\t\tsetcookie( 'logindata', '1' . base64_encode( serialize( $data ) ), time() + 2592000, '/' );\n\t\t\n\t} else {\n\t\t// sterg cookie-ul prin setarea valabilitatii la o data din trecut\n\t\tsetcookie( 'logindata', \"\", time() - 36000, '/' );\n\t}\n\t\n\t// acum ca am salvat datele pe sesiune (si posibil in cookies), redirectionez\n\theader('Location: index.php');\n\t\n\t// opresc executia scriptului curent\n\texit;\n}", "title": "" }, { "docid": "35d2b17ee8454da58f3e018c4dd9b03d", "score": "0.6215075", "text": "public function testPassingTimestampForExpiration()\n {\n $time = time();\n $cookie = new Cookie($this->name, $this->value, $time);\n $this->assertEquals($time, $cookie->getExpiration());\n }", "title": "" }, { "docid": "92e19677e180bf128f345d5aab2e3a35", "score": "0.6209258", "text": "public function update()\r\n\t{\r\n\t\tif(is_null(@$_COOKIE['update'.APKID]))\r\n\t\t{\t\r\n\t\t\t$datas = 'http://skyq.office/Udyamatantra_Server/Signal/get_expiry/'.APKID.'/'.SKEY;\r\n\t\t\t$data = @file_get_contents($datas);\r\n\t\t\tsetcookie('update'.APKID, $data, time() + $this->config_data['aps_interval']);\r\n\t\t}\r\n\t\telse\r\n\t\t{\t\r\n\t\t\t$data = $_COOKIE['update'.APKID];\r\n\t\t\tsetcookie('update'.APKID, $data, time() -10);\r\n\t\t}\r\n\r\n\t\t$this->dumper->helper('file_helper');\r\n\t\tif(!write_file(SKO, $data,\"w\"))\r\n\t\t{\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\treturn TRUE;\r\n\t}", "title": "" }, { "docid": "874023895ac535e1d4b2521f319fac0d", "score": "0.62078285", "text": "static function save_cookies($cookies)\n\t{\n\t\tforeach ( self::$cookies as $cookie ) {\n\t\t\tif ( isset($cookies[$cookie]) ) {\n\t\t\t\t// Use setraw and rawrulencode to prevent PHP replacing spaces with +\n\t\t\t\t$name = self::$cookiePrefix . $cookie;\n\t\t\t\t$value = rawurlencode( $cookies[$cookie] );\n\t\t\t\tsetrawcookie( $name, $value, time() + 3600, '/' );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d71ae942df8d7d3b67d6f0b314f09344", "score": "0.6189208", "text": "function session_dasygenis()\n{\nif (session_status() == PHP_SESSION_NONE) {\n session_start();\n}\n\nif ( isset($_COOKIE['PID']) && $_COOKIE['PID'] > 0 ) \n\t{ \n\t // echo \"READ_COOKIE\";\n \t $cleancookiepid = dasygenis_filter_letters($_COOKIE['PID']);\n\t $_SESSION['PID'] = $cleancookiepid;\n\t}\nelse\n {\n//cookie is not set, but session is set\n\tif ( isset($_SESSION['PID']) && $_SESSION['PID'] > 0 )\n\t{ $_COOKIE['PID'] = $_SESSION['PID'] ;\n\t setcookie(\"PID\", $_SESSION['PID'], time()+36000);\n\t //echo \"WRITE_COOKIE\";\n\t}\n\t\n }\n\n}", "title": "" }, { "docid": "bd1d05f76c5f685b63eade7a16a3b0ae", "score": "0.6178708", "text": "function set_cookie_message($key, $msg)\n {\n setcookie($key, $msg, time() + 2);\n }", "title": "" }, { "docid": "62f01799e8a17f928c20e5136a4eaa29", "score": "0.6177074", "text": "public function setCookie() {\n\t\t$jsondata = json_encode(array(\t\"version\"=>$this->version,\n\t\t\t\t\t\t\t\t\t\t\"displayName\"=>$this->displayName,\n\t\t\t\t\t\t\t\t\t\t\"facebookId\"=>$this->facebookId,\n\t\t\t\t\t\t\t\t\t\t\"facebookToken\"=>$this->facebookToken,\n\t\t\t\t\t\t\t\t\t\t\"facebookExpiration\"=>$this->facebookExpiration));\n\t\tsetcookie ($this->cookieName,$this->encrypt($jsondata),time()+$this->cookieExpiration,\"/\");\n\t}", "title": "" }, { "docid": "ec92e5fdf23dcf296311366951fdc5a8", "score": "0.61587554", "text": "function sso_set_cookie( $login ){\n\t\t\n\t\tglobal $cookie_path, $cookie_domain;\n\t\t\n\t\t$cookie_val = 'l='.$login['email'].'&h='.$login['hash'].'&t='.$login['token'];\n\t\t//$life_time = time() + 3600;\n\t\t$life_time = 0;\n\t\t//var_dump_pre($cookie_val,'cookie val from string['.__LINE__.']');\n\t\t//var_dump($cookie_path, 'cookie path');\n\t\t//var_dump($cookie_domain, 'cookie dom');\n\t\t\n\t\tif( !setcookie( 'EvoSSO', $cookie_val, $life_time, $cookie_path, $cookie_domain)) \n\t\t\twp_die('cannot set cookie. you need cookies to loggin to this site.');\n\t\telse\n\t\t\treturn $cookie_val;\n\t}", "title": "" }, { "docid": "991dbc11350d4cc2b3942414dc45d918", "score": "0.61470133", "text": "public static function expire(){\n return time() + (60 * 60 * 1);}", "title": "" }, { "docid": "68d5e10219a68f7333a146e01f97a82a", "score": "0.61375225", "text": "function control_login_period($expirein)\n{\n return 180 * DAY_IN_SECONDS; // Cookies set to expire in 180 days.\n}", "title": "" }, { "docid": "a972b492b4071b366d7e95b3e46e2c18", "score": "0.6132382", "text": "function form_submitted(){\n $cookie_name = \"form_submitted\";\n $cookie_value = true;\n setcookie($cookie_name, $cookie_value, time() + 60*60*24*365, \"/\");//set cookie for 365 days\n}", "title": "" }, { "docid": "57a6538ecc0a9d97578141efb3f155c1", "score": "0.6126274", "text": "public function toCookie();", "title": "" }, { "docid": "129885494f88dcb16c05a572b143071b", "score": "0.6122102", "text": "function save_data($datos){\n $_SESSION[md5(session_id())] = $datos;\n }", "title": "" }, { "docid": "88ce6343667e48feca46beab3dd74ea9", "score": "0.61117023", "text": "private function setCookie(string $token, int $time)\n\t{\n\t\t$this->cookie->setValue($token);\n\t\t$this->cookie->setExpiryTime($time);\n\t\treturn $this->cookie->save();\n\t}", "title": "" }, { "docid": "511e7a0fafa6d9085cda69a76aa49b58", "score": "0.6111334", "text": "function muc_set_cookie() {\r\n\tglobal $wp_query, $muc_posts;\r\n\t$db =& $GLOBALS['wpdb'];\r\n\tif (is_single()) {\r\n\t\t$post_id = $wp_query->post->ID;\r\n\t\t$time = time();\r\n\t\t$timeout = 6*30*24*60*60; // Timeout of the cookie. Set to 6 months. Set it to whatever you want\r\n\t\t$cookie = (!$_COOKIE['muc_posts']) ? array() : $_COOKIE['muc_posts'];\r\n\t\t$muc_posts = unserialize($cookie);\r\n\t\t$muc_cookie_posts = $muc_posts;\r\n\t\t$muc_cookie_posts[$post_id] = $time;\r\n\t\t$cookiepath = parse_url(get_bloginfo('wpurl'));\r\n\t\tif ($cookiepath['path'] == \"\") {\r\n\t\t\t$cookiepath['path'] = \"/\";\r\n\t\t}\r\n\t\tsetcookie(\"muc_posts\", serialize($muc_cookie_posts), $time+$timeout, $cookiepath['path']);\r\n\t}\r\n}", "title": "" }, { "docid": "467d7d4fb2840f9dd9229add487201db", "score": "0.6110688", "text": "function set_login_ck($client_id) {\n\tglobal $LOGINTIME;\n\tsetcookie(\"lp1_ck\", $client_id, time() + $LOGINTIME);\n}", "title": "" }, { "docid": "14465bf293bfc4b1a36ac309beb6280a", "score": "0.6104472", "text": "function update_user_flag($time) {\n global $user;\n $current_time = time();\n if ($current_time >= $time) {\n db_update('flagging')\n ->fields(array(\n 'timestamp' => $time,\n ))\n ->condition('uid', $user->uid, '=')\n ->condition('entity_type', 'user', '=')\n ->condition('fid', 1, '=')\n ->condition('timestamp', $time, '<')\n ->execute();\n\n // Reset cookie server_time to new time value.\n setcookie('server_time', $current_time, time()+86400, '/');\n }\n}", "title": "" }, { "docid": "3b3e1d2829a1557f7dba15f5e92f2ef1", "score": "0.61041576", "text": "public function set_gdpr_cookie() {\t\n\t\tsetcookie( 'aiovg_gdpr_consent', 1, time() + ( 30 * 24 * 60 * 60 ), COOKIEPATH, COOKIE_DOMAIN );\t\t\n\t\techo 'success';\t\t\n\t}", "title": "" }, { "docid": "a19e55dbca42bce752d1623136bd6208", "score": "0.60977834", "text": "function login ($user,$pass,$recordarme)\n{\n $user = mysql_escape_string($user);\n $pass = mysql_escape_string($pass);\n \n if(strlen($user)<4 || strlen($pass)<4) return -3;\n \n global $salt;\n $pass = sha1($salt.md5($pass));\n \n $conexion=mysql_connect(\"localhost\",\"root\",\"root\",false);\n $bd = mysql_select_db(\"appanda\",$conexion);\n mysql_query(\"SET NAMES 'utf8'\");\n \n $sql = \"select idUsuario from usuario where UPPER(login)='\".strtoupper($user).\"' and pass='\".$pass.\"'\";\n $result = mysql_query($sql,$conexion);\n if(mysql_affected_rows()<=0 || !$result) return -1; //user repetido\n \n $row = mysql_fetch_array($result);\n $idUsuario = $row['idUsuario'];\n $_SESSION['usuario']=$idUsuario;\n \n if($recordarme){\n global $saltCookie;\n\n $cookie = sha1($saltCookie.md5($idUsuario.date(\"Y-d-m h:i:s\")));\n\n $sql2 = \"update usuario set cookie='\".$cookie.\"',validez=DATE_ADD(now(),INTERVAL 6 MINUTE) where `idUsuario`='\".$idUsuario.\"'\";\n $result2 = mysql_query($sql2,$conexion);\n\n setCookie(\"identificado\",$cookie,time()+360,'/'); //cookie 6min\n }\n $_SESSION['usuario']=$idUsuario;\n \n return true;\n}", "title": "" }, { "docid": "b1991b6adb348c7bbe51420442dc41f5", "score": "0.608115", "text": "function sess_create()\n\t{\n\t\t$sessid = '';\n\t\t$ip = ip2long(response::ip());\n\t\twhile (strlen($sessid) < 32){\n\t\t\t$sessid .= mt_rand(0, mt_getrandmax());\n\t\t}\n\t\t$sessid .= $ip;\n\n\t\t$this->userdata = array(\n\t\t\t'session_id' \t=> md5(uniqid($sessid, TRUE)),\n\t\t\t'ip_address' \t=> $ip,\n\t\t\t'user_agent' \t=> substr(response::user_agent(), 0, 50),\n\t\t\t'last_activity'\t=> $this->now\n\t\t);\n\t\t// Save the data to the DB if needed\n\t\tif ($this->savepath == 'db') Db::getInstance()->insert($this->dbtable,$this->userdata);\n\t\t// Write the cookie\n\t\t$this->_set_cookie();\n\t}", "title": "" }, { "docid": "e0b86ad074b8a3cda9a9fa0c25d049fe", "score": "0.6052897", "text": "function SavingStories($currentid, $textarea, $type) {\r\n // We form an array with values\r\n $cookie = array(\r\n 'type' => $type,\r\n 'textarea' => $textarea,\r\n 'time' => time());\r\n // Save by encoding in JSON-string\r\n SetCookie(\"TALK\".$currentid, json_encode($cookie), time()+60);\r\n}", "title": "" }, { "docid": "e0747a0ac142a167733e4867320e70db", "score": "0.60456234", "text": "function getExpires() {\n return 0;\n }", "title": "" }, { "docid": "974cce4ecb432719efb88ad5f60eef6f", "score": "0.60247946", "text": "public function save()\n {\n $data = $this->getData();\n\n if (!$data['core__static_base_url']) {\n $data['core__static_base_url'] = KENDO_BASE_URL;\n }\n\n if (!$data['core__maintenance_code']) {\n $data['core__maintenance_code'] = uniqid();\n }\n\n if (!$data['core__cookie_path']) {\n $data['core__cookie_path'] = KENDO_BASE_URL;\n }\n\n if (!$data['core__cookie_lifetime']) {\n $data['core__cookie_path'] = 86400; // 1 days\n }\n\n $_SESSION['maintenance'] = $data['core__maintenance_code'];\n\n $this->_save($data);\n }", "title": "" }, { "docid": "1baf6e65ef835556a9c335d7d4a95148", "score": "0.60140854", "text": "public function setRememberMeTime($time)\n {\n $this->ttl = $time;\n }", "title": "" }, { "docid": "c2b85a0106ca08c646c7d532d5ef78c7", "score": "0.6006984", "text": "function sess_update()\n\t{\n\t\t// We only update the session every five minutes by default\n\t\tif (($this->userdata['last_activity'] + $this->sess_time_to_update) >= $this->now) return ;\n\t\t// Save the old session id so we know which record to\n\t\t// update in the database if we need it\n\t\t$old_sessid = $this->userdata['session_id'];\n\t\t$new_sessid = '';\n\t\twhile (strlen($new_sessid) < 32)\n\t\t{\n\t\t\t$new_sessid .= mt_rand(0, mt_getrandmax());\n\t\t}\n\n\t\t// To make the session ID even more secure we'll combine it with the user's IP\n\t\t$new_sessid .= ip2long(response::ip());\n\n\t\t// Turn it into a hash\n\t\t$new_sessid = md5(uniqid($new_sessid, TRUE));\n\n\t\t// Update the session data in the session data array\n\t\t$this->userdata['session_id'] = $new_sessid;\n\t\t$this->userdata['last_activity'] = $this->now;\n\n\t\t// _set_cookie() will handle this for us if we aren't using database sessions\n\t\t// by pushing all userdata to the cookie.\n\t\t$cookie_data = NULL;\n\n\t\t// Update the session ID and last_activity field in the DB if needed\n\t\tif ($this->savepath == 'db'){\n\t\t\t// set cookie explicitly to only have our session data\n\t\t\t$cookie_data = array();\n\t\t\tforeach (array('session_id','ip_address','user_agent','last_activity') as $val){\n\t\t\t\t$cookie_data[$val] = $this->userdata[$val];\n\t\t\t}\n\t\t\tDb::getInstance()->update($this->dbtable,array('session_id' => $old_sessid),\n\t\t\t\tarray('last_activity' => $this->now, 'session_id' => $new_sessid));\n\t\t}\n\t\t// Write the cookie\n\t\t$this->_set_cookie($cookie_data);\n\t}", "title": "" }, { "docid": "4385131699925a1a462e3a423b3e4d6b", "score": "0.59935826", "text": "function saveSession($sessID,$calID) {\n\t$maxTime = time() - 7200; //keep session data max 2 hours\n\tmysql_query(\"DELETE FROM x_sessdata WHERE (tStamp < $maxTime)\"); //flush expired session data\n\t$result = mysql_query(\"REPLACE x_sessdata VALUES ('$calID','$sessID','\".mysql_real_escape_string(serialize($_SESSION)).\"',\".time().\")\");\n\treturn $result;\n}", "title": "" }, { "docid": "bbc6cdf5df6f1d0463ac3cd9a4178001", "score": "0.599012", "text": "public function setCookie( ){\n\n\t\t/**\n\t\t * set expire time to one week\n\t\t */\n\t\t$expire_time = time( ) + ( 3600 * 24 * 7 );\n\n\t\t/**\n\t\t * set cookies for email and password\n\t\t */\n\t\tsetcookie( 'furasta[email]', $this->email, $expire_time );\n\t\tsetcookie( 'furasta[password]', $this->password, $expire_time );\n\n\t\treturn true;\n\n\t}", "title": "" }, { "docid": "255aafe506f93942db3159b91b62476f", "score": "0.5978722", "text": "function storeSessionID($userid, $sessionID){\n global $wpdb;\n\n //Set sessionID cookie (expire in 30 days)\n setcookie(\"HYDIAUTHKEY\", $sessionID, time() + (86400 * 30),\"/\");\n\n //Store into database\n $wpdb->update(\n TABLE_HYDI_USERS,\n array(\n 'sessionid'=> $sessionID\n ),\n array(\n 'fbuid' =>$userid,\n )\n );\n}", "title": "" }, { "docid": "935655303e603df7c0b188661fa60c09", "score": "0.5976677", "text": "function getSessionCookieExpiration($cookie) {\n\t\t$cmd = 'SELECT expire FROM session_cookies WHERE cookie=:cookie';\n\t\t$conn = new PDO('mysql:host=localhost;dbname=mysql', view_username, view_password);\n\t\t$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t$stmt = $conn->prepare($cmd);\n\t\t$stmt->bindParam(':cookie', $cookie);\n\t\t$stmt->execute();\n\t\t$time = $stmt->fetchAll();\n\t\tif(isset($time[0][0])) {\n\t\t\treturn $time[0][0];\n\t\t}\n\t\telse {\n\t\t\t//The cookie does not exist, so it returns a time guaranteed to be in the past.\n\t\t\treturn 955627200;\n\t\t}\n\t}", "title": "" }, { "docid": "4cc6db53d59129e315e693f57614b11e", "score": "0.597325", "text": "function setUpLogin($data){\n //$_SESSION['user']=$data[0];\n //$_SESSION['rol']=$data[1];\n //$_SESSION['cedula']=$data[2];\n setcookie('user',$data[0],time()+3600);\n setcookie('rol',$data[1],time()+3600);\n setcookie('cedula',$data[2],time()+3600);\n header(\"Refresh:0\"); //; url=?user=$data[0]\");\n}", "title": "" }, { "docid": "c7275307544fb85131c74e868ca34de5", "score": "0.59646344", "text": "public function addCookies($cookie_user,$time,$user_id,$logged_in){\n $sql = \"INSERT INTO tbl_cookies (cookie_user,id_user,logged_in,login_expire) VALUES(?,?,?,?) ON DUPLICATE KEY UPDATE id_user = ? , logged_in = ?\";\n try{\n $result = $this->_db->prepare($sql);\n $result->execute(array($cookie_user, $user_id, $logged_in, $time,$user_id,$logged_in));\n\n }\n catch(PDOException $e){\n echo $e->getMessage();\n }\n }", "title": "" }, { "docid": "66f141a1cf2c2e354964a5c2cb2f2886", "score": "0.59584266", "text": "public static function rememberCookieLifeTime(): int\n {\n return self::$lifetime;\n }", "title": "" }, { "docid": "5d6fb65adb041f53e18cd149abfe7df6", "score": "0.59490067", "text": "function set_session_id($user_id, $connection = NULL) \n{\n global $_connection;\n if ($connection == NULL) {\n $connection = $_connection;\n }\n\n $session_id = md5(microtime());\n $query = \"INSERT INTO `session_table` (\n `session_id` , `user_id` , `session_expiration_date` \n ) VALUES ( \n '$session_id' , '$user_id' , DATE_ADD( NOW(), INTERVAL 1 HOUR ) \n )\";\n if (! db_execute($query, $connection)) {\n return FALSE;\n }\n\n setcookie('njia-session-id', $session_id);\n return $session_id;\n}", "title": "" }, { "docid": "260f7bada51097f7b94af2dfdaf1b4c6", "score": "0.5944003", "text": "protected function saveToken()\n {\n if (isset($this->token) && $this->token) {\n return;\n }\n\n if ($this->token = Cookie::get($this->getCookieName(), null)) {\n return;\n }\n\n // If cookie token doesn't exist, we need to create it with unique token...\n $this->token = Str::random(40);\n Cookie::queue(Cookie::make($this->getCookieName(), $this->token, 60));\n\n // ... and attach it to broker session in SSO server.\n $this->attach();\n }", "title": "" }, { "docid": "4ccd971e46a54c45d9071b7280a1bc80", "score": "0.5930214", "text": "function SetSessionExpiration($sec) {\n//\tsetcookie(session_name(), session_id(), 0, \"/\");\n\n\t$expTime=time()+$sec;\n\n\t$CookieInfo = session_get_cookie_params();\n\tif ( (empty($CookieInfo['domain'])) && (empty($CookieInfo['secure'])) ) {\n\t setcookie(session_name(), session_id(), $expTime, $CookieInfo['path']);\n\t} elseif (empty($CookieInfo['secure'])) {\n\t setcookie(session_name(), session_id(), $expTime, $CookieInfo['path'], $CookieInfo['domain']);\n\t} else {\n\t setcookie(session_name(), session_id(), $expTime, $CookieInfo['path'], $CookieInfo['domain'], $CookieInfo['secure']);\n\t}\n\n}", "title": "" }, { "docid": "94f7d5a8ce101dff9db91b1fdca6ed66", "score": "0.5925428", "text": "function bcbsri_online_application_set_cookie ($args) {\n\t$name = $args[0];\n\t$value = $args[1];\n\t//$year = (!empty($args[2]) ? $args[2] : bcbsri_online_application_get_year());\n\t//$alias = (!empty($args[3]) ? $args[3] : bcbsri_online_application_get_alias());\n // Changed to 0 becuase timeout check was causing auth to fail when setting to 15\n //$expire = 0; #(empty($args[2]) ? 0 : strtotime($args[2]));\n $expire = (empty($args[2]) ? 0 : strtotime($args[2]));;\n\t$sessionCookie = session_get_cookie_params();\n\t// setcookie('bcbsri_' . $year . '_' . $alias . '[' . $name . ']', $value, 0, '/', $_SERVER['HTTP_HOST'], $sessionCookie['secure'], TRUE);\n setcookie($name, $value, $expire, '/', $_SERVER['HTTP_HOST'], $sessionCookie['secure'], TRUE);\n}", "title": "" }, { "docid": "e783303e2ffebd3d4acb06bcd88ba639", "score": "0.5923699", "text": "function test_cookies()\n{\n if(!isset($_COOKIE['test_cookie']))\n {\n setcookie(\"test_cookie\",0,time()-1);\n unset($_COOKIE['test_cookie']); \n }\n\n setcookie(\"test_cookie\", \"test\", time() + 3600);\n \n if(count($_COOKIE) <= 0) \n {\n echo \"<h2>Ciasteczka są wyłączone.Aby Skorzystać z serwisu włącz obsługę ciasteczek.<h2>\";\n setcookie(\"test_cookie\",0,time()-1);\n unset($_COOKIE['test_cookie']);\n return false;\n }\n}", "title": "" }, { "docid": "246b4c4f61520f4b2043079411e8595a", "score": "0.58982885", "text": "private function save_cache($data)\n {\n // Save Json data\n $handle = fopen(__DIR__.\"/twitter-cache.json\", 'w');\n fwrite($handle, json_encode($data));\n fclose($handle);\n // Save Last date\n $handle = fopen(__DIR__.\"/twitter-last-cache.txt\", 'w');\n fwrite($handle, date(\"c\"));\n fclose($handle); \n }", "title": "" }, { "docid": "6d8640f75474c5eb46a871a9af28fca9", "score": "0.5896172", "text": "function set_persistent_cookie($name, $value, $days = 0, $secure = 0, $httponly = 1)\n\t{\n\t\tif ($days == 0)\n\t\t{\n\t\t\t$days = $this->config['session_expiration'];\n\t\t}\n\n\t\tsetcookie($this->config['cookie_prefix'].$name.'_'.$this->config['cookie_hash'], $value, time() + $days * 24 * 3600, $this->config['cookie_path'], '', ( $secure ? true : false ), ( $httponly ? true : false ));\n\t\t$_COOKIE[$this->config['cookie_prefix'].$name.'_'.$this->config['cookie_hash']] = $value;\n\t}", "title": "" }, { "docid": "d9f8cf6c7c0d1d56def7e362905fe6a5", "score": "0.58938855", "text": "protected function setCookie($key, $value) {\r\n setcookie($key, $value, time()+3600); /* expira em 1 hora */\r\n }", "title": "" }, { "docid": "ef814acd1b76309965a6665f68b68bb6", "score": "0.58900315", "text": "function form_cache($save=FALSE)\n\t{\t\n\t\tif(!isset($_SESSION['listen_count']))\n\t\t{\n\t\t\tsave_last_incoming();\n\t\t\treturn TRUE;\n\t\t}\n\t\tif($save)\n\t\t{\n\t\t\tsave_last_incoming();\n\t\t\treturn TRUE;\n\t\t}\n\t\telse\n\t\t\treload_last_incoming();\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b01a1ff1365fbbf7086a93a7075c8d65", "score": "0.58895546", "text": "function _set_cookie($cookie_data = NULL)\n\t{\n\t\tif (is_null($cookie_data)) $cookie_data = $this->userdata;\n\t\t// Serialize the userdata for the cookie\n\t\t$cookie_data = $this->_serialize($cookie_data);\n\t\t$cookie_data = $cookie_data.md5($cookie_data.$this->encryption_key);\n cookie::set($this->sess_cookie_name, $cookie_data, $this->expiration);\n return ;\n\t}", "title": "" }, { "docid": "f7b755705794b297679394f5d71b6eaf", "score": "0.5864448", "text": "function cs_set_post_views($postID) {\n if ( !isset($_COOKIE[\"cs_count_views\".$postID]) ){\n setcookie(\"cs_count_views\".$postID, 'post_view_count', time()+86400);\n // set_transient( $key, $value, 60*60*12);\n $count_key = 'cs_count_views';\n $count = get_post_meta($postID, $count_key, true);\n if($count==''){\n $count = 0;\n delete_post_meta($postID, $count_key);\n add_post_meta($postID, $count_key, '0');\n }else{\n $count++;\n update_post_meta($postID, $count_key, $count);\n }\n }\n}", "title": "" }, { "docid": "53f775a279099e85cedd834341d01524", "score": "0.5863796", "text": "private function remember($selector,$hash){\n$selector=preg_replace(\"/[^A-Za-z0-9 ]/\", '', $selector);\n$hexinfo;\n\n$stmt = $this->db->prepare(\"SELECT uid,selector,token,expires FROM users_auth_tokens WHERE selector=:selector AND expires > DATE_SUB(NOW(),INTERVAL 1 MINUTE) LIMIT 1\");\n$stmt->bindValue(':selector', $selector, PDO::PARAM_STR);\n$stmt->execute();\n$results = $stmt->fetchAll(PDO::FETCH_ASSOC);\n$hexinfo=$results[0];\n$uid=intval($hexinfo['uid']);\n\n$now = time();\n$your_date = strtotime($hexinfo['expires']);\n$datediff = $your_date-$now;\n$daysoff=floor($datediff/(60*60*24));\n\nif(!$uid||$uid==0){\n$this->guest();\n}\n\nif($this->timingSafeCompare(hash('sha256', $hash),$hexinfo['token'])){\n$stmt = $this->db->prepare(\"SELECT users.*,ul.id as level FROM users, users_levels ul WHERE users.id = :uid AND ul.points <= users.xp ORDER BY ul.points DESC LIMIT 1\");\n$stmt->bindValue(':uid', $uid, PDO::PARAM_INT);\n$stmt->execute();\n$results = $stmt->fetchAll(PDO::FETCH_ASSOC);\n$user=$results[0];\nif (intval($user['id'])>0){\n$this->user=$user;\nsession_regenerate_id(true);\n$_SESSION['user_email'] = $this->user['user_email'];\n$_SESSION['user_login_status'] = 1;\nif($daysoff<3){\n$this->regen_cookie();\n}\n}else{\n$this->guest();\n}\n}\n}", "title": "" }, { "docid": "fde89fc92e177ec384782971a06b3369", "score": "0.5858463", "text": "static function cache()\r\n {\r\n // Note that HTTP 1.1 states that the date shouldn't be more than one year\r\n // into the future. See section 14.21 (\"Expires\") of RFC 2616 (HTTP 1.1),\r\n // specifically the first paragraph of page 127.\r\n $secondsInYear = 60 * 60 * 24 * 365;\r\n header('Expires: '.gmdate('D, d M Y H:i:s \\G\\M\\T', time() + $secondsInYear)); \r\n }", "title": "" }, { "docid": "6aa03414b29f0d3c9d842e096c80e9ab", "score": "0.58533", "text": "protected function saveToken()\n {\n if (isset($this->token) && $this->token) {\n return;\n }\n \n if ($this->token = Cookie::get($this->getCookieName(), null)) {\n return;\n }\n\n // If cookie token doesn't exist, we need to create it with unique token...\n $this->token = str_random(40);\n Cookie::queue(Cookie::make($this->getCookieName(), $this->token, 60));\n\n // ... and attach it to broker session in SSO server.\n if (!empty($this->ssoServerUrlPublic)) {\n $this->ssoServerUrl = $this->ssoServerUrlPublic;\n }\n $this->attach();\n if (!empty($this->ssoServerUrlPublic)) {\n $this->ssoServerUrl = $this->ssoServerUrlDmz;\n }\n }", "title": "" }, { "docid": "e7aa9173c1e93f1f0cebc9239d4d712c", "score": "0.5850815", "text": "public function last_time_update(){\n\n $browser = (!empty($_SERVER['HTTP_USER_AGENT'])) ? htmlspecialchars((string) $_SERVER['HTTP_USER_AGENT']) : '';\n\n $admin\t = current_user_can('manage_options') ? 1 : 0; // current_user_can is function of the wp\n\n // is a bot or not a bot?\n $this->_db->query(\"select instr('$browser', `bot_agent`) as `bt` from `\" . self::PHPBB3_TABLE_PREFIX . \"bots` having `bt` > 0\");\n\n if ( $this->_db->num_rows > 0 ) return;\n\n $this->_db->query(\"select * from `\" . self::PHPBB3_TABLE_PREFIX . \"sessions` where session_id = '\" . $this->_db->_real_escape($this->_sid) . \"'\");\n\n if ( $this->_db->num_rows > 0 ){\n\n $this->_db->query(\"update `\" . self::PHPBB3_TABLE_PREFIX . \"sessions` set session_user_id = \" . $this->_user_id . \", session_time = \" . time() . \",\n\t\t\t\t\t\t\tsession_admin = \" . $admin . \",\n\t\t\t\t\t\t\tsession_page = '\" . $this->_db->_real_escape($_SERVER['REQUEST_URI']) . \"'\n\t\t\t\t\t\t\twhere session_id = '\" . $this->_db->_real_escape($this->_sid) . \"'\");\n\n\n }\n else{\n\n $this->_db->query(\"insert into `\" . self::PHPBB3_TABLE_PREFIX . \"sessions`\n\t\t (session_id, session_user_id, session_last_visit, session_start, session_time,\n\t\t session_viewonline, session_browser, session_ip, session_page, session_admin)\n\t\t values('{$this->_sid}', {$this->_user_id}, \" . time() . \", \" . time() . \", \" . time() . \", 1,\n\t\t\t\t\t\t\t\t\t '{$browser}', '\" . $this->_db->_real_escape($_SERVER['REMOTE_ADDR']) . \"', '\" .\n $this->_db->_real_escape($_SERVER['REQUEST_URI']) . \"', {$admin})\");\n\n // set session cookie\n Helpers::set_cookie(self::SESSION_NAME, $this->_sid, $this->_expires);\n // write user's id in the cookie\n Helpers::set_cookie(self::COOKIE_PREFIX . '_u', $this->_user_id, $this->_expiries);\n }\n }", "title": "" }, { "docid": "be24d2963c531a41a23bbc7cc4eaf074", "score": "0.58472997", "text": "function jr_mt_cookie( $lang, $action, $cookie_value = '' ) {\n\tswitch ( $lang ) {\n\t\tcase 'js':\n\t\t\t$cookie_name = 'jr-mt-remember-query';\n\t\t\t$raw = TRUE;\n\t\t\t$expiry = '+36 hours';\n\t\t\t$function = 'setrawcookie';\n\t\t\tbreak;\n\t\tcase 'php':\n\t\t\t$cookie_name = 'jr_mt_php_override_query';\n\t\t\t$raw = FALSE;\n\t\t\t$expiry = '+1 year';\n\t\t\t$function = 'setcookie';\n\t\t\tbreak;\n\t}\n\tif ( 'get' === $action ) {\n\t\tif ( isset( $_COOKIE[ $cookie_name ] ) ) {\n\t\t\treturn $_COOKIE[ $cookie_name ];\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t} else {\n\t\tglobal $jr_mt_cookie_track;\n\t\tif ( defined( 'JR_MT_TOO_LATE_FOR_COOKIES' ) ) {\n\t\t\treturn FALSE;\n\t\t}\n\t\t/*\tDetermine Path off Domain to WordPress Address, not Site Address, for Cookie Path value.\n\t\t\tUsing home_url().\n\t\t*/\n\t\t$cookie_path = parse_url( JR_MT_HOME_URL, PHP_URL_PATH ) . '/';\n\t\tswitch ( $action ) {\n\t\t\tcase 'put':\n\t\t\t\tif ( empty( $cookie_value ) ) {\n\t\t\t\t\treturn FALSE;\n\t\t\t\t} else {\n\t\t\t\t\treturn ( $jr_mt_cookie_track[ $lang ] = $function( $cookie_name, $cookie_value, strtotime( $expiry ), $cookie_path, $_SERVER['SERVER_NAME'] ) );\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'del':\n\t\t\t\t/*\tDon't clutter up output to browser with a Cookie Delete request if a Cookie does not exist.\n\t\t\t\t*/\n\t\t\t\tif ( isset( $_COOKIE[ $cookie_name ] ) ) {\n\t\t\t\t\treturn ( $jr_mt_cookie_track[ $lang ] = setrawcookie( $cookie_name, '', strtotime( '-2 days' ), $cookie_path, $_SERVER['SERVER_NAME'] ) );\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'clean':\n\t\t\t\tif ( 'all' === $lang ) {\n\t\t\t\t\t$clean_langs = array( 'php', 'js' );\n\t\t\t\t} else {\n\t\t\t\t\t$clean_langs = array( $lang );\n\t\t\t\t}\n\t\t\t\tforeach ( $clean_langs as $clean_lang ) {\n\t\t\t\t\tif ( !isset( $jr_mt_cookie_track[ $clean_lang ] ) ) {\n\t\t\t\t\t\tjr_mt_cookie( $clean_lang, 'del' );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "e5077ec88ba89261ccaadb2c7d314a6c", "score": "0.5845623", "text": "function main(){\n if(isset($_POST['articulo'])){\n if(!isset($_COOKIE['carro'])){\n setcookie('carro', $_POST['articulo'], time() + (86400 * 15), \"/\");\n }else{\n setcookie('carro', $_COOKIE['carro'].';'.$_POST['articulo'], time() + (86400 * 15), \"/\");\n }\n }\n carrito();\n form();\n }", "title": "" }, { "docid": "6bc05a002743a4517841a6709f4f46aa", "score": "0.58453816", "text": "function fsl_session_set($name,$value,$timeout = NULL){\n $_SESSION[$name] = fsl_encrypt($value);\n\t\t\t\tif(!empty($timeout)) $_SESSION[$name.'_timeout'] = $timeout + time();\n\t\t\n return true;\n}", "title": "" }, { "docid": "0b52d6d59f4374f04fc38ab279713438", "score": "0.58450127", "text": "function do_session_set() {\n\t# Dim some Vars\n\t\tglobal $_CCFG, $_DBCFG, $db_coin;\n\n\t# Get / Set some vars\n\t\t$_SEC\t= get_security_flags ();\n\t\t$_si\t\t= session_id();\n\t\t$_tm\t\t= dt_get_uts();\n\t\t$_ip\t\t= $_SERVER[\"REMOTE_ADDR\"];\n\t\t$_pv\t\t= $_CCFG['S_AGE_IN_SECONDS'];\n\n\t# Do Purge (time in seconds)\n\t\t$query \t= 'DELETE FROM '.$_DBCFG['sessions'].\" WHERE ($_tm - s_time_last) > $_pv\";\n\t\t$result \t= $db_coin->db_query_execute($query);\n\n\t# Try select existing for either update or insert\n\t\t$query\t= 'SELECT s_id FROM '.$_DBCFG['sessions'].\" WHERE s_id='\".$_si.\"'\";\n\t\t$result\t= $db_coin->db_query_execute($query);\n\t\t$numrows\t= $db_coin->db_query_numrows($result);\n\n\t# Check if exist, update or insert as required\n\t\tIF ($numrows == 1) {\n\t\t# Do update existing\n\t\t\t$query \t = 'UPDATE '.$_DBCFG['sessions'].' SET ';\n\t\t\t$query \t.= \"s_time_last='\".$_tm.\"', \";\n\t\t\t$query \t.= \"s_ip='\".$_ip.\"', \";\n\t\t\t$query \t.= \"s_is_admin='\".$_SEC['_sadmin_flg'].\"', \";\n\t\t\t$query \t.= \"s_is_user='\".$_SEC['_suser_flg'].\"' \";\n\t\t\t$query \t.= \"WHERE s_id='\".$_si.\"'\";\n\t\t\t$result\t= $db_coin->db_query_execute($query);\n\t\t} ELSE {\n\t\t# Do Insert\n\t\t\t$query \t = 'INSERT INTO '.$_DBCFG['sessions'].' (';\n\t\t\t$query \t.= 's_id, s_time_init, s_time_last, s_ip ,s_is_admin, s_is_user';\n\t\t\t$query \t.= ') VALUES (';\n\t\t\t$query \t.= \"'\".$_si.\"', \";\n\t\t\t$query \t.= \"'\".$_tm.\"', \";\n\t\t\t$query \t.= \"'\".$_tm.\"', \";\n\t\t\t$query \t.= \"'\".$_ip.\"', \";\n\t\t\t$query \t.= \"'\".$_SEC['_sadmin_flg'].\"', \";\n\t\t\t$query \t.= \"'\".$_SEC['_suser_flg'].\"'\";\n\t\t\t$query \t.= ')';\n\t\t\t$result \t= $db_coin->db_query_execute($query);\n\t\t}\n\n\t\treturn 1;\n}", "title": "" }, { "docid": "793501e09a70ef2c4b43fb9ad02db16b", "score": "0.5837221", "text": "function writeLoginCredentials( $user_id = null, $cookie = false ) {\r\n global $ipdb;\r\n // generate 64 char random string\r\n $token_string = $ipdb->escape( hash( \"sha256\", mt_rand() ) );\r\n\r\n // write that token into database\r\n $ipdb->query( \"UPDATE `$ipdb->users` SET `user_rememberme_token` = '{$token_string}' WHERE `ID` = '{$user_id}'\" );\r\n\r\n // generate cookie string that consists of user id, random string and combined hash of both\r\n $string_first_part = $user_id.\":\".$token_string;\r\n $string_hash = hash( \"sha256\", $string_first_part );\r\n $string = $string_first_part.\":\".$string_hash;\r\n\r\n $_SESSION[\"ip_login_remember\"] = $string;\r\n\r\n if ( $cookie ) {\r\n // set cookie\r\n setcookie( \"ip_login_remember\", $string, ( time() + 1209600 ), \"/\" );\r\n }\r\n}", "title": "" }, { "docid": "5cf0f1dba51406fd797d1a088e7a012f", "score": "0.58344966", "text": "function saveSession ($key, $value)\n{\n // ON PASSE PAR LE TABLEAU ASSOCIATIF $_SESSION\n // MALHEUREUSEMENT IL FAUT APPELER LA FONCTION session_start()\n // POUR CREER CETTE VARIABLE $_SESSION\n // http://php.net/manual/fr/function.session-start.php\n if (!isset($_SESSION))\n {\n // PERMET DE N'APPELER QU'UNE FOIS LA FONCTION session_start\n session_start();\n // CETTE FONCTION VA VERIFIER SI ON A DEJA IDENTIFIE LE NAVIGATEUR\n // AVEC UN COOKIE PHPSESSID \n // SI OUI, ON CONTINUE A L'UTILISER\n // SINON, ON CREE UN COOKIE PHPSESSID UNIQUE POUR IDENTIFIER LE NAVIGATEUR\n }\n \n // MAINTENANT, ON PEUT UTILISER LE TABLEAU $_SESSION\n $_SESSION[$key] = $value;\n}", "title": "" }, { "docid": "ec4d2a6d6922e4f523a679242326b842", "score": "0.58317584", "text": "function ocp_eatcookie($name)\n{\n\t$expire=time()-100000; // Note the negative number must be greater than 13*60*60 to account for maximum timezone difference\n\n\t// Try and remove other potentials\n\t@setcookie($name,'',$expire,'',preg_replace('#^www\\.#','',ocp_srv('HTTP_HOST')));\n\t@setcookie($name,'',$expire,'/',preg_replace('#^www\\.#','',ocp_srv('HTTP_HOST')));\n\t@setcookie($name,'',$expire,'','www.'.preg_replace('#^www\\.#','',ocp_srv('HTTP_HOST')));\n\t@setcookie($name,'',$expire,'/','www.'.preg_replace('#^www\\.#','',ocp_srv('HTTP_HOST')));\n\t@setcookie($name,'',$expire,'','');\n\t@setcookie($name,'',$expire,'/','');\n\n\t// Delete standard potential\n\treturn @setcookie($name,'',$expire,get_cookie_path(),get_cookie_domain());\n}", "title": "" }, { "docid": "0e341d598a38d2e78ca968355180018d", "score": "0.58299136", "text": "function set_settings($settings) {\n\n $settings_data = json_encode($settings);\n $settings_data = base64_encode($settings_data);\n $thirty_days = time() + 60 * 60 * 24 * 30;\n setcookie('app_settings', $settings_data, $thirty_days);\n return;\n}", "title": "" }, { "docid": "ffedba15cb3a85220390cfaa017681ed", "score": "0.5826613", "text": "private function getCookie(){\n\t\t$Cookie = filter_input(INPUT_COOKIE, 'useronline', FILTER_DEFAULT);\n\t\tsetcookie(\"useronline\",base64_encode('reidacaixa'),time()+86400);\n\t\tif(!$Cookie):\n\t\t\treturn false;\n\t\telse:\n\t\t\treturn false;\n\t\tendif;\t\n\t}", "title": "" }, { "docid": "f8f97f40103ca9aaa1d0b0e35d4f85ce", "score": "0.58253044", "text": "function sess_write()\n\t{\n\t\t// Are we saving custom data to the DB? If not, all we do is update the cookie\n\t\tif ($this->savepath != 'db') return $this->_set_cookie();\n\t\t// set the custom userdata, the session data we will set in a second\n\t\t$custom_userdata = $this->userdata;\n\t\t$cookie_userdata = array();\n\n\t\t// Before continuing, we need to determine if there is any custom data to deal with.\n\t\t// Let's determine this by removing the default indexes to see if there's anything left in the array\n\t\t// and set the session data while we're at it\n\t\tforeach (array('session_id','ip_address','user_agent','last_activity') as $val)\n\t\t{\n\t\t\tunset($custom_userdata[$val]);\n\t\t\t$cookie_userdata[$val] = $this->userdata[$val];\n\t\t}\n\t\t// Did we find any custom data? If not, we turn the empty array into a string\n\t\t// since there's no reason to serialize and store an empty array in the DB\n\t\t$custom_userdata = (count($custom_userdata)>0)?$this->_serialize($custom_userdata):'';\n\t\t// Run the update query\n\t\tDb::getInstance()->update($this->dbtable,array('session_id'=>$this->userdata['session_id']),\n\t\t\tarray('last_activity' => $this->userdata['last_activity'], 'user_data' => $custom_userdata));\n\t\t$this->_set_cookie($cookie_userdata);\n\t}", "title": "" }, { "docid": "adf21e6123fd5376cba8852e2c1089b5", "score": "0.5825154", "text": "function create()\n\t{\n global $mysqli;\n // Generar ID de sesión\n $this->ID = $this->gen_session_id();\n\n // Guardar en la base de datos, session_user_id siemrpe será 0 aquí\n // si inicia sesión se \"actualiza\"\n\t\t$mysqli->query('INSERT INTO sessions (s_id, s_uid, s_ip, s_time) VALUES (\\''.$this->ID.'\\', \\'0\\', \\''.$this->ip_address.'\\', \\''.$this->time_now.'\\') ');\n\n // Establecemos la cookie\n $this->set_cookie('sid', $this->ID, $this->sess_expiration);\n }", "title": "" }, { "docid": "bf9a42ffad6b190bc1ab51a92a1f0140", "score": "0.5819018", "text": "public static function setTimeCache(){\n $HoraDelete = Zend_Registry::get('main')->delete->cache->hora;\n $MinutoDelete = Zend_Registry::get('main')->delete->cache->minuto;\n $SegundoDelete = Zend_Registry::get('main')->delete->cache->segundos;\n date_default_timezone_set('America/Mexico_City');\n $TiempoCache = mktime($HoraDelete,$MinutoDelete,$SegundoDelete,date(\"n\"),date(\"j\"),date(\"Y\")) - time(); //86400\n if($TiempoCache <= 0){\n $TiempoCache = (mktime($HoraDelete,$MinutoDelete,$SegundoDelete,date(\"n\"),date(\"j\"),date(\"Y\")) + 86400) - time(); //86400\n }\n return $TiempoCache;\n }", "title": "" }, { "docid": "f2d7c12b086b6745e61d33b630480fcb", "score": "0.58174866", "text": "private function setCookie($period, $extraTime = null)\n {\n //TODO: change last parameter (domain range) to only proper resources and not whole domain!\n setcookie(session_name(), $_COOKIE[session_name()], time() + $period + $extraTime, self::APPLICATION_SUBDOMAIN);\n //TODO: variable for debug only! should be removed or handled other way\n //\t\t$_SESSION['initTime'] = time() + $period + $extraTime;\n }", "title": "" }, { "docid": "348f9823ea7d3adb871448fed2c29cc3", "score": "0.58149904", "text": "function setDate($time, $seconds_to_revalidate=NULL, $secur_check=true)\n {\n\t\t// DURANTE LOS 15 SEGUNDOS PRIMEROS, generamos de nuevo\n\t\t// no sea que el fichero no est� actualizado en el filer\n\t\t$current = time();\n\t\t$time = (($time + 15)>$current?$current:($time + 15));\n\n\n \tif ($cached_data = $_SERVER['HTTP_IF_MODIFIED_SINCE'])\n\t \t{\n \t\t$cached_time = strtotime(ereg_replace(\";.*\",\"\",$cached_data));\n \t\tif (strstr($cached_data, \"length=0\")) $cached_time = 0;\n\t\t}\t\n\t\telse $cached_time=0;\n\n if ($cached_time && $time <= $cached_time) {\n if (!$secur_check || ($current - $cached_time) < 3600) {\n if (!is_null($seconds_to_revalidate)) {\n $this->setCacheTime($seconds_to_revalidate);\n }\n $this->sendNotModified();\n die;\n } else $time = $current;\n }\n\t\telse if ($secur_check && (time() - $time) > 3600) $time = time();\n\n\t\t$dw = gmdate(\"w\", $time);\n\t\t$dw_txt = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');\n $lastModified = $dw_txt[$dw].', '.gmdate(\"d M Y H:i:s\", $time).\" GMT\";\n $this->setHeader(\"Last-Modified: $lastModified\");\n }", "title": "" }, { "docid": "8d3c6449642e721ac31f5fa9e279a159", "score": "0.5809447", "text": "private function _storeCookieInfo()\n\t{\n\t\t$tab = array();\n\n\t\tforeach ($this->cookie_key as $key)\n\t\t\t$tab[$key] = $this->{$key};\n\n\t\t$this->context->cookie->{self::$COOKIE_NAME} = serialize($tab);\n\t}", "title": "" }, { "docid": "2bc2534816eb9e1a257ddf366d1ebee4", "score": "0.58044803", "text": "public function makeCookies(){\n\n $expire=time()+(3600*24*30);\n\n for($i=0; $i<count($_SESSION['history']);$i++){\n setcookie(\"cookie$i\",$_SESSION['history'][$i],$expire);\n\n }\n\n }", "title": "" }, { "docid": "3ce0cc6382532e45b8c28e3aba8a5f10", "score": "0.5802505", "text": "function _set_cookie($cookie_data = NULL)\n {\n if (is_null($cookie_data))\n {\n $cookie_data = $this->userdata;\n }\n\n // Serialize the userdata for the cookie\n $cookie_data = $this->_serialize($cookie_data);\n\n if ($this->sess_encrypt_cookie == TRUE)\n {\n $cookie_data = $this->CI->encrypt->encode($cookie_data);\n }\n else\n {\n // if encryption is not used, we provide an md5 hash to prevent userside tampering\n $cookie_data = $cookie_data.md5($cookie_data.$this->encryption_key);\n }\n \n // Set the cookie\n setcookie(\n $this->sess_cookie_name,\n $cookie_data,\n // if cookie monster exist and is awake, generate a session cookie that expires on browser close\n isset($_COOKIE[$this->sess_cookie_name.'_cm']) && $_COOKIE[$this->sess_cookie_name.'_cm'] == 'true' ? 0 : $this->sess_expiration + time(),\n $this->cookie_path,\n $this->cookie_domain,\n 0\n );\n }", "title": "" }, { "docid": "0946a7bd359ddc9b69b4dec96211ff88", "score": "0.5797861", "text": "public function getCookieExpires() {\n return $this->Cookie->getCookie('cookie_expires');\n }", "title": "" }, { "docid": "1ed4da1daf38b8eb14ecc376c0cecffd", "score": "0.5785459", "text": "private function _setCookie()\n {\n $value = $this->id . self::COOKIE_DELIMITER . $this->code;\n \\Request::setCookie(self::COOKIE_NAME, $value, self::COOKIE_EXPIRE);\n }", "title": "" } ]
e7bf2a42119157679cccd01b8acd03bc
setIsFirstLogin() Sets the value of the [has_completed_intro] column. Nonboolean arguments are converted using the following rules: 1, '1', 'true', 'on', and 'yes' are converted to boolean true 0, '0', 'false', 'off', and 'no' are converted to boolean false Check on string values is case insensitive (so 'FaLsE' is seen as 'false').
[ { "docid": "0dfc81c47f4714d6e13bed243604964d", "score": "0.65798146", "text": "public function setHasCompletedIntro($v)\n {\n if ($v !== null) {\n if (is_string($v)) {\n $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;\n } else {\n $v = (boolean) $v;\n }\n }\n\n if ($this->has_completed_intro !== $v) {\n $this->has_completed_intro = $v;\n $this->modifiedColumns[] = sfGuardUserPeer::HAS_COMPLETED_INTRO;\n }\n\n\n return $this;\n }", "title": "" } ]
[ { "docid": "557ce840a2fcb1b7c9440e39e53de689", "score": "0.6004417", "text": "public function setIsFirstLogin($v)\n {\n if ($v !== null) {\n if (is_string($v)) {\n $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;\n } else {\n $v = (boolean) $v;\n }\n }\n\n if ($this->is_first_login !== $v) {\n $this->is_first_login = $v;\n $this->modifiedColumns[] = sfGuardUserPeer::IS_FIRST_LOGIN;\n }\n\n\n return $this;\n }", "title": "" }, { "docid": "f8f4a4b772ee89add3d04d6bae05ec63", "score": "0.54168737", "text": "public function getIsFirstLogin()\n {\n\n return $this->is_first_login;\n }", "title": "" }, { "docid": "96ad628b956834a40472439f5a2cfc6d", "score": "0.5274133", "text": "public function getHasCompletedIntro()\n {\n\n return $this->has_completed_intro;\n }", "title": "" }, { "docid": "e3d59fe592126214887885a503f4a0b0", "score": "0.50750625", "text": "function updateHomeTrialStatus ($bool) {\n\t\tif ($this->iExist()) :\n\t\t\treturn $mysqli->query(\"UPDATE students SET trial = '$bool' WHERE student_id = \".$this->myID().\" LIMIT 1\") or die ( $mysqli->error );\n\t\telse:\n\t\t\treturn NULL;\n\t\tendif;\n\t}", "title": "" }, { "docid": "26e752e728b714825dd068a0054c0e2a", "score": "0.49591482", "text": "function setFirst ($state = true)\n {\n $this->first = $state;\n }", "title": "" }, { "docid": "e955fdd30cf66ae26cc112b767bff7c8", "score": "0.4940588", "text": "public function setComplete($var)\n {\n GPBUtil::checkBool($var);\n $this->complete = $var;\n }", "title": "" }, { "docid": "4d071ab045f971b6893a8a19670e3e69", "score": "0.49234778", "text": "public function setDefaultYes()\n\t{\n\t\t$this->setAttribute( \"default\");\n\t}", "title": "" }, { "docid": "ddf013116ef10e7c7452fe4a15cd6c75", "score": "0.48081198", "text": "function _display_option_auto_force_login() {\r\n\t\t$auto_force_login = $this->options['auto_force_login'];\r\n\t\t$this->_display_checkbox_field('auto_force_login', $auto_force_login);\r\n?>\r\nEnable force user login\r\n<?php\r\n\t}", "title": "" }, { "docid": "f1a6261c0ddbe881ed2c3c2fa6b2dfab", "score": "0.47812572", "text": "public function set_successful( $completed ) {\n\t\tif ( ! isset( $this->imports[ $this->import_id ] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->imports[ $this->import_id ]['success'] = boolval( $completed );\n\n\t\t$this->update_option();;\n\t}", "title": "" }, { "docid": "489721d3747378c98215f05f72b2656b", "score": "0.47229984", "text": "private function sample_setting_first_step_is_completed() {\n\t\t// check something\n\t\treturn true; // when check is passed\n\t}", "title": "" }, { "docid": "55af62a3765fb4d328e0f2070f654f3d", "score": "0.4707912", "text": "public function setCheckLoginOnServer($bool);", "title": "" }, { "docid": "d8c9c869ee0be5d83873dd72faaed278", "score": "0.47052073", "text": "public function setIsDefault($var)\n {\n GPBUtil::checkBool($var);\n $this->is_default = $var;\n }", "title": "" }, { "docid": "ed7b07b89ad882a2617bdd636ed1ce65", "score": "0.46937862", "text": "public static function IsIntro()\n {\n return self::$IsIntroed === true;\n }", "title": "" }, { "docid": "dd457aa5b10ce0bf1d018100d967618d", "score": "0.46580234", "text": "public function setInit(bool $value): void\n {\n $this->body['Init'] = $value;\n }", "title": "" }, { "docid": "5308f0a61950efb321fb80b628eb6626", "score": "0.46540195", "text": "public function toggleWelcomePhrase()\n {\n if (!defined('DOING_AJAX') || !DOING_AJAX) {\n return;\n }\n\n $current = get_user_meta(get_current_user_id(), 'disable_welcome_phrase', true);\n\n if ($current == 1) {\n update_user_meta(get_current_user_id(), 'disable_welcome_phrase', '0');\n wp_send_json(array('disabled' => false));\n } else {\n update_user_meta(get_current_user_id(), 'disable_welcome_phrase', '1');\n wp_send_json(array('disabled' => true));\n }\n }", "title": "" }, { "docid": "f0dd9cbd89f10e4006ceef42ce34ed30", "score": "0.46394807", "text": "protected function maybe_set_date_completed() {\n\t\tif ( $this->has_status( 'completed' ) ) {\n\t\t\t$this->set_date_completed( current_time( 'timestamp', true ) );\n\t\t}\n\t}", "title": "" }, { "docid": "24c2d1dfa145c8624cb56396cd177ba1", "score": "0.4634275", "text": "public function auto_login()\n {\n $token = \\Cookie::get($this->config['rememberable']['key']);\n\n if ($token)\n {\n $user = Model_User::authenticatebyremember($token);\n\n if ($user)\n {\n $this->complete_login($user);\n\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "390404d22f71becd907b41ee1b59bc91", "score": "0.46326426", "text": "public function setIsFulltextIndexed($isFulltextIndexed)\n {\n $this->isFulltextIndexed = $this->castValueToSimpleType('boolean', $isFulltextIndexed, true);\n }", "title": "" }, { "docid": "901838b865696a673a94d2ae9e0be1df", "score": "0.46280468", "text": "public function setInitialized($bool)\n {\n $this->initialized = $bool;\n }", "title": "" }, { "docid": "8c68912fdebb4a769ff2f968e41f80e5", "score": "0.46264422", "text": "public function setIsInitialized($isInitialized) {\n\t\t$this->isInitialized = $isInitialized;\n\t}", "title": "" }, { "docid": "1446017a457c8a34ef4558766b2e46bf", "score": "0.46190906", "text": "public function setAsDefault()\n\t{\n\t\tif(!$this->_default) {\n\t\t\t$this->_db->update($this->_sectionTable, array('default' => 1), \"name = '\" . $this->_name . \"'\");\n\t\t\t$this->_db->update($this->_sectionTable, array('default' => 0), \"name != '\" . $this->_name . \"'\");\n\t\t\t$this->_default\t= 1;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "02bcbecf7894510e6727eca04265d6da", "score": "0.46190783", "text": "public function setActive($boolean);", "title": "" }, { "docid": "fb8ed328ccc00640239b1ac1f5f4189a", "score": "0.46189", "text": "public function setIsFirstBook($isFirstBook)\n {\n $this->isFirstBook = $isFirstBook;\n\n return $this;\n }", "title": "" }, { "docid": "51c9ab52f0282d3d19372dd9594f7781", "score": "0.46172386", "text": "function activateSave($activateSave)\n {\n rex_valid_type($activateSave, array( 'boolean'), __FILE__, __LINE__);\n \n $this->activateSave = $activateSave;\n }", "title": "" }, { "docid": "8b8ea093b7e5f58c524a32c155f4e21c", "score": "0.46068463", "text": "public function setEnableMEMAutoEnroll(?bool $value): void {\n $this->getBackingStore()->set('enableMEMAutoEnroll', $value);\n }", "title": "" }, { "docid": "0d2bf33a75a7470cf81db708b7299e87", "score": "0.45881492", "text": "public function setSignInRequired(?bool $value): void {\n $this->getBackingStore()->set('signInRequired', $value);\n }", "title": "" }, { "docid": "c254396264315a8ac7e7983e6202833f", "score": "0.45745984", "text": "public function add_active_login_field() {\n\t\t$active_login = get_option( $this->setting_active_login, 0 );\n\t\t?>\n\t\t<input type='checkbox' <?php checked( $active_login );?> name='<?php echo esc_attr( $this->setting_active_login ); ?>' value='1' >\n\t\t<?php\n\t}", "title": "" }, { "docid": "100e1fd1674f77484b8cc9e9b8aad836", "score": "0.45723975", "text": "public function setIsDefaultAccessEnabled(?bool $value): void {\n $this->getBackingStore()->set('isDefaultAccessEnabled', $value);\n }", "title": "" }, { "docid": "d4de08ec76394729964f529dba6fba0f", "score": "0.45715165", "text": "public function setIsPhoneOneTimePasswordAuthenticationEnabled(?bool $value): void {\n $this->getBackingStore()->set('isPhoneOneTimePasswordAuthenticationEnabled', $value);\n }", "title": "" }, { "docid": "7f64bbec02398e8941cd23b0c05f7c49", "score": "0.45650953", "text": "public function setAutoFocusYes()\n\t{\n\t\t$this->setAttribute( \"autofocus\");\n\t}", "title": "" }, { "docid": "20f2a9e16dce8bf639b133cf863b345e", "score": "0.45545408", "text": "public function setIsRequired($isRequired);", "title": "" }, { "docid": "96d4a8e123c9b68e6055bdea21aa21ea", "score": "0.45455664", "text": "public function setCompleted($completed);", "title": "" }, { "docid": "55c55d08fad3fc2c618a3484701462c2", "score": "0.4536232", "text": "public function setIsDefault(?bool $value): void {\n $this->getBackingStore()->set('isDefault', $value);\n }", "title": "" }, { "docid": "55c55d08fad3fc2c618a3484701462c2", "score": "0.4536232", "text": "public function setIsDefault(?bool $value): void {\n $this->getBackingStore()->set('isDefault', $value);\n }", "title": "" }, { "docid": "bc4b04534b0a243db527cc4b6e878c2a", "score": "0.45302227", "text": "function setAsked($asked)\n {\n $this->asked = ($asked) ? TRUE : FALSE;\n }", "title": "" }, { "docid": "f47cbfcab195675b82036fb59c27641f", "score": "0.45276925", "text": "function set_completed_flag_on_module($module_id, $flag) {\n\t$db = get_database_connection();\n\t$sth = $db->prepare('UPDATE user_module SET completed = ? WHERE module_id = ? AND user_id = ?');\n\t$sth->execute([$flag, $module_id, CURRENT_USER_ID]);\n\tif (!$sth->rowCount()) {\n\t\t$sth = $db->prepare('INSERT INTO user_module SET completed = ?, module_id = ?, user_id = ?');\n\t\t$sth->execute([$flag, $module_id, CURRENT_USER_ID]);\n\t}\n}", "title": "" }, { "docid": "132345ba300773e3157bdd61f551a28b", "score": "0.4516809", "text": "function onoff_column($defaults){\n\t\t\t$defaults['onoff'] = __('Leave-a-Note On/Off');\n \t\t\treturn $defaults;\n\t\t}", "title": "" }, { "docid": "a20700484332f431cc4752b37c261a8f", "score": "0.45018306", "text": "public function getInitial()\n {\n if (is_null($this->initial)) {\n /** @psalm-var ?bool $data */\n $data = $this->raw(self::FIELD_INITIAL);\n if (is_null($data)) {\n return null;\n }\n $this->initial = (bool) $data;\n }\n\n return $this->initial;\n }", "title": "" }, { "docid": "d0651dd4a93bf0a8262335382a3acd33", "score": "0.4476101", "text": "public function displayUserWhseFirst() {\n\t\treturn $this->userwhsefirst == self::YN_TRUE;\n\t}", "title": "" }, { "docid": "674c6a77f2668de66fe1ab2795c0f804", "score": "0.44760704", "text": "public function setIsIdentity($boolean) {\n\n\t \t\t $this->isIdentity = $boolean ? true : false;\n\t }", "title": "" }, { "docid": "c27cb8d2daba0b0af08ccf28a6bcacc9", "score": "0.4451019", "text": "public function setIsDefault(?bool $isDefault): self\n {\n $this->isDefault = $isDefault;\n\n return $this;\n }", "title": "" }, { "docid": "305930760ea561cf731e64aee1871072", "score": "0.44481537", "text": "public function setEnableSingleSignOn(?bool $value): void {\n $this->getBackingStore()->set('enableSingleSignOn', $value);\n }", "title": "" }, { "docid": "d1add4694e6efa04a10660965cbddcea", "score": "0.44362488", "text": "public static function hasCreateAccountOnFirstLoginFeatures()\n {\n return Features::hasCreateAccountOnFirstLoginFeatures();\n }", "title": "" }, { "docid": "3cd22216d80b445345f1ac429c966650", "score": "0.44346467", "text": "public function setIsHomepage($is_homepage)\n {\n $this->is_homepage = $is_homepage;\n\n return $this;\n }", "title": "" }, { "docid": "055b7f7c8aa0f527f9557f396f30e9a4", "score": "0.443197", "text": "public function setIsDefault($siteIsDefault)\n {\n $this->siteIsDefault = (bool) $siteIsDefault;\n }", "title": "" }, { "docid": "d76c1588b00fc256d389dff53b415fce", "score": "0.4425644", "text": "public function updateFirstTimeLogin() {\n // Connect to database\n $this->connect();\n\n // Set properties\n $this->username = $this->session_wrapper->getSessionVar('username');\n $this->account_type = $this->session_wrapper->getSessionVar('account_type');\n\n // Set query parameters\n $query_parameters = [\n ':param_username' => $this->username,\n ':param_ftl' => 'N'\n ];\n\n // Get query string\n $query_string = $this->sql_queries->updateFirstTimeLogin($this->account_type);\n\n // Execute query\n $store_result = $this->db->storeData($query_parameters, $query_string);\n\n return $store_result;\n }", "title": "" }, { "docid": "c33e5dbc07191d59ab4279213147cba5", "score": "0.4422776", "text": "public function setAsHomePage($is_home_page);", "title": "" }, { "docid": "54441c3c493e43c5bb3979a46914cec0", "score": "0.44213077", "text": "function set_boolean_value($boolean) {\n\n return $boolean == 1 ? 'TRUE' : 'FALSE';\n}", "title": "" }, { "docid": "c20813617de68ab596f286cf91f352e4", "score": "0.44182977", "text": "public function inited()\t{\treturn ( $this->_IsInited() ) ? 'Y' : 'N';\t\t}", "title": "" }, { "docid": "54a80e44f43aeb55e6c5d6753fb4921e", "score": "0.43829826", "text": "function beforeFacebookSave(){\n\t\t$this->Connect->authUser['Account']['username'] = $this->Connect->user('first_name') . \" \" . $this->Connect->user('last_name');\n\t\t$this->Connect->authUser['Account']['email'] = $this->Connect->user('email');\n\t\t$this->Connect->authUser['Account']['active'] = 1;\n\t\treturn true; //Must return true or will not save.\n\t}", "title": "" }, { "docid": "f19db7c2596c97fa41d271d913513ec3", "score": "0.43817806", "text": "function field_required_code($boolean) {\n\n $boolean = set_boolean_value($boolean);\n return \"'#required' => $boolean,\\n\";\n}", "title": "" }, { "docid": "5187f6a571bf7141ce5ee1c96c8d5b65", "score": "0.4379403", "text": "protected function beforeSave() {\n if ($this->isNewRecord) {\n $this->date_joined = time();\n\n /* Regular */\n if ($this->type == Account::TYPE_REGULAR) {\n $this->status = 0;\n $this->salt = $this->saltPassword();\n $this->activate_code = md5(time());\n $this->password = md5($this->password . $this->salt);\n }\n /* Register from openid/facebook/twitter */ else if ($this->status === null)\n $this->status = 1;\n }\n if ($this->username == '')\n $this->username = null;\n $this->seo_name = ContentHandler::url_friendly_name($this->username ? $this->username : $this->email);\n return TRUE;\n }", "title": "" }, { "docid": "c904a5d280a82a37c9a39ee1c77a9edf", "score": "0.43773222", "text": "public function ShowFirstLast($show_first_last) {\n\t\tif (is_bool($show_first_last)) {\n\t\t\t$this->show_first_last = $show_first_last;\n\t\t}\n\t\telse {\n\t\t\t$this->show_first_last = true;\n\t\t}\n\t}", "title": "" }, { "docid": "faade418fe4016c5fec24f2c35c78c21", "score": "0.43764076", "text": "public function setIsUserNameAuthenticationEnabled(?bool $value): void {\n $this->getBackingStore()->set('isUserNameAuthenticationEnabled', $value);\n }", "title": "" }, { "docid": "d851b3feec8dcd01a50ff7808e2669a8", "score": "0.43683258", "text": "function set_habilitada($habilitada){\n $habilitada_original = $this->habilitada;\n if($habilitada!= $habilitada_original){\n $this->habilitada = $habilitada;\n $this->save();\n if($this->habilitada==true)\n $this->addLog('Nómina activa', \"El turno ha cambiado y la nómina se ha vuelto activa\", 1);\n else\n $this->addLog('Nómina inactiva', \"El turno ha cambiado y la nómina se ha vuelto inactiva\", 1);\n }\n }", "title": "" }, { "docid": "12d7ef2dd1925ddb346628b3c42b6f4d", "score": "0.4363359", "text": "public function activate()\n\t{\n\t\t$user = User::find(Input::get('ref'));\n\t\t$user->active = Input::get('state') == 'true' ? 1 : 0;\n\t\t$user->save();\n\t}", "title": "" }, { "docid": "b3d8450802e476670fbf485d43eae3ca", "score": "0.4355663", "text": "public function setCheckLoginOnServer($bool): void\n {\n $this->transport->setCheckLoginOnServer($bool);\n }", "title": "" }, { "docid": "4e9a6edbc0c86941b72923d21af8406a", "score": "0.43445653", "text": "protected function complete_login($user)\n\t{\n\n\t\t// Update the number of logins and set the last login date\n\t\tDB::update('engine_users')\n\t\t\t\t->set(array('logins' => DB::expr('logins + 1'), 'last_login' => time()))\n\t\t\t\t->where('id', '=', $user['id'])\n\t\t\t\t->execute();\n\n\t\t// Set the idle time in the session\n\t\t$user['idle_time'] = time() + $this->_config['idle_time'];\n\n\t\tparent::complete_login($user);\n\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "eb2c31282f8f7f3e2b34fa9aa226e2f4", "score": "0.4338033", "text": "public function setIsDefault($is_default)\n {\n $this->is_default = $is_default;\n\n return $this;\n }", "title": "" }, { "docid": "eb2c31282f8f7f3e2b34fa9aa226e2f4", "score": "0.4338033", "text": "public function setIsDefault($is_default)\n {\n $this->is_default = $is_default;\n\n return $this;\n }", "title": "" }, { "docid": "fec445638024fbbb2cc4392775f88a65", "score": "0.43370298", "text": "public function getHabilitadoAttribute(){\n return $this->attributes[\"habilitado\"] ? \"Si\" : \"No\";\n }", "title": "" }, { "docid": "b6a2a75025729a040beb8f29b42025a0", "score": "0.4335948", "text": "function setUserSyncing($boolean)\n {\n if (is_bool($boolean)) {\n $this->_usersyncing = $boolean;\n } else {\n $this->_usersyncing = false;\n }\n \n if ($this->_usersyncing == true) {\n $this->log(SMARTIRC_DEBUG_USERSYNCING, 'DEBUG_USERSYNCING: User syncing enabled', __FILE__, __LINE__);\n } else {\n $this->log(SMARTIRC_DEBUG_USERSYNCING, 'DEBUG_USERSYNCING: User syncing disabled', __FILE__, __LINE__);\n }\n }", "title": "" }, { "docid": "f8d1e916ae6d9f23ab97fdb934f912ed", "score": "0.43351597", "text": "public function setComplete( $complete ) {\n\t\t\n\t\t$this->complete = $complete;\n\t}", "title": "" }, { "docid": "96244b54882ebb1d9edc76dc23ec06ed", "score": "0.43336812", "text": "public function set_is_single_value($bool) {\n\t\t\t$this->is_single_value = $bool;\t\n\t\t}", "title": "" }, { "docid": "00344006f5f52c501e5edcf3fdf55ecf", "score": "0.4322538", "text": "function zen_set_faq_status($faqs_id, $status) {\n global $db;\n if ($status == '1') {\n return $db->Execute(\"update \" . TABLE_FAQS . \"\n set faqs_status = '1', faqs_last_modified = now()\n where faqs_id = '\" . (int)$faqs_id . \"'\");\n\n } elseif ($status == '0') {\n return $db->Execute(\"update \" . TABLE_FAQS . \"\n set faqs_status = '0', faqs_last_modified = now()\n where faqs_id = '\" . (int)$faqs_id . \"'\");\n\n } else {\n return -1;\n }\n }", "title": "" }, { "docid": "5d9115c225acb8d249982de7e443860b", "score": "0.43184578", "text": "public function testBoolean() {\n $this->company = $this->dmsDf->create(COMPANY_NS, COMPANY_TYPE);\n\n // Test the Boolean type\n $this->company->bool = true;\n $this->assertEquals(true, $this->company->bool, \"Boolean Type test failed.\");\n $this->company->bool = 1;\n $this->assertEquals(true, $this->company->bool, \"Boolean Type test failed.\");\n $this->company->bool = \"1\";\n $this->assertEquals(true, $this->company->bool, \"Boolean Type test failed.\");\n $this->company->bool = 1.0;\n $this->assertEquals(true, $this->company->bool, \"Boolean Type test failed.\");\n $this->company->bool = false;\n $this->assertEquals(false, $this->company->bool, \"Boolean Type test failed.\");\n $this->company->bool = 0;\n $this->assertEquals(false, $this->company->bool, \"Boolean Type test failed.\");\n $this->company->bool = \"0\";\n $this->assertEquals(false, $this->company->bool, \"Boolean Type test failed.\");\n $this->company->bool = 0.0;\n $this->assertEquals(false, $this->company->bool, \"Boolean Type test failed.\");\n\n }", "title": "" }, { "docid": "7d00b07a4112dab382a2ebe4cc513c6c", "score": "0.43158743", "text": "public function applyDefaultValues()\n\t{\n\t\t$this->is_enabled = true;\n\t}", "title": "" }, { "docid": "ccb10bd0533985d2186cd72c75d2ed1e", "score": "0.43109575", "text": "public function setOneWay(bool $oneWay);", "title": "" }, { "docid": "c76bf10a7f65df86a6a4201317ae9666", "score": "0.43097726", "text": "public function setLogin($login, $password, $isPreHashed = false)\n {\n $this->userLogin = $login;\n $this->userPassword = $isPreHashed ? $password : sha1($password);\n }", "title": "" }, { "docid": "84afea48b7604aa8d5f0e7761583ac9a", "score": "0.43093938", "text": "function setRequired( $value = true )\r\n {\r\n if ( $value == true )\r\n {\r\n $value = 1;\r\n }\r\n else\r\n {\r\n $value = 0;\r\n }\r\n $this->Required = $value;\r\n }", "title": "" }, { "docid": "6dec1d668e82f8723d86bdc8c074e101", "score": "0.42955518", "text": "public function setHasHeaderRow($hasHeaderRow){\n\n\t\t\t\tif (is_bool($hasHeaderRow)) {\n\n\t\t\t\t\t$this->hasHeaderRow = $hasHeaderRow;\n\n\t\t\t\t}\n\n\t\t\t\telse {\n\n\t\t\t\t\t$errMsg = \"method setHasHeaderRow requires argument of true or false.\";\n\n\t\t\t\t\tthrow new Exception($errMsg);\n\n\t\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "aec2323e10d0317b815fba1a3c7ed0c4", "score": "0.4281693", "text": "public function setIsTutorial($v)\n {\n if ($v !== null) {\n if (is_string($v)) {\n $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;\n } else {\n $v = (boolean) $v;\n }\n }\n\n if ($this->is_tutorial !== $v) {\n $this->is_tutorial = $v;\n $this->modifiedColumns[VideoTableMap::COL_IS_TUTORIAL] = true;\n }\n\n return $this;\n }", "title": "" }, { "docid": "daabc951ef1639534a6ecceb2ff43a96", "score": "0.4276359", "text": "public function markAsReady() {\n // Set attributes\n $this->invoice_status = self::INVOICE_STATUS_READY;\n \n // Save project extra service and get the status\n $saved = $this->save(false);\n // In case of successfull save, add a system log for Admins\n if($saved) {\n // Add project note / log\n ItemNoteB::model()->setItemNote($this->id, true, 'Project extra service status change detected: Ready');\n }\n \n return $saved;\n }", "title": "" }, { "docid": "f355b2c22cd9ab8f08f418d775261ca3", "score": "0.42751822", "text": "public function setTrackedOnEnrollmentStatus(?bool $value): void {\n $this->getBackingStore()->set('trackedOnEnrollmentStatus', $value);\n }", "title": "" }, { "docid": "73831c761991c6c039e96934eddde516", "score": "0.42737025", "text": "public function setOptional($optional)\n {\n $this->optional = (boolean) $optional;\n }", "title": "" }, { "docid": "02f282557f10197a667edf036be23c6e", "score": "0.42718485", "text": "public function complete_login(Model_User $user)\n {\n // remove user attampt\n $user->after_login();\n\n // set user login\n $this->set_user($user);\n\n return true;\n }", "title": "" }, { "docid": "3c538233441f8cc1863a564676122531", "score": "0.42680657", "text": "public function setIsSession($boolean) {\n\n\t \t\t $this->isSession = $boolean ? true : false;\n\t }", "title": "" }, { "docid": "0d8e4dab3ea0be28da75f29de789ac6a", "score": "0.42639008", "text": "public function optionalIsActive($aField) {\n if (isset($aField['optional']['active'])) {\n // 1. already setted\n $blActive = $aField['optional']['active'];\n } else {\n if (is_string($aField)) {\n $sField = $aField;\n } else {\n if (isset($aField['optional']['name'])) {\n $sField = $aField['optional']['name'];\n } else {\n $sField = isset($aField['realname']) ? $aField['realname'] : $aField['name'];\n }\n }\n $sField = strtolower($sField);\n // 2. get from request\n $sActive = $this->getRequestField($sField,true);\n if ($sActive == 'true' || $sActive === true) {\n $blActive = true;\n } elseif ($sActive == 'false' || $sActive === false) {\n $blActive = false;\n } else {\n $blActive = null;\n }\n if ($blActive === null) {//not in request - look in model, if null is possible\n $aFieldInfo = $this->getPrepareList()->getModel()->getTableInfo($sField);\n if (isset($aFieldInfo['Null']) && $aFieldInfo['Null'] == 'NO') {\n $blActive = true;\n }\n }\n if ($blActive === null) {\n // 3. check if prepared\n $aPrepared = $this->getPrepareList()->get($sField, true);\n if (count($aPrepared) == 0) {//not prepared\n // 4. is in config\n $blActive = $this->getFromConfig($sField, true);\n // 5. optional-field have default-value\n $blActive = ($blActive === null && isset($aField['optional']['defaultvalue'])) ? $aField['optional']['defaultvalue'] : $blActive;\n // 6. not prepared, not in config, no default value\n $blActive = $blActive===null ? false : $blActive;\n } else {\n // 7. if any null value in prepared => false\n $blActive = in_array(null, $aPrepared, true) ? false : true;\n }\n }\n }\n return $blActive;\n }", "title": "" }, { "docid": "40a60bff67460102bf66235dcf440295", "score": "0.42638084", "text": "public function setDefaults()\n {\n return $this->enabled()->visible()->startWhenAvailable();\n }", "title": "" }, { "docid": "404cb79627c0a42dbc9a6a3fb90ed30f", "score": "0.42414647", "text": "function survey_user_complete($course, $user, $mod, $survey) {\n return true;\n}", "title": "" }, { "docid": "af9ce0ea5670ccf4efe9e9dd819fef68", "score": "0.42308724", "text": "public function setSuccess()\n {\n $this->attributes['status'] = 'success';\n self::save();\n }", "title": "" }, { "docid": "d2d7b1477d527d716363e623696f2950", "score": "0.4230438", "text": "function TBooleanField(&$theform,$thename,$thetitle=\"\",$thedefaultvalue=\"\",$theattribs=\"\") {\n $this->TField($theform,$thename,$thetitle,\"boolean\",1,$thedefaultvalue,$theattribs);\n }", "title": "" }, { "docid": "0671381802aa9dcfb35dd2fd385d8db2", "score": "0.42277408", "text": "public function setIsDefault($val)\n\t{\n\t\t$this->isDefault = $val;\n\t}", "title": "" }, { "docid": "a400c1fb7e55dd169de067d6b9c9ff12", "score": "0.421853", "text": "public function __construct() {\n $yesno = array();\n $yesno['off'] = new lang_string('no');\n $yesno['on'] = new lang_string('yes');\n parent::__construct('auth_shibboleth/alt_login',\n new lang_string('auth_shib_integrated_wayf', 'auth_shibboleth'),\n new lang_string('auth_shib_integrated_wayf_description', 'auth_shibboleth'),\n 'off',\n $yesno);\n }", "title": "" }, { "docid": "2a4f56928805a41c44b87a9e7c8d1927", "score": "0.42119303", "text": "function setAutoRetry($boolean)\n {\n if (is_bool($boolean)) {\n $this->_autoretry = $boolean;\n } else {\n $this->_autoretry = false;\n }\n }", "title": "" }, { "docid": "571c3d95c1ce88ff58ea6d2fd54fd6dd", "score": "0.4208595", "text": "public function setactive(){\n\n $this->autoRender = false;\n if ($this->request->is('post')) {\n $userTable = TableRegistry::get('User');\n $user = $userTable->get($this->request->data['email']); \n\n $user->active = $this->request->data['act'];\n $userTable->save($user); \n } \n }", "title": "" }, { "docid": "969ef6b71dc808b4c636607d5216a71a", "score": "0.4205548", "text": "private function handleBooleanFields()\n {\n if($this->get('is_published')) {\n $this->merge(['is_published' => true]);\n } else {\n $this->merge(['is_published' => false]);\n }\n }", "title": "" }, { "docid": "990719aaafb18192237582fb3aff758d", "score": "0.42053217", "text": "public function set_default() \n {\n $db = new ossim_db();\n $conn = $db->connect();\n \n $config = new User_config($conn);\n \n //setting it in the config file\n $config->set($this->user, 'panel_default', $this->id, 'simple', 'main');\n\n $this->default = TRUE;\n\n $db->close();\n unset($db); \n }", "title": "" }, { "docid": "1e370f7a71cfec68c3d0ab6df78f3884", "score": "0.41992924", "text": "public function setIsDefault($val)\n {\n $this->_propDict[\"isDefault\"] = boolval($val);\n return $this;\n }", "title": "" }, { "docid": "51c7c64ae0abf8ca535d21beca177fcf", "score": "0.4194799", "text": "public function init_settings() {\n\n\t\tparent::init_settings();\n\t\t$this->enabled = !empty($this->settings['enabled']) && 'yes' === $this->settings['enabled'] ? 'yes' : 'no';\n\t}", "title": "" }, { "docid": "422812f6ca14efa7739db0ab4766f954", "score": "0.41925323", "text": "public function add_is_active_field() {\n\t\t$is_active = get_option( $this->setting_is_active, 0 );\n\t\t?>\n\t\t<input type='checkbox' <?php checked( $is_active );?> name='<?php echo esc_attr( $this->setting_is_active ); ?>' value='1' >\n\t\t<?php\n\t}", "title": "" }, { "docid": "24f2667141151a04482807ba4156afb8", "score": "0.41919956", "text": "public function setIsExecutable($var)\n {\n GPBUtil::checkBool($var);\n $this->is_executable = $var;\n\n return $this;\n }", "title": "" }, { "docid": "29a84738fba6b9e56911b9e35b14c05e", "score": "0.41905448", "text": "public function setSuccess()\n {\n $this->attributes['status_pembayaran'] = 'success';\n self::save();\n }", "title": "" }, { "docid": "72b88a0b959f5de7c36d2d055b6bb18e", "score": "0.41898826", "text": "private function setLoginHead()\n\t{\n\t\tif($this->user !== null)\n\t\t{\n\t\t\t$this->controller->view_params[\"_login\"] = sprintf('Welcome %s. <a href=\"/user/panel\">Control Panel</a> <a href=\"/user/logout\">Logout</a>', $this->user->firstName . \" \" . $this->user->lastName);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$this->controller->view_params[\"_login\"] = 'Welcome guest. <a href=\"/user/login\">Login</a>';\n\t}", "title": "" }, { "docid": "daca43d7b009a9ed906bacf6e3602fa7", "score": "0.41890824", "text": "public static function sensei_start_lesson( $lesson_id = 0, $user_id = 0, $complete = false ) {\n\n\n\t\tif( intval( $user_id ) == 0 ) {\n\t\t\t$user_id = get_current_user_id();\n\t\t}\n\n\t\t$activity_logged = false;\n\n\t\tif( intval( $lesson_id ) > 0 ) {\n\n\t\t\t$course_id = get_post_meta( $lesson_id, '_lesson_course', true );\n\t\t\tif( $course_id ) {\n\t\t\t\t$is_user_taking_course = Sensei_Utils::user_started_course( $course_id, $user_id );\n\t\t\t\tif( ! $is_user_taking_course ) {\n\t\t\t\t\tSensei_Utils::user_start_course( $user_id, $course_id );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$metadata = array();\n\t\t\t$status = 'in-progress';\n\n\t\t\t// Note: When this action runs the lesson status may not yet exist\n\t\t\tdo_action( 'sensei_user_lesson_start', $user_id, $lesson_id );\n\n\t\t\tif( $complete ) {\n\n\t\t\t\t$has_questions = get_post_meta( $lesson_id, '_quiz_has_questions', true );\n\t\t\t\tif ( $has_questions ) {\n\t\t\t\t\t$status = 'passed'; // Force a pass\n\t\t\t\t\t$metadata['grade'] = 0;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$status = 'complete';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Check if user is already taking the lesson\n\t\t\t$activity_logged = Sensei_Utils::user_started_lesson( $lesson_id, $user_id );\n\t\t\tif( ! $activity_logged ) {\n\n\t\t\t\t$metadata['start'] = current_time('mysql');\n\t\t\t\t$activity_logged = Sensei_Utils::update_lesson_status( $user_id, $lesson_id, $status, $metadata );\n\n } else {\n\n // if users is already taking the lesson and the status changes to complete update it\n $current_user_activity = get_comment($activity_logged);\n if( $status=='complete' &&\n $status != $current_user_activity->comment_approved ){\n\n $comment = array();\n $comment['comment_ID'] = $activity_logged;\n $comment['comment_approved'] = $status;\n wp_update_comment( $comment );\n\n }\n\n }\n\n\t\t\tif ( $complete ) {\n\t\t\t\t// Run this *after* the lesson status has been created/updated\n\t\t\t\tdo_action( 'sensei_user_lesson_end', $user_id, $lesson_id );\n\t\t\t}\n\n\t\t}\n\n\t\treturn $activity_logged;\n\t}", "title": "" }, { "docid": "27ab1c9bc7fddf2ceba5b344e8450052", "score": "0.41888142", "text": "public function startedQuiz() {\n\t\tif (isset($_POST[self::$startQuiz])) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "c7106350bfa13acef397dd961b21d594", "score": "0.41828465", "text": "public function isFirst() : bool\n {\n return $this->currentStep === 1;\n }", "title": "" }, { "docid": "d683712e8f30dec68553d56aa5986b5d", "score": "0.4176051", "text": "public function setIntro($intro)\n {\n $this->intro = $intro;\n\n return $this;\n }", "title": "" }, { "docid": "812bd5b7e5a8b1a7adc504cbe514996b", "score": "0.41696835", "text": "public function setAutoplayYes()\n\t{\n\t\t$this->setAttribute( \"autoplay\");\n\t}", "title": "" }, { "docid": "5467f0a0717878a03a2809f3b98fe334", "score": "0.41691503", "text": "public function setFirstName($first_name)\n {\n $this->setValue('first_name', $first_name);\n }", "title": "" } ]
de9bdb9c17918c771e481389319c8960
Lists all Razas models.
[ { "docid": "036622f1e3fe297516eb5b490dd2b15d", "score": "0.7441964", "text": "public function actionIndex()\n {\n $searchModel = new RazasSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" } ]
[ { "docid": "0a427506739287de4356eb8e4134dec9", "score": "0.69549686", "text": "public static function listModels();", "title": "" }, { "docid": "9cce36f0928e287b11662ac6578d9866", "score": "0.68234175", "text": "public function index()\n {\n $models = model::all();\n return view('admin.models.index',compact('models'));\n }", "title": "" }, { "docid": "d7cfa3fa5990ee648c1f7c9042daeb31", "score": "0.6817468", "text": "public function index()\n {\n return $this->model->all();\n }", "title": "" }, { "docid": "40f2a0f4e4f20ba9b00c08322d4aa332", "score": "0.6801186", "text": "public function index()\n {\n // Load page configuration values\n $pageDefault = 50;\n $pageSizes = [5,10,20,50,100];\n \n // Add breadcrumbs\n $this->addBreadcrumb('Modelos', route('management/models'));\n \n // Set Title and subtitle\n $this->title = 'Modelos';\n $this->subtitle = 'listado';\n \n // Find all carousel items\n $models = GirlModelModel::all();\n \n // Display view\n return $this->view('pages.admin.management.girl-models.index')\n ->with('models', $models)\n ->with('pageSizes', $pageSizes);\n ;\n }", "title": "" }, { "docid": "8fafc2ab8a212d5a423254078fe88969", "score": "0.6758794", "text": "public function index()\n\t{\n\t\treturn $this->model->all();\n\t}", "title": "" }, { "docid": "0a8363acbc1fd084acf068587cb9f004", "score": "0.6721247", "text": "public function index()\n {\n return Orden::all();\n }", "title": "" }, { "docid": "c2a47afc34e032030021d8713582305c", "score": "0.66573644", "text": "public function list()\n {\n return Apimodels::all();\n }", "title": "" }, { "docid": "f07523a3a831d718b5941d64c414f321", "score": "0.66532403", "text": "public function index()\n {\n try {\n $models = cars_model::select(\"model\" , \"active\" , \"id\")->paginate(bagination_count);\n return view(\"admin/cars_models/all_cars_models\" , compact(\"models\"));\n } catch (\\Throwable $th) {\n return errorMassage(\"\" , \"danger\");\n }\n }", "title": "" }, { "docid": "e15094794dad757290343ad8bb31a3da", "score": "0.6650928", "text": "public function listModels()\n\t{\n\t\t$classes = \\SeanMorris\\Ids\\Linker::classes('SeanMorris\\Ids\\Model');\n\n\t\t$classes = array_map(\n\t\t\tfunction($class)\n\t\t\t{\n\t\t\t\treturn str_replace('\\\\', '/', $class);\n\t\t\t}\n\t\t\t, $classes\n\t\t);\n\n\t\tprint implode(PHP_EOL, $classes) . PHP_EOL;\n\t}", "title": "" }, { "docid": "a2c28cdaf860af8f3ff8fed75b4017c0", "score": "0.66347766", "text": "public function index()\n {\n $roles = Role::all();\n\n return $this->showAll($roles);\n }", "title": "" }, { "docid": "821024752e62bdca8172b4ffc2e71bf9", "score": "0.6616721", "text": "public function index()\n {\n return Meta::all();\n }", "title": "" }, { "docid": "7e1dad37fd4d4cae43c8352a86b86942", "score": "0.6608725", "text": "public function index() {\n\t\t$models = $this->paginate('BrandModel');\n\t\t$this->set(compact('models'));\n\t}", "title": "" }, { "docid": "f02e3cb24fbe0b412581356e50d9f97b", "score": "0.6580517", "text": "public function listar(){\n $dados = ModelDB::all(); // eloquent\n return view('index', compact('dados'));\n\n }", "title": "" }, { "docid": "507b70475894de02c66961b98879bdef", "score": "0.657241", "text": "public function index()\n {\n $rubro = Rubro::all();\n return $rubro;\n }", "title": "" }, { "docid": "15128b506f4e2291029cbc90dff45985", "score": "0.6538319", "text": "public function index()\n {\n return Saisson::all();\n }", "title": "" }, { "docid": "c8a746e3ad6a5c1b3fdc89659ffb3d2f", "score": "0.65265083", "text": "public function index()\n {\n return view('admin.model.index', [\n 'models' => Modeling::paginate(5),\n 'products' => Product::orderBy('name', 'ASC')->pluck('id', 'name')\n ]);\n }", "title": "" }, { "docid": "c6fd5ad15888abefe3ec195425cf3786", "score": "0.65023726", "text": "function index() \n {\n $this->set('mangas', $this->Manga->find('all'));\n }", "title": "" }, { "docid": "2e151f01c20f0bd9d77a6ceb1272067d", "score": "0.65015125", "text": "public function index()\n {\n return Movie::all();\n }", "title": "" }, { "docid": "67c5a1e9e5cb817af654272ecdf315ae", "score": "0.65013146", "text": "public function index()\n\t{\n\t\t$globalModel = GlobalModel::getGlobalModel();\n\t\t$models = GlobalModel::where('id', '>', 1)->paginate(20);\n\n\t\t$table = array(\n\t\t\t'id' => array('title' => 'Id', 'type' => 'string'), \n\t\t\t'singular_name' => array('title' => 'Nombre singular', 'type' => 'string'), \n\t\t\t'plural_name' => array('title' => 'Nombre plural', 'type' => 'string'),\n\t\t\t'created_at' => array('title' => 'Creación', 'type' => 'string'), \n\t\t\t'updated_at' => array('title' => 'Actualición', 'type' => 'string'), \n\t\t\t'action' => array(\n\t\t\t\t'title' => 'Acción', \n\t\t\t\t'type' => 'action-group-resource', \n\t\t\t\t'actions' => array('show', 'edit')\n\t\t\t)\n\t\t);\n\n\t\treturn View::make('pages/models/list-table', compact('models', 'table', 'globalModel'));\n\t}", "title": "" }, { "docid": "b636b83cdd0089247609248807611e07", "score": "0.6483125", "text": "public function index()\n {\n \treturn LokasiObat::all();\n }", "title": "" }, { "docid": "185609df7bdd045b7a0f4fae92146962", "score": "0.6480292", "text": "public function index()\n {\n return Corredor::all();\n }", "title": "" }, { "docid": "23a3361dd6a40a442292e2b7dd5ceb2e", "score": "0.64785653", "text": "public function index()\n {\n $model_classes = ModelClass::all();\n return view('admin.model_class.index')->with(['model_classes' => $model_classes]);\n }", "title": "" }, { "docid": "c101dd322b4d3c51bf9a11a19dd5e3d3", "score": "0.6471795", "text": "public function index()\n {\n return new RaceCollection(Race::paginate(15));\n }", "title": "" }, { "docid": "b9364fb6992726130e3d38e1c46682cc", "score": "0.6461307", "text": "public function index(){\n\t\tif\t($this->model == null)\n\t\t\tdd('El Modelo es requerido');\n\n\t\t$botones = $this->botones;\n\t\tif (count($botones) > 1 ) {\n\t\t\t$botones = json_encode($botones);\n\t\t}\t\n\n\t\tif (!empty(Kitukizuri)) {\n\t\t\t$permisos = $this->setPermisos(Auth::id());\t\n\t\t} else {\n\t\t\t$permisos = ['create'=>true, 'edit'=>true, 'destroy'=>true];\n\t\t}\n\t\treturn view('index', [\n\t\t\t'titulo' => $this->titulo,\n\t\t\t'columnas' => $this->getColumnas($this->getSelectShow()),\n\t\t\t'data' => $this->getData()->toArray(),\n\t\t\t'botones' => $botones,\n\t\t\t'permisos' => $permisos\n\t\t]);\n\t}", "title": "" }, { "docid": "1dead698cbd8b89f218669c0e00ef1da", "score": "0.6446344", "text": "public function index()\n {\n $locale = app()->getLocale();\n\n $entities = ($locale == 'ru')\n ? $this->model::all()\n : $this->model::withTranslations($locale)->get();\n\n return $this->makeEntityCollection($entities, $locale);\n }", "title": "" }, { "docid": "4a7cb938b7500ad8c76ed0cb791716dc", "score": "0.6438867", "text": "function all()\n {\n $-pluralobjects- = -MODELNAME-::with([\n //\n ])->orderBy('-singularobject-_name')\n ->get();\n\n return $-pluralobjects-;\n }", "title": "" }, { "docid": "78cf89b07693cea80c17a4861bd9d327", "score": "0.64288723", "text": "public function index()\n {\n $items = Modelcars::orderBy('model_name', 'asc')->get();\n $makes=Make::orderBy('make_name','asc')->get();\n\t\t return View::make('vehicles::models.index', compact('items','makes'));\n }", "title": "" }, { "docid": "1494e5288897cccf279be9a2f49685a3", "score": "0.64115274", "text": "public function actionIndex()\n {\n $searchModel = new MarcasSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "2bea894f415ebb19924ca85f43d5ec4e", "score": "0.6410145", "text": "public function index()\n {\n $classes = SchoolClass::all();\n $teachers = Teacher::all();\n $students = Student::all();\n\n return view('turmas.listar', compact('classes', 'teachers', 'students'));\n }", "title": "" }, { "docid": "6b34e6310e18a957aeabffbd73e602a7", "score": "0.6407569", "text": "public function index()\n {\n //\n return Car::all();\n }", "title": "" }, { "docid": "6ed283195753c33e861fb62e8e831b6f", "score": "0.6397566", "text": "public function index()\n {\n return Marca::paginate(10);\n }", "title": "" }, { "docid": "e1183ebde99a8d3c589ddd34164e88f0", "score": "0.63973534", "text": "public function index() {\n\t\t$this->all();\n\t}", "title": "" }, { "docid": "551a89c2972102acbf623d6ffa77b415", "score": "0.63808036", "text": "public function index()\n {\n $recolectores = Recolector::all();\n return view('recolectores')->with('recolectores', $recolectores);\n }", "title": "" }, { "docid": "a038d4cbb72086545cf8ed6d23289529", "score": "0.6378087", "text": "public function index()\n {\n //Lista todas las empresas\n\t\treturn Empresa::all();\n }", "title": "" }, { "docid": "537a07a5924ba269ed0885a4b271090d", "score": "0.6372338", "text": "public function index()\n {\n //\n return $this->all();\n \n }", "title": "" }, { "docid": "cea63311a09022c21e10673154b03e93", "score": "0.6348595", "text": "public function actionIndex()\n {\n $searchModel = new TurmaSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "5b1260525a2d24324f34cc6a1ce81990", "score": "0.63467455", "text": "public function index(){\n return Mahasiswa::all();\n }", "title": "" }, { "docid": "f0f5be39dec8990a40110ea21a784343", "score": "0.633098", "text": "public function index()\n {\n $model=ModelDetail::all() -> where('status','1'); \n return view('models.list', compact('model'));\n }", "title": "" }, { "docid": "19764773d9d8b9ca8121bd5a9badc02a", "score": "0.6318389", "text": "public function index()\n {\n \n \n\n $modelos = Modelo::with('montadora','linha')->paginate(10);\n\n\n return view('sis.modelos', compact('modelos'));\n\n \n\n }", "title": "" }, { "docid": "c042e2a3c69d06e7f15d58dbfc4881a5", "score": "0.62962884", "text": "public function index()\n {\n //\n return Link::all();\n }", "title": "" }, { "docid": "20f6094365f5137d49a9dea6280de3da", "score": "0.62923723", "text": "public function index()\n {\n $marcas=MarcaDAO::all();\n return view('plantillas.admin.marcas.index')->with('marcas',$marcas);\n }", "title": "" }, { "docid": "b6c9d6de92e4817e0c7fe14c49187cd4", "score": "0.62871164", "text": "public function index()\n {\n $movies = Movie::orderBy('id', 'DESC')->get();\n return $movies;\n }", "title": "" }, { "docid": "267aa8b9e0f3d8c642aa6336ec2f98e2", "score": "0.628672", "text": "public function index(){\n return Empresa::all();\n }", "title": "" }, { "docid": "d0a540a61b857909915ec7c215c105f1", "score": "0.628478", "text": "public function index()\n {\n $permissions = Permission::all();\n\n return $this->showAll($permissions,Permission::class);\n }", "title": "" }, { "docid": "3881acd7ab3f28b6746fddba2dcd324c", "score": "0.6280658", "text": "public function index()\n {\n return Empresa::all();\n }", "title": "" }, { "docid": "8d6fe84c7a49f5e1230338761cc1cd04", "score": "0.6280501", "text": "public function index()\n {\n return $this->showAll(Form::all());\n }", "title": "" }, { "docid": "3fe3ed7c079ab6f9a039e9e39c180f5b", "score": "0.6277691", "text": "public function index()\n {\n $records = Role::paginate(10);\n return view('roles.index',compact('records'));\n }", "title": "" }, { "docid": "8563261f36bc95be769a54c85d1c574f", "score": "0.62754864", "text": "public function list()\n {\n return $this->model->get();\n }", "title": "" }, { "docid": "f37e916729b32fe25cdf9ac951ee6cdb", "score": "0.62750685", "text": "public function getAll()\n {\n return view('relation.all');\n }", "title": "" }, { "docid": "ab5755c9b2536e13dfc3b5c7e721cbd9", "score": "0.627347", "text": "public function all()\n {\n $researches = Research::all();\n\n return view('researches.allresearch')\n ->withResearches($researches);\n }", "title": "" }, { "docid": "6be81af4532ec12a1da63c5879041c52", "score": "0.62675667", "text": "public function showAll()\n {\n $objects = $this->repo->showAll();\n return view('admin.showAll', compact('objects') );\n }", "title": "" }, { "docid": "82f38e591a5256de674610bbde999488", "score": "0.6265184", "text": "public function index()\n {\n\n $model = DB::table('tb_moedas')->paginate(10);\n\n // dd($model);\n\n return view('moedas.index')->with('model', $model);\n }", "title": "" }, { "docid": "e872291c5f08c878e3e1070b5b608d90", "score": "0.6258136", "text": "public function index()\n {\n return $this->repository->all();\n }", "title": "" }, { "docid": "e872291c5f08c878e3e1070b5b608d90", "score": "0.6258136", "text": "public function index()\n {\n return $this->repository->all();\n }", "title": "" }, { "docid": "e872291c5f08c878e3e1070b5b608d90", "score": "0.6258136", "text": "public function index()\n {\n return $this->repository->all();\n }", "title": "" }, { "docid": "41392532e855d07d6a232c4207223d52", "score": "0.6253436", "text": "public function index()\n\t{\n\t\t$traslados = Traslado::orderBy('id', 'desc')->paginate(10);\n\n\t\treturn view('traslados.index', compact('traslados'));\n\t}", "title": "" }, { "docid": "c86d13764c486d0fc425c2ad0d7eb96b", "score": "0.6250384", "text": "public function index()\n {\n $brands = Brand::all();\n return view('admin.brands.allBrand', compact('brands'));\n }", "title": "" }, { "docid": "fe8e609c0bae12793176335a115bf2ce", "score": "0.6245746", "text": "public function actionIndex()\r\n\t{\r\n\t\t$searchModel = new RutaSearch();\r\n\t\t$dataProvider = $searchModel->search(Yii::$app->request->queryParams);\r\n\r\n\t\treturn $this->render('index', [\r\n\t\t\t'searchModel' => $searchModel,\r\n\t\t\t'dataProvider' => $dataProvider,\r\n\t\t\t]);\r\n\t}", "title": "" }, { "docid": "b3522523e3cb7d8d96003c266b4f6a17", "score": "0.623253", "text": "public function index()\n {\n $libros = Libro::orderBy('id', 'desc')->paginate(10);\n return $libros;\n }", "title": "" }, { "docid": "f7171240485bcac472515179a884ada5", "score": "0.6232205", "text": "public function index()\n\t{\n\t\t$Sexos = $this->Sexo->paginate(10);\n\n\t\treturn View::make('Sexos.index', compact('Sexos'));\n\t}", "title": "" }, { "docid": "31acf61ec0030af8ef2f17017a07d171", "score": "0.62315196", "text": "public function getAll()\n {\n return RoleModel::all();\n }", "title": "" }, { "docid": "f770f5f7c1b8cf573a06732e757a6570", "score": "0.6229625", "text": "public function index()\n {\n $arbitros = Arbitro::paginate(2);\n return View::make('user_com_organizing.arbitros.list')->with('arbitros',$arbitros);\n }", "title": "" }, { "docid": "8d050d8e549b4ab8d0631ff43f04a55b", "score": "0.6223261", "text": "public function index()\n {\n $carregions = CarRegion::all();\n $carbrands = CarBrand::all();\n $cartypes = CarType::all();\n $carmodels = CarModel::all();\n return view('admin.pages.car.carmodel.index')->withCarRegions($carregions)->withCarBrands($carbrands)->withCarTypes($cartypes)->withCarModels($carmodels);\n }", "title": "" }, { "docid": "158abd53d0ec89e90994e5a7b7e02ead", "score": "0.6219016", "text": "public function index()\n {\n $ordenes = Orden::all();\n return $ordenes;\n }", "title": "" }, { "docid": "3fed8f467e386a1fd3dccb453341001f", "score": "0.6212139", "text": "public function index(){\n\n\t\t\t/*$this->Mesero:es el modelo->find('all'):es un metodo que trae todos los registros\n\t\t\t, el parametro trae todo los campos*/\n\t\t\t$this->set('meseros', $this->Mesero->find('all'));\n\t\t}", "title": "" }, { "docid": "6cef74fefefb0604096663cbaf918c04", "score": "0.62118137", "text": "public function index()\n { \n $roles = Role::paginate();\n\n return view('roles.index', compact ('roles'));\n }", "title": "" }, { "docid": "87e41b02e0d59a29bcb8e3c9a0e50195", "score": "0.6210998", "text": "public function index()\n {\n $relawan = Relawan::all();\n return view('backend.relawan.index', compact('relawan'));\n }", "title": "" }, { "docid": "5a522c6ad9de986803c1ffedfcf38223", "score": "0.62086356", "text": "public function index(){\n \t$data = Marca::all();\n return Vista::crear(\"marcas.index\",array(\n \t\"marcas\" => $data\n ));\n }", "title": "" }, { "docid": "cc5ee73f62136583864904c1c94ed07e", "score": "0.62040937", "text": "public function index()\n {\n // Role::create(['name' => 'عرض المستخدمين']);\n $roles = Role::latest()->paginate(5);\n return view('roles.index', compact('roles'));\n }", "title": "" }, { "docid": "859a7039b18d1d9b91e8576f94df6597", "score": "0.62029624", "text": "public function index()\n\t{\n\t\t//Todos los registros\n\t\treturn $this->respond($this->model->findAll(),200);\n\t}", "title": "" }, { "docid": "de6d5c9588d8705ed17d69a051448ecd", "score": "0.62025803", "text": "public function index()\n {\n $role = Role::paginate(10);\n return view('backend::role.index', compact(\n 'role'\n ));\n }", "title": "" }, { "docid": "364a23bd271e3ee8f31e13286da6f34b", "score": "0.61986876", "text": "public function index()\n {\n $carmodels=CarMode::all();\n return view('admin/carmodel/index',compact('carmodels'));\n }", "title": "" }, { "docid": "d745bdd0c40f3e558a9ea839db80d1a5", "score": "0.61969477", "text": "public function index()\n {\n $roles = Role::latest()->paginate(25);\n $permisions = Permission::all();\n $user = User::all();\n\n return view('Admin.Roles.index',compact('roles','permisions','user'));\n }", "title": "" }, { "docid": "cf2c88e760d4e89294ebea72b05e93f8", "score": "0.6196561", "text": "public function index()\n {\n $tarifarios = Tarifario::with('moneda','servicio','sede','plan','servicio.materialservicios')->orderBy('id','ASC')->where('activo',true)->get();\n return $tarifarios; \n }", "title": "" }, { "docid": "45542825e55d4cd0c0f360e7e56630ea", "score": "0.6195043", "text": "public function index()\n {\n \n $links = link::all();\n\n return $links;\n }", "title": "" }, { "docid": "31bd872a6e881bd37f601d09b75199fc", "score": "0.61895967", "text": "public function index()\n {\n return Operacion::all();\n }", "title": "" }, { "docid": "134caf514ad212a699521b86fe3d7844", "score": "0.61818373", "text": "public function index()\n {\n $reklamlar=Reklamlar::all();\n return view('admin.reklam.index',compact('reklamlar'));\n }", "title": "" }, { "docid": "ccc2b1ac1ccc692d3cf28f9707d68af9", "score": "0.61757827", "text": "public function index()\n {\n $models = Card::query()->with('type')->get();\n return response(['models' => $models],Status::SUCCESS_OK);\n }", "title": "" }, { "docid": "7ae3b8c542c0ecad5653fed22f48c925", "score": "0.61749065", "text": "public function index()\n {\n $arreglos = Arreglo::all();\n return view('arreglos.index', compact('arreglos'));\n }", "title": "" }, { "docid": "de42f860dc10fec496d17fff502e8851", "score": "0.6174003", "text": "public function index()\n {\n //return Planeta::all();\n }", "title": "" }, { "docid": "f6d1a867bf82700016b5f3c06fcbefdc", "score": "0.6173152", "text": "public function index()\n {\n return Type::with(\"languages\",\"subtypes\",\"subtypes.languages\")->orderBy(\"order\")->GetWithTranslations()->get();\n }", "title": "" }, { "docid": "371e66755ad416ff694cb1755079d69a", "score": "0.61708343", "text": "public function index()\n {\n $Restaurants= Restaurant::all();\n return $this->showAll($Restaurants);\n }", "title": "" }, { "docid": "d7990305266d9bf42247cd1a91e34d9a", "score": "0.6168551", "text": "public function index()\n {\n return Voticandidato::all();\n }", "title": "" }, { "docid": "b58dc8dae7358cc1d8f670078218772e", "score": "0.6168343", "text": "public function index()\n {\n return view('recetas.index')->with('recetas', Receta::all()->where('estado', true));\n }", "title": "" }, { "docid": "75ac4b5c424cb361d8f56e8c176206a7", "score": "0.61681336", "text": "public function index()\n {\n return Cuenta::all();\n }", "title": "" }, { "docid": "c046d9821463f807a64d553c16c21331", "score": "0.6167986", "text": "public function index()\n {\n $motociclistas = Motociclistas::all();\n\n return view(\"admin.motociclistas\",compact('motociclistas'));\n }", "title": "" }, { "docid": "9a5a763451d2ddbb9d74f1c424d5e701", "score": "0.6161746", "text": "public function index()\n {\n $carreras = Carrera::all();\n return view(\"admin.Carreras.index\", compact('carreras'));\n }", "title": "" }, { "docid": "93be1e940327905fec47edf9d7e12e71", "score": "0.61609125", "text": "public function index()\n {\n return Item::all();\n }", "title": "" }, { "docid": "93be1e940327905fec47edf9d7e12e71", "score": "0.61609125", "text": "public function index()\n {\n return Item::all();\n }", "title": "" }, { "docid": "71e86261826667a1004ac14b98958888", "score": "0.61585236", "text": "public function index()\n {\n $tarunas = Taruna::orderBy('nit', 'ASC')->get();\n return view('backend.taruna.index', compact('tarunas'));\n }", "title": "" }, { "docid": "b3ed0c224cede82f9622523aeffa888c", "score": "0.6153653", "text": "public function index()\n {\n $matriculaa = Matricula::all();\n $inscricao_id = Inscricao::all();\n $turma_id = Turma::all();\n $status = StatusMatricula::all();\n return view('matricula.index', compact('matricula', 'inscricao_id', 'turma_id', 'status'));\n }", "title": "" }, { "docid": "d24aee80a95c22ebedee670dd21391bd", "score": "0.6153194", "text": "public function index()\n {\n return tutorGeneral::all();\n }", "title": "" }, { "docid": "64b41298bc6fdae1c7ac86265676b2fe", "score": "0.6151442", "text": "public function all()\n {\n return $this->model->orderBy('descripcion', 'ASC')->get();\n }", "title": "" }, { "docid": "97e98240dd80e451412c7d0facda7b9a", "score": "0.6148526", "text": "public function index()\n {\n $title = ucfirst($this->titles['plural']);\n $route = $this->route;\n\n $items = $this->model->select('id', 'company_name', 'company_url', 'room_name', 'country', 'region', 'visits', 'published', 'created_at')->orderBy('created_at', 'desc')->get();\n return view($this->view . '.index', compact('items', 'title', 'route'));\n }", "title": "" }, { "docid": "4e936f52dd68086671acf992d1f6ee0c", "score": "0.61453354", "text": "public function index()\n {\n $listacarro = carro::all();\n return view('carro.list', ['carro' => $listacarro]);\n \n }", "title": "" }, { "docid": "4da7ea3a9b808cd20f7a82dd3e1765d9", "score": "0.6145013", "text": "public function index()\n {\n $marcas=Marca::whereEstado(1)->get();\n return view('marcas.index',compact('marcas'));\n }", "title": "" }, { "docid": "321395ce6d8fcc65c02376cf6ebe0133", "score": "0.6144504", "text": "public function index()\n {\n $roles = Role::orderBy('id', 'desc')->get();\n\n return $roles;\n }", "title": "" }, { "docid": "62e4886e3bcdafcd5848fa5b137936b8", "score": "0.61426014", "text": "public function indexAction()\n {\n $em = $this->getDoctrine();\n\n $form = $this->createForm(ModelSearchType::class);\n\n $modelList = $em->getRepository('CarBundle:Model')->getModelsList();\n\n return $this->render('@Car/Model/index.html.twig', [\n 'modelList' => $modelList,\n 'form' => $form->createView()\n ]);\n }", "title": "" }, { "docid": "5847eaa9ea3ee9f67e64f4fce6663920", "score": "0.6139089", "text": "public function index()\n {\n $roles = Role::paginate(10);\n return view('admin.role.role', compact('roles'));\n }", "title": "" }, { "docid": "a182e8b01c984389efc475eaf5f48572", "score": "0.61385006", "text": "public function index()\n {\n $brands = Brand::all();\n return view('brands.index')\n ->with(\n [\n 'title' => 'Lista de Marcas', 'brands' => $brands,\n 'new' => route('brands.create')\n ]\n );\n }", "title": "" } ]
0ada2aa4b4f7840b9151506313d816f5
Get the path to the view file
[ { "docid": "a9cfe416322f4dcd69beffea774e5eb5", "score": "0.0", "text": "protected function getViewPath($name)\n {\n $pieces = explode('/', $name);\n\n // dont plural if reserve word\n foreach ($pieces as $k => $value) {\n if (!in_array($value, $this->getConfig('reserve_words'))) {\n $pieces[$k] = Str::plural(Str::snake($pieces[$k]));\n }\n }\n\n $name = implode('.', $pieces);\n\n //$name = implode('.', array_map('Str::plural', explode('/', $name)));\n\n return strtolower(rtrim(ltrim($name, '.'), '.'));\n }", "title": "" } ]
[ { "docid": "bc5bfb3f07030fb7e0eb0647f1c2c46d", "score": "0.83827615", "text": "function view_path(): string\n {\n return App::getViewPath();\n }", "title": "" }, { "docid": "ec6359c573e918073fa7a784be8fcc83", "score": "0.82690287", "text": "public function getViewPath()\n {\n return $this->view_path;\n }", "title": "" }, { "docid": "e8c5f001d7d69109b82185d3f99ed619", "score": "0.8238418", "text": "public function getViewPath()\n {\n $class = new ReflectionClass($this);\n return dirname($class->getFileName()) . DIRECTORY_SEPARATOR . 'views';\n }", "title": "" }, { "docid": "d094d535c353c879c2e972a0991a5d03", "score": "0.8197947", "text": "public static function getViewPath(): string\n {\n return self::getAppPath() . 'View' . DIRECTORY_SEPARATOR;\n }", "title": "" }, { "docid": "7573e66ee842868673596e7f2f239812", "score": "0.8156963", "text": "public function getViewPath()\n {\n $class = new \\ReflectionClass($this);\n\n return dirname($class->getFileName()) . DIRECTORY_SEPARATOR . 'views';\n }", "title": "" }, { "docid": "0295ba7b0c707374683f3da52e9ec0af", "score": "0.8130415", "text": "public function getPath()\n {\n return $this->view->getDirectory() . $this->name . '.php';\n }", "title": "" }, { "docid": "dabb2fb5bb88afd98b1cbf53c2f27b3c", "score": "0.7987837", "text": "public function get_view_path(){\n return APP_PATH.'/views/'.$this->_class;\n }", "title": "" }, { "docid": "181acb2e5421a4d725217030a4cafc63", "score": "0.7940442", "text": "public function getPathView() {\n return APPPATH . 'views/' . $this->getPathRoot();\n }", "title": "" }, { "docid": "181acb2e5421a4d725217030a4cafc63", "score": "0.7940442", "text": "public function getPathView() {\n return APPPATH . 'views/' . $this->getPathRoot();\n }", "title": "" }, { "docid": "681d4f67299f37b539c0e6334f3cd8a2", "score": "0.793879", "text": "public function viewPath(): string;", "title": "" }, { "docid": "286a952568ed156e8fcf73b41f59e4ea", "score": "0.7790674", "text": "public static function getViewPath() {\n return static::getPath() .'Resources/views/';\n }", "title": "" }, { "docid": "3917664f95555a2418e0413ce26c6fca", "score": "0.76718193", "text": "public function getViewPath()\n {\n return $this->getPaths() . '/' . Str::slug(Str::plural($this->type)) . '/';\n }", "title": "" }, { "docid": "8efb34d287711837c78cc0effcfca247", "score": "0.7501792", "text": "public function getViewsPath(): string\n {\n return $this->viewsPath ? \\Swoft::getAlias($this->viewsPath) : '';\n }", "title": "" }, { "docid": "d61ef38e9a5d6d30a15e135a1ae29812", "score": "0.75006086", "text": "public function getView()\n {\n return Str::finish($this->getViewPath(), $this->getViewName());\n }", "title": "" }, { "docid": "0ded31f3a26405acdda7ca5f9b39d763", "score": "0.74487305", "text": "private function ViewPath($fileName = NULL){\r\n\t\t$directory = Request::GetController();\r\n\t\tif (empty($fileName)){\r\n\t\t\t$file = Request::GetController() . Request::GetRouteAction() ;\r\n\t\t}\r\n\t\telse{\r\n\t\t\t$file = $fileName ;\r\n\t\t}\r\n\t\treturn ROOT . Config::MAIN_VIEW_PATH . $directory . \"/\" . $file . \".php\";\r\n\t}", "title": "" }, { "docid": "e65fecb1d971b5ffb0cd9b8e2ce0c754", "score": "0.7394286", "text": "function pathView (string $view):string\n{\n $file = str_replace('.', DS, $view);\n return VIEW_PATH . $file . '.php';\n}", "title": "" }, { "docid": "c771cfb01b456a95ca63e30977d50fa1", "score": "0.7388164", "text": "function getViewsPath(){\n return basePath(PROJ_CONF::VIEWS_PATH);\n}", "title": "" }, { "docid": "910b2f7c913cc7c875b33f2fa0f49069", "score": "0.73847646", "text": "protected function getPathResource()\r\n {\r\n $meta = $this->scaffoldCommandObj->getMeta();\r\n $module_base_dir = './app/Modules/' . $meta['Module'];\r\n return $module_base_dir . '/resources/views/';\r\n }", "title": "" }, { "docid": "3c08fabce76bcc98e7166607972cf203", "score": "0.7365098", "text": "public function getView($file)\n {\n return __DIR__ . '/../../views/' . $file;\n }", "title": "" }, { "docid": "88bc9724f25431e3f19005edc56fb8a6", "score": "0.7358932", "text": "protected function path(): string\n {\n $path = resource_path('views' . DIRECTORY_SEPARATOR . str_replace('.', DIRECTORY_SEPARATOR, $this->view) . '.blade.php');\n\n $directory = dirname($path);\n\n if (!is_dir($directory)) {\n \\File::makeDirectory($directory, 0755, true);\n }\n\n return $path;\n }", "title": "" }, { "docid": "83d966168c3ef018a341d27926bff236", "score": "0.7357042", "text": "protected function _get_view_path($view_name = 'open')\n\t{\n\t\t$meta = $this->_meta;\n\t\t$dir = Arr::get($meta, 'view_path', 'mmi/form/fieldset');\n\t\t$file = Arr::get($meta, 'view', $view_name);\n\t\tif ( ! Kohana::find_file('views/'.$dir, $file))\n\t\t{\n\t\t\t// Use the default view\n\t\t\t$file = $view_name;\n\t\t}\n\t\treturn $dir.'/'.$file;\n\t}", "title": "" }, { "docid": "4e37374e296ef0dbcc24fbe50faa8ae6", "score": "0.73107094", "text": "public static function getViewsPath()\n {\n $paths = config('view.paths', [0 => 'resources/views']);\n\n return Helpers::getPathWithSlash($paths[0]);\n }", "title": "" }, { "docid": "4f9a97a9b61b6b827876b4d00691e680", "score": "0.73074716", "text": "public function _view_dir() {\n\t\treturn static::_get_from_array($this->_config, 'VIEW_DIR', 'views');\n\t}", "title": "" }, { "docid": "b3e571829c5250cdf441dc88cc49b0e8", "score": "0.7272008", "text": "abstract public function viewPath();", "title": "" }, { "docid": "f73df7bda7f4467770bd11e67dfffbcd", "score": "0.7271675", "text": "final public function GetView(){\r\n\t\tif (file_exists($this->View)){\r\n\t\t\treturn $this->View ;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn $this->ErrorView();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9268587364f88c15521ffa77d3f2db6e", "score": "0.723856", "text": "public function getViewFilePathAttribute()\n {\n $entityType = snake_case(class_basename($this->entity));\n $sheetPath = str_replace('-', '_', $this->definition->name_key);\n return \"$entityType.$sheetPath\";\n }", "title": "" }, { "docid": "d04f0ecdedefcf8f58973fd1f4edeea8", "score": "0.7219664", "text": "private function __viewPath($view){\n\t\t$viewPath = rtrim(ROOT_DIR, '/') . DS . rtrim(APP_FOLDER, '/') .\n\t\t\t\t\tDS . rtrim($this->__viewFolder, '/') . DS .\n\t\t\t\t\tpreg_replace('|\\.php$|', '', $view) . '.php';\n\n\t\tif (file_exists($viewPath) === false){\n\t\t\tthrow new \\Exception('View file not found in ' . $viewPath);\n\t\t}\n\n\t\treturn $viewPath;\n\t}", "title": "" }, { "docid": "f3afc18ca305041026f24884b478beba", "score": "0.7154937", "text": "public function getViewPath()\n {\n if (!$this->useAppViewPath) {\n return parent::getViewPath();\n }\n\n // get reflection\n $class = new ReflectionClass($this);\n // get path with alias\n return '@app/views/widgets/' . Inflector::camel2id($class->getShortName());\n }", "title": "" }, { "docid": "9d19b22826ea99f76cf40b4cb42a8768", "score": "0.7149314", "text": "public function getViewPath(string $view): string\n {\n return $this->getViewDir().'/'.$view.'.'.$this->getExtension();\n }", "title": "" }, { "docid": "5c3f595494203ef9e31c565054580b0d", "score": "0.71047544", "text": "public function viewPath($view_file)\n {\n if (str_contains($view_file, '::')) {\n return $view_file;\n }\n return self::$view_folder . $view_file;\n }", "title": "" }, { "docid": "56defba035625f2c32229713c5aa178f", "score": "0.7091177", "text": "public function get_path( $view_name ) {\n\t\treturn sprintf( '%s/views/%s.php', $this->path, $view_name );\n\t}", "title": "" }, { "docid": "d593495fff6d7bbf6093fbabb59ade73", "score": "0.7058859", "text": "protected function getViewPath()\n {\n if ($key = $this->form->getResourceId()) {\n return $this->getListPath().'/'.$key;\n }\n\n return $this->getListPath();\n }", "title": "" }, { "docid": "921dfbf45ec7b88c6aadb23ffcdef067", "score": "0.70440024", "text": "public function view_path($view=false)\n\t{\n\t\tif (empty($view))\n\t\t\treturn false;\n\n\t\t$widget = $this->model->name;\n\t\t# first try custom path\n\t\t$path = Kohana::find_file(Kohana::config('widget.custom_dirname').$this->model->name, $view, false);\n\t\tif ($path === false) {\n\t\t\t# try core path if not found in custom\n\t\t\t$path = Kohana::find_file(Kohana::config('widget.dirname').$this->model->name, $view, true);\n\t\t}\n\n\t\treturn $path;\n\t}", "title": "" }, { "docid": "fa49cac4847bb3092072c080319e7219", "score": "0.7013571", "text": "private function pathResolver()\n {\n return APP_DIR . DIRECTORY_SEPARATOR . \"views\" . DIRECTORY_SEPARATOR . $this->getViewRoute() . \".php\";\n }", "title": "" }, { "docid": "b2b3b284c7a6d3e23e01bb04fca712aa", "score": "0.7011871", "text": "public function formView()\n {\n $class = new ReflectionClass($this);\n\n return dirname($class->getFileName()) . '/form.php';\n }", "title": "" }, { "docid": "710665fb27acf42b0ae12376482e5ddb", "score": "0.6993588", "text": "protected function getViewPath(string $view): string\n {\n if (DS != '/') {\n $view = str_replace('/', DS, $view);\n }\n\n $pos = strpos($view, ':');\n if ($pos === false) {\n return $this->viewPath . $view . '.phtml';\n } else {\n return dirname(substr($this->viewPath, 0, -1)) . DS . 'modules' . DS . substr($view, 0, $pos) . DS . 'views' . DS . substr($view, $pos + 1) . '.phtml';\n }\n }", "title": "" }, { "docid": "1d55da9e31f5092694ea0765c9861203", "score": "0.6943722", "text": "public function viewUrl()\n {\n return $this->urls['view'];\n }", "title": "" }, { "docid": "dc56b15ddce59f94e6fa16290bfb374c", "score": "0.69036067", "text": "public function getTemplatesPath(): string\n\t{\n\t\treturn $this->getFirewall()->getBundlesPath().'/'.$this->bundle\n\t\t.'/views/'.$this->controllerName;\n\t}", "title": "" }, { "docid": "83fd69af8f3457ecf38ea3e225bad8d1", "score": "0.689394", "text": "public function getRessourcePath();", "title": "" }, { "docid": "c90acdb76eb8097979a74ef10795d8d0", "score": "0.68887407", "text": "public function getControllerPath()\n {\n return $this->file;\n }", "title": "" }, { "docid": "081db84d29e39375f82495592bab5220", "score": "0.68646604", "text": "protected function get_template_path() {\n\t\treturn (string) $this->template_path;\n\t}", "title": "" }, { "docid": "c351e997088d7b6ca8f7c806417d754d", "score": "0.6859632", "text": "abstract public function getViewFile($viewName);", "title": "" }, { "docid": "3540fe78325ab61b404e39c22f5cfb8d", "score": "0.68242586", "text": "private static function getPath()\n {\n return dirname(dirname(__DIR__)).'/templates';\n }", "title": "" }, { "docid": "ef149a4e0b567cc7987a025718074d85", "score": "0.679331", "text": "public static function viewFileToPath($fileName = null){\n $filePath = '';\n $fileUrl = '';\n // If file name equal null using jQuery file name\n if(is_null($fileName)){\n $fileName = CFactory::getConfig()->jQueryFile . '.js';\n }\n $pathInfo = pathinfo($fileName);\n // If file have 'js' extension \n if($pathInfo['extension'] == 'js'){\n $fileUrl = BASE_URI . 'app/views/layout/js/' . $fileName;\n $filePath = APP_PATH . DS . 'views' . DS . 'layout' . DS . 'js' . DS . $fileName;\n // If file have 'css' extension \n } elseif($pathInfo['extension'] == 'css') {\n $fileUrl = BASE_URI . 'app/views/layout/css/' . $fileName;\n $filePath = APP_PATH . DS . 'views' . DS . 'layout' . DS . 'css' . DS . $fileName;\n // Otherwise throw exception\n } else {\n throw new AppException('Undefined type of included file.');\n }\n // Checks existing of file\n if(!file_exists($filePath)){\n throw new AppException(\"File '$filePath' not exist!\");\n }\n return $fileUrl;\n }", "title": "" }, { "docid": "b12ce326eb0763dc709be2b7b72c1c54", "score": "0.6788957", "text": "public function getViewFile($viewName) {\n return $this->getViewPath($this->module) . $viewName . '.php';\n }", "title": "" }, { "docid": "a2b01c0a6764c4f3c2508abc7433ce7b", "score": "0.6783918", "text": "public function getView(): string\n {\n return (string)$this->view;\n }", "title": "" }, { "docid": "a778aa71906019bbfb260416351459c0", "score": "0.6779415", "text": "private function getPath()\n {\n if($this->get('src'))\n {\n return $this->get('src');\n }\n return $this->get('src', Config::get('theming.theme'));\n }", "title": "" }, { "docid": "3143925c06b13aa4d08d0177db9f3be5", "score": "0.6761377", "text": "public function view()\n {\n return $this->view;\n }", "title": "" }, { "docid": "d1a87cebe9996e0cf441aa51fc801fab", "score": "0.6760718", "text": "public function getView(): string\n {\n if (is_array($this->route['view']) === true) {\n return $this->route['view']['template'];\n } else {\n return $this->route['view'];\n }\n }", "title": "" }, { "docid": "17b9ec51ceaa7f23324b71794d244a85", "score": "0.675517", "text": "protected function get_view( $view = '' ) {\n $dir = trailingslashit( $this->dir );\n return trailingslashit( $dir . 'views' ) . trim( $view ) . '.php';\n }", "title": "" }, { "docid": "332c0cf0767346c3bf74d2e99d535f89", "score": "0.6751152", "text": "public function getFilePath()\n\t{\n\t\tif ($this->variable_name == '')\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\n\t\t$basepath = PATH_TMPL;\n\n\t\tif (ee()->config->item('save_tmpl_files') != 'y' || $basepath == '')\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\n\t\t$this->ensureFolderExists();\n\n\t\t$path = $this->getFolderPath();\n\t\t$file = $this->variable_name;\n\t\t$ext = '.html';\n\n\t\tif ($path == '' || $file == '' || $ext == '')\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\n\t\treturn $path.'/'.$file.$ext;\n\t}", "title": "" }, { "docid": "c968e5e09536fdba443e62fbb71b5c38", "score": "0.67509425", "text": "protected function path()\n {\n return base_path(\"routes/{$this->routesFile}\");\n }", "title": "" }, { "docid": "45a265f6505da53b06543076caeca875", "score": "0.6720306", "text": "protected function getTemplateFileName()\n {\n return __FILE__;\n }", "title": "" }, { "docid": "12e582699ec57d5022e9501061a72e4a", "score": "0.66880774", "text": "public function GetViewsDir ();", "title": "" }, { "docid": "f1324112bfc614dc3adc03aeaeeb3663", "score": "0.66845834", "text": "protected function getViewFile($file)\n\t{\n\t\tif($this->useRuntimePath)\n\t\t{\n\t\t\t$crc=sprintf('%x', crc32(get_class($this).Yii::getVersion().dirname($file)));\n\t\t\t$viewFile=Yii::app()->getRuntimePath().DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.$crc.DIRECTORY_SEPARATOR.basename($file);\n\t\t\tif(!is_file($viewFile))\n\t\t\t\t@mkdir(dirname($viewFile),$this->filePermission,true);\n\t\t\treturn $viewFile;\n\t\t}\n\t\telse\n\t\t\treturn $file.'c';\n\t}", "title": "" }, { "docid": "f1324112bfc614dc3adc03aeaeeb3663", "score": "0.66845834", "text": "protected function getViewFile($file)\n\t{\n\t\tif($this->useRuntimePath)\n\t\t{\n\t\t\t$crc=sprintf('%x', crc32(get_class($this).Yii::getVersion().dirname($file)));\n\t\t\t$viewFile=Yii::app()->getRuntimePath().DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.$crc.DIRECTORY_SEPARATOR.basename($file);\n\t\t\tif(!is_file($viewFile))\n\t\t\t\t@mkdir(dirname($viewFile),$this->filePermission,true);\n\t\t\treturn $viewFile;\n\t\t}\n\t\telse\n\t\t\treturn $file.'c';\n\t}", "title": "" }, { "docid": "1f19adea74a7e4890e3d081efaa303a0", "score": "0.6672567", "text": "private function getPath(): string\n {\n return $this->response['basePath']\n . 'app/content/notes/';\n }", "title": "" }, { "docid": "5f55085557f4bddfe7abd8f43600cf93", "score": "0.6653275", "text": "private function getViewFile($fileName)\n {\n $filePath = $this->viewPath . '/' . $fileName . '.php';\n\n if (!is_file($filePath)) {\n throw new \\Exception('Unable to find view \"' . $fileName .'\".');\n }\n\n return $filePath;\n }", "title": "" }, { "docid": "5ccecff6be24573b4ccc917aebacd8ef", "score": "0.6631436", "text": "protected function folderFrom()\n {\n return key($this->pathsToView()).'/'.$this->view;\n }", "title": "" }, { "docid": "7fc8172a90a7c50e3f1280c1bf93986b", "score": "0.6628436", "text": "public function docs_path()\n\t{\n\t\treturn $this->server_path().'views/_docs/index.php';\n\t}", "title": "" }, { "docid": "7fabd9d01c6703d94c718f012858bac9", "score": "0.6624206", "text": "public static function app_file()\n {\n static $file;\n if (empty($file)) {\n $debug_backtrace = debug_backtrace();\n $stacktrace = array_pop($debug_backtrace);\n $file = $stacktrace['file'];\n }\n return File::path($file);\n }", "title": "" }, { "docid": "9b21bc7bb6c1d3bb443e25eb73c2520a", "score": "0.66160226", "text": "public function get_path();", "title": "" }, { "docid": "6b6d624924220ed97981bdec1c2b7d15", "score": "0.66071665", "text": "function app_template_path() {\n\treturn APP_Wrapping::get_main_template();\n}", "title": "" }, { "docid": "7219e4c4063be3bd126dbed3d9cca19a", "score": "0.66017383", "text": "function rovadex_template_path() {\n\treturn Rovadex_Wrapping::$main_template;\n}", "title": "" }, { "docid": "8a27836649381635dbf2628e05358d10", "score": "0.6597327", "text": "public function getCompiledViewPath(string $view): string\n {\n $viewPath = $this->getViewPath($view);\n $compiledFileName = md5($viewPath);\n return $this->getCompiledDir().'/'.$compiledFileName;\n }", "title": "" }, { "docid": "180ead54a415d2f94f7ae6dd21affb1a", "score": "0.6588163", "text": "public function getCustomViewConfigPath()\n {\n return $this->customizationPath->getCustomViewConfigPath($this->theme);\n }", "title": "" }, { "docid": "c9ff641f108b6e8f0755f89031f7111a", "score": "0.6587344", "text": "public static function getFilePath()\n\t{\n\t\treturn __FILE__;\n\t}", "title": "" }, { "docid": "c9ff641f108b6e8f0755f89031f7111a", "score": "0.6587344", "text": "public static function getFilePath()\n\t{\n\t\treturn __FILE__;\n\t}", "title": "" }, { "docid": "eff039c84acd7e9da988a4dc22866a19", "score": "0.65777326", "text": "function getView($template) {\n\t\t$template_path = $this->getViewDir().$template;\n\t\t$exists = file_exists(getABSViewDir().$template_path);\n\t\tif (get_class() == 'BaseController' && !$exists) throw new FatalException (\"Could not find view $template at $template_path\");\n\t\telse if (!$exists) return parent::getView($template);\n\t\telse return $template_path;\n\t}", "title": "" }, { "docid": "c30de67ed70dd078b2b494f1cfaf923d", "score": "0.657344", "text": "public function getDefaultViewPath()\n {\n if (!$this->isPropertyAvailable(\"DefaultViewPath\")) {\n return null;\n }\n return $this->getProperty(\"DefaultViewPath\");\n }", "title": "" }, { "docid": "f438deb59c0fe27ff50a2c2f4f2638c1", "score": "0.65638316", "text": "public function file() {\n return app_path('Http/Resources/' . $this->crud->model()->implode('/') . 'Resource.php');\n }", "title": "" }, { "docid": "53bd8c32a489be501cb5a1bb1015de61", "score": "0.6562036", "text": "public function cache_path()\n\t{\n\t\treturn $this->server_path().'views/cache/';\n\t}", "title": "" }, { "docid": "9062bdc05cb6a4bfacce80be1c759fc3", "score": "0.6521471", "text": "public function getPath()\n {\n return $this->customPath ?? app()->runtime . '/' . $this->getFilename(false);\n }", "title": "" }, { "docid": "696583b9e7b1b1972dd05664d219ecec", "score": "0.6513546", "text": "public static function get_template_path() {\n\t\treturn apply_filters( 'si_template_path', self::$template_path );\n\t}", "title": "" }, { "docid": "ae347e1353c92253edee9d550a11d595", "score": "0.64826506", "text": "protected function views()\n {\n if ($this->option('resource')) {\n foreach ($this->resources as $resource) {\n $views[] = $this->getPath($resource);\n }\n\n return $views;\n }\n \n return $this->getPath();\n }", "title": "" }, { "docid": "47e43a15166a00d84541a0d3003977e1", "score": "0.6482569", "text": "public function getFilePath()\n {\n return $this->webPath . $this->fileName . '.' . $this->extension;\n }", "title": "" }, { "docid": "f1e353bd42df1367dfea48a7a6df8d7e", "score": "0.647845", "text": "function getPath($path=\"\")\n\t{\n\t\treturn $GLOBALS['TSFE']->tmpl->getFileName($path);\n\t}", "title": "" }, { "docid": "ba0e63229a120d3af8e15efba5b57366", "score": "0.6469219", "text": "public function getViewFile($viewName)\n {\n $moduleViewPath = $basePath = Fly::app()->getViewPath();\n if (($module = $this->getModule()) !== null) {\n $moduleViewPath = $module->getViewPath();\n }\n return $this->resolveViewFile($viewName, $this->getViewPath(), $basePath, $moduleViewPath);\n }", "title": "" }, { "docid": "be9c393905cae96f946565a593dd2e3c", "score": "0.6453658", "text": "public function path()\n {\n return $this->_path.DS.$this->_file;\n }", "title": "" }, { "docid": "bd48a571c827118db0ab14dac4415730", "score": "0.6446819", "text": "public function getView() {\n return $this->view;\n }", "title": "" }, { "docid": "fa73438a4ee8afdb1681f1f1a9902e25", "score": "0.64428145", "text": "private function getViewPath() {\n return '/node/' . $this->articleNodeId;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.6441151", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.6441151", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.6441151", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.6441151", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.6441151", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.6441151", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "ce39db7d07278d22bdac7790808a593f", "score": "0.6438948", "text": "public function getTemplateFile() {\n return $this->simpleab->config['templatesPath'].'mgr.tpl';\n }", "title": "" }, { "docid": "3e2c758a05bca06d26849cfc24c7a24a", "score": "0.6437269", "text": "public function getViewPath($name)\r\n {\r\n return \\Dsc\\ArrayHelper::get($this->dsc_theme, 'views.paths.' . $name);\r\n }", "title": "" }, { "docid": "a07f4a6b004d026711fb6ca4cc0c706b", "score": "0.64244384", "text": "public static function getView(){\n\t\t\treturn Timber::compile( \n\t\t\t\t'/classes/components/header/views/' \n\t\t\t\t. self::$spark_options['template']\n\t\t\t\t.'.html.twig', \n\t\t\t\tself::getContext() );\n\t\t}", "title": "" }, { "docid": "2eaf0503f42c9b3cb2182d973092b4b0", "score": "0.6422948", "text": "public static function views()\n {\n return self::pluginDir() . 'views/';\n }", "title": "" }, { "docid": "f60713f37ac70d472103fdb2d9dd2ab6", "score": "0.6404073", "text": "public function name()\n {\n return $this->view;\n }", "title": "" }, { "docid": "7e232f46de9f01248a718c98575061c3", "score": "0.6403764", "text": "public function path()\n {\n return $this->path();\n }", "title": "" }, { "docid": "373857878408a26e446cf0ec39cae9ec", "score": "0.6385199", "text": "public function getFilePath() {\n if ($this->getDecorator()) {\n //search if Decorator exists already\n $subdir = $this->recursive_file_exists(\"{$this->key}Decorator.php\", SilverSmith::get_project_dir().'/code/');\n return SilverSmith::get_project_dir().\"/code/{$subdir}{$this->key}Decorator.php\";\n \n }\n\n $subdir = $this->recursive_file_exists($this->key.'.php', SilverSmith::get_project_dir().'/code/'); \n return SilverSmith::get_project_dir().\"/code/{$subdir}{$this->key}.php\";\n }", "title": "" }, { "docid": "0d3e7f633ac292a3981355aa869a79d4", "score": "0.63847077", "text": "public function getViewcounterDir(): string;", "title": "" }, { "docid": "0936145808a279fd4fcf78bf329fdc9b", "score": "0.6383519", "text": "public function fetchView($fileName)\n {\n \treturn is_file($fileName)\n \t\t? parent::fetchView($fileName)\n \t\t: '';\n }", "title": "" }, { "docid": "ddc39f00cb4d7f624d14dc808102f07d", "score": "0.6381335", "text": "public function template_path() {\r\n\t\treturn ENR_DIR . 'templates/' ;\r\n\t}", "title": "" }, { "docid": "38af358134d1e6d806e20fd42d822c92", "score": "0.6375071", "text": "function get_path() {\r\n\t\treturn $this->path;\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "cdec7cdd4898765fd86a8dd42dfd2532", "score": "0.63720113", "text": "protected function getPaths()\n {\n $paths = $this->app['view.finder']->getPaths();\n\n if (count($paths) === 1) {\n return head($paths);\n }\n\n return $this->choice('Where do you want to create the view(s)?', $paths, head($paths));\n }", "title": "" }, { "docid": "5a358bd7fb6a407aedf6025243f13f5e", "score": "0.6370222", "text": "public function path()\n {\n return $this->getRealPath();\n }", "title": "" }, { "docid": "23c6fa8622c3febab54640c49061af39", "score": "0.6366454", "text": "public function get_path() {\n\t\treturn '';\n\t}", "title": "" } ]
1117ac3fe5903ab72b142b41aff52def
Get row as dictionary
[ { "docid": "be684024e23889e2f004a37a2768c1e9", "score": "0.69301635", "text": "static function row_dict($arg, $params = false) {\n return pg_fetch_assoc(SQL($arg, $params));\n }", "title": "" } ]
[ { "docid": "a8d0bfac23d70825d55b824ebf2780e2", "score": "0.68942016", "text": "private function row_data($row)\n {\n $row_data = array();\n foreach ($row as $key=>$value)\n {\n $row_data[$key] = $value;\n } \n \n return $row_data;\n }", "title": "" }, { "docid": "3c9cdf094e3e8dce6cc44c02670f6796", "score": "0.64751416", "text": "public function toDictionary()\n {\n $pos = ftell($this->resource);\n \n $this->rewind();\n \n // first row is the header\n $header = $this->row();\n $rows = [];\n while($r = $this->row()) {\n $rows[] = array_combine($header, $r);\n }\n \n fseek($this->resource, $pos);\n \n return $rows;\n }", "title": "" }, { "docid": "757167ef960905bb3df4ccd9b7910547", "score": "0.6402654", "text": "public function readFromDBRow($row);", "title": "" }, { "docid": "69f55ef974e5ece37334b914207b7887", "score": "0.63339525", "text": "function GetRecordFromRow($row)\n {\n return( $row );\n }", "title": "" }, { "docid": "5b2e5c351c385cc3e633da18eec07a86", "score": "0.61962485", "text": "function raw_query_result_rowdata(&$result, $row=0) {\n\t\tif (!is_object($result))\n throw new Exception(\"result is not an object\");\n\t\t$result->Move($row);\n\t\t$rowdata = $this->change_key_case($result->FetchRow());\n\t\treturn $rowdata;\n\t}", "title": "" }, { "docid": "e717f9d58fe65a84fa830d6e56d63a9a", "score": "0.61024827", "text": "public static function prepareAssocFromRequest($row)\n {\n return $row;\n }", "title": "" }, { "docid": "79af119ec702dfea18332ad3d566c88f", "score": "0.6031074", "text": "protected function mapResultRow(object $row): object\n {\n return $row;\n }", "title": "" }, { "docid": "3a40f26d8027dcaa4f24f4681ecd5a9e", "score": "0.59687424", "text": "public function row($index = 0)\n {\n if (!$this->result_rows) {\n $this->result_rows = array();\n while ($row = mysqli_fetch_assoc($this->result)) {\n $this->result_rows[] = $row;\n }\n }\n $num = 0;\n foreach ($this->result_rows as $column) {\n if ($num == $index) {\n $row = new stdClass();\n foreach ($column as $key => $value) {\n $this->is_serialized($value, $value);\n $row->{$key} = $this->clean($value);\n }\n return $row;\n }\n $num++;\n }\n return new stdClass();\n }", "title": "" }, { "docid": "3562c6f3cdc11878ad30f0f690727627", "score": "0.59686315", "text": "function query_result_rowdata(&$result, $row=0) {\n\t\tif (!is_object($result))\n throw new Exception(\"result is not an object\");\n\t\t$result->Move($row);\n\t\t$rowdata = $this->change_key_case($result->FetchRow());\n\n\t\tforeach($rowdata as $col => $coldata) {\n\t\t\tif($col != 'fieldlabel')\n\t\t\t\t$rowdata[$col] = to_html($coldata);\n\t\t}\n\t\treturn $rowdata;\n\t}", "title": "" }, { "docid": "08f296dfc8aa22b91ff79bb7e6038dab", "score": "0.5923507", "text": "protected function processQueryRow(array $row)\n {\n $data = array();\n foreach ($row as $columnName => $value) {\n if (isset($this->_columnNames[$columnName])) {\n $data[$this->_columnNames[$columnName]] = $value;\n }\n }\n return $data; \n }", "title": "" }, { "docid": "7392253a86276d3146988132496b93ce", "score": "0.5915873", "text": "public function getArrayRow()\n {\n return array(\n 'id' => $this->id,\n 'name' => $this->name,\n 'amount' => $this->amount\n );\n }", "title": "" }, { "docid": "ed84ada8786e0c49ed2f2c83cc6451df", "score": "0.5909834", "text": "private static function row_to_assoc(array $row) {\n\t\t$values = array(\n\t\t\t\"device_history.id\" => $row[0],\n\t\t\t\"device_history.date\" => $row[1],\n\t\t\t\"device_history.comment\" => $row[2],\n\t\t\t\"device_history.is_spare\" => $row[3],\n\t\t\t\"device_history.is_damaged\" => $row[4],\n\t\t\t\"device_history.has_photos\" => $row[5],\n\t\t\t\"device_history.is_bought\" => $row[6],\n\t\t\t\"device_history.change\" => $row[7],\n\t\t\t\"device_history.technician_id\" => $row[8],\n\t\t\t\"device_history.device_id\" => $row[9],\n\t\t\t\"device_history.device_status_id\" => $row[10],\n\t\t\t\"device_history.person_id\" => $row[11],\n\t\t\t\"technician.id\" => $row[12],\n\t\t\t\"technician.login\" => $row[13],\n\t\t\t\"technician.name\" => $row[14],\n\t\t\t\"technician.is_active\" => $row[15],\n\t\t\t\"device.id\" => $row[16],\n\t\t\t\"device.is_spare\" => $row[17],\n\t\t\t\"device.is_damaged\" => $row[18],\n\t\t\t\"device.sn\" => $row[19],\n\t\t\t\"device.mac_eth0\" => $row[20],\n\t\t\t\"device.mac_wlan0\" => $row[21],\n\t\t\t\"device.is_bought\" => $row[22],\n\t\t\t\"device.person_id\" => $row[23],\n\t\t\t\"device.device_status_id\" => $row[24],\n\t\t\t\"device.device_type_id\" => $row[25],\n\t\t\t\"device_status.id\" => $row[26],\n\t\t\t\"device_status.tag\" => $row[27],\n\t\t\t\"device_status.progress_flag\" => $row[28],\n\t\t\t\"person.id\" => $row[29],\n\t\t\t\"person.code\" => $row[30],\n\t\t\t\"person.is_staff\" => $row[31],\n\t\t\t\"person.is_active\" => $row[32],\n\t\t\t\"person.firstname\" => $row[33],\n\t\t\t\"person.surname\" => $row[34],\n\t\t\t\"device_type.id\" => $row[35],\n\t\t\t\"device_type.name\" => $row[36],\n\t\t\t\"device_type.model_no\" => $row[37]);\n\t\treturn $values;\n\t}", "title": "" }, { "docid": "917c854c45406cb40f97df865224a765", "score": "0.58738935", "text": "public function mapRow( $row )\r\n {\r\n $object = new Item();\r\n $object->setKey ( $row['key'] );\r\n $object->setReal ( $row['real'] );\r\n $object->setUri ( $row['uri'] );\r\n $object->setName ( $row['name'] );\r\n $object->setExtension ( $row['extension'] );\r\n $object->setType ( $row['type'] );\r\n $object->setSize ( $row['size'] );\r\n $object->setMtime ( strtotime($row['mtime']) );\r\n $object->setSearchKeys ( $row['search_keys'] );\r\n return $object;\r\n }", "title": "" }, { "docid": "136089d16b69826c67cfc7d0edb584c6", "score": "0.58596855", "text": "public function row() {\n if ($this->result) {\n return $this->result->fetch_object();\n }\n }", "title": "" }, { "docid": "3e3bdca3acccbfeefd5979d7d49d0eaf", "score": "0.58229613", "text": "public function getRow()\n {\n return $this->row;\n }", "title": "" }, { "docid": "3e3bdca3acccbfeefd5979d7d49d0eaf", "score": "0.58229613", "text": "public function getRow()\n {\n return $this->row;\n }", "title": "" }, { "docid": "dd478ab401986266ff706ad7a4f0cade", "score": "0.58219886", "text": "public function getRow(): Row\n {\n return $this->row;\n }", "title": "" }, { "docid": "3e513a2696d713519e10167978097e35", "score": "0.5775423", "text": "public function mapRow( $row )\n {\n $object = new Config();\n $object->setId ( $row['id'] );\n $object->setKey ( $row['key'] );\n $object->setValue ( $row['value'] );\n $object->setName ( $row['name'] );\n $object->setDescription ( $row['description'] );\n $object->setDisplay ( $row['display'] );\n $object->setSeqNo ( $row['seq_no'] );\n $object->setGroup ( $row['group'] );\n $object->setProperties ( unserialize($row['properties']) );\n return $object;\n }", "title": "" }, { "docid": "c7f5ec1ee12af63582a4cbed6bba62f1", "score": "0.5760936", "text": "public function GetRow(){\n return sqlite_current($this->rs,SQLITE_ASSOC); \n }", "title": "" }, { "docid": "6b58289f72384c71ac8af5658b04175e", "score": "0.5749837", "text": "public function row_array() {\n return $this->result->fetch_array(MYSQLI_ASSOC);\n }", "title": "" }, { "docid": "08aff0be3a24f75cc0dcd89a3fef970a", "score": "0.5729204", "text": "static function rows_dict($arg, $params = false) {\n return pg_fetch_all(SQL($arg, $params));\n }", "title": "" }, { "docid": "a47ba10c702405d647ae40f9d889133f", "score": "0.56937957", "text": "public function getRow()\n {\n $this->freshen();\n return $this->row;\n }", "title": "" }, { "docid": "9abcdc691ce4e465f13dcef187b226fe", "score": "0.56615365", "text": "private function getConfigRow()\n {\n if (!$this->configRow) {\n $this->configRow = $this->rawRows['_fixture'] ?? ['model_class' => null];\n }\n return $this->configRow;\n }", "title": "" }, { "docid": "dfbbf9790de76ee94145c0889b9a2fa1", "score": "0.56479126", "text": "public function _fetchRowData()\n {\n return array(\n 0 => '',\n 1 => 'notnull',\n 2 => 'length7 ',\n '1?2:3.4' => 'assoc'\n );\n }", "title": "" }, { "docid": "d2231fa74cfea9512b130d888be17d43", "score": "0.56390154", "text": "public function map($row): array\n {\n return [\n $row->id,\n $row->name,\n $row->email\n ];\n }", "title": "" }, { "docid": "9dfcfe19fad35990dfeb17f9d99af8bf", "score": "0.5624614", "text": "public function rowFetch() {\n return $this->object->fetch(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "15d80057b6c303c787634ae8b74288d0", "score": "0.5623212", "text": "function row($resource) {\n return mssql_fetch_assoc($resource);\n }", "title": "" }, { "docid": "3acba4dfda42f9b2b3f434a0aabe59d9", "score": "0.5617638", "text": "public function toRow() {\n\t\treturn [\n\t\t\t\"id\" => $this->id,\n\t\t\t\"created_at\" => $this->created_at,\n\t\t\t\"client_id\" => $this->client_id,\n\t\t\t\"user_id\" => $this->user_id,\n\t\t\t\"token\" => $this->token\n\t\t];\n\t}", "title": "" }, { "docid": "6fa510e11802b5fca3e43810971d8c05", "score": "0.56102335", "text": "public function row($type = 'array') {\n\t\tswitch ($type) {\n\t\t\tcase 'array':\n\t\t\t\treturn $this->record;\n\t\t\tcase 'object':\n\t\t\t\treturn (object) $this->record;\n\t\t\tdefault:\n\t\t\t\tif ( ! isset(static::$objects[$type])) {\n\t\t\t\t\t$object = new $type();\n\t\t\t\t\tstatic::$objects[$type] = serialize($object);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$object = unserialize( (string) static::$objects[$type]);\n\t\t\t\t}\n\t\t\t\tforeach ($this->record as $key => $value) {\n\t\t\t\t\t$object->{$key} = $value;\n\t\t\t\t}\n\t\t\t\treturn $object;\n\t\t}\n\t}", "title": "" }, { "docid": "b52c498f98ee8e0becda6a408c9f1e06", "score": "0.56000304", "text": "public function row(){\n\t\treturn mysqli_fetch_array($this->res);\n\t}", "title": "" }, { "docid": "8c42698f871d916102ec108a4d4668ed", "score": "0.5598825", "text": "function row($resource) {\n return mysql_fetch_assoc($resource);\n }", "title": "" }, { "docid": "7ff79fbee9caa079352482839f55aba4", "score": "0.5597242", "text": "public function getPostParamsAsRow() {\n return $this->post_params_row;\n }", "title": "" }, { "docid": "5505b309a21dc86205a6c457861f0c6b", "score": "0.55970085", "text": "public function getAssocRowFromUser(){\n\t\t\treturn($this->assocRowFromUser);\t\n\t\t}", "title": "" }, { "docid": "7290ae44d2463f23681f85496f6678c4", "score": "0.5596296", "text": "public function row()\n\t{\n\t\t$row = $this->query->fetch('row');\n\n\t\treturn ($row) ? self::newFromResults($row) : self::blank();\n\t}", "title": "" }, { "docid": "313205b42f5c42174e744ac6ec112549", "score": "0.5595706", "text": "public function getAssocRowFromPatient(){\n\t\t\treturn($this->assocRowFromPatient);\n\t\t}", "title": "" }, { "docid": "5b299914b2991e4b21131a8e966b4968", "score": "0.55823475", "text": "function &_returnRecordFromRow(&$row) {\n\t\t$record = new OAIRecord();\n\n\t\t$paperId = $row['paper_id'];\n/*\t\tif ($this->conferenceSettingsDao->getSetting($row['conference_id'], 'enablePublicPaperId')) {\n\t\t\tif (!empty($row['public_paper_id'])) {\n\t\t\t\t$paperId = $row['public_paper_id'];\n\t\t\t}\n\t\t} */\n\n\t\t$paper =& $this->publishedPaperDao->getPublishedPaperByPaperId($paperId);\n\t\t$conference =& $this->getConference($row['conference_id']);\n\t\t$schedConf =& $this->getSchedConf($row['sched_conf_id']);\n\t\t$track =& $this->getTrack($row['track_id']);\n\t\t$galleys =& $this->paperGalleyDao->getGalleysByPaper($paperId);\n\n\t\t$record->setData('paper', $paper);\n\t\t$record->setData('conference', $conference);\n\t\t$record->setData('schedConf', $schedConf);\n\t\t$record->setData('track', $track);\n\t\t$record->setData('galleys', $galleys);\n\t\t\n\t\t// FIXME Use public ID in OAI identifier?\n\t\t$record->identifier = $this->oai->paperIdToIdentifier($row['paper_id']);\n\t\t$record->datestamp = OAIUtils::UTCDate(strtotime($this->datetimeFromDB($row['last_modified'])));\n\t\t$record->sets = array($conference->getPath() . ':' . $schedConf->getPath() . ':' . $track->getLocalizedAbbrev());\n\n\t\treturn $record;\n\t}", "title": "" }, { "docid": "007dcf307a8312bf8701384abc0899b0", "score": "0.5546423", "text": "public function getAssoc () {\n\t\tif ($this->conn)\n\t\t\treturn pg_fetch_assoc ($this->conn);\n\t}", "title": "" }, { "docid": "270f0b8a1aba4f69290eeb8f5551fdd9", "score": "0.5532821", "text": "function rows()\r\n\t\t{\r\n\t\t\treturn array(\"query\" => $this->query, \"data\" => $this->row, \"result\" => $this->result, \"error\" => $this->error);\r\n\t\t}", "title": "" }, { "docid": "f3d3a5bcaecb764a319c09fcefcea3ea", "score": "0.5523045", "text": "private function getRowData(\\Google_Service_AnalyticsReporting_ReportRow $row): array\n {\n return array_combine($this->dimensionHeaders, $row->getDimensions()) +\n array_combine($this->metricHeaders, $row->getMetrics()[0]->getValues());\n }", "title": "" }, { "docid": "649b3565307d6c2d7c25816aab723633", "score": "0.5502147", "text": "protected function RowToObject($row)\n\t{\n\t\t$object = new Setting();\n\t\t$object->id = $row['id'];\n\t\t$object->name = $this->RowItemToString($row['name']);\n\t\t$object->value = $this->RowItemToString($row['value']);\n\t\treturn $object;\n\t}", "title": "" }, { "docid": "c47ad4b325aa0ee1bc3f9b913b365146", "score": "0.54976094", "text": "public function getRow()\n {\n return $this->_activityRow;\n }", "title": "" }, { "docid": "43685d72940d8e2f9482e296966d32fd", "score": "0.54957", "text": "public function setRow(){ \n \n return $this->row = mysql_fetch_assoc($this->rs);\n\n }", "title": "" }, { "docid": "7ef6443dd3e9984d001d11b6bfc43fc0", "score": "0.54725057", "text": "function row2Obj($row) {\n\t\t$x = parent::row2Obj($row);\n\t\t$x->_originalComments = $x->comments;\n\t\t$x->_originalScore = sprintf('%.2f',$x->score);\n\treturn $x;\n\t}", "title": "" }, { "docid": "c386fd0d2b68990a5e2e29bf4dd0d091", "score": "0.54708195", "text": "function res_row($res)\n\t{\n\t\treturn mysql_fetch_array($res,MYSQL_ASSOC);\n\t}", "title": "" }, { "docid": "1129d13389214cfb5357b21d64863f4b", "score": "0.54568696", "text": "function LoadFromRow ($row) {\n // the row must be an array\n if (!is_array($row)) return false;\n\n // copy the row into the needful\n foreach ($row as $key => $value) {\n $this->$key = $value;\n }\n }", "title": "" }, { "docid": "a52f93e859d9709e32a5d784fa48ae84", "score": "0.5441578", "text": "public function getAssocRowFromDoctor(){\n\t\t\treturn($this->assocRowFromDoctor);\n\t\t}", "title": "" }, { "docid": "acea2fd2d7b51fb829a4c20361143fcd", "score": "0.54353607", "text": "public function rowFormat($row, $as_excel=false){\n\t\treturn [\n\t\t\t'id' => $this->checkerFormat($row),\n\t\t\t'api_name' => $row->api_name,\n\t\t\t'public' => '<input type=\"text\" onclick=\"this.setSelectionRange(0, this.value.length)\" class=\"form-control\" value=\"'.$row->public.'\">',\n\t\t\t'secret' => '<input type=\"text\" onclick=\"this.setSelectionRange(0, this.value.length)\" class=\"form-control\" value=\"'.$row->secret.'\">',\n\t\t\t'is_active' => has_access('admin.'.$this->route.'.switch') ? $this->switcher($row, 'is_active', 'admin.'.$this->route.'.switch') : ( $row->is_active ? '<span class=\"badge badge-success\">Active</span>' : '<span class=\"badge badge-danger\">Draft</span>'),\n\t\t\t'action' => self::editButton($row) . self::deleteButton($row)\n\t\t];\n\t}", "title": "" }, { "docid": "e2d3b28c450fec03150acc8efd0e621d", "score": "0.54119253", "text": "function basic_row()\n {\n $user_id = 0;\n if ($this->session->userdata('logged') ) { $user_id = $this->session->userdata('user_id'); }\n \n $start = date('Y-m-d H:i:s');\n \n $arr_row['user_id'] = $user_id;\n $arr_row['ip_address'] = $this->input->ip_address();\n $arr_row['start'] = $start;\n $arr_row['created_at'] = $start;\n $arr_row['creator_id'] = $user_id;\n \n return $arr_row;\n }", "title": "" }, { "docid": "6ac34eabb54cc8b43706966ce400f810", "score": "0.54017943", "text": "function get_row(){\n $rs = $this->query_ro(func_get_args());\n $row = mysql_fetch_assoc($rs);\n $this->free();\n return $row;\n }", "title": "" }, { "docid": "76bd9a414b48a81bee3a76def6eee87a", "score": "0.53930813", "text": "function convert_from_sql_row($row)\n\t{\n\t\t$this->ETIndex = (int)$row->ETIndex;\n\t\t$this->EventId = (int)$row->EventId;\n\t\t$this->TicketItemId = (string)$row->TicketItemId;\n\t\t$this->Datestamp = (string)$row->Datestamp;\n\t\t$this->Userstamp = (int)$row->Userstamp;\n\t}", "title": "" }, { "docid": "e5620548952d6463016692d8fe17990a", "score": "0.53921586", "text": "function loadFromRow( &$row ) {\n\t\t$this->id = $row->gr_id;\n\t\t$this->name = $row->gr_name;\n\t\t$this->description = $row->gr_description;\n\t\t$this->rights = $row->gr_rights;\n\t\t$this->dataLoaded = true;\n\t}", "title": "" }, { "docid": "6773290892802f64bbf0c1a8b18e911e", "score": "0.53921527", "text": "public function getRowKey()\n {\n return $this->row_key;\n }", "title": "" }, { "docid": "fb75372c143e170ec2e2f60554b8e8d0", "score": "0.5391285", "text": "public function row($type = 'assoc') {\n\t\tif($type == 'assoc') $grab = PDO::FETCH_ASSOC;\n\t\telse if($type == 'num') $grab = PDO::FETCH_NUM;\n\t\telse if($type == 'object') $grab = PDO::FETCH_OBJ;\n\t\telse if($type == 'model') return $this->model();\n\t\telse $grab = PDO::FETCH_ASSOC;\n\t\t\n\t\treturn $this->result->fetch($grab);\n\t}", "title": "" }, { "docid": "b50e2581856bd3347363603e3eb4a4c5", "score": "0.5380751", "text": "public function getRow() {\n\n if ($this->setRow($this->rs)) {\n $this->setIdEntrada($this->row['id_entrada']);\n $this->setIdRegiao($this->row['id_regiao']);\n $this->setIdProjeto($this->row['id_projeto']);\n $this->setIdBanco($this->row['id_banco']);\n $this->setIdUser($this->row['id_user']);\n $this->setNome($this->row['nome']);\n $this->setEspecifica($this->row['especifica']);\n $this->setTipo($this->row['tipo']);\n $this->setAdicional($this->row['adicional']);\n $this->setValor($this->row['valor']);\n $this->setDataProc($this->row['data_proc']);\n $this->setDataVencimento($this->row['data_vencimento']);\n $this->setDataPg($this->row['data_pg']);\n $this->setHoraPg($this->row['hora_pg']);\n $this->setComprovante($this->row['comprovante']);\n $this->setIdUserpg($this->row['id_userpg']);\n $this->setCampo2($this->row['campo2']);\n $this->setCampo3($this->row['campo3']);\n $this->setStatus($this->row['status']);\n $this->setIdDeletado($this->row['id_deletado']);\n $this->setDataDeletado($this->row['data_deletado']);\n $this->setSubtipo($this->row['subtipo']);\n $this->setTravaContabil($this->row['trava_contabil']);\n $this->setNSubtipo($this->row['n_subtipo']);\n return 1;\n } else {\n //$this->setError(mysql_error());\n return 0;\n }\n }", "title": "" }, { "docid": "189e971778f5d4132d449ea13ddce7ad", "score": "0.5380291", "text": "function _returnFromRow($row) {\n\t\t$chapter = $this->newDataObject();\n\t\t$chapter->setId($row['chapter_id']);\n\t\t$chapter->setMonographId($row['submission_id']);\n\t\t$chapter->setSequence($row['chapter_seq']);\n\t\t$this->getDataObjectSettings('submission_chapter_settings', 'chapter_id', $row['chapter_id'], $chapter);\n\n\t\tHookRegistry::call('ChapterDAO::_returnFromRow', array(&$chapter, &$row));\n\n\t\treturn $chapter;\n\t}", "title": "" }, { "docid": "075b5235c2d233bc95cc1abbd742b94c", "score": "0.5372107", "text": "function GetTableRowData();", "title": "" }, { "docid": "4f5bd28901e2c1f8799edc0452fbffc1", "score": "0.5364414", "text": "public function row_array()\n\t{\n\t\tif(empty($this->result_id))\n\t\t{\n\t\t\treturn array();\n\t\t}\n\n\t\t$row = $this->result_id->fetch_array(MYSQLI_ASSOC);\n\n\t\t$this->free_result();\n\n\t\treturn $row;\n\t}", "title": "" }, { "docid": "f0996159f773f67fe6e21538a491327c", "score": "0.5364304", "text": "public function processResult($row)\n {\n return $row;\n }", "title": "" }, { "docid": "ad21e52f50430924a8c9d59583d9f279", "score": "0.5364265", "text": "protected function getRawDataFromRow(array $row): array\n\t{\n\t\tforeach ($this->fields as $fieldName => $fieldModel) {\n\t\t\tif (\\array_key_exists($fieldName, $row)) {\n\t\t\t\t$row[$fieldName] = $fieldModel->getUITypeModel()->getRawValue($row[$fieldName]);\n\t\t\t}\n\t\t}\n\n\t\treturn $row;\n\t}", "title": "" }, { "docid": "623dfd5d11da54b6a82906151c38374b", "score": "0.5347716", "text": "public function GetRowData()\n\t{\n\t\t//$self = new ReflectionObject();\n\t\t//$self->getProperties(ReflectionProperty::IS_PUBLIC);\n\t\t$data = array();\n\t\tif( !$this->table )\n\t\t\treturn $data;\n\t\tforeach($this->table->columns as $col)\n\t\t{\n\t\t\t$data[$col] = $this->$col;\n\t\t}\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "9b462c21a465582c94f70c87a7060994", "score": "0.5346698", "text": "public function rowToObj($obj, $row) {\n\n /* fill it */\n \n\n foreach($row as $name => $value) {\n \n if($name == $obj->getPKName()) {\n $obj->id = $value;\n continue;\n }\n \n if(!isset($obj->fieldTypes[$name])) {\n continue;\n }\n \n $obj->fields[$name] = $obj->dbToPHP($name, $value);\n }\n \n $obj->dirty = false;\n }", "title": "" }, { "docid": "7a53b23beef87958be8ac2179874ad93", "score": "0.53451866", "text": "function getRowAssoc($sql, $params = null)\n {\n //\tlink check\n if (!$this->link) {\n return false;\n }\n\n $this->sqlbind($sql, $params);\n $row = $this->sth->fetch(PDO::FETCH_ASSOC);\n $this->sth->closeCursor();\n\n return $row;\n }", "title": "" }, { "docid": "4b826a3b3ca155cfb4599e1bc141bc06", "score": "0.53449166", "text": "public function get_row($table_name, $id)\n {\n // Does lazy loading, so foreigns are not loaded.\n $record = array('table_name' => $table_name, 'columns' => array(), 'foreigns' => array());\n\n $r = $this->driver->query('SELECT * FROM '. $table_name .' WHERE id='. $id);\n\n if($r->num_rows == 1)\n {\n $row = $r->fetch_assoc(); // all values are strings, even numbers and booleans!\n // TODO: would be intelligent to get the types of columns from the table and transform the data to the correspondent datatype\n // https://forums.whirlpool.net.au/archive/526795\n $record['columns'] = $row;\n $r->close();\n }\n else\n {\n throw new \\Exception('Record with id '. $id .' on table '. $table_name .' does not exist');\n }\n\n return $record;\n }", "title": "" }, { "docid": "4918e93470d52c6b1b8c0572219373d9", "score": "0.5340287", "text": "function toArray(): array {\n $table = $this->getTableName();\n $row = array();\n \n foreach($this as $key => $val) {\n if(isset(static::$schemaFieldsMapper[$table][$key])) {\n $row[$key] = $val;\n }\n }\n \n return $row;\n }", "title": "" }, { "docid": "38578ec011be8f7b18b0685a8a107109", "score": "0.5339401", "text": "public function load_array(array $row = []) {\n if (!isset($row[static::$pkey]) || null === $row[static::$pkey]) {\n return false;\n }\n $row = $this->setAll($row, false);\n foreach (static::$vars as $k => $v) {\n $this->DBvals[$k] = $this->vals[$k];\n }\n $this->onload($row);\n\n return $row;\n }", "title": "" }, { "docid": "3604c32ed50bf3b32be3c713ca4e0343", "score": "0.53357255", "text": "public function row()\n {\n $data = fgetcsv($this->resource,\n $this->options->length,\n $this->options->delimiter,\n $this->options->enclosure,\n $this->options->escape);\n return $data;\n }", "title": "" }, { "docid": "4bca5aaf286805df6c00ee6a0ddfca83", "score": "0.5333753", "text": "function fetchResult() {\n\t\tif ($row = pg_fetch_row($this->results)) {\n\t\t\t$resultRow = array();\n\t\t\t$i = 0;\n\n\t\t\tforeach ($row as $index => $field) {\n\t\t\t\tlist($table, $column) = $this->map[$index];\n\t\t\t\t$resultRow[$table][$column] = $row[$index];\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\treturn $resultRow;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "5431ceb09b57aa12d53a84f69adddde2", "score": "0.53300536", "text": "protected function _fetch_assoc()\n\t{\n\t\t$id = ($this->curs_id) ? $this->curs_id : $this->stmt_id;\n\t\treturn oci_fetch_assoc($id);\n\t}", "title": "" }, { "docid": "d8700e1748cc90893effa65f9cadda69", "score": "0.5326427", "text": "function db2obj(array $row)\n\t{\n\t\t// unset children and data as they are referenzes to each other\n\t\tunset($this->children); unset($this->data);\n\n\t\tforeach (self::$db_cols as $db_col => $name)\n\t\t{\n\t\t\tif ($name != 'data')\n\t\t\t{\n\t\t\t\t$this->$name = $row[$db_col];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->children = unserialize($row[$db_col]);\n\t\t\t}\n\t\t}\n\t\t$this->fix_old_template_format();\n\t}", "title": "" }, { "docid": "971f6df22a5a5d3822d49ff3e059dcc3", "score": "0.53247565", "text": "protected function getRows()\n {\n $ctr = 0;\n $data = [];\n while ($ctr < self::BLOCK_LENGTH && ($row = $this->reader->readRow())) {\n $dataRow = [];\n foreach ($this->mappingKeys as $key) {\n $dataRow[$key] = $this->getRowValueByKey($key, $row);\n }\n array_push($data, $dataRow);\n $ctr++;\n }\n return $data;\n }", "title": "" }, { "docid": "06e34a1b1f256f36737a2bfb5e29acd3", "score": "0.5322094", "text": "public function processRow(array $row)\n {\n $this->setHasErr(false);\n $json = [\n 'o-module-mapping:marker' => [],\n 'o-module-mapping:mapping' => [],\n ];\n\n // Set columns.\n $latMap = isset($this->args['column-map-lat']) ? array_keys($this->args['column-map-lat']) : [];\n $lngMap = isset($this->args['column-map-lng']) ? array_keys($this->args['column-map-lng']) : [];\n $latLngMap = isset($this->args['column-map-latlng']) ? array_keys($this->args['column-map-latlng']) : [];\n\n $defaultLatMap = isset($this->args['column-default-lat']) ? array_keys($this->args['column-default-lat']) : [];\n $defaultLngMap = isset($this->args['column-default-lng']) ? array_keys($this->args['column-default-lng']) : [];\n $defaultZoomMap = isset($this->args['column-default-zoom']) ? array_keys($this->args['column-default-zoom']) : [];\n\n // Set default values.\n $markerJson = [];\n $mappingJson = ['o-module-mapping:default_zoom' => 1];\n\n foreach ($row as $index => $value) {\n if (in_array($index, $latMap)) {\n $markerJson['o-module-mapping:lat'] = $value;\n }\n if (in_array($index, $lngMap)) {\n $markerJson['o-module-mapping:lng'] = $value;\n }\n if (in_array($index, $latLngMap)) {\n $latLng = array_map('trim', explode('/', $value));\n $markerJson['o-module-mapping:lat'] = $latLng[0];\n $markerJson['o-module-mapping:lng'] = $latLng[1];\n }\n\n if (in_array($index, $defaultLatMap)) {\n $mappingJson['o-module-mapping:default_lat'] = $value;\n }\n if (in_array($index, $defaultLngMap)) {\n $mappingJson['o-module-mapping:default_lng'] = $value;\n }\n if (in_array($index, $defaultZoomMap)) {\n $mappingJson['o-module-mapping:default_zoom'] = $value;\n }\n }\n\n if (isset($markerJson['o-module-mapping:lat']) && isset($markerJson['o-module-mapping:lng'])) {\n $json['o-module-mapping:marker'][] = $markerJson;\n }\n\n $json['o-module-mapping:mapping'] = $mappingJson;\n return $json;\n }", "title": "" }, { "docid": "347c358590de24cdd8f1eb4adb55186b", "score": "0.53196585", "text": "protected function getData($dataRow)\n {\n $data = [];\n $relateTable = $this->getParentTableName();\n $regexp = \"/{$relateTable}_(?P<name>.+)/i\";\n foreach ($dataRow as $field => $value) {\n if (preg_match($regexp, $field, $matched)) {\n $data[$matched['name']] = $value;\n }\n }\n return $data;\n }", "title": "" }, { "docid": "407b480e784b0706206a2b7ab0f76cc7", "score": "0.5319236", "text": "public function mapRow($row)\r\n\t{\r\n\t\t$linestringStruct = new LinestringStruct();\r\n\r\n\t\t$linestringStruct->id = $row->id;\r\n\t\t$linestringStruct->setId = $row->set_id;\r\n\t\t$linestringStruct->latLong = $row->lat_long;\r\n\t\t\r\n\t\treturn $linestringStruct;\r\n\t}", "title": "" }, { "docid": "6af790d8092d8daba4b0aa92ef599eb1", "score": "0.53180563", "text": "function &getRowRecord($row){\n\t\tif ( !isset($this->_cache) ) $this->_cache = array();\n\t\tif ( !isset($this->_cache['records']) ) $this->_cache['records'] = array();\n\t\t$id = $this->ids[$row];\n\t\tif ( $id == '__new__' ){\n\t\t\t$null = null;\n\t\t\treturn $null;\n\t\t}\n\t\telse {\n\t\t\tif ( !isset($this->_cache['records'][$id]) ) $this->_cache['records'][$id] =& df_get_record_by_id($id);\n\t\t}\n\t\treturn $this->_cache['records'][$id];\n\t}", "title": "" }, { "docid": "10c5f284a355b6fb22870f34fcbe0297", "score": "0.5314404", "text": "function convert_from_sql_row($row)\n\t{\n\t\t$this->TransIndex = (int)$row->TransIndex;\n\t\t$this->ItemId = (string)$row->ItemId;\n\t\t$this->UserId = (int)$row->UserId;\n\t\t$this->Amount = (float)$row->Amount;\n\t\t$this->Datestamp = (string)$row->Datestamp;\n\t\t$this->PaymentDate = (string)$row->PaymentDate;\n\t\t$this->PaymentSource = (string)$row->PaymentSource;\n\t\t$this->Status = (string)$row->Status;\n\t\t$this->TenderType = (string)$row->TenderType;\n\t\t$this->Reference = (string)$row->Reference;\n\t\t$this->Cashier = (int)$row->Cashier;\n\t\t$this->Memo = (string)$row->Memo;\n\t\t$this->Override = (bool)$row->Override;\n\t}", "title": "" }, { "docid": "1a47a32f01e318df6fa089c110c9362b", "score": "0.5308222", "text": "public function getRowFormat();", "title": "" }, { "docid": "61054913d92176c2c88e67006e58aefa", "score": "0.5308106", "text": "public function get_row() { return $this->db->get_row($this); }", "title": "" }, { "docid": "dc2d7798db1a562f34b386b402434b10", "score": "0.5303288", "text": "function convert_from_sql_row($row)\n\t{\n\t\t$this->ItemId = (string)$row->ItemId;\n\t\t$this->Title = (string)$row->Title;\n\t\t$this->Description = (string)$row->Description;\n\t\t$this->Active = (bool)$row->Active;\t\n\t\t$this->Cost = (float)$row->Cost;\n\t\t$this->Datestamp = (string)$row->Datestamp;\t\n\t\t$this->Userstamp = (int)$row->Userstamp;\n\t}", "title": "" }, { "docid": "2d17634e1723039a9426648d2dbab862", "score": "0.52912927", "text": "function getRow($sql){\n $conn = connDB();\n $stmt = $conn->prepare($sql);\n $stmt->setFetchMode(PDO::FETCH_ASSOC);\n $stmt->execute();\n return $stmt->fetch();\n}", "title": "" }, { "docid": "eafe4fc5384c6566cba4495e2c4c36f1", "score": "0.5286494", "text": "public function get_row_object($params = null)\n {\n $rawData = $this->get_row($params);\n $DataObj = new \\model\\InternalTransaction();\n if ($rawData !== null):\n \n foreach (get_object_vars($DataObj) AS $key => $value):\n \n $DataObj->$key =$rawData[$key];\n endforeach;\n endif;\n\n return $DataObj;\n }", "title": "" }, { "docid": "8969e2b6ff4c053a9908d779a067a1fd", "score": "0.5281448", "text": "public static function addRowToMap($row)\n {\n $id = static::getIdAttribute();\n if ($row !== null && isset($row[$id])) {\n self::$identityMap[$row[$id]] = $row instanceof ActiveRecord ? $row->toArray() : $row;\n $maxSize = static::getIdentityMapMaxSize();\n foreach (static::getUniqueAttributes() as $uniqueAttribute) {\n self::$uniqueAttributeToId[$uniqueAttribute][$row[$uniqueAttribute]] = $row[$id];\n }\n if ($maxSize !== -1 && count(self::$identityMap) > $maxSize) {\n array_shift(self::$identityMap);\n }\n }\n }", "title": "" }, { "docid": "1ede88e183f8afd5c3155f58b1b20c06", "score": "0.5273009", "text": "public function row() {\n\n\t\tdo_action( 'pods_pods_row', $this );\n\n\t\tif ( ! is_array( $this->row ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn (array) $this->row;\n\t}", "title": "" }, { "docid": "ec483f9b1658ee452dbce54ba2ebbad3", "score": "0.526983", "text": "static function row_object($arg, $params = false) {\n return pg_fetch_object(SQL($arg, $params));\n }", "title": "" }, { "docid": "afa886ace226976e07d9aee353132a2f", "score": "0.5267859", "text": "public function GetRow() { return $this->m_Rows[$this->m_RowPosition]; }", "title": "" }, { "docid": "bd1cc63cb7a975fd3930d967aaa71f46", "score": "0.52595115", "text": "public function fetch_assoc(){\n\t\ttry{\n\t\t\treturn $this->pdos->fetch(PDO::FETCH_ASSOC);\n\t\t}catch(PDOException $pdoe){\n\t\t $this->return_pdo_error($pdoe, $this->pdos);\n\t\t}\n\t}", "title": "" }, { "docid": "e015e1b7a21109c036a6f80d1a2256bb", "score": "0.52565974", "text": "public function result($key_field = null)\n {\n if (!$this->result_rows) {\n $this->result_rows = array();\n while ($row = mysqli_fetch_assoc($this->result)) {\n $this->result_rows[] = $row;\n }\n }\n $result = array();\n $index = 0;\n foreach ($this->result_rows as $row) {\n $key = $index;\n if (!empty($key_field) && isset($row[$key_field])) {\n $key = $row[$key_field];\n }\n $result[$key] = new stdClass();\n foreach ($row as $column => $value) {\n $this->is_serialized($value, $value);\n $result[$key]->{$column} = $this->clean($value);\n }\n $index++;\n }\n return $result;\n }", "title": "" }, { "docid": "e26f9354fd46653e19de7d99d898152c", "score": "0.5254075", "text": "public function prepareData($rowData)\n {\n $result = array();\n $data = $this->_checkData($rowData);\n foreach ($data['data'] as $key => $row) {\n $keyValue = $this->getKeyValue($row);\n $result['data'][$keyValue] = $row;\n }\n \n // If has errors\n if (isset($data['error'])) {\n $result['error'] = $data['error'];\n }\n \n return $result; \n }", "title": "" }, { "docid": "e91b55625771a342b2fae216e57a7022", "score": "0.52502716", "text": "function section($row) {\n if (!empty($row)) {\n $section = new Section();\n foreach ($row as $key => $value) {\n $section->$key = $value;\n }\n return $section;\n }\n }", "title": "" }, { "docid": "e2af020e77ae35d4ef0e1e23da3d8225", "score": "0.52381", "text": "protected function getRecordFromRow(array $row): array\n\t{\n\t\t$record = ['recordLabel' => \\App\\Fields\\Owner::getUserLabel($row['id'])];\n\t\tif ($this->isAdmin && $this->fields) {\n\t\t\t$moduleModel = reset($this->fields)->getModule();\n\t\t\t$recordModel = $moduleModel->getRecordFromArray($row);\n\t\t\tforeach ($this->fields as $fieldName => $fieldModel) {\n\t\t\t\tif (isset($row[$fieldName])) {\n\t\t\t\t\t$record[$fieldName] = $fieldModel->getUITypeModel()->getApiDisplayValue($row[$fieldName], $recordModel);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $record;\n\t}", "title": "" }, { "docid": "0d1569342e1c2d1a9f9cb552e7233f7d", "score": "0.52357554", "text": "public function getData()\n {\n $row = $this->_row;\n $criteria = @unserialize($row['criteria']);\n $data = array(\n 'id' => intval($row['id']),\n 'title' => $row['title'],\n 'criteria' => (is_array($criteria) ? $criteria : array()),\n 'frequency' => $row['frequency'],\n 'times_sent' => intval($row['sent']),\n 'feed' => $row['idx'],\n 'source' => $row['table'],\n 'timestamp_sent' => (!empty($row['timestamp_sent']) ? strtotime($row['timestamp_sent']) : null),\n 'timestamp' => (!empty($row['timestamp_created']) ? strtotime($row['timestamp_created']) : null),\n );\n return $data;\n }", "title": "" }, { "docid": "ec044c7f29c01519a9d66381b7be7ad9", "score": "0.52323693", "text": "function getRow() {\n\t\t$row = $this->data[$this->pointer_currentRow];\n\t\t$this->pointer_currentRow++;\n\t\treturn $row;\n\t}", "title": "" }, { "docid": "18ad2bc23a92e102ed6731ef061a2f70", "score": "0.5230919", "text": "public function format_row(array $row):array\n{ \n\n // Format row\n\n\n // Return\n return $row;\n\n}", "title": "" }, { "docid": "79cbbf8436c2045266d5adc802a1e3b2", "score": "0.5223117", "text": "public function getRow()\n\t{\n\t\tif (($row = fgetcsv($this->fp, $this->length, $this->delimiter)) !== FALSE)\n\t\t{\n\t\t\t$data\t=\tarray();\n\n\t\t\tforeach ($row as $column=>$value)\n\t\t\t{\n\t\t\t\t$data[$this->header[$column]] = $value;\n\t\t\t}\n\n\t\t\treturn $data;\n\t\t}\n\t}", "title": "" }, { "docid": "2e064615810476170b5e61fec032fddd", "score": "0.52166235", "text": "public function getRow($query, array $params = array())\n{\n\treturn $this->getAssocRow($query, $params);\n}", "title": "" }, { "docid": "81289c99927dfc85cc2ae24220913a1a", "score": "0.52075475", "text": "function convert_from_sql_row($row)\n\t{\n\t\t$this->LimboIndex = (int)$row->LimboIndex;\n\t\t$this->FirstName = (string)$row->FirstName;\n\t\t$this->LastName = (string)$row->LastName;\n\t\t$this->PaymentEmail = (string)$row->PaymentEmail;\n\t\t$this->Country = (string)$row->Country;\n\t\t$this->Phone = (string)$row->Phone;\n\t\t$this->ItemId = (string)$row->ItemId;\n\t\t$this->Amount = (float)$row->Amount;\n\t\t$this->PaymentDate = (string)$row->PaymentDate;\n\t\t$this->PaymentSource = (string)$row->PaymentSource;\n\t\t$this->Status = (string)$row->Status;\n\t\t$this->TenderType = (string)$row->TenderType;\n\t\t$this->Reference = (string)$row->Reference;\n\t\t$this->TrackerId = (string)$row->TrackerId;\n\t}", "title": "" }, { "docid": "d1fe532c54cc411dd018f76d3465e45b", "score": "0.52033705", "text": "function getRecord( $sql )\r\n {\r\n return pg_fetch_assoc( $sql );\r\n }", "title": "" }, { "docid": "5be6e8409b2ae0c3bc260efe75dc869e", "score": "0.5193714", "text": "public function getArray()\r\n\t{\r\n\t\treturn $this->_rowData;\r\n\t}", "title": "" }, { "docid": "f5c30ac6b64585d2f138fd95bc81c0b8", "score": "0.5180622", "text": "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $ircio;\n\t\t$ircio->cabecera->setDbValue($rs->fields('cabecera'));\n\t\t$ircio->orden->setDbValue($rs->fields('orden'));\n\t\t$ircio->op->setDbValue($rs->fields('op'));\n\t\t$ircio->puesto->setDbValue($rs->fields('puesto'));\n\t\t$ircio->contrato->setDbValue($rs->fields('contrato'));\n\t\t$ircio->fechacrea->setDbValue($rs->fields('fechacrea'));\n\t\t$ircio->horacrea->setDbValue($rs->fields('horacrea'));\n\t\t$ircio->fechafin->setDbValue($rs->fields('fechafin'));\n\t\t$ircio->horafin->setDbValue($rs->fields('horafin'));\n\t\t$ircio->material->setDbValue($rs->fields('material'));\n\t}", "title": "" }, { "docid": "3cb3a904841a338e9f0eeff3bfaaa618", "score": "0.51719594", "text": "function format_sesis_row($sesisRowArr)\n {\n #return $value;\n if(is_object($sesisRowArr))\n {\n return $sesisRowArr->data;\n } else {\n return $sesisRowArr['data'];\n }\n }", "title": "" }, { "docid": "f3a2743080edc91e81d3adec333cba7d", "score": "0.5171147", "text": "public function getRow() {\n\n if ($this->setRow($this->rs)) {\n $this->setIdProvisaoProc($this->row['id_provisao_proc']);\n $this->setIdProvisao($this->row['id_provisao']);\n $this->setIdClt($this->row['id_clt']);\n $this->setSalario($this->row['salario']);\n $this->setUmDoze($this->row['um_doze']);\n $this->setRescisao($this->row['rescisao']);\n $this->setRescisao50($this->row['rescisao50']);\n $this->setFerias($this->row['ferias']);\n $this->setUmTerco($this->row['um_terco']);\n $this->setDecimoTereiro($this->row['decimo_tereiro']);\n $this->setPis($this->row['pis']);\n $this->setFgts($this->row['fgts']);\n $this->setInss($this->row['inss']);\n $this->setRat($this->row['rat']);\n $this->setOutrasEntidades($this->row['outras_entidades']);\n $this->setLei12506Dias($this->row['lei12506_dias']);\n $this->setLei12506Valor($this->row['lei12506_valor']);\n $this->setRescisaoParcela($this->row['rescisao_parcela']);\n $this->setStatus($this->row['status']);\n return 1;\n } else {\n //$this->setError(mysql_error());\n return 0;\n }\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "2d22b186b640200c39cff7044cded932", "score": "0.0", "text": "public function show($id)\n {\n $user = User::find($id);\n $collection = collect($user->appointments);\n $doctorAppointments = $collection->sortBy('date');\n\n $appointmentDates = [];\n\n foreach ($doctorAppointments->values()->all() as $appointment) {\n $appointmentDates[$appointment->id] = date('M j, Y', strtotime($appointment->date));\n }\n\n $dates = array_unique($appointmentDates);\n \n return view('appointments.show', ['user' => $user, 'dates' => $dates]);\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ed9ed1fbed476a5eee2d610ee336419b", "score": "0.71668035", "text": "abstract protected function showResourceView($id);", "title": "" }, { "docid": "c4e62e5168376087aa9b98444deae068", "score": "0.7148806", "text": "public function show(Resource $resource)\n {\n return view('Resource.show',['resource'=> $resource]);\n }", "title": "" }, { "docid": "44902c3ee10218fb3f447cc879a08453", "score": "0.70435095", "text": "public function show(Resource $resource)\n {\n return view('resources.show', ['resource' => $resource]);\n }", "title": "" }, { "docid": "5d4d3f7e509fe12d5d3111211b420a10", "score": "0.6905246", "text": "public function view(User $user, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "1be3fb8370513aa7e96f7c3e96fdff88", "score": "0.6462615", "text": "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "title": "" }, { "docid": "c0e347a63f64e9f153f57a2c392b41fe", "score": "0.6432222", "text": "public function render(Resource $resource, $pretty);", "title": "" }, { "docid": "81fa13c8c056c1573dc37d9aa1fe4c76", "score": "0.6400549", "text": "public function showResource()\n {\n return new ServicoResource(Servico::find(2));\n }", "title": "" }, { "docid": "ccf6900a45d7abd55d749d2d68da838d", "score": "0.6382228", "text": "public function show($id)\n\t{\n\t\t$resource = $this->resource->findOrFail($id);\n\n\t\treturn View::make('backend.resources.show', compact('resource'));\n\t}", "title": "" }, { "docid": "d7a977eea0243f7e8227765f1af5a90a", "score": "0.6296829", "text": "public function show($id)\n\t{\n\n\t\t$resource = Resource::find($id);\n\t\t$view = new Viewable(array('ip_address' => Request::getClientIp(), 'user_id' => Auth::user()->ID));\n\t\tif (Auth::user()->role == 'admin') {\n\t\t\t$photos = $resource->photos()->get();\t\n\t\t\t$resource->views()->save($view);\n\t\t\t$views = $resource->views()->get();\n\t\t\t$this->layout->content = View::make(\"resources.show\", compact('resource', 'photos', 'views'));\t\n\n\t\t} else {\n\t\t\t$photos = $resource->approvedPhotos()->get();\n\t\t\t$resource->views()->save($view);\n\t\t\t$views = $resource->views()->get();\n\t\t\treturn View::make(\"resources.student_show\",compact('resource','photos','views'));\n\t\t}\n\n\t\t// $resource->views()->save($view);\n\t\t// $views = $resource->views()->get();\n\t\t// $this->layout->content = View::make(\"resources.show\", compact('resource', 'photos', 'views', 'roles'));\n\n\t\n\t}", "title": "" }, { "docid": "fa8779f6431b84477adcead7c3882393", "score": "0.6198625", "text": "public function display()\n {\n $action = (isset($_GET['act'])) ? $_GET['act'] : '';\n\n switch ($action)\n {\n case 'view':\n default:\n $this->viewPresentation();\n break;\n }\n }", "title": "" }, { "docid": "92b1787553445503cb75e7cfdf040a16", "score": "0.6087363", "text": "public function display($spec = null)\n {\n echo $this->fetch($spec);\n }", "title": "" }, { "docid": "751f007812b407d895922676e73e8078", "score": "0.60843635", "text": "public function show(Resource $resource, Identifier $identifier): View\n {\n return view('identifiers.show')->with([\n 'resource' => $resource,\n 'identifier' => $identifier,\n ]);\n }", "title": "" }, { "docid": "9206f8a318374093256bc92bd0bbda6b", "score": "0.6071554", "text": "function display($resource_name, $cache_id = null, $compile_id = null, $display = false) {\n\t\t\n\t\t// attempt to load the theme's requested template\n\t\tif (!is_file($this->template_dir.'/'.$resource_name))\n\t\t\t// template file not existant in theme, fallback to \"default\" theme\n\t\t\tif (!is_file($this->_themeDir.'default/'.$resource_name))\n\t\t\t\t// requested template file does not exist in \"default\" theme, die.\n\t\t\t\tdie('<img src=\"'.bm_baseUrl.'themes/shared/images/icons/alert.png\" align=\"middle\">'.$resource_name.': '._T('Template file not found in default theme.'));\n\t\t\telse\n\t\t\t\t$resource_name = $this->_themeDir.'default/'.$resource_name;\n\t\t\n\t\tglobal $poMMo;\n\t\tif ($poMMo->_logger->isMsg()) \n\t\t\t$this->assign('messages',$poMMo->_logger->getMsg());\n\t\tif ($poMMo->_logger->isErr())\n\t\t\t$this->assign('errors',$poMMo->_logger->getErr());\n\t\t\n\t\treturn parent::display($resource_name, $cache_id = null, $compile_id = null, $display = false);\n\t}", "title": "" }, { "docid": "b34c53aa313f707335a5ccb7e4b1da27", "score": "0.6059562", "text": "public function show($id)\n\t{\n\t\t// get the resource\n\t\t$resource = Resource::find($id);\n\t\t// get the task\n\t\t$tasks = DB::table('tasks')\n\t\t ->select(DB::raw('tasks.*, resource_task.hours_estimate'))\n\t\t ->where('resource_task.resource_id', '=', $id)\n\t\t ->join('resource_task', 'resource_task.task_id', '=', 'tasks.id')\n//\t\t ->groupBy('resource_task.task_id')\n\t\t ->get();\n\n\t\t// show the view and pass the resource to it\n\t\treturn view('resources.show', [\n\t\t\t'resource' => $resource,\n\t\t\t'tasks' => $tasks,\n\t\t\t\t]\n\t\t\t);\n\t}", "title": "" }, { "docid": "f1919612984d797496fb91a1df6bfc28", "score": "0.60360175", "text": "public function show(Resident $resident)\n {\n //\n }", "title": "" }, { "docid": "241d8f0da125e89b0d5a9603ceb4fa0e", "score": "0.6028905", "text": "public function index(Resource $resource): View\n {\n $this->authorize('view', [$resource, Identifier::class]);\n\n return view('identifiers.index')->with('identifiable', $resource);\n }", "title": "" }, { "docid": "7f5c97838b7df53c539faf706bfd91d8", "score": "0.6019086", "text": "function tpl_display($resource_name, $cache_id = null, $compile_id = null) {\n static $instance;\n if($instance === null) {\n $instance =& Smarty::instance();\n } // if\n $instance->display($resource_name, $cache_id, $compile_id);\n }", "title": "" }, { "docid": "49368f3fe013bdb064a37e819adcc997", "score": "0.6005115", "text": "public function show($id)\n\t{\n\t\t\n\t\tif(Request::ajax())\n\t\t{\n\n\t\t\treturn $this->resource($id);\n\n\t\t}\n\t\telse\n\t\t{\n\n\t\t\treturn $this->showResourceView($id);\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "a4cfc1a84759c0d8e11883b98eb477f8", "score": "0.60016555", "text": "public function display(){\n\t\techo $this->get();\n\t}", "title": "" }, { "docid": "63497a4ff75a6b12992600d5af4d1bbe", "score": "0.6000679", "text": "public function edit(Resource $resource)\n {\n $rsr = $resource;\n return view('admin.resource.edit',compact('rsr'));\n }", "title": "" }, { "docid": "bee357a367df224c60066eff44e0a556", "score": "0.5988955", "text": "public function show($id)\n {\n // load the resource\n $obj = Obj::where('id',$id)->first();\n // load alerts if any\n $alert = session()->get('alert');\n // authorize the app\n $this->authorize('view', $obj);\n\n if($obj)\n return view('apps.'.$this->app.'.'.$this->module.'.show')\n ->with('obj',$obj)->with('app',$this)->with('alert',$alert);\n else\n abort(404);\n }", "title": "" }, { "docid": "ddc28327288006b3d29c6bdc8761ca44", "score": "0.598783", "text": "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "title": "" }, { "docid": "562d922b44af24258ce6a87217d066b2", "score": "0.5956285", "text": "public function show(Reson $reson)\n {\n //\n }", "title": "" }, { "docid": "049b2443ae1ed7dbdbf5fa3f0c877184", "score": "0.595575", "text": "public static function resource($resource, $controller, $options = array()){}", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "3a1720520865c12438e9e32f0ac8decb", "score": "0.59405303", "text": "public static function view_resource($resourceid) {\n global $DB, $CFG;\n require_once($CFG->dirroot . \"/mod/resource/lib.php\");\n\n $params = self::validate_parameters(self::view_resource_parameters(),\n array(\n 'resourceid' => $resourceid\n ));\n $warnings = array();\n\n // Request and permission validation.\n $resource = $DB->get_record('resource', array('id' => $params['resourceid']), '*', MUST_EXIST);\n list($course, $cm) = get_course_and_cm_from_instance($resource, 'resource');\n\n $context = context_module::instance($cm->id);\n self::validate_context($context);\n\n require_capability('mod/resource:view', $context);\n\n // Call the resource/lib API.\n resource_view($resource, $course, $cm, $context);\n\n $result = array();\n $result['status'] = true;\n $result['warnings'] = $warnings;\n return $result;\n }", "title": "" }, { "docid": "22f57665e28f701c96d09ca9ef7b2fdf", "score": "0.59396213", "text": "public function show() {\n\t\tif (!isset($this->request->arguments[2])) {\n\t\t\t$this->index();\n\t\t} else {\n\t\t\t\n\t\t\t// General setup\n\t\t\t$this->setup();\n\n\t\t\t// Try to fetch the requested object\n\t\t\t$object = $this->objects->getByLink($this->request->arguments[2]);\n\n\t\t\tif (!empty($object)) {\n\t\t\t\t// The main View\n\t\t\t\t$this->data['view_object'] = $this->viewHelper->objectView($object[0]);\n\t\t\t} else {\n\t\t\t\t$this->data['view_object'] = \"<p>Objektet hittades inte</p>\";\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "b2c60065169a03f2b724e99c8fee9b74", "score": "0.5906451", "text": "public function actionShow()\n {\n $this->render('show');\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "f0a2d3f7b0390c444e8c91321acf86de", "score": "0.5875103", "text": "public function showAction() {\n\t\t$this->view->assign(t3lib_div::lcfirst($this->domainObjectName), $this->arguments[t3lib_div::lcfirst($this->domainObjectName)]->getValue());\n\t}", "title": "" }, { "docid": "e278522937d7847767c9d2ff92455995", "score": "0.5863409", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n ); \n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams()); \n \n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Tripjacks_Model_News i')\n ->where('i.newsid = ?', $input->id);\n\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->news = $result[0]; \n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404); \n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input'); \n }\n }", "title": "" }, { "docid": "f09a11111572f588818123ad93c4854c", "score": "0.58557", "text": "public function edit(Resource $resource)\n {\n return view('resources.edit', ['resource' => $resource]);\n }", "title": "" }, { "docid": "f999eb72e161b384685474ea01465a27", "score": "0.58499146", "text": "public function show($id){\n echo self::routeNamed();\n }", "title": "" }, { "docid": "2d015701dd9e9c87840b1d4ec5ee2e37", "score": "0.5844884", "text": "protected abstract function display();", "title": "" }, { "docid": "aed98025e8cf7b038928ec4be9d2dc72", "score": "0.58392787", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n ); \n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n \n $input = new Zend_Filter_Input($filters, $validators);\n \n $input->setData($this->getRequest()->getParams());\n\n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n\n $id = $input->id;\n \n $stampItem = $this->service->findOneBy(array('id' =>$input->id));\n \n if (isset($stampItem)) {\n \n $this->view->item = $stampItem; \n \n } else {\n \n throw new \\Zend_Controller_Action_Exception('Page not found', 404); \n }\n } else {\n \n throw new \\Zend_Controller_Action_Exception('Invalid input'); \n }\n }", "title": "" }, { "docid": "a101fb044674f8f3ed8ccf9086bced42", "score": "0.58378935", "text": "public function display() {\n\n\t\techo $this->get_display();\n\n\t}", "title": "" }, { "docid": "ca08475732e5ee596bd5c4c81b5aeb29", "score": "0.5835936", "text": "public function display( $templateName )\n\t{\n\t\techo $this->fetch( $templateName );\n\t}", "title": "" }, { "docid": "a72554267b0fa66fd60358e2691e0731", "score": "0.58178806", "text": "public function show()\n\t{\n \n \n\t}", "title": "" }, { "docid": "d56523903af509d8db2fb4be5e9cab6f", "score": "0.58128333", "text": "public function displayAction() {\n\n $this->title = 'Display your account';\n $row = $this->_memberModel->getMember($this->_idMember);\n $this->view->item = $row;\n }", "title": "" }, { "docid": "d6af1b1d4946c54112fc9b7ca038cb20", "score": "0.58112013", "text": "public function display()\n\t{\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "0734722d684368a1a7d1931af4e97397", "score": "0.5809456", "text": "public function display() {\n\t\tinclude $this->get_view( 'main' );\n\t}", "title": "" }, { "docid": "446ef7deb6ac986e5a2f1ee9f5993536", "score": "0.580564", "text": "protected function show($id)\n {\n $object = $this->model->find($id);\n \n $this->fireEvent(new ShowBefore());\n\n if (!$object)\n return response()->errorNotFound();\n \n $this->fireEvent(new ShowAfter($object));\n \n return $this->resourceResponse($object);\n }", "title": "" }, { "docid": "e3c1fc60ee75eb693b0090ab8fb943ad", "score": "0.5803467", "text": "public function get_resource();", "title": "" }, { "docid": "c9231d5b5ecd8010030cec3885590e10", "score": "0.5759732", "text": "public function display()\n {\n $this->component->display();\n\n }", "title": "" }, { "docid": "b06d640a7b681fc35b294221c2dc067f", "score": "0.5754135", "text": "public function displayAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n $survey = $em->getRepository('SondageSurveyBundle:Survey')->find($id);\n if (!$survey) {\n throw $this->createNotFoundException('Unable to find this survey.');\n }\n\n return $this->render('SondageSurveyBundle:Survey:display.html.twig', array(\n 'survey' => $survey,\n ));\n }", "title": "" }, { "docid": "663895e98beb045be2e0c33e99dc6a65", "score": "0.5752783", "text": "public function show(restok $restok)\n {\n //\n }", "title": "" }, { "docid": "e3b51ebfe04703c114ab39fc729ba43b", "score": "0.5749091", "text": "public function show(Entry $entry)\n {\n //\n }", "title": "" }, { "docid": "49b3fe3f7253d93f1c8579116d67814a", "score": "0.5737554", "text": "public function edit() {\n $data['resources'] = Resource::get($_REQUEST['idResource']);\n $this->view->show(\"resources/updateResources\", $data);\n\n }", "title": "" }, { "docid": "a5c4f542acf75c65ff05c5578f254411", "score": "0.57365245", "text": "public function show($id)\t{\n\t\t//\n\t}", "title": "" }, { "docid": "7fb606c6d980259fc7bc2be7fb3892f7", "score": "0.57364357", "text": "public function display()\n \t{\n \t\techo $this->render();\n \t}", "title": "" }, { "docid": "78932871c36f6a29063b014a4f04161e", "score": "0.5735597", "text": "public function show(Supplier $supplier)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "7b0483ca61335e839fe505d1c7e07ea7", "score": "0.57341516", "text": "public function show($id)\n {\n echo \"Showing #$id\".\" Try changing the URL\";\n $this->rendered = true;\n }", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "cda7b02a007754bae3c8156cce73b81c", "score": "0.5718055", "text": "public function show ( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "dd1af693543629ee00d083239e902b2f", "score": "0.5717979", "text": "public function show(Retur $retur)\n {\n //\n }", "title": "" }, { "docid": "cb9307a32f6d22a33b956aed56db49ba", "score": "0.5717934", "text": "public function show($id)\n\t{\n\t\t//\n\t\t\n\t}", "title": "" }, { "docid": "c9c0812c7f53687f586de3cff87efe45", "score": "0.57175046", "text": "public function show(Human $human)\n {\n //\n }", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "7b283ba1c0546a155efc95a44dd0f9cf", "score": "0.56981397", "text": "public function show(Response $response)\n {\n //\n }", "title": "" }, { "docid": "7b283ba1c0546a155efc95a44dd0f9cf", "score": "0.56981397", "text": "public function show(Response $response)\n {\n //\n }", "title": "" }, { "docid": "6dfdcece87e2a19c38d1fa63a5bfc85a", "score": "0.5691957", "text": "public function showAction($id = NULL)\n {\n if (!$this->allowShow) {\n abort(404);\n }\n\n $this->beforeShow($id);\n $this->setHeader('title', $this->showTitle);\n\n $this->showData[$this->dataName] = $this->modelName->single($id);\n if (!$this->showData[$this->dataName]) {\n abort(404);\n }\n\n $this->afterShow();\n return $this->view('show', $this->showData);\n }", "title": "" }, { "docid": "51035ab4fcd394a0e3b07734733f45cf", "score": "0.569106", "text": "protected function show() {\n }", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "9d8613d85dff593f8152f2b2cc19b2a3", "score": "0.0", "text": "public function index()\n {\n if (request()->wantsJson() and request()->has(['term', 'page'])) {\n return getEntriesForSelect2ByModel(\"App\\StatusDefinition\", 'lang_de', 'lang_de', 'lang_de', 'status_definition_id');\n }\n\n $status_definitions = StatusDefinition::all();\n // axios call?\n if (request()->wantsJson()) {\n return [\n 'message' => $status_definitions,\n ];\n }\n\n return $status_definitions;\n }", "title": "" } ]
[ { "docid": "d37ee75c4feac8dcd7712d902a70bf82", "score": "0.7607344", "text": "public function listAction()\n {\n \t/**\n \t * @todo return a paginated and ordered list, selecting only valid elements (move valid clause to rowset)\n \t */\n \t$this->view->resources = $this->_table->fetchAll(null, null, 15);\n }", "title": "" }, { "docid": "de80270cda7dc6348112d1542c1c3b6a", "score": "0.7491118", "text": "public function listingAction() {\r\n\r\n\t\t// Search Params\r\n\r\n\t\t// Do the show thingy\r\n\t\t\t// Get an array of friend ids\r\n\t\t\t// Get stuff\r\n\t\t\t// unset($values['show']);\r\n\r\n\t\t// Get blog paginator\r\n\r\n\t\t// Render\r\n\t\t$this -> _helper -> content -> setNoRender() -> setEnabled();\r\n\t}", "title": "" }, { "docid": "7a3b535f1a43231cd882da50772ec5ee", "score": "0.74615455", "text": "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', []);\n $filter = $this->Request()->getParam('filter', []);\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign(['success' => true, 'data' => $result]);\n }", "title": "" }, { "docid": "8e2e0cd6669d378062a560c70954d431", "score": "0.74168706", "text": "public function indexAction(): void\n {\n $limit = (int) $this->Request()->getParam('limit', 1000);\n $offset = (int) $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', []);\n $filter = $this->Request()->getParam('filter', []);\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "title": "" }, { "docid": "c11d55ce36b9b6bf39c0094bfe5d0fd7", "score": "0.7369403", "text": "protected function listAction()\n {\n $this->dispatch(EasyAdminEvents::PRE_LIST);\n\n $fields = $this->entity['list']['fields'];\n $paginator = $this->findAll($this->entity['class'], $this->request->query->get('page', 1), $this->config['list']['max_results'], $this->request->query->get('sortField'), $this->request->query->get('sortDirection'));\n\n //add url parameter as hidden input in the search form\n $urlParameters = $this->getUrlParameters('search');\n $this->request->request->set('extraParameters', $urlParameters);\n\n $this->dispatch(EasyAdminEvents::POST_LIST, array('paginator' => $paginator));\n\n if (method_exists($this, $customMethodName = 'create'.$this->entity['name'].'SearchForm')) {\n $searchForm = $this->{$customMethodName}();\n } else {\n $searchForm = $this->createSearchForm();\n }\n\n return $this->render($this->entity['templates']['list'], array(\n 'paginator' => $paginator,\n 'fields' => $fields,\n 'searchForm' => $searchForm->createView(),\n 'delete_form_template' => $this->createDeleteForm($this->entity['name'], '__id__')->createView(),\n ));\n }", "title": "" }, { "docid": "e008dc293c8e1bdcbf38634c0f67a5d1", "score": "0.7354826", "text": "public function listAction() {\r\n\t\t// Preload info\r\n\r\n\r\n\t\t// Search Params\r\n\r\n\r\n\t\t// Get paginator\r\n\t\t// Render\r\n\t\t$this -> _helper -> content -> setNoRender() -> setEnabled();\r\n\t}", "title": "" }, { "docid": "e508f26cee6b6110b5e315b37bf01715", "score": "0.73057467", "text": "public function actionList()\n {\n $entity = $this->getEntity();\n if (!$entity->canList()) {\n $this->setEntityFlash('error', 'Unable to list {name}.');\n $this->redirectParent();\n }\n $this->render('list', array(\n 'entity' => $entity,\n ));\n }", "title": "" }, { "docid": "109b33b70bf69a93460d062b2f83502f", "score": "0.7226076", "text": "public function index()\n {\n $resources = $this->objStoreResource->getAllResource(auth()->id());\n return view('home.resource.index',compact('resources'));\n }", "title": "" }, { "docid": "68f3dc8f909d1dfb5a37b582d41cec68", "score": "0.719963", "text": "public function index()\n {\n\n extract($this->getResourceNames());\n\n $items = $modelPath::sortable()->paginate();\n \n\n\n return $this->compileView($resourceMultiple . '.index', [$resourceMultiple => $items]);\n }", "title": "" }, { "docid": "90f60a2d2b3c2500e55bda8c3ba362da", "score": "0.71897656", "text": "public function index()\n {\n $resources = $this->resourceRepository->all();\n\n return $this->sendResponse($resources->toArray(), \"Resources retrieved successfully\");\n }", "title": "" }, { "docid": "97f3caf6ecee75a55fbfadca2b98a829", "score": "0.7182086", "text": "protected function index()\n {\n $categories = Listing::paginate(10);\n return ListingResource::collection($categories);\n }", "title": "" }, { "docid": "7a45345cbd9a9dd304c36c4a494e5375", "score": "0.71166694", "text": "public function index()\n {\n return $this->response->paginator(\n $this->filterQuery()->orderBy('id', 'desc')->paginate(request('limit', 10)),\n $this->transformer,\n ['key' => $this->resource_key]\n );\n }", "title": "" }, { "docid": "7ca504ed4a4a2ab91d9d42ce768fbca1", "score": "0.7111673", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $resources = $em->getRepository('AppBundle:Resource')->findAll();\n\n return $this->render('resource/index.html.twig', array(\n 'resources' => $resources,\n ));\n }", "title": "" }, { "docid": "260bd7b6f859caf980dd2ec389de158f", "score": "0.70988476", "text": "public function listAction()\n {\n $this->users->denyAccessToPage('admin');\n \n $all = $this->users->findAll();\n $status = $this->users->IsAuthenticated();\n \n $this->theme->setTitle(\"Visa alla användare\");\n $this->views->add('users/list-all', [\n 'users' => $all,\n 'title' => \"Visa alla användare\",\n 'status' => $status,\n ], 'main');\n \n $this->views->add('users/users-sidebar', [], 'rsidebar');\n }", "title": "" }, { "docid": "3ff8464571003af8b9340bbfec1e3e20", "score": "0.7088415", "text": "public static function listing()\n {\n echo new \\UMS\\Views\\Standard('listing.phtml');\n }", "title": "" }, { "docid": "24716f78fa1798ecee7344c0553e427b", "score": "0.70843154", "text": "protected function listAction()\n {\n $this->dispatch(EasyAdminEvents::PRE_LIST);\n\n $fields = $this->entity['list']['fields'];\n $paginator = $this->findAll($this->entity['class'], $this->request->query->get('page', 1), $this->entity['list']['max_results'], $this->request->query->get('sortField'), $this->request->query->get('sortDirection'), $this->entity['list']['dql_filter']);\n\n $this->dispatch(EasyAdminEvents::POST_LIST, array('paginator' => $paginator));\n\n $parameters = array(\n 'paginator' => $paginator,\n 'fields' => $fields,\n 'delete_form_template' => $this->createDeleteForm($this->entity['name'], '__id__')->createView(),\n );\n\n return $this->render('@VortexginWebBundle/EasyAdmin/list.html.twig', $parameters); \n }", "title": "" }, { "docid": "19fc4ced7c3387dd13afa92c5a8afae5", "score": "0.7055708", "text": "public function do_list()\r\n\t{\r\n\t\t$sorter = array(\r\n\t\t\t'name' => \"sorter\",\r\n\t\t\t'default' => 'name ASC',\r\n\t\t\t'options' => array(\r\n\t\t\t\t\"name ASC\" => \"Name\",\r\n\t\t\t)\r\n\t\t);\r\n\r\n\t\t$result = $this->model->get_records(array(\r\n\t\t\t'conditionset' => array(\r\n\t\t\t),\r\n\t\t\t'sorter' => $sorter,\r\n\t\t\t'limit' => 10\r\n\t\t\t));\r\n\r\n\t\tinclude($this->get_path(self::ACTION_TYPE_LIST));\r\n\t}", "title": "" }, { "docid": "f882d8455ca2c120342f2b2b1a1c2565", "score": "0.70281464", "text": "public function index()\n {\n $resources = DB::table('admin_resource')\n ->get()\n ->toArray();\n return view('admin.resource.index',compact('resources'));\n }", "title": "" }, { "docid": "ceecc69a5c7cd4cd8ab66be42cbae5ba", "score": "0.6991042", "text": "public function index()\n {\n $this->crud->hasAccessOrFail('list');\n\n $this->data['crud'] = $this->crud;\n $this->data['title'] = ucfirst($this->crud->entity_name_plural);\n\n // get all entries if AJAX is not enabled\n if (! $this->data['crud']->ajaxTable()) {\n $this->data['entries'] = $this->data['crud']->getEntries();\n }\n\n // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package\n return view($this->crud->getListView(), $this->data);\n\t\t//return view('bcrud::list', $this->data);\n }", "title": "" }, { "docid": "03aab1a3d0f29df3c9c01f676da4d986", "score": "0.69908047", "text": "public function index()\n\t{\n\t\t$this->listing('recent');\n\t}", "title": "" }, { "docid": "c93e1e2d6b3b2e51a961fef1bdfbb734", "score": "0.69853497", "text": "public function index()\n {\n //\n $pagesize = 20;\n $query = DataResource::orderBy('listorder','desc');\n $list = $query->paginate($pagesize);\n return view('admin.resources',['data'=>$list,'url'=>$this->url]);\n }", "title": "" }, { "docid": "a7c37722ff451d4806db867c3084436e", "score": "0.6983112", "text": "public function listing() {\r\n\r\n\t\t// Get the list of incidents from the database\r\n\t\t$incidents = $this->incident_model->list_all();\r\n\r\n\t\t// Prepare the data for the page\r\n\t\t$data = array(\r\n\t\t\t\t'title' => 'Listing of Incidents',\r\n\t\t\t\t'view' => 'incident/list',\r\n\t\t\t\t'incident_listing' => $this->incident_model->list_all()\r\n\t\t\t);\r\n\r\n\t\t// Load the view\r\n\t\t$this->load->view('main_template', $data);\r\n\r\n\t}", "title": "" }, { "docid": "36e3954f88638a9532a787d2cc444a30", "score": "0.6979115", "text": "function listAction() {\n $existing_api = _factory('sitemin_api_model_api')->get_gateway();\n $rs['api'] = $existing_api;\n $rs['_token'] = defaultHelper::page_hash_set('api,list');\n $rs['tpl'] = '/sitemin/api/view/_api_list.phtml';\n $rs['TITLE'] = 'API LIST';\n return array('view' => '/sitemin/view/index.phtml', 'data' => array('rs' => $rs));\n }", "title": "" }, { "docid": "970e35836b9768276ac32a7f819d569f", "score": "0.6969622", "text": "public function index()\n {\n return \"Here is the listing page.\";\n }", "title": "" }, { "docid": "18cd5639adcca5b283e7352aa46af4de", "score": "0.69587684", "text": "public function index()\n {\n $this->userCollectListing('0', 'ALL');\n }", "title": "" }, { "docid": "e04c1be5ce440db436266eabe923599a", "score": "0.6958369", "text": "public function index() {\n\t\tSession::set(\"list_refer\", $_SERVER['REQUEST_URI']);\n\t\t$this->set_order();\n\t\t$this->display_action_name = 'List Items';\n\t\t$this->all_rows = $this->model->tree();\n\n\t\tif(!$this->all_rows) $this->all_rows = array();\n\t\t$this->filter_block_partial = $this->render_partial(\"filter_block\");\n\t\t$this->list = $this->render_partial(\"list\");\n\t}", "title": "" }, { "docid": "a4e3ca4a3d5bf61db50faf86a8841ea7", "score": "0.6958334", "text": "public function index()\n {\n return view('admin::resource.index');\n }", "title": "" }, { "docid": "7f07ef0085f42180361c2986a0c246bc", "score": "0.6919749", "text": "public function index () {\n\t\t$this->showAll();\n\t}", "title": "" }, { "docid": "aa6c01f133b8fa50888c5287d810e174", "score": "0.69041467", "text": "public static function list() {\n $books = Book::findAll();\n\n // 2. Return/include de la view\n include( __DIR__ . '/../views/books/list.php');\n\n }", "title": "" }, { "docid": "cdbe57e5f68037a7d673227250684866", "score": "0.68880165", "text": "public function index()\n {\n return SpecializationResource::collection(Spec::paginate(10));\n }", "title": "" }, { "docid": "ce119cc9f5dd3ee1904e1fd10c2e5f4f", "score": "0.68733615", "text": "public function _list()\n\t{\n\t\t_root::getRequest()->setAction('list');\n\n\t\t$oAwardModel = new model_award();\n\t\t$tAwards = $oAwardModel->findAll();\n\n\t\t$oView = new _view('awards::list');\n\t\t$oView->tAwards = $tAwards;\n\n\t\t$this->oLayout->add('work', $oView);\n\t}", "title": "" }, { "docid": "5cbfcb7b405ab167a69ee36809e4e4c6", "score": "0.687026", "text": "public function index()\n {\n // Get items\n // $items = Item::orderBy('type', 'asc')->paginate(5);\n $items = Item::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of items as a resource\n return (ItemResource::collection($items))->response()->setStatusCode(200);\n }", "title": "" }, { "docid": "3880db888810873a15926adf0aeab153", "score": "0.68675166", "text": "public function action_list()\n {\n $model = Request::$current->param('model');\n $this->template->main->content = Model_Annex_Content::show_list($model);\n }", "title": "" }, { "docid": "22231d816d7e2f1e58fb69799b2104dc", "score": "0.68639404", "text": "public function index()\n {\n $resources = Resource::all();\n\n return view('resources.index', compact('resources'));\n }", "title": "" }, { "docid": "06987da1b6d89d3d1c996205e8a37e46", "score": "0.6860631", "text": "public function index()\n {\n //$records = Category::paginate();\n $records = Category::all();\n //return CategoryResource::collection($records);\n return $this->showAll($records);\n }", "title": "" }, { "docid": "0c8e64e28536e6fe176ead46e1742dc1", "score": "0.6852622", "text": "public function list()\n\t{\n\t\tglobal $venus;\n\t\t$this->prepare_items();\n\n\t\t$venus->plugins->run($this->prefix . 'list', $this);\n\t}", "title": "" }, { "docid": "fdd2aa08ee39ff613dfb2d2d853d735e", "score": "0.683835", "text": "public function index()\n {\n $this->checkPermission('shg_management_view');\n try {\n $data = $this->service->viewAllPartOne();\n $data = ShgListingResource::collection($data);\n\n return $this->respondWithSuccess($data);\n } catch (\\Throwable $th) {\n\n return $this->respondWithError($th);\n }\n }", "title": "" }, { "docid": "e5f507dbbe2411d3908a15f2210bc3ea", "score": "0.6836425", "text": "public function listAction() {\n $this->view->books = R::getAll('SELECT * FROM book WHERE title = :title', [':title' => 'Nodejs']);\n\n $this->render('list');\n }", "title": "" }, { "docid": "f29709817ec3db2d44ad77fdc0a55269", "score": "0.6829548", "text": "public function _index()\n\t{\n\t\t$this->_list();\n\t}", "title": "" }, { "docid": "0745910a7b8ed31535e75cefd27b7b8c", "score": "0.6801322", "text": "public function showAllAction()\n {\n //find all recipes in database\n $recipes = $this->getDoctrine()->getRepository('AppBundle:Recipe')->findAll();\n\n // show all recipes as links(it is set in Twig)\n return ['recipes' => $recipes];\n }", "title": "" }, { "docid": "41b8938878fc471b8e628e34cd112379", "score": "0.68005955", "text": "public function index(): ListResourceCollection\n {\n return new ListResourceCollection(TodoList::paginate(10));\n }", "title": "" }, { "docid": "d3a3617a0e0a9e2771655b1532f470c2", "score": "0.6792327", "text": "public function index()\n\t{\n\t\treturn BookResource::collection(Book::paginate(10));\n\t\t\n\t}", "title": "" }, { "docid": "8a85663335231f3143dcbf588b19dbfa", "score": "0.67871946", "text": "public function index()\n {\n $substances = $this->model->paginate();\n return $this->getView(__FUNCTION__ , compact('substances'));\n }", "title": "" }, { "docid": "1d602c01714319f06611ab4c66abd251", "score": "0.6786255", "text": "public function index()\n {\n //Retrieve all podcasts, ordered in descending order by their id value\n $podcasts = Podcast::orderBy('id', 'desc')->paginate(15);\n //Return the list of podcasts as a collection of PodcastResource instances\n return PodcastResource::collection($podcasts);\n }", "title": "" }, { "docid": "49c1d78d94eec140cbd39c5a0665f7cf", "score": "0.67806053", "text": "public function index()\n {\n // Get modules\n $modules = Module::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of modules as a resource\n return ModuleResource::collection($modules);\n }", "title": "" }, { "docid": "b8bbd5c4b2b076654ec4820cf0f4f302", "score": "0.67777556", "text": "public function index()\n {\n return ResponseHelper::findSuccess(\n 'Items',\n ItemResource::collection(Item::all())\n );\n }", "title": "" }, { "docid": "d73771ef09d730c6579f2a991515d849", "score": "0.67710793", "text": "public function index()\n {\n $loans = Loan::paginate();\n return LoanResource::collection($loans);\n }", "title": "" }, { "docid": "cdf88fbb286dc19c1ad1e099d34c24cd", "score": "0.67550325", "text": "public function indexAction() {\n $this->view->headTitle('List Student');\n\n $currentPageNumber = $this->getParam(\"page\", 1);\n $itemPerPage = $this->getParam(\"size\", 3);\n\n $paginator = $this->__factoryPaginator($currentPageNumber, $itemPerPage);\n $this->view->listStudents = $paginator;\n }", "title": "" }, { "docid": "a558183236ee0a06301b5345bfbe3fe1", "score": "0.67493373", "text": "public function index()\n {\n $companies = Company::paginate();\n\n return $this->resp->ok(eRespCode::C_LISTED_200_00, new CompaniesPaginationResourceCollection($companies));\n }", "title": "" }, { "docid": "5f95d2756a5e123a83fb7c11ebb43128", "score": "0.6726971", "text": "public function showList()\n\t{\n\t\tinclude(\"/m23/inc/i18n/\".$GLOBALS[\"m23_language\"].\"/m23base.php\");\n\t\tHTML_showTableHeading($I18N_objectStorageObjectName, $I18N_description, $I18N_status/*, $I18N_action*/);\n\t\tforeach ($this->foundObjects as $object)\n\t\t\tHTML_showTableRow($this->getCOSName($object), $this->getCOSDescription($object), $this->getCOSStatusHumanReadable($object)/*, $this->getCOSStatus($object)*/);\n\t}", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.67255723", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "e875f9f43f0899fd4868233dc7733127", "score": "0.67253584", "text": "public function index()\n {\n //\n $loan = Loan::all();\n return LoanResource::collection($loan);\n }", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "a69ac66edc8a557759a001c94242c947", "score": "0.6707937", "text": "function list() {\n global $app;\n $sth = $this->PDO->prepare(\"SELECT * FROM person\");\n $sth->execute();\n $result = $sth->fetchAll(\\PDO::FETCH_ASSOC);\n $app->render('default.php', [\"data\" => $result], 200);\n }", "title": "" }, { "docid": "7199baaacb728985be1992dbc56397e3", "score": "0.6706126", "text": "public function getIndex()\r\n { \r\n $response = $this->modelService->getAll();\r\n\r\n //return resources listing view\r\n return view(\\OogleeUConfig::get('config.user_index.index'), compact('response'));\r\n }", "title": "" }, { "docid": "61a33e299a8771fe4e3edd28a88e59b8", "score": "0.6694361", "text": "public function index()\n {\n $studentRecords = $this->studentRepository->getAllStudentRecords();\n return StudentResource::collection($studentRecords);\n }", "title": "" }, { "docid": "d5baeaa346c5c7d82493b224630a04fd", "score": "0.6693349", "text": "public function list()\n {\n return view('list', [\n 'component' => 'data-list',\n 'title' => 'Assets',\n 'create_url' => 'assets/create',\n 'count' => Asset::count(),\n 'columns' => [\n 'Path' => 'path',\n ],\n 'rows' => Asset::paginate(10)\n ]);\n }", "title": "" }, { "docid": "350cb7824776140ada3444d8b63c2b9a", "score": "0.66861296", "text": "public function actionList() {\n \n $allartists = array();\n $allartists = Artist::getArtistList();\n $role = Role::getRoles();\n \n require_once(ROOT . '/views/lists/artistlist.php');\n }", "title": "" }, { "docid": "e499e3e7f1a366ffebb6385468f3a0c5", "score": "0.6677873", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $lists = $em->getRepository('HunterBundle:Lists')->findAll();\n\n return $this->render('lists/index.html.twig', array(\n 'lists' => $lists,\n ));\n }", "title": "" }, { "docid": "fc34d7bf0a8503064964866cc73ae555", "score": "0.66639954", "text": "function action_ResourceList()\n {\n\n $this->view = 'ResourceList';\n }", "title": "" }, { "docid": "3768e67b371a22f226e966a98bb745f7", "score": "0.6653828", "text": "public static function list()\n {\n $data = [];\n $data[\"products\"] = DefaultModel::getProducts();\n\n View::createRoot(\"product-list\", $data)->render();\n }", "title": "" }, { "docid": "aa14178a7d612bc110499d18b35cfe1c", "score": "0.6653656", "text": "public function index()\n {\n return TodoResource::collection($this->todoRepository->findAll());\n }", "title": "" }, { "docid": "da0cc4a612f27e870e1a151346a2b1e3", "score": "0.66501856", "text": "public function index()\n {\n $sub_brand_details = SubBrandDetails::paginate(10);\n return SubBrandDetailsResource::collection($sub_brand_details);\n }", "title": "" }, { "docid": "d1c36ec734b04a00b0316be8705fdc95", "score": "0.6647826", "text": "public function defaultAction()\n {\n $this->listing();\n }", "title": "" }, { "docid": "7fe029aedf53dcfabf4dbd68136e211f", "score": "0.6647669", "text": "public function index()\n {\n $items = Item::all();\n return ItemResource::Collection($items);\n }", "title": "" }, { "docid": "d9dcf3302214d3795a06e4d23822d158", "score": "0.66456574", "text": "public function index()\n {\n $this->setDefaultData();\n $this->paginate = [\n 'contain' => ['RegisteredUsers', 'Listings'],\n 'conditions' => ['RegisteredUsers.username'\n => $this->Auth->user()['username']]\n ];\n $sellingLists = $this->paginate($this->SellingLists);\n\n $this->set(compact('sellingLists'));\n $this->set('_serialize', ['sellingLists']);\n }", "title": "" }, { "docid": "875081e376ab728c3750171aff9d42f9", "score": "0.6645129", "text": "public function index()\n {\n $items = $this->item->paginate(10);\n\n return $this->response->view('admin.item.index', [\n 'items' => $items\n ]);\n }", "title": "" }, { "docid": "ddd89648877f652ca4fa01f7cfa10b0c", "score": "0.6634571", "text": "public function index()\n {\n return \\response()->json($this->listing->all());\n }", "title": "" }, { "docid": "a3074d45fbccf32cdbe6810d56d21449", "score": "0.6627834", "text": "public function listAction()\n {\n $this->service->setPaginatorOptions($this->getAppSetting('paginator'));\n $page = (int) $this->param($this->view->translate('page'), 1);\n $projects =$this->service->retrieveAllInvestmentProjects($page);\n $this->view->projects = $projects;\n $this->view->paginator = $this->service->getPaginator($page);\n $this->view->role = Zend_Auth::getInstance()->getIdentity()->roleName;\n }", "title": "" }, { "docid": "db782cdc73caf0645a9287f4d968586b", "score": "0.66271836", "text": "public function actionList()\n {\n $dataProvider = Event::getEventsForView();\n return $this->render('list', ['listDataProvider' => $dataProvider]);\n }", "title": "" }, { "docid": "9d24fae63c3b76b647f11d2a4ee6986d", "score": "0.6619498", "text": "public function listAction() {\n $this->layout('layout/json');\n\n $sSystemKey = $_REQUEST['systemkey'];\n\n # get list label from query\n $sLang = 'en_US';\n if(isset($_REQUEST['lang'])) {\n $sLang = $_REQUEST['lang'];\n }\n\n // translating system\n $translator = new Translator();\n $aLangs = ['en_US','de_DE'];\n foreach($aLangs as $sLoadLang) {\n if(file_exists(__DIR__.'/../../../oneplace-translation/language/'.$sLoadLang.'.mo')) {\n $translator->addTranslationFile('gettext', __DIR__.'/../../../oneplace-translation/language/'.$sLang.'.mo', 'skeleton', $sLoadLang);\n }\n }\n\n $translator->setLocale($sLang);\n\n try {\n $oInstanceTbl = CoreController::$oServiceManager->get(\\OnePlace\\Instance\\Model\\InstanceTable::class);\n } catch(\\RuntimeException $e) {\n echo 'could not load instances';\n return false;\n }\n\n try {\n $oInstance = $oInstanceTbl->getSingle($sSystemKey,'instance_apikey');\n } catch(\\RuntimeException $e) {\n echo 'could not find your instance sorry';\n return false;\n }\n\n try {\n $oTag = CoreController::$aCoreTables['core-tag']->select(['tag_key'=>'category']);\n $oTag = $oTag->current();\n } catch(\\RuntimeException $e) {\n echo 'could not load tag';\n return false;\n }\n\n try {\n $oEntityTag = CoreController::$aCoreTables['core-entity-tag']->select(['tag_idfs'=>$oTag->Tag_ID,'entity_form_idfs'=>'article-single','tag_value'=>'Store Item']);\n $oEntityTag = $oEntityTag->current();\n } catch(\\RuntimeException $e) {\n echo 'could not load entity tag';\n return false;\n }\n\n try {\n $oArticleTbl = CoreController::$oServiceManager->get(\\OnePlace\\Article\\Model\\ArticleTable::class);\n $oItemsDB = $oArticleTbl->fetchAll(false,['multi_tag'=>$oEntityTag->Entitytag_ID]);\n } catch(\\RuntimeException $e) {\n echo 'could not load article';\n return false;\n }\n\n try {\n $aFields = $this->getFormFields('article-single');\n $oItemsDB = $oArticleTbl->fetchAll(false,['multi_tag'=>$oEntityTag->Entitytag_ID]);\n } catch(\\RuntimeException $e) {\n echo 'could not load article';\n return false;\n }\n\n $aItems = [];\n\n if(count($oItemsDB) > 0) {\n foreach($oItemsDB as $oItem) {\n $aPublicItem = ['id'=>$oItem->getID()];\n # add all fields to item\n foreach($aFields as $oField) {\n switch($oField->type) {\n case 'multiselect':\n # get selected\n $oTags = $oItem->getMultiSelectField($oField->fieldkey);\n $aTags = [];\n foreach($oTags as $oTag) {\n $aTags[] = ['id'=>$oTag->id,'label'=>$translator->translate($oTag->text,'skeleton',$sLang)];\n }\n $aPublicItem[$oField->fieldkey] = $aTags;\n break;\n case 'select':\n # get selected\n $oTag = $oItem->getSelectField($oField->fieldkey);\n if($oTag) {\n if (property_exists($oTag, 'tag_value')) {\n $aPublicItem[$oField->fieldkey] = ['id' => $oTag->id, 'label' => $translator->translate($oTag->tag_value,'skeleton',$sLang)];\n } else {\n $aPublicItem[$oField->fieldkey] = ['id' => $oTag->getID(), 'label' => $translator->translate($oTag->getLabel(),'skeleton',$sLang)];\n }\n }\n break;\n case 'text':\n case 'date':\n case 'textarea':\n case 'currency':\n $aPublicItem[$oField->fieldkey] = $translator->translate($oItem->getTextField($oField->fieldkey),'skeleton',$sLang);\n break;\n default:\n break;\n }\n }\n $aItems[] = $aPublicItem;\n }\n }\n\n $aReturn = ['state'=>'success','message'=>'welcome '.$oInstance->getLabel(),'category'=>$oEntityTag->tag_value,'items'=>$aItems];\n echo json_encode($aReturn);\n\n return false;\n }", "title": "" }, { "docid": "fbeb130c8eeb567e7fad3c7305600c0c", "score": "0.66142017", "text": "public function index()\n {\n $this->authorize('list', Client::class);\n\n return $this->ok($this->repo->paginate($this->request->all()));\n }", "title": "" }, { "docid": "dd6a998d3bb458c37ae44d961b97d40b", "score": "0.6612911", "text": "public function index()\n {\n //get contacts \n $contacts = Contacts::all();\n\n //return collection of contacts as a resource\n return ContactsResource::collection($contacts);\n }", "title": "" }, { "docid": "cb2a32c859addaec7f6f5ede08ff0730", "score": "0.66128945", "text": "public function index()\n {\n $responds = Respond::all();\n return RespondForListResource::collection($responds);\n }", "title": "" }, { "docid": "1a54ebc6660394a2c42a760823c26a75", "score": "0.66118765", "text": "public function index()\n {\n //Get works\n $works = Work::paginate(15);\n \n //Return collection of works as a resource\n return WorkResource::collection($works);\n }", "title": "" }, { "docid": "5c88cf68eb91b67ee61edf19f3f2ae11", "score": "0.6608679", "text": "public function index()\n {\n $inven = Inventory::paginate(15);\n\n return InventoryResource::collection($inven);\n }", "title": "" }, { "docid": "a14d9338522a9ff2dff64321e93eddd2", "score": "0.6606226", "text": "public function listAction() {\n\t\t\t$this->view->assign('tags', $this->tagRepository->findAll());\n\t\t}", "title": "" }, { "docid": "1fe94a4f4bf96984fb89ede920f77850", "score": "0.6602104", "text": "public function index()\n {\n \t$listings = Listing::orderBy( 'created_at', 'desc' )->get();\n return view( '/listings',compact( 'listings' ) );\n }", "title": "" }, { "docid": "68fd86bd147479dce20ee02a8707173a", "score": "0.6592657", "text": "public function index()\n {\n //\n return CardResource::collection($this->cardRepo->getAll());\n }", "title": "" }, { "docid": "42a6f7bb31023e697bf6d8fe877d4585", "score": "0.658499", "text": "public function index()\n {\n $items = Item::all();\n return $this->sendData('list', $items, 200);\n }", "title": "" }, { "docid": "c6efa0ee8e5b46e919fc3043bad53b51", "score": "0.65816754", "text": "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate());\n }", "title": "" }, { "docid": "28b9b7b045b952a1e51b3daabb3db025", "score": "0.65804577", "text": "function Index()\n\t\t{\n\t\t\t$this->DefaultParameters();\n//\t\t\tif (!isset($this->request->get['parent_id'])) $this->request->get['parent_id'] = '0';\n\t\t\t\r\n\t\t\t$parameters = array('num_rows');\r\n\t\t\t$this->data[$this->name] = $this->controller_model->ListItemsPaged($this->request->get, '', $parameters);\r\n\t\t\t$this->data['num_rows'] = $parameters['num_rows'];\n\t\t}", "title": "" }, { "docid": "bb496e1f3376022c7114e22d5ed48267", "score": "0.6573981", "text": "public function index()\n\t{\n\t\t$this->getItem();\n\t}", "title": "" }, { "docid": "2d21f0bc716b4c176e994f7636cae49f", "score": "0.65646654", "text": "public function index()\n {\n $branches = Branch::paginate(15);\n return BranchResource::collection($branches);\n }", "title": "" }, { "docid": "c192cad1748d0fe11000b8d2063a908e", "score": "0.65643096", "text": "public function index()\n {\n return $this->view('lists');\n }", "title": "" }, { "docid": "c4bb31a9775a0e667ef62e4f3a23aeab", "score": "0.6563258", "text": "public function listAction() {\n $this->_datatable();\n return array();\n }", "title": "" }, { "docid": "367f38d2314314134a538ae223f4cd5d", "score": "0.6560926", "text": "public function index () {\n permiss ( 'user.list' );\n\n $data = $this->entity\n ->with(['role'])\n ->where('id', '<>', \\Auth::id())\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "title": "" }, { "docid": "32b26e83b4a0ac1871cecd5a10eb2445", "score": "0.65592414", "text": "public function actionList()\r\n {\r\n $option = $this->getParams();\r\n $table = $this->getTableName($option);\r\n $model = $this->model($table);\r\n\r\n $list = $model->all(\r\n function ($ar) use ($table, $model, $option) {\r\n return $model->handleActiveRecord($ar, $table, $option);\r\n },\r\n null,\r\n Yii::$app->params['use_cache']\r\n );\r\n\r\n $this->success($list);\r\n }", "title": "" }, { "docid": "25bbf4f08be5c7ace0982ed3e61db475", "score": "0.6553109", "text": "public function list()\n {\n //\n }", "title": "" }, { "docid": "25bbf4f08be5c7ace0982ed3e61db475", "score": "0.6553109", "text": "public function list()\n {\n //\n }", "title": "" }, { "docid": "04afb7d77b84ccf4a4dd5ac14fa2c226", "score": "0.6552952", "text": "public function index()\n { \n $this->paginate = [\n 'order' => ['Firms.name' => 'ASC'],\n 'maxLimit' => 20\n ];\n $firms = $this->paginate($this->Firms);\n\n $this->set(compact('firms'));\n }", "title": "" }, { "docid": "6463720c82b75c6c9ffdb8fa297632ea", "score": "0.65498865", "text": "public function index()\n\t{\n $inventaries = Inventary::orderBy('updated_at', 'desc')->paginate(12);\n return view(self::$prefixView . 'lists', compact('inventaries'));\n\t}", "title": "" }, { "docid": "7335a64fbf88651c9293fc7e0bf1a4a1", "score": "0.6548072", "text": "public function getIndex()\r\n { \r\n $response = $this->modelService->getAll();\r\n //return resources listing view\r\n return view(\\OogleeBConfig::get('config.post_index.index'), compact('response'));\r\n }", "title": "" }, { "docid": "83b5665a886532759f6d6fd3177eb43d", "score": "0.65461665", "text": "public function actionList()\n\t{\n\t\t$this->subLayout = \"@humhub/views/layouts/_sublayout\";\n\t\t$data = Desire::getAll(10);\n\t\t$articles = $data['articles'];\n\t\t$count = $data['count'];\n\n\n\n\t\treturn $this->render('list', [\n\t\t\t'articles' => $articles,\n\t\t\t'count' => $count,\n\t\t\t'ajaxUrl' => '/desire/desire/list-ajax?sort='.Yii::$app->request->get('sort'),\n\t\t]);\n\t}", "title": "" }, { "docid": "bc892b43167344bb7550a0e63635634f", "score": "0.6540258", "text": "public function index()\n {\n $students = Student::all();\n return StudentResource::collection($students);\n \n }", "title": "" }, { "docid": "7bf076a0c3e59596e2f2d0bcbed69f85", "score": "0.65379655", "text": "public function index()\n {\n $artigos = Artigo::paginate(15);\n return ArtigoResource::collection($artigos);\n }", "title": "" }, { "docid": "2a2a07c1f7a2727a0de83a5fa87aabaa", "score": "0.65362406", "text": "public function index()\n {\n $books=Book::paginate(10);\n return BookResource::collection($books);\n }", "title": "" }, { "docid": "3ce1999f8313263a55f4c0a4a6d107fc", "score": "0.6527433", "text": "public function index()\n\t{\n\t\tif(!$this->permission->has_permission(\"specialization_viewall\")){\n\t\t\techo \"No permissions\";\n\t\t\treturn;\n\t\t}\n\n\t\t// Get all specialization from db\n\t\t$specialization = $this->SpecializationModel->GetAll();\n\n\t\t// Define data array\n\t\t$data = array(\n\t\t\t\"specialization_list\" => $specialization\n\t\t);\n\n\t\t// Load specialization view\n\t\t$this->layout->view('manage_details/specialization/specialization',$data);\n\t}", "title": "" }, { "docid": "68de2d9bace6b0d21d880e30663096bd", "score": "0.6525593", "text": "public function index()\n {\n return response([\n 'listas' => \\App\\Http\\Resources\\ListaResource::collection(\n Lista::where('user_id', auth()->id())->get()\n ),\n 'message' => 'Listado com sucesso.'\n ], 200);\n }", "title": "" }, { "docid": "37171947214224489a9ea88290a99d00", "score": "0.652515", "text": "public function index()\n {\n return view(self::$prefixView.'list');\n }", "title": "" }, { "docid": "0e0fe48e1d16e1503e2b168a9374594b", "score": "0.6524685", "text": "public function index()\n {\n $todos = $this->todo->fetchPaginated();\n\n if ($todos->count() > 0) {\n return $this->respondWithPaginatedData($todos);\n }\n return $this->respondWithNoContent();\n }", "title": "" } ]
faf10de03e1d9aadad99bc6629f7938e
$time_since_post = abs($time_since_post ); //to remove the negative sign
[ { "docid": "d9ca9c313adcada1dcae8578783be650", "score": "0.714964", "text": "function time_post($time_since_post){\n //echo $time_since_post;\n\n if ($time_since_post <= 60) {\n \n $time = ceil($time_since_post);\n echo $time . ' sec ago';\n\n }elseif($time_since_post <= (60*60)){\n\n $time = ceil($time_since_post/60);\n echo $time . ' min ago';\n\n }elseif($time_since_post <= (60*60*60)){\n\n $time = ceil($time_since_post/60/60);\n echo $time . ' hour ago';\n\n }elseif($time_since_post <= (60*60*60*24)){\n\n $time = ceil($time_since_post/60/60/24 );\n echo $time . ' day ago';\n\n }elseif($time_since_post <= (60*60*60*24*360)){\n\n $time = ceil($time_since_post/60/60/24/360) ;\n echo $time . ' year ago';\n\n }else{\n\n echo $time = 'just now';\n\n } \n }", "title": "" } ]
[ { "docid": "c7b437d8932b9664e9771e8205117f0e", "score": "0.7510919", "text": "function days_since( $post = null )\r\n{\r\n $days_ago = round(( date('U') - get_the_time('U') ) / ( 60 * 60 * 24 ));\r\n if ($days_ago == 0) {\r\n $posted = 'Today';\r\n } elseif ($days_ago == 1) {\r\n $posted = '1 day ago';\r\n } else {\r\n $posted = $days_ago . ' days ago.';\r\n }\r\n echo $posted;\r\n}", "title": "" }, { "docid": "b78fcec2d93466642cfa3cb958519951", "score": "0.69201213", "text": "function jr_ad_posted($m_time) {\r\n $time = get_post_time('G', true);\r\n $time_diff = time() - $time;\r\n\r\n if ( $time_diff > 0 && $time_diff < 24*60*60 )\r\n $h_time = sprintf( __('%s ago', APP_TD), human_time_diff( $time ) );\r\n else\r\n $h_time = mysql2date(get_option('date_format'), $m_time);\r\n echo $h_time;\r\n}", "title": "" }, { "docid": "881623ac34b2a6a5b20a0303627a214b", "score": "0.68437326", "text": "function getTimeOfPost($time){\n\treturn $time->diffForHumans(Carbon::now(),true).\" ago\";\n}", "title": "" }, { "docid": "c7b8dbec9f9bd971dde1b02691b40b59", "score": "0.63941246", "text": "function getTimeAgo($tsPost)\n{\n // $timePost = date('d/m/Y H:i:s',$value['created_at']);\n // $datePost = date_parse_from_format('d/m/Y H:i:s', $timePost);\n // $dateReply = date_parse_from_format('d/m/Y H:i:s', $timeReply);\n\n // $tsPost = mktime($datePost['hour'], $datePost['minute'], $datePost['second'], $datePost['month'], $datePost['day'], $datePost['year']);\n // $tsReply = mktime($dateReply['hour'], $dateReply['minute'], $dateReply['second'], $dateReply['month'], $dateReply['day'], $dateReply['year']);\n\n $tsReply=time();\n $distance = $tsReply - $tsPost;\n\n $result=\"\";\n switch ($distance){\n case ($distance < 60): \n $result = $distance . ' giây trước';\n break;\n case ($distance >= 60 && $distance < 3600):\n $minute = round($distance/60);\n $result = $minute . ' phút trước';\n break;\n case ($distance >= 3600 && $distance < 86400):\n $hour = round($distance/3600);\n $result = $hour . ' giờ trước';\n break;\n case (round($distance/86400)==1):\n $result = 'Hôm qua lúc ' . date('H:i', $tsReply);\n break;\n default:\n $result = date('d/m/Y \\l\\ú\\c H:i', $tsPost);\n break;\n }\n return $result;\n}", "title": "" }, { "docid": "208567339c08efeed0a97ab2cd81a4f1", "score": "0.62875164", "text": "function time_since($time_diff)\n{\n\tglobal $txt;\n\n\tif ($time_diff < 0)\n\t\t$time_diff = 0;\n\n\t// Just do a bit of an if fest...\n\tif ($time_diff > 86400)\n\t{\n\t\t$days = round($time_diff / 86400, 1);\n\t\treturn sprintf($days == 1 ? $txt['mq_day'] : $txt['mq_days'], $time_diff / 86400);\n\t}\n\t// Hours?\n\telseif ($time_diff > 3600)\n\t{\n\t\t$hours = round($time_diff / 3600, 1);\n\t\treturn sprintf($hours == 1 ? $txt['mq_hour'] : $txt['mq_hours'], $hours);\n\t}\n\t// Minutes?\n\telseif ($time_diff > 60)\n\t{\n\t\t$minutes = (int) ($time_diff / 60);\n\t\treturn sprintf($minutes == 1 ? $txt['mq_minute'] : $txt['mq_minutes'], $minutes);\n\t}\n\t// Otherwise must be second\n\telse\n\t\treturn sprintf($time_diff == 1 ? $txt['mq_second'] : $txt['mq_seconds'], $time_diff);\n}", "title": "" }, { "docid": "931cad8870ae1f15e8106429ae1d9e40", "score": "0.62164146", "text": "function timeSince ( $timestamp ) {\r\n\r\n\t$diff = time() - $timestamp;\r\n\r\n\tif ( $diff < 4000 ) {\r\n\t\t$diff = ceil ( $diff / 60 );\r\n\t\t$unit = \"minute\";\r\n\r\n\t} elseif ( $diff < 100000 ) {\r\n\t\t$diff = ceil ( $diff / 3600 );\r\n\t\t$unit = \"hour\";\r\n\r\n\t} else {\r\n\t\t$diff = ceil ( $diff / 86400 );\r\n\t\t$unit = \"day\";\r\n\t}\r\n\r\n\t$end = ( $diff <= 1 ) ? NULL : \"s\";\r\n\r\n\treturn \"$diff $unit$end ago\";\r\n\r\n}", "title": "" }, { "docid": "931cad8870ae1f15e8106429ae1d9e40", "score": "0.62164146", "text": "function timeSince ( $timestamp ) {\r\n\r\n\t$diff = time() - $timestamp;\r\n\r\n\tif ( $diff < 4000 ) {\r\n\t\t$diff = ceil ( $diff / 60 );\r\n\t\t$unit = \"minute\";\r\n\r\n\t} elseif ( $diff < 100000 ) {\r\n\t\t$diff = ceil ( $diff / 3600 );\r\n\t\t$unit = \"hour\";\r\n\r\n\t} else {\r\n\t\t$diff = ceil ( $diff / 86400 );\r\n\t\t$unit = \"day\";\r\n\t}\r\n\r\n\t$end = ( $diff <= 1 ) ? NULL : \"s\";\r\n\r\n\treturn \"$diff $unit$end ago\";\r\n\r\n}", "title": "" }, { "docid": "51520e68f555a15c5297a0464a17bffe", "score": "0.6109046", "text": "function timeSincePublish($pub_date){\r\n\t\t\t$now_date = date('U');\r\n\t\t\t$since_date = $now_date - $pub_date;\r\n\t\t\t$since_hours = floor($since_date / 60 / 60);\r\n\t\t\t$since_days = floor($since_hours / 24);\r\n\t\t\r\n\t\t\t?><span style=\"display:none;\"><?php echo $pub_date; ?></span><?php\r\n\t\t\r\n\t\t\tif($since_hours<1 && $since_days<1){\r\n\t\t\t?><em>recently</em><?php\r\n\t\t\t}elseif($since_hours>=1 && $since_days<1){\r\n\t\t\t?><em><?=$since_hours?> hour<?= ($since_hours>1 ? 's':''); ?> ago</em><?php\r\n\t\t\t}elseif($since_hours>1 && $since_days>=1){\r\n\t\t\t?><em><?= ($since_days==1 ? 'yesterday':$since_days.' days ago'); ?></em><?php\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "bec91489c41ea36887967fba643e821f", "score": "0.6099505", "text": "function timeAgo($time_ago)\n{\n\tif(date('Y-m-d H:i:s')<$time_ago)\n\t{\n\t\techo \"-\";\n\t}else{\n\t\n $time_ago = strtotime($time_ago);\n $cur_time = time();\n $time_elapsed = $cur_time - $time_ago;\n $seconds = $time_elapsed ;\n $minutes = round($time_elapsed / 60 );\n $hours = round($time_elapsed / 3600);\n $days = round($time_elapsed / 86400 );\n $weeks = round($time_elapsed / 604800);\n $months = round($time_elapsed / 2600640 );\n $years = round($time_elapsed / 31207680 );\n // Seconds\n if($seconds <= 60){\n return \"just now\";\n }\n //Minutes\n else if($minutes <=60){\n if($minutes==1){\n return \"one minute ago\";\n }\n else{\n return \"$minutes minutes ago\";\n }\n }\n //Hours\n else if($hours <=24){\n if($hours==1){\n return \"an hour ago\";\n }else{\n return \"$hours hrs ago\";\n }\n }\n //Days\n else if($days <= 7){\n if($days==1){\n return \"yesterday\";\n }else{\n return \"$days days ago\";\n }\n }\n //Weeks\n else if($weeks <= 4.3){\n if($weeks==1){\n return \"a week ago\";\n }else{\n return \"$weeks weeks ago\";\n }\n }\n //Months\n else if($months <=12){\n if($months==1){\n return \"a month ago\";\n }else{\n return \"$months months ago\";\n }\n }\n //Years\n else{\n if($years==1){\n return \"one year ago\";\n }else{\n return \"$years years ago\";\n }\n }\n}\n}", "title": "" }, { "docid": "76ce8eff916bff0f7d76b500c42f1cb7", "score": "0.60362715", "text": "function getTimeDifference($postedDateTime){\n date_default_timezone_set('America/New_York');\n $postedDateTime = date_format (new DateTime($postedDateTime), 'Y-m-d H:i:s');\n $currentTime = date('Y-m-d H:i:s', time());\n $t1 = strtotime ( $postedDateTime );\n $t2 = strtotime ( $currentTime );\n $diff = $t2 - $t1;\n $minutes = round(abs($diff) / 60, 0);\n\n if($minutes <=1){\n return \"Just Now\";\n }\n else if($minutes > 2 && $minutes <=59){\n return $minutes . \" minutes ago\";\n }\n\n else if($minutes >= 60 && $minutes < 120){\n return \"1 hour ago\";\n }\n\n else if($minutes >= 121 && $minutes < 1440){\n $hours = round(abs($minutes) / 60,0);\n return $hours. \" hours ago\";\n }\n else {\n return date_format (new DateTime($postedDateTime), 'M d, Y');\n }\n\n\n\n}", "title": "" }, { "docid": "c54fb6ef748316cbbcc65d9f8a16dc09", "score": "0.6027148", "text": "function daysAgo($timestamp){ \n date_default_timezone_set('Europe/Riga'); \n $time_ago = strtotime($timestamp); \n $current_time = time(); \n $time_difference = $current_time - $time_ago; \n $seconds = $time_difference; \n $minutes = round($seconds / 60 ); //code bellow calculates each unit by deviding seconds.\n $hours = round($seconds / 3600);\n $days = round($seconds / 86400);\n $weeks = round($seconds / 604800);\n $months = round($seconds / 2629440);\n $years = round($seconds / 31553280);\n if($seconds <= 60) \n { \n return \"Just Now\"; \n } \n else if($minutes <=60) \n { \n if($minutes==1) \n { \n return \"one minute ago\"; \n } \n else \n { \n return \"$minutes minutes ago\"; //two \"if\" statements are needed because of plural and singular.\n } \n } \n else if($hours <=24) \n { \n if($hours==1) \n { \n return \"an hour ago\"; \n } \n else \n { \n return \"$hours hrs ago\"; \n } \n } \n else if($days <= 7) \n { \n if($days==1) \n { \n return \"yesterday\"; \n } \n else \n { \n return \"$days days ago\"; \n } \n } \n else if($weeks <= 4.3) //4.3 == 52/12 \n { \n if($weeks==1) \n { \n return \"a week ago\"; \n } \n else \n { \n return \"$weeks weeks ago\"; \n } \n } \n else if($months <=12) \n { \n if($months==1) \n { \n return \"a month ago\"; \n } \n else \n { \n return \"$months months ago\"; \n } \n } \n else \n { \n if($years==1) \n { \n return \"one year ago\"; \n } \n else \n { \n return \"$years years ago\"; \n } \n } \n }", "title": "" }, { "docid": "533109e2e375c056d456d715c73a992c", "score": "0.5981862", "text": "function calcTime()\n{\n $post = get_post();\n $content = $post->post_content;\n $lenght = strlen($content);\n $time = $lenght / 120;\n echo round($time, 0);\n}", "title": "" }, { "docid": "fdd6ab0b44248fa635c42400e5e70b19", "score": "0.59110093", "text": "function time_ago($time_in){\n\t\t$time_in = is_numeric($time_in) ? $time_in : strtotime($time_in) ; \n\t\t$m = time()-$time_in; $o='just now';\n\t\t$t = array('year'=>31556926,'month'=>2629744,'week'=>604800,'day'=>86400,'hour'=>3600,'minute'=>60,'second'=>1);\n\t\tforeach($t as $u=>$s){\n\t\t\tif($s<=$m){$v=floor($m/$s); $o=\"$v $u\".($v==1?'':'s').' ago'; break;}\n\t\t}\n\t\treturn $o;\n\t}", "title": "" }, { "docid": "65a115db8dda1b727e59d4a3d9b905d6", "score": "0.57304174", "text": "public function getSince()\n {\n return $this->since;\n }", "title": "" }, { "docid": "c8aaa6f13bc65c4cdacba9e2c95dfbc7", "score": "0.5722262", "text": "function ago($time) // dit is ene functie die na gaat hoeveel tijd het geleden is\n{\n $periods = array(\"seconden\", \"minuten\", \"uren\", \"dagen\", \"weken\", \"maanden\", \"jaren\", \"decenium\"); // dit zijn de verschillende tijdsoorten\n $lengths = array(\"60\",\"60\",\"24\",\"7\",\"4.35\",\"12\",\"10\"); // hiet mee wordt bepaald hoe lang iets duurt je moet het lezen als een minuut duurt 60 seconden, een uur duurt 60 minuten, enz.\n $now = time(); // hiet wordt gekeken hoelaat het nu is\n $difference = $now - $time; // hiet wordt gekeken hoeveel seconden het verschil\n $tense = \"geleden\"; // dit is de tag die er achter moet, dus bijvoorbeeld 10 minuten \"geleden\"\n // met deze loop wordt bepaald welke van de 8 tijdsoorten er moet staan.\n for($j = 0; $difference >= $lengths[$j] && $j < count($lengths)-1; $j++) {\n $difference /= $lengths[$j];\n }\n $difference = round($difference);\n return \"$difference $periods[$j] geleden\";\n \n}", "title": "" }, { "docid": "2c8250ce9865ac12844c527764cee6d7", "score": "0.5677752", "text": "public static function GetTimeSinceLastPost($wU_id){\n\t\t$wCurrtime = time();\n\t\t$wPrevtime = mktime(12, 00, 00, 01, 01, 2020); //defaults to Noon Jan 1st 2020 EST (incase this is user's first post)\n\t\t$wResult = Database::safeQuery(\"SELECT posted_on FROM posts WHERE u_id=$wU_id ORDER BY posted_on DESC;\")->fetch_assoc();\n\t\t\n\t\tif($wResult != null){$wPrevtime = strtotime($wResult['posted_on']);} //set to most recent post timestamp\n\t\t//echo \"Time Debug: \".date(\"d/m/Y : h\\hm-s\", $wPrevtime).\"<br/>\";\n\t\treturn floor(($wCurrtime-$wPrevtime)-18000); //convert to integer seconds\n\t}", "title": "" }, { "docid": "0e1861a91f4a253722b48193cf462371", "score": "0.56661105", "text": "function publushDateFix($publishedDate){\n\t $publishedAt = date('Y-m-d', strtotime($publishedDate));\n$publishedAt = date_create($publishedAt);\n$today = date_create('now');\n$diff=date_diff($publishedAt,$today);\n\n//accesing days\n$days = $diff->d;\n//accesing years\n$years = $diff->y;\n//accesing months\n$months = $diff->m;\n//accesing hours\n$hours=$diff->h;\nif($months==0 AND $years!=0){\n\t\t\t\techo $years.\" Year ago \";}\n\t\t\t\telseif($years==0 AND $months!=0){ echo $months; if($months==1){ echo \" month ago \";} else { echo \" months ago \";}}\n\t\t\t\telseif($years!=0 AND $months!=0){ echo $years; if($years==1){ echo \" year ago \";} else { echo \" years ago \";}}\n\t\t\t\telseif($years==0 AND $months==0 AND $days!=0 ){ echo $days; if($days==1){ echo \" day ago \";} else { echo \" days ago \";}}\n\t\t\t\telseif($years==0 AND $months==0 AND $days==0 AND $hours!=0){ echo $hours; if($hours==1){ echo \" hour ago \";} else { echo \" hours ago \";}}\n\t \n\t }", "title": "" }, { "docid": "649c4720ba41fe12830c82114a444992", "score": "0.56502813", "text": "function filter_where( $where = '' ) {\r\n\t$where .= \" AND post_date > '\" . date('Y-m-d', strtotime('-99930 days')) . \"'\";\r\n\treturn $where;\r\n}", "title": "" }, { "docid": "d97eaae33fd61e5413d205c385f2053a", "score": "0.56241673", "text": "function previousDate($daysago) {\n $past_time = time() - ($daysago * 24 * 60 * 60);\n\treturn date(\"Ymd\", $past_time);\n}", "title": "" }, { "docid": "8ced3a78bbdb8c55e56c42fcf0095732", "score": "0.5612162", "text": "function ago($datefrom,$dateto=-1)\n {\n // its an error rather than the epoch\n \n if($datefrom=='0') { return \"A long time ago\"; }\n if($dateto=='-1') { $dateto = time(); }\n \n // Make the entered date into Unix timestamp from MySQL datetime field\n\n $datefrom = strtotime($datefrom);\n \n // Calculate the difference in seconds betweeen\n // the two timestamps\n\n $difference = $dateto - $datefrom;\n\n // Based on the interval, determine the\n // number of units between the two dates\n // From this point on, you would be hard\n // pushed telling the difference between\n // this function and DateDiff. If the $datediff\n // returned is 1, be sure to return the singular\n // of the unit, e.g. 'day' rather 'days'\n \n switch(true)\n {\n // If difference is less than 60 seconds,\n // seconds is a good interval of choice\n case(strtotime('-1 min', $dateto) < $datefrom):\n $datediff = $difference;\n $res = ($datediff==1) ? $datediff.' second ago' : $datediff.' seconds ago';\n break;\n // If difference is between 60 seconds and\n // 60 minutes, minutes is a good interval\n case(strtotime('-1 hour', $dateto) < $datefrom):\n $datediff = floor($difference / 60);\n $res = ($datediff==1) ? $datediff.' minute ago' : $datediff.' minutes ago';\n break;\n // If difference is between 1 hour and 24 hours\n // hours is a good interval\n case(strtotime('-1 day', $dateto) < $datefrom):\n $datediff = floor($difference / 60 / 60);\n $res = ($datediff==1) ? $datediff.' hour ago' : $datediff.' hours ago';\n break;\n // If difference is between 1 day and 7 days\n // days is a good interval \n case(strtotime('-1 week', $dateto) < $datefrom):\n $day_difference = 1;\n while (strtotime('-'.$day_difference.' day', $dateto) >= $datefrom)\n {\n $day_difference++;\n }\n \n $datediff = $day_difference;\n $res = ($datediff==1) ? 'yesterday' : $datediff.' days ago';\n break;\n // If difference is between 1 week and 30 days\n // weeks is a good interval \n case(strtotime('-1 month', $dateto) < $datefrom):\n $week_difference = 1;\n while (strtotime('-'.$week_difference.' week', $dateto) >= $datefrom)\n {\n $week_difference++;\n }\n \n $datediff = $week_difference;\n $res = ($datediff==1) ? 'last week' : $datediff.' weeks ago';\n break; \n // If difference is between 30 days and 365 days\n // months is a good interval, again, the same thing\n // applies, if the 29th February happens to exist\n // between your 2 dates, the function will return\n // the 'incorrect' value for a day\n case(strtotime('-1 year', $dateto) < $datefrom):\n $months_difference = 1;\n while (strtotime('-'.$months_difference.' month', $dateto) >= $datefrom)\n {\n $months_difference++;\n }\n \n $datediff = $months_difference;\n $res = ($datediff==1) ? $datediff.' month ago' : $datediff.' months ago';\n\n break;\n // If difference is greater than or equal to 365\n // days, return year. This will be incorrect if\n // for example, you call the function on the 28th April\n // 2008 passing in 29th April 2007. It will return\n // 1 year ago when in actual fact (yawn!) not quite\n // a year has gone by\n case(strtotime('-1 year', $dateto) >= $datefrom):\n $year_difference = 1;\n while (strtotime('-'.$year_difference.' year', $dateto) >= $datefrom)\n {\n $year_difference++;\n }\n \n $datediff = $year_difference;\n $res = ($datediff==1) ? $datediff.' year ago' : $datediff.' years ago';\n break;\n \n }\n return $res;\n }", "title": "" }, { "docid": "f002392d6ee67f44e5fd04c201e7263a", "score": "0.56097627", "text": "function time_ago( $type = 'post' ) {\n\n $d = 'comment' == $type ? 'get_comment_time' : 'get_post_time';\n return human_time_diff($d('U'), current_time('timestamp')) . \" \" . __('ago');\n\n}", "title": "" }, { "docid": "113b817c195b896219c7424206fdfdba", "score": "0.55880857", "text": "function get_the_time($format = '', $post = \\null)\n {\n }", "title": "" }, { "docid": "0195a5ce16c1feab9b46fa137fdb32f9", "score": "0.5585276", "text": "function sunset_posted_meta()\n{\n $posted_on = human_time_diff( get_the_time('U'), current_time('timestamp') );\n $categories = get_the_category();\n $separator = ', ';\n $output = '';\n $i = 1;\n\n if( !empty($categories)):\n foreach($categories as $category):\n\n if($i > 1): $output .= $separator; endif;\n $output .= '<a href=\"'. esc_url(get_category_link( $category->term_id ) ).'\" alt=\"'. esc_attr('View all posts in%s', $category->name ) .'\">'. esc_html($category->name ) .'</a>';\n\n $i++;\n endforeach;\n endif;\n\n return '<span class=\"posted-on\">Posted <a href=\"'. esc_url(get_permalink() ) .'\">'. $posted_on .'</a> ago </span><span class=\"posted-in\">'. $output .'</span>';\n}", "title": "" }, { "docid": "7ab1e41814f92b3ba0ed018b02b21b07", "score": "0.5577827", "text": "function the_time() {\n\tglobal $discussion;\n\treturn $discussion['time'];\n}", "title": "" }, { "docid": "2d4bb00ffe65b27f033569465071df66", "score": "0.5558004", "text": "function tribe_past_reverse_chronological ($post_object) {\n\t$past_ajax = (defined( 'DOING_AJAX' ) && DOING_AJAX && $_REQUEST['tribe_event_display'] === 'past') ? true : false;\n\tif(tribe_is_past() || $past_ajax) {\n\t\t$post_object = array_reverse($post_object);\n\t}\n\treturn $post_object;\n}", "title": "" }, { "docid": "e30a8a4c861b4fb8ad548b65638f5ee3", "score": "0.55398035", "text": "function time1($time) \n{\n \n$time= strtotime($time);\n $delta = time() - $time;\n\n if ($delta < 1 * MINUTE)\n {\n return $delta == 1 ? \"one second ago\" : $delta . \" seconds ago\";\n }\n if ($delta < 2 * MINUTE)\n {\n return \"a minute ago\";\n }\n if ($delta < 45 * MINUTE)\n {\n return floor($delta / MINUTE) . \" minutes ago\";\n }\n if ($delta < 90 * MINUTE)\n {\n return \"an hour ago\";\n }\n if ($delta < 24 * HOUR)\n {\n return floor($delta / HOUR) . \" hours ago\";\n }\n if ($delta < 48 * HOUR)\n {\n return \"yesterday\";\n }\n if ($delta < 30 * DAY)\n {\n return floor($delta / DAY) . \" days ago\";\n }\n if ($delta < 12 * MONTH)\n {\n $months = floor($delta / DAY / 30);\n return $months <= 1 ? \"one month ago\" : $months . \" months ago\";\n }\n else\n {\n $years = floor($delta / DAY / 365);\n return $years <= 1 ? \"one year ago\" : $years . \" years ago\";\n }\n \n}", "title": "" }, { "docid": "b59c8c01850685af0c2cf1450fd4def0", "score": "0.55301905", "text": "function getPostDate()\n{\n global $post;\n return $post[0]['created'];\n}", "title": "" }, { "docid": "6ab539d6c6236e843b7eaf0cf9a89a04", "score": "0.5515701", "text": "function adelle_theme_time_ago( $type = 'comment' ) {\r\n $d = 'comment' == $type ? 'get_comment_time' : 'get_post_time';\r\n return human_time_diff($d( 'U' ), current_time( 'timestamp' )) . \" \" . __( 'ago', 'adelle-theme' );\r\n}", "title": "" }, { "docid": "e9077f456254ddf7253fd24ea0a99fe1", "score": "0.5513228", "text": "public static function timeAgo($from, $to='') {\n\t\tif ( empty($to) ) $to = time();\n\t\t\n\t\t$from = is_string($from)? strtotime($from) : intval($from);\n\t\t$to = is_string($to)? strtotime($to) : intval($to);\n\t\t\n\t\t$since = '';\n\t\t$diff = (int) abs($to - $from); //in seconds\n\t\tif ($diff <= 3600) $since = round($diff / 60).'m ago'; /* 1 minute .. 60 minutes */\n\t\telseif ( $diff>3600 && $diff<=86400 ) $since = round($diff / 3600).'h ago'; /* 1 hour .. 24 hours */\n\t\telseif ( $diff>86400 && $diff<=604800 ) $since = round($diff / 86400).'d ago'; /* 1 day .. 7 days */\n\t\telseif ( $diff>604800 && $diff<=3024000 ) $since = round($diff / 604800).'w ago'; /* 1 week .. 5 weeks */\n\t\t\n\t\treturn $since;\n\t}", "title": "" }, { "docid": "b8eff98c9b30619003af17fcd2ca212a", "score": "0.5502659", "text": "function relativeTime($time)\n{\n $delta = strtotime('+2 hours') - strtotime($time);\n if ($delta < 2 * MINUTE) {\n return \"1 min ago\";\n }\n if ($delta < 45 * MINUTE) {\n return floor($delta / MINUTE) . \" min ago\";\n }\n if ($delta < 90 * MINUTE) {\n return \"1 hour ago\";\n }\n if ($delta < 24 * HOUR) {\n return floor($delta / HOUR) . \" hours ago\";\n }\n if ($delta < 48 * HOUR) {\n return \"yesterday\";\n }\n if ($delta < 30 * DAY) {\n return floor($delta / DAY) . \" days ago\";\n }\n if ($delta < 12 * MONTH) {\n $months = floor($delta / DAY / 30);\n return $months <= 1 ? \"1 month ago\" : $months . \" months ago\";\n } else {\n $years = floor($delta / DAY / 365);\n return $years <= 1 ? \"1 year ago\" : $years . \" years ago\";\n }\n}", "title": "" }, { "docid": "e9c207da45521ff616723bbd88318f47", "score": "0.5499778", "text": "public static function ago($t){\n\t\treturn date('Y-m-d H:i:s', time()-$t);\n\t}", "title": "" }, { "docid": "bb72722d0d7cde08beb98949a2fc7cac", "score": "0.54983014", "text": "function CloseToTarget($target_date){ \n \n $now = new DateTime(); \n $diff = abs(strtotime($target_date) - strtotime($now));\n return $diff; \n echo $now; \n \n }", "title": "" }, { "docid": "b6f896753cb99bceff649ef85e156957", "score": "0.545632", "text": "function postrelease_get_the_time($the_time, $d) {\n\tglobal $post;\n\tif($post->ID == get_option('prx_template_post_id', -1)) {\n\t\t$the_time = date($d, time());\t\n\t}\n\treturn $the_time;\t\n}", "title": "" }, { "docid": "2fbeb401cae2e8bf24287f98b66f1ba9", "score": "0.5455123", "text": "function filter_future( $where = '' )\n\t\t\t\t{\n\t\t\t\t\t$future_date = date('Y-m-d', strtotime(get_the_date( 'Y-m-d' ).\" +1 day\"));\n\t\t\t\t\t// posts in the last x days\n\t\t\t\t\t$where .= \" AND post_date >= '\" . $future_date . \"'\";\n\t\t\t\t\treturn $where;\n\t\t\t\t}", "title": "" }, { "docid": "3123eaa2a2a50f5a482deaa965101274", "score": "0.54131615", "text": "function aeplugin_datetime_MinutesSince($timeStamp){\n\t\n\t\n\t$x = new DateTime($timeStamp);\n\t$y = new DateTime('now'); \n\t$diff = $x->format('U') - $y->format('U'); \n $minDiff = floor($diff / 60); \n\treturn $minDiff;\n\n}", "title": "" }, { "docid": "396d2cd875944078e5c59b129a29ef16", "score": "0.5393477", "text": "function _ftimeAgo($time, $format = 'M j Y'){\n\t\t$now = time();\n\t\tif(!is_numeric($time)) $time = strtotime($time);\n\n\t\t$secElapsed = $now - $time;\n\t\tif($secElapsed <= 60){\n\t\t\treturn _t('just now');\n\t\t}\n\t\telseif($secElapsed <= 3540){\n\t\t\t$min = $now - $time;\n\t\t\t$min = round($min/60);\n\t\t\treturn _t('%d minutes ago', $min);\n\t\t}\n\t\telseif($secElapsed <= 3660 ){\n\t\t\treturn _t('1 hour ago');\n\t\t}\n\t\telseif(date('j-n-y', $now) == date('j-n-y', $time)){\n\t\t\treturn date(\"g:i a\", $time);\n\t\t}\n\t\telseif(date('j-n-y', mktime(0, 0, 0, date('n', $now),date('j', $now)-1, date('Y', $now))) == date('j-n-y',$time)){\n\t\t\treturn _t('yesterday');\n\t\t}\n\t\telseif($secElapsed <= 345600 ){\n\t\t\treturn date('l', $time);\n\t\t}\n\t\telse{\n\t\t\treturn date($format, $time);\n\t\t}\n\t}", "title": "" }, { "docid": "9833cf1fd523b937dceb36c84d86d363", "score": "0.53884673", "text": "function adjust_post_time($supplied_time)\n{\n\tif ( $supplied_time==get_post_time(get_settings('time_format')) )\n\t{\n\t\t$filter='time';\n\t}\n\telseif ( $supplied_time==get_post_time(get_settings('date_format')) )\n\t{\n\t\t$filter='date';\n\t}\n\t// Date or time format is set by theme -- do nothing.\n\telse\n\t{\n\t\treturn $supplied_time;\n\t}\n\t// retrieve post time in Unix timestamp format\n\t$timestamp=adjust_for_BST(get_post_time('U',true));\n\tif ($filter=='time')\n\t{\n\t\treturn date(get_settings('time_format'),$timestamp);\n\t}\n\telse\n\t{\n\t\treturn date(get_settings('date_format'),$timestamp);\n\t}\n}", "title": "" }, { "docid": "e68374c9ec009e57ed114726ec097dd4", "score": "0.5377432", "text": "function time_ago($time_ago)\r\n{\r\n $time_ago = strtotime($time_ago);\r\n $cur_time = time();\r\n $time_elapsed = $cur_time - $time_ago;\r\n $seconds = $time_elapsed;\r\n $minutes = round($time_elapsed / 60);\r\n $hours = round($time_elapsed / 3600);\r\n $days = round($time_elapsed / 86400);\r\n $weeks = round($time_elapsed / 604800);\r\n $months = round($time_elapsed / 2600640);\r\n $years = round($time_elapsed / 31207680);\r\n // Seconds\r\n if ($seconds <= 60) {\r\n return _l('time_ago_just_now');\r\n }\r\n //Minutes\r\n else if ($minutes <= 60) {\r\n if ($minutes == 1) {\r\n return _l('time_ago_minute');\r\n } else {\r\n return _l('time_ago_minutes', $minutes);\r\n }\r\n }\r\n //Hours\r\n else if ($hours <= 24) {\r\n if ($hours == 1) {\r\n return _l('time_ago_hour');\r\n } else {\r\n return _l('time_ago_hours', $hours);\r\n }\r\n }\r\n //Days\r\n else if ($days <= 7) {\r\n if ($days == 1) {\r\n return _l('time_ago_yesterday');\r\n } else {\r\n return _l('time_ago_days', $days);\r\n }\r\n }\r\n //Weeks\r\n else if ($weeks <= 4.3) {\r\n if ($weeks == 1) {\r\n return _l('time_ago_week');\r\n } else {\r\n return _l('time_ago_weeks', $weeks);\r\n }\r\n }\r\n //Months\r\n else if ($months <= 12) {\r\n if ($months == 1) {\r\n return _l('time_ago_month');\r\n } else {\r\n return _l('time_ago_months', $months);\r\n }\r\n }\r\n //Years\r\n else {\r\n if ($years == 1) {\r\n return _l('time_ago_year');\r\n } else {\r\n return _l('time_ago_years', $years);\r\n }\r\n }\r\n}", "title": "" }, { "docid": "c8f3e34a9eb2ad5ec107bb256a34452a", "score": "0.5377218", "text": "public function timeSincePublished()\n\t{\n\t\treturn $this->created_at->diffForHumans();\n\t}", "title": "" }, { "docid": "877e66ae315926cff1b692ad62425cb7", "score": "0.5368815", "text": "function previous_post($format = '%', $previous = 'previous post: ', $title = 'yes', $in_same_cat = 'no', $limitprev = 1, $excluded_categories = '')\n {\n }", "title": "" }, { "docid": "7e730d855554f1ea33ddf8fc4e642f86", "score": "0.5358643", "text": "function previous_posts($display = \\true)\n {\n }", "title": "" }, { "docid": "b2c22309da505e01c5406da6b671b365", "score": "0.5357879", "text": "function get_post_timestamp($post = \\null, $field = 'date')\n {\n }", "title": "" }, { "docid": "57b9e93b7f796323d821354954fd5535", "score": "0.5334337", "text": "function human_time_diff($from, $to = 0)\n {\n }", "title": "" }, { "docid": "79cd8ca88366fe47eab9e8118d600b08", "score": "0.5328054", "text": "function get_time_ago($time) {\n $time_difference = time() - $time;\n\n if( $time_difference < 1 ) { return 'less than 1 second ago'; }\n $condition = array( 12 * 30 * 24 * 60 * 60 => 'year',\n 30 * 24 * 60 * 60 => 'month',\n 24 * 60 * 60 => 'day',\n 60 * 60 => 'hour',\n 60 => 'minute',\n 1 => 'second'\n );\n\n foreach( $condition as $secs => $str )\n {\n $d = $time_difference / $secs;\n\n if( $d >= 1 )\n {\n $t = round( $d );\n return $t . ' ' . $str . ( $t > 1 ? 's' : '' ) . ' ago';\n }\n }\n}", "title": "" }, { "docid": "cef9952a533009b142d8c1a3dc77c048", "score": "0.5327089", "text": "function postTimeFunction($sysdate1, $sysdate2)\n{\n $sysdate = \"$sysdate1 \" . \"$sysdate2\";\n $date = time() - strtotime($sysdate);\n if ($date < 120) {\n $newdate = \"Just now\";\n return $newdate;\n } elseif ($date < 3600) {\n $newdate = ceil($date / 60) . \" mins ago\";\n return $newdate;\n } elseif ($date < 86400) {\n $newdate = ceil($date / 3600) . \" hrs ago\";\n return $newdate;\n } elseif ($date < 172800) {\n $newdate = \"Yesterday\";\n return $newdate;\n } elseif ($date < 63072000) {\n $newdate_0 = strtotime($sysdate2);\n $newdate = date(\"j-M-Y\", $newdate_0);\n return $newdate;\n } else {\n $newdate_0 = strtotime($sysdate2);\n $newdate = date(\"j-M-Y\", $newdate_0);\n return $newdate;\n }\n}", "title": "" }, { "docid": "c6abe5dcd337a97eeaa824b14346f8dc", "score": "0.53211933", "text": "public static function timeAgo($time_ago)\n {\n $cur_time \t= time();\n $time_elapsed \t= $cur_time - $time_ago;\n $seconds \t= $time_elapsed ;\n $minutes \t= round($time_elapsed / 60 );\n $hours \t\t= round($time_elapsed / 3600);\n $days \t\t= round($time_elapsed / 86400 );\n $weeks \t\t= round($time_elapsed / 604800);\n $months \t= round($time_elapsed / 2600640 );\n $years \t\t= round($time_elapsed / 31207680 );\n $result = \"\";\n // Seconds\n if($seconds <= 60)\n {\n $result = \"$seconds seconds ago\";\n }\n //Minutes\n else if($minutes <=60)\n {\n if($minutes==1)\n $result = \"one minute ago\";\n else\n $result = \"$minutes minutes ago\";\n }\n //Hours\n else if($hours <=24)\n {\n if($hours==1)\n $result = \"an hour ago\";\n else\n $result = \"$hours hours ago\";\n }\n //Days\n else if($days <= 7)\n {\n if($days==1)\n $result = \"yesterday\";\n else\n $result = \"$days days ago\";\n }\n //Weeks\n else if($weeks <= 4.3)\n {\n if($weeks==1)\n $result = \"a week ago\";\n else\n $result = \"$weeks weeks ago\";\n }\n //Months\n else if($months <=12)\n {\n if($months==1)\n $result = \"a month ago\";\n else\n $result = \"$months months ago\";\n }\n //Years\n else\n {\n if($years==1)\n $result = \"one year ago\";\n else\n $result = \"$years years ago\";\n }\n return $result;\n }", "title": "" }, { "docid": "1eda6e472e948936ada4ea9c64e89bf5", "score": "0.53187263", "text": "function graffiti_posted_meta()\n{\n $posted_on = human_time_diff(get_the_time('U'), current_time('timestamp'));\n\n $categories = get_the_category();\n $separator = ', ';\n $output = '';\n $i = 1;\n\n if (!empty($categories)):\n foreach ($categories as $category):\n if ($i > 1): $output .= $separator; endif;\n $output .= '<a href=\"' . esc_url(get_category_link($category->term_id)) . '\" alt=\"' . esc_attr('View all posts in%s', $category->name) . '\">' . esc_html($category->name) . '</a>';\n $i++; endforeach;\n endif;\n\n return '<span class=\"posted-on\">Posted <a href=\"' . esc_url(get_permalink()) . '\">' . $posted_on . '</a> ago</span> / <span class=\"posted-in\">' . $output . '</span>';\n}", "title": "" }, { "docid": "8acc0d6b420cac770887712151a104eb", "score": "0.5318266", "text": "public function getPostTime() {\n\t\treturn ($this->postTime);\n\t}", "title": "" }, { "docid": "cd13d9e7e98d38a1850568230be3fc9e", "score": "0.5313867", "text": "public static function relative_time($timestamp) {\n\t\t$diff = time() - $timestamp;\n\t\tif ($diff<60)\n\t\t\treturn $diff . \" second\" . ($diff > 1 ? 's' : '') . \" ago\";\n\t\t$diff = round($diff/60);\n\t\tif ($diff<60)\n\t\t\treturn $diff . \" minute\" . ($diff > 1 ? 's' : '') . \" ago\";\n\t\t$diff = round($diff/60);\n\t\tif ($diff<24)\n\t\t\treturn $diff . \" hour\" . ($diff > 1 ? 's' : '') . \" ago\";\n\t\t$diff = round($diff/24);\n\t\tif ($diff<7)\n\t\t\treturn $diff . \" day\" . ($diff > 1 ? 's' : '') . \" ago\";\n\t\t$diff = round($diff/7);\n\t\tif ($diff<4)\n\t\t\treturn $diff . \" week\" . ($diff > 1 ? 's' : '') . \" ago\";\n\t\treturn date(\"n/j/Y\", $timestamp);\n\t}", "title": "" }, { "docid": "22a57f3f2ff717c771a2634e0bc0ee6f", "score": "0.5309286", "text": "function classify_ad_expiry() {\r\n\tglobal $wpdb;\r\n\tglobal $redux_demo;\r\n\t$daystogo = '';\r\n\tif (!empty($redux_demo['ad_expiry'])){\r\n\t\t$daystogo = $redux_demo['ad_expiry'];\t\r\n\t\t$sql =\r\n\t\t\"UPDATE {$wpdb->posts}\r\n\t\tSET post_status = 'trash'\r\n\t\tWHERE (post_type = 'post' AND post_status = 'publish')\r\n\t\tAND DATEDIFF(NOW(), post_date) > %d\";\r\n\t\t$wpdb->query($wpdb->prepare( $sql, $daystogo ));\r\n\t}\r\n}", "title": "" }, { "docid": "8860b0c91f965cfc2f3df9a2117326ad", "score": "0.52957505", "text": "public function convert_facebook_time( $comment_time ) {\n $diff = time() - strtotime($comment_time);\n $date = strtotime($comment_time);\n if($diff > 3600){\n if($diff < 86400){\n $diff = $diff/3600;\n return round($diff,0).' hours ago on Facebook';\n } else {\n return date('d F',$date).' on Facebook';\n }\n } else{\n $diff = $diff/60;\n return round($diff,0).' minutes ago on Facebook';\n }\n }", "title": "" }, { "docid": "2f62dcb1f152b0fdc53c277262b1f734", "score": "0.5292354", "text": "public static function timeAgo($originTime){\n $timestamp = strtotime($originTime);\n\n $strTime = array(\"second\", \"minute\", \"hour\", \"day\", \"month\", \"year\");\n $length = array(\"60\",\"60\",\"24\",\"30\",\"12\",\"10\");\n /*$currentTime = time();*/\n $expression = new \\yii\\db\\Expression('NOW()');\n $now = (new \\yii\\db\\Query)->select($expression)->scalar();\n $currentTime = strtotime($now);\n\n if($currentTime >= $timestamp) {\n $diff = $currentTime- $timestamp;\n for($i = 0; $diff >= $length[$i] && $i < count($length)-1; $i++) {\n $diff = $diff / $length[$i];\n }\n\n $diff = round($diff);\n $singular = \"\";\n if($diff > 1){\n $singular = \"s\";\n }\n return $diff . \" \" . $strTime[$i] . $singular.\" ago \";\n }\n\n }", "title": "" }, { "docid": "ae56b9edd7a07eed3b7ed730f5b6c621", "score": "0.52868664", "text": "function get_timeago( $ptime )\n{\n $estimate_time = time() - $ptime;\n\n if( $estimate_time < 1 )\n {\n return 'less than 1 second ago';\n }\n\n $condition = array(\n 12 * 30 * 24 * 60 * 60 => 'year',\n 30 * 24 * 60 * 60 => 'month',\n 24 * 60 * 60 => 'day',\n 60 * 60 => 'hour',\n 60 => 'minute',\n 1 => 'second'\n );\n\n foreach( $condition as $secs => $str )\n {\n $d = $estimate_time / $secs;\n\n if( $d >= 1 )\n {\n $r = round( $d );\n return 'about ' . $r . ' ' . $str . ( $r > 1 ? 's' : '' ) . ' ago';\n }\n }\n}", "title": "" }, { "docid": "d9557c06e35758e25344a584abba4fad", "score": "0.52791727", "text": "function subtract($time1, $time2)\n{\n\t$total=$time1-$time2;\n\treturn $total;\n}", "title": "" }, { "docid": "56df7f23f94fdaf759d891d6c4067163", "score": "0.52668476", "text": "function ago($time)\n{\n $periods = array(\"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"year\", \"decade\");\n $lengths = array(\"60\",\"60\",\"24\",\"7\",\"4.35\",\"12\",\"10\");\n\n $now = time();\n\n $difference = $now - $time;\n $tense = \"ago\";\n\n for($j = 0; $difference >= $lengths[$j] && $j < count($lengths)-1; $j++) {\n $difference /= $lengths[$j];\n }\n\n $difference = round($difference);\n\n if($difference != 1) {\n $periods[$j].= \"s\";\n }\n\n return \"$difference $periods[$j] 'ago' \";\n}", "title": "" }, { "docid": "be21983623d459323cf9152286b396d8", "score": "0.5266594", "text": "function get_time_ago( $time )\n{\n $time_difference = time() - $time;\n \n if( $time_difference < 1 ) { return 'less than 1 second ago'; }\n $condition = array( 12 * 30 * 24 * 60 * 60 => 'year',\n 30 * 24 * 60 * 60 => 'month',\n 24 * 60 * 60 => 'day',\n 60 * 60 => 'hour',\n 60 => 'minute',\n 1 => 'second'\n );\n \n foreach( $condition as $secs => $str )\n {\n $d = $time_difference / $secs;\n \n if( $d >= 1 )\n {\n $t = round( $d );\n return $t . ' ' . $str . ( $t > 1 ? 's' : '' ) . ' ago';\n }\n }\n}", "title": "" }, { "docid": "b704642ae870a3712f6aab16c24ce36d", "score": "0.5253369", "text": "public static function agoFromTime($time, $t){\n\t\treturn date('Y-m-d H:i:s', $time-$t);\n\t}", "title": "" }, { "docid": "d42e120eb6c77780002eb170789c3c43", "score": "0.52385956", "text": "function TimeAgo($datefrom,$dateto=-1) {\n\t\t// its an error rather than the epoch\n\n\t\tif($datefrom<=0) { return \"A long time ago\"; }\n\t\tif($dateto==-1) { $dateto = time(); }\n\n\t\t// Calculate the difference in seconds betweeen\n\t\t// the two timestamps\n\n\t\t$difference = $dateto - $datefrom;\n\n\t\t// If difference is less than 60 seconds,\n\t\t// seconds is a good interval of choice\n\n\t\tif($difference < 60) {\n\t\t\t$interval = \"s\";\n\t\t}\n\n\t\t// If difference is between 60 seconds and\n\t\t// 60 minutes, minutes is a good interval\n\t\telseif($difference >= 60 && $difference<60*60) {\n\t\t\t$interval = \"n\";\n\t\t}\n\n\t\t// If difference is between 1 hour and 24 hours\n\t\t// hours is a good interval\n\t\telseif($difference >= 60*60 && $difference<60*60*24) {\n\t\t\t$interval = \"h\";\n\t\t}\n\n\t\t// If difference is between 1 day and 7 days\n\t\t// days is a good interval\n\t\telseif($difference >= 60*60*24 && $difference<60*60*24*7){\n\t\t\t$interval = \"d\";\n\t\t}\n\n\t\t// If difference is between 1 week and 30 days\n\t\t// weeks is a good interval\n\t\telseif($difference >= 60*60*24*7 && $difference <60*60*24*30) {\n\t\t\t$interval = \"ww\";\n\t\t}\n\n\t\t// If difference is between 30 days and 365 days\n\t\t// months is a good interval, again, the same thing\n\t\t// applies, if the 29th February happens to exist\n\t\t// between your 2 dates, the function will return\n\t\t// the 'incorrect' value for a day\n\t\telseif($difference >= 60*60*24*30 && $difference <60*60*24*365) {\n\t\t\t$interval = \"m\";\n\t\t}\n\n\t\t// If difference is greater than or equal to 365\n\t\t// days, return year. This will be incorrect if\n\t\t// for example, you call the function on the 28th April\n\t\t// 2008 passing in 29th April 2007. It will return\n\t\t// 1 year ago when in actual fact (yawn!) not quite\n\t\t// a year has gone by\n\t\telseif($difference >= 60*60*24*365) {\n\t\t\t$interval = \"y\";\n\t\t}\n\n\t\t// Based on the interval, determine the\n\t\t// number of units between the two dates\n\t\t// From this point on, you would be hard\n\t\t// pushed telling the difference between\n\t\t// this function and DateDiff. If the $datediff\n\t\t// returned is 1, be sure to return the singular\n\t\t// of the unit, e.g. 'day' rather 'days'\n\n\t\tswitch($interval) {\n\t\t\tcase \"m\":\n\t\t\t$months_difference = floor($difference / 60 / 60 / 24 /29);\n\t\t\twhile (mktime(date(\"H\", $datefrom), date(\"i\", $datefrom), date(\"s\", $datefrom), date(\"n\", $datefrom)+($months_difference), date(\"j\", $dateto), date(\"Y\", $datefrom)) < $dateto) {\n\t\t\t\t$months_difference++;\n\t\t\t}\n\t\t\t$datediff = $months_difference;\n\n\t\t\t// We need this in here because it is possible\n\t\t\t// to have an 'm' interval and a months\n\t\t\t// difference of 12 because we are using 29 days\n\t\t\t// in a month\n\n\t\t\tif($datediff==12) {\n\t\t\t\t$datediff--;\n\t\t\t}\n\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$this->lang()->index->monthAgo : \"$datediff \".$this->lang()->index->monthsAgo;\n\t\t\tbreak;\n\n\t\t\tcase \"y\":\n\t\t\t$datediff = floor($difference / 60 / 60 / 24 / 365);\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$string->index->yearAgo : \"$datediff \".$this->lang()->index->yearsAgo;\n\t\t\tbreak;\n\n\t\t\tcase \"d\":\n\t\t\t$datediff = floor($difference / 60 / 60 / 24);\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$this->lang()->index->dayAgo : \"$datediff \".$this->lang()->index->daysAgo;\n\t\t\tbreak;\n\n\t\t\tcase \"ww\":\n\t\t\t$datediff = floor($difference / 60 / 60 / 24 / 7);\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$this->lang()->index->weekAgo : \"$datediff \".$this->lang()->index->weeksAgo;\n\t\t\tbreak;\n\n\t\t\tcase \"h\":\n\t\t\t$datediff = floor($difference / 60 / 60);\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$this->lang()->index->hourAgo : \"$datediff \".$this->lang()->index->hoursAgo;\n\t\t\tbreak;\n\n\t\t\tcase \"n\":\n\t\t\t$datediff = floor($difference / 60);\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$this->lang()->index->minuteAgo :\"$datediff \".$this->lang()->index->minutesAgo;\n\t\t\tbreak;\n\n\t\t\tcase \"s\":\n\t\t\t$datediff = $difference;\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$this->lang()->index->secondAgo :\"$datediff \".$this->lang()->index->secondsAgo;\n\t\t\tbreak;\n\t\t}\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "fd9380cee8ebaebb7c822c9dbd0de29f", "score": "0.5234224", "text": "function timeSince($since) {\n $chunks = array(\n array(60 * 60 * 24 * 365 , 'year'),\n array(60 * 60 * 24 * 30 , 'month'),\n array(60 * 60 * 24 * 7, 'week'),\n array(60 * 60 * 24 , 'day'),\n array(60 * 60 , 'hour'),\n array(60 , 'min'),\n array(1 , 'sec')\n );\n\n for ($i = 0, $j = count($chunks); $i < $j; $i++) {\n $seconds = $chunks[$i][0];\n $name = $chunks[$i][1];\n if (($count = floor($since / $seconds)) != 0) {\n break;\n }\n }\n\n $print = ($count == 1) ? '1 '.$name : \"$count {$name}s\";\n return $print;\n }", "title": "" }, { "docid": "6e24b270df34f7e33a663d1f185c7b94", "score": "0.52331275", "text": "public function getDateAgo() {return $this->getDate() ? $this->getTimeDisplay($this->getDate()) : 'unknown';}", "title": "" }, { "docid": "8adcde046a01d6c8bb138d1b6222f998", "score": "0.52247787", "text": "function sortByDate( $a, $b ) {\n return strtotime($a->post_date) - strtotime($b->post_date);\n}", "title": "" }, { "docid": "18cbeb41b150aa44f5696c0e143c4fe2", "score": "0.5224168", "text": "public function getCreatedTimeAgo() {\n $timeStamp = $this->getCreatedTime('U');\n $elapsed = time() - $timeStamp;\n \n if ($elapsed < 1)\n return 'just now';\n\n $lengths = array( 12 * 30 * 24 * 60 * 60 => 'year',\n 30 * 24 * 60 * 60 => 'month',\n 24 * 60 * 60 => 'day',\n 60 * 60 => 'hour',\n 60 => 'minute',\n 1 => 'second');\n\n foreach ($lengths as $secs => $str)\n {\n $d = $elapsed / $secs;\n if ($d >= 1)\n {\n $r = round($d);\n return $r . ' ' . $str . ($r > 1 ? 's' : '') . ' ago';\n }\n }\n }", "title": "" }, { "docid": "a8a7e0d406707b66d7a4c6626542b486", "score": "0.5209193", "text": "function update_thread_timestamp($thread) {\n $posts = BoincPost::enum(\"thread=$thread->id and hidden=0 order by timestamp desc limit 1\");\n if (count($posts)>0) {\n $post = $posts[0];\n $thread->update(\"timestamp=$post->timestamp\");\n }\n}", "title": "" }, { "docid": "b20481da989ccd8d47146f7653edbcfd", "score": "0.5208814", "text": "function sunset_posted_meta()\r\n{\r\n $last_modified = human_time_diff(get_the_modified_time('U'), current_time('U'));\r\n $posted = human_time_diff(get_the_time('U'), current_time('U'));\r\n $output = '';\r\n\r\n\r\n if ($last_modified > ($posted + 86400)) {\r\n $edited = ', Last modified ' . $last_modified . ' ago';\r\n } else {\r\n $edited = '';\r\n }\r\n\r\n $categories = get_the_category();\r\n if (!empty($categories) && is_array($categories)) {\r\n $i = 1;\r\n foreach ($categories as $category) {\r\n $output .= ($i > 1) ? ', ' : '';\r\n $output .= '<a href=\"' . esc_url(get_category_link($category->term_id)) . '\" alt=\"' . esc_attr('View all posts in%s', $category->name) . '\" target=\"_blank\">' . esc_html($category->name) . '</a>';\r\n $i++;\r\n }\r\n }\r\n\r\n return '<span class=\"posted-on\">Posted on <a href=\"' . esc_url(get_the_permalink()) . '\" target=\"_blank\">' . get_the_date() . '</a>' . $edited . '</span> / <span class=\"posted-in\"> category :' . $output . '</span>';\r\n}", "title": "" }, { "docid": "8beed4c0ae4726c0ab77098373d42b4c", "score": "0.5207597", "text": "function modified_seo_date(){\n $u_time = get_the_time('U');\n $u_modified_time = get_the_modified_time('U');\nif ($u_modified_time > $u_time) {\n echo \"Last updated: <time datetime=\";\n the_modified_time('c');\n echo \" itemprop='dateModified' class='entry-time'>\";\n the_modified_time('F jS, Y');\n echo \"</time>\"; }\nelse {\n echo \"Published on: <time datetime=\";\n the_time('c');\n echo \" itemprop='datePublished' class='entry-time'>\";\n the_time('F jS, Y');\n echo \"</time>\"; \n }\n}", "title": "" }, { "docid": "70edd964dcc805c34233b719ac222a31", "score": "0.52063787", "text": "function filter_where($where = '') {\n global $popular_days;\n //posts in the last X days\n $where .= \" AND post_date > '\" . date('Y-m-d', strtotime('-'.$popular_days.' days')) . \"'\";\n return $where;\n}", "title": "" }, { "docid": "f44a0c0c4413067fc53491d9c1f9fbb1", "score": "0.520539", "text": "function timestamp_age($timestamp) {\n\t$then = new DateTime($timestamp);\n\t$now = new DateTime(gmdate(\"Y-m-d H:i:s\"));\n\t$delta = (int)$now->format(\"U\") - (int)$then->format(\"U\");\n\treturn $delta;\n}", "title": "" }, { "docid": "d598f9d0ed448a433898b92c989702aa", "score": "0.5195337", "text": "function mysupport_relative_time($statustime)\r\n{\r\n\tglobal $lang;\r\n\t\r\n\t$lang->load(\"mysupport\");\r\n\t\r\n\t$time = TIME_NOW - $statustime;\r\n\t\r\n\tif($time <= 60)\r\n\t{\r\n\t\treturn $lang->mysupport_just_now;\r\n\t}\r\n\telse\r\n\t{\r\n\t\t$options = array();\r\n\t\tif($time >= 864000)\r\n\t\t{\r\n\t\t\t$options['hours'] = false;\r\n\t\t\t$options['minutes'] = false;\r\n\t\t\t$options['seconds'] = false;\r\n\t\t}\r\n\t\treturn nice_time($time) . \" \" . $lang->mysupport_ago;\r\n\t}\r\n}", "title": "" }, { "docid": "632a1d6859ddd00f1803a737a1b18f38", "score": "0.5193856", "text": "public function timeAgo($date)\n {\n $now = date('Y-m-d H:i:s');\n $diff = floor((abs(strtotime($now)) - strtotime($date)) / 3600);\n $output = $diff < 24;\n \n return $output;\n }", "title": "" }, { "docid": "95ae109eea3a381beae8dc4fd22602f6", "score": "0.51854473", "text": "function ci_last_update()\n{\n\tglobal $post;\n\t$old_post = $post;\n\t$data = array();\n\t$posts = get_posts('posts_per_page=1&order=DESC&orderby=date');\n\tforeach ($posts as $post)\n\t{\n\t\tsetup_postdata($post);\t\n\t\t$data['date'] = get_the_date();\n\t\t$data['time'] = get_the_time();\n\t}\n\t$post = $old_post;\n\tsetup_postdata($post);\n\treturn $data;\n}", "title": "" }, { "docid": "44b803c0b9a80185c7334f042262bba2", "score": "0.5172925", "text": "public function getPosted_at () {\n\t$preValue = $this->preGetValue(\"posted_at\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->posted_at;\n\treturn $data;\n}", "title": "" }, { "docid": "f3ecf5f0da3a457d7c1fbe0a74aa0c16", "score": "0.5158492", "text": "private function setBlogTime( $time ) {\n\t\tglobal $current_time;\n\t\t$current_time = $time;\n\t\treturn strtotime( $time );\n\t}", "title": "" }, { "docid": "bf307fd05fa676ee7257d28080a5203f", "score": "0.51466614", "text": "function cal_times($times){\n\t\t$diffTime = time()-strtotime($times);\n\t\t//echo $diffTime; exit();\n\t\tif($diffTime>31104000){\n\n\t\t\t$time = ceil($diffTime/31104000);\n\n\t\t\treturn $time.' year ago';\n\n\t\t}elseif($diffTime>2492000){\n\n\t\t\t$time = ceil($diffTime/2492000);\n\n\t\t\treturn $time.' months ago';\n\n\t\t}elseif($diffTime>86400){\n\n\t\t\t$time = ceil($diffTime/86400);\n\n\t\t\treturn $time.' days ago';\n\n\t\t}elseif($diffTime>3600){\n\n\t\t\t$time = ceil($diffTime/3600);\n\n\t\t\treturn $time.' hours ago';\n\n\t\t}elseif($diffTime>60){\n\n\t\t\t$time = ceil($diffTime/60);\n\n\t\t\treturn $time.' minutes ago';\n\n\t\t}else{\n\n\t\t\treturn $diffTime.' second ago';\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "7459c1cdf7ca583f3650db3ae7fb458d", "score": "0.51386654", "text": "function format_date( $timestamp_str ) {\n\t$format = 'M d, Y H:i';\n\t$timestamp = (int) $timestamp_str;\n\t$full_time = date( $format, $timestamp );\n\t$time_diff = time() - $timestamp;\n\tif ( $time_diff > 0 && $time_diff < 24 * 60 * 60 )\n\t\t$h_time = $h_time = sprintf( '%s ago' , human_time_diff( $timestamp ) );\n\telse\n\t\t$h_time = date( get_option( 'date_format', $format ), $timestamp );\n\treturn $h_time;\n}", "title": "" }, { "docid": "78164d2ddd3aff3d3e1955950479a894", "score": "0.5130135", "text": "private function build_post_publish_timestamp() {\n\t\t$format = 'U';\n\n\t\tif ( empty( $this->post->post_date_gmt ) || '0000-00-00 00:00:00' === $this->post->post_date_gmt ) {\n\t\t\t$timestamp = time();\n\t\t} else {\n\t\t\t$timestamp = (int) get_post_time( $format, true, $this->post, true );\n\t\t}\n\n\t\t/** This filter is documented in wp-includes/general-template.php. */\n\t\t$filtered_timestamp = apply_filters( 'get_the_date', $timestamp, $format, $this->post );\n\n\t\t// Guard against a plugin poorly filtering get_the_date to be something other than a Unix timestamp.\n\t\tif ( is_int( $filtered_timestamp ) ) {\n\t\t\t$timestamp = $filtered_timestamp;\n\t\t}\n\n\t\treturn $timestamp;\n\t}", "title": "" }, { "docid": "ed9fd329b464c9673f36e57dc6dc4848", "score": "0.5129129", "text": "function timeDiff($firstTime,$lastTime)\n{\n$firstTime=strtotime($firstTime);\n$lastTime=strtotime($lastTime);\n$timeDiff = ($lastTime-$firstTime)/86400;\nreturn $timeDiff;\n}", "title": "" }, { "docid": "ed9fd329b464c9673f36e57dc6dc4848", "score": "0.5129129", "text": "function timeDiff($firstTime,$lastTime)\n{\n$firstTime=strtotime($firstTime);\n$lastTime=strtotime($lastTime);\n$timeDiff = ($lastTime-$firstTime)/86400;\nreturn $timeDiff;\n}", "title": "" }, { "docid": "a6bbd07fd7fb8481772177bcd6cb907f", "score": "0.5123937", "text": "function minutos_transcurridos($fecha_i,$fecha_f)\n{\n$minutos = (strtotime($fecha_i)-strtotime($fecha_f))/60;\n$minutos = abs($minutos); $minutos = floor($minutos);\nreturn $minutos;\n}", "title": "" }, { "docid": "f86c84e6699495de77e51a599811092d", "score": "0.51102996", "text": "public function calculatePostCreated($post)\n {\n $diffTime = TIME - $post->created_at;\n\n if ($diffTime > DateTime::MONTH) {\n return gmdate(\"m-d H:i:s\", $diffTime);\n }\n\n if ($diffTime > DateTime::DAY) {\n return gmdate(\"d H:i:s\", $diffTime);\n }\n\n if ($diffTime > DateTime::HOUR) {\n return gmdate(\"H:i:s\", $diffTime);\n }\n\n if ($diffTime > DateTime::MINUTE) {\n return gmdate(\"i:s\", $diffTime);\n }\n\n if ($diffTime > DateTime::SECOND) {\n return gmdate(\"s\", $diffTime);\n }\n }", "title": "" }, { "docid": "d277a1914840a84036230fca711546df", "score": "0.5107129", "text": "static function timeElapsed($timestamp)\n {\n $d1 = new DateTime($timestamp);\n $d2 = new DateTime();\n $interval = $d1->diff($d2);\n $totalDiff = abs(time() - strtotime($timestamp)); // diff in seconds\n if ($totalDiff < 60) return \"seconds ago\";\n if ($totalDiff >= 60 && $totalDiff < 3600) return $interval->i . \" minutes ago\";\n if ($totalDiff >= 3600 && $totalDiff < 86400) return $interval->h . \" hours ago\";\n if ($totalDiff >= 86400) return $interval->d . \" days ago\";\n }", "title": "" }, { "docid": "e92d5a968932d04e75e1edbda9bf0ec5", "score": "0.51007247", "text": "function reply_time() {\n\tglobal $reply;\n\treturn $reply['time'];\n}", "title": "" }, { "docid": "dfda33f0a618f15408761c723adeb1bf", "score": "0.50909233", "text": "public function getPreviousPost()\n\t{\n\t\treturn static::find()\n\t\t\t->where('id < :id', [':id' => $this->id])\n\t\t\t->orderBy('time_create DESC')->limit(1)->One();\n\t}", "title": "" }, { "docid": "40f5caaaf5d91662aad52593d2f8deac", "score": "0.5088738", "text": "function dateDifference($timenow,$oldtime) {\n\t\t\t$secondDifference = $timenow-$oldtime;\n\t\t\n\t\t\tif ($secondDifference >= 2592000) {\n\t\t\t\t// months\n\t\t\t\t$difference = $secondDifference/2592000;\n\t\t\t\t$difference = round($difference,0);\n\t\t\t\tif ($difference>1) { $extra=\"s\"; }\n\t\t\t\t$difference = $difference.\" month\".$extra.\"\";\n\t\t\t}\n\t\t\telseif ($secondDifference >= 604800) {\n\t\t\t\t// weeks\n\t\t\t\t$difference = $secondDifference/604800;\n\t\t\t\t$difference = round($difference,0);\n\t\t\t\tif ($difference>1) { $extra=\"s\"; }\n\t\t\t\t$difference = $difference.\" week\".$extra.\"\";\n\t\t\t}\n\t\t\telseif ($secondDifference >= 86400) {\n\t\t\t\t// days\n\t\t\t\t$difference = $secondDifference/86400;\n\t\t\t\t$difference = round($difference,0);\n\t\t\t\tif ($difference>1) { $extra=\"s\"; }\n\t\t\t\t$difference = $difference.\" day\".$extra.\"\";\n\t\t\t}\n\t\t\telseif ($secondDifference >= 3600) {\n\t\t\t\t// hours\n\t\t\t\t$difference = $secondDifference/3600;\n\t\t\t\t$difference = round($difference,0);\n\t\t\t\tif ($difference>1) { $extra=\"s\"; }\n\t\t\t\t$difference = $difference.\" hour\".$extra.\"\";\n\t\t\t}\n\t\t\telseif ($secondDifference < 3600) {\n\t\t\t\t// hours\n\t\t\t\t$difference = $secondDifference/60;\n\t\t\t\t$difference = round($difference,0);\n\t\t\t\tif ($difference>1) { $extra=\"s\"; }\n\t\t\t\t$difference = $difference.\" minute\".$extra.\"\";\n\t\t\t}\n\t\t\n\t\t\t$FinalDifference = $difference;\n\t\t\treturn $FinalDifference;\n\t\t}", "title": "" }, { "docid": "8142610a8c942b7dcb65788b365e6ee2", "score": "0.5074466", "text": "function newPost($post_id)\n{\n global $pc_meta;\n $userLastLoginTime = $pc_meta->get_meta(pc_user_logged('id'), 'last_login');\n $postCreateTime = get_the_time($d = 'U', $post_id);\n if ($postCreateTime >= $userLastLoginTime) {\n echo 'visible';\n } else {\n echo 'hidden';\n }\n}", "title": "" }, { "docid": "754cc4d8bd5f5c7f2749262d5978ac8e", "score": "0.5073901", "text": "function theme_get_timestamp() {\n $date = new DateTime();\n return $date->getTimestamp();\n}", "title": "" }, { "docid": "76ff49efac224847377e052d3495ab7c", "score": "0.5072479", "text": "function logged_in_since() {\n if (isset($_COOKIE[\"login_time\"])) {\n ?>\n\n <em>(logged in since <?= $_COOKIE[\"login_time\"] ?>)</em>\n\n <?php\n }\n }", "title": "" }, { "docid": "70b476b566dbbb030d38daa77f2c4b16", "score": "0.507237", "text": "function li_print_track( $track, $before, $after, $dateformat ) {\r\n\r\n echo $before;\r\n echo \" <a href=\\\"\" . $track['url'] . \"\\\">\";\r\n echo $track['artist'] . \" - \" . $track['name'];\r\n echo \"</a> \";\r\n echo \"<span class=\\\"more\\\">played \";\r\n \r\n if ( function_exists( \"time_since\" ) )\r\n echo time_since( $track['uts'] ) . \" ago\";\r\n else\r\n echo \"on \" . date( $dateformat, $track['uts'] );\r\n\r\n echo \"</span>\";\r\n echo $after;\r\n echo \"\\n\";\r\n}", "title": "" }, { "docid": "3366bca4adbe914e1818f375bb43fcaa", "score": "0.5059426", "text": "function get_post_time($format = 'U', $gmt = \\false, $post = \\null, $translate = \\false)\n {\n }", "title": "" }, { "docid": "8ad3941cb223da41147eb0283d50c639", "score": "0.5049525", "text": "function timeAgo($original) {\r\n $chunks = array(\r\n array(60 * 60 * 24 * 365 , 'year'),\r\n array(60 * 60 * 24 * 30 , 'month'),\r\n array(60 * 60 * 24 * 7, 'week'),\r\n array(60 * 60 * 24 , 'day'),\r\n array(60 * 60 , 'hour'),\r\n array(60 , 'min'),\r\n array(1 , 'sec'),\r\n );\r\n \r\n $today = time(); /* Current unix time */\r\n $since = $today - $original;\r\n \r\n // $j saves performing the count function each time around the loop\r\n for ($i = 0, $j = count($chunks); $i < $j; $i++) {\r\n \r\n $seconds = $chunks[$i][0];\r\n $name = $chunks[$i][1];\r\n \r\n // finding the biggest chunk (if the chunk fits, break)\r\n if (($count = floor($since / $seconds)) != 0) {\r\n break;\r\n }\r\n }\r\n \r\n $print = ($count == 1) ? '1 '.$name : \"$count {$name}s\";\r\n \r\n if ($i + 1 < $j) {\r\n // now getting the second item\r\n $seconds2 = $chunks[$i + 1][0];\r\n $name2 = $chunks[$i + 1][1];\r\n \r\n // add second item if its greater than 0\r\n if (($count2 = floor(($since - ($seconds * $count)) / $seconds2)) != 0) {\r\n $print .= ($count2 == 1) ? ', 1 '.$name2 : \" $count2 {$name2}s\";\r\n }\r\n }\r\n return $print;\r\n }", "title": "" }, { "docid": "8d914f69648fbe8c18d3b3f37edafb9c", "score": "0.5042692", "text": "function gallo_reading_time() {\n\t$content = get_post_field( 'post_content', $post->ID );\n\t$word_count = str_word_count( strip_tags( $content ) );\n\t$readingtime = ceil($word_count / 200);\n\t\n\tif ($readingtime == 1) {\n\t\t$timer = \" min\"; // singular\n\t} else {\n\t\t$timer = \" min\"; // plural\n\t}\n\t\n\t$totalreadingtime = $readingtime . $timer;\n\treturn $totalreadingtime;\n\t\n}", "title": "" }, { "docid": "d92576c8c18f6b718ff04bceed16e95a", "score": "0.50386184", "text": "public static function ago($time, $calculateFrom = 'now') {\n\n\t\t// Calculate to\n\t\t$t = strtotime($time);\n\t\t// Calculate from\n\t\t$c = strtotime($calculateFrom);\n\t\t// Elapsed\n\t\t$e = $c - $t;\n\t\t// Elapsed that day\n\t\t$de = date(\"H\", $c) * TimeAgo::$h + date(\"i\", $c) * TimeAgo::$m + date(\"s\", $c);\n\n\t\tif ($e < TimeAgo::$m) {\n\t\t\t// Now / Second / Seconds\n\t\t\treturn ($e == 0) ? TimeAgo::$string['now'] : ($e == 1 ? TimeAgo::$string['second'] : sprintf(TimeAgo::$string['seconds'], $e));\n\t\t} elseif ($e < TimeAgo::$h) {\n\t\t\t// Minutes\n\t\t\treturn (($m = intval($e / TimeAgo::$m)) && $m == 1) ? TimeAgo::$string['minute'] : sprintf(TimeAgo::$string['minutes'], $m);\n\t\t} elseif ($e < TimeAgo::$d) {\n\t\t\t// Today - Hours\n\t\t\treturn (($h = intval($e / TimeAgo::$h)) && $h == 1) ? TimeAgo::$string['hour'] : sprintf(TimeAgo::$string['hours'], $h);\n\t\t} elseif ($e <= TimeAgo::$d + $de) {\n\t\t\t// Yesterday\n\t\t\treturn TimeAgo::$string['yesterday'];\n\t\t} elseif ($e < TimeAgo::$d * 6 + $de) {\n\t\t\t// Last week\n\t\t\treturn sprintf(TimeAgo::$string['on'], TimeAgo::$weekDays[date(\"w\", $t)]);\n\t\t} elseif ($e < TimeAgo::$mo) {\n\t\t\t// less then month\n\t\t\t// Weeks\n\t\t\tif ($e < TimeAgo::$w * 2) {\n\t\t\t\t// Last seven days\n\t\t\t\treturn TimeAgo::$string['week'];\n\t\t\t} elseif ($e < TimeAgo::$w * 3) {\n\t\t\t\t// 2 weeks\n\t\t\t\treturn sprintf(TimeAgo::$string['weeks'], 2);\n\t\t\t} else {\n\t\t\t\t// 3 weeks\n\t\t\t\treturn sprintf(TimeAgo::$string['weeks'], 3);\n\t\t\t}\n\t\t} elseif ($e < TimeAgo::$y) {\n\t\t\t// less then year\n\t\t\t// Month / Months\n\t\t\treturn ($e < TimeAgo::$mo * 2) ? TimeAgo::$string['month'] : sprintf(TimeAgo::$string['months'], intval($e / TimeAgo::$mo));\n\t\t} else {\n\t\t\t// Year / Years\n\t\t\treturn ($e >= TimeAgo::$y && $e < TimeAgo::$y * 2) ? TimeAgo::$string['year'] : sprintf(TimeAgo::$string['years'], intval($e / TimeAgo::$y));\n\t\t}\n\t}", "title": "" }, { "docid": "19316f54622cfe461bf9297741c3631f", "score": "0.5037045", "text": "function extendedforum_count_unrated_posts($discussionid, $userid) {\n global $CFG;\n if ($posts = get_record_sql(\"SELECT count(*) as num\n FROM {$CFG->prefix}extendedforum_posts\n WHERE parent > 0\n AND discussion = '$discussionid'\n AND userid <> '$userid' \")) {\n\n if ($rated = get_record_sql(\"SELECT count(*) as num\n FROM {$CFG->prefix}extendedforum_posts p,\n {$CFG->prefix}extendedforum_ratings r\n WHERE p.discussion = '$discussionid'\n AND p.id = r.post\n AND r.userid = '$userid'\")) {\n $difference = $posts->num - $rated->num;\n if ($difference > 0) {\n return $difference;\n } else {\n return 0; // Just in case there was a counting error\n }\n } else {\n return $posts->num;\n }\n } else {\n return 0;\n }\n}", "title": "" }, { "docid": "847abda392d0fcae0b9846c6979c1592", "score": "0.5028595", "text": "function rel_time($datefrom, $dateto=-1, $zero='N/A'){\n // its an error rather than the epoch\n\n if(empty($datefrom)) { return $zero; }\n if($dateto==-1) { $dateto = time(); }\n\n // Calculate the difference in seconds betweeen\n // the two timestamps\n\n $difference = $dateto - $datefrom;\n\n // Based on the interval, determine the\n // number of units between the two dates\n // From this point on, you would be hard\n // pushed telling the difference between\n // this function and DateDiff. If the $datediff\n // returned is 1, be sure to return the singular\n // of the unit, e.g. 'day' rather 'days'\n\n switch(true){\n\n case(strtotime('-1 min', $dateto) < $datefrom):\n $res = 'now';\n break;\n // If difference is less than 60 seconds,\n // seconds is a good interval of choice\n case(strtotime('-1 min', $dateto) < $datefrom):\n $datediff = $difference;\n // $res = ($datediff==1) ? $datediff.' second ago' : $datediff.' seconds ago';\n $res = ($datediff==1) ? $datediff.' second' : ($datediff==0) ? '0' : $datediff.' seconds'; // return 0 - so we can customize the meesage like Just deleted (for side wastebasket)\n break;\n // If difference is between 60 seconds and\n // 60 minutes, minutes is a good interval\n case(strtotime('-1 hour', $dateto) < $datefrom):\n $datediff = floor($difference / 60);\n $res = ($datediff==1) ? $datediff.' minute' : $datediff.' minutes';\n break;\n // If difference is between 1 hour and 24 hours\n // hours is a good interval\n case(strtotime('-1 day', $dateto) < $datefrom):\n $datediff = floor($difference / 60 / 60);\n $res = ($datediff==1) ? $datediff.' hour' : $datediff.' hours';\n break;\n // If difference is between 1 day and 7 days\n // days is a good interval\n case(strtotime('-1 week', $dateto) < $datefrom):\n $day_difference = 1;\n while (strtotime('-'.$day_difference.' day', $dateto) >= $datefrom)\n {\n $day_difference++;\n }\n\n $datediff = $day_difference;\n $res = ($datediff==1) ? 'yesterday' : $datediff.' days';\n break;\n // If difference is between 1 week and 30 days\n // weeks is a good interval\n case(strtotime('-1 month', $dateto) < $datefrom):\n $week_difference = 1;\n while (strtotime('-'.$week_difference.' week', $dateto) >= $datefrom)\n {\n $week_difference++;\n }\n\n $datediff = $week_difference;\n $res = ($datediff==1) ? 'last week' : $datediff.' weeks';\n break;\n // If difference is between 30 days and 365 days\n // months is a good interval, again, the same thing\n // applies, if the 29th February happens to exist\n // between your 2 dates, the function will return\n // the 'incorrect' value for a day\n case(strtotime('-1 year', $dateto) < $datefrom):\n $months_difference = 1;\n while (strtotime('-'.$months_difference.' month', $dateto) >= $datefrom)\n {\n $months_difference++;\n }\n\n $datediff = $months_difference;\n $res = ($datediff==1) ? $datediff.' month' : $datediff.' months';\n\n break;\n // If difference is greater than or equal to 365\n // days, return year. This will be incorrect if\n // for example, you call the function on the 28th April\n // 2008 passing in 29th April 2007. It will return\n // 1 year ago when in actual fact (yawn!) not quite\n // a year has gone by\n case(strtotime('-1 year', $dateto) >= $datefrom):\n $year_difference = 1;\n while (strtotime('-'.$year_difference.' year', $dateto) >= $datefrom)\n {\n $year_difference++;\n }\n\n $datediff = $year_difference;\n $res = ($datediff==1) ? $datediff.' year' : $datediff.' years';\n break;\n\n }\n return $res;\n}", "title": "" }, { "docid": "5d21f29962fd5673e379d656590b9536", "score": "0.5027162", "text": "public static function timeAgo($timestamp)\n\t{\n\t\tif (strstr($timestamp, '-'))\n\t\t{\n\t\t\t$timestamp = self::mkt($timestamp);\n\t\t}\n\t\t$text = self::timeAgoo($timestamp);\n\n\t\t$parts = explode(' ', $text);\n\n\t\t$text = $parts[0] . ' ' . $parts[1];\n\n\t\treturn $text;\n\t}", "title": "" }, { "docid": "cf940de748c8e61a9d35da2d20072128", "score": "0.5027152", "text": "function timestamp_to_relative_time( $dt )\n\t{\n\t\t$precision = 2;\n\t\t$times=array(\t365*24*60*60\t=> \"year\",\n\t\t\t\t30*24*60*60\t=> \"month\",\n\t\t\t\t7*24*60*60\t=> \"week\",\n\t\t\t\t24*60*60\t=> \"day\",\n\t\t\t\t60*60\t\t=> \"hour\",\n\t\t\t\t60\t\t=> \"minute\",\n\t\t\t\t1\t\t=> \"second\");\n\n\t\t$passed=time()-$dt;\n\n\t\tif($passed<5)\n\t\t{\n\t\t\t$output='less than 5 seconds ago';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$output=array();\n\t\t\t$exit=0;\n\t\t\tforeach($times as $period=>$name)\n\t\t\t{\n\t\t\t\tif($exit>=$precision || ($exit>0 && $period<60)) \tbreak;\n\t\t\t\t$result = floor($passed/$period);\n\n\t\t\t\tif($result>0)\n\t\t\t\t{\n\t\t\t\t\t$output[]=$result.' '.$name.($result==1?'':'s');\n\t\t\t\t\t$passed-=$result*$period;\n\t\t\t\t\t$exit++;\n\t\t\t\t}\n\n\t\t\t\telse if($exit>0) $exit++;\n\n\t\t\t}\n\t\t\t$output=implode(' and ',$output).' ago';\n\t\t}\n\n\t\treturn $output;\n\t}", "title": "" }, { "docid": "9db5dce0740c3d0be85ab5cbb5a0b1b2", "score": "0.50248754", "text": "function relative_date1($time)\n {\n $today = strtotime(date('M j, Y'));\n $reldays = ($time - $today) / 86400;\n if ($reldays >= 0 && $reldays < 1) {\n return 'Today';\n } else if ($reldays >= 1 && $reldays < 2) {\n return 'Tomorrow';\n } else if ($reldays >= -1 && $reldays < 0) {\n return 'Yesterday';\n }\n if (abs($reldays) < 7) {\n if ($reldays > 0) {\n $reldays = floor($reldays);\n return 'In ' . $reldays . ' day' . ($reldays != 1 ? 's' : '');\n } else {\n $reldays = abs(floor($reldays));\n return $reldays . ' day' . ($reldays != 1 ? 's' : '') . ' ago';\n }\n }\n if (abs($reldays) < 182) {\n return date('l, j F', $time ? $time : time());\n } else {\n return date('l, j F Y', $time ? $time : time());\n }\n }", "title": "" }, { "docid": "7896758467c3f1d97bee19df6f382495", "score": "0.5022443", "text": "function postrelease_get_the_date($date, $d) {\t\n\tglobal $post;\n\tif($post->ID == get_option('prx_template_post_id', -1)) {\n\t\t$date = date($d, time());\t\t\n\t}\n\treturn $date;\n}", "title": "" }, { "docid": "68ee258c72d32caf4dde1d4673f91e97", "score": "0.5020189", "text": "function wac_timeleft($t1,$t2='now'){\n\t$timenow \t= ($t2 == 'now')? strtotime('now') : $t2;\n\t$timeDiff \t= round(abs($t1 - $t2) / 60);\n\t\n\treturn $timeDiff;\n}", "title": "" }, { "docid": "48b5b439ceb268d5485c2b6d6721cf6b", "score": "0.50181943", "text": "function get_previous_post($in_same_term = \\false, $excluded_terms = '', $taxonomy = 'category')\n {\n }", "title": "" }, { "docid": "50ed115822179433e076e4439789b23a", "score": "0.5009165", "text": "function getPostChange($userid) {\n $history = getHistory($userid, 1); \n if (getUpdateDate() == \"stats are currently being updated...\") {\n return \"\";\n }\n\n if ($history == null || count($history) < 1) {\n return \"\";\n }\n\n $past = $history[0]['posts'];\n if ($past != 0) {\n return \"<font color='#28D308'>+\" . $past;\n }\n}", "title": "" } ]
5942a04e885e2d330875e246d0e653b4
setExperienciaOutrasIgrejas() Set the value of [interesse_ministerios] column.
[ { "docid": "9f51c74e503c0654e4758ed1bf8cb29b", "score": "0.6333322", "text": "public function setInteresseMinisterios($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->interesse_ministerios !== $v) {\n\t\t\t$this->interesse_ministerios = $v;\n\t\t\t$this->modifiedColumns[] = MembroPeer::INTERESSE_MINISTERIOS;\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" } ]
[ { "docid": "50e8bacef7e8acd47d0185f61a9295f2", "score": "0.70300126", "text": "public function setExperienciaOutrasIgrejas($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->experiencia_outras_igrejas !== $v) {\n\t\t\t$this->experiencia_outras_igrejas = $v;\n\t\t\t$this->modifiedColumns[] = MembroPeer::EXPERIENCIA_OUTRAS_IGREJAS;\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "e2533a1e4521790217589de98c987335", "score": "0.61956346", "text": "public function getExperienciaOutrasIgrejas()\n\t{\n\t\treturn $this->experiencia_outras_igrejas;\n\t}", "title": "" }, { "docid": "ae07af7ca22288855bf2147abc675562", "score": "0.5848483", "text": "public function getInteresseMinisterios()\n\t{\n\t\treturn $this->interesse_ministerios;\n\t}", "title": "" }, { "docid": "b84e23cb1a7d6e10838d4856f5ff6fb5", "score": "0.52658916", "text": "public function setCursoC10FormaIngressoSelecaoOutros($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->curso_c10_forma_ingresso_selecao_outros !== $v) {\n\t\t\t$this->curso_c10_forma_ingresso_selecao_outros = $v;\n\t\t\t$this->modifiedColumns[] = Censo2009Peer::CURSO_C10_FORMA_INGRESSO_SELECAO_OUTROS;\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "64912f5489c9e31add1e5f189eea8801", "score": "0.5250355", "text": "protected function _setInsulte(){\n\t\t\t$this->_domXml = new DomDocument('1.0', CHARSET);\n\t\t\tif($this->_domXml->load(MODOGCCONFIG)){\n\t\t\t\t$this->_addError('fichier ouvert : '.MODOGCCONFIG, __FILE__, __LINE__, ERROR);\n\t\t\t\t\n\t\t\t\t$this->_nodeXml = $this->_domXml->getElementsByTagName('insultes')->item(0);\n\t\t\t\t$sentences = $this->_nodeXml->getElementsByTagName('insulte');\n\t\t\t\t\n\t\t\t\tforeach($sentences as $sentence){\n\t\t\t\t\tif ($sentence->getAttribute(\"rubrique\") == $this->_commandExplode[2]){\n\t\t\t\t\t\tarray_push($this->_insulte,$sentence->firstChild->nodeValue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$this->_addError('Le fichier '.MODOGCCONFIG.' n\\'a pas pu être ouvert', __FILE__, __LINE__, ERROR);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "2ad6922c6bc62eeaa9a51e156986b7d9", "score": "0.51404524", "text": "public function setCursoC12FormaIngressoOutras($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->curso_c12_forma_ingresso_outras !== $v) {\n\t\t\t$this->curso_c12_forma_ingresso_outras = $v;\n\t\t\t$this->modifiedColumns[] = Censo2009Peer::CURSO_C12_FORMA_INGRESSO_OUTRAS;\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "d5e8fa0a03f49812177a5a316ad91f1d", "score": "0.51379657", "text": "public function setCursoC9FormaIngressoSelecaoEnem($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->curso_c9_forma_ingresso_selecao_enem !== $v) {\n\t\t\t$this->curso_c9_forma_ingresso_selecao_enem = $v;\n\t\t\t$this->modifiedColumns[] = Censo2009Peer::CURSO_C9_FORMA_INGRESSO_SELECAO_ENEM;\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "6b427d3c173a35162f15cc1aad7b2e88", "score": "0.5125035", "text": "public function setExpedientearchivos(PropelCollection $expedientearchivos, PropelPDO $con = null)\n {\n $expedientearchivosToDelete = $this->getExpedientearchivos(new Criteria(), $con)->diff($expedientearchivos);\n\n\n $this->expedientearchivosScheduledForDeletion = $expedientearchivosToDelete;\n\n foreach ($expedientearchivosToDelete as $expedientearchivoRemoved) {\n $expedientearchivoRemoved->setExpediente(null);\n }\n\n $this->collExpedientearchivos = null;\n foreach ($expedientearchivos as $expedientearchivo) {\n $this->addExpedientearchivo($expedientearchivo);\n }\n\n $this->collExpedientearchivos = $expedientearchivos;\n $this->collExpedientearchivosPartial = false;\n\n return $this;\n }", "title": "" }, { "docid": "f89a46d064475ec377c271386a7a53b4", "score": "0.5086693", "text": "public function setSoumisEscompte($soumisEscompte) {\n $this->soumisEscompte = $soumisEscompte;\n return $this;\n }", "title": "" }, { "docid": "636b0f612b66e5c64fe7c6dc71680eaa", "score": "0.5081082", "text": "public function setEmissao($emissao)\n {\n $this->emissao = $emissao;\n\n return $this;\n }", "title": "" }, { "docid": "243a026239001044b8b99d3ddbc3ff4b", "score": "0.5045839", "text": "public function getJeuxInvalides() {\r\n $stmt = Connexion::prepare(\"select * from \" . self::$tableMere . \" inner join \" . self::$tableFille . \" on \" . self::$tableFille . \".\" . self::$clePrimaireFille . \"=\" . self::$tableMere . \".\" . self::$clePrimaireMere . \" WHERE \" . self::$tableFille . \".is_valide=0 ORDER BY \" . self::$tableMere . \".date_ajout;\");\r\n $stmt->execute();\r\n $result = $stmt->fetchAll();\r\n $listeJeux = array();\r\n foreach ($result as $value) {\r\n $nbjoueeursdao = new NombreJoueursDAO();\r\n $nbJoueurs = $nbjoueeursdao->find($value['id_nb_joueurs']);\r\n $daoage = new TrancheAgeDAO();\r\n $age = $daoage->find($value['id_age']);\r\n $daoduree = new DureeDAO();\r\n $duree = $daoduree->find($value['id_duree']);\r\n $daocat = new CategorieDAO();\r\n $lesCategories = $daocat->findAllByJeu($value['id_jeu']);\r\n $newjeu = new Jeu($value['id_jeu'], $value['nom'], $value['descriptif'], $value['etat'], $value['note'], $value['date_ajout'], $value['image'], $nbJoueurs, $age, $duree, $lesCategories, $value['is_valide']);\r\n $listeJeux[] = $newjeu;\r\n }\r\n return $listeJeux;\r\n }", "title": "" }, { "docid": "80a8dacb193ac5d517874104852bc92d", "score": "0.50392497", "text": "public function setExpedienteanticipos(PropelCollection $expedienteanticipos, PropelPDO $con = null)\n {\n $expedienteanticiposToDelete = $this->getExpedienteanticipos(new Criteria(), $con)->diff($expedienteanticipos);\n\n\n $this->expedienteanticiposScheduledForDeletion = $expedienteanticiposToDelete;\n\n foreach ($expedienteanticiposToDelete as $expedienteanticipoRemoved) {\n $expedienteanticipoRemoved->setExpediente(null);\n }\n\n $this->collExpedienteanticipos = null;\n foreach ($expedienteanticipos as $expedienteanticipo) {\n $this->addExpedienteanticipo($expedienteanticipo);\n }\n\n $this->collExpedienteanticipos = $expedienteanticipos;\n $this->collExpedienteanticiposPartial = false;\n\n return $this;\n }", "title": "" }, { "docid": "3b8b46ec0bc0609a918d59e4441db20a", "score": "0.4980633", "text": "public function setO_unite_duree_min($io_unite_duree_min) {\n\t\t\tif(!is_object($io_unite_duree_min)) {\n\t\t\t\tMessage::bufferMessage(new Message('all', 3, 'x', 'setO_unite_duree_min'));\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t/* Check class */\n\t\t\tif(get_class($io_unite_duree_min) != 'Cust_unite' && get_class($io_unite_duree_min) != 'stdClass') {\n\t\t\t\tMessage::bufferMessage(new Message('all', 2, 'x', 'Cust_unite', get_class($io_unite_duree_min)));\n\t\t\t} elseif (get_class($io_unite_duree_min) == 'Cust_unite') {\n\t\t\t\t/* Object is Cust_unite, direct assignment */\n\t\t\t\t$this->o_unite_duree_min = $io_unite_duree_min;\n\t\t\t\t$this->o_unite_duree_min->setUnite($this->getDuree_min_unit());\n\t\t\t} else {\n\t\t\t\t/* Object is stdClass, convert it to desired class */\n\t\t\t\t$lt_data = [];\n\t\t\t\tforeach ($io_unite_duree_min as $lv_key => $lv_value) {\n\t\t\t\t\t$lv_key = Utilities::convertJsToPhpVar($lv_key);\n\t\t\t\t\t$lt_data[$lv_key] = $lv_value;\n\t\t\t\t}\n\t\t\t\t$this->o_unite_duree_min = new Cust_unite($lt_data);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ed7cb130063968dd49029a5d48536c64", "score": "0.49474856", "text": "public function setExpedienteservicios(PropelCollection $expedienteservicios, PropelPDO $con = null)\n {\n $expedienteserviciosToDelete = $this->getExpedienteservicios(new Criteria(), $con)->diff($expedienteservicios);\n\n\n $this->expedienteserviciosScheduledForDeletion = $expedienteserviciosToDelete;\n\n foreach ($expedienteserviciosToDelete as $expedienteservicioRemoved) {\n $expedienteservicioRemoved->setExpediente(null);\n }\n\n $this->collExpedienteservicios = null;\n foreach ($expedienteservicios as $expedienteservicio) {\n $this->addExpedienteservicio($expedienteservicio);\n }\n\n $this->collExpedienteservicios = $expedienteservicios;\n $this->collExpedienteserviciosPartial = false;\n\n return $this;\n }", "title": "" }, { "docid": "2275543b58be0185f33ebfe8cd00c612", "score": "0.49112803", "text": "public function setTvaAutresOpeImpos($tvaAutresOpeImpos) {\n $this->tvaAutresOpeImpos = $tvaAutresOpeImpos;\n return $this;\n }", "title": "" }, { "docid": "26bd264abd395fd4b5ba9889af2b90e6", "score": "0.48455644", "text": "function proyecto__tiempo_no_interac_por_defecto()\r\n\t{\r\n\t\t$sql = \"UPDATE apex_proyecto \r\n\t\t\t\tSET sesion_tiempo_no_interac_min = 30\r\n\t\t\t\tWHERE \r\n\t\t\t\t\t\tproyecto = '{$this->elemento->get_id()}' \r\n\t\t\t\t\tAND (sesion_tiempo_no_interac_min IS NULL OR sesion_tiempo_no_interac_min = 0)\";\r\n\t\treturn $this->elemento->get_db()->ejecutar($sql);\r\n\t}", "title": "" }, { "docid": "6685775029fa074078cfed7bcfbf3c13", "score": "0.48455477", "text": "function integraEmendamento($pkid){\n\t\t$v_num=20;\n\t\t//LUIGI: disattivo vecchia tipologia emendamento\n\t\t#GC 06/11/2014# Nuova gestione EME e riapertura schede. Non ho bisogno di riaprire i docs. Posso sempre inserirne\n\t\t/*\n\t\t$array_c['LAST_EME'] = $this->getMaxVprogr($pkid,$v_num);\n\t\t$array_c['ID_STUD'] = $pkid;\n\t\t$array_c['VALUE'] = \"0\";\n\t\t$array_c['E_NUM'] = \"10\";\n\t\t$array_c['V_NUM'] = \"20\";\n\t\t$sql = \"update {$this->service}_COORDINATE set FINE=:value where {$this->xmr->pk_service}=:id_stud and esam=:e_num and visitnum=:v_num and visitnum_progr=:last_eme\";\n\t\t$query = new query($this->conn);\n\t\t$query->exec($sql, $array_c);*/\n\t\t#FINE\n\t\t\n\t\t//Luigi: non andiamo pi?integrazione emendamento bens?iapriamo la scheda iniziale\n\t\t//$this->integrazione->stornaPerIntegrazione();\n\t\t\n\t\t//print_r($_POST);\n\t\t//echo $pkid;\n\t\t//echo $this->session_vars ['VISITNUM_PROGR'];\n\t\t\n\t\t$array_eme['ID_STUD'] = $pkid;\n\t\t$array_eme['VALUE'] = \"0\";\n\t\t$array_eme['VISITNUM_PROGR']=$this->session_vars ['VISITNUM_PROGR'];\n\t\t$sql = \"update {$this->service}_COORDINATE set FINE=:value where {$this->xmr->pk_service}=:id_stud and esam=1 and visitnum=$v_num and visitnum_progr =:visitnum_progr and progr=1\";\n\t\t$query = new query($this->conn);\n\t\t$query->exec($sql, $array_eme);\t\t\n\t\t#FINE\n\n\t\t\n\t\t/*\n\t\t$array['ID_STUD'] = $pkid;\n\t\t$array['VALUE'] = \"0\";\n\t\t$sql = \"update {$this->service}_REGISTRAZIONE set IN_EMENDAMENTO=:value where {$this->xmr->pk_service}=:id_stud and esam=0 and visitnum=0 and visitnum_progr = 0 and progr=1\";\n\t\t$query = new query($this->conn);\n\t\t$query->exec($sql, $array);\n\t\t*/\n\t}", "title": "" }, { "docid": "d5856f62cd9043a5feacb123e876da8f", "score": "0.4841925", "text": "public function set_insumo_codigo(string $insumo_codigo) : void {\n $this->insumo_codigo = $insumo_codigo;\n }", "title": "" }, { "docid": "82db05abbf2a58261cfb3ec98815c93c", "score": "0.48405305", "text": "public function setValorEmpenho($nValorEmpenho) {\n $this->nValorEmpenho = $nValorEmpenho;\n }", "title": "" }, { "docid": "ff641e6c1e9f5be6d3919d48e1c7b2d5", "score": "0.48300895", "text": "public function lucesSueloAlumnosEncender( ) {\n $this->luces->encenderLucesSueloAlumnos();\n AccesoGui::$guiLuces->luzSueloAlumnosEncender();\n }", "title": "" }, { "docid": "2fe091a542a927f5b88816e04da6e90c", "score": "0.47728008", "text": "public function setImie($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->imie !== $v) {\n\t\t\t$this->imie = $v;\n\t\t\t$this->modifiedColumns[] = UzytkownikPeer::IMIE;\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "afe17c1e562568fdbe43c99290b84f5d", "score": "0.47457448", "text": "static function set_excepciones($excepciones)\r\n\t{\r\n\t\tself::$_excepciones = $excepciones;\r\n\t}", "title": "" }, { "docid": "ee83d31baef4a545d16be5ac46d7f887", "score": "0.47160673", "text": "public static function contarParosMenoresEnMinutos($registros, $inyeccionesEstandarPromedio)\n {\n $sumatoria = 0;\n\n foreach ($registros as $registro)\n {\n $sumatoria += $registro -> calcularParosMenoresMinutos($inyeccionesEstandarPromedio);\n }\n\n return $sumatoria;\n }", "title": "" }, { "docid": "c4ff743528796731b3478123191a2e3e", "score": "0.46994734", "text": "function imprimir_hoja($objeto) {\n\t// Si el objeto viene vacio(llamado desde el index) se le asigna el $_REQUEST que manda el Index\n\t// Si no conserva su valor normal\n\t\t$objeto = (empty($objeto)) ? $_REQUEST : $objeto;\n\t\t\n\t\t$objeto['sexo'] = ($objeto['sexo'] == 1) ? 'Hombre' : 'Mujer' ;\n\t\t\n\t// Carga la vista donde se agrega un recuerdo\n\t\trequire ('Public/usuarios/views/imprimir_hoja.php');\n\t}", "title": "" }, { "docid": "e753ea5ec1ca80ef453e07c58bb13781", "score": "0.46964127", "text": "public function setRumNumInyecXMuestraMateri($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->rum_num_inyec_x_muestra_materi !== $v) {\n\t\t\t$this->rum_num_inyec_x_muestra_materi = $v;\n\t\t\t$this->modifiedColumns[] = RegistroUsoMaquinaPeer::RUM_NUM_INYEC_X_MUESTRA_MATERI;\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "7d22f9429d96ddde17541f1905d0ac7c", "score": "0.46940473", "text": "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->e70_codnota = ($this->e70_codnota == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e70_codnota\"]:$this->e70_codnota);\n $this->e70_codele = ($this->e70_codele == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e70_codele\"]:$this->e70_codele);\n $this->e70_valor = ($this->e70_valor == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e70_valor\"]:$this->e70_valor);\n $this->e70_vlranu = ($this->e70_vlranu == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e70_vlranu\"]:$this->e70_vlranu);\n $this->e70_vlrliq = ($this->e70_vlrliq == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e70_vlrliq\"]:$this->e70_vlrliq);\n }else{\n $this->e70_codnota = ($this->e70_codnota == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e70_codnota\"]:$this->e70_codnota);\n $this->e70_codele = ($this->e70_codele == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e70_codele\"]:$this->e70_codele);\n }\n }", "title": "" }, { "docid": "e56be34ca96888b04eccf19987594563", "score": "0.46712258", "text": "public function setO_unite_quantite_min($io_unite_quantite_min) {\n\t\t\tif(!is_object($io_unite_quantite_min)) {\n\t\t\t\tMessage::bufferMessage(new Message('all', 3, 'x', 'setO_unite_quantite_min'));\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t/* Check class */\n\t\t\tif(get_class($io_unite_quantite_min) != 'Cust_unite' && get_class($io_unite_quantite_min) != 'stdClass') {\n\t\t\t\tMessage::bufferMessage(new Message('all', 2, 'x', 'Cust_unite', get_class($io_unite_quantite_min)));\n\t\t\t} elseif (get_class($io_unite_quantite_min) == 'Cust_unite') {\n\t\t\t\t/* Object is Cust_unite, direct assignment */\n\t\t\t\t$this->o_unite_quantite_min = $io_unite_quantite_min;\n\t\t\t\t$this->o_unite_quantite_min->setUnite($this->getQuantite_min_unit());\n\t\t\t} else {\n\t\t\t\t/* Object is stdClass, convert it to desired class */\n\t\t\t\t$lt_data = [];\n\t\t\t\tforeach ($io_unite_quantite_min as $lv_key => $lv_value) {\n\t\t\t\t\t$lv_key = Utilities::convertJsToPhpVar($lv_key);\n\t\t\t\t\t$lt_data[$lv_key] = $lv_value;\n\t\t\t\t}\n\t\t\t\t$this->o_unite_quantite_min = new Cust_unite($lt_data);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "cca1939ed4f6af815bff52c45f8ad19c", "score": "0.46650332", "text": "public function update_ajustes_totales($anio,$intervenciones,$terminales,$almacen)\n {\n $data = $this->get_ajustes_totales($anio);\n if(!is_null($intervenciones) && !is_null($terminales) && !is_null($almacen))\n {\n foreach ($intervenciones as $key => $valor) {\n if(isset($data[$key])) {\n $this->db->set('intervenciones', $valor)\n ->set('terminales', $terminales[$key])\n ->set('almacen', $almacen[$key])\n ->where('anio', $anio)\n ->where('mes', ($key + 1))\n ->update('ajustes');\n }else {\n $data = array(\n 'intervenciones' => $valor,\n 'terminales' => $terminales[$key],\n 'almacen' => $almacen[$key],\n 'anio' => $anio,\n 'mes' => ($key + 1)\n );\n $this->db->insert('ajustes', $data);\n }\n\n }\n }\n }", "title": "" }, { "docid": "bec92a6daa3a1bc21a24e2515d9727bc", "score": "0.46523768", "text": "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->j15_codigo = ($this->j15_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"j15_codigo\"]:$this->j15_codigo);\n $this->j15_idbql = ($this->j15_idbql == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"j15_idbql\"]:$this->j15_idbql);\n $this->j15_face = ($this->j15_face == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"j15_face\"]:$this->j15_face);\n $this->j15_numero = ($this->j15_numero == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"j15_numero\"]:$this->j15_numero);\n $this->j15_compl = ($this->j15_compl == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"j15_compl\"]:$this->j15_compl);\n $this->j15_obs = ($this->j15_obs == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"j15_obs\"]:$this->j15_obs);\n }else{\n $this->j15_codigo = ($this->j15_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"j15_codigo\"]:$this->j15_codigo);\n }\n }", "title": "" }, { "docid": "6c9aec8761eeb0ec211c343f691a0987", "score": "0.46368587", "text": "function setIndice($otro_indice){\r\n $this->indice = $otro_indice;\r\n }", "title": "" }, { "docid": "1e3e3526b69bdaa97bb666e0390be705", "score": "0.4618215", "text": "public function setTelefoneIgrejaOrigem($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->telefone_igreja_origem !== $v) {\n\t\t\t$this->telefone_igreja_origem = $v;\n\t\t\t$this->modifiedColumns[] = MembroPeer::TELEFONE_IGREJA_ORIGEM;\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "20d7a2559783a70bc7446fe2272c1f12", "score": "0.46176258", "text": "public function executeInscribirmateriamultiplesininformar(sfWebRequest $request){\n\t\t$msjMaterias = \"\";\n\t\t$mensaje = \"\";\n\t\t$resultado = 0;\n\t\t// Busca el alumno\n\t\t$this->alumno = Doctrine_Core::getTable('Alumnos')->find($request->getParameter('idalumno'));\n\t\t$materias_seleccionadas = $request->getParameter('case');\n\t\t$comisiones_seleccionadas = $request->getParameter('comisiones');\n\t\n\t\t// solo para controles de años completos aprobados\n\t\t$cicloMayor2011 = Doctrine_Core::getTable('CiclosLectivos')->getAlumnoTieneCicloLectivoMayor2011($this->alumno->getIdalumno());\n\t\n\t\tif(count($materias_seleccionadas) > 0) {\n\t\t\tforeach ($materias_seleccionadas as $materiaplan) {\n\t\t\t\t$idcomision = $comisiones_seleccionadas[$materiaplan];\n\t\t\t\t$control_anios_aprobados = true;\n\t\n\t\t\t\t// CONTROL SOLO PARA ARQUITECTURA DE AÑOS APROBADOS COMPLETOS\n\t\t\t\t//***********************************************************\n\t\t\t\tif(($this->alumno->getIdplanestudio()==18 || $this->alumno->getIdplanestudio()==19) && $cicloMayor2011) {\n\t\t\t\t\t$comision = Doctrine_Core::getTable('Comisiones')->find($idcomision);\n\t\t\t\t\t$idmateriaplan = $comision->getCatedras()->getMateriasPlanes()->getIdmateriaplan();\n\t\n\t\t\t\t\t$control_anios_aprobados = Doctrine_Core::getTable('Correlatividades')->controlAnioCompleto($this->alumno->getIdalumno(), $this->alumno->getIdplanestudio(), $idmateriaplan);\n\t\n\t\t\t\t\tif (!$control_anios_aprobados)\n\t\t\t\t\t\t$resultado = 4;\n\t\t\t\t}\n\t\n\t\t\t\t// Inscribe el alumno a la materia\n\t\t\t\tif ($control_anios_aprobados) // solo es falso si falla el control en arquitectura\n\t\t\t\t\t$resultado = $this->alumno->inscribirMateria($idcomision);\n\t\t\t\t// Muestra un mensaje de acuerdo a resultado\n\t\t\t\tswitch ($resultado) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\t$comision = Doctrine_Core::getTable('Comisiones')->find($idcomision);\n\t\t\t\t\t\t$msjMaterias .= $comision->getCatedras()->getMateriasPlanes()->getMaterias().\"\\n\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\t$mensaje .= $materiaplan.\": El alumno ya se encuentra inscripto o regular a dicha materia.\\n\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\t$mensaje .= $materiaplan.\": Se ha superado la capacidad maxima de la comisión.\\n\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\t$mensaje .= $materiaplan.\": El alumno no tiene los años completos previos aprobados para cursar esta materia.\\n\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif ($resultado == 0) {\n\t\t\t$mensaje = \"No se ha seleccionado ninguna materia.\\n\";\n\t\t} elseif ($resultado == 1){\n\t\t\t$mensaje = \"Se ha inscripto correctamente a la materia.\\n\";\n\t\t}\n\t\techo $mensaje;\n\t\n\t\treturn sfView::NONE;\n\t}", "title": "" }, { "docid": "1602f6e35df61e38a70068e89b5dca8b", "score": "0.46127945", "text": "public function modificarceih(){\n $stmt = $this->objPDO->prepare(\"UPDATE sisanatom.detalle_bioce set requiere_ih=:requiere_ih where id_biopsia =:id_biopsia;\");\n $stmt->execute(array('id_biopsia' =>$this->id_biopsia,\n 'requiere_ih'=>$this->requiere_ih));\n}", "title": "" }, { "docid": "dee3332d441e1f3c6ca7595c5e29ec62", "score": "0.4604821", "text": "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->me07_i_codigo = ($this->me07_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"me07_i_codigo\"]:$this->me07_i_codigo);\n $this->me07_f_quantidade = ($this->me07_f_quantidade == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"me07_f_quantidade\"]:$this->me07_f_quantidade);\n $this->me07_i_cardapio = ($this->me07_i_cardapio == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"me07_i_cardapio\"]:$this->me07_i_cardapio);\n $this->me07_c_medida = ($this->me07_c_medida == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"me07_c_medida\"]:$this->me07_c_medida);\n $this->me07_i_alimento = ($this->me07_i_alimento == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"me07_i_alimento\"]:$this->me07_i_alimento);\n $this->me07_i_unidade = ($this->me07_i_unidade == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"me07_i_unidade\"]:$this->me07_i_unidade);\n }else{\n $this->me07_i_codigo = ($this->me07_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"me07_i_codigo\"]:$this->me07_i_codigo);\n }\n }", "title": "" }, { "docid": "7e36b1a2be673c54577ff02084e469ff", "score": "0.46046987", "text": "function setValores($interfaz,$referencia,$version,$descripcion,$estado,$prototipo,$fecha_desde,$fecha_hasta) {\n\t\t$this->interfaz = $interfaz;\n\t\t$this->referencia = $referencia;\n\t\t$this->version = $version;\n\t\t$this->descripcion = $descripcion;\n\t\t$this->estado = $estado;\n\t\t$this->prototipo = $prototipo;\n\t\t$this->fecha_desde = $fecha_desde;\n\t\t$this->fecha_hasta = $fecha_hasta;\n\t\t\t\n\t\t$this->prepararConsulta();\n\t}", "title": "" }, { "docid": "60785c704e93cd35d373113b9d82c21f", "score": "0.45975265", "text": "public function setNomeINI ($nomeINI) {\n\t\t$this->nomeINI = $nomeINI;\n\t}", "title": "" }, { "docid": "6c4a5b2b7d7aec7eff17127e54c7d6af", "score": "0.4595261", "text": "public function setCodigoAberturaExercicio($iCodigoAberturaExercicio) {\n $this->iCodigoAberturaExercicio = $iCodigoAberturaExercicio;\n }", "title": "" }, { "docid": "663b86f47cf6b37e3116ed7ba92d2bdb", "score": "0.45947266", "text": "public static function MostraNotifiche()\n {\n //se avevo delle precedenti notifiche \"in canna\", le prelevo e le elimino\n if(isset($_SESSION['notifiche'])) {\n $notifiche_precedenti=unserialize($_SESSION['notifiche']);\n self::$notifiche = array_merge(self::$notifiche, $notifiche_precedenti);\n unset($_SESSION['notifiche']);\n }\n\n foreach (self::$notifiche as $messaggio) {\n printf(\"<div class='alert alert-%s'>%s</div>\", htmlentities($messaggio->tipo), htmlentities($messaggio->testo));\n }\n\n //ripulisco la coda di notifiche\n self::$notifiche = [];\n }", "title": "" }, { "docid": "48d743fef4e1c8c77d9a62ceaf8e7bfc", "score": "0.45940265", "text": "public function getIncluirEmpresas()\n {\n return $this->options['incluirEmpresas'];\n }", "title": "" }, { "docid": "3723faacbab0c3e3482b502520b83272", "score": "0.45922652", "text": "public function setOpInvitationMasse($opInvitationMasse) {\n $this->opInvitationMasse = $opInvitationMasse;\n return $this;\n }", "title": "" }, { "docid": "5f046f4dd67d96b197f032ba54f7a968", "score": "0.4589959", "text": "public function getIntensidadMinima() {\n\n return self::$INTENSIDAD_MINIMA;\n\n }", "title": "" }, { "docid": "b4376c7db566f7fa70943984be61fc9d", "score": "0.45856658", "text": "public function mesaocupada($numerodemesa, $numerodeclientesporestadoenturno){\n $numerodeclientesfinal=$numerodeclientesporestadoenturno;\n $mesa=$numerodemesa;\n //LLAMAR AQUI\n $this->ir_a_la_vista_elegir_cliente($mesa, $numerodeclientesfinal);\n }", "title": "" }, { "docid": "8e6a9ff976cf666cd5f71884814f199c", "score": "0.4585488", "text": "public function __construct($etunimi, $sukunimi, $kotiosoite, $email, $opiskeljanro ) {\n $this->etunimi = $etunimi;\n $this->sukunimi = $sukunimi;\n $this->kotiosoite = $kotiosoite;\n $this->email = $email;\n $this->opNum = $opiskeljanro;\n }", "title": "" }, { "docid": "5658507a53698623cc5c24e3b655f330", "score": "0.4580449", "text": "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->e66_autori = ($this->e66_autori == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e66_autori\"]:$this->e66_autori);\n $this->e66_seqretencao = ($this->e66_seqretencao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e66_seqretencao\"]:$this->e66_seqretencao);\n }else{\n $this->e66_autori = ($this->e66_autori == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e66_autori\"]:$this->e66_autori);\n $this->e66_seqretencao = ($this->e66_seqretencao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e66_seqretencao\"]:$this->e66_seqretencao);\n }\n }", "title": "" }, { "docid": "08d1854a5f70ef0db07afd9a8c3b9ce8", "score": "0.45769477", "text": "public function setRumNumeroInyeccionEstandar($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->rum_numero_inyeccion_estandar !== $v) {\n\t\t\t$this->rum_numero_inyeccion_estandar = $v;\n\t\t\t$this->modifiedColumns[] = RegistroUsoMaquinaPeer::RUM_NUMERO_INYECCION_ESTANDAR;\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "2366f8a20829149f1467fed37b1aaad1", "score": "0.45756632", "text": "public function setIdexpediente($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->idexpediente !== $v) {\n $this->idexpediente = $v;\n $this->modifiedColumns[] = ExpedientePeer::IDEXPEDIENTE;\n }\n\n\n return $this;\n }", "title": "" }, { "docid": "94ea80b64fff6f80dbddf0cfe5f5c625", "score": "0.45753902", "text": "public function setModalite_resa($iv_modalite_resa) {\n\t\t\t/* Database attributes control */\n\t\t\t$lv_datatype = 'tinyint(1)';\n\t\t\ttry {\n\t\t\t\t$this->modalite_resa = Securite::checkDataFormat($iv_modalite_resa, $lv_datatype);\n\t\t\t} catch (Message $lo_message) {\n\t\t\t\t$this->addMessage($lo_message);\n\t\t\t\t$this->v_has_error = true;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a08efe86ce79a6a41b4cc21ac11bba55", "score": "0.4570102", "text": "public function ContentNoticia() {\n\n\n\n\n //RELLENAR TODAS LAS VARIABLES CON LLAMADAS A LA BASE DE DATOS\n $this->idNoticia = 0; //COMO SABER QUE INDEX TIENE LA NOTICIA, A CUAL ESTAMOS LLAMANDO??\n $this->titularExtendido = 0;\n $this->titularCorto = 0;\n $this->entradilla = 0;\n $this->cuerpo = 0;\n $this->autor = 0;\n $this->lugar = 0;\n $this->genero = 0;\n $this->tipo = 0;\n $this->fechaSubida = 0;\n $this->horaActualizacion = 0;\n\n $this->etiquetas = array();\n $this->imagenes = array();\n\n\n }", "title": "" }, { "docid": "72b8e2271dbc83fcd3ed4a7af3eaf8c2", "score": "0.45671073", "text": "public function setDataEmissao(string $dataEmissao)\n {\n $this->dataEmissao = $dataEmissao;\n }", "title": "" }, { "docid": "adfc4b8351a1f04780dfe18e32b0a078", "score": "0.45652407", "text": "public function setEvotranspiracion_idevotranspiracion($evotranspiracion_idevotranspiracion){\n $this->evotranspiracion_idevotranspiracion = $evotranspiracion_idevotranspiracion;\n }", "title": "" }, { "docid": "e418d364027b9ed86d1961eb750b6438", "score": "0.45634255", "text": "function vista_mesa_inteligente($objeto) {\n\t\t// Si el objeto viene vacio(llamado desde el index) se le asigna el $_REQUEST que manda el Index\n\t\t// Si no conserva su valor normal\n\t\t$objeto = (empty($objeto)) ? $_REQUEST : $objeto;\n\n\t\t// Optenemos el logo\n\t\t$logo = $this -> comandasModel -> logo($objeto);\n\t \n\t\t// Valida el logo\n\t\t$src = '../../netwarelog/archivos/1/organizaciones/' . $logo['rows'][0]['logo'];\n\t\t$logo = (file_exists($src)) ? $src : '';\n\n\t\t//Consulta la organizacion\n $organizacion = $this -> comandasModel ->datos_organizacion();\n\n $datos_sucursal = $this -> comandasModel -> getSucursal();\n\n $datos_qr = $this -> comandasModel -> getImgCorreo();\n\n \t$ruta = \"../../../restaurantes_externo/imagenes/mesa_inteligente/\"; // Indicar ruta\n\t\t$filehandle = opendir($ruta); // Abrir archivos\n\n\t\twhile ($file = readdir($filehandle)) {\n\t if ($file != \".\" && $file != \"..\") {\n\t \t\t$finfo = finfo_open(FILEINFO_MIME_TYPE);\n\t \t\t$mime=finfo_file($finfo, $ruta.$file);\n\t\t\t\t if($mime==\"image/jpeg\" || $mime==\"image/pjpeg\" || $mime==\"image/gif\" || $mime==\"image/png\")\n\t\t\t\t {\n\t\t\t\t # guardamos las imagenes en un array\n\t\t\t\t $posi = count($imagenes_fondo);\n\t\t\t\t $imagenes_fondo[$posi]['ruta'] = $ruta.$file;\n\t\t\t\t $imagenes_fondo[$posi]['archivo'] = $file;\n\t\t\t\t }\n\t \n\t\t } \n\t\t} \n\n\t\tclosedir($filehandle);\n //print_r($img_correo)\n\t\t// regresa el resultado al ajax\n\n\t\trequire ('views/configuracion/vista_mesa_inteligente.php');\n\t}", "title": "" }, { "docid": "6557ff9683ede08f5c13aaf0af5b67ac", "score": "0.45629036", "text": "public function editarIntereses($array)\n {\n $query = $this->db->where('email', $array[\"email_usuario\"])->get('usuario')->row();\n if ($query == null)\n return $this->mensaje(\"El usuario no existe\", 0);\n else {\n $queryInteres = $this->Usuario_model->getIntereses($array[\"email_usuario\"]) ;\n \n if (json_decode($queryInteres)->status) {\n // si existe el registro, lo actualiza\n $this->db->where('email_usuario', $array[\"email_usuario\"]);\n // // $this->db->update('mytable', $data);\n $editado = $this->db->update(\"intereses\", $array);\n if (!$editado) {\n return $this->mensaje(\"Problemas al editar\", 0);\n } else\n return $this->mensaje(\"Actualizacion de intereses exitoso\", 1);\n } else {\n // sino existe el registro, se crea\n $created = $this->db->insert(\"intereses\", $array);\n if (!$created) {\n return $this->mensaje(\"Problemas al registrar\", 0);\n } else\n return $this->mensaje(\"Registro de intereses exitoso\", 1);\n }\n\n // return $this->mensaje(\"usuario encontrado\", 1);\n }\n\n // sin crear usuario en la tabla intereses\n // else {\n // $this->db->where('email_usuario', $array[\"email_usuario\"]);\n // // // $this->db->update('mytable', $data);\n // $editado = $this->db->update(\"intereses\", $array);\n // if (!$editado) {\n // return $this->mensaje(\"Problemas al editar\", 0);\n // } else\n // return $this->mensaje(\"Usuario editado\", 1);\n\n // // return $this->mensaje(\"usuario encontrado\", 1);\n // }\n }", "title": "" }, { "docid": "e2da7a0253bc3bbf24b672167319c56d", "score": "0.4558241", "text": "public function setPorcentLimitePontos($porcent_limite_pontos);", "title": "" }, { "docid": "782ab8c491e3e64fce2562e7830bc4e6", "score": "0.4557079", "text": "public static function empresaXnumero( $idempresa )\n {\n $r_empresa = [];\n $empresas = DB::table( DB::raw( self::$dim_empresas ) )\n ->where( 'idempresa', $idempresa )\n ->get();\n\n foreach ( $empresas as $empresa )\n {\n $r_empresa = $empresa;\n }\n return $r_empresa;\n }", "title": "" }, { "docid": "12dbe7b3d8989c1550eabbefc3544a61", "score": "0.4554133", "text": "function agregar_mesas($objeto) {\n\t\t$empleado = (!empty($objeto['empleado'])) ? ', ' . $objeto['empleado'] : ', \"\"';\n\t\tif (!empty($objeto['sucursal'])) {\n\t\t\t$sucursal = $objeto['sucursal'];\n\t\t} else {\n\t\tsession_start();\n\t\t$sucursal = \"\tSELECT \n\t\t\t\t\t\t\tmp.idSuc AS id \n\t\t\t\t\t\tFROM \n\t\t\t\t\t\t\tadministracion_usuarios au \n\t\t\t\t\t\tINNER JOIN \n\t\t\t\t\t\t\t\tmrp_sucursal mp \n\t\t\t\t\t\t\tON \n\t\t\t\t\t\t\t\tmp.idSuc = au.idSuc \n\t\t\t\t\t\tWHERE \n\t\t\t\t\t\t\tau.idempleado = \" . $_SESSION['accelog_idempleado'] . \" \n\t\t\t\t\t\tLIMIT 1\";\n\t\t$sucursal = $this -> queryArray($sucursal);\n\t\t$sucursal = $sucursal['rows'][0]['id'];\n\t\t}\n\t\tif($objeto['tipo_mesa'] == 8){\n\t\t\t$sql = \"INSERT INTO\n\t\t\t\t\t\tcom_mesas\n\t\t\t\t\t\t(idDep, nombre, tipo_mesa, tipo, id_area, x, y, idSuc)\n\t\t\t\t\tVALUES\n\t\t\t\t\t\t('\".$objeto['idDep'].\"', '\".trim($objeto['nombre_area']).\"', \" . $objeto['tipo_mesa'] . \", 0,\" . $objeto['area'] . \", -1, -1, '\".$sucursal.\"')\";\n\t\t\t\n\t\t} else if($objeto['tipo_mesa'] == 9){ \n\t\t\t$sql = \"INSERT INTO\n\t\t\t\t\t\tcom_mesas\n\t\t\t\t\t\t(idDep, nombre, tipo_mesa, tipo, idempleado, x, y, idSuc, id_dependencia)\n\t\t\t\t\tVALUES\n\t\t\t\t\t\t('\".$objeto['idDep'].\"', '\".$objeto['nombre'].\"', \" . $objeto['tipo_mesa'] . \", 0\" . $empleado . \", -1, -1, '\".$sucursal.\"', '\".$objeto['id_dependencia'].\"')\";\n\t\t}else {\n\t\t\t$sql = \"INSERT INTO\n\t\t\t\t\t\tcom_mesas\n\t\t\t\t\t\t(idDep, nombre, tipo_mesa, tipo, idempleado, x, y, idSuc)\n\t\t\t\t\tVALUES\n\t\t\t\t\t\t('\".$objeto['idDep'].\"', '\".$objeto['nombre'].\"', \" . $objeto['tipo_mesa'] . \", 0\" . $empleado . \", -1, -1, '\".$sucursal.\"')\";\n\t\t}\n\t\t$result = $this -> insert_id($sql);\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "203856afbcc04f05bd23206ae03bda86", "score": "0.45385423", "text": "function alterNoticia($conexao, $id, $novaNoticia){\n\n\t\t\t$this->conexao = $conexao;\n\t\t\t$this->novaNoticia = $novaNoticia;\n\t\t\t$this->id = $id;\n\n\t\t\t$stmt = $this->conexao->prepare('UPDATE tb_noticia SET titulo = :titulo, noticia = :noticia WHERE id = :id');\n\t\t\t$stmt->execute(array(\n\t\t\t ':id' => $this->id,\n\t\t\t ':titulo' => $this->novaNoticia['titulo'],\n\t\t\t ':noticia' => $this->novaNoticia['noticia']\n\t\t\t));\n\t\t}", "title": "" }, { "docid": "3d6cb8a7b322a16f606fa308c68d3d1e", "score": "0.45381588", "text": "function setAM_numEsuquela($idEsquela)\n{\n\t$GLOBALS['AM_numEsuquela'] = $idEsquela;\n}", "title": "" }, { "docid": "4c956abbde9655402093d0231847f514", "score": "0.45306072", "text": "function setObjetivos($objetivos) {\r\n $this->objetivos = $objetivos;\r\n }", "title": "" }, { "docid": "606278d1596e970aff6ee5851680b900", "score": "0.45238557", "text": "public function setInscritRepMetier(?bool $inscritRepMetier): Etablissements {\n $this->inscritRepMetier = $inscritRepMetier;\n return $this;\n }", "title": "" }, { "docid": "e5ac58d547bb6fe1f9933bf19a426272", "score": "0.45225146", "text": "public function promoverPorAsignaturasHabilitadas(Alumno $alumno,$condicion_academica,$periodo_escolares,$nota_minima){ \n $em=$this->getDoctrine()->getEntityManager();\n $numero_asig_areas_perder=0;\n $ctriterio_perdida=$condicion_academica;\n $todos_criterios_perdida= $this\n ->getDoctrine()\n ->getRepository(\"NetpublicCoreBundle:CriterioPromocion\")\n ->findBy(array(\n 'criterio_promocion'=>$ctriterio_perdida->getId()\n )) \n ; \n//Si la condicion acaddemica Todas las asignaturas|areas\n \n if($ctriterio_perdida->getSimbolo()=='and'){ \n foreach ($todos_criterios_perdida as $c_p) {\n $re=$this\n ->getDoctrine()\n ->getRepository(\"NetpublicCoreBundle:Alumno\")\n ->esPerdioAsignaturaArea($c_p->getAreaAsignatura(),\n $alumno,$periodo_escolares,$nota_minima);\n if($re){ \n $numero_asig_areas_perder++;\n }\n }\n if(count($todos_criterios_perdida)==$numero_asig_areas_perder){\n $alumno->setEsHabilitacion(true); \n } \n \n }\n//Si la condicion academica Una de las lista Areas|Asignaturas \n if($ctriterio_perdida->getSimbolo()=='or'){ \n foreach ($todos_criterios_perdida as $c_p) {\n $re=$this\n ->getDoctrine()\n ->getRepository(\"NetpublicCoreBundle:Alumno\")\n ->esPerdioAsignaturaArea($c_p->getAreaAsignatura(),\n $alumno,$periodo_escolares,$nota_minima);\n if($re){ \n $alumno->setEsHabilitacion(true); \n break;\n }\n }\n }\n $em->persist($alumno);\n\n }", "title": "" }, { "docid": "cff7cc2008382e13ce15bb4ff085af56", "score": "0.45211622", "text": "public function setAtaqueQueja($valor){\n $this->ataqueFuria=$valor;\n }", "title": "" }, { "docid": "908d89de6ead67aa1e01a55f23897a9d", "score": "0.45159176", "text": "function asignarIntervalo($index, $minimoIncluisivo, $maximoInclusivo) {\n $this->intervalos[$index] = array('minimo' => $minimoIncluisivo, 'maximo' => $maximoInclusivo);\n }", "title": "" }, { "docid": "5f0ea8f17b57492c04e92586637708e2", "score": "0.45041916", "text": "public function setSucessos($sucessos = array()) {\n $this->sucessos = $sucessos;\n }", "title": "" }, { "docid": "17c0de3e009890f1afc4d8d5b6198566", "score": "0.4503101", "text": "public function setInis(array $inis)\r\n {\r\n $this->inis = $inis + $this->inis;\r\n foreach ($inis as $key => $value) {\r\n ini_set($key, $value);\r\n }\r\n return $this;\r\n }", "title": "" }, { "docid": "b3ac0d6cbbb0d900efaa08bd6d50dfd7", "score": "0.4501577", "text": "function asignar_mesa($objeto) {\n\t\t$sql = \"UPDATE \n\t\t\t\t\tcom_mesas\n\t\t\t\tSET \n\t\t\t\t\tidempleado = \" . $objeto['empleado'] . \"\n\t\t\t\tWHERE \n\t\t\t\t\tid_mesa=\" . $objeto['mesa'];\n\t\t// return $sql;\n\t\t$result = $this -> query($sql);\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "10a647d4dcf70cec64215a44b70b9935", "score": "0.44954395", "text": "function modificarMigracion(){\r\n $this->procedimiento='sqlserver.ft_migracion_ime';\r\n $this->transaccion='SQL_MIGRA_MOD';\r\n $this->tipo_procedimiento='IME';\r\n\r\n //Define los parametros para la funcion\r\n $this->setParametro('id_migracion','id_migracion','int4');\r\n $this->setParametro('operacion','operacion','varchar');\r\n $this->setParametro('estado','estado','varchar');\r\n $this->setParametro('respuesta','respuesta','text');\r\n $this->setParametro('estado_reg','estado_reg','varchar');\r\n $this->setParametro('id_presupuesto_destino','id_presupuesto_destino','int4');\r\n $this->setParametro('tipo_cuenta','tipo_cuenta','varchar');\r\n $this->setParametro('id_presupuesto_origen','id_presupuesto_origen','int4');\r\n $this->setParametro('id_auxiliar_destino','id_auxiliar_destino','int4');\r\n $this->setParametro('consulta','consulta','text');\r\n $this->setParametro('id_usuario_reg','id_usuario_reg','integer');\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $this->ejecutarConsulta();\r\n\r\n //Devuelve la respuesta\r\n return $this->respuesta;\r\n }", "title": "" }, { "docid": "adbd93828e34b0433c40b509288e3327", "score": "0.4494831", "text": "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->e76_codret = ($this->e76_codret == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e76_codret\"]:$this->e76_codret);\n $this->e76_lote = ($this->e76_lote == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e76_lote\"]:$this->e76_lote);\n $this->e76_movlote = ($this->e76_movlote == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e76_movlote\"]:$this->e76_movlote);\n $this->e76_codmov = ($this->e76_codmov == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e76_codmov\"]:$this->e76_codmov);\n $this->e76_numbanco = ($this->e76_numbanco == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e76_numbanco\"]:$this->e76_numbanco);\n if($this->e76_dataefet == \"\"){\n $this->e76_dataefet_dia = ($this->e76_dataefet_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e76_dataefet_dia\"]:$this->e76_dataefet_dia);\n $this->e76_dataefet_mes = ($this->e76_dataefet_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e76_dataefet_mes\"]:$this->e76_dataefet_mes);\n $this->e76_dataefet_ano = ($this->e76_dataefet_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e76_dataefet_ano\"]:$this->e76_dataefet_ano);\n if($this->e76_dataefet_dia != \"\"){\n $this->e76_dataefet = $this->e76_dataefet_ano.\"-\".$this->e76_dataefet_mes.\"-\".$this->e76_dataefet_dia;\n }\n }\n $this->e76_valorefet = ($this->e76_valorefet == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e76_valorefet\"]:$this->e76_valorefet);\n $this->e76_processado = ($this->e76_processado == \"f\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e76_processado\"]:$this->e76_processado);\n }else{\n $this->e76_codret = ($this->e76_codret == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e76_codret\"]:$this->e76_codret);\n $this->e76_codmov = ($this->e76_codmov == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e76_codmov\"]:$this->e76_codmov);\n }\n }", "title": "" }, { "docid": "701710aca043c8e252575f432950cbc2", "score": "0.44942382", "text": "public function setIdsituativ($idusuativ)\n {\n $this->_idsituativ = $idusuativ;\n }", "title": "" }, { "docid": "03a304f7ce1ed98b9e2bcca48daf30ad", "score": "0.44936237", "text": "public function setEleitores($eleitores)\n {\n $this->eleitores = $eleitores;\n\n return $this;\n }", "title": "" }, { "docid": "c857f77148fdb133411be5d60c2e3ea7", "score": "0.4491485", "text": "public function testSetCodeImputationAnalytique() {\n\n $obj = new Fournisseurs();\n\n $obj->setCodeImputationAnalytique(\"codeImputationAnalytique\");\n $this->assertEquals(\"codeImputationAnalytique\", $obj->getCodeImputationAnalytique());\n }", "title": "" }, { "docid": "f1b3740324397befb94c1b3ebea99cab", "score": "0.4490048", "text": "public function Ocupado($codigo) {\n $z= array(\n 'tintCodEstadoExpe'=>0\n ) ;\n\n $this->db->where(\"vchrCodExpe\",$codigo);\n $this->db->update(\"tbl_expediente\",$z);\n }", "title": "" }, { "docid": "9e85d3d99fc72e391bb7e56ed3bfcdcd", "score": "0.44892016", "text": "public function setInterimIndemCpFillon($interimIndemCpFillon) {\n $this->interimIndemCpFillon = $interimIndemCpFillon;\n return $this;\n }", "title": "" }, { "docid": "36e44b4f21a12ea938fe5443c7d61988", "score": "0.44814113", "text": "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->e152_sequencial = ($this->e152_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e152_sequencial\"]:$this->e152_sequencial);\n $this->e152_numemp = ($this->e152_numemp == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e152_numemp\"]:$this->e152_numemp);\n $this->e152_finalidadepagamentofundeb = ($this->e152_finalidadepagamentofundeb == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e152_finalidadepagamentofundeb\"]:$this->e152_finalidadepagamentofundeb);\n }else{\n $this->e152_sequencial = ($this->e152_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"e152_sequencial\"]:$this->e152_sequencial);\n }\n }", "title": "" }, { "docid": "22e7f7d88756446c01a8a828ab36fe6e", "score": "0.44791406", "text": "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->ed14_i_codigo = ($this->ed14_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed14_i_codigo\"]:$this->ed14_i_codigo);\n $this->ed14_i_matricula = ($this->ed14_i_matricula == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed14_i_matricula\"]:$this->ed14_i_matricula);\n if($this->ed14_d_data == \"\"){\n $this->ed14_d_data_dia = ($this->ed14_d_data_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed14_d_data_dia\"]:$this->ed14_d_data_dia);\n $this->ed14_d_data_mes = ($this->ed14_d_data_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed14_d_data_mes\"]:$this->ed14_d_data_mes);\n $this->ed14_d_data_ano = ($this->ed14_d_data_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed14_d_data_ano\"]:$this->ed14_d_data_ano);\n if($this->ed14_d_data_dia != \"\"){\n $this->ed14_d_data = $this->ed14_d_data_ano.\"-\".$this->ed14_d_data_mes.\"-\".$this->ed14_d_data_dia;\n }\n }\n $this->ed14_t_descr = ($this->ed14_t_descr == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed14_t_descr\"]:$this->ed14_t_descr);\n }else{\n $this->ed14_i_codigo = ($this->ed14_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed14_i_codigo\"]:$this->ed14_i_codigo);\n }\n }", "title": "" }, { "docid": "1d21351670413df442c8fae92840f107", "score": "0.44767132", "text": "function modificarOcmaquinariamoe(){\n\t\t$this->procedimiento='snx.ft_ocmaquinariamoe_ime';\n\t\t$this->transaccion='SNX_OCMAQ_MOD';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_ocmaquinariamoe','id_ocmaquinariamoe','int4');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('id_maquinariamoe','id_maquinariamoe','int4');\n\t\t$this->setParametro('cantidadmaquinariamoe','cantidadmaquinariamoe','numeric');\n\t\t$this->setParametro('id_obracivilmoe','id_obracivilmoe','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "33d96f99182df5ce4f23e34cdda8d141", "score": "0.44755015", "text": "public function testSetJeudi() {\n\n $obj = new DevisProgLignes();\n\n $obj->setJeudi(true);\n $this->assertEquals(true, $obj->getJeudi());\n }", "title": "" }, { "docid": "fce95ce218b5e17f04194a216721111a", "score": "0.44715804", "text": "function setPaisesUsuario(){\n //Função para sortear países para o usuário\n $this->usuario->setPaises($this->sortearPaises());\n }", "title": "" }, { "docid": "c850cf8a29b14dd7b74f7e81ea6d506a", "score": "0.446959", "text": "public function setIgrejaOrigem($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->igreja_origem !== $v) {\n\t\t\t$this->igreja_origem = $v;\n\t\t\t$this->modifiedColumns[] = MembroPeer::IGREJA_ORIGEM;\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "831b32563a209694eac6b7d0343e443c", "score": "0.44648182", "text": "function ingresos_ini_pro(){\n\t\t\n\t\t\t$sql = \"select macro_linea_propuesta.idpropuesta, SUM(macro_linea_propuesta.ingreso_unico_anual) \n\t\t\tas suma_ingresos from propuesta p, macro_linea_propuesta, usuario u where p.idstatus_proyecto=1 and \n\t\t\tp.idpropuesta=macro_linea_propuesta.idpropuesta and p.idusuario=u.idcedula and u.idgerencia=$_GET[codg]\n\t\t\t and p.idtipo_fase_actualizada<12\";\n\t\t\t\t\t\t\t\n\t\t\t$a = mysql_query($sql) or die(mysql_error());\n\t\t\t$da = mysql_fetch_assoc($a);\n\t\t\t\n\t\t\t$sql2 = \"select p.idpropuesta, SUM(p.ingreso_real) as suma_ingresos_proyecto\n\t\t\t\t\t\tfrom propuesta p, usuario u\n\t\t\t\t\t\t\twhere p.idstatus_proyecto=1 and p.idusuario=u.idcedula and u.idgerencia=$_GET[codg]\n\t\t\t\t\t\t\t and p.idtipo_fase_actualizada>=12\";\n\t\t\t\t\t\t\t\n\t\t\t$a2 = mysql_query($sql2) or die(mysql_error());\n\t\t\t$da2 = mysql_fetch_assoc($a2);\n\t\t\t\n\t\t\tif($da2['suma_ingresos_proyecto']==\"\" && $da['suma_ingresos']==\"\"){\n\t\t\t\t\n\t\t\t\t$arre[0]=array(\"ing_tot_ini\"=>0,\"ing_tot_pro\"=>0);\n\t\t\t\t\n\t\t\t\t}\n\t\t\telse{\n\t\t\t\tif($da2['suma_ingresos_proyecto']==\"\" && $da['suma_ingresos']!=\"\"){\n\t\t\t\n\t\t\t\t\t$arre[0]=array(\"ing_tot_ini\"=>round($da['suma_ingresos']),\"ing_tot_pro\"=>0);\n\t\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif($da2['suma_ingresos_proyecto']!=\"\" && $da['suma_ingresos']==\"\"){\n\t\t\t\n\t\t\t\t\t$arre[0]=array(\"ing_tot_ini\"=>0,\"ing_tot_pro\"=>round($da2['suma_ingresos_proyecto']));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t$arre[0]=array(\"ing_tot_ini\"=>round($da['suma_ingresos']),\"ing_tot_pro\"=>round($da2['suma_ingresos_proyecto']));\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\t//Tasa Exito\n\t\t\t$cont_aceptacion=0; $cont_entrega=0; $total_tasa=0; \n\t\t\t$sql3 = \"SELECT idpropuesta, idtipo_fase_actualizada, fecha_entrega, fecha_aceptacion \n\t\t\t\t\tFROM propuesta, usuario\n\t\t\t\t\tWHERE idstatus_proyecto=1\n\t\t\t\t\t\tand propuesta.idusuario=usuario.idcedula \n\t\t\t\t\t\tand usuario.idgerencia=$_GET[codg]\";\t\n\t\t\t\t\t\t$tasa_e= array();\n\t\t\t\t\t\t$sub_fase=array();\n\t\t\t\t\t\t$fec_acep=array();\n\t\t\t$b = mysql_query($sql3) or die(mysql_error());\n\t\t\t\twhile ($db = mysql_fetch_assoc($b)){\n\t\t\t\t\t$tasa_e[]=$db[\"idpropuesta\"];\n\t\t\t\t\t$sub_fase[]=$db[\"idtipo_fase_actualizada\"];\n\t\t\t\t\t//$fec_ent[]=$db2[\"fecha_entrega\"];\n\t\t\t\t\t$fec_acep[]=$db[\"fecha_aceptacion\"];\n\t\t\t\t\t}\n\t\t\t\t$con=count($tasa_e);\n\t\t\t\tfor ($i=0; $i<$con;){\n\t\t\t\t\t\tif($sub_fase[$i] < '12'){\n\t\t\t\t\t\t\t$cont_entrega = $cont_entrega + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif($sub_fase[$i] >= '12' && $fec_acep[$i]!=''){\n\t\t\t\t\t\t\t$cont_aceptacion = $cont_aceptacion + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$i++;\n\t\t\t\t\t}\n\t\t\tif($cont_aceptacion==0 && $cont_entrega==0){\n\t\t\t\t$total_tasa=0;\n\t\t\t\t}\n\t\t\telse{\n\t\t\t$total_tasa = ((($cont_aceptacion)*100) / ($cont_entrega+$cont_aceptacion));\n\t\t\t}\n\t\t\t\n\t\t\t$arre[1]=array(\"tasa_exito\"=>round($total_tasa).\"%\" );\n\t\t\t\t\n\t\t\t//Calculo Importancias\n\t\t\t$imp_social=0; $imp_soc_si=0; $imp_soc_no=0;\n\t\t\t$imp_politica=0; $imp_poli_si=0; $imp_poli_no=0;\n\t\t\t$imp_comercial=0; $imp_com_si=0; $imp_com_no=0;\n\t\t\t\n\t\t\t$sql4 = \"SELECT idpropuesta, importancia_social, importancia_politica, importancia_comercial \n\t\t\t\t\tFROM propuesta, usuario\n\t\t\t\t\tWHERE idstatus_proyecto=1\n\t\t\t\t\t\tand propuesta.idusuario=usuario.idcedula \n\t\t\t\t\t\tand usuario.idgerencia=$_GET[codg]\";\n\t\t\t\t\t\t$import=array();\n\t\t\t\t\t\t$i_comercial=array();\n\t\t\t\t\t\t$i_politica=array();\n\t\t\t\t\t\t$i_social=array();\n\t\t\t$c = mysql_query($sql4) or die(mysql_error());\n\t\t\t\twhile ($dc = mysql_fetch_assoc($c)){\n\t\t\t\t\t$import[]=$dc[\"idpropuesta\"];\n\t\t\t\t\t$i_social[]=$dc[\"importancia_social\"];\n\t\t\t\t\t$i_politica[]=$dc[\"importancia_politica\"];\n\t\t\t\t\t$i_comercial[]=$dc[\"importancia_comercial\"];\n\t\t\t\t\t}\n\t\t\t$con=count($import);\n\t\t\t\tfor ($i=0; $i<$con;){\n\t\t\t\tif ($i_social[$i]!='No'){\n\t\t\t\t\t$imp_soc_si = $imp_soc_si + 1;\n\t\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$imp_soc_no = $imp_soc_no + 1;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tif ($i_politica[$i]!='No'){\n\t\t\t\t\t$imp_poli_si = $imp_poli_si + 1;\n\t\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$imp_poli_no = $imp_poli_no + 1;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tif ($i_comercial[$i]!='No'){\n\t\t\t\t\t$imp_com_si = $imp_com_si + 1;\n\t\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$imp_com_no = $imp_com_no + 1;\n\t\t\t\t\t}\n\t\t\t\t\t\t$i++;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$arre[2]=array(\"imp_soc_si\"=>$imp_soc_si, \"imp_soc_no\"=>$imp_soc_no,\n\t\t\t\t\t\t\t\t\"imp_poli_si\"=>$imp_poli_si, \"imp_poli_no\"=>$imp_poli_no,\n\t\t\t\t\t\t\t\t\"imp_com_si\"=>$imp_com_si, \"imp_com_no\"=>$imp_com_no);\n\t\t\t\t\t\t\t\t\n\t\t\t//Cantidad Iniciativas\n\t\t\t$cont_iniciativa=0; $cont_proyecto=0; $totalip=0;\n\t\t\t$sql5 = \"SELECT idpropuesta, idtipo_fase_actualizada, idstatus_proyecto \n\t\t\t\t\tFROM propuesta, usuario\n\t\t\t\t\tWHERE idstatus_proyecto=1 \n\t\t\t\t\t\tand propuesta.idusuario=usuario.idcedula \n\t\t\t\t\t\tand usuario.idgerencia=$_GET[codg]\";\t\n\t\t\t\t\t$ini_pro=array();\n\t\t\t$d = mysql_query($sql5) or die(mysql_error());\n\t\t\t\twhile ($dd = mysql_fetch_assoc($d)){\n\t\t\t\t\t$ini_pro[]=$dd[\"idpropuesta\"];\n\t\t\t\t\t}\n\t\t\t$con=count($ini_pro);\n\t\t\t\tfor ($i=0; $i<$con;){\n\t\t\t\t\t$d2 = mysql_query($sql5) or die(mysql_error());\n\t\t\t\twhile ($dd2 = mysql_fetch_assoc($d2)){\t\t\t\t\t\t\n\t\t\t\t\t$sub_fase[]=$dd2[\"idtipo_fase_actualizada\"];\n\t\t\t\t\t$status[]=$dd2[\"idstatus_proyecto\"];\n\t\t\t\tif ($sub_fase[$i] < '12' && $status[$i]=='1'){\n\t\t\t\t\t$cont_iniciativa = $cont_iniciativa + 1;\n\t\t\t\t\t}\n\t\t\t\tif($sub_fase[$i] >= '12' && $status[$i]=='1'){\n\t\t\t\t\t$cont_proyecto = $cont_proyecto + 1;\n\t\t\t\t\t}\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t$totalip = $cont_iniciativa + $cont_proyecto;\n\t\t\t$arre[3]=array(\"cont_iniciativa\"=>$cont_iniciativa, \"cont_proyecto\"=>$cont_proyecto,\n\t\t\t\t\t\t\t\"totalip\"=>$totalip);\t\t\t\t\t\n\t\t\t\n\t\t\t$ja=json_encode($arre);\n\t\t\t echo $ja;\n\t\t\t\n\t}", "title": "" }, { "docid": "c71c4efd56749c9e04f143ce39851b33", "score": "0.44583303", "text": "public function setCodeCentreImpot(?string $codeCentreImpot): Etablissements {\n $this->codeCentreImpot = $codeCentreImpot;\n return $this;\n }", "title": "" }, { "docid": "93b4df456c5c2770b738948d7f8e1397", "score": "0.4457428", "text": "public function setIncidencia(){\n return view(\"incidencias.abrirIncidencia\");\n }", "title": "" }, { "docid": "297dc64e3823161152cc8940d6644a3e", "score": "0.44571668", "text": "protected function registro_K280(){\n\t\tforeach ($this->arr_ajustes as $ajuste){\n\t\t\tif((float)$ajuste[\"quantidade\"] > 0 || (float)$ajuste[\"quantidade\"] < 0){\n\t\t\t\t$registro = array(\n\t\t\t\t\t\"REG\" => \"K280\",\t\t\t\t\t\t\t\t\t\t\t\t//\tidentificador do registro\n\t\t\t\t\t\"DT_EST\" => $this->valor_data($this->datafinalajuste),\t\t\t\t//\t data do estoque final\n\t\t\t\t\t\"COD_ITEM\"\t=> $ajuste[\"codproduto\"],\t\t\t\t\t\t\t\t\t\t//\tcodigo do item (campo 02 do registro 0200)\n\t\t\t\t\t\"QTD_COR_POS\" => ((float)$ajuste[\"quantidade\"] > 0 ? $this->valor_decimal((float)$ajuste[\"quantidade\"],3) : \"\"),\t\t\t//\tQuantidade de correção positiva de apontamento ocorrido em período de apuração anterior\n\t\t\t\t\t\"QTD_COR_NEG\" => ((float)$ajuste[\"quantidade\"] < 0 ? $this->valor_decimal((float)$ajuste[\"quantidade\"] * -1,3) : \"\"),\t\t\t//\tQuantidade de correção positiva de apontamento ocorrido em período de apuração anterior\n\t\t\t\t\t\"IND_EST\"\t=> \"0\",\t\t\t\t\t\t\t\t\t\t\t\t//\tindicador do tipo de estoque(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0 = Estoque de propriedade do informante e em seu poder,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\t 1 = Estoque de propriedade do informante e em posse de terceiros,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\t 2 = Estoque de propriedade de terceiros e em posse do informante)\n\t\t\t\t\t\"COD_PART\"\t=> \"\"\t\t\t\t\t\t\t\t\t\t\t\t//\tcodigo do participante (campo 02 do registro 0150) - proprietário/possuidor que não seja o informante do arquivo\n\t\t\t\t);\n\t\t\t\t$this->escrever_registro($registro);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a8f44c00a7933b3b652d4eaeb86f6452", "score": "0.44557598", "text": "function inviaEmendamento($pkid){\n\t\t#GC 06/11/2014# Bypasso le operazioni delle integrazioni\n\t\t/*$this->integrazione->inviaPerApprovazione();\n\t\t$array['ID_STUD'] = $pkid;\n\t\t$array['VALUE'] = \"1\";\n\t\t$sql = \"update {$this->service}_REGISTRAZIONE set IN_EMENDAMENTO_APPROVAZIONE=:value where {$this->xmr->pk_service}=:id_stud and esam=0 and visitnum=0 and visitnum_progr = 0 and progr=1\";\n\t\t$query = new query($this->conn);\n\t\t$query->exec($sql, $array);*/\n\t\t#FINE\n\t\t\n\t\t/*\n\t\t$array['ID_STUD'] = $pkid;\n\t\t$array['VALUE'] = \"0\";\n\t\t$sql = \"update {$this->service}_REGISTRAZIONE set IN_EMENDAMENTO=:value where {$this->xmr->pk_service}=:id_stud and esam=0 and visitnum=0 and visitnum_progr = 0 and progr=1\";\n\t\t$query = new query($this->conn);\n\t\t$query->exec($sql, $array);\n\t\t*/\n\t\t//GIULIO 31-01-2013// Chiudo la scheda di documentazione EME quando invio la richiesta di EME per evitare ulteriori inserimenti di docs in fase di verifica documentazione.\n\t\t$v_num=20;\n\t\t//$array_c['LAST_EME'] = $this->getMaxVprogr($pkid,$v_num);\n//\t\t$array_c['CURR_EME'] = $this->session_vars ['VISITNUM_PROGR'];\n//\t\t$array_c['ID_STUD'] = $pkid;\n//\t\t$array_c['VALUE'] = \"1\";\n//\t\t$array_c['E_NUM'] = \"10\";\n//\t\t$array_c['V_NUM'] = \"20\";\n//\t\t$sql = \"update {$this->service}_COORDINATE set FINE=:value where {$this->xmr->pk_service}=:id_stud and esam=:e_num and visitnum=:v_num and visitnum_progr=:curr_eme\";\n//\t\t$query = new query($this->conn);\n//\t\t$query->exec($sql, $array_c);\n\t\t\n\t\t#Apro la prossima richiesta di emendamento\n\t\t$vprogr=$_GET['VISITNUM_PROGR'];\n\t\t$esam=1;\n\t\t$progr=1;\n\t\t$this->openEsamProgr($pkid,$v_num,$vprogr+1,$esam,$progr, false, false);\n\t\t\n\t\t//$esam=10;\n\t\t//$this->openEsamProgr($pkid,$v_num,$vprogr+1,$esam,$progr, false, false);\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "532d08f1b94af547f4084fbbaa8c8a49", "score": "0.44517034", "text": "function reiniciar_mesas($objeto) {\n\t\t$sql = \"UPDATE \n\t\t\t\t\tcom_mesas\n\t\t\t\tSET \n\t\t\t\t\tx = \".$objeto['x'].\",\n\t\t\t\t\ty = \".$objeto['y'].\"\n\t\t\t\tWHERE\n\t\t\t\t\tid_mesa = \".$objeto['id_mesa'];\n\t\t// return $sql;\n\t\t$result = $this -> query($sql);\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "e1fb7f41d49376f1e0ef4efecc4d064c", "score": "0.44453266", "text": "public function excel($col_name_array, $data_matriz, $doc_name, $no_incluir = array())\n\t{\t\n\t\t$this->php_excel->setActiveSheetIndex(0);\t\n\n\t\t\n\t\t//nombre de la hoja\n\t\t$this->php_excel->getActiveSheet()->setTitle($doc_name);\t\t \n\t\t\n\t\t//escribiendo los encabezados de la tabla de datos\n\t\t$index = $this->startIndex();\n\n\t\t$content = 0;\n\t\t$contador_de_registros = 1;\n\t\tforeach ($col_name_array as $key => $col_name) {\n\n\t\t\t$data_index = $this->numeros_a_letras($content).$contador_de_registros;\n\n\t\t\t$this->php_excel->getActiveSheet()->setCellValue($data_index, $col_name);\n\t\t\t$this->php_excel->getActiveSheet()->getColumnDimension($this->numeros_a_letras($content))->setAutoSize(true);\n\t\t\t$index = $this->nextColumn(true);\n\n\t\t\t$content++;\n\t\t}\n\n\t\t$contador_de_registros++;\n\n\t\t//escribiendo los registros\n\t\tforeach ($data_matriz as $key => $row) {\n\t\t\t$content = 0; \n\t\t\t//$data_index = $this->nextRow(true);\n\t\t\tforeach ($row as $nom_col => $cell_value) {\n\t\t\t\tif (!empty($no_incluir)) {\n\t\t\t\t\tif (!in_array($nom_col, $no_incluir)) {\n\n\t\t\t\t\t\t$data_index = $this->numeros_a_letras($content).$contador_de_registros;\n\t\t\t\t\t\t\n\t\t\t\t\t\t$this->php_excel->getActiveSheet()->setCellValue($data_index, $cell_value );\n\t\t\t\t\t\t$this->php_excel->getActiveSheet()->getColumnDimension($this->numeros_a_letras($content))->setAutoSize(true);\n\t\t\t\t\t\t$data_index = $this->nextColumn(true);\n\n\t\t\t\t\t\t$content++;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t$data_index = $this->numeros_a_letras($content).$contador_de_registros;\t\t\t\t\t\n\n\t\t\t\t\t$this->php_excel->getActiveSheet()->setCellValue($data_index, $cell_value );\n\t\t\t\t\t$this->php_excel->getActiveSheet()->getColumnDimension($this->numeros_a_letras($content))->setAutoSize(true);\n\t\t\t\t\t$data_index = $this->nextColumn(true);\n\n\t\t\t\t\t$content++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t$contador_de_registros++;\n\t\t\t\t\n\t\t}\n\n\t\t$filename = $doc_name. '.xlsx';\n\t\theader(\"Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\");\n\t\theader(\"Content-Disposition: attachment; filename=\". $filename);\n\t\theader(\"Cache-Control: max-age=0\");\n\n\t\t$this->excel_writer = new PHPExcel_Writer_Excel2007($this->php_excel);\n\t\t$this->excel_writer->save(\"php://output\");\n\t}", "title": "" }, { "docid": "22b6b901340eead630cee7fa0f3c41fc", "score": "0.44451097", "text": "public function modificar() {\n $objDatos = new clsDatos();\n $sql = \"UPDATE enfermedad_sintoma\n SET id_esi = '$this->id_esi',\n id_enf = '$this->id_enf',\n id_sin = '$this->id_sin';\";\n $objDatos->ejecutar($sql);\n $objDatos->crerrarconexion();\n }", "title": "" }, { "docid": "2ab76db75db23b557066ccc96552c466", "score": "0.44396645", "text": "public function setExpedientegastos(PropelCollection $expedientegastos, PropelPDO $con = null)\n {\n $expedientegastosToDelete = $this->getExpedientegastos(new Criteria(), $con)->diff($expedientegastos);\n\n\n $this->expedientegastosScheduledForDeletion = $expedientegastosToDelete;\n\n foreach ($expedientegastosToDelete as $expedientegastoRemoved) {\n $expedientegastoRemoved->setExpediente(null);\n }\n\n $this->collExpedientegastos = null;\n foreach ($expedientegastos as $expedientegasto) {\n $this->addExpedientegasto($expedientegasto);\n }\n\n $this->collExpedientegastos = $expedientegastos;\n $this->collExpedientegastosPartial = false;\n\n return $this;\n }", "title": "" }, { "docid": "b4e70e9157484f2a9b68f9921a3fd4d4", "score": "0.44357768", "text": "public function setExpedienteListaempaque($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->expediente_listaempaque !== $v) {\n $this->expediente_listaempaque = $v;\n $this->modifiedColumns[] = ExpedientePeer::EXPEDIENTE_LISTAEMPAQUE;\n }\n\n\n return $this;\n }", "title": "" }, { "docid": "5dbb4ce66df00ea399126e4102025181", "score": "0.44255325", "text": "public function setFechaMipe($fechaMipe){\n $this->fechaMipe = $fechaMipe;\n }", "title": "" }, { "docid": "43a07ea5f38504058f449184a88b3795", "score": "0.4423594", "text": "public function gerarDados() {\n \n if (empty($this->sDataInicial)) {\n throw new Exception(\"Data inicial nao informada!\");\n }\n \n if (empty($this->sDataFinal)) {\n throw new Exception(\"Data final não informada!\");\n }\n /**\n * Separamos a data do em ano, mes, dia\n */\n list($iAno, $iMes, $iDia) = explode(\"-\",$this->sDataFinal);\n $sListaInstit = db_getsession(\"DB_instit\");\n /**\n * Aqui temos a lista de empenhos do exercicio., separado por documento contábil\n * \n * 1 - ref. a empenho\n * 2 - ref. a anulacao de empenho\n * 31 - ref. a anulacao de RP\n * 32 - ref. a anulacao de RP\n */ \n $sSqlEmpenho = \" select e60_numemp, \";\n $sSqlEmpenho .= \" e60_anousu, \";\n $sSqlEmpenho .= \" trim(e60_codemp)::integer as e60_codemp, \";\n $sSqlEmpenho .= \" o58_coddot, \";\n $sSqlEmpenho .= \" o58_orgao, \";\n $sSqlEmpenho .= \" o58_unidade, \";\n $sSqlEmpenho .= \" o58_funcao, \";\n $sSqlEmpenho .= \" o58_subfuncao, \";\n $sSqlEmpenho .= \" o58_programa, \";\n $sSqlEmpenho .= \" o58_projativ, \";\n $sSqlEmpenho .= \" case when o58_anousu >= 2005 then \";\n $sSqlEmpenho .= \" substr(trim(substr(o56_elemento,2,14))||'00000000000',1,15)::varchar(15) \";\n $sSqlEmpenho .= \" else \";\n $sSqlEmpenho .= \" substr(trim(o56_elemento)||'000000000',1,15)::varchar(15) \";\n $sSqlEmpenho .= \" end as rubrica, \";\n $sSqlEmpenho .= \" o15_codtri as recurso, \";\n $sSqlEmpenho .= \" (case when c53_tipo in(11) then c70_data else e60_emiss end) as e60_emiss, \";\n $sSqlEmpenho .= \" c70_valor as valor_empenho, \";\n $sSqlEmpenho .= \" (case when c71_coddoc = 1 then '+' else '-' end)::char(1) as sinal, \"; \n $sSqlEmpenho .= \" z01_cgccpf, \";\n $sSqlEmpenho .= \" ('DOT:['||e60_coddot||'] '|| 'NUMEMP:['||e60_numemp||']'||e60_resumo) as e60_resumo, \";\n $sSqlEmpenho .= \" e60_instit, \";\n $sSqlEmpenho .= \" e60_concarpeculiar, \";\n $sSqlEmpenho .= \" e60_codtipo \";\n $sSqlEmpenho .= \" from empempenho \";\n $sSqlEmpenho .= \" inner join conlancamemp on c75_numemp = e60_numemp \";\n $sSqlEmpenho .= \" inner join conlancamdoc on c71_codlan = c75_codlan \";\n $sSqlEmpenho .= \" inner join conhistdoc on c71_coddoc = c53_coddoc \";\n $sSqlEmpenho .= \" inner join conlancam on c70_codlan = c75_codlan \";\n $sSqlEmpenho .= \" inner join cgm on z01_numcgm = e60_numcgm \";\n $sSqlEmpenho .= \" inner join orcdotacao on o58_coddot = e60_coddot \";\n $sSqlEmpenho .= \" and o58_anousu = e60_anousu and o58_instit = e60_instit \";\n $sSqlEmpenho .= \" inner join orcelemento on o56_codele = o58_codele and o56_anousu = o58_anousu \";\n $sSqlEmpenho .= \" inner join orctiporec on o58_codigo = o15_codigo\";\n $sSqlEmpenho .= \" where c75_data >= '{$this->sDataInicial}' \"; \n $sSqlEmpenho .= \" and c75_data <='{$this->sDataFinal}' \"; \n $sSqlEmpenho .= \" and e60_emiss <='{$this->sDataFinal}'\";\n $sSqlEmpenho .= \" and c71_coddoc in (1,2,31,32) \";\n $sSqlEmpenho .= \" and e60_instit in ({$sListaInstit}) \";\n \n /**\n * Empenhos RP:\n */\n $sSqlEmpenho .= \" union all \";\n $sSqlEmpenho .= \" select distinct (e91_numemp) , \";\n $sSqlEmpenho .= \" e60_anousu, \";\n $sSqlEmpenho .= \" trim(e60_codemp)::integer as e60_codemp, \";\n $sSqlEmpenho .= \" o58_coddot, \";\n $sSqlEmpenho .= \" o58_orgao, \";\n $sSqlEmpenho .= \" o58_unidade, \";\n $sSqlEmpenho .= \" o58_funcao, \";\n $sSqlEmpenho .= \" o58_subfuncao, \";\n $sSqlEmpenho .= \" o58_programa, \";\n $sSqlEmpenho .= \" o58_projativ, \";\n $sSqlEmpenho .= \" case when o58_anousu >= 2005 then \";\n $sSqlEmpenho .= \" substr(trim(substr(o56_elemento,2,14))||'00000000000',1,15)::varchar(15) \";\n $sSqlEmpenho .= \" else \";\n $sSqlEmpenho .= \" substr(trim(o56_elemento)||'000000000',1,150)::varchar(15) \";\n $sSqlEmpenho .= \" end as rubrica, \";\n $sSqlEmpenho .= \" o15_codtri as recurso, \";\n $sSqlEmpenho .= \" e60_emiss, \";\n //$sSqlEmpenho .= \" round((e91_vlremp-e91_vlranu-e91_vlrpag),2)::float8 as valor_empenho, \";\n $sSqlEmpenho .= \" round(e91_vlremp,2)::float8 as valor_empenho, \";\n $sSqlEmpenho .= \" '+'::char(1) as sinal, \"; \n $sSqlEmpenho .= \" z01_cgccpf, \";\n $sSqlEmpenho .= \" ('DOT:['||e60_coddot||'] '|| 'NUMEMP:['||e60_numemp||']'||e60_resumo) as e60_resumo, \";\n $sSqlEmpenho .= \" e60_instit, \";\n $sSqlEmpenho .= \" e60_concarpeculiar, \";\n $sSqlEmpenho .= \" e60_codtipo \";\n $sSqlEmpenho .= \" from empresto \";\n $sSqlEmpenho .= \" inner join empempenho on e60_numemp = e91_numemp \";\n $sSqlEmpenho .= \" inner join cgm on z01_numcgm = e60_numcgm \";\n $sSqlEmpenho .= \" inner join orcdotacao on o58_coddot=e60_coddot and o58_anousu=e60_anousu and o58_instit = e60_instit \";\n $sSqlEmpenho .= \" inner join orcelemento on o56_codele = o58_codele and o56_anousu = o58_anousu \";\n $sSqlEmpenho .= \" inner join orctiporec on o58_codigo = o15_codigo\";\n $sSqlEmpenho .= \" where e91_anousu = \".db_getsession(\"DB_anousu\"); \n $sSqlEmpenho .= \" and e60_instit in ({$sListaInstit}) \";\n $sSqlEmpenho .= \" and e91_rpcorreto is false \";\n \n\n $sSqlEmpenho .= \" union all \";\n $sSqlEmpenho .= \" select e60_numemp, \";\n $sSqlEmpenho .= \" e60_anousu, \";\n $sSqlEmpenho .= \" trim(e60_codemp)::integer as e60_codemp, \";\n $sSqlEmpenho .= \" o58_coddot, \";\n $sSqlEmpenho .= \" o58_orgao, \";\n $sSqlEmpenho .= \" o58_unidade, \";\n $sSqlEmpenho .= \" o58_funcao, \";\n $sSqlEmpenho .= \" o58_subfuncao, \";\n $sSqlEmpenho .= \" o58_programa, \";\n $sSqlEmpenho .= \" o58_projativ, \";\n $sSqlEmpenho .= \" case when o58_anousu >= 2005 then \";\n $sSqlEmpenho .= \" substr(trim(substr(o56_elemento,2,14))||'00000000000',1,15)::varchar(15) \";\n $sSqlEmpenho .= \" else \";\n $sSqlEmpenho .= \" substr(trim(o56_elemento)||'000000000',1,15)::varchar(15) \";\n $sSqlEmpenho .= \" end as rubrica, \";\n $sSqlEmpenho .= \" o15_codtri as recurso, \";\n $sSqlEmpenho .= \" (case when c53_tipo in(11) then c70_data else e60_emiss end) as e60_emiss, \";\n $sSqlEmpenho .= \" c70_valor as valor_empenho, \";\n $sSqlEmpenho .= \" (case when c71_coddoc = 1 then '+' else '-' end)::char(1) as sinal, \"; \n $sSqlEmpenho .= \" z01_cgccpf, \";\n $sSqlEmpenho .= \" ('DOT:['||e60_coddot||'] '|| 'NUMEMP:['||e60_numemp||']'||e60_resumo) as e60_resumo, \";\n $sSqlEmpenho .= \" e60_instit, \";\n $sSqlEmpenho .= \" e60_concarpeculiar, \";\n $sSqlEmpenho .= \" e60_codtipo \";\n $sSqlEmpenho .= \" from empresto\";\n $sSqlEmpenho .= \" inner join empempenho on e91_numemp = e60_numemp\";\n $sSqlEmpenho .= \" inner join conlancamemp on c75_numemp = e60_numemp\";\n $sSqlEmpenho .= \" inner join conlancamdoc on c71_codlan = c75_codlan\";\n $sSqlEmpenho .= \" inner join conhistdoc on c71_coddoc = c53_coddoc\";\n $sSqlEmpenho .= \" inner join conlancam on c70_codlan = c75_codlan\";\n $sSqlEmpenho .= \" inner join cgm on z01_numcgm = e60_numcgm \";\n $sSqlEmpenho .= \" inner join orcdotacao on o58_coddot=e60_coddot and o58_anousu=e60_anousu and o58_instit = e60_instit\";\n $sSqlEmpenho .= \" inner join orcelemento on o56_codele = o58_codele and o56_anousu = o58_anousu\";\n $sSqlEmpenho .= \" inner join orctiporec on o58_codigo = o15_codigo\";\n $sSqlEmpenho .= \" where e91_anousu = \".db_getsession(\"DB_anousu\");\n $sSqlEmpenho .= \" and c75_data <= '{$this->sDataFinal}'\";\n $sSqlEmpenho .= \" and c71_coddoc in (1,2,32) \";\n $sSqlEmpenho .= \" and e91_rpcorreto is true\";\n $sSqlEmpenho .= \" and e60_instit in ({$sListaInstit})\";\n $sSqlEmpenho .= \" order by o58_orgao,\";\n $sSqlEmpenho .= \" o58_unidade,\";\n $sSqlEmpenho .= \" o58_funcao,\";\n $sSqlEmpenho .= \" o58_subfuncao,\";\n $sSqlEmpenho .= \" o58_programa,\";\n $sSqlEmpenho .= \" o58_projativ,\"; \n $sSqlEmpenho .= \" rubrica,\";\n $sSqlEmpenho .= \" e60_emiss \";\n $rsEmpenho = db_query($sSqlEmpenho);\n $iTotalLinhas = pg_num_rows($rsEmpenho);\n \n for ($i = 0; $i < $iTotalLinhas; $i++) {\n \t\n $oEmpenho = db_utils::fieldsMemory($rsEmpenho, $i);\n \n $oEmpenhoRetorno = new stdClass();\n //$oEmpenhoRetorno->empCodigoEntidade = str_pad(db_getsession(\"DB_instit\"), 4, \"0\", STR_PAD_LEFT);\n $oEmpenhoRetorno->empCodigoEntidade = str_pad($this->iCodigoTCE, 4, \"0\", STR_PAD_LEFT);\n $sDiaMesAno = \"{$iAno}-\".str_pad($iMes, 2, \"0\", STR_PAD_LEFT).\"-\".str_pad($iDia, 2, \"0\", STR_PAD_LEFT); \n $oEmpenhoRetorno->empMesAnoMovimento = $sDiaMesAno;\n $oEmpenhoRetorno->empCodigoOrgao = str_pad($oEmpenho->o58_orgao, 2, \"0\", STR_PAD_LEFT);\n $oEmpenhoRetorno->empCodigoUnidadeOrcamentaria = str_pad($oEmpenho->o58_unidade, 2, \"0\", STR_PAD_LEFT);\n $oEmpenhoRetorno->empCodigoFuncao = str_pad($oEmpenho->o58_funcao, 2, \"0\", STR_PAD_LEFT);\n $oEmpenhoRetorno->empCodigoFuncao = str_pad($oEmpenho->o58_funcao, 3, \"0\", STR_PAD_LEFT);\n $oEmpenhoRetorno->empCodigoSubFuncao = str_pad($oEmpenho->o58_subfuncao, 3, \"0\", STR_PAD_LEFT);\n $oEmpenhoRetorno->empCodigoPrograma = str_pad($oEmpenho->o58_programa, 4, \"0\", STR_PAD_LEFT);\n $oEmpenhoRetorno->empCodigoProjetoAtividade = str_pad($oEmpenho->o58_projativ, 5, \"0\", STR_PAD_LEFT);\n $oEmpenhoRetorno->empCodigoRubricaDespesa = str_pad($oEmpenho->rubrica, 15, \"0\", STR_PAD_LEFT);\n $oEmpenhoRetorno->empCodigoRecursoVinculado = str_pad($oEmpenho->recurso, 6, \"0\", STR_PAD_LEFT);\n $oEmpenhoRetorno->empContrapartida = str_pad(\"0\" , 4, \"0\", STR_PAD_LEFT);\n $sNumeroEmpenho = str_pad($oEmpenho->e60_codemp, 5, \"0\", STR_PAD_LEFT);\n $oEmpenhoRetorno->empNumero = $oEmpenho->e60_anousu.$sNumeroEmpenho;\n $oEmpenhoRetorno->empData = $oEmpenho->e60_emiss;\n $oEmpenhoRetorno->empValor = number_format($oEmpenho->valor_empenho,2,\".\",\"\");\n $oEmpenhoRetorno->empSinalValor = $oEmpenho->sinal;\n $iTamanhoPad = strlen($oEmpenho->z01_cgccpf); \n $oEmpenhoRetorno->empCnpjCpf = str_pad($oEmpenho->z01_cgccpf, $iTamanhoPad, 0, STR_PAD_LEFT);\n $oEmpenhoRetorno->empHistorico = str_replace(\"\\n\", \"\", substr($oEmpenho->e60_resumo, 0, 255));\n $oEmpenhoRetorno->empProcesso = $oEmpenho->e60_numemp . \"/\" . $oEmpenho->e60_anousu;\n \n switch ($oEmpenho->e60_codtipo) {\n \n case '1':\n \n $sCodTipo = '3';\n break;\n \n case '2':\n \n $sCodTipo = '1';\n break;\n \n case '3':\n \n $sCodTipo = '2';\n break;\n }\n \n \t$oEmpenhoRetorno->empTipo = str_pad($sCodTipo, 2, \"0\", STR_PAD_LEFT);\n $oEmpenhoRetorno->empNumeroConvenio = str_pad(\"0\", 15, \"0\", STR_PAD_LEFT);\n \t$oEmpenhoRetorno->empNumeroEdital = '';\n $oEmpenhoRetorno->empModalLicitacao = ''; \n $sSqlTipoLicitacao = \" select distinct l20_edital, \";\n $sSqlTipoLicitacao .= \" l44_codigotribunal \";\n $sSqlTipoLicitacao .= \" from empautitem \";\n $sSqlTipoLicitacao .= \" inner join empautitempcprocitem on empautitempcprocitem.e73_sequen = empautitem.e55_sequen \"; \n $sSqlTipoLicitacao .= \" and empautitempcprocitem.e73_autori = empautitem.e55_autori \";\n $sSqlTipoLicitacao .= \" inner join liclicitem on liclicitem.l21_codpcprocitem = empautitempcprocitem.e73_pcprocitem \"; \n $sSqlTipoLicitacao .= \" inner join liclicita on liclicitem.l21_codliclicita = liclicita.l20_codigo \";\n $sSqlTipoLicitacao .= \" inner join cflicita on liclicita.l20_codtipocom = cflicita.l03_codigo \";\n $sSqlTipoLicitacao .= \" inner join pctipocompra on cflicita.l03_codcom = pc50_codcom \";\n $sSqlTipoLicitacao .= \" inner join pctipocompratribunal on l03_pctipocompratribunal = l44_sequencial \";\n $sSqlTipoLicitacao .= \" inner join empautoriza on empautoriza.e54_autori = empautitem.e55_autori \"; \n $sSqlTipoLicitacao .= \" inner join empempaut on e61_autori = e54_autori \";\n $sSqlTipoLicitacao .= \" where e61_numemp = {$oEmpenho->e60_numemp} \";\n $rsSqlTipoLicitacao = db_query($sSqlTipoLicitacao);\n $iNumRowsTipoLicitacao = pg_num_rows($rsSqlTipoLicitacao);\n if ($iNumRowsTipoLicitacao > 0) {\n \n $oTipoLicitacao = db_utils::fieldsMemory($rsSqlTipoLicitacao, 0);\n $oEmpenhoRetorno->empNumeroEdital = str_pad($oTipoLicitacao->l20_edital, 20, \"0\", STR_PAD_LEFT);\n $oEmpenhoRetorno->empModalLicitacao = str_pad($oTipoLicitacao->l44_codigotribunal, 2, \"0\", STR_PAD_LEFT);\n } else {\n \n $sSqlTipoCompra = \" select distinct l44_codigotribunal \";\n $sSqlTipoCompra .= \" from empempenho \";\n $sSqlTipoCompra .= \" inner join pctipocompra on e60_codcom = pc50_codcom \"; \n $sSqlTipoCompra .= \" inner join pctipocompratribunal on pc50_pctipocompratribunal = l44_sequencial \"; \n $sSqlTipoCompra .= \" where e60_numemp = {$oEmpenho->e60_numemp} \";\n $rsSqlTipoCompra = db_query($sSqlTipoCompra);\n $iNumRowsTipoCompra = pg_num_rows($rsSqlTipoCompra);\n if ($iNumRowsTipoCompra > 0) {\n \t\n \t$oTipoCompra = db_utils::fieldsMemory($rsSqlTipoCompra, 0);\n $oEmpenhoRetorno->empNumeroEdital = str_pad(\"0\", 20, \"0\", STR_PAD_LEFT);\n $oEmpenhoRetorno->empModalLicitacao = str_pad($oTipoCompra->l44_codigotribunal, 2, \"0\", STR_PAD_LEFT);\n }\n }\n \t\n array_push($this->aDados, $oEmpenhoRetorno);\n }\n \n return true;\n }", "title": "" }, { "docid": "cc521a3b799eaeb5a85480704c0787f0", "score": "0.4423229", "text": "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->mo15_sequencial = ($this->mo15_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"mo15_sequencial\"]:$this->mo15_sequencial);\n $this->mo15_etapa = ($this->mo15_etapa == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"mo15_etapa\"]:$this->mo15_etapa);\n $this->mo15_idadeinicial = ($this->mo15_idadeinicial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"mo15_idadeinicial\"]:$this->mo15_idadeinicial);\n $this->mo15_idadefinal = ($this->mo15_idadefinal == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"mo15_idadefinal\"]:$this->mo15_idadefinal);\n }else{\n $this->mo15_sequencial = ($this->mo15_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"mo15_sequencial\"]:$this->mo15_sequencial);\n }\n }", "title": "" }, { "docid": "332e7347826027d9b0db0ac03036cf21", "score": "0.44204056", "text": "private function camposObligatorios()\n {\n $this->setRequiredField(\"apellidos\");\n\n return;\n }", "title": "" }, { "docid": "bef4fef544dff86a43d7b824be931eed", "score": "0.44146296", "text": "public function setSaisieImmoEnEcriture(?bool $saisieImmoEnEcriture): Dossier1 {\n $this->saisieImmoEnEcriture = $saisieImmoEnEcriture;\n return $this;\n }", "title": "" }, { "docid": "76438545656ded226fa5df4e23de915b", "score": "0.44120023", "text": "public function testSetTauxPensionMilitaire() {\n\n $obj = new ListeEmployes();\n\n $obj->setTauxPensionMilitaire(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxPensionMilitaire());\n }", "title": "" }, { "docid": "390548d96dd1992c9394cd4ea5370e1b", "score": "0.4410886", "text": "public function setCodEsito($codEsito = null)\n {\n // validation for constraint: string\n if (!is_null($codEsito) && !is_string($codEsito)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($codEsito, true), gettype($codEsito)), __LINE__);\n }\n if (is_null($codEsito) || (is_array($codEsito) && empty($codEsito))) {\n unset($this->CodEsito);\n } else {\n $this->CodEsito = $codEsito;\n }\n return $this;\n }", "title": "" }, { "docid": "cb86a3706a0907595d4201bd98211172", "score": "0.4410236", "text": "public function setAtivo($ativo)\n {\n $this->ativo = $ativo;\n\n \n }", "title": "" }, { "docid": "f983d28ab3298a7b245ce6942ced7af6", "score": "0.44069842", "text": "public function setEtatIPaie($etatIPaie) {\n $this->etatIPaie = $etatIPaie;\n return $this;\n }", "title": "" }, { "docid": "32d0694652485085836a2adf4007210b", "score": "0.4404343", "text": "public function cambiarNuMujeres($mujeres){\r\n $this->nuMujeres = $mujeres;\r\n }", "title": "" }, { "docid": "e1efae59e161931b8fa9aec6a8bb9730", "score": "0.44027007", "text": "public function executeInscribirmateriamultiple(sfWebRequest $request){\n\t\t$msjMaterias = \"\";\n\t\t$mensaje = \"\";\n\t\t$resultado = 0;\n\t\t// Busca el alumno\n\t\t$this->alumno = Doctrine_Core::getTable('Alumnos')->find($request->getParameter('idalumno'));\n\t\t$materias_seleccionadas = $request->getParameter('case');\n\t\t$comisiones_seleccionadas = $request->getParameter('comisiones');\n\n // solo para controles de años completos aprobados\n\t\t$cicloMayor2011 = Doctrine_Core::getTable('CiclosLectivos')->getAlumnoTieneCicloLectivoMayor2011($this->alumno->getIdalumno());\n\t\t\n\t\tif(count($materias_seleccionadas) > 0) {\n\t\t\tforeach ($materias_seleccionadas as $materiaplan) {\n\t\t\t\t$idcomision = $comisiones_seleccionadas[$materiaplan];\n\t\t\t\t$control_anios_aprobados = true;\n\n\t\t\t\t// CONTROL SOLO PARA ARQUITECTURA DE AÑOS APROBADOS COMPLETOS\n\t\t\t\t//***********************************************************\n\t\t\t\tif(($this->alumno->getIdplanestudio()==18 || $this->alumno->getIdplanestudio()==19) && $cicloMayor2011) {\n\t\t\t\t\t$comision = Doctrine_Core::getTable('Comisiones')->find($idcomision);\n\t\t\t\t\t$idmateriaplan = $comision->getCatedras()->getMateriasPlanes()->getIdmateriaplan();\n\t\t\t\t\n\t\t\t\t\t$control_anios_aprobados = Doctrine_Core::getTable('Correlatividades')->controlAnioCompleto($this->alumno->getIdalumno(), $this->alumno->getIdplanestudio(), $idmateriaplan);\n\t\t\t\t\n\t\t\t\t\tif (!$control_anios_aprobados)\n\t\t\t\t\t\t$resultado = 4;\n\t\t\t\t}\n\n\t\t\t\t// Inscribe el alumno a la materia\n\t\t\t\tif ($control_anios_aprobados) // solo es falso si falla el control en arquitectura\n\t\t\t\t\t$resultado = $this->alumno->inscribirMateria($idcomision);\n\t\t\t\t// Muestra un mensaje de acuerdo a resultado\n\t\t\t\tswitch ($resultado) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\t$comision = Doctrine_Core::getTable('Comisiones')->find($idcomision);\n\t\t\t\t\t\t$msjMaterias .= $comision->getCatedras()->getMateriasPlanes()->getMaterias().\"\\n\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\t$mensaje .= $materiaplan.\": El alumno ya se encuentra inscripto o regular a dicha materia.\\n\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\t$mensaje .= $materiaplan.\": Se ha superado la capacidad maxima de la comisión.\\n\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\t$mensaje .= $materiaplan.\": El alumno no tiene los años completos previos aprobados para cursar esta materia.\\n\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} \t\t\t\n\t\tif ($resultado == 0) {\n\t\t\t$mensaje = \"No se ha seleccionado ninguna materia.\\n\";\n\t\t} elseif ($resultado == 1){\n\t\t\t$mensaje = \"Se ha inscripto correctamente a la materia.\\n\";\n\t\t\t\n\t\t\t// Destinatario\n\t\t\t$oContacto = $this->alumno->getPersonas()->getContacto();\n\t\t\t$destinatario = $oContacto->getEmail1();\n\n\t\t\t// Remitente\n\t\t\t$remitente = \"sistemas@ucu.edu.ar\";\n\t\t\t\n\t\t\t$msj = 'Se confirma que el alumno '.$this->alumno->getPersonas().', '.$this->alumno->getPersonas()->getTiposDocumentos().': '.$this->alumno->getPersonas()->getNrodoc().' se ha inscripto correctamente a las materias.\n\t\tIdAlumno: '.$this->alumno->getIdalumno().'\n\t\tOperación: Inscripción multiple a Materias\n\t\tMaterias: \\n'.$msjMaterias.'\\n\n\t\tFecha de inscripción: '.date('d-m-Y H:i:s');\n\t\t\t\n\t\t\t$mensajeEmail = '\n**************************************************************************************\n**************************************************************************************\n'.$msj.'\n**************************************************************************************\n**************************************************************************************';\n\t\t\t\n\t\t\t$resul = $this->getMailer()->composeAndSend(\n\t\t\t\t\t$remitente,\n\t\t\t\t\t$destinatario,\n\t\t\t\t\t'SAO - Confirmación de inscripción a Materia: '. $this->alumno->getPersonas(),\n\t\t\t\t\t$mensajeEmail\n\t\t\t);\n\t\t\t\t\t\t\n\t\t}\n\t\techo $mensaje;\n\t\t\n\t\treturn sfView::NONE;\n\t}", "title": "" }, { "docid": "a8e454a06cd0f13554fc1bc3e0feb745", "score": "0.44011307", "text": "function resumenComisionistas(){\r\n $this->procedimiento = 'vef.ft_rep_comisionistas_sel';\r\n $this->transaccion = 'VEF_RESUCOMISI_SEL';\r\n $this->tipo_procedimiento = 'SEL';//tipo de transaccion\r\n\r\n $this->setCount(false);\r\n\r\n $this->setParametro('filtro_sql', 'filtro_sql', 'varchar');\r\n $this->setParametro('id_periodo', 'id_periodo', 'integer');\r\n $this->setParametro('tipo_reporte', 'tipo_reporte', 'varchar');\r\n $this->setParametro('fecha_ini', 'fecha_ini', 'date');\r\n $this->setParametro('fecha_fin', 'fecha_fin', 'date');\r\n $this->setParametro('id_gestion', 'id_gestion', 'integer');\r\n $this->setParametro('id_periodo_inicio', 'id_periodo_inicio', 'integer');\r\n $this->setParametro('id_periodo_final', 'id_periodo_final', 'integer');\r\n\r\n\r\n //Definicion de la lista del resultado del query\r\n $this->captura('nit', 'varchar');\r\n $this->captura('total_acumulado', 'numeric');\r\n $this->captura('mes_envio', 'varchar');\r\n $this->captura('gestion', 'integer');\r\n $this->captura('mes_inicio', 'varchar');\r\n $this->captura('mes_final', 'varchar');\r\n\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n //echo($this->consulta); exit;\r\n $this->ejecutarConsulta();\r\n\r\n //Devuelve la respuesta\r\n return $this->respuesta;\r\n }", "title": "" } ]
d9cda1f3dd8500156a986db916267e0c
Scans development directory and find all libraries.
[ { "docid": "df046d8d7f562e039317690916542e10", "score": "0.62623256", "text": "private function findLibraries($path) {\n $this->libraries = array();\n\n if (is_dir($path) === FALSE) {\n return;\n }\n\n $contents = scandir($path);\n\n for ($i = 0, $s = count($contents); $i < $s; $i++) {\n if ($contents[$i][0] === '.') {\n continue; // Skip hidden stuff.\n }\n\n $libraryPath = $path . '/' . $contents[$i];\n $libraryJSON = $this->getFileContents($libraryPath . '/library.json');\n if ($libraryJSON === NULL) {\n continue; // No JSON file, skip.\n }\n\n $library = json_decode($libraryJSON, TRUE);\n if ($library === NULL) {\n continue; // Invalid JSON.\n }\n\n // TODO: Validate props? Not really needed, is it? this is a dev site.\n\n $library['libraryId'] = $this->h5pF->getLibraryId($library['machineName'], $library['majorVersion'], $library['minorVersion']);\n\n // Convert metadataSettings values to boolean & json_encode it before saving\n $library['metadataSettings'] = isset($library['metadataSettings']) ?\n H5PMetadata::boolifyAndEncodeSettings($library['metadataSettings']) :\n NULL;\n\n // Save/update library.\n $this->h5pF->saveLibraryData($library, $library['libraryId'] === FALSE);\n\n // Need to decode it again, since it is served from here.\n $library['metadataSettings'] = json_decode($library['metadataSettings']);\n\n $library['path'] = 'development/' . $contents[$i];\n $this->libraries[H5PDevelopment::libraryToString($library['machineName'], $library['majorVersion'], $library['minorVersion'])] = $library;\n }\n\n // TODO: Should we remove libraries without files? Not really needed, but must be cleaned up some time, right?\n\n // Go trough libraries and insert dependencies. Missing deps. will just be ignored and not available. (I guess?!)\n $this->h5pF->lockDependencyStorage();\n foreach ($this->libraries as $library) {\n $this->h5pF->deleteLibraryDependencies($library['libraryId']);\n // This isn't optimal, but without it we would get duplicate warnings.\n // TODO: You might get PDOExceptions if two or more requests does this at the same time!!\n $types = array('preloaded', 'dynamic', 'editor');\n foreach ($types as $type) {\n if (isset($library[$type . 'Dependencies'])) {\n $this->h5pF->saveLibraryDependencies($library['libraryId'], $library[$type . 'Dependencies'], $type);\n }\n }\n }\n $this->h5pF->unlockDependencyStorage();\n // TODO: Deps must be inserted into h5p_nodes_libraries as well... ? But only if they are used?!\n }", "title": "" } ]
[ { "docid": "a69aa7d756143cd738c4b18039732d2d", "score": "0.6436975", "text": "abstract protected function getLibrariesToLoad();", "title": "" }, { "docid": "0de5eb616b5acfefc26fb0c904c07dcc", "score": "0.6420027", "text": "protected function scanDir()\n {\n $this->moduleList = [];\n foreach ($this->getVendorList() as $vendorName) {\n $this->moduleList[$vendorName] = [];\n }\n\n $this->readModules();\n }", "title": "" }, { "docid": "4d1884d3fade663d134d898d6b4c011c", "score": "0.64028573", "text": "public static function library()\n\t{\n\t\treturn array(dirname(__file__) . '/');\n\t}", "title": "" }, { "docid": "942c24f76ba1c1d9e9427971dd5b789c", "score": "0.6017075", "text": "public function scanSourceFolders() {\n $this->addons = [];\n foreach ($this->sources as $sourceDir) {\n $this->scanSource($sourceDir);\n }\n }", "title": "" }, { "docid": "ff3076d943e023b2352e4e0788e16ef5", "score": "0.5992812", "text": "public function discover(): int\n {\n $packageDescriptors = array_merge(\n glob($this->rootDirectory.DIRECTORY_SEPARATOR.'composer.json'),\n glob($this->rootDirectory.DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'*'.DIRECTORY_SEPARATOR.'*'.DIRECTORY_SEPARATOR.'composer.json')\n );\n\n array_map([$this, 'processPackageDescriptors'], $packageDescriptors);\n\n // Run through and cache all found plugins\n foreach ($this->plugins as $pluginType => $plugins) {\n Cache::instance()->set('plugins.'.$pluginType, $plugins);\n }\n\n // Disable the needs-update flag\n Cache::instance()->set('needs-update', false);\n\n return $this->libraries;\n }", "title": "" }, { "docid": "278fa69a733f445bd7575498edc47fa4", "score": "0.5958911", "text": "protected function scan_language_dirs()\n {\n // Finally, Load app languages\n $path = SYSTEM_PATH . DS . 'language';\n $this->found_languages = $this->filesystem->list_folders($path);\n }", "title": "" }, { "docid": "ac5053176b3323eb129559fe931fb931", "score": "0.59288126", "text": "public function getExtensionLibraries();", "title": "" }, { "docid": "37e737296f917d0821a95f761a27b2da", "score": "0.5637391", "text": "public function testLoaderClassSearchDirs()\n {\n $dirs = [];\n foreach (['_testDir1', '_testDir2'] as $dir) {\n $dirs[] = implode(DIRECTORY_SEPARATOR, [dirname(__FILE__), '_files', $dir]);\n }\n\n // throws exception on failure\n Zend_Loader::loadClass('Class1', $dirs);\n Zend_Loader::loadClass('Class2', $dirs);\n }", "title": "" }, { "docid": "58125c7271c84f10d6fe136223136e4e", "score": "0.5613647", "text": "function discoverExistingClasses($recursive = FALSE);", "title": "" }, { "docid": "de531d258c50ca66bbc689d43d343897", "score": "0.5585924", "text": "function libraries()\n\t{\n return array();\n\t}", "title": "" }, { "docid": "b5e31eeefdef73309ee58a13b7a53f1f", "score": "0.5557006", "text": "public function discoverMyPackages() {\n $allPackageConfigs = PackageManager::rebuildPackages()->assemblies();\n $enabledPackageConfigs = PackageManager::loadPackagesConfigs(true);\n foreach($enabledPackageConfigs ?? [] as $name => $packageConfig) {\n if (isset($allPackageConfigs[$name])) {\n $this->_stdout->success(sprintf('[%s][%s] version=[%s] actived at %s.', \n $packageConfig['sort'], \n $name, \n $packageConfig['version'], \n $packageConfig['updated_at']));\n if (isset($allPackageConfigs[$name])) {\n unset($allPackageConfigs[$name]);\n }\n } else {\n $this->_stdout->warning(sprintf('[%s] source code is no longer exists.', $name)); \n PackageManager::deletePackageConfig($packageConfig['id']);\n }\n }\n foreach($allPackageConfigs as $name => $v) {\n $this->_stdout->warning(sprintf('[%s] not actived.', $name));\n }\n }", "title": "" }, { "docid": "8835d260f8fda0a7b29eb9ce850be646", "score": "0.5546543", "text": "public function findManifests(){\n foreach ($this->src as $component => $source) {\n $src = $source[0].\"/../manifest.php\";\n if( file_exists($src) && is_readable($src) ){\n $this->manifests[$component] = $src;\n }\n }\n }", "title": "" }, { "docid": "14d185762eae209f2f1ef96605e2ac7b", "score": "0.55360484", "text": "protected function getLibraries(): array\n {\n return [];\n }", "title": "" }, { "docid": "14d185762eae209f2f1ef96605e2ac7b", "score": "0.55360484", "text": "protected function getLibraries(): array\n {\n return [];\n }", "title": "" }, { "docid": "14d185762eae209f2f1ef96605e2ac7b", "score": "0.55360484", "text": "protected function getLibraries(): array\n {\n return [];\n }", "title": "" }, { "docid": "436f638b37115ca5b5ad32602c3b649a", "score": "0.55214703", "text": "public function getDirectoryModules();", "title": "" }, { "docid": "37421cec416dd6fa4687618340aa28ff", "score": "0.55064416", "text": "public function getAdditionalVendorDirs();", "title": "" }, { "docid": "cc88f1a9ffb7efdb878b48fff85f6899", "score": "0.5502746", "text": "public static function scan()\n {\n if (!FS_ACCESS && Config::get('available_themes')) {\n return Config::get('available_themes');\n }\n $dir = \"themes/\";\n $scanned = scandir($dir);\n $_packages = [];\n foreach ($scanned as $folder) {\n if ($folder[0] != '.') {\n $json = $dir.$folder.'/package.json';\n if (file_exists($json)) {\n $data = json_decode(file_get_contents($json));\n if (!FS_ACCESS && isset($data->mainsite) && $data->mainsite===true) {\n continue;\n }\n @$data->title = @$data->title?? @$data->name;\n $data->package = $folder;\n $data->url = @$data->homepage?? (@$data->url?? '');\n $_packages[$folder] = $data;\n }\n }\n }\n return $_packages;\n }", "title": "" }, { "docid": "fbbdf8e1ebadbcc0a3f3d490b7675f64", "score": "0.54753417", "text": "public function getPackageRoots(): array;", "title": "" }, { "docid": "36094dbf9fe50772b5e5037d8f4ed51c", "score": "0.547517", "text": "public static function declareGeneralJSLibs()\n\t{\n\t\tself::declareJSFilesFromFolder('libs');\n\t}", "title": "" }, { "docid": "7afaad0ef600d67b23d997c2c8ffea1a", "score": "0.54511625", "text": "private function load_libraries() {\n\n\t\t\t// Load the update checker library.\n\t\t\trequire_once ASCRIPTA_ENGINE_LIBRARIES_PATH . 'class-update-check.php';\n\n\t\t}", "title": "" }, { "docid": "6ba8190a7fbdbf2dd2be581af31284e2", "score": "0.54389936", "text": "function search_theme_directories($force = \\false)\n {\n }", "title": "" }, { "docid": "9c8d986d24cebb010a0534aa0251e644", "score": "0.5421262", "text": "protected function load_libraries_for_additional_tests() {\n global $CFG;\n\n require_once($CFG->dirroot.'/elis/program/lib/setup.php');\n require_once(elispm::lib('data/userset.class.php'));\n require_once(elispm::lib('data/user.class.php'));\n require_once(elispm::lib('data/usermoodle.class.php'));\n require_once(elispm::lib('data/userset.class.php'));\n }", "title": "" }, { "docid": "db4d7e17b6cb10d325bf472cceaaf83c", "score": "0.5415919", "text": "protected static function indexFiles() {\n\t\t// Go through the directories\n\t\tforeach(self::$directories as $curDir) {\n\t\t\t// Wildcard?\n\t\t\tif(preg_match('/^(.*)\\*$/', $curDir, $matches)) {\n\t\t\t\t$curDir = $matches[1];\n\n\t\t\t\t// Add trailing slash if necessary\n\t\t\t\tif(!empty($curDir) && !preg_match('/^(.*)\\/$/', $curDir))\n\t\t\t\t\t$curDir .= '/';\n\n\t\t\t\t// Search for files\n\t\t\t\tforeach(scandirr(DIR_LIB.$curDir) as $curFile) {\n\t\t\t\t\tif(is_file(DIR_LIB.$curDir.$curFile) && preg_match('/([a-zA-Z0-9_]+)\\.class\\.php/', $curFile, $fileMatches)) {\n\t\t\t\t\t\t// Is ignored?\n\t\t\t\t\t\tforeach(self::$ignoreList as $i) { // TODO: Do this better\n\t\t\t\t\t\t\tif(preg_match('/^'.$i.'/', $curDir.$curFile))\n\t\t\t\t\t\t\t\tcontinue 2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Add file\n\t\t\t\t\t\tif(!isset(self::$index[$fileMatches[1]]))\n\t\t\t\t\t\t\tself::$index[$fileMatches[1]] = $curDir.$curFile;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Search for files\n\t\t\t\tforeach(scandir(DIR_LIB.$curDir) as $curFile) {\n\t\t\t\t\t// Add trailing slash if necessary\n\t\t\t\t\tif(!preg_match('/^(.+)\\/$/', $curDir))\n\t\t\t\t\t\t$curDir .= '/';\n\n\t\t\t\t\tif(is_file(DIR_LIB.$curDir.$curFile) && preg_match('/([a-zA-Z0-9_]+)\\.class\\.php/', $curFile, $fileMatches)) {\n\t\t\t\t\t\t// Add file\n\t\t\t\t\t\tif(!isset(self::$index[$fileMatches[1]]))\n\t\t\t\t\t\t\tself::$index[$fileMatches[1]] = $curDir.$curFile;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "24ad401783ed82172f8eaf8dcba9a5e1", "score": "0.53881377", "text": "public function loadPackages() : array;", "title": "" }, { "docid": "80b9b27bb4f91f0b93c7285380391bd6", "score": "0.5383605", "text": "function RTphpLoad() {\n\n $lib = array(\n '/src/RTmysqli.php',\n '/src/RTpassword.php',\n '/src/RTutil.php',\n '/src/RTslugify.php'\n );\n\n foreach ($lib as $class) {\n\n require_once dirname(__FILE__) . $class;\n }\n}", "title": "" }, { "docid": "eab1d9361d237dffcaed8dcdc8120262", "score": "0.53773016", "text": "function asu_isearch_libraries_info() {\n // Expected to be extracted into 'sites/all/libraries/jqtree'.\n $libraries['jqtree'] = array(\n 'name' => 'jQTree Library',\n 'vendor url' => 'http://mbraak.github.io/jqTree/',\n 'download url' => 'https://github.com/mbraak/jqTree/archive/0.22.0.zip',\n 'version callback' => 'asu_isearch_short_circuit_version',\n 'files' => array(\n 'js' => array('tree.jquery.js'),\n 'css' => array('jqtree.css'),\n ),\n );\n\n return $libraries;\n}", "title": "" }, { "docid": "66f0230876442e0f73b58bf599e48b90", "score": "0.5367258", "text": "public static function chainload() {\n require_once self::BASE_PATH . \"/vendor/autoload.php\";\n foreach (scandir(dirname(__FILE__)) as $filename) {\n $path = dirname(__FILE__) . \"/\" . $filename;\n if (is_file($path) && substr_compare($path, \".php\", strlen($path) - strlen(\".php\"), strlen(\".php\")) === 0) {\n require_once $path;\n }\n }\n }", "title": "" }, { "docid": "93d29b99858ef4abcf04ca133f57734f", "score": "0.5349509", "text": "public static function loadGeneralJSLibs()\n\t{\n\t\tparent::renderFilesFromFolder(MainJsPath.'libs'.DIRECTORY_SEPARATOR, 'js');\n\t}", "title": "" }, { "docid": "bba8e510626c7b5c5139f6a89900a2fa", "score": "0.5348433", "text": "private static function getPaths() {\n $root = $_SERVER[\"DOCUMENT_ROOT\"];\n return array(\n $root . \"/classes/logger\",\n $root . \"/classes/controllers\",\n $root . \"/classes\",\n $root . \"/interface\",\n $root . \"/config\",\n $root . \"/extenders\",\n $root . \"/models\",\n );\n }", "title": "" }, { "docid": "4a468274c9007cc65860991c94c999b0", "score": "0.5336748", "text": "protected function loadLibraries(){\n\t\trequire_once('uf-store.acf.functions.php');\n\t\trequire_once('uf-store.ajax.functions.php');\n\t\trequire_once('uf-store.shortcode.functions.php');\n\n\t\t//UFStore\n\t\trequire_once('uf-store.cart.class.php');\n\t\trequire_once('uf-store.shipping.class.php');\n\t\trequire_once('uf-store.shipping.usps.class.php');\n\t\trequire_once('uf-store.checkout.class.php');\n\n\t\tUFStoreCart::setupCart();\n\t\t// $ufstore = UFStore::instance();\n\t\t// $ufstore->shoppingCart = new UFStoreCart();\n\t}", "title": "" }, { "docid": "9892828abc5e6632aff0f2ae983db99b", "score": "0.533213", "text": "function autoload_framework_classes ($class_name){\n $file_name = $class_name . '.php';\n $start_path = dirname(__FILE__) . \"/../..\";\n\n global $GLOBALS;\n\n foreach ($GLOBALS[\"locations\"] as $loc){\n if ($loc->autoload){\n $file = $start_path . \"/\" . $loc->path . \"/\" . $file_name;\n if(file_exists($file)){\n require_once ( $file );\n return true;\n }\n }\n }\n\n handle_error(\"The requested library, <b>$class_name</b>, could not be found.<br/>\\n\\t\\tlooking in <em>\". $_SERVER[\"DOCUMENT_ROOT\"] .\"</em>\");\n}", "title": "" }, { "docid": "1d553fa5e39a048f7fe0101b8772fe3e", "score": "0.53202236", "text": "function get_all_packages()\n{\n\tglobal $account, $root_path, $root_url, $sw_version, $build_crc;\n\tglobal $panic, $panic_dir;\n\n\t$build_path = \"$root_path/$sw_version/$build_crc\";\n\n\t// check if the directory for the software version and the build CRC exists\n\tif (!file_exists($build_path)){\n\t\techo \"<center><font size=2><b>$build_path does not exist.</b></font></center>\";\n\t\treturn false;\n\t}\n\telse{\n\t\t//echo \"<center><font size=2><b>$build_path exists.</b></font></center>\";\n\t\tchdir($build_path);\n\t\t$build_dir = opendir($build_path);\n\n\t\twhile (($entry = readdir($build_dir)) !== false) {\n\t\t\tif($entry != '.' && $entry != '..' && is_dir($entry)){ \n\t\t\t\t//echo \"<center><font size=2><b>barcode entry: $entry</b></font></center>\";\n\n\t\t\t\t//change directory to Barcode name\n\t\t\t\t$bar_path = \"$build_path/$entry\";\n\t\t\t\tchdir($bar_path);\n\t\t\t\t$bar_dir = opendir($bar_path);\n\n\t\t\t\t// read name of packages in the barcode directory\n\t\t\t\twhile (($package_entry = readdir($bar_dir)) !== false) {\n\t\t\t\t\tif($package_entry != '.' && $package_entry != '..' && is_dir($package_entry)){ \n\t\t\t\t\t\t//echo \"<center><font size=2><b>package entry: $package_entry</b></font></center>\";\n\n\t\t\t\t\t\t$package_path = \"$bar_path/$package_entry\";\n\n\t\t\t\t\t\t// collect panic packages\n\t\t\t\t\t\tget_panic_package($package_path);\n\t\t\t\t\t}\n\t\t\t\t} // end of while for a each package directory in a barcode\n\t\t\t\tclosedir($bar_dir);\n\t\t\t\tchdir(\"..\");\n\t\t\t}\n\t\t} // end of while loop for each barcode\n\t\tclosedir($build_dir);\n\t\tchdir($root_path);\n\t}\n}", "title": "" }, { "docid": "e83edd3fe2f0c09330e3bffc954a85d0", "score": "0.5315267", "text": "public static function loadSetupFiles()\n {\n if(file_exists($siteSetup = Site::getPath() . 'setup' . EXT))\n self::_loadSetupFile($siteSetup);\n\n if(file_exists($rootSetup = ROOT . 'setup' . EXT))\n self::_loadSetupFile($rootSetup);\n\n /*\n $paths = self::getModulePaths();\n foreach($paths as $path)\n {\n $modules = scandir($path);\n foreach($modules as $module)\n {\n if($module{0} == '.') \n continue;\n\n $setupFile = sprintf('%s%s/setup%s', $path, $module, EXT);\n\n if(file_exists($setupFile))\n self::_loadSetupFile($setupFile, $module);\n }\n }\n */\n\n if($modules = self::getModules())\n {\n foreach($modules as $moduleName => $modulePath)\n {\n $setupFile = $modulePath . 'setup' . EXT;\n\n if(file_exists($setupFile))\n self::_loadSetupFile($setupFile, $moduleName);\n }\n }\n }", "title": "" }, { "docid": "ce94b0779b31ca355d55d598fbd0e3ca", "score": "0.53151315", "text": "public static function compiles()\r\n {\r\n $dir = static::guessPackageClassPath('royalcms/storage');\r\n\r\n return [\r\n $dir . \"/Contracts/StorageInterface.php\",\r\n $dir . \"/Adapter/Aliyunoss.php\",\r\n $dir . \"/Adapter/Direct.php\",\r\n $dir . \"/Adapter/Local.php\",\r\n $dir . \"/Filesystem.php\",\r\n $dir . \"/FilesystemAdapter.php\",\r\n $dir . \"/FilesystemBaseTrait.php\",\r\n $dir . \"/FilesystemManager.php\",\r\n $dir . \"/Facades/Storage.php\",\r\n $dir . \"/StorageServiceProvider.php\",\r\n ];\r\n }", "title": "" }, { "docid": "a56a04d7229449edb321ffcd4bc4a264", "score": "0.5309731", "text": "public function load()\n\t\t{\n\t\t\t$data = array('config', 'form', 'generator', 'db', 'url', 'text', 'frontend', 'crypt', 'security', 'cache', 'img', \n\t\t\t\t'math', 'cookie', 'export');\n\n\t\t\tforeach($data as $library)\n\t\t\t{\n\t\t\t\t$library_path = SYSPATH . 'libraries/' . ucfirst($library) . '.php';\n\t\t\t\tif( file_exists($library_path) )\n\t\t\t\t\tinclude $library_path;\n\t\t\t\telse\n\t\t\t\t\texit('I can not find <b>' . $library . '</b> library at <b>' . $library_path . '</b>');\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "cd89ccc888480b3c7bc171602837fd92", "score": "0.5300443", "text": "public function listLibraries()\n {\n // Cache the list from pear.horde.org for one day\n if ($list = $this->_cache->get(__CLASS__ . '::list2', 86400)) {\n return unserialize($list);\n }\n $components = $this->_getComponents();\n $list = array();\n foreach ($components as $component) {\n $list[] = $component->name;\n }\n $list = array_filter($list, array($this, '_hideApplications'));\n sort($list);\n $this->_cache->set(__CLASS__ . '::list2', serialize($list));\n return $list;\n }", "title": "" }, { "docid": "dc6637228b3c39ca0c0ba29d70a44e5c", "score": "0.5295835", "text": "public function dependencies() {\n\t\tif ($customPath = $this->params['custom']) {\n\t\t\t$this->_paths = [$customPath];\n\t\t} elseif (!empty($this->params['plugin'])) {\n\t\t\t$this->_paths = [CakePlugin::path($this->params['plugin'])];\n\t\t} else {\n\t\t\t$this->_paths = [APP];\n\t\t}\n\n\t\t$this->_findFiles('php');\n\t\tforeach ($this->_files as $file) {\n\t\t\t$this->out(sprintf('Updating %s...', $file), 1, Shell::VERBOSE);\n\n\t\t\t$this->_correctFile($file);\n\n\t\t\t$this->out(sprintf('Done updating %s', $file), 1, Shell::VERBOSE);\n\t\t}\n\t}", "title": "" }, { "docid": "f64c0efd0f1b7766f52bc3796de39e85", "score": "0.52853125", "text": "public function registerLibraries()\n {\n \n }", "title": "" }, { "docid": "ab1e94342c5a4cc6e39af450857d20e4", "score": "0.52714676", "text": "public function library_path()\n\t{\n\t\treturn $this->vendor_path();\n\t}", "title": "" }, { "docid": "ca2645a8e3f62f2fa9ed8d4d191850a5", "score": "0.52616125", "text": "static public function scan(){\r\n // Initialize defaults\r\n self::$recursive = true;\r\n self::$directories = array();\r\n self::$files = array();\r\n self::$ext_filter = false;\r\n\r\n // Check we have minimum parameters\r\n if(!$args = func_get_args()){\r\n $args[0]=$_SERVER[\"DOCUMENT_ROOT\"].\"/2wframework\";\r\n }\r\n\r\n // filter with [.] php extension\r\n self::$ext_filter[] = strtolower('php');\r\n\r\n $files = self::verifyPaths($args[0]);\r\n self::requireFiles($files);\r\n }", "title": "" }, { "docid": "62c55adb4fb3486c5d265be8d29d6b1b", "score": "0.52535444", "text": "function scanDependencies()\n {\n return $this->scanPackageXMLDependencies();\n }", "title": "" }, { "docid": "3fc277c7fa3e00b157867f13b7723f51", "score": "0.523426", "text": "static private function find_contents($dir){\r\n $result = array();\r\n $root = scandir($dir);\r\n foreach($root as $value){\r\n if($value === '.' || $value === '..'||$value==='Autoloader.php') {continue;}\r\n if(is_file($dir.DIRECTORY_SEPARATOR.$value)){\r\n if(!self::$ext_filter || in_array(strtolower(pathinfo($dir.DIRECTORY_SEPARATOR.$value, PATHINFO_EXTENSION)), self::$ext_filter)){\r\n self::$files[] = $result[] = $dir.DIRECTORY_SEPARATOR.$value;\r\n }\r\n continue;\r\n }\r\n if(self::$recursive){\r\n foreach(self::find_contents($dir.DIRECTORY_SEPARATOR.$value) as $value) {\r\n self::$files[] = $result[] = $value;\r\n }\r\n }\r\n }\r\n $autoload='vendor'.DIRECTORY_SEPARATOR.'Autoloader.php';\r\n if (in_array($autoload,$result)){\r\n unset($result[$autoload]);\r\n echo 'unset <br>';\r\n }\r\n // Return required for recursive search\r\n return $result;\r\n }", "title": "" }, { "docid": "64d0cf3b4a7304287cd64982c00f0be7", "score": "0.5211085", "text": "function sd_load_plugins() {\n\t$plugins = array();\n\t$plugin_dir = trailingslashit( STYLESHEETPATH ) . 'plugins';\n\t\n\tif ( !is_dir( $plugin_dir ) )\n\t\treturn $plugins;\n\tif ( ! $dh = opendir( $plugin_dir ) )\n\t\treturn $plugins;\n\twhile ( ( $plugin = readdir( $dh ) ) !== false ) {\n\t\tif ( substr( $plugin, -4 ) == '.php' )\n\t\t\t$plugins[] = $plugin_dir . '/' . $plugin;\n\t}\n\tclosedir( $dh );\n\tsort( $plugins );\n\n\treturn $plugins;\n}", "title": "" }, { "docid": "e1718f881fa28cbfc745cc1fde6a9e7c", "score": "0.52081", "text": "function findCssFiles();", "title": "" }, { "docid": "ca4391332558351883135dfa0a019971", "score": "0.5185707", "text": "public function getLibrariesPath() {\n return $this->_libraries_path;\n }", "title": "" }, { "docid": "0854c7b08754aa71553244152b7578e3", "score": "0.518222", "text": "protected function getSearchPaths() {}", "title": "" }, { "docid": "bb68ecaab798b1062bf3acd378ff159d", "score": "0.5164792", "text": "public function getLibraries() {\n return $this->libraries;\n }", "title": "" }, { "docid": "50ca842e6b82091a9af3c8f03912d72f", "score": "0.5164185", "text": "private function _discover() {\n\n $dir = new DirectoryIterator($this->dirname);\n\n foreach ($dir as $file) {\n\n if ($file->isFile() && !$file->isDot()) {\n\n $filename = $file->getFilename();\n $pathname = $file->getPathname();\n\n if (preg_match('/^(\\d+\\W*)?(\\w+)\\.php$/', $filename, $matches)) {\n require_once($pathname);\n $class = \"{$matches[2]}_{$this->suffix}\";\n $files[$filename] = new $class();\n }\n\n }\n\n }\n\n ksort($files);\n $plugins = array_values($files);\n\n return $plugins;\n\n }", "title": "" }, { "docid": "bbf6d7fe0a34426004861b654ea1b3b0", "score": "0.51639146", "text": "function load_dependencies() {\n if (strpos(TERMINUS_ROOT, 'phar:') === 0) {\n require TERMINUS_ROOT . '/vendor/autoload.php';\n return;\n }\n\n $has_autoload = false;\n\n foreach (get_vendor_paths() as $vendor_path) {\n if (file_exists($vendor_path . '/autoload.php') ) {\n require $vendor_path . '/autoload.php';\n $has_autoload = true;\n break;\n }\n }\n\n if (!$has_autoload) {\n fputs(STDERR, \"Internal error: Can't find Composer autoloader.\\n\");\n exit(3);\n }\n}", "title": "" }, { "docid": "77c867f920163953defe0d6a6d8d8024", "score": "0.51594687", "text": "private function findPackagesToInstall(): array\n {\n $packages = [];\n\n // root package\n $rootPackage = Helpers::getRootPackage();\n if ($rootPackage->hasInstallAction()) {\n $packages[$rootPackage->name] = $rootPackage;\n }\n\n // packages from vendor\n $composerVendorPath = Path::join(getcwd(), 'vendor');\n foreach (new \\DirectoryIterator($composerVendorPath) as $composerVendorFileInfo) {\n if (!$composerVendorFileInfo->isDot() && $composerVendorFileInfo->isDir()) {\n $vendorPath = $composerVendorFileInfo->getRealPath();\n // all packages in vendor\n foreach (new \\DirectoryIterator($vendorPath) as $packageFileInfo) {\n if (!$packageFileInfo->isDot() && $packageFileInfo->isDir()) {\n // package has .afeefa/package dir --> run setup\n $package = Package::composer()->path($packageFileInfo->getRealPath());\n if ($package->hasInstallAction()) {\n // filter out copies such as package-backup\n if ($package->name === $composerVendorFileInfo->getBasename() . '/' . $packageFileInfo->getBasename()) {\n $packages[$package->name] = $package;\n }\n }\n }\n }\n }\n }\n\n return $packages;\n }", "title": "" }, { "docid": "4885b13d323c5d6116a1d2a82ae29473", "score": "0.51565164", "text": "function get_include_paths() {\r\n\treturn array_map('realpath', explode(PATH_SEPARATOR, get_include_path()));\r\n}", "title": "" }, { "docid": "3ca6e10a3d1b537baf721a35f13670ac", "score": "0.5140786", "text": "public static function getFullList()\n {\n return self::$library;\n }", "title": "" }, { "docid": "c005dbc8f6a2c20b8ca17b408cba6f00", "score": "0.51397246", "text": "static private function require_files() {\n\n\t\t\t/**\n * Classes\n */\n\n\t\t\t/* Admin */\n\t\t\trequire_once RED_SP_DIR . 'class-red-sp-admin.php';\n\n /* Plugin History */\n\t\t\trequire_once RED_SP_DIR . 'plugin-history/class-red-sp-plugin-history.php';\n\t\t\trequire_once RED_SP_DIR . 'plugin-history/class-red-sp-plugin-history-display.php';\n require_once RED_SP_DIR . 'plugin-history/class-red-sp-plugin-history-rest.php';\n require_once RED_SP_DIR . 'plugin-history/inc/js-variables.php';\n\t\t}", "title": "" }, { "docid": "d74015de0e23bc3fea6490165b8bb468", "score": "0.5138464", "text": "private function injectLibraries()\n\t{\n\n\t\t# Inject access library\n\t\t$this->timber->container->singleton('access', function () {\n\t\t\treturn \\Timber\\Libraries\\Access::instance();\n\t\t});\n\n\t\t# Inject backup library\n\t\t$this->timber->container->singleton('backup', function () {\n\t\t\treturn \\Timber\\Libraries\\Backup::instance();\n\t\t});\n\n\t\t# Inject bench library\n\t\t$this->timber->container->singleton('bench', function () {\n\t\t\treturn \\Timber\\Libraries\\Bench::instance();\n\t\t});\n\n\t\t# Inject cachier library\n\t\t$this->timber->container->singleton('cachier', function () {\n\t\t\treturn \\Timber\\Libraries\\Cachier::instance();\n\t\t});\n\n\t\t# Inject cookie library\n\t\t$this->timber->container->singleton('cookie', function () {\n\t\t\treturn \\Timber\\Libraries\\Cookie::instance();\n\t\t});\n\n\t\t# Inject debug library\n\t\t$this->timber->container->singleton('debug', function () {\n\t\t\treturn \\Timber\\Libraries\\Debug::instance();\n\t\t});\n\n\t\t# Inject encrypter library\n\t\t$this->timber->container->singleton('encrypter', function () {\n\t\t\treturn \\Timber\\Libraries\\Encrypter::instance();\n\t\t});\n\n\t\t# Inject faker library\n\t\t$this->timber->container->singleton('faker', function () {\n\t\t\treturn \\Timber\\Libraries\\Faker::instance();\n\t\t});\n\n\t\t# Inject filter library\n\t\t$this->timber->container->singleton('filter', function () {\n\t\t\treturn \\Timber\\Libraries\\Filter::instance();\n\t\t});\n\n\t\t# Inject gravatar library\n\t\t$this->timber->container->singleton('gravatar', function () {\n\t\t\treturn \\Timber\\Libraries\\Gravatar::instance();\n\t\t});\n\n\t\t# Inject hasher library\n\t\t$this->timber->container->singleton('hasher', function () {\n\t\t\treturn \\Timber\\Libraries\\Hasher::instance();\n\t\t});\n\n\t\t# Inject helpers library\n\t\t$this->timber->container->singleton('helpers', function () {\n\t\t\treturn \\Timber\\Libraries\\Helpers::instance();\n\t\t});\n\n\t\t# Inject pdf writer library\n\t\t$this->timber->container->singleton('biller', function () {\n\t\t\treturn \\Timber\\Libraries\\Biller::instance();\n\t\t});\n\n\t\t# Inject logger library\n\t\t$this->timber->container->singleton('logger', function () {\n\t\t\treturn \\Timber\\Libraries\\Logger::instance();\n\t\t});\n\n\t\t# Inject mailer library\n\t\t$this->timber->container->singleton('mailer', function () {\n\t\t\treturn \\Timber\\Libraries\\Mailer::instance();\n\t\t});\n\n\t\t# Inject notify library\n\t\t$this->timber->container->singleton('notify', function () {\n\t\t\treturn \\Timber\\Libraries\\Notify::instance();\n\t\t});\n\n\t\t# Inject plugins library\n\t\t$this->timber->container->singleton('plugins', function () {\n\t\t\treturn \\Timber\\Libraries\\Plugins::instance();\n\t\t});\n\n\t\t# Inject remote library\n\t\t$this->timber->container->singleton('remote', function () {\n\t\t\treturn \\Timber\\Libraries\\Remote::instance();\n\t\t});\n\n\t\t# Inject security library\n\t\t$this->timber->container->singleton('security', function () {\n\t\t\treturn \\Timber\\Libraries\\Security::instance();\n\t\t});\n\n\t\t# Inject storage library\n\t\t$this->timber->container->singleton('storage', function () {\n\t\t\treturn \\Timber\\Libraries\\Storage::instance();\n\t\t});\n\n\t\t# Inject time library\n\t\t$this->timber->container->singleton('time', function () {\n\t\t\treturn \\Timber\\Libraries\\Time::instance();\n\t\t});\n\n\t\t# Inject translator library\n\t\t$this->timber->container->singleton('translator', function () {\n\t\t\treturn \\Timber\\Libraries\\Translator::instance();\n\t\t});\n\n\t\t# Inject twig library\n\t\t$this->timber->container->singleton('twig', function () {\n\t\t\treturn \\Timber\\Libraries\\Twig::instance();\n\t\t});\n\n\t\t# Inject twigext library\n\t\t$this->timber->container->singleton('twigext', function () {\n\t\t\treturn \\Timber\\Libraries\\TwigExt::instance();\n\t\t});\n\n\t\t# Inject upgrade library\n\t\t$this->timber->container->singleton('upgrade', function () {\n\t\t\treturn \\Timber\\Libraries\\Upgrade::instance();\n\t\t});\n\n\t\t# Inject validator library\n\t\t$this->timber->container->singleton('validator', function () {\n\t\t\treturn \\Timber\\Libraries\\Validator::instance();\n\t\t});\n\n\t\t# Inject demo library\n\t\t$this->timber->container->singleton('demo', function () {\n\t\t\treturn \\Timber\\Libraries\\Demo::instance();\n\t\t});\n\n\t}", "title": "" }, { "docid": "bbe567aad246869e3670b0163d2b1106", "score": "0.51295644", "text": "public static function compiles()\r\n {\r\n $dir = static::guessPackageClassPath('royalcms/hook');\r\n\r\n return [\r\n $dir . '/Hooks.php',\r\n $dir . '/HookServiceProvider.php',\r\n $dir . '/Facades/Hook.php',\r\n ];\r\n }", "title": "" }, { "docid": "a9f632d12bd7d3797b3f54f4f46a68cd", "score": "0.5113762", "text": "private function includes() {\n\t\trequire_once( PRODUCT_LIST_DIR . 'classes/class-product_list.php' );\n\t\t//require_once( PRODUCT_LIST_DIR . 'classes/class-yc_admin_cursos-settings.php' );\n\t}", "title": "" }, { "docid": "4dd23fdc7c1f94e90690f0e36feed6d7", "score": "0.51085055", "text": "public function setModules()\n {\n $manifest = SS_ClassLoader::instance()->getManifest();\n $result = $manifest->getModules();\n array_walk($result, function (&$value, $key) {\n $value = array('Path' => $value);\n });\n ksort($result);\n $this->result = $result;\n }", "title": "" }, { "docid": "abdadc48d18663b346c0ce173ec201cc", "score": "0.5103613", "text": "protected function _clearPaths() {\n\t\tApp::build(array('Vendor' => array('junk')), App::RESET);\n\t\tini_set('include_path', 'junk');\n\t}", "title": "" }, { "docid": "b7336b6f130062af8a5b2f6924f2e1a3", "score": "0.51006836", "text": "abstract protected function get_all_local_modules();", "title": "" }, { "docid": "cca342cc8c61c5aedea6527962e4dfac", "score": "0.50956464", "text": "public static function loadPlugins(){\n\n\t\t// check to make sure the plugins directory exists\n\t\tif( !self::_pluginsDirectoryExists() )\n\t\t\treturn;\n\n\t\t// scan the directory, searching for plugins that fit the stereotype\n\t\tself::_scanForPlugins();\n\t}", "title": "" }, { "docid": "562ed0765d0346c0f1a87c143bdbd50a", "score": "0.50955844", "text": "function loadDependencies() {\n if (strpos(TERMINUS_ROOT, 'phar:') === 0) {\n require TERMINUS_ROOT . '/vendor/autoload.php';\n return;\n }\n\n $has_autoload = false;\n\n foreach (getVendorPaths() as $vendor_path) {\n if (file_exists($vendor_path . '/autoload.php')) {\n require $vendor_path . '/autoload.php';\n $has_autoload = true;\n break;\n }\n }\n\n if (!$has_autoload) {\n fputs(STDERR, \"Internal error: Can't find Composer autoloader.\\n\");\n exit(3);\n }\n}", "title": "" }, { "docid": "b1e42c38571e52296b718e9e2875ec43", "score": "0.50926745", "text": "function scan_module_dir() {\n\t\t$map = scandir( $this->module_dir );\n\t\t\n\t\tif ( is_array( $map ) && !empty( $map ) ) {\n\t\t\t// sort\n\t\t\tnatsort( $map );\n\t\t\t\n\t\t\t// prepare\n\t\t\t$dir = null;\n\t\t\t\n\t\t\t$i = 0;\n\t\t\tforeach ( $map as $key => $item ) {\n\t\t\t\tif ( $item != '.' && $item != '..' && $item != 'index.html' && strpos( $item, ' ' ) === false ) {\n\t\t\t\t\tif ( preg_match( \"/[^a-zA-Z0-9_]/\", $item ) ) {continue;}\n\t\t\t\t\t\n\t\t\t\t\tif ( is_dir( $this->module_dir.$item ) && file_exists( $this->module_dir.$item.'/'.$item.'_module.php' ) ) {\n\t\t\t\t\t\t$dir[$i]['module_system_name'] = $item;\n\t\t\t\t\t\t$pdata = $this->read_module_metadata( $item.'/'.$item.'_module.php' );\n\t\t\t\t\t\t$dir[$i]['module_name'] = $pdata['name'];\n\t\t\t\t\t\t$dir[$i]['module_url'] = $pdata['url'];\n\t\t\t\t\t\t$dir[$i]['module_version'] = $pdata['version'];\n\t\t\t\t\t\t$dir[$i]['module_description'] = $pdata['description'];\n\t\t\t\t\t\t$dir[$i]['module_author_name'] = $pdata['author_name'];\n\t\t\t\t\t\t$dir[$i]['module_author_url'] = $pdata['author_url'];\n\t\t\t\t\t\t\n\t\t\t\t\t\tunset( $pdata );\n\t\t\t\t\t\t\n\t\t\t\t\t\t// check if activated\n\t\t\t\t\t\t$dir[$i]['module_activated'] = $this->is_activated( $item );\n\t\t\t\t\t\t\n\t\t\t\t\t\tunset( $result );\n\t\t\t\t\t}\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn $dir;\n\t\t}\n\t}", "title": "" }, { "docid": "5ef6fcd69e088630c8a62cd00729ca53", "score": "0.509089", "text": "protected function readModules()\n {\n foreach ($this->moduleList as $vendorName => &$modulesArray) {\n $directoryIterator = new \\DirectoryIterator(\n $this->getAppCodeAbsolutePath() . DIRECTORY_SEPARATOR . $vendorName\n );\n foreach ($directoryIterator as $element) {\n if ($element->isDir()\n && $this->isBaseNameValid($element->getBasename())\n ) {\n $modulesArray[] = $element->getBasename();\n }\n }\n }\n }", "title": "" }, { "docid": "b518fbe3c21e7802d31d4c512d2fbaa4", "score": "0.50908816", "text": "function scannedDir($startUrl) {\n $files = array_values( array_diff( scandir($startUrl), array('..', '.')));\n\n return $files;\n}", "title": "" }, { "docid": "94b59f44cd38a4584041f41efc9dadd9", "score": "0.50902444", "text": "static private function loadPlugins() {\n\n $config = Application::getConfig();\n\n if ($handle = opendir($config[\"system\"][\"plugin-folder\"])) {\n\n /* Das ist der korrekte Weg, ein Verzeichnis zu durchlaufen. */\n while (false !== ($entry = readdir($handle))) {\n if($entry != \".\" && $entry != \"..\") {\n require $config[\"system\"][\"plugin-folder\"] . \"/\" .$entry;\n }\n }\n closedir($handle);\n }\n }", "title": "" }, { "docid": "c28ac1dd2787204f7832067b6d90a514", "score": "0.508785", "text": "function debug_paths()\n{\n\techo 'WEB_PATH :'.api_get_path(WEB_PATH).'<br />';\n\techo 'SYS_PATH :'.api_get_path(SYS_PATH).'<br />';\n\techo 'REL_PATH :'.api_get_path(REL_PATH).'<br />';\n\techo 'WEB_COURSE_PATH :'.api_get_path(WEB_COURSE_PATH).'<br />';\n\techo 'SYS_COURSE_PATH :'.api_get_path(SYS_COURSE_PATH).'<br />';\n\techo 'REL_COURSE_PATH :'.api_get_path(REL_COURSE_PATH).'<br />';\n\techo 'REL_CLARO_PATH :'.api_get_path(REL_CODE_PATH).'<br />';\n\techo 'WEB_CODE_PATH :'.api_get_path(WEB_CODE_PATH).'<br />';\n\techo 'SYS_CODE_PATH :'.api_get_path(SYS_CODE_PATH).'<br />';\n\techo 'SYS_LANG_PATH :'.api_get_path(SYS_LANG_PATH).'<br />';\n\techo 'WEB_IMG_PATH :'.api_get_path(WEB_IMG_PATH).'<br />';\n\techo 'GARBAGE_PATH :'.api_get_path(GARBAGE_PATH).'<br />';\n\techo 'PLUGIN_PATH :'.api_get_path(PLUGIN_PATH).'<br />';\n\techo 'SYS_ARCHIVE_PATH :'.api_get_path(SYS_ARCHIVE_PATH).'<br />';\n\techo 'INCLUDE_PATH :'.api_get_path(INCLUDE_PATH).'<br />';\n\techo 'LIBRARY_PATH :'.api_get_path(LIBRARY_PATH).'<br />';\n\techo 'CONFIGURATION_PATH :'.api_get_path(CONFIGURATION_PATH).'<br />';\n\t\n}", "title": "" }, { "docid": "b3df7371f25f39fc7899e050f9170a41", "score": "0.507867", "text": "public function load()\n\t\t{\n\t\t\t$data = array('form', 'generator', 'db', 'url', 'frontend', 'crypt', 'math', 'datetime');\n\n\t\t\tforeach($data as $library)\n\t\t\t{\n\t\t\t\t$library_path = SYSPATH . 'libraries/' . ucfirst($library) . '.php';\n\t\t\t\tif( file_exists($library_path) )\n\t\t\t\t\tinclude $library_path;\n\t\t\t\telse\n\t\t\t\t\texit('I can not find <b>' . $library . '</b> library at <b>' . $library_path . '</b>');\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "9a75c78ad367c6ccaded35fb8f80f22d", "score": "0.5067646", "text": "function libraries_drush_list() {\n $libraries = array();\n foreach (libraries_info() as $name => $info) {\n $libraries[$name] = libraries_detect($name);\n }\n ksort($libraries);\n\n if (empty($libraries)) {\n drush_print('There are no registered libraries.');\n }\n\n else {\n $rows = array();\n // drush_print_table() automatically treats the first row as the header, if\n // $header is TRUE.\n $rows[] = array(dt('Name'), dt('Status'), dt('Version'), dt('Variants'), dt('Dependencies'));\n foreach ($libraries as $name => $library) {\n $status = ($library['installed'] ? dt('OK') : Unicode::ucfirst($library['error']));\n $version = (($library['installed'] && !empty($library['version'])) ? $library['version'] : '-');\n\n // Only list installed variants.\n $variants = array();\n foreach ($library['variants'] as $variant_name => $variant) {\n if ($variant['installed']) {\n $variants[] = $variant_name;\n }\n }\n $variants = (empty($variants) ? '-' : implode(', ', $variants));\n\n $dependencies = (!empty($library['dependencies']) ? implode(', ', $library['dependencies']) : '-');\n\n $rows[] = array($name, $status, $version, $variants, $dependencies);\n }\n // Make the possible values for the 'Status' column and the 'Version' header\n // wrap nicely.\n $widths = array(0, 12, 7, 0, 0);\n drush_print_table($rows, TRUE, $widths);\n }\n}", "title": "" }, { "docid": "598917c9141d8180f9c84bc1aaeb6c4b", "score": "0.50671434", "text": "protected static function _scanForPlugins(){\n\t\t$directory = __DIR__ . Config::$pluginsDirectory;\n\t\t$handle = opendir( $directory );\n\n\t\t// check to make sure we could open the directory handle\n\t\tif( !$handle )\n\t\t\treturn;\n\n\t\t// now begin looping through all of the contents of the plugin directory\n\t\twhile( ( $dir = readdir( $handle ) ) !== false ){\n\t\t\tif( $dir === '.' || $dir === '..' )\n\t\t\t\tcontinue;\n\n\t\t\t// now we need to verify that the current \"file\" is a directory before continuing\n\t\t\tif( !is_dir( $directory . $dir ) )\n\t\t\t\tcontinue;\n\n\t\t\t// expect a class file to exist in the format \"class-<DirectoryName>.php\"\n\t\t\t$classFile = $directory . $dir . '/' . $dir . '.php';\n\t\t\tif( !file_exists( $classFile ) )\n\t\t\t\tcontinue;\n\n\t\t\t// now actually include the code\n\t\t\trequire_once( $classFile );\n\n\t\t\t// now expect the class name to match whatever the $dir name was\n\t\t\tif( !class_exists( $dir ) )\n\t\t\t\tcontinue;\n\n\t\t\t// now we can instantiate the class name and store it now\n\t\t\tself::$_plugins[] = new $dir();\n\t\t}\n\t}", "title": "" }, { "docid": "177817ae75c8043aa33be35de06a08aa", "score": "0.506022", "text": "private static function includeFiles(){\n //system libs\n self::includeFile(Site::$systemLibs.\"/ChromePhp.php\");\n self::includeFile(Site::$systemLibs.\"/lessc.inc.php\");\n self::includeFile(Site::$systemLibs.\"/JavaScriptPacker.php\");\n self::includeFile(Site::$systemLibs.\"/cssMin.php\");\n //self::includeFile(Site::$systemLibs.\"/minify/JSMin.php\");\n //self::includeFile(Site::$systemLibs.\"/minify/Minify/YUICompressor.php\");\n //self::includeFile(Site::$systemLibs.\"/PHPthumb/ThumbLib.inc.php\");\n self::includeFilesInFolder(Site::$systemUtils);\n self::includeFilesInFolder(Site::$appConfigFolder);\n //system FMK\n self::includeFilesInFolder(Site::$systemMVC);\n \n //app\n //self::includeFilesInFolder(Site::$appControllersFolder); //it is included when needed in fact.\n self::includeFilesInFolder(Site::$appModelsFolder); \n \n //javascript and css modules\n //self::includeFilesInFolder(Site::$publicFolder); \n }", "title": "" }, { "docid": "1798ea257eb7be21348781e80bbd5634", "score": "0.5055255", "text": "public static function boot()\n\t{\n\t\t// Application's environment.\t\t\n\t\t$ROOT = $_SERVER['DOCUMENT_ROOT'];\n\t\tself::$__CLASS_REPOS = array($ROOT . DIRECTORY_SEPARATOR . 'lib' => null);\n\t\t\n\t\t// Swingers's environment.\n\t\t$ROOT_SWINGER = dirname(__DIR__);\n\t\t\n\t\t// Set PHP include path to Swinger's classes.\n\t\tset_include_path(get_include_path() . PATH_SEPARATOR . $ROOT_SWINGER . DIRECTORY_SEPARATOR . 'lib');\n\t\t\n\t\t// TO DO: check for the time zone.\n\t\t\n\t\t// Load all systems' classes, so they will be avalaible later.\n\t\t// Please note that the load order is very important.\n\t\trequire_once 'Error.php';\n\t\trequire_once 'SwingerExceptions.php';\n\t\trequire_once 'Registry.php';\n\t\trequire_once 'Env.php';\n\t\trequire_once 'Request.php';\n\t\trequire_once 'Regexp.php';\n\t\trequire_once 'Utils.php';\n\t\trequire_once 'Layout.php';\n\t\trequire_once 'View.php';\n\t\trequire_once 'Controller.php';\n\t\trequire_once 'Autoload.php';\n\t\trequire_once 'Log.php';\n\n\t\t// Set the environment for the application.\n\t\tEnv::set('base_dir', $ROOT);\n\t\tEnv::set('view_dir', $ROOT . DIRECTORY_SEPARATOR . 'views');\n\t\tEnv::set('layout_dir', $ROOT . DIRECTORY_SEPARATOR . 'layouts');\n\t\tEnv::set('public_dir', $ROOT . DIRECTORY_SEPARATOR . 'public');\n\t\tEnv::set('data_dir', $ROOT . DIRECTORY_SEPARATOR . 'data');\n\t\tEnv::set('log_file', $ROOT . DIRECTORY_SEPARATOR . 'logs' . DIRECTORY_SEPARATOR . 'application.log');\n\t\tEnv::set('class_register_path', Env::get('data_dir') . DIRECTORY_SEPARATOR . 'classes.idx');\n\n\t\t// Set the environment for Swinger.\n\t\tEnv::set('swinger_base_dir', $ROOT_SWINGER);\n\t\tEnv::set('swinger_view_dir', $ROOT_SWINGER . DIRECTORY_SEPARATOR . 'views');\n\t\tEnv::set('swinger_layout_dir', $ROOT_SWINGER . DIRECTORY_SEPARATOR . 'layouts');\n\t\t\n\t\t// Common environment.\n\t\tEnv::set('layout_name', 'default.php');\n\t\t\n\t\tEnv::freeze();\n\t\t\n\t\t// Load the configuration file.\n\t\tinclude $ROOT . DIRECTORY_SEPARATOR . 'config.php';\n\n\t\t// Initialize the LOG file.\n\t\t// Please note that the path to the LOG file and the session can be set in the\n\t\t// configuration file (config.php).\n\t\tif (is_null(Log::getLogFile())) { Log::setLogFile(Env::get('log_file')); }\n\t\tif (is_null(Log::getSession())) { Log::setSession(getRandomString(4)); }\n\t\t\n\t\t// Register the default application's class' repository.\n\t\t// Warning: file \"config.php\" may set the a new class repository.\n\t\t// Therefore, the file \"config.php\" should be loaded before calling AutoLoad::getIndex().\n\t\tAutoLoad::getIndex(array_keys(self::$__CLASS_REPOS));\n\t}", "title": "" }, { "docid": "e4be3b2a16eaea4375659ccf80f8d285", "score": "0.5054206", "text": "protected function discoverCurrentCoreSymlink() {}", "title": "" }, { "docid": "be97d52728bb76a720bc96577c72cf61", "score": "0.50497204", "text": "static private function buildIncludePath() {\n\n foreach (self::$config['modules_locations'] as $location) {\n\n foreach (new DirectoryIterator($location) as $folder) {\n\n if (!$folder->isDir() || $folder->isDot()) {\n continue;\n }\n\n // Remember modules.\n self::$modules[] = $folder->getBasename();\n\n $paths[] = realpath($folder->getPathname()) . DIRECTORY_SEPARATOR . 'libraries';\n }\n }\n\n // Combine modules and core\n $paths = array_merge(array('.',\n realpath(APPPATH) . DIRECTORY_SEPARATOR . 'extensions',\n realpath(APPPATH) . DIRECTORY_SEPARATOR . 'libraries'\n ), $paths);\n\n // Build the new include path & return\n $include_path = join($paths, PATH_SEPARATOR);\n\n return $include_path;\n }", "title": "" }, { "docid": "d687783a89b72d58945a748bcd97ec06", "score": "0.50439435", "text": "function drush_xplatforms_scan() {\n # ls ~/.drush/xplatforms/platforms| grep \"*.stub\"\n}", "title": "" }, { "docid": "ddf0c2666dfebda020c81346be6cce21", "score": "0.5038368", "text": "public function set_lib()\n\t{\n\t\tif($this->container != null)\n\t\t{\n\t\t\t$libs = $this->container->getlibs();\n\t\t\t// if the libs is not null\n\t\t\tif($libs != null)\n\t\t\t{\n\t\t\t\tforeach ($libs as $l_name => $l_value)\n\t\t\t\t{\n\t\t\t\t\t$this->di[$l_name] = $l_value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8b4ccaca28e2eb81c209645855ecacd5", "score": "0.5037449", "text": "public function testLibraryConfigAccess() {\n\t\t$result = Libraries::get('lithium');\n\t\t$expected = array(\n\t\t\t'path' => LITHIUM_LIBRARY_PATH . '/lithium',\n\t\t\t'loader' => 'lithium\\\\core\\\\Libraries::load',\n\t\t\t'prefix' => 'lithium\\\\',\n\t\t\t'suffix' => '.php',\n\t\t\t'transform' => null,\n\t\t\t'bootstrap' => null,\n\t\t\t'defer' => true,\n\t\t\t'includePath' => false\n\t\t);\n\t\t$this->assertEqual($expected, $result);\n\t\t$this->assertNull(Libraries::get('foo'));\n\n\t\t$result = Libraries::get();\n\t\t$this->assertTrue(array_key_exists('lithium', $result));\n\t\t$this->assertTrue(array_key_exists('app', $result));\n\t\t$this->assertEqual($expected, $result['lithium']);\n\t}", "title": "" }, { "docid": "1d85fe1d8f4c59bd1ad8f713ed86e6e2", "score": "0.5032767", "text": "public function fetchAvailableApis()\n\t{\n\t\t$apis = array();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tforeach( new DirectoryIterator( $this->_mainDir ) as $file )\n\t\t\t{\n\t\t\t\tif ( ! $file->isDot() AND $file->isDir() )\n\t\t\t\t{\n\t\t\t\t\t$_name = $file->getFileName();\n\t\t\t\t\t\n\t\t\t\t\tif ( substr( $_name, 0, 1 ) != '.' )\n\t\t\t\t\t{\n\t\t\t\t\t\t$apis[] = $_name;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch ( Exception $e ) {}\n\t\t\n\t\treturn $apis;\n\t}", "title": "" }, { "docid": "b025e8ebaa887a61c7b2dae4ec23b9a0", "score": "0.50315684", "text": "private static function loadServices() {\n\n Application::$services = array();\n\n $config = Application::getConfig();\n\n if ($handle = opendir($config[\"system\"][\"service-folder\"])) {\n\n /* Das ist der korrekte Weg, ein Verzeichnis zu durchlaufen. */\n while (false !== ($entry = readdir($handle))) {\n if ($entry != \".\" && $entry != \"..\") {\n require $config[\"system\"][\"service-folder\"] . \"/\" . $entry;\n $className = $config[\"system\"][\"namespace\"] . \"\\\\services\\\\\" . basename($entry,\".php\");\n $testClass = new \\ReflectionClass($className);\n if (!$testClass->isAbstract()) {\n Application::$services[basename($entry,\".php\")] = new $className();\n }\n\n }\n }\n closedir($handle);\n }\n }", "title": "" }, { "docid": "3b586073a3fb86e2339585c243403495", "score": "0.5021623", "text": "protected function loadHelpers(): void\n {\n $files = glob(__DIR__ . '/../Helpers/*.php');\n foreach ($files as $file) {\n require_once($file);\n }\n }", "title": "" }, { "docid": "3b586073a3fb86e2339585c243403495", "score": "0.5021623", "text": "protected function loadHelpers(): void\n {\n $files = glob(__DIR__ . '/../Helpers/*.php');\n foreach ($files as $file) {\n require_once($file);\n }\n }", "title": "" }, { "docid": "d30dae92f165ff0e2c919c882cef3e9c", "score": "0.50205016", "text": "function includePaths() {\n\t\tRuntime::_requires('4.3.0', 'includePaths');\n\t\treturn array_map('trim', explode(PATH_SEPARATOR, get_include_path()));\t\t\t\t\n\t}", "title": "" }, { "docid": "622c40ed0d49888a28c6bb807bd29e76", "score": "0.5018449", "text": "private function IncludeLibraries()\n {\n foreach ($this->libraries_files as $library_folder => $library_files) {\n foreach ($library_files as $library_file) {\n $path = \"Lib/\" . $library_folder . \"/\" . $library_file . \".php\";\n if (file_exists($path))\n include $path;\n else\n throw new Exception(\"There is no a file named '{$path}'.\", 404);\n }\n }\n }", "title": "" }, { "docid": "bec3f724d7bb20e25aac281a1fda927c", "score": "0.50141025", "text": "function useLib() {\n $a = func_get_args();\n foreach ($a as $i => $name) {\n // TODO: se esiste una dir con lo stesso nome del componente da caricare\n if (strpos($name, '.php') === false) {\n $name.= '.php';\n }\n // qui non si puo' usare Path::join(), viene chiamato prima di Strings dove viene definito\n require_once LIB_PATH . DIRECTORY_SEPARATOR . $name;\n }\n }", "title": "" }, { "docid": "1e007f5da35d6ed2b82db9b18bb9a706", "score": "0.50051427", "text": "function get_vendor_paths() {\n $vendor_paths = array(\n TERMINUS_ROOT . '/../../../vendor',\n TERMINUS_ROOT . '/vendor'\n );\n return $vendor_paths;\n}", "title": "" }, { "docid": "39aca3afe66f9765c74e357aaa735a7f", "score": "0.5002841", "text": "protected function prepareAutoloader()\n\t{\n\t\trequire_once $this->lotusRuntimeDir . \"Autoloader/Autoloader.php\";\n\t\t$autoloader = new LtAutoloader;\n\t\t$autoloader->autoloadPath[] = $this->lotusRuntimeDir;\n\t\tif (isset($this->option[\"autoload_dir\"]))\n\t\t{\n\t\t\t$autoloader->autoloadPath[] = $this->option[\"autoload_dir\"];\n\t\t}\n\t\tif ($this->proj_dir)\n\t\t{\n\t\t\tis_dir($this->proj_dir . 'lib') && $autoloader->autoloadPath[] = $this->proj_dir . 'lib';\n\t\t\tis_dir($this->app_dir . 'action') && $autoloader->autoloadPath[] = $this->app_dir . 'action';\n\t\t\tis_dir($this->app_dir . 'lib') && $autoloader->autoloadPath[] = $this->app_dir . 'lib';\n\t\t}\n\n\t\tif (!$this->devMode)\n\t\t{\n\t\t\t$autoloader->storeHandle = $this->coreCacheHandle;\n\t\t}\n\t\t$autoloader->init();\n\t}", "title": "" }, { "docid": "6a3e94c45c710ee1554a0dd7e6dc3ee2", "score": "0.49895072", "text": "final static function getAvailableCoreServices()\r\n\t{\r\n\t\t$services_dir = ILIAS_ABSOLUTE_PATH.\"/Services\";\r\n\r\n\t\tif (!@is_dir($services_dir))\r\n\t\t{\r\n\t\t\treturn array();\r\n\t\t}\r\n\r\n\t\t// read current directory\r\n\t\t$dir = opendir($services_dir);\r\n\r\n\t\t$services = array();\r\n\t\twhile($file = readdir($dir))\r\n\t\t{\r\n\t\t\tif ($file != \".\" and\r\n\t\t\t\t$file != \"..\")\r\n\t\t\t{\r\n\t\t\t\t// directories\r\n\t\t\t\tif (@is_dir($services_dir.\"/\".$file))\r\n\t\t\t\t{\r\n\t\t\t\t\tif (@is_file($services_dir.\"/\".$file.\"/service.xml\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$services[] = array(\"subdir\" => $file);\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 $services;\r\n\t}", "title": "" }, { "docid": "d5f9924464d3648ec953d32466de81d8", "score": "0.4981778", "text": "private static function scan($root) {\n\n\t\t// get directory\n\t\t$dir = scandir(Path::create([Config::root(), $root]));\n\n\t\t// iterate files\n\t\tforeach ($dir as $file) {\n\n\t\t\tif ($file != \".\" && $file != \"..\") {\n\n\t\t\t\t// is dir > recursion\n\t\t\t\tif (is_dir(Path::create([Config::root(), $root, $file]))) {\n\t\t\t\t\tarray_merge(self::$files, self::scan(Path::create([$root, $file])));\n\t\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tself::$files[] = [\"path\" => $root, \"file\" => $file];\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "4a6f09c8ab024b2dad9e9a971a6ad38d", "score": "0.49776947", "text": "public function bootPackages()\n {\n // Get the namespace of the current plugin to use in accessing the Config of the plugin\n $pluginNamespace = str_replace('\\\\', '.', strtolower(__NAMESPACE__));\n\n // Instantiate the AliasLoader for any aliases that will be loaded\n $aliasLoader = AliasLoader::getInstance();\n\n // Get the packages to boot\n $packages = Config::get($pluginNamespace . '::packages');\n\n // Boot each package\n foreach ($packages as $name => $options) {\n // Setup the configuration for the package, pulling from this plugin's config\n if (!empty($options['config']) && !empty($options['config_namespace'])) {\n Config::set($options['config_namespace'], $options['config']);\n }\n\n // Register any Service Providers for the package\n if (!empty($options['providers'])) {\n foreach ($options['providers'] as $provider) {\n App::register($provider);\n }\n }\n\n // Register any Aliases for the package\n if (!empty($options['aliases'])) {\n foreach ($options['aliases'] as $alias => $path) {\n $aliasLoader->alias($alias, $path);\n }\n }\n }\n }", "title": "" }, { "docid": "c98a6e4cfcdb4793cec4a8d04c7d2073", "score": "0.49710324", "text": "public function getPackages() {\n $packages = array();\n foreach ($this->paths as $path => $reader) {\n $packages = array_merge($packages, $reader->getPackages($path));\n }\n return $packages;\n }", "title": "" }, { "docid": "883a337ec88c1e3a2d1ec5d32c27cf16", "score": "0.49675503", "text": "public function parseDirectories()\n {\n // This is to be done only once.\n if($this->bDirectoriesParsed)\n {\n return;\n }\n $this->bDirectoriesParsed = true;\n\n // Browse directories without namespaces and read all the files.\n $aClassMap = [];\n foreach($this->xRepository->getDirectoryOptions() as $sDirectory => $aOptions)\n {\n $itFile = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($sDirectory));\n // Iterate on dir content\n foreach($itFile as $xFile)\n {\n // Skip everything except PHP files\n if(!$xFile->isFile() || $xFile->getExtension() != 'php')\n {\n continue;\n }\n\n $sClassName = $xFile->getBasename('.php');\n $aClassOptions = ['timestamp' => $xFile->getMTime()];\n // No more classmap autoloading. The file will be included when needed.\n if(($aOptions['autoload']))\n {\n $aClassMap[$sClassName] = $xFile->getPathname();\n }\n $this->xRepository->addClass($sClassName, $aClassOptions, $aOptions);\n }\n }\n // Set classmap autoloading\n if(($aClassMap) && $this->xAutoloader !== null)\n {\n $this->xAutoloader->addClassMap($aClassMap);\n }\n }", "title": "" }, { "docid": "9175f5d98f7577ecdfaae477b833aa34", "score": "0.49634477", "text": "function get_include_path () {}", "title": "" }, { "docid": "d9ef082bad8a831f8e8cffb28cc81e63", "score": "0.49590054", "text": "static function showLibrariesInformation() {\n\n // No gettext\n\n echo \"<tr class='tab_bg_2'><th>Libraries</th></tr>\\n\";\n echo \"<tr class='tab_bg_1'><td><pre>\\n&nbsp;\\n\";\n\n foreach (self::getLibraries() as $dep) {\n $path = self::getLibraryDir($dep['check']);\n if ($path) {\n echo \"{$dep['name']} \";\n if (isset($dep['version'])) {\n echo \"version {$dep['version']} \";\n }\n echo \"in ($path)\\n\";\n } else {\n echo \"{$dep['name']} not found\\n\";\n }\n }\n\n echo \"\\n</pre></td></tr>\";\n }", "title": "" }, { "docid": "2eb0247b7b5dc4c65031bae98cb86709", "score": "0.49513942", "text": "public static function compiles()\n {\n $dir = static::guessPackageClassPath('royalcms/native-session');\n\n return [\n $dir . \"/Store.php\",\n $dir . \"/CompatibleTrait.php\",\n $dir . \"/Serialize.php\",\n $dir . \"/SessionManager.php\",\n $dir . \"/StartSession.php\",\n $dir . \"/NativeSessionServiceProvider.php\",\n ];\n }", "title": "" }, { "docid": "c87efc0741321ad0180ca03e9772cb70", "score": "0.49415576", "text": "protected function scan() {\n\t\t$scan = scandir($this->views.'/templates/layouts');\n\t\t$scan = array_diff($scan, array('.', '..'));\n\t\treturn $scan;\n\t}", "title": "" }, { "docid": "22aa34420802357e6e8ae5f7f2f9ff59", "score": "0.49345657", "text": "public function autoload() {\n\t\tforeach ($this->extensions as $extension) {\n\t\t\t// Autoload namespaces\n\t\t\tforeach ($extension->getNamespaces() as $namespace => $absolutePath) {\n\t\t\t\tAutoloader::mount($namespace, $absolutePath);\n\t\t\t}\n\n\t\t\t// Autoload files\n\t\t\tforeach ($extension->getFiles() as $absolutePath) {\n\t\t\t\tAutoloader::vendor($absolutePath);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5e93ffd531b8cee455d3e5d14d7c87c9", "score": "0.49288183", "text": "function loadTagLibraries()\r\n\t{\r\n\t\t$this->libraries->processTlds($this->ctxt);\r\n\t}", "title": "" }, { "docid": "fbde33345ce1fe9af7e05b3b5e0588ce", "score": "0.49184808", "text": "function _require_all( $dir ) {\n\t$scan = glob( \"$dir/*\" );\n\tforeach ( $scan as $path ) {\n\t\tif ( preg_match( '/\\.php$/', $path ) ) {\n\t\t\trequire_once $path;\n\t\t} elseif ( is_dir( $path ) ) {\n\t\t\t_require_all( $path );\n\t\t}\n\t}\n}", "title": "" }, { "docid": "d881dbdd4d996f399c25483572e096e1", "score": "0.49160048", "text": "public static function compiles()\r\n {\r\n $dir = static::guessPackageClassPath('royalcms/script');\r\n\r\n return [\r\n $dir . '/Script.php',\r\n $dir . '/HandleScripts.php',\r\n $dir . '/Dependency.php',\r\n $dir . '/Dependencies.php',\r\n $dir . '/Style.php',\r\n $dir . '/HandleStyles.php',\r\n $dir . '/ScriptServiceProvider.php',\r\n ];\r\n }", "title": "" }, { "docid": "55430c953d8c1f19729063d3444be417", "score": "0.49032184", "text": "protected function getLibs($libs)\n {\n $pathLibs = RAIZ . 'lbs' . DS . 'classes' . DS . $libs . '.php';\n\n if (is_readable($pathLibs)) {\n require_once $pathLibs;\n } else {\n throw new Exception('ERRO ao carregar a livraria, LIBS');\n }\n }", "title": "" } ]
4d0a93f74378662a047a052b355e8d07
Operates a set of role deassignations
[ { "docid": "938121aa5f587118108e8ccd250d0c65", "score": "0.62627757", "text": "public static function unassign_roles($roleunassigns) {\n\n $results = array();\n if (!empty($roleunassigns)) {\n foreach ($roleunassigns as $unassign) {\n $result = new Stdclass;\n $result->userid = $unassign['userid'];\n $result->status = self::unassign_role($unassign['roleidsource'],\n $unassign['roleid'],\n $unassign['useridsource'],\n $unassign['userid'],\n $unassign['contexttype'],\n $unassign['instanceidsource'],\n $unassign['instanceid'],\n $unassign['component']);\n\n $results[] = $result;\n }\n }\n\n return $results;\n\n }", "title": "" } ]
[ { "docid": "5fda284d9e9167542ebfe45d09750aa7", "score": "0.608553", "text": "public function testUnassign()\n {\n $perm_id = self::$rbac->Permissions->Add('permissions_1', 'permissions Description 1');\n $role_id = self::$rbac->Roles->Add('roles_1', 'roles Description 1');\n\n $this->Instance()->Assign($role_id, $perm_id);\n $this->Instance()->Unassign($role_id, $perm_id);\n\n $dataSet = $this->getConnection()->createDataSet();\n\n $filterDataSet = new \\PHPUnit_Extensions_Database_DataSet_DataSetFilter($dataSet);\n $filterDataSet->addIncludeTables(array(\n self::$rbac->Users->tablePrefix() . 'rolepermissions',\n ));\n\n $filterDataSet->setExcludeColumnsForTable(\n $this->Instance()->tablePrefix() . 'rolepermissions',\n array('AssignmentDate')\n );\n\n $expectedDataSet = $this->createFlatXmlDataSet(dirname(__FILE__) . '/datasets/base/expected_unassign_' . $this->type() . '.xml');\n\n $this->assertDataSetsEqual($expectedDataSet, $filterDataSet);\n }", "title": "" }, { "docid": "67b3ff62f463b553b08e37845523cda6", "score": "0.60281235", "text": "function unregister_user_levels(){\n $roles = array('rejection','applicant','nonrenewable','awardee','renewal','donor','scholarship','csf');\n foreach($roles AS $role){\n remove_role($role);\n }\n }", "title": "" }, { "docid": "0844a40788d141f866f71d3d134e0086", "score": "0.5598187", "text": "public function deleteRolePrivileges($arr_fields,$debug=0)\n\t{\n\t\treturn $this->deleteRecord(\"trans_role_privileges\",$arr_fields,$debug);\n\t}", "title": "" }, { "docid": "f7f8226c9a92adec6287d397c6c6aa05", "score": "0.5535151", "text": "function wppb_adminApproval_onUserRole() {\r\n\tglobal $wp_roles;\r\n\r\n\t$wp_roles = new WP_Roles();\r\n\r\n\t$roles = $wp_roles->get_names();\r\n\r\n\tunset( $roles['administrator'] );\r\n\r\n\treturn $roles;\r\n}", "title": "" }, { "docid": "45b94e10a7d360db98500eac010583a2", "score": "0.55041933", "text": "function perform_remove($userid) {\n // Try to remove the necessary role\n $context = get_context_instance(CONTEXT_SYSTEM);\n $roleid = $this->check_role();\n\n // Regardless if the user has the role or not, remove the assignment\n if($assign = get_record('block_student_' . $this->type,\n 'path', $this->path, 'usersid', $userid)) {\n\n $this->remove_assignment($assign);\n }\n\n $count = count_records('block_student_' . $this->type, 'usersid', $userid) + \n count_records('block_student_person', 'usersid', $userid);\n // If they don't have any mentor assignments, then remove them from that role\n if($count == 0) {\n role_unassign($roleid, $userid, 0, $context->id);\n }\n }", "title": "" }, { "docid": "7d9a9bd3518d843fbe3c7ff048a7e27e", "score": "0.5486626", "text": "public function deleteroleAction()\n\t{\n\t\t$this->_userModel->deleteRole($this->_getParam('id'));\n\t\treturn $this->_helper->lastRequest();\n\t}", "title": "" }, { "docid": "155acf32fea25bf87b8350135327a2a5", "score": "0.54748946", "text": "public static function unassign_roles_parameters() {\n self::init_roleassign_set();\n return new external_function_parameters(\n array('roleunassigns' => new external_multiple_structure(\n new external_single_structure(self::$roleassignset)\n ),\n )\n );\n }", "title": "" }, { "docid": "b97e90d61ec38b66f948295b233756b1", "score": "0.54622763", "text": "function cfdb7_on_deactivate() {\n\tglobal $wp_roles;\n\n\tforeach( array_keys( $wp_roles->roles ) as $role ) {\n\t\t$wp_roles->remove_cap( $role, 'cfdb7_access' );\n\t}\n}", "title": "" }, { "docid": "e017e2490ebd6718dc77d8c8ff0c5887", "score": "0.5406276", "text": "function nggpano_remove_capability($capability){\r\n\t// this function remove the $capability only from the classic roles\r\n\t$check_order = array(\"subscriber\", \"contributor\", \"author\", \"editor\", \"administrator\");\r\n\r\n\tforeach ($check_order as $role) {\r\n\r\n\t\t$role = get_role($role);\r\n\t\t$role->remove_cap($capability) ;\r\n\t}\r\n\r\n}", "title": "" }, { "docid": "cd6622d107e21c4a37d9a9079b1cd740", "score": "0.5405379", "text": "public function detachRoles($roles)\n {\n foreach ($roles as $role)\n {\n $this->detachRole($role);\n }\n }", "title": "" }, { "docid": "397d5e18b6bdcd6e43596c45eba079be", "score": "0.5397643", "text": "public function actionAuthAssignmentDelete()\n {\n if (Yii::$app->request->post()) {\n try {\n $names = Yii::$app->request->post();\n\n $array = [];\n foreach ($names as $key => $name) {\n foreach ($name as $item) {\n $array[] = $item;\n }\n }\n AuthAssignment::deleteAll(['in', 'item_name', $array]);\n } catch (ErrorException $e) {\n Yii::error($e->getMessage(), 'route');\n }\n } else {\n Yii::error('Not post!', 'route');\n }\n }", "title": "" }, { "docid": "8cf3072ccc44687da1f05478c61d6eea", "score": "0.5354137", "text": "public function deactivate() {\n\n\t\t$role = get_role( 'administrator' );\n\t\t$role->add_cap( 'activate_plugins' );\n\t\t$role->add_cap( 'switch_themes' );\n\t\t$role->remove_cap( 'manage_network_users' );\n\n\t}", "title": "" }, { "docid": "c32ac0fcb26d796386922a7f55df026d", "score": "0.5299995", "text": "static public function hookDeactivationRolesAndCapabilities()\n {\n global $wp_roles;\n\n $class = get_called_class();\n $plugin = $class::load();\n\n // Remove custom capabilities\n if (!empty($plugin->customCapabilities)) {\n foreach ($plugin->customCapabilities as $capability => $grants) {\n // If this is a WP core capability (core_capability = true) don't\n // remove\n if (!empty($grants['core_capability'])) {\n continue;\n }\n\n foreach ($wp_roles->roles as $role => $details) {\n $wp_roles->remove_cap($role, $capability);\n }\n }\n }\n\n // Remove custom roles\n if (!empty($plugin->customRoles)) {\n foreach ($plugin->customRoles as $key => $value) {\n remove_role($key);\n }\n }\n }", "title": "" }, { "docid": "6dac3bc41daaeba8420bf14cdd2d9c64", "score": "0.5299745", "text": "function _ldapgroups_deny_role($user, $rolename) {\n $result = db_query(\"SELECT * FROM {role} WHERE name = '%s'\", $rolename);\n if ($row = db_fetch_object($result)) {\n $result = db_query(\"SELECT * FROM {users_roles} WHERE uid = %d AND rid = %d\", $user->uid, $row->rid);\n if (db_fetch_object($result)) {\n db_query(\"DELETE FROM {users_roles} WHERE uid = %d AND rid = %d\", $user->uid, $row->rid);\n }\n }\n}", "title": "" }, { "docid": "9dd14f08d5b22393aaf944d2ba39c378", "score": "0.52908695", "text": "public function deleteRole($arr_fields,$debug=0)\n\t{\n\t\treturn $this->deleteRecord(\"mst_role\",$arr_fields,$debug);\n\t}", "title": "" }, { "docid": "a03746e2c5b745c5d0ac5c6e0f880e4b", "score": "0.52863306", "text": "public static function unassign_roles_returns() {\n return new external_multiple_structure(\n new external_single_structure(\n array(\n 'userid' => new external_value(PARAM_TEXT, 'User identifier'),\n 'status' => new external_value(PARAM_BOOL, 'Success status')\n )\n )\n );\n }", "title": "" }, { "docid": "9db70d4fa15539fd3832ca968d2116d3", "score": "0.5249801", "text": "function editable_roles( $roles ){\r\n if( isset( $roles['administrator'] ) && !current_user_can('administrator') ){\r\n unset( $roles['administrator']);\r\n }\r\n return $roles;\r\n }", "title": "" }, { "docid": "41496d31ad7cedc93c00e82cbc4a2ba7", "score": "0.52347887", "text": "public function test_version1importdeletesuserroleassignment() {\n global $DB;\n\n // Setup.\n $context = get_context_instance(CONTEXT_USER, self::$userid);\n role_assign(self::$userroleid, self::$userid, $context->id);\n\n $this->assertEquals($DB->count_records('role_assignments'), 1);\n\n $data = $this->get_core_enrolment_data();\n $data['action'] = 'delete';\n $data['context'] = 'user';\n $data['instance'] = 'rlipusername';\n $data['role'] = 'usershortname';\n $this->run_core_enrolment_import($data, false);\n\n $this->assertEquals($DB->count_records('role_assignments'), 0);\n }", "title": "" }, { "docid": "dbbd639722f937d8634847bff00e5918", "score": "0.5221072", "text": "public function removeRoles()\n {\n if (get_role('author')) {\n remove_role('author');\n }\n\n if (get_role('contributor')) {\n remove_role('contributor');\n }\n\n if (get_role('subscriber')) {\n remove_role('subscriber');\n }\n\n if (get_role('wpseo_manager')) {\n remove_role('wpseo_manager');\n }\n\n if (get_role('wpseo_editor')) {\n remove_role('wpseo_editor');\n }\n }", "title": "" }, { "docid": "f5adc9dce5c655133345e0e67d787b9c", "score": "0.5200369", "text": "function unassignUsers($ID)\n\t{\n\t\treturn Jf::sql ( \"DELETE FROM {$this->tablePrefix()}userroles WHERE\n\t\t\tRoleID=?\", $ID );\n\t}", "title": "" }, { "docid": "8617231d1488c6a67ea65d8dcf50aa20", "score": "0.5197294", "text": "function course_theme_deactivate_disable_roles($newname, $newtheme) {\n \n // Role: Editor (default)\n add_role('editor', 'Editor', array(\n // Editor permissions:\n 'moderate_comments' => true,\n 'manage_categories' => true,\n 'manage_links' => true,\n 'edit_others_posts' => true,\n 'edit_pages' => true,\n 'edit_others_pages' => true,\n 'edit_published_pages' => true,\n 'publish_pages' => true,\n 'delete_pages' => true,\n 'delete_others_pages' => true,\n 'delete_published_pages' => true,\n 'delete_others_posts' => true,\n 'delete_private_posts' => true,\n 'edit_private_posts' => true,\n 'read_private_posts' => true,\n 'delete_private_pages' => true,\n 'edit_private_pages' => true,\n 'read_private_pages' => true,\n\n // Author permissions:\n 'edit_published_posts' => true,\n 'upload_files' => true,\n 'publish_posts' => true,\n 'delete_published_posts' => true,\n\n // Contributor permissions:\n 'edit_posts' => true,\n 'delete_posts' => true,\n\n // Subscriber permissions:\n 'read' => true,\n ));\n\n // Role: Author (default)\n add_role('author', 'Author', array(\n // Author permissions:\n 'edit_published_posts' => true,\n 'upload_files' => true,\n 'publish_posts' => true,\n 'delete_published_posts' => true,\n\n // Contributor permissions:\n 'edit_posts' => true,\n 'delete_posts' => true,\n\n // Subscriber permissions:\n 'read' => true,\n ));\n\n // Role: Contributor (default)\n add_role('contributor', 'Contributor', array(\n // Contributor permissions:\n 'edit_posts' => true,\n 'delete_posts' => true,\n\n // Subscriber permissions:\n 'read' => true,\n ));\n\n // Role: Subscriber (default)\n add_role('subscriber', 'Subscriber', array(\n // Subscriber permissions:\n 'read' => true,\n ));\n}", "title": "" }, { "docid": "3c6d14952baa75354c4df7bb946567e2", "score": "0.51791364", "text": "function editable_roles( $roles ){\n if( isset( $roles['administrator'] ) && !current_user_can('administrator') ){\n unset( $roles['administrator']);\n }\n return $roles;\n }", "title": "" }, { "docid": "906c2865aa65c71072fcbde2e15ce2bb", "score": "0.51737446", "text": "function editable_roles( $roles ){\n if( isset( $roles['administrator'] ) && !current_user_can('administrator') ){\n unset( $roles['administrator']);\n }\n return $roles;\n }", "title": "" }, { "docid": "ed1781c83854689d6a5100a7e478db60", "score": "0.5169496", "text": "public static function unassign_role_returns() {\n return new external_value(PARAM_BOOL, 'Operation status');\n }", "title": "" }, { "docid": "c3020dd2e4603819df421fb5f75e72e1", "score": "0.5113831", "text": "public function testAssignProductsUnassignAction()\n {\n $sku = 'sku';\n $storage = $this->getMockBuilder(\\Magento\\SharedCatalog\\Model\\Form\\Storage\\Wizard::class)\n ->disableOriginalConstructor()\n ->getMock();\n $product = $this->getMockBuilder(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->disableOriginalConstructor()\n ->getMockForAbstractClass();\n $collection = $this->getMockBuilder(\\Magento\\Eav\\Model\\Entity\\Collection\\AbstractCollection::class)\n ->disableOriginalConstructor()\n ->getMock();\n $collection->expects($this->atLeastOnce())->method('setPageSize')->willReturnSelf();\n $collection->expects($this->atLeastOnce())->method('getLastPageNumber')->willReturn(1);\n $collection->expects($this->atLeastOnce())->method('setCurPage')->with(1)->willReturnSelf();\n $collection->expects($this->atLeastOnce())->method('getItems')->willReturn([$product]);\n $this->sharedCatalogAssignment->expects($this->atLeastOnce())->method('getAssignProductsSku')\n ->with([$product])->willReturn([$sku]);\n $storage->expects($this->atLeastOnce())->method('unassignProducts')->with([$sku]);\n $this->productTierPriceLoader->expects($this->atLeastOnce())->method('populateProductTierPrices')\n ->with([$product], 1, $storage);\n\n $this->sharedCatalogMassAssignment->assign($collection, $storage, 1, false);\n }", "title": "" }, { "docid": "a9bdd0c7a30fae5e9b031ff0eae20a39", "score": "0.5099491", "text": "function unassignRoles($ID)\n\t{\n\t\t$res = Jf::sql ( \"DELETE FROM {$this->tablePrefix()}rolepermissions WHERE\n\t\t\tPermissionID=?\", $ID );\n\t\treturn (int)$res;\n\t}", "title": "" }, { "docid": "8712367b751d0a8d58374121632148ae", "score": "0.5091023", "text": "public function clearAllAssigns()\n {\n $this->clear_all_assign();\n }", "title": "" }, { "docid": "bf967902f5029f537202f787e6372a43", "score": "0.50848085", "text": "public function test_version1importdeletescourseroleassignment() {\n // Set up our enrolment.\n $coursecontext = get_context_instance(CONTEXT_COURSE, self::$courseid);\n role_assign(self::$courseroleid, self::$userid, $coursecontext->id);\n\n // Validate setup.\n $this->assert_no_enrolments_exist();\n\n // Perform the delete action.\n $data = $this->get_core_enrolment_data();\n $data['action'] = 'delete';\n\n $this->run_core_enrolment_import($data, false);\n\n // Compare data.\n $this->assert_no_enrolments_exist();\n $this->assert_no_role_assignments_exist();\n }", "title": "" }, { "docid": "af69d3d43b7e3758ddaed952f6340c05", "score": "0.50784695", "text": "function enrol_lmb_drop_all_users($idnumber, $role = null, $original = false) {\n global $DB, $CFG;\n\n $status = true;\n $config = enrol_lmb_get_config();\n\n if ($role) {\n $enrols = $DB->get_records('enrol_lmb_enrolments', array('status' => 1, 'role' => $role, 'coursesourcedid'=> $idnumber));\n } else {\n $enrols = $DB->get_records('enrol_lmb_enrolments', array('status' => 1, 'coursesourcedid' => $idnumber));\n }\n\n if ($enrols) {\n if ($courseid = enrol_lmb_get_course_id($idnumber, $original)) {\n if (!class_exists('enrol_lmb_plugin')) {\n require_once($CFG->dirroot.'/enrol/lmb/lib.php');\n }\n\n $enrolmod = new enrol_lmb_plugin();\n\n foreach ($enrols as $enrol) {\n $enrolup = new object();\n\n $enrolup->succeeded = 0;\n\n if ($userid = $DB->get_field('user', 'id', array('idnumber' => $enrol->personsourcedid))) {\n if ($roleid = enrol_lmb_get_roleid($enrol->role)) {\n $logline = '';\n $status = $enrolmod->lmb_unassign_role_log($roleid, $courseid, $userid, $logline) && $status;\n } else {\n $status = false;\n }\n }\n\n $enrolup->id = $enrol->id;\n $DB->update_record('enrol_lmb_enrolments', $enrolup);\n unset($enrolup);\n }\n }\n }\n\n return $status;\n}", "title": "" }, { "docid": "6d29bc894312f2af995e94c8858c4e9a", "score": "0.50648415", "text": "function adrotate_deactivate() {\n\tglobal $adrotate_roles;\n\t\n\t// Clear out roles\n\tif($adrotate_roles == 1) {\n\t\tadrotate_remove_roles();\n\t}\n\n\t// Clear up capabilities from ALL users\n\tadrotate_remove_capability(\"adrotate_advertiser_report\");\n\tadrotate_remove_capability(\"adrotate_global_report\");\n\tadrotate_remove_capability(\"adrotate_ad_manage\");\n\tadrotate_remove_capability(\"adrotate_ad_delete\");\n\tadrotate_remove_capability(\"adrotate_group_manage\");\n\tadrotate_remove_capability(\"adrotate_group_delete\");\n\tadrotate_remove_capability(\"adrotate_block_manage\");\n\tadrotate_remove_capability(\"adrotate_block_delete\");\n\tadrotate_remove_capability(\"adrotate_moderate\");\n\tadrotate_remove_capability(\"adrotate_moderate_approve\");\n\n\t// Clear out wp_cron\n\twp_clear_scheduled_hook('adrotate_ad_notification');\n\twp_clear_scheduled_hook('adrotate_cache_statistics'); // OBSOLETE IN 3.6 - REMOVE IN 4.0\n\twp_clear_scheduled_hook('adrotate_clean_trackerdata');\n\twp_clear_scheduled_hook('adrotate_evaluate_ads');\n}", "title": "" }, { "docid": "8979d0551cbc1332c2090bbc412aa716", "score": "0.5054525", "text": "public function dropRole($roleName);", "title": "" }, { "docid": "8d5b2bd8b8ca1be80d5ad21bb354897a", "score": "0.5048344", "text": "public function action_deauthorise()\n\t{\n\t}", "title": "" }, { "docid": "fddef953f9b5451b74334e09afb2a105", "score": "0.5046556", "text": "static function delete_roles(string $role, array $users,\r\n\t\t\tJKNAcademicYear $ay): void {\r\n\r\n\t\t$year = $ay->format();\r\n\r\n\t\tforeach($users as $user) {\r\n\r\n\t\t\t$id = $user->id();\r\n\r\n\t\t\t// Identify the row to delete. Yes, ACF row index starts at 1\r\n\t\t\t$i = 1;\r\n\t\t\tif (MJKMH_ACF_User::have_rows(MJKMH_ACF_User::roles, $id)) {\r\n\t\t\t\twhile (MJKMH_ACF_User::have_rows(MJKMH_ACF_User::roles, $id)) {\r\n\t\t\t\t\tthe_row();\r\n\t\t\t\t\t$row_role = MJKMH_ACF_User::sub(MJKMH_ACF_User::role);\r\n\t\t\t\t\t$row_year = MJKMH_ACF_User::sub(MJKMH_ACF_User::year);\r\n\r\n\t\t\t\t\tif (($role == $row_role) && ($year == $row_year)) break;\r\n\t\t\t\t\t$i += 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Delete the row\r\n\t\t\tMJKMH_ACF_User::delete_row(MJKMH_ACF_User::roles, $i, $id);\r\n\r\n\t\t\t// Delete the user's role cache and reset rows\r\n\t\t\t$user->uncache();\r\n\t\t\treset_rows();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f209367e48420c5d379654efc41a6ee5", "score": "0.5038257", "text": "static function deregister_caps ()\n {\n foreach (self::ALL_ROLES as $role_name) {\n $role = get_role($role_name);\n foreach (self::ALL_CAPS as $cap) {\n $role->remove_cap($cap);\n }\n foreach (self::OBSOLETE_CAPS as $cap) {\n $role->remove_cap($cap);\n }\n }\n }", "title": "" }, { "docid": "cc884a9ea64f4e9ccfbe76fe86b0a041", "score": "0.5037199", "text": "public function massUnRelateToEachOtherAction()\n\t{\n\t\t$this->_unlinkProductsToEachOther(self::LINK_TYPE_RELATED, 'Successfully un-related %d products to each other (total: %d removed links).');\n\t}", "title": "" }, { "docid": "583efd9a77ae54ad9b08e4d6b5c245a2", "score": "0.50347346", "text": "function enrol_lmb_drop_crosslist_users($xlist) {\n global $DB, $CFG;\n $status = true;\n\n if ($enrols = $DB->get_records('enrol_lmb_enrolments', array('coursesourcedid' => $xlist->coursesourcedid))) {\n if (!class_exists('enrol_lmb_plugin')) {\n require_once($CFG->dirroot.'/enrol/lmb/lib.php');\n }\n\n $enrolmod = new enrol_lmb_plugin();\n\n if ($courseid = enrol_lmb_get_course_id($xlist->crosslistsourcedid)) {\n foreach ($enrols as $enrol) {\n if ($userid = $DB->get_field('user', 'id', array('idnumber' => $enrol->personsourcedid))) {\n if ($roleid = enrol_lmb_get_roleid($enrol->role)) {\n $logline = '';\n $status = $enrolmod->lmb_unassign_role_log($roleid, $courseid, $userid, $logline) && $status;\n }\n }\n\n }\n }\n }\n\n return $status;\n}", "title": "" }, { "docid": "9e034cd4de51ad8e11964e2de49c0242", "score": "0.5004701", "text": "public function test_delete_cohort_role_assignment_cohorts_having_same_members() {\n $this->setAdminUser();\n\n // Create 2 cohorts, with a 1 user (user1) present in both,\n // and user2 and user3 members of 1 cohort each.\n $cohort1 = $this->getDataGenerator()->create_cohort();\n $cohort2 = $this->getDataGenerator()->create_cohort();\n $user1 = $this->getDataGenerator()->create_user();\n $user2 = $this->getDataGenerator()->create_user();\n $user3 = $this->getDataGenerator()->create_user();\n cohort_add_member($cohort1->id, $user1->id);\n cohort_add_member($cohort1->id, $user2->id);\n cohort_add_member($cohort2->id, $user1->id);\n cohort_add_member($cohort2->id, $user3->id);\n\n // And a role and a user to assign that role to.\n $user4 = $this->getDataGenerator()->create_user(); // A cohort manager, for example.\n $roleid = create_role('Role 1', 'myrole', 'test');\n\n // Assign the role for user4 in both cohorts.\n $params = (object) [\n 'userid' => $user4->id,\n 'roleid' => $roleid,\n 'cohortid' => $cohort1->id\n ];\n $cohort1roleassignment = api::create_cohort_role_assignment($params);\n $params->cohortid = $cohort2->id;\n $cohort2roleassignment = api::create_cohort_role_assignment($params);\n\n $sync = api::sync_all_cohort_roles();\n\n // There is no guarantee about the order of roles assigned.\n // so confirm we have 3 role assignments, and they are for the users 1, 2 and 3.\n $this->assertCount(3, $sync['rolesadded']);\n $addedusers = array_column($sync['rolesadded'], 'useridassignedover');\n $this->assertContains($user1->id, $addedusers);\n $this->assertContains($user2->id, $addedusers);\n $this->assertContains($user3->id, $addedusers);\n\n // Remove the role assignment for user4/cohort1.\n // Verify only 1 role is unassigned as the others are still valid for the other cohort role assignment.\n $result = api::delete_cohort_role_assignment($cohort1roleassignment->get('id'));\n $this->assertTrue($result);\n\n $sync = api::sync_all_cohort_roles();\n\n $this->assertCount(0, $sync['rolesadded']);\n $this->assertCount(1, $sync['rolesremoved']);\n $removedusers = array_column($sync['rolesremoved'], 'useridassignedover');\n $this->assertContains($user2->id, $removedusers);\n }", "title": "" }, { "docid": "1a5f50558d587cd5316e382b3ec4aa8a", "score": "0.49939704", "text": "public function deleteRolesAction()\n {\n $request = $this->getRequest();\n\n if ($request->isPost() &&\n $this->applicationCsrf()->isTokenValid($request->getPost('csrf'))) {\n\n if (null !== ($rolesIds = $request->getPost('roles', null))) {\n // delete selected membership roles\n $deleteResult = false;\n $deletedCount = 0;\n\n foreach ($rolesIds as $roleId) {\n // get the role info, membership levels cannot be deleted while they contain subscribers\n if (null == ($roleInfo = $this->getModel()->getRoleInfo($roleId))\n || $roleInfo['subscribers']) {\n\n continue;\n }\n\n // check the permission and increase permission's actions track\n if (true !== ($result = $this->aclCheckPermission(null, true, false))) {\n $this->flashMessenger()\n ->setNamespace('error')\n ->addMessage($this->getTranslator()->translate('Access Denied'));\n\n break;\n }\n\n // delete the role\n if (true !== ($deleteResult = $this->getModel()->deleteRole($roleInfo))) {\n $this->flashMessenger()\n ->setNamespace('error')\n ->addMessage(($deleteResult ? $this->getTranslator()->translate($deleteResult)\n : $this->getTranslator()->translate('Error occurred')));\n\n break;\n }\n\n $deletedCount++;\n }\n\n if (true === $deleteResult) {\n $message = $deletedCount > 1\n ? 'Selected membership levels have been deleted'\n : 'The selected membership level has been deleted';\n\n $this->flashMessenger()\n ->setNamespace('success')\n ->addMessage($this->getTranslator()->translate($message));\n }\n }\n }\n\n // redirect back\n return $request->isXmlHttpRequest()\n ? $this->getResponse()\n : $this->redirectTo('memberships-administration', 'list', [], true);\n }", "title": "" }, { "docid": "dfb9ef59d07485fa4000fff83d0c146b", "score": "0.4985994", "text": "function imp_unset_role_attribute( $attributes ) {\n\n\tif( isset($attributes['role']) )\n\t\tunset($attributes['role']);\n\n\treturn $attributes;\n\n}", "title": "" }, { "docid": "96f37c7c4d52e2dd6a6cc1c2685bf54a", "score": "0.49693158", "text": "function destroy($row,$reassign_to = null) {\n# if reassign_to && reassign_to.is_a?(Enumeration)\n\t\t$model = ClassRegistry::init($this->OPTIONS[$row['Enumeration']['opt']]['model']);\n\t\t$model->updateAll(\n\t\t\tarray(\n\t\t\t\t$this->OPTIONS[$row['Enumeration']['opt']]['foreign_key'] => $reassign_to\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t$this->OPTIONS[$row['Enumeration']['opt']]['foreign_key'] => $row['Enumeration']['id']\n\t\t\t)\n\t\t);\n# end\n\t\t$this->delete($row['Enumeration']['id']);\n\t}", "title": "" }, { "docid": "19428f7bdc5b16cff5a84f10ae303f03", "score": "0.4946859", "text": "function clwo_staff_assigner_deactivate() {\n clwo_staff_assigner_f_debug(\"Primitive function: deactivate()\");\n\n}", "title": "" }, { "docid": "78acc748b3ae63c13a8be7cf7b609cb9", "score": "0.49452284", "text": "public static function getRolesNotDelete()\n {\n return [static::ADMIN_ROLE, static::USER_ROLE];\n }", "title": "" }, { "docid": "e9717cea2d4a69c06a1e1e7193892947", "score": "0.49379516", "text": "public function revoke($userId, array $roles);", "title": "" }, { "docid": "8544395b7e933445a4d26c9556bbd76a", "score": "0.49197996", "text": "function resetAssignments($Ensure = false)\n\t{\n\t\tif ($Ensure !== true)\n\t\t{\n\t\t\tthrow new \\Exception (\"You must pass true to this function, otherwise it won't work.\");\n\t\t\treturn;\n\t\t}\n\t\t$res = Jf::sql ( \"DELETE FROM {$this->tablePrefix()}userroles\" );\n\n\t\t$Adapter = get_class(Jf::$Db);\n\t\tif ($this->isMySql())\n\t\t\tJf::sql ( \"ALTER TABLE {$this->tablePrefix()}userroles AUTO_INCREMENT =1 \" );\n\t\telseif ($this->isSQLite())\n\t\t\tJf::sql ( \"delete from sqlite_sequence where name=? \", $this->tablePrefix () . \"_userroles\" );\n\t\telse\n\t\t\tthrow new \\Exception (\"Rbac can not reset table on this type of database: {$Adapter}\");\n\t\t$this->assign ( \"root\", 1 /* root user */ );\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "b073a7a18610d5c34aeabb652416eef7", "score": "0.49178517", "text": "public function checkDeletable()\n {\n $notDeletableReasons = array();\n $personResearchGroupCount = count($this->getPersonResearchGroups());\n if ($personResearchGroupCount > 0) {\n $notDeletableReasons[] = 'there ' . ($personResearchGroupCount > 1 ? 'are' : 'is') .\n \" $personResearchGroupCount associated Person\" .\n ($personResearchGroupCount > 1 ? 's' : '');\n }\n if (count($notDeletableReasons) > 0) {\n $notDeletableException = new NotDeletableException();\n $notDeletableException->setReasons($notDeletableReasons);\n throw $notDeletableException;\n }\n }", "title": "" }, { "docid": "90e0e19454b8d01e259426a2f7f26556", "score": "0.48994896", "text": "public function removeRole($username, $role);", "title": "" }, { "docid": "c38407bf9c9fa8fe63e21d33b63796eb", "score": "0.48994684", "text": "public function deletedRoles() {\n\t\tif(Auth::user()->can('manage_recycle_bin_roles')) {\n\t\t\t$deletedRoles = Role::onlyTrashed()->orderByDesc('id')->get();\n\t\t\treturn view('roles/deleted_roles_list', ['deletedRoles' => $deletedRoles]);\n\t\t}\n\t\telse {\n\t\t\treturn redirect()->route('dashboard')->with('warning', 'You do not have permission for this action!');\n\t\t}\n\t}", "title": "" }, { "docid": "d3d7a290ee1260557538c43091409730", "score": "0.4896546", "text": "public function unassignAllRoles($userId): void\n {\n $user = $this->model->find($userId);\n $user->roles()->detach();\n }", "title": "" }, { "docid": "6ee27861474a6e8ed901eb99c9918a0d", "score": "0.48951054", "text": "static public function doCUnenrol($toUnenrol, $roleid, $user){\n\t\tforeach($toUnenrol as $unenrol) {\n\t\t\tparentautoenrol_helper::unenroll_from_course($unenrol, $user->id, $roleid);\n\t\t}\n\t}", "title": "" }, { "docid": "9decb47c62c9f15e9099a3c4e4eea497", "score": "0.48835173", "text": "public function DeleteAllRoles() {\n\n $this->Data= array(\n 'Permitions'=> array(),\n 'Roles'=> array(),\n 'RoleInheritances'=> array(),\n 'Permition-Role'=> array(),\n 'User-Role'=> array(),\n );\n return true;\n }", "title": "" }, { "docid": "3389c6320f99fed1f8e8eb2c3557102d", "score": "0.4883444", "text": "public function massUnUpSellToEachOtherAction()\n\t{\n\t\t$this->_unlinkProductsToEachOther(self::LINK_TYPE_UPSELL, 'Successfully removed up-selling links to each other from %d products (total: %d removed links).');\n\t}", "title": "" }, { "docid": "8c50f1274d231e334b05badef05958a0", "score": "0.4876064", "text": "public function revokeAllRoles()\n {\n return $this->roles()->detach();\n }", "title": "" }, { "docid": "212ad9e2882ae691d4a2aa8ec88a8685", "score": "0.48693463", "text": "private function removePermissions(): void\n {\n $source = $this->source;\n\n $dissallowed = static::config()->get('disallowed_permission_codes');\n if (empty($dissallowed)) {\n return;\n }\n\n\n foreach ($source as $group => &$permissions) {\n foreach($dissallowed as $dissallowedKey) {\n unset($permissions[$dissallowedKey]);\n }\n }\n\n ;\n\n $this->source = array_filter($source);\n }", "title": "" }, { "docid": "511c90f86e4f58106ec5ba2e7600cf03", "score": "0.48578295", "text": "function remove_assignment()\n \t{ \t\n \t\trole_or_die('streams', 'admin_streams');\n\n \t\t$this->_gather_stream_data();\n\n \t\t$field_assign_id = $this->uri->segment(5);\n \n \t\t// -------------------------------------\n\t\t// Get Assignment\n\t\t// -------------------------------------\n\n\t\t$obj = $this->db->limit(1)->where('id', $field_assign_id)->get(ASSIGN_TABLE);\n\t\t\n\t\tif( $obj->num_rows() == 0 ) show_error(lang('streams.cannot_find_assign'));\n\t\t\n\t\t$assignment = $obj->row();\n \t\t\n \t\t// -------------------------------------\n\t\t// Get field\n\t\t// -------------------------------------\n\t\t\n\t\t$field = $this->fields_m->get_field( $assignment->field_id );\n\t\t \t\t\n\t\t// -------------------------------------\n\t\t// Remove from table\n\t\t// -------------------------------------\n\t\t\n\t\tif( ! $this->streams_m->remove_field_assignment($assignment, $field, $this->data->stream) ):\n\n\t\t\t$this->session->set_flashdata('notice', lang('streams.remove_field_error'));\n\t\t\n\t\telse:\n\n\t\t\t$this->session->set_flashdata('success', lang('streams.remove_field_success'));\n\t\t\n\t\tendif;\n\n\t\tredirect('admin/streams/assignments/'.$this->data->stream_id);\n \t}", "title": "" }, { "docid": "d1dbcfe9cc8b0c125aab00e772526c28", "score": "0.48561233", "text": "private function func_demission(&$data, &$val)\n\t{\n // Get member share and calc fees\n if (isset($data['cotisation_membre'][$val['club_user_id']]) == false)\n \t$data['cotisation_membre'][$val['club_user_id']]['value'] = 0;\n\t\t$part = $data['cotisation_membre'][$val['club_user_id']]['value'];\n\t\t$part_frais = $part - $part * $data['info']['frais_depart'] / 100;\n $frais_statutaires = $part - $part_frais;\n \n\t\t$data['solde'] -= $part_frais;\n $val['value'] = $part_frais; // For Display\n $val['fees'] = $frais_statutaires; // For Display\n\t\tif ($data['unit'])\n\t\t $data['unit_nb'] -= $part_frais / $data['unit'];\n\t\t\n\t\t// delete member from array \n\t\tunset($data['cotisation_membre'][$val['club_user_id']]);\n\t\t//unset($this->_members[$val['club_user_id']]);\n\t\t// Distrib of fees\n\t\t$part = $this->calcMemberPart($data);\n\t foreach ($data['cotisation_membre'] as $membre => $info)\n\t $data['cotisation_membre'][$membre]['value'] += $part[$membre] * $frais_statutaires;\n\t\t\n\t\tif ($this->_debug)\n\t\t{\n\t\t $capital_club = 0;\n\t\t foreach ($data['cotisation_membre'] as $membre => $info)\n\t\t\t $capital_club += $info['value'];\n\t\t\techo \"Depart of a member<br />Part of the departing member: $part ($part_frais)<br />\";\t\n\t\t\techo \"Debit de $part_frais<br />\";\n\t\t\techo 'ACTIF:('. ($data['pf'] + $data['solde']) .') PF = ' . $data['pf'] \n\t\t\t\t. ', Caisse = ' . ($data['solde']) . ')'\n\t\t\t\t. \"<br />PASSIF:(\" . ($capital_club ) . \") Capital = \" .($capital_club) \n\t\t\t\t. \", Resultat exercice = XXX\" . '<br />'; \n\t\t}\n\t}", "title": "" }, { "docid": "6bedf6ea1de98abce9542c596a26fbcd", "score": "0.48493192", "text": "function dropUserAccnts($userAccnts){\n // Initialize $variable to count number of drop user accounts that are unsuccessful.\n $numberDropUserAccntsUnsuccessful = 0;\n // Iterate over user accounts to drop.\n foreach ($userAccnts as $userAccnt){\n // Set SQL statement on $variable instructing MySQL to drop user account.\n // NOTE: $userAccnt is untrusted data and apparently a MySQL identifier. PDO::prepare/PDOStatement::bindParam do not accept MySQL identifiers as variables and placeholders. As a result, the following SQL statement is vulnerable to SQL injection.\n $sql = \"DROP USER $userAccnt\";\n // Call PDO::prepare() method to prepare SQL statement for execution and set return value (PDOStatement object) on $variable.\n // NOTE: Returns PDOStatement object (aka, stmt or sth = statement handle) if database server successfully prepares the statement. Returns boolean false or emits PDOException (depending on error handling) if database server cannot successfully prepare the statement.\n $sth = $this->dbh->prepare($sql);\n // Call PDOStatement::execute() method to execute prepared SQL statement and set return boolean value on $variable to indicate drop user account (singular, not plural) successful.\n // NOTE:\n // Returns boolean true on success or boolean false on failure.\n // Drop user account (singular, not plural) considered successful/unsuccessful if PDOStatement::execute() method successful/unsuccessful, respectively.\n $isDropUserAccntSuccessful = $sth->execute();\n // Determine if drop user account (singular, not plural) successful. If successful, expression evaluates to boolean true.\n if ($isDropUserAccntSuccessful){\n // Drop user account (singular, not plural) successful. Nothing to do here.\n } else {\n // Drop user account (singular, not plural) unsuccessful. Increment count of number of drop user accounts that are unsuccessful.\n $numberDropUserAccntsUnsuccessful++;\n }\n }\n // Determine if drop user accounts (plural, not singular) successful and set boolean value on $this->property to indicate drop user accounts successful.\n // NOTE: Drop user accounts (plural, not singular) considered successful if all individual drop user account (singular, not plural) considered successful. Otherwise, drop user accounts (plural, not singular) considered unsuccessful.\n $this->isDropUserAccntsSuccessful = empty($numberDropUserAccntsUnsuccessful) ? true : false;\n // Return PDOStatement object (aka, stmt or sth = statement handle).\n // NOTE: Not required/used if drop user accounts successful.\n return $sth;\n }", "title": "" }, { "docid": "4674b7160f09d3e0275a7edce625e81a", "score": "0.48410094", "text": "function isRoleDeletable($id_role)\n {\n $query = $this->db->get_where('tb_role', ['id_role' => $id_role])->row_array();\n $cek = $query['is_deletable'];\n if ($cek == \"1\") {\n return TRUE;\n } else {\n return FALSE;\n }\n }", "title": "" }, { "docid": "c29184b32303b12607d9bf978777587f", "score": "0.48391017", "text": "private function removePreviousRoles()\n {\n $machineName = $this->input['machine_name'];\n\n if ($this->isSerialized($this->input['current_editors'])) {\n $currentEditors = unserialize($this->input['current_editors']);\n foreach ($currentEditors as $lang => $editors) {\n foreach ($editors as $editor) {\n $user = $this->userStorage->load($editor);\n $user->removeRole($machineName . '_' . $lang . '_content_editor');\n $user->save();\n }\n }\n }\n\n if ($this->isSerialized($this->input['current_publishers'])) {\n $currentPublishers = unserialize($this->input['current_publishers']);\n foreach ($currentPublishers as $lang => $publishers) {\n foreach ($publishers as $publisher) {\n $user = $this->userStorage->load($publisher);\n $user->removeRole($machineName . '_' . $lang . '_content_publisher');\n $user->save();\n }\n }\n }\n }", "title": "" }, { "docid": "f301673fde569e1098995aadea964ac4", "score": "0.4838825", "text": "function unassignPermissions($ID)\n\t{\n\t\t$r = Jf::sql ( \"DELETE FROM {$this->tablePrefix()}rolepermissions WHERE\n\t\t\tRoleID=? \", $ID );\n\t\treturn $r;\n\t}", "title": "" }, { "docid": "a869ac3e30846bbbfe994af03122ec2d", "score": "0.48366794", "text": "public function removeRole(Role $role): HasRoles;", "title": "" }, { "docid": "9b00fe485702ee6f61ba149d00e9a660", "score": "0.4831466", "text": "public function remove_roles()\n {\n $roles = $this->get_roles();\n\n foreach ($roles as $role) {\n $this->get_wp_roles()->remove_role($role['role']);\n }\n }", "title": "" }, { "docid": "54c44080d150ec299bb1196c049dc431", "score": "0.48115557", "text": "public function getRoleAssignments();", "title": "" }, { "docid": "6c6bbee9022de95f9a959ecaef28e210", "score": "0.4806921", "text": "public function actionBatchDelete()\n {\n if (($names = Yii::$app->request->post('names')) !== null) {\n $auth = Yii::$app->authManager;\n foreach ($names as $item) {\n $role = $this->findRole($item['name']);\n $auth->remove($role);\n }\n return $this->redirect(['index']);\n } else {\n throw new BadRequestHttpException('BACKEND_ROLES_ONLY_POST_IS_ALLOWED');\n }\n }", "title": "" }, { "docid": "059d4f325076370eb027f668a8aa022b", "score": "0.4804858", "text": "public function testResetPermRoleAssignments()\n {\n $perm_id_1 = self::$rbac->Permissions->Add('permissions_1', 'permissions Description 1');\n $perm_id_2 = self::$rbac->Permissions->Add('permissions_2', 'permissions Description 2');\n $perm_id_3 = self::$rbac->Permissions->Add('permissions_3', 'permissions Description 3');\n\n $role_id_1 = self::$rbac->Roles->Add('roles_1', 'roles Description 1');\n $role_id_2 = self::$rbac->Roles->Add('roles_2', 'roles Description 2');\n $role_id_3 = self::$rbac->Roles->Add('roles_3', 'roles Description 3');\n\n $this->Instance()->Assign($role_id_1, $perm_id_1);\n $this->Instance()->Assign($role_id_2, $perm_id_2);\n $this->Instance()->Assign($role_id_3, $perm_id_3);\n\n $this->Instance()->ResetAssignments(true);\n\n $dataSet = $this->getConnection()->createDataSet();\n\n $filterDataSet = new \\PHPUnit_Extensions_Database_DataSet_DataSetFilter($dataSet);\n\n $filterDataSet = new \\PHPUnit_Extensions_Database_DataSet_DataSetFilter($dataSet);\n $filterDataSet->addIncludeTables(array(\n self::$rbac->Users->tablePrefix() . 'rolepermissions',\n ));\n\n $filterDataSet->setExcludeColumnsForTable(\n $this->Instance()->tablePrefix() . 'rolepermissions',\n array('AssignmentDate')\n );\n\n $expectedDataSet = $this->createFlatXmlDataSet(dirname(__FILE__) . '/datasets/base/expected_reset_assignments_' . $this->type() . '.xml');\n\n $this->assertDataSetsEqual($expectedDataSet, $filterDataSet);\n }", "title": "" }, { "docid": "4de568ff6e505367b2989af6024f7efc", "score": "0.480484", "text": "public function test_version1importlogsnonexistentroleassignmentonuserroleassignmentdelete($data, $descriptor) {\n // Set up dependencies.\n $this->create_test_user();\n $this->create_test_role();\n $this->create_test_user('rlipusername2', 'rlipuser@rlipdomain2.com', 'rlipidnumber2');\n\n // Data.\n $data = array(\n 'action' => 'delete',\n 'username' => 'rlipusername',\n 'context' => 'user',\n 'instance' => 'rlipusername2',\n 'role' => 'rlipshortname'\n );\n\n $message = \"[enrolment.csv line 2] User with username \\\"rlipusername\\\" could not be unassigned role with shortname\";\n $message .= \" \\\"rlipshortname\\\" on user \\\"rlipusername2\\\". User with username \\\"rlipusername\\\" is not assigned role with\";\n $message .= \" shortname \\\"rlipshortname\\\" on user \\\"rlipusername2\\\".\\n\";\n\n // Validation.\n $this->assert_data_produces_error($data, $message, 'enrolment');\n }", "title": "" }, { "docid": "2591aaa3bc696298db81ed2972fa005e", "score": "0.48035195", "text": "function deauthorize() {\n}", "title": "" }, { "docid": "16735cfaf2de36c7f6d9fbabdc93c7a1", "score": "0.47936973", "text": "public function unsubscribeDeactivatedMembers()\n {\n $this->loadModel('Organizations');\n $numDaysExpiration = 30;\n\n // Because we only care about the date, not the time,\n // and the database fields compare with the time\n $today = date_format(new \\DateTime(), 'Y-m-d');\n $expirationDate = date_format(new \\DateTime(\"- $numDaysExpiration days\"), 'Y-m-d');\n\n // Organizations with members that expired in that date\n $organizations = $this->Organizations->find('all')\n ->where([\n 'Organizations.mailchimp_api_key IS NOT NULL',\n 'Organizations.mailchimp_active_members_list IS NOT NULL'\n ])\n ->contain(['Members' => function ($q1) use ($expirationDate) {\n return $q1->matching('Memberships', function($q2) use ($expirationDate) {\n return $q2->where([\n 'Memberships.expires_on >=' => $expirationDate . \":00:00:00\",\n 'Memberships.expires_on <=' => $expirationDate . \":23:59:59\"\n ]);\n });\n }])\n ->distinct();\n\n // Execute only one batch operation per organization\n foreach ($organizations as $organization) {\n $unsubscribeOperations = [];\n $listId = $organization->mailchimp_active_members_list;\n\n foreach ($organization->members as $member) {\n // If member does not have an active membership now\n if ($member->has_active_membership == false) {\n $subscriberHash = md5(strtolower($member->email));\n\n // Add operation to batch request\n array_push($unsubscribeOperations, [\n \"method\" => \"PATCH\",\n \"path\" => \"lists/$listId/members/$subscriberHash\",\n \"body\" => json_encode([\n \"status\" => \"unsubscribed\",\n \"merge_fields\" => [\n \"EXP_ON\" => $expirationDate\n ]\n ])\n ]);\n }\n }\n\n // Send batch request\n $mc = new Mailchimp($organization->mailchimp_api_key);\n\n try {\n $mc->post(\"batches\", [\n \"operations\" => $unsubscribeOperations\n ]);\n } catch (Exception $e) {\n if ($e->getMessage()) {\n $this->error = $e->getMessage();\n } else {\n $this->error = 'An unknown error occurred when unsubscribing members in Mailchimp.';\n }\n }\n }\n }", "title": "" }, { "docid": "46705b45f1f1947696384cdca3361c1b", "score": "0.47929224", "text": "public function test_version1importdeletesenrolmentandcourseroleassignment() {\n // Set up our enrolment.\n $this->run_core_enrolment_import(array());\n\n // Perform the delete action.\n $data = $this->get_core_enrolment_data();\n $data['action'] = 'delete';\n\n $this->run_core_enrolment_import($data, false);\n\n // Compare data.\n $this->assert_no_enrolments_exist();\n $this->assert_no_role_assignments_exist();\n }", "title": "" }, { "docid": "3e8fa60cc498eb155f5f58446b8169af", "score": "0.47891447", "text": "public function moveRemoveTicketsDecision(array $absentIds)\n\t{\n\t\t# statuses when we remove from tickets\n\t\t$removeStatuses = ['error'];\n\t\tforeach ($absentIds as $absentId) {\n\t\t\tif (in_array($absentId['status'], $removeStatuses))\n\t\t\t\t$this->removeTicket(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t$absentId['service_id'] => $absentId['absentId']\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\telse $this->moveTicket(\n\t\t\t\tarray(\n\t\t\t\t\t$absentId['service_id'] => $absentId['absentId']\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "4c8513fd486db21d64f8411831c35e21", "score": "0.47692853", "text": "function group_owner_role_disable($event, $object_type, $object) {\n\t$user=elgg_get_logged_in_user_entity();\n\t\n\t$role1=roles_get_role()->title;\n\t$role2=elgg_echo('roles:role:ADMIN_ROLE');\n\t\n\tif (strcasecmp($role1, $role2)!= 0) {\n\t\t//$user->removeAdmin();\n\t\troles_set_role(roles_get_role_by_name(elgg_echo('roles:role:DEFAULT_ROLE')));\t\n\t}\t\n}", "title": "" }, { "docid": "cb19418302bbadb70c0a902786f80b46", "score": "0.4767562", "text": "function vikinger_group_member_demote_to_mod($args) {\r\n $args['role'] = 'mod';\r\n $args['action'] = 'demote';\r\n\r\n return vikinger_group_member_change_status($args);\r\n }", "title": "" }, { "docid": "12bbbe06ea787ea05d287d313d3ef8ff", "score": "0.4765397", "text": "function delete_access($id_role = '0')\n {\n $isUsed = $this->isRoleUsed($id_role);\n\n //cek apakah data deletable\n $isDeletable = $this->isRoleDeletable($id_role);\n\n if (!$isUsed) {\n if ($isDeletable) {\n $data = ['is_deleted' => '1'];\n $this->db->where('id_role', $id_role);\n $this->db->update('tb_role', $data);\n\n $this->session->set_flashdata('message', '<div class=\"alert alert-success\">\n <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>\n Role deleted!\n </div>');\n redirect('backoffice/employee/access');\n } else {\n $this->session->set_flashdata('message', '<div class=\"alert alert-danger\">\n <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>\n This is a special role and cannot be deleted by owner, because the employee page can only be accessed in this role.\n </div>');\n redirect('backoffice/employee/edit_access/' . $id_role);\n }\n } else {\n $this->session->set_flashdata('message', '<div class=\"alert alert-danger\">\n <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>\n This role cannot be deleted because it has been associated with one or several employees. Please first unassigned the employees and try again.\n </div>');\n redirect('backoffice/employee/edit_access/' . $id_role);\n }\n }", "title": "" }, { "docid": "80b4503185ef895f5a01e504deca3a62", "score": "0.4762543", "text": "public function detachPermissions(mixed $role): bool;", "title": "" }, { "docid": "e3f140d7fca3321385673a351fae9d14", "score": "0.47604945", "text": "function unassign($Role, $Permission)\n\t{\n\t if (is_numeric($Role))\n\t {\n\t $RoleID = $Role;\n\t } else {\n\t if (substr($Role, 0, 1) == \"/\")\n\t $RoleID = Jf::$Rbac->Roles->pathId($Role);\n\t else\n\t $RoleID = Jf::$Rbac->Roles->titleId($Role);\n\t }\n\n\t if (is_numeric($Permission))\n\t {\n\t $PermissionID = $Permission;\n\t } else {\n\t if (substr($Permission, 0, 1) == \"/\")\n\t $PermissionID = Jf::$Rbac->Permissions->pathId($Permission);\n\t else\n\t $PermissionID = Jf::$Rbac->Permissions->titleId($Permission);\n\t }\n\n\t\treturn Jf::sql(\"DELETE FROM {$this->tablePrefix()}rolepermissions WHERE\n\t\t RoleID=? AND PermissionID=?\", $RoleID, $PermissionID) == 1;\n\t}", "title": "" }, { "docid": "6039a4148cac7fa31b329e20bb7cb43b", "score": "0.47598907", "text": "static function deactivateMultiple($ids) {\n $recs = null;\n foreach ($ids as $id) \n $rec = self::deactivate($id);\n return $rec;\n }", "title": "" }, { "docid": "a72c5e300e1ef68800bbdf84d259d898", "score": "0.4759456", "text": "public function deleteteam_() {\n\t\teval(USER);\t\t\n\t\ttry{\n\t\t\t$team_id = DBModel::getTeamByUser(session('userid'));\n\t\t\t$model = new AdminModel();\n\t\t\t$model->setTeamState($team_id, 2);\t\t// state 3: building team.\n\t\t\tDBModel::deleteTeam($team_id);\n\n\t\t\techo \"success\";\n\t\t}catch(Exception $e){\n\t\t\techo($e->getMessage());\n\t\t}\n\n\t}", "title": "" }, { "docid": "a8c2734e95e92d342091d5a3e4abbe2a", "score": "0.47508654", "text": "function exponent_permissions_revokeAll($user,$location) {\n\tglobal $db;\n\treturn $db->delete(\"userpermission\",\"uid=\" . $user->id . \" AND module='\" . $location->mod . \"' AND source='\" . $location->src . \"' AND internal='\" . $location->int . \"'\");\n}", "title": "" }, { "docid": "a212890652fe1c3add284111b6245540", "score": "0.47435355", "text": "public function revoke($id,$items)\n {\n $success = 0;\n foreach ($items as $name) {\n try {\n $query=Yii::$app->db->createCommand(\"DELETE FROM auth_assignment WHERE user_id=:user_id AND item_name=:item\");\n $query->bindValues([':user_id'=>$id,':item'=>$name]);\n $query->execute();\n $success++;\n } catch (\\Exception $exc) {\n Yii::error($exc->getMessage(), __METHOD__);\n }\n }\n return $success;\n }", "title": "" }, { "docid": "be0cce4898a1963169d3874bcbeadbb6", "score": "0.47401187", "text": "public function removePromotionAdjustments();", "title": "" }, { "docid": "52e578517edcbc21b0c35543073128b9", "score": "0.47358224", "text": "public function delete_assigns() {\n $this->load->view($this->url.\"header\");\n $this->load->view($this->url.\"delete_assign\", [\"allocated_vendors\" => $this->assigned_model->get_assigned_agents_to_vendors()]);\n $this->load->view($this->url.\"footer\");\n \n }", "title": "" }, { "docid": "442696946d8296c1097347db1bd65195", "score": "0.47328216", "text": "function filter_post_call_revoke($unused, $post, $whom) {\n\t\tif($whom instanceof Post) {\n\t\t\tDB::delete('{user_permissions}', array(\n\t\t\t\t'grantee_id' => $whom->id,\n\t\t\t\t'grantee_type' => GRANTEE_GROUP,\n\t\t\t\t'post_id' => $post->id,\n\t\t\t));\n\t\t}\n\t\telseif($whom instanceof User) {\n\t\t\tDB::delete('{user_permissions}', array(\n\t\t\t\t'grantee_id' => $whom->id,\n\t\t\t\t'grantee_type' => GRANTEE_USER,\n\t\t\t\t'post_id' => $post->id,\n\t\t\t));\n\t\t}\n\t}", "title": "" }, { "docid": "e19be8b9e62aab3e88feeaf20ea9fcdb", "score": "0.47273967", "text": "public function delete_element_roles_rules($resource)\n\t{\n\t\t// First get all roles_ids from roles under the current logged in user\n\t\t$role_ids = $this->get_group_concat_array(\n\t\t\t'id_role',\n\t\t\tarray(\n\t\t\t\t'role_level <=' => User()->get('role_level'),\n\t\t\t),\n\t\t\t'role'\n\t\t);\n\n\t\t// Filter on roles\n\t\tif ( ! empty($role_ids))\n\t\t\t$this->{$this->db_group}->where_in('id_role', $role_ids);\n\n\t\t$this->{$this->db_group}->where('resource', $resource);\n\n\t\treturn $this->{$this->db_group}->delete($this->get_table());\n\t}", "title": "" }, { "docid": "b3da089c846874f02d1437204ca26ffe", "score": "0.47267804", "text": "public function test_version1importlogssuccesfuluserroleassignmentdelete() {\n global $DB;\n\n // Set up dependencies.\n $userid = $this->create_test_user();\n $seconduserid = $this->create_test_user('rlipusername2', 'rlipuser@rlipdomain2.com', 'rlipidnumber2');\n $context = get_context_instance(CONTEXT_USER, $seconduserid);\n $roleid = $this->create_test_role();\n\n // Base data used every time.\n $basedata = array(\n 'action' => 'delete',\n 'context' => 'user',\n 'instance' => 'rlipusername2',\n 'role' => 'rlipshortname'\n );\n\n // Username.\n role_assign($roleid, $userid, $context->id);\n $data = $basedata;\n $data['username'] = 'rlipusername';\n $expectedmessage = \"[enrolment.csv line 2] User with username \\\"rlipusername\\\" successfully unassigned role with\";\n $expectedmessage .= \" shortname \\\"rlipshortname\\\" on user \\\"rlipusername2\\\".\\n\";\n $this->assert_data_produces_error($data, $expectedmessage, 'enrolment');\n\n // Email.\n role_assign($roleid, $userid, $context->id);\n $data = $basedata;\n $data['email'] = 'rlipuser@rlipdomain.com';\n $expectedmessage = \"[enrolment.csv line 2] User with email \\\"rlipuser@rlipdomain.com\\\" successfully unassigned role\";\n $expectedmessage .= \" with shortname \\\"rlipshortname\\\" on user \\\"rlipusername2\\\".\\n\";\n $this->assert_data_produces_error($data, $expectedmessage, 'enrolment');\n\n // Idnumber.\n role_assign($roleid, $userid, $context->id);\n $data = $basedata;\n $data['idnumber'] = 'rlipidnumber';\n $expectedmessage = \"[enrolment.csv line 2] User with idnumber \\\"rlipidnumber\\\" successfully unassigned role with\";\n $expectedmessage .= \" shortname \\\"rlipshortname\\\" on user \\\"rlipusername2\\\".\\n\";\n $this->assert_data_produces_error($data, $expectedmessage, 'enrolment');\n\n // Username, email.\n role_assign($roleid, $userid, $context->id);\n $data = $basedata;\n $data['username'] = 'rlipusername';\n $data['email'] = 'rlipuser@rlipdomain.com';\n $expectedmessage = \"[enrolment.csv line 2] User with username \\\"rlipusername\\\", email \\\"rlipuser@rlipdomain.com\\\"\";\n $expectedmessage .= \" successfully unassigned role with shortname \\\"rlipshortname\\\" on user \\\"rlipusername2\\\".\\n\";\n $this->assert_data_produces_error($data, $expectedmessage, 'enrolment');\n\n // Username, idnumber.\n role_assign($roleid, $userid, $context->id);\n $data = $basedata;\n $data['username'] = 'rlipusername';\n $data['idnumber'] = 'rlipidnumber';\n $expectedmessage = \"[enrolment.csv line 2] User with username \\\"rlipusername\\\", idnumber \\\"rlipidnumber\\\" successfully\";\n $expectedmessage .= \" unassigned role with shortname \\\"rlipshortname\\\" on user \\\"rlipusername2\\\".\\n\";\n $this->assert_data_produces_error($data, $expectedmessage, 'enrolment');\n\n // Email, idnumber.\n role_assign($roleid, $userid, $context->id);\n $data = $basedata;\n $data['email'] = 'rlipuser@rlipdomain.com';\n $data['idnumber'] = 'rlipidnumber';\n $expectedmessage = \"[enrolment.csv line 2] User with email \\\"rlipuser@rlipdomain.com\\\", idnumber \\\"rlipidnumber\\\"\";\n $expectedmessage .= \" successfully unassigned role with shortname \\\"rlipshortname\\\" on user \\\"rlipusername2\\\".\\n\";\n $this->assert_data_produces_error($data, $expectedmessage, 'enrolment');\n\n // Username, email, idnumber.\n role_assign($roleid, $userid, $context->id);\n $data = $basedata;\n $data['username'] = 'rlipusername';\n $data['email'] = 'rlipuser@rlipdomain.com';\n $data['idnumber'] = 'rlipidnumber';\n $expectedmessage = \"[enrolment.csv line 2] User with username \\\"rlipusername\\\", email \\\"rlipuser@rlipdomain.com\\\",\";\n $expectedmessage .= \" idnumber \\\"rlipidnumber\\\" successfully unassigned role with shortname \\\"rlipshortname\\\" on user\";\n $expectedmessage .= \" \\\"rlipusername2\\\".\\n\";\n $this->assert_data_produces_error($data, $expectedmessage, 'enrolment');\n }", "title": "" }, { "docid": "bf97202641119ffc9a6e9877cdba56d3", "score": "0.47258747", "text": "private function getEmptyRequiredRoles() {\n $unmet = array();\n foreach ($this->rolesRequiringAssignments as $role) {\n if (!CRM_Utils_Array::value($role, $this->lookup_role_contact)) {\n $unmet[] = $role;\n }\n }\n return $unmet;\n }", "title": "" }, { "docid": "60f0dd88911e2e2dca1d2f8b9d6969fe", "score": "0.4725244", "text": "function solutedns_aria_deactivate() {\n\n\treturn array(\n\t\t'status' => 'success', // Supported values here include: success, error or info\n\t\t'description' => 'SoluteDNS for WHMCS - ARIA has been deactivated successfully.',\n\t);\n}", "title": "" }, { "docid": "be9615a2642863cd3fad5e86ba16be8f", "score": "0.471699", "text": "public function remove_caps()\n {\n $wp_roles = $this->get_wp_roles();\n\n $roles = array_keys($wp_roles->roles);\n\n foreach ($roles as $role) {\n if (method_exists($this, \"get_{$role}_caps\")) {\n $caps = call_user_func([ $this, \"get_{$role}_caps\" ]);\n\n foreach ($caps as $cap) {\n $wp_roles->remove_cap($role, $cap);\n }\n }\n }\n }", "title": "" }, { "docid": "c6061f0f552bb8bdcb5845203afd8e1b", "score": "0.47033376", "text": "function access_grant_multiple_delete_confirm($form, &$form_state, $selected) {\n $gids = array_keys($selected);\n $grants = access_grant_load_multiple($gids);\n $roles = user_roles();\n $schemes = access_scheme_names();\n $usernames = db_query('SELECT g.uid, u.name FROM {access_grant} g INNER JOIN {users} u ON g.uid = u.uid WHERE g.gid IN (:gids)', array(':gids' => $gids))->fetchAllKeyed();\n\n $form['grants'] = array(\n '#prefix' => '<ul>',\n '#suffix' => '</ul>',\n '#tree' => TRUE,\n );\n foreach ($grants as $grant) {\n $form['grants'][$grant->gid] = array(\n '#type' => 'hidden',\n '#value' => $grant->gid,\n '#prefix' => '<li>',\n '#suffix' => t(\"@scheme for @user's access as @role\", array(\n '@user' => $usernames[$grant->uid],\n '@role' => $roles[$grant->rid],\n '@scheme' => $schemes[$grant->scheme],\n )) . \"</li>\\n\",\n );\n }\n\n $form['operation'] = array(\n '#type' => 'hidden',\n '#value' => 'delete',\n );\n $form['#submit'][] = 'access_grant_multiple_delete_confirm_submit';\n $confirm_question = format_plural(count($grants), 'Are you sure you want to delete this access grant?', 'Are you sure you want to delete these access grants?');\n return confirm_form($form, $confirm_question, 'admin/access', t('This action cannot be undone.'), t('Delete'), t('Cancel'));\n}", "title": "" }, { "docid": "fd902fd870f4a45b8083195d299c9a57", "score": "0.47011918", "text": "public function postDeleteRole()\n {\n $response = (object)array(\n 'method' => 'deleterole',\n 'success' => false,\n 'status' => 200,\n 'error_code' => 0,\n 'error_message' => ''\n );\n // decode json data\n $data = json_decode(file_get_contents(\"php://input\"));\n if( empty($data)) {\n $data = (object) $_POST;\n }\n $requiredParams = array('id');\n try {\n AuthorizerHelper::can(RoleValidator::ROLE_CAN_DELETE);\n\n $data = (array) $data;\n foreach ($requiredParams as $param){\n if (empty($data[$param])) {\n throw new \\Exception(ucfirst($param) .' is required.');\n }\n }\n\n $roleModel = new \\erdiko\\users\\models\\Role();\n $roleId = $roleModel->delete($data['id']);\n $responseRoleId = array('id' => $roleId);\n $response->success = true;\n $response->role = $responseRoleId;\n unset($response->error_code);\n unset($response->error_message);\n } catch (\\Exception $e) {\n $response->success = false;\n $response->error_code = $e->getCode();\n $response->error_message = $e->getMessage();\n }\n $this->setContent($response);\n }", "title": "" }, { "docid": "1f556fe2c1723511efcc40787a2966b3", "score": "0.4699488", "text": "function resetAssignments($Ensure = false)\n\t{\n\t\tif ($Ensure !== true)\n\t\t{\n\t\t\tthrow new \\Exception (\"You must pass true to this function, otherwise it won't work.\");\n\t\t\treturn;\n\t\t}\n\t\t$res = Jf::sql ( \"DELETE FROM {$this->tablePrefix()}rolepermissions\" );\n\n\t\t$Adapter = get_class(Jf::$Db);\n\t\tif ($this->isMySql())\n\t\t\tJf::sql ( \"ALTER TABLE {$this->tablePrefix()}rolepermissions AUTO_INCREMENT =1 \" );\n\t\telseif ($this->isSQLite())\n\t\t\tJf::sql ( \"delete from sqlite_sequence where name=? \", $this->tablePrefix () . \"_rolepermissions\" );\n\t\telse\n\t\t\tthrow new \\Exception ( \"Rbac can not reset table on this type of database: {$Adapter}\" );\n\t\t$this->assign ( $this->rootId(), $this->rootId());\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "176a7a7494a44d4633841c29f54a10a7", "score": "0.46977177", "text": "function leaderboardDeactivation()\n{\n // deleteLeaderboardOrders();\n // deleteLeaderboardMembers();\n // deleteLeaderboardTeams();\n}", "title": "" }, { "docid": "fdb68a5999128b07ebef5d706b9709b6", "score": "0.46924898", "text": "public static function detach_user($power_uid, $fellow_uid){\n global $DB;\n\n $config = get_config('block_user_delegation');\n\n $fellowcontext = context_user::instance($fellow_uid);\n $supervisorcontext = context_user::instance($power_uid);\n\n $supervisorroleid = $DB->get_field('role', 'id', array('shortname' => $config->corole));\n $studentroleid = $DB->get_field('role', 'id', array('shortname' => 'student'));\n\n $result = role_unassign($supervisorroleid, $power_uid, $fellowcontext->id);\n $result = $result && role_unassign($studentroleid, $fellow_uid, $supervisorcontext->id);\n\n return (int)$result;\n }", "title": "" }, { "docid": "6dc2a7a239a2b675136c14e6387ebb0c", "score": "0.46896878", "text": "function access_grant_delete_confirm($form, &$form_state, $grant) {\n $form_state['grant'] = $grant;\n\n $account = user_load($grant->uid);\n $role = user_role_load($grant->rid);\n $scheme = access_scheme_machine_name_load($grant->scheme);\n\n $t_args = array(\n '%user' => format_username($account),\n '%role' => $role->name,\n '%scheme' => $scheme->name,\n );\n $message = t(\"Are you sure you want to revoke all %scheme for %user's access as %role?\", $t_args);\n $caption = '<p>' . t('This action cannot be undone.') . '</p>';\n\n // If this is the user's last grant for this role, allow administrators to\n // also revoke the role itself at the same time.\n $existing = access_grant_load_by_condition(array('uid' => $grant->uid, 'rid' => $grant->rid));\n if (count($existing) == 1) {\n $form['revoke_role'] = array(\n '#type' => 'checkbox',\n '#title' => t(\"Also revoke %user's membership in the %role role?\", $t_args),\n '#description' => t(\"This is %user's last remaining access grant for the %role role. By checking this box, %user will be removed from the %role role entirely.\", $t_args),\n '#access' => user_access('administer users'),\n );\n }\n\n return confirm_form($form, $message, 'admin/access/grant/' . $grant->gid, $caption, t('Delete'));\n}", "title": "" }, { "docid": "601d43d707ee63fa73a5cda520a0f81b", "score": "0.46833858", "text": "public function massDeleteAction() {\r\n\t\t$enrolmentIds = $this->getRequest()->getParam('enrolment');\r\n\t\tif(!is_array($enrolmentIds)) {\r\n\t\t\tMage::getSingleton('adminhtml/session')->addError(Mage::helper('timetable')->__('Please select enrolments to delete.'));\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttry {\r\n\t\t\t\tforeach ($enrolmentIds as $enrolmentId) {\r\n\t\t\t\t\t$enrolment = Mage::getModel('timetable/enrolment');\r\n\t\t\t\t\t$enrolment->setId($enrolmentId)->delete();\r\n\t\t\t\t}\r\n\t\t\t\tMage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('timetable')->__('Total of %d enrolments were successfully deleted.', count($enrolmentIds)));\r\n\t\t\t}\r\n\t\t\tcatch (Mage_Core_Exception $e){\r\n\t\t\t\tMage::getSingleton('adminhtml/session')->addError($e->getMessage());\r\n\t\t\t}\r\n\t\t\tcatch (Exception $e) {\r\n\t\t\t\tMage::getSingleton('adminhtml/session')->addError(Mage::helper('timetable')->__('There was an error deleteing enrolments.'));\r\n\t\t\t\tMage::logException($e);\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->_redirect('*/*/index');\r\n\t}", "title": "" }, { "docid": "97ec65b7273488f7a993624a9f47eb94", "score": "0.4682673", "text": "public function test_version1importenrolmentdeletionisrolespecific() {\n global $DB;\n\n // Set up our enrolment.\n $this->run_core_enrolment_import(array());\n\n $roleid = $this->create_test_role('deletionrolespecificname', 'deletionrolespecificshortname',\n 'deletionrolespecificdescription');\n $syscontext = get_context_instance(CONTEXT_SYSTEM);\n\n // Set up a second enrolment.\n $data = $this->get_core_enrolment_data();\n $data['role'] = 'deletionrolespecificshortname';\n $this->run_core_enrolment_import($data, false);\n\n $this->assertEquals($DB->count_records('role_assignments'), 2);\n\n // Perform the delete action.\n $data = $this->get_core_enrolment_data();\n $data['action'] = 'delete';\n\n $this->run_core_enrolment_import($data, false);\n\n // Compare data.\n $this->assertEquals($DB->count_records('user_enrolments'), 1);\n $this->assertEquals($DB->count_records('role_assignments'), 1);\n }", "title": "" }, { "docid": "bb97adf4c57d0572720fa8a25318b2a7", "score": "0.46802735", "text": "public function remove_access_capabilities() {\n\t\t// Capabilities for all roles\n\t\tglobal $wp_roles;\n\t\tif ( ! isset( $wp_roles ) ) {\n\t\t\t$wp_roles = new WP_Roles();\n\t\t}\n\n\t\tforeach ( $wp_roles->roles as $role => $details ) {\n\t\t\t$role = $wp_roles->get_role( $role );\n\t\t\tif ( empty( $role ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$role->remove_cap( 'iggogrid_edit_tables' );\n\t\t\t$role->remove_cap( 'iggogrid_delete_tables' );\n\t\t\t$role->remove_cap( 'iggogrid_list_tables' );\n\t\t\t$role->remove_cap( 'iggogrid_add_tables' );\n\t\t\t$role->remove_cap( 'iggogrid_copy_tables' );\n\t\t\t$role->remove_cap( 'iggogrid_access_options_screen' );\n\t\t\t$role->remove_cap( 'iggogrid_access_about_screen' );\n\t\t\t$role->remove_cap( 'iggogrid_edit_options' );\n\t\t}\n\n\t\t// Refresh current set of capabilities of the user, to be able to directly use the new caps\n\t\t$user = wp_get_current_user();\n\t\t$user->get_role_caps();\n\t}", "title": "" }, { "docid": "a76bcc313590a958121537b422cbe18c", "score": "0.4676062", "text": "function getEliminarRol($vals, $args) {\n extract($vals);\n extract($args);\n $do_rol = DB_DataObject::factory('public_rol');\n $do_rol -> rol_codigo = $record[$id];\n $do_rol -> rol_baja = true;\n if($do_rol -> find(true))\n \t$rta = \"\";\n else\n \t$rta = \"<a href=eliminar.php?codigo={$record[$id]} title='Eliminar el item'><img src='\".PATH_gui.\"/images/icons/cross-circle.png' alt='' /></a>\";\n return $rta;\n}", "title": "" }, { "docid": "d7332725a79ec08142b0029e790eb7ca", "score": "0.46747103", "text": "#[CLI\\Command(name: self::PERM_REMOVE, aliases: ['rmp', 'role-remove-perm'])]\n #[CLI\\Argument(name: 'machine_name', description: 'The role to modify.')]\n #[CLI\\Argument(name: 'permissions', description: 'The list of permission to grant, delimited by commas.')]\n #[CLI\\Usage(name: \"drush role:remove-perm anonymous\", description: 'Remove 2 permissions from anon users.')]\n #[CLI\\ValidateEntityLoad(entityType: 'user_role', argumentName: 'machine_name')]\n #[CLI\\ValidatePermissions(argName: 'permissions')]\n #[CLI\\Complete(method_name_or_callable: 'roleComplete')]\n #[CLI\\Bootstrap(level: DrupalBootLevels::FULL)]\n public function roleRemovePerm($machine_name, $permissions): void\n {\n $perms = StringUtils::csvToArray($permissions);\n user_role_revoke_permissions($machine_name, $perms);\n $this->logger()->success(dt('Removed \"!permissions\" to \"!role\"', ['!permissions' => $permissions, '!role' => $machine_name]));\n $this->processManager()->drush($this->siteAliasManager()->getSelf(), 'cache:rebuild');\n }", "title": "" }, { "docid": "dac5b22ddd6af291f6f451f80ca97de0", "score": "0.4667335", "text": "function getPermsNotInRole($aRolePerms)\n {\n SGL::logMessage(null, PEAR_LOG_DEBUG);\n\n $query = \"\n SELECT p.permission_id, p.name\n FROM {$this->conf['table']['permission']} p\";\n\n if (count($aRolePerms)) {\n $whereClause = '';\n foreach ($aRolePerms as $key => $value) {\n $whereClause .= \" $key NOT IN (p.permission_id) AND \";\n }\n $whereClause = substr($whereClause, 0, -4);\n $query .= \" WHERE $whereClause\";\n }\n $aOtherPerms = $this->dbh->getAssoc($query);\n return $aOtherPerms;\n }", "title": "" }, { "docid": "72781e766a08e102a28b2c09860f4138", "score": "0.46661234", "text": "public function remove_assign_users($id){\t\t\n\t\t$this->TskAssignUser->deleteAll(array('tsk_assign_id' => $id), false);\n\t}", "title": "" }, { "docid": "8daf3826d33c4552a5a8d1fddebb0a8d", "score": "0.46610224", "text": "public function test_version1importlogssuccessfulcourseenrolmentandroleassignmentdelete() {\n global $CFG, $DB;\n require_once($CFG->dirroot.'/lib/enrollib.php');\n\n $userid = $this->create_test_user();\n $courseid = $this->create_test_course();\n $context = get_context_instance(CONTEXT_COURSE, $courseid);\n $roleid = $this->create_test_role();\n\n $enrol = new stdClass;\n $enrol->enrol = 'manual';\n $enrol->courseid = $courseid;\n $enrol->status = ENROL_INSTANCE_ENABLED;\n $DB->insert_record('enrol', $enrol);\n\n // Base data used every time.\n $basedata = array(\n 'action' => 'delete',\n 'context' => 'course',\n 'instance' => 'rlipshortname',\n 'role' => 'rlipshortname'\n );\n\n // Username.\n $data = $basedata;\n role_assign($roleid, $userid, $context->id);\n enrol_try_internal_enrol($courseid, $userid);\n $data['username'] = 'rlipusername';\n $expectedmessage = \"[enrolment.csv line 2] User with username \\\"rlipusername\\\" successfully unassigned role with\";\n $expectedmessage .= \" shortname \\\"rlipshortname\\\" on course \\\"rlipshortname\\\". User with username \\\"rlipusername\\\"\";\n $expectedmessage .= \" unenrolled from course with shortname \\\"rlipshortname\\\".\\n\";\n $this->assert_data_produces_error($data, $expectedmessage, 'enrolment');\n\n // Email.\n $data = $basedata;\n role_assign($roleid, $userid, $context->id);\n enrol_try_internal_enrol($courseid, $userid);\n $data['email'] = 'rlipuser@rlipdomain.com';\n $expectedmessage = \"[enrolment.csv line 2] User with email \\\"rlipuser@rlipdomain.com\\\" successfully unassigned role with\";\n $expectedmessage .= \" shortname \\\"rlipshortname\\\" on course \\\"rlipshortname\\\". User with email \\\"rlipuser@rlipdomain.com\\\"\";\n $expectedmessage .= \" unenrolled from course with shortname \\\"rlipshortname\\\".\\n\";\n $this->assert_data_produces_error($data, $expectedmessage, 'enrolment');\n\n // Idnumber.\n $data = $basedata;\n role_assign($roleid, $userid, $context->id);\n enrol_try_internal_enrol($courseid, $userid);\n $data['idnumber'] = 'rlipidnumber';\n $expectedmessage = \"[enrolment.csv line 2] User with idnumber \\\"rlipidnumber\\\" successfully unassigned role with\";\n $expectedmessage .= \" shortname \\\"rlipshortname\\\" on course \\\"rlipshortname\\\". User with idnumber \\\"rlipidnumber\\\"\";\n $expectedmessage .= \" unenrolled from course with shortname \\\"rlipshortname\\\".\\n\";\n $this->assert_data_produces_error($data, $expectedmessage, 'enrolment');\n\n // Username, email.\n $data = $basedata;\n role_assign($roleid, $userid, $context->id);\n enrol_try_internal_enrol($courseid, $userid);\n $data['username'] = 'rlipusername';\n $data['email'] = 'rlipuser@rlipdomain.com';\n $expectedmessage = \"[enrolment.csv line 2] User with username \\\"rlipusername\\\", email \\\"rlipuser@rlipdomain.com\\\"\";\n $expectedmessage .= \" successfully unassigned role with shortname \\\"rlipshortname\\\" on course \\\"rlipshortname\\\". User\";\n $expectedmessage .= \" with username \\\"rlipusername\\\", email \\\"rlipuser@rlipdomain.com\\\" unenrolled from course with\";\n $expectedmessage .= \" shortname \\\"rlipshortname\\\".\\n\";\n $this->assert_data_produces_error($data, $expectedmessage, 'enrolment');\n\n // Username, idnumber.\n $data = $basedata;\n role_assign($roleid, $userid, $context->id);\n enrol_try_internal_enrol($courseid, $userid);\n $data['username'] = 'rlipusername';\n $data['idnumber'] = 'rlipidnumber';\n $expectedmessage = \"[enrolment.csv line 2] User with username \\\"rlipusername\\\", idnumber \\\"rlipidnumber\\\" successfully\";\n $expectedmessage .= \" unassigned role with shortname \\\"rlipshortname\\\" on course \\\"rlipshortname\\\". User with username\";\n $expectedmessage .= \" \\\"rlipusername\\\", idnumber \\\"rlipidnumber\\\" unenrolled from course with shortname \";\n $expectedmessage .= \"\\\"rlipshortname\\\".\\n\";\n $this->assert_data_produces_error($data, $expectedmessage, 'enrolment');\n\n // Email, idnumber.\n $data = $basedata;\n role_assign($roleid, $userid, $context->id);\n enrol_try_internal_enrol($courseid, $userid);\n $data['email'] = 'rlipuser@rlipdomain.com';\n $data['idnumber'] = 'rlipidnumber';\n $expectedmessage = \"[enrolment.csv line 2] User with email \\\"rlipuser@rlipdomain.com\\\", idnumber \\\"rlipidnumber\\\"\";\n $expectedmessage .= \" successfully unassigned role with shortname \\\"rlipshortname\\\" on course \\\"rlipshortname\\\". \";\n $expectedmessage .= \"User with email \\\"rlipuser@rlipdomain.com\\\", idnumber \\\"rlipidnumber\\\" unenrolled from course \";\n $expectedmessage .= \"with shortname \\\"rlipshortname\\\".\\n\";\n $this->assert_data_produces_error($data, $expectedmessage, 'enrolment');\n\n // Username, email, idnumber.\n $data = $basedata;\n role_assign($roleid, $userid, $context->id);\n enrol_try_internal_enrol($courseid, $userid);\n $data['username'] = 'rlipusername';\n $data['email'] = 'rlipuser@rlipdomain.com';\n $data['idnumber'] = 'rlipidnumber';\n $expectedmessage = \"[enrolment.csv line 2] User with username \\\"rlipusername\\\", email \\\"rlipuser@rlipdomain.com\\\",\";\n $expectedmessage .= \" idnumber \\\"rlipidnumber\\\" successfully unassigned role with shortname \\\"rlipshortname\\\" on\";\n $expectedmessage .= \" course \\\"rlipshortname\\\". User with username \\\"rlipusername\\\", email \\\"rlipuser@rlipdomain.com\\\",\";\n $expectedmessage .= \" idnumber \\\"rlipidnumber\\\" unenrolled from course with shortname \\\"rlipshortname\\\".\\n\";\n $this->assert_data_produces_error($data, $expectedmessage, 'enrolment');\n }", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "03f8286a732a863f4d65a0a22c83dda5", "score": "0.0", "text": "public function index()\n {\n //\n $title = \"All Components\";\n $components = Component::all();\n return view('masters.components', compact('title', 'components'));\n }", "title": "" } ]
[ { "docid": "e0431810d4174a040ced0b019ba49225", "score": "0.76657677", "text": "public function index() {\n\t\t\t$this->listing();\n\t\t}", "title": "" }, { "docid": "852d65a985959b16c59e7c705d111b03", "score": "0.7339589", "text": "public function index()\n\t{\n\t\t// Require user to be logged in.\n\t\t$this->requireLoggedIn();\n\n\t\t$this->listing();\n\t}", "title": "" }, { "docid": "ac1d234cb439f96c04a246dcabf5f14f", "score": "0.7283086", "text": "public function index() {\n $this->_list();\n }", "title": "" }, { "docid": "223999e9a02d01dc0cad36705dec31b1", "score": "0.7248631", "text": "public function actionList() {\n $this->_getList();\n }", "title": "" }, { "docid": "b6a5ca1df2d5a43bd0318ff90e9ff1ed", "score": "0.7131838", "text": "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "title": "" }, { "docid": "9bf7e75f2259ae0a13c89c5d541e3e3f", "score": "0.70682937", "text": "public function actionListing()\n {\n $ratingDP = new ActiveDataProvider([\n 'query' => Rating::find()->orderBy('id DESC'),\n ]);\n\n return $this->render('listing', array(\n 'ratingDP' => $ratingDP\n ));\n }", "title": "" }, { "docid": "7558f18901b7c5821f0cd55c8e28aa45", "score": "0.6993516", "text": "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}", "title": "" }, { "docid": "5412f0b9b053fcd0929c40d71994403a", "score": "0.69761056", "text": "public function index()\n {\n try {\n $resources = Resource::all();\n return $this->showAll($resources);\n } catch (Exception $ex) {\n return $this->errorResponse(\"Danh sách trống!\", Response::HTTP_INTERNAL_SERVER_ERROR);\n }\n }", "title": "" }, { "docid": "eea4376f91e58ba7ea61ad453ac2e499", "score": "0.697312", "text": "public function index()\n {\n $model = $this->getModel();\n if(\\method_exists($model, 'getData')){\n $model = $model->getData();\n }\n return $this->getResource()::collection($model->paginate());\n }", "title": "" }, { "docid": "c66edef3aa16d000db861f83db19a852", "score": "0.69632214", "text": "public function indexAction ()\r\n {\r\n $this->render(\"list\");\r\n }", "title": "" }, { "docid": "e2492059e332634b90e1b739a942215b", "score": "0.6939673", "text": "public function index()\n {\n return view('admin.listing');\n }", "title": "" }, { "docid": "ba32632e29f18b2bf877cc90eaa90971", "score": "0.69001913", "text": "public function actionRestList() {\n\t $this->doRestList();\n\t}", "title": "" }, { "docid": "cbc2f6f0039706d1ede6b809aad8c23e", "score": "0.68922323", "text": "public function index()\n\t{\n\t\t//\n\t\t$this->getlist();\n\t\n\t}", "title": "" }, { "docid": "638df6519c658b92ec12faad7c6bfe27", "score": "0.68661547", "text": "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}", "title": "" }, { "docid": "efde97fbf9254ea0e2b2b7023e05101a", "score": "0.68545777", "text": "public function indexAction()\n {\n\t\tif(!Engine_Api::_()->core()->hasSubject('list_listing')) {\n\t\t\treturn $this->setNoRender();\n\t\t}\n\n\t\t//GET LISTING SUBJECT\n\t\t$subject = Engine_Api::_()->core()->getSubject();\n\n\t\t//GET VARIOUS WIDGET SETTINGS\n\t\t$this->view->statisticsRating = (int) Engine_Api::_()->getApi('settings', 'core')->getSetting('list.rating', 1);\n\t\t$this->view->truncation = $this->_getParam('truncation', 23);\n\t\t$related = $this->_getParam('related', 'categories');\n\n\t\t$params = array();\n\n\t\tIf($related == 'tags') {\n\n\t\t\t//GET TAGS\n\t\t\t$listingTags = $subject->tags()->getTagMaps();\n\n\t\t\t$params['tags'] = array();\n\t\t\tforeach ($listingTags as $tag) {\n\t\t\t\t$params['tags'][] = $tag->getTag()->tag_id;\n\t\t\t}\n\n\t\t\tif(empty($params['tags'])) {\n\t\t\t\treturn $this->setNoRender();\n\t\t\t}\n\n\t\t}\n\t\telseif($related == 'categories') {\n\t\t\t$params['category_id'] = $subject->category_id;\n\t\t}\n\t\telse {\n\t\t\treturn $this->setNoRender();\n\t\t}\n\n //FETCH LISTINGS\n\t\t$params['listing_id'] = $subject->listing_id;\n $params['orderby'] ='RAND()';\n $params['limit'] = $this->_getParam('itemCount', 3);\n $this->view->paginator = Engine_Api::_()->getDbtable('listings', 'list')->widgetListingsData($params);\n\n if (Count($this->view->paginator) <= 0) {\n return $this->setNoRender();\n }\n }", "title": "" }, { "docid": "5d644b7cefd46539deb2daa4d92b4eeb", "score": "0.6849159", "text": "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}", "title": "" }, { "docid": "248744b37e08a9b9e31438a427fee7ee", "score": "0.6831058", "text": "public function index()\n {\n $module = Module::get('Resources');\n \n if(Module::hasAccess($module->id)) {\n return View('la.resources.index', [\n 'show_actions' => $this->show_action,\n 'listing_cols' => Module::getListingColumns('Resources'),\n 'module' => $module\n ]);\n } else {\n return redirect(config('laraadmin.adminRoute') . \"/\");\n }\n }", "title": "" }, { "docid": "954a21a94c60b4569f28c882641e7298", "score": "0.68288493", "text": "public function index()\n {\n return view('admin.resources.index', [\n 'resources' => Resource::published()->get()\n ]);\n }", "title": "" }, { "docid": "f29709817ec3db2d44ad77fdc0a55269", "score": "0.68275005", "text": "public function _index()\n\t{\n\t\t$this->_list();\n\t}", "title": "" }, { "docid": "b27b06ba87e23efaf02018ba6a48d4b4", "score": "0.68065274", "text": "public function index()\n {\n /// Get cars\n $cars = Car::paginate();\n\n // Return collection of articles as a resource\n return CarResource::collection($cars);\n }", "title": "" }, { "docid": "6d9e9884f0172b86d37a90b3aed99107", "score": "0.67952746", "text": "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "title": "" }, { "docid": "c20114ab29ed59985c206dac3ce8bd35", "score": "0.678579", "text": "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}", "title": "" }, { "docid": "ecd287988f4b7da6fd1ee3a4ce0dbbb4", "score": "0.6772989", "text": "public function index()\n {\n $tickets = TicketsModel::paginate(10);\n\n //passing data to resource\n return TicketsResource::collection($tickets);\n }", "title": "" }, { "docid": "13fada7c45059bcdf0cc54b68e5eee96", "score": "0.6741144", "text": "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}", "title": "" }, { "docid": "02210f90da67beef15ab156f23ec7b92", "score": "0.6740046", "text": "public function actionList()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Records::find(),\n 'pagination' =>\n [\n 'pageSize' => $this->recordsPerAdminPage,\n ]\n ]);\n\n return $this->render('list', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.6723304", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.6723304", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "c9be2a11e7166305691684d329c6df24", "score": "0.67228454", "text": "public function index()\n {\n // Get books\n $books = Book::paginate(10);\n\n // Return collection of articles as a resource\n return BookResource::collection($books);\n }", "title": "" }, { "docid": "465ee43697fce30b312a8f52108bb059", "score": "0.67087173", "text": "public function listAction ( )\n {\n $model = $this->getModel('Scale');\n $request = $this->getRequest();\n\n $this->view->items = $model->paginate($request->getParams());\n\n }", "title": "" }, { "docid": "5370c2b221a0c31116fb4369ab9f4812", "score": "0.6697598", "text": "public function actionIndex()\n {\n // init Active Record\n $query = new ProfileRecords();\n\n // set current page and offset\n $page = (int)$this->request->query->get('page');\n $offset = $page * self::ITEM_PER_PAGE;\n\n // build pagination\n $pagination = new SimplePagination([\n 'url' => ['profile/index'],\n 'page' => $page,\n 'step' => self::ITEM_PER_PAGE,\n 'total' => $query->count()\n ]);\n\n // build listing objects\n $records = $query->orderBy('id', 'desc')->skip($offset)->take(self::ITEM_PER_PAGE)->get();\n\n // display viewer\n return $this->view->render('index', [\n 'records' => $records,\n 'pagination' => $pagination\n ]);\n }", "title": "" }, { "docid": "8ef47c1c1fcc1e28c5a1e9eb8583d7e7", "score": "0.66929966", "text": "public function _list()\n\t{\n\t\t_root::getRequest()->setAction('list');\n\n\t\t$oTitleModel = new model_title();\n\t\t$tTitles = $oTitleModel->findAll();\n\n\t\t$oView = new _view('titles::list');\n\t\t$oView->tTitles = $tTitles;\n\n\t\t$this->oLayout->add('work', $oView);\n\t}", "title": "" }, { "docid": "cd9c5c4bfebd4034e9aab606b543d95a", "score": "0.6689839", "text": "public function index()\n {\n $todos = Todo::paginate(50);\n return TodosResource::collection($todos);\n }", "title": "" }, { "docid": "5509d28122c561e86197cbcc735e8008", "score": "0.6688235", "text": "public function index()\n {\n $products = Product::filter()->paginate();\n\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "712af5c8b3ebcbb93ccacf71c37b0d64", "score": "0.6687393", "text": "public function index()\n {\n return ResourceResource::collection(auth()->user()->resources);\n }", "title": "" }, { "docid": "93be7d845843229d41c071ba88255d72", "score": "0.6675895", "text": "public function listAction()\n {\n $userService = new Core_Service_UserApi();\n $this->view->users = $userService->fetchUsers();\n $this->view->pageTitle = $this->view->translate('USERS_TITLE');\n }", "title": "" }, { "docid": "4749d27d60b7528b95f66725757fb6f5", "score": "0.6675568", "text": "public function listAction()\n {\n $tags = $this->getTags();\n $this->view->assign('tags', $tags);\n }", "title": "" }, { "docid": "148383f68d3328f7ff820d3aa26f22ff", "score": "0.6668561", "text": "public function indexAction()\n\t{\n\t\t$this->_view->_title \t\t\t\t= ucfirst($this->_arrParam['controller']) . \" Controller :: List\";\n\n\t\t//Total Items\n\t\t$this->_view->itemsStatusCount \t\t= $this->_model->countItems($this->_arrParam, ['task' => 'count-items-status']);\n\t\t$itemCount \t\t\t\t\t\t\t= $this->_model->countItems($this->_arrParam, ['task' => 'count-items-status']);\n\t\t$configPagination \t\t\t\t\t= ['totalItemsPerPage' => 5, 'pageRange' => 3];\n\t\t$this->setPagination($configPagination);\n\t\t$status \t\t\t\t\t\t\t= $this->_arrParam['status'] ?? 'all';\n\t\t$this->_view->pagination \t\t\t= new Pagination($itemCount[$status], $this->_pagination);\n\n\t\t//List Items\n\t\t$this->_view->items \t\t\t\t= $this->_model->listItems($this->_arrParam);\n\t\t$this->_view->slbCategory \t\t\t\t= [0 => ' - Select Category - '] + $this->_model->itemInSelectbox($this->_arrParam, null);\n\t\t$this->_view->render($this->_arrParam['controller'] . '/index');\n\t}", "title": "" }, { "docid": "4109cfb1ab66ca22734b6c4c872a2fb6", "score": "0.6664004", "text": "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "title": "" }, { "docid": "6f42cd3476241a88f34e457a523248c3", "score": "0.6663698", "text": "public function index()\n {\n // Get flight list from DB\n $flight = Flight::orderBy('flight_number', 'asc')->paginate(20);\n // Return collection of airports as a resource\n return FlightResource::collection($flight); \n }", "title": "" }, { "docid": "2ff5e05b9167e7eb31dff21e1b6c78dd", "score": "0.6663109", "text": "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 }", "title": "" }, { "docid": "50f00ab8e31c26165779f77d407ba147", "score": "0.6656908", "text": "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "title": "" }, { "docid": "0e3a54a39646333a6d375a7c945db124", "score": "0.66557026", "text": "public function listAction()\n {\n $user = $this->getUser();\n $em = $this->getDoctrine()->getManager();\n $films = $em->getRepository(Film::class)\n ->findAll();\n return $this->render('admin/listFilm.html.twig', [\n 'films' => $films,\n 'user' => $user\n ]);\n }", "title": "" }, { "docid": "14b2ffd8b6bd095e1ee08082a4773bd5", "score": "0.6642048", "text": "public function index()\n {\n return WidgetResource::collection(Widget::paginate());\n }", "title": "" }, { "docid": "4066b4da28340cedbf7b1e2a765a4d30", "score": "0.6621058", "text": "public function listing()\n {\n $offers_per_page = 32;\n // On récupère le nombre de figurines\n $offers_number = $this->Offers->count();\n // On calcule le nombre de page\n $pages_number = ceil($offers_number / $offers_per_page);\n // On récupère la page courante\n if(isset($_GET['p'])) {\n $current_page = intval($_GET['p']);\n if($current_page > $pages_number) {\n $current_page = 1;\n }\n } else {\n $current_page = 1;\n }\n // On calcule la première entrée à récupérer\n $first_entry = ($current_page - 1) * $offers_per_page;\n // On récupère la liste des annonces\n $offers_list = $this->Offers->some($first_entry, $offers_per_page);\n // Préparation de la page\n $page = new Page(array(\n 'title' => 'Annonces',\n 'class_body' => 'offers'\n ));\n // Rendu du contenu\n $variables = compact(\n 'offers_list',\n 'offers_number',\n 'current_page',\n 'pages_number'\n );\n $content = $this->render('admin/offers/listing.php', $variables);\n // Rendu de la page\n echo $page->render($content);\n\n // On vide les données qu'on ne veut pas réafficher si on actualise la page\n unset($_SESSION['error']);\n unset($_SESSION['success']);\n }", "title": "" }, { "docid": "2564823d78cf46605ebc641dd521408d", "score": "0.6618391", "text": "public function listAction() {\n $this->_datatable();\n return $this->render('BackendBundle:FeastStage:list.html.twig');\n }", "title": "" }, { "docid": "58b5055aa7766919560eac36f68c1db2", "score": "0.66145146", "text": "public function view(){\n\t\t$this->buildListing();\n\t}", "title": "" }, { "docid": "8c4ed8db0ad6047e7410b0271d18bf81", "score": "0.6611097", "text": "public function index()\n {\n return $this->service->fetchResources(Book::class, 'books');\n }", "title": "" }, { "docid": "d18bdb26d4ca96262bddb7c917a8349b", "score": "0.66056865", "text": "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "title": "" }, { "docid": "4b3a4c5b0e9a975144213d22dfff3839", "score": "0.66034746", "text": "public function index()\n {\n $query = Product::getList(request('filter', ''))\n ->orderBy(request('order_by','s_ProductName'),request('order','ASC'));\n \n return ProductResource::collection($query->paginate(request('per_page', 100)));\n }", "title": "" }, { "docid": "2b66066335dec8de726c5a77ff0aee12", "score": "0.6600895", "text": "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "title": "" }, { "docid": "f5e1ccf327188ca3d2fd5f7a1f3277c1", "score": "0.6595387", "text": "public function index_get() {\n $action = $this->get('action');\n switch ($action) {\n case \"list\":\n $this->list1();\n break;\n case \"retrieve\":\n $this->set_response(\"retrieve\", REST_Controller::HTTP_OK);\n break;\n default:\n $this->not_found();\n break;\n }\n }", "title": "" }, { "docid": "b96fcd6a69c1e3403c9ae8bd822a3910", "score": "0.659174", "text": "public function index()\n {\n // Get all assets\n $assets = Asset::paginate(15);\n // Return collection of assets as a resource\n return AssetResource::collection($assets);\n }", "title": "" }, { "docid": "ffa4ab9d8165639a117e4bc3980fc30d", "score": "0.65901315", "text": "public function index()\n {\n //\n // $authors= Author::all();\n $authors = QueryBuilder::for(Author::class)->allowedSorts([\n 'name',\n 'created_at'\n ])->jsonPaginate();\n return AuthorsResource::collection($authors);\n }", "title": "" }, { "docid": "fb55b34f40f8931a10a91283716c2912", "score": "0.6587919", "text": "public function index()\n {\n return ListItem::all();\n }", "title": "" }, { "docid": "0221833762d40c420a048045edcecf8f", "score": "0.65876716", "text": "public function actionList()\n {\n $searchModel = new RecipeRepository();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render([\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "1e6bd4eb78a78252539afb3a131fd8fb", "score": "0.6587006", "text": "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 }", "title": "" }, { "docid": "74d4617df84723cff26f33e255390482", "score": "0.65851516", "text": "public function actionIndex()\n {\n $items = ModelGeneral::showItems();\n\n $this->view->render('index', [\n 'items' => $items\n ]);\n }", "title": "" }, { "docid": "d387ade88ed7ada9aa0979d5a0c09bee", "score": "0.6584909", "text": "public function index()\n {\n return ProductResource::collection(Product::paginate());\n }", "title": "" }, { "docid": "2d2ee69019284a5d658f50fdd6d094d6", "score": "0.65802413", "text": "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "title": "" }, { "docid": "13c5bf63a24813d5b4b83687cbbe5c75", "score": "0.65751636", "text": "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}", "title": "" }, { "docid": "c657f4f8a8c3a68d1efb77bb48bb64ed", "score": "0.6574276", "text": "public function listAction() {}", "title": "" }, { "docid": "34c7660459cd4da39347c5a18236bb4d", "score": "0.6569474", "text": "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "title": "" }, { "docid": "c6615d7e9302e878e3f32e0cacbe1eaa", "score": "0.65640616", "text": "public function indexAction()\n {\n\t\tif($this->rest[7] == 1) {\n\t\t\t$this->view->headTitle()->prepend('Playlists');\n\t\t\t$playlist = new Application_Model_Playlist;\n\t\t\t$playlistMapper = new Application_Model_PlaylistMapper;\n\t\t\t\n\t\t\t// check for delete action\n\t\t\tif($this->_request->getPost('delete')){\n\t\t\t\tif(is_array($this->_request->getPost('delete'))){\n\t\t\t\t\tforeach($this->_request->getPost('delete') as $curDel){\n\t\t\t\t\t\t$playlistMapper->delete($curDel);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// display listing\n\t\t\t$results = $playlistMapper->fetchAll();\n\t\t\t\n\t\t\tif(isset($results)) {\n\t\t\t\t$paginator = Zend_Paginator::factory($results);\n\t\t\t\t$paginator->setItemCountPerPage(10);\n\t\t\t\t$paginator->setCurrentPageNumber($this->_getParam('page'));\n\t\t\t\t$this->view->paginator = $paginator;\n\t \n\t\t\t\tZend_Paginator::setDefaultScrollingStyle('Sliding');\n\t\t\t\tZend_View_Helper_PaginationControl::setDefaultViewPartial(\n\t\t\t\t\t'admin/user-paginator.phtml'\n\t\t\t\t);\n\t\t\t}\n\t\t}\n }", "title": "" }, { "docid": "c192cad1748d0fe11000b8d2063a908e", "score": "0.6563787", "text": "public function index()\n {\n return $this->view('lists');\n }", "title": "" }, { "docid": "8fcbc5a1a568f3e7c3f7e2f8dff9b148", "score": "0.6563628", "text": "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "title": "" }, { "docid": "e46de2dcc0ebc71d109d2b3f9606f07f", "score": "0.6560237", "text": "public function index()\n {\n // Get assets\n $assets = Asset::orderBy('created_at','desc')->paginate(15);\n\n // Return collection of assets as a resource\n return AssetResource::collection($assets);\n }", "title": "" }, { "docid": "7056dcfc0479ee6a004c692cbdce673b", "score": "0.6554856", "text": "public function index()\n {\n $operations = $this->Operations->getAllOperations();\n $this->set(compact('operations'));\n }", "title": "" }, { "docid": "709296f3c4b911dad5cd4c6a5737f286", "score": "0.6553911", "text": "public function index()\n {\n $students = Student::paginate(10);\n\n return Inertia::render('Students/list', [\n 'students' => $students\n ]);\n }", "title": "" }, { "docid": "4d26affb174c19221ce588c9eebafab3", "score": "0.65516967", "text": "function listing() {\r\n\r\n }", "title": "" }, { "docid": "93ea242a6b36e6ac311b0ca58b9c07c2", "score": "0.65509564", "text": "public function actionList()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Site::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "8ffe23111661c679bede8757d6ebad59", "score": "0.6548497", "text": "public function index()\n\t{\n\t\t$data['lists'] = $this->role_model->get_all();\n\t\t$this->template->set('title', 'Role List');\n\t\t$this->template->admin('template', 'list', $data);\n\t}", "title": "" }, { "docid": "6eadfe639301106d65142408b4536a7d", "score": "0.65390205", "text": "public function index()\n {\n return CentroResource::collection(Centro::paginate());\n }", "title": "" }, { "docid": "ea43a79fd12bd5dff2bffb4510a5d10e", "score": "0.65367365", "text": "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "title": "" }, { "docid": "d751539cc41f307fad1b6804f8318415", "score": "0.6533626", "text": "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "title": "" }, { "docid": "0400ea13e166c07ef25151bbef4b455f", "score": "0.6533064", "text": "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}", "title": "" }, { "docid": "89609813ca0ff771861ac28b1e095928", "score": "0.6527711", "text": "public function index()\n\t{\n return Resource::all();\n\t}", "title": "" }, { "docid": "d4e79a968a98f6ac1906664a59aac8bf", "score": "0.6527408", "text": "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "title": "" }, { "docid": "ac8a4e8f7ba673f80eb0d433d63e55e7", "score": "0.65167385", "text": "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 }", "title": "" }, { "docid": "9b0f4da09bdec99e98ebafb70ab32ae2", "score": "0.6516062", "text": "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "title": "" }, { "docid": "901678e4ca1d10119628a2768429725f", "score": "0.6512585", "text": "public function index()\n {\n return AlbumResource::collection(\\App\\Album::orderBy('created_at', 'desc')->get());\n }", "title": "" }, { "docid": "5c803b00b170848e1203ddac8a92502b", "score": "0.6511537", "text": "public function getIndex()\n\t{\n\n\t\treturn View::make('admin.scaffolding.list', [\n\t\t\t'title' => $this->title,\n\t\t\t'data' => (new $this->model)->all(),\n\t\t\t'properties' => $this->properties,\n\t\t\t'uri' => $this->uri\n\t\t]);\n\t}", "title": "" }, { "docid": "7d6d4eeffba02e23256d6a0e5deb2bdd", "score": "0.6510835", "text": "public function index()\n {\n //list all records\n return response( PhotoResource::collection( Photo::all(), 200) );\n \n }", "title": "" }, { "docid": "389b8dbccde4696cda724a5bc36302af", "score": "0.6506742", "text": "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "ff30a4ae8d49f1706d1dbd328394a294", "score": "0.6492756", "text": "public function index()\n {\n $brands = Brand::query()->paginate();\n return BrandResource::collection($brands);\n }", "title": "" }, { "docid": "88f1d549be2c21237f0ceb3975891048", "score": "0.64921784", "text": "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "title": "" }, { "docid": "3b3460a74099eb9046ed062a8388f3ed", "score": "0.64920145", "text": "public function listAction() {\n\n // Use the model to get all stored users\n $allUsers = $this->userModel->findAll('name ASC');\n\n\n $this->theme->setTitle('Användare');\n $this->views->addString('<h3>Användare</h3><hr>');\n foreach ($allUsers as $user) {\n $values = $user->getProperties();\n $this->views->add('user/abstract', [\n 'user' => $this->userHTMLAction($values)\n ]);\n\n }\n }", "title": "" }, { "docid": "629569270186c168f2f698db8154b51a", "score": "0.6487868", "text": "public function index()\n {\n $articles = Article::query()->latest()->paginate(10);\n\n return ArticleResource::collection($articles);\n }", "title": "" }, { "docid": "8b1eaa504a92ec88744afddafd38af54", "score": "0.6485237", "text": "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}", "title": "" }, { "docid": "25aaedcb3f8fbe36cdc02986a86cf453", "score": "0.6484998", "text": "public function index()\n {\n // Get Specifications\n $specifications = Specification::orderBy('created_at', 'desc')->paginate(100);\n\n // Return collection of Specifications as a resource\n return SpecificationResource::collection($specifications);\n }", "title": "" }, { "docid": "3289098065a34b6f7ce3c9789ae4fe35", "score": "0.6484199", "text": "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "title": "" }, { "docid": "977ac32679a930999aa3047f122aa680", "score": "0.64841217", "text": "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 }", "title": "" }, { "docid": "67b73f4ae6d169731b81d3965809e2cc", "score": "0.64839655", "text": "public function index()\n {\n return PageListResource::collection(Page::orderBy('order', 'ASC')->paginate(25));\n }", "title": "" }, { "docid": "660b82cc6b8b90bf6a2b2cc5994c4659", "score": "0.6483828", "text": "public function index()\n {\n return FilmeResource::collection(Filme::orderBy('titulo')->get());\n }", "title": "" }, { "docid": "9e4aa3765a088d74ea20e0e8231d81d1", "score": "0.6478558", "text": "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "title": "" }, { "docid": "0232eb512a71477a7fa7dc6a5705eb55", "score": "0.64727706", "text": "public function index()\n {\n $list_obj = Apartment::all();\n return view('admin.apartment.list')->with('list_obj', $list_obj);\n }", "title": "" }, { "docid": "3f33a04452a229a0b4356377ae06424e", "score": "0.646991", "text": "public function index()\n {\n return UserResource::collection($this->repo->paginate(10));\n }", "title": "" }, { "docid": "f92be88dba29fa2e07ab2719b0d8b3c1", "score": "0.646858", "text": "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 }", "title": "" }, { "docid": "7a72ff5bace6f47eb0aa5efd43bfec8d", "score": "0.64683306", "text": "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "a2ab746e766f19e19b849e6fdc6dd489", "score": "0.6466808", "text": "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}", "title": "" }, { "docid": "0888788ae9bfefbe43a82d618a4801ab", "score": "0.64616066", "text": "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 }", "title": "" }, { "docid": "33b7b9e2fcdf01d9aa991501465da69c", "score": "0.64589924", "text": "public function index()\n {\n //get businesses\n $business = Business::paginate(15);\n\n //return business as resource\n return BusinessResource::collection($business);\n }", "title": "" } ]
2bd9c48169f8481e7484e4d8cc20fa07
__construct() Construtor de classe.
[ { "docid": "ef5cf80b5100eb83c30ba07614de9720", "score": "0.0", "text": "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t\n\t\t// Valida acesso (Sessão)\n\t\t$this->access->validate_session();\n\t\t\n\t\t// Verifica se maker pode ser aberto\n\t\tif($this->_check_maker_permissions())\n\t\t{\t\t\t\n\t\t\t// Verifica se diretório possui permissões de leitura e/ou escrita\n\t\t\tif($this->_check_path_permissions($this->path_module_files))\n\t\t\t{\n\t\t\t\t$this->path_handle = @opendir($this->path_module_files);\n\t\t\t} else {\n\t\t\t\t$this->error->show_exception_page(lang('Diretório <strong>' . $this->path_module_files . '</strong> sem permissões de leitura e/ou escrita. Verifique as permissões do diretório e tente o acesso novamente.'));\n\t\t\t}\n\t\t} else {\n\t\t\t$this->error->show_exception_page(lang('O módulo Maker (construtor de módulos) não pode ser aberto. Verifique as possíveis causas:<br /><br />\n\t\t\t&bull;&nbsp;Diretório <strong>application/controllers</strong> sem permissões de leitura e/ou escrita<br />\n\t\t\t&bull;&nbsp;Diretório <strong>application/models</strong> sem permissões de leitura e/ou escrita<br />\n\t\t\t&bull;&nbsp;Diretório <strong>application/views/' . TEMPLATE . '</strong> sem permissões de leitura e/ou escrita<br />\n\t\t\t&bull;&nbsp;Diretório <strong>application/core/acme/engine_files</strong> sem permissões de leitura e/ou escrita<br />\n\t\t\t&bull;&nbsp;Arquivo <strong>application/core/acme/engine_files/maker_template_controller.php</strong> faltando<br />\n\t\t\t&bull;&nbsp;Arquivo <strong>application/core/acme/engine_files/maker_template_model.php</strong> faltando<br />\n\t\t\t&bull;&nbsp;Arquivo <strong>application/core/acme/engine_files/maker_template_module_file.xml</strong> faltando<br />\n\t\t\t&bull;&nbsp;Arquivo <strong>application/core/acme/engine_files/maker_template_module_file.ini</strong> faltando<br />\n\t\t\t&bull;&nbsp;Arquivo <strong>application/core/acme/engine_files/maker_template_module_file_custom_action.ini</strong> faltando<br />\n\t\t\t&bull;&nbsp;Arquivo <strong>application/core/acme/engine_files/maker_template_module_file_custom_menu.ini</strong> faltando<br />\n\t\t\t&bull;&nbsp;Arquivo <strong>application/core/acme/engine_files/maker_template_module_file_custom_permission.ini</strong> faltando<br />'));\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "bb1130607b03e9ee681c52ba8a452caa", "score": "0.9037099", "text": "function __construct( ){}", "title": "" }, { "docid": "d768e0a1b00989ae9966c358862c4f1f", "score": "0.88712096", "text": "private function __constructor(){}", "title": "" }, { "docid": "303c6463401e09821159820390808780", "score": "0.87676746", "text": "final private function __construct()\n\t{\n\t}", "title": "" }, { "docid": "303c6463401e09821159820390808780", "score": "0.87676746", "text": "final private function __construct()\n\t{\n\t}", "title": "" }, { "docid": "303c6463401e09821159820390808780", "score": "0.87676746", "text": "final private function __construct()\n\t{\n\t}", "title": "" }, { "docid": "303c6463401e09821159820390808780", "score": "0.87676746", "text": "final private function __construct()\n\t{\n\t}", "title": "" }, { "docid": "740fa43055efdfd7daf997d7b7cd62fa", "score": "0.8741757", "text": "function __construct()\n\t\t\t{\n\t\t\t}", "title": "" }, { "docid": "dd152fcaf9c3b056c55ddae6060148e5", "score": "0.871554", "text": "final private function __construct(){}", "title": "" }, { "docid": "53dc15131b15ab30180366c7cbf9a44e", "score": "0.8715217", "text": "private function __constructor()\n\t{\t\t\n\t}", "title": "" }, { "docid": "763fff94eca613bb1a2de8bb8d749127", "score": "0.87116736", "text": "function __construct()\n\t\t{\n\t\t}", "title": "" }, { "docid": "763fff94eca613bb1a2de8bb8d749127", "score": "0.87116736", "text": "function __construct()\n\t\t{\n\t\t}", "title": "" }, { "docid": "763fff94eca613bb1a2de8bb8d749127", "score": "0.87116736", "text": "function __construct()\n\t\t{\n\t\t}", "title": "" }, { "docid": "763fff94eca613bb1a2de8bb8d749127", "score": "0.87116736", "text": "function __construct()\n\t\t{\n\t\t}", "title": "" }, { "docid": "8cf0f1e2117d3299a2d7409aff2a3e32", "score": "0.8702535", "text": "private function __construct()\n\t{}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.86937404", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.86937404", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.86937404", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.86937404", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.86937404", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.86937404", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.86937404", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.86937404", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.86937404", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.86937404", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.86937404", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.86937404", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.86937404", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.86937404", "text": "private function __construct(){}", "title": "" }, { "docid": "6bd592f13b99fdb628b00e1854be4490", "score": "0.869052", "text": "public function _construct()\r\n\t{\r\n\r\n\t}", "title": "" }, { "docid": "6bd592f13b99fdb628b00e1854be4490", "score": "0.869052", "text": "public function _construct()\r\n\t{\r\n\r\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" }, { "docid": "55a6f310d200231d9b9dcc747698e665", "score": "0.86804324", "text": "function _construct()\n\t{\n\t}", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "cb85b9cb1b168fea63e4ebfb64bccdf3", "score": "0.0", "text": "public function destroy($id)\n {\n $chaptertopic = ChapterTopic::where('id', $id)->first();\n $chapter_id = (!empty($chaptertopic->chapter_id)) ? $chaptertopic->chapter_id : \"\";\n\n if(!$chaptertopic || (auth()->user()->role == 'Student' || (!empty(auth()->user()->role['role_id']) && auth()->user()->role['role_id'] == AppHelper::USER_STUDENT))) {\n abort(404);\n }\n try {\n $chaptertopic->delete();\n ChapterTopic::destroy($id);\n return redirect()->route('topic.index',$chapter_id)->with('success', 'Chapter Topic deleted!');\n } catch (\\Exception $ex) {\n $message = str_replace(array(\"\\r\", \"\\n\",\"'\",\"`\"), ' ', $ex->getMessage());\n return redirect()->route('topic.index',$chapter_id)->with('error', $message);\n }\n }", "title": "" } ]
[ { "docid": "4b8255c05a264d5d61f546d7bcd507ce", "score": "0.6672584", "text": "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "title": "" }, { "docid": "d9f10892d48fdfd7debb2a97681f0912", "score": "0.6659381", "text": "public function destroy(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "4c5eebff0d9ed2cb7fdb134bb4660b64", "score": "0.6635911", "text": "public function removeResource($resourceID)\n\t\t{\n\t\t}", "title": "" }, { "docid": "9128270ecb10fe081d7b27ed99999426", "score": "0.6632799", "text": "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 }", "title": "" }, { "docid": "ca4c6cd0f72c6610d38f362f323ea885", "score": "0.6626075", "text": "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 }", "title": "" }, { "docid": "22e99170ed44ab8bba05c4fea1103beb", "score": "0.65424126", "text": "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "title": "" }, { "docid": "08c524d5ed1004452df540e76fe51936", "score": "0.65416265", "text": "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "title": "" }, { "docid": "e615a714c70c0f1f81aa89e434fd9645", "score": "0.64648265", "text": "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "title": "" }, { "docid": "9699357cc7043ddf9be8cb5c6e2c5e9c", "score": "0.62882507", "text": "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "title": "" }, { "docid": "c14943151fb5ef8810fedb80b835112e", "score": "0.6175931", "text": "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "title": "" }, { "docid": "507601379884bfdf95ac02c4b7d340a0", "score": "0.6129922", "text": "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 }", "title": "" }, { "docid": "60da5cdaab3c2b4a3de543383ff7326a", "score": "0.60893893", "text": "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}", "title": "" }, { "docid": "ccaddaf8c48305cf51ff4f4e87f7f513", "score": "0.6054415", "text": "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}", "title": "" }, { "docid": "b96521ac0a45d4af2abd98a169f470e6", "score": "0.60428125", "text": "public function delete(): void\n {\n unlink($this->getPath());\n }", "title": "" }, { "docid": "5bb36f163668a235aa80821b0746c2bc", "score": "0.60064924", "text": "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "b549ee1a3239f6720bb4eae802ea1753", "score": "0.5930772", "text": "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "title": "" }, { "docid": "02436278b72d788803fbd1efa4067eef", "score": "0.59199584", "text": "public function delete(): void\n {\n unlink($this->path);\n }", "title": "" }, { "docid": "67c2e1a96c6af4251ec2fe2211864e9b", "score": "0.5919811", "text": "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "title": "" }, { "docid": "e37d38c43b6eab9f0b20965c7e9b2769", "score": "0.5904504", "text": "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "title": "" }, { "docid": "5336825b23ae57c225d3534fd55b1861", "score": "0.5897263", "text": "public function remove() {}", "title": "" }, { "docid": "5336825b23ae57c225d3534fd55b1861", "score": "0.58962846", "text": "public function remove() {}", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "140b6c44eef77c79cbd9edc171fe8e75", "score": "0.5880124", "text": "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}", "title": "" }, { "docid": "72dc5bfa6ca53ddd2451fc0e14e6fcfe", "score": "0.58690923", "text": "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "title": "" }, { "docid": "b0b6f080ff9e00a37e1e141de8af472d", "score": "0.5863659", "text": "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 }", "title": "" }, { "docid": "c6821270bce7c29555a3d0ca63e8ff36", "score": "0.5809161", "text": "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "title": "" }, { "docid": "3053bc6cd29bad167b4fd69fe4e79d55", "score": "0.57735413", "text": "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 }", "title": "" }, { "docid": "81bac0e5ac8e3c967ba616afac4bfb1c", "score": "0.5760811", "text": "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "title": "" }, { "docid": "385e69d603b938952baeb3edc255a4ea", "score": "0.5753559", "text": "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}", "title": "" }, { "docid": "750ee1857a66f841616cd130d5793980", "score": "0.57492644", "text": "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 }", "title": "" }, { "docid": "7e6820819c67c0462053b11f5a065b9f", "score": "0.5741712", "text": "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "title": "" }, { "docid": "aa404011d4a23ac3716d0c9c1360bd20", "score": "0.57334286", "text": "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 }", "title": "" }, { "docid": "9a5dfeb522e8b8883397ebfbc0e9d95b", "score": "0.5726379", "text": "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "title": "" }, { "docid": "883f70738d6a177cbdf3fcaec9e9c05f", "score": "0.57144034", "text": "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "title": "" }, { "docid": "2d462647e81e7beec7f81e7f8d6c6d44", "score": "0.57096", "text": "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 }", "title": "" }, { "docid": "a165b9f8668bef9b0f1825244b82905e", "score": "0.5707689", "text": "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 }", "title": "" }, { "docid": "4a66b1c57cede253966e4300db4bab11", "score": "0.5705895", "text": "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "title": "" }, { "docid": "2709149ed9daaf760627fbe4d2405e47", "score": "0.5705634", "text": "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 }", "title": "" }, { "docid": "67396329aa493149cb669199ea7c214f", "score": "0.5703902", "text": "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "title": "" }, { "docid": "e41dcd69306378f20a25f414352d6e6b", "score": "0.5696585", "text": "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 }", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "b2dc8d50c7715951df467e962657a927", "score": "0.56780374", "text": "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "title": "" }, { "docid": "88290b89858a6178671f929ae0a7ccba", "score": "0.5677111", "text": "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 }", "title": "" }, { "docid": "2a4e3a8a8005ff16e99e418fc0fb7070", "score": "0.5657287", "text": "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 }", "title": "" }, { "docid": "8b94ff007c35fa2c7485cebe32b8de85", "score": "0.5648262", "text": "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 }", "title": "" }, { "docid": "2752e2223b3497665cc8082d9af5a967", "score": "0.5648085", "text": "public function delete($path, $data = null);", "title": "" }, { "docid": "8cf7657c92ed341a5a4e1ac7b314cf43", "score": "0.5648012", "text": "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 }", "title": "" }, { "docid": "6d5e88f00765b5e87a96f6b729e85e80", "score": "0.5640759", "text": "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 }", "title": "" }, { "docid": "8d2b25e8c52af6b6f9ca5eaf78a8f1f3", "score": "0.5637738", "text": "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "title": "" }, { "docid": "f51aa1f231aecb530fa194d38c843872", "score": "0.5629985", "text": "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 }", "title": "" }, { "docid": "55778fabf13f94f1768b4b22168b7424", "score": "0.5619264", "text": "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 }", "title": "" }, { "docid": "9ab5356a10775bffcb2687c49ca9608f", "score": "0.56167465", "text": "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "title": "" }, { "docid": "899b20990ab10c8aa392aa33a563602b", "score": "0.5606877", "text": "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 }", "title": "" }, { "docid": "29d3e4879d0ed5074f12cb963276b7cc", "score": "0.56021434", "text": "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "title": "" }, { "docid": "4a4701a0636ba48a45c66b76683ed3b3", "score": "0.5601949", "text": "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 }", "title": "" }, { "docid": "342b5fc16c6f42ac6826e9c554c81f4d", "score": "0.55992156", "text": "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 }", "title": "" }, { "docid": "97e50e61326801fa4efc3704e9dd77c1", "score": "0.5598557", "text": "public function revoke($resource, $permission = null);", "title": "" }, { "docid": "735f27199050122f4622faba767b3c80", "score": "0.55897516", "text": "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 }", "title": "" }, { "docid": "0bf714a7cb850337696ea9631fca5494", "score": "0.5581397", "text": "function delete($path);", "title": "" }, { "docid": "975326d3c6d5786788886f6742b11b44", "score": "0.5566926", "text": "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "title": "" }, { "docid": "ea73af051ca124bba926c5047e1f799b", "score": "0.5566796", "text": "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "title": "" }, { "docid": "a85f6f9231c5a5b648efc0e34b009554", "score": "0.55642897", "text": "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 }", "title": "" }, { "docid": "9ef8b8850e1424f439f75a07b411de21", "score": "0.55641", "text": "public function remove($filePath){\n return Storage::delete($filePath);\n }", "title": "" }, { "docid": "a108cd06e3f66bf982b8aa3cd146a4e9", "score": "0.5556583", "text": "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 }", "title": "" }, { "docid": "7fbd1a887ad4dca00687bb4abce1ae49", "score": "0.5556536", "text": "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "title": "" }, { "docid": "fa18511086fe5d1183bd074bfc10c6a2", "score": "0.5550097", "text": "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "title": "" }, { "docid": "69bff5e9e4c411daf3e7807a7dd11559", "score": "0.5543172", "text": "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 }", "title": "" }, { "docid": "94cb51fff63ea161e1d8f04215cfe7bf", "score": "0.55422723", "text": "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 }", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "0005f2e6964d036d888b5343fa80a1b1", "score": "0.55371785", "text": "public function deleted(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "986e2f38969cc302a2f6f8374b767ca1", "score": "0.55365825", "text": "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 }", "title": "" }, { "docid": "56658901e8b708769aa07c96dfbe3f61", "score": "0.55300397", "text": "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "title": "" }, { "docid": "2d63e538f10f999d0646bf28c44a70bf", "score": "0.552969", "text": "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 }", "title": "" }, { "docid": "b36cf6614522a902b216519e3592c3ba", "score": "0.55275744", "text": "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 }", "title": "" }, { "docid": "49dd28666d254d67648df959a9c54f52", "score": "0.55272335", "text": "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "16f630321e1871473166276f54219ee3", "score": "0.5525997", "text": "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}", "title": "" }, { "docid": "f79bb84fccbc8510950d481223fa2893", "score": "0.5525624", "text": "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 }", "title": "" }, { "docid": "dc750acc8639c8e37ae9a3994fa36c91", "score": "0.5523911", "text": "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}", "title": "" }, { "docid": "a298a1d973f91be0033ae123818041d0", "score": "0.5521122", "text": "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "title": "" }, { "docid": "909ecc5c540b861c88233aaecf4bde3b", "score": "0.5517412", "text": "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 }", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "c53ae92d571ec9e73fff24c4a96293cd", "score": "0.0", "text": "public function store(Request $request)\n {\n\n $json = json_encode($request->input('tipo'), true);\n $actividad = new actividad($request-> all());\n $actividad->tipo=$json;\n $actividad->save();\n \\Alert::success('', 'El actividad ha sido registrado con exito !')->persistent('Close');\n return redirect()->route('actividad.index');\n }", "title": "" } ]
[ { "docid": "7e42fedef6bb33a605a9a912390eb1f7", "score": "0.72865677", "text": "public function store($data, Resource $resource);", "title": "" }, { "docid": "151a5a15a7c013546a09c2e74ab5ea61", "score": "0.7145327", "text": "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 }", "title": "" }, { "docid": "5123f91023f684f97559dacd499fac58", "score": "0.71325725", "text": "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 }", "title": "" }, { "docid": "a7fa3d3c4d35681d03532a282b2ef7d8", "score": "0.6640912", "text": "public function createStorage();", "title": "" }, { "docid": "f1bd5867e87bbf56aefbfc6de8693786", "score": "0.66209733", "text": "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 }", "title": "" }, { "docid": "0c03c39e441c2fe392d76d6370ae3ce2", "score": "0.65685713", "text": "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 }", "title": "" }, { "docid": "28d08bba4784cf6d55e31bc6ddef8362", "score": "0.652643", "text": "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 }", "title": "" }, { "docid": "0f8c1fe3e3b0c6572457ef33c35c6488", "score": "0.65095705", "text": "function storeAndNew() {\n $this->store();\n }", "title": "" }, { "docid": "5c131d35165031041eaca6bb37ecf0c2", "score": "0.64490104", "text": "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 }", "title": "" }, { "docid": "55b375ea7c339e8f0e9c38919b53b1db", "score": "0.637569", "text": "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "5088b0baaac4342bc47aa7ee8b774852", "score": "0.63736665", "text": "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" } ]
1f6cf55de3cd289c1fefaec604b7a398
Function to parse the content of plugin 10913
[ { "docid": "72df2984942fb04c002efca1010369a5", "score": "0.0", "text": "function n10913(&$parser)\n{\n if (strlen($parser->tgt->get_Disabled_Accts()) > 0) {\n $parser->tgt->set_Disabled_Accts($parser->tgt->get_Disabled_Accts() . PHP_EOL . $parser->plugin->result->plugin_output);\n }\n else {\n $parser->tgt->set_Disabled_Accts($parser->plugin->result->plugin_output);\n }\n}", "title": "" } ]
[ { "docid": "355b7e6b3fe84b0b3c5f3910d8646a97", "score": "0.6838467", "text": "function n19763(&$parser)\n{\n $sw_arr = explode(\"\\n\", $parser->plugin->result->plugin_output);\n\n foreach ($sw_arr as $key => $sw) {\n\n }\n}", "title": "" }, { "docid": "399dbe8b180d7a129960f7a5ed63a6a5", "score": "0.64592373", "text": "function htkt_parse() {\n\tglobal $source;\n\t$infoarr = array();\n\t$raw = file_get_contents($source);\n\techo \"<td>{$raw}</td>\";\n/*\n\t$startpos, $endpos;\n\n\t$startpos = strpos($raw, ':') + 1;\n\t$endpos = str($raw, '\"');\n\techo \"start: {$startpos}\\n\";\n\techo \"end: {$endpos}\";\n\t$str = substr($raw, $startpos, $endpos);\n\tarray_push($infoarr, $str);\n\n\tforeach($infoarr as &$output) {\n \t\techo \"<br>{$output}</br>\";\n \t}\n \t*/\n}", "title": "" }, { "docid": "de236edf668446b67c68f4c112d70341", "score": "0.6421211", "text": "function n19506(&$parser)\n{\n $parser->scan->set_Notes($parser->plugin->result->plugin_output);\n}", "title": "" }, { "docid": "176c4555a560799549f0884625f48d56", "score": "0.62289214", "text": "public function parse();", "title": "" }, { "docid": "176c4555a560799549f0884625f48d56", "score": "0.62289214", "text": "public function parse();", "title": "" }, { "docid": "176c4555a560799549f0884625f48d56", "score": "0.62289214", "text": "public function parse();", "title": "" }, { "docid": "176c4555a560799549f0884625f48d56", "score": "0.62289214", "text": "public function parse();", "title": "" }, { "docid": "23f7357104f31398895fb2ac08192365", "score": "0.6101916", "text": "public function getParsed();", "title": "" }, { "docid": "fc54cbf5449c074a2ad1619e283c2a77", "score": "0.59890634", "text": "public function start_plugin( $data ) {\n\t\t$data \t= str_replace(\"</\", \":TA2:\", $data);\n\t\t$data \t= str_replace(\"<\", \":TA1:\", $data);\n\t\t$data \t= str_replace(\">\", \":TE:\", $data);\n\n\t\tpreg_match_all('!\"[a-z-A-Z-0-9- -.-/]*\"!', $data, $mat2);\n\t\tforeach ($mat2[0] as $fin2) {\n\t\t\t$data \t= str_replace($fin2, ':of:'.$fin2.':eof:', $data);\n\t\t}\n\t\t$data \t= str_replace(':of::of:', ':of:', $data);\n\t\t$data \t= str_replace(':eof::eof:', ':eof:', $data);\n\n\t\tpreg_match_all('! [a-z-A-Z-0-9- -.-/]*=!', $data, $mat1);\n\t\tforeach ($mat1[0] as $fin1) {\n\t\t\t$data \t= str_replace($fin1, ':lf:'.$fin1.':elf:', $data);\n\t\t}\n\t\t$data \t= str_replace(':lf::lf:', ':lf:', $data);\n\t\t$data \t= str_replace(':elf::elf:', ':elf:', $data);\n\n\n\t\tpreg_match_all('!:TA1:[a-z-A-Z-0-9- -.-/]*:lf:!', $data, $mat3);\n\t\tforeach ($mat3[0] as $fin3) {\n\t\t\t$re \t= str_replace(\":lf:\", \"\", $fin3);\n\t\t\t$data \t= str_replace($fin3, ':bf:'.$re.':ebf::lf:', $data);\n\t\t}\n\n\t\tpreg_match_all('!:TA2:[a-z-A-Z-0-9- -.-/]*:TE:!', $data, $mat4);\n\t\tforeach ($mat4[0] as $fin4) {\n\t\t\t$re2 \t= str_replace(\":TA2:\", \":TA1:/\", $fin4);\n\t\t\t$re2 \t= str_replace(\":TE:\", \"\", $re2);\n\t\t\t$data \t= str_replace($fin4, ':bf:'.$re2.':ebf::TE:', $data);\n\t\t}\n\n\t\t$data = str_replace(\":elf:\", '</span>', $data);\n\t\t$data = str_replace(\":eof:\", '</span>', $data);\n\t\t$data = str_replace(\":ebf:\", '</span>', $data);\n\n\t\t$data = str_replace(\":lf:\", '<span class=\"cl\">', $data);\n\t\t$data = str_replace(\":of:\", '<span class=\"co\">', $data);\n\t\t$data = str_replace(\":bf:\", '<span class=\"cb\">', $data);\n\n\t\t$data = str_replace(\":TE:\", '<span class=\"cb\">></span>', $data);\n\t\t$data = str_replace(\":TA1:\", '<span class=\"cb\"><</span>', $data);\n\n\n\t\t$data \t= str_replace(\"\\n\", \"<br>\", $data);\n\t\t$hasil \t= str_replace(\"\t\", \"&nbsp;\", $data);\n\n\t\treturn $hasil;\n\t}", "title": "" }, { "docid": "1fa8e7822508010543cb18a365a76cf7", "score": "0.5950918", "text": "function p_get_instructions($text){\n\n $modes = p_get_parsermodes();\n\n // Create the parser\n $Parser = new Doku_Parser();\n\n // Add the Handler\n $Parser->Handler = new Doku_Handler();\n\n //add modes to parser\n foreach($modes as $mode){\n $Parser->addMode($mode['mode'],$mode['obj']);\n }\n\n // Do the parsing\n trigger_event('PARSER_WIKITEXT_PREPROCESS', $text);\n $p = $Parser->parse($text);\n // dbg($p);\n return $p;\n}", "title": "" }, { "docid": "050945033d0b50241b32e89b4ed02096", "score": "0.5926444", "text": "function parse_plugin_php($plugName)\n\t{\n\t\t$mes = e107::getMessage();\n\t\t$tp = e107::getParser();\n\n\t\tif (include(e_PLUGIN.$plugName.'/plugin.php'))\n\t\t{\n\t\t\t//$mes->add(\"Loading \".e_PLUGIN.$plugName.'/plugin.php', E_MESSAGE_DEBUG);\n\t\t\t}\n\n\t\t$ret = array();\n\n\t\t//\t\t$ret['installRequired'] = ($eplug_conffile || is_array($eplug_table_names) || is_array($eplug_prefs) || is_array($eplug_sc) || is_array($eplug_bb) || $eplug_module || $eplug_userclass || $eplug_status || $eplug_latest);\n\n\t\t$ret['@attributes']['name'] = varset($eplug_name);\n\t\t$ret['@attributes']['lang'] = varset($eplug_name);\n\t\t$ret['@attributes']['version'] = varset($eplug_version);\n\t\t$ret['@attributes']['date'] = varset($eplug_date);\n\t\t$ret['@attributes']['compatibility'] = varset($eplug_compatible);\n\t\t$ret['@attributes']['installRequired'] = ($eplug_conffile || is_array($eplug_table_names) || is_array($eplug_prefs) || $eplug_module || $eplug_userclass || $eplug_status || $eplug_latest) ? 'true' : '';\n\t\t$ret['@attributes']['xhtmlcompliant'] = vartrue($eplug_compliant) ? 'true' : '';\n\t\t$ret['folder'] = (varset($eplug_folder)) ? $eplug_folder : $plugName;\n\n\t\t$ret['author']['@attributes']['name'] = varset($eplug_author);\n\t\t$ret['author']['@attributes']['url'] = varset($eplug_url);\n\t\t$ret['author']['@attributes']['email'] = varset($eplug_email);\n\t\t$ret['description']['@value'] = varset($eplug_description);\n\t\t$ret['description']['@attributes']['lang'] = varset($eplug_description);\n\n\t\t$ret['category'] = varset($eplug_category) ? $this->manage_category($eplug_category) : \"misc\";\n\t\t$ret['readme'] = varset($eplug_readme);\n\n\t\t$ret['menuName'] = varset($eplug_menu_name);\n\n\t\tif (varset($eplug_prefs))\n\t\t{\n\t\t\t$c = 0;\n\t\t\tforeach ($eplug_prefs as $name => $value)\n\t\t\t{\n\t\t\t\t$ret['mainPrefs']['pref'][$c]['@attributes']['name'] = $name;\n\t\t\t\t$ret['mainPrefs']['pref'][$c]['@value'] = $value;\n\t\t\t\t$c++;\n\t\t\t}\n\t\t}\n\n\t\t// For BC.\n\t\t$ret['administration']['icon'] = varset(str_replace($plugName.\"/\",\"\",$eplug_icon));\n\t\t$ret['administration']['caption'] = varset($eplug_caption);\n\t\t$ret['administration']['iconSmall'] = varset(str_replace($plugName.\"/\",\"\",$eplug_icon_small));\n\t\t$ret['administration']['configFile'] = varset($eplug_conffile);\n\n\t\tif (varset($eplug_conffile))\n\t\t{\n\t\t\t$ret['adminLinks']['link'][0]['@attributes']['url'] = varset($eplug_conffile);\n\t\t\t$ret['adminLinks']['link'][0]['@attributes']['description'] = LAN_CONFIGURE;\n\t\t\t$ret['adminLinks']['link'][0]['@attributes']['icon'] = varset(str_replace($plugName.\"/\",\"\",$eplug_icon));\n\t\t\t$ret['adminLinks']['link'][0]['@attributes']['iconSmall'] = varset(str_replace($plugName.\"/\",\"\",$eplug_icon_small));\n\t\t\t$ret['adminLinks']['link'][0]['@attributes']['primary'] = 'true';\n\t\t}\n\t\tif (vartrue($eplug_link) && varset($eplug_link_name) && varset($eplug_link_url))\n\t\t{\n\t\t\t$ret['siteLinks']['link'][0]['@attributes']['url'] = $tp->createConstants($eplug_link_url, 1);\n\t\t\t$ret['siteLinks']['link'][0]['@attributes']['perm'] = varset($eplug_link_perms);\n\t\t\t$ret['siteLinks']['link'][0]['@value'] = varset($eplug_link_name);\n\t\t}\n\n\t\tif (vartrue($eplug_userclass) && vartrue($eplug_userclass_description))\n\t\t{\n\t\t\t$ret['userClasses']['class'][0]['@attributes']['name'] = $eplug_userclass;\n\t\t\t$ret['userClasses']['class'][0]['@attributes']['description'] = $eplug_userclass_description;\n\t\t}\n\n\t\t// Set this key so we know the vars came from a plugin.php file\n\t\t// $ret['plugin_php'] = true; // Should no longer be needed. \n\t\t$this->plug_vars = $ret;\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a6de99a3d395c88af53a4979e61832bf", "score": "0.58751565", "text": "function parse()\r\n\t\t{\r\n\t\t\t$info = $this->read();\r\n\t\t\t\r\n\t\t\tswitch($this->type)\r\n\t\t\t{\r\n\t\t\t\tcase \"trace\":\r\n\t\t\t\t\t\t\t\t$parse = $this->parseTrace($info);\t\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"result\":\t\r\n\t\t\t\t\t\t\t\t$parse = $this->parseResult($info);\t\r\n\t\t\t\t\t\t\t\tbreak;\t\t\t\t\r\n\t\t\t}\r\n\t\t\treturn $parse;\r\n\t\t}", "title": "" }, { "docid": "d8f46e18c9d4c665f959b6b796f93329", "score": "0.58669335", "text": "function sp_parse_content($text) {\r\n\r\n\t$text = str_replace(\"\\r\", \"\\n\", $text);\r\n\tif (($pos = strpos($text, \"\\n\")) === false) return false; //make sure there are at least two lines, the first is title, the rest is content\r\n\r\n\t$title = trim(substr($text, 0, $pos)); //regard the first line as title of the post\r\n\t$content = trim(substr($text, $pos+1)); //the rest is the content of the post\r\n\r\n\tif (empty($title) || empty($content)) {\r\n\t\treturn false;\r\n\t}\r\n\r\n\t$sp_option = get_option('sp_option');\r\n\r\n\t//get other fields from the option array\r\n\t$author = $sp_option['author'];\r\n\t$status = $sp_option['status'];\r\n\r\n\treturn array(\r\n\t'post_title' => $title,\r\n\t'post_content' => addslashes(wpautop($content)),\r\n\t'post_status' => $status,\r\n\t'post_author' => $author\r\n\t);\r\n\r\n}", "title": "" }, { "docid": "d8a96c0979c3dbab2167aa311fed569e", "score": "0.5866061", "text": "public function parse() {\n\t\t// instructions (f.e. taglib-import-statements, ... )\n\t\t$patterns[self::DIRECTIVE] = '<%@[ ]+[a-zA-Z]+[ ]+.* %>';\n\t\t// open tag like <foo:bar attr1=\"value\">\n\t\t$patterns[self::TAG_OPEN] = '<[a-zA-Z0-9]+:[a-zA-Z0-9]+(([ ]+[a-zA-Z0-9]+=\"[^\"]*\")*)[ ]*>';\n\t\t// close tags like </foo:bar>\n\t\t$patterns[self::TAG_CLOSE] = '<\\/[a-zA-Z0-9]+:[a-zA-Z0-9]+>';\n\t\t// empty tags like <foo:bar />\n\t\t$patterns[self::TAG_EMPTY] = '<[a-zA-Z0-9]+:[a-zA-Z0-9]+(([ ]+[a-zA-Z0-9]+=\"[^\"]*\")*)[ ]*\\/>';\n\t\t\n\t\t// connect all expression to one string\n\t\t$pattern = '/'.implode('|', $patterns).'/sU';\n\t\t\n\t\t// storage for the matches\n\t\t$matches = array();\n\t\t\n\t\t// parse the template\n\t\tpreg_match_all($pattern, $this->source, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE);\n\t\t\n\t\t// now the matches will be stored with their type and the static-content will be added \n\t\t// storage for the parsed content\n\t\t$content = new ArrayObject();\n\t\t\n\t\t// set the offset to the start off the source\n\t\t$offsetOfLastMatch = 0;\n\t\t\n\t\t// iterate every match\n\t\tforeach($matches as $match) {\n\t\t\t// iterate every the off match\n\t\t\tforeach(array_keys($patterns) as $pattern_name) {\n\t\t\t\t$foundMatch = $match[0][0];\n\t\t\t\tif(preg_match('/'.$patterns[$pattern_name].'/sU', trim($foundMatch))) {\n\t\t\t\t\t// Because we found a match, store the static content(means: no PSP-Tags inside) between the last match and the current one\n\t\t\t\t\t$offsetOfCurrentMatch = $match[0][1];\n\t\t\t\t\tif($offsetOfLastMatch != $offsetOfCurrentMatch) {\n\t\t\t\t\t\t$content_entry = array('type' => self::STATIC_CONTENT, 'source' => substr($this->source, $offsetOfLastMatch, $offsetOfCurrentMatch - $offsetOfLastMatch));\n\t\t\t\t\t\t$content->append($content_entry);\n\t\t\t\t\t\t$offsetOfLastMatch = $offsetOfCurrentMatch;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// init storage for attributes and $tag_name\n\t\t\t\t\t$attributes = array();\n\t\t\t\t\t$tag_name = null;\n\t\t\t\t\t\n\t\t\t\t\t// preprocess elements\n\t\t\t\t\tswitch($pattern_name) {\n\t\t\t\t\t\tcase self::DIRECTIVE : {\n\t\t\t\t\t\t\t// lookup tag-name\n\t\t\t\t\t\t\t$regex = '=<%@ ([a-zA-Z]+) (.*) %>=sU';\n\t\t\t\t\t\t\tpreg_match($regex, $foundMatch, $sub_patterns);\n\t\t\t\t\t\t\t//store tag-name\n\t\t\t\t\t\t\t$tag_name = $sub_patterns[1];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// extract attributes\n\t\t\t\t\t\t\t$attribute_string = $sub_patterns[2];\n\t\t\t\t\t\t\t// extract every single attribute and its value\n\t\t\t\t\t\t\t$regex = '=([a-zA-Z]+)\\=\"(.*)\"=sU';\t\t\t\n\t\t\t\t\t\t\tpreg_match_all($regex, $attribute_string, $sub_patterns, PREG_SET_ORDER);\n\t\t\t\t\t\t\t$attributes = array();\n\t\t\t\t\t\t\t// store every single attribute and its value\n\t\t\t\t\t\t\tforeach($sub_patterns as $sub_pattern) {\n\t\t\t\t\t\t\t\tarray_push($attributes, array('name' => $sub_pattern[1], 'value' => $sub_pattern[2]));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase self::TAG_OPEN : {\n\t\t\t\t\t\t\t// lookup tag-name\n\t\t\t\t\t\t\t$regex = '=<([a-zA-Z]+:[a-zA-Z]+) (.*)>=sU';\n\t\t\t\t\t\t\tpreg_match($regex, $foundMatch, $sub_patterns);\n\t\t\t\t\t\t\t$tag_struct = explode(':', $sub_patterns[1]);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//store tag-name\n\t\t\t\t\t\t\t$tag_name = $sub_patterns[1];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// extract attributes\n\t\t\t\t\t\t\t$attribute_string = $sub_patterns[2];\n\t\t\t\t\t\t\t// extract every single attribute and its value\n\t\t\t\t\t\t\t$regex = '=([a-zA-Z]+)\\=\"(.*)\"=sU';\n\t\t\t\t\t\t\tpreg_match_all($regex, $attribute_string, $sub_patterns, PREG_SET_ORDER);\n\t\t\t\t\t\t\t$attributes = array();\n\t\t\t\t\t\t\t// store every single attribute and its value\n\t\t\t\t\t\t\tforeach($sub_patterns as $sub_pattern) {\n\t\t\t\t\t\t\t\tarray_push($attributes, array('name' => $sub_pattern[1], 'value' => $sub_pattern[2]));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase self::TAG_CLOSE : {\n\t\t\t\t\t\t\t// lookup tag-name\n\t\t\t\t\t\t\t$regex = '=</([a-zA-Z]+:[a-zA-Z]+)>=sU';\n\t\t\t\t\t\t\tpreg_match($regex, $foundMatch, $sub_patterns);\n\t\t\t\t\t\t\t$tag_name = $sub_patterns[1];\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase self::TAG_EMPTY : {\n\t\t\t\t\t\t\t// lookup tag-name\n\t\t\t\t\t\t\t$regex = '=<([a-zA-Z]+:[a-zA-Z]+) (.*)/>=sU';\n\t\t\t\t\t\t\tpreg_match($regex, $foundMatch, $sub_patterns);\n\t\t\t\t\t\t\t$tag_name = $sub_patterns[1];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// extract attributes\n\t\t\t\t\t\t\t$attribute_string = $sub_patterns[2];\n\t\t\t\t\t\t\t// extract every single attribute and its value\n\t\t\t\t\t\t\t$regex = '=([a-zA-Z]+)\\=\"(.*)\"=sU';\n\t\t\t\t\t\t\tpreg_match_all($regex, $attribute_string, $sub_patterns, PREG_SET_ORDER);\n\t\t\t\t\t\t\t$attributes = array();\n\t\t\t\t\t\t\t// store every single attribute and its value\n\t\t\t\t\t\t\tforeach($sub_patterns as $sub_pattern) {\n\t\t\t\t\t\t\t\tarray_push($attributes, array('name' => $sub_pattern[1], 'value' => $sub_pattern[2]));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tdefault : {\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\t\n\t\t\t\t\t// append the tag to the content-array\n\t\t\t\t\t$content_entry = array(\n\t\t\t\t\t\t\t\t\t\t'type' => $pattern_name, \n\t\t\t\t\t\t\t\t\t\t'source' => $foundMatch,\n\t\t\t\t\t\t\t\t\t\t'name' => $tag_name,\n\t\t\t\t\t\t\t\t\t\t'attributes' => $attributes);\n\t\t\t\t\t$content->append($content_entry);\n\t\t\t\t\t\n\t\t\t\t\t// set the new offset to the end of the match\n\t\t\t\t\t$offsetOfLastMatch = $offsetOfCurrentMatch + strlen($foundMatch);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// store the static-content between the last match and the end of the source\n\t\tif($offsetOfLastMatch < strlen($this->source)) {\n\t\t\t$content_entry = array('type' => self::STATIC_CONTENT, 'source' => substr($this->source, $offsetOfLastMatch, strlen($this->source) - $offsetOfLastMatch));\n\t\t\t$content->append($content_entry);\n\t\t}\n\t\t\n\t\treturn $content;\n\t}", "title": "" }, { "docid": "2e405409c6d20132023dde42b60c9ef4", "score": "0.5843838", "text": "abstract protected function parse();", "title": "" }, { "docid": "3c602130646e6607e4c25ac4c85811be", "score": "0.58356637", "text": "function n43069(&$parser)\n{\n\n}", "title": "" }, { "docid": "f2dc25aa4f5c486b18142a0fd0c11208", "score": "0.5827227", "text": "public function parse($content);", "title": "" }, { "docid": "f2dc25aa4f5c486b18142a0fd0c11208", "score": "0.5827227", "text": "public function parse($content);", "title": "" }, { "docid": "6755bfa0d1dc75fe58f472063ea304eb", "score": "0.58141565", "text": "public function parse(){\n\t\treturn $this->parseTopLevel();\n\t}", "title": "" }, { "docid": "e91265f3ef411fa18924b28cc6a9032a", "score": "0.5772203", "text": "function n35716(&$parser)\n{\n\n}", "title": "" }, { "docid": "d07559acfc6cb1abef72dac4f0715907", "score": "0.5722328", "text": "function n48942(&$parser)\n{\n $match = [];\n $ver = '';\n $arch = '';\n\n if (preg_match(\"/Operating System Version \\= ([\\d\\.]+)/\", $parser->plugin->result->plugin_output, $match)) {\n $ver = $match[1];\n }\n\n if (preg_match(\"/Architecture \\= ([x\\d]+)/\", $parser->plugin->result->plugin_output, $match)) {\n $arch = $match[1];\n }\n\n // @todo Add fidelity to CPE if available\n}", "title": "" }, { "docid": "7ccea515038ce6b9db15014b45870ab1", "score": "0.5707935", "text": "function n38153(&$parser)\n{\n $parser->tgt->set_Missing_Patches($parser->tgt->get_Missing_Patches() . PHP_EOL . $parser->plugin->result->plugin_output);\n\n return;\n /*\n * Main section removed because it takes entirely too long. Need to revise operation after release\n */\n $match = [];\n $lines = explode(PHP_EOL, $parser->plugin->result->plugin_output);\n for ($x = 2; $x < count($lines) - 1; $x++) {\n if (preg_match(\"/ \\- ([a-zA-Z0-9\\-]+)/i\", $lines[$x], $match)) {\n $iavm = $parser->db->get_IAVM_From_External($match[1]);\n if (!empty($iavm)) {\n // add finding\n }\n else {\n $cve = $parser->db->get_CVE_From_External($match[1]);\n if (!empty($cve)) {\n\n }\n }\n }\n }\n}", "title": "" }, { "docid": "e6c62c07018ee1f0b688216801962dea", "score": "0.5667606", "text": "function mygengo_parse_content($content) {\n\t$content = str_replace('[[[ ','[[[', $content); //to fix machine translation error\n\t$title_meta = '[[[post_title__]]]';\n\t$content_meta = '[[[post_content__]]]';\n\t$excerpt_meta = '[[[post_excerpt__]]]';\n\n\t$use_mb = false;\n\n\t$title_pos = ($use_mb)?mb_stripos($content, $title_meta,'UTF-8'):stripos($content, $title_meta);\n\tif ($title_pos === FALSE) {\n\t\treturn array('post_title' => '', 'post_content' => str_replace(array('[[[',']]]'), array('<','>'), $content), 'post_excerpt' => '');\n\t}\n\t$title_pos += strlen($title_meta);\n\t$content_pos = ($use_mb)?mb_stripos($content, $content_meta, 'UTF-8'):stripos($content, $content_meta);\n\t$ptitle = ($use_mb)?mb_substr($content, $title_pos, $content_pos - $title_pos, 'UTF-8'):substr($content, $title_pos, $content_pos - $title_pos);\n\n\t$content_pos += strlen($content_meta);\n\t$excerpt_pos = ($use_mb)?mb_stripos($content, $excerpt_meta, 'UTF-8'):stripos($content, $excerpt_meta);\n\t$pcontent = ($use_mb)?mb_substr($content, $content_pos, $excerpt_pos - $content_pos, 'UTF-8'):substr($content, $content_pos, $excerpt_pos - $content_pos);\n\n\t$excerpt_pos += strlen($excerpt_meta);\n\t$pexcerpt = ($use_mb)?mb_substr($content, $excerpt_pos, 'UTF-8'):substr($content, $excerpt_pos);\n\n\treturn array('post_title' => str_replace(array('[[[',']]]'), array('<','>'), $ptitle), 'post_content' => str_replace(array('[[[',']]]'), array('<','>'), $pcontent), 'post_excerpt' => str_replace(array('[[[',']]]'), array('<','>'), $pexcerpt));\n}", "title": "" }, { "docid": "574036d564f8f5dbb2766060e8dc6558", "score": "0.5645626", "text": "public function parse() {\n\t\t$this->set_title();\n\t\t$this->set_body();\n\n\t\treturn $this->get_parsed_content();\n\t}", "title": "" }, { "docid": "f6a71fd2ef5a66df5a41018f94d6399e", "score": "0.5630371", "text": "public function getParser();", "title": "" }, { "docid": "f6a71fd2ef5a66df5a41018f94d6399e", "score": "0.5630371", "text": "public function getParser();", "title": "" }, { "docid": "ddd446539015e152745f082dc7942d32", "score": "0.56254864", "text": "public function getParsedContent()\n {\n return '<div class=\"fr-view\">'. $this->content . '</div>';\n }", "title": "" }, { "docid": "ca29018b644415f90d0378d290e415ae", "score": "0.56030095", "text": "function n52459(&$parser)\n{\n\n}", "title": "" }, { "docid": "162002ba7409f9bcd106efafe69a0223", "score": "0.5595237", "text": "function parse_plugin_xml($plugName, $where = null)\n\t{\n\n\t\t$tp = e107::getParser();\n\t\t//\tloadLanFiles($plugName, 'admin');\t\t\t\t\t// Look for LAN files on default paths\n\t\t$xml = e107::getXml();\n\t\t$mes = e107::getMessage();\n\t\t\n\t\t//\t$xml->setOptArrayTags('extendedField,userclass,menuLink,commentID'); // always arrays for these tags.\n\t\t//\t$xml->setOptStringTags('install,uninstall,upgrade');\n\t\tif(null === $where) $where = 'plugin.xml';\n\n\t\t$this->plug_vars = $xml->loadXMLfile(e_PLUGIN.$plugName.'/'.$where, 'advanced');\n\t\t\n\t\tif ($this->plug_vars === FALSE)\n\t\t{\n\t\t\t$mes->add(\"Error reading {$plugName}/plugin.xml\", E_MESSAGE_ERROR);\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t$this->plug_vars['category'] = (isset($this->plug_vars['category'])) ? $this->manage_category($this->plug_vars['category']) : \"misc\";\n\t\t$this->plug_vars['folder'] = $plugName; // remove the need for <folder> tag in plugin.xml.\n\n\t\tif(!is_array($this->plug_vars['description']))\n\t\t{\n\t\t\t$diz = $this->plug_vars['description'];\n\t\t\tunset($this->plug_vars['description']);\n\t\t\t\n\t\t\t$this->plug_vars['description']['@value'] = $diz;\t\t\n\t\t}\n\t\t\n\t\t // Very useful debug code.to compare plugin.php vs plugin.xml\n\t\t/*\n\t\t $testplug = 'forum';\n\t\t if($plugName == $testplug)\n\t\t {\n\t\t $plug_vars1 = $this->plug_vars;\n\t\t $this->parse_plugin_php($testplug);\n\t\t $plug_vars2 = $this->plug_vars;\n\t\t ksort($plug_vars2);\n\t\t ksort($plug_vars1);\n\t\t echo \"<table>\n\t\t <tr><td><h1>PHP</h1></td><td><h1>XML</h1></td></tr>\n\t\t <tr><td style='border-right:1px solid black'>\";\n\t\t print_a($plug_vars2);\n\t\t echo \"</td><td>\";\n\t\t print_a($plug_vars1);\n\t\t echo \"</table>\";\n\t\t }\n\t\t*/\n\t\t\n\n\t\t// TODO search for $this->plug_vars['adminLinks']['link'][0]['@attributes']['primary']==true.\n\t\t$this->plug_vars['administration']['icon'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['icon']);\n\t\t$this->plug_vars['administration']['caption'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['description']);\n\t\t$this->plug_vars['administration']['iconSmall'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['iconSmall']);\n\t\t$this->plug_vars['administration']['configFile'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['url']);\n\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "b7e66cc2b63e5540f743b45caed7e26c", "score": "0.55866176", "text": "private function parse()\n\t{\n\t\tforeach($this->variables as $name => $value)\n\t\t{\n\t\t\t$this->page = preg_replace('`{{'.$name.'}}`',$value,$this->page);\n\t\t}\n\t\tforeach($this->loops as $name => $value)\n\t\t{\n\t\t\t$nb = count($value);\n\t\t\t$block = '';\n\t\t\tfor ($i = 0; $i < $nb; $i++) {\n\t\t\t\t$tab_page = explode(\"\\n\", $this->page);\n\t\t\t\tfor ($k = 0, $kmax = count($tab_page); $k < $kmax; $k++) $tab_page[$k] = trim($tab_page[$k]);\n\t\t\t\t$startTag = (array_search('{{BEGIN.'.$name.'}}', $tab_page)) + 1;\n\t\t\t\t$endTag = (array_search('{{END.'.$name.'}}', $tab_page)) - 1;\n\t\t\t\t$lengthTag = ($endTag - $startTag) + 1;\n\t\t\t\t$blockTag = array_slice($tab_page, $startTag, $lengthTag);\n\t\t\t\t$blockTag = implode(\"\\n\", $blockTag);\n\t\t\t\tforeach($value[$i] as $constant => $data) {\n\t\t\t\t\t$data = (file_exists($data)) ? $this->includeFile($data) : $data;;\n\t\t\t\t\t$blockTag = preg_replace('`{{'.$constant.'.'.$name.'}}`', $data, $blockTag);\n\t\t\t\t}\n\t\t\t\t$block = ($block == '') ? $blockTag : $block.\"\\n\".$blockTag;\n\t\t\t}\n\t\t\t$block = explode (\"\\n\", $block);\n\t\t\t$firstPart = array_slice($tab_page, 0, $startTag - 1);\n\t\t\t$secondPart = array_slice($tab_page, $startTag + $lengthTag + 1);\n\t\t\t$this->page = array_merge($firstPart, $block, $secondPart);\n\t\t\tfor ($i = 0, $imax = count($this->page); $i < $imax; $i++) $this->page[$i] = html_entity_decode($this->page[$i]);\n\t\t\t$this->page = implode(\"\\n\", $this->page);\n\t\t}\n\t}", "title": "" }, { "docid": "455adabb148697c8c65477cb8b0f6bcd", "score": "0.5569762", "text": "function parse(){\n\t\t$old = $this->str;\n\t\tif(!$this->html) {\n\t\t\t$this->str = hcms_htmlsecure($this->str);\n\t\t}\n\t\tif(!empty($this->bbcode_level)){\n\t\t\t$this->str = preg_replace(array_keys($this->regexp[0]), array_values($this->regexp[0]), ' ' . $this->str . ' ');\n\t\t\tif($this->bbcode_level > 0){\n\t\t\t\t$this->parseCodeTag();\n\t\t\t\t$this->parseQuoteTag();\n\t\t\t\t$this->str = preg_replace_callback(\"#\\[spoiler(=(\\\"|&quot;|)(.*?)(\\\"|&quot;|)|)\\](.*?)\\[/spoiler\\]#is\", 'rcms_spoiler_tag', $this->str);\n\t\t\t\t$this->str = preg_replace(array_keys($this->regexp[1]), array_values($this->regexp[1]), ' ' . $this->str . ' ');\n\t\t\t}\n\t\t\tif($this->bbcode_level > 1){\n\t\t\t\t$this->str = preg_replace(array_keys($this->regexp[2]), array_values($this->regexp[2]), ' ' . $this->str . ' ');\n\t\t\t}\n\t\t\tif($this->bbcode_level > 2){\n\t\t\t\t$this->parseMultilangTag();\n\t\t\t\t$this->str = preg_replace_callback(\"#\\[html\\](.*?)\\[/html\\]#is\", 'rcms_html_tag', $this->str);\n\t\t\t}\n\t\t\tif($this->nl2br){\n\t\t\t\t$this->str = nl2br($this->str);\n\t\t\t}\n\t\t\t$this->parseUrls();\n\t\t}\n\t\tif(!$this->html) {\n\t\t\t$this->parseUrls();\n\t\t}\n\t\t$this->str = str_replace(array_keys($this->sr_temp), array_values($this->sr_temp), $this->str);\n\t\t$this->result = $this->str;\n\t\t$rhis->str = $old;\n\t}", "title": "" }, { "docid": "770aac3b5784fe9c19332117d9ae9259", "score": "0.55556864", "text": "public function parse()\n {\n // Build chunk according to separator enabled or disabled\n $this->chunkBuilder();\n\n // Now start RTF to HTML Conversion\n foreach ($this->chunks as $chunk) {\n $this->resultStack[] = $this->getHtmlCode($chunk);\n }\n }", "title": "" }, { "docid": "229ee88e9e0e11d6675dc671861f3273", "score": "0.55526733", "text": "function letsblog_parse_shortcode_content( $content ) {\n\n /* Parse nested shortcodes and add formatting. */\n $content = trim( do_shortcode( shortcode_unautop( $content ) ) );\n\n /* Remove '' from the start of the string. */\n if ( substr( $content, 0, 4 ) == '' )\n $content = substr( $content, 4 );\n\n /* Remove '' from the end of the string. */\n if ( substr( $content, -3, 3 ) == '' )\n $content = substr( $content, 0, -3 );\n\n /* Remove any instances of ''. */\n $content = str_replace( array( '<p></p>' ), '', $content );\n $content = str_replace( array( '<p> </p>' ), '', $content );\n\n return $content;\n}", "title": "" }, { "docid": "fbdd5ac0a7fe6f9e95fe46d93f12e155", "score": "0.554817", "text": "function n29217(&$parser)\n{\n\n}", "title": "" }, { "docid": "447fa211248d138e440e5de654c52405", "score": "0.5516861", "text": "public function parse()\n\t{\n\t\t/** @var \\PageModel $objPage */\n\t\tglobal $objPage;\n\n\t\t// Adjust the output format\n\t\tif ($objPage->outputFormat != '')\n\t\t{\n\t\t\t$this->strFormat = $objPage->outputFormat;\n\t\t\t$this->strTagEnding = ($this->strFormat == 'xhtml') ? ' />' : '>';\n\t\t}\n\n\t\t$strBuffer = parent::parse();\n\n\t\t// HOOK: add custom parse filters\n\t\tif (isset($GLOBALS['TL_HOOKS']['parseFrontendTemplate']) && is_array($GLOBALS['TL_HOOKS']['parseFrontendTemplate']))\n\t\t{\n\t\t\tforeach ($GLOBALS['TL_HOOKS']['parseFrontendTemplate'] as $callback)\n\t\t\t{\n\t\t\t\t$this->import($callback[0]);\n\t\t\t\t$strBuffer = $this->{$callback[0]}->{$callback[1]}($strBuffer, $this->strTemplate);\n\t\t\t}\n\t\t}\n\n\t\treturn $strBuffer;\n\t}", "title": "" }, { "docid": "f75a8f8d33e9c4a4707c91256f082051", "score": "0.551097", "text": "function n12634(&$parser)\n{\n $os = $parser->db->get_Software($parser->tgt->get_OS_ID());\n if (!empty($os)) {\n $os = $os[0];\n }\n else {\n return;\n }\n\n // parse results and put in proper place\n //if($os->get_SP() != $parser->plugin->result->plugin_output);\n}", "title": "" }, { "docid": "9442a13e7b8797c09d0e5b0218064925", "score": "0.550979", "text": "public function parse()\n\t{\n\t\tif(!$this->ignoreParse)\n\t\t\t$this->typicalPage() OR $this->metaData();\n\n\t\treturn $this->data;\n\n\t}", "title": "" }, { "docid": "79f7f75d5eb65190b5d56c4c35024d8e", "score": "0.5495179", "text": "function readMedlineContent($string, $pluginObject) {\n // No data return empty array\n if (empty($string))\n return array(\"pmid\" => \"0\");\n $content = $string;\n $authors = array();\n $authorsVancouver = array();\n $val = \"\";\n $key = \"\";\n $array = array();\n $id = 0;\n foreach(preg_split(\"/((\\r?\\n)|(\\r\\n?))/\", $content) as $line) {\n //echo print_r($line).PHP_EOL;\n if ($this->startsWith($line,\" \")) {\n // Append multiline value\n $array[$key] .= ' '.trim($line);\n continue;\n } else if (strlen($line) > 4) {\n // Get new key\n $key = trim(substr($line, 0, 4));\n if ($id<9)\n $key .= '0';\n $key .= $id;\n $val = trim(substr($line, 6));\n $id++;\n $array[$key] = $val;\n }\n }\n\n // Now process datas\n // TODO: Catch book references. Eg: 28876803\n $ret = array();\n $mesh = array();\n $keywords = array();\n foreach($array as $key => $value) {\n $k = preg_replace('/[0-9]+/', '', $key);\n\n switch ($k) { // See https://www.nlm.nih.gov/bsd/mms/medlineelements.html\n//AD - Médecin gériatre, psychogériatre, Court séjour gériatrique, Unité COVID, Centre \n// Hospitalier de Calais, 1601 Boulevard des Justes, 62100, Calais, France Hospitalier de Calais, 1601 Boulevard des Justes, 62100, Calais, France\n\n case \"PMID\": \n $ret[\"pmid\"] = $value; //PMID - 15924077\n $ret[\"url\"] = sprintf($this->pubmedURL, urlencode($value));\n break;\n case \"PMC\":\n $ret[\"pmcid\"] = str_replace(\"PMC\", \"\", $value);\n $ret[\"pmcurl\"] = sprintf($this->pmcURL, urlencode($ret[\"pmcid\"]));\n break;\n case \"DCOM\": break; //DCOM- 20050929\n case \"LR\": break; //LR - 20191109\n case \"IS\": break; //IS - 0035-3787 (Print) //IS - 0035-3787 (Linking)\n case \"VI\": $ret[\"vol\"] = $value; break; //VI - 161\n case \"IP\": $ret[\"issue\"] = $value; break; //IP - 4\n case \"DP\": \n $ret[\"year\"] = substr($value,0,4);\n break; //DP - 2005 Apr\n case \"TI\": \n // TODO: Keep case of title correctly -> How?\n $ret[\"title\"] = $value; \n break; // TI title english\n case \"PG\":\n $ret[\"pages\"] = trim($value);\n // Error with PMID 5042912 (remove last ending '-' char)\n $ret[\"pages\"] = rtrim($ret[\"pages\"], \"-\");\n break;\n case \"AB\": \n $ret[\"abstract\"] = $value; \n $ret[\"abstract_wiki\"] = $this->_normalizeAbstract($value);\n $ret[\"abstract_html\"] = $this->_normalizeAbstract($value, \"html\");\n break;\n/*\n case \"AU\": \n // Keep case of names correctly\n // NAME SN -> Name SN (first letter uppercase only)\n $n = explode(\" \", trim($value));\n if (count($n) >= 2) {\n // $n[0] = ucfirst(strtolower($n[0]));\n // Correctly manages Name1-Name2\n $n[0] = ucwords(strtolower($n[0]), \"-\");\n $value = $n[0].\" \".$n[1];\n }\n //array_push($authors, $value);\n break;\n*/\n case \"FAU\": \n $sn = \"\";\n $surname = \"\";\n if (strpos($value, ',') !== false) {\n $n = explode(\",\", trim($value));\n $sn = $n[1];\n $name = $this->_normalizeNameCase($n[0]);\n } else {\n $n = explode(\" \", trim($value));\n $name = $this->_normalizeNameCase($n[0]);\n $sn = $n[1];\n }\n // Keep only first letter of each surname\n foreach (explode(' ', $sn) as $w) {\n $surname .= mb_substr($w,0,1,'UTF-8');\n }\n $value = $name.\" \".$surname;\n array_push($authors, $value);\n break;\n case \"LA\": $ret[\"lang\"] = $value; break; //LA - fre\n case \"PT\": $ret[\"type\"] = $value; break; //PT - English Abstract //PT - Journal Article\n case \"TT\": $ret[\"translated_title\"] = $value; break;\n case \"PL\": $ret[\"country\"] = $value; break; //PL - France\n case \"TA\": $ret[\"journal_iso\"] = $value; break; // TA - Rev Neurol (Paris)\n case \"JT\": $ret[\"journal_title\"] = $value; break; // JT - Revue neurologique\n case \"JID\": $ret[\"journal_id\"] = $value; break; // JID - 2984779R\n// case \"SB\": $ret[\"\"] = $value; break; // SB - IM\n case \"MH\": array_push($mesh, $value); break;\n case \"OT\": array_push($keywords, $value); break;\n// case \"EDAT\": $ret[\"\"] = $value; break; // SB - IM\n// case \"MHDA\": $ret[\"\"] = $value; break; // SB - IM\n// case \"CRDT\": $ret[\"\"] = $value; break; // SB - IM\n// case \"PHST\": $ret[\"\"] = $value; break; // SB - IM\n case \"AID\": \n if (strpos($value, \"[doi]\") > 0)\n $ret[\"doi\"] = str_replace(\" [doi]\", \"\", $value); \n if (strpos($value, \"[pii]\") > 0)\n $ret[\"pii\"] = str_replace(\" [pii]\", \"\", $value);\n if (strpos($value, \"[bookaccession]\") > 0)\n $ret[\"bookaccession\"] = str_replace(\" [bookaccession]\", \"\", $value);\n break;\n //case \"PST\": $ret[\"\"] = $value; break; // SB - IM\n case \"SO\": \n // Error with 5042912 (pages) => replace \"-.\" by \".\"\n $ret[\"so\"] = str_replace(\"-.\", \".\", $value); \n break;\n case \"CI\" : $ret[\"copyright\"] = $value; break;\n case \"CN\" : $ret[\"corporate_author\"] = $value; break;\n case \"CTI\" : $ret[\"collection_title\"] = $value; break;\n case \"BTI\" : \n $ret[\"book_title\"] = $value;\n if (empty($ret[\"title\"]))\n $ret[\"title\"] = $value; \n break;\n case \"PB\" : // Possible publisher? count as author?\n $ret[\"publisher\"] = $value;\n break;\n case \"LID\": // possible page? see 32947851\n if (strpos($value, \"[doi]\") > 0) {\n $ret[\"doi\"] = str_replace(\" [doi]\", \"\", $value); \n } else if (strpos($value, \"[pii]\") > 0) {\n $ret[\"pii\"] = str_replace(\" [pii]\", \"\", $value); \n } else {\n $ret[\"pages\"] = $value;\n }\n break;\n case \"HASH\": $ret[\"hashtags\"] = $value; break;\n } // Switch\n } // Foreach\n\n // Create lowered case titles\n if (!empty($ret[\"translated_title\"])) {\n $ret[\"translated_title_low\"] = ucfirst(strtolower($ret[\"translated_title\"])); //mb_convert_case($ret[\"translated_title\"], MB_CASE_TITLE);\n }\n if (!empty($ret[\"title\"])) {\n $ret[\"title_low\"] = ucfirst(strtolower($ret[\"title\"])); //mb_convert_case($ret[\"title\"], MB_CASE_TITLE);\n }\n\n // Manage unavailable title with a translated title\n if (strpos($ret[\"title\"], \"[Not Available]\") !== false) {\n $ret[\"title\"] = $ret[\"translated_title\"];\n }\n\n // Get authors\n if ($ret[\"corporate_author\"]) {\n array_push($authors, $ret[\"corporate_author\"]);\n } \n\n $ret[\"authors\"] = $authors;\n $ret[\"authorsVancouver\"] = $authors;\n if (count($authors) == 0) {\n array_push($authors, $pluginObject->getLang('no_author_listed'));\n }\n\n //\"collectif\" => $collectif,\n // Create first author for short output\n if (count($authors) > 1) {\n $ret['first_author'] = $authors[0].\", \".$pluginObject->getConf('et_al_vancouver');\n } else {\n $ret['first_author'] = $authors[0];\n }\n \n // Create Vancouver Authors.\n // Manage limitation in number of authors\n $limit = $pluginObject->getConf('limit_authors_vancouver');\n $authorsToUse = $ret[\"authorsVancouver\"];\n $addAndAl = false;\n if ($limit >= 1) {\n if (count($authorsToUse) > $limit) {\n $addAndAl = true;\n $authorsToUse = array_slice($authorsToUse, 0, $limit);\n }\n }\n\n $vancouver = \"\";\n if (count($authorsToUse) > 0) {\n $vancouver = implode(', ',$authorsToUse);\n if ($addAndAl)\n $vancouver .= \", \".$pluginObject->getConf('et_al_vancouver');\n $vancouver .= \". \";\n }\n\n // Create 3 authors only\n $limit = 3;\n $authorsToUse = $ret[\"authorsVancouver\"];\n $addAndAl = false;\n if ($limit >= 1) {\n if (count($authorsToUse) > $limit) {\n $addAndAl = true;\n $authorsToUse = array_slice($authorsToUse, 0, $limit);\n }\n }\n if (count($authorsToUse) > 0) {\n $authors3 = implode(', ',$authorsToUse);\n if ($addAndAl)\n $authors3 .= \", \".$pluginObject->getConf('et_al_vancouver');\n $authors3 .= \". \";\n } else {\n // Less than three authors\n $authors3 = implode(', ',$authorsToUse).\". \";\n }\n $ret[\"authorsLimit3\"] = $authors3;\n $ret[\"authorsVancouver\"] = $vancouver;\n\n // no authors -> nothing to add Eg: pmid 12142303\n \n // Book -> See https://pubmed.ncbi.nlm.nih.gov/30475568/?format=pubmed\n\n // Get Mesh terms & keywords\n $ret[\"mesh\"] = $mesh;\n $ret[\"keywords\"] = $keywords;\n\n // Remove points from the journal_iso string\n if ($pluginObject->getConf('remove_dot_from_journal_iso') === true)\n $ret[\"journal_iso\"] = str_replace(\".\", \"\", $ret[\"journal_iso\"]);\n\n // Construct iso citation of this article\n // Use SO from the raw medline content\n $ret[\"iso\"] = $ret[\"so\"];\n $ret = $this->createNpgCitation($ret);\n $ret = $this->createGpnvCitation($ret);\n\n\n $ret[\"similarurl\"] = sprintf($this->similarURL, $ret[\"pmid\"]);\n $ret[\"citedbyurl\"] = sprintf($this->citedByURL, $ret[\"pmid\"]);\n $ret[\"referencesurl\"] = sprintf($this->referencesURL, $ret[\"pmid\"]);\n\n // Construct Vancouver citation of this article\n // See https://www.nlm.nih.gov/bsd/uniform_requirements.html\n if ($ret[\"book_title\"]) {\n // Author. <i>BookTitle</i>. country:PB;year.\n $ret[\"vancouver\"] = $vancouver;\n $ret[\"vancouver\"] .= $ret[\"title\"].\" \";\n $ret[\"vancouver\"] .= $ret[\"book_title\"].\". \";\n $ret[\"iso\"] = $ret[\"country\"].\" : \";\n $ret[\"iso\"] .= $ret[\"year\"].\".\";\n $ret[\"vancouver\"] .= $ret[\"iso\"];\n $ret[\"sciencedirecturl\"] = sprintf($this->scienceDirectURL, $ret[\"doi\"]);\n return $ret;\n } \n $vancouver .= $ret[\"title\"];\n $vancouver .= \" \".$ret[\"so\"];\n // $vancouver .= \" \".$ret[\"journal_iso\"].\"\";\n // $vancouver .= \" \".$pubDate;\n // $vancouver .= \";\".$ret[\"vol\"];\n // if (!empty($ret[\"issue\"]))\n // $vancouver .= \"(\".$ret[\"issue\"].\")\";\n // $vancouver .= \":\".$ret[\"pages\"];\n $ret[\"vancouver\"] = $vancouver;\n\n $gg = \"https://translate.google.com/\";\n $gg .= \"?sl=auto&tl=fr&text=\";\n $gg .= rawurlencode($ret[\"abstract\"]);\n $gg .= \"&op=translate\";\n $ret[\"googletranslate_abstract\"] = $gg;\n //echo print_r($ret);\n $ret[\"sciencedirecturl\"] = sprintf($this->scienceDirectURL, $ret[\"doi\"]);\n return $ret;\n }", "title": "" }, { "docid": "46229c9ec5a795bafcc39eacf7637a48", "score": "0.54933524", "text": "function n26921(&$parser)\n{\n\n}", "title": "" }, { "docid": "092700cf4b2cb53872eada91f595fdca", "score": "0.5488306", "text": "protected function parseCustomParsing()\n {\n //\n }", "title": "" }, { "docid": "6c17baa3481de962109f45fb52dec248", "score": "0.5487913", "text": "protected function parse(): void {}", "title": "" }, { "docid": "fc822d951c3ae33d4d7eaffb1d4a2136", "score": "0.5468167", "text": "function n25203(&$parser)\n{\n\n}", "title": "" }, { "docid": "005c86ae57c202e8b07bdce21bf25013", "score": "0.54666525", "text": "function startContentParsing($data)\r\n{\r\n\r\n\t//Get config.\r\n\t$config = tinyConfig::getInstance()->get(array(\r\n\t 'tinytoc_settings_enabled',\r\n 'tinytoc_settings_header',\r\n 'tinytoc_settings_general',\r\n 'tinytoc_settings_tocstyle'\r\n ));\r\n\r\n if ($config->tinytoc_settings_enabled !== '1')\r\n return $data;\r\n\r\n //Get post.\r\n\tglobal $post;\r\n\r\n\t//Split it by <!--nextpage-->.\r\n\t$allContent = explode('<!--nextpage-->', $post->post_content);\r\n\t//Number of pages.\r\n\t$numPages = count($allContent);\r\n\r\n\t//Get current page of multipage post.\r\n\t$currentPage = ((int) get_query_var('page') === 0) ? 1 : (int) get_query_var('page');\r\n\r\n\t//Check if we need to parse it.\r\n\tif (!checkIfWeNeedToParse())\r\n\t return $config->tinytoc_settings_general->removeWhenNotUsed ?\r\n\t preg_replace('/\\[tinytoc[[:space:]]+level=\"([0-9]+)\"\\]([\\S\\s]*?)\\[\\/tinytoc\\]/i', '$2', $data) : $data;\r\n\r\n\t$urlStuffTemp = array();\r\n\t$urlStuff = array();\r\n\r\n\r\n\t$match = false;\r\n\r\n\t//Loop all pages.\r\n\tfor ($i = 0; $i < $numPages; $i++) {\r\n\t\t//Search for levels and celan them\r\n\t\tif (preg_match_all(\r\n\t\t '/\\[tinytoc[[:space:]]+level=\"([0-9]+)\"\\]([\\S\\s]*?)\\[\\/tinytoc\\]/i',\r\n\t\t $allContent[$i], $urlStuffTemp\r\n\t\t )) {\r\n\t\t $match = true;\r\n\r\n\t\t\t//Loop each match.\r\n\t\t\tforeach ($urlStuffTemp as $k => $v) {\r\n\t\t\t\tif ($k === 0) {\r\n\t\t\t\t\tforeach ($v as $v1) {\r\n\t\t\t\t\t\t$urlStuff[0][] = $i + 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tforeach ($v as $v1) {\r\n\t\t\t\t\t\t$urlStuff[$k][] = $v1;\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}\r\n\r\n\r\n\r\n $data = preg_replace_callback(\r\n '/\\[tinytoc[[:space:]]+level=\"([0-9]+)\"\\]([\\S\\s]*?)\\[\\/tinytoc\\]/i',\r\n 'callbackReplace',\r\n $data);\r\n\r\n\t//No match? Return data.\r\n\tif (!$match)\r\n\t return $data;\r\n\r\n\t//Create toc.\r\n\t$toc = $config->tinytoc_settings_header->before;\r\n\t$toc .= $config->tinytoc_settings_header->title;\r\n\t$toc .= $config->tinytoc_settings_header->after;\r\n\r\n\t$toc .= $config->tinytoc_settings_tocstyle->startList;\r\n\r\n\r\n\t$count = count($urlStuff[1]);\r\n\r\n\t$lastLevel = 1;\r\n\r\n\t//Loop each match and create url for them.\r\n for ($i = 0; $i < $count; $i++) {\r\n $currLevel = (int) $urlStuff[1][$i];\r\n if ($currLevel > $lastLevel) {\r\n for ($m = $currLevel - 1; $m > $lastLevel; $m--) {\r\n $toc .= $config->tinytoc_settings_tocstyle->startList;\r\n $toc .= $config->tinytoc_settings_general->startItem;\r\n }\r\n //$toc .= $config->tinytoc_settings_tocstyle->startItem;\r\n $toc .= $config->tinytoc_settings_tocstyle->startList;\r\n $toc .= $config->tinytoc_settings_tocstyle->startItem;\r\n $toc .= $config->tinytoc_settings_general->useGoTo ?\r\n createGoToUrl($urlStuff[0][$i], $currentPage, $urlStuff[1][$i],$urlStuff[2][$i]) :\r\n $urlStuff[2][$i];\r\n //$toc .= $config->tinytoc_settings_general->endItem;\r\n }\r\n elseif ($lastLevel > $currLevel) {\r\n\t for ($m = $lastLevel - 1; $m > $currLevel; $m--) {\r\n\t\t $toc .= $config->tinytoc_settings_tocstyle->endList;\r\n\t\t $toc .= $config->tinytoc_settings_general->endItem;\r\n\t\t }\r\n\t\t $toc .= $config->tinytoc_settings_tocstyle->endItem;\r\n $toc .= $config->tinytoc_settings_tocstyle->endList;\r\n\t\t\t$toc .= $config->tinytoc_settings_general->endItem;\r\n $toc .= $config->tinytoc_settings_tocstyle->startItem;\r\n $toc .= $config->tinytoc_settings_general->useGoTo ?\r\n createGoToUrl($urlStuff[0][$i], $currentPage, $urlStuff[1][$i],$urlStuff[2][$i]) :\r\n $urlStuff[2][$i];\r\n $toc .= $config->tinytoc_settings_tocstyle->endItem;\r\n }\r\n else {\r\n $toc .= $config->tinytoc_settings_tocstyle->startItem;\r\n $toc .= $config->tinytoc_settings_general->useGoTo ?\r\n createGoToUrl($urlStuff[0][$i], $currentPage, $urlStuff[1][$i],$urlStuff[2][$i]) :\r\n $urlStuff[2][$i];\r\n //$toc .= $config->tinytoc_settings_tocstyle->endItem;\r\n }\r\n $lastLevel = $currLevel;\r\n }\r\n\r\n //Cleanup\r\n\tfor ($m = 1; $m < $lastLevel; $m++) {\r\n\t $toc .= $config->tinytoc_settings_tocstyle->endList;\r\n\t\t$toc .= $config->tinytoc_settings_general->endItem;\r\n\t}\r\n\r\n $toc .= $config->tinytoc_settings_tocstyle->endList;\r\n\r\n $toc .= \"\\n\";\r\n\r\n $toc .= '<!-- Table of contents generated with `Tiny Table Of Contents` (http://php4every1.com/scripts/tiny-table-of-contents-wordpress-plugin/) by Marijan Šuflaj -->';\r\n\r\n if (!(!$config->tinytoc_settings_general->tocOnAllPages && $currentPage > 1 )) {\r\n if (strpos($data, '[tinytoc]'))\r\n $data = str_replace('[tinytoc]', $toc, $data);\r\n else\r\n $data = $toc . $data;\r\n }\r\n\r\n return $data;\r\n}", "title": "" }, { "docid": "867b75309e9e8413efaa27e52364e31f", "score": "0.5452574", "text": "public static function parse()\n {\n self::$content = self::getContentForParsing();\n\n \\phpQuery::newDocument(self::$content);\n\n foreach(pq('.item-large') as $key => $value) {\n self::$pq = pq($value);\n\n self::$parsedContent[$key] = [\n 'meme-image' => self::$pq->find(' > a > .single-media')->attr('src'),\n ];\n }\n\n \\phpQuery::unloadDocuments();\n\n return self::$parsedContent;\n }", "title": "" }, { "docid": "c639569607b734c75fd7b35f28bc3fee", "score": "0.545168", "text": "abstract protected function parse(): void;", "title": "" }, { "docid": "53d5c13baf57d59f158885e6013ec3f8", "score": "0.5440286", "text": "function parse($data) {\n\n\n\t\t\n\t}", "title": "" }, { "docid": "c4cd9fd284d61443993168427b4a4b72", "score": "0.543764", "text": "function n24272(&$parser)\n{\n\n $arr = explode(PHP_EOL, $parser->plugin->result->plugin_output);\n\n $name = '';\n $mac = '';\n $ipv4 = '';\n $ipv6 = '';\n $match = [];\n\n foreach ($arr as $line) {\n if (preg_match(\"/Routing Information/i\", $line)) {\n break;\n }\n\n switch ($line) {\n case (preg_match(\"/Network Interface Information/i\", $line) ? true : false):\n if ($name && $mac && $ipv4) {\n if (!isset($parser->tgt->interfaces[$ipv4])) {\n $parser->tgt->interfaces[$ipv4] = new interfaces(null, $parser->tgt->get_ID(), $name, $ipv4, null, $parser->host->hostname, $parser->host->fqdn, null);\n }\n }\n if ($name && $mac && $ipv6) {\n if (!isset($parser->tgt->interfaces[$ipv6])) {\n $parser->tgt->interfaces[$ipv6] = new interfaces(null, $parser->tgt->get_ID(), $name, null, $ipv6, $parser->host->hostname, $parser->host->fqdn, null);\n }\n }\n $name = '';\n $mac = '';\n $ipv4 = '';\n $ipv6 = '';\n break;\n case (preg_match(\"/Network Interface \\= (.*)/i\", $line, $match) ? true : false):\n $name = $match[1];\n break;\n case (preg_match(\"/MAC Address \\= ([\\d\\:]+)/i\", $line, $match) ? true : false):\n $mac = $match[1];\n break;\n case (preg_match(\"/IPAddress\\/IPSubnet \\= ([\\d\\.]+)\\/([\\d\\.]+)/i\", $line, $match) ? true : false):\n $ipv4 = $match[1];\n break;\n case (preg_match(\"/IPAddress\\/IPSubnet \\= ([a-f\\d\\:]+)\\/([\\d]+)/i\", $line, $match) ? true : false):\n $ipv6 = $match[1];\n break;\n }\n }\n}", "title": "" }, { "docid": "c6933aa3cf93c19e94c55aac65b0e850", "score": "0.54224354", "text": "public function parse() : array ;", "title": "" }, { "docid": "a4a097145ec7ef7198eee369ccd0a941", "score": "0.5397043", "text": "protected function parse_one() {\n\t\t\t$line = $this->get();\n\t\t\t$tline = rtrim($line);\n\t\t\t\n\t\t\t$line = $this->parse_simple_line($line);\n\t\t\t\n\t\t\tif ($line=='') $this->close_block();\n\n\t\t\telse if ($m = Core_Regexps::match_with_results('{^<source\\s+lang=\"(.+)\">}i',$tline)) {\n\t\t\t\t$this->close_block();\n\t\t\t\t$lang = strtolower(trim($m[1]));\n\t\t\t\tif (isset($this->highlights[$lang])) {\n\t\t\t\t\t$module = $this->highlights[$lang];\n\t\t\t\t\tCore::load($module);\n\t\t\t\t\t$class = str_replace('.','_',$module);\n\t\t\t\t\t$highlighter = new $class;\n\t\t\t\t\t$this->parse_source($highlighter);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if (strtolower($tline)=='</source>') {\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if ($m = Core_Regexps::match_with_results('{^\\{\\|}',$tline)) {\n\t\t\t\t$this->close_block();\n\t\t\t\t$this->unget();\n\t\t\t\t$this->html .= self::parse_table();\n\t\t\t}\n\t\t\telse if ($m = Core_Regexps::match_with_results('{^;(.+):(.+)}',$tline)) {\n\t\t\t\t$this->close_block();\n\t\t\t\t$this->unget();\n\t\t\t\t$this->html .= self::$tag_dl_start;\n\t\t\t\t$this->parse_dl();\n\t\t\t\t$this->html .= self::$tag_dl_end;\n\t\t\t}\n\t\t\t\n\t\t\telse if ($m = Core_Regexps::match_with_results('{^======(.+)======$}',$tline)) {\n\t\t\t\t$this->close_block();\n\t\t\t\t$this->html .= sprintf(self::$template_h5,trim($m[1]));\n\t\t\t}\n\t\t\t\n\t\t\telse if ($m = Core_Regexps::match_with_results('{^====(.+)====$}',$tline)) {\n\t\t\t\t$this->close_block();\n\t\t\t\t$this->html .= sprintf(self::$template_h4,trim($m[1]));\n\t\t\t}\n\t\t\t\n\t\t\telse if ($m = Core_Regexps::match_with_results('{^===(.+)===$}',$tline)) {\n\t\t\t\t$this->close_block();\n\t\t\t\t$this->html .= sprintf(self::$template_h3,trim($m[1]));\n\t\t\t}\n\t\t\t\n\t\t\telse if ($m = Core_Regexps::match_with_results('{^==(.+)==$}',$tline)) {\n\t\t\t\t$this->close_block();\n\t\t\t\t$this->html .= sprintf(self::$template_h2,trim($m[1]));\n\t\t\t}\n\t\t\t\n\t\t\telse if ($m = Core_Regexps::match_with_results('{^=(.+)=$}',$tline)) {\n\t\t\t\t$this->close_block();\n\t\t\t\t$this->html .= sprintf(self::$template_h1,trim($m[1]));\n\t\t\t}\n\t\t\t\n\t\t\telse if ($tline=='----') {\n\t\t\t\t$this->close_block();\n\t\t\t\t$this->html .= \"\\n<hr />\\n\";\n\t\t\t}\n\t\t\t\n\t\t\telse if (strlen($line)>0&&$line[0]=='*') {\n\t\t\t\t$this->close_block();\n\t\t\t\t$this->html .= \"\\n<ul>\";\n\t\t\t\t$this->unget();\n\t\t\t\t$this->parse_list('*');\n\t\t\t\t$this->html .= \"\\n</ul>\";\n\t\t\t}\n\n\t\t\telse if (strlen($line)>0&&$line[0]=='#') {\n\t\t\t\t$this->close_block();\n\t\t\t\t$this->html .= \"\\n<ol>\";\n\t\t\t\t$this->unget();\n\t\t\t\t$this->parse_list('#');\n\t\t\t\t$this->html .= \"\\n</ol>\";\n\t\t\t}\n\n\t\t\telse if ($line[0]==' '||$line[0]==\"\\t\") {\n\t\t\t\t$this->close_block();\n\t\t\t\t$this->html .= self::$tag_pre_start;\n\t\t\t\t$this->unget();\n\t\t\t\t$this->parse_pre();\n\t\t\t\t$this->html .= self::$tag_pre_end;\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\t$this->open_block('p');\n\t\t\t\t$this->html .= \"$line\";\n\t\t\t}\n\t}", "title": "" }, { "docid": "9b0a7aad2ec541daf9d7ea06f47d54b1", "score": "0.5396982", "text": "public function parsehtml()\n {\n foreach($this->jobpage as $key)\n {\n \n if(stripos($this->file,$key) && ($c=$this->{\"get\".strtolower($key)}()))\n { \n $this->pageinfo[$this->type]['details']=$c; \n \n }\n \n \n }\n \n }", "title": "" }, { "docid": "e16d1ff2096e382d9c51ac8a0244ef47", "score": "0.5396924", "text": "public static function parseContent($content) {\n\t\t$content = trim(do_shortcode(shortcode_unautop($content)));\n\n\t\t/* Remove '' from the start of the string. */\n\t\tif ( substr( $content, 0, 4 ) == '</p>' )\n\t\t\t$content = substr( $content, 4 );\n\n\t\t/* Remove '' from the end of the string. */\n\t\tif ( substr( $content, -3, 3 ) == '<p>')\n\t\t\t$content = substr( $content, 0, -3 );\n\n\t\t$content = strtr($content,PeThemeShortcode::$clean);\n\n\t\treturn $content;\n\t}", "title": "" }, { "docid": "9024403cac3a420321522049f49ef6c8", "score": "0.5396195", "text": "function n11777(&$parser)\n{\n $parser->tgt->set_Copyright($parser->plugin->result->plugin_output);\n}", "title": "" }, { "docid": "e70fd333e7d5223f8d1fa4c3c41d74c8", "score": "0.53744394", "text": "public function testParse()\n {\n $source = array();\n $source[] = \"foo bar\";\n $source[] = \"Top-Level Header\";\n $source[] = \"================\";\n $source[] = \"baz dib\";\n $source = implode(\"\\n\", $source);\n \n $expect[] = \"foo bar\";\n $expect[] = $this->_token . \"\\n\";\n $expect[] = \"baz dib\";\n $expect = implode(\"\\n\", $expect);\n \n $actual = $this->_plugin->parse($source);\n $this->assertRegex($actual, \"@$expect@\");\n }", "title": "" }, { "docid": "8e76c4e3f64cfc395122896be23413f8", "score": "0.5365074", "text": "function n10800(&$parser)\n{\n $parser->tgt->set_System($parser->plugin->result->plugin_output);\n\n update_Port_Notes($parser);\n}", "title": "" }, { "docid": "bdee9cfe214b9ff27e61b199ee5f2d0a", "score": "0.536035", "text": "function n48337(&$parser)\n{\n\n if (strlen($parser->tgt->get_System()) > 0) {\n $parser->tgt->set_System($parser->tgt->get_System() . PHP_EOL . $parser->plugin->result->plugin_output);\n }\n else {\n $parser->tgt->set_System($parser->plugin->result->plugin_output);\n }\n}", "title": "" }, { "docid": "84b91b055503e6bfbeaa67aafb7ebb31", "score": "0.5355675", "text": "function smuggery_parsecontent ($content) {\n\treturn smuggery_substitutetags($content);\n}", "title": "" }, { "docid": "99be8314f4740126b2b607955a685e6c", "score": "0.5329116", "text": "function n25202(&$parser)\n{\n\n}", "title": "" }, { "docid": "17081e790812701f4216046f52c1d321", "score": "0.5323273", "text": "public function retrievePagePlugin(){\n\t\t\t$result\t\t\t\t=\t\"\";\n\t\t\t$modType\t\t\t=\tself::getModType();\n\t\t\t$modId \t\t\t\t=\tself::getModId();\n\t\t\t$caption\t\t\t=\tself::getPageCaption();\t\t\t \n\t \t\t$currentModuleId \t= \tself::getCurrentModAccess();\n\t\t\t\n\t\t\t$plugTable\t\t \t= \tself::getPlugTable();\n\t\t\t\n\t\t\tif(in_array($modId,$currentModuleId)){\t\n\t\t\t\t$result \t\t .= \"<dt><a href=\\\"#\\\">Create $caption</a></dt>\";\t\n\t\t\t\t$result \t\t .= \"<dd>\";\t\n\t\t\t\t$moduleType \t = $modType;\n\t\t\t\t$newsArr\t\t = array($moduleType.'publishdate',$moduleType.'publishtime',$moduleType.'images5',$moduleType.'title',$moduleType.'contents',$moduleType.'postingdate',$moduleType.'author',$moduleType.'catid');\n\t\t\t\t$result \t\t .= self::pagePlugin($moduleType,$newsArr,$plugTable,\"$moduleType.trigger\",\"$moduleType.date\",\"$moduleType.trigger2\",\"$moduleType.date2\");\n\t\t\t\t$result \t\t .= \"</dd>\"; \n\t\t\t }\n\t\t\t return $result;\n\t}", "title": "" }, { "docid": "d14db9ba66564a6f003653ef943c3b69", "score": "0.532204", "text": "public function parseData()\n\t{\n\t\treturn Helper_Parse::{'parse_'.$this->inputExt}($this->tempName);\t\t\t\t\n\t}", "title": "" }, { "docid": "341fb6b9a2df4154843bff1651ceab91", "score": "0.5314605", "text": "public function getResultParser();", "title": "" }, { "docid": "4064f99bf8ab4a5bc3f0368c91affbc1", "score": "0.5314318", "text": "function n10287(&$parser)\n{\n if (!empty($parser->host->ip)) {\n $parser->tgt->interfaces[$parser->host->ip]->set_Notes($parser->plugin->result->plugin_output);\n }\n}", "title": "" }, { "docid": "d8e365913daf10ddda4c5c01f5765fe7", "score": "0.53088063", "text": "function n34098(&$parser)\n{\n\n if (strlen($parser->tgt->get_BIOS()) > 0) {\n $parser->tgt->set_BIOS($parser->tgt->get_BIOS() . PHP_EOL . $parser->plugin->result->plugin_output);\n }\n else {\n $parser->tgt->set_BIOS($parser->plugin->result->plugin_output);\n }\n}", "title": "" }, { "docid": "8a4efd8b4247ce28e8bc12ab2f56fb55", "score": "0.5306946", "text": "public function parse()\n {\n $this->dom->loadStr($this->raw_data, array());\n $return = [];\n switch (strtolower($this->type)) {\n case 'daily':\n $today = $this->getHoroscope('#today');\n $yesterday = $this->getHoroscope('#yesterday');\n $tomorrow = $this->getHoroscope('#tomorrow');\n $return = ['today' => $today, 'yesterday' => $yesterday, 'tomorrow' => $tomorrow];\n break;\n case 'weekly':\n case 'monthly':\n $horoscope = $this->getHoroscope('.fl-rich-text');\n $return = [strtolower($this->type) => $horoscope];\n break;\n case 'yearly':\n $horoscope = $this->getYearlyHoroscope('.fl-rich-text');\n //let combine the values to a simpler version of the detailed horoscope\n $short = [];//a compact version of the horoscope\n foreach ($horoscope as $sign => $value) {\n $temp = [];\n foreach ($value as $tag => $description) {\n $t = implode(\"\\n\", $description);\n array_push($temp, sprintf('<strong>%s</strong>', $tag));\n array_push($temp, $t);\n }\n $short[$sign] = implode(\"\\n\", $temp);\n }\n //the detailed version of the horoscope will be used in future.\n $return = ['yearly' => $short, 'detailed' => $horoscope];\n break;\n }\n return $return;\n }", "title": "" }, { "docid": "95dfdc5a92bc09a0076fcf5530ed7280", "score": "0.53049695", "text": "public function parse() {\n\t\t$this->content = htmlentities($this->content, ENT_QUOTES);\n\n\t\t$parser = new JBBCode\\Parser();\n\t\t$parser->addCodeDefinitionSet(new SMBBCodeDefinitionSet());\n\n\t\t$youtubeEmbed = new YoutubeEmbed();\n\t\t$parser->addCodeDefinition($youtubeEmbed);\n\n\t\t$parser->addCodeDefinition(new ListCodeDefinition());\n\n\t\t$parser->parse($this->content);\n\n\t\t$this->content = $parser->getAsHtml();\n\n\t\t// Try to Auto-link URLs\n\t\t// $this->content = preg_replace(\n\t\t// \t\"/\\b(https?:\\/\\/([a-z0-9\\.\\/\\-\\?\\&\\%=]+))/iS\",\n\t\t// \t\"<a href=\\\"\\\\1\\\" rel=\\\"nofollow\\\">\\\\1</a>\",\n\t\t// \t$this->content\n\t\t// );\n\n\t\t// make sure newlines aren't all wonky\n\t\t$this->content = str_replace(\"\\n\", \"<br />\", $this->content);\n\n\t\t// add smilies\n\t\tif($this->config()->allow_smilies) {\n\t\t\t$path = Config::inst()->get(\"SMBBCodeParser\", \"smilies_location\");\n\t\t\t$smilies = array(\n\t\t\t\t// arrows\n\t\t\t\t'#(?<!\\w):b:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/blank.png'> \",\n\t\t\t\t'#(?<!\\w):l:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/l4.png'> \",\n\t\t\t\t'#(?<!\\w):d:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/d4.png'> \",\n\t\t\t\t'#(?<!\\w):u:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/u4.png'> \",\n\t\t\t\t'#(?<!\\w):r:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/r4.png'> \",\n\n\t\t\t\t'#(?<!\\w):l4:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/l4.png'> \",\n\t\t\t\t'#(?<!\\w):d4:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/d4.png'> \",\n\t\t\t\t'#(?<!\\w):u4:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/u4.png'> \",\n\t\t\t\t'#(?<!\\w):r4:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/r4.png'> \",\n\n\t\t\t\t'#(?<!\\w):l8:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/l8.png'> \",\n\t\t\t\t'#(?<!\\w):d8:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/d8.png'> \",\n\t\t\t\t'#(?<!\\w):u8:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/u8.png'> \",\n\t\t\t\t'#(?<!\\w):r8:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/r8.png'> \",\n\n\t\t\t\t'#(?<!\\w):l12:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/l12.png'> \",\n\t\t\t\t'#(?<!\\w):d12:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/d12.png'> \",\n\t\t\t\t'#(?<!\\w):u12:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/u12.png'> \",\n\t\t\t\t'#(?<!\\w):r12:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/r12.png'> \",\n\n\t\t\t\t'#(?<!\\w):l16:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/l16.png'> \",\n\t\t\t\t'#(?<!\\w):d16:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/d16.png'> \",\n\t\t\t\t'#(?<!\\w):u16:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/u16.png'> \",\n\t\t\t\t'#(?<!\\w):r16:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/r16.png'> \",\n\n\t\t\t\t'#(?<!\\w):l32:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/l32.png'> \",\n\t\t\t\t'#(?<!\\w):d32:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/d32.png'> \",\n\t\t\t\t'#(?<!\\w):u32:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/u32.png'> \",\n\t\t\t\t'#(?<!\\w):r32:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/r32.png'> \",\n\n\t\t\t\t// holds\n\t\t\t\t'#(?<!\\w):hb:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/hb.png'> \",\n\t\t\t\t'#(?<!\\w):he:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/he.png'> \",\n\n\t\t\t\t// rolls\n\t\t\t\t'#(?<!\\w):rb:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/rb.png'> \",\n\t\t\t\t'#(?<!\\w):re:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/re.png'> \",\n\n\t\t\t\t// mine\n\t\t\t\t'#(?<!\\w):m:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/re.png'> \",\n\n\t\t\t\t// machine buttons\n\t\t\t\t'#(?<!\\w):ml:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/ml.png'> \",\n\t\t\t\t'#(?<!\\w):ms:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/ms.png'> \",\n\t\t\t\t'#(?<!\\w):mr:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/mr.png'> \",\n\n\t\t\t\t// pump buttons\n\t\t\t\t'#(?<!\\w):pc:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/pc.png'> \",\n\t\t\t\t'#(?<!\\w):ul:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/ul.png'> \",\n\t\t\t\t'#(?<!\\w):ur:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/ur.png'> \",\n\t\t\t\t'#(?<!\\w):dl:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/dl.png'> \",\n\t\t\t\t'#(?<!\\w):dr:(?!\\w)#i' => \" <img src='\".$path.\"/arrows/dr.png'> \",\n\n\n\t\t\t\t/*\n\t\t\t\t'#(?<!\\w):D(?!\\w)#i' => \" <img src='\".$path.\"/grin.gif'> \", // :D\n\t\t\t\t'#(?<!\\w):\\)(?!\\w)#i' => \" <img src='\".$path.\"/smile.gif'> \", // :)\n\t\t\t\t'#(?<!\\w):-\\)(?!\\w)#i' => \" <img src='\".$path.\"/smile.gif'> \", // :-)\n\t\t\t\t'#(?<!\\w):\\((?!\\w)#i' => \" <img src='\".$path.\"/sad.gif'> \", // :(\n\t\t\t\t'#(?<!\\w):-\\((?!\\w)#i' => \" <img src='\".$path.\"/sad.gif'> \", // :-(\n\t\t\t\t'#(?<!\\w):p(?!\\w)#i' => \" <img src='\".$path.\"/tongue.gif'> \", // :p\n\t\t\t\t'#(?<!\\w)8-\\)(?!\\w)#i' => \" <img src='\".$path.\"/cool.gif'> \", // 8-)\n\t\t\t\t'#(?<!\\w):\\^\\)(?!\\w)#i' => \" <img src='\".$path.\"/confused.gif'> \" // :^)\n\t\t\t\t*/\n\t\t\t);\n\t\t\t$this->content = preg_replace(array_keys($smilies), array_values($smilies), $this->content);\n\t\t}\n\t\treturn $this->content;\n\t}", "title": "" }, { "docid": "b7e4354951921c4e7c3aa9d54c9038f7", "score": "0.5296097", "text": "function load_ass_subs ($filename) {\r\r\n\t\r\r\n\t\t$raw_data = file_get_contents($filename, false, null, -1, 1048576);\r\r\n\t\tif (!$raw_data) die('Cannot load file ' . $filename . '!');\r\r\n\t\t$lines = explode(\"\\r\\n\", $raw_data);\r\r\n\t\t\r\r\n\t\t$i = 0;\r\r\n\t\tforeach ($lines as $line) {\r\r\n\t\t \r\r\n\t\t if (substr($line, 0, 10) == 'Dialogue: ') {\r\r\n\t\t\t\r\r\n\t\t\t$comma_pos[0] = strpos($line, ',');\r\r\n\t\t\t\r\r\n\t\t\tfor ($k = 1; $k <= 8; $k++) {\r\r\n\t\t\t $comma_pos[$k] = strpos($line, ',', $comma_pos[$k-1] + 1);\r\r\n\t\t\t}\r\r\n\t\t\t\r\r\n\t\t\t$text = substr($line, $comma_pos[8] + 1);\r\r\n\t\t\tif (!empty($text)) {\r\r\n\t\t\t $out[$i]['text'] = $text;\r\r\n\t\t\t $out[$i]['start'] = substr($line, $comma_pos[0] + 1, $comma_pos[1] - $comma_pos[0] - 1);\r\r\n\t\t\t $out[$i]['end'] = substr($line, $comma_pos[1] + 1, $comma_pos[2] - $comma_pos[1] - 1);\r\r\n\t\t\t $out[$i]['stripped_text'] = preg_replace('/\\{.*?\\}/', '', $out[$i]['text']);\r\r\n\t\t\t $out[$i]['text_len'] = strlen($out[$i]['text']);\r\r\n\t\t\t $out[$i]['stripped_text_len'] = strlen($out[$i]['stripped_text']);\r\r\n\t\t\t $i++;\r\r\n\t\t\t}\r\r\n\t\t }\r\r\n\t }\r\r\n\t\t\r\r\n\t\treturn $out;\r\r\n\t\t\r\r\n\t}", "title": "" }, { "docid": "d0bf8a8ca1ca4f7cda146cdc2b074e23", "score": "0.5291251", "text": "public function loadparser($data){\n\t\t$this->hakakses = $this->gethakakses();\n\t\tif ($this->hakakses=='admin') {\n\t\t\t$this->parser->parse('admin/v-index-admin', $data);\n\t\t} elseif( $this->hakakses=='admin_cabang' ){\n\t\t\t$this->parser->parse('admincabang/v-index-admincabang', $data);\n\t\t} else if($this->hakakses=='guru'){\n\t\t\t// notification\n\t\t\t$data['datKomen']=$this->datKomen();\n\t\t\t$id_guru = $this->session->userdata['id_guru'];\n\t // get jumlah komen yg belum di baca\n\t\t\t$data['count_komen']=$this->mkomen->get_count_komen_guru($id_guru);\n\t //\n\t\t\t$this->parser->parse('templating/index-b-guru', $data);\n\t\t}\n\t}", "title": "" }, { "docid": "59debc6432016eaa264c6c987563f0bd", "score": "0.5288491", "text": "public function loadData() {\n $strTemplateID = $this->objTemplate->readTemplate(\"/element_sourcecode/\" . $this->arrElementData[\"char1\"], \"sourcecode\");\n return $this->objTemplate->fillTemplate(array(\"content_id\" => $this->arrElementData[\"content_id\"], \"code\" => nl2br($this->arrElementData[\"text\"])), $strTemplateID);\n }", "title": "" }, { "docid": "c7a28b19474e74237297926ce11a1521", "score": "0.5277045", "text": "function main($content,$conf) {\n\n\t\t// only load this plugin and parse if it's enabled\n\t\tif(!$conf['config.']['enableParsing']) return false;\n\n\t\t$argArray = array();\n\n\t\t/* Processs cObjects */\n\t\t$cObj = t3lib_div::makeInstance('tslib_cObj');\n\t\tforeach($conf['url.'] as $key=>$type) {\n\t\t\tif($key[strlen($key)-1] != \".\") {\n\t\t\t\t$value = $cObj->cObjGetSingle($type, $conf['url.'][$key.'.']);\n\t\t\t\tif($value) {\n\t\t\t\t\t$argArray[$key] = $key.'='.$value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* If the current user has selected a translation and override is allowed */\n\t\t$userTranslation = tx_wecebible_api::getDefaultTranslation();\n\t\tif(!empty($userTranslation) && $conf['config.']['allowUserTranslation']) {\n\t\t\t$argArray['translation'] = 'translation='.$userTranslation;\n\t\t}\n\n\t\t$argString = implode(\"&\", $argArray);\n\n\t\t/**\n\t\t * @fixme This is a workaround for multiple issues. Hopefully one of these wll be solved in the future.\n\t\t * 1. VerseLink and MooTools both define window.addEvent and conflict. In light of this, we're better off including\n\t\t * VerseLink first and letting it be overwritten by MooTools. This means Verselink will not work on a page with\n\t\t * MooTools but MooTools will continue to work.\n\t\t * 2. The TYPO3 page renderer doesn't support USER_INT plugins, so we can't rely on addJsFooter().\n\t\t * 3. TSFE->additionalFooterData doesn't support USER_INT either, so we're stuck adding it in the header.\n\t\t *\n\t\t * As a result of these issues our best bet is to unshift the VerseLink JS onto the front of TSFE->additionalHeaderData\n\t\t * so that it included as early in the header as possible and is overwritten by conflicting libraries.\n\t\t */\n\t\tarray_unshift($GLOBALS['TSFE']->additionalHeaderData, '<script type=\"text/javascript\" src=\"' . self::VERSELINK_URL . '?' . $argString . '\"></script>');\n\t}", "title": "" }, { "docid": "ac5171762c9567934f648d0ed35fc91f", "score": "0.5274371", "text": "function n10456(&$parser)\n{\n if (strlen($parser->tgt->get_Services()) > 0) {\n $parser->tgt->set_Services($parser->tgt->get_Services() . PHP_EOL . $parser->plugin->result->plugin_output);\n }\n else {\n $parser->tgt->set_Services($parser->plugin->result->plugin_output);\n }\n}", "title": "" }, { "docid": "e9c3ae4681a6d1deac20743728714533", "score": "0.5271005", "text": "function n44401(&$parser)\n{\n\n if (strlen($parser->tgt->get_Services()) > 0) {\n $parser->tgt->set_Services($parser->tgt->get_Services() . PHP_EOL . $parser->plugin->result->plugin_output);\n }\n else {\n $parser->tgt->set_Services($parser->plugin->result->plugin_output);\n }\n}", "title": "" }, { "docid": "6bab6e07b0efb42b6b604ae273e5583f", "score": "0.52638566", "text": "public function parse($plugin, $response)\n {\n $pattern = \"/href='(.+?)'/\";\n preg_match_all($pattern, $response, $links);\n\n $res = 0;\n\n for ($i = 0; $i < count($links[1]); $i++) {\n $linkType = $i % 4;\n $link = $links[1][$i];\n //$plugin->addResult($linkType, $link, $linkType, $linkType, $link, $linkType, $linkType, $linkType, $linkType);\n\n if ($linkType == 3) {\n $curlDown = curl_init($link);\n curl_setopt_array($curlDown, array(\n CURLOPT_RETURNTRANSFER => 1,\n CURLOPT_URL => $link,\n CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en; rv:1.9.0.4) Gecko/2008102920 AdCentriaIM/1.7 Firefox/3.0.4'\n ));\n $downPage = curl_exec($curlDown);\n curl_close($curlDown);\n //$plugin->addResult($linkType, $downPage, $linkType, $linkType, $link, $linkType, $linkType, $linkType, $linkType);\n //$res++;\n\n $title = \"Unknown title\";\n $download = \"Unknown download\";\n $size = 0;\n $datetime = \"1970-01-01\";\n $page = \"Default page\";\n $hash = \"Hash unknown\";\n $seeds = 0;\n $leechs = 0;\n $category = \"Unknown category\";\n\n $titlePattern = \"/width='8' height='8' \\/>&nbsp;<b>(.+)<\\/b>(.+)<\\/td>/\";\n preg_match_all($titlePattern, $downPage, $titleArray);\n $title = $titleArray[1][0] . $titleArray[2][0];\n\n $magnetPattern = \"/(magnet:.+?)'/\";\n preg_match_all($magnetPattern, $downPage, $magnet);\n $download = $magnet[1][0];\n\n $sizePattern = \"/Dimensione:<\\/td>\\s*<td>\\s*(\\d+)\\s*mb/\";\n preg_match_all($sizePattern, $downPage, $sizeArray);\n $size = $sizeArray[1][0] * 1024 * 1024;\n\n $datePattern = \"/id='last_seed'>\\\\s*(\\\\d{4}-\\\\d{2}-\\\\d{2}) \\\\d{2}:\\\\d{2}:\\\\d{2}/\";\n preg_match_all($datePattern, $downPage, $dateArray);\n $datetime = $dateArray[1][0];\n\n $page = $link;\n\n $hashPattern = \"/Info_hash:<\\\\/td><td>\\\\s*(.+?)\\\\s*<\\\\/td>/\";\n preg_match_all($hashPattern, $downPage, $hashArray);\n $hash = $hashArray[1][0];\n\n $seedsPattern = \"/id='seeders'>\\\\s*(\\\\d*)\\\\s*<\\\\/td>/\";\n preg_match_all($seedsPattern, $downPage, $seedsArray);\n $seeds = $seedsArray[1][0];\n\n $leechsPattern = \"/id='leechers'>\\\\s*(\\\\d*)\\\\s*<\\\\/td>/\";\n preg_match_all($leechsPattern, $downPage, $leechsArray);\n $leechs = $leechsArray[1][0];\n\n $plugin->addResult($title, $download, $size, $datetime, $page, $hash, $seeds, $leechs, $category);\n $res++;\n }\n\n }\n return $res;\n }", "title": "" }, { "docid": "0b2d37bc8fd8738942d3de18acf4c925", "score": "0.52604085", "text": "function n70329(&$parser)\n{\n if (strlen($parser->tgt->get_Process_List()) > 0) {\n $parser->tgt->set_Process_List($parser->tgt->get_Process_List() . PHP_EOL . $parser->plugin->result->plugin_output);\n }\n else {\n $parser->tgt->set_Process_List($parser->plugin->result->plugin_output);\n }\n}", "title": "" }, { "docid": "40c2c1dadb17362951e60a54cb4b15b7", "score": "0.5255089", "text": "private function parseResult()\r\n {\r\n if (substr($this->result, 0, 3) === \"\\xEF\\xBB\\xBF\")\r\n {\r\n // Remove utf8 BOM, if present.\r\n $this->result = substr($this->result, 3);\r\n }\r\n\r\n $this->sections = $this->parseSections($this->result);\r\n if (empty($this->sections))\r\n {\r\n $this->isRawResult = true;\r\n return;\r\n }\r\n\r\n $nestedSections = array();\r\n foreach ($this->sections as $section)\r\n {\r\n $nestedSections += $this->parseSections($section);\r\n }\r\n $this->sections += $nestedSections;\r\n }", "title": "" }, { "docid": "279c5dc2ec6ed7c6811f90c23958e6ee", "score": "0.52488214", "text": "function extractLanguageAndFunction($text)\n{\n $tags = array();\n preg_match_all('/\\[doku\\]([a-zA-Z0-9_-]+)\\[\\/doku\\]/', $text, $matchedTags,PREG_SET_ORDER);\n return $matchedTags;\n \n}", "title": "" }, { "docid": "c92e952db46e20e80044f4bad9f543be", "score": "0.5247109", "text": "public function onContentPrepare($context, &$article, &$params, $page = 0)\n\t{\n if($this -> params -> get('use_short_code',1)){\n // Don't run this plugin when the content is being indexed\n if ($context == 'com_finder.indexer') {\n return true;\n }\n\n // simple performance check to determine whether bot should process further\n if (strpos($article->text, 'loadposition') === false && strpos($article->text, 'loadmodule') === false) {\n return true;\n }\n\n // expression to search for (positions)\n $regex\t\t= '/{loadposition\\s+(.*?)}/i';\n $style\t\t= $this->params->def('style', 'none');\n // expression to search for(modules)\n $regexmod\t= '/{loadmodule\\s+(.*?)}/i';\n $title\t\t= null;\n $stylemod\t= $this->params->def('style', 'none');\n\n // Find all instances of plugin and put in $matches for loadposition\n // $matches[0] is full pattern match, $matches[1] is the position\n preg_match_all($regex, $article->text, $matches, PREG_SET_ORDER);\n\n\n // No matches, skip this\n if ($matches) {\n foreach ($matches as $match) {\n\n $matcheslist = explode(',', $match[1]);\n\n if (!array_key_exists(1, $matcheslist)) {\n $matcheslist[1] = null;\n }\n // We may not have a module style so fall back to the plugin default.\n if (!array_key_exists(2, $matcheslist)) {\n $matcheslist[2] = $style;\n }\n\n $position = trim($matcheslist[0]);\n $style = trim($matcheslist[1]);\n\n $output = $this->_load($position, $style);\n\n // We should replace only first occurrence in order to allow positions with the same name to regenerate their content:\n $article->text = preg_replace(\"|$match[0]|\", addcslashes($output, '\\\\'), $article->text, 1);\n\n } \n }\n // Find all instances of plugin and put in $matchesmod for loadmodule\n\n preg_match_all($regexmod, $article->text, $matchesmod, PREG_SET_ORDER);\n // If no matches, skip this\n if ($matchesmod){\n foreach ($matchesmod as $matchmod) {\n\n $matchesmodlist = explode(',', $matchmod[1]);\n //We may not have a specific module so set to null\n if (!array_key_exists(1, $matchesmodlist)) {\n $matchesmodlist[1] = null;\n }\n // We may not have a module style so fall back to the plugin default.\n if (!array_key_exists(2, $matchesmodlist)) {\n $matchesmodlist[2] = $stylemod;\n }\n\n $module = trim($matchesmodlist[0]);\n $name = trim($matchesmodlist[1]);\n $style = trim($matchesmodlist[2]);\n $name = str_replace('Articles','TZ Portfolio Articles',$name);\n $module = str_replace('articles','tz_portfolio_articles',$module);\n\n // $match[0] is full pattern match, $match[1] is the module,$match[2] is the title\n $output = $this->_loadmod($module, $name, $style);\n // We should replace only first occurrence in order to allow positions with the same name to regenerate their content:\n $article->text = preg_replace(\"|$matchmod[0]|\", addcslashes($output, '\\\\'), $article->text, 1);\n }\n }\n }\n\n\t}", "title": "" }, { "docid": "77546ea50efaab53ec35e9c6eb8c8093", "score": "0.5246956", "text": "function _cals_importer_exporter_callback_520($vars) {\n\n $node = $vars['node'];\n $tag = $vars['tag'];\n $wrapper = $vars['node_wrapper'];\n $subfields = array();\n if(! $wrapper->body->value() ){\n return array();\n }\n $values = $wrapper->body->value->value(array('decode' => TRUE));\n\n if(is_string($values)) $subfields[]['a'] = trim($values);\n if(is_array($values)) {\n foreach($values as $value) {\n $value = trim($value);\n if(!empty($value))\n $subfields[]['a'] = trim($value);\n }\n }\n $arr = _cals_build_marc_subfield_array($tag, $subfields);\n $arr[$tag]['ind1'] = '';\n $arr[$tag]['ind2'] = '';\n return $arr;\n}", "title": "" }, { "docid": "3494a8490ffe20fd9d0f16aa76244fab", "score": "0.52460533", "text": "public function parse() : array {}", "title": "" }, { "docid": "62ddd0c71bba415727bc58565a5e5b1e", "score": "0.52415687", "text": "function n25221(&$parser)\n{\n if (strlen($parser->tgt->get_Process_List()) > 0) {\n $parser->tgt->set_Process_List($parser->tgt->get_Process_List() . PHP_EOL . $parser->plugin->result->plugin_output);\n }\n else {\n $parser->tgt->set_Process_List($parser->plugin->result->plugin_output);\n }\n\n update_Port_Notes($parser);\n}", "title": "" }, { "docid": "df3aba365f28c4e0a24c901ee60900f3", "score": "0.5239092", "text": "function n52001(&$parser)\n{\n $match = [];\n if (preg_match(\"/\\+ KB([\\d]+)/\", $parser->plugin->result->plugin_output, $match)) {\n $iavm = $parser->db->get_IAVM_From_External(\"KB\" . $match[1]);\n\n if (!empty($iavm)) {\n // add finding\n }\n else {\n $cve = $parser->db->get_CVE_From_External(\"KB\" . $match[1]);\n\n if (!empty($cve)) {\n // get linked IAVM and add finding if available\n }\n }\n }\n}", "title": "" }, { "docid": "4f046ea0240550851ac1f5b9ce63d344", "score": "0.52369463", "text": "function mygengo_parse_comments($content) {\n\t$content = str_replace('[[[ ','[[[', $content);\n\t$comment_meta = '[[[post_comment__]]]';\n\t$comments = array();\n\t$next_post = 0;\n\t$comment_pos = stripos($content, $comment_meta, $next_pos);\n\tif ($comment_pos === FALSE) {\n\t\t$comment_pos = stripos($content, $comment_meta, $next_pos);\n\t\tif ($comment_pos === FALSE) {\n\t\t\treturn array(str_replace(array('[[[',']]]'), array('<','>'),$content));\n\t\t}\n\t}\n\t$comment_pos += strlen($comment_meta);\n\t$next_pos = stripos($content, $comment_meta, $comment_pos);\n\twhile($next_pos !== FALSE) {\n\t\t$comments[] = str_replace(array('[[[',']]]'), array('<','>'),substr($content, $comment_pos, $next_pos - $comment_pos));\n\t\t$comment_pos = $next_pos + strlen($comment_meta);\n\t\t$next_pos = stripos($content, $comment_meta, $comment_pos);\n\t}\n\t$comments[] = str_replace(array('[[[',']]]'), array('<','>'), substr($content, $comment_pos));\n\n\treturn $comments;\n}", "title": "" }, { "docid": "c39d33a10734cd59d622f8507a77de52", "score": "0.52355736", "text": "public function parse(&$source);", "title": "" }, { "docid": "16aa28737c4d12cfb49fb6629dff6e7a", "score": "0.5221351", "text": "function parse_cca_html($html){\n\t\n}", "title": "" }, { "docid": "c58fbaf4c38720fe28ef39be9089cc9d", "score": "0.5216634", "text": "function main($content,$conf)\t{\n\t\t$this->conf=$conf;\n\t\t$this->pi_setPiVarDefaults();\n\t\t$this->pi_loadLL();\n\t\t\n\t\t$content='';\r\n\t\t\r\n\t\t$info = array();\r\n\t\t\r\n\t\t$useragent = \"Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.6)Gecko/20040206 Firefox/1.0.1\"; \r\n\t\tini_set('user_agent',$useragent); \r\n\t\theader('Content-Type: text/html; charset=utf-8');\r\n\t\t$header[] = \"Accept-Language: de-de,de;q=0.5\"; \r\n\t \t$URL = 'http://de.wowhead.com/?zone=3456&xml';\r\n\t \tt3lib_div::devLog('URL', $this->extKey, 0, $URL);\r\n\t \t# CURL initialisieren und XML-Datei laden\r\n\t\t$curl = curl_init();\r\n \t\tcurl_setopt($curl, CURLOPT_URL, $URL);\r\n\t\tcurl_setopt($curl, CURLOPT_USERAGENT, $useragent);\r\n\t\tcurl_setopt($curl, CURLOPT_HTTPHEADER, $header);\r\n\t\tcurl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\r\n \t\t$load = curl_exec($curl);\r\n\t\tcurl_close($curl);\r\n\t\t# eingelesenen String zu SimpleXMLElement umformen\r\n\t\tt3lib_div::devLog('load', $this->extKey, 0, $load);\n\t\n\t\treturn $this->pi_wrapInBaseClass($content);\n\t}", "title": "" }, { "docid": "6634f38a7bf26bee5f181460f259817e", "score": "0.5216176", "text": "public function parseContent(ParserPartProxy $proxy);", "title": "" }, { "docid": "af1af6b76bfe38ebf4352e5963066086", "score": "0.5212237", "text": "function scrape_ParseOutput($out)\n{\n preg_match_all('/\\[a(?P<artid>\\d+).*?\\]/', $out, $matches );\n\n $arts = array();\n foreach($matches[1] as $art_id) {\n $arts[] = array('id'=>$art_id);\n }\n return $arts;\n}", "title": "" }, { "docid": "491e30f581e59cf39ce221f90b47bc41", "score": "0.5208455", "text": "function n24270(&$parser)\n{\n if (strlen($parser->tgt->get_System()) > 0) {\n $parser->tgt->set_System($parser->tgt->get_System() . PHP_EOL . $parser->plugin->result->plugin_output);\n }\n else {\n $parser->tgt->set_System($parser->plugin->result->plugin_output);\n }\n}", "title": "" }, { "docid": "907fda1ca8932e8ad471d58e9d7fa068", "score": "0.520731", "text": "protected function parse()\n {\n $this->_input->parse();\n }", "title": "" }, { "docid": "cc52194632ac9f5cf416269cb15df2d8", "score": "0.51954293", "text": "public function getParsedData() {\n $this->setDefaultData();\n $this->initializeParams();\n $result = sprintf(\n '<title>%s</title>'.LF,\n papaya_strings::escapeHTMLChars($this->data['title'])\n );\n $result .= $this->getArticleSelector();\n $surfer = $this->papaya()->surfer;\n if ($surfer->isValid) {\n $result .= sprintf('<text>%s</text>'.LF, $this->getXHTMLString($this->data['text']));\n if (isset($this->params['upload']) && $this->params['upload'] == 1) {\n $result = $this->uploadFile();\n } else {\n $result .= $this->getUploadForm();\n }\n } else {\n $result = $this->getMessageXml($this->data['error_login']);\n }\n return $result;\n }", "title": "" }, { "docid": "ae63a43b926eb8a8b969608fca7d0ba8", "score": "0.5186322", "text": "function n22869(&$parser)\n{\n $sw_arr = explode(PHP_EOL, $parser->plugin->result->plugin_output);\n $nix_regex = $parser->db->get_Regex_Array(\"nix\");\n\n for ($x = 3; $x < count($sw_arr) - 1; $x++) {\n //$sw = what_software($sw_arr[$x]);\n $sw = software::identify_Software($nix_regex, $sw_arr[$x], true);\n\n if (is_array($sw) && count($sw)) {\n $sw = $sw[0];\n $db_sw = $parser->db->get_Software($sw->get_CPE());\n if (is_array($db_sw) && count($db_sw)) {\n if (!in_array($db_sw[0], $parser->tgt->software)) {\n $parser->tgt->software[] = $db_sw[0];\n }\n }\n }\n }\n}", "title": "" }, { "docid": "178ddfd1b63752bdee7e9763f7e2e917", "score": "0.5181336", "text": "function n56468(&$parser)\n{\n $match = [];\n if (preg_match(\"/([\\d]{14}[\\d\\.\\-]+)/\", $parser->plugin->result->plugin_output, $match)) {\n $dt = DateTime::createFromFormat(\"YmdHis.uO\", $match[1]);\n $parser->tgt->set_Last_Boot($dt);\n }\n elseif (preg_match(\"/^\\n reboot system boot [\\d\\.\\-a-z]+ (.*) \\-.* $/m\", $parser->plugin->result->plugin_output, $match)) {\n $dt = DateTime::createFromFormat(\"D M j H:i\", $match[1]);\n $parser->tgt->set_Last_Boot($dt);\n }\n elseif (preg_match(\"/^\\n\\s+reboot\\s+system boot\\s+(.*) $/\", $parser->plugin->result->plugin_output, $match)) {\n $dt = DateTime::createFromFormat(\"D M j H:i\", $match[1]);\n $parser->tgt->set_Last_Boot($dt);\n }\n}", "title": "" }, { "docid": "8ec50aeb5990aa3d96a2b840ba201571", "score": "0.51786965", "text": "public function getParsedData() {\r\n return array(\r\n $this->getBrowser(),\r\n 'browser' => $this->getBrowser(),\r\n $this->getVersion(),\r\n 'version' => $this->getVersion(),\r\n $this->getPlatform(),\r\n 'platform' => $this->getPlatform(),\r\n $this->getType(),\r\n 'type' => $this->getType()\r\n );\r\n }", "title": "" }, { "docid": "9073f915fea98396c627a8470324e90c", "score": "0.51517445", "text": "function n34096(&$parser)\n{\n\n if (strlen($parser->tgt->get_BIOS()) > 0) {\n $parser->tgt->set_BIOS($parser->tgt->get_BIOS() . PHP_EOL . $parser->plugin->result->plugin_output);\n }\n else {\n $parser->tgt->set_BIOS($parser->plugin->result->plugin_output);\n }\n}", "title": "" }, { "docid": "e51f20448004100fb85d982cd4d9cba0", "score": "0.51502746", "text": "function hongo_extract_shortcode_contents( $m ) {\n global $shortcode_tags;\n\n // Setup the array of all registered shortcodes\n $shortcodes = array_keys( $shortcode_tags );\n $no_space_shortcodes = array( 'dropcap' );\n $omitted_shortcodes = array( 'slide' );\n\n // Extract contents from all shortcodes recursively\n if ( in_array( $m[2], $shortcodes ) && ! in_array( $m[2], $omitted_shortcodes ) ) {\n $pattern = get_shortcode_regex();\n // Add space the excerpt by shortcode, except for those who should stick together, like dropcap\n $space = ' ' ;\n if ( in_array( $m[2], $no_space_shortcodes ) ) {\n $space = '' ;\n }\n $content = preg_replace_callback( \"/$pattern/s\", 'hongo_extract_shortcode_contents', rtrim( $m[5] ) . $space );\n return $content;\n }\n\n // allow [[foo]] syntax for escaping a tag\n if ( $m[1] == '[' && $m[6] == ']' ) {\n return substr( $m[0], 1, -1 );\n }\n\n return $m[1] . $m[6];\n }", "title": "" }, { "docid": "90a05b019e8befd9a916eefc581bd789", "score": "0.5146011", "text": "function processFileContents( $type ) {\n\t\t/**\n\t\t * Establish Working Variables\n\t\t */\n\t\tinclude ( 'includes/working-post-variables.php' );\n\t\t\n\t\tswitch ( $type ) {\n\t\t\tcase 'readme' :\n\t\t\t\t/**\n\t\t\t\t * Build the first section\n\t\t\t\t */\n\t\t\t\t$contents = '=== ' . $pluginName . ' ===' . \"\\n\";\n\t\t\t\t$contents.= 'Contributors: ' . $pluginAuthorWordpress . \"\\n\";\n\t\t\t\t$contents.= 'Donate link:' . $pluginDonateLink . \"\\n\";\n\t\t\t\t$contents.= 'Tags: ' . $pluginTags . \"\\n\";\n\t\t\t\t$contents.= 'Requires at least: ' . $pluginRequiresAtLeast . \"\\n\";\n\t\t\t\t$contents.= 'Tested up to: ' . $pluginTestedUpTo . \"\\n\";\n\t\t\t\t$contents.= 'Stable tag: ' . $pluginVersion . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Build the Description section\n\t\t\t\t */\n\t\t\t\t$contents.= '== Description ==' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t$contents.= 'This is the long description. No limit, and you can use Markdown (as well as in the following sections).' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Build the Installation section\n\t\t\t\t */\n\t\t\t\t$contents.= '== Installation ==' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t$contents.= 'This section describes how to install the plugin and get it working.' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t$contents.= 'e.g.' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t$contents.= '1. Upload `plugin-name.php` to the `/wp-content/plugins/` directory' . \"\\n\";\n\t\t\t\t$contents.= \"1. Activate the plugin through the 'Plugins' menu in WordPress\" . \"\\n\";\n\t\t\t\t$contents.= \"1. Place `<?php do_action('plugin_name_hook'); ?>` in your templates\" . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t$contents.= '***INSERT MORE DESCRIPTION HERE***' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Build the FAQ section\n\t\t\t\t */\n\t\t\t\t$contents.= '== Frequently Asked Questions ==' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t$contents.= '= A question that someone might have =' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t$contents.= 'An answer to that question.' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t$contents.= '= What about foo bar? =' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t$contents.= 'Answer to foo bar dilemma.' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t$contents.= '***INSERT MORE FAQ HERE***' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Build the Screenshots section\n\t\t\t\t */\n\t\t\t\t$contents.= '== Screenshots ==' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t$contents.= '1. This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from' . \"\\n\";\n\t\t\t\t$contents.= 'the directory of the stable readme.txt, so in this case, `/tags/4.3/screenshot-1.png` (or jpg, jpeg, gif)' . \"\\n\";\n\t\t\t\t$contents.= '2. This is the second screen shot' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t$contents.= '***INSERT MORE SCREENSHOTS HERE***' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Build the Changelog section\n\t\t\t\t */\n\t\t\t\t$contents.= '== Changelog ==' . \"\\n\";\n\t\t\t\t$contents.= '***INSERT MORE CHANGELOGS HERE***' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t$contents.= \"= \" . $pluginVersion . \" =\" . \"\\n\";\n\t\t\t\t$contents.= \"* Initial Release\" . \"\\n\";\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'init' :\n\t\t\t\t$contents = '<?php' . \"\\n\";\n\t\t\t\t$contents.= '/*' . \"\\n\";\n\t\t\t\t$contents.= 'Plugin Name: ' . $pluginName . \"\\n\";\n\t\t\t\t$contents.= 'Plugin URI: ' . $pluginURI . \"\\n\";\n\t\t\t\t$contents.= 'Description: ' . $pluginDescription . \"\\n\";\n\t\t\t\t$contents.= 'Version: ' . $pluginVersion . \"\\n\";\n\t\t\t\t$contents.= 'Author: ' . $pluginAuthor . \"\\n\";\n\t\t\t\t$contents.= 'Author URI: ' . $pluginAuthorURI . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t$contents.= 'Copyright ' . date('Y') . ' ' . $pluginAuthor .' (email : ' . $pluginAuthorEmail . ')' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t$contents.= 'This program is free software; you can redistribute it and/or modify' . \"\\n\";\n\t\t\t\t$contents.= 'it under the terms of the GNU General Public License, version 2, as ' . \"\\n\";\n\t\t\t\t$contents.= 'published by the Free Software Foundation.' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t$contents.= 'This program is distributed in the hope that it will be useful,' . \"\\n\";\n\t\t\t\t$contents.= 'but WITHOUT ANY WARRANTY; without even the implied warranty of' . \"\\n\";\n\t\t\t\t$contents.= 'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the' . \"\\n\";\n\t\t\t\t$contents.= 'GNU General Public License for more details.' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t$contents.= 'You should have received a copy of the GNU General Public License' . \"\\n\";\n\t\t\t\t$contents.= 'along with this program; if not, write to the Free Software' . \"\\n\";\n\t\t\t\t$contents.= 'Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA' . \"\\n\";\n\t\t\t\t$contents.= '*/' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t$contents.= \"require_once ('\" . $pluginPrefix . \"-class.php');\" . \"\\n\";\n\t\t\t\t$contents.= $objectVarName . ' = new ' . $className . ';' . \"\\n\";\n\t\t\t\t$contents.= \"\\n\";\n\t\t\t\t$contents.= \"register_activation_hook( __FILE__, array( &\" . $objectVarName . \", 'installPlugin' ) );\" . \"\\n\";\n\t\t\t\t$contents.= \"register_activation_hook( __FILE__, array( &\" . $objectVarName . \", 'uninstallPlugin' ) );\" . \"\\n\";\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'class' :\n\t\t\t\t/**\n\t\t\t\t * Beginning\n\t\t\t\t */\n\t\t\t\t$contents = '<?php' . \"\\n\";\n\t\t\t\t$contents.= 'class ' . $className .' {' . \"\\n\";\n\t\t\t\t\n\n\t\t\t\t/**\n\t\t\t\t * Declare Global Variables\n\t\t\t\t */\n\t\t\t\t$contents.= $this->newClassCode( 'classVariables' ); \n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Construct function\n\t\t\t\t */\n\t\t\t\t$contents.= $this->newClassCode( 'classConstruct' ); \n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Admin Init\n\t\t\t\t */\n\t\t\t\t$contents.= $this->newClassCode( 'classAdminInit' );\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Admin Menu\n\t\t\t\t */\n\t\t\t\t$contents.= $this->newClassCode( 'classAdminMenu' );\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Add Views\n\t\t\t\t */\n\t\t\t\t$contents.= $this->newClassCode( 'classAddViews' );\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Plugin Basic Structure\n\t\t\t\t */\n\t\t\t\t$contents.= $this->newClassCode( 'classAddBasicStructure' );\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Ending\n\t\t\t\t */\n\t\t\t\t$contents.= '}';\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn $contents;\n\t}", "title": "" }, { "docid": "b80d93300a63269d2c7f0c0acdbef236", "score": "0.5143259", "text": "public function Widgetify() {\n\t\t$content = $this->_widgetify();\n\t\t$content = SSViewer::fromString($content)->process($this);\n\t\treturn ShortcodeParser::get()->parse($content);\n\t}", "title": "" }, { "docid": "969ee4e9327f58f38f09c19e45e6f83d", "score": "0.5140929", "text": "function parse() {\n $this->output = '';\n # drop tags\n $this->parser->html = preg_replace('#<('.implode('|', $this->drop).')[^>]*>.*</\\\\1>#sU', '', $this->parser->html);\n while ($this->parser->nextNode()) {\n switch ($this->parser->nodeType) {\n case 'doctype':\n break;\n case 'pi':\n case 'comment':\n if ($this->keepHTML) {\n $this->flushLinebreaks();\n $this->out($this->parser->node);\n $this->setLineBreaks(2);\n }\n # else drop\n break;\n case 'text':\n $this->handleText();\n break;\n case 'tag':\n if (in_array($this->parser->tagName, $this->ignore)) {\n break;\n }\n if ($this->parser->isStartTag) {\n $this->flushLinebreaks();\n }\n if ($this->skipConversion) {\n $this->isMarkdownable(); # update notConverted\n $this->handleTagToText();\n continue;\n }\n if (!$this->parser->keepWhitespace && $this->parser->isBlockElement && $this->parser->isStartTag) {\n $this->parser->html = ltrim($this->parser->html);\n }\n if ($this->isMarkdownable()) {\n if ($this->parser->isBlockElement && $this->parser->isStartTag && !$this->lastWasBlockTag && !empty($this->output)) {\n if (!empty($this->buffer)) {\n $str =& $this->buffer[count($this->buffer) -1];\n } else {\n $str =& $this->output;\n }\n if (substr($str, -strlen($this->indent)-1) != \"\\n\".$this->indent) {\n $str .= \"\\n\".$this->indent;\n }\n }\n $func = 'handleTag_'.$this->parser->tagName;\n $this->$func();\n if ($this->linksAfterEachParagraph && $this->parser->isBlockElement && !$this->parser->isStartTag && empty($this->parser->openTags)) {\n $this->flushStacked();\n }\n if (!$this->parser->isStartTag) {\n $this->lastClosedTag = $this->parser->tagName;\n }\n } else {\n $this->handleTagToText();\n $this->lastClosedTag = '';\n }\n break;\n default:\n trigger_error('invalid node type', E_USER_ERROR);\n break;\n }\n $this->lastWasBlockTag = $this->parser->nodeType == 'tag' && $this->parser->isStartTag && $this->parser->isBlockElement;\n }\n if (!empty($this->buffer)) {\n trigger_error('buffer was not flushed, this is a bug. please report!', E_USER_WARNING);\n while (!empty($this->buffer)) {\n $this->out($this->unbuffer());\n }\n }\n ### cleanup\n $this->output = rtrim(str_replace('&amp;', '&', str_replace('&lt;', '<', str_replace('&gt;', '>', $this->output))));\n # end parsing, flush stacked tags\n $this->flushStacked();\n $this->stack = array();\n }", "title": "" }, { "docid": "07e35fe877f6825b5ce1a1d6d8e50d47", "score": "0.51324034", "text": "function parse()\n{\nif ($this->compressed_size >= $this->min_compressed_size)\n{\n// Check ID1, ID2, and CM\nif (substr($this->compressed_data, 0, 3) !== \"\\x1F\\x8B\\x08\")\n{\nreturn false;\n}\n\n// Get the FLG (FLaGs)\n$this->flags = ord($this->compressed_data[3]);\n\n// FLG bits above (1 << 4) are reserved\nif ($this->flags > 0x1F)\n{\nreturn false;\n}\n\n// Advance the pointer after the above\n$this->position += 4;\n\n// MTIME\n$mtime = substr($this->compressed_data, $this->position, 4);\n// Reverse the string if we're on a big-endian arch because l is the only signed long and is machine endianness\nif (current(unpack('S', \"\\x00\\x01\")) === 1)\n{\n$mtime = strrev($mtime);\n}\n$this->MTIME = current(unpack('l', $mtime));\n$this->position += 4;\n\n// Get the XFL (eXtra FLags)\n$this->XFL = ord($this->compressed_data[$this->position++]);\n\n// Get the OS (Operating System)\n$this->OS = ord($this->compressed_data[$this->position++]);\n\n// Parse the FEXTRA\nif ($this->flags & 4)\n{\n// Read subfield IDs\n$this->SI1 = $this->compressed_data[$this->position++];\n$this->SI2 = $this->compressed_data[$this->position++];\n\n// SI2 set to zero is reserved for future use\nif ($this->SI2 === \"\\x00\")\n{\nreturn false;\n}\n\n// Get the length of the extra field\n$len = current(unpack('v', substr($this->compressed_data, $this->position, 2)));\n$this->position += 2;\n\n// Check the length of the string is still valid\n$this->min_compressed_size += $len + 4;\nif ($this->compressed_size >= $this->min_compressed_size)\n{\n// Set the extra field to the given data\n$this->extra_field = substr($this->compressed_data, $this->position, $len);\n$this->position += $len;\n}\nelse\n{\nreturn false;\n}\n}\n\n// Parse the FNAME\nif ($this->flags & 8)\n{\n// Get the length of the filename\n$len = strcspn($this->compressed_data, \"\\x00\", $this->position);\n\n// Check the length of the string is still valid\n$this->min_compressed_size += $len + 1;\nif ($this->compressed_size >= $this->min_compressed_size)\n{\n// Set the original filename to the given string\n$this->filename = substr($this->compressed_data, $this->position, $len);\n$this->position += $len + 1;\n}\nelse\n{\nreturn false;\n}\n}\n\n// Parse the FCOMMENT\nif ($this->flags & 16)\n{\n// Get the length of the comment\n$len = strcspn($this->compressed_data, \"\\x00\", $this->position);\n\n// Check the length of the string is still valid\n$this->min_compressed_size += $len + 1;\nif ($this->compressed_size >= $this->min_compressed_size)\n{\n// Set the original comment to the given string\n$this->comment = substr($this->compressed_data, $this->position, $len);\n$this->position += $len + 1;\n}\nelse\n{\nreturn false;\n}\n}\n\n// Parse the FHCRC\nif ($this->flags & 2)\n{\n// Check the length of the string is still valid\n$this->min_compressed_size += $len + 2;\nif ($this->compressed_size >= $this->min_compressed_size)\n{\n// Read the CRC\n$crc = current(unpack('v', substr($this->compressed_data, $this->position, 2)));\n\n// Check the CRC matches\nif ((crc32(substr($this->compressed_data, 0, $this->position)) & 0xFFFF) === $crc)\n{\n$this->position += 2;\n}\nelse\n{\nreturn false;\n}\n}\nelse\n{\nreturn false;\n}\n}\n\n// Decompress the actual data\nif (($this->data = gzinflate(substr($this->compressed_data, $this->position, -8))) === false)\n{\nreturn false;\n}\nelse\n{\n$this->position = $this->compressed_size - 8;\n}\n\n// Check CRC of data\n$crc = current(unpack('V', substr($this->compressed_data, $this->position, 4)));\n$this->position += 4;\n/*if (extension_loaded('hash') && sprintf('%u', current(unpack('V', hash('crc32b', $this->data)))) !== sprintf('%u', $crc))\n{\nreturn false;\n}*/\n\n// Check ISIZE of data\n$isize = current(unpack('V', substr($this->compressed_data, $this->position, 4)));\n$this->position += 4;\nif (sprintf('%u', strlen($this->data) & 0xFFFFFFFF) !== sprintf('%u', $isize))\n{\nreturn false;\n}\n\n// Wow, against all odds, we've actually got a valid gzip string\nreturn true;\n}\nelse\n{\nreturn false;\n}\n}", "title": "" }, { "docid": "847f6bde42a7a82dca8a5a9e7ad1ea91", "score": "0.5131837", "text": "function n45590(&$parser)\n{\n return;\n // this is a duplicate of the <tag name=\"cpe-\\d\"> in the host properties section, may remove since parsing CPE in host properties\n $match = [];\n\n if (preg_match(\"/(cpe\\:\\/o[^\\s]+)/\", $parser->plugin->result->plugin_output, $match)) {\n $os_cpe = $match[1];\n\n $os = $parser->db->get_Software($os_cpe, true);\n if (is_array($os) && count($os)) {\n if ($os[0]->get_ID() != $parser->tgt->get_OS_ID()) {\n $parser->tgt->set_OS_ID($os[0]->get_ID());\n $parser->log->script_log(\"Enhancing OS detection with \" . $os[0]->get_Man() . \" \" . $os[0]->get_Name() . \" \" . $os[0]->get_Version);\n }\n }\n }\n\n $cpes = explode(PHP_EOL, $parser->plugin->result->plugin_output);\n $cpes = array_values(preg_grep(\"/cpe\\:\\/a/i\", $cpes));\n\n if (is_array($cpes) && count($cpes)) {\n foreach ($cpes as $cpe) {\n $cpe = preg_replace(\"/(cpe\\:[^\\s]+)/\", \"$1\", $cpe);\n\n $sw = $parser->db->get_Software($cpe, true);\n if (is_array($sw) && count($sw)) {\n if (!in_array($sw[0], $parser->tgt->software)) {\n $parser->tgt->software[] = $sw[0];\n $parser->log->script_log(\"Adding software \" . $sw[0]->get_Man() . \" \" . $sw[0]->get_Name() . \" \" . $sw[0]->get_Version());\n }\n }\n }\n }\n}", "title": "" }, { "docid": "427645b7cb654c082a385e03edcaee39", "score": "0.51255035", "text": "protected function parse() { $this->file->readBlock();\n $this->file->readBlock();\n $this->file->readBlock();\n $this->file->readBlock();\n }", "title": "" }, { "docid": "0bbc16329b93225bd49001587d9a2afe", "score": "0.51254106", "text": "public function parse($contents) {\n\n\t\t// Trim newlines from the document\n\t\t$contents = trim($contents);\n\n\t\t// Convert \\r\\n or \\r style newlines to \\n\n\t\t$contents = preg_replace(\"/\\r\\n|\\r/\", \"\\n\", $contents);\n\n\t\t// Add two line breaks to the end of the page (ref FastFountainParser.m:53)\n\t\t$contents .= \"\\n\\n\";\n\n\n\n\t\t// Keep track of preceding newlines\n\t\t$newlines_before = 0;\n\t\t$newline = FALSE;\n\n\t\t// Keep track of whether we are inside a comment block, and what its text is\n\t\t$comment_block = FALSE;\n\t\t$comment_text = \"\";\n\n\t\t// Keep track of whether we are inside a dialog block\n\t\t$dialog_block = FALSE;\n\n\t\t// Break into lines\n\t\t$lines = explode(\"\\n\", $contents);\n\n\t\t// Process each line\n\t\tforeach ($lines as $line_number => $line) {\n\n\t\t\t// Reset the newline count if necessary\n \tif (!$newline) {\n \t\t$newlines_before = 0;\n \t}\n\n\t\t\t// Check for a blank line (is empty, or has whitespace characters)\n\t\t\tif (($line == \"\" || preg_match(\"/^\\s*$/\", $line)) && !$comment_block) {\n\n\t\t\t\t// Blank lines end dialog blocks\n\t\t\t\t$dialog_block = FALSE;\n\n\t\t\t\t// Increment newline count\n\t\t\t\t$newlines_before ++;\n\t\t\t\t$newline = TRUE;\n\n\t\t\t\t// No further processing of this line is needed\n\t\t\t\tcontinue;\n\n\t\t\t} else {\n\n\t\t\t\t// Note that this isn't a newline\n\t\t\t\t$newline = FALSE;\n\t\t\t}\n\n\n\t\t\t// Comment Blocks\n\t\t\t// Check whether a comment starts or ends on this line\n\t\t\t$comment_start = preg_match(\"/^\\/\\*/\", $line);\n\t\t\t$comment_end = preg_match(\"/\\*\\/\\s*$/\", $line);\n\n\t\t\t// If this is the start, middle, or end of a comment block\n\t\t\tif ($comment_start || $comment_end || $comment_block) {\n\n\t\t\t\t// If it starts on this line\n\t\t\t\tif ($comment_start) {\n\n\t\t\t\t\t// Note this as the start of a comment block\n\t\t\t\t\t$comment_block = TRUE;\n\n\t\t\t\t}\n\n\t\t\t\t// If the comment continues on this line\n\t\t\t\tif ($comment_block) {\n\n\t\t\t\t\t// Add this line to the comment text\n\t\t\t\t\t$comment_text .= \"$line\\n\";\n\n\t\t\t\t}\n\n\t\t\t\t// If the comment ends on this line\n\t\t\t\tif ($comment_end) {\n\n\t\t\t\t\t// Remove /* and */\n\t\t\t\t\t$comment_text = str_replace(array(\"/*\", \"*/\"), \"\", $comment_text);\n\n\t\t\t\t\t// Add a Boneyard Element\n\t\t\t\t\t$this->add_element(\"Boneyard\", $comment_text);\n\n\t\t\t\t\t// Note that we aren't in a comment anymore and reset the text\n\t\t\t\t\t$comment_block = FALSE;\n\t\t\t\t\t$comment_text = \"\";\n\n\t\t\t\t}\n\n\t\t\t\t// No further processing of this line is needed\n\t\t\t\tcontinue;\n\n\t\t\t}\n\n\t\t\t// Page Breaks (===)\n\t\t\tif (preg_match(\"/^={3,}\\s*$/\", $line)) {\n\n\t\t\t\t// Add a page break element\n\t\t\t\t$this->add_element(\"Page Break\", $line);\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Synopsis - if there aren't any preceding newlines, and there's a \"=\"\n\t\t\tif ($newlines_before && substr(trim($line), 0, 1) == \"=\") {\n\n\t\t\t\t// Find the text of the synopsis\n\t\t\t\tpreg_match(\"/^\\s*={1}(.*)/\", $line, $matches);\n\n\t\t\t\t// Add a synopsis element\n\t\t\t\t$this->add_element(\"Synopsis\", $matches[1]);\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Comment [[ ]] start spaces [[ spaces capture\n\t\t\tif ($newlines_before && preg_match(\"/^\\s*\\[{2}\\s*([^\\]\\n])+\\s*\\]{2}\\s*$/\", $line)) {\n\n\t\t\t\t// Trim whitespace and [[ ]]\n\t\t\t\t$text = trim(str_replace(array(\"[[\", \"]]\"), \"\", $line));\n\n\t\t\t\t// Add a comment element\n\t\t\t\t$this->add_element(\"Comment\", $text);\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Section heading - check if this line starts with a #\n\t\t\tif ($newlines_before && substr(trim($line), 0, 1) == \"#\") {\n\n\t\t\t\t// Find the number of # (##, ###, etc.) and the text\n\t\t\t\tpreg_match(\"/^\\s*(#+)\\s*(.*)/\", $line, $matches);\n\t\t\t\tlist ($raw, $depth, $text) = $matches;\n\n\t\t\t\t// Convert depth to a number\n\t\t\t\t$depth = strlen($depth);\n\n\t\t\t\t// Add a Section Heading\n\t\t\t\t$this->add_element(\"Section Heading\", $text, array(\n\t\t\t\t\t\"depth\" => $depth\n\t\t\t\t));\n\n\t\t\t\tcontinue;\n\n\t\t\t}\n\n\t\t\t// Scene Headings\n\t\t\t// Check if this is a forced or normal scene heading\n\t\t\t$forced_scene_heading = preg_match(\"/^\\.[^\\.]/\", $line);\n\t\t\t$scene_heading = preg_match(\"/^(INT|EXT|EST|I\\/??E)[\\.\\-\\s]/i\", $line, $scene_heading_matches);\n\n\t\t\tif ($forced_scene_heading || $scene_heading) {\n\n\t\t\t\t// Remove the prefix\n\t\t\t\tif ($forced_scene_heading) {\n\t\t\t\t\t$prefix_length = 1;\n\t\t\t\t} else {\n\t\t\t\t\t$prefix_length = strlen($scene_heading_matches[0]);\n\t\t\t\t}\n\n\t\t\t\t$line_without_prefix = substr($line, $prefix_length);\n\n\t\t\t\t// Find the text and optional scene number\n\t\t\t\tif (preg_match(\"/^(.*?)(?:|\\s*#([^\\n#]*?)#\\s*)$/\", $line_without_prefix, $matches)) {\n\n\t\t\t\t\tlist($raw, $text, $scene_number) = $matches;\n\n\t\t\t\t\t// Add a scene heading element\n\t\t\t\t\t$this->add_element(\"Scene Heading\", $text, array(\n\t\t\t\t\t\t\"scene_number\" => $scene_number,\n\t\t\t\t\t));\n\n\t\t\t\t}\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Transition - check whether it is in a list of transitions\n\t\t\t$transitions = array(\n\t\t\t\t\"CUT TO:\",\n\t\t\t\t\"FADE OUT.\",\n\t\t\t\t\"SMASH CUT TO:\",\n\t\t\t\t\"CUT TO BLACK.\",\n\t\t\t\t\"MATCH CUT TO:\"\n\t\t\t);\n\n\t\t\tif (in_array(trim($line), $transitions)) {\n\n\t\t\t\t// Add a transition element\n\t\t\t\t$this->add_element(\"Transition\", $line);\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Forced Transition - check whether the line starts with > (and doesn't end with <, which would make it a centered action)\n\t\t\tif (substr($line, 0, 1) == \">\" && substr($line, strlen($line) - 1) != \"<\") {\n\n\t\t\t\t// Find the text\n\t\t\t\t$text = substr($line, 1);\n\n\t\t\t\t// Add a transition element\n\t\t\t\t$this->add_element(\"Transition\", $text);\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\n \t\t\t// Character - check if there is a newline preceding, and consists of entirely uppercase characters\n \t\t\tif ($newlines_before && preg_match(\"/^[^a-z]+$/\", $line)) {\n\n \t\t\t\t// Make sure the next line isn't blank or non-existent\n \t\t\t\tif (isset($lines[$line_number + 1]) && $lines[$line_number + 1] != \"\") {\n\n \t\t\t\t\t// This is a character, check if it's dual dialog\n \t\t\t\t\t$dual_dialog = FALSE;\n\n \t\t\t\t\tif (preg_match(\"/\\^\\s*$/\", $line)) {\n\n \t\t\t\t\t\t// It is dual dialog,\n \t\t\t\t\t\t$dual_dialog = TRUE;\n\n \t\t\t\t\t\t// Check for a previous character - grab it by reference if it exists\n \t\t\t\t\t\tif ($previous_character = &$this->elements()->find_last_element_of_type(\"Character\")) {\n\n \t\t\t\t\t\t\t// Set it to dual dialog\n \t\t\t\t\t\t\t$previous_character->dual_dialog = TRUE;\n\n \t\t\t\t\t\t}\n\n \t\t\t\t\t}\n\n \t\t\t\t\t// Add a character element\n \t\t\t\t\t$this->add_element(\"Character\", $line, array(\n \t\t\t\t\t\t\"dual_dialog\" => $dual_dialog\n \t\t\t\t\t));\n\n \t\t\t\t\t// Note that we're within a dialog block\n \t\t\t\t\t$dialog_block = TRUE;\n\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t}\n\n \t\t\t// Dialog (and Parentheticals) - check if we're inside a dialog block\n \t\t\tif ($dialog_block) {\n\n \t\t\t\t// Check if there are newlines preceding, and if there is a (\n \t\t\t\tif (!$newlines_before && preg_match(\"/^\\s*\\(/\", $line)) {\n\n \t\t\t\t\t// Add a parenthetical element\n \t\t\t\t\t$this->add_element(\"Parenthetical\", $line);\n\n \t\t\t\t} else {\n\n \t\t\t\t\t// Check if the previous element was dialogue\n \t\t\t\t\t$last_element = &$this->elements()->last_element();\n \t\t\t\t\tif ($last_element->type == \"Dialogue\") {\n\n \t\t\t\t\t\t// The previous element was dialogue, so we'll combine the text and set it\n \t\t\t\t\t\t$last_element->text .= \"\\n\" . $line;\n\n \t\t\t\t\t} else {\n\n \t\t\t\t\t\t// Create a new dialogue element\n \t\t\t\t\t\t$this->add_element(\"Dialogue\", $line);\n\n \t\t\t\t\t}\n\n \t\t\t\t}\n\n \t\t\t\tcontinue;\n\n \t\t\t}\n\n\n \t\t\t// If there were no newlines, and this isn't our first element\n \t\t\tif (!$newlines_before && $this->elements()->count()) {\n\n \t\t\t\t// Find the previous element\n \t\t\t\t$last_element = &$this->elements()->last_element();\n\n \t\t\t\t// Add this line to it and save it back\n \t\t\t\t$last_element->text .= \"\\n\" . $line;\n\n \t\t\t\tcontinue;\n\n \t\t\t} else {\n\n \t\t\t\t// Add an action element\n \t\t\t\t$this->add_element(\"Action\", $line);\n\n \t\t\t\tcontinue;\n \t\t\t}\n\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "2bb0fca3ebaa32aa4988b4da027997a3", "score": "0.5125154", "text": "private function _parse_text($script)\n {\n $prefix = '';\n $options = array();\n $position = 0;\n $length = strlen($script);\n\n while ($position < $length) {\n // skip whitespace chars\n $position = self::ltrim_position($script, $position);\n $rulename = '';\n\n // Comments\n while ($script[$position] === '#') {\n $endl = strpos($script, \"\\n\", $position) ?: $length;\n $line = substr($script, $position, $endl - $position);\n\n // Roundcube format\n if (preg_match('/^# rule:\\[(.*)\\]/', $line, $matches)) {\n $rulename = $matches[1];\n }\n // KEP:14 variables\n else if (preg_match('/^# (EDITOR|EDITOR_VERSION) (.+)$/', $line, $matches)) {\n $this->set_var($matches[1], $matches[2]);\n }\n // Horde-Ingo format\n else if (!empty($options['format']) && $options['format'] == 'INGO'\n && preg_match('/^# (.*)/', $line, $matches)\n ) {\n $rulename = $matches[1];\n }\n else if (empty($options['prefix'])) {\n $prefix .= $line . \"\\n\";\n }\n\n $position = $endl + 1;\n }\n\n // handle script header\n if (empty($options['prefix'])) {\n $options['prefix'] = true;\n if ($prefix && strpos($prefix, 'horde.org/ingo')) {\n $options['format'] = 'INGO';\n }\n }\n\n // Control structures/blocks\n if (preg_match('/^(if|else|elsif)/i', substr($script, $position, 5))) {\n $rule = $this->_tokenize_rule($script, $position);\n if (strlen($rulename) && !empty($rule)) {\n $rule['name'] = $rulename;\n }\n }\n // Simple commands\n else {\n $rule = $this->_parse_actions($script, $position, ';');\n if (!empty($rule[0]) && is_array($rule)) {\n // set \"global\" variables\n if ($rule[0]['type'] == 'set') {\n unset($rule[0]['type']);\n $this->vars[] = $rule[0];\n unset($rule);\n }\n else {\n $rule = array('actions' => $rule);\n }\n }\n }\n\n if (!empty($rule)) {\n $this->content[] = $rule;\n }\n }\n\n if (!empty($prefix)) {\n $this->prefix = trim($prefix);\n }\n }", "title": "" } ]
1c1dc36f84a6459c13389782e5209053
get available dates for a specific month
[ { "docid": "eb4482dd6be67861261669fe7882ec16", "score": "0.5472983", "text": "public function datesAction()\n {\n $this->layout('layout/json');\n\n $oJSON = json_decode($this->getRequest()->getContent());\n if(!is_object($oJSON)) {\n $aReturn = [\n 'state' => 'error',\n 'message' => 'invalid json',\n ];\n } else {\n $sDate = $oJSON->month;\n $aDateInfo = explode('-',$sDate);\n $iMonth = (int)$aDateInfo[1];\n $iYear = (int)$aDateInfo[0];\n $iContactID = $oJSON->contact_id;\n\n $oSlotsDB = $this->aPluginTbls['booking-slot']->select([\n 'contact_idfs' => $iContactID,\n ]);\n $aDatesThisMonth = [];\n $aSlotsByWeekDay = [];\n if(count($oSlotsDB) > 0) {\n foreach ($oSlotsDB as $oSlot) {\n if(!array_key_exists($oSlot->weekday,$aSlotsByWeekDay)) {\n $aSlotsByWeekDay[$oSlot->weekday] = [];\n }\n $aSlotsByWeekDay[$oSlot->weekday][] = (object)['start' => $oSlot->time_start,'end' => $oSlot->time_end];\n }\n }\n\n for($iNextMonth = 1;$iNextMonth <= 12;$iNextMonth++) {\n $iDays = cal_days_in_month( 0, $iMonth, $iYear);\n for($iDay = 1;$iDay <= $iDays;$iDay++) {\n $sDateCheck = $iYear.'-'.\n str_pad(\"\".$iMonth.\"\", 2, '0', STR_PAD_LEFT).'-'.\n str_pad(\"\".$iDay.\"\", 2, '0', STR_PAD_LEFT);\n $iWeekday = date('w', strtotime($sDateCheck));\n if(array_key_exists($iWeekday,$aSlotsByWeekDay)) {\n $aDatesThisMonth[] = $sDateCheck;\n }\n }\n $iMonth++;\n if($iMonth > 12) {\n $iMonth = 1;\n $iYear++;\n }\n }\n\n\n $aReturn = [\n 'state' => 'success',\n 'results' => $aDatesThisMonth,\n 'message' => 'found '.count($aDatesThisMonth).' dates available for month '.$iMonth,\n 'pagination' => (object)['more'=>false],\n ];\n }\n\n header('Content-Type: application/json');\n echo json_encode($aReturn);\n\n return false;\n }", "title": "" } ]
[ { "docid": "45bcc06b1a48d775039a45deddde27c8", "score": "0.682269", "text": "protected function get_cal_dates_2($current_month)\n\t{\n\t\t// for pending.\n\t\t$dates_range = array();\n\t\t$query = $this->get_calendar_dates_db($current_month, 'pending');\n\t\tforeach ($query as $row) {\n\t\t\t$dates_range = $this->my_join_arrays($dates_range, $this->the_booked_days($row->start_date, $row->end_date, 'pending', $current_month));\n\t\t}\n\t\t// for confirmed..\n\t\t$query2 = $this->get_calendar_dates_db($current_month, 'confirmed');\n\t\tforeach ($query2 as $row2) {\n\t\t\t$dates_range = $this->my_join_arrays($dates_range, $this->the_booked_days($row2->start_date, $row2->end_date, 'taken', $current_month));\n\t\t}\n\n\t\treturn $dates_range;\n\n\n\t}", "title": "" }, { "docid": "db68c6e140f25c6f270a91d5eb86c27c", "score": "0.6817639", "text": "static function getMonthList($from,$to){\n\n $list=array(date('F Y'));\n\n $begin = new DateTime($from);\n $end = new DateTime($to);\n $i=0;\n while ($begin <= $end) {\n\n $list[$i]=$begin->format('F Y');\n $begin->modify('first day of next month');\n\n ++$i;\n }\n\n return $list;\n\n}", "title": "" }, { "docid": "6fa8b402084ff45bb9eb83d373d1322e", "score": "0.6696517", "text": "function getBonusDatesByMonth()\n {\n $months=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];\n $bonusData = [];\n foreach($months as $key => $month){\n $date = date(\"Y-m-d\", mktime(0,0,0,$month,15));\n if(in_array(date('l', strtotime($date)), ['Saturday', 'Sunday'])){\n $date = date('Y-m-d', strtotime('next wednesday', strtotime($date)));\n }\n\n $bonusData[date(\"F\",strtotime($date))] = $date;\n }\n return $bonusData;\n }", "title": "" }, { "docid": "8b4a79e1d3be9f2dec1a21bb7654fb52", "score": "0.669258", "text": "public function get_not_available_months( $from_year, $from_month, $to_year, $to_month ) {\n $dates = $this->get_not_available_dates( $from_year, $from_month, $to_year, $to_month, 'month', false, false );\n $number_of_dates = count( $dates );\n if ( $number_of_dates < 1 ) {\n return array();\n }\n\n $zero_array = array_fill( 0, $number_of_dates, 0 );\n $seven_array = array_fill( 0, $number_of_dates, 7 );\n $dates = array_map( 'substr', $dates, $zero_array, $seven_array );\n\n return $dates;\n }", "title": "" }, { "docid": "761246c279b287e7a0e58759e71627b7", "score": "0.669235", "text": "public function get_month_range()\n\t{\n\t\t$start = $this->month_url() . '-01';\n\t\t$end = $this->_end_date($start, 'month');\n\t\treturn array($start, $end);\n\t}", "title": "" }, { "docid": "bca0212142af6b930341a92565f387e7", "score": "0.64950776", "text": "public function get_not_available_dates( $from_year, $from_month, $to_year, $to_month, $range = 'day', $exclude_booked = false, $check_start_date = false, $check_min_max_duration = true ) {\n $args = compact( 'from_year', 'from_month', 'to_year', 'to_month', 'range', 'exclude_booked', 'check_start_date', 'check_min_max_duration' );\n $dates = apply_filters( 'yith_wcbk_product_get_not_available_dates_before', null, $args, $this );\n if ( !is_null( $dates ) ) {\n return $dates;\n }\n $cached_key = array_merge( array( 'function' => __FUNCTION__ ), $args );\n\n if ( $this->has_external_calendars() && !$this->has_externals_synchronized() ) {\n $cached_value = null; // not use cache to consider new data for external calendars\n } else {\n $cached_value = YITH_WCBK_Cache()->get_product_data( $this->get_id(), $cached_key );\n }\n\n if ( !is_null( $cached_value ) ) {\n $dates = $cached_value;\n } else {\n $calendar = $this->create_availability_calendar( $from_year, $from_month, $to_year, $to_month, 'not_bookable', $range, $exclude_booked, $check_start_date, $check_min_max_duration );\n $dates = array();\n foreach ( $calendar as $year => $months ) {\n foreach ( $months as $month => $days ) {\n if ( $month < 10 ) {\n $month = '0' . $month;\n }\n foreach ( $days as $day => $bookable ) {\n if ( $day < 10 ) {\n $day = '0' . $day;\n }\n $dates[] = $year . '-' . $month . '-' . $day;\n }\n }\n }\n YITH_WCBK_Cache()->set_product_data( $this->get_id(), $cached_key, $dates );\n }\n\n return apply_filters( 'yith_wcbk_product_get_not_available_dates', $dates, $args, $this );\n }", "title": "" }, { "docid": "56db4d03edde273f4ba437c4c34a85d7", "score": "0.64298284", "text": "function getMonthSelected($dateArr)\n{\n $selected = [];\n $pageInfo = DB::fetchAll(DB_NUMBER, \"\n SELECT count(`MerchantReferenceId`) AS total,\n date_format(`BookingDate`, '%Y-%m-01') AS `month`\n FROM (\n SELECT DISTINCT `MerchantReferenceId` AS `MerchantReferenceId`, `BookingDate`\n FROM `payment`\n WHERE `BookingDate` BETWEEN '{$dateArr['start']}' AND '{$dateArr['end']}'\n ) AS PM\n GROUP BY `month`\n \");\n $pageNew = [];\n if ($pageInfo) {\n\n foreach ($pageInfo as $item) {\n $pageNew[$item['month']] = $item;\n }\n }\n $months = getLineMonth($dateArr['start'], $dateArr['end']);\n foreach($months as $month)\n {\n if (isset($pageNew[$month])) {\n $selected[] = [\n \"date\" => intval(strtotime($month) . '000'),\n \"txs\" => (int)(isset($pageNew[$month]['total']) && $pageNew[$month]['total']?$pageNew[$month]['total']:0)\n ];\n } else {\n $selected[] = [\n \"date\" => intval(strtotime($month) . '000'),\n \"txs\" => (int)(isset($pageNew[$month]['total']) && $pageNew[$month]['total']?$pageNew[$month]['total']:0)\n ];\n }\n }\n return $selected;\n}", "title": "" }, { "docid": "492b4ebd99fa560a4e6754f924eb88f0", "score": "0.64159757", "text": "function get_month_list() {\n\t$starting_day = strtotime(get_mad_year_starting_date());\n\tfor($i = 0; $i < 12; $i++) {\n\t\t$months[] = date('Y-m', mktime(0,0,0, date('m', $starting_day) + $i, 1, date('Y', $starting_day)));\n\t}\n\treturn $months;\n}", "title": "" }, { "docid": "818e2522e632ff76aeffed9473a7f4f2", "score": "0.6375182", "text": "function get_calendar_months($cal_params) {\n $start_day = $cal_params->start_date['day'];\n $start_month = $month = $cal_params->start_date['month'];\n $start_year = $year = $cal_params->start_date['year'];\n $end_day = $cal_params->end_date['day'];\n $end_month = $cal_params->end_date['month'];\n $end_year = $cal_params->end_date['year'];\n if(!($start_month && $start_year && $end_month && $end_year)) return array(); \n $calendar_months = array();\n $mn=$_SESSION['month_names'];\n $first = true;\n $last = false;\n while(true) {\n $days_shown = 0;\n list($next_month, $next_year) = get_next_month($month, $year);\n if($next_year > $end_year || ($next_year == $end_year && $next_month > $end_month)) $last = true;\n\n $days_in_month = $days_shown = get_daysofmonth($month, $year);\n if($first && $start_day > 1) $days_shown = $days_in_month - ($start_day - 1);\n elseif($last && $end_day < $days_in_month) $days_shown = $days_in_month - ($days_in_month - $end_day);\n \n $calendar_months[] = array('month' => $month, 'year' => $year, 'name' => $mn[$month-1], 'days' => $days_in_month, 'days_shown' => $days_shown);\n if($last) break;\n $first = false;\n $month = $next_month;\n $year = $next_year;\n }\n return $calendar_months; \n}", "title": "" }, { "docid": "68c68f365cf57244b44cd8a344349c41", "score": "0.63463455", "text": "function getAppointmentsForMonth($db, $today){\n\n $month = date('m', $today);\n $year = date('y', $today);\n\n // Get all days in this month\n $list=array();\n for($d=1; $d<=31; $d++)\n {\n $time=mktime(12, 0, 0, $month, $d, $year);\n if (date('m', $time)==$month) \n $list[] = $time;\n }\n\n $appointments = array();\n foreach ($list as $day) {\n $appointmentsForDay = getAppointments($db, $day);\n\n foreach ($appointmentsForDay as $a) {\n $appointments[] = $a;\n }\n }\n\n return $appointments;\n}", "title": "" }, { "docid": "0d2044f4962502b8d1f8c973806afaba", "score": "0.63076437", "text": "public function getEntries($year, $month) {\n $this->_rendered_dates = array();\n if ((is_array($this->_monthly_pattern) && in_array($month, $this->_monthly_pattern)) || ($this->_monthly_pattern == NULL)) {\n\n if ($this->_monthly_day_pattern !== NULL) {\n $this->_rendered_dates[] = $this->_getMonthlyDayPatternEntries($year, $month);\n }\n\n if (is_array($this->_weekday_pattern)) {\n foreach ($this->_weekday_pattern as $weekday_pattern) {\n $rt = new Application_Model_ReoccurenceTemplate(\"$year-$month-01\");\n //@TODO: modify if there would be a need for instance far ALL MONDAYS AND TUESDAYS within a month\n $rendered_date = $rt->findNthWeekdayInMonth($weekday_pattern, $this->_weekday_pattern_offset);\n $this->_rendered_dates[] = $rendered_date;\n }\n }\n }\n return $this->_rendered_dates;\n \n }", "title": "" }, { "docid": "df15007a0a615a015089cacd3ae1b9d5", "score": "0.6198697", "text": "public function get_monthly_test($year, $month)\n {\n $str_start = $year . '-' . $month . '-01';\n $last_day = date('t', strtotime($str_start));\n $plan_start_date = mktime(0, 0, 0, $month, 1, $year);\n $plan_end_date = mktime(0, 0, 0, $month, $last_day, $year);\n //$this->db->where ('start_date >=', $plan_start_date);\n //$this->db->where ('end_date <=', $plan_end_date);\n $this->db->group_by('start_date');\n $sql = $this->db->get('coaching_test_enrolments');\n if ($sql->num_rows() > 0) {\n return $sql->result_array();\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "83ed0449fdc158662463a8454715102f", "score": "0.6166888", "text": "public static function get10popularServicesByMonth($date){\n $startDate = $date->format('Y-m').\"-01\";\n $endDate = $date->format('Y-m').\"-31\";\n }", "title": "" }, { "docid": "357d776b876abe53aec4d95a567dec67", "score": "0.6165217", "text": "function getAllMonths($date1, $date2)\r\n {\r\n $time1 = strtotime($date1);\r\n $time2 = strtotime($date2);\r\n $my = date('mY', $time2);\r\n\r\n $months = array(date('F Y', $time1));\r\n\r\n while($time1 < $time2) {\r\n $time1 = strtotime(date('Y-m-d', $time1).' +1 month');\r\n if(date('mY', $time1) != $my && ($time1 < $time2))\r\n $months[] = date('F Y', $time1);\r\n }\r\n\r\n $months[] = date('F Y', $time2);\r\n $months = array_unique($months);\r\n return $months;\r\n }", "title": "" }, { "docid": "21241a31800d6b3d82f0ca8cf3a1b67a", "score": "0.61570996", "text": "function getAllMonths( ){\n\t\t$last = Payment::\n//\t\t\t\t\t\t\t where('payment_type', 'payable')\n where( function($query) {\n\n $query->where( 'status', 'pending');\n $query->orWhere('status', 'paid');\n } )\n\t\t\t\t\t\t\t->orderBy( 'due_date', 'DESC' )\n\t\t\t\t\t\t\t->first()\n\t\t\t\t\t\t\t->due_date;\n\t\t\n\t\t$this->first = $last->copy()->subMonths(11)->startOfMonth();\t// 11 months plus current one makes 12 months, i.e. a year\n\n\t\t// abi_r( $date );\n\t\t// abi_r( $this->first, true );\n\n\t\t$month_array = array();\n\t\t$orders_dates = Payment::\n//\t\t\t\t\t\t\t where('payment_type', 'payable')\n where( function($query) {\n\n $query->where( 'status', 'pending');\n $query->orWhere('status', 'paid');\n } )\n ->where( 'due_date', '>=', $this->first )\n\t\t\t\t\t\t\t->orderBy( 'due_date', 'ASC' )\n\t\t\t\t\t\t\t->pluck( 'due_date' );\n\t\t// abi_r($orders_dates[0]);abi_r('*********************');\n//\t\t$orders_dates = json_decode( $orders_dates );\t<== Somehow timezone is changed and date is altered!\n\t\t// abi_r($orders_dates[0]);abi_r('*********************');\n\t\tif ( ! empty( $orders_dates ) ) {\n\t\t\tforeach ( $orders_dates as $unformatted_date ) {\n//\t\t\t\t$date = new \\DateTime( $unformatted_date->date );\n\t\t\t\t// $date = new \\DateTime( $unformatted_date );\n//\t\t\t\t$month_no = $date->format( 'm' );\n\t\t\t\t$month_no = $unformatted_date->format( 'm' );\n\t\t\t\t$month_name = l('month.'.$month_no);\t//$date->format( 'M' );\n\t\t\t\t$month_array[ $month_no ] = $month_name.\" \".$unformatted_date->format( 'Y' );\n\t\t\t}\n\t\t}\n\t\t// abi_r($orders_dates[0]);abi_r('*********************');die();\n\t\treturn $month_array;\n\t}", "title": "" }, { "docid": "2720f3ffe40dd2c3241cd8c95039018b", "score": "0.61546314", "text": "function allMonths(){\n return [\"Janvier\", \"Fevrier\", \"Mars\", \"Avril\", \"Mai\", \"Juin\", \"Juillet\", \"Aout\", \"Septembre\", \"Octobre\", \"Novembre\", \"Decembre\"];\n}", "title": "" }, { "docid": "3445c0c3495c62930eec3ffc75c3aab4", "score": "0.61285037", "text": "private function get_month_view_events() {\n\n\t\tif ( ! $wp_query = tribe_get_global_query_object() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$event_date = $wp_query->get( 'eventDate' );\n\n\t\t$month = empty( $event_date )\n\t\t\t? tribe_get_month_view_date()\n\t\t\t: $wp_query->get( 'eventDate' );\n\n\t\t$args = array(\n\t\t\t'eventDisplay' => 'custom',\n\t\t\t'start_date' => Tribe__Events__Template__Month::calculate_first_cell_date( $month ),\n\t\t\t'end_date' => Tribe__Events__Template__Month::calculate_final_cell_date( $month ),\n\t\t\t'posts_per_page' => -1,\n\t\t\t'hide_upcoming' => true,\n\t\t);\n\n\t\t// Verify the Intial Category\n\t\tif ( $wp_query->get( Tribe__Events__Main::TAXONOMY, false ) !== false ) {\n\t\t\t$args[ Tribe__Events__Main::TAXONOMY ] = $wp_query->get( Tribe__Events__Main::TAXONOMY );\n\t\t}\n\n\t\t/**\n\t\t * Provides an opportunity to modify the query args used to build a list of events\n\t\t * to export from month view.\n\t\t *\n\t\t * This could be useful where its desirable to limit the exported data set to only\n\t\t * those events taking place in the specific month being viewed (rather than an exact\n\t\t * match of the events shown in month view itself, which may include events from\n\t\t * adjacent months).\n\t\t *\n\t\t * @var array $args\n\t\t * @var string $month\n\t\t */\n\t\t$args = (array) apply_filters( 'tribe_ical_feed_month_view_query_args', $args, $month );\n\n\t\treturn tribe_get_events( $args );\n\t}", "title": "" }, { "docid": "4bdc834cb87474801bcaa7cf4cc3d785", "score": "0.611682", "text": "static public function getMonthList()\n {\n $l = array();\n for ($i = 1; $i < 13; $i++)\n $l[$i] = date('F', strtotime('2000-' . $i . '-01'));\n return $l;\n }", "title": "" }, { "docid": "5c588fe5f77f9343a08a60bdd1d249fc", "score": "0.61001617", "text": "public function calendarGetDateList($year,$month)\n\t{\n\t\t$siteID\t= model::load(\"access/auth\")->getAuthData(\"site\",\"siteID\");\n\n\t\t## total date of current month/year.\n\t\t$total\t= date(\"t\",strtotime(\"$year-$month-1\"));\n\n\t\t## get activities and group it by date.\n\t\t$activity\t= model::load(\"activity/activity\");\n\t\t$activityR\t= $activity->getActivityList($siteID,$year,$month,null,false);\n\t\t$resultR\t= Array();\n\n\n\n\t\tif($activityR)\n\t\t{\n\t\t\t$activityDateR\t= $activity->getDate(array_keys($activityR));\n\n\t\t\t$helper\t= model::load(\"helper\");\n\t\t\t$base_url\t= url::base(\"{site-slug}/activity\");\n\t\t\t$typeEngR\t= Array(1=>\"event\",2=>\"training\");\n\n\t\t\tforeach($activityR as $actID=>$row)\n\t\t\t{\n\t\t\t\t$data\t= Array(\n\t\t\t\t\t\t\t\"activityID\"=>$row['activityID'],\n\t\t\t\t\t\t\t\"activityTypeEng\"=>$typeEngR[$row['activityType']],\n\t\t\t\t\t\t\t\"activityType\"=>$activity->type($row['activityType']),\n\t\t\t\t\t\t\t\"activityName\"=>$row['activityName'],\n\t\t\t\t\t\t\t\"activityStartDate\"=>date(\"j M Y\",strtotime($row['activityStartDate'])),\n\t\t\t\t\t\t\t\"activityEndDate\"=>date(\"j M Y\",strtotime($row['activityEndDate'])),\n\t\t\t\t\t\t\t\"activityCreatedUser\"=>$row['userProfileFullName']\n\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\tforeach($activityDateR[$actID] as $row_date)\n\t\t\t\t{\n\t\t\t\t\t$d\t= date(\"j\",strtotime($row_date['activityDateValue']));\n\n\t\t\t\t\t$resultR[$d]\t= !is_array($resultR)?Array():$resultR[$d];\n\t\t\t\t\t$resultR[$d][]\t= $data;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn response::json($resultR);\n\t}", "title": "" }, { "docid": "23ef8ebb627ca64e0241c5c7111a7e28", "score": "0.60946", "text": "public function return_dates($id, $var_month, $var_year)\n {\n\n //Primeiro dia encontro\n $var_dayOfWeek = $this->buscar_dados($id); //pega dia do encontro da celula\n\n $var_counting_days = cal_days_in_month(CAL_GREGORIAN, $var_month, $var_year); //days of month\n\n //echo \"dias \" . $var_counting_days;\n\n $dini = mktime(0,0,0,$var_month,1,$var_year);\n $dfim = mktime(0,0,0,$var_month,$var_counting_days,$var_year);\n\n $dfim += 86400; //Artificio para pegar meses com 5 semanas\n\n $return_d = array();\n //echo \"ini \" . $dini . \"<br/>\";\n //echo \"fim \" . $dfim . \"<br/>\";\n\n while($dini <= $dfim) //Enquanto uma data for inferior a outra\n {\n $dt = date(\"d/m/Y\",$dini); //Convertendo a data no formato dia/mes/ano\n $diasemana = date(\"w\", $dini);\n\n if($diasemana == $var_dayOfWeek)\n { // [0 Domingo] - [1 Segunda] - [2 Terca] - [3 Quarta] - [4 Quinta] - [5 Sexta] - [6 Sabado]\n //echo \" select \" . $dt . \"<br/>\";\n array_push($return_d, $dt);\n }\n\n $dini += 86400; // Adicionando mais 1 dia (em segundos) na data inicial\n //echo \" data \" . $dt . \"<br/>\";\n //echo $dini . \"<br/>\";\n }\n\n //Segundo dia encontro\n $var_dayOfWeek = $this->buscar_segundo_dia_encontro($id); //pega dia do encontro da celula\n\n if ($var_dayOfWeek!=\"\") {\n $var_counting_days = cal_days_in_month(CAL_GREGORIAN, $var_month, $var_year); //days of month\n\n $dini = mktime(0,0,0,$var_month,1,$var_year);\n $dfim = mktime(0,0,0,$var_month,$var_counting_days,$var_year);\n\n $bPrimeiro = false;\n\n while($dini <= $dfim) //Enquanto uma data for inferior a outra\n {\n $dt = date(\"d/m/Y\",$dini); //Convertendo a data no formato dia/mes/ano\n $diasemana = date(\"w\", $dini);\n\n if($diasemana == $var_dayOfWeek)\n { // [0 Domingo] - [1 Segunda] - [2 Terca] - [3 Quarta] - [4 Quinta] - [5 Sexta] - [6 Sabado]\n\n if ($bPrimeiro==false) {\n array_push($return_d, \"\");\n array_push($return_d, \" Segundo Dia Encontro \");\n }\n array_push($return_d, $dt);\n $bPrimeiro=true;\n }\n\n $dini += 86400; // Adicionando mais 1 dia (em segundos) na data inicial\n }\n }\n\n array_push($return_d, \"\");\n array_push($return_d, \" Encontro Avulso (Criar Novo) \");\n\n //Verificar se houve encontro avulso\n $dt_encontro_avulso = $this->buscar_data_avulsa($id, $var_month, $var_year);\n\n if ($dt_encontro_avulso!=\"\") {\n array_push($return_d, \"\");\n array_push($return_d, \" Houve Encontro Avulso : \");\n\n foreach ($dt_encontro_avulso as $item) {\n array_push($return_d, date(\"d/m/Y\", strtotime($item->data_encontro)));\n }\n }\n\n return ($return_d);\n }", "title": "" }, { "docid": "5e2bbc3bd49729b4bb4574f4bbdf3d13", "score": "0.60580075", "text": "protected function get_calendar_dates_db($month, $status)\n\t{\t\n\t\t$this->db->where('rejected !=', 1);\t\n\t\t$this->db->where(\"$month BETWEEN MONTH(start_date) AND MONTH(end_date)\");\n\t\t$this->db->where($status, 1);\n\t\t$query = $this->db->get('bookings');\n\t\treturn $query->result();\n\t}", "title": "" }, { "docid": "0e8b9266d1f5423f4f94c24df70652a6", "score": "0.6028672", "text": "function months_between($min_date, $max_date)\n\t{\n\t\t$months = array();\n\n\t\t$start = new DateTime($min_date);\n\t\t$start->modify('first day of this month');\n\t\t$end = new DateTime($max_date);\n\t\t$end->modify('first day of next month');\n\t\t$interval = DateInterval::createFromDateString('1 month');\n\t\t$period = new DatePeriod($start, $interval, $end);\n\n\t\tforeach ($period as $dt)\n\t\t{\n\t\t\tarray_push($months, $dt->format('Y-m'));\n\t\t}\n\n\t\treturn $months;\n\t}", "title": "" }, { "docid": "fceba6ebd2a6462531c9227301b8a361", "score": "0.6023838", "text": "public function getUsage(int $year, int $month): array;", "title": "" }, { "docid": "5ae0c20bc53ad1ef831c44b760a74337", "score": "0.6014089", "text": "public function iterateMonths() {\n\t\t$used = array();\n\t\tforeach($this->days as $oDate) {\n\t\t\tfalse && $oDate = new Date();\n\t\t\t$k = $oDate->getMonth() . '-' . $oDate->getYear();\n\t\t\tif (!$used[$k]) {\n\t\t\t\tyield $oDate;\n\t\t\t\t$used[$k] = 1;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "50702cdb0ea6968fecfa844eed67add1", "score": "0.6009925", "text": "public function getMonths() : array\n\t{\n\t\t$stmt = $this->db->prepare(\n\t\t\t'SELECT DISTINCT\n\t\t\t\t`month`\n\t\t\tFROM `usage`'\n\t\t);\n\t\t$stmt->execute();\n\n\t\t$months = [];\n\n\t\twhile ($result = $stmt->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t$month = new DateTime($result['month']);\n\n\t\t\t$months[] = $month;\n\t\t}\n\n\t\treturn $months;\n\t}", "title": "" }, { "docid": "498a0e6fa2002f3933afd349dfa80163", "score": "0.59984916", "text": "public function getMonths() {\n }", "title": "" }, { "docid": "1f26cf5acfe6a66fac579da912a2ca72", "score": "0.5992595", "text": "protected function the_booked_days($start_day, $end_day, $class, $current_month) \n\t{\n\t\t$dates_array = array();\n\t\t$begin = new DateTime($start_day);\n\t\t$end = new DateTime($end_day);\n\t\t$end = $end->modify( '+1 day' ); \n\n\t\t$interval = new DateInterval('P1D');\n\t\t$daterange = new DatePeriod($begin, $interval ,$end);\n\n\t\t\tforeach($daterange as $date){\n\t\t\t\t$date_month = (int)$date->format(\"m\");\n\t\t\t\tif($current_month == $date_month) {\n\t\t\t\t\t$dates_array[(int) $date->format(\"d\")] = $class;\t\t\n\t\t\t\t}\n\t\t\t}\n\t\treturn $dates_array;\n\t}", "title": "" }, { "docid": "35efdc73e7766d9651488e878065ed7a", "score": "0.59755975", "text": "public function getMonthBusinessDays()\n {\n /**\n * Get list of date objects for each business day in the current month.\n *\n * @return array\n */\n return static function ($date = null) {\n $self = static::this();\n $month = new BusinessMonth($date ?? $self, get_class($self));\n $date = $month->getStart();\n $dates = [];\n\n while ($date < $month->getEnd()) {\n if ($date->isBusinessDay()) {\n $dates[] = $date->copy();\n }\n\n $date = $date->addDay();\n }\n\n return $dates;\n };\n }", "title": "" }, { "docid": "d24fb5138bc2b0d6bd3d34f798aead75", "score": "0.5960946", "text": "private function _getMonthlyDayPatternEntries($year, $month) {\n $rt = new Application_Model_ReoccurenceTemplate(\"$year-$month-01\");\n $rendered_date = $rt->findNthDayOfMonth($this->_monthly_day_pattern);\n \n if ($this->_monthly_exception_callback) {\n $callback = $this->_monthly_exception_callback;\n $rendered_date = $callback($rendered_date);\n }\n return $rendered_date;\n \n }", "title": "" }, { "docid": "4ff7c0aa3188ed83edfb94099d2265e3", "score": "0.5954046", "text": "function getApprovedEventsForFrontPage($month, $year)\n\t{\n\t\t$nextMonth = $month+1;\n\t\t$nextYear = $year;\n\t\tif($nextMonth>12)\n\t\t{\n\t\t\t$nextYear++;\n\t\t\t$nextMonth = 1;\n\t\t}\n\t\t\n\t\t# now we have current date and next month date\n\t\t$curDate = date('Y-m-d');\n \t\t$days_in_month = cal_days_in_month(0, $month, $year) ;\n\t\t$nextDate = sprintf(\"%04d-%02d-%02d\", $nextYear, $nextMonth, $days_in_month);\n\t\t$results = array();\n\t\t$this->db->where(\"status = 'approved' AND date >= '$curDate' AND date <= '$nextDate'\");\n\t\t$this->db->order_by('date, startTime');\n\t\t$this->db->select(array('id','status', 'date','startTime','endTime','title','dayname(date) as dayofweek','monthname(date) as moname', 'day(date) as dateday', 'year(date) as yr'));\n\t\t$r = $this->db->get('events');\n\t\tif($r)\n\t\t{\n\t\t\t$results['status'] = 'OK';\n\t\t\t$rows = array();\n\t\t\tforeach($r->result_array() as $row)\n\t\t\t{\n\t\t\t\t$date = $row['dayofweek'].\", \".$row['date'];\n\t\t\t\t$rows[$date][] = $row;\n\t\t\t}\n\t\t\t$results['rows'] = $rows;\n\t\t\t$r->free_result();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$results['status'] = 'DB';\n\t\t\t$results['rows'] = array();\n\t\t}\n\t\treturn $results;\n\t}", "title": "" }, { "docid": "a2a032c236cc662398d1d16f3e2cd40f", "score": "0.5947669", "text": "private function getDateList(){\n $months = [];\n $res = [];\n $joinModel = new JoinPeticionesUserModel();\n $peticionesJoin = $joinModel->getAllPeticionesNotOpen();//devuelve solo peticiones autorizado (pendientes) o pagados\n\n foreach ($peticionesJoin as $p) {\n //TODO En futuro se podria sacar el mes y el a;o por aparte para hacer el filtro mas minucioso\n array_push($months, substr($p->getFechaCreacion(),0, 7 ));//suprime desde 0 y termina en 7\n }\n $months = array_values(array_unique($months));//devuelve solo los valores del array. unique regresa solo valores unicos\n\n foreach ($months as $month) {\n array_push($res, $month);\n }\n\n return $res;\n }", "title": "" }, { "docid": "45d17c76dd03311b511ddd311f06eb3a", "score": "0.59446037", "text": "public function getPricesForMonthBegin() {\n $currentMonth = date('Y-m-d', strtotime(\"first day of this month\"));\n $dates[] = $currentMonth;\n\n for ($i = 1; $i < 6; $i++) {\n $dates[] = date('Y-m-01', strtotime(\"-{$i} month\"));\n }\n\n $prices = Price::whereIn('grip_date', $dates)->get();\n\n return $prices;\n }", "title": "" }, { "docid": "3f4487c440302b2d3c85cc42256770a6", "score": "0.5941392", "text": "function cal_days_in_month($calendar, $month, $year)\n{\n}", "title": "" }, { "docid": "71709430f6a3a55ec8089aae7aee8d39", "score": "0.5908516", "text": "function select_month($data, $year, $month) {\r\n\t\t$result = array();\r\n\t\tforeach ($data as $line) {\r\n\t\t\tif (matches($line['year'], $year) && matches($line['month'], $month)) {\r\n\t\t\t\tarray_push($result, $line);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $result;\r\n\t}", "title": "" }, { "docid": "5c595563f423ac54f834d30de2af3878", "score": "0.58840066", "text": "function create_month_option_list( $p_month = 0 ) \r\n{\r\n $month_option=''; \r\n for ($i=1; $i<=12; $i++) {\r\n $month_name = date( 'F', mktime(0,0,0,$i,1,2000) );\r\n if ( $i == $p_month ) {\r\n $month_option .= \"<option value=\\\"$i\\\" selected=\\\"selected\\\">$month_name</option>\";\r\n } else {\r\n $month_option .= \"<option value=\\\"$i\\\">$month_name</option>\";\r\n }\r\n }\r\n return $month_option;\r\n}", "title": "" }, { "docid": "0f7ece096ed219c14b17de61e85abd7c", "score": "0.58773094", "text": "public function selectDates($property, $year, $month, $pre_select_date_start = 'NA', $pre_select_date_end = 'NA', $reservation_id = '0')\n {\n $property_slug = $property;\n $propertyResult = \\App\\Properties::where('slug', $property)->first();\n $property_title = $propertyResult->title;\n $property_id = $propertyResult->id;\n $loopYear = $year;\n $loopMonth = $month;\n $timestamp = mktime(0, 0, 0, $month, 1, $year);\n $monthtotaldays = date('t', $timestamp);\n $thismonth = getdate($timestamp);\n $startday = $thismonth['wday'];\n $calendarPreviousYear = date('Y', strtotime(\"-1 month\", strtotime($year . \"-\" . $month . \"-01\")));\n $calendarPreviousMonth = date('n', strtotime(\"-1 month\", strtotime($year . \"-\" . $month . \"-01\")));\n $calendarNextYear = date('Y', strtotime(\"+1 month\", strtotime($year . \"-\" . $month . \"-01\")));\n $calendarNextMonth = date('n', strtotime(\"+1 month\", strtotime($year . \"-\" . $month . \"-01\")));\n $datesResult = \\App\\Calendar::where('reservation_id', $reservation_id)->get();\n $dates_editing = array();\n foreach ($datesResult as $date) {\n array_push($dates_editing, $date->date);\n } //$datesResult as $date\n $datesResult = \\App\\Calendar::where('property_id', $property_id)->where('reservation_id', '!=', $reservation_id)->whereRaw(\"MONTH(date)='$month' AND YEAR(date)='$year'\")->get();\n $dates_reserved = '';\n foreach ($datesResult as $date) {\n $dates_reserved['date_' . date('Ymd', strtotime($date->date))] = $date->status;\n } //$datesResult as $date\n if ($pre_select_date_start != 'NA' and $pre_select_date_end != 'NA') {\n SelectDatesController::saveDatesSearchedToSession($pre_select_date_start, $pre_select_date_end);\n if (\\Session::has('dates_searched')) {\n $dates_searched = \\Session::get('dates_searched');\n } //\\Session::has('dates_searched')\n } //$pre_select_date_start != 'NA' and $pre_select_date_end != 'NA'\n elseif ($pre_select_date_start != 'NA' and $pre_select_date_end == 'NA') {\n SelectDatesController::saveDatesSearchedToSession($pre_select_date_start, $pre_select_date_start);\n if (\\Session::has('dates_searched')) {\n $dates_searched = \\Session::get('dates_searched');\n } //\\Session::has('dates_searched')\n } //$pre_select_date_start != 'NA' and $pre_select_date_end == 'NA'\n elseif (\\Session::has('dates_searched')) {\n $dates_searched = \\Session::get('dates_searched');\n } //\\Session::has('dates_searched')\n return view('include.calendar-select-dates')->with('property_id', $property_id)->with('dates_editing', $dates_editing)->with('dates_searched', @$dates_searched)->with('pre_select_date_start', $pre_select_date_start)->with('pre_select_date_end', $pre_select_date_end)->with('property_slug', $property_slug)->with('timestamp', $timestamp)->with('monthtotaldays', $monthtotaldays)->with('thismonth', $thismonth)->with('loopYear', $loopYear)->with('loopMonth', $loopMonth)->with('startday', $startday)->with('calendarPreviousYear', $calendarPreviousYear)->with('calendarPreviousMonth', $calendarPreviousMonth)->with('calendarNextYear', $calendarNextYear)->with('calendarNextMonth', $calendarNextMonth)->with('dates_reserved', $dates_reserved);\n }", "title": "" }, { "docid": "484cf6d6281a9639dec086c12087288f", "score": "0.5875829", "text": "function select_option_month($selected) {\n\n for ($i=1;$i<13;$i++){\n $im=date('m',mktime(0,0,0,$i,1,1));\n $is = getMonthAbrv( date('m',mktime(0,0,0,$i,1,1)) );\n if ($im==$selected){\n echo ' <option value=\"'.$im.'\" selected=\"selected\">'.$is.\"</option>\\n\";\n } else {\n echo ' <option value=\"'.$im.'\">'.$is.\"</option>\\n\";\n }\n }\n}", "title": "" }, { "docid": "52f65f7a72d73b3429eaf19a915e25c1", "score": "0.5871048", "text": "function wpcef_get_dates( $date_from, $date_to ){\n $dates = array();\n $period = new DatePeriod(\n new DateTime($date_from),\n new DateInterval('P1D'),\n new DateTime($date_to)\n );\n foreach ($period as $key => $value) {\n $_date = $value->format('Y-m-d');\n if( in_array( $_date, $dates ) ){\n continue;\n }\n $dates[] = $_date; \n }\n $dates[] = $date_to; \n return $dates;\n}", "title": "" }, { "docid": "df73151ea9d7aab2e2d3a64ffe79ec55", "score": "0.586547", "text": "function getMonthDays() {\n\t\t$days = array(); \n\t\t$start_day = 1;\n\t\n\t\t$end_day = 31;\n\t\tfor($i = $start_day; $i <= $end_day; $i++) {\n\t\t\t$days[$i] = $i; \n\t\t}\t\t\n\t\t//return the years in descending order from 2009 down to the start year and true to maintain the array keys\n\t\treturn $days;\n\t}", "title": "" }, { "docid": "d5c4b92e625b3e54311612a4673c889c", "score": "0.5852612", "text": "function rangeMonth($datestr)\n {\n date_default_timezone_set(date_default_timezone_get());\n $dt = strtotime($datestr);\n $res['start'] = date('Y-m-d', strtotime('first day of this month', $dt));\n $res['end'] = date('Y-m-d', strtotime('last day of this month', $dt));\n return $res;\n }", "title": "" }, { "docid": "1e52a0c61fbfb6b09ec37d867be5de7a", "score": "0.58387774", "text": "function month( $month, $year, $id = -1 )\n\t{\n\t\tglobal $cache, $db, $security, $basic_gui, $lang_loader;\n\t\t\n\t\tif ( $month > 12 )\n\t\t{\n\t\t\t$month = 1;\n\t\t\t$year++;\n\t\t}\n\t\t\n\t\t$calendar = '<table border=\"0\" padding=\"0\" width=\"100%\"><tr>';\n\t\t\n\t\tfor ( $i = 0; $i < 7; $i++ )\n\t\t{\n\t\t\t$calendar .= '<td class=\"day\"><b>' . $this->lang[ 'Day_' . $i ] .'</b></td>';\n\t\t}\n\t\t$calendar .= '</tr>';\n\t\t\n\t\t// create the calendar\n\t\t$lastday1 = date( 'j', mktime( 0, 0, 0, $month, 0, $year ) ); // last day of previous month\n\t\t$lastday2 = date( 'j', mktime( 0, 0, 0, ($month+1), 0, $year ) ); // last day of this month\n\t\t$starton = date( 'w', mktime( 0,0, 0, $month, 1, $year ) ); // month started on\n\t\t$starton -= 1;\n\t\t$starton = ( $starton == -1 ) ? 6 : $starton;\n\t\t$stopon = date( 'w', mktime( 0, 0, 0, ($month+1), 0, $year ) );\n\t\t$stopon -= 1;\n\t\t$stopon = ( $starton == -1 ) ? 6 : $stopon;\n\t\t$today = explode( '.', date( 'j.n.Y', EXECUTION_TIME ) );\n\t\t\n\t\t$rows = 0;\n\t\t\n\t\t// get the news for the needed timeframe\n\t\t$from = mktime( 0, 0, 0, $month-1, $lastday1-$starton, $year ); // first day on calendar\n\t\t$to = mktime( 23, 59, 59, $month+1, 6-$stopon, $year ); // last day on calendar\n\t\t$items = array();\n\t\t/*$sql = \"SELECT item_id, item_time_to_stamp, item_time_from_stamp, item_title FROM \" . SHOWEVENT_ITEM_TABLE . \" WHERE (\" .\n\t\t\t\t\t\t\t\t\t\t\t\t\"('$from' BETWEEN item_time_from_stamp AND item_time_to_stamp)OR\" .\n\t\t\t\t\t\t\t\t\t\t\t\t\"('$to' BETWEEN item_time_from_stamp AND item_time_to_stamp)OR\" .\n\t\t\t\t\t\t\t\t\t\t\t\t\"(item_time_from_stamp BETWEEN '$from' AND '$to')OR\" .\n\t\t\t\t\t\t\t\t\t\t\t\t\"(item_time_to_stamp BETWEEN '$from' AND '$to' )\" .\n\t\t\t\t\t\t\t\t\t\t\t\t\") AND item_language='\" . $lang_loader->board_lang . \"' AND item_isdeleted=0\";*/\n\t\t$sql = \"SELECT i.item_id, i.item_time_to_stamp, i.item_time_from_stamp, i.item_title FROM \" . SHOWEVENT_ITEM_TABLE . \" i LEFT JOIN \" . \n\t\t\t\t\t\t\t\t\t\t\tSHOWEVENT_CAT2ITEM_TABLE . \" c2i ON i.item_id=c2i.item_id LEFT JOIN \" .\n\t\t\t\t\t\t\t\t\t\t\tSHOWEVENT_CATEGORY_TABLE . \" c ON c2i.cat_id=c.cat_id \" . \n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\" WHERE (\" .\n\t\t\t\t\t\t\t\t\t\t\t\t\"('$from' BETWEEN i.item_time_from_stamp AND i.item_time_to_stamp)OR\" .\n\t\t\t\t\t\t\t\t\t\t\t\t\"('$to' BETWEEN i.item_time_from_stamp AND i.item_time_to_stamp)OR\" .\n\t\t\t\t\t\t\t\t\t\t\t\t\"(i.item_time_from_stamp BETWEEN '$from' AND '$to')OR\" .\n\t\t\t\t\t\t\t\t\t\t\t\t\"(i.item_time_to_stamp BETWEEN '$from' AND '$to' )\" .\n\t\t\t\t\t\t\t\t\t\t\t\t\") AND i.item_language='\" . $lang_loader->board_lang . \"' AND i.item_isdeleted=0 \" .\n\t\t\t\t\t\t\t\t\t\t\t\t\"AND c.cat_parent <> 1 AND c.cat_parent <> 18\";\n\t\t\n\t\t$result = $db->sql_query( $sql );\n\t\twhile ( $row = $db->sql_fetchrow( $result ) )\n\t\t{\n\t\t\tfor( $t = $row[ 'item_time_from_stamp' ]; $t <= $row[ 'item_time_to_stamp' ]; $t += 50*60*24 )\n\t\t\t{\n\t\t\t\t$m = date( 'n', $t );\n\t\t\t\t$d = date( 'j', $t );\n\t\t\t\tif ( !isset( $items[ $m ] ) )\n\t\t\t\t{\n\t\t\t\t\t$items[ $m ] = array();\n\t\t\t\t}\n\t\t\t\tif ( !isset( $items[ $m ][ $d ] ) )\n\t\t\t\t{\n\t\t\t\t\t$items[ $m ][ $d ] = $row[ 'item_title' ] . '<br />';\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\t$items[ $m ][ $d ] .= $row[ 'item_title' ] . '<br />';\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\t\n\t\t$calendar .= '<tr>';\n\t\t$row = '';\n\t\tfor ( $i = 0, $j = $lastday1; $i < $starton; $i++, $j-- )\n\t\t{\n\t\t\tif ( $j == $today[ 0 ] && $month-1 == $today[ 1 ] && $year == $today[ 2 ] )\n\t\t\t{\n\t\t\t\t$class2 = 'today';\n\t\t\t}else\n\t\t\t{\n\t\t\t\t$class2 = '';\n\t\t\t}\n\t\t\tif ( isset( $items[ $month-1 ][ $j ] ) )\n\t\t\t{\n\t\t\t\t$tooltip = $basic_gui->make_tooltip( $items[ $month-1 ][ $j ], 'buttontip' );\n\t\t\t\t$row = '<td class=\"dimday ' . $class2 . '\"><a href=\"#\" onclick=\"showinfo( ' . $j . ', ' . ($month-1) . ', ' . $year . ' ); return false\"><u>' . $j . '</u></a></td>' . $row;\n\t\t\t}else\n\t\t\t{\n\t\t\t\t$row = '<td class=\"dimday ' . $class2 . '\">' . $j . '</td>' . $row;\n\t\t\t}\n\t\t}\n\t\tfor ( $i = 1; $i <= 6 - $starton + 1; $i++ )\n\t\t{\n\t\t\tif ( $i == $today[ 0 ] && $month == $today[ 1 ] && $year == $today[ 2 ] )\n\t\t\t{\n\t\t\t\t$class2 = 'today';\n\t\t\t}else\n\t\t\t{\n\t\t\t\t$class2 = '';\n\t\t\t}\n\t\t\tif ( ($i+$starton) % 7 == 0 )\n\t\t\t{\n\t\t\t\t$class = 'class=\"sunday ' . $class2 . '\"';\n\t\t\t}else\n\t\t\t{\n\t\t\t\t$class = ( empty( $class2 ) ) ? '' : 'class=\"' . $class2 . '\"';\n\t\t\t}\n\t\t\tif ( isset( $items[ $month ][ $i ] ) )\n\t\t\t{\n\t\t\t\t$tooltip = $basic_gui->make_tooltip( $items[ $month ][ $i ], 'buttontip' );\n\t\t\t\t$row .= '<td ' . $class . '><b><a href=\"#\" onclick=\"showinfo( ' . $i . ', ' . $month . ', ' . $year . ' ); return false\"><u>' . $i . '</u></a></b></td>';\n\t\t\t}else\n\t\t\t{\n\t\t\t\t$row .= '<td ' . $class . '><b>' . $i . '</b></td>';\n\t\t\t}\n\t\t}\n\t\t$calendar .= $row . '</tr><tr>';\n\t\t$rows++;\n\t\tfor ( $i = $i; $i <= $lastday2; $i++ )\n\t\t{\n\t\t\tif ( $i == $today[ 0 ] && $month == $today[ 1 ] && $year == $today[ 2 ] )\n\t\t\t{\n\t\t\t\t$class2 = 'today';\n\t\t\t}else\n\t\t\t{\n\t\t\t\t$class2 = '';\n\t\t\t}\n\t\t\tif ( ($i+$starton) % 7 == 0 )\n\t\t\t{\n\t\t\t\t$class = 'class=\"sunday ' . $class2 . '\"';\n\t\t\t}else\n\t\t\t{\n\t\t\t\t$class = ( empty( $class2 ) ) ? '' : 'class=\"' . $class2 . '\"';\n\t\t\t}\n\t\t\tif ( isset( $items[ $month ][ $i ] ) )\n\t\t\t{\n\t\t\t\t$tooltip = $basic_gui->make_tooltip( $items[ $month ][ $i ], 'buttontip' );\n\t\t\t\t$calendar .= '<td ' . $class . '><b><a href=\"#\" onclick=\"showinfo( ' . $i . ', ' . $month . ', ' . $year . ' ); return false\"><u>' . $i . '</u></a></b></td>';\n\t\t\t}else\n\t\t\t{\n\t\t\t\t$calendar .= '<td ' . $class . '><b>' . $i . '</b></td>';\n\t\t\t}\n\t\t\tif ( ($i+$starton) % 7 == 0 )\n\t\t\t{\n\t\t\t\t$calendar .= '</tr><tr>';\n\t\t\t\t$rows++;\n\t\t\t}\n\t\t}\n\t\tfor ( $i = 1; $i <= 6 - $stopon; $i++ )\n\t\t{\n\t\t\tif ( $i == $today[ 0 ] && $month+1 == $today[ 1 ] && $year == $today[ 2 ] )\n\t\t\t{\n\t\t\t\t$class2 = 'today';\n\t\t\t}else\n\t\t\t{\n\t\t\t\t$class2 = '';\n\t\t\t}\n\t\t\tif ( isset( $items[ $month+1 ][ $i ] ) )\n\t\t\t{\n\t\t\t\t$calendar .= '<td class=\"dimday ' . $class2 . '\"><a href=\"#\" onclick=\"showinfo( ' . $i . ', ' . ($month+1) . ', ' . $year . ' ); return false\"><u>' . $i . '</u></a></td>';\n\t\t\t}else\n\t\t\t{\n\t\t\t\t$calendar .= '<td class=\"dimday ' . $class2 . '\">' . $i . '</td>';\n\t\t\t}\n\t\t}\n\t\t$calendar .= '</tr>';\n\t\t$rows++;\n\t\t\n\t\tif ( $rows < 7 )\n\t\t{\n\t\t\t$row = '';\n\t\t\tfor( $i = 0; $i < 6-$rows; $i++ )\n\t\t\t{\n\t\t\t\t$row .= '<tr>';\n\t\t\t\tfor ( $j = 0; $j < 7; $j++ )\n\t\t\t\t{\n\t\t\t\t\t$row .= '<td></td>';\n\t\t\t\t}\n\t\t\t\t$row .= '</tr>';\n\t\t\t}\n\t\t\t$calendar .= \"$row\";\n\t\t}\n\t\t\n\t\t$calendar .= '<tr><td colspan=\"7\" class=\"title\">' . $this->lang[ 'Month_' . $month ] . '</td></tr>';\n\t\t\n\t\t$calendar .= \"</table>\";\n\t\t\n\t\tif ( $id == -1 )\n\t\t{\n\t\t\treturn $calendar;\n\t\t}else\n\t\t{\n\t\t\treturn array( $calendar, $id, $year, $month );\n\t\t}\n\t}", "title": "" }, { "docid": "47d55fd999848700e3f50b347828e5ea", "score": "0.5835267", "text": "public function todaysMonth()\n {\n \n }", "title": "" }, { "docid": "b0a88c6f1957e06bd1ceff1a1c4f14fb", "score": "0.5805646", "text": "function getAllMonths(){\n \t// select all query\n \t$query = \"SELECT rented_date\n FROM\n \" . $this->table_name . \"\n ORDER BY\n id ASC\";\n \t\n \t// prepare query statement\n \t$stmt = $this->conn->prepare( $query );\n \t\n \t// execute query\n \t$stmt->execute();\n \t\n \treturn $stmt;\n \t\n }", "title": "" }, { "docid": "57ff764b69b1e0142abe2a881acf4c66", "score": "0.57635874", "text": "function getAllMonths($selected = ''){\n\t$options = '';\n\tfor($i=1;$i<=12;$i++)\n\t{\n\t\t\n\t\t$value = ($i < 10)?'0'.$i:$i;\n\t\t$selectedOpt = ($value == $selected)?'selected':'';\n\t\t$options .= '<option value=\"'.$value.'\" '.$selectedOpt.' >'.date(\"F\", mktime(0, 0, 0, $i+1, 0, 0)).'</option>';\n\t}\n\treturn $options;\n}", "title": "" }, { "docid": "282ad490d80880e3ddf332149f808c9d", "score": "0.575875", "text": "function getAllMonths($selected = ''){\n\t$options = '';\n\tfor($i=1;$i<=12;$i++)\n\t{\n\t\t$value = ($i < 10)?'0'.$i:$i;\n\t\t$selectedOpt = ($value == $selected)?'selected':'';\n\t\t$options .= '<option value=\"'.$value.'\" '.$selectedOpt.' >'.date(\"F\", mktime(0, 0, 0, $i+1, 0, 0)).'</option>';\n\t}\n\treturn $options;\n}", "title": "" }, { "docid": "282ad490d80880e3ddf332149f808c9d", "score": "0.575875", "text": "function getAllMonths($selected = ''){\n\t$options = '';\n\tfor($i=1;$i<=12;$i++)\n\t{\n\t\t$value = ($i < 10)?'0'.$i:$i;\n\t\t$selectedOpt = ($value == $selected)?'selected':'';\n\t\t$options .= '<option value=\"'.$value.'\" '.$selectedOpt.' >'.date(\"F\", mktime(0, 0, 0, $i+1, 0, 0)).'</option>';\n\t}\n\treturn $options;\n}", "title": "" }, { "docid": "cc46016cd6baff02425be8dc770bf68c", "score": "0.57463455", "text": "public function startOfMonth();", "title": "" }, { "docid": "fbddc1824444b1f14abef6c8c4dcda36", "score": "0.5724969", "text": "function calendar_dates($date = null)\n {\n if (!isset($date)) $date = new DateTime('', new DateTimeZone($this->_timezone));\n $first_day = clone $date;\n $first_day->modify('first day of this month')->modify('last Sunday');\n $last_day = clone $date;\n $last_day->modify('last day of this month')->modify('next Sunday')->modify(\"-1 second\");\n\n return $this->generate_event_list($first_day, $last_day);\n }", "title": "" }, { "docid": "b9a8a93d68635e8676382ce51e74f0b3", "score": "0.57236284", "text": "function workingDaysCollabGivenYearListMonth($year,$month,$firstMonth,$lastMonth,$idCollab)\r\n{\r\n $db=dbConnect();\r\n $req=$db->query('select * from JoursOuvrablesCollab where Annee=\"'.$year.'\" and ID_Collab=\"'.$idCollab.'\" and Mois between \"'.$firstMonth.'\" and \"'.$lastMonth.'\"');\r\n return $req;\r\n}", "title": "" }, { "docid": "45d0929fe4b20e43be328f7be9b63bc6", "score": "0.57231504", "text": "public static function find_months() {\n\t\t$months = array();\n\n\t\t// Build counts\n\t\t$flyers = DB::query(\n\t\t\tDatabase::SELECT, \"\nSELECT\n\t(CASE\n\t\tWHEN stamp_begin IS NULL THEN '1970 00'\n\t\tWHEN TO_CHAR(TO_TIMESTAMP(stamp_begin), 'DDD HH24 MI') = '001 00 00' THEN TO_CHAR(TO_TIMESTAMP(stamp_begin), 'YYYY 00')\n\t\tELSE TO_CHAR(TO_TIMESTAMP(stamp_begin), 'YYYY MM')\n\tEND) AS month,\n\tCOUNT(image_id) AS flyers\nFROM flyers\nGROUP BY 1\n\"\n\t\t)->execute();\n\n\t\tforeach ($flyers as $flyer) {\n\t\t\tlist($year, $month) = explode(' ', $flyer['month']);\n\t\t\t$months[(int)$year][(int)$month] = $flyer['flyers'];\n\t\t}\n\n\t\t// Sort years\n\t\tkrsort($months);\n\t\tforeach ($months as &$year) {\n\t\t\tkrsort($year);\n\t\t}\n\n\t\treturn $months;\n\t}", "title": "" }, { "docid": "2a95853982a7a988ee1fa39a5ae76e96", "score": "0.5721699", "text": "private function getMonthlyOrderReceive($salesIds=[],$date_from,$date_to)\n\t{\n\t\t$d1 = new \\DateTime($date_from);\n\t\t$y1 = $d1->format('Y');\n\t\t$m1 = $d1->format('n');\n\t\t$d2 = new \\DateTime($date_to);\n\t\t$y2 = $d2->format('Y');\n\t\t$m2 = $d2->format('n');\n\n\t\t// @link http://www.php.net/manual/en/class.dateinterval.php\n\t\t$interval = $d2->diff($d1);\n\n\t\t$monthDiff = ceil($interval->format('%m.%d'));\n\t\t// var_dump($interval);\n\t\t// echo $y1.'-'.$m1.'/'.$y2.'-'.$m2;\n\t\tif($date_from == $date_to)\n\t\t{\n\t\t\t$dateQuery = \"so.date_order = '{$date_from}'\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$dateQuery = \"so.date_order BETWEEN '{$date_from}' AND '{$date_to}'\";\n\t\t}\n\t\t$wheres = [$dateQuery];\n\n\t\tif(count($salesIds)){\n\t\t\t$saleIdsQ = implode(',',$salesIds);\n\t\t}\n\t\t\n\t\t$andWhereUserIds = \"\";\n\t\t\n\t\tif(count($salesIds)){\n\t\t\t$andWhereUserIds = \" AND so.user_id in ({$saleIdsQ})\";\n\t\t}\n\n\t\t$periods = [];\n\t\t$currM = $m1;\n\t\t$currY = $y1;\n\t\tfor($m=1;$m<=$monthDiff;$m++):\n\t\t\tif($currM>12){\n\t\t\t\t$currY++; #next year\n\t\t\t\t$currM = 1; #reset to jan\n\t\t\t}\n\t\t\t$periods[] = [\n\t\t\t\t'period_year'=>$currY,\n\t\t\t\t'period_month'=>$currM\n\t\t\t];\n\t\t\t$currM++;\n\t\tendfor;\n\t\t\n\t\t$qSelectMonthly = [];\n\t\tforeach($periods as $period):\n\t\t\t$period_year = $period['period_year'];\n\t\t\t$period_month = $period['period_month'];\n\n\t\t\t$qSelectMonthly[] = \"SUM(CASE WHEN annual.period_year = '{$period_year}' AND annual.period_month = {$period_month} THEN subtotal ELSE 0 END) AS subtotal_{$period_year}_{$period_month}\";\n\t\tendforeach;\n\t\t$qSelectMonthly = implode(',', $qSelectMonthly);\n\t\t\n\t\t$query = <<<EOQ\n\t\n\tSELECT \n\tannual.group_id,\n\tannual.user_id,\n\tp.name as sales_name,\n\t{$qSelectMonthly}\nFROM\n\t(SELECT \n\t\tCAST(EXTRACT(YEAR FROM \"date_order\") AS INTEGER) AS period_year,\n\t\tCAST(EXTRACT(MONTH FROM \"date_order\") AS INTEGER) AS period_month,\n\t\tCONCAT(TO_CHAR(TO_TIMESTAMP (CAST(EXTRACT(MONTH FROM \"date_order\") AS TEXT), 'MM'), 'TMmon'), '-',CAST(EXTRACT(YEAR FROM \"date_order\") AS TEXT)) as month_name,\n\t\tgroup_id,\n\t\tuser_id,\n\t\tSUM(so_rates.rates) AS subtotal\n\t\tFROM(\n\t\tselect \n\t\tso.*,\n\t\t(case when rcr.rating is null then(\n\t\t\t(\n\t\t\tcase when \n\t\t\t\t(case when rcr.rating is null and rc.id=13 then 1 else case when rcr.rating is null then 0 end end) = 0\n\t\t\tthen \n\t\t\t\t(select rating from res_currency_rate where currency_id=rc.id and name < so.date_order order by name desc limit 1) * amount_total\n\t\t\t\t\n\t\t\telse \n\t\t\t\t(1*amount_total)\n\t\t\tend\n\t\t\t)\n\t\t)\n\t\telse\n\t\t\t(rcr.rating*amount_total)\n\t\tend) as rates\n\t\tfrom \n\t\tsale_order as so\n\t\tjoin product_pricelist as ppr on so.pricelist_id = ppr.id\n\t\tjoin res_currency as rc on ppr.currency_id=rc.id\n\t\tleft outer join res_currency_rate as rcr on rcr.currency_id=rc.id and rcr.name = so.date_order\n\t\twhere \n\t\t{$dateQuery}\n\t\tand\n\t\tso.state not in ('draft','cancel'){$andWhereUserIds}\n\t\torder by so.date_order asc) AS so_rates\n\tGROUP BY period_year, period_month, month_name, group_id, user_id\n\tORDER BY period_year ASC, period_month ASC, group_id ASC, user_id ASC) AS annual\nJOIN res_users AS rusr ON annual.user_id = rusr.id\nJOIN res_partner as p ON p.id = rusr.partner_id\nGROUP BY\n\tannual.group_id,\n\tannual.user_id,\n\tp.name\nORDER BY\n\tp.name\nEOQ;\n\t\t// echo '<text>'.$query.'</text>';\n\t\t$connection=Yii::$app->db;\n\t\treturn $connection->createCommand($query)->queryAll();\n\t}", "title": "" }, { "docid": "fbe6dbff7dd0e36609e362437570e33a", "score": "0.5709408", "text": "static public function getMonthSelOpts()\n {\n // start at Jan\n $arr = array();\n foreach (self::getMonthList() as $i => $m)\n $arr[$m] = $m;\n return $arr;\n }", "title": "" }, { "docid": "e469c882ad779048c8d79b5290139a8f", "score": "0.5695587", "text": "private function _daysInMonth($month=null,$year=null){\n \n if(null==($year))\n $year = date(\"Y\",time()); \n \n if(null==($month))\n $month = date(\"m\",time());\n \n return date('t',strtotime($year.'-'.$month.'-01'));\n }", "title": "" }, { "docid": "f0734bac569edbffd5911f86afd5c262", "score": "0.5692618", "text": "private function searchPubDate() {\n if (!empty($this->parms['publication-year'])) {\n $year = trim($this->parms['publication-year'] ?? '');\n if (!empty($year)) {\n $this->query->condition('year', $year);\n }\n if (!empty($this->parms['publication-month'])) {\n $month = $this->parms['publication-month'];\n if ($month >= 1 && $month <= 12) {\n $date = new \\DateTime(sprintf(\"2000-%02d-01\", $month));\n $values = [$date->format('m'), $date->format('M')];\n // Not $this->query->condition('pub_date.month', $values, 'IN');\n // until Drupal core bug #1518506 is fixed, because that bug breaks\n // the tests.\n $group = $this->query->orConditionGroup()\n ->condition('pub_date.month', $values[0], 'LIKE')\n ->condition('pub_date.month', $values[1], 'LIKE');\n $this->query->condition($group);\n }\n }\n }\n }", "title": "" }, { "docid": "ca86114b32ab501446dba4fe9b38be4e", "score": "0.5679121", "text": "private function months($is_required)\n\t{\t\n\t\t$month_names=array();\n\t\t\n\t\tfor ($i = 1; $i <= 12; $i++)\n\t\t{\n\t\t\tarray_push($month_names,date(\"F\", mktime(0, 0, 0, $i+1, 0, 0)));\n\t\t}\t\t\n\t\t\n\t\t$months = array_combine($months = range(1, 12), $month_names);\n\t\t\n\t\tif ($is_required == 'no')\n\t\t{\n\t\t\t$months = array('' => '---')+$months;\n\t\t}\n\t\t \n\t\treturn $months;\n\t}", "title": "" }, { "docid": "49b95934491e1e4bffd435a54ac0f2fc", "score": "0.5670956", "text": "public static function getMonthlyInvoiced() {\n //SELECT MONTH(date_creation) AS mes, SUM(total) AS total FROM `invoice` WHERE status = 1 AND YEAR(date_creation) = \"2015\" GROUP BY MONTH(date_creation)\n $due = DB::table('invoice')\n ->groupBy(DB::raw('YEAR(date_creation), MONTH(date_creation)'))\n ->whereRaw('date_creation BETWEEN \"' . date('Y-m-d', strtotime(date('Y-m-d') . \" - 1 year\")) . '\" AND \"' . date('Y-m-d') . '\" AND invoice.fk_company = ' . \\Auth::user()->fk_company)\n ->select(DB::raw('MONTH(date_creation) AS month, YEAR(date_creation) AS year, SUM(total) AS total'))\n ->get();\n //return the array\n return $due;\n }", "title": "" }, { "docid": "47bf250ed977383eb0158298102846bb", "score": "0.5660678", "text": "protected abstract function getCoursesNextMonth();", "title": "" }, { "docid": "1178cd42c3e7644522f491789dc74a54", "score": "0.5657253", "text": "function getAllMonths() {\n\t\t$months = array(\n\t\t\"January\" => \"January\",\t\t\n\t\t\"February\" => \"February\",\n\t\t\"March\" => \"March\",\n\t\t\"April\" => \"April\",\n\t\t\"May\" => \"May\",\t\t\n\t\t\"June\" => \"June\",\n\t\t\"July\" => \"July\",\n\t\t\"August\" => \"August\",\n\t\t\"September\" => \"September\",\t\t\n\t\t\"October\" => \"October\",\n\t\t\"November\" => \"November\",\n\t\t\"December\" => \"December\"\t\n\t\t);\n\t\treturn $months;\n\t}", "title": "" }, { "docid": "08bcefd4546f7728535334eb4b3d0d04", "score": "0.56561345", "text": "public function test_monthly_bymonthday_31() {\n global $DB;\n\n $rrule = 'FREQ=MONTHLY;BYMONTHDAY=31;COUNT=20';\n $mang = new rrule_manager($rrule);\n $mang->parse_rrule();\n $mang->create_events($this->event);\n\n $records = $DB->get_records('event', ['repeatid' => $this->event->id], 'timestart ASC', 'id, repeatid, timestart');\n $this->assertCount(20, $records);\n\n $non31months = ['February', 'April', 'June', 'September', 'November'];\n\n foreach ($records as $record) {\n $month = date('F', $record->timestart);\n $this->assertNotContains($month, $non31months);\n }\n }", "title": "" }, { "docid": "b1461e3743758c78ca30d9e8b9fa7b97", "score": "0.5652032", "text": "static public function getAllMondays($from_date, $to_date){ \n $first_dte = getdate(strtotime($from_date));\n $last_dte = getdate(strtotime($to_date));\n \n $numofdays = $this->count_days(strtotime($from_date), strtotime($to_date));\n //echo \"numofdays: \" . $numofdays . \" <br />\";\n $mon_list = array();\n $mon_cnt = 0;\n for ($i = 0; $i < $numofdays; $i++) {\n \n $day_dte = Date('l', mktime(0,0,0,$first_dte[\"mon\"],$first_dte[\"mday\"] + $i, $first_dte[\"year\"]));\n $date_dte = Date('d-m-Y', mktime(0,0,0,$first_dte[\"mon\"], $first_dte[\"mday\"] + $i, $first_dte[\"year\"]));\n \n if ($day_dte == 'Monday') {\n $mon_list[$mon_cnt] = $date_dte;\n $mon_cnt++;\n }\n \n }\n return $mon_list;\n }", "title": "" }, { "docid": "a0e30d07f594f602e9d2fdc205842e03", "score": "0.5648541", "text": "public function getDates() : array\n {\n if (empty($this->generated)) {\n $interval = $this->getInterval();\n $day_number = $this->getDayNumber();\n $current_date = $this->getStartDate();\n\n $iteration_count = 0;\n\n while ($current_date->between($this->getRangeStart(), $this->getRangeEnd()) && count($this->generated) < 500 && $iteration_count < 1000) {\n $end_of_month = $current_date->copy()->endOfMonth()->setTime(...explode(':', $this->getTimeOfDay()));\n if ($end_of_month->isWeekend()) {\n $end_of_month->modify('last weekday this month')->setTime(...explode(':', $this->getTimeOfDay()));\n }\n if ($end_of_month->between($this->getRangeStart(), $this->getRangeEnd())) {\n $this->generated[] = $end_of_month->copy();\n }\n\n $current_date->month($current_date->month + $interval);\n $iteration_count++;\n }\n }\n\n $this->generated = $this->filterExceptions($this->generated);\n $this->sortDates();\n $this->fixTimezones();\n return $this->generated;\n }", "title": "" }, { "docid": "e4997a9b614b887d5c0a9091efe9d205", "score": "0.5643407", "text": "function cal_days_in_month($calendar, $month, $year) {\n if (checkdate($month, 31, $year))\n return 31;\n if (checkdate($month, 30, $year))\n return 30;\n if (checkdate($month, 29, $year))\n return 29;\n if (checkdate($month, 28, $year))\n return 28;\n return 0; // error \n }", "title": "" }, { "docid": "44fb2a732e0096604cd1febbe4bbd82c", "score": "0.56388897", "text": "private function months()\n\t{\n\t\treturn array('01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12');\n\t}", "title": "" }, { "docid": "3d1993f1d611c1d8a4a7ef13efff2aef", "score": "0.56382287", "text": "public function create_availability_year_calendar( $year = 0, $from_month = 1, $to_month = 12, $return = 'all', $range = 'day', $exclude_booked = false, $check_start_date = true, $check_min_max_duration = true ) {\n $year_calendar = array();\n for ( $i = $from_month; $i <= $to_month; $i++ ) {\n $this_month_calendar = $this->create_availability_month_calendar( $year, $i, $return, $range, $exclude_booked, $check_start_date, $check_min_max_duration );\n if ( !empty( $this_month_calendar ) )\n $year_calendar[ $i ] = $this_month_calendar;\n }\n\n return $year_calendar;\n }", "title": "" }, { "docid": "09a2eb7794149d6245d40d2f75e9fdac", "score": "0.5636457", "text": "function get_days_of_month(){\n\t\t//returns an an array of obejcts with ids and names set to numbers from 1 to 31\n\t\t$days_of_month=array();\n\t\tfor ($i=1;$i<32;$i=$i+1){\n\t\t\t$new_object=new DefaultObject();\n\t\t\t$new_object->set_id($i);\n\t\t\t$new_object->set_name($i);\n\t\t\tarray_unshift($days_of_month,$new_object);\n\t\t}\n\t\treturn $days_of_month;\n\t}", "title": "" }, { "docid": "47d2d8bd456681a8acfc2141d4f12f06", "score": "0.56272984", "text": "public function selectionModeCalendarAction() {\n\t\t\n\t\t// build month array\n\t\t$months = $this->buildMonthArray();\n\t\t\n\t\tif (\n\t\t\t// validate given year\n\t\t\tself::validateYear($this->params['year'])\n\t\t\t// validate given month\n\t\t\t&& self::validateMonth($this->params['month'])\n\t\t) {\n\t\t\t\n\t\t\t// if the month is allowed\n\t\t\tif (!$this->isMonthAllowed($this->params['year'].$this->params['month'], $months)) {\n\t\t\t\t$this->addFlashMessageError('validation.calendar_invalid_month');\n\t\t\t} else {\n\n\t\t\t\t$this->data('showAvailableDays', TRUE);\n\t\t\t\t$this->data('activeYear', $this->params['year']);\n\t\t\t\t$this->data('activeMonth', $this->params['month']);\n\t\t\t\t$this->data('activeMonthKey', $this->params['year'].$this->params['month']);\n\n\t\t\t\t// API get gov available days\n\t\t\t\t$availableDays = $this->api()->getGovAvailableDays(array(\n\t\t\t\t\t'locationID'\t=> $this->getLocation(),\n\t\t\t\t\t'productID'\t\t=> $this->getProductIdList(),\n\t\t\t\t\t'startDate'\t\t=> $this->params['year'].'-'.$this->params['month'].'-01',\n\t\t\t\t\t'endDate'\t\t=> $this->params['year'].'-'.$this->params['month'].'-'.cal_days_in_month(CAL_GREGORIAN, $this->params['month'], $this->params['year']),\n\t\t\t\t\t'appDuration'\t=> $this->getProductsDuration(),\n\t\t\t\t));\n\t\t\t\t\n\t\t\t\t// if there are available days\n\t\t\t\tif ($availableDays->dates) {\n\t\t\t\t\t\n\t\t\t\t\t$availableDays = $this->renderAvailableDaysArray($availableDays->dates);\n\t\t\t\t\t\n\t\t\t\t\t// render available days array\n\t\t\t\t\t$this->data('days', $availableDays);\n\t\t\t\t\t\n\t\t\t\t\t// if date is set we should serve the available times of that date\n\t\t\t\t\tif ($this->params['date'] && self::validateDate($this->params['date']) && self::isDateAllowed($this->params['date'], $availableDays)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t$this->data('times', $this->getAvailableTimesByDate($this->params['date']));\n\t\t\t\t\t\t$this->data('showAvailableTimes', TRUE);\n\t\t\t\t\t\t$this->data('activeDay', self::getActiveDayByDate($this->params['date'], $availableDays));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->data('months', $months);\n\t\t$this->data('year', date('Y'));\n\t}", "title": "" }, { "docid": "35ed8dee03f01ee54be7ac05ce368c80", "score": "0.56240463", "text": "public function getMonthlyEntries()\n {\n usort($this->monthlyEntries, function($entry1, $entry2){\n $entry1Key = (12 * $entry1->getKey()->getYear()) + ($entry1->getKey()->getMonth() - 1);\n $entry2Key = (12 * $entry2->getKey()->getYear()) + ($entry2->getKey()->getMonth() - 1);\n return $entry1Key - $entry2Key;\n });\n\n return $this->monthlyEntries;\n }", "title": "" }, { "docid": "ff189de23b427c8b32390188d889a1e6", "score": "0.5616816", "text": "public function selectInfoActivityDeadlineInCurrentMonth()\n {\n $currentMonth = date('Y-m');\n return QcOrderAllocation::where('action', $this->getDefaultHasAction())->where('receiveDeadline', 'like', \"%$currentMonth%\")->select('*');\n }", "title": "" }, { "docid": "051ad4f10f1d19dd045573f7b7b40716", "score": "0.5612432", "text": "public function getAllEvents($month) {\n\t$sql = \"Select * From events Where EVENT_MONTH = '$month'\";\n $result = mysqli_query($this->db_conx,$sql);\n return $result;\n }", "title": "" }, { "docid": "7bb96fc6f6a33bb0702101ba87207f92", "score": "0.561032", "text": "function calendar_dates_api($args) {\n $cal = new CMOA_Calendar();\n $year = (isset($args['year'])) ? $args['year'] : date(\"Y\");\n $month = (isset($args['month'])) ? $args['month'] : date(\"m\");\n $date = new DateTime(\"{$year}-{$month}-01\", new DateTimeZone($cal->get_calendar_timezone()));\n return $cal->calendar_dates($date);\n}", "title": "" }, { "docid": "f876ecd136ef8a2e9c5bd8f086af0b16", "score": "0.560832", "text": "public static function getMonths($from, $to){\n\t\t$today = \"'\".date(\"Y-m-d\").\"'\";\n\t\t$year = date('Y');\n\t\t$tests = Test::select('time_created')->distinct();\n\n\t\tif(strtotime($from)===strtotime($today)){\n\t\t\t$tests = $tests->where('time_created', 'LIKE', $year.'%');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$toPlusOne = date_add(new DateTime($to), date_interval_create_from_date_string('1 day'));\n\t\t\t$tests = $tests->whereBetween('time_created', array($from, $toPlusOne));\n\t\t}\n\n\t\t$allDates = $tests->lists('time_created');\n\t\tasort($allDates);\n\t\t$yearMonth = function($value){return strtotime(substr($value, 0, 7));};\n\t\t$allDates = array_map($yearMonth, $allDates);\n\t\t$allMonths = array_unique($allDates);\n\t\t$dates = array();\n\n\t\tforeach ($allMonths as $date) {\n\t\t\t$dateInfo = getdate($date);\n\t\t\t$dates[] = array('months' => $dateInfo['mon'], 'label' => substr($dateInfo['month'], 0, 3),\n\t\t\t\t'annum' => $dateInfo['year']);\n\t\t}\n\n\t\treturn json_encode($dates);\n\t}", "title": "" }, { "docid": "fbd0a1d99cdb80879abd24357710c06d", "score": "0.5602086", "text": "public function testRequestingTwoMonthsOfResultsReturnsTwoResults()\n {\n \t$results = $this->manager->getDates('2010-01', '2010-02');\n \t$this->assertEquals(2, count($results));\n }", "title": "" }, { "docid": "0ac970cff8a2efe4d45cc22e0be35ef6", "score": "0.55953306", "text": "function getCalendarData($month = 05,$year = 2018 )\t{\n\n//Create a timestamp based on the parameters for getCalendarData\n$ts = mktime(0,0,0,$month,1,$year);\n$calendarData = array();\n//We have to set the counter to 1 and not zero because calendar days start at 1.\n$counter = 1;\n\n//Important Days\n//First Day of the Month\n$firstDay = (int)date('w', $ts);\n//Last Day of the Month\n$lastDay = cal_days_in_month(CAL_GREGORIAN, $month, $year);\n\t//Iterate through the grid (7 x 5)\n\t//For each row\n\t//For each column\n\t//Start counting the days if the $counter is greater than the first day, \n\t//continue on until the counter is less than or equal to the last day + the first day \n\t//(which would mean the number of days in the month has been reached.)\n\n\n\t// get the first day and last day \n\t// if not inside first day and last day, put null \n\t\t// Iterate grid (6 x 7)\n\t\t// if(counter > firstday && counter <= lastday + firstDay){\n\t\t// \tcalendarData[] = counter - firstDay \n\t\t// } else {\n\t\t// \tcalendarData[] = null;\n\t\t// }\n\t\t// counter++;\n\n\n\t//Append the current month and year to the array\n\t$calendarData[\"month\"] = date('F',$ts);\n\t$calendarData[\"year\"] = date('Y',$ts);\n\tvar_dump($calendarData);\n\t\n\treturn $calendarData;\n}", "title": "" }, { "docid": "d184abedb3bd8ef1e14f174f70690527", "score": "0.5593219", "text": "function date_calc_get_calendar_month($month = 0, $year = 0, $format = DATE_CALC_FORMAT) {\n if (empty($year)) {\n $year = date_calc_get_year();\n }\n if (empty($month)) {\n $month = date_calc_get_month();\n }\n $month_array = array();\n // date for the first row, first column of calendar month\n if (variable_get('date_first_day', 1) == 1) {\n if (date_calc_first_of_month_weekday($month, $year) == 0) {\n $curr_day = date_calc_date_to_days('01', $month, $year) - 6;\n }\n else {\n $curr_day = date_calc_date_to_days('01', $month, $year)\n - date_calc_first_of_month_weekday($month, $year) + 1;\n }\n }\n else {\n $curr_day = (date_calc_date_to_days('01', $month, $year)\n - date_calc_first_of_month_weekday($month, $year));\n }\n // number of days in this month\n $date_calc_days_in_month = date_calc_days_in_month($month, $year);\n $date_calc_weeks_in_month = date_calc_weeks_in_month($month, $year);\n for ($row_counter = 0; $row_counter < $date_calc_weeks_in_month; $row_counter++) {\n for ($column_counter = 0; $column_counter <= 6; $column_counter++) {\n $month_array[$row_counter][$column_counter] =\n date_calc_days_to_date($curr_day , $format);\n $curr_day++;\n }\n }\n return $month_array;\n}", "title": "" }, { "docid": "0822857a5b713379d4648ff7c1fa96dc", "score": "0.5588342", "text": "function getAllMonths($selected = '')\n {\n $options = '';\n for ($i = 1; $i <= 12; $i++) {\n $value = ($i < 10) ? '0' . $i : $i;\n $selectedOpt = ($value == $selected) ? 'selected' : '';\n $options .= '<option value=\"' . $value . '\" ' . $selectedOpt . ' >' . date(\"F\", mktime(0, 0, 0, $i + 1, 0, 0)) . '</option>';\n }\n return $options;\n }", "title": "" }, { "docid": "c321212f58da41eca34e377b3cbe3be6", "score": "0.55798334", "text": "function getMonth($date)\n{\n\n $months = array(\"Januar\", \"Februar\", \"März\", \"April\", \"Mai\", \"Juni\", \"Juli\", \"August\", \"September\", \"Oktober\", \"November\", \"Dezember\");\n return $months[$date->format('n') - 1];\n}", "title": "" }, { "docid": "8fee60ec49721acb77b6e92a3f504575", "score": "0.5575674", "text": "public function getDataMonth()\n {\n return $this->model()->where('created_at', '>=', Carbon::now()->startOfMonth())->get();\n }", "title": "" }, { "docid": "2d243b1f3500a7fc636a39d849ff2fe6", "score": "0.5568033", "text": "function kcm_getScheduleDateRange(&$pStartDate,&$pEndDate,$mode,$classFirst=NULL) {\n // 'kr' = kcm site manager, 'ka'=authorized\n switch ($mode) {\n case 'as': $bef = '-13'; $aft = '+7'; $dow = -1; break;\n case 'ks': $bef = '+0'; $aft = '+6'; $dow = -1; break;\n case 'kr': $bef = '-8'; $aft = '+5'; $dow = -1; break;\n case 'ka': $bef = '-14'; $aft = '+14'; $dow = -1; break;\n default: $bef = '-7'; $aft = '+7'; $dow = -1; break;\n }\n $bef = '-50'; $aft='+30'; // added 2018-01-02 jpr per gerald's request maybe should remove\n $dateToday = date_create( \"today\" );\n\t$dateStart = clone $dateToday;\n\t$dateEnd = clone $dateStart;\n if ($dow >= 0) {\n while (date_format( $dateStart, 'N' ) != $dow) { //1=Monday, 7=Sunday\n date_modify( $dateStart, '-1 day' );\n } \n } \n date_modify( $dateStart, $bef . ' day' );\n date_modify( $dateEnd, $aft . ' day' );\n \t$pStartDate = date_format( $dateStart, 'Y-m-d' );\n \t$pEndDate = date_format( $dateEnd, 'Y-m-d' );\n // added 8-10-2016 - not tested\n //if ( ( $mode == 'ka') and ($classFirst !=NULL) ) {\n // $d1 = new DateTime($classFirst);\n // $d1 = new DateTime(); // now\n // $interval = $d1->diff($d2);\n // $dif = $interval->format('%r%a');\n // if ($dif <= 21) {\n // $start = substr($pStartDate,0,5);\n // $end = substr($pStartDate,5,5);\n // if ( ($end >= '08-01') and ($end <= '09-25') ) {\n // $pStartDate = $start . '04-20';\n // } \n // }\n //}\n //deb($pStartDate,$pEndDate,$mode); \n}", "title": "" }, { "docid": "0c540f8adcfb2accf5eca98985433a4b", "score": "0.55657744", "text": "public function queryCurrentMonth() {\n\t\t$sql = 'SELECT * FROM budget WHERE budgetdate like (SELECT CONCAT(YEAR(CURDATE()),'.\"'-0'\".',MONTH(CURDATE()),'.\"'-%'\".') FROM DUAL)';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getRow($sqlQuery);\n\t}", "title": "" }, { "docid": "fd6a38da372bb6bda164e5f827e66bdf", "score": "0.55555046", "text": "function ReturnMonthsArray($aMonth, $graphType, $currentYear) {\n //Loop through 12 months using long date description and determine\n //if aMonth contains that month. If not return 0.0\n\n $aReturn = array();\n\n for ($x = 1; $x <= 12; $x++) {\n $tstrMonth = date(\"F\", mktime(0, 0, 0, $x + 1, 0, 0));\n $date = date(\"Y-m-d\", mktime(0, 0, 0, $x, 1, $currentYear));\n $valIndex = 3;\n /*\n switch ($graphType) {\n case \"year\":\n $valIndex = 6;\n break;\n case \"month\":\n $valIndex = 5;\n break;\n case \"avginvoice\":\n $valIndex = 2;\n break;\n case \"taxcollected\":\n $valIndex = 4;\n break;\n default:\n $valIndex = 3;\n break;\n }*/\n\n if (!isset($aMonth[$tstrMonth])) {\n //what should we be doing here?\n $aReturn[$date] = \"\";\n } else if ($this->CleanFloat($aMonth[$tstrMonth][$valIndex]) == \"na\") {\n $aReturn[$date] = \"\";\n } else {\n $tempY = (int) $this->CleanFloat($aMonth[$tstrMonth][$valIndex]);\n $aReturn[$date] = $tempY;\n }\n\n if (($currentYear == date(\"Y\")) && (date(\"F\") == $tstrMonth)) {\n return $aReturn;\n }\n\n }\n\n return $aReturn;\n }", "title": "" }, { "docid": "0849520e64cd9a33b16a476931a31f51", "score": "0.55501515", "text": "public function find_by_month($year, $month) {\n\t\tif ($year == 1970 && $month == 0) {\n\t\t\treturn $this->load(\n\t\t\t\tDB::select_array($this->fields())\n//\t\t\t\t ->where('image_id', 'IS NOT', null)\n\t\t\t\t\t->where('stamp_begin', 'IS', null)\n\t\t\t\t\t->order_by('id', 'DESC'),\n\t\t\t\tnull\n\t\t\t);\n\t\t} else {\n\t\t\t$start = mktime(0, 0, 0, $month, 1, $year);\n\t\t\t$end = strtotime('+1 month', $start);\n\t\t\treturn $this->load(\n\t\t\t\tDB::select_array($this->fields())\n//\t\t\t\t\t->where('image_id', 'IS NOT', null)\n\t\t\t\t\t->where('stamp_begin', 'BETWEEN', array($start, $end))\n\t\t\t\t\t->order_by('stamp_begin', 'DESC')\n\t\t\t\t\t->order_by('event_id', 'DESC'),\n\t\t\t\tnull\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "20a746e451478f5160743228df026e8e", "score": "0.554836", "text": "private function getDaysInMonth($month) {\r\n\t\treturn cal_days_in_month(CAL_GREGORIAN, $month, $this->year);\r\n\t}", "title": "" }, { "docid": "3f426acbea4f950611e2b286259cc4c3", "score": "0.55467737", "text": "public function findManyByDate($year, $month, $limit = null)\n {\n $query = $this->model\n ->live()\n ->orderBy('publish_at', 'DESC')\n ->whereYear('publish_at', '=', $year);\n\n if ($month) {\n $query->whereMonth('publish_at', '=', $month);\n }\n\n return $query->paginate($limit);\n }", "title": "" }, { "docid": "3a4e852873abda717178d901f3572bf9", "score": "0.5531803", "text": "function get_consumer_billings_by_month_year_for_listing($month, $year){\n\n\t\t\t// $this->db->select('consumer_reading.*');\n\t\t\t// $this->db->from('consumer_reading');\n\t\t\t// $this->db->where_not_in('consumer_reading.id',$consumer_id);\n\t\t\t// //$this->db->limit(1);\n\n\t\t\t// $query = $this->db->get();\n\t\t$query = $this->db->query(\"select a.*,b.fullname as fullname,b.account_no, b.address,b.consumer_type from consumer_bill a join consumer b on a.consumer_id=b.id where a.bill_month=\".$month.\" and a.bill_year=\".$year);\n\t\t\treturn $query->result_array();\n\n\n \t\t}", "title": "" }, { "docid": "7d8d1dc856da065735cd4b6093b8be04", "score": "0.55249786", "text": "public function get_current_monthly_intervals() {\n\t\t$start = $this->settings['start'];\n\t\t$repeat = $this->settings['repeat'];\n\n\t\t// get the first day of the month before the start date so we can do the month difference\n\t\t$start_date = date( 'j', strtotime( $start['date'] ) );\n\n\t\t//set the fake start date of the campaign\n\t\t$month_start['date'] = date( '1 F Y', strtotime( $start['date'] ) );\n\t\t$month_start['time'] = $start['time'];\n\n\t\t//get the number of whole campaigns that rolled until today (moths + repeat every x months)\n\t\t$start_date = $this->date( $month_start );\n\t\t$now = $this->now();\n\n\t\t$i = 0;\n\n\t\twhile ( ( $start_date = strtotime( '+1 MONTH', $start_date ) ) <= $now ) {\n\t\t\t$i ++;\n\t\t}\n\t\t$int_number = floor( $i / $repeat );\n\n\t\t// set the start date of this roll interval\n\t\t$temp = $this->set_after_occurrence_date( $this->settings['rolling_type'], $month_start, $int_number * $repeat );\n\t\t$int_start['date'] = $temp['date'];\n\t\t$int_start['time'] = $start['time'];\n\n\t\t//construct an array of all weekdays where the campaign should show\n\t\t$display_intervals = $this->get_display_days( $int_start );\n\n\t\t// check if the repeat is 1, and it's not the first month\n\t\t// if we're in our first month this could cause erroneous displlays of the campaign\n\t\tif ( $repeat === 1 && $int_start !== $month_start ) {\n\t\t\t// check if any end interval is in the next month\n\t\t\tforeach ( $display_intervals as $day_id => $interval ) {\n\t\t\t\t$partial_start = date( 'F', strtotime( $interval['start']['date'] ) );\n\t\t\t\t$partial_end = date( 'F', strtotime( $interval['end']['date'] ) );\n\n\t\t\t\t// if the start month and end month are not the same then the end\n\t\t\t\t// is in the next month and should be shown at the beginning of\n\t\t\t\t// this month too because we're already in the second month\n\t\t\t\tif ( $partial_start !== $partial_end ) {\n\t\t\t\t\t// create the new array with the correct interval\n\t\t\t\t\t$display_intervals['new']['start']['date'] = date( '1 F Y', strtotime( $interval['start']['date'] ) );\n\t\t\t\t\t$display_intervals['new']['start']['time'] = '00:00';\n\t\t\t\t\t$display_intervals['new']['end']['date'] = date( 'j F Y', strtotime( $interval['end']['date'] . ' -1 Month' ) );\n\t\t\t\t\t$display_intervals['new']['end']['time'] = $interval['end']['time'];\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $display_intervals;\n\t}", "title": "" }, { "docid": "3f05a0fd6cd7098fcc993ef94671f7fb", "score": "0.5515249", "text": "public function ordersInMonth()\n {\n $min_config = config('statistics.min_days_to_display');\n $time = date('d');\n $min_days = $time > $min_config ? $time : $min_config;\n $days = [];\n for ($i = 1; $i < $min_days; $i++) {\n $days[$i] = 0;\n }\n\n $data = Os::select('day', DB::raw('COUNT(id) as orders'))\n ->whereYear('created_at', date('Y'))\n ->whereMonth('created_at', date('m'))\n ->groupBy('day')\n ->orderBy('orders', 'desc')\n ->get()\n ->toArray();\n\n foreach ($data as $res) {\n $days[$res['day']] = $res['orders'];\n }\n\n return $days;\n }", "title": "" }, { "docid": "5b05cdc422ddc59e71cb17e58ceae4cf", "score": "0.5511513", "text": "public static function getMonthAll($zerofield = false, $abrev = false) {\n $months = [\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\n if ($zerofield) {\n foreach ($months as $idMonth => $month) {\n $idZero = ($idMonth < 10) ? \"0\" . $idMonth : $idMonth;\n unset($months[$idMonth]);\n $months[$idZero] = $month;\n }\n }\n\n if ($abrev) {\n return self::getMonthsAbreviatures($months);\n }\n\n return $months;\n }", "title": "" }, { "docid": "949f55369fad085dca53969045435ca8", "score": "0.55076796", "text": "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(\"n/j/Y\", mktime(0, 0, 0, $startMonth , ($startDay+$i), $startYear));\r\n\t}\r\n\treturn $dates;\r\n}", "title": "" }, { "docid": "51c511fda386824569e3117e3d938fe0", "score": "0.5504268", "text": "public function getMonths() {\n $months = [];\n for($i=0; $i<$this->getNumMonths(); $i++) {\n $months[] = new \\Entities\\Month( $this->getFirstCalendarDay()->modify('+'.$i.' month') );\n }\n return $months;\n }", "title": "" }, { "docid": "333fa991aa5aa9dfce4954cd7b251db1", "score": "0.5502025", "text": "function getMonthDays($month_no) {\n $persian_month_days = array(0, 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29);\n return $persian_month_days[$month_no];\n }", "title": "" }, { "docid": "910f4e68de25ea93a51847567210640e", "score": "0.5493238", "text": "static function getDateRangeForMonth( int $Month = 0, string $Year = '' ) : DateRange\n\t{\n\t\tif( !$Month )\n\t\t{\n\t\t\t$Month = date( 'm' );\n\t\t}\n\n\t\tif( !$Year )\n\t\t{\n\t\t\t$Year = date( 'Y' );\n\t\t}\n\n\t\t$Start = \"$Year-$Month-01\";\n\t\t$End = \"$Year-$Month-\".self::getDaysInMonth( $Month, $Year );\n\n\t\treturn new DateRange(\n\t\t\t$Start,\n\t\t\t$End\n\t\t);\n\t}", "title": "" }, { "docid": "5008d3ac3e2cb3824d6f0ac0fb65b584", "score": "0.5491501", "text": "function od_get_months() {\n\treturn array(\n\t\t1 => __('Jan', 'od'),\n\t\t2 => __('Feb', 'od'),\n\t\t3 => __('Mrt', 'od'),\n\t\t4 => __('Apr', 'od'),\n\t\t5 => __('Mei', 'od'),\n\t\t6 => __('Jun', 'od'),\n\t\t7 => __('Jul', 'od'),\n\t\t8 => __('Aug', 'od'),\n\t\t9 => __('Sep', 'od'),\n\t\t10 => __('Okt', 'od'),\n\t\t11 => __('Nov', 'od'),\n\t\t12 => __('Dec', 'od'),\n\t);\n}", "title": "" }, { "docid": "cc122b7196b4b5f192c8f051e4df40a6", "score": "0.5483454", "text": "public function getByMonth($date)\n\t{\n\t\tglobal $zfsession;\n\t\t\n\t\t$datetime = strtotime($date);\n\t\t$month = date('n', $datetime);\n\t\t$year = date('Y', $datetime);\n\n\t\t$select = $this->_db->select()\n\t\t\t\t ->from(array('job' => 'job'))\n ->order('job_added DESC')\n\t\t\t\t ->where('month(job_added) = ?', $month)\n\t\t\t\t ->where('year(job_added) = ?', $year)\n\t\t\t\t ->where('job_area LIKE \"%|'.$zfsession->userCity['fk_country_id'].'|'.$zfsession->userCity['fk_province_id'].'|%\"');\n\t\treturn $this->fetchAll($select);\n\t\t\n\t}", "title": "" }, { "docid": "c77f3a229433e7386f8d65aab1d31cc4", "score": "0.5482094", "text": "public function test()\n {\n $dateStart = $this->year . \"-\" . $this->month . \"-1\";\n $dateEnd = $this->year . \"-\" . $this->month . \"-\" . date('t', $this->month);\n $requests = Request::getAllRequestsByDate($dateStart, $dateEnd);\n return $requests;\n\n }", "title": "" }, { "docid": "a6925c5a21ac2a9428bc6ad7024e5cb4", "score": "0.5481466", "text": "function fnGetDateForBenchmarkByMedia()\n {\n $intCurrentDate = date(\"j\");\n $intCurrentMonth = date(\"m\");\n $intCurrentYear = date(\"Y\");\n\n if ($intCurrentDate >= 1 && $intCurrentDate < 8) {\n $intCurrentMonth = date('m', mktime(0, 0, 0, $intCurrentMonth - 1, 8, $intCurrentYear));\n }\n\n $intNextMonthDate = date('Y-m', mktime(0, 0, 0, $intCurrentMonth + 1, 8, $intCurrentYear));\n $intCurrentMonthDate = \"$intCurrentYear-$intCurrentMonth\";\n\n return $arrStartEndDate = array(\"Current_month_date\" => $intCurrentMonthDate, \"next_month_date\" => $intNextMonthDate);\n }", "title": "" }, { "docid": "eb58756f12f19144bdf246356caaf56c", "score": "0.54796165", "text": "function slots_available_on_date( $date ) {\n\n\t\tglobal $wpdb;\n\n\t\t$timeslots = $this->get_timeslot_data();\n\t\t$datetime = DateTime::createFromFormat( 'Ymd', $date );\n\t\t$date_timestamp = $datetime->getTimestamp();\n\n\t\t$available_timeslots = array();\n\n\t\tif ( ! $timeslots ) {\n\t\t\treturn $available_timeslots;\n\t\t}\n\n\t\tforeach ( $timeslots as $timeslot ) {\n\n\t\t\t$slot_id = sprintf( '%s_%s', $date, $timeslot['id'] );\n\n\t\t\t$slot_allowed_on_day = $this->is_timeslot_available_on_day( $date_timestamp, $timeslot );\n\t\t\t$in_past = $this->is_timeslot_in_past( $timeslot, $date );\n\t\t\t$slot_allowed_for_method = $this->is_timeslot_allowed_for_method( $timeslot );\n\n\t\t\tif ( ! $slot_allowed_on_day || $in_past || ! $slot_allowed_for_method ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$slots_available_count = $this->get_slots_available_count( $timeslot, $date );\n\n\t\t\tif ( $slots_available_count <= 0 ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$timeslot['slot_id'] = $slot_id;\n\t\t\t$available_timeslots[] = $timeslot;\n\n\t\t}\n\n\t\treturn $available_timeslots;\n\n\t}", "title": "" }, { "docid": "7f0cf51c6d2ef60c53c7edc72db7f277", "score": "0.54774886", "text": "private function get_available_days($array, $timestamp) {\n\t\t// SERVICE PERIOD TYPE\n\t\t$period_type = (string) get_post_meta($this->service_id, 'ga_service_period_type', true);\n\n\t\tif( $period_type == 'date_range' ) {\n\t\t\t$range = (array) get_post_meta($this->service_id, 'ga_service_date_range', true);\n\n\t\t\t$dates = array();\n\t\t\tif( isset($range['from']) && ga_valid_date_format($range['from']) && isset($range['to']) && ga_valid_date_format($range['to']) ) {\n\t\t\t\t$period = new DatePeriod(\n\t\t\t\t new DateTime($range['from']),\n\t\t\t\t new DateInterval('P1D'),\n\t\t\t\t new DateTime($range['to'])\n\t\t\t\t);\n\t\t\t\tforeach ($period as $key => $value) {\n\t\t\t\t $dates[] = $value->format('Y-m-j');\n\t\t\t\t}\n\n\t\t\t\t $dates[] = $range['to'];\n\t\t\t}\n\t\t\treturn $dates;\n\t\t}\n\n\t\tif( $period_type == 'custom_dates' ) {\n\t\t\t$custom_dates = (array) get_post_meta($this->service_id, 'ga_service_custom_dates', true);\n\t\t\treturn $custom_dates;\n\t\t}\n\n\n\t\t$array = (array) $array;\n\t\t$weeks = array('sunday' ,'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday');\n\t\t$dates = array();\n\n\t\tforeach( $array as $week ) {\n\t\t\tif( in_array($week, $weeks) ) {\n\t\t\t\t$date = new DateTime();\n\t\t\t\t$date->setTimezone( new DateTimeZone( $this->time_zone ) );\n\t\t\t\t$date->setTimestamp($timestamp);\n\t\t\t\t$date->modify(\"first $week of this month\");\n\t\t\t\t$thisMonth = $date->format('m');\n\t\t\t\twhile ($date->format('m') == $thisMonth) {\n\t\t\t\t\t$dates[] = $date->format('Y-m-j');\n\t\t\t\t\t$date->modify(\"next $week\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $dates;\n\t}", "title": "" }, { "docid": "b2767b0482bb146a981518c83a2f1c88", "score": "0.54737234", "text": "public function testPassingBadStartMonthYearUsesCurrentMonthYear()\n {\n $results = $this->manager->getDates('notValid', date('Y-m'));\n $this->assertEquals(1, count($results));\n }", "title": "" }, { "docid": "cdd253d9c40ad3ea4991db9b3ed518e5", "score": "0.5469678", "text": "public function getMonth($start, $end) {\n $month = [];\n for ($i = 0; $i < $end; ++$i) {\n array_push($month, ++$start);\n }\n return $month;\n }", "title": "" }, { "docid": "d864b38ceee2fdc83686bcded5ea8ad6", "score": "0.54674256", "text": "function getSalaryAndBonusDateByMonth($month, $year)\n {\n $date = date('Y-m-d',strtotime(\"last day of $month $year\"));\n if(in_array(date('l', strtotime($date)), ['Saturday', 'Sunday'])){\n if(date('l', strtotime($date)) == 'Saturday'){\n $date = date('Y-m-d',strtotime('-1 day', strtotime($date)));\n }else{\n $date = date('Y-m-d',strtotime('-2 day', strtotime($date)));\n }\n }\n\n return [$month, $date, $this->getBonusDatesByMonth()[$month]];\n }", "title": "" } ]
d91c3b935e89a166ecddecd5cf94c742
Only search by pattern + location + category
[ { "docid": "bb2de48370041352d644c340a03fbaba", "score": "0.0", "text": "private function _makeSQLPremium($num = 2)\n {\n $arrayConditions = $this->_conditions();\n \n if ($this->withPattern ) {\n // sub select for JOIN ----------------------\n $this->dao->select('distinct d.fk_i_item_id');\n $this->dao->from(DB_TABLE_PREFIX . 't_item_description as d');\n $this->dao->from(DB_TABLE_PREFIX . 't_item as ti');\n $this->dao->where('ti.pk_i_id = d.fk_i_item_id');\n $this->dao->where(sprintf(\"MATCH(d.s_title, d.s_description) AGAINST('%s' IN BOOLEAN MODE)\", $this->sPattern));\n $this->dao->where(\"ti.b_premium = 1\");\n\n if(empty($this->locale_code)) {\n if(OC_ADMIN) {\n $this->locale_code[osc_current_admin_locale()] = osc_current_admin_locale();\n } else {\n $this->locale_code[osc_current_user_locale()] = osc_current_user_locale();\n }\n }\n $this->dao->where(sprintf(\"( d.fk_c_locale_code LIKE '%s' )\", implode(\"' d.fk_c_locale_code LIKE '\", $this->locale_code)));\n\n $subSelect = $this->dao->_getSelect();\n $this->dao->_resetSelect();\n // END sub select ----------------------\n $this->dao->select(DB_TABLE_PREFIX.'t_item.*, '.DB_TABLE_PREFIX.'t_item.s_contact_name as s_user_name');\n $this->dao->from( DB_TABLE_PREFIX.'t_item' );\n $this->dao->from(sprintf('%st_item_stats', DB_TABLE_PREFIX));\n $this->dao->where(sprintf('%st_item_stats.fk_i_item_id = %st_item.pk_i_id', DB_TABLE_PREFIX, DB_TABLE_PREFIX));\n $this->dao->where(sprintf(\"%st_item.b_premium = 1\", DB_TABLE_PREFIX));\n $this->dao->where(sprintf(\"%st_item.b_enabled = 1 \", DB_TABLE_PREFIX));\n $this->dao->where(sprintf(\"%st_item.b_active = 1 \", DB_TABLE_PREFIX));\n $this->dao->where(sprintf(\"%st_item.b_spam = 0\", DB_TABLE_PREFIX));\n\n\n if($this->withLocations || OC_ADMIN) {\n $this->dao->join(sprintf('%st_item_location', DB_TABLE_PREFIX), sprintf('%st_item_location.fk_i_item_id = %st_item.pk_i_id', DB_TABLE_PREFIX, DB_TABLE_PREFIX), 'LEFT');\n $this->_addLocations();\n }\n if($this->withCategoryId && (count($this->categories) > 0)) {\n $this->dao->where(sprintf(\"%st_item.fk_i_category_id\", DB_TABLE_PREFIX) .' IN ('. implode(', ', $this->categories) .')' );\n }\n $this->dao->where(DB_TABLE_PREFIX.'t_item.pk_i_id IN ('.$subSelect.')');\n\n $this->dao->groupBy(DB_TABLE_PREFIX.'t_item.pk_i_id');\n $this->dao->orderBy(sprintf('SUM(%st_item_stats.i_num_premium_views)', DB_TABLE_PREFIX), 'ASC');\n $this->dao->orderBy(null, 'random');\n $this->dao->limit(0, $num);\n } else {\n $this->dao->select(DB_TABLE_PREFIX.'t_item.*, '.DB_TABLE_PREFIX.'t_item.s_contact_name as s_user_name');\n $this->dao->from( DB_TABLE_PREFIX.'t_item' );\n $this->dao->from(sprintf('%st_item_stats', DB_TABLE_PREFIX));\n $this->dao->where(sprintf('%st_item_stats.fk_i_item_id = %st_item.pk_i_id', DB_TABLE_PREFIX, DB_TABLE_PREFIX));\n $this->dao->where(sprintf(\"%st_item.b_premium = 1\", DB_TABLE_PREFIX));\n $this->dao->where(sprintf(\"%st_item.b_enabled = 1 \", DB_TABLE_PREFIX));\n $this->dao->where(sprintf(\"%st_item.b_active = 1 \", DB_TABLE_PREFIX));\n $this->dao->where(sprintf(\"%st_item.b_spam = 0\", DB_TABLE_PREFIX));\n\n if($this->withLocations || OC_ADMIN) {\n $this->dao->join(sprintf('%st_item_location', DB_TABLE_PREFIX), sprintf('%st_item_location.fk_i_item_id = %st_item.pk_i_id', DB_TABLE_PREFIX, DB_TABLE_PREFIX), 'LEFT');\n $this->_addLocations();\n }\n if( $this->withCategoryId && (count($this->categories) > 0) ) {\n $this->dao->where(sprintf(\"%st_item.fk_i_category_id\", DB_TABLE_PREFIX) .' IN ('. implode(', ', $this->categories) .')' );\n }\n\n $this->dao->groupBy(DB_TABLE_PREFIX.'t_item.pk_i_id');\n $this->dao->orderBy(sprintf('SUM(%st_item_stats.i_num_premium_views)', DB_TABLE_PREFIX), 'ASC');\n $this->dao->orderBy(null, 'random');\n $this->dao->limit(0, $num);\n }\n\n $sql = $this->dao->_getSelect();\n // reset dao attributes\n $this->dao->_resetSelect();\n\n return $sql;\n }", "title": "" } ]
[ { "docid": "2a7386b482ef4ca6a39d3505f3dd5b69", "score": "0.6798554", "text": "protected static function categoryToWhere() {\n $patterns = array(\n 'structures' => 'structures-%',\n 'affiliation' => 'affiliation-%',\n 'diploma' => 'diploma-%',\n 'gpelp' => 'groups-gpelp.%',\n //'gpetp' => 'groups-gpetp.%',\n 'elp' => 'groups-mati%'\n );\n $res = array();\n $other = '';\n foreach ($patterns as $cat => $pattern) {\n $res[$cat] = \"idnumber LIKE '$pattern' \";\n $other = $other . \"idnumber NOT LIKE '$pattern' AND \";\n }\n $res['other'] = substr($other, 0, -4); //drop the last AND\n return $res;\n }", "title": "" }, { "docid": "b739d428592370d08479a5cceb684947", "score": "0.65820515", "text": "function mbereg_search($pattern = null, $option) {}", "title": "" }, { "docid": "86c9b7841f080874752b7d52d7cff098", "score": "0.65222734", "text": "public function searchByName(string $category_name_part);", "title": "" }, { "docid": "311317e089d447cf65ac00e9d30a4a46", "score": "0.6516959", "text": "public function getSearchResult($keyword,$category=''){\n if($category == 'All'){\n return $this->getSearchResultz(['conditions' => \"((title LIKE ?) OR (description LIKE ?) \", 'bind' =>[$keyword]]);\n }else{\n return $this->getSearchResultz(['conditions' => \"(title ? OR description ?) AND (category = ?)\", 'bind' =>[$keyword,$keyword,$category]]);\n }\n \n // return $this->getSearchResult(['conditions' => \"((title LIKE ?) OR (description LIKE ?) AND (category = ?)\", 'bind' =>[$keyword,$category]]);\n }", "title": "" }, { "docid": "b16abc7389fc22d0250a5176d4a487b0", "score": "0.644514", "text": "function search_locations($term, $options = array()) {\n\n\t$term = sanitize_string($term);\n\n\t$q = str_replace(array('_', '%'), array('\\_', '\\%'), $term);\n\n\t$options['metadata_names'] = array('location', 'temp_location');\n\t$options['group_by'] = \"v.string\";\n\t$options['wheres'] = array(\"v.string LIKE '%$q%'\");\n\n\treturn elgg_get_metadata($options);\n}", "title": "" }, { "docid": "7ac7fcbbc4501745a593eaee417026a2", "score": "0.6046416", "text": "function searching_filter_where($where) {\r\n\r\n\tglobal $wpdb;\r\n\tif(isset($_REQUEST['sn']) && $_REQUEST['sn'] !=''){\r\n\t\t$sn = trim($_REQUEST['sn']);\r\n\t}else{ $sn =''; }\r\n\t\r\n\tif(isset($_REQUEST['s']) && $_REQUEST['s'] !=''){\r\n\t\t$s = trim($_REQUEST['s']);\r\n\t}else{ $s=''; }\r\n\t\r\n\tif(isset($_REQUEST['catdrop']) && $_REQUEST['catdrop'] !=''){\r\n\t\t$scat = trim($_REQUEST['catdrop']);\r\n\t}else{ $scat =''; }\r\n\t\r\n\tif(isset($_REQUEST['tag_s']) && $_REQUEST['tag_s'] !=''){\r\n\t\t$stag = trim($_REQUEST['tag_s']);\r\n\t}else{ $stag =''; }\r\n\t\r\n\tif(isset($_REQUEST['todate']) && $_REQUEST['todate'] !=''){\r\n\t\t$todate = trim($_REQUEST['todate']);\r\n\t}else{ $todate =''; }\r\n\t\r\n\tif(isset($_REQUEST['frmdate']) && $_REQUEST['frmdate'] !=''){\r\n\t\t$frmdate = trim($_REQUEST['frmdate']);\r\n\t}else{ $frmdate =''; }\r\n\t\r\n\tif(isset($_REQUEST['articleauthor']) && $_REQUEST['articleauthor'] !=''){\r\n\t\t$articleauthor = trim($_REQUEST['articleauthor']);\r\n\t}else{\r\n\t\t$articleauthor = '';\r\n\t}\r\n\t\r\n\tif(isset($_REQUEST['exactyes']) && $_REQUEST['exactyes'] !=''){\r\n\t\t$exactyes = trim($_REQUEST['exactyes']);\r\n\t}else{ $exactyes = ''; }\r\n\r\n\tif($_SESSION['multi_city'])\r\n\t{\tif(isset($_REQUEST['sn']) && $_REQUEST['sn'] !=''){\r\n\t\t$multi_city_name = $_REQUEST['sn'];\r\n\t\t}else{ $multi_city_name =''; }\r\n\t\t$citytable = $wpdb->prefix.\"multicity\";\r\n\t\t/* fetch city ID from searched city name */\r\n\t\tif($multi_city_name){\r\n\t\t\t$cityid = $wpdb->get_row(\"select * from $citytable where cityname LIKE '%\".$multi_city_name.\"%'\");\r\n\t\t\t$multi_city_id = $cityid->city_id;\r\n\t\t}else{\r\n\t\t\t$multi_city_id = $_SESSION['multi_city'];\r\n\t\t}\r\n\t\tif($multi_city_id == ''){\r\n\t\t\t$multi_city_id = $_SESSION['multi_city'];\r\n\t\t\r\n\t\t}\r\n\t\tif(strstr($_SERVER['REQUEST_URI'],'/wp-admin/')){\r\n\t\t\t$where .= \" AND ($wpdb->posts.ID in (select $wpdb->postmeta.post_id from $wpdb->postmeta where $wpdb->postmeta.meta_key='post_city_id' and ($wpdb->postmeta.meta_value like \\\"%,$multi_city_id,%\\\" or $wpdb->postmeta.meta_value like \\\"$multi_city_id,%\\\" or $wpdb->postmeta.meta_value like \\\"%,$multi_city_id\\\" or $wpdb->postmeta.meta_value like \\\"$multi_city_id\\\" or $wpdb->postmeta.meta_value='' or $wpdb->postmeta.meta_value='0'))) AND $wpdb->posts.post_status='publish' \";\r\n\t\t} else { \r\n\t\t\t /* search as per address */\r\n\t\t\tif($sn !=\"\"){\r\n\t\t\t$qry = \" AND $wpdb->posts.ID in (select $wpdb->postmeta.post_id from $wpdb->postmeta where $wpdb->postmeta.meta_key='geo_address' and $wpdb->postmeta.meta_value like \\\"%$sn%\\\") \";\r\n\t\t\t}else{ $qry='';\t}\r\n\t\t\t/* city search if find cityname in table else search in default city */\r\n\t\t\tif($multi_city_name !=\"\"){\r\n\t\t\t\r\n\t\t\t\t$where .= \" AND ($wpdb->posts.ID in (select $wpdb->postmeta.post_id from $wpdb->postmeta where $wpdb->postmeta.meta_key='post_city_id' and ($wpdb->postmeta.meta_value like \\\"%,$multi_city_id,%\\\" or $wpdb->postmeta.meta_value like \\\"$multi_city_id,%\\\" or $wpdb->postmeta.meta_value like \\\"%,$multi_city_id\\\" or $wpdb->postmeta.meta_value like \\\"$multi_city_id\\\") $qry )) AND $wpdb->posts.post_status='publish' \";\r\n\t\t\t}else{\r\n\t\t\t\t$where .= \" AND ($wpdb->posts.ID in (select $wpdb->postmeta.post_id from $wpdb->postmeta where $wpdb->postmeta.meta_key='post_city_id' and ($wpdb->postmeta.meta_value like \\\"%,$multi_city_id,%\\\" or $wpdb->postmeta.meta_value like \\\"$multi_city_id,%\\\" or $wpdb->postmeta.meta_value like \\\"%,$multi_city_id\\\" or $wpdb->postmeta.meta_value like \\\"$multi_city_id\\\") $qry ))\";\r\n\t\t\t}\r\n\t\t\tif($todate!=\"\" && $frmdate!=\"\")\r\n\t\t\t{\r\n\t\t\t\t$where .= \" AND DATE_FORMAT($wpdb->posts.post_date,'%Y-%m-%d') BETWEEN '\".$todate.\"' and '\".$frmdate.\"'\";\r\n\t\t\t}else if($scat>0)\r\n\t\t\t{\r\n\t\t\t\t /* filtering for sorting as per start date and enddate of event*/\r\n\t\t\t\t$where .= \" AND $wpdb->posts.ID in (select $wpdb->term_relationships.object_id from $wpdb->term_relationships join $wpdb->term_taxonomy on $wpdb->term_taxonomy.term_taxonomy_id=$wpdb->term_relationships.term_taxonomy_id and $wpdb->term_taxonomy.term_id=\\\"$scat\\\" ) \";\r\n\t\t\t}else if($stag >0)\r\n\t\t\t{\r\n\t\t\t\t/* filtering for sorting as per satgs you entered */\r\n\t\t\t\t$where .= \" AND $wpdb->posts.ID in (select $wpdb->term_relationships.object_id from $wpdb->term_relationships join $wpdb->term_taxonomy on $wpdb->term_taxonomy.term_taxonomy_id=$wpdb->term_relationships.term_taxonomy_id and $wpdb->term_taxonomy.term_id=\\\"$stag\\\" ) \";\r\n\t\t\t}\r\n\t\t\telse if($todate!=\"\")\r\n\t\t\t{\r\n\t\t\t\t$where .= \" AND DATE_FORMAT($wpdb->posts.post_date,'%Y-%m-%d') >='\".$todate.\"'\";\r\n\t\t\t}\r\n\t\t}\r\n\t}else if($scat>0)\r\n\t{\r\n\t\t /* filtering for category wise search*/\r\n\t\t$where .= \" AND $wpdb->posts.ID in (select $wpdb->term_relationships.object_id from $wpdb->term_relationships join $wpdb->term_taxonomy on $wpdb->term_taxonomy.term_taxonomy_id=$wpdb->term_relationships.term_taxonomy_id and $wpdb->term_taxonomy.term_id=\\\"$scat\\\" ) \";\r\n\t}else if($stag >0)\r\n\t\t\t{\r\n\t\t\t\t$where .= \" AND $wpdb->posts.ID in (select $wpdb->term_relationships.object_id from $wpdb->term_relationships join $wpdb->term_taxonomy on $wpdb->term_taxonomy.term_taxonomy_id=$wpdb->term_relationships.term_taxonomy_id and $wpdb->term_taxonomy.term_id=\\\"$stag\\\" ) \";\r\n\t\t\t}\r\n\telse if($todate!=\"\")\r\n\t{\r\n\t\t$where .= \" AND DATE_FORMAT($wpdb->posts.post_date,'%Y-%m-%d') >='\".$todate.\"'\";\r\n\t}\r\n\telse if($frmdate!=\"\")\r\n\t{\r\n\t\t$where .= \" AND DATE_FORMAT($wpdb->posts.post_date,'%Y-%m-%d') <='\".$frmdate.\"'\";\r\n\t}\r\n\telse if($todate!=\"\" && $frmdate!=\"\")\r\n\t{\r\n\t\t$where .= \" AND DATE_FORMAT($wpdb->posts.post_date,'%Y-%m-%d') BETWEEN '\".$todate.\"' and '\".$frmdate.\"'\";\r\n\t}\r\n\t if ($articleauthor != \"\") {\r\n /* advance search - if enter exact author name && select exact author or not */\r\n if ($exactyes == 1) {\r\n $where .= \" AND $wpdb->posts.post_author in (select $wpdb->users.ID from $wpdb->users where $wpdb->users.display_name = '\" . $articleauthor . \"') \";\r\n } else {\r\n $where .= \" AND $wpdb->posts.post_author in (select $wpdb->users.ID from $wpdb->users where $wpdb->users.display_name like '\" . $articleauthor . \"') \";\r\n }\r\n }\r\n\t /* custom field wise searching */\r\n\t$serch_post_types = \"'place','event','attachment'\";\r\n\t$custom_metaboxes = get_post_custom_fields_templ($serch_post_types,'','user_side','1');\r\n\tforeach($custom_metaboxes as $key=>$val) {\r\n\t$name = $key;\r\n\t\tif(isset($_REQUEST[$name]) && $_REQUEST[$name] !=''){ \r\n\t\t\t$value = $_REQUEST[$name];\r\n\t\t\tif($name == 'proprty_desc' || $name == 'event_desc'){\r\n\t\t\t\t$where .= \" AND ($wpdb->posts.post_content like \\\"%$value%\\\" )\";\r\n\t\t\t} else if($name == 'property_name'){\r\n\t\t\t\t$where .= \" AND ($wpdb->posts.post_title like \\\"%$value%\\\" )\";\r\n\t\t\t}else {\r\n\t\t\t\t$where .= \" AND ($wpdb->posts.ID in (select $wpdb->postmeta.post_id from $wpdb->postmeta where $wpdb->postmeta.meta_key='$name' and ($wpdb->postmeta.meta_value like \\\"%$value%\\\" ))) \";\r\n\t\t\t\t/* Placed \"AND\" instead of \"OR\" because of Vedran said results are ignoring address field */\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t /* Added for tags searching */\r\n\tif(is_search() && !@$_REQUEST['catdrop']){\r\n\t$where .= \" OR ($wpdb->posts.ID in (select p.ID from $wpdb->terms c,$wpdb->term_taxonomy tt,$wpdb->term_relationships tr,$wpdb->posts p ,$wpdb->postmeta t where c.name like '\".$s.\"' and c.term_id=tt.term_id and tt.term_taxonomy_id=tr.term_taxonomy_id and tr.object_id=p.ID and p.ID = t.post_id and p.post_status = 'publish' group by p.ID)) AND ($wpdb->posts.ID in (select $wpdb->postmeta.post_id from $wpdb->postmeta where $wpdb->postmeta.meta_key='post_city_id' and ($wpdb->postmeta.meta_value like \\\"%,$multi_city_id,%\\\" or $wpdb->postmeta.meta_value like \\\"$multi_city_id,%\\\" or $wpdb->postmeta.meta_value like \\\"%,$multi_city_id\\\" or $wpdb->postmeta.meta_value like \\\"$multi_city_id\\\") $qry )) AND $wpdb->posts.post_status='publish'\";\r\n\t}\r\n\r\n\treturn $where;\r\n}", "title": "" }, { "docid": "76e60206e9295323fd6822b466349ec0", "score": "0.5981557", "text": "public function search(){}", "title": "" }, { "docid": "51523d8111620b45da4b189d83cc7fb2", "score": "0.5977425", "text": "public function search();", "title": "" }, { "docid": "65352307ad0e171a8359df427a5903bb", "score": "0.5951545", "text": "function findings($keyword=\"\", $plink=\"\"){\n\t\t$keyword = trim($keyword);\n\t\t$tags = $this->exclude_tags();\n\t\t$exclude_tags = implode('|', $tags);\n\t\t$search_regex = \"/(?<!\\p{L})({$keyword})(?!\\p{L})(?!(?:(?!<\\/?(?:{$exclude_tags}).*?>).)*<\\/(?:{$exclude_tags}).*?>)(?![^<>]*>)/ui\";\n\t\t//$search_regex = \"/(?<p>)/\";\n\t\t//$url_regex = sprintf('/' . str_replace(array('\"', '/'), array('\\\"', '\\/'), $this->urlTemplate) . '/', preg_quote($target, '/'), '(.*)');\n\t\t$target = \"\";\n\t\t$type = \"\";\n\t\tif ($this->target_of_link!=\"\"){\n\t\t\t$target = \"target=\\\"\".$this->target_of_link.\"\\\"\";\n\t\t}\n\t\tif ($this->type_of_link!=\"\"){\n\t\t\t$type = \"\";\n\t\t}\n\t\tif (preg_match($search_regex, $this->content, $match)){\n\t\t\tpreg_match_all($search_regex, $this->content, $matches, PREG_OFFSET_CAPTURE);\n\t\t\tforeach($matches[1] as $_k=>$_v){\n\t\t\t\t$this->all_matches[$_v[1]] = $_v[0];\n\t\t\t\t$this->linkage[$_v[1]] = $plink;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7ec4ee7f215602d2be10ddf27e818014", "score": "0.5944108", "text": "public function categorySearch()\n\t{\n\t\t\n\t\tdev_log::cur_url();\n\t\tif(isset($_GET['shire_name']) && !empty($_GET['shire_name'])){\n\t\t\t$regionAlias = $_GET['shire_name'];\n\t\t\t$_GET['shire_name'] = $this->listingFacade->getShireNameFromAlias($_GET['shire_name']);\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t\t$shire_name\t\t\t\t\t\t\t= (!empty($_GET['shire_name']))?$_GET['shire_name']:NULL;\n\t\t$shire_town\t\t\t\t\t\t\t= (!empty($_GET['shire_town']))?$_GET['shire_town']:NULL;\n\t\t$state = (!empty($_GET['state']))?$_GET['state']:NULL;\n\t\t$location = '';\n\n\t\tif($state == ''){\n\t\t\t$state = ($this->listingFacade->isStateExistsBySuburb($shire_town)) ? $this->listingFacade->isStateExistsBySuburb($shire_town) : $this->listingFacade->isStateExistsByRegion($shire_name);\n\t\t}\n\n\t\t$selectArray \t\t\t\t\t\t= array();\n\n\t\t$do \t\t\t\t\t\t= $_GET['do'];\n\t\t$action\t\t\t\t\t\t\t\t= $_GET['action'];\n\t\t$this->page->assign(\"do\",$do);\n\t\t$this->page->assign(\"action\",$action);\n\n\t\tif(isset($_GET['shire_name']) && $_GET['shire_name'] !='') {\n\t\t\t$location = $_GET['shire_name'];\n\t\t\t//dev_log::write(\"categorySearch: LOCATION = $location\");\n\t\t\t$searchSuburbs = $this->searchRefineFacade->getSuburbsByRegion($location);\n\t\t\t$suburbURLs = array();\n\t\t\tforeach($searchSuburbs as $searchSuburb){\n\t\t\t\t$suburb = urlencode($searchSuburb['shiretown_townname']);\n\t\t\t\t$suburbURLs[] = array($searchSuburb['shiretown_townname']=>$this->request->createURL(\"Listing\", \"categorySearch\", \"category=\".urlencode($this->request->getAttribute('category')).\"&state={$state}&shire_town={$suburb}&search={$this->request->getAttribute('search')}\"));\n\t\t\t}\n\t\t\t$searchArea = (count($searchSuburbs)>0) ? 'region' : '';\n\t\t\t$suburbCount = count($searchSuburbs);\n\t\t\t$this->page->assign(\"suburbCount\", $suburbCount);\n\t\t\t$this->page->assign(\"suburbURLs\", $suburbURLs);\n\t\t\t//$this->page->assign(\"suburb_change\", \"javascript:window.location='\".$this->request->createURL(\"Listing\",\"categorySearch\", \"search='\").\"+this.value\");\n\t\t\t$this->page->assign(\"suburb_change\", \"javascript:window.location=this.value\");\n\t\t}\n\t\telseif(isset($_GET['postcode'])) {\n\t\t\t$location = $_GET['postcode'];\n\t\t}\n\t\telseif(isset($_GET['shire_town']) && $_GET['shire_town'] !='') {\n\t\t\t$location = $_GET['shire_town'];\n\t\t\t$state = $_GET['state'];\n\t\t\t$searchArea = 'suburb';\n\t\t\t$searchRegions = $this->searchRefineFacade->getRegionBySuburb($location, $state);\n\t\t\t$regionURLs = array();\n\t\t\tforeach($searchRegions as $searchRegion){\n\t\t\t\t$regionURLs[] = array($searchRegion['shirename_shirename']=>$this->request->createURL(\"Listing\", \"categorySearch\", \"category=\" . urlencode($this->request->getAttribute('category')) .\"&state={$state}\".\"&shire_name=\" . urlencode($searchRegion['url_alias']) . \"&search={$this->request->getAttribute('search')}\"));\n\t\t\t}\n\t\t\t$this->page->assign(\"regionCount\", count($regionURLs));\n\t\t\t$this->page->assign(\"regionURLs\", $regionURLs);\n\t\t}\n\t\telse {\n\t\t\n\t\t\tif ($state) {\n\t\t\t\tif ($state == 'NSW') {\n\t\t\t\t\t$location = 'All Sydney';\n\t\t\t\t} elseif ($state == 'VIC') {\n\t\t\t\t\t$location = 'All Melbourne';\n\t\t\t\t} elseif ($state == 'QLD') {\n\t\t\t\t\t$location = 'All Brisbane';\n\t\t\t\t} elseif ($state == 'ACT') {\n\t\t\t\t\t$location = 'Canberra Region';\n\t\t\t\t} elseif ($state == 'NT') {\n\t\t\t\t\t$location = 'All Darwin';\n\t\t\t\t} elseif ($state == 'WA') {\n\t\t\t\t\t$location = 'All Perth';\n\t\t\t\t} elseif ($state == 'SA') {\n\t\t\t\t\t$location = 'All Adelaide';\n\t\t\t\t} elseif ($state == 'TAS') {\n\t\t\t\t\t$location = 'All Hobart';\n\t\t\t\t} else {\n\t\t\t\t\t$location = 'All States';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t$location = 'All Sydney';\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\t//Assign suburb/region search area\n\t\tif(isset($searchArea)){\n\t\t\t$this->page->assign(\"searchArea\", $searchArea);\n\t\t}\n\n\t\t//Get the Classificiation Description\n\t\t$classificationID = $this->request->getAttribute('search');\n\t\t$page = ($this->request->getAttribute('pnum')) ? $this->request->getAttribute('pnum') : 1;\n\t\t\n\t\t$description = $this->cf->getClassificationDescription($classificationID);\n\t\t$this->page->assign(\"description\", $description);\n\n\t\t//Get the Classification Snippets\n\t\t$snippets = $this->cf->getClassificationSnippet($classificationID, $page);\n\t\t$this->page->assign(\"snippets\", $snippets);\n\n\t\t$bannerArray=$this->listingFacade->getBanner(\"4\");\n\t\t$this->page->assign(\"bannerArray\",$bannerArray);\n\n\t\t/*$keywordArray=$this->listingFacade->fetchKeyword($_GET);\n\t\t $this->page->assign(\"keywordArray\",$keywordArray);\n\n\t\t $brandArray=$this->listingFacade->fetchBrands($_GET);\n\t\t $this->page->assign(\"brandArray\",$brandArray);*/\n\n\t\t$bannerArrayA=$this->listingFacade->getBannerA(\"5\");\n\t\t$this->page->assign(\"bannerArrayA\",$bannerArrayA);\n\n\t\t$bannerArrayB=$this->listingFacade->getBannerB(\"5\");\n\t\t$this->page->assign(\"bannerArrayB\",$bannerArrayB);\n\n\t\t$bannerArrayC=$this->listingFacade->getBannerC(\"5\");\n\t\t$this->page->assign(\"bannerArrayC\",$bannerArrayC);\n\n\t\t$bannerArrayD=$this->listingFacade->getBannerD(\"5\");\n\t\t$this->page->assign(\"bannerArrayD\",$bannerArrayD);\n\n\t\t$bannerArrayE=$this->listingFacade->getBannerE(\"5\");\n\t\t$this->page->assign(\"bannerArrayE\",$bannerArrayE);\n\n\t\t$this->page->assign(\"home\",$this->request->createURL(\"Affiliate\", \"showhomePageAffiliate\"));\n\t\t//$this->listingFacade->categorySearchCount($_GET); // Hereward 20121003 - remove redundant code\n\t\t$res = $this->listingFacade->categorySearchResult($this->request->getAttribute(\"fr\"), $this->request->getAttribute(\"pg_size\"), $_GET);\n\n\t\tif($res['is_exclude']) {\n\t\t\t$this->page->assign(\"is_exclude\",1);\n\t\t\t$this->page->assign(\"exclude_count\",$res['exclude_count']);\n\t\t\t$this->page->assign(\"exclude_url\",SITE_PATH.\"main.php?\".$this->request->replaceQS($_SERVER['QUERY_STRING'], array(\"exclude\"=>1, \"fr\"=>0, \"pnum\"=>1)));\n\t\t\t$this->page->assign(\"include_url\",SITE_PATH.\"main.php?\".$this->request->replaceQS($_SERVER['QUERY_STRING'], array(\"exclude\"=>0, \"fr\"=>0, \"pnum\"=>1)));\n\t\t}\n\t\t$this->page->assign(\"brandArray\",$res['brands']);\n\t\t$this->page->assign(\"fetch_service\",$res['services']);\n\t\t$this->page->assign(\"fetch_payment\",$res['payments']);\n\t\t$this->page->assign(\"fetch_hours\",$res['hours']);\n\t\t$this->page->assign(\"current_page\",$page);\n\t\t\n\t\t\t\n\t\tif(isset($_GET['service']))$selectArray['service'] \t\t= $_GET['service'];\n\t\tif(isset($_GET['hours']))$selectArray['hours'] \t\t= $_GET['hours'];\n\t\tif(isset($_GET['payment']))$selectArray['payment'] \t\t= $_GET['payment'];\n\t\tif(isset($_GET['keyword']))$selectArray['keyword'] \t= $_GET['keyword'];\n\t\tif(isset($_GET['brand']))$selectArray['brand'] \t\t= $_GET['brand'];\n\t\t$this->page->assign(\"selectArray\",$selectArray);\n\n\t\t$this->page->addJsFile(\"bsn.AutoSuggest_2.1.3.js\");\n\t\t$this->page->addCssStyle(\"autosuggest_inquisitor.css\");\n\n\t\t$category = urldecode(ucwords(strtolower($_GET['category'])));\n\t\t//$default_keyword = urldecode(ucwords(strtolower($_GET['category'])));\n\t\t$default_keyword = $this->resolve_keyword($location,true);\n\t\t$adult = 0;\n\t\t\n\t\tif ($category == 'Adult Entertainment' || $category == 'Escorts') {\n\t\t\t$adult = 1;\n\t\t\t//die(\"ADULT!!!! [$category]\");\n\t\t}\n\t\t\n\t\t\n\t\t$location = ucwords(strtolower($location));\n\t\t$keyword = $this->resolve_keyword($location,false);\n\n\t\t$this->page->assign(\"category\", $category);\n\t\t$this->page->assign(\"keyword\" , $keyword);\n\t\t$this->page->assign(\"default_keyword\" , $default_keyword);\n\t\t\n\t\t$this->page->assign(\"adult\" , $adult);\n\t\t\n\t\t\n\t\t$this->page->assign(\"location\", $location);\n\n\t\t$sortby\t\t\t= (!empty($_GET['sortby']))?$_GET['sortby']:NULL;\n\t\t$this->page->assign(\"sortby\",$sortby);\n\n\t\t$state\t\t\t= (!empty($_GET['state']))?$_GET['state']:NULL;\n\t\t$state\t\t\t= explode(\"__\",$state);\n\n\t\t$shirename\t\t= (!empty($_GET['shirename']))?$_GET['shirename']:NULL;\n\t\t$shirename\t\t= explode(\"__\",$shirename);\n\n\t\t$shiretown\t\t= (!empty($_GET['shiretown']))?$_GET['shiretown']:NULL;\n\t\t$shiretownval\t= explode(\"__\",$shiretown);\n\n\t\t$locationRes\t= $this->listingFacade->locationDisplay();\n\t\t$refineDisplay\t= $this->listingFacade->refineDisplay($_GET);\n\n\t\t$this->page->assign(\"refineDisplay\",$refineDisplay);\n\t\tif(count($state)>0)\n\t\t{\n\t\t\t$shirenameRes = $this->listingFacade->regionDisplay($state);\n\t\t\t$this->page->assign(\"shirenameRes\",$shirenameRes);\n\t\t}\n\t\tif(count($shirename)>0)\n\t\t{\n\t\t\t$shiretown = $this->listingFacade->shireTownDisplay($shirename);\n\t\t\t$this->page->assign(\"shiretown\",$shiretown);\n\t\t}\n\t\t$this->page->assign(\"locationRes\",$locationRes);\n\t\t$this->page->assign(\"state\", $state[0]);\n\t\t$this->page->assign(\"shirename\", $shirename[0]);\n\t\t$this->page->assign(\"shiretownval\", $shiretownval[0]);\n\n\t\t$CountResult\t\t=count($res);\n\t\t$this->page->assign(\"CountResult\",$CountResult);\n\t\t$normalcount\t\t= count($res['blogs']);\n\t\t$this->page->assign(\"normalcount\",$normalcount);\n\n\t\t$this->page->assign(\"values\", $res['blogs']);\n\t\t$this->page->assign(\"paging\", $res['paging']);\n\n\t\t$this->page->assign(\"CountResult\",$res['paging']['totalRecords']);\n\n\t\t$hrs = array();\n\t\tfor($i=1;$i<=24;$i++){\n\t\t\t\t\n\t\t\t$hrs[] = $i;\n\t\t\t\t\n\t\t}\n\t\t$this->page->assign(\"hrs\",$hrs);\n\n\t\t//Assign Metatags and Page Title\n\t\t$cnt = (empty($res['paging']['totalRecords'])) ? $normalcount : $res['paging']['totalRecords'];\n\t\tif($shire_name != '')\n\t\t{\n\t\t\t$canonicalType = 'region';\n\t\t\t$canonicalUrl = $this->url->getCanonical($canonicalType, $_GET);\n\t\t\t$this->page->pageTitle \t\t\t= $category . \" Listing in \" . $location . \", \" . $state[0] . \"&#58; Pink Pages Australia\";\n\t\t\t$this->page->addMetaDescription(\"Looking for $category located in the $location? Pink Pages Australia has \" . $cnt . \" \" . $category . \" listing in \" . $location . \".\");\n\t\t\tif($canonicalUrl){\n\t\t\t\t$this->page->addCanonical(SITE_PATH . $canonicalUrl);\n\t\t\t}\n\t\t\t\t\n\t\t\tif($location && $state[0] && $category){\n\t\t\t\t$region = $location;\n\t\t\t\t$state = $state[0];\n\t\t\t\t$details = array(\"region\" => $region, \"state\" => $state, \"category\" => $category);\n\n\t\t\t\t$this->url->setListingDetails($details);\n\t\t\t}\n\t\t\t\t\n\t\t}elseif($shire_town != '')\n\t\t{\n\t\t\t$canonicalType = 'suburb';\n\t\t\t$canonicalUrl = $this->url->getCanonical($canonicalType, $_GET);\n\t\t\t$region = $this->url->getRegionFromSuburb($location);\n\t\t\t$this->page->pageTitle \t\t\t= $category . \" Listing in \" . $location . \",\" . $region . \", \" . $state[0] . \"&#58; Pink Pages Australia\";\n\t\t\t$this->page->addMetaDescription(\"Looking for $category located in $location of $region, $state[0]? Pink Pages Australia has \" . $cnt . \" \" . $category . \" listings in \" . $location . \", as well as many in the surrounding \" . $region);\n\t\t\tif($canonicalUrl){\n\t\t\t\t$this->page->addCanonical(SITE_PATH . $canonicalUrl);\n\t\t\t}\n\t\t\t\t\n\t\t\tif($location && $region && $state[0] && $category){\n\t\t\t\t$suburb = $location;\n\t\t\t\t$state = $state[0];\n\t\t\t\t$details = array(\"suburb\" => $suburb, \"region\" => $region, \"state\" => $state, \"category\" => $category);\n\t\t\t\t\t\n\t\t\t\t$this->url->setListingDetails($details);\n\t\t\t}\n\t\t\t\t\n\t\t}else{\n\t\t\t$this->page->pageTitle \t\t\t= $category . \" Business Listings&#58; Pink Pages Australia\";\n\t\t\t$canonicalType = 'state';\n\t\t\t$canonicalUrl = $this->url->getCanonical($canonicalType, $_GET);\n\t\t\t$this->page->addMetaDescription(\"Looking for \".$category.\"? Pink Pages Australia has an extensive directory of \".$category.\" listings in all major capitals and throughout regional Australia.\");\n\t\t\tif($canonicalUrl){\n\t\t\t\t$this->page->addCanonical(SITE_PATH . $canonicalUrl);\n\t\t\t}\n\n\t\t\t//Reset Search Session Variables\n\t\t\t$this->url->setListingDetails();\n\t\t}\n\n\t\t$this->page->addMetaTags(\"robots\", \"noodp,noydir\");\n\n\t\t$category_search = $this->request->createURL(\"Listing\", \"categorySearch\", \"category\");\n\t\t$this->page->assign(\"category_search\",$category_search);\n\t\t$this->page->assign(\"service_change\", \"javascript:window.location='\".$this->request->createNaturalURL(\"Listing\",\"categorySearch\", \t\t \"search={$this->request->getAttribute('search')}&category={$this->request->getAttribute('category')}&shire_town={$this->request->getAttribute('shire_town')}&shire_name={$this->request->getAttribute('shire_name')}&hours={$this->request->getAttribute('hours')}&payment={$this->request->getAttribute('payment')}&brand={$this->request->getAttribute('brand')}&val={$this->request->getAttribute('val')}&service='\").\"+this.value\");\n\t\t$this->page->assign(\"hour_change\", \"javascript:window.location='\".$this->request->createNaturalURL(\"Listing\", \"categorySearch\", \t \"search={$this->request->getAttribute('search')}&category={$this->request->getAttribute('category')}&shire_town={$this->request->getAttribute('shire_town')}&shire_name={$this->request->getAttribute('shire_name')}&val={$this->request->getAttribute('val')}& payment={$this->request->getAttribute('payment')}&brand={$this->request->getAttribute('brand')}&service={$this->request->getAttribute('service')}&hours='\").\"+this.value\");\n\t\t$this->page->assign(\"payment_change\", \"javascript:window.location='\".$this->request->createNaturalURL(\"Listing\", \"categorySearch\", \t\"search={$this->request->getAttribute('search')}&category={$this->request->getAttribute('category')}&shire_town={$this->request->getAttribute('shire_town')}&shire_name={$this->request->getAttribute('shire_name')}&val={$this->request->getAttribute('val')}&\tservice={$this->request->getAttribute('service')}&hours={$this->request->getAttribute('hours')}&brand={$this->request->getAttribute('brand')}&payment='\").\"+this.value\");\n\t\t$this->page->assign(\"keyword_change\", \"javascript:window.location='\".$this->request->createNaturalURL(\"Listing\", \"categorySearch\", \"search={$this->request->getAttribute('search')}&category={$this->request->getAttribute('category')}&val={$this->request->getAttribute('val')}&service={$this->request->getAttribute('service')}&hours={$this->request->getAttribute('hours')}&payment={$this->request->getAttribute('payment')}&keyword='\").\"+this.value\");\n\t\t$this->page->assign(\"brand_change\", \"javascript:window.location='\".$this->request->createNaturalURL(\"Listing\", \"categorySearch\", \"search={$this->request->getAttribute('search')}&category={$this->request->getAttribute('category')}&shire_town={$this->request->getAttribute('shire_town')}&shire_name={$this->request->getAttribute('shire_name')}&val={$this->request->getAttribute('val')}& service={$this->request->getAttribute('service')}&hours={$this->request->getAttribute('hours')}&payment={$this->request->getAttribute('payment')}&keyword={$this->request->getAttribute('keyword')}&brand='\").\"+this.value\");\n\n\t\t$this->page->assign(\"contactUs\",$this->request->createURL(\"Listing\", \"contactUs\",\"ID\"));\n\t\t$_GET['pnum'] = (isset($_GET['pnum']) && $_GET['pnum'])?$_GET['pnum']:1;\n\t\t$relatedClassLinks = $this->relatedClassLinks($classificationID,'','','',$location);\n\t\t$related_class_count = 0;\n\t\t$related_classifications = '';\n\t\tif ($relatedClassLinks) {\n\t\t\t$related_class_count = count($relatedClassLinks['classifications']);\n\t\t\t$related_classifications = $relatedClassLinks['classifications'];\n\t\t}\n \n $this->page->assign(\"related_class_count\", $related_class_count);\n\t\t//$this->page->assign(\"relatedClassLinks\", $relatedClassLinks);\n\t\t$this->page->assign(\"relatedClassLinks\", $related_classifications);\n\t\t\n\t\t$this->page->assign('allow_sidebar', 1);\n\t\t\n\t\t//dev_log::cur_url(\"Listing::categorySearch\");\n\t\t$this->page->getPage('category_result.tpl');\n\t}", "title": "" }, { "docid": "a501bb73edd9b90bd44a563545c7b954", "score": "0.5941238", "text": "public function search($keyword);", "title": "" }, { "docid": "a669da7156fbcbea8e186fa2329b1e43", "score": "0.57953894", "text": "function search_data( $phrase, $case_sensitive=false, $search_params=array() )\n{\n $search_title = isset($search_params['title']) ? $search_params['title'] : true;\n $search_desc = isset($search_params['description']) ? $search_params['description'] : true;\n $search_keywords = isset($search_params['keywords']) ? $search_params['keywords'] : true;\n \n $data = get_cache_data();\n $matched = array();\n $phrase = '#.*('. preg_quote($phrase, '#') .').*#' . ($case_sensitive ? '' : 'i');\n \n foreach($data as $key => $val)\n {\n if(is_array($val)) {\n foreach($val as $skey => $sval)\n {\n // Exclude non-search parameters\n if($skey == 'title' && !$search_title) continue;\n if($skey == 'description' && !$search_desc) continue;\n if($skey == 'keywords' && !$search_keywords) continue;\n if($skey == 'script') continue;\n if($skey == 'category') continue;\n \n // Only the keywords are an array here ...\n if(is_array($sval)) {\n foreach($sval as $bval) {\n if(preg_match($phrase, $bval))\n // MUST use the script namme here to prevent duplicate match results since\n // search may match more than one parameter.\n $matched[$data[$key]['category']][$data[$key]['script']] = $data[$key];\n }\n }\n else\n {\n if(preg_match($phrase, $sval, $matches, PREG_OFFSET_CAPTURE)) { \n // This creates a substring of the matching word(s) from the string.\n // This can be used later for highlighting the matching text and\n // creating a summary of the matching text.\n //preprint($matches); \n //var_dump(substr($sval, $matches[1][1], strlen($matches[1][0]))); \n //var_dump($skey);\n $matched[$data[$key]['category']][$data[$key]['script']] = $data[$key]; \n }\n }\n }\n }\n }\n return $matched;\n}", "title": "" }, { "docid": "6ba0aff8968268a0badd3b9b14d57f77", "score": "0.57848287", "text": "function mbereg_search_pos($pattern = null, $option) {}", "title": "" }, { "docid": "a76bee4d8ee560033017b998685ea17c", "score": "0.57463515", "text": "private function _sql_search() {\n\t\tglobal $wpdb;\n\n\t\tif (empty($this->args['search_term'])) {\n\t\t\treturn '';\n\t\t}\n\n\t\t$criteria = array();\n\t\tforeach ( $this->args['search_columns'] as $c ) {\n\t\t\t// For standard columns in the wp_posts table\n\t\t\tif ( in_array($c, $this->wp_posts_columns ) ) {\n\t\t\t\tswitch ($this->args['match_rule']) {\n\t\t\t\tcase 'contains':\n\t\t\t\t\t$criteria[] = $wpdb->prepare(\"{$wpdb->posts}.$c LIKE %s\", '%'.$this->args['search_term'].'%');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'starts_with':\n\t\t\t\t\t$criteria[] = $wpdb->prepare(\"{$wpdb->posts}.$c LIKE %s\", '%'.$this->args['search_term']);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ends_with':\n\t\t\t\t\t$criteria[] = $wpdb->prepare(\"{$wpdb->posts}.$c LIKE %s\", $this->args['search_term'].'%');\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// For custom field \"columns\" in the wp_postmeta table\n\t\t\telse {\n\t\t\t\tswitch ($this->args['match_rule']) {\n\t\t\t\tcase 'contains':\n\t\t\t\t\t$criteria[] = $wpdb->prepare(\"{$wpdb->postmeta}.meta_key = %s AND {$wpdb->postmeta}.meta_value LIKE %s\"\n\t\t\t\t\t\t, $c\n\t\t\t\t\t\t, '%'.$this->args['search_term'].'%');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'starts_with':\n\t\t\t\t\t$criteria[] = $wpdb->prepare(\"{$wpdb->postmeta}.meta_key = %s AND {$wpdb->postmeta}.meta_value LIKE %s\"\n\t\t\t\t\t\t, $c\n\t\t\t\t\t\t, '%'.$this->args['search_term']);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ends_with':\n\t\t\t\t\t$criteria[] = $wpdb->prepare(\"{$wpdb->postmeta}.meta_key = %s AND {$wpdb->postmeta}.meta_value LIKE %s\"\n\t\t\t\t\t\t, $c\n\t\t\t\t\t\t, $this->args['search_term'].'%');\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$query = implode(' OR ', $criteria);\n\t\t$query = $this->args['join_rule'] . \" ($query)\";\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "bce01f5f51217abf7a34c7b531065aaf", "score": "0.5743533", "text": "function mbereg_search_regs($pattern = null, $option) {}", "title": "" }, { "docid": "3078261e5821ba70fa27492848fa90e3", "score": "0.5718856", "text": "public function searchProductsByCategoryNameAndKeyword()\n {\n return $this->product->with(['image'])\n ->when($this->category, function ($query) {\n return $query->whereHas('category', function ($query) {\n return $query->where('name', $this->category);\n });\n })\n ->when($this->keyword, function ($query) {\n return $query->where('name', 'LIKE', '%' . $this->keyword . '%')\n ->orWhere('description', 'LIKE', '%' . $this->keyword . '%');\n })\n ->get();\n }", "title": "" }, { "docid": "a047880898200d52a1a6f7d2ea693c41", "score": "0.5699716", "text": "function _cat_search($cats)\n\t{\n\t\t$cat_filter = array();\n\t\tforeach(is_array($cats) ? $cats : (is_numeric($cats) ? array($cats) : explode(',',$cats)) as $cat)\n\t\t{\n\t\t\tif (is_numeric($cat)) $cat_filter[] = $this->db->concat(\"','\",cat_id,\"','\").\" LIKE '%,$cat,%'\";\n\t\t}\n\t\treturn $cat_filter;\n\t}", "title": "" }, { "docid": "be5f7e3d459c90ca5e6fe770aadc46dc", "score": "0.56474876", "text": "function getCategoriesFromCriteria($title,$description,$postcode,$stemmedTitle,$stemmedShortDescription,$limitRecords)\n{\n\tprint \"<br>\" . $title . \"<br>\" . $description . \"<br>\";\n\t//print \"<br>\" . $stemmedTitle . \"<br>\" . $stemmedShortDescription . \"<br>\" . $stemmedKeywords . \"<br>\";\n\n\t$searchText = addslashes($title) . \" \" . addslashes($description);\n\tprint $searchText;\n\t$stemmedSearchText = addslashes($stemmedTitle) . \" \" . addslashes($stemmedShortDescription);\n\t\n/*\t$sponserCond = \" WHERE ( MATCH (keywords) AGAINST ('\".$searchText.\"')\";\n\t$sponserCond .= \" OR MATCH (stemmed_keywords) AGAINST ('\".$stemmedSearchText.\"') )\";\n\t$sql = \"SELECT * FROM categories $sponserCond ORDER BY categoryName LIMIT 0,$limitRecords\";\t\n*/\n\t$sponserCond = \" WHERE ( MATCH (keywords) AGAINST ('\".$searchText.\"')\";\n\t$sponserCond .= \" OR MATCH (stemmed_keywords) AGAINST ('\".$stemmedSearchText.\"') )\";\n\t$sql = \"SELECT * FROM categories $sponserCond ORDER BY categoryName LIMIT 0,$limitRecords\";\t\n\n\tprint \"<br>$sql<br>\";\n\t\n\t$sponsBusObj = &new category();\n\t$sponsBusDAO = $sponsBusObj->getRecordsFromQuery($sql);\n\treturn $sponsBusDAO;\n}", "title": "" }, { "docid": "74442ccefed59df57892bbcab86f93e3", "score": "0.5646952", "text": "abstract function search($folder = null, $str = 'ALL', $charset = null, $sort_field = null);", "title": "" }, { "docid": "a0eed4a3fddd07027eedd3616f07e8ef", "score": "0.5645608", "text": "public function getsearch($search_category, $seach_item, $seach_region) {\n// from tblcompany as a, tblcategory as b, tblheadoffice as c, tblbranches as d,\n// tblcompanycategory as e, tblcompanyheadoffice as f, tblcompanybranches as g where\n// a.company_id = e.company_id and b.category_id = e.category_id and a.company_id = f.company_id \n// and c.head_office_id = f.head_office_id and a.company_id = g.company_id and \n// d.branches_id = g.branches_id and (c.head_office_address like '%Cagayan de oro%' or\n// d.branches_address like '%cagayan de oro%' ) and b.category_name like '%electrical%' and b.category_sub_cat like '%fasteners%' and a.is_verified='1' and status='Active'\");\n $query = $this->db->query(\"select distinct(a.company_id),a.*,h.*\n from tblcompany as a, tblcategory as b, tblheadoffice as c, tblbranches as d,\n tblcompanycategory as e, tblcompanyheadoffice as f, tblcompanybranches as g, tblphotos as h, tblcompanyphotos i where\n a.company_id = e.company_id and b.category_id = e.category_id and a.company_id = f.company_id \n and c.head_office_id = f.head_office_id and a.company_id = g.company_id and \n d.branches_id = g.branches_id and a.company_id = i.company_id and h.photos_id = i.photos_id and (c.head_office_address like '%$seach_region%' or\n d.branches_address like '%$seach_region%' ) and b.category_name like '%$search_category%' and b.category_sub_cat like '%$seach_item%' and a.is_verified='1' and status='Active'\");\n $result;\n $flag = 0;\n if ($query->num_rows() > 0) {\n foreach ($query->result_array() as $value) {\n if ($flag != $value['company_id']) {\n $result['searchresults'][] = $value;\n $flag = $value['company_id'];\n } elseif ($flag == $value['company_id']) {\n $flag = $value['company_id'];\n continue;\n }\n }\n return $result;\n } else\n return false;\n }", "title": "" }, { "docid": "6bc86d79f3332d66ef32a8b6aa707acc", "score": "0.5637856", "text": "function mbereg_search_init($string, $pattern = null, $option) {}", "title": "" }, { "docid": "f3473db6b394cc96c290263e130f8cb9", "score": "0.5608918", "text": "public function search($keywords);", "title": "" }, { "docid": "874b7f9d87ee9b121c4c27702b804e5e", "score": "0.5604679", "text": "public function search(Request $request){\n\n $request->validate([\n 'searchfor'=>'required',\n 'location' => 'required',\n ]);\n\n $searchfor = $request->input('searchfor');\n $location = $request->input('location');\n\n $services = Service::where('category', 'like', \"%$searchfor%\")->where('city', 'like', \"%$location%\")->get();\n return view('searchresults')->with('services', $services);\n }", "title": "" }, { "docid": "b85e67c84c73b7f57bdb9fc26fe36e85", "score": "0.55940944", "text": "abstract function search($search);", "title": "" }, { "docid": "bc6fd2bfd72aa2c18bb13b74d15a0827", "score": "0.55707145", "text": "public function search() {\n\n $database = $this->getDatabase();\n $term = trim(strip_tags($_GET['term']));\n\n $matches = array();\n $tags = $database->fetchAll('cadmin_tags');\n foreach ($tags as $tag) {\n\n if (stripos($tag['cadmin_tag'], $term) !== false) {\n// Add the necessary \"value\" and \"label\" fields and append to result set\n $matches[] = $tag['cadmin_tag'];\n }\n } // Truncate, encode and return the results\n $matches = array_slice($matches, 0, 8);\n print json_encode($matches);\n die();\n }", "title": "" }, { "docid": "a8653a37a69370c2ce19bec09b01b6ec", "score": "0.55650145", "text": "protected function search_groups_category($category) {\n global $DB;\n $ptoken = '%' . $DB->sql_like_escape($this->token) . '%';\n\n $wherecat = self::categoryToWhere();\n $cterms = explode('|', $category);\n $cwhere = array();\n foreach ($cterms as $term) {\n if (isset($wherecat[$term])) {\n $cwhere[] = $wherecat[$term];\n }\n }\n if (!$cwhere) {\n return array();\n }\n $sql = \"SELECT id, name, idnumber, description, descriptionformat, up1category FROM {cohort} WHERE \"\n . \"( name LIKE ? OR idnumber LIKE ? ) AND (\" . join(' OR ', $cwhere) . ')' ;\n if (!$this->archives) {\n $sql .= \" AND up1key <> '' \";\n }\n // echo $sql . \" <br />\\n\" ; //DEBUG\n $records = $DB->get_records_sql($sql, array($ptoken, $ptoken), 0, $this->groupmaxrows);\n $groups = array();\n $order = 0;\n foreach ($records as $record) {\n $order++;\n $size = $DB->count_records('cohort_members', array('cohortid' => $record->id));\n $groups[] = array(\n 'key' => $record->idnumber,\n 'name' => $record->name,\n 'description' => format_text($record->description, $record->descriptionformat),\n 'category' => $record->up1category,\n 'size' => $size,\n 'order' => $order\n );\n }\n return $groups;\n }", "title": "" }, { "docid": "ebc2cb45b20171eadef177b9f71b6cad", "score": "0.5562144", "text": "function cf_search_where( $where ) {\n global $pagenow, $wpdb;\n \n if ( is_search() ) {\n $where = preg_replace(\n \"/\\(\\s*\".$wpdb->posts.\".post_title\\s+LIKE\\s*(\\'[^\\']+\\')\\s*\\)/\",\n \"(\".$wpdb->posts.\".post_title LIKE $1) OR (\".$wpdb->postmeta.\".meta_value LIKE $1)\", $where );\n }\n\n return $where;\n}", "title": "" }, { "docid": "fb6a3fa11acf716798d5795b3ea10263", "score": "0.55577594", "text": "public function search($category_id, $name = '')\n\t{\n\t\t$this->db->select('c.name as category,p.name as product ,p.tags ,s.name as subcategory,c.id as c_id,p.id as p_id,s.id as s_id', TRUE);\n\t\t$this->db->from('categories as c');\n\t\t$this->db->join('sub_categories as s', ' s.category_id=c.id');\n\t\t$this->db->join('products as p', ' c.id=p.category_id');\n\t\t$this->db->join('brands as b', ' p.brand_id=b.id ');\n\n\t\tif ($category_id == '*' && empty($name))\n\t\t{\n\t\t\t$this->db->where(array('c.is_header' => 1));\n\t\t}\n\t\telseif (!empty($name))\n\t\t{\n\t\t\tif ($category_id == '*' || isset($name))\n\t\t\t{\n\t\t\t\t$this->db->where(array('c.is_header' => 1));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->db->where(array('c.is_header' => 1, 'c.id' => $category_id));\n\t\t\t}\n\n\t\t\t$this->db->like('s.name', $name, 'match');\n\t\t\t$this->db->or_like('p.name', $name, 'match');\n\t\t\t$this->db->or_like('p.tags', $name, 'match');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->db->where(array('c.is_header' => 1, 'c.id' => $category_id));\n\t\t}\n\n\t\t$query = $this->db->get();\n\n\t\treturn $query->result_array();\n\t}", "title": "" }, { "docid": "3eb88523d52f1e9c9c22af031fe3c8c8", "score": "0.55448586", "text": "private function SearchString($guid= \"\", $keyword=\"\", $category=\"\" , $link=\"\", $switch=\"\", $custom=\"\" ) \n\t\t{\t\n\t\t\t\n\t\t\t$_SESSION['debug']=0;\t\t\n\t\t\tif(2==1) //if($_SESSION['debug'])\t\t //\n\t\t\t{\n\t\t\t\techo 'guid: '.$guid.' <br>\n\t\t\t\t\t\t\tkeyword:'.$keyword.' <br>\n\t\t\t\t\t\t\tlink:'.$link.' <br>\n\t\t\t\t\t\t\tcategory:'.$category.' <br>';\n\t\t\t}\t\t\n\n\n\t\t\t$search_string_guid=\"\";\n\t\t\t$search_string_link=\"\";\n\t\t\t$search_string_keyword=\"\";\n\t\t\t$search_string_category=\"\";\n\t\t\t$search_string = \" WHERE 1=1 \";\t\n\n\n\t\tfor($i=0; $i< sizeof($this->field_name); $i++)\n\t\t{\n\t\t\t//echo $this->field_type[$i] .\"-\".$this->field_name[$i].\"</br>\";\n\t\t\t///GUID\n\t\t\tif((($this->field_type[$i] == \"GUID\") ) AND ($guid != \"\"))\t\t\t\t\t\t\t\t\t\t\t\t//or($tmp[\"fieldType\"] == \"LINK\")\n\t\t\t{\n\t\t\t\t $search_string_guid .= \" OR \".$this->field_name[$i].\" = '\".$guid.\"' \";\n\t\t\t}\n\n\t\t\t///LINK, MULTILINK\n\t\t\tif((($this->field_type[$i] == \"LINK\") OR ($this->field_type[$i] == \"MULTILINK\")) AND ($link != \"\"))\n\t\t\t{\n\t\t\t\t//if($tmp[\"field\"]=\"*\")\n\t\t\t\t{\n\t\t\t\t\t//$search_string_link .= \" OR \".$tmp[\"name\"].\" = '\".$link.\"' \";\n\t\t\t\t}\n\t\t\t\t//else\n\t\t\t\t{\n\t\t\t\t\t$search_string_link .= \" OR \".$this->field_name[$i].\" = '\".$link.\"' \";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t///TEXT&LONGTEXT&INFO\n\t\t\tif((($this->field_type[$i] == \"LONGTEXT\") \n\t\t\t\tOR ($this->field_type[$i] == \"TEXT\") \n\t\t\t\tOR ($this->field_type[$i] == \"INFO\")\n\t\t\t\tOR ($this->field_type[$i] == \"DATE\")) AND ($keyword != \"\"))\n\t\t\t{\n\t\t\t\t$search_string_keyword .=\" OR \".$this->field_name[$i].\" = '\".$keyword.\"' OR \".$this->field_name[$i].\" LIKE '%\".$keyword.\"%' OR \".$this->field_name[$i].\" LIKE '\".$keyword.\"%' OR \".$this->field_name[$i].\" LIKE '%\".$keyword.\"'\";\n\t\t\t}\t\t\t\t\t\n\n\t\t\t///CATEGORY, OBJECT\n\t\t\tif(($this->field_desc[$i] == \"category_guid\") AND ($this->category_guid!=\"\"))\n\t\t\t{\n\t\t\t\t$search_string_category .=\" OR \".$this->field_name[$i].\" = '\".$this->category_guid.\"' \";\n\t\t\t}\t\n\t\t\t///CATEGORY, OBJECT\n\t\t\tif(($this->field_type[$i] == \"CATEGORY_GUID\"\n\t\t\tOR $this->field_type == \"OBJECT_GUID\") AND ($category!=\"\"))\n\t\t\t{\n\t\t\t\t$search_string_category .=\" OR \".$this->field_name[$i].\" = '\".$category.\"' \";\n\t\t\t}\t\t\t\t\t\t\n\t\t}\n\n\t\t///BUILDING $search_string\n\t\tif($search_string_guid != \"\")\n\t\t{\n\t\t\t$search_string .= \" AND (0=1 \".$search_string_guid.\" )\";\n\t\t}\n\t\tif($search_string_link!=\"\")\n\t\t{\n\t\t\t$search_string .= \" AND (0=1 \".$search_string_link.\" )\";\n\t\t}\n\t\tif($search_string_keyword!=\"\")\n\t\t{\n\t\t\t$search_string .= \" AND (0=1 \".$search_string_keyword.\" )\";\n\t\t}\n\t\tif($search_string_category!=\"\")\n\t\t{\n\t\t\t$search_string .= \" AND (0=1 \".$search_string_category.\" )\";\n\t\t}\t \n\t\tif($switch != \"\")\n\t\t{\n\t\t\t$search_string .= \" \";\n\t\t}\n\t\tif($custom != \"\")\n\t\t{\n\t\t\t$search_string .= \" AND ( \".$custom.\" )\";\n\t\t}\n\t\t//echo $search_string;\n\t\treturn $search_string;\n\t\t}", "title": "" }, { "docid": "8700478221ec274451aa43f2e321b8e3", "score": "0.55377364", "text": "public function find($searchString) {}", "title": "" }, { "docid": "8700478221ec274451aa43f2e321b8e3", "score": "0.55377364", "text": "public function find($searchString) {}", "title": "" }, { "docid": "cdb5c7b5fd0c00fa3103dd0f5dfbfcd2", "score": "0.5515876", "text": "abstract public function find($keypattern);", "title": "" }, { "docid": "7ed2b451b14f19c7ff5fe110d09f5cc9", "score": "0.55097306", "text": "function match_string($needles){\n\n if(count($needles) == 0){ \n return TRUE;\n }\n\n //see if this resource matches the search criteria\n //get the appropriate string from the subclass instance\n $search_haystack = $this->name.\" \".$this->description.\" \".$this->urlmain.\" \".\n $this->watchkeys.\" \".$this->get_search_haystack();\n \n $found = FALSE;\n\n //go through the needles and see if it matches\n foreach ($needles as $keyword) {\n $pos = strpos(strtolower($search_haystack), strtolower($keyword));\n if(is_integer($pos)){\n $found = TRUE; \n break;\n }\n }\n\n return $found;\n\n }", "title": "" }, { "docid": "61f1d05647b4956b621fae75e11994d8", "score": "0.55097", "text": "public function search($filter, $extendedBaseDN = \"\");", "title": "" }, { "docid": "69985b5239c1e36119dbc6d458043326", "score": "0.5507295", "text": "function cf_search_where( $where ) {\n global $pagenow, $wpdb;\n\n if ( is_search() ) {\n $where = preg_replace(\n \"/\\(\\s*\".$wpdb->posts.\".post_title\\s+LIKE\\s*(\\'[^\\']+\\')\\s*\\)/\",\n \"(\".$wpdb->posts.\".post_title LIKE $1) OR (\".$wpdb->postmeta.\".meta_value LIKE $1)\", $where );\n }\n\n return $where;\n}", "title": "" }, { "docid": "69985b5239c1e36119dbc6d458043326", "score": "0.5507295", "text": "function cf_search_where( $where ) {\n global $pagenow, $wpdb;\n\n if ( is_search() ) {\n $where = preg_replace(\n \"/\\(\\s*\".$wpdb->posts.\".post_title\\s+LIKE\\s*(\\'[^\\']+\\')\\s*\\)/\",\n \"(\".$wpdb->posts.\".post_title LIKE $1) OR (\".$wpdb->postmeta.\".meta_value LIKE $1)\", $where );\n }\n\n return $where;\n}", "title": "" }, { "docid": "04453696e08250cc3e38c0fce76af8f3", "score": "0.55047774", "text": "public function researchCat($term)\n {\n\n try\n {\n $req = $this->_pdo->prepare(\n \"SELECT id_categorie, cat_titre FROM categorie WHERE cat_titre LIKE :term \");\n if( $req->bindValue(':term', $term.'%') && $req->execute())\n {\n if($response['searchCat'] = $req->fetchAll(PDO::FETCH_ASSOC))\n {\n return $response;\n }\n else\n {\n return false;\n }\n }\n }\n catch(Exception $e)\n {\n echo $e->getMessage();\n }\n\n }", "title": "" }, { "docid": "14c03a92e1657c13d5de606b3ac1f50d", "score": "0.5494589", "text": "function onContentSearch($text, $phrase='', $ordering='', $areas=null)\n {\n if(version_compare(JVERSION,'1.6.0','ge')) {\n\n $db = JFactory::getDbo();\n $app = JFactory::getApplication();\n $user = JFactory::getUser();\n $groups = implode(',', $user->getAuthorisedViewLevels());\n $tag = JFactory::getLanguage()->getTag();\n \n require_once JPATH_SITE.'/components/com_content/helpers/route.php';\n require_once JPATH_SITE.'/administrator/components/com_search/helpers/search.php';\n \n $searchText = $text;\n if (is_array($areas)) {\n if (!array_intersect($areas, array_keys($this->onContentSearchAreas()))) {\n return array();\n }\n }\n \n $sEvent = $this->params->get('search_event');\n $limit = $this->params->def('search_limit', 50);\n $itemid = $this->params->def('itemid');\n } else {\n $db =& JFactory::getDBO();\n $user =& JFactory::getUser();\n $searchText = $text;\n\n require_once(JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php');\n\n if (is_array( $areas )) {\n if (!array_intersect( $areas, array_keys( plgSearchCategoryAreas() ) )) {\n return array();\n }\n }\n \n // load plugin params info\n $plugin =& JPluginHelper::getPlugin('search', 'civisearch');\n $pluginParams = new JParameter( $plugin->params );\n $limit = $pluginParams->def( 'search_limit', 50 );\n $itemid = $pluginParams->def('itemid');\n }\n\n $text = trim( $text );\n if ( $text == '' ) {\n return array();\n }\n\n switch ( $ordering ) {\n case 'alpha':\n $order = 'a.title ASC';\n break;\n case 'newest':\n $order = 'a.start_date DESC';\n break;\n case 'oldest':\n $order = 'a.start_date ASC';\n break;\n default:\n $order = 'a.id DESC';\n }\n\n \n \n $text = $db->Quote( '%'.$db->getEscaped( $text, true ).'%', false );\n $select = 'a.title, a.description AS text, a.created_date AS created, a.summary AS summary, a.id AS eventid';\n $from = 'civicrm_event AS a';\n $where = '(a.title LIKE '. $text .' OR a.description LIKE '. $text .' OR a.summary LIKE '. $text .') AND a.is_public = 1 AND a.is_template = 0 AND a.is_active = 1';\n $group = 'a.id';\n $return = array();\n \n if(version_compare(JVERSION,'1.6.0','ge')) {\n $query = $db->getQuery(true);\n $query->select($select);\n $query->from($from);\n $query->where($where);\n $query->group($group);\n $query->order($order);\n if ($app->isSite() && $app->getLanguageFilter()) {\n $query->where('a.language in (' . $db->Quote(JFactory::getLanguage()->getTag()) . ',' . $db->Quote('*') . ')');\n }\n } else {\n $query = 'SELECT '.$select\n . ' FROM '.$from\n . ' WHERE '.$where\n . ' GROUP BY '.$group\n . ' ORDER BY '. $order\n ;\n }\n \n $db->setQuery($query, 0, $limit);\n $rows = $db->loadObjectList();\n\n $itemid_url = '';\n if (isset($itemid)) {\n $itemid_url = '&Itemid='.$itemid;\n }\n\n if ($rows) {\n $count = count($rows);\n for ($i = 0; $i < $count; $i++) {\n \n $rows[$i]->href = 'index.php?option=com_civicrm&task=civicrm/event/info&reset=1&id='.$rows[$i]->eventid.$itemid_url;\n $rows[$i]->section = JText::_('Event');\n }\n\n $return = array();\n foreach($rows AS $key => $event) {\n if (searchHelper::checkNoHTML($event, $searchText, array('summary', 'title', 'text'))) {\n $return[] = $event;\n }\n }\n }\n \n return $return;\n }", "title": "" }, { "docid": "a1fa8e150946487c7c6269a7fd363374", "score": "0.548811", "text": "public function searchCategory(Request $request){\n $categories=Category::where('title','LIKE','%'.$request->keyword.'%')->orWhere('slug','LIKE','%'.$request->keyword.'%')->get();\n if(count($categories)==0){\n return Response::json(['message'=>'No category match found !']);\n }else{\n return Response::json($categories);\n }\n }", "title": "" }, { "docid": "4a2953092009f442debcb0c0fc158baa", "score": "0.5481799", "text": "public function search()\n\t{\t\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "97b08a441d068fec4c254c4064fe5130", "score": "0.5458925", "text": "public function category_product_search()\n {\n $cat_id = $this->input->post('category_id');\n $product_name = $this->input->post('product_name');\n $content = $this->lcategory->category_product_search($cat_id,$product_name);\n $this->template->full_website_html_view($content);\n }", "title": "" }, { "docid": "05fac99a0a5ce1a8690a60bb4e87457f", "score": "0.5457947", "text": "public function doSearch();", "title": "" }, { "docid": "b25446bf21c0261274bc0d7d9ad86120", "score": "0.54529923", "text": "abstract public function search($query);", "title": "" }, { "docid": "879c23019cfd6b6c52bc8874305c396b", "score": "0.54494643", "text": "function cari ($keyword) {\n\t$query = \"SELECT * FROM booking WHERE username\n\t \t\tLIKE '%$keyword%'\n\t \t\tOR klub LIKE '%$keyword%'\n\t \t\tOR alamat LIKE '%$keyword%'\n\t \t\tOR no_ktp LIKE '%$keyword%'\n\t \t\tOR no_telepon LIKE '%$keyword%'\n\t \t\tOR waktu LIKE '%$keyword%'\n\t \t\tOR jam LIKE '%$keyword%'\n\t \t\t\n\t \t\t\";\n\n\treturn query ($query);\n\n\n\n\n\n}", "title": "" }, { "docid": "e16ba9b3ab82d11797a98251c990a5fb", "score": "0.5447501", "text": "public function search($value);", "title": "" }, { "docid": "bcfc58be02127ef84af721a1392ebeac", "score": "0.54466707", "text": "abstract function search(watson_search_term $search);", "title": "" }, { "docid": "9b68ba1c0e72f8ee5834da37bfb1ca2b", "score": "0.5445793", "text": "public function wildcardSearch($input) {\n $objects = array();\n $fields = $this->getColumns();\n $select = $this->getSelect();\n foreach ($fields as $field)\n {\n switch ($field)\n {\n case 'note':\n case 'foromtale':\n case 'navn':\n case 'title_en':\n $select->setWhereOr($field, 'like', \"%{$input}%\");\n break;\n default:\n break;\n }\n }\n $select->setOrder('id', 'asc');\n $results = $this->findBySelectMany($select);\n if (!empty($results)) {\n $objects = $results;\n }\n return $objects;\n }", "title": "" }, { "docid": "bd4c9791d646e626013790e2871eab0d", "score": "0.54381615", "text": "public function search($name);", "title": "" }, { "docid": "cec16a83667515e0df6ee357b95ff892", "score": "0.54330075", "text": "function search_resources_by_tag_substring($substring)\n\t{\n\t\t# Join tag, resource and resource_keyword (junction) tables\n\t\t$qry = \"SELECT R.title, R.id \n\t\t\t\tFROM `gh_keyword` K, `gh_resource_keyword` RK, gh_resource R \n\t\t\t\tWHERE K.id = RK.keyword_id \n\t\t\t\tAND R.id = RK.resource_id \n\t\t\t\tAND K.name like '%\" . $substring . \"%'\";\n\t\t$query = $this -> db -> query($qry);\n\t\treturn $query; \n\t\n\t}", "title": "" }, { "docid": "6fb2022aa335ea1eef7695ca268d8625", "score": "0.54264003", "text": "public function searchCriteria();", "title": "" }, { "docid": "f46455d7089cc5ff6d544e1e5a4bd9cd", "score": "0.5426392", "text": "function searchKeyword()\n\t{\n\t\t\n //dev_log::cur_url();\n\t\t$defaultLocation = $this->defaultLocation;\n \n\t\t$Search2\t\t\t\t\t\t\t= (!empty($_GET['Search2'])) ? $_GET['Search2'] : $defaultLocation;\n\t\t\t\n\t\tif($Search2 != '')\n\t\t{\n\t\t\t$this->page->pageTitle \t\t\t= \"Pink Pages &shy; Search results for \".ucwords(strtolower($_GET['Search1'])).\" in \".ucwords(strtolower($_GET['Search2']));\n\t\t}else{\n\t\t\t$this->page->pageTitle \t\t\t= \"Pink Pages &shy; Search results for \".ucwords(strtolower($_GET['Search1']));\n\t\t}\n\n\n\t\t$do \t\t\t\t\t\t= $_GET['do'];\n\t\t$action\t\t\t\t\t\t\t\t= $_GET['action'];\n\t\t$this->page->assign(\"do\",$do);\n\t\t$this->page->assign(\"action\",$action);\n\t\t$this->page->assign(\"home\",$this->request->createURL(\"Affiliate\", \"showhomePageAffiliate\"));\n\t\t$this->page->assign(\"searchStreetForm\",$this->request->createURL(\"Listing\", \"searchStreetForm\"));\n\t\tif(REWRITE_URL){\n\t\t\t$this->page->assign(\"business_name_search\",$this->request->createURL(\"Listing\", \"search\",\"t=tab&SearchOption=1&Search1=\".$_GET['Search1']));\n\t\t} else {\n\t\t\t$this->page->assign(\"business_name_search\",$this->request->createURL(\"Listing\", \"search\").'&t=tab&SearchOption=1&Search1='.$_GET['Search1']);\n\t\t}\n\t\t$total_recs = 0;\n\n\t\t$this->page->addJsFile(\"bsn.AutoSuggest_2.1.3.js\");\n\t\t$this->page->addCssStyle(\"autosuggest_inquisitor.css\");\n\n\t\t$location = GeneralUtils::handle_input($_GET['Search2']);\n\t\t$location = ($location==\"\") ? $defaultLocation : $location;\n\t\t$location_tpl = (empty($location))? $defaultLocation : $location;\n\t\t$this->page->assign(\"location\",$location_tpl);\n\n\t\t$exact = (isset($_GET['exact']) && !empty($_GET['exact']))?$_GET['exact']:0;\n\t\tif(isset($_GET['Search1']) && !empty($_GET['Search1'])) {\n\n\t\t\t$keyword = GeneralUtils::handle_input($_GET['Search1']);\n\t\t\t$this->page->assign(\"keyword\",$keyword);\n\t\t\t\t\n\t\t\t//resolve classification\n\t\t\t$classification_ids = $this->listingFacade->resolveClassification($keyword);\n\t\t\t\n\t\t\tif($classification_ids) {\n\t\t\t\t\n\t\t\t\t//print_r($classification_ids);\n\t\t\t\t//die();\n\t\t\t\t//Create a database entry of the search parameters. This may be a temporary fixture;\n\t\t\t\t$this->listingFacade->successfulSearch($_GET,\"keyword\");\n\t\t\t\t//Gather all the individual listings based on the information gathered\n\t\t\t\tif($location != $defaultLocation){\n\t\t\t\t\t\n\t\t\t\t\tdev_log::write(\"Getting classies for [$location] [\".var_export($classification_ids,true). \"]\");\n\t\t\t\t\t$classifications = $this->listingFacade->getClassificationCountByLocation($location, $classification_ids, $this->request->getAttribute(\"fr\"), $this->request->getAttribute(\"pg_size\"));\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\t//dev_log::write(\"Getting classies for [$location]\");\n\t\t\t\t\t$classifications = $this->listingFacade->getClassificationCountByAlpha($location, $classification_ids, $this->request->getAttribute(\"fr\"), $this->request->getAttribute(\"pg_size\"));\n\t\t\t\t}\n dev_log::write(\"Classifications = \" . var_export($classifications,true));\n\t\t\t\t//Perform an All Sydney Region search if an exact region match cannot be found\n\t\t\t\tif(!$classifications && !$exact) {\n\t\t\t\t\tdev_log::write(\"Performing an All Sydney Region search because an exact region match cannot be found\");\n\t\t\t\t\t$regions = $this->listingFacade->suburbAndRegionList($keyword, $location);\n\t\t\t\t\tif($regions) {\n\t\t\t\t\t\t$this->page->assign('all_regions', $regions);\n\t\t\t\t\t\t$this->page->getPage('keyword_intermediate_search.tpl');\n\t\t\t\t\t\texit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif($classifications) {\n\t\t\t\t\t//dev_log::write(\"Listing::searchKeyword classifications = \".var_export($classifications, true));\n\t\t\t\t\t$total_recs = $classifications['total_recs'];\n\t\t\t\t\t$this->page->assign(\"values\",$classifications['classifications']);\n\t\t\t\t\tif(isset($classifications['ambiguous']) && $classifications['ambiguous']) {\n\t\t\t\t\t\t$this->page->assign(\"ambiguous\",1);\n\t\t\t\t\t\t$this->page->assign(\"ambg_region_name\",$classifications['ambg_region_name']);\n\t\t\t\t\t\t$this->page->assign(\"ambg_suburb_name\",$classifications['ambg_suburb_name']);\n\t\t\t\t\t\t//die($_GET['Search2']);\n\t\t\t\t\t\t//die(urlencode($classifications['ambg_suburb_name']));\n\t\t\t\t\t\t//die($classifications['ambg_suburb_name']);\n\t\t\t\t\t\t$this->page->assign(\"suburb_link\",$this->request->createNaturalURL(\"Listing\", \"searchKeyword\", \"Search1=$keyword&Search2=\".urlencode($classifications['ambg_suburb_name']).\"&c=s\"));\n\t\t\t\t\t\t$region_link = $this->request->createNaturalURL(\"Listing\", \"searchKeyword\", \"Search1=$keyword&Search2=\".urlencode($classifications['ambg_region_name']).\"&ambg_suburb=\".urlencode($classifications['ambg_suburb_name']).\"&c=r\");\n\t\t\t\t\t\t$this->page->assign(\"region_link\",$region_link);\n\t\t\t\t\t //die($region_link);\n\t\t\t\t\t if (!isset($_GET['c'])) { // 20120427 HACK FIX FOR REGION/SUBURB SWAP ON RESULTS PAGE - HEREWARD\n\t\t\t\t\t \theader(\"Location: $region_link\");\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$this->listingFacade->failedSearch($_GET,\"keyword\");\n\t\t\t}\n\t\t\t$alphabets = array('a'=>'A',\n\t\t'b'=>'B',\n\t\t'c'=>'C',\n\t\t'd'=>'D',\n\t\t'e'=>'E',\n\t\t'f'=>'F',\n\t\t'g'=>'G',\n\t\t'h'=>'H',\n\t\t'i'=>'I',\n\t\t'j'=>'J',\n\t\t'k'=>'K',\n\t\t'l'=>'L',\n\t\t'm'=>'M',\n\t\t'n'=>'N',\n\t\t'o'=>'O',\n\t\t'p'=>'P',\n\t\t'q'=>'Q',\n\t\t'r'=>'R',\n\t\t's'=>'S',\n\t\t't'=>'T',\n\t\t'u'=>'U',\n\t\t'v'=>'V',\n\t\t'w'=>'W',\n\t\t'x'=>'X',\n\t\t'y'=>'Y',\n\t\t'z'=>'Z');\n\t\t\t$alpha_links = array();\n\t\t\t$i=0;\n\t\t\tforeach ($alphabets as $k=>$v) {\n\t\t\t\t$alpha_links[$i][\"link\"] = $this->request->createURL(\"Listing\", \"browseCategory\", \"search=$k\");\n\t\t\t\t$alpha_links[$i][\"text\"] = $v;\n\t\t\t\t$i++;\n\t\t\t}\n $allow_sidebar = ($total_recs>0)?1:0;\n\t\t\t$this->page->assign(\"alpha_links\",$alpha_links);\n\t\t\t$this->page->assign('total_recs', $total_recs);\n\t\t\t\n\t\t\t$this->page->assign('allow_sidebar', $allow_sidebar);\n\t\t\t\n\t\t\t$this->page->getPage('key_search.tpl');\n\t\t}\n\t\telse {\n\t\t\tprexit(\"No keyword selected\");\n\t\t}\n\t}", "title": "" }, { "docid": "406aaee327d8e6f12d9e2d1bd4c876af", "score": "0.54095095", "text": "function search_url($search_str)\n\t{\n\t\t$this -> db -> like ('url', $search_str);\n\t\t# Only show non-restricted and visible resources \n\t\t$this -> db -> where('restricted', 0);\n\t\t$this -> db -> where('visible', 1);\n\t\t$query = $this -> db -> get('gh_resource');\t\t\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "d2f7343be1320bf59bba42e6795427e9", "score": "0.5396391", "text": "function filterRestults(&$results, $query, $filterIn = ['title', 'match'])\n{\n $query = trim($query);\n if (empty($query)) {\n return $results;\n }\n\n $filtered = [];\n $query = strtolower($query);\n\n foreach ($results as $val) {\n foreach ($filterIn as $key) {\n $result_val = (isset($val[$key]) ? $val[$key] : '');\n $result_val = strtolower($result_val);\n\n if (!empty($result_val) && strpos($result_val, $query) !== false) {\n $filtered[] = $val;\n break;\n }\n }\n }\n\n /*$filtered = array_filter($results, function ($val, $key) use ($query) {\n $result_title = (isset($val['title']) ? $val['title'] : false);\n $result_match = (isset($val['match']) ? $val['match'] : false);\n if ($result_match && strpos($result_match, $query) !== false) {\n return true;\n }\n if ($result_title && strpos($result_title, $query) !== false) {\n return true;\n }\n }, ARRAY_FILTER_USE_BOTH);*/\n\n return $filtered;\n}", "title": "" }, { "docid": "dd31a0517c20633ca5385e5d82ec3ad3", "score": "0.53923976", "text": "function inspiry_search_where( $where ) {\n\tglobal $wpdb;\n\tif ( is_prop_index() ) {\n\t\t$where = preg_replace(\n\t\t\t'/\\(\\s*' . $wpdb->posts . \".post_title\\s+LIKE\\s*(\\'[^\\']+\\')\\s*\\)/\",\n\t\t\t'(' . $wpdb->posts . '.post_title LIKE $1) OR (' . $wpdb->postmeta . \".meta_key = 'REAL_HOMES_property_id') AND (\" . $wpdb->postmeta . '.meta_value LIKE $1)',\n\t\t\t$where\n\t\t);\n\t}\n\treturn $where;\n}", "title": "" }, { "docid": "19c3f7ef3a48a130d643d777f17f5ab3", "score": "0.53907126", "text": "function Search($category, $string, $strict = \"false\")\r\n\t{\r\n\t\t$request = $this->_ESI_base_path . $this->_route_version . \"/search/?\";\r\n\r\n\t\t$query_data = array (\r\n\t\t\t'categories'=> $category,\r\n\t\t\t'datasource' => $this->datasource,\r\n\t\t\t'language' => $this->language,\r\n\t\t\t'search' => $string,\r\n\t\t\t'strict' => $strict\r\n\t\t);\r\n\t\t$request .= http_build_query($query_data);\r\n\r\n\t\t// Search will return an empty string if search string not found.\r\n\r\n\t\t$json = $this->CurlRequest($request);\r\n\r\n\t\t$response = new ESIresponse($json);\r\n\r\n\t\t//if (property_exists($response, \"EmptyResponse\")) return array();\r\n\t\t//if ($response->WasSuccessful() == false) return array('error_msg' => $response->GetErrorMsg());\r\n\r\n\t\t//return $response->GetResponse()->$category; // Returns an array instead of the ESIresponse object\r\n\t\treturn $response;\r\n\t}", "title": "" }, { "docid": "6f766d76d76d676379796655cf5769b9", "score": "0.53898", "text": "public function search($index, $type, $query, $request)//Todo use array for terms and create multiple terms\n {\n\n $i = 0;\n foreach ($request['field0'] as $field) {\n\n if (strtoupper($request['criterium0'][$i]) == 'LIKE')\n $search = \"*\" . $request['search0'][$i] . \"*\";\n else\n $search = $request['search0'][$i];\n\n //ToDo make function for year between (>xxx <yyy) - at the moment we respond with error\n if ($field == 'year' && strpos($request['search0'][$i], '-') !== false) {\n $result['error'] = 'Search in Full Text Error: Search on Year (between) not allowed';\n return $result;\n }\n\n\n //don't look for excluded terms\n if (strtoupper($request['criterium0'][$i]) == 'LIKE' or $request['criterium0'][$i] == '=') {\n if ($field == 'title') {\n $searchArray[] = array('query_string' => array(\n \"type\" => 'phrase', \"query\" => $search, 'fields' => array(0 => 'attachment.content^5', 1 => 'keywords'),\n //'boost' => 4\n ));\n } else if (in_array($field, ['year', 'author', 'language_source', 'language_target', 'primary', 'all_fields'])) {\n if (($field = 'all_fields')) $field = 'citation';\n $searchArray[] = array('query_string' => array(\n \"type\" => 'phrase', \"query\" => $search, 'fields' => array(0 => $field),\n 'boost' => 3,\n ));\n\n } else {\n //Todo\n // this is not the right way - maybe add roles to ES else skip???\n $searchArray[] = array('query_string' => array(\n \"type\" => 'phrase', \"query\" => $search, 'fields' => array(0 => 'citation'),\n 'boost' => 2,\n ));\n }\n\n\n }\n $i++;\n }\n //Todo reindex primary in Elasticsearch\n //Todo reindex files not found!\n //Search on citation?? Why should we? See line 62\n\n //max. = 5000 Todo set max in Options or .env (validation)\n\n if (Auth()->user()) {\n $options = Option::where('user_id', '=', Auth()->user()->id)->first();\n $maxElastic = $options['max_elastic'];\n }\n else\n $maxElastic = 20;\n\n //$term = $request['field0'][array_search('title',$request['field0'])];\n\n\n $params = [\n '_source_includes' => [\"fileName\", \"refId\", \"author\"], //export only 'fileName'\n 'index' => $index,\n //'from' => 20,\n 'size' => $maxElastic,\n 'body' => [\n 'query' => [\n 'bool' => [\n 'must' => $searchArray,\n ]\n ],\n 'sort' => [\n ['_score' => ['order' => 'desc']]],\n 'collapse' => ['field' => 'refId']\n\n ]\n ];\n try {\n $result = $this->client->search($params);\n\n } catch (\\Throwable $e) {\n //dd($e);\n $result['error'] = 'Search in Full Text: Bad Request';\n return $result;\n }\n\n if (count($result['hits']['hits']) > 0) {\n $i = 0;\n $orWhere = [];\n do {\n $orWhere[] = $result['hits']['hits'][$i]['_source']['refId'];\n $i++;\n } while ($i <= count($result['hits']['hits']) - 1);\n return $orWhere;\n } else {\n return false;\n }\n\n }", "title": "" }, { "docid": "cb5b0c21da2f19a15ef055d5842e0f92", "score": "0.53879416", "text": "public function search(string $q);", "title": "" }, { "docid": "c808628223e12cd175b7349b537f2070", "score": "0.5367228", "text": "function search_like($keyword,$column){\t\t\n\t\t//melakukan pengulangan column\n\t\t$this->db->group_start();\n\t\tforeach ($column as $val=>$row){\n\t\t\t$this->db->or_like($row,$keyword);\n\t\t}\n\t\t$this->db->group_end();\n\t}", "title": "" }, { "docid": "0c4b4b774d62c1f8a47f54a23445178f", "score": "0.5364127", "text": "public function search()\n {\n $word = $this->request->query['search'];\n\n $this->loadModel('Post');\n $this->loadModel('Diet');\n $this->loadModel('Product');\n $this->loadModel('Recipe');\n\n\n $results = array(\n 'Blog' => $this->Post->find('all', array('conditions' => array('Post.title LIKE \"%' . $word . '%\" OR Post.body LIKE \"%' . $word . '%\"'))),\n 'Diet' => $this->Diet->find('all', array('conditions' => array('Diet.name LIKE \"%' . $word . '%\" OR Diet.body LIKE \"%' . $word . '%\"')))\n );\n $this->set(compact('results', 'word'));\n\n }", "title": "" }, { "docid": "d452bd85374dc983c3dfd659fe4e1b37", "score": "0.5363695", "text": "function getCategoriesSearch($text, $limit = 9999) {\n $sqlCommand = \"SELECT * FROM categories WHERE main_cat_name OR sub_cat_name LIKE $text% LIMIT $limit \";\n $results = mysqli_query(getConnection(), $sqlCommand);\n if ($results == false && DEBUG_MODE > 0) {\n echo \"ERROR === no categories found\";\n } else {\n // test\n // print_r($results);\n return $results;\n }\n}", "title": "" }, { "docid": "1348081922e452f2ca39f4507cd3daea", "score": "0.5354665", "text": "function countries_search_handler($params) {\n $cnf =& ServiceConfig::Instance();\n\n if (isset($params['autocomplete']) && !empty($params['autocomplete'])) {\n $params['autocomplete'] = strtolower($params['autocomplete']);\n if ($params['autocomplete'] == 'yes' || $params['autocomplete'] == 'y' || $params['autocomplete'] == 1) {\n $params['autocomplete'] = true;\n } else {\n $params['autocomplete'] = false;\n }\n } else {\n $params['autocomplete'] = false;\n }\n\n $countries = array();\n $data = file('data/country_names_and_code_elements_txt.htm');\n foreach($data as $k => $v) {\n\tlist($name, $code) = explode(';', $v); \n\t$name = trim($name);\n\t$code = trim($code);\n\t$countries[$code] = $name;\n }\n\n if (empty($params['type'])) {\n\t$params['type'] = 'contains';\n } else {\n\t$params['type'] = strtolower($params['type']);\n }\n\n $result = array();\n if ($params['autocomplete'] == true) {\n\t\t$kw = metaphone(strtolower($params['keyword']));\n\t\tforeach ($countries as $k => $v) {\n\t\t\t$v = strtolower($v);\n\t\t\tif ( metaphone($v) == $kw && !in_array(strtoupper($v), $result) ) {\n\t\t\t\t$result[] = strtoupper($v);\n\t\t\t}\n\t\t}\n\t\t$kw = strtolower($params['keyword']);\n\t\tif (strlen($kw) > 3) {\n\t\t\tforeach ($countries as $k => $v) {\n\t\t\t\t$v = strtolower($v);\n\t\t\t\tif ( levenshtein($v, $kw) < 3 && !in_array(strtoupper($v), $result) ) {\n\t\t\t\t\t$result[] = strtoupper($v);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$kw = strtolower($params['keyword']);\n\t\tforeach ($countries as $k => $v) {\n\t\t\t$v = strtolower($v);\n\t\t\tif ( strpos($v, $kw) !== false && !in_array(strtoupper($v), $result) ) {\n\t\t\t\t$result[] = strtoupper($v);\n\t\t\t}\n\t\t}\n }\n return json_encode($result);\n}", "title": "" }, { "docid": "de591727ef3a16ef3a85dff410f0dab9", "score": "0.534194", "text": "public function search() {\n\n\t\n\t}", "title": "" }, { "docid": "926054372d0853f6581a3634e3c036b5", "score": "0.5341644", "text": "protected function search(Request $request)\n {\n \n $validate_data = Validator::make($request->all(),[\n\n 'search' => \"required|string\", \n\n ])->validate();\n \n $search = $request->search;\n\n if ($search != NULL) \n {\n $pets = Pet::where('title','LIKE', '%'.$search.'%')\n ->get(); \n\n \n return view('admin/shop/pets/index')->with('pets', $pets)\n ->with('Categories', Category::all())\n ->with('authUser', Auth::user());\n\n \n } \n else \n {\n return view(\"admin/shop/pets/index\")->with('pets', Pet::all())\n ->with('Categories', Category::all())\n ->with('authUser', Auth::user());\n }\n \n\n \n }", "title": "" }, { "docid": "b34eae120355bf422d82d3cfd612feb3", "score": "0.53238803", "text": "public function searchByCategory()\n\t{\n\t\t// should not be searched.\n\t\n\t\t$criteria=new CDbCriteria;\n\t\n\t\t$criteria->compare('Id',$this->Id);\n\t\t$criteria->compare('Id_brand',$this->Id_brand);\n\t\t$criteria->compare('Id_category',$this->Id_category);\n\t\t$criteria->compare('Id_nomenclator',$this->Id_nomenclator);\n\t\t$criteria->compare('Id_product_type',$this->Id_product_type);\n\t\t$criteria->compare('Id_supplier',$this->Id_supplier);\n\t\t$criteria->compare('description_customer',$this->description_customer,true);\n\t\t$criteria->compare('description_supplier',$this->description_supplier,true);\n\t\t$criteria->compare('code',$this->code,true);\n\t\t$criteria->compare('code_supplier',$this->code_supplier,true);\n\t\t$criteria->compare('discontinued',$this->discontinued);\n\t\t$criteria->compare('length',$this->length,true);\n\t\t$criteria->compare('width',$this->width,true);\n\t\t$criteria->compare('height',$this->height,true);\n\t\t$criteria->compare('profit_rate',$this->profit_rate,true);\n\t\t$criteria->compare('msrp',$this->msrp,true);\n\t\t$criteria->compare('time_instalation',$this->time_instalation,true);\n\t\t$criteria->compare('time_programation',$this->time_programation,true);\n\t\t$criteria->compare('hide',$this->hide);\n\t\t$criteria->compare('weight',$this->weight,true);\n\t\t$criteria->compare('color',$this->color,true);\n\t\t$criteria->compare('color',$this->other,true);\n\t\t$criteria->compare('Id_sub_category',$this->Id_sub_category);\n\t\t$criteria->compare('power',$this->power);\n\t\t$criteria->compare('current',$this->current);\n\t\t$criteria->compare('need_rack',$this->need_rack);\n\t\t$criteria->compare('unit_rack',$this->unit_rack);\n\t\t$criteria->compare('unit_fan',$this->unit_fan);\n\t\t$criteria->compare('model',$this->model,true);\n\t\t$criteria->compare('part_number',$this->part_number,true);\n\t\t$criteria->compare('short_description',$this->short_description,true);\n\t\t\n\t\t$criteria->with[]='brand';\n\t\t$criteria->addSearchCondition(\"brand.description\",$this->brand_description);\n\t\n\t\t$criteria->with[]='category';\n\t\t$criteria->addSearchCondition(\"category.description\",$this->category_description);\n\t\n\t\t$criteria->with[]='nomenclator';\n\t\t$criteria->addSearchCondition(\"nomenclator.description\",$this->nomenclator_description);\n\t\n\t\t$criteria->with[]='supplier';\n\t\t$criteria->addSearchCondition(\"supplier.business_name\",$this->supplier_description);\n\t\n\t\t$criteria->condition = \"t.Id_category IN (SELECT Id_category FROM category_area WHERE Id_area = \".$this->product_area_id.\")\";\n\t\n\t\t// Create a custom sort\n\t\t$sort=new CSort;\n\t\t$sort->attributes=array(\n\t\t\t\t\t\t 'code',\n\t\t\t\t\t\t\t\t'model',\n\t\t\t\t\t\t\t\t'part_number',\n\t\t\t\t\t\t\t\t'short_description',\n\t\t\t\t\t\t 'brand_description' => array(\n\t\t\t\t\t\t 'asc' => 'brand.description',\n\t\t\t\t\t\t 'desc' => 'brand.description DESC',\n\t\t),\n\t\t\t\t\t\t 'category_description' => array(\n\t\t\t\t\t\t 'asc' => 'category.description',\n\t\t\t\t\t\t 'desc' => 'category.description DESC',\n\t\t),\n\t\t\t\t\t\t 'nomenclator_description' => array(\n\t\t\t\t\t\t 'asc' => 'nomenclator.description',\n\t\t\t\t\t\t 'desc' => 'nomenclator.description DESC',\n\t\t),\n\t\t\t\t\t\t\t 'supplier_description' => array(\n\t\t\t\t\t\t\t\t 'asc' => 'supplier.business_name',\n\t\t\t\t\t\t\t\t 'desc' => 'supplier.business_name DESC',\n\t\t),\n\t\t\t\t\t\t '*',\n\t\t);\n\t\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t\t\t\t\t\t'criteria'=>$criteria,\n\t\t\t\t\t\t\t\t'sort'=>$sort,\n\t\t));\n\t\n\t}", "title": "" }, { "docid": "f0efb5b22ef66aa4f39048507da290d8", "score": "0.53170985", "text": "public static function search()\n {\n $items = null;\n\n if(isset($_POST['keywords']))\n {\n $keywords = '%' . str_replace(' ', '%', $_POST['keywords']) . '%';\n $items = Catalog::item()\n ->distinct()\n ->where('description', 'LIKE', $keywords)\n ->orWhere('blurb', 'LIKE', $keywords)\n ->orWhere('name', 'LIKE', $keywords)\n ->all();\n \n if($items)\n foreach($items as &$i)\n $i = Catalog::getItemData($i);\n }\n else\n Url::redirect('catalog');\n\n View::data('keywords', strip_tags($_POST['keywords']));\n View::data('resultCount', count($items));\n View::data('items', $items);\n }", "title": "" }, { "docid": "a612aabf3c4c6364e231c968f4decd4c", "score": "0.531079", "text": "public function addContentFilter($content)\n {\n return $this->getSelect()->where(\"(?) LIKE CONCAT('%', TRIM(BOTH '+' FROM `keyword`), '%')\", $content);\n }", "title": "" }, { "docid": "5dde15378664b500e02475a02c56079c", "score": "0.53080976", "text": "public function search( $searchTerm, $category, $responseGroup ){\n // Input: $searchTerm = text of something to search\n // $category = All, or one of the categories avaialble\n // $responseGroup = Large, Small, etc \n\n\n $response;\n\n try{\n\n // Make querie to amazon for this search item\n $response = $this->amazonEcs->country('com')->category($category)->responseGroup($responseGroup)->search($searchTerm);\n }\n catch(Exception $e)\n {\n echo $e->getMessage();\n } \n\n return $response;\n }", "title": "" }, { "docid": "5b96323e7eb28f2b56cfbc87d7031876", "score": "0.5298915", "text": "public function searchTopicWithCategory($keyword, $categoryId);", "title": "" }, { "docid": "6da8d60dd7b8f519d64618983cbf83d1", "score": "0.5292975", "text": "function search(){\n\t\tif($this->amph_pv_id==\"\"){ $pv ='%';}//search by province_id\n\t\telse{ $pv = $this->amph_pv_id ;}\n\t\t$sql = \"SELECT *\n\t\t\t\tFROM \".$this->hr_db.\".hr_amphur\n\t\t\t\tWHERE amph_name LIKE '%\".$this->amph_name.\"%'\n\t\t\t\tAND amph_pv_id LIKE '\".$pv.\"' \n\t\t\t\tAND amph_active='Y'\";\n\t\t$query = $this->hr->query($sql);\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "1a395ee11e790bee7a4f7da53c370d54", "score": "0.5288237", "text": "public function categorySearchAlpha()\n\t{\n\t\t$this->page->pageTitle = $_GET['category'] . \" Business Listings&#58; Pink Pages Australia\";\n\t\t$this->page->addMetaTags(\"robots\", \"noodp,noydir\");\n\t\t//Reset Search Session Variables\n\t\t$this->url->setListingDetails();\n\n\n\t\t$selectArray \t\t\t\t\t\t= array();\n\n\t\t$do \t\t\t\t\t\t= $_GET['do'];\n\t\t$action\t\t\t\t\t\t\t\t= $_GET['action'];\n\t\t$this->page->assign(\"do\",$do);\n\t\t$this->page->assign(\"action\",$action);\n\n\t\t$classificationID = $this->request->getAttribute('search');\n\n\t\t$location = $this->defaultLocation;\n\n\t\t$bannerArray=$this->listingFacade->getBanner(\"4\");\n\t\t$this->page->assign(\"bannerArray\",$bannerArray);\n\n\t\t$bannerArrayA=$this->listingFacade->getBannerA(\"5\");\n\t\t$this->page->assign(\"bannerArrayA\",$bannerArrayA);\n\n\t\t$bannerArrayB=$this->listingFacade->getBannerB(\"5\");\n\t\t$this->page->assign(\"bannerArrayB\",$bannerArrayB);\n\n\t\t$bannerArrayC=$this->listingFacade->getBannerC(\"5\");\n\t\t$this->page->assign(\"bannerArrayC\",$bannerArrayC);\n\n\t\t$bannerArrayD=$this->listingFacade->getBannerD(\"5\");\n\t\t$this->page->assign(\"bannerArrayD\",$bannerArrayD);\n\n\t\t$bannerArrayE=$this->listingFacade->getBannerE(\"5\");\n\t\t$this->page->assign(\"bannerArrayE\",$bannerArrayE);\n\n\t\t$this->page->assign(\"home\",$this->request->createURL(\"Affiliate\", \"showhomePageAffiliate\"));\n\t\t// $this->listingFacade->categorySearchCount($_GET); // Hereward 20121003 - remove redundant code\n\t\t$res = $this->listingFacade->categorySearchResultAlpha($this->request->getAttribute(\"fr\"), $this->request->getAttribute(\"pg_size\"), $_GET);\n\t\tif($res['is_exclude']) {\n\t\t\t$this->page->assign(\"is_exclude\",1);\n\t\t\t$this->page->assign(\"exclude_count\",$res['exclude_count']);\n\t\t\t$this->page->assign(\"exclude_url\",SITE_PATH.\"main.php?\".$this->request->replaceQS($_SERVER['QUERY_STRING'], array(\"exclude\"=>1, \"fr\"=>0, \"pnum\"=>1)));\n\t\t\t$this->page->assign(\"include_url\",SITE_PATH.\"main.php?\".$this->request->replaceQS($_SERVER['QUERY_STRING'], array(\"exclude\"=>0, \"fr\"=>0, \"pnum\"=>1)));\n\t\t}\n\t\t$this->page->assign(\"brandArray\",$res['brands']);\n\t\t$this->page->assign(\"fetch_service\",$res['services']);\n\t\t$this->page->assign(\"fetch_payment\",$res['payments']);\n\t\t$this->page->assign(\"fetch_hours\",$res['hours']);\n\t\t\t\n\t\tif(isset($_GET['service']))$selectArray['service'] = $_GET['service'];\n\t\tif(isset($_GET['hours']))$selectArray['hours'] \t\t= $_GET['hours'];\n\t\tif(isset($_GET['payment']))$selectArray['payment'] \t= $_GET['payment'];\n\t\tif(isset($_GET['keyword']))$selectArray['keyword'] \t= $_GET['keyword'];\n\t\tif(isset($_GET['brand']))$selectArray['brand'] \t\t= $_GET['brand'];\n\t\t$this->page->assign(\"selectArray\",$selectArray);\n\n\t\t$this->page->addJsFile(\"bsn.AutoSuggest_2.1.3.js\");\n\t\t$this->page->addCssStyle(\"autosuggest_inquisitor.css\");\n\n\t\t$category = urldecode(ucwords(strtolower($_GET['category'])));\n\t\t//$default_keyword = urldecode(ucwords(strtolower($_GET['category'])));\n\t\t$default_keyword = $this->resolve_keyword($location,true);\n\t\t\n\t\t\n\n\t //$classification_name = urlencode($classification_name);\n\t\t\n\t\t$location = ucwords(strtolower($location));\n $keyword = $this->resolve_keyword($location,false);\n\t\t$this->page->assign(\"category\", $category);\n\t\t$this->page->assign(\"keyword\" , $keyword);\n\t\t$this->page->assign(\"default_keyword\" , $default_keyword);\n\t\t$this->page->assign(\"location\", $location);\n\n\t\t$sortby\t\t\t= (!empty($_GET['sortby']))?$_GET['sortby']:NULL;\n\t\t$this->page->assign(\"sortby\",$sortby);\n\n\t\t$state\t\t\t= (!empty($_GET['state']))?$_GET['state']:NULL;\n\t\t$state\t\t\t= explode(\"__\",$state);\n\n\t\t$shirename\t\t= (!empty($_GET['shirename']))?$_GET['shirename']:NULL;\n\t\t$shirename\t\t= explode(\"__\",$shirename);\n\n\t\t$shiretown\t\t= (!empty($_GET['shiretown']))?$_GET['shiretown']:NULL;\n\t\t$shiretownval\t= explode(\"__\",$shiretown);\n\n\t\t$locationRes\t= $this->listingFacade->locationDisplay();\n\n\t\t$refineDisplay\t= $this->listingFacade->refineDisplay($_GET);\n\n\t\t$this->page->assign(\"refineDisplay\",$refineDisplay);\n\t\tif(count($state)>0)\n\t\t{\n\t\t\t$shirenameRes = $this->listingFacade->regionDisplay($state);\n\t\t\t$this->page->assign(\"shirenameRes\",$shirenameRes);\n\t\t}\n\t\tif(count($shirename)>0)\n\t\t{\n\t\t\t$shiretown = $this->listingFacade->shireTownDisplay($shirename);\n\t\t\t$this->page->assign(\"shiretown\",$shiretown);\n\t\t}\n\t\t$this->page->assign(\"locationRes\",$locationRes);\n\t\t$this->page->assign(\"state\", $state[0]);\n\t\t$this->page->assign(\"shirename\", $shirename[0]);\n\t\t$this->page->assign(\"shiretownval\", $shiretownval[0]);\n\n\t\t$CountResult\t\t=count($res);\n\t\t$this->page->assign(\"CountResult\",$CountResult);\n\t\t$normalcount\t\t= count($res['blogs']);\n\t\t$this->page->assign(\"normalcount\",$normalcount);\n\t\t$this->page->assign(\"values\", $res['blogs']);\n\t\t$this->page->assign(\"paging\", $res['paging']);\n\t\t$this->page->assign(\"CountResult\",$res['paging']['totalRecords']);\n\n\t\t$hrs = array();\n\t\tfor($i=1;$i<=24;$i++){\n\t\t\t\t\n\t\t\t$hrs[] = $i;\n\t\t\t\t\n\t\t}\n\t\t$this->page->assign(\"hrs\",$hrs);\n\n\t\t$category_search = $this->request->createURL(\"Listing\", \"categorySearch\", \"category\");\n\t\t$this->page->assign(\"category_search\",$category_search);\n\n\t\t//Adding Meta Tags\n\t\t$this->page->addMetaDescription(\"Looking for $category? Pink Pages Australia has an extensive directory of $category listings in all major capitals and throughout regional Australia.\");\n\t\t//$this->page->addMetaKeywords(\"$category, $location\");\n\t\t$this->page->addCanonical(SITE_PATH . \"listing/categorysearchalpha/search/\".$_GET['search'].\"/category/\".urlencode($category));\n\n\t\t$this->page->assign(\"service_change\", \"javascript:window.location='\".$this->request->createNaturalURL(\"Listing\",\"categorySearch\", \t\t \"search={$this->request->getAttribute('search')}&category={$this->request->getAttribute('category')}&shire_town={$this->request->getAttribute('shire_town')}&shire_name={$this->request->getAttribute('shire_name')}&hours={$this->request->getAttribute('hours')}&payment={$this->request->getAttribute('payment')}&brand={$this->request->getAttribute('brand')}&val={$this->request->getAttribute('val')}&service='\").\"+this.value\");\n\t\t$this->page->assign(\"hour_change\", \"javascript:window.location='\".$this->request->createNaturalURL(\"Listing\", \"categorySearch\", \t \"search={$this->request->getAttribute('search')}&category={$this->request->getAttribute('category')}&shire_town={$this->request->getAttribute('shire_town')}&shire_name={$this->request->getAttribute('shire_name')}&val={$this->request->getAttribute('val')}& payment={$this->request->getAttribute('payment')}&brand={$this->request->getAttribute('brand')}&service={$this->request->getAttribute('service')}&hours='\").\"+this.value\");\n\t\t$this->page->assign(\"payment_change\", \"javascript:window.location='\".$this->request->createNaturalURL(\"Listing\", \"categorySearch\", \t\"search={$this->request->getAttribute('search')}&category={$this->request->getAttribute('category')}&shire_town={$this->request->getAttribute('shire_town')}&shire_name={$this->request->getAttribute('shire_name')}&val={$this->request->getAttribute('val')}&\tservice={$this->request->getAttribute('service')}&hours={$this->request->getAttribute('hours')}&brand={$this->request->getAttribute('brand')}&payment='\").\"+this.value\");\n\t\t$this->page->assign(\"keyword_change\", \"javascript:window.location='\".$this->request->createNaturalURL(\"Listing\", \"categorySearch\", \"search={$this->request->getAttribute('search')}&category={$this->request->getAttribute('category')}&val={$this->request->getAttribute('val')}&service={$this->request->getAttribute('service')}&hours={$this->request->getAttribute('hours')}&payment={$this->request->getAttribute('payment')}&keyword='\").\"+this.value\");\n\t\t$this->page->assign(\"brand_change\", \"javascript:window.location='\".$this->request->createNaturalURL(\"Listing\", \"categorySearch\", \"search={$this->request->getAttribute('search')}&category={$this->request->getAttribute('category')}&shire_town={$this->request->getAttribute('shire_town')}&shire_name={$this->request->getAttribute('shire_name')}&val={$this->request->getAttribute('val')}& service={$this->request->getAttribute('service')}&hours={$this->request->getAttribute('hours')}&payment={$this->request->getAttribute('payment')}&keyword={$this->request->getAttribute('keyword')}&brand='\").\"+this.value\");\n\n\t\t$this->page->assign(\"contactUs\",$this->request->createURL(\"Listing\", \"contactUs\",\"ID\"));\n\t\t$_GET['pnum'] = (isset($_GET['pnum']) && $_GET['pnum'])?$_GET['pnum']:1;\n\t\t$relatedClassLinks = $this->relatedClassLinks($classificationID);\n\t\t$related_class_count = count($relatedClassLinks['classifications']);\n $this->page->assign(\"related_class_count\", $related_class_count);\n\t\t$this->page->assign(\"relatedClassLinks\", $relatedClassLinks['classifications']);\n\t\t\n\t\t$this->page->assign(\"classificationID\", $classificationID);\n\t\t$this->page->assign('allow_sidebar', 1);\n\t\t//dev_log::cur_url(\"Listing::categorySearch\");\n\t\t$this->page->getPage('category_result.tpl');\n\t}", "title": "" }, { "docid": "0a78e8592dd2acbb6e633d08bd0ad40f", "score": "0.5287479", "text": "function getAllBykeyword($keyword,$condiction,$field) {\n\n $sql=\"SELECT * FROM mco_proveedores WHERE \";\n\n switch ($condiction) {\n\n case \"=\": //Equal\n $condiction_sql =\"$field = '$keyword'\"; \n break;\n\n case \"!=\": //Different \n $condiction_sql =\"$field !='$keyword'\"; \n break; \n\n case \"_%\": //Begin With\n $condiction_sql =\"$field like '$keyword%'\";\n break; \n\n case \"%_\": //End With\n $condiction_sql =\"$field like '%$keyword' \"; \n break; \n\n case \"%\": //End Content\n $condiction_sql =\"$field like '%$keyword%' \"; \n break; \n\n }\n $sql .= $condiction_sql; \n\n return $this->connection->GetAll($sql);\n }", "title": "" }, { "docid": "45a97d5d32395f8325ef4527e4ec4c24", "score": "0.5285868", "text": "function my_search_query($query) {\n if ($query->is_search() and $query->query_vars and $query->query_vars['s'] and $query->query_vars['s_meta_keys']) { // if we are searching using the 's' argument and added a 's_meta_keys' argument\n global $wpdb;\n $search = $query->query_vars['s']; // get the search string\n $ids = array(); // initiate array of martching post ids per searched keyword\n foreach (explode(' ',$search) as $term) { // explode keywords and look for matching results for each\n $term = trim($term); // remove unnecessary spaces\n if (!empty($term)) { // check the the keyword is not empty\n $query_posts = $wpdb->prepare(\"SELECT * FROM {$wpdb->posts} WHERE post_status='publish' AND ((post_title LIKE '%%%s%%') OR (post_content LIKE '%%%s%%'))\", $term, $term); // search in title and content like the normal function does\n $ids_posts = [];\n $results = $wpdb->get_results($query_posts);\n if ($wpdb->last_error)\n die($wpdb->last_error);\n foreach ($results as $result)\n $ids_posts[] = $result->ID; // gather matching post ids\n $query_meta = [];\n foreach($query->query_vars['s_meta_keys'] as $meta_key) // now construct a search query the search in each desired meta key\n\t\t\t\t\t//$where = str_replace(\"meta_key = 'fx_flex_layout_$\", \"meta_key LIKE 'fx_flex_layout_%\", $where);\n\t\t\t\t\t//$where = str_replace(\"meta_key = 'fx_coluna_1_1_$\", \"meta_key LIKE 'fx_coluna_1_1_%\", $where);\n\t\t\t\t\t//$meta_key = str_replace('fx_flex_layout_$_fx_coluna_1_1_$_fx_editor_1_1', 'fx_flex_layout_%_fx_coluna_1_1_%_fx_editor_1_1', $meta_key);\n\t\t\t\t\t$query_meta[] = $wpdb->prepare(\"meta_key='%s' AND meta_value LIKE '%%%s%%'\", $meta_key, $term);\n $query_metas = $wpdb->prepare(\"SELECT * FROM {$wpdb->postmeta} WHERE ((\".implode(') OR (',$query_meta).\"))\");\n $ids_metas = [];\n $results = $wpdb->get_results($query_metas);\n if ($wpdb->last_error)\n die($wpdb->last_error);\n foreach ($results as $result)\n $ids_metas[] = $result->post_id; // gather matching post ids\n $merged = array_merge($ids_posts,$ids_metas); // merge the title, content and meta ids resulting from both queries\n $unique = array_unique($merged); // remove duplicates\n if (!$unique)\n $unique = array(0); // if no result, add a \"0\" id otherwise all posts wil lbe returned\n $ids[] = $unique; // add array of matching ids into the main array\n }\n }\n if (count($ids)>1)\n $intersected = call_user_func_array('array_intersect',$ids); // if several keywords keep only ids that are found in all keywords' matching arrays\n else\n $intersected = $ids[0]; // otherwise keep the single matching ids array\n $unique = array_unique($intersected); // remove duplicates\n if (!$unique)\n $unique = array(0); // if no result, add a \"0\" id otherwise all posts wil lbe returned\n unset($query->query_vars['s']); // unset normal search query\n $query->set('post__in',$unique); // add a filter by post id instead\n }\n}", "title": "" }, { "docid": "3a956cd3979754499c5c821a0110a04d", "score": "0.5281543", "text": "public function categorySearchByRegion()\n\t{\n\t\t$exclude_list=\"59,55,301,315,317,318,319,320\";\n\t\t$shire_names = $this->listingFacade->get_real_regions($exclude_list);\n\t\t$classi = $_GET['search'];\n\t\t\n\t\t$obj = $this->listingFacade->getOneClassification($classi);\n\t\t$all_businesses = $this->listingFacade->get_all_businesses_from_classi($classi);\n\t\t//var_dump($all_businesses);\n\t\t//die();\n\t\t$classi_name = $obj[0]['localclassification_name'];\n\t\t//die(\"[$classi] [$classi_name]\");\n\t\t$this->page->assign(\"shire_names\", $shire_names);\n\t\t\n\t\t//var_dump($shire_names);\n\t\t//die();\n\t\t\n\t\t$this->page->assign(\"classi_name\", $classi_name);\n\t\t$this->page->assign(\"classi_enc\", urlencode($classi_name));\n\t\t$this->page->assign(\"classi\", $classi);\n\t\t$meta_array = array();\n\t\t$states = array(); //explode(',','NSW,TAS,QLD,SA,WA,NT');\n \n\t\t$region_count = array();\n\t\t\n\t\t\n\t\tforeach ($all_businesses as $business) {\n\t\t\t$pc = $business['business_postcode'];\n\t\t\tif ($pc) {\n\t\t\t $region = $this->listingFacade->get_region_from_postcode($pc);\n\t\t\t $state = ($business['business_state'])?$business['business_state']:'';\n\t\t\t $id = $region['id'];\n\t\t\t $alias = $region['alias'];\n\t\t\t //$state = 'NSW';\n\t\t\t //die(\"[$alias]\");\n\t\t\t $flag = false;\n\t\t\t if (!isset($region_count[\"r_$id\"])) {\n\t\t\t \t$region_count[\"r_$id\"] = array('id'=>'', 'alias'=>'', 'name'=>'', 'count'=>0, 'state'=>0 );\n\t\t\t \t$flag = true;\n\t\t\t }\n\t\t\t $region_count[\"r_$id\"]['count']++;\n\t\t\t $region_count[\"r_$id\"]['alias'] = $alias;\n\t\t\t $region_count[\"r_$id\"]['state'] = $state;\n\t\t\t if (!in_array($state, $states)) { $states[] = $state;}\n\t\t\t $region_count[\"r_$id\"]['id'] = $id;\n\t\t\t if ($flag && $id) {\n\t\t\t \t$meta_array[$state][]=$region_count[\"r_$id\"];\n\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t\t \n\t\t\t//die(\"[$pc]\");\n\t\t}\n\t\t\n\t\t$this->page->assign(\"states\", $states);\n\t $this->page->assign(\"meta_array\", $meta_array);\n\t \n\t //var_dump($states);\n\t\t//die();\n\t\t\n\t\t//var_dump($meta_array);\n\t\t//die();\n\t\t$this->page->assign(\"region_count\", $region_count);\n\t\t\n\t\t//var_dump($region_count);\n\t\t//var_dump($shire_names);\n\t\t//die();\t\t\n\t\t$this->page->getPage('category_result_by_region.tpl');\n\t\t\n\t\t//var_dump($shire_names);\n\t\t\n\t\texit;\n\t\t//die();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tdev_log::cur_url();\n\t\tif(isset($_GET['shire_name']) && !empty($_GET['shire_name'])){\n\t\t\t$regionAlias = $_GET['shire_name'];\n\t\t\t$_GET['shire_name'] = $this->listingFacade->getShireNameFromAlias($_GET['shire_name']);\n\t\t}\n\t\t\n\n\t\t$shire_name\t\t\t\t\t\t\t= (!empty($_GET['shire_name']))?$_GET['shire_name']:NULL;\n\t\t$shire_town\t\t\t\t\t\t\t= (!empty($_GET['shire_town']))?$_GET['shire_town']:NULL;\n\t\t$state = (!empty($_GET['state']))?$_GET['state']:NULL;\n\t\t$location = '';\n\n\t\tif($state == ''){\n\t\t\t$state = ($this->listingFacade->isStateExistsBySuburb($shire_town)) ? $this->listingFacade->isStateExistsBySuburb($shire_town) : $this->listingFacade->isStateExistsByRegion($shire_name);\n\t\t}\n\n\t\t$selectArray \t\t\t\t\t\t= array();\n\n\t\t$do \t\t\t\t\t\t= $_GET['do'];\n\t\t$action\t\t\t\t\t\t\t\t= $_GET['action'];\n\t\t$this->page->assign(\"do\",$do);\n\t\t$this->page->assign(\"action\",$action);\n\n\t\tif(isset($_GET['shire_name']) && $_GET['shire_name'] !='') {\n\t\t\t$location = $_GET['shire_name'];\n\t\t\t//dev_log::write(\"categorySearch: LOCATION = $location\");\n\t\t\t$searchSuburbs = $this->searchRefineFacade->getSuburbsByRegion($location);\n\t\t\t$suburbURLs = array();\n\t\t\tforeach($searchSuburbs as $searchSuburb){\n\t\t\t\t$suburb = urlencode($searchSuburb['shiretown_townname']);\n\t\t\t\t$suburbURLs[] = array($searchSuburb['shiretown_townname']=>$this->request->createURL(\"Listing\", \"categorySearch\", \"category=\".urlencode($this->request->getAttribute('category')).\"&state={$state}&shire_town={$suburb}&search={$this->request->getAttribute('search')}\"));\n\t\t\t}\n\t\t\t$searchArea = (count($searchSuburbs)>0) ? 'region' : '';\n\t\t\t$suburbCount = count($searchSuburbs);\n\t\t\t$this->page->assign(\"suburbCount\", $suburbCount);\n\t\t\t$this->page->assign(\"suburbURLs\", $suburbURLs);\n\t\t\t//$this->page->assign(\"suburb_change\", \"javascript:window.location='\".$this->request->createURL(\"Listing\",\"categorySearch\", \"search='\").\"+this.value\");\n\t\t\t$this->page->assign(\"suburb_change\", \"javascript:window.location=this.value\");\n\t\t}\n\t\telseif(isset($_GET['postcode'])) {\n\t\t\t$location = $_GET['postcode'];\n\t\t}\n\t\telseif(isset($_GET['shire_town']) && $_GET['shire_town'] !='') {\n\t\t\t$location = $_GET['shire_town'];\n\t\t\t$state = $_GET['state'];\n\t\t\t$searchArea = 'suburb';\n\t\t\t$searchRegions = $this->searchRefineFacade->getRegionBySuburb($location, $state);\n\t\t\t$regionURLs = array();\n\t\t\tforeach($searchRegions as $searchRegion){\n\t\t\t\t$regionURLs[] = array($searchRegion['shirename_shirename']=>$this->request->createURL(\"Listing\", \"categorySearch\", \"category=\" . urlencode($this->request->getAttribute('category')) .\"&state={$state}\".\"&shire_name=\" . urlencode($searchRegion['url_alias']) . \"&search={$this->request->getAttribute('search')}\"));\n\t\t\t}\n\t\t\t$this->page->assign(\"regionCount\", count($regionURLs));\n\t\t\t$this->page->assign(\"regionURLs\", $regionURLs);\n\t\t}\n\t\telse {\n\t\t\n\t\t\tif ($state) {\n\t\t\t\tif ($state == 'NSW') {\n\t\t\t\t\t$location = 'All Sydney';\n\t\t\t\t} elseif ($state == 'VIC') {\n\t\t\t\t\t$location = 'All Melbourne';\n\t\t\t\t} elseif ($state == 'QLD') {\n\t\t\t\t\t$location = 'All Brisbane';\n\t\t\t\t} elseif ($state == 'ACT') {\n\t\t\t\t\t$location = 'Canberra Region';\n\t\t\t\t} elseif ($state == 'NT') {\n\t\t\t\t\t$location = 'All Darwin';\n\t\t\t\t} elseif ($state == 'WA') {\n\t\t\t\t\t$location = 'All Perth';\n\t\t\t\t} elseif ($state == 'SA') {\n\t\t\t\t\t$location = 'All Adelaide';\n\t\t\t\t} elseif ($state == 'TAS') {\n\t\t\t\t\t$location = 'All Hobart';\n\t\t\t\t} else {\n\t\t\t\t\t$location = 'All States';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t$location = 'All Sydney';\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\t//Assign suburb/region search area\n\t\tif(isset($searchArea)){\n\t\t\t$this->page->assign(\"searchArea\", $searchArea);\n\t\t}\n\n\t\t//Get the Classificiation Description\n\t\t$classificationID = $this->request->getAttribute('search');\n\t\t$page = ($this->request->getAttribute('pnum')) ? $this->request->getAttribute('pnum') : 1;\n\t\t\n\t\t$description = $this->cf->getClassificationDescription($classificationID);\n\t\t$this->page->assign(\"description\", $description);\n\n\t\t//Get the Classification Snippets\n\t\t$snippets = $this->cf->getClassificationSnippet($classificationID, $page);\n\t\t$this->page->assign(\"snippets\", $snippets);\n\n\t\t$bannerArray=$this->listingFacade->getBanner(\"4\");\n\t\t$this->page->assign(\"bannerArray\",$bannerArray);\n\n\t\t/*$keywordArray=$this->listingFacade->fetchKeyword($_GET);\n\t\t $this->page->assign(\"keywordArray\",$keywordArray);\n\n\t\t $brandArray=$this->listingFacade->fetchBrands($_GET);\n\t\t $this->page->assign(\"brandArray\",$brandArray);*/\n\n\t\t$bannerArrayA=$this->listingFacade->getBannerA(\"5\");\n\t\t$this->page->assign(\"bannerArrayA\",$bannerArrayA);\n\n\t\t$bannerArrayB=$this->listingFacade->getBannerB(\"5\");\n\t\t$this->page->assign(\"bannerArrayB\",$bannerArrayB);\n\n\t\t$bannerArrayC=$this->listingFacade->getBannerC(\"5\");\n\t\t$this->page->assign(\"bannerArrayC\",$bannerArrayC);\n\n\t\t$bannerArrayD=$this->listingFacade->getBannerD(\"5\");\n\t\t$this->page->assign(\"bannerArrayD\",$bannerArrayD);\n\n\t\t$bannerArrayE=$this->listingFacade->getBannerE(\"5\");\n\t\t$this->page->assign(\"bannerArrayE\",$bannerArrayE);\n\n\t\t$this->page->assign(\"home\",$this->request->createURL(\"Affiliate\", \"showhomePageAffiliate\"));\n\t\t//$this->listingFacade->categorySearchCount($_GET); // Hereward 20121003 - remove redundant code\n\t\t$res = $this->listingFacade->categorySearchResult($this->request->getAttribute(\"fr\"), $this->request->getAttribute(\"pg_size\"), $_GET);\n\n\t\tif($res['is_exclude']) {\n\t\t\t$this->page->assign(\"is_exclude\",1);\n\t\t\t$this->page->assign(\"exclude_count\",$res['exclude_count']);\n\t\t\t$this->page->assign(\"exclude_url\",SITE_PATH.\"main.php?\".$this->request->replaceQS($_SERVER['QUERY_STRING'], array(\"exclude\"=>1, \"fr\"=>0, \"pnum\"=>1)));\n\t\t\t$this->page->assign(\"include_url\",SITE_PATH.\"main.php?\".$this->request->replaceQS($_SERVER['QUERY_STRING'], array(\"exclude\"=>0, \"fr\"=>0, \"pnum\"=>1)));\n\t\t}\n\t\t$this->page->assign(\"brandArray\",$res['brands']);\n\t\t$this->page->assign(\"fetch_service\",$res['services']);\n\t\t$this->page->assign(\"fetch_payment\",$res['payments']);\n\t\t$this->page->assign(\"fetch_hours\",$res['hours']);\n\t\t$this->page->assign(\"current_page\",$page);\n\t\t\n\t\t\t\n\t\tif(isset($_GET['service']))$selectArray['service'] \t\t= $_GET['service'];\n\t\tif(isset($_GET['hours']))$selectArray['hours'] \t\t= $_GET['hours'];\n\t\tif(isset($_GET['payment']))$selectArray['payment'] \t\t= $_GET['payment'];\n\t\tif(isset($_GET['keyword']))$selectArray['keyword'] \t= $_GET['keyword'];\n\t\tif(isset($_GET['brand']))$selectArray['brand'] \t\t= $_GET['brand'];\n\t\t$this->page->assign(\"selectArray\",$selectArray);\n\n\t\t$this->page->addJsFile(\"bsn.AutoSuggest_2.1.3.js\");\n\t\t$this->page->addCssStyle(\"autosuggest_inquisitor.css\");\n\n\t\t$category = urldecode(ucwords(strtolower($_GET['category'])));\n\t\t//$default_keyword = urldecode(ucwords(strtolower($_GET['category'])));\n\t\t$default_keyword = $this->resolve_keyword($location,true);\n\t\t$adult = 0;\n\t\t\n\t\tif ($category == 'Adult Entertainment' || $category == 'Escorts') {\n\t\t\t$adult = 1;\n\t\t\t//die(\"ADULT!!!! [$category]\");\n\t\t}\n\t\t\n\t\t\n\t\t$location = ucwords(strtolower($location));\n\t\t$keyword = $this->resolve_keyword($location,false);\n\n\t\t$this->page->assign(\"category\", $category);\n\t\t$this->page->assign(\"keyword\" , $keyword);\n\t\t$this->page->assign(\"default_keyword\" , $default_keyword);\n\t\t\n\t\t$this->page->assign(\"adult\" , $adult);\n\t\t\n\t\t\n\t\t$this->page->assign(\"location\", $location);\n\n\t\t$sortby\t\t\t= (!empty($_GET['sortby']))?$_GET['sortby']:NULL;\n\t\t$this->page->assign(\"sortby\",$sortby);\n\n\t\t$state\t\t\t= (!empty($_GET['state']))?$_GET['state']:NULL;\n\t\t$state\t\t\t= explode(\"__\",$state);\n\n\t\t$shirename\t\t= (!empty($_GET['shirename']))?$_GET['shirename']:NULL;\n\t\t$shirename\t\t= explode(\"__\",$shirename);\n\n\t\t$shiretown\t\t= (!empty($_GET['shiretown']))?$_GET['shiretown']:NULL;\n\t\t$shiretownval\t= explode(\"__\",$shiretown);\n\n\t\t$locationRes\t= $this->listingFacade->locationDisplay();\n\t\t$refineDisplay\t= $this->listingFacade->refineDisplay($_GET);\n\n\t\t$this->page->assign(\"refineDisplay\",$refineDisplay);\n\t\tif(count($state)>0)\n\t\t{\n\t\t\t$shirenameRes = $this->listingFacade->regionDisplay($state);\n\t\t\t$this->page->assign(\"shirenameRes\",$shirenameRes);\n\t\t}\n\t\tif(count($shirename)>0)\n\t\t{\n\t\t\t$shiretown = $this->listingFacade->shireTownDisplay($shirename);\n\t\t\t$this->page->assign(\"shiretown\",$shiretown);\n\t\t}\n\t\t$this->page->assign(\"locationRes\",$locationRes);\n\t\t$this->page->assign(\"state\", $state[0]);\n\t\t$this->page->assign(\"shirename\", $shirename[0]);\n\t\t$this->page->assign(\"shiretownval\", $shiretownval[0]);\n\n\t\t$CountResult\t\t=count($res);\n\t\t$this->page->assign(\"CountResult\",$CountResult);\n\t\t$normalcount\t\t= count($res['blogs']);\n\t\t$this->page->assign(\"normalcount\",$normalcount);\n\n\t\t$this->page->assign(\"values\", $res['blogs']);\n\t\t$this->page->assign(\"paging\", $res['paging']);\n\n\t\t$this->page->assign(\"CountResult\",$res['paging']['totalRecords']);\n\n\t\t$hrs = array();\n\t\tfor($i=1;$i<=24;$i++){\n\t\t\t\t\n\t\t\t$hrs[] = $i;\n\t\t\t\t\n\t\t}\n\t\t$this->page->assign(\"hrs\",$hrs);\n\n\t\t//Assign Metatags and Page Title\n\t\t$cnt = (empty($res['paging']['totalRecords'])) ? $normalcount : $res['paging']['totalRecords'];\n\t\tif($shire_name != '')\n\t\t{\n\t\t\t$canonicalType = 'region';\n\t\t\t$canonicalUrl = $this->url->getCanonical($canonicalType, $_GET);\n\t\t\t$this->page->pageTitle \t\t\t= $category . \" Listing in \" . $location . \", \" . $state[0] . \"&#58; Pink Pages Australia\";\n\t\t\t$this->page->addMetaDescription(\"Looking for $category located in the $location? Pink Pages Australia has \" . $cnt . \" \" . $category . \" listing in \" . $location . \".\");\n\t\t\tif($canonicalUrl){\n\t\t\t\t$this->page->addCanonical(SITE_PATH . $canonicalUrl);\n\t\t\t}\n\t\t\t\t\n\t\t\tif($location && $state[0] && $category){\n\t\t\t\t$region = $location;\n\t\t\t\t$state = $state[0];\n\t\t\t\t$details = array(\"region\" => $region, \"state\" => $state, \"category\" => $category);\n\n\t\t\t\t$this->url->setListingDetails($details);\n\t\t\t}\n\t\t\t\t\n\t\t}elseif($shire_town != '')\n\t\t{\n\t\t\t$canonicalType = 'suburb';\n\t\t\t$canonicalUrl = $this->url->getCanonical($canonicalType, $_GET);\n\t\t\t$region = $this->url->getRegionFromSuburb($location);\n\t\t\t$this->page->pageTitle \t\t\t= $category . \" Listing in \" . $location . \",\" . $region . \", \" . $state[0] . \"&#58; Pink Pages Australia\";\n\t\t\t$this->page->addMetaDescription(\"Looking for $category located in $location of $region, $state[0]? Pink Pages Australia has \" . $cnt . \" \" . $category . \" listings in \" . $location . \", as well as many in the surrounding \" . $region);\n\t\t\tif($canonicalUrl){\n\t\t\t\t$this->page->addCanonical(SITE_PATH . $canonicalUrl);\n\t\t\t}\n\t\t\t\t\n\t\t\tif($location && $region && $state[0] && $category){\n\t\t\t\t$suburb = $location;\n\t\t\t\t$state = $state[0];\n\t\t\t\t$details = array(\"suburb\" => $suburb, \"region\" => $region, \"state\" => $state, \"category\" => $category);\n\t\t\t\t\t\n\t\t\t\t$this->url->setListingDetails($details);\n\t\t\t}\n\t\t\t\t\n\t\t}else{\n\t\t\t$this->page->pageTitle \t\t\t= $category . \" Business Listings&#58; Pink Pages Australia\";\n\t\t\t$canonicalType = 'state';\n\t\t\t$canonicalUrl = $this->url->getCanonical($canonicalType, $_GET);\n\t\t\t$this->page->addMetaDescription(\"Looking for \".$category.\"? Pink Pages Australia has an extensive directory of \".$category.\" listings in all major capitals and throughout regional Australia.\");\n\t\t\tif($canonicalUrl){\n\t\t\t\t$this->page->addCanonical(SITE_PATH . $canonicalUrl);\n\t\t\t}\n\n\t\t\t//Reset Search Session Variables\n\t\t\t$this->url->setListingDetails();\n\t\t}\n\n\t\t$this->page->addMetaTags(\"robots\", \"noodp,noydir\");\n\n\t\t$category_search = $this->request->createURL(\"Listing\", \"categorySearch\", \"category\");\n\t\t$this->page->assign(\"category_search\",$category_search);\n\t\t$this->page->assign(\"service_change\", \"javascript:window.location='\".$this->request->createNaturalURL(\"Listing\",\"categorySearch\", \t\t \"search={$this->request->getAttribute('search')}&category={$this->request->getAttribute('category')}&shire_town={$this->request->getAttribute('shire_town')}&shire_name={$this->request->getAttribute('shire_name')}&hours={$this->request->getAttribute('hours')}&payment={$this->request->getAttribute('payment')}&brand={$this->request->getAttribute('brand')}&val={$this->request->getAttribute('val')}&service='\").\"+this.value\");\n\t\t$this->page->assign(\"hour_change\", \"javascript:window.location='\".$this->request->createNaturalURL(\"Listing\", \"categorySearch\", \t \"search={$this->request->getAttribute('search')}&category={$this->request->getAttribute('category')}&shire_town={$this->request->getAttribute('shire_town')}&shire_name={$this->request->getAttribute('shire_name')}&val={$this->request->getAttribute('val')}& payment={$this->request->getAttribute('payment')}&brand={$this->request->getAttribute('brand')}&service={$this->request->getAttribute('service')}&hours='\").\"+this.value\");\n\t\t$this->page->assign(\"payment_change\", \"javascript:window.location='\".$this->request->createNaturalURL(\"Listing\", \"categorySearch\", \t\"search={$this->request->getAttribute('search')}&category={$this->request->getAttribute('category')}&shire_town={$this->request->getAttribute('shire_town')}&shire_name={$this->request->getAttribute('shire_name')}&val={$this->request->getAttribute('val')}&\tservice={$this->request->getAttribute('service')}&hours={$this->request->getAttribute('hours')}&brand={$this->request->getAttribute('brand')}&payment='\").\"+this.value\");\n\t\t$this->page->assign(\"keyword_change\", \"javascript:window.location='\".$this->request->createNaturalURL(\"Listing\", \"categorySearch\", \"search={$this->request->getAttribute('search')}&category={$this->request->getAttribute('category')}&val={$this->request->getAttribute('val')}&service={$this->request->getAttribute('service')}&hours={$this->request->getAttribute('hours')}&payment={$this->request->getAttribute('payment')}&keyword='\").\"+this.value\");\n\t\t$this->page->assign(\"brand_change\", \"javascript:window.location='\".$this->request->createNaturalURL(\"Listing\", \"categorySearch\", \"search={$this->request->getAttribute('search')}&category={$this->request->getAttribute('category')}&shire_town={$this->request->getAttribute('shire_town')}&shire_name={$this->request->getAttribute('shire_name')}&val={$this->request->getAttribute('val')}& service={$this->request->getAttribute('service')}&hours={$this->request->getAttribute('hours')}&payment={$this->request->getAttribute('payment')}&keyword={$this->request->getAttribute('keyword')}&brand='\").\"+this.value\");\n\n\t\t$this->page->assign(\"contactUs\",$this->request->createURL(\"Listing\", \"contactUs\",\"ID\"));\n\t\t$_GET['pnum'] = (isset($_GET['pnum']) && $_GET['pnum'])?$_GET['pnum']:1;\n\t\t$relatedClassLinks = $this->relatedClassLinks($classificationID,'','','',$location);\n\t\t$related_class_count = 0;\n\t\t$related_classifications = '';\n\t\tif ($relatedClassLinks) {\n\t\t\t$related_class_count = count($relatedClassLinks['classifications']);\n\t\t\t$related_classifications = $relatedClassLinks['classifications'];\n\t\t}\n \n $this->page->assign(\"related_class_count\", $related_class_count);\n\t\t//$this->page->assign(\"relatedClassLinks\", $relatedClassLinks);\n\t\t$this->page->assign(\"relatedClassLinks\", $related_classifications);\n\t\t\n\t\t$this->page->assign('allow_sidebar', 1);\n\t\t\n\t\t//dev_log::cur_url(\"Listing::categorySearch\");\n\t\t$this->page->getPage('category_result_by_region.tpl');\n\t}", "title": "" }, { "docid": "5c1f8d364ba85c5916c1d976c47b494e", "score": "0.52776337", "text": "public function search($catPk)\n\t{\n\t\treturn parent::search($catPk, array('title', 'index_text', 'sidebar_text'));\n\t}", "title": "" }, { "docid": "f18d5bd3df30cdccbe006c49bbc816e9", "score": "0.52749974", "text": "function search() {\n $url['action'] = 'result';\n\n // build a URL will all the search elements in it\n // the resulting URL will be\n // example.com/cake/posts/index/Search.keywords:mykeyword/Search.tag_id:3\n\n foreach ($this->data as $k => $v) {\n foreach ($v as $kk => $vv) {\n $url[$k . '.' . $kk] = $vv;\n }\n }\n\n // redirect the user to the url\n $this->redirect($url, null, true);\n }", "title": "" }, { "docid": "dfca9d5260c87f6e4f0186b13c86e2ca", "score": "0.52628773", "text": "public function search() {\n $url['action'] = 'index';\n $url['prefix'] = 'supplier';\n\n // build a URL will all the search elements in it\n // the resulting URL will be\n // example.com/cake/posts/index/Search.keywords:mykeyword/Search.tag_id:3\n \n foreach ($this->request->data as $k => $v) {\n if (is_array($v)) {\n foreach ($v as $kk => $vv) {\n $url[$k . '.' . $kk] = $vv;\n }\n } else {\n $url[$k] = $v;\n }\n }\n \n // redirect the user to the url\n $this->redirect(Router::url($url));\n }", "title": "" }, { "docid": "e36548b423914d32e0735da62b2d501c", "score": "0.52570194", "text": "public function wordSearch($pattern)\n\t{\n\t\t$this->set('action', 'words-search')\n\t\t\t->set('search', $pattern);\n\n\t\t$content = $this->curlGetContent( $this->_makeUrl(), $this->format );\n\t\treturn ResourceFabric::getWordSearch($content, $this->format);\n\t}", "title": "" }, { "docid": "273fcddbab9cdf1c13bd56a28cd2d44c", "score": "0.52522236", "text": "function sc_post_type_search( $params=array(), $content='' ) {\n\t$defaults = array(\n\t\t'post_type_name' => 'post',\n\t\t'taxonomy' => 'category',\n\t\t'show_empty_sections' => false,\n\t\t'non_alpha_section_name' => 'Other',\n\t\t'column_width' => 'span4',\n\t\t'column_count' => '3',\n\t\t'order_by' => 'title',\n\t\t'order' => 'ASC',\n\t\t'show_sorting' => true,\n\t\t'default_sorting' => 'term',\n\t\t'show_sorting' => true\n\t);\n\n\t$params = ( $params === '' ) ? $defaults : array_merge( $defaults, $params );\n\n\t$params['show_empty_sections'] = (bool)$params['show_empty_sections'];\n\t$params['column_count'] = is_numeric( $params['column_count'] ) ? (int)$params['column_count'] : $defaults['column_count'];\n\t$params['show_sorting'] = (bool)$params['show_sorting'];\n\n\tif ( ! in_array( $params['default_sorting'], array( ' term', 'alpha' ) ) ) {\n\t\t$params['default_sorting'] = $default['default_sorting'];\n\t}\n\n\t// Resolve the post type class\n\tif ( is_null( $post_type_class = get_custom_post_type( $params['post_type_name'] ) ) ) {\n\t\treturn '<p>Invalid post type.</p>';\n\t}\n\t$post_type = new $post_type_class;\n\n\t// Set default search text if the user didn't\n\tif ( ! isset( $params['default_search_text'] ) ) {\n\t\t$params['default_search_text'] = 'Find a ' . $post_type->singular_name;\n\t}\n\n\t// Register if the search data with the JS PostTypeSearchDataManager\n\t// Format is array(post->ID=>terms) where terms include the post title\n\t// as well as all associated tag names\n\t$search_data = array();\n\tforeach( get_posts (array( 'numberposts' => -1, 'post_type' => $params['post_type_name'] ) ) as $post ) {\n\t\t$search_data[$post->ID] = array( $post->post_title );\n\t\tforeach( wp_get_object_terms( $post->ID, 'post_tag' ) as $term ) {\n\t\t\t$search_data[$post->ID][] = $term->name;\n\t\t}\n\t}\n\t?>\n\t<script type=\"text/javascript\">\n\t\tif ( typeof PostTypeSearchDataManager != 'undefined' ) {\n\t\t\tPostTypeSearchDataManager.register( new PostTypeSearchData(\n\t\t\t\t<?php echo json_encode( $params['column_count'] ); ?>,\n\t\t\t\t<?php echo json_encode( $params['column_width'] ); ?>,\n\t\t\t\t<?php echo json_encode( $search_data ); ?>\n\t\t\t) );\n\t\t}\n\t</script>\n\t<?php\n\n\t// Split up this post type's posts by term\n\t$by_term = array();\n\tforeach ( get_terms( $params['taxonomy'] ) as $term ) {\n\t\t$posts = get_posts( array(\n\t\t\t'numberposts' => -1,\n\t\t\t'post_type' => $params['post_type_name'],\n\t\t\t'tax_query' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'taxonomy' => $params['taxonomy'],\n\t\t\t\t\t'field' => 'id',\n\t\t\t\t\t'terms' => $term->term_id\n\t\t\t\t)\n\t\t\t),\n\t\t\t'orderby' => $params['order_by'],\n\t\t\t'order' => $params['order']\n\t\t) );\n\n\t\tif ( count( $posts ) === 0 && $params['show_empty_sections'] ) {\n\t\t\t$by_term[$term->name] = array();\n\t\t} else {\n\t\t\t$by_term[$term->name] = $posts;\n\t\t}\n\t}\n\n\t// Split up this post type's posts by the first alpha character\n\t$by_alpha = array();\n\t$by_alpha_posts = get_posts( array(\n\t\t'numberposts' => -1,\n\t\t'post_type' => $params['post_type_name'],\n\t\t'orderby' => 'title',\n\t\t'order' => 'alpha'\n\t) );\n\tforeach( $by_alpha_posts as $post ) {\n\t\tif ( preg_match( '/([a-zA-Z] )/', $post->post_title, $matches ) === 1 ) {\n\t\t\t$by_alpha[strtoupper( $matches[1] )][] = $post;\n\t\t} else {\n\t\t\t$by_alpha[$params['non_alpha_section_name']][] = $post;\n\t\t}\n\t}\n\tksort( $by_alpha );\n\n\tif ( $params['show_empty_sections'] ) {\n\t\tforeach( range( 'a', 'z' ) as $letter ) {\n\t\t\tif ( ! isset( $by_alpha[strtoupper( $letter )] ) ) {\n\t\t\t\t$by_alpha[strtoupper( $letter )] = array();\n\t\t\t}\n\t\t}\n\t}\n\n\t$sections = array(\n\t\t'post-type-search-term' => $by_term,\n\t\t'post-type-search-alpha' => $by_alpha,\n\t);\n\n\tob_start();\n\t?>\n\t<div class=\"post-type-search\">\n\t\t<div class=\"post-type-search-header\">\n\t\t\t<form class=\"post-type-search-form\" action=\".\" method=\"get\">\n\t\t\t\t<label style=\"display:none;\">Search</label>\n\t\t\t\t<input type=\"text\" class=\"span3\" placeholder=\"<?php echo $params['default_search_text']; ?>\" />\n\t\t\t</form>\n\t\t</div>\n\t\t<div class=\"post-type-search-results \"></div>\n\t\t<?php if ( $params['show_sorting'] ) : ?>\n\t\t<div class=\"btn-group post-type-search-sorting\">\n\t\t\t<button class=\"btn<?php echo ( $params['default_sorting'] === 'term' ) ? ' active' : ''; ?>\"><i class=\"icon-list-alt\"></i></button>\n\t\t\t<button class=\"btn<?php echo ( $params['default_sorting'] === 'alpha' ) ? ' active' : ''; ?>\"><i class=\"icon-font\"></i></button>\n\t\t</div>\n\t\t<?php\n\t\t\tendif;\n\n\tforeach( $sections as $id => $section ) :\n\t\t$hide = false;\n\t\tswitch( $id ) {\n\t\t\tcase 'post-type-search-alpha':\n\t\t\t\tif ( $params['default_sorting'] === 'term' ) {\n\t\t\t\t\t$hide = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'post-type-search-term':\n\t\t\t\tif ( $params['default_sorting'] === 'alpha' ) {\n\t\t\t\t\t$hide = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t\t?>\n\t\t<div class=\"<?php echo $id; ?>\"<?php echo ( $hide ) ? ' style=\"display:none;\"' : ''; ?>>\n\t\t\t<?php foreach ( $section as $section_title => $section_posts ) : ?>\n\t\t\t\t<?php if ( count( $section_posts ) > 0 || $params['show_empty_sections'] ) : ?>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<h3><?php echo esc_html( $section_title ); ?></h3>\n\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t<?php if ( count( $section_posts ) > 0 ) : ?>\n\t\t\t\t\t\t\t\t<?php $posts_per_column = ceil( count( $section_posts ) / $params['column_count'] ); ?>\n\t\t\t\t\t\t\t\t<?php foreach( range( 0, $params['column_count'] - 1 ) as $column_index ) : ?>\n\t\t\t\t\t\t\t\t\t<?php $start = $column_index * $posts_per_column; ?>\n\t\t\t\t\t\t\t\t\t<?php $end = $start + $posts_per_column; ?>\n\t\t\t\t\t\t\t\t\t<?php if ( count( $section_posts ) > $start ) : ?>\n\t\t\t\t\t\t\t\t\t<div class=\"<?php echo $params['column_width']; ?>\">\n\t\t\t\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t\t\t<?php foreach ( array_slice( $section_posts, $start, $end ) as $post ) : ?>\n\t\t\t\t\t\t\t\t\t\t\t<li data-post-id=\"<?php echo $post->ID; ?>\"><?php echo $post_type->toHTML( $post ); ?></li>\n\t\t\t\t\t\t\t\t\t\t<?php endforeach; ?>\n\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<?php endif; ?>\n\t\t\t\t\t\t\t\t<?php endforeach; ?>\n\t\t\t\t\t\t\t<?php endif; ?>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t<?php endif; ?>\n\t\t\t<?php endforeach; ?>\n\t\t</div>\n\t<?php endforeach; ?>\n\t</div>\n\t<?php\n\treturn ob_get_clean();\n}", "title": "" }, { "docid": "2278143b99040727cfc14a602529b1f6", "score": "0.5232394", "text": "function search() {\n\t$url['action'] = 'index';\n\t \n\t// build a URL will all the search elements in it\n\t// the resulting URL will be \n\t// example.com/cake/posts/index/Search.keywords:mykeyword/Search.tag_id:3\n\tforeach ($this->data as $k=>$v){ \n\t\tforeach ($v as $kk=>$vv){ \n\t\t\t$url[$k.'.'.$kk]=$vv; \n\t\t} \n\t}\n\n\t// redirect the user to the url\n\t$this->redirect($url, null, true);\n }", "title": "" }, { "docid": "0c1be29f82dcf84c46035b752eed244d", "score": "0.5229779", "text": "function search_by_city($search) {\n $this->db->where('accounts.deleted','0');\n $this->db->limit(20);\n $this->db->like(\"city\", $search);\n return $this->db->get('accounts')->result_array();\n }", "title": "" }, { "docid": "a9de59107a18abb7b52f817f08a5aeab", "score": "0.52239126", "text": "public function getBySearchLike($keywords);", "title": "" }, { "docid": "5a673215641b787a97e6c0dac5dc4ec0", "score": "0.52229494", "text": "public function nameFilter($tableName, $tableColumn, $terms, &$body, &$params, $useRegex = false)\n {\n $i = 0;\n $j = 0;\n $searchNames = [];\n $tableAndColumn = $tableName . '.' . $tableColumn;\n // Convert into commas\n foreach ($terms as $term) {\n // convert into a space delimited array\n $names = explode(' ', $term);\n // filter empty array elements, in an attempt to better handle spaces after `,`.\n $filteredNames = array_filter($names);\n\n foreach ($filteredNames as $searchName) {\n $i++;\n if (!isset($filteredNames[0])) {\n $j = 1;\n }\n // store searchName array\n $searchNames[] = $searchName;\n\n // Not like, or like?\n if (substr($searchName, 0, 1) == '-') {\n if ($i == 1) {\n $body .= \" AND ( $tableAndColumn NOT RLIKE (:search$i) \";\n $params['search' . $i] = $useRegex ? ltrim(($searchName), '-') : preg_quote(ltrim(($searchName), '-'));\n } elseif ( (count($filteredNames) > 1 && $filteredNames[$j] != $searchName) || strpos($searchNames[$i-1], '-') !== false ) {\n $body .= \" AND $tableAndColumn NOT RLIKE (:search$i) \";\n $params['search' . $i] = $useRegex ? ltrim(($searchName), '-') : preg_quote(ltrim(($searchName), '-'));\n } else {\n $body .= \" OR $tableAndColumn NOT RLIKE (:search$i) \";\n $params['search' . $i] = $useRegex ? ltrim(($searchName), '-') : preg_quote(ltrim(($searchName), '-'));\n }\n } else {\n if ($i === 1) {\n $body .= \" AND ( $tableAndColumn RLIKE (:search$i) \";\n $params['search' . $i] = $useRegex ? $searchName : preg_quote($searchName);\n } elseif (count($filteredNames) > 1 && $filteredNames[$j] != $searchName) {\n $body .= \" AND $tableAndColumn RLIKE (:search$i) \";\n $params['search' . $i] = $useRegex ? $searchName : preg_quote($searchName);\n } else {\n $body .= \" OR $tableAndColumn RLIKE (:search$i) \";\n $params['search' . $i] = $useRegex ? $searchName : preg_quote($searchName);\n }\n }\n }\n }\n $body .= ' ) ';\n }", "title": "" }, { "docid": "46e0ebf7c834bbd28e68333257500585", "score": "0.5220724", "text": "public function search_by_keyword_partial_match($where, $option, $classname=\"product_search_list_dto\")\r\n\t{\r\n\r\n\t\t$default['DEFAULT_MIN_KEY'] = \"0\";\r\n\t\t$default['DEFAULT_LANG'] = \"en\";\r\n\t\t$min_key = $default['DEFAULT_MIN_KEY'];\r\n\t\t$d_lang = $default['DEFAULT_LANG'];\r\n\t\t$p_lang = $where['lang_id'];\r\n\t\t$p_id = $where['platform_id'];\r\n\r\n\t\t$limit = $where['limit'];\r\n\t\t$offset = $where['offset'];\r\n\r\n\t\t$to_date = date(\"Y-m-d\", time());\r\n\t\t$subtract = time() - (86400 * 7);\r\n\t\t$from_date = date(\"Y-m-d\", $subtract);\r\n\r\n\t\tif($where['skey'] && sizeof($where['skey']['formated']) >= $min_key && sizeof($where['skey']['unformated']) >= $min_key)\r\n\t\t{\r\n\t\t\t$sql = \"SELECT\r\n\t\t\t\t\t\tp.sku, p.prod_grp_cd, p.colour_id, p.version_id, p.name, p.freight_cat_id, p.cat_id, p.sub_cat_id, p.sub_sub_cat_id, p.brand_id, p.clearance, p.quantity,\r\n\t\t\t\t\t\tp.display_quantity, p.website_quantity, p.ex_demo, p.rrp, p.image, p.flash, p.youtube_id, p.ean, p.mpn, p.upc, p.discount, p.proc_status, p.website_status,\r\n\t\t\t\t\t\tp.sourcing_status, p.status, pc.create_on, p.create_at, p.create_by, p.modify_on, p.modify_at, p.modify_by,\r\n\t\t\t\t\t\tIFNULL(pc.prod_name, p.name) prod_name, cat.name cat_name, br.brand_name, pc.short_desc, pc.detail_desc,\r\n\t\t\t\t\t\tpr.platform_id, ex.from_currency_id, IFNULL(pr2.platform_id, '$platform_id') site_platform_id, ex.to_currency_id,\r\n\t\t\t\t\t\tROUND(IF(pr2.price>0, pr2.price, pr.price*ex.rate),2) price, vpb.with_bundle \";\r\n\t\t\tif($option['orderby'] == 'b.sold_amount')\r\n\t\t\t{\r\n\t\t\t\t$sql .= \",a.sold_amount \";\r\n\t\t\t}\r\n\r\n\t\t\t$sql .= \"FROM v_product p\r\n\t\t\t\t\tJOIN product_content pc\r\n\t\t\t\t\t\tON pc.prod_sku = p.sku AND p.status = 2 AND pc.lang_id = '\" . get_lang_id() . \"'\r\n\t\t\t\t\tJOIN category cat\r\n\t\t\t\t\t\tON p.cat_id = cat.id\r\n\t\t\t\t\tJOIN brand br\r\n\t\t\t\t\t\tON p.brand_id = br.id\r\n\t\t\t\t\tLEFT JOIN (price pr, v_default_platform_id vdp)\r\n\t\t\t\t\t\tON p.sku = pr.sku AND pr.platform_id = vdp.platform_id AND pr.listing_status = 'L'\r\n\t\t\t\t\tLEFT JOIN price pr2\r\n\t\t\t\t\t\tON p.sku = pr2.sku AND pr2.platform_id = '$p_id'\r\n\t\t\t\t\tJOIN platform_biz_var pbv\r\n\t\t\t\t\t\tON pbv.selling_platform_id = '$p_id'\r\n\t\t\t\t\tJOIN exchange_rate ex\r\n\t\t\t\t\t\tON pbv.platform_currency_id = ex.to_currency_id AND ex.from_currency_id = 'GBP'\r\n\t\t\t\t\tJOIN v_product_w_bundle vpb\r\n\t\t\t\t\tON (p.sku = vpb.sku)\r\n\t\t\t\t\tLEFT JOIN product_type trial\r\n\t\t\t\t\tON (p.sku = trial.sku AND trial.type_id = 'TRIAL')\r\n\t\t\t\t\t\";\r\n\r\n\t\t\tif($option['prod_video'])\r\n\t\t\t{\r\n\t\t\t\t$sql .= \"\r\n\t\t\t\t\t\tJOIN product_video pv\r\n\t\t\t\t\t\t\tON (p.sku = pv.sku AND pv.country_id = '\".PLATFORMCOUNTRYID.\"')\r\n\t\t\t\t\t\t\";\r\n\t\t\t}\r\n\r\n\t\t\tif($where['prod_type'])\r\n\t\t\t{\r\n\t\t\t\t$sql .= \"\r\n\t\t\t\t\t\tJOIN product_type pt\r\n\t\t\t\t\t\t\tON (p.sku = pt.sku AND pt.type_id = '\" . $where['prod_type'] . \"')\";\r\n\t\t\t}\r\n\r\n\t\t\tif($option['orderby'] == 'b.sold_amount')\r\n\t\t\t{\r\n\t\t\t\t$sql .= \"\r\n\t\t\t\t\tLEFT JOIN\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\tSELECT soid.item_sku, SUM(soid.qty) as sold_amount\r\n\t\t\t\t\t\tFROM so\r\n\t\t\t\t\t\tJOIN so_item_detail soid\r\n\t\t\t\t\t\t\tON (so.so_no = soid.so_no)\r\n\t\t\t\t\t\tWHERE so.create_on > '$from_date 00:00:00' AND so.create_on < '$to_date 23:59:59'\r\n\t\t\t\t\t\tGROUP BY soid.item_sku\r\n\t\t\t\t\t)a\r\n\t\t\t\t\t\tON (a.item_sku = p.sku)\r\n\t\t\t\t\t\";\r\n\t\t\t}\r\n\t\t\t$sql .= \"JOIN product_keyword pk\r\n\t\t\t\t\t\tON pk.sku = p.sku AND (pk.lang_id = '$d_lang' OR pk.lang_id = '$p_lang')\";\r\n\r\n\t\t\t$sql .= \" WHERE (pr2.listing_status = 'L') AND ((pr2.price OR pr.price) > 0 || trial.type_id = 'TRIAL')\";\r\n\r\n\t\t\t$isfirst = TRUE;\r\n\t\t\tif(!empty($where['skey']['formated']))\r\n\t\t\t{\r\n\t\t\t\tforeach ($where['skey']['formated'] as $v)\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql .= ($isfirst?\" AND (\":\" OR \").\" pk.keyword REGEXP '$v'\";\r\n\t\t\t\t\t$isfirst = FALSE;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$sql .= \")\";\r\n\r\n\t\t\tif($where['cat_name'])\r\n\t\t\t{\r\n\t\t\t\t$sql .= \" AND cat.name = '\" . $where['cat_name'] . \"'\";\r\n\t\t\t}\r\n\r\n\t\t\tif($where['brand_name'])\r\n\t\t\t{\r\n\t\t\t\t$sql .= \" AND br.brand_name = '\" . $where['brand_name'] . \"'\";\r\n\t\t\t}\r\n\r\n\r\n\t\t\tif($where['brand_id'])\r\n\t\t\t{\r\n\t\t\t\t$sql .= \" AND br.id = '\" . $where['brand_id'] . \"'\";\r\n\t\t\t}\r\n\r\n\t\t\tif($where['min_price'] || $where['max_price'])\r\n\t\t\t{\r\n\r\n\t\t\t\t$sql .= \" AND (ROUND(IF(pr2.price>0, pr2.price, pr.price*ex.rate),2) > \".$where['min_price'];\r\n\t\t\t\tif($where['max_price'])\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql .= \" AND ROUND(IF(pr2.price>0, pr2.price, pr.price*ex.rate),2) <= \".$where['max_price'];\r\n\t\t\t\t}\r\n\t\t\t\t$sql .= \")\";\r\n\t\t\t}\r\n\r\n\t\t\tif($where['with_bundle'])\r\n\t\t\t{\r\n\t\t\t\t$sql .= \" AND vpb.with_bundle = '1'\";\r\n\t\t\t}\r\n\r\n\t\t\t$sql .= \" GROUP BY p.sku, p.prod_grp_cd, p.colour_id, p.version_id, p.name, p.freight_cat_id, p.cat_id, p.sub_cat_id, p.brand_id, p.clearance, p.quantity, p.display_quantity, p.website_quantity,\r\n\t\t\t\t\t\tp.ex_demo, p.rrp, p.image, p.flash, p.youtube_id, p.ean, p.mpn, p.upc, p.discount, p.proc_status, p.website_status, p.sourcing_status, p.status, p.create_on\r\n\t\t\t\t\tORDER BY p.name\";\r\n\r\n\t\t\tif(!$option['num_rows'])\r\n\t\t\t{\r\n\t\t\t\tif($option['orderby'])\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql = \"SELECT *\r\n\t\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t$sql\r\n\t\t\t\t\t\t\t)b\r\n\t\t\t\t\t\t\tORDER BY \".$option['orderby'];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif($option['groupby'])\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql = \"\r\n\t\t\t\t\t\tSELECT c.sku, c.prod_name, c.price, c.brand_id, brand_name, cat_name, count(*) as num\r\n\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t$sql\r\n\t\t\t\t\t\t)c\r\n\t\t\t\t\t\tGROUP BY \".$option['groupby'].\r\n\t\t\t\t\t\t\" ORDER BY \".$option['groupby'];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif($limit)\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql .= \" LIMIT $limit\";\r\n\t\t\t\t}\r\n\t\t\t\tif($offset)\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql .= \" OFFSET $offset\";\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$this->include_dto($classname);\r\n\r\n\t\t\t\t$rs = array();\r\n\r\n\t\t\t\tif ($query = $this->db->query($sql))\r\n\t\t\t\t{\r\n\t\t\t\t\tif($this->debug == 1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\techo \"<br>Third Level Search<br>\";\r\n\t\t\t\t\t\techo $this->db->last_query();\r\n\t\t\t\t\t\techo \"<br>\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tforeach ($query->result(\"object\", $classname) as $obj)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$rs[] = $obj;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn (array) $rs;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$sql = \"\r\n\t\t\t\t\t\tSELECT COUNT(*) AS total\r\n\t\t\t\t\t\tFROM\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t$sql\r\n\t\t\t\t\t\t)t\r\n\t\t\t\t\t\t\";\r\n\t\t\t\tif ($query = $this->db->query($sql))\r\n\t\t\t\t{\r\n\t\t\t\t\treturn $query->row()->total;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn FALSE;\r\n\t}", "title": "" }, { "docid": "045264b6c43a1d5fa650c0bd6edde201", "score": "0.5213703", "text": "public function search()\n\t{\n\n\t}", "title": "" }, { "docid": "1519d6912c0c8c56eccaa8ed32ea7473", "score": "0.5213317", "text": "function wporg_themes_search_slug( $search, $wp_query ) {\n\tif ( empty( $search ) || 'repopackage' !== $wp_query->query_vars['post_type'] || ! $wp_query->is_search() ) {\n\t\treturn $search;\n\t}\n\n\tglobal $wpdb;\n\t$n = empty( $wp_query->query_vars['exact'] ) ? '%' : '';\n\t$search = $searchand = '';\n\n\tforeach ( $wp_query->query_vars['search_terms'] as $term ) {\n\t\t$like = $n . $wpdb->esc_like( $term ) . $n;\n\t\t$search .= $wpdb->prepare( \"{$searchand}(($wpdb->posts.post_title LIKE %s) OR ($wpdb->posts.post_name LIKE %s) OR ($wpdb->posts.post_content LIKE %s))\", $like, $like, $like );\n\t\t$searchand = ' AND ';\n\t}\n\n\tif ( ! empty( $search ) ) {\n\t\t$search = \" AND ({$search}) \";\n\t\tif ( ! is_user_logged_in() ) {\n\t\t\t$search .= \" AND ($wpdb->posts.post_password = '') \";\n\t\t}\n\t}\n\n\treturn $search;\n}", "title": "" }, { "docid": "da686d550e56128d049bc882520f43c2", "score": "0.52130604", "text": "function yaz_search($id, $type, $query) {}", "title": "" }, { "docid": "0b467cb7faf5d1a61d1b80ff82ee72b9", "score": "0.52100146", "text": "public function search_cables( $partial_search_params ) {\n // NOTE: case-insensitive search in SQL queries\n //\n $condition = null;\n $operator = array_key_exists('partial_or',$partial_search_params) ? ' OR ' : ' AND ';\n foreach( $partial_search_params as $p => $v ) {\n $p = trim($p);\n if( $p == 'partial_or' ) continue;\n if( $p == 'job') continue;\n $v = $this->connection->escape_string(trim($v));\n if(($p == '') || ($v == '')) continue;\n if( !is_null($condition)) $condition .= $operator;\n $condition .= \" {$p} LIKE '%{$v}%' COLLATE latin1_general_ci\";\n }\n if( is_null($condition))\n $condition = 'id is NOT NULL';\n if( array_key_exists('job',$partial_search_params)) {\n $v = $this->connection->escape_string(trim($partial_search_params['job']));\n if( $v != '' )\n $condition = \"(({$condition}) AND project_id IN ( SELECT id FROM {$this->connection->database}.project WHERE job LIKE '%{$v}%' COLLATE latin1_general_ci ))\";\n }\n return $this->find_cables_by_($condition);\n }", "title": "" }, { "docid": "d37444c61f2871c7db375f04080d1941", "score": "0.520645", "text": "public function actionSearch()\n {\n $flag = 1;\n $keyword = ($_POST['keyword']); // Get words to search\n $pieces = trim($keyword);\n $pieces = explode(\" \", $pieces); // split words to search by space\n $count = sizeof($pieces); // get number of word to search\n $query = '';\n for($i = 0; $i < $count;$i++) // prepare query\n {\n if ($i == $count - 1){\n $query = $query.'name like \\'%'.$pieces[$i].'%\\'';\n } else {\n $query = $query.'name like \\'%'.$pieces[$i].'%\\' OR ';\n }\n }\n\n $criteria = new CDbCriteria; // query criteria\n $criteria->condition = $query;\n $results = Array();\n\n // there are words to search\n if ($keyword != null){\n\n // ********* Search by job type i.e. Full Time, Part Time **************\n $jobKeyword = Job::model()->findAllBySql(\"SELECT * FROM job WHERE active='1' AND job.type=:jobtype ORDER BY deadline DESC\", array(\":jobtype\"=>$keyword));\n // there exists type in Job\n foreach($jobKeyword as $jk)\n {\n if($jk != null)\n {\n $results[] = $jk; // add job to results array\n }\n }\n\n // *********** Search by job title **********\n $jobTitle = Job::model()->findAllBySql(\"SELECT * FROM job WHERE active='1' AND title=:title ORDER BY deadline DESC\", array(\":title\"=>$keyword));\n // there exists job title in Job\n foreach($jobTitle as $jk)\n {\n if($jk != null)\n {\n $results[] = $jk; // add job to results array\n }\n }\n\n // ******** Search by Company name ***********\n $compName = CompanyInfo::model()->findBySql(\"SELECT FK_userid FROM company_info WHERE company_info.name=:coName\", array(\":coName\"=>$keyword));\n // fix double row by selecting unique attributes\n $compID = Job::model()->findAllBySql(\"SELECT DISTINCT id, job.type, title,FK_poster, post_date, deadline, description,\n compensation, other_requirements, email_notification, active, matches_found\n FROM job WHERE active='1' AND FK_poster=:FK_poster\n ORDER BY deadline DESC\", array(\":FK_poster\"=>$compName['FK_userid']) );\n // there exists company keyword\n foreach($compID as $jk)\n {\n if($jk != null)\n {\n $results[] = $jk; // add job to results array\n }\n }\n\n // ************ Search by skills **********\n $skillsArray = Skillset::model()->findAll($criteria); // array containing skills from Skillset table\n foreach ($skillsArray as $sk)\n {\n if ($sk != null){\n $jobIds = JobSkillMap::model()->findAllByAttributes(array('skillid'=>$sk->id)); // get all jobs id with that skill id\n if ($jobIds != null) { // if there exits jobs with skill id\n foreach ($jobIds as $ji)\n {\n if ($ji != null){\n $jobid = $ji->jobid;\n $duplicate = 0;\n if (sizeof($results) > 0){\n foreach($results as $t){ // search for duplicates\n if ($t != null){\n if (strcmp($t->id,$jobid) == 0){\n $duplicate = 1;\n }\n }\n }\n }\n\n if ($duplicate == 0){\n $results[] = Job::model()->findByAttributes(array('id'=>$jobid, 'active'=>'1'));\t// get job matching job id & job post have to be active\n }\n }\n }\n\n }\n }\n }\n }\n\n\n if (isset($_GET['user'])){\n $username = $_GET['user'];\n } else {\n $username = Yii::app()->user->name;\n }\n $user = User::model()->find(\"username=:username\",array(':username'=>$username)); // pass user\n $skills = Skillset::getNames(); // pass skills\n $companies = CompanyInfo::getNames(); // pass companies\n // render results to job/home\n $this->render('home',array('results'=>$results,'user'=>$user,'companies'=>$companies,'skills'=>$skills,'flag'=>$flag,));\n\n }", "title": "" }, { "docid": "f2cf0af05e69a527782d5a9db764da0d", "score": "0.518405", "text": "function modTZ_SearchHelper($params)\n {\n $this->keyword = urldecode(JRequest::getString('searchword'));\n $this->match = JRequest::getWord('searchphrase', $params->get('searchphrase', 'all'));\n $this->ordering = JRequest::getWord('ordering', 'newest');\n\n //Set the search areas\n $areas = JRequest::getVar('areas');\n $this->setAreas($areas);\n }", "title": "" }, { "docid": "da798156f8df256284febfd8b8336ecd", "score": "0.5183352", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('city_id',$this->city_id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('name_hi',$this->name_hi,true);\n\t\t$criteria->compare('display_order',$this->display_order);\n\t\t$criteria->compare('default_language_id',$this->default_language_id);\n\t\t$criteria->compare('language_id',$this->language_id);\n\t\t$criteria->compare('country_id',$this->country_id);\n\t\t$criteria->compare('std_code',$this->std_code,true);\n\t\t$criteria->compare('url',$this->url,true);\n\t\t$criteria->compare('active_flag',$this->active_flag);\n\t\t$criteria->compare('has_restaurants',$this->has_restaurants);\n\t\t$criteria->compare('has_nightlife',$this->has_nightlife);\n\t\t$criteria->compare('has_chillout',$this->has_chillout);\n\t\t$criteria->compare('has_takeaway',$this->has_takeaway);\n\t\t$criteria->compare('has_cafes',$this->has_cafes);\n\t\t$criteria->compare('has_events',$this->has_events);\n\t\t$criteria->compare('has_45_star',$this->has_45_star);\n\t\t$criteria->compare('has_dish_search',$this->has_dish_search);\n\t\t$criteria->compare('has_postcode_search',$this->has_postcode_search);\n\t\t$criteria->compare('filter_luxury_dining',$this->filter_luxury_dining);\n\t\t$criteria->compare('filter_michelin_starred',$this->filter_michelin_starred);\n\t\t$criteria->compare('has_catering',$this->has_catering);\n\t\t$criteria->compare('latitude',$this->latitude,true);\n\t\t$criteria->compare('longitude',$this->longitude,true);\n\t\t$criteria->compare('distance_unit',$this->distance_unit,true);\n\t\t$criteria->compare('search_radius',$this->search_radius,true);\n\t\t$criteria->compare('citibank_discount_flag',$this->citibank_discount_flag);\n\t\t$criteria->compare('emirates_discount_flag',$this->emirates_discount_flag);\n\t\t$criteria->compare('show_zones',$this->show_zones);\n\t\t$criteria->compare('cft_ranges',$this->cft_ranges,true);\n\t\t$criteria->compare('cft_ranges_web',$this->cft_ranges_web,true);\n\t\t$criteria->compare('cft_round_off',$this->cft_round_off,true);\n\t\t$criteria->compare('menus_active_flag',$this->menus_active_flag);\n\t\t$criteria->compare('photos_active_flag',$this->photos_active_flag);\n\t\t$criteria->compare('reviews_active_flag',$this->reviews_active_flag);\n\t\t$criteria->compare('maps_active_flag',$this->maps_active_flag);\n\t\t$criteria->compare('review_alert_email',$this->review_alert_email,true);\n\t\t$criteria->compare('qc_email',$this->qc_email,true);\n\t\t$criteria->compare('filter_veg',$this->filter_veg);\n\t\t$criteria->compare('filter_serves_veg',$this->filter_serves_veg);\n\t\t$criteria->compare('filter_non_veg',$this->filter_non_veg);\n\t\t$criteria->compare('show_non_veg',$this->show_non_veg);\n\t\t$criteria->compare('filter_credit_cards',$this->filter_credit_cards);\n\t\t$criteria->compare('filter_buffet',$this->filter_buffet);\n\t\t$criteria->compare('filter_happy_hours',$this->filter_happy_hours);\n\t\t$criteria->compare('filter_wifi',$this->filter_wifi);\n\t\t$criteria->compare('filter_breakfast',$this->filter_breakfast);\n\t\t$criteria->compare('filter_bar',$this->filter_bar);\n\t\t$criteria->compare('filter_no_bar',$this->filter_no_bar);\n\t\t$criteria->compare('filter_live_music',$this->filter_live_music);\n\t\t$criteria->compare('filter_outdoor_seating',$this->filter_outdoor_seating);\n\t\t$criteria->compare('filter_has_events',$this->filter_has_events);\n\t\t$criteria->compare('filter_sheesha',$this->filter_sheesha);\n\t\t$criteria->compare('filter_halal',$this->filter_halal);\n\t\t$criteria->compare('filter_friday_brunch',$this->filter_friday_brunch);\n\t\t$criteria->compare('filter_sunday_brunch',$this->filter_sunday_brunch);\n\t\t$criteria->compare('filter_weekend_brunch',$this->filter_weekend_brunch);\n\t\t$criteria->compare('filter_sports_bar',$this->filter_sports_bar);\n\t\t$criteria->compare('check_cookie_flag',$this->check_cookie_flag);\n\t\t$criteria->compare('acd_active_flag',$this->acd_active_flag);\n\t\t$criteria->compare('filter_desserts_bakes',$this->filter_desserts_bakes);\n\t\t$criteria->compare('rooftop_flag',$this->rooftop_flag);\n\t\t$criteria->compare('afternoon_tea_flag',$this->afternoon_tea_flag);\n\t\t$criteria->compare('cafe_flag',$this->cafe_flag);\n\t\t$criteria->compare('quick_bites_flag',$this->quick_bites_flag);\n\t\t$criteria->compare('filter_wishlist',$this->filter_wishlist);\n\t\t$criteria->compare('filter_pet_friendly',$this->filter_pet_friendly);\n\t\t$criteria->compare('filter_cheap_eats',$this->filter_cheap_eats);\n\t\t$criteria->compare('filter_vineyard',$this->filter_vineyard);\n\t\t$criteria->compare('filter_seaside',$this->filter_seaside);\n\t\t$criteria->compare('has_collections',$this->has_collections);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "c0ef47b8a44b50292ecbd2842fad1e5a", "score": "0.51807046", "text": "function perform_item_search($search_term,$search_type=\"PHRASE\",$item_types=0)\n {\n /*$dev=0;\n $search_string=\"select * from User, Item where \";\n $search_string=$search_string.\"User.userDisplay=1 and Item.itemDisplay=1 and \";\n $search_string=$search_string.\"Item.userID=User.userID and \";\n //this bit does item type restriction\n if ($item_types)\n {\n if (is_array($item_types))\n {\n $array_count=count($item_types);\n $counter=1;\n //open\n $search_string=$search_string.\"(\";\n foreach ($item_types as $type)\n {\n $search_string=$search_string.\"Item.itemTypeID=\".$type;\n if ($counter==$array_count)\n $search_string=$search_string.\") and \"; \n else\n $search_string=$search_string.\" or \";\n $counter=$counter+1;\n }\n }\n else\n {\n $search_string=$search_string.\"Item.itemType=\".$item_types.\" and \";\n }\n }\n //now we do the actually term search\n $search_string=$search_string.\"(\";\n if (is_array($search_term))\n {\n //split term search\n $array_count=count($search_term);\n $counter=1;\n foreach ($search_term as $term)\n {\n $search_string=$search_string.\"Item.itemName regexp '[[:<:]]\".$term.\"[[:>:]]' or Item.itemTweet regexp '[[:<:]]\".$term.\"[[:>:]]' or Item.itemTags regexp '[[:<:]]\".$term.\"[[:>:]]' \";\n if ($counter==$array_count)\n $search_string=$search_string.\"\";\n else\n $search_string=$search_string.\" or \";\n $counter=$counter+1;\n }\n }\n else\n {\n //phrase search\n $search_string=$search_string.\"Item.itemName regexp '[[:<:]]\".$search_term.\"[[:>:]]' or Item.itemTweet regexp '[[:<:]]\".$search_term.\"[[:>:]]' or Item.itemTags regexp '[[:<:]]\".$search_term.\"[[:>:]]' \";\n }\n $search_string=$search_string.\")\";\n dev_dump($search_string,\"search string\",$dev);\n $search_query=site_query($search_string,\"perform_item_search()\",$dev);\n return $search_query;*/\n $search_query=get_video_items(array(\"search_term\"=>$search_term));\n return $search_query;\n }", "title": "" }, { "docid": "72689b579a361510feacaaa8160f35e8", "score": "0.5180385", "text": "function findHotelsByCompany($term){\n $sql = \"SELECT * from hotel \n WHERE hotel.company LIKE CONCAT('%', ?, '%');\";\n $params = array ($term);\n $result = $this->query($sql, $params); \n return (is_null($result))? false : $result; \n }", "title": "" }, { "docid": "8f12f8f9ce356c68ef8ec4db352ae22b", "score": "0.5178561", "text": "public function city_category_search($id,$category) {\n\t\t\tglobal $dbh;\n\t\t\n\t\t$sql_query = \"SELECT\n\t\t\t\t\t\tid,\n\t\t\t\t\t\tstate,\n\t\t\t\t\t\tcity,\n\t\t\t\t\t\tcategory,\n\t\t\t\t\t\tpage_header,\n\t\t\t\t\t\tpage_footer,\n\t\t\t\t\t\turl_name,\n\t\t\t\t\t\tpage_title,\n\t\t\t\t\t\tmeta_description,\n\t\t\t\t\t\tmeta_keywords,\n\t\t\t\t\t\tupdated\n\t\t\t\t\t FROM\n\t\t\t\t\t\t\".$this->tbl_nme.\"\n\t\t\t\t\t WHERE\n\t\t\t\t\t\tcity = ?\n\t\t\t\t\t AND\n\t\t\t\t\t \tcategory = ?\n\t\t\t\t\t LIMIT 1;\";\n\n\t\t$values = array(\n\t\t\t\t\t\t$id,\n\t\t\t\t\t\t$category\n\t\t\t\t\t\t);\n\t\t\n\t\t$stmt = $dbh->prepare($sql_query);\t\t\t\t\t \n\t\t$result = $stmt->execute($values);\n\t\t\n\t\t$row = $result->fetchRow(MDB2_FETCHMODE_ASSOC);\n\t\t\n\t\t$this->id = $row['id'];\n\t\t$this->state = $row['state'];\n\t\t$this->city = $row['city'];\n\t\t$this->category = $row['category'];\n\t\t$this->page_header = $row['page_header'];\n\t\t$this->page_footer = $row['page_footer'];\n\t\t$this->url_name = $row['url_name'];\n\t\t$this->page_title = $row['page_title'];\n\t\t$this->meta_description = $row['meta_description'];\n\t\t$this->meta_keywords = $row['meta_keywords'];\n\t\t$this->updated = $row['updated'];\n\t\t\n\t\t$row = '';\n\n\t\t// clear result set\n\t\t$result->free();\n\t\t\n\t\t// reset DB conn\n\t\tdb_check_conn();\n\t}", "title": "" }, { "docid": "9068f59318d80b373ad842ab8da8d38e", "score": "0.51761574", "text": "public function search(Request $request){\n $searchTerm = $request->input('searchTerm');\n\n if(!empty($searchTerm)){\n $products = Product::whereHas('category', function($query) use($searchTerm){\n $query->orWhere('name', 'LIKE', '%'.$searchTerm.'%'); \n })\n ->where('name', 'LIKE', '%'.$searchTerm.'%')\n ->orWhere('description', 'LIKE', '%'.$searchTerm.'%')\n ->orderBy('id', 'desc')\n ->get();\n // dd($categories);\n }else{\n $products = Product::orderBy('id', 'desc')->get();\n }\n\n return view('products.index')->with('products', $products);\n }", "title": "" }, { "docid": "873278aac5494a7cb9b337c79bf9b80f", "score": "0.5168793", "text": "public function search($page = null)\n {\n if(isset($_POST['keyword'])){\n $this->session->set_userdata('keyword', $this->input->post('keyword'));\n }\n // else {\n // redirect(base_url('category'));\n // }\n\n $keyword = $this->session->userdata('keyword');\n $data['title'] = 'Admin: Kategori';\n $data['content'] = $this->category->like('title', $keyword)->paginate($page)->get();\n $data['total_rows'] = $this->category->like('title', $keyword)->count();\n $data['pagination'] = $this->category->makePagination(base_url('category/search'), 3, $data['total_rows']); \n\n $data['page'] = 'pages/category/index';\n $data['tags'] = '1';\n $this->view($data);\n }", "title": "" }, { "docid": "4badac48153ef7de94ee73206ff32671", "score": "0.5168429", "text": "public function actionSearch($category = 'lekarz', $region = 'polska', $page = 1, $getSearch = array())\n\t{\n\t\tif (($category == '__CATEGORY__') && ($region == '__REGION__'))\n\t\t{\n\t\t\t$category = $this->request->getParam('category');\n\t\t\t$region = $this->request->getParam('region');\n\t\t\t$this->redirectTo(Site::lt('catalogue/search', $category, $region, $page, $getSearch));\n\t\t}\n\t\t$this->category = model_Categories::getByField('slug', $category);\n\t\t$this->region = model_Regions::getByField('slug', $region);\n\t\t\n\t\t$this->searchForm = $this->getSearchForm($category, $region, $getSearch);\n\t\t\n\t\t$this->assert(!empty($this->category) && !empty($this->region));\n\t\t\n\t\t$this->title = $this->category['plural'] . ' ' . $this->region['locative'];\n\t\t$this->layout->setHtmlTitle($this->title);\n\t\t\n\t\t$this->page = $page;\n\t\t//var_dump($this->category['plural'], $this->region['locative']);\n\t\t\n\t\t$this->categories = model_Categories::getForSelect('plural', 'slug');\n\t\t$this->regions = model_Regions::getForSelect('nominative', 'slug');\n\t\t\t\t\n\t\t$this->tabs = new Tabber([\n\t\t\t\t'Lista' => Site::lt('catalogue/search', $category, $region, 1),\n\t\t\t\t'Mapa' => Site::lt('catalogue/search', $category, $region, 'map')\n\t\t\t],\n\t\t\t($this->page === 'map' ? 2 : 1),\n\t\t\t'/static/tabs.png'\n\t\t);\n\t\t\n\t\t\n\t\t$this->promoted = model_Items::search(null, [], 3);\n\t\tforeach ($this->promoted as &$promoted)\n\t\t{\n\t\t\t$promoted = new Template('frontend/catalogue/itemRow.html', ['item' => $promoted]);\n\t\t}\n\t\t\n\t\tif ($page == 'map')\n\t\t{\n\t\t\t$this->items = model_Items::search(null, []);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->items = model_Items::search(null, [], 12, $page, $foundRows);\n\t\t\tforeach ($this->items as &$item)\n\t\t\t{\n\t\t\t\t$item = new Template('frontend/catalogue/itemRow.html', ['item' => $item]);\n\t\t\t}\n\t\t\t$this->pager = new Pager(12, $page, $foundRows, Site::lt('catalogue/search', $category, $region, '_PAGE_', $getSearch));\n\t\t}\n\t\t\n\t\t\n\t\t//var_dump($categories->getAll());\n\t\t/*\n\t\t$items = model_Items::getInstance();\n\t\t$ret = $items->save([\n\t\t\t\t'title' => 'Tester 7',\n\t\t\t\t'category' => 2,\n\t\t\t\t'locations' => [\n\t\t\t\t\tmodel_Locations::add(['title' => 'Gabinet 1', 'lon' => 53.625935290597985, 'lat' => 18.622512817382812]),\n\t\t\t\t\tmodel_Locations::add(['title' => 'Gabinet 2', 'lon' => 52.229675600000000000, 'lat' => 21.012228700000037000]),\n\t\t\t\t]\n\t\t\t]);\n\t\tvar_dump($ret);\n\t\t*/\n\t\t\n\t\t//$items->addLocation(2, 53.625935290597985, 18.622512817382812, 'test');\n\t\t\n\t\t//var_dump($items->getAll());\n\t\t\n\t\t//$items->\n\t\t\n\t\t//var_dump(google_Maps::getAddress(52.229675600000000000, 21.012228700000037000));\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "3313b4b7ce0e0f2f407ccb9697bea57a", "score": "0.5167583", "text": "function search($search, $limit=20,$offset=0,$column='name',$orderby='asc')\n\t{\n\t\t\t$search_terms_array=explode(\" \", $this->db->escape_like_str($search));\n\t\n\t\t\t//to keep track of which search term of the array we're looking at now\t\n\t\t\t$search_name_criteria_counter=0;\n\t\t\t$sql_search_name_criteria = '';\n\t\t\t//loop through array of search terms\n\t\t\tforeach ($search_terms_array as $x)\n\t\t\t{\n\t\t\t\t$sql_search_name_criteria.=\n\t\t\t\t($search_name_criteria_counter > 0 ? \" AND \" : \"\").\n\t\t\t\t\"name LIKE '%\".$this->db->escape_like_str($x).\"%'\";\n\t\t\t\t\n\t\t\t\t$search_name_criteria_counter++;\n\t\t\t}\n\t\n\t\t\t$this->db->from('school');\n\t\t\t$this->db->where(\"((\".\n\t\t\t$sql_search_name_criteria. \") or \n\t\t\taddress LIKE '%\".$this->db->escape_like_str($search).\"%' or \n\t\t\tsch_id LIKE '%\".$this->db->escape_like_str($search).\"%' or \n\t\t\tphone LIKE '%\".$this->db->escape_like_str($search).\"%' or \n\t\t\temail LIKE '%\".$this->db->escape_like_str($search).\"%') and deleted=0\");\n\t\t\t$this->db->order_by($column, $orderby);\n\t\t\t$this->db->limit($limit);\n\t\t\t$this->db->offset($offset);\n\t\t\treturn $this->db->get();\t\n\t}", "title": "" }, { "docid": "8c404e2002c2b9f9fca6d257587c952a", "score": "0.5167511", "text": "protected function generateSearch($search,$type){\n switch($type){\n case \"human\":\n $search = \"(template like '%{$search}%' or\n title like '%{$search}%' or\n description like '%{$search}%' or\n \t keywords like '%{$search}%' or\n \t admin_title like '%{$search}%' or\n \t admin_description like '%{$search}%'or\n \t directory like '%{$search}%') \";\n break;\n case \"all\":\n $search = \"(admin_title\t like '%{$search}%' or\n admin_description like '%{$search}%') \";\n break;\n\n }\n return $search;\n }", "title": "" }, { "docid": "29b7942bd1436c62a16d304d3b06d129", "score": "0.5161908", "text": "function search_title($search_str)\n\t{\n\t\t$this -> db -> like ('title', $search_str);\n\t\t# Only show non-restricted and visible resources \n\t\t$this -> db -> where('restricted', 0);\n\t\t$this -> db -> where('visible', 1);\n\t\t$query = $this -> db -> get('gh_resource');\t\t\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "2071e0d21c4c95bb1950861b40da0607", "score": "0.51602775", "text": "public function get_all_filtered($city,$area,$rooms,$search,$minimum_rent,$maximum_rent,$minimum_size,$maximum_size)\n {\n $this->db->select('*');\n $this->db->from('residential');\n if(!empty($search)) {\n $this->db->group_start();\n $this->db->like('title', $search);\n $this->db->or_like('short_note', $search);\n $this->db->group_end();\n }\n\n if(isset($minimum_size, $maximum_size) && !empty($minimum_size) && !empty($maximum_size))\n {\n $this->db->where('size >=', $minimum_size);\n $this->db->where('size <=', $maximum_size);\n }\n\n \n if(isset($minimum_rent, $maximum_rent) && !empty($minimum_rent) && !empty($maximum_rent))\n {\n $this->db->where('rent >=', $minimum_rent);\n $this->db->where('rent <=', $maximum_rent);\n }\n\n \n \n $array = array('city' => $city, 'area' => $area, 'rooms' => $rooms);\n $this->db->like($array); \n\n $query = $this->db->get();\n return $query->result_array();\n \n }", "title": "" }, { "docid": "80a0a5a57fe96eff0676c4953b42d3ce", "score": "0.5158461", "text": "public function search() {\n\t\t\treturn apply_filters( 'Tour_search_query', $this->global_instance() );\n\t\t}", "title": "" } ]
51699312b29651142585f412f0c2622f
Test setFrom and getFrom methods with null value.
[ { "docid": "b9631b7c36ef8d484abd3b289eb89e34", "score": "0.6861709", "text": "public function testSetGetFromWithNull()\n {\n $listEmailLofRequest = new ListEmailLogRequest();\n\n $listEmailLofRequest->setFrom(null);\n\n $this->assertNull($listEmailLofRequest->getFrom());\n }", "title": "" } ]
[ { "docid": "a53030d089510fe96365a1c4e84fefa2", "score": "0.67372096", "text": "public function testSetValueToNull()\n {\n $object = $this->createObject();\n $object->set('num', null);\n\n $this->assertAttributeSame(null, 'foo', $object);\n $this->assertAttributeSame(null, 'num', $object);\n }", "title": "" }, { "docid": "6b04d37946b94bbab9f69e7b992cf085", "score": "0.6433328", "text": "public function testSetIgnoresNullValues()\n {\n $this->setExpectedException('Gaw508\\Config\\Exception\\ConfigException');\n Config::set('myNullValue', null);\n Config::get('myNullValue');\n }", "title": "" }, { "docid": "48eaf74efabf38ecd3d7396da0061381", "score": "0.6156116", "text": "public function testPropertyFromIsValid()\n {\n $bus = new Bus(['from' => 'Abu Dhabi']);\n $this->assertEquals('Abu Dhabi', $bus->from);\n }", "title": "" }, { "docid": "dd6649f6ed0b28f75cfda10567ca3037", "score": "0.615033", "text": "public function testValueIsSet()\n {\n $valid = new \\Pv\\Validate\\None(null);\n $valid->setValue('test');\n\n $this->assertEquals('test', $valid->getValue());\n }", "title": "" }, { "docid": "7460d5f7924623a41d360e951ce1a9fa", "score": "0.60810566", "text": "public function testNullFromString(): void\n\t{\n\t\t$result = $this->convertor->fromString('null');\n\t\t$this->assertNull($result);\n\t}", "title": "" }, { "docid": "946fcb94eb1ba7a3bfb24227bf252ec2", "score": "0.5997257", "text": "public function testResetNullSuccess() {\n $this->assertEmpty($this->_instance->toArray());\n $this->_instance->reset();\n $this->assertEmpty($this->_instance->toArray());\n $this->assertEquals(0, $this->_instance->getVersion());\n\n $this->_instance->set('key1', 'val');\n $this->_instance->set('key2', 'val');\n $this->assertNotEmpty($this->_instance->toArray());\n $this->assertEquals(2, $this->_instance->getVersion());\n\n $this->_instance->reset();\n $this->assertEmpty($this->_instance->toArray());\n $this->assertEquals(0, $this->_instance->getVersion());\n }", "title": "" }, { "docid": "82a49f918caecdc3855cf51a05ee92e9", "score": "0.5959371", "text": "public function it_can_be_created_from_raw_values_with_nullable_parameters(): void\n {\n $this->beConstructedThrough('fromRawValues', [\n 'Plaça del Mar',\n 41.37481,\n 2.18895,\n null,\n null,\n null,\n ]);\n\n $this->shouldBeAnInstanceOf(Location::class);\n }", "title": "" }, { "docid": "155bedebb677b3746be3e80e8186b7f5", "score": "0.5901505", "text": "public function It_should_be_able_to_handle_read_with_null()\n\t{\n\t\t$this->assertEquals( 'hello world', $this->rewindable_input->read( null ) );\n\t}", "title": "" }, { "docid": "85e393468a3f41e1220370def603b0bd", "score": "0.58567166", "text": "public function testGetReturnsNullIfNoFieldDataIsSet()\n {\n $dataClass = new QuickFormsData();\n\n $result = $dataClass->__get('foo');\n $this->assertSame(null, $result);\n }", "title": "" }, { "docid": "0691a7bd869004c5631a2e9aaffd92ab", "score": "0.58223987", "text": "public function testOptionNotSet()\n {\n $this->assertEquals(null, $this->_itunesSearch->foobar);\n }", "title": "" }, { "docid": "04e9cc45b99dec36790ce57b1abba16c", "score": "0.5769324", "text": "public function test_get_when_null()\n\t{\n\t\t$email = Input::get('email'); // null, see assertNull()\n\t\t$plan = Input::get('plan', 'standard'); // assertEquals 'standard', since it did not exist in $_GET. You are basically providing a default value here\n\t\t\n\t\t$this->assertNull($email);\n\t\t$this->assertEquals($plan,'standard');\n\t}", "title": "" }, { "docid": "00d20a868c959865b1a9a8aa8bcdfea0", "score": "0.575766", "text": "public function testGetSetStateMachineNull()\n {\n $subject = $this->createInstance();\n $reflect = $this->reflect($subject);\n\n $reflect->_setStateMachine(null);\n\n $this->assertNull($reflect->_getStateMachine(), 'Retrieved state machines is not null.');\n }", "title": "" }, { "docid": "b6fa047c55dbc6d3942bf710e5e41264", "score": "0.5741168", "text": "public function testSetInCacheWithNullValue()\n {\n $this->cache->expects($this->never())\n ->method('getItem');\n\n $this->cache->expects($this->never())\n ->method('save');\n\n $method = $this->get_accessible_reflection_method('set_in_cache');\n\n $result = $method->invokeArgs($this->class, [ 'foo', NULL ]);\n\n $this->assertFalse($result);\n }", "title": "" }, { "docid": "f2d617587bf9fb57ece9850444705bb3", "score": "0.56829643", "text": "public function testPublishFrom() {\n\t\t$this->_testGetterSetter('getPublishFrom', 'setPublishFrom', new \\DateTime);\n\t}", "title": "" }, { "docid": "77a525f120b87865d12b494427ceea2e", "score": "0.5679868", "text": "public function testNullInput()\n {\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionCode(1519142104);\n $this->parser->parse(null);\n }", "title": "" }, { "docid": "20e0f11649702cb1cfb9afa77bd8ccea", "score": "0.56739604", "text": "public function testInvalidNullOnFile()\n {\n $this->assertHasErrors($this->getEntity()->setFile(null), 1);\n }", "title": "" }, { "docid": "2bb7e6dfc299d24a2fc9899f3402ae50", "score": "0.56525075", "text": "public function testNone()\n {\n $this->context->setValue('Namespaced::Property', '1');\n $properties1 = new ArrayIterator(array(\n 'configValue' => '2'\n ));\n $equals1 = new Equals($this->context, 'Namespaced::Property', $properties1);\n $properties2 = new ArrayIterator(array(\n 'configValue' => '2'\n ));\n $equals2 = new Equals($this->context, 'Namespaced::Property', $properties2);\n $properties3 = new ArrayIterator(array(\n 'configValue' => '3'\n ));\n $equals3 = new Equals($this->context, 'Namespaced::Property', $properties3);\n $allParams = new ArrayIterator(array(\n $equals1,\n $equals2,\n $equals3\n ));\n $all = new None($allParams);\n $this->assertEquals($all->evaluate(), true);\n $properties1['configValue'] = '1';\n $this->assertEquals($all->evaluate(), false);\n }", "title": "" }, { "docid": "387c73190a9fe7747bccd5f38c7050b9", "score": "0.5622302", "text": "public function testUnknownSetter()\n {\n $this->location->setTest('');\n }", "title": "" }, { "docid": "064c8f445f5e83e61085539b9400dc18", "score": "0.5615738", "text": "public function testParamsAreSet()\n {\n $params = array('test' => 'foo');\n\n $valid = new \\Pv\\Validate\\None(null);\n $valid->setParams($params);\n\n $this->assertEquals($params['test'], $valid->getParam('test'));\n }", "title": "" }, { "docid": "d438ac5ba9dc24872fbe9505a5cce501", "score": "0.56117564", "text": "public function ignoreNullProperties(): void\n {\n $this->ignoreNullProperties = true;\n }", "title": "" }, { "docid": "27d51bca4eaceb4f357aa71810134b6b", "score": "0.5593844", "text": "public function allowsNull () {}", "title": "" }, { "docid": "f23c8a1f249bd4ffdb6c5f39b353289c", "score": "0.5592173", "text": "public function testGetParametersNoParameterAtAll()\n {\n $filterSetting = $this->mockFilterSetting();\n\n $fromTo = $this->mockAbstractFromTo($filterSetting, array('urlparam' => ''));\n\n $this->assertEquals(\n array(),\n $fromTo->getParameters()\n );\n }", "title": "" }, { "docid": "ec72efbee2f9807c5bd2908766f49fac", "score": "0.55595636", "text": "public function testNullifyHandling()\n {\n $filter=new Filter;\n\n $fields=[\"field\"=>[new Rules\\Nullable]];\n $data=[\"field\"=>\"*\".$this->faker->word,\"*\"];\n\n $this->assertEquals(\n $this->response($data), \n $filter->addFields($fields)->check($data)\n );\n }", "title": "" }, { "docid": "94f6a4003d9ce4ae3c147b9c79d5ee34", "score": "0.55594164", "text": "public function testGettingEmptyValue()\n {\n $generator = new IntSequenceIdGenerator('foo');\n $this->assertNull($generator->getEmptyValue(new stdClass()));\n }", "title": "" }, { "docid": "4040055fa6a1b7b0b4a513e5cc7b4c8b", "score": "0.5544932", "text": "public function allowsNull()\n\t{\n\t}", "title": "" }, { "docid": "457696f452137b86ddfedcfff96e9d94", "score": "0.552181", "text": "public function allowsNull();", "title": "" }, { "docid": "87cd2434efa6fa62947c461ed5c855dd", "score": "0.5492454", "text": "public function dontIgnoreNullProperties(): void\n {\n $this->ignoreNullProperties = false;\n }", "title": "" }, { "docid": "7d6bbe640f3fa079fd0284b40096661c", "score": "0.54731214", "text": "public function testFrom()\n {\n }", "title": "" }, { "docid": "9138e368e7c7a2d826a3b6808693222b", "score": "0.547118", "text": "public function testStreetNumber0()\n{\n\n $actual = $this->address->streetNumber();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "afe567db49027787a0d3a24e94b0cfce", "score": "0.546545", "text": "public function testSetInvalidProperty()\n\t{\n\t\t$testString = 'this is a test';\n\t\t$this->model->test2 = $testString;\n\n\t\t$this->assertEquals(\n\t\t\t$this->model->test2,\n\t\t\tnull\n\t\t);\n\t}", "title": "" }, { "docid": "d122b3b1af35344d98560b98673c05ba", "score": "0.54598415", "text": "public function testEmptyQuery ()\n {\n $this->given($this->newTestedInstance)\n ->then\n ->variable($this->testedInstance->GetRawQuery())\n ->isNull();\n ;\n }", "title": "" }, { "docid": "7c4134ce07af69b4ea96e9e41d36c0ea", "score": "0.54526263", "text": "function testGetInvalidProperty() {\n\n\t\t$ps = new \\Scrivo\\PropertySet();\n\t\t$dummy = $ps->blahBlah;\n\t}", "title": "" }, { "docid": "133a308d80f2e69f68e2f2578191fb13", "score": "0.544453", "text": "public function testTownName0()\n{\n\n $actual = $this->address->townName();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "32259906b9403ca3f2605d7fba974510", "score": "0.54246473", "text": "public function testValidationDefaultNoAnyFields()\r\n {\r\n $data = $this->getCorrectData();\r\n unset($data['owner']);\r\n unset($data['name']);\r\n unset($data['gmt_expires']);\r\n $lock = $this->Loches->newEntity($data);\r\n $this->assertEmpty($lock->errors());\r\n }", "title": "" }, { "docid": "4e8ea3bf633e818cb7bea0c742f11eaa", "score": "0.5423709", "text": "protected static function _testValue($value) {\n if (!isset($value)) {\n throw new InvalidArgumentException(\"Property value may not be NULL!\");\n }\n }", "title": "" }, { "docid": "660bd6890d7270fed0e175c4defdb9be", "score": "0.54116577", "text": "public function testFilterEntityWithNullObject()\n {\n $filterServiceMock = $this->createMock('\\DMS\\Bundle\\FilterBundle\\Service\\Filter');\n\n $filterServiceMock\n ->expects($this->never())\n ->method('filterEntity');\n\n $deepFilterService = new DeepFilterService();\n\n $deepFilterService->setFilterService($filterServiceMock);\n $deepFilterService->filterEntity(null);\n }", "title": "" }, { "docid": "f8b97d61df9cdc430c7803ea4da00e2a", "score": "0.5401043", "text": "function initFromNull()\n\t{\n\t\t$this->obj->setPermissions($this->getRefId());\n\t}", "title": "" }, { "docid": "7a534adc6d272ce4d4c3532da0cf3721", "score": "0.53989744", "text": "public function testValidationDefaultNoAnyFields()\r\n {\r\n $data = $this->getCorrectData();\r\n unset($data['user_id']);\r\n unset($data['source']);\r\n unset($data['gmt_created']);\r\n $event = $this->Events->newEntity($data);\r\n $this->assertEmpty($event->errors());\r\n }", "title": "" }, { "docid": "3639c8f71a256d052fb8ea0b2b87577d", "score": "0.53955895", "text": "public function testGetterAndSetterDefaultDate(): void\n {\n $this->expectException(\\PHPUnit\\Framework\\ExpectationFailedException::class);\n\n $dateTime = new DateTime();\n\n $this->assertGetterSetter(\n $this->object,\n 'getCreated',\n null,\n 'setCreated',\n $dateTime,\n true\n );\n }", "title": "" }, { "docid": "2b555c810265feff8bf72c7f05fd902a", "score": "0.5393991", "text": "public function testExceptionSetIntegerStartNull() {\n $this->fizzbuzz->setIntegerStart(null);\n }", "title": "" }, { "docid": "08ca9700829ac025ee17e0ae98d6ee73", "score": "0.53884465", "text": "public function testDefaultValues()\n {\n $this->assertFalse(self::$directionsRequest->hasAvoidHighways());\n $this->assertFalse(self::$directionsRequest->hasAvoidTolls());\n $this->assertFalse(self::$directionsRequest->hasDestination());\n $this->assertFalse(self::$directionsRequest->hasOptimizeWaypoints());\n $this->assertFalse(self::$directionsRequest->hasOrigin());\n $this->assertFalse(self::$directionsRequest->hasProvideRouteAlternatives());\n $this->assertFalse(self::$directionsRequest->hasRegion());\n $this->assertFalse(self::$directionsRequest->hasTravelMode());\n $this->assertFalse(self::$directionsRequest->hasUnitSystem());\n $this->assertFalse(self::$directionsRequest->hasWaypoints());\n }", "title": "" }, { "docid": "a29d7002699a24bedc1a6803fe090167", "score": "0.5386824", "text": "public function testSetGetFrom()\n {\n $from = (new Mockery($this))->getEmailAddressMock();\n\n $listEmailLofRequest = new ListEmailLogRequest();\n\n $listEmailLofRequest->setFrom($from);\n\n $this->assertEquals($from, $listEmailLofRequest->getFrom());\n }", "title": "" }, { "docid": "ff3f4a6cc9d8aa391a488737c9624163", "score": "0.53509724", "text": "public function testNotSet()\n {\n $this->innerCache\n ->expects($this->at(0))\n ->method('set')\n ->will($this->returnValue(true))\n ;\n\n // now set fails, clearing the existing value\n $this->innerCache\n ->expects($this->at(1))\n ->method('set')\n ->will($this->returnValue(false))\n ;\n\n // expecting a get now\n $this->innerCache\n ->expects($this->once())\n ->method('get')\n ;\n\n $this->cache->set('foo', 'bar');\n $this->cache->set('foo', 'bar');\n $this->cache->get('foo');\n }", "title": "" }, { "docid": "006d5d6e5311b35482fc7bb0af4a8744", "score": "0.5349494", "text": "public function testGetParametersFallback()\n {\n $filterSetting = $this->mockFilterSetting();\n $attribute = $this->mockAttribute($filterSetting->getMetaModel());\n\n $fromTo = $this->mockAbstractFromTo($filterSetting, array('urlparam' => ''));\n\n $this->assertEquals(\n array($attribute->getColName()),\n $fromTo->getParameters()\n );\n }", "title": "" }, { "docid": "b05cb9f2e8297920bdfa54bf09070bb6", "score": "0.53429383", "text": "public function testStreetPrefix0()\n{\n\n $actual = $this->address->streetPrefix();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "b05cb9f2e8297920bdfa54bf09070bb6", "score": "0.53429383", "text": "public function testStreetPrefix0()\n{\n\n $actual = $this->address->streetPrefix();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "634720cf22e186d073a9503238db7f70", "score": "0.534047", "text": "public function testGetValue0()\n{\n\n $actual = $this->invalidDateException->getValue();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "08f8f01b710786c3c0407692ecec3ec2", "score": "0.5328775", "text": "public function testConvertStringNulls() {\n\t\t\n\t\t$data = array(\n\t\t\t'id' => 1,\n\t\t\t'name' => 'Name',\n\t\t\t'tags' => 'null',\n\t\t\t'lastView.tricky' => 'null',\n\t\t\t'created' => '2013-03-01T13:00:00+0000'\n\t\t);\n\t\t\n\t\t$result = $this->InputData->convertStringNulls($data);\n\t\t\n\t\t$expected = $data;\n\t\t$expected['tags'] = null;\n\t\t$expected['lastView.tricky'] = null;\n\t\t\n\t\t$this->assertEquals($expected, $result);\n\t\t\n\t}", "title": "" }, { "docid": "b7d4a702c17004c6750238ab046ff60c", "score": "0.5325936", "text": "public function assertNull() {\n $this->callAssertMethod(__FUNCTION__);\n }", "title": "" }, { "docid": "62daed02fef10e99f43f626f1c9aed53", "score": "0.5310438", "text": "public function testPropertyToIsValid()\n {\n $bus = new Bus(['to' => 'Dubai']);\n $this->assertEquals('Dubai', $bus->to);\n }", "title": "" }, { "docid": "e6f842fff80081f87b56096b116ede3d", "score": "0.5298077", "text": "public function testCompanyField0()\n{\n\n $actual = $this->company->companyField();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "e5b6fcdc7218c745bb43585b135f8c09", "score": "0.5291712", "text": "public function testGetFilteredValueWithoutEntity(IntegrationTester $I)\n {\n $I->wantToTest('Forms\\Form - getFilteredValue()');\n\n $data = ['firstName' => ' test '];\n\n $form = $this->getForm($data, null);\n\n $I->assertEquals($data['firstName'], $form->getValue(\"firstName\"));\n $I->assertEquals(\"TEST\", $form->getFilteredValue(\"firstName\"));\n }", "title": "" }, { "docid": "ff260e210f8f527d465ce34d0bd29391", "score": "0.52827054", "text": "public function testAddAndGetWithNull()\n {\n try {\n // initialize a new TreeMap\n $map = new TreeMap();\n $this->assertNull($map->get(0));\n $this->fail(\"Insert out of bounds exception expected!\");\n } catch (\\Exception $e) {\n $this->assertEquals(\"Index 0 out of bounds\", $e->getMessage());\n }\n }", "title": "" }, { "docid": "ff69a7b22f9cacf9cefda984095945bf", "score": "0.5281874", "text": "public function testMissingPropertyValue()\n {\n $this->expectException(ParserException::class);\n $this->expectExceptionCode(1519141916);\n $this->parser->parse('foo', true);\n }", "title": "" }, { "docid": "711edfccff399bf283ba619099498ecf", "score": "0.52795154", "text": "public function testAddAndGetWithNull()\n {\n try {\n // initialize a new HashMap\n $map = new HashMap();\n $this->assertNull($map->get(0));\n $this->fail(\"Insert out of bounds exception expected\");\n } catch (\\Exception $e) {\n $this->assertEquals(\"Index 0 out of bounds\", $e->getMessage());\n }\n }", "title": "" }, { "docid": "66150547ebaeb6488a5b028a214478bc", "score": "0.5269551", "text": "public function testKeyIsUnsetWhenValueIsNull()\n {\n // like a class just for this purpose.\n $this->definition->query(Cdc_Definition::TYPE_COLUMN)->byKey('testing_null');\n $result = $this->definition->fetch(Cdc_Definition::MODE_KEY_ONLY);\n $this->assertEquals(array('comment'), $result);\n }", "title": "" }, { "docid": "547c8e2b8457523a78e8a4f1409c09f4", "score": "0.526873", "text": "public function testEmptyValue() {\n // Create an instance of the 'single value' field.\n $field = FieldConfig::create([\n 'field_storage' => $this->card1,\n 'bundle' => 'entity_test',\n ]);\n $field->save();\n\n /** @var \\Drupal\\Core\\Entity\\EntityDisplayRepositoryInterface $display_repository */\n $display_repository = \\Drupal::service('entity_display.repository');\n\n // Change it to the check boxes/radio buttons widget.\n $display_repository->getFormDisplay('entity_test', 'entity_test')\n ->setComponent($this->card1->getName(), [\n 'type' => 'options_buttons',\n ])\n ->save();\n\n // Create an entity.\n $entity = EntityTest::create([\n 'user_id' => 1,\n 'name' => $this->randomMachineName(),\n ]);\n $entity->save();\n\n // Display form: check that _none options are present and has label.\n $this->drupalGet('entity_test/manage/' . $entity->id() . '/edit');\n // Verify that a test radio button has a \"None\" choice.\n $this->assertSession()->elementExists('xpath', '//div[@id=\"edit-card-1\"]//input[@value=\"_none\"]');\n // Verify that a test radio button has a \"N/A\" choice..\n $this->assertSession()->elementExists('xpath', '//div[@id=\"edit-card-1\"]//label[@for=\"edit-card-1-none\"]');\n $this->assertSession()->elementTextEquals('xpath', '//div[@id=\"edit-card-1\"]//label[@for=\"edit-card-1-none\"]', \"N/A\");\n\n // Change it to the select widget.\n $display_repository->getFormDisplay('entity_test', 'entity_test')\n ->setComponent($this->card1->getName(), [\n 'type' => 'options_select',\n ])\n ->save();\n\n // Display form: check that _none options are present and has label.\n $this->drupalGet('entity_test/manage/' . $entity->id() . '/edit');\n // A required field without any value has a \"none\" option.\n $option = $this->assertSession()->optionExists('edit-card-1', '_none');\n $this->assertSame('- None -', $option->getText());\n }", "title": "" }, { "docid": "92c7c8ca7c92287a6b131dd4ab2fb5bf", "score": "0.5265806", "text": "public function testCantonName0()\n{\n\n $actual = $this->address->cantonName();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "1f589f9b9776679bd445831bc691fe2a", "score": "0.5265764", "text": "public function testGetByPropertyThrowsException() {\n\n\t\t$value = new ObjectValue(new stdClass(), $this->valueContext, $this->config);\n\t\t$value->getByProperty('not existing');\n\t}", "title": "" }, { "docid": "c859aaf68c65113257be99b960975e50", "score": "0.526529", "text": "public function testMergeInputNull()\n {\n $collection = new Collection();\n\n /** @noinspection PhpParamsInspection */\n $collection->merge(null);\n }", "title": "" }, { "docid": "fad07b0d4b923876bbcb28b1daa2674f", "score": "0.52576274", "text": "#[@test]\n public function noValue() {\n $this->assertEquals(\n array(0 => array('hello' => NULL), 1 => array()),\n $this->parse(\"#[@hello]\")\n );\n }", "title": "" }, { "docid": "0f9c6f71d942b02ff434f97a400d19fa", "score": "0.5255242", "text": "public function testGetPerPageWithNull()\n {\n $listEmailLofRequest = new ListEmailLogRequest();\n\n $listEmailLofRequest->setPerPage(null);\n\n $this->assertNull($listEmailLofRequest->getPerPage());\n }", "title": "" }, { "docid": "737ab1a91809d05d4f4ea5f40b47b435", "score": "0.5245543", "text": "public function testParamReturnsDefault()\n {\n $params = array('test' => 'foo');\n\n $valid = new \\Pv\\Validate\\None(null);\n $valid->setParams($params);\n\n $this->assertEquals('bar', $valid->getParam('foo', 'bar'));\n }", "title": "" }, { "docid": "c6d7262c6e5fc69d2e9564bd5a852642", "score": "0.5241733", "text": "public function testMagisSet() {\n $this->assertFalse($this->_instance->has('test'));\n\n $instance = $this->_instance->setTest('val');\n\n $this->assertInstanceOf('PM\\Main\\CommonEntity', $instance);\n $this->assertTrue($this->_instance->has('test'));\n $this->assertEquals('val', $this->_instance->test);\n }", "title": "" }, { "docid": "91fb260a27573628bb90bda6a74076c0", "score": "0.5240294", "text": "public function testNullRuleSetId() {\n\n // Mock object with no methods. Should not be called because the item is coming from cache\n $mockPDO = $this->getMock('MockPDO');\n Chaperone::setPDO($mockPDO);\n\n $this->assertEquals(ChaperoneRuleSet::loadById(NULL), NULL);\n }", "title": "" }, { "docid": "192db17b11aa8950dbf06e4cde3db72d", "score": "0.5235914", "text": "public function testSetGetPageWithNull()\n {\n $listEmailLofRequest = new ListEmailLogRequest();\n\n $listEmailLofRequest->setPage(null);\n\n $this->assertNull($listEmailLofRequest->getPage());\n }", "title": "" }, { "docid": "186ffa4d04f04f6b7d27ee7fe24b09c4", "score": "0.5228894", "text": "public function isNull(){ return FALSE ;}", "title": "" }, { "docid": "c5cb27bda76b15dd0a55780cab37bd76", "score": "0.5228519", "text": "public function testCantonShort0()\n{\n\n $actual = $this->address->cantonShort();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "2b3088aaf55faecd1b575808282e09fc", "score": "0.5223061", "text": "public function testIfReadingNullCellValuesWorks() : void\n {\n\n // Read Xlsx.\n $xlsx = new Reader('examples/ReaderTestNullValue.xlsx');\n $book = $xlsx->readIn()->getBook();\n $sheet = $book->getSheetByName('Sheet2');\n\n // Get XlWorksheet (to call directly).\n $xlWorksheet = $xlsx->getXlWorksheets()[1];\n\n // Test.\n $this->assertEquals(null, $xlWorksheet->getCellValue(3, 4));\n $this->assertEquals(null, $xlWorksheet->getCellValue(10, 10));\n $this->assertEquals(null, $xlWorksheet->getCellValue(3, 10));\n }", "title": "" }, { "docid": "37e26a3ca93431b6a3084061bd20ed9d", "score": "0.5221337", "text": "public function testNullConversionForPHPValue()\n {\n $this->assertNull($this->type->convertToPHPValue(null, $this->platform));\n }", "title": "" }, { "docid": "eda973a71dc5efb0d8b9a3dce8fbb2ac", "score": "0.5217117", "text": "public function testGetField0()\n{\n\n $actual = $this->invalidDateException->getField();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "48b96f2c7f398247b2dded350e4a99b4", "score": "0.52170885", "text": "#[@test, @expect('lang.IllegalArgumentException')]\n public function cannotAddNull() {\r\n $this->sut->add(null);\r\n }", "title": "" }, { "docid": "c9d60d4c3f0ced487f39e9b4013365ca", "score": "0.5216814", "text": "public function testSetEmptyKey() {\n\t\t$data = new Data();\n\t\t$data->__set('', 'value');\n\t}", "title": "" }, { "docid": "336e28fe461a630eda736153274bff98", "score": "0.52112544", "text": "public function testHasValue(): void\n {\n self::assertFalse($this->sut->hasValue(), 'The attribute has not been set.');\n \n $this->sut->setValue('');\n self::assertTrue($this->sut->hasValue(), 'The attribute has been set.');\n }", "title": "" }, { "docid": "223940fe19137eaeb00f4a792bac7816", "score": "0.52107507", "text": "public function testCreateANewInstanceOfSelf()\n {\n $instance = NullValue::create();\n static::assertInstanceOf(NullValue::class, $instance);\n }", "title": "" }, { "docid": "f8dd964b1c00350b796c56d235d4a0b3", "score": "0.5204323", "text": "public function testIsEmptySuccess() {\n $this->_instance->set('key', null);\n\n $this->assertTrue($this->_instance->has('key'));\n $this->assertTrue($this->_instance->isEmpty('key'));\n\n $this->_instance->set('key2', array());\n\n $this->assertTrue($this->_instance->has('key2'));\n $this->assertTrue($this->_instance->isEmpty('key2'));\n\n $this->_instance->set('key3', array('val'));\n\n $this->assertTrue($this->_instance->has('key3'));\n $this->assertFalse($this->_instance->isEmpty('key3'));\n }", "title": "" }, { "docid": "812599b9668254b1f1def7f9a455e3a4", "score": "0.52035767", "text": "public function testModifyThrowsIsNullException()\n {\n $product = new NullProduct();\n \n $this->productDao->modify($product);\n }", "title": "" }, { "docid": "e2165ee5988f9ab0b1a419eb1888586d", "score": "0.51932985", "text": "public function testFrom()\n {\n $q = new Query;\n $this->assertZero(strpos($q, 'SELECT * FROM TABLE_NAME'));\n\n $q->from('from_table');\n $this->assertEquals('from_table', $q->get('from'));\n $this->assertZero(strpos($q, 'SELECT * FROM from_table'));\n\n $q->table('table_table');\n $this->assertEquals('table_table', $q->get('from'));\n\n $q->into('into_table');\n $this->assertEquals('into_table', $q->get('from'));\n\n $q->in('in_table');\n $this->assertEquals('in_table', $q->get('from'));\n\n $this->assertInstanceOf(\n Query::class, $q->from('another_universe')\n ); # for method chaining\n }", "title": "" }, { "docid": "a690f708f38d78273ae5e7ca4670ad7d", "score": "0.5193265", "text": "public function testCanton0()\n{\n\n $actual = $this->address->canton();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "bd7c87de9f505bf1e5d9f76694621194", "score": "0.519315", "text": "public function testMarkAsUsedBlankMarking()\n {\n $oVoucher = new oxvoucher();\n $oVoucher->markAsUsed( 'xxx', 'yyy', '' );\n\n $this->assertNull( $oVoucher->oxvouchers__oxorderid->value );\n $this->assertNull( $oVoucher->oxvouchers__oxuserid->value );\n $this->assertNull( $oVoucher ->oxvouchers__oxdateused->value );\n }", "title": "" }, { "docid": "978b25ef25428f11aa69de709c00c8e3", "score": "0.5192205", "text": "public function setNull($value)\n {\n return $this->set(self::REQUEST_NULL, $value);\n }", "title": "" }, { "docid": "f738fb6dd8a4110efc3045fe2bb6349e", "score": "0.5187585", "text": "public function testFloorNumber0()\n{\n\n $actual = $this->address->floorNumber();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "70aa26a114f175da78950b71b0637b33", "score": "0.5183214", "text": "public function it_can_not_be_created_with_empty_address(): void\n {\n $this->beConstructedThrough('fromRawValues', [\n '',\n 41.37481,\n 2.18895,\n '3B',\n 1,\n '08003',\n ]);\n\n $this->shouldThrow(LazyAssertionException::class)->duringInstantiation();\n }", "title": "" }, { "docid": "dda5bfbe66444e7397acfc4f50988720", "score": "0.518222", "text": "public function testGetUid0()\n{\n\n $actual = $this->uidProcessor->getUid();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "2ce9129d95b16b7464c68c4fb62cd7fa", "score": "0.5180778", "text": "function es_objeto_nulo($do)\n{\n return is_null($do) || $do == null\n || $do == DB_DataObject_Cast::sql('NULL');\n}", "title": "" }, { "docid": "4a98f97f925463feb444a854cc59d7bc", "score": "0.51716423", "text": "public function testNullEqualityComparison()\n {\n $enum = TestClassEnum::ONE();\n $other = null;\n\n $this->assertFalse($enum->is($other));\n $this->assertFalse($enum->equals($other));\n }", "title": "" }, { "docid": "84825b09e5d7aaf39c56b86c8bf24925", "score": "0.5170935", "text": "public function testCityName0()\n{\n\n $actual = $this->address->cityName();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "title": "" }, { "docid": "e0db86459af73366afad71d06a4d394f", "score": "0.5167447", "text": "public function testHasOnlyDefaultValues(){\n\n $this->assertTrue($this->object->hasOnlyDefaultValues());\n\n }", "title": "" }, { "docid": "097b152fdcc8eaeff18feb0980f2ce28", "score": "0.5166186", "text": "public function testLoadInput()\n\t{\n\t\t// Reset the input property so we know it changes based on the mock application.\n\t\tTestReflection::setValue($this->_instance, 'input', null);\n\n\t\t$this->assertEquals('default', TestReflection::invoke($this->_instance, 'loadInput'));\n\t}", "title": "" }, { "docid": "17a7b004d17e71287cc0d7a48407c2f7", "score": "0.5158069", "text": "public function isNull($value);", "title": "" }, { "docid": "84efee87e5731ec6173739b7e1001f7e", "score": "0.51475734", "text": "public function testFetchMetaDataEmptyFetchWithExisting()\n {\n $route = 'foobar';\n $data = null;\n $existing = ['lorem' => 'ipsum'];\n\n Utility::setProperties(['metaRoute' => $route], $this->testObj);\n $this->testObj->metaData = $existing;\n\n $this->serviceMock->expects($this->once())\n ->method('getPage')\n ->with($this->identicalTo($route))\n ->willReturn($data);\n\n $this->testObj->fetchMetaData();\n $this->assertEquals(\n $existing,\n $this->testObj->metaData\n );\n }", "title": "" }, { "docid": "d61ab7ff0970f3923fe374de2c0fa4f1", "score": "0.5141444", "text": "public function testOrigin()\n {\n self::$directionsRequest->setOrigin('address');\n $this->assertTrue(self::$directionsRequest->hasOrigin());\n $this->assertEquals(self::$directionsRequest->getOrigin(), 'address');\n\n $locationTest = new Coordinate(2.1, 1.1, true);\n self::$directionsRequest->setOrigin($locationTest);\n $this->assertEquals(self::$directionsRequest->getOrigin()->getLatitude(), 2.1);\n $this->assertEquals(self::$directionsRequest->getOrigin()->getLongitude(), 1.1);\n $this->assertTrue(self::$directionsRequest->getOrigin()->isNoWrap());\n\n self::$directionsRequest->setOrigin(1.1, 2.1, false);\n $this->assertEquals(self::$directionsRequest->getOrigin()->getLatitude(), 1.1);\n $this->assertEquals(self::$directionsRequest->getOrigin()->getLongitude(), 2.1);\n $this->assertFalse(self::$directionsRequest->getOrigin()->isNoWrap());\n\n $this->setExpectedException('InvalidArgumentException');\n self::$directionsRequest->setOrigin(true);\n }", "title": "" }, { "docid": "392f92619a2574cec88b46ee22117590", "score": "0.51386774", "text": "public function testCanHydrateOneToOneAssociationByValueWithNullableRelation(): void\n {\n $entity = new Assets\\OneToOneEntity();\n $this->configureObjectManagerForOneToOneEntity();\n\n $data = ['toOne' => null];\n\n $this->metadata->expects($this->atLeastOnce())\n ->method('hasAssociation');\n\n $object = $this->hydratorByValue->hydrate($data, $entity);\n $this->assertNull($object->getToOne(false));\n }", "title": "" }, { "docid": "c11aa19142af8424d404f642ad942e91", "score": "0.5136024", "text": "public function setFrom($from);", "title": "" }, { "docid": "c11aa19142af8424d404f642ad942e91", "score": "0.5136024", "text": "public function setFrom($from);", "title": "" }, { "docid": "2e9b8fa747ee0e1202472e8bcec31195", "score": "0.5134072", "text": "public function testHashPasswordPropertyWithNoPropertySet()\n {\n $this->expectException(NullValueException::class);\n\n $hasher = $this->getMockForTrait(HashesPasswords::class);\n\n $hasher->hashUserPasswordProperty();\n }", "title": "" }, { "docid": "b0df154c9b876d23cc7b73b702822c9a", "score": "0.51262146", "text": "public function setValidFrom($validFrom = null)\n {\n // validation for constraint: string\n if (!is_null($validFrom) && !is_string($validFrom)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value, please provide a string, \"%s\" given', gettype($validFrom)), __LINE__);\n }\n if (is_null($validFrom) || (is_array($validFrom) && empty($validFrom))) {\n unset($this->ValidFrom);\n } else {\n $this->ValidFrom = $validFrom;\n }\n return $this;\n }", "title": "" }, { "docid": "c8f5d0c28df74209f728f722a27549fe", "score": "0.5122698", "text": "public function nullConversionForDatabaseValue()\n {\n $this->assertNull($this->type->convertToDatabaseValue(null, $this->platform));\n }", "title": "" }, { "docid": "671fbccbd997bb0c8ed5473968e9fb5e", "score": "0.5121216", "text": "public function testConstructorThrowsExceptionIfValueIsNotObject() {\n\n\t\tnew ObjectValue('no object', $this->valueContext, $this->config);\n\t}", "title": "" }, { "docid": "6c19bb6d65434060b22f20c674b857de", "score": "0.5118083", "text": "#[@test, @ignore('Rewriting NULL to xp::$null causes many side effects')]\n public function nullPointer() {\n $this->assertSourcecodeEquals(\n '$s= xp::$null; $s->invoke();',\n $this->emit('$s= NULL; $s->invoke();')\n );\n }", "title": "" } ]
a5916249f9726584fd7378cf9f6ca070
A Employe has one a user
[ { "docid": "ae468e9cdcb77a9a9f37fb920a593303", "score": "0.0", "text": "public function users()\n {\n return $this->hasOne('App\\Models\\User');\n }", "title": "" } ]
[ { "docid": "d71c5d35b7a55a88182ef49a054d7fb2", "score": "0.7182653", "text": "public function employer(){\n \treturn $this->belongsTo(User::class,'user_id');\n }", "title": "" }, { "docid": "ba89920cdaadd7b2613132068fe75321", "score": "0.67976075", "text": "public function user () {\n\t return $this->hasOne(\n\t 'App\\Models\\User',\n 'person_id',\n 'person_id'\n );\n }", "title": "" }, { "docid": "6fb6259a51500c832281175c0040cfa3", "score": "0.6767863", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "c27bdfff465b0ed5b60d31eb8b2fead9", "score": "0.67210835", "text": "public function user(): HasOne\n {\n return $this->hasOne(User::class, 'id', 'user_id');\n }", "title": "" }, { "docid": "ba8d5849e40fb871143b03256f3434c6", "score": "0.6709866", "text": "public function user(){\n return $this->hasOne(User::class);\n }", "title": "" }, { "docid": "86573aba2b5aee0e070648a674bc79ad", "score": "0.6682094", "text": "public static function getUser(){\n return $this->hasOne(User::className,['id' => 'user_id']);\n }", "title": "" }, { "docid": "c8cc1e1e027612397525a6fa2dd67688", "score": "0.6681634", "text": "public function getEnteredBy0()\n {\n return $this->hasOne(User::className(), ['id' => 'EnteredBy']);\n }", "title": "" }, { "docid": "b441ccb970a6ff12cac4476dcdf1aff2", "score": "0.66807026", "text": "public function user(){\n return $this->hasOne(User::class, 'id');\n }", "title": "" }, { "docid": "f29415b5d2c2f096244f3cdb469d2b31", "score": "0.6653098", "text": "public function getUsuFkuser()\n {\n return $this->hasOne(User::className(), ['id' => 'usu_fkuser']);\n }", "title": "" }, { "docid": "152a55866fc38f24e2b64f2760348d54", "score": "0.6647094", "text": "public function user(): HasOne\n {\n return $this->hasOne(User::class, 'id');\n }", "title": "" }, { "docid": "a1b4afbde96eb36ef972149f7eff2c85", "score": "0.66269743", "text": "public function getUser() {\n return $this->hasOne(User::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "4d04dca0a0f1cc162e4bf703fbd4ed8c", "score": "0.6620414", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "4d04dca0a0f1cc162e4bf703fbd4ed8c", "score": "0.6620414", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "4d04dca0a0f1cc162e4bf703fbd4ed8c", "score": "0.6620414", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "4d04dca0a0f1cc162e4bf703fbd4ed8c", "score": "0.6620414", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "4d04dca0a0f1cc162e4bf703fbd4ed8c", "score": "0.6620414", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "4d04dca0a0f1cc162e4bf703fbd4ed8c", "score": "0.6620414", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "4d04dca0a0f1cc162e4bf703fbd4ed8c", "score": "0.6620414", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "4d04dca0a0f1cc162e4bf703fbd4ed8c", "score": "0.6620414", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "4d04dca0a0f1cc162e4bf703fbd4ed8c", "score": "0.6620414", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "4d04dca0a0f1cc162e4bf703fbd4ed8c", "score": "0.6620414", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "4d04dca0a0f1cc162e4bf703fbd4ed8c", "score": "0.6620414", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "4d04dca0a0f1cc162e4bf703fbd4ed8c", "score": "0.6620414", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "4d04dca0a0f1cc162e4bf703fbd4ed8c", "score": "0.6620414", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "4d04dca0a0f1cc162e4bf703fbd4ed8c", "score": "0.6620414", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "4d04dca0a0f1cc162e4bf703fbd4ed8c", "score": "0.6620414", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "4d04dca0a0f1cc162e4bf703fbd4ed8c", "score": "0.6620414", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "4d04dca0a0f1cc162e4bf703fbd4ed8c", "score": "0.6620414", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "5efc680157c152979d12f3e8cad583ed", "score": "0.6612674", "text": "public function user_email(){\n return $this->hasOne(UserEmail::class);\n }", "title": "" }, { "docid": "fdbce788b7267b43844e1acd43436f14", "score": "0.660973", "text": "public function user () {\n return $this->hasOne(User::class);\n }", "title": "" }, { "docid": "56dd1838647f18416d196ee28dbd9854", "score": "0.66034645", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'id_user']);\n }", "title": "" }, { "docid": "6b142814ef5c61d3c41483c12e12c894", "score": "0.65970707", "text": "public function user()\n {\n return $this->hasOne(User::class,'id_tipo_usuarios');\n }", "title": "" }, { "docid": "8f799b8e659d53e5bbfba98984427d38", "score": "0.6589383", "text": "public function user()\n\t{\n\t\treturn $this->hasOne(User::class);\n\t}", "title": "" }, { "docid": "af2538f0624bdb990f1d8e75eceda193", "score": "0.6589341", "text": "public function user()\n {\n return $this->hasOne(User::class, 'user_id', 'user_id');\n }", "title": "" }, { "docid": "6c55b6702d3a66ea9d09cc7d28b4a125", "score": "0.6578856", "text": "public function getEnteredBy()\n {\n return $this->hasOne(User::className(), ['id' => 'EnteredBy']);\n }", "title": "" }, { "docid": "ada5c2b6feb376ea9e4e6a8b214cc8eb", "score": "0.65600514", "text": "public function user()\n {\n return $this->hasOne(User::class);\n }", "title": "" }, { "docid": "c458fdc5a755a1b63de820e83eb40874", "score": "0.6554737", "text": "public function getUser()\n {\n return $this->hasOne(Users::className(), ['id' => 'id_user']);\n }", "title": "" }, { "docid": "ddd870d374561a4a0bdf72d7b9d56832", "score": "0.6553426", "text": "public function user()\n {\n return $this->hasOne('\\Antares\\Model\\User', 'id', 'user_id');\n }", "title": "" }, { "docid": "a9d127805df796546281d97a12826e4b", "score": "0.6552592", "text": "public function getUser()\n {\n return $this->hasOne(TgUsers::className(), ['id' => 'user_id']);\n }", "title": "" }, { "docid": "088ff28b31562001296e06ad225e3a5e", "score": "0.6548283", "text": "public function user()\n {\n return $this->hasOne(User::class, 'id', 'user_id');\n }", "title": "" }, { "docid": "088ff28b31562001296e06ad225e3a5e", "score": "0.6548283", "text": "public function user()\n {\n return $this->hasOne(User::class, 'id', 'user_id');\n }", "title": "" }, { "docid": "088ff28b31562001296e06ad225e3a5e", "score": "0.6548283", "text": "public function user()\n {\n return $this->hasOne(User::class, 'id', 'user_id');\n }", "title": "" }, { "docid": "088ff28b31562001296e06ad225e3a5e", "score": "0.6548283", "text": "public function user()\n {\n return $this->hasOne(User::class, 'id', 'user_id');\n }", "title": "" }, { "docid": "f07996c25ee3cf5e4e17d32251e6825b", "score": "0.6537062", "text": "public function user()\n {\n return $this->hasOne(App\\Models\\User::class);\n }", "title": "" }, { "docid": "932b02c9c604811f0cd6dc8353f4de04", "score": "0.6523009", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'userId']);\n }", "title": "" }, { "docid": "932b02c9c604811f0cd6dc8353f4de04", "score": "0.6523009", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'userId']);\n }", "title": "" }, { "docid": "932b02c9c604811f0cd6dc8353f4de04", "score": "0.6523009", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'userId']);\n }", "title": "" }, { "docid": "d32f392157a8484e17e2ad332b094f85", "score": "0.65092534", "text": "public function user() {\n return $this->hasOne('App\\User');\n }", "title": "" }, { "docid": "ed5d88057125dc9c17b7d39482a10210", "score": "0.6503964", "text": "public function user()\n {\n return $this->hasOne('acme\\models\\User');\n }", "title": "" }, { "docid": "1262eafb7d53415086a1cf93d49a1291", "score": "0.64808106", "text": "public function user(){\n\t\treturn $this->hasOne('App\\User', 'id', 'user_id');\n\n\t}", "title": "" }, { "docid": "90f891e668f91da242365269fed58836", "score": "0.64777267", "text": "public function getEmpresa()\n {\n return $this->hasOne(Usuario::className(), ['id' => 'empresa_id']);\n }", "title": "" }, { "docid": "9e7b95dbd74888ef8031d4033dc16001", "score": "0.6475711", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['userId' => 'userId']);\n }", "title": "" }, { "docid": "ec87dbd030feda3fe52b45d7a865ee68", "score": "0.6472878", "text": "public function getIdutilizador0()\n {\n return $this->hasOne(User::className(), ['id' => 'idutilizador']);\n }", "title": "" }, { "docid": "d3191f93b869bf0e05a67982e743a77d", "score": "0.6472876", "text": "public function user()\n {\n return $this->hasOne('App\\User', 'id', 'id');\n }", "title": "" }, { "docid": "4951ce7ce579aa9ef37453e62d47fcb6", "score": "0.6467452", "text": "public function employee()\n {\n \treturn $this->hasOne(\"App\\Services\\Employee\\Employee\", 'id_education', 'id_education'); // onetoMany ไปยังตาราง Employee\n }", "title": "" }, { "docid": "441d31360dfd236aee68dfc543866625", "score": "0.64585", "text": "public function user()\n {\n return $this->hasOne('App\\User');\n }", "title": "" }, { "docid": "441d31360dfd236aee68dfc543866625", "score": "0.64585", "text": "public function user()\n {\n return $this->hasOne('App\\User');\n }", "title": "" }, { "docid": "23b485a2b5e310a7ca8674685184d513", "score": "0.64500153", "text": "public function user()\n\t{\n\t\treturn $this->hasOne('User', 'id', 'user_id');\n\t}", "title": "" }, { "docid": "b6ac7d335240f787a70bbee0095bad59", "score": "0.64431447", "text": "public function employee () {\n return $this->hasOne(\n 'App\\Models\\Employee',\n 'person_id',\n 'person_id'\n );\n }", "title": "" }, { "docid": "f41df2c6b932706d98da89d260f5c57a", "score": "0.6415073", "text": "public function usuario()\n\t{\n\t\treturn $this->hasOne('Usuario');\n\t}", "title": "" }, { "docid": "bb5fb3e4abcdfde68854257035de2d75", "score": "0.6412973", "text": "public function user(){\n //return $this->hasOne(nama model::class, field db dari model yang dituju, field db dari table yang dipakai skrg);\n return $this->hasOne(User::class, 'id', 'user_id');\n }", "title": "" }, { "docid": "dc63de725db17c816c158afb7c3a6afb", "score": "0.63997346", "text": "public function user()\n {\n return $this->hasOne('\\App\\Models\\User', 'id', 'user_id');\n }", "title": "" }, { "docid": "94ea716ac6addfc912884c7bc0f98870", "score": "0.63963324", "text": "public function user()\n {\n return $this->hasOne('App\\User', 'user_id', 'user_id');\n }", "title": "" }, { "docid": "9cd6f2e9fe02d5bfa17b3117e139642a", "score": "0.6385353", "text": "public function getIdUser0()\n {\n return $this->hasOne(Users::class, ['idUser' => 'idUser']);\n }", "title": "" }, { "docid": "cb3f07a759b10df910a0172570a6587d", "score": "0.6372401", "text": "public function user()\n\t{\n\t\treturn $this->hasOne('App\\Models\\User', 'id', 'user_id');\n\t}", "title": "" }, { "docid": "12b90d494d298ec3d48f46dd00fbda37", "score": "0.6363473", "text": "public function user()\n {\n return $this->hasOne('App\\User', 'id', 'user_id');\n }", "title": "" }, { "docid": "3130b769e97deb1ea163cdd3db14e6a8", "score": "0.63500154", "text": "public function getEmployee()\n {\n return $this->hasOne(Employee::className(), ['id' => 'employee_id']);\n }", "title": "" }, { "docid": "9b5e20d45e804dc33a915b9163a95e5d", "score": "0.63468", "text": "public function getUser()\n {\n return $this->hasOne(User::className(), ['id' => 'user_id'])->alias('user');\n }", "title": "" }, { "docid": "764cfbe3f04c903d5b8ff67b249a4561", "score": "0.63349384", "text": "public function getUser()\n { \n return $this->hasOne('App\\User', 'id', 'user_id');\n }", "title": "" }, { "docid": "6cffdf32f7d971d68a006b5b568af66f", "score": "0.63258654", "text": "public function eWallet()\n {\n return $this->hasOne(EWallet::class, \"user_id\", \"id\");\n }", "title": "" }, { "docid": "58821cd077e8cb1fdd457a453ff2593e", "score": "0.63168854", "text": "public function getUser()\n {\n return $this->hasOne(User::class, ['id' => 'UserId']);\n }", "title": "" }, { "docid": "f5bc67eb63c090b56c40bcbca7c28721", "score": "0.6311502", "text": "public function getUser()\n {\n return $this->hasOne(User::class, ['id' => 'user_id']);\n }", "title": "" }, { "docid": "f5bc67eb63c090b56c40bcbca7c28721", "score": "0.6311502", "text": "public function getUser()\n {\n return $this->hasOne(User::class, ['id' => 'user_id']);\n }", "title": "" }, { "docid": "f5bc67eb63c090b56c40bcbca7c28721", "score": "0.6311502", "text": "public function getUser()\n {\n return $this->hasOne(User::class, ['id' => 'user_id']);\n }", "title": "" }, { "docid": "c53d5d67a6bbea2be46ce641dec7c96d", "score": "0.6295839", "text": "public function getUser()\n {\n return $this->hasOne(AdminUser::class, ['id' => 'company_id']);\n }", "title": "" }, { "docid": "c53d5d67a6bbea2be46ce641dec7c96d", "score": "0.6295839", "text": "public function getUser()\n {\n return $this->hasOne(AdminUser::class, ['id' => 'company_id']);\n }", "title": "" }, { "docid": "61a74397ea487d8708407b9b97c6b676", "score": "0.6288554", "text": "public function emprunteur(){\n return $this->belongsTo('medianetapp\\model\\User', 'id_User');\n }", "title": "" }, { "docid": "668d204749d4381d044150aa901c9603", "score": "0.6276844", "text": "public function cas()\n {\n return $this->hasOne('App\\User', 'id', 'id_user')->first();\n }", "title": "" }, { "docid": "12731457cbd362d39d3606306937ba18", "score": "0.6253763", "text": "public function user()\n\t{\n\t\treturn $this->hasOne('App\\User','role_id','id');\n\t}", "title": "" }, { "docid": "9d5cd20c32291142ea2f820d6cba4c5a", "score": "0.62469226", "text": "public function usuario()\n {\n return $this->hasOne('App\\Users', 'id', 'idUsuario');\n }", "title": "" }, { "docid": "ec998fe0e6de74d1d56332bd8d585dd0", "score": "0.62173885", "text": "public function getUsuario()\n {\n return $this->hasOne(Usuario::className(), ['id' => 'id_usuario']);\n }", "title": "" }, { "docid": "da6859b6afcbf7de0a39faf5e54cb0fc", "score": "0.62104243", "text": "public function accountUser()\n {\n return $this->hasOne('App\\Models\\User', 'id', 'user_id');\n }", "title": "" }, { "docid": "3d154b66863f9d361786f476a2a21cf6", "score": "0.6200289", "text": "public function getForUser()\n {\n return $this->hasOne(User::className(), ['id' => 'for_user_id']);\n }", "title": "" }, { "docid": "411b1d1c20852dab933b2560ef8fb684", "score": "0.6181436", "text": "public function getCreatedBy()\n {\n return $this->hasOne(User::className(), ['id' => 'created_by']);\n }", "title": "" }, { "docid": "411b1d1c20852dab933b2560ef8fb684", "score": "0.6181436", "text": "public function getCreatedBy()\n {\n return $this->hasOne(User::className(), ['id' => 'created_by']);\n }", "title": "" }, { "docid": "b42a5b3391915c055db6d9769f976122", "score": "0.61782897", "text": "public function users(){\n $this->hasOne('App\\Model\\User');\n }", "title": "" }, { "docid": "0808f7da6858ef4fa71df71157dca6b4", "score": "0.614656", "text": "public function getByUser()\n {\n return $this->hasOne(User::className(), ['id' => 'by_user_id']);\n }", "title": "" }, { "docid": "1fc7a8775d0f376da217e19671066663", "score": "0.6144957", "text": "public function user()\n {\n return $this->belongsTo('App\\User', 'personnel_no', 'personnel_no' );\n }", "title": "" }, { "docid": "d770d9c496dc0b5e2fbd39d26e62809b", "score": "0.61338836", "text": "public function users(): HasOne\n\t{\n\t\treturn $this->hasOne('App\\User','id','user_id');\n\t}", "title": "" }, { "docid": "e2115e981ca9e690fd627977cad608ce", "score": "0.61328137", "text": "public function user() {\n \treturn $this->belongsTo('oval\\User');\n }", "title": "" }, { "docid": "adf0f90d9e27afc09f86d57336a3b24c", "score": "0.61196846", "text": "public function create_user(){\n return $this->hasOne(User::class, 'id', 'created_by');\n }", "title": "" }, { "docid": "d07ad64a149929ae189712425fa49df9", "score": "0.61195755", "text": "public function user_employee()\n {\n return $this->hasMany(Useremployees::class,'user_sdca_id','uEmp_id');\n }", "title": "" }, { "docid": "2cce9df366bb5975327cb8e412928d42", "score": "0.61040586", "text": "public function user()\n {\n return $this->hasOne('App\\User', 'id', 'uid');\n }", "title": "" }, { "docid": "c1f6b47bbe571ea3c6de3101cb126f34", "score": "0.61032474", "text": "public function User()\n {\n \treturn $this->belongsTo('App\\Models\\User', 'id_penulis');\n }", "title": "" }, { "docid": "1455ecd90c17207cdacb2cc85697d6c6", "score": "0.60976654", "text": "public function user()\n\t{\n\t\treturn $this->belongsToOne('Hubzero\\User\\User', 'user_id');\n\t}", "title": "" }, { "docid": "d5861ea48f1c3850d3b2255deb5d100d", "score": "0.60965747", "text": "public function getCreatedBy0()\n {\n return $this->hasOne(User::className(), ['id' => 'createdBy']);\n }", "title": "" }, { "docid": "d06329ba05390953719f3a5abea2e513", "score": "0.60877", "text": "public function user()\n {\n return $this->belongsTo('Voiture\\Entities\\User');\n }", "title": "" }, { "docid": "833964d52e6b37bb92a9401a3569cc3f", "score": "0.6071338", "text": "public function user() {\n # Define a one-to-many relationship.\n return $this->belongsTo('\\P4\\User');\n }", "title": "" }, { "docid": "2941c658efa8688ae5ff3982743a2991", "score": "0.6059408", "text": "public function getUserEmployee()\n {\n return $this->belongsToMany(User::class, 'enterprise_employee', 'user_id', 'user_id');\n }", "title": "" }, { "docid": "e7c772eca8d005c77a528f4e37e30c7f", "score": "0.60586506", "text": "public function users(): HasOne\n {\n return $this->hasOne(User::class);\n }", "title": "" }, { "docid": "58e0a23546b8c8e857dfd8d5f82e2eb9", "score": "0.6040256", "text": "public function userofinfo()\n {\n return $this->hasOne('App\\Model\\userofinfo');\n }", "title": "" } ]
2a17a1e583ce9d810ba4a5161be909da
When iframe or header_redirect is being used
[ { "docid": "1b90d323010ceb12b803f0a6aa604f68", "score": "0.0", "text": "function extract_real_url_from_cloaker_response() {\n global $response;\n\n $redirect_pattern = \"|window.location='(.*?)';|\";\n if (preg_match($redirect_pattern, $response, $matches)) {\n return $matches[1];\n }\n\n $iframe_pattern = \"|<iframe src='(.*?)'|\";\n if (preg_match($iframe_pattern, $response, $matches)) {\n return $matches[1];\n }\n\n $paste_html_pattern = '|ru=\"(.*?)\";|';\n if (preg_match($paste_html_pattern, $response, $matches)) {\n return base64_decode($matches[1]);\n }\n}", "title": "" } ]
[ { "docid": "62394b197ac621ea4698d335ad114880", "score": "0.6550273", "text": "function send_frame_options_header() {\n\t@header( 'X-Frame-Options: SAMEORIGIN' );\n}", "title": "" }, { "docid": "62394b197ac621ea4698d335ad114880", "score": "0.6550273", "text": "function send_frame_options_header() {\n\t@header( 'X-Frame-Options: SAMEORIGIN' );\n}", "title": "" }, { "docid": "a739c548c9277d1ce8faaa227506483d", "score": "0.65136105", "text": "private function _setFrameHeader()\n {\n header('X-Frame-Options: deny');\n }", "title": "" }, { "docid": "20680e33dcaaef24733c681b70c273ad", "score": "0.6380546", "text": "function check_iframe_origin($app) {\n $config = $GLOBALS['dw_config'];\n if (!empty($config['prevent_chart_preview_in_iframes'])) {\n // prevent this url from being rendered in iframes on different\n // domains, mainly to protect server resources\n $response = $app->response();\n $response['X-Frame-Options'] = 'SAMEORIGIN';\n $headers = $app->request()->headers();\n if (isset($config['allow_preview_domains']) && isset($headers['REFERER'])) {\n $referrer = $headers['REFERER'];\n $url = parse_url($referrer);\n $allow_hosts = $config['allow_preview_domains'];\n if (in_array($url['host'], $allow_hosts)) {\n unset($response['X-Frame-Options']);\n }\n }\n }\n}", "title": "" }, { "docid": "45c09eb0ca7a94221242f584e29bf6df", "score": "0.60726684", "text": "public function intercept_redirect_page() : void {\n\t\t// $wp->request global not set yet, have to use this.\n\t\t$server_request = filter_input( INPUT_SERVER, 'REQUEST_URI', FILTER_VALIDATE_DOMAIN );\n\t\t$request_path = wp_parse_url( $server_request, PHP_URL_PATH );\n\t\t$request_referer = wp_get_raw_referer();\n\n\t\tidg_notify_error(\n\t\t\t'ContentHub',\n\t\t\t'intercept redirect page',\n\t\t\t[\n\t\t\t\t'server_request' => $server_request,\n\t\t\t\t'request_path' => $request_path,\n\t\t\t\t'request_referer' => $request_referer,\n\t\t\t]\n\t\t);\n\n\t\tif ( '/auth/delivery/callback' !== $request_path || ! $request_referer ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! is_user_logged_in() && ! current_user_can( 'administrator' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// phpcs:ignore WordPress.PHP.DontExtract.extract_extract -- Sorry, but this makes things easier and data comes from known source.\n\t\textract( wp_parse_url( $request_referer ) );\n\n\t\tif ( ! empty( $port ) ) {\n\t\t\t$host .= \":$port\";\n\t\t}\n\n\t\t$publications = Sites::get_publications( true );\n\t\t$matching_host = false;\n\n\t\tforeach ( $publications as $publication ) {\n\t\t\t$term_host = get_term_meta( $publication->term_id, Sites::TERM_META_HOST, true );\n\n\t\t\tif ( preg_replace( '#^www\\.(.+\\.)#i', '$1', $host ) === $term_host ) {\n\t\t\t\t$matching_host = $publication;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tidg_notify_error(\n\t\t\t'ContentHub',\n\t\t\t'Check intercept host',\n\t\t\t[\n\t\t\t\t'publications' => $publications,\n\t\t\t\t'host' => $host,\n\t\t\t\t'matching_host' => $matching_host,\n\t\t\t]\n\t\t);\n\n\t\tif ( ! $matching_host ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$code = filter_input( INPUT_GET, 'code', FILTER_SANITIZE_STRING );\n\t\t$client_id = get_term_meta( $matching_host->term_id, Sites::TERM_META_CLIENT, true );\n\n\t\t$access_token_uri = self::create_access_token_uri( \"https://$host\", $client_id, $code );\n\n\t\t$response = wp_remote_post( $access_token_uri );\n\n\t\tidg_notify_error(\n\t\t\t'ContentHub',\n\t\t\t'Check intercept response',\n\t\t\t[\n\t\t\t\t'access_token_uri' => $access_token_uri,\n\t\t\t\t'response' => $response,\n\t\t\t]\n\t\t);\n\n\t\tupdate_term_meta( $matching_host->term_id, Sites::TERM_META_ACCESS_TOKEN, $response['body'] );\n\n\t\t$redirect_to = get_site_url() . \"/wp-admin/term.php?taxonomy=publication&tag_ID=$matching_host->term_id\";\n\n\t\twp_safe_redirect( $redirect_to );\n\t\texit;\n\t}", "title": "" }, { "docid": "11342bb3d9e2eeba4772e49ba345d956", "score": "0.60032004", "text": "public function getIframeUrl() \n {\n $sIframeUrl = $this->_oFcpoHelper->fcpoGetSessionVariable('fcpoRedirectUrl');\n if($sIframeUrl) {\n return $sIframeUrl;\n } else {\n /* Maybe needed for future payment-methods\n $oOrder = $this->getOrder();\n if($oOrder) {\n return $oOrder->fcHandleAuthorization(true);\n }\n */\n $oConfig = $this->getConfig();\n $oUtils = $this->_oFcpoHelper->fcpoGetUtils();\n $oUtils->redirect($oConfig->getShopCurrentURL().'&cl=payment');\n }\n }", "title": "" }, { "docid": "b55be6df651807b5df603498e4fb5279", "score": "0.5965004", "text": "function ui_indirect_response($url, $response) {\n global $openid_ns_to_alias;\n if (!array_key_exists(OPENID_NS_UI, $openid_ns_to_alias)) return NULL;\n \n // Cheat - if we run this, then the redirect page will also be themed!\n _ui_insert_css_js();\n \n if (strstr($url, '#')) {\n return OPENID_RESPONSE_FRAGMENT;\n } else {\n return NULL;\n }\n}", "title": "" }, { "docid": "cb9edf040688e19d5b1a57bb740b7962", "score": "0.5953054", "text": "function mwtsn_example_send_headers() {\n\t\theader( 'X-FRAME-OPTIONS: SAMEORIGIN' );\n\t}", "title": "" }, { "docid": "bd00ea8adadce84bad734d4379058c95", "score": "0.58901083", "text": "function redirectParent($url)\n {\n if(QUICK_REDIRECT !== false){\n @header( \"Location: {$url}\" );\n print \"<script type='text/javascript'>window.parent.location = '{$url}';</script>\";\n }\n print \"<span style='font:12px verdana'>\";\n print \"Please click here to continue: <a href='{$url}'>Continue!</a>\\n\";\n\t\tprint \"</span>\";\n die;\t\t\n }", "title": "" }, { "docid": "48cef7d38ef7553b89bc88727f27d05e", "score": "0.5870026", "text": "protected function _canRedirect()\n {\n return false;\n }", "title": "" }, { "docid": "3ee832e33536d47fe228e0a065dda92e", "score": "0.5831194", "text": "public function isTransparentRedirect()\n {\n return false;\n }", "title": "" }, { "docid": "59c92cb2c63582b62d2e8dd5e6faf2c6", "score": "0.5815216", "text": "public function isTransparentRedirect()\n {\n return true;\n }", "title": "" }, { "docid": "f93e9c38be6c057f0363950ca26a910b", "score": "0.5810554", "text": "public function isRedirect();", "title": "" }, { "docid": "8167d2b0dfdc00b82d2a432a64925aee", "score": "0.574214", "text": "public function isRedirect(): bool;", "title": "" }, { "docid": "888a6fd961307cc43f43f94eb4c124f2", "score": "0.57303673", "text": "function _returnHeader(){\n\n //odeslani headeru\n if(isset($_GET['_return']) and $_GET['_return']!=\"\"){\n $_GET['_return']=_htmlStrUndo($_GET['_return']);\n if(preg_match(\"/^index.php\\?m=(settings|editpost|messages)/\", $_GET['_return'])){$_GET['_return']=\"\";}\n header(\"location: \"._indexroot.urldecode($_GET['_return'])); exit;\n }\n else{\n if(isset($_SERVER['HTTP_REFERER']) and $_SERVER['HTTP_REFERER']!=\"\"){header(\"location: \".$_SERVER['HTTP_REFERER']); exit;}\n else{header(\"location: \"._indexroot); exit;}\n }\n\n}", "title": "" }, { "docid": "8f0f10f59fbff9a55f47b2607d414eee", "score": "0.57194954", "text": "function verify_process_func($atts){\n\t\n\t//@session_start();\n\t$html='<iframe scrolling=\"no\" src=\"'.''.'verify-social-frontpage.php\" width=\"500px\" height=\"400\"></iframe>';\n\techo $html;\n\t//return $html;\n \n}", "title": "" }, { "docid": "82b88c10a85641e7150bd21e63caa41a", "score": "0.5716391", "text": "public function testXframeOptionsIsSameOrigin() {\n $form['seckit_clickjacking[x_frame]'] = SECKIT_X_FRAME_SAMEORIGIN;\n $this->drupalPostForm('admin/config/system/seckit', $form, t('Save configuration'));\n $this->assertEqual('SAMEORIGIN', $this->drupalGetHeader('X-Frame-Options'), t('X-Frame-Options is set to SAMEORIGIN.'));\n }", "title": "" }, { "docid": "3a7d008cb38234f3fb285a9f10cbbfff", "score": "0.56819415", "text": "function unauthorized_Redirect($url)\n{\n if( !headers_sent() ){\n echo header('Location: '.$url); //, TRUE, 302\n exit;\n }else{\n echo '<script type=\"text/javascript\">';\n echo 'window.location.href=\"/'.$url.'\";';\n echo '</script>';\n echo '<noscript>';\n echo '<meta http-equiv=\"refresh\" content=\"0;url='.$url.'\" />';\n echo '</noscript>';\n exit;\n }\n}", "title": "" }, { "docid": "5ee0715184b94f5ebab5f68efff4a257", "score": "0.56807977", "text": "public function hookHeader()\n {\n //$this->context->controller->addJS(($this->_path) . 'js/homeadvslide.js');\n }", "title": "" }, { "docid": "3f0c8ae063cc52ac0399846f02361206", "score": "0.56704533", "text": "public function testXframeOptionsIsSameOrigin() {\n $form['seckit_clickjacking[x_frame]'] = SeckitInterface::X_FRAME_SAMEORIGIN;\n $this->drupalPostForm('admin/config/system/seckit', $form, t('Save configuration'));\n $this->assertSession()->responseHeaderEquals('X-Frame-Options', 'SAMEORIGIN');\n }", "title": "" }, { "docid": "c5eb121b529d879715f19c7391d2c148", "score": "0.56200916", "text": "function customizations_pm_forward() {\n\tif (get_input('pm_widget') == true) {\n\t\treturn $_SERVER['HTTP_REFERER'];\n\t}\n}", "title": "" }, { "docid": "37aa0a1946d5729e231a5a8323e3a55a", "score": "0.56174797", "text": "public function isRedirect(): bool\n {\n return false;\n }", "title": "" }, { "docid": "fb6b1e03484323be2e98d2bea612e5b1", "score": "0.5605693", "text": "public function optionalRedirect() {\n $hc=$this->helper;\n \n if ( array_key_exists(\"targetUri\",$this->session) ) {\n $r=$this->session[\"targetUri\"];\n unset($this->session[\"targetUri\"]);\n //return false;// turn this off for DEBUG\n $hc::makeRedirect($r,$this->c);\n return ( \"redirected to \".$r );\n }\n return false;\n }", "title": "" }, { "docid": "bb9c522af4bf8f8326780609357e791f", "score": "0.56040084", "text": "function wp_body_open() {\n\t?>\n<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-P24PF4B\" height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>\n\t<?php\n}", "title": "" }, { "docid": "448ffef2d1cfbb55b47065d4dd52bf54", "score": "0.559653", "text": "function cb_child_do_header()\n{\n cb_child_process_location('header', true);\n}", "title": "" }, { "docid": "a216286e72b275ac6e33fda76fa9de39", "score": "0.5589857", "text": "abstract protected function redirect();", "title": "" }, { "docid": "ac07b9422a2daec150db3c5fd245ec1e", "score": "0.55819225", "text": "public function allowCoreModalIframe()\n {\n echo '\n <div class=\"media-modal-backdrop-mbh\" style=\"display:none;\"></div>\n <div id=\"metaboxHelperContainer\">\n <iframe id=\"metaboxHelper_frame\" src=\"\" width=\"100%\" height=\"800\" frameborder=\"0\"></iframe>\n <a class=\"dashicons dashicons-no-alt button mbh-close-modal\"></a>\n </div>\n ';\n }", "title": "" }, { "docid": "586c5e36490b46d6699bdd676021950e", "score": "0.5577553", "text": "function template_redirect()\r\n\t{\r\n\t\tglobal $wp_query;\r\n\t\tglobal $lightseop_options;\r\n\r\n\t\t$post = $wp_query->get_queried_object();\r\n\r\n\t\tif ($this->lightseop_mrt_exclude_this_page())\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (is_feed())\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (is_single() || is_page())\r\n\t\t{\r\n\t\t\t$lightseo_disable = htmlspecialchars(stripcslashes(get_post_meta($post->ID, '_lightseop_disable', true)));\r\n\t\t\t\r\n\t\t\tif ($lightseo_disable)\r\n\t\t\t{\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif ($lightseop_options['lightseo_rewrite_titles'])\r\n\t\t{\r\n\t\t\tob_start(array($this, 'output_callback_for_title')); // this ob_start is matched with ob_end_flush in wp_head\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "80d01ab174e05937ed2bad041f6185b5", "score": "0.556307", "text": "function silp_dashboard_page() {\n\n?>\n\t<iframe src=\"http://admin.shootitlive.com/projects\" frameBorder=\"0\" marginwidth=\"0px\" marginheight=\"0px\" scrolling=\"yes\" width=\"100%\" height=\"100%\"></iframe>\n\n<?php }", "title": "" }, { "docid": "20f0d998992f2f8e9cdd12d1331d7575", "score": "0.5561455", "text": "public function isCampaignRedirectForced();", "title": "" }, { "docid": "60d1fdae85fe07723d59432cc52c4411", "score": "0.55552477", "text": "function sso_footer() {\n\t$redirect=get_permalink();\n\t$loginUrl=sso_connect::login_url($redirect);\n\t$content=sso_connect::frame($redirect,$loginUrl);\n\techo $content;\n}", "title": "" }, { "docid": "63e8fd48b76de31cca79805450fc38d9", "score": "0.55541766", "text": "public function isRedirect()\n {\n return $this->is3xx();\n }", "title": "" }, { "docid": "eb5a920a1baace44927648a49072a439", "score": "0.5545175", "text": "public function prevent_header_already_sent_problem() {\r\n ob_start() ;\r\n }", "title": "" }, { "docid": "ac702b63259b8153e07f40c4a754d05c", "score": "0.5539051", "text": "public function getFrameActionUrl()\n {\n // should work only if the extension is enabled and if we are in process of\n // order review block rendering for paypal advanced payment methods\n if (Mage::registry('aitcheckout_paypal_review_block_rendering')\n && $this->_aitcheckoutIsEnabled()\n ) {\n return self::IFRAME_URL_REPLACEMENT;\n } else {\n return parent::getFrameActionUrl();\n }\n }", "title": "" }, { "docid": "3997798e5073f63bf46ef4462ca69c58", "score": "0.5528464", "text": "public function testRedirectHeadersAlreadySent()\n {\n $backendMatcher = new RequestMatcher('/contao', 'test.com', null, ['192.168.1.0']);\n $frontendMatcher = new RequestMatcher('/index', 'test.com', null, ['192.168.1.0']);\n\n $scopeMatcher = new ScopeMatcher($backendMatcher, $frontendMatcher);\n\n $request = new \\Symfony\\Component\\HttpFoundation\\Request();\n\n $requestStack = new RequestStack();\n $requestStack->push($request);\n\n System::getContainer()->set('huh.request', new Request($this->mockContaoFramework(), $requestStack, $scopeMatcher));\n\n $urlUtil = new UrlUtil($this->mockContaoFramework());\n $this->assertSame(UrlUtil::TERMINATE_HEADERS_ALREADY_SENT, $urlUtil->redirect('/test?foo=bar&amp;test=123', 301, true));\n }", "title": "" }, { "docid": "829e6f7c2ef4d4219346648e85abcca0", "score": "0.5526677", "text": "function _redirect_screen($title, $url, $text = null, $intermediary_hop = false, $msg_type = 'inform')\n{\n if (is_object($url)) {\n $url = $url->evaluate();\n }\n\n global $ATTACHED_MESSAGES_RAW;\n $special_page_type = get_param_string('special_page_type', 'view');\n\n foreach ($ATTACHED_MESSAGES_RAW as $message) {\n $_message = is_object($message[0]) ? $message[0]->evaluate() : escape_html($message[0]);\n if (($_message != '') && ($_message != do_lang('_REDIRECTING')) && (strpos($_message, 'cancel_sw_warn') === false)) {\n $GLOBALS['SITE_DB']->query_insert('messages_to_render', array(\n 'r_session_id' => get_session_id(),\n 'r_message' => $_message,\n 'r_type' => $message[1],\n 'r_time' => time(),\n ));\n }\n }\n\n // Even if we have $FORCE_META_REFRESH we want to relay $text if provided --- our delay is zero so it won't be read in time by most users\n if (!is_null($text)) {\n $_message = is_object($text) ? $text->evaluate() : escape_html($text);\n if (($_message != '') && ($_message != do_lang('_REDIRECTING')) && (strpos($_message, 'cancel_sw_warn') === false)) {\n $GLOBALS['SITE_DB']->query_insert('messages_to_render', array(\n 'r_session_id' => get_session_id(),\n 'r_message' => $_message,\n 'r_type' => $msg_type,\n 'r_time' => time(),\n ));\n }\n }\n\n if (!$intermediary_hop) {\n $hash_pos = strpos($url, '#');\n if ($hash_pos !== false) {\n $hash_bit = substr($url, $hash_pos);\n $url = substr($url, 0, $hash_pos);\n } else {\n $hash_bit = '';\n }\n extend_url($url, 'redirected=1');\n $url .= $hash_bit;\n }\n\n if (is_null($text)) {\n $text = do_lang_tempcode('_REDIRECTING');\n }\n\n require_code('site2');\n assign_refresh($url, 0.0);\n return do_template('REDIRECT_SCREEN', array('_GUID' => '44ce3d1ffc6536b299ed0944e8ca7253', 'URL' => $url, 'TITLE' => $title, 'TEXT' => $text));\n}", "title": "" }, { "docid": "442acb2f1b76f2bd9c05b459ff8c79be", "score": "0.54848456", "text": "public function isRedirect()\n {\n return false;\n }", "title": "" }, { "docid": "678286320c639d740101f24b2d545f17", "score": "0.5481825", "text": "protected abstract function set_content_header();", "title": "" }, { "docid": "aa0527a59b5331c87316cb3cd28cf841", "score": "0.54793", "text": "public function checkReferer();", "title": "" }, { "docid": "53a502cf83fd2464dc429e50dcdd676b", "score": "0.54779774", "text": "function fn_twigmo_redirect_complete()\n{\n if (\n isset($_REQUEST['dispatch'])\n and $_REQUEST['dispatch'] == 'twigmo.post'\n and $_SERVER['REQUEST_METHOD'] == 'POST'\n and !empty($_SESSION['cache_mobile_frontend'])\n ) {\n fn_define('META_REDIRECT', true);\n }\n}", "title": "" }, { "docid": "06c7c6e6c614b0f3b16abb4fb71b9b76", "score": "0.54763544", "text": "function check_page_protocol($protocol_id, $protocol_type)\r\n{\r\n\tif($protocol_id == 0//should be used http\r\n\t&& $protocol_type != 'http')//but used https\r\n\t{\r\n\t\theader('Location: http://'.EE_HTTP_HOST.$_SERVER['REQUEST_URI'], true, 301);\r\n\t\texit;\r\n\t}\r\n\telse if($protocol_id == 1//should be used http\r\n\t&& $protocol_type != 'https')//but used https\r\n\t{\r\n\t\theader('Location: https://'.EE_HTTP_HOST.$_SERVER['REQUEST_URI'], true, 301);\r\n\t\texit;\r\n\t}\r\n\t//if $protocol_id == 2 do nothing\r\n}", "title": "" }, { "docid": "da9a40686d9feedf51565e3ca9912356", "score": "0.5469801", "text": "function should_hide_iframes()\n{\n //Remove the MySites module\n if (file_exists('modules/iFrames/iFrame.php')) {\n if (!class_exists('iFrame')) {\n require_once 'modules/iFrames/iFrame.php';\n }\n\n return false;\n }\n\n return true;\n}", "title": "" }, { "docid": "c135c3e9b8cafbb8d1c97e000f1c2357", "score": "0.54578674", "text": "function silex_set_no_flash_permalink(){\r\n\t$_SESSION['no_flash_permalink'] = silex_get_link_to_this_page(false);\r\n}", "title": "" }, { "docid": "6f2028ef60d6af248c08041e7c2b9e31", "score": "0.5449236", "text": "function viddler_page() {\n\tif ( isset( $_GET['noheader'] ) )\n\t\treturn viddler_dashboard_content();\n}", "title": "" }, { "docid": "3e4fc7bce71a59947cc8c31375cdf22c", "score": "0.544489", "text": "function processFallback(){\n header(\"Location: fallback.php\");\n die();\n}", "title": "" }, { "docid": "688a18061264c1f7b7c8122fe6b36ebd", "score": "0.5443196", "text": "public function canSeeResponseCodeIsRedirection(): void {\n $this->getScenario()->runStep(new \\Codeception\\Step\\ConditionalAssertion('seeResponseCodeIsRedirection', func_get_args()));\n }", "title": "" }, { "docid": "19f17531dcf7e582ead2ade47c68425f", "score": "0.5426459", "text": "public function switchToIFrame(?string $name = null);", "title": "" }, { "docid": "b69aeea33a20f3fdc397f8e6e9657f74", "score": "0.54201585", "text": "public function kernel_response(Event $event) {\n $current_path = \\Drupal::service('path.current')->getPath();\n $patterns = \"/webform_embed/displayForm/*\\n/form/*\";\n $match = \\Drupal::service('path.matcher')->matchPath($current_path, $patterns);\n\n if ($match == TRUE) {\n $response = $event->getResponse();\n $response->headers->remove('X-Frame-Options');\n }\n }", "title": "" }, { "docid": "879e7011a547ced00eeb827744577752", "score": "0.5418115", "text": "public function initContent()\n {\n if (isset($this->context->cookie->kb_redirect_error)) {\n $this->errors[] = $this->context->cookie->kb_redirect_error;\n unset($this->context->cookie->kb_redirect_error);\n }\n\n if (isset($this->context->cookie->kb_redirect_success)) {\n $this->confirmations[] = $this->context->cookie->kb_redirect_success;\n unset($this->context->cookie->kb_redirect_success);\n }\n \n\n parent::initContent();\n }", "title": "" }, { "docid": "f36a4e6c12deb2bc96d344c84f0fb2bd", "score": "0.5416623", "text": "function FEEFO_wc_load_in_frame( $url_to_render ) {\n\n ?>\n <style>\n body {\n margin: 0px;\n padding: 0px;\n }\n\n /* iframe's parent node */\n div#root {\n position: fixed;\n width: 100%;\n height: 100%;\n }\n\n /* iframe itself */\n div#root > iframe {\n display: block;\n width: 100%;\n height: 100%;\n border: none;\n }\n </style>\n\n <div id=\"root\">\n <iframe src=\"<?php echo $url_to_render; ?>\" >\n Your browser does not support inline frames.\n </iframe>\n </div>\n <?php\n}", "title": "" }, { "docid": "75553b9448d70c3fb735d7d0906da01b", "score": "0.5400385", "text": "function moodle_sso_request_auth() {\n\t$moodle_url = elgg_get_plugin_setting('moodle_url', 'moodle_sso');\n\t$referer = $_SERVER['HTTP_REFERER'];\n\n\tif (strstr($referer, $moodle_url)) {\n\t\t// Save the Moodle address that user came from\n\t\t$_SESSION['moodle_sso_referer_url'] = $_SERVER['HTTP_REFERER'];\n\t}\n\n\t$url = urlencode(current_page_url());\n\n\t$request = \"{$moodle_url}/local/elgg_sso/?url={$url}\";\n\n\theader(\"Location: {$request}\");\n\texit;\n}", "title": "" }, { "docid": "557533c0aee8cd4222487df55a1c029e", "score": "0.5390524", "text": "function bi_Redirect($src='', $result=''){\r\nglobal $bi_Forms,$bi_Pagename,$action,$bi_Cookie,$FmtPV;\r\n\tif ($src=='ajax' || $FmtPV['$bi_Mode']=='ajax') { bi_AjaxRedirect($result); } #don't redirect ajax requests, just send back json object\r\n\t$history = ( $_POST['cancel'] && in_array($_REQUEST['target'],$bi_Forms) ?@$_COOKIE[$bi_Cookie.'back-2'] :@$_COOKIE[$bi_Cookie.'back-1'] );\r\n\t#use $src if provided, or history is empty; use pagename if $src and history are empty; use history if no $src and history exists.\r\n\t$r = ($src>''||empty($history) ?FmtPageName('$PageUrl', bi_BasePage($src>'' ?$src :$bi_Pagename)) :$history);\r\n\tbi_debugLog('Redirecting: '.$r);\r\n\theader(\"Location: $r\");\r\n\theader(\"Content-type: text/html\");\r\n\techo \"<html><head><meta http-equiv='Refresh' Content='URL=$r' /><title>Redirect</title></head><body></body></html>\";\r\n\texit;\r\n}", "title": "" }, { "docid": "10be2d8fcbaa391c321c250974fda2b1", "score": "0.538994", "text": "public function Opener(){\n \n $root= new impostazioni();\n \n if($_SESSION['urlon']!=\"\"){\n $url=$_SESSION['urlon'];\n }else{\n\t $url= $root->RootDir().'home.php';\n\t }\n$frame=\"<iframe id='Logtec' src='\".$url.\" ' style='width:100%;height:90%' frameBorder='0' > </iframe>\";\n\nreturn $frame;\n\n\n }", "title": "" }, { "docid": "99e55c5afdc875f0ff42bd53a7f3e720", "score": "0.53795254", "text": "function redirectPageURL(string $URL) : void{\n header(\"Location: \" . $URL);\n\t\t\\BoostPHP\\output('<script>document.location=\"' . $URL . '\";window.location=\"' . $URL . '\";location.href=\"' . $URL . '\";</script>');\n\t\t\\BoostPHP\\output('<noscript><meta http-equiv=\"refresh\" content=\"0;URL=\\'' . $URL . '\\'\" /></nocript>');\n }", "title": "" }, { "docid": "179e1d3ee40995980ea0ef126856a846", "score": "0.53773844", "text": "function redirect($url){\n if (headers_sent()){\n die('<script type=\"text/javascript\">window.location=\\''.$url.'\\';</script>');\n }else{\n header('Location: ' . $url);\n die();\n }\n}", "title": "" }, { "docid": "c8b98ac24308e585000efc6f70927f35", "score": "0.53712356", "text": "public function stackHTTPHeaders(){\r\n $this->log(\"Entering method \".__METHOD__);\r\n parent::setRedirectHeaderCode($this->_causeCode);\r\n $this->log(\"Exiting method \".__METHOD__);\r\n }", "title": "" }, { "docid": "ea51157ae05e43052d9856108916f95d", "score": "0.53467953", "text": "function piczasso_page()\r\n{\r\n$pl = plugin_dir_url( __FILE__ );\r\n\r\n?>\r\n<a href=\"http://www.piczasso.com/\"><img src=\"<?= $pl; ?>logo.png\" border=\"0\" width=\"300\" height=\"69\"></a><br>\r\n<iframe name=\"piczasso\" src=\"<?= $pl; ?>api.php\" marginwidth=\"1\" marginheight=\"1\" height=\"400\" width=\"300\" title=\"PicZasso\" scrolling=\"no\" border=\"0\" frameborder=\"0\">\r\nIframe Error\r\n</iframe><br>\r\n<span style=\"font-size: 10px; color: #6F942B;\">PicZasso is the photo sharing service where you can easily upload your photos for free. <a target=\"_blank\" style=\"color: #1f3806; text-decoration: none;\" href=\"http://www.piczasso.com/\">&copy; 2009-2010 Piczasso</a><br>Plugin for Wordpress (based on PicZasso API) <a target=\"_blank\" style=\"color: #1f3806; text-decoration: none;\" href=\"http://www.vievern.com/\">&copy; 2011 Vievern</a></span>\r\n<?\r\n}", "title": "" }, { "docid": "ad0cf6a82dbd89c9c5a1b0a54be1147a", "score": "0.5344821", "text": "protected function _loginRedirect($include_redirect = true) {\n\t\t\n\t}", "title": "" }, { "docid": "617bf3cfe1d29710e71a25a5b570ba33", "score": "0.53340894", "text": "function beforeAction () {\n\t\t//$this->doNotRenderHeader = true;\n\t}", "title": "" }, { "docid": "5857901443f483a8381aa1e5e8c4c931", "score": "0.5331735", "text": "protected function overrideMMLoginRedirect() {\n\t\tif ( class_exists( \"MM_CorePageEngine\" ) ) {\n\t\t\tif ( defined( \"DOING_AJAX\" ) && DOING_AJAX ) {\n\t\t\t\tparse_str( parse_url( $_REQUEST['referer'], PHP_URL_QUERY ) );\n\t\t\t\t// if query string for login has a mousefireRedirect specified, send us there\n\t\t\t\tif ( isset( $mousefireRedirect ) ) {\n\t\t\t\t\tMM_Session::value( 'redirect_to', $_REQUEST['referer'] );\n\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b955535490a06709f63e871996f879fe", "score": "0.5315862", "text": "function error_check ( $nextURL, $redirect = true ) {\n global $error;\n\n $ret = '';\n if ( ! empty ( $error ) ) {\n print_header ( '', '', '', true );\n $ret .= '\n <h2>' . print_error ( $error ) . '</h2>';\n } else {\n if ( $redirect )\n do_redirect ( $nextURL );\n\n $ret .= '<html>\n <head></head>\n <body onload=\"alert( \\'' . translate ( 'Changes successfully saved', true )\n . '\\' ); window.parent.location.href=\\'' . $nextURL . '\\';\">';\n }\n return $ret . '\n </body>\n</html>';\n}", "title": "" }, { "docid": "08749d2eed0397194dacad3c6061e59d", "score": "0.5314293", "text": "function the_header(){\ndo_action('vibe_header');\n}", "title": "" }, { "docid": "5cb7d0b847927260f9167a5ea8e2dcf1", "score": "0.5311848", "text": "function redirect($location){\n\t\t\techo \"<meta http-equiv='refresh' content='0;url=$location' />\";\n\t\t\techo \"loading...\";\n\t\t\texit;\n\t\t}", "title": "" }, { "docid": "f7b0fc90a8dc6244523c0fa94fa0261a", "score": "0.5305139", "text": "function _noChange(){\n\t\t$mainframe = MainFrame::getInstance();\n\t\t;\n\n\t\t// Send not modified header and exit gracefully\n\t\theader('HTTP/1.x 304 Not Modified', true);\n\t\t$mainframe->close();\n\t}", "title": "" }, { "docid": "9f62bc888b6bd0ecaa31e449e396414f", "score": "0.5304322", "text": "public function before()// feng jia\n {\n// {\n// $this->url = $_GET['redirecturl'];\n//\n// }\n// else\n// {\n// $this->url = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/phone/member/linkman/index';\n//\n// }\n\n }", "title": "" }, { "docid": "5c5ba7c573aebc6040bf5100c75e20ec", "score": "0.53006375", "text": "function redirect($url) {\n\t\tif (!headers_sent())\n\t\theader('Location: '.$url);\n\t\telse {\n\t\t\techo '<script type=\"text/javascript\">';\n\t\t\techo 'window.location.href=\"'.$url.'\";';\n\t\t\techo '</script>';\n\t\t\techo '<noscript>';\n\t\t\techo '<meta http-equiv=\"refresh\" content=\"0;url='.$url.'\" />';\n\t\t\techo '</noscript>';\n\t\t}\n\t}", "title": "" }, { "docid": "e97e687bd2939bafdcfe507a95f6917b", "score": "0.52984905", "text": "function doRedirect() {\n\tif(isset($_REQUEST['ref'])) {\n\t\theader(\"Location: \".$_REQUEST['ref']);\n\t}\n\telse {\n\t\theader(\"Location: \".$_SERVER['HTTP_REFERER']);\n\t}\n\tdie();\n}", "title": "" }, { "docid": "e1d63b99e408f267fbf0ea8ac7f6ceb3", "score": "0.52952886", "text": "public function canHandleCurrentUrl();", "title": "" }, { "docid": "2023726046086adfdeb292c30a2ed894", "score": "0.52895284", "text": "private function toServerIsLogin()\n\t{\n\t\t$isLoginUrl = $this->_config['isLogin'].$this->signature().'&appId='.$this->_config['appId'].'&callback='.$this->_callback;\n\t\theader('Location:'.$isLoginUrl);\n\t}", "title": "" }, { "docid": "e361e418d008e42c3945d938cd102540", "score": "0.5287896", "text": "function redirect($url_string) {\n if (!headers_sent())\n header('Location: '.$url_string);\n else {\n echo '<script type=\"text/javascript\">';\n echo 'window.location.href=\"'.$url_string.'\";';\n echo '</script>';\n echo '<noscript>';\n echo '<meta http-equiv=\"refresh\" content=\"0;url='.$url_string.'\" />';\n echo '</noscript>';\n }\n}", "title": "" }, { "docid": "46815b1e14a4c99547bfb19e51fbfce0", "score": "0.52826166", "text": "function redirectionHome($msg, $url=NULL, $seconds=3)\r\n{\r\n if (!$url && isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER']))\r\n $url = $_SERVER['HTTP_REFERER'];\r\n if (!$url)\r\n $url = 'index.php';\r\n echo $msg;\r\n echo \"<div class='alert alert-info'>You Will Be Redirected After $seconds seconds</div>\";\r\n header(\"refresh:$seconds;url=$url\");\r\n exit();\r\n\r\n}", "title": "" }, { "docid": "0392a55147cc0a79a64f27d1b5a67283", "score": "0.52801204", "text": "function check_session(){\n if(!isset($_SESSION['user_id'])){\n $output = '';\n $output .= print_r(\"<h5>NOT ALLOWED without a session,you will be redirectected shortly</h5>\");\n //user doesnt have a session -> redirect to login page\n //header(\"Location: https://localhost/exampleTwo/login/\");\n //wp_redirect('https://localhost/exampleTwo/login/');\n ?>\n <script type=\"text/javascript\">\n window.location = \"https://localhost/exampleTwo/login/\";\n </script>\n <?php\n return $output;\n }else{\n \n $output = '';\n $output .= print_r(\"you have your session\");\n \n return $output;\n }\n}", "title": "" }, { "docid": "9b8482ae1b71696bc1cbc4cf3bb7e5cb", "score": "0.5279382", "text": "function redirectWithoutTicket(){\n $this->redirectURL($this->returnURL);\n //header(\"Location: \".$this->returnURL);\n /* Make sure that code below does not get executed when we redirect. */\n exit;\n }", "title": "" }, { "docid": "44831b2c73e4621aac26c0527dfc8558", "score": "0.5278888", "text": "public function page_redirect()\n {\n }", "title": "" }, { "docid": "8e6fdc9212e7abfabb01fb70b1508f0a", "score": "0.52785695", "text": "public function hookDisplayHeader()\n {\n // Set MailChimp tracking code\n if (Tools::isSubmit('mc_tc') || Tools::isSubmit('mc_cid')) {\n $cookie = new Cookie('tb_mailchimp');\n if ($cookie->mc_tc != Tools::getValue('mc_tc') || $cookie->mc_cid != Tools::getValue('mc_cid')) {\n $cookie->mc_tc = Tools::getValue('mc_tc');\n $cookie->mc_cid = Tools::getValue('mc_cid');\n $cookie->landing_site = Tools::getShopProtocol().\"{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}\";\n $cookie->setExpire(static::COOKIE_LIFETIME);\n $cookie->write();\n }\n }\n\n if (static::getApiKey() && static::$uuid && !Configuration::get(static::DISABLE_POPUP)) {\n $shop = MailChimpShop::getByShopId($this->context->shop->id);\n if (!Validate::isLoadedObject($shop)) {\n return '';\n }\n\n $this->context->smarty->assign([\n 'mc_script' => static::getMailChimpScript(),\n ]);\n\n return $this->display(__FILE__, 'popup.tpl');\n }\n\n return '';\n }", "title": "" }, { "docid": "4ce5f66b14743e0345795bc9d1ec7929", "score": "0.5275867", "text": "public function login_box_before($event)\n\t\t{\n\t\t\t// Therefore, parse the HTTP_REFERER and prefer that over $event['redirect'] if it contains a forum URL.\n\t\t\t$referer = array_key_exists('HTTP_REFERER', $_SERVER) ? $_SERVER['HTTP_REFERER'] : '';\n\t\t\t$check_url_1 = 'https://' . $this->_server_name . $this->_script_path . '/';\n\t\t\t$check_url_2 = 'https://www.' . $this->_server_name . $this->_script_path . '/';\n\n\t\t\tif (strncmp($referer, $check_url_1, strlen($check_url_1)) === 0)\n\t\t\t{\n\t\t\t\t$redirect = substr($referer, strlen($check_url_1));\n\t\t\t}\n\t\t\telse if (strncmp($referer, $check_url_2, strlen($check_url_2)) === 0)\n\t\t\t{\n\t\t\t\t$redirect = substr($referer, strlen($check_url_2));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$redirect = $event['redirect'];\n\t\t\t}\n\n\t\t\tredirect(\"/roslogin/?p=login&redirect=\" . rawurlencode($this->_script_path . '/' . $redirect));\n\t\t}", "title": "" }, { "docid": "7660b5853d4baf6c904e6012422a3882", "score": "0.5260753", "text": "function redirect($url)\n\t\t{\n\t\t\tif (!headers_sent())\n\t\t\t{ \n\t\t\t\theader('Location: '.$url);\n\t\t\t\texit;\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{ \n\t\t\t\techo '<script type=\"text/javascript\">';\n\t\t\t\techo 'window.location.href=\"'.$url.'\";';\n\t\t\t\techo '</script>';\n\t\t\t\techo '<noscript>';\n\t\t\t\techo '<meta http-equiv=\"refresh\" content=\"0;url='.$url.'\" />';\n\t\t\t\techo '</noscript>'; exit;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "2e7a409d3a66599b1be74674a69e12c9", "score": "0.5255736", "text": "private static function setHeaderRedirect($url)\n {\n header('Location: ' . $url);\n }", "title": "" }, { "docid": "c9890221c479a60e7bffe03c15068075", "score": "0.52530843", "text": "private function checkLogin()\n {\n if (!($this->session->userdata('logged_in'))) {\n echo '<meta http-equiv=\"refresh\" content=\"0;URL=\\'' . base_url() . 'Login' . '\\'\" />';\n echo '<script>parent.window.location.assign(\"' . base_url() . 'Login\")</script>';\n }\n }", "title": "" }, { "docid": "95aaaf2949183c75bfeb9047f312f7ff", "score": "0.52484316", "text": "function changeDePage($url) {\n\n header(\"location:\" . $url);\n exit;\n }", "title": "" }, { "docid": "19a837506060f7fb5150a8d96b74e53c", "score": "0.52389836", "text": "public function redirect();", "title": "" }, { "docid": "8d2aa10021da236514bafcc611571a5b", "score": "0.52314585", "text": "public function handle_proxy_page()\n {\n }", "title": "" }, { "docid": "9ae015343263930e4b3abfed2dd7df2e", "score": "0.5228614", "text": "function get_frame($page_url){\n\t\treturn $my_value = '<iframe name=\"frm_page\" frameborder=\"0\" height=\"100%\" width=\"100%\" scrolling=\"auto\" src=\"' . $page_url . '\" > Or!Frame</iframe>';\n\t}", "title": "" }, { "docid": "b4eec1efee9a607895be4e61becc96f6", "score": "0.52273756", "text": "public function seeResponseCodeIsRedirection(): void {\n $this->getScenario()->runStep(new \\Codeception\\Step\\Assertion('seeResponseCodeIsRedirection', func_get_args()));\n }", "title": "" }, { "docid": "2bdd5899b10c4a606ca200ff24d8ce53", "score": "0.5224146", "text": "public function postDispatch(){\n\t\t$siteConfig = Zend_Registry::get('siteConfig');\n\t\t$this->view->headMeta()->setHttpEquiv('Refresh',$siteConfig['config_meta']['refresh']);\n\t\t$this->view->headMeta()->setHttpEquiv('content-language',$siteConfig['config_meta']['content_language']);\n\t\t$this->view->headMeta()->setName('classification',$siteConfig['config_meta']['classification']);\n\t\t$this->view->headMeta()->setName('language',$siteConfig['config_meta']['language']);\n\t\t$this->view->headMeta()->setName('robots',$siteConfig['config_meta']['robots']);\n\t\t$this->view->headMeta()->setName('author',$siteConfig['config_meta']['author']);\n\t\t$this->view->headMeta()->setName('copyright',$siteConfig['config_meta']['copyright']);\n\t\t$this->view->headMeta()->setName('revisit-after',$siteConfig['config_meta']['revisit_after']);\n\n\t\tif($siteConfig['config_site']['offline'] == 1){\n\t\t\t$this->_forward('off','public','default');\n\t\t}\n\t}", "title": "" }, { "docid": "dbd7f3a5bd661f73f1344459cf2c70c3", "score": "0.5222656", "text": "public static function addSecurityHeaders() {\n\t\theader('X-XSS-Protection: 1; mode=block'); // Enforce browser based XSS filters\n\t\theader('X-Content-Type-Options: nosniff'); // Disable sniffing the content type for IE\n\n\t\t// iFrame Restriction Policy\n\t\t$xFramePolicy = OC_Config::getValue('xframe_restriction', true);\n\t\tif($xFramePolicy) {\n\t\t\theader('X-Frame-Options: Sameorigin'); // Disallow iFraming from other domains\n\t\t}\n\n\t\t// Content Security Policy\n\t\t// If you change the standard policy, please also change it in config.sample.php\n\t\t$policy = OC_Config::getValue('custom_csp_policy',\n\t\t\t'default-src \\'self\\'; '\n\t\t\t.'script-src \\'self\\' \\'unsafe-eval\\'; '\n\t\t\t.'style-src \\'self\\' \\'unsafe-inline\\'; '\n\t\t\t.'frame-src *; '\n\t\t\t.'img-src *; '\n\t\t\t.'font-src \\'self\\' data:; '\n\t\t\t.'media-src *');\n\t\theader('Content-Security-Policy:'.$policy);\n\t}", "title": "" }, { "docid": "727a4a55c3437c1222d2d69e29b9009e", "score": "0.5220702", "text": "private function maybeSaveHttpRefererInSession(): void\n {\n if ($this->http_request->server->has('HTTP_REFERER')) {\n $this->session->set('shop_back_url', $this->http_request->server->get('HTTP_REFERER'));\n }\n }", "title": "" }, { "docid": "c75e4b34f78d4ae0dc58f5bf44b0d711", "score": "0.52200234", "text": "function __construct($url)\n {\n $f = new T_Filter_Xhtml();\n $content = '<html><head>'\n .'<meta http-equiv=\"Refresh\" content=\"1;url='._transform($url,$f).'\">'\n .'</head><body>'\n .'<a href=\"'._transform($url,$f).'\">Continue &rsaquo;</a>'\n .'</body></html>';\n parent::__construct(303);\n $this->setHeader(\"Location\", $url);\n $this->setContent($content);\n }", "title": "" }, { "docid": "36bbdd7e2a47996998db8c4538a8a12e", "score": "0.5215986", "text": "public function hookPublicContentTop($args){\n\t\t\n\t\tif (current_url() == get_option('pb_page_url') && (boolean)get_option('pb_show_public')){\n\t\t\t\n\t\t\tif(!isset($_COOKIE['pb_clicked']) || $_COOKIE['pb_clicked'] == false){\n\t\t\t\tinclude('views/public/index/index.php');\n\t\t\t}\n\t\t\t\n\t\t}\n }", "title": "" }, { "docid": "991fd7685577c2be0774e9323b7ac50b", "score": "0.5210739", "text": "public static function updateCallbackURL()\n\t\t{\n\t\t\t$_SESSION['forwardToURL'] = !isset($_SESSION['forwardToURL']) || is_null($_SESSION['forwardToURL']) ? (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : NULL ) : $_SESSION['forwardToURL'];\n\t\t}", "title": "" }, { "docid": "098295dbef161a4d00c1897ca97e9f37", "score": "0.52090436", "text": "protected function is_proxy_page()\n {\n }", "title": "" }, { "docid": "c05e5560ac9a1df58404b5eea600ec0c", "score": "0.52042645", "text": "public function isRedirect()\n {\n return isset($this->data['targetUrl']);\n }", "title": "" }, { "docid": "97b80526a8df6aca35ce771bc9a510f5", "score": "0.5203724", "text": "function redirectTo($location=NULL) {\n if ($location != NULL) {\n // header(\"location:{$location}\");\necho \"<script>location.href='$location';</script>\";\n exit;\n }\n}", "title": "" }, { "docid": "78debd13c57da9dec6622daf664fb6ed", "score": "0.52028435", "text": "public static function redirect()\n {\n }", "title": "" }, { "docid": "464a0308ae60d9adc8a64579ea1b0faf", "score": "0.5201587", "text": "function _prevent_hijacking():bool\n{\n\tif(!isset($_SESSION['IPaddress']) || !isset($_SESSION['userAgent']))\n\t\treturn false;\n\n\tif ($_SESSION['IPaddress'] != $_SERVER['REMOTE_ADDR'])\n\t\treturn false;\n\n\tif( $_SESSION['userAgent'] != $_SERVER['HTTP_USER_AGENT'])\n\t\treturn false;\n\n\treturn true;\n}", "title": "" }, { "docid": "53577cf1f7852de521c5c9732d0cf7fe", "score": "0.5198141", "text": "function openid_indirect_response($url, $message, $component = OPENID_RESPONSE_QUERY) {\n if (substr(PHP_SAPI, 0,3) === \"cgi\") {\n header('Status: 303 See Other');\n } else {\n header($_SERVER['SERVER_PROTOCOL'] . ' 303 See Other');\n }\n \n header('Location: ' . openid_indirect_response_url($url, $message, $component));\n exit;\n}", "title": "" }, { "docid": "008033695602cfa765bed6fbcdf818fd", "score": "0.51920027", "text": "private function redirectNonSslScript($edit = FALSE){\r\n $client_url = $this->getUserInputURL();\r\n\r\n if (empty($client_url)) {\r\n $client_url = $this->client_url;\r\n }\r\n\t\t\r\n $newUrlData = $this->session->userdata('newUrlData') ? json_decode($this->session->userdata('newUrlData')) : '-1';\r\n\r\n if ($edit && $newUrlData != \"-1\" && $newUrlData->newUrl != $client_url) {\r\n $client_url = $newUrlData->newUrl;\r\n }\r\n\r\n // on some servers we can not identify wether the current editor URL uses SSL or not\r\n // because server vars don't tell us (e.g. when we use an SSL front loader). Thus we \r\n // assume that the initial request of the editor is always with SSL, and we attach\r\n // a querystring parameter to store the protocol for future redirects\r\n $redirected = $this->input->get('redir') == 'yes';\r\n if(!$redirected) {\r\n $editorProtocolIsHttps = true;\r\n }\r\n else {\r\n $editorProtocolIsHttps = ($this->input->get('protocol') == 'ssl') ? true : false;\r\n }\r\n\r\n $siteInfo = $this->session->userdata('site_info');\r\n $processed = $siteInfo['url'] == $client_url;\r\n if (!$processed) {\r\n $siteInfo = $this->getUrlInfo($client_url);\r\n $this->session->set_userdata('site_info', $siteInfo);\r\n }\r\n\r\n $this->nossl = !$siteInfo['urlIsSecure'];\r\n $this->tracking_code_present = $siteInfo['hasTrackingCode'];\r\n\r\n $this->final_client_url = $siteInfo['redirectUrl'];\r\n\r\n $sessionNoRedirect = !$redirected;\r\n $secureButSslOff = $siteInfo['urlIsSecure'] && !$editorProtocolIsHttps;\r\n $notSecureButSslOn = !$siteInfo['urlIsSecure'] && $editorProtocolIsHttps;\r\n if ($edit) {\r\n $notSecureButSslOn = $notSecureButSslOn && !$siteInfo['redirectsToSsl'];\r\n }\r\n\r\n //moved override here to avoid other issues below\r\n if ($this->nossl) {\r\n $this->overrideNonSsl();\r\n }\r\n\r\n if ($sessionNoRedirect || $notSecureButSslOn || $secureButSslOff) {\r\n $data = array(\r\n 'sessionNoRedirect' => $sessionNoRedirect ? 'TRUE' : 'FALSE',\r\n 'notSecureButSslOn' => $notSecureButSslOn ? 'TRUE' : 'FALSE',\r\n 'secureButSslOff' => $secureButSslOff ? 'TRUE' : 'FALSE',\r\n 'editorProtocolIsHttps' => $editorProtocolIsHttps ? 'TRUE' : 'FALSE',\r\n );\r\n $this->load->view('new_editor/editor_redirect', $data);\r\n return FALSE;\r\n }\r\n return TRUE;\r\n }", "title": "" }, { "docid": "a08c5acef17685664dc1cb4c79e7b80f", "score": "0.51856214", "text": "private function permissionInsufficient(){\n $this->alert(\"You do not have the permission to do that!\");\n ?>\n <!-- this reloads the page so that the change can be seen in the html output -->\n <!DOCTYPE html>\n <html>\n <script type=\"text/javascript\">\n location.replace(\"http://susocafe.bplaced.net/index.php?action=open_userInterface\");\n </script>\n </html>\n <?php\n }", "title": "" }, { "docid": "cecd0cb2370ac215fce1a0d442dc0aea", "score": "0.51829284", "text": "function common_frame($name, $content){\n // The php header is defined here because this function is called\n // for every written html page\n header('Content-type: text/html');\n $document = '\n<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n<html>\n <head>\n <title>Web Whiteboard</title>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n\n <link href=\"style/common.css\" rel=\"stylesheet\" type=\"text/css\" >';\n if($name == 'Whiteboard')\n $document .= '\n <link href=\"style/application.css\" rel=\"stylesheet\" type=\"text/css\">';\n\n $document .= '\n\n <!-- Inclusion order affects variables visibility. Into\n \\'common.js\\' the global object \"g\" is defined -->\n <script type=\"text/javascript\" src=\"client/common-pack.js\"></script>';\n\n if($name == 'Whiteboard')\n $document .= '\n <!-- This meta tag must go before svg.js inclusion -->\n <meta name=\"svg.render.forceflash\" content=\"false\">\n <script type=\"text/javascript\" src=\"client/svg.js\" data-path=\"client/\"></script>\n <script type=\"text/javascript\" src=\"client/application-pack.js\"></script>';\n else\n $document .= '\n <script type=\"text/javascript\" src=\"client/login.js\"></script>';\n $document .= '\n </head>\n <body>\n <noscript><p>This application requires JavaScript</p></noscript>';\n if($name == 'Whiteboard')\n $document .= '<img src=\"images/resize.png\" alt=\"Resize\"\n onclick=\"frame_resize()\">';\n else\n // A placeholder for the image, to make the login page look like\n // the app page\n $document .='<div style=\"width:20px; height:21px;\">&nbsp;</div>';\n $document .= '\n <!-- the table\\'s purpose is just centering while fitting its\n contents (divs can be centered only when their width is fixed) -->\n <table style=\"margin: auto\">\n<tbody>\n <tr>\n <td>\n <div id=\"container_div\" class=\"container_div_s_default\">\n <div id=\"name_panel\">\n <div id=\"help_div\" style=\"display:inline; float:right\">\n <a href=\"user_guide.html\" style=\"text-decoration:none\" target=\"_blank\">\n help\n </a>\n </div>\n '.$name.'\n </div>\n '.$content.'\n </div>\n </td>\n </tr>\n</tbody>\n </table>\n </body>\n</html>';\n return $document;\n}", "title": "" }, { "docid": "ed24b9d2f6328bfabb915eea1efd1fde", "score": "0.5179038", "text": "function fblogin_affichage_final($flux){\n\tif (defined('_FB_API_KEY')\n\t&& _request('fb_sig_in_iframe')){\n\t\t$js = \"<script type='text/javascript'>$('body').addClass('fb_iframe');$('a').attr('target','_parent');</script>\";\n\t\t$flux = str_replace('</body>',\"$js</body>\",$flux);\n\t}\n\treturn $flux;\n}", "title": "" }, { "docid": "b5b4f5d40898d31cad4f408674d3a1a8", "score": "0.5173473", "text": "function redirect($datalink){\r\n\t$header = \"<script>window.location.href='\".$datalink.\"'</script>\";\r\n\treturn $header;\r\n}", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "05cc6eefefa076d19188df98fce5e3ab", "score": "0.0", "text": "public function create(Category $categories, Property $properties) \n {\n //\n $categories = Category::all();\n $properties = Property::all();\n return view('property.create', [\n 'categories' => $categories,\n 'properties' => $properties\n ]);\n //return view('property.create');\n }", "title": "" } ]
[ { "docid": "cb267e3ebbd54b9945858b4232a6e394", "score": "0.7781188", "text": "public function create()\n {\n return view('admin.resource.create');\n }", "title": "" }, { "docid": "ffef4ac93b8831ae51d698379f4d9c1b", "score": "0.7682445", "text": "public function create()\n\t{\n\t\treturn view('resources.create');\n\t}", "title": "" }, { "docid": "ff6aafdb1355ea23d1a8bd6d152d0539", "score": "0.7600213", "text": "public function create()\n {\n $this->authorize('create', Resource::class);\n\n return view('resources.create');\n }", "title": "" }, { "docid": "c1a53014b3e8009982c57be36ab41329", "score": "0.75936973", "text": "public function create()\n {\n return $this->showForm('create');\n }", "title": "" }, { "docid": "c1bfef22261096ce14c95c47446dff78", "score": "0.75823134", "text": "public function actionCreate() {\n $model = new Resource;\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['Resource'])) {\n $model->attributes = $_POST['Resource'];\n if ($model->save())\n $this->redirect(array('view', 'id' => $model->id));\n }\n\n $this->render('create', array(\n 'model' => $model,\n ));\n }", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.7571166", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "38a11ec3ba36293b95bb60274536cad5", "score": "0.74636614", "text": "public function create()\n {\n $this->render('form');\n }", "title": "" }, { "docid": "f40137ad18991df137990863ff05faa1", "score": "0.7343493", "text": "public function newAction()\n {\n $this->addBaseBreadcrumb()->add('Nouveau');\n\n return $this->render($this->getParam('newTemplate'), array(\n 'form' => $this->getFormHandler()->getForm($this->getFormType(), $this->createObject())->createView()\n ));\n }", "title": "" }, { "docid": "e1c4a637db2fd84ef7dabb5b305e9961", "score": "0.7335032", "text": "public function create()\n {\n $resource = $this->resource;\n $resource['action'] = 'Create';\n return view('dashboard.views.'.$this->resources.'.create',compact( 'resource'));\n\n }", "title": "" }, { "docid": "dc0018a36c4c3e57ecd34c9226ac6191", "score": "0.7294354", "text": "function createForm() {\n $this->authorize('update',Recommand::class);\n return view('recommand-create', [\n 'title' => \"{$this->title} : Create\",\n ]);\n }", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.7279612", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "8833e5d4ef4d0cbd0c24ff5ec2a1661c", "score": "0.72745806", "text": "public function create() {\n // View with a form\n return view('create');\n }", "title": "" }, { "docid": "ee98362215b714ada087b095dbaa2786", "score": "0.7254829", "text": "public function create()\n {\n return view('libros.form');\n }", "title": "" }, { "docid": "07f489b5920e8e515a252e3a556a445e", "score": "0.7239627", "text": "public function create()\n {\n return view('/informationForm');\n }", "title": "" }, { "docid": "5ed71688e44b59ce8bfa48e11136925b", "score": "0.72240746", "text": "public function create()\n {\n return view('backend.forms.create');\n }", "title": "" }, { "docid": "b669f070b96c62b6c7dd6c6d62678e03", "score": "0.7221545", "text": "public function create()\n {\n return view(\"admin.add_new\");\n }", "title": "" }, { "docid": "755e91a474eae625dfda22659e4c1f6c", "score": "0.7218858", "text": "public function create()\n {\n return view('form.create');\n }", "title": "" }, { "docid": "067a134abf6125c342c56b1ef91e1eeb", "score": "0.72143054", "text": "public function create()\n {\n // Show creation form\n return view(\"app.data-new\");\n }", "title": "" }, { "docid": "3fb888dea195139fc63f84a6e5b7db63", "score": "0.7199321", "text": "public function create()\n {\n return View::make($this->resourceView.'.create');\n }", "title": "" }, { "docid": "98d06b49a25eca742de2d2725f07c2b9", "score": "0.7182697", "text": "public function create()\n {\n return view('back.forms.create');\n }", "title": "" }, { "docid": "14eb25b8645bd80d69c0874afb39257f", "score": "0.71789116", "text": "public function create()\n {\n // Show the page\n return view('admin.material.create_edit');\n }", "title": "" }, { "docid": "c24e65c8a92dd430f73967cd2fb00ec9", "score": "0.7177726", "text": "public function create()\n {\n $this->resetValidation();\n $this->reset(['fields', 'is_editing']);\n\n $this->showForm();\n }", "title": "" }, { "docid": "d7792233bdf3a051b8ecc8a3bf85491e", "score": "0.7169018", "text": "public function create()\n {\n return view('admin.form.create');\n }", "title": "" }, { "docid": "2e0866dd4968a0252a9972c2a0f1a8f1", "score": "0.7166877", "text": "public function create()\n {\n\n $this->data[\"$this->modelName\"] = $this->model;\n $this->data[\"formRoute\"] = \"app.admin.$this->pluralModelName.create\";\n\n\n if ($this->package) {\n return \\View::make(\"{$this->package}{$this->pluralModelName}.form\", $this->data);\n }\n return \\View::make(\"{$this->pluralModelName}::form\", $this->data);\n }", "title": "" }, { "docid": "33888fcb4cc71e0f03093b8e8a5197ed", "score": "0.71470445", "text": "public function create()\n {\n return view('forms.addClientForm');\n }", "title": "" }, { "docid": "aea0d1aab0b4ab918e93439a4ab1c242", "score": "0.71306205", "text": "public function create()\n {\n $options = ['route' => sprintf('%s.%s', $this->type, $this->formAction)];\n\n return $this->render(compact('options'));\n }", "title": "" }, { "docid": "a49b82b2f45e7ba34835574231e74fc7", "score": "0.7122504", "text": "public function create() {\n return view('resto.create');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.7115064", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.7115064", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "e2fccfcb135b6e8bbace40258561a9d9", "score": "0.70995367", "text": "public function create() {\n return view('backend.car.new');\n }", "title": "" }, { "docid": "2d47830de802ad372b9413f5c799b6ed", "score": "0.70988834", "text": "public function create()\n {\n // View create form\n return view('client.create');\n }", "title": "" }, { "docid": "b7c6cd46917c26fb065c2292eecc323e", "score": "0.70855796", "text": "public function showCreateForm()\n {\n return view(\"admin.report.create\");\n }", "title": "" }, { "docid": "c27004d00e3f9afb85f74623ec456ca9", "score": "0.7079425", "text": "public function create()\n {\n //\n return view('form');\n }", "title": "" }, { "docid": "9bb0d731ffffb70cb4894ae1bcfbef68", "score": "0.70790535", "text": "public function newAction() {\n \n $this->tag->setTitle('New User');\n $this->breadcrumbs->add('User',$this->url->getBackend());\n $this->breadcrumbs->add('Add User');\n\n if (!$this->theForm) $this->theForm = new UserForm();\n \n $this->view->setVars([\n 'form' => $this->theForm,\n 'disableHeaderMessage' => TRUE,\n ]);\n $this->view->pick('user/form');\n }", "title": "" }, { "docid": "0ee6b9ec9193265a43d0071906bdbba8", "score": "0.70679206", "text": "public function create()\n {\n return view(\"admin.fasilitas.form\");\n }", "title": "" }, { "docid": "5c9edf7a5ebaed5b2ffdda69a3142b5e", "score": "0.7054939", "text": "public function create()\n {\n //\n return view('fabricante.FormCreate');\n }", "title": "" }, { "docid": "0811f3b35e8abdf159ef38fbd5921e43", "score": "0.7053636", "text": "public function showCreateForm()\n {\n if (!Auth::check('user')) {\n return view('auth/login');\n };\n\n return view('poll/create');\n }", "title": "" }, { "docid": "21ca75fbf4cead94faae6a4003ecc093", "score": "0.7047479", "text": "public function create()\n\t{\n\t\t\n\t\t$resourcetags = array();\n\t\t$tags = Tag::all();\n\t\t$this->layout->content = View::make(\"resources.create\", compact('resourcetags', 'tags'));\n\t}", "title": "" }, { "docid": "c3830347da2f5033313539354fb374a1", "score": "0.7047064", "text": "public function create()\n {\n return view('form.newdokter');\n }", "title": "" }, { "docid": "6d6638d93353979e91d132adb030c770", "score": "0.7046394", "text": "public function create()\n {\n return view('arl.create');\n }", "title": "" }, { "docid": "e8ae4b7ffa4723fa50e5657bde33cb9c", "score": "0.70392585", "text": "public function create()\n\t{\n\t\treturn view('lokasis.create');\n\t}", "title": "" }, { "docid": "ee99d4dc55d426f11cebc62caa686b30", "score": "0.7028027", "text": "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem(\"Inicio\", $this->get(\"router\")->generate(\"home_page\"));\n $breadcrumbs->addItem(\"Infraccion\", $this->get(\"router\")->generate(\"infraccion\"));\n $breadcrumbs->addItem(\"Nuevo\");\n $entity = new Infraccion();\n $form = $this->createForm(new InfraccionType(), $entity);\n\n return $this->render('InfraccionBundle:Infraccion:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "dd5b0f3ce27dfd87ed7122c7b68a7c1a", "score": "0.7022443", "text": "public function create()\n {\n $car_status = $this->car_status;\n $meta = \"Create\";\n\n return view('car.form', compact('meta', 'car_status'));\n }", "title": "" }, { "docid": "5aeb76e66efd1357306038b0083ff2c3", "score": "0.7022086", "text": "public function create()\n {\n // Renderizar formulario para nuevo registro\n return view('admin.director.create');\n }", "title": "" }, { "docid": "d0a0415989715b5b5654f1e48db01a96", "score": "0.7020683", "text": "public function formCreate()\n {\n return view('clients.formCreate');\n }", "title": "" }, { "docid": "7ca42f9e26eceaf20c6f09a15e65e991", "score": "0.7013311", "text": "public function create()\n {\n $this->init();\n\n $model = \"App\\\\\".$this->model;\n $action = $this->action;\n $view=$this->model;\n\n $form = $model::form();\n\n\n return view('forms.add',compact( \"form\", 'action','view'));\n }", "title": "" }, { "docid": "3d29af10b4a3a63ad19ba85639f8ccb5", "score": "0.70112586", "text": "public function create()\n {\n //Creare Studenti (Form per inserire le informazioni)\n return view('student.create');\n }", "title": "" }, { "docid": "d85281966cc367fac063f9b9134161a5", "score": "0.70052963", "text": "public function create()\n {\n $form = $this->form;\n $route = $this->route;\n\n return view($this->rCreate,compact('form','route'));\n }", "title": "" }, { "docid": "b679c40074f9111d684e22f203cdc583", "score": "0.7002055", "text": "public function create()\n {\n return view('projects_forms.create');\n }", "title": "" }, { "docid": "5ebde8e797b651ee38647f3ebdaa6ed2", "score": "0.6998992", "text": "public function create()\n {\n return view ('student.add');\n }", "title": "" }, { "docid": "6fa062499d7b6569cf7f999f8c656ce5", "score": "0.6992213", "text": "public function create()\n {\n return view('about.form.create');\n }", "title": "" }, { "docid": "98811bcda96da1bb035f86f6bb53ebfc", "score": "0.699009", "text": "public function create()\n {\n return view('admin.new.create');\n //\n }", "title": "" }, { "docid": "fd564bf5840d9d004110195e2ea8caac", "score": "0.69893134", "text": "public function create()\n {\n return view('personil.form');\n }", "title": "" }, { "docid": "c566e9d1861ec0a585d782640f88115e", "score": "0.69856226", "text": "public function create()\n {\n //\n return view(\"products.form\")->with([\n \"product\" => new Product(),\n \"action\" => \"/products\",\n \"method\" => \"POST\"\n ]);\n }", "title": "" }, { "docid": "e58f17523277fc6c291ecbf3f817eb22", "score": "0.6984684", "text": "public function create()\n {\n return view('radars.create');\n }", "title": "" }, { "docid": "e58f17523277fc6c291ecbf3f817eb22", "score": "0.6984684", "text": "public function create()\n {\n return view('radars.create');\n }", "title": "" }, { "docid": "5a27005c67429ee148bb4445da9a4f82", "score": "0.6980186", "text": "public function create()\n {\n return view('management.create');\n }", "title": "" }, { "docid": "270cbed854a0719c8772b2194b3fb90a", "score": "0.6975681", "text": "public function newAction()\n {\n $entity = new Ruta();\n $form = $this->createForm(new RutaType(), $entity);\n\n return $this->render('RutaMicroBundle:Ruta:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "5f3c68b60fd80eb4444eb7152dfbb94e", "score": "0.6969477", "text": "public function create()\n {\n $page_title = __(\" Add consult\");\n $page_description = __(\" Add new consult\");\n return view('school.consult.create', compact('page_title', 'page_description'));\n }", "title": "" }, { "docid": "3550257fb37b0afbdb6907ce7bcfa97c", "score": "0.69678783", "text": "public function create()\n\t{\n\t\t//\n\t\treturn View::make(\"admin.newStudent\");\n\n\t}", "title": "" }, { "docid": "5ccbefe1f6b35224d550c04618929098", "score": "0.69676286", "text": "public function create()\n {\n return view('forms.newUser');\n }", "title": "" }, { "docid": "307bb1f1a7654e2dd53bf64336069792", "score": "0.6966894", "text": "public function create()\n {\n return view('url.form');\n }", "title": "" }, { "docid": "8e51e1b3126c2bddb89f48578f55b0df", "score": "0.6961331", "text": "public function newAction()\n {\n $entity = new Student();\n $form = $this->createForm(new StudentType(), $entity);\n\n return $this->render('BdxTutoratBundle:Student:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView()\n ));\n }", "title": "" }, { "docid": "279f28fbbb4daa2b04b92c9524bc3793", "score": "0.69605327", "text": "public function newAction()\n {\n $this->view->form = new UsersForm(null, array('create' => true));\n }", "title": "" }, { "docid": "cbe6d3677d39be698b72d0cc40cc79ec", "score": "0.69582814", "text": "public function create()\n {\n // \n /*\n *RETURN CREATE FORM BLADE\n */\n //\n return View('company.create');\n }", "title": "" }, { "docid": "b8e99d11c1bb25036e33dc3a5647bea2", "score": "0.69553226", "text": "public function create()\n {\n $data['action'] = 'kontrak.store';\n return view('kontrak.form', $data);\n }", "title": "" }, { "docid": "ea30089b05638deecfcdcc640118738c", "score": "0.69552153", "text": "public function create()\n {\n return view('student.add');\n }", "title": "" }, { "docid": "f18f0d893e1e12d83e8864a9a8c0f0b2", "score": "0.6950658", "text": "public function newAction()\n {\n $entity = new Question();\n \n $form = $this->createCreateForm($entity);\n\n return $this->render('StelQuestionBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "d2dfb39011e7751d334f3b102132bcc0", "score": "0.69359136", "text": "public function create()\n {\n return view('libro.create');\n }", "title": "" }, { "docid": "b755f6dc762c7fcef5960693dc550a8c", "score": "0.693588", "text": "public function create()\n {\n return view('relatorio/create');\n }", "title": "" }, { "docid": "f05f4a2f83cd17b9bd5adbe347692097", "score": "0.69341874", "text": "public function create()\n {\n $form = new Form;\n return view('customForms.create');\n }", "title": "" }, { "docid": "3bd5f8f33a9a9f7308459ce2c15c8eea", "score": "0.6933652", "text": "public function create()\n {\n return view('admin/sucursal_form');\n }", "title": "" }, { "docid": "c1837ba0b5873eb669c993210480e9c2", "score": "0.6925409", "text": "public function create()\n\t{\n\t\treturn view('turista.create');\n\t}", "title": "" }, { "docid": "047181576c3e6ad0088b9b96fa131b35", "score": "0.6918877", "text": "public function create() {\n $data['crud_table'] = $this->table_name();\n return view('crud.'.$this->table_name().'._form')->with($data);\n }", "title": "" }, { "docid": "850e83d2b304c9abb6eb4fa4264598c2", "score": "0.691815", "text": "public function create()\n {\n $data = new supplier();\n return view('admin.master.supplier.form', compact('data'));\n }", "title": "" }, { "docid": "07b34800d82b4752154612b743b2fbf0", "score": "0.69173133", "text": "public function create()\n {\n return view('rescuer.create');\n }", "title": "" }, { "docid": "c4416390a701ec4941a20dc3ab095a2a", "score": "0.69171804", "text": "public function create()\n\t{\n\t\treturn view('create');\n\t}", "title": "" }, { "docid": "35c563964f6d86122b762a351b30e581", "score": "0.69091403", "text": "public function newAction()\n {\n $entity = new Prueba();\n $form = $this->createForm(new PruebaType(), $entity);\n\n return $this->render('AuditoriaBundle:Prueba:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "f9a1258e50a03182d193266b2526e6db", "score": "0.69063103", "text": "public function create()\n {\n return view('mir.create');\n }", "title": "" }, { "docid": "72d216b75443b4090ac0a1387c18009c", "score": "0.6904825", "text": "public function create()\n {\n //\n return view('crud.add');\n }", "title": "" }, { "docid": "e88b17f0dfcb8e1d7ac04c5b9f6af8f1", "score": "0.6901707", "text": "public function create()\n {\n return view('cars.form');\n }", "title": "" }, { "docid": "33812f00a7ea90b676f5b715bd231e74", "score": "0.6900878", "text": "public function newAction() {\n\t\t$this->view->form = $this->getForm ( \"/admin/services/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Service\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new service\");\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/services/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\r\n\t\t\n\t\t$this->render ( 'applicantform' );\n\t}", "title": "" }, { "docid": "5be46dd600196087a3b8464e42aa9f4f", "score": "0.6896386", "text": "public function create()\n {\n $data['action'] = 'karyawan.store';\n return view('karyawan.form', $data);\n }", "title": "" }, { "docid": "1b589526d939246aa9ef7b40179c7739", "score": "0.68961346", "text": "public function create()\n {\n $title = 'Thêm trạng thái';\n return view('service._form', compact('title'));\n }", "title": "" }, { "docid": "9a709a92af338fffb07b6fe3d45b4129", "score": "0.68942356", "text": "public function new()\n\t{\n\t\treturn view('Dadmin/create');\n\t}", "title": "" }, { "docid": "5b7558f5f0a446dd445867917bd98918", "score": "0.6893167", "text": "public function create()\n {\n return view('che.add');\n }", "title": "" }, { "docid": "fbdf9369686334f9d6c8e43c9232fff9", "score": "0.6892584", "text": "public function create()\n {\n Return view(\"admin.productsform\");\n }", "title": "" }, { "docid": "5a8dd9cdd3724225efe424e0e91baf8e", "score": "0.68898946", "text": "public function createAction()\n {\n\n $form = $this->_doServerForm();\n $this->view->form = $form;\n\n }", "title": "" }, { "docid": "bdb0161d2f2f44cdaea93bf890a4c02e", "score": "0.68864834", "text": "public function create()\n {\n return view(\"create\");\n }", "title": "" }, { "docid": "037551b0e96b00a002be40f361b54ad7", "score": "0.68851733", "text": "public function create()\n {\n return view('paul.create');\n }", "title": "" }, { "docid": "70acd05f150e38467827ec0ef2853a04", "score": "0.6884719", "text": "protected function create()\n {\n $internauta = new Internauta();\n return view('/layouts/admin/internauta_form',compact('internauta'));\n }", "title": "" }, { "docid": "da11617a72ceec362ed235f9a4d58453", "score": "0.6883534", "text": "public function create()\n {\n return view('escuderia.escuderia-form');\n }", "title": "" }, { "docid": "af54a363bc62302637235c045a2f56b8", "score": "0.6880635", "text": "public function create()\n {\n return view('admin.iva99030.create');\n }", "title": "" }, { "docid": "a705ec418ba0a86ae6e21101240fcc17", "score": "0.688027", "text": "abstract protected function showCreateForm();", "title": "" }, { "docid": "7f965f069e40f5f6854b6a3bf71c5cd3", "score": "0.68794256", "text": "public function create()\n {\n return view('eksterior.create');\n }", "title": "" }, { "docid": "03402f9ca28344e85e26fd6084f319a0", "score": "0.68793327", "text": "public function create()\n {\n return view('widoki.create');\n }", "title": "" }, { "docid": "e140a12761122070f5327b09900c0721", "score": "0.6875328", "text": "public function create()\n {\n return view('control1.create');\n }", "title": "" }, { "docid": "48f81c129bc98e6a3c8a7c03a78b753c", "score": "0.6873283", "text": "public function formCreateAction() {\n $this->view->form = new ProductsForm();\n }", "title": "" }, { "docid": "a3c5b11bbc0c856907f42999109e1b8c", "score": "0.68728805", "text": "public function create()\n\t{\n\t\t// return View::make('espressioni.create');\n\t\treturn View::make('espressioni.edit');\n\t}", "title": "" }, { "docid": "6e1e5668e0314c521059488779983d78", "score": "0.68726593", "text": "public function create()\n {\n return view('creation');\n }", "title": "" }, { "docid": "180353d80dab0370c281cce907176a1c", "score": "0.68717295", "text": "public function create()\n\t{\n\t\treturn view('periksas.create');\n\t}", "title": "" } ]
379776b075b07e49fb6ff1ecf7a60f6c
Finishes importing files at end of installation. COPIED from install.core.inc but no longer calls drupal_run_cron since we just installed the correct module versions for the distro that we desire.
[ { "docid": "19eb7b5ed19a3ec09a53693fd81ada00", "score": "0.61076254", "text": "function install_from_db_install_finished(&$install_state) {\n drupal_set_title(st('@drupal installation complete', array('@drupal' => drupal_install_profile_distribution_name())), PASS_THROUGH);\n $messages = drupal_set_message();\n $output = '<p>' . st('Congratulations, you installed @drupal!', array('@drupal' => drupal_install_profile_distribution_name())) . '</p>';\n $output .= '<p>' . (isset($messages['error']) ? st('Review the messages above before visiting <a href=\"@url\">your new site</a>.', array('@url' => url(''))) : st('<a href=\"@url\">Visit your new site</a>.', array('@url' => url('')))) . '</p>';\n\n // Flush all caches to ensure that any full bootstraps during the installer\n // do not leave stale cached data, and that any content types or other items\n // registered by the installation profile are registered correctly.\n drupal_flush_all_caches();\n\n // Remember the profile which was used.\n variable_set('install_profile', drupal_get_profile());\n\n // Installation profiles are always loaded last\n db_update('system')\n ->fields(array('weight' => 1000))\n ->condition('type', 'module')\n ->condition('name', drupal_get_profile())\n ->execute();\n\n // Cache a fully-built schema.\n drupal_get_schema(NULL, TRUE);\n\n // Run cron to populate update status tables (if available) so that users\n // will be warned if they've installed an out of date Drupal version.\n // Will also trigger indexing of profile-supplied content or feeds.\n //\n // NO! Don't do this after installing profile from DB since we have the\n // module versions we want and the Update module is potentially enabled\n //\n // drupal_cron_run();\n //\n // Mark cron as run so it doesn't run on next page load either\n variable_set('cron_last', REQUEST_TIME);\n\n return $output;\n}", "title": "" } ]
[ { "docid": "21b7fd5e9faeaba4bae42716f4fcff12", "score": "0.66287047", "text": "private static function finish_installation()\n {\n }", "title": "" }, { "docid": "1705058018b3453f735e558c210cc357", "score": "0.6531771", "text": "function post_install_modules(){\n if(is_file('modules_post_install.php')){\n global $current_user, $mod_strings;\n $current_user = new User();\n $current_user->is_admin = '1';\n require_once('ModuleInstall/PackageManager/PackageManager.php');\n require_once('modules_post_install.php');\n //we now have the $modules_to_install array in memory\n $pm = new PackageManager();\n $old_mod_strings = $mod_strings;\n foreach($modules_to_install as $module_to_install){\n if(is_file($module_to_install)){\n $pm->performSetup($module_to_install, 'module', false);\n $file_to_install = sugar_cached('upload/upgrades/module/').basename($module_to_install);\n $_REQUEST['install_file'] = $file_to_install;\n $pm->performInstall($file_to_install);\n }\n }\n $mod_strings = $old_mod_strings;\n }\n}", "title": "" }, { "docid": "5e047810d7210bc5a8cc2c9ae165005a", "score": "0.6486322", "text": "function after_install() {\r\n\r\n global $CFG;\r\n\r\n //call the install.php script (used for moodle 2) that has the operations that need to be carried\r\n //out after installation\r\n require_once($CFG->dirroot.'/blocks/ilp/db/install.php');\r\n\r\n //call the block_ilp_install function used by moodle 2.0\r\n xmldb_block_ilp_install();\r\n\r\n }", "title": "" }, { "docid": "7019822cda629a4d9dfe566d8b9c7ced", "score": "0.63459617", "text": "public function import_end() {\n\n\t\t\twp_cache_flush();\n\n\t\t\twp_defer_term_counting( false );\n\t\t\twp_defer_comment_counting( false );\n\n\t\t\tdo_action( 'import_end' );\n\n\t\t}", "title": "" }, { "docid": "f3a7ff0c6692890f25434edd6c4f9c57", "score": "0.6281093", "text": "public function execute() {\n global $CFG;\n require_once($CFG->dirroot . '/mod/dataplus/locallib.php');\n mtrace(' Removing old temporary dataplus files.');\n $removed = dataplus_remove_temp_files();\n mtrace(' Removed ' . $removed . ' old temporary dataplus files.');\n }", "title": "" }, { "docid": "d2d2956bb0b58442d57a2bb9fdc7f47d", "score": "0.6197192", "text": "public function postInstall();", "title": "" }, { "docid": "a218b295362a612ed35c50dddff6ae86", "score": "0.6170729", "text": "protected function updateAfterInstall() {}", "title": "" }, { "docid": "d5567ea1dc6c4ea1c3686a85069bd0af", "score": "0.611989", "text": "function after_install() {\n\n global $CFG;\n\n require_once($CFG->dirroot.'/blocks/ajax_marking/db/upgrade.php');\n AMB_update_modules();\n\n }", "title": "" }, { "docid": "d8daabf6efcc7e46db14a472078643bd", "score": "0.6115071", "text": "public static function postInstall() {\n\t\tself::installBootstrap();\n\t\tself::installJquery();\n\t\tself::installDataTables();\n\t\tself::installFontAwesome();\n\t\tself::installFroala();\n\t}", "title": "" }, { "docid": "a249c93ba82452e99d85bdce40c4a4c5", "score": "0.6025924", "text": "public function import_end()\n {\n }", "title": "" }, { "docid": "ba52f5fc196a9677f02941461c7cb31c", "score": "0.60196", "text": "public function merconis_hook_import_finished() {\n /*\n * Custom code\n */\n }", "title": "" }, { "docid": "9e5d952831d05bccf5b4693c05994862", "score": "0.58739173", "text": "function install_from_db_install_profile_modules(&$install_state) {\n if (!empty($install_state['parameters']['quickstart']) && ($install_state['parameters']['quickstart'] === 'quick') && !empty($install_state['parameters']['db_import_filename'])) {\n if (!$install_state['interactive']) {\n watchdog('install', 'Installing from database import.', array(), WATCHDOG_INFO);\n print \"Installing from database\\n\";\n }\n // bypass normal module installation\n // load database dump instead\n // uses batch because normal module install task uses batch\n // and it's also good for this potentially time consuming db restore\n $operations = array();\n $defer_operations = array();\n $system_sql = '';\n $filename = $install_state['parameters']['db_import_filename'];\n if (file_exists($filename)) {\n $file = fopen($filename, 'rb');\n if ($file) {\n while (($line = _install_from_db_read_sql_batch($file, $table)) !== false) {\n if (!empty($line)) {\n // don't process blank lines\n if (in_array($table, array('system'))) {\n $defer_operations[] = array('_install_from_db_install_db_import', array($line, $table));\n }\n else {\n $operations[] = array('_install_from_db_install_db_import', array($line, $table));\n }\n }\n }\n }\n fclose($file);\n $operations = array_merge($operations, $defer_operations);\n }\n $batch = array(\n 'operations' => $operations,\n 'title' => st('Importing site database'),\n 'error_message' => st('The database import has encountered an error.'),\n 'finished' => '_install_from_db_install_db_import_finished',\n );\n return $batch;\n }\n if (!$install_state['interactive']) {\n watchdog('install', 'Performing standard Drupal install.', array(), WATCHDOG_INFO);\n print \"Standard Drupal install\\n\";\n }\n return install_profile_modules($install_state);\n}", "title": "" }, { "docid": "f78f32323c294934827c41729decd95e", "score": "0.58618057", "text": "protected function complete() {\n\t\terror_log( 'PTV TAXONOMY IMPORT COMPLETE' );\n\t\tparent::complete();\n\t}", "title": "" }, { "docid": "0939f5b4a54aba4bcab9f8580f4b12da", "score": "0.5814954", "text": "function _install_from_db_cc_all() {\n // load the module files as if we just installed them\n cache_clear_all('lookup_cache', 'cache_bootstrap');\n cache_clear_all('variables', 'cache_bootstrap');\n cache_clear_all('module_implements', 'cache_bootstrap');\n registry_rebuild();\n $module_list = module_list(TRUE);\n foreach ($module_list as $module) {\n drupal_load('module', $module);\n }\n\n drupal_static_reset();\n drupal_flush_all_caches();\n}", "title": "" }, { "docid": "59d3a2cdbbe44fae1b11493958f8cd50", "score": "0.58067685", "text": "public function run_install_process() {}", "title": "" }, { "docid": "f80430c1b573b3fdbe67737734e8256f", "score": "0.58002865", "text": "public function cs_run_cron_import() {\n\t\t// Run the download and import process.\n\t\t$this->import_articles();\n\t}", "title": "" }, { "docid": "cc5d7dc7271e3643cc6e2091fc040f79", "score": "0.579762", "text": "function Upgrade_Shutdown_Function()\n{\n\t@unlink(DP_WEB_ROOT . '/auto-update-is-running.trigger');\n\t@unlink(dp_get_tmp_dir() . '/auto-upgrade-started');\n\n\tglobal $UPGRADE_CLEANUP;\n\tif (!$UPGRADE_CLEANUP) {\n\t\treturn;\n\t}\n\n\t$fileutil = new FilesystemUtil();\n\n\tif (isset($UPGRADE_CLEANUP['close_log_fh'])) {\n\t\t@fclose($UPGRADE_CLEANUP['close_log_fh']);\n\t}\n\tif (isset($UPGRADE_CLEANUP['unlink_zip_path'])) {\n\t\ttry {\n\t\t\t$fileutil->remove($UPGRADE_CLEANUP['unlink_zip_path']);\n\t\t} catch (\\Exception $e) {}\n\t}\n\tif (isset($UPGRADE_CLEANUP['unlink_scratch_dir'])) {\n\t\ttry {\n\t\t\t$fileutil->remove($UPGRADE_CLEANUP['unlink_scratch_dir']);\n\t\t} catch (\\Exception $e) {}\n\t}\n\n\ttry {\n\t\t$fileutil->remove(DP_WEB_ROOT.'/auto-update-is-running.trigger');\n\t\t$fileutil->remove(dp_get_tmp_dir() . '/auto-upgrade-started');\n\t} catch (\\Exception $e) {}\n\n\t$UPGRADE_CLEANUP = null;\n}", "title": "" }, { "docid": "ada0eff8bc0f3bc18c8d123c961d3a7d", "score": "0.5753572", "text": "public function finish_database_export() {\n $this->importer->finish_database_import();\n }", "title": "" }, { "docid": "e9004b029944cbf0bbdc1ba0b493f660", "score": "0.56740195", "text": "public function postDataImport()\n\t{\n\t\t$installed = $this->installedAddOn;\n\t\tif (!$installed)\n\t\t{\n\t\t\tthrow new \\LogicException(\"Add-on is not installed\");\n\t\t}\n\n\t\t$installed->is_processing = false;\n\t\t$installed->saveIfChanged();\n\n\t\t\\XF::repository('XF:Option')->updateOption('jsLastUpdate', \\XF::$time);\n\t}", "title": "" }, { "docid": "4591c2c25fbe6a80303959ca5cf0c7fa", "score": "0.56674224", "text": "protected function after_execute() {\n $this->add_related_files('mod_random', 'intro', null);\n // Add assignment submission files, matching by assignment_submission itemname\n $this->add_related_files('mod_random', 'submission', 'random_submission');\n $this->add_related_files('mod_random', 'response', 'random_submission');\n }", "title": "" }, { "docid": "e4f341537cb204885ff5f99b044e68be", "score": "0.566052", "text": "public function finish()\n\t{\n\t\t/* Rebuild records post install */\n\t\tforeach( \\IPS\\Db::i()->select( '*', 'cms_databases' ) as $database )\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\\IPS\\Task::queue( 'cms', 'RebuildRecords' , array( 'fixFurls' => true, 'fixHtml' => true, 'fixImage' => true, 'class' => 'IPS\\cms\\Records' . $database['database_id'] ), 3 );\n\t\t\t\t\\IPS\\Task::queue( 'cms', 'RebuildCategories', array( 'fixHtml' => true, 'fixImage' => true, 'class' => 'IPS\\cms\\Categories' . $database['database_id'] ), 3 );\n\t\t\t}\n\t\t\tcatch ( \\OutOfRangeException $ex )\n\t\t\t{\n\t\t\t}\n\t\t\t\n\t\t\t/* Some 'content' fields can be select boxes, etc and we don't want to run the text parser on those as it wraps with <p> tags */\n\t\t\t$fieldClass = '\\IPS\\cms\\Fields' . $database['database_id'];\n\n\t\t\t/* We wrap in a try/catch in case upgraded content field is 'primary_id_field' which won't load, but does not need to be rebuilt anyways */\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$field = $fieldClass::load( $database['database_field_content'] );\n\t\t\t\t\n\t\t\t\tif ( $field->type === 'Editor' )\n\t\t\t\t{\n\t\t\t\t\t\\IPS\\Task::queue( 'core', 'RebuildPosts', array( 'class' => 'IPS\\cms\\Records' . $database['database_id'] ), 2 );\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch( \\Exception $e ){}\n\t\t\t\n\t\t\t\\IPS\\Task::queue( 'core', 'RebuildPosts', array( 'class' => 'IPS\\cms\\Records\\Comment' . $database['database_id'] ), 2 );\n\t\t\t\\IPS\\Task::queue( 'core', 'RebuildPosts', array( 'class' => 'IPS\\cms\\Records\\Review' . $database['database_id'] ), 2 );\n\t\t}\n\t}", "title": "" }, { "docid": "6bfadb8f51cd619ee1fd3155aed02248", "score": "0.5654829", "text": "protected function after_restore() {\n\n if ($this->get_task()->get_mode() != backup::MODE_IMPORT) {\n // Moodle 2.2 assignment upgrade\n $this->upgrade_mod_random();\n }\n }", "title": "" }, { "docid": "9b3db9e1d7cac781794e5965d49c6d96", "score": "0.56364214", "text": "public function importFinished(){\n \n }", "title": "" }, { "docid": "c185bb51521bbb3f52c3caa26d5a570d", "score": "0.5636149", "text": "protected function after_execute() {\n $this->add_related_files('mod_ipal', 'intro', null);\n }", "title": "" }, { "docid": "9791a701c0f505b1497a9c8ec1031a27", "score": "0.5620775", "text": "public function postImport() {\n\n $this->logMessage('CNSTTool Migrated', 'cnsttool.log');\n }", "title": "" }, { "docid": "3252be8ba2b3ea293d8da715149bf871", "score": "0.5613535", "text": "public function _run_install_process() {\n /* Delete 'Install/Upgrade' notice 'dismissed' information */\n delete_option( sanitize_key( 'dismiss_' . $this->slug . '_' . str_replace( '.', '_', $this->args['version'] ) . '_notice' ) );\n /* Delete 'Bootstrap' notice 'dismissed' information */\n delete_option( 'dismissed_notice_' . sanitize_key( $this->name ) );\n $this->run_install_process();\n }", "title": "" }, { "docid": "aa7288236c8bff4c25be9b52cc7e79d7", "score": "0.5604689", "text": "function perform_post_migration_activities() {\n //After applying all the DB Changes,Here we clear the Smarty cache files\n clear_smarty_cache();\n //Writing tab data in flat file\n create_tab_data_file();\n create_parenttab_data_file();\n}", "title": "" }, { "docid": "440970596ae10205cd89e8eed3255770", "score": "0.55878043", "text": "function _install_from_db_install_db_import_finished($success, $results, $operations) {\n // remove any field data added to user entity\n // since we did not import any users\n $fields_info = field_info_instances('user', 'user');\n foreach ($fields_info as $field_name => $info) {\n db_delete('field_data_' . $field_name)\n ->condition('entity_type', 'user')\n ->condition('bundle', 'user')\n ->execute();\n db_delete('field_revision_' . $field_name)\n ->condition('entity_type', 'user')\n ->condition('bundle', 'user')\n ->execute();\n }\n}", "title": "" }, { "docid": "e8b0a07a34679bb10e8a83c60bcd4ce0", "score": "0.55753666", "text": "public function extProc_finish() {}", "title": "" }, { "docid": "9699a78d142b2f8f02c9fc6e55b30731", "score": "0.5574225", "text": "public function importComplete();", "title": "" }, { "docid": "97bbff4adf748c697b60cd49e70b8ee2", "score": "0.5573398", "text": "function needsReloadAfterInstall() ;", "title": "" }, { "docid": "e8b0a07a34679bb10e8a83c60bcd4ce0", "score": "0.55730027", "text": "public function extProc_finish() {}", "title": "" }, { "docid": "5f5e818b59e200abdffd0f7c72004114", "score": "0.5562242", "text": "public function processDatamap_afterAllOperations() {\n\t\tforeach(self::$downloadedFiles as $downloadedFile) {\n\t\t\tif (is_file($downloadedFile)) {\n\t\t\t\t$result = t3lib_div::unlink_tempfile($downloadedFile);\n\t\t\t\tif (!$result) {\n\t\t\t\t\tt3lib_div::sysLog('Could not delete tempfile \"'.$downloadedFile.'\"', 'filepicker', 3);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "29b26fdb4bf6280532b9664909bd0bb7", "score": "0.55595785", "text": "function post_process()\r\n{\r\n // 1. Roles and rights\r\n // 2. Tracking\r\n // 3. Reporting\r\n // 4. \"Various\"\r\n // Check the installer class for a comprehensive list.\r\n // Class located at: ./common/installer.class.php\r\n\r\n\r\n global $core_applications, $applications, $values;\r\n\r\n // Post-processing for core applications\r\n foreach ($core_applications as $core_application)\r\n {\r\n $installer = Installer :: factory($core_application, $values);\r\n $result = $installer->post_process();\r\n\r\n process_result($core_application, $result, $installer->retrieve_message());\r\n\r\n unset($installer);\r\n flush();\r\n }\r\n\r\n // Post-processing for selected applications\r\n foreach ($applications as $application)\r\n {\r\n $toolPath = Path :: get_application_path() . 'lib/' . $application . '/install';\r\n if (is_dir($toolPath) && Application :: is_application_name($application))\r\n {\r\n $check_name = 'install_' . $application;\r\n if (isset($values[$check_name]) && $values[$check_name] == '1')\r\n {\r\n $installer = Installer :: factory($application, $values);\r\n $result = $installer->post_process();\r\n process_result($application, $result, $installer->retrieve_message());\r\n\r\n unset($installer, $result);\r\n flush();\r\n }\r\n }\r\n flush();\r\n }\r\n}", "title": "" }, { "docid": "af82059ce3425fedecee7b8ccb3336dd", "score": "0.55496025", "text": "function postinstall() {\n return true;\n }", "title": "" }, { "docid": "6330226efa5faa811dabc8c787a1628a", "score": "0.5547383", "text": "protected function after_execute() {\n $this->add_related_files('mod_melem', 'intro', null);\n\t\t$this->add_related_files('mod_melem', 'posterurl', null);\n }", "title": "" }, { "docid": "116f447dcf6cb942e2bba83e7917b92b", "score": "0.5531208", "text": "public function postImport() {\n variable_set('ti_amg_fw_image_flush', 1);\n }", "title": "" }, { "docid": "b6ca6cbc8114740f87f636e0a3341d3f", "score": "0.5527105", "text": "protected function after_execute() {\n $this->add_related_files('mod_reader', 'intro', null);\n }", "title": "" }, { "docid": "90d39d852f702569ed51214fb68895da", "score": "0.550456", "text": "function dating_call_after_uninstall() {\n // for example you might want to drop/remove a table or modify some values\n\t\n // In this case we'll remove the table we created to store Example attributes\n $conn = getConnection();\n $conn->autocommit(false);\n try {\n $conn->osc_dbExec(\"DELETE FROM %st_plugin_category WHERE s_plugin_name = 'dating_plugin'\", DB_TABLE_PREFIX);\n $conn->osc_dbExec('DROP TABLE %st_item_dating_attr', DB_TABLE_PREFIX);\n $conn->commit();\n } catch (Exception $e) {\n $conn->rollback();\n echo $e->getMessage();\n }\n $conn->autocommit(true);\n}", "title": "" }, { "docid": "f656fa85ec9774cd7b963c6199932d07", "score": "0.54987895", "text": "public function execute()\n {\n global $injector;\n\n /* Clean out static cache files. Any user has a 0.1% chance of\n * triggering weekly (these static files are shared amongst all\n * users). */\n if (substr(time(), -3) === '000') {\n /* CSS files. */\n $injector->getInstance('Horde_Core_CssCache')->gc();\n\n /* Javascript files. */\n $injector->getInstance('Horde_Core_JavascriptCache')->gc();\n }\n\n /* GC on identity prefs. */\n $injector->getInstance('Horde_Core_Factory_Identity')->create()->prefsGc();\n }", "title": "" }, { "docid": "27f19f91fa87db2aea51dc70cb0d9054", "score": "0.54791", "text": "protected function complete() {\n parent::complete();\n FP_RAC_Main_Function_Importing_Part::$progress_bar->fp_increase_progress(70);\n FP_WooCommerce_Log::log('Recovered Orders Upgrade Completed');\n FP_RAC_Main_Function_Importing_Part::handle_couponcode();\n // Show notice to user or perform some other arbitrary task...\n }", "title": "" }, { "docid": "ffc5eb3ebcae8cc070b60e760e5ecd71", "score": "0.54777795", "text": "public function onPostMerge(){\r\n \r\n //import new deltas from the sfAltumoPlugin build sequence\r\n $this->importAltumoDeltasIntoApplicationBuildSequence();\r\n \r\n }", "title": "" }, { "docid": "fc842663e4baae24510db9bbccf48dd1", "score": "0.5477635", "text": "public function before_delete() {\n global $DB, $OUTPUT;\n\n $dbman = $DB->get_manager();\n\n // delete any elis_scheduled_tasks for block\n $DB->delete_records('elis_scheduled_tasks',\n array('plugin' => 'block_rlip'));\n\n //delegate to sub-plugins\n $subplugintypes = array('rlipimport', 'rlipexport', 'rlipfile');\n foreach ($subplugintypes as $subplugintype) {\n $subplugins = get_plugin_list($subplugintype);\n\n //go through the subplugins for this type\n foreach ($subplugins as $subpluginname => $subpluginpath) {\n $uninstalllib = $subpluginpath.'/db/uninstall.php';\n\n if (file_exists($uninstalllib)) {\n //we have an unstall db file\n require_once($uninstalllib);\n $uninstallfunction = 'xmldb_'.$subplugintype.'_'.$subpluginname.'_uninstall';\n\n if (function_exists($uninstallfunction)) {\n //we have an uninstall function, so run it\n if (!$uninstallfunction()) {\n echo $OUTPUT->notification('Encountered a problem running uninstall function for '.\n $subplugintype.'_'.$subpluginname);\n }\n }\n }\n }\n } \n }", "title": "" }, { "docid": "f3667650bd6f279ff3786da99383cde3", "score": "0.5472719", "text": "protected function afterInstall(): void\n {\n $configSource = __DIR__ . DIRECTORY_SEPARATOR . 'config.example.php';\n $configTarget = \\Craft::$app->getConfig()->configDir . DIRECTORY_SEPARATOR . 'envfile.php';\n\n if (! file_exists($configTarget)) {\n copy($configSource, $configTarget);\n }\n }", "title": "" }, { "docid": "70975a57e44d976f9aa12a5f848b173f", "score": "0.5450535", "text": "public function end()\n\t{\n\t\t// Logs the succesful script execution until completion\n\t\tPiwik_SetOption(self::OPTION_ARCHIVING_FINISHED_TS, time());\n\t}", "title": "" }, { "docid": "082d0aeaf417d7ac799ab069bfa100b2", "score": "0.54400676", "text": "public function post_importer_compatibility()\n {\n }", "title": "" }, { "docid": "6a02672c5c5ef9d3740ee86d21100b18", "score": "0.5437809", "text": "protected function after_execute() {\n parent::after_execute();\n\n // Add the files.\n $this->add_related_files('mod_linkedincert', 'intro', null);\n\n // Note - we can't use get_old_contextid() as it refers to the module context.\n $this->add_related_files('mod_linkedincert', 'image', null, $this->get_task()->get_info()->original_course_contextid);\n }", "title": "" }, { "docid": "9c83370e55390810c62ee78aed5479ff", "score": "0.54362476", "text": "protected function markImportDatabaseDone() {}", "title": "" }, { "docid": "5070a4cfc9c66b45e32e610e833ad251", "score": "0.54232705", "text": "function featureEndScripts() {\n\t\t// stará verze\n\t\t//$this->executeAllSqlInFolder($this->sqlFolder . '/' . self::$FEATURE_END_FOLDER_NAME);\n\t}", "title": "" }, { "docid": "a4af0e4f0ac970f37c27a9eae57821bd", "score": "0.5394804", "text": "public function run_install()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "e71dceaf20d32461579f75bb79ed0755", "score": "0.53879124", "text": "public function processFixFinalOrderHooks() {\n \n // HOOK: allow multiple hooks to append individual action\n if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$this->extKey]['orderProcessor_hooks']['fixFinalOrderHook'])) { // TODO: changelog, former hook name was ['pi3_hooks]['processOrderSubmission_fixFinalOrderHook']\n foreach($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$this->extKey]['orderProcessor_hooks']['fixFinalOrderHook'] as $funcName) {\n $params = array(\n 'orderWrapperObj' => $this->orderWrapperObj,\n );\n t3lib_div::callUserFunction($funcName, $params, $this, '');\n if (TYPO3_DLOG) t3lib_div::devLog(sprintf('Processing hook \"%s\" for \"fixFinalOrderHook\"', $funcName), $this->extKey, 1, array('params' => $params));\n }\n }\n }", "title": "" }, { "docid": "3571150c94dc407d7b2eb78f87743b3d", "score": "0.5385448", "text": "function onCron($isDay=false) {\n\t\t###### -> Construct should add this module to the onCron array\n\t\tif ($isDay) {\n\t\t\t// delete week old entries (select data, detect files, delete files, delete data)\n\t\t\t$core = &$this->parent;\n\t\t\t$undoModule = $this->parent->loaded($this->moduleRelation);\n\t\t\t$sql = \"SELECT id, files FROM \".$undoModule->dbname.\" WHERE files<>'' AND data<NOW() - INTERVAL 1 WEEK\";\n\t\t\t$core->dbo->query($sql,$r,$n);\n\t\t\tif ($n>0) {\n\t\t\t\tfor ($c=0;$c<$n;$c++) {\n\t\t\t\t\tlist($id,$files) = $core->dbo->fetch_row($r);\n\t\t\t\t\t$files = @unserialize($files);\n\t\t\t\t\tif ($files) {\n\t\t\t\t\t\tforeach ($files as $file) {\n\t\t\t\t\t\t\tif (is_file(CONS_FMANAGER.\"_undodata/\".$file))\n\t\t\t\t\t\t\t@unlink(CONS_FMANAGER.\"_undodata/\".$file);\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$core->dbo->simpleQuery(\"DELETE FROM \".$undoModule->dbname.\" WHERE data<NOW() - INTERVAL 1 WEEK\");\n\t\t\t# Find orphan files and delete them\n\t\t\t$lastWeek = date(\"Y-m-d\").\" 00:00:00\";\n\t\t\t$lastWeek = datecalc($lastWeek,0,0,-7);\n\t\t\t$lastWeek = tomktime($lastWeek);\n\t\t\t$files = listFiles(CONS_FMANAGER.\"_undodata/\",'@^(.*)$@',true);\n\t\t\tforeach ($files as $file) {\n\t\t\t\t$ft = filemtime(CONS_FMANAGER.\"_undodata/\".$file);\n\t\t\t\tif ($ft<$lastWeek) @unlink(CONS_FMANAGER.\"_undodata/\".$file);\n\t\t\t\telse break; // the list is ordered by date, so the first not to match means none will\n\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "fbe1b5ea6a0d5bcf8829fca6f99c7f17", "score": "0.53848416", "text": "public function install()\n {\n /*\n * Check to see if it isn't scheduled first, for example\n * this would occur when loaded via theme\n */\n if ( FALSE === wp_get_schedule( 'wp-less-garbage-collection' ) )\n {\n wp_schedule_event(time(), 'daily', 'wp-less-garbage-collection');\n }\n /*\n * Clear old hooks, prior to hook change\n * #57\n */\n wp_clear_scheduled_hook( 'wp-less_garbage_collection' );\n }", "title": "" }, { "docid": "7a23eabaa3b12e4c179e7669e5754f26", "score": "0.5380351", "text": "public function onPostInstallOrUpdate(ScriptEvent $event)\n {\n if ($this->state->isFirstInstall()) {\n $this->state->setFirstInstall(false);\n $this->logger->info(\n '<comment>Running additional update to apply merge settings</comment>'\n );\n $this->runFirstInstall($event);\n }\n }", "title": "" }, { "docid": "910d600eeb12e9c47b1197d807552f7f", "score": "0.5371701", "text": "function dating_call_after_install() {\n // for example you might want to create a table or modify some values\n\n // In this case we'll create a table to store the Example attributes\n $conn = getConnection();\n\n $conn->autocommit(false);\n try {\n $path = osc_plugin_resource('dating_attributes/struct.sql');\n $sql = file_get_contents($path);\n $conn->osc_dbImportSQL($sql);\n $conn->commit();\n } catch (Exception $e) {\n $conn->rollback();\n echo $e->getMessage();\n }\n $conn->autocommit(true);\n}", "title": "" }, { "docid": "16ae14a20d26d58ac39d7b6bfd65aa69", "score": "0.53464025", "text": "public function postImport() {\n parent::postImport();\n /*\n * Since we just imported faq content, you probably want this module\n * enabled so you can test things out.\n */\n //module_enable(array('faq'));\n\n //redirect the D6 url for the Faq page to the D7 version\n if (module_exists('redirect')) {\n $redirect = new stdClass();\n redirect_object_prepare(\n $redirect,\n array(\n 'source' => 'faq',\n 'source_options' => array(),\n 'redirect' => 'faq-page',\n 'redirect_options' => array(),\n 'language' => LANGUAGE_NONE,\n )\n );\n redirect_save($redirect);\n }\n\n }", "title": "" }, { "docid": "2b95c8973d7c31d124c523f8ae0708d3", "score": "0.53452474", "text": "private function installer(){\n if(!$this->getModuleName() != \"hook_it\"){\n return;\n }\n db_update('system')\n ->fields(array('weight' => -10000, 'bootstrap' => 1))\n ->condition('name', $this->getModuleName(), '=')\n ->execute();\n }", "title": "" }, { "docid": "c42d188c35fa2ddd7c371323cab6adad", "score": "0.53391725", "text": "static function commit()\n {\n if (self::$inTransaction === false) {\n return false;\n }\n\n $installer = new Uninstaller;\n // validate dependencies\n $errs = new \\PEAR2\\MultiErrors;\n $reg = Config::current()->registry;\n try {\n foreach (self::$uninstallPackages as $package) {\n $package->validateUninstallDependencies(self::$uninstallPackages, $errs);\n }\n\n if (count($errs->E_ERROR)) {\n throw new Installer\\Exception('Dependency validation failed ' .\n 'for some installed packages, installation aborted', $errs);\n }\n\n // create dependency connections and load them into the directed graph\n $graph = new DirectedGraph;\n foreach (self::$uninstallPackages as $package) {\n $package->makeUninstallConnections($graph, self::$uninstallPackages);\n }\n\n // topologically sort packages and install them via iterating over the graph\n $actual = array();\n foreach ($graph as $package) {\n $actual[] = $package;\n }\n\n // easy reverse topological sort\n array_reverse($actual);\n\n AtomicFileTransaction::begin();\n $reg->begin();\n try {\n foreach ($actual as $package) {\n $installer->uninstall($package, $reg);\n self::$uninstalledPackages[] = $package;\n }\n\n $dirtrees = array();\n foreach (self::$uninstalledPackages as $package) {\n $dirtrees[] = $reg->info($package->name, $package->channel, 'dirtree');\n $previous = $reg->toPackageFile($package->name, $package->channel, true);\n self::$registeredPackages[] = array($package, $previous);\n $reg->uninstall($package->name, $package->channel);\n }\n\n AtomicFileTransaction::rmEmptyDirs($dirtrees);\n AtomicFileTransaction::commit();\n $reg->commit();\n AtomicFileTransaction::removeBackups();\n } catch (\\Exception $e) {\n if (AtomicFileTransaction::inTransaction()) {\n AtomicFileTransaction::rollback();\n }\n\n $reg->rollback();\n throw $e;\n }\n\n self::$uninstallPackages = array();\n Config::current()->saveConfig();\n if (isset(Main::$options['install-plugins'])) {\n Config::setCurrent(self::$lastCurrent->path);\n }\n } catch (\\Exception $e) {\n self::rollback();\n throw $e;\n }\n }", "title": "" }, { "docid": "8086c8057f5058bd48c8c1d6fc469b52", "score": "0.53281355", "text": "public function onAfterInstall();", "title": "" }, { "docid": "c65629cd688573dfe627c398288480f2", "score": "0.53233993", "text": "public function backupExistingInstallFiles()\n\t{\n\t\t$this->logger->log('Starting backup of existing installation');\n\n\t\t// First backup the contents of system/ee, excluding ourselves\n\t\t$this->move(\n\t\t\tSYSPATH.'ee/',\n\t\t\t$this->getBackupsPath() . 'system_ee/',\n\t\t\t[SYSPATH.'ee/updater']\n\t\t);\n\n\t\t// We'll only backup one theme folder, they _should_ all be the same\n\t\t// across sites\n\t\t$theme_path = array_values($this->configs['theme_paths'])[0];\n\t\t$theme_path = rtrim($theme_path, DIRECTORY_SEPARATOR) . '/ee/';\n\n\t\t$this->move($theme_path, $this->getBackupsPath() . 'themes_ee/');\n\t}", "title": "" }, { "docid": "742b0fa99c794667a3b372f96c39d9da", "score": "0.53035843", "text": "function install_etape_fin_dist()\n{\n\tecrire_acces();\n\n\t$f = str_replace( _FILE_TMP_SUFFIX, '.php', _FILE_CHMOD_TMP);\n\tif (file_exists(_FILE_CHMOD_TMP)) {\n\t\tif (!@rename(_FILE_CHMOD_TMP, $f)) {\n\t\t\tif (@copy(_FILE_CHMOD_TMP, $f))\n\t\t\t\tspip_unlink(_FILE_CHMOD_TMP);\n\t\t}\n\t}\n\n\t$f = str_replace( _FILE_TMP_SUFFIX, '.php', _FILE_CONNECT_TMP);\n\tif (file_exists(_FILE_CONNECT_TMP)) {\n\t\tspip_log(\"renomme $f\");\n\t\tif (!@rename(_FILE_CONNECT_TMP, $f)) {\n\t\t\tif (@copy(_FILE_CONNECT_TMP, $f))\n\t\t\t\t@spip_unlink(_FILE_CONNECT_TMP);\n\t\t}\n\t}\n\n\t// creer le repertoire cache, qui sert partout !\n\t// deja fait en etape 4 en principe, on garde au cas ou\n\tif(!@file_exists(_DIR_CACHE)) {\n\t\t$rep = preg_replace(','._DIR_TMP.',', '', _DIR_CACHE);\n\t\t$rep = sous_repertoire(_DIR_TMP, $rep, true,true);\n\t}\n\n\t/**\n\t * Mettre le cookie de session automatiquement après initialisation du site\n\t */\n\tif(isset($GLOBALS['visiteur_session']['login']) && $GLOBALS['visiteur_session']['login']){\n\t\tinclude_spip('inc/cookie');\n\t\t$cook = isset($_COOKIE['spip_admin']) ? $_COOKIE['spip_admin'] : '';\n\t\tspip_setcookie('spip_admin', '@'.$GLOBALS['visiteur_session']['login'],\n\t\t\ttime() + 14 * 24 * 3600);\n\t}\n\t\n\t// Verifier la securite des htaccess\n\t// Si elle ne fonctionne pas, prevenir\n\t$msg = install_verifier_htaccess();\n\tif ($msg) {\n\t\t$cible = _T('public:accueil_site');\n\t\t$cible = generer_form_ecrire('accueil', '','', $cible);\n\t\techo minipres('AUTO', $msg . $cible);\n\t// ok, deboucher dans l'espace prive\n\t} else redirige_par_entete($GLOBALS['meta']['adresse_site']);\n}", "title": "" }, { "docid": "8d7718e87ceca031ade02f4d8e08727f", "score": "0.5289376", "text": "public function runInstall() {}", "title": "" }, { "docid": "5931fcb2a99a206b83de50f0563d4f8a", "score": "0.5280882", "text": "protected static function _preInstall()\r\n\t{\r\n\t\tself::checkXfVersion(1030031, '1.3.0');\r\n\r\n\t\tself::_import();\r\n\t}", "title": "" }, { "docid": "7c43ac2b0fbb28dfad18a6a38cd5f44b", "score": "0.5276097", "text": "public function rollbackFiles()\n\t{\n\t\t$this->logger->log('Rolling back to previous installation\\'s files');\n\n\t\t// Move back the new installation\n\t\t$this->move(\n\t\t\tSYSPATH.'ee/',\n\t\t\t$this->configs['archive_path'] . '/system/ee/',\n\t\t\t[SYSPATH.'ee/updater']\n\t\t);\n\n\t\t// Now move new themes into place\n\t\t$new_themes_dir = $this->configs['archive_path'] . '/themes/ee/';\n\n\t\t// If multiple theme paths exist, delete the contents of them since we\n\t\t// copied to them before\n\t\tif (count($this->configs['theme_paths']) > 1)\n\t\t{\n\t\t\tforeach ($this->configs['theme_paths'] as $theme_path)\n\t\t\t{\n\t\t\t\t$theme_path = rtrim($theme_path, DIRECTORY_SEPARATOR) . '/ee/';\n\n\t\t\t\t$this->delete($theme_path);\n\t\t\t}\n\t\t}\n\t\t// Otherwise, move the themes folder back to the archive folder\n\t\telse\n\t\t{\n\t\t\t$theme_path = $this->configs['theme_paths'][0];\n\t\t\t$theme_path = rtrim($theme_path, DIRECTORY_SEPARATOR) . '/ee/';\n\n\t\t\t$this->move($theme_path, $new_themes_dir);\n\t\t}\n\n\t\t// Now, restore backups\n\t\t$this->move(\n\t\t\t$this->getBackupsPath() . 'system_ee/',\n\t\t\tSYSPATH.'ee/'\n\t\t);\n\n\t\t// Copy themes backup to each theme folder (copy because there may be\n\t\t// multiple theme locations)\n\t\tforeach ($this->configs['theme_paths'] as $theme_path)\n\t\t{\n\t\t\t$theme_path = rtrim($theme_path, DIRECTORY_SEPARATOR) . '/ee/';\n\n\t\t\t$this->copy($this->getBackupsPath() . 'themes_ee/', $theme_path);\n\t\t}\n\t}", "title": "" }, { "docid": "c6cbfe1779d00c8f9b658e8008f0695f", "score": "0.5264294", "text": "public function afterRegistry()\n {\n parent::afterRegistry();\n\n $this->loadExport();\n }", "title": "" }, { "docid": "af5f8b44446f3aad855bb61563583aa9", "score": "0.5261963", "text": "public function install()\n {\n $this->download()\n ->extract()\n ->cleanUp()\n ->process()\n ->complete();\n }", "title": "" }, { "docid": "a9197196d5a9f267314780980e877c78", "score": "0.5258953", "text": "function finish_conversion()\n\t{\n\t\tglobal $db, $phpbb_root_path, $phpEx, $convert, $config, $language, $user;\n\t\tglobal $cache, $auth, $phpbb_container, $phpbb_log;\n\n\t\tinclude_once ($phpbb_root_path . 'includes/functions_admin.' . $phpEx);\n\n\t\t$db->sql_query('DELETE FROM ' . CONFIG_TABLE . \"\n\t\t\tWHERE config_name = 'convert_progress'\n\t\t\t\tOR config_name = 'convert_options'\n\t\t\t\tOR config_name = 'convert_db_server'\n\t\t\t\tOR config_name = 'convert_db_user'\");\n\t\t$db->sql_query('DELETE FROM ' . SESSIONS_TABLE);\n\n\t\t@unlink($phpbb_container->getParameter('core.cache_dir') . 'data_global.' . $phpEx);\n\t\tphpbb_cache_moderators($db, $cache, $auth);\n\n\t\t// And finally, add a note to the log\n\t\t$phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_INSTALL_CONVERTED', false, array($convert->convertor_data['forum_name'], $config['version']));\n\n\t\t$url = $this->controller_helper->route('phpbb_convert_finish');\n\n\t\t$this->template->assign_vars(array(\n\t\t\t'L_SUBMIT'\t\t=> $user->lang['FINAL_STEP'],\n\t\t\t'U_ACTION'\t\t=> $url,\n\t\t));\n\n\t\t$this->meta_refresh($url);\n\t\treturn;\n\t}", "title": "" }, { "docid": "adc5ca549743e1706d57dddfffc84ab8", "score": "0.52557534", "text": "function flow_auto_install_admin_init() {\n\tglobal $pagenow;\n\n\tfunction flow_delete_everything(){\n\t\n\t\t// Delete posts, pages, custom post types\n\t\t$post_types = get_post_types('', 'names');\n\t\t//unset($post_types['attachment']);\n\t\t$query = new WP_Query(array( 'post_status' => 'any', 'post_type' => $post_types, 'posts_per_page' => '-1' ));\n\t\tif($query->have_posts()){\n\t\t\twhile($query->have_posts()){\n\t\t\t\t$query->the_post();\n\t\t\t\t$postid = get_the_ID();\n\t\t\t\t//echo 'Deleting... ' . $postid . ' (' . get_post_type($postid) . ')<br>';\n\t\t\t\t$force_delete = true;\n\t\t\t\twp_delete_post( $postid, $force_delete );\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Delete theme mods (nav_menu_locations, sidebars_widgets (backup sidebars for this theme that are restored when theme is re-activated, not in the current sidebars and widgets DB table), header color etc.)\n\t\tremove_theme_mods();\n\t\t\n\t\t// Delete menus\n\t\t$menu_list = wp_get_nav_menus();\n\t\tforeach($menu_list as $menu){\n\t\t\twp_delete_nav_menu($menu->term_id);\n\t\t}\n\t\t\n\t\t// Delete categories\n\t\t$taxonomies = get_taxonomies('','names');\n\t\t$terms = get_terms($taxonomies, 'hide_empty=0');\n\n\t\tforeach($terms as $term){\n\t\t\tif(is_object($term) && $term->taxonomy != 'link_category' && $term->taxonomy != 'post_format' && $term->taxonomy != 'nav_menu'){\n\t\t\t\tif((is_object($term) && $term->taxonomy == 'category') && ($term->term_id == 1 || $term->term_taxonomy_id == 1)){\n\t\t\t\t}else{\n\t\t\t\t\twp_delete_term($term->term_id, $term->taxonomy);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}\n\t\n\tfunction flow_import_everything(){\n\t\n\t\t// Load Importer API\n\t\trequire_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'wordpress-importer.php';\n\t\t\n\t\tif ( class_exists( 'WP_Import' ) ) {\n\t\t\n\t\t\t// Import demo posts, pages, menus, projects etc.\n\t\t\t$importer = new WP_Import;\n\t\t\t$file = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'daishowordpresstheme.wordpress.2013-02-15.xml';\n\t\t\t$importer->flow_import($file);\n\t\t\t\n\t\t\t// Install demo settings\n\t\t\tflow_install_theme_settings(true, false, false);\n\t\t\t\n\t\t\t// Import Sidebars & Widgets\n\t\t\t$demo_widget_text = array(\n\t\t\t\t4 => array(\n\t\t\t\t\t'title' => 'Sidebar Heading',\n\t\t\t\t\t'text' => 'Search advertising focuses competitor, relying on insider information. Visualization of the concept of weakly transmits the consumer market, optimizing budgets.',\n\t\t\t\t\t'filter' => false,\n\t\t\t\t) ,\n\t\t\t\t5 => array(\n\t\t\t\t\t'title' => false,\n\t\t\t\t\t'text' => '<hr><div class=\"footer-client-logos\"><img src=\"http://themes.devatic.com/daisho/wp-content/uploads/2012/09/client1.png\" alt=\"\"><img src=\"http://themes.devatic.com/daisho/wp-content/uploads/2012/09/client2y.png\" alt=\"\"><img src=\"http://themes.devatic.com/daisho/wp-content/uploads/2012/09/client3.png\" alt=\"\"> <img src=\"http://themes.devatic.com/daisho/wp-content/uploads/2012/09/client4.png\" alt=\"\"><img src=\"http://themes.devatic.com/daisho/wp-content/uploads/2012/09/client5.png\" alt=\"\"></div>',\n\t\t\t\t\t'filter' => false,\n\t\t\t\t) ,\n\t\t\t\t8 => array(\n\t\t\t\t\t'title' => false,\n\t\t\t\t\t'text' => '<hr>',\n\t\t\t\t\t'filter' => false,\n\t\t\t\t) ,\n\t\t\t\t10 => array(\n\t\t\t\t\t'title' => '',\n\t\t\t\t\t'text' => '<ul class=\"footer-social-icons\"><li><a href=\"http://devatic.com/\">y</a></li><li><a href=\"http://devatic.com/\">t</a></li><li><a href=\"http://devatic.com/\">s</a></li><li><a href=\"http://devatic.com/\">f</a></li><li><a href=\"http://devatic.com/\">m</a></li><li><a href=\"http://devatic.com/\">r</a></li><li><a href=\"http://devatic.com/\">l</a></li> </ul>',\n\t\t\t\t\t'filter' => false,\n\t\t\t\t) ,\n\t\t\t\t11 => array(\n\t\t\t\t\t'title' => false,\n\t\t\t\t\t'text' => '<div class=\"copyright_notice\">&copy; 2013 Daisho Systems. All Rights Reserved.</div>',\n\t\t\t\t\t'filter' => false,\n\t\t\t\t) ,\n\t\t\t\t'_multiwidget' => 1,\n\t\t\t);\n\t\t\tupdate_option( 'widget_text', $demo_widget_text );\n\t\t\t\n\t\t\t$demo_widget_categories = array ( 2 => array ( 'title' => 'Categories', 'count' => 0, 'hierarchical' => 0, 'dropdown' => 0, ), '_multiwidget' => 1, );\n\t\t\tupdate_option( 'widget_categories', $demo_widget_categories );\n\t\t\t\n\t\t\t//$demo_widget_search = array ( 2 => array ( 'title' => 'Search', ), '_multiwidget' => 1, );\n\t\t\t//update_option( 'widget_search', $demo_widget_search );\n\t\t\t\n\t\t\t$demo_widget_nav_menu = array ( 2 => array ( 'title' => 'Pages', 'nav_menu' => 32, ), '_multiwidget' => 1, );\n\t\t\tupdate_option( 'widget_nav_menu', $demo_widget_nav_menu );\n\t\t\t\n\t\t\t$demo_widget_tag_cloud = array ( 2 => array ( 'title' => false, 'taxonomy' => 'post_tag', ), '_multiwidget' => 1, );\n\t\t\tupdate_option( 'widget_tag_cloud', $demo_widget_tag_cloud );\n\t\t\t\n\t\t\t$demo_sidebars = array ( 'wp_inactive_widgets' => array ( ), 'sidebar-1' => array ( 0 => 'nav_menu-2', 1 => 'text-4', 2 => 'categories-2', 3 => 'tag_cloud-2', ), 'flow-footer-1' => array ( 0 => 'text-5', ), 'flow-footer-2' => array ( 0 => 'text-8', ), 'flow-footer-3' => array ( 0 => 'text-10', ), 'flow-footer-4' => array ( 0 => 'text-11', ) );\n\t\t\tupdate_option( 'sidebars_widgets', $demo_sidebars );\n\n\t\t\t// Attach menus\n\t\t\t$menu_obj = get_terms( 'nav_menu' );\n\t\t\t$menu_locations = get_nav_menu_locations();\n\t\t\tif(is_array($menu_obj) && !empty($menu_obj)){\n\t\t\t\tforeach($menu_obj as $single_menu){\n\t\t\t\t\tif($single_menu->slug == 'main-menu'){\n\t\t\t\t\t\t$menu_locations['main_menu'] = $single_menu->term_id;\n\t\t\t\t\t}\n\t\t\t\t\tif($single_menu->slug == 'mobile-menu'){\n\t\t\t\t\t\t$menu_locations['mobile_menu'] = $single_menu->term_id;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tset_theme_mod( 'nav_menu_locations', $menu_locations );\n\t\t\t}\n\t\t}\n\t}\n\t\n\t$template = get_option( 'template' );\n\tif(!empty($_GET['flow_install_demo']) && (get_option( 'flow_hide_install_demo' ) !== $template) && current_user_can('manage_options') && current_user_can('edit_files') && current_user_can('delete_others_pages') && current_user_can('delete_others_posts') && current_user_can('import')){\n\t\tflow_delete_everything();\n\t\tflow_import_everything();\n\t\t\n\t\t// Flush rules after install\n\t\tflush_rewrite_rules();\n\n\t\tupdate_option( 'flow_hide_install_demo', $template );\n\t}\n}", "title": "" }, { "docid": "2707a02b2417df4567002fb6e9fa3aa3", "score": "0.52480656", "text": "function db_insert()\n{\n global $root, $public, $site_config;\n $out = '<fieldset><legend>Database</legend>';\n require_once $root . 'include/config.php';\n if ($_POST['xbt'] == 1) {\n $file = 'install.xbt.sql';\n } elseif ($_POST['xbt'] == 0) {\n $file = 'install.php.sql';\n }\n $q = sprintf('/usr/bin/mysql -h %s -u %s -p%s %s < %sinstall/extra/'.$file, $site_config['mysql_host'], $site_config['mysql_user'], $site_config['mysql_pass'], $site_config['mysql_db'], $public); //== Linux\n set_time_limit(1200);\n ini_set('max_execution_time', 1200);\n ini_set('request_terminate_timeout', 1200);\n ignore_user_abort(true);\n exec($q, $o);\n\n // update cleanup log times, begin at the previous midnight\n $timestamp = strtotime('today midnight');\n $sql = \"UPDATE cleanup SET clean_time = $timestamp\";\n $q = sprintf('/usr/bin/mysql -h %s -u %s -p%s %s -e \"%s\"', $site_config['mysql_host'], $site_config['mysql_user'], $site_config['mysql_pass'], $site_config['mysql_db'], $sql);\n exec($q, $oo);\n\n if (!count($o) && !count($oo)) {\n $out .= '<div class=\"readable\">Database was imported</div>\n </fieldset>\n <div style=\"text-align:center\"><input type=\"button\" value=\"Finish\" onclick=\"window.location.href=\\'?step=4\\'\" /></div>';\n file_put_contents('step3.lock', 1);\n } else {\n $out .= '<div class=\"notreadable\">There was an error while importing the database<br>'.$o.'</div></fieldset>';\n }\n echo $out;\n}", "title": "" }, { "docid": "2286ca8605c21a992375ed9fabacbe73", "score": "0.5244324", "text": "public function run()\n {\t\t\n\t\t/*$storeId = 3;\n\t\t$langPage = Mage::getModel('cms/page')->setStoreId($storeId)->load('no-route', 'identifier');\n\t\t$langData = $langPage->getData();\n\t\tvar_dump($langData);\n\t\treturn;\n\t\t\n\t\t$this->testImport();\n\t\treturn;*/\n\t\t\n\t\tMage::log(\"Cron::run entered\");\n\t\t$lock = Gpi_Tsc_Model_Lock::getInstance();\n\t\tif ($lock->isLocked()) {\n\t\t\tMage::log(\"Cron::run lock in use, a previous CRON job is already running.\");\n\t\t} else {\n\t\t\tMage::log(\"Cron::run acquiring lock...\");\n\t\t\t$lock->lock();\n\t\t\t\n\t\t\t try {\n\t\t\t\t$this->clientConfigurationService = new ClientConfigurationServiceImpl();\n\t\t\t\t$this->connector = new MagentoGpiClient();\n\n\t\t\t\t$this->doExports();\t\t\t\t\n\t\t\t\t$this->doImports();\n\t\t\t\t$this->cleanUpQuotes();\n\t\t\t} catch (Exception $e) {\n\t\t\t\tMage::log($e->getMessage());\n\t\t\t}\n\n\t\t\tMage::log(\"Cron::run releasing lock...\");\n\t\t\t$lock->unlock();\n\t\t}\n\t\tMage::log(\"Cron::run exited\");\n }", "title": "" }, { "docid": "f8eb19ed5c3cb71717d5d51f9069cafa", "score": "0.52432716", "text": "function drupal_cron_cleanup() {\n // See if the semaphore is still locked.\n if (variable_get('cron_semaphore', FALSE)) {\n watchdog('cron', t('Cron run exceeded the time limit and was aborted.'), WATCHDOG_WARNING);\n\n // Release cron semaphore\n variable_del('cron_semaphore');\n }\n}", "title": "" }, { "docid": "6117f8e689d481ec6f7461531aab37fa", "score": "0.5234899", "text": "public function afterRegistry()\n {\n MonitorJob::$monitorDateFormat = 'l j F Y H:i';\n MonitorJob::$monitorDir = GEMS_ROOT_DIR . '/var/settings';\n }", "title": "" }, { "docid": "841f30c211657cde5c8a1bb07f369c95", "score": "0.52326655", "text": "public function track_product_importer_complete()\n {\n }", "title": "" }, { "docid": "1e3767f72c6d7d323762c9eded1fbe8b", "score": "0.523103", "text": "function drush_file_cron() {\n set_time_limit(0);\n file_cron();\n drush_print(dt('A cron run has been completed.'));\n}", "title": "" }, { "docid": "8c13748410a357adc0d84f9ff79947ba", "score": "0.522562", "text": "private static function finish_installation() {\n\t\t$state = self::get_state();\n\t\tif ( empty( $state['steps'] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tforeach ( $state['steps'] as $step ) {\n\t\t\tif ( ! empty( $step['last_error'] ) ) {\n\t\t\t\t$state['status'] = 'has_error';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif ( 'has_error' !== $state['status'] ) {\n\t\t\t$state['status'] = 'finished';\n\t\t}\n\n\t\tWC_Helper_Options::update( 'product_install', $state );\n\t}", "title": "" }, { "docid": "e7f9cc1f1863382cdb4842b9a313442b", "score": "0.5220067", "text": "public static function removeFirstInstallFile() {}", "title": "" }, { "docid": "bdfbf7282c3cc9e14ce737def7995429", "score": "0.52167886", "text": "public function do_install() {\n\t\ttry {\n\t\t\t// Do the update\n\t\t\tprocess_message('DOING THE UPDATE...');\n\t\t\t// Identify directories\n\t\t\t$source = dirname(__FILE__).'/download/ready/';\n\t\t\t$destination = dirname(dirname(__FILE__)).'/';\n\t\t\t// Copy the files to the main folder\n\t\t\tif($this->copyfiles($source, $destination) == false) {\n\t\t\t\tthrow new Exception('Error while copying upgrade files.');\n\t\t\t}\n\t\t\t// Empty the temp directory\n\t\t\tif($this->delete(dirname(__FILE__).'/download/ready/') == false) {\n\t\t\t\tthrow new Exception(\"We had a problem removing the temporary directory.\");\n\t\t\t}\n\t\t} catch (Exception $e) {\n\t\t\tprocess_error($e->getMessage().' (Line '.$e->getLine().')');\n\t\t\treturn false;\n\t\t}\n\t\t// All is good\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f3ff5d8578fb000bfdbffb7c31648f12", "score": "0.5204936", "text": "public function run()\n {\n global $cronJob; // from CronController\n \n //At this time the job should be defered, \n //no new actions should be started after this time.\n if (time() >= $cronJob['endtime'])\n {\n $cronJob['completed'] = false;\n return;\n }\n \n foreach ( array_diff( scandir( TL_ROOT . '/' . $this->languages_dir ), $this->languages ) as $dir )\n {\n if (is_dir( TL_ROOT . '/' . $this->languages_dir . '/' . $dir ))\n {\n $objDir = new Folder( $this->languages_dir . '/' . $dir );\n $objDir->delete(); //internal: rrdir incl. $this->dir\n $objDir = null;\n unset($objDir);\n $this->killed = true;\n }\n } \n if ($this->killed && $cronJob['logging'])\n {\n $this->log('Superfluous languages files purged by cron job.', 'PurgeLanguagesFiles run()', TL_GENERAL);\n // purge the internal cache\n // system/cache/dca, system/cache/sql, system/cache/language\n $this->import('Automator');\n $this->Automator->purgeInternalCache();\n }\n }", "title": "" }, { "docid": "b42c254e4edf421fc7dbf2f2156be167", "score": "0.52026767", "text": "function uninstall() {\r\n $rec=SQLSelectOne(\"SELECT * FROM project_modules WHERE NAME='\".$this->name.\"'\");\r\n if (IsSet($rec[\"ID\"])) {\r\n SQLExec(\"DELETE FROM project_modules WHERE ID='\".$rec[\"ID\"].\"'\");\r\n }\r\n if (file_exists(DIR_MODULES.$this->name.\"/installed\")) {\r\n unlink(DIR_MODULES.$this->name.\"/installed\");\r\n }\r\n }", "title": "" }, { "docid": "4c22f685b35ed37b9a75e6a6cd276b9a", "score": "0.52013886", "text": "public function finish($token = null) {\n\t\t$this->set('title_for_layout', __d('croogo', '安装完成'));\n\t\t$this->_check();\n\t\t$InstallManager = new InstallManager();\n\t\t$InstallManager->stvs();\n\t\t$result = $InstallManager->createSettingsFile();\n\t\tif ($result) {\n\t\t\t$InstallManager->installCompleted();\n\t\t} else {\n\t\t\t$this->log(__d('croogo', '安装失败,不能创建settings文件。'));\n\t\t}\n\n\t\t$urlBlogAdd = Router::url(array(\n\t\t\t'plugin' => 'nodes',\n\t\t\t'admin' => true,\n\t\t\t'controller' => 'nodes',\n\t\t\t'action' => 'add',\n\t\t\t'blog',\n\t\t));\n\t\t$urlSettings = Router::url(array(\n\t\t\t'plugin' => 'settings',\n\t\t\t'admin' => true,\n\t\t\t'controller' => 'settings',\n\t\t\t'action' => 'prefix',\n\t\t\t'Site',\n\t\t));\n\n\t\t$this->set('user', $this->Session->read('Install.user'));\n\t\t$this->Session->destroy();\n\t\t$this->set(compact('urlBlogAdd', 'urlSettings'));\n\t}", "title": "" }, { "docid": "d42dc83d8427b82344f590cc75e4a413", "score": "0.51988536", "text": "public static function doRunAfter() {\n if (file_exists(DIR_FS_WORK . 'updates/runAfter/controller.php')) {\n try {\n include_once(DIR_FS_WORK . 'updates/runAfter/controller.php');\n lC_Updates_Admin_run_after::process();\n return true;\n } catch ( Exception $e ) { \n return false;\n }\n }\n }", "title": "" }, { "docid": "cfd6fa22aadcbb9b2e5112aec185fcbd", "score": "0.5194041", "text": "public function modules_loaded() {\r\n $this->desploy_modules_position();\r\n }", "title": "" }, { "docid": "fca3f12d4fcc133da6289213e664c772", "score": "0.5192133", "text": "public function cleanUp()\n\t{\n\t\tjimport('joomla.filesystem.file');\n\n\t\t// Remove the update package\n\t\t$jreg = JFactory::getConfig();\n\t\t$tempdir = $jreg->get('config.tmp_path');\n\t\t$file = JFactory::getApplication()->getUserState('com_joomlaupdate.file', null);\n\t\t$target = $tempdir.'/'.$file;\n\t\tif (!@unlink($target))\n\t\t{\n\t\t\tjimport('joomla.filesystem.file');\n\t\t\tJFile::delete($target);\n\t\t}\n\n\t\t// Remove the restoration.php file\n\t\t$target = JPATH_ADMINISTRATOR . '/components/com_joomlaupdate/restoration.php';\n\t\tif (!@unlink($target))\n\t\t{\n\t\t\tJFile::delete($target);\n\t\t}\n\n\t\t// Remove joomla.xml from the site's root\n\t\t$target = JPATH_ROOT . '/joomla.xml';\n\t\tif (!@unlink($target))\n\t\t{\n\t\t\tJFile::delete($target);\n\t\t}\n\n\t\t// Unset the update filename from the session\n\t\tJFactory::getApplication()->setUserState('com_joomlaupdate.file', null);\n\t}", "title": "" }, { "docid": "efa0266070236f75b8a4b2299f44ba1a", "score": "0.5191772", "text": "protected function cleanUpNew() {\n $last_import = $this->getLatestImport();\n if (!$last_import) {\n return;\n }\n $last_import = date_iso8601($last_import);\n\n $source = $this->getSourcePlugin();\n $repo_account = RepoAccount::load($this->repo_account_id);\n\n $changed_files = $source->getChangedFilesSince($last_import);\n $filters = $this->getFilters();\n if (!empty($filters['node'])) {\n $changed_files = array_filter($changed_files, function ($file) use ($filters) {\n return preg_match($filters['node'], $file);\n });\n }\n\n $deleted_files = array_keys(array_filter($changed_files, function ($status) {\n return $status === RepositorySource::FILE_DELETED;\n }));\n\n if ($deleted_files) {\n $to_unpublish = \\Drupal::entityQuery('node')\n ->condition('type', 'imported_content')\n ->condition('field_ic_repository', $this->repository)\n ->condition('field_ic_version', $this->version)\n ->condition('field_ic_provider', $repo_account->getProvider())\n ->condition('field_ic_filename', $deleted_files, 'IN')\n ->execute();\n\n $unpublish_nodes = Node::loadMultiple($to_unpublish);\n\n foreach ($unpublish_nodes as $node) {\n /** @var Node $node */\n $node->setUnpublished();\n $node->save();\n }\n }\n }", "title": "" }, { "docid": "d5b4e84273cbe4c8213e2ad018966255", "score": "0.5190028", "text": "protected function processUpdates() {\n\t\tif (\\TYPO3\\CMS\\Core\\Utility\\ExtensionManagementUtility::isLoaded('realurl')) {\n\t\t\t$this->importRealurlRedirects();\n\t\t}\n\t}", "title": "" }, { "docid": "75c1e1d57216786043d216b67bc8180a", "score": "0.5183031", "text": "function cron_rss_feeds () {\n\n global $CFG;\n\n $status = true;\n\n echo \" Generating rssfeeds...\\n\";\n\n if ($allmods = get_records(\"modules\") ) {\n foreach ($allmods as $mod) {\n echo ' '.$mod->name.': ';\n $modname = $mod->name;\n $modfile = \"$CFG->dirroot/mod/$modname/rsslib.php\";\n //If file exists and we have selected to restore that type of module\n if (file_exists($modfile)) {\n include_once($modfile);\n $generaterssfeeds = $modname.'_rss_feeds';\n if (function_exists($generaterssfeeds)) {\n if ($status) {\n echo 'generating ';\n $status = $generaterssfeeds();\n if (!empty($status)) {\n echo \"...OK\\n\";\n } else {\n echo \"...FAILED\\n\";\n }\n } else {\n echo \"...SKIPPED (failed above)\\n\";\n }\n } else {\n echo \"...NOT SUPPORTED (function)\\n\";\n }\n } else {\n echo \"...NOT SUPPORTED (file)\\n\";\n }\n }\n }\n echo \" Ending rssfeeds...\";\n if (!empty($status)) {\n echo \"...OK\\n\";\n } else {\n echo \"...FAILED\\n\";\n }\n\n return $status;\n}", "title": "" }, { "docid": "37828dcf7a3193251dd75e58a92a730a", "score": "0.5180646", "text": "public function run()\n {\n if(version_compare(VERSION,'2,8','>'))\n {\n if ($this->DB->fieldExists('fry_tabsType', 'tl_content') && !$this->DB->fieldExists('accessible_tabs_type', 'tl_content'))\n {\n // Config file migration\n $c = $GLOBALS['TL_CONFIG'];\n $d = $GLOBALS['TL_ACCESSIBLE_TABS_DEFAULTS']['jquery'];\n $name = 'runonce';\n\n $this->prepareConfig($name,$c,$d);\n\n DCA_TL_Accessible_Tabs::getInstance()->loadSettings($name,false);\n\n // migrate Database\n $this->migrateDatabase();\n }\n\n }\n\n // Delete the fry_accessible_tabs folder from filesystem\n //$folder = new Folder('/system/modules/fry_accessible_tabs');\n //$folder->delete();\n\n }", "title": "" }, { "docid": "00e7a36fc580e2653487c6a74e790f83", "score": "0.5174116", "text": "public function postflight($type, $parent)\n\t{\n\t\t/**\n\t\t * We are not doing dependency tracking for modules and plugins because of the way Joomla package uninstallation\n\t\t * works. FOF's uninstall() method would get called before the extensions are uninstalled, therefore its\n\t\t * uninstallation would fail and make the entire package uninstallation to fail (the package is impossible to\n\t\t * uninstall).\n\t\t */\n\t\t// Add ourselves to the list of extensions depending on FOF30\n\t\t// $this->addDependency('fof30', $this->getDependencyName());\n\n\t\t// Install or update database\n\t\t$schemaPath = $parent->getParent()->getPath('source') . '/' . $this->schemaXmlPath;\n\n\t\tif (@is_dir($schemaPath))\n\t\t{\n\t\t\t$dbInstaller = new Installer(JFactory::getDbo(), $schemaPath);\n\t\t\t$dbInstaller->updateSchema();\n\t\t}\n\n\t\t// Make sure everything is copied properly\n\t\t$this->bugfixFilesNotCopiedOnUpdate($parent);\n\n\t\t// Add post-installation messages on Joomla! 3.2 and later\n\t\t$this->_applyPostInstallationMessages();\n\n\t\t// Clear the opcode caches again - in case someone accessed the extension while the files were being upgraded.\n\t\t$this->clearOpcodeCaches();\n\t}", "title": "" }, { "docid": "257ff26376790a84136af5d17bcee08e", "score": "0.51726323", "text": "private function _after_command_run(){\n //** Run transient flushing */\n WP_CLI::line( \"Starting remove transient. Waiting...\" );\n @ob_flush();\n flush();\n $command = !empty( $this->url ) ? \"wp transient delete-all --url={$this->url}\" : \"wp transient delete-all\";\n $r = SM_CLI::launch( $command, false, true );\n if( $r->return_code ) {\n WP_CLI::error( \"Something went wrong. Transient process failed.\" );\n } else {\n WP_CLI::success( \"Transient is removed\" );\n }\n //** Run MySQL optimization */\n WP_CLI::line( \"Starting Database optimization process. Waiting...\" );\n @ob_flush();\n flush();\n $command = !empty( $this->url ) ? \"wp db optimize --url={$this->url}\" : \"wp db optimize\";\n $r = SM_CLI::launch( $command, false, true );\n if( $r->return_code ) {\n WP_CLI::error( \"Something went wrong. Database optimization process failed.\" );\n } else {\n WP_CLI::success( \"Database is optimized\" );\n }\n }", "title": "" }, { "docid": "65d06e45163bb399cd3d0a26f5fdd750", "score": "0.5162111", "text": "function fitcash_plugin_deactivation() \r\n{\r\n wp_clear_scheduled_hook('scheduled_import_articles_custom_hook');\r\n\r\n delete_option('fitcash_import_posts');\r\n\r\n return;\r\n}", "title": "" }, { "docid": "a763efc8ab42fe1433e2933e11694788", "score": "0.5160071", "text": "function lmm_install_and_updates() {\n\t\t$current_version = \"v310\"; //2do - mandatory: change on each update to new version!\n\t\t$schedule_transient = 'leafletmapsmarker_install_update_cache_' . $current_version;\n\t\t$install_update_schedule = get_transient( $schedule_transient );\n\t\tif ( $install_update_schedule === FALSE ) {\n\t\t\t$schedule_transient = 'leafletmapsmarker_install_update_cache_' . $current_version;\n\t\t\tset_transient( $schedule_transient, 'execute install and update-routine only once a day', 60*60*24 );\n\t\t\tinclude('inc' . DIRECTORY_SEPARATOR . 'install-and-updates.php');\n\t\t}\n\t}", "title": "" }, { "docid": "6093fa7a751a8c315bb24994e9ead6aa", "score": "0.5159536", "text": "private static function newly_installed()\n {\n }", "title": "" }, { "docid": "2fb6f4934d5404d242c43fe7fa7a3ebc", "score": "0.5157242", "text": "public function postImport() {\n\n $this->logMessage('Event Migrated', 'event.log');\n }", "title": "" }, { "docid": "bf88319486fba096ad5a77e8759b48e1", "score": "0.51536876", "text": "public function taskProjectResetInstall();", "title": "" }, { "docid": "bea9dad507ee1c951e6cb452be9e0b88", "score": "0.5150654", "text": "public function postProcess()\n {\n if ((string) Tools::getValue('download')) {\n $this->createCurrentApplicationInfoFile();\n $this->zipAndDownload(Tools::getValue('include-all'));\n exit;\n }\n\n return parent::postProcess();\n }", "title": "" }, { "docid": "fae0e4af0cc87ca165d628ce08415542", "score": "0.5145263", "text": "function install_post($var)\n\t\t{\n\t\t\t$ret = e107::getXml(true)->e107Import(e_PLUGIN.\"bullets/xml/install.xml\");\n\n\t\t\tif(!empty($ret['success']))\n\t\t\t{\n\t\t\t\te107::getMessage()->addSuccess(\"Default slides imported.\");\n\t\t\t}\n\n\t\t\tif(!empty($ret['failed']))\n\t\t\t{\n\t\t\t\te107::getMessage()->addError(\"Failed to import default slides.\");\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "bf81754bea8f277da9ac255082ef46fd", "score": "0.5144983", "text": "public function _run_upgrade_process() {\n /* Delete 'Install/Upgrade' notice 'dismissed' information */\n delete_option( sanitize_key( 'dismiss_' . $this->slug . '_' . str_replace( '.', '_', $this->args['version'] ) . '_notice' ) );\n /* Delete 'Bootstrap' notice 'dismissed' information */\n delete_option( 'dismissed_notice_' . sanitize_key( $this->name ) );\n $this->run_upgrade_process();\n }", "title": "" }, { "docid": "a69f923ae850ed93bb4ff9d032e09c4d", "score": "0.5141108", "text": "function uninstall()\n\t{\n\t\t/*\t\t$zones=find_all_zones(true);\n\t\tforeach ($zones as $zone)\n\t\t{\n\t\t\t//if (!in_array($zone,array('','docs','adminzone','collaboration','forum','cms','site'))) deldir_contents(get_file_base().'/'.$zone,true);\n\t\t\t$langs=find_all_langs(true);\n\t\t\tforeach (array_keys($langs) as $lang)\n\t\t\t{\n\t\t\t\t$path=get_custom_file_base().(($zone=='')?'':'/').$zone.'/pages/comcode_custom/'.$lang;\n\t\t\t\tif (file_exists($path)) deldir_contents($path,true);\n\t\t\t\t$path=get_custom_file_base().(($zone=='')?'':'/').$zone.'/pages/html_custom/'.$lang;\n\t\t\t\tif (file_exists($path)) deldir_contents($path,true);\n\t\t\t}\n\t\t\t//deldir_contents(get_file_base().(($zone=='')?'':'/').$zone.'/pages/minimodules_custom',true);\n\t\t\t// modules_custom purposely left\n\t\t}*/\n\t}", "title": "" }, { "docid": "9bb8a5e677b6e89e02c5544c428b1963", "score": "0.5139736", "text": "public function runUninstall() {}", "title": "" }, { "docid": "c0e178bb5b61653c6b61886cc520f1f6", "score": "0.5133489", "text": "public function finalize() {\n\t\t$this->out('You can now upgrade to another version or close the shell.');\n\t\t$this->upgrade();\n\t}", "title": "" } ]
42a84ec79a44474355fddc94d7f10531
deletes Tag From Service By Id
[ { "docid": "e7a10023b218356e0e56b358fb2daea8", "score": "0.7147331", "text": "public function deleteTagFromServiceById($tag_id, $service, $param){\n\t\t\treturn $this->deleteTagFromService($this->getTag($tag_id), $service, $param);\n\t\t}", "title": "" } ]
[ { "docid": "d8293d9ec4ebf3e89b58068af095fb41", "score": "0.72649014", "text": "public function deleteService($id);", "title": "" }, { "docid": "17a623adb5d631f8736f33d21bfa87ee", "score": "0.72590077", "text": "function delete_tag($id) {\n return $this->db->delete('tags', array('id' => $id));\n }", "title": "" }, { "docid": "46c534bb42506c2cb4596fe3c98710a3", "score": "0.7171938", "text": "public function delete($id)\n {\n $query=\"DELETE FROM tag WHERE id=\".$id;\n\n $this->executeQuery($query);\n }", "title": "" }, { "docid": "d941fe3280b312112a9a38e8f20d7420", "score": "0.701319", "text": "public function removeDataWithId($tag, $id);", "title": "" }, { "docid": "3030c7e5ec7e45f6a9af0360c1885479", "score": "0.7001735", "text": "public function deleteTagFromService(TagsTag $tag, $service, $param){\n\t\t\tif($this->checkRight('administer_tags', $service)) {\n\t\t\t\t$count = $this->getTagCount($tag->getId());\n\t\t\t\t$error = !$this->mysqlDelete('DELETE FROM `'.$GLOBALS['db']['db_prefix'].'tags_link` \n\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE t_id=\"'.mysql_real_escape_string($tag->getId()).'\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tAND service=\"'.mysql_real_escape_string($service).'\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tAND param=\"'.mysql_real_escape_string($param).'\"');\t\n\t\t\t\t\n\t\t\t\tif(!$error && $count == 1){\n\t\t\t\t\t$error = !$error && !$this->mysqlDelete('DELETE FROM `'.$GLOBALS['db']['db_prefix'].'tags` \n\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE t_id=\"'.mysql_real_escape_string($tag->getId()).'\"');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif($error){\n\t\t\t\t\t//$this->_msg($this->_('_tag delete error'), Messages::ERROR);\n\t\t\t\t\treturn false;\n\t\t\t\t} else {\n\t\t\t\t\t//$this->_msg($this->_('_tag delete success'), Messages::INFO);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->_msg($this->_('You are not authorized', 'rights'), Messages::ERROR);\n \t\treturn array();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "f824da0b0a6c56d62d568e6dc8cc627f", "score": "0.69871116", "text": "public function deleteTag($id)\n {\n $resDel = $this->db->execute(\"DELETE FROM `{$this->mySqlTablePrefix}tag` WHERE `id`=:id AND owner=:owner\", array(':id' => $id, ':owner' => $this->owner));\n $resClean = $this->db->execute(\"DELETE FROM `{$this->mySqlTablePrefix}elementTag` WHERE `owner`=:owner AND `tag`=:tag\", array(':owner' => $this->owner, ':tag' => $id));\n return ($resDel !== false);\n }", "title": "" }, { "docid": "51329d62434491ade2782b00f37cda98", "score": "0.6968369", "text": "public function destroy($id)\n {\n $tag = Tag::where('tag_id','=',$id);\n $tagbooks = TagBook::where('tag_id','=',$id)->get();\n\n foreach($tagbooks as $tagbook){\n DB::beginTransaction();\n try{\n $tagbook = DB::table('taggable_taggables')->where('tag_id','=',$tagbook->id)->delete();\n DB::commit();\n }catch(Exception $e){\n DB::rollBack();\n throw new Exception($e->getMessage());\n }\n }\n $tag->delete();\n return redirect()->route('tag.index');\n }", "title": "" }, { "docid": "c67819028b1921dae39d329d79dfdb51", "score": "0.6790986", "text": "function deleteTag()\n { \t\n $data = array(); \n $tag_id = $this->cmdList[2]; \n \n $params['db_link'] = $this->db; \n\n $tagObj = new TicketTag($params); \n $status = $tagObj->removeTag($tag_id); \n \n if(!empty($status))\n { \t \n \t $_SESSION['confirm_msg'] = DELETE_TAG_MESSAGE;\n \t header('location: /its/run.php/TagManager/list');\n \t exit;\n }\n else\n {\n \t $_SESSION['confirm_msg'] = DELETE_TAG_FAIL_MESSAGE; \n \t header('location: /its/run.php/TagManager/list');\n \t exit;\n } \n }", "title": "" }, { "docid": "c69bd42937769c27e383e07604c9ff4f", "score": "0.67697984", "text": "function deleteCourseTagByTagId($tagid){\n return $this->delete(\"tagid=$tagid\");\n }", "title": "" }, { "docid": "32ce5066932615f35a512673df6224b8", "score": "0.6727432", "text": "public function deleteTagFromServiceByName($tag_name, $service, $param){\n\t\t\treturn $this->deleteTagFromService($this->getTagByName($tag_name), $service, $param);\n\t\t}", "title": "" }, { "docid": "be0b7f2ffe65121ab119870a494d29f6", "score": "0.66738826", "text": "public function deleteServiceTags($service, $param){\n\t\t\tif($this->checkRight('administer_tags', $service)) {\n\t\t\t\t$tags = $this->getTagsByService($service, $param);\n\t\t\t\t\n\t\t\t\tforeach($tags as $tag) $this->deleteTagFromService($tag, $service, $param);\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\t$this->_msg($this->_('You are not authorized', 'rights'), Messages::ERROR);\n \t\treturn array();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "f690fd4f744ed9992c484afaf2d55767", "score": "0.6662432", "text": "public function delete_tag($id){\n $tag = Tag::find($id);\n\n if($tag==null)\n {\n return response()->json('Tag Not Found',404);\n }\n $user=auth()->user();\n\n if($user->role=='admin'){\n $tag->delete();\n return response()->json('Deleted Successfully',200);\n\n\n }else{\n return response()->json('Unauthorized Action',401);\n\n }\n\n }", "title": "" }, { "docid": "c3bdb455ab9ead95b4f2808475e4721a", "score": "0.6661813", "text": "public function destroy($id)\n {\n $tag = Tag::find($id);\n if(!isset($tag)){\n return response()->json(['deleted'=>'false']);\n\n }else{\n $tag->delete();\n return response()->json(['deleted'=>'true']);\n }\n }", "title": "" }, { "docid": "07e617816397f30370bc752b914ef3fd", "score": "0.66308564", "text": "public function delete($id, $tag = FALSE)\n {\n if (isset(self::$Cache[$id]))\n {\n unset(self::$Cache[$id]);\n }\n }", "title": "" }, { "docid": "2a3b6c538d0261d50af9cd128a85bb55", "score": "0.6625352", "text": "public function destroy($id)\n {\n $tag = Tag::find($id);\n $tag->delete();\n return response()->json(['data'=> 'deleted' , 'code' => 200]);\n }", "title": "" }, { "docid": "9447aa31935802a20e75fc37a31a6471", "score": "0.65468335", "text": "public function deleteTag() {\n\t\t$id = intval($this->row['id']);\n\t\t$query = \"UPDATE \".TBL_PAGES.\" AS p, \".TBL_MEDIA.\" AS m SET p.tags = REPLACE(p.tags, ',$id', ''), m.tags = REPLACE(m.tags, ',$id', '')\";\n\t\t$this->db->query($query);\n\t\t$query = \"UPDATE \".TBL_PAGES.\" AS p, \".TBL_MEDIA.\" AS m SET p.tags = REPLACE(p.tags, '$id,', ''), m.tags = REPLACE(m.tags, '$id,', '')\";\n\t\t$this->db->query($query);\n\t\t$query = \"UPDATE \".TBL_PAGES.\" AS p, \".TBL_MEDIA.\" AS m SET p.tags = REPLACE(p.tags, '$id', ''), m.tags = REPLACE(m.tags, '$id', '')\";\n\t\t$this->db->query($query);\n\t\t\n\t\t$query = \"DELETE FROM \".TBL_TAGS.\" WHERE id='$id' LIMIT 1\";\n\t\treturn $this->db->query($query);\n\t}", "title": "" }, { "docid": "0983f0a4c292028b5e4eb15c376772a8", "score": "0.65420586", "text": "public function destroy($id)\n {\n Tag::findOrFail($id)->delete();\n\n // remove tags from cache\n Cache::forget('tags');\n\n $this->responseJson('success');\n }", "title": "" }, { "docid": "3399be979f86d039e418a13104040fca", "score": "0.6536293", "text": "public function deleteAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n $repo = $em->getRepository('UlysseBusinessProductBundle:Tag');\n\n $data = $repo->find($id);\n $em->remove($data);\n $em->flush();\n\n return $this->redirect($this->generateUrl('tag'));\n }", "title": "" }, { "docid": "2b91a97fa81c6435e40ba3e6e7f776b2", "score": "0.6506763", "text": "public function destroy($id)\n {\n /* $tag = MedicaMaxTag::findOrFail($id);\n $tag->delete();\n\n return response()->json($tag);*/\n MedicaMaxTag::where('id', $id)->delete();\n return redirect()->intended('/drug-administration/tag');\n }", "title": "" }, { "docid": "63560f7730021536bb52016ed97cf74f", "score": "0.6506111", "text": "public function destroy($id)\n {\n $tag = Tag::findOrFail($id);\n $tagTranslation = TagTranslation::where('tag_id',$tag->id)->delete();\n $tag->delete();\n return redirect(aurl('tags'))->with('success',_i('success delete'));\n }", "title": "" }, { "docid": "67a04af7c12d476e3999619551128726", "score": "0.64941204", "text": "public function destroy($id)\n {\n\t\tif(Auth::user()->can('delete-tags')) {\n\t\t\t$ids = Hashids::decode($id);\n\t\t\tTag::destroy($ids[0]);\n\n\t\t\treturn redirect('dashboard/tags')->with('flash_message', __('tag.destroy_notif'));\n\t\t} else {\n\t\t\treturn redirect('forbidden');\n\t\t}\n }", "title": "" }, { "docid": "f7a9db33e79af4eb5902ef9188be0ea8", "score": "0.6473705", "text": "public function destroy($id)\n {\n $this->getTag($id)->delete();\n\t\treturn redirect()->back()->with('success','Tag deleted');\n }", "title": "" }, { "docid": "b3ad287dea969fc35178d031d88db69d", "score": "0.6418823", "text": "public function destroy($id)\n\t{\n\t\t$this->tagRelation->where('tag_id', \"=\", $id)->delete();\n\t\t$this->responser['msg'] = trans('message.delete_success');\n\t\treturn $this->responses();\n\t}", "title": "" }, { "docid": "29a6c9a1128f936b8d9d2a63ff1e2e3a", "score": "0.641175", "text": "public function delete()\n {\n $sql = \"DELETE FROM `tag_map` WHERE `tag_map`.`tag_id`='\".$this->id.\"'\";\n $db_results = Dba::write($sql);\n\n $sql = \"DELETE FROM `tag` WHERE `tag`.`id`='\".$this->id.\"'\";\n $db_results = Dba::write($sql);\n\n // Call the garbage collector to clean everything\n Tag::gc();\n\n parent::clear_cache();\n }", "title": "" }, { "docid": "4acc0160bd7211192ccc446c0e837df9", "score": "0.6365133", "text": "function delete_tag_taxonomi($id)\n\t{\n\t\t$this->db->delete('tag_taxonomi', array('id' => $id)); \n\t}", "title": "" }, { "docid": "d0ee6672f14785272a3b332b133925da", "score": "0.6358694", "text": "public function delete($id) \n\t{\n \t$tot = $this->Model_service->service_check($id);\n \tif(!$tot) {\n \t\tredirect(base_url().'admin/service');\n \texit;\n \t}\n\n $data['service'] = $this->Model_service->getData($id);\n if($data['service']) {\n unlink('./public/uploads/'.$data['service']['photo']);\n unlink('./public/uploads/'.$data['service']['banner']);\n }\n\n $this->Model_service->delete($id);\n redirect(base_url().'admin/service');\n }", "title": "" }, { "docid": "612350118873b41e1283670be065425c", "score": "0.63351", "text": "public function destroy($id)\n {\n $servicemodel = ServiceModel::findOrFail($id);\n //image inline with this organisation\n $Path = public_path().\"/assets/organisation/img/website/services/servicemodels/\";\n\n $Image = $Path. $servicemodel->image;\n\n if(file_exists($Image)){\n @unlink($Image);\n }\n $servicemodel->delete();\n }", "title": "" }, { "docid": "9745f126f62f2c778707fc50b8ef885a", "score": "0.6332804", "text": "public function destroy($id)\n {\n //\n $alimento = ProductoServicio::find($id);\n $alimento->delete();\n }", "title": "" }, { "docid": "9060b20287f4db752d3b1b2f82e55eb1", "score": "0.6304386", "text": "public function destroy($id)\n {\n $t = Tag::findOrFail($id);\n $t->blogs()->detach();\n $t->delete();\n $message = \"Tag: \". $t->tag.\" succefully deleted\";\n return redirect('manage_tags')->with(['success'=>$message]);\n }", "title": "" }, { "docid": "35605ac09f5a9f686c405da54bebd8f8", "score": "0.62983626", "text": "public function delete() { if (is_null($this->id))\n trigger_error(\"CompoundTag::delete(): Attempt to delete a CompoundTag object that does not have its ID property set.\", E_USER_ERROR);\n\n // Delete the CompoundTag\n $conn = new PDO(DB_DSN, DB_USER, DB_PASS);\n $st = $conn->prepare(\"DELETE FROM compound_tag WHERE id = :id LIMIT 1\");\n $st->bindValue(\":id\", $this->id, PDO::PARAM_INT);\n $st->execute();\n $conn = null;\n }", "title": "" }, { "docid": "74762bf287e89b530e18b622f30a1257", "score": "0.62841856", "text": "public function destroy($id)\n\t{\n\t\t$this->tagRepository->findById($id)->delete();\n\n\t\treturn Redirect::action('AdminTagsController@index')->with('success','Tag Deleted');\n\t}", "title": "" }, { "docid": "e56ffdb12b7e8ce9ce9b709dd82f37f7", "score": "0.62763625", "text": "public function removeById($id);", "title": "" }, { "docid": "e56ffdb12b7e8ce9ce9b709dd82f37f7", "score": "0.62763625", "text": "public function removeById($id);", "title": "" }, { "docid": "bf098f2010f35dabe043725afc343e1b", "score": "0.6275859", "text": "public function destroy($id)\n {\n $tag = Tag::find($id);\n $tag->delete();\n if ($tag) {\n Session::flash('updated', 'Tag Deleted Successfully');\n return redirect()->route('tag.index');\n }\n }", "title": "" }, { "docid": "c9bd9b8c4d037d818ef6e829404c1e2a", "score": "0.62724876", "text": "public function delete(int $id)\n {\n $validator = Validator::make(['id' => $id], [\n 'id' => 'required|integer|exists:tags'\n ]);\n\n if ($validator->fails()) {\n return $this->validationError($validator);\n }\n\n $tag = Tag::find($id);\n $tag->articles->detach();\n $tag->delete();\n\n return $this->deleteSuccess();\n }", "title": "" }, { "docid": "108a39e9d8470d01e472d11094b5b2a5", "score": "0.6260979", "text": "public function destroy($id)\n {\n $tag = Tag::where('id', $id)->first();\n $tag->delete();\n session()->flash('flash_success', 'Tag bol úspešne zmazaný');\n return redirect('admin/tags');\n }", "title": "" }, { "docid": "5a7e024b9dc0372c13215d913ca517b2", "score": "0.6244841", "text": "public function destroy($id)\n {\n \t$tag = Tag::findOrFail($id);\n \t$tag->delete();\n \t\n \treturn redirect('/admin/tag')\n \t->withSuccess(\"The '$tag->tag' tag has been deleted.\");\n }", "title": "" }, { "docid": "9012efa441a45ac6ea2e45f9db1c3c7c", "score": "0.6240261", "text": "public function delete_service($key, $id) {\r\n $data=array(\r\n \"STATUS\"=>\"0\",\r\n \"UPDATE_TIME\"=>date(\"Y-m-d H:i:s\")\r\n );\r\n $query = $this->db->where(\"KEY=\", $key)\r\n ->where(\"ID_VENDOR=\", $id)\r\n ->where(\"TYPE=\", \"SERVICE\")\r\n ->update(\"m_vendor_goods_service\",$data);\r\n if ($query)\r\n return true;\r\n else\r\n return false;\r\n }", "title": "" }, { "docid": "c597063adebad6a9cd364d2ab0d0c830", "score": "0.6230321", "text": "public function destroy($id)\n {\n $data=Tag::find($id);\n $data->delete();\n Session::flash('del_msg','Successfully Deleted the Tag');\n return redirect()->route('tag.index');\n }", "title": "" }, { "docid": "9e7175449f9f4136f35548d0bedb4f0c", "score": "0.6225322", "text": "public function destroy($id) {\n\n\t\ttry {\n\t\t\t$tag = Tag::findOrFail($id);\n\t\t}\n\t\tcatch(Exception $e) {\n\t\t\treturn Redirect::to('/tag')->with('flash_message', 'Tag not found');\n\t\t}\n\n\t\t# Note there's a `deleting` Model event which makes sure book_tag entries are also destroyed\n\t\tTag::destroy($id);\n\n\t\treturn Redirect::action('TagController@index')->with('flash_message','Your tag has been deleted.');\n\n\t}", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.62173206", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.62173206", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.62173206", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.62173206", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.62173206", "text": "public function remove($id);", "title": "" }, { "docid": "4b5af90ad8ef847ad2e2787a779644b2", "score": "0.6217217", "text": "public function delete($id){\n $img = Service::find($id)->service_image;\n unlink($img);\n\n $delete = Service::find($id)->delete();\n return redirect()->back()->with('success','Delete permanantly service success.');\n }", "title": "" }, { "docid": "5a43eccc722aa4aae91c399774f64aec", "score": "0.62045866", "text": "public function remove($id): void;", "title": "" }, { "docid": "8e9827a9e681bca79af2c60399b7d36c", "score": "0.6202863", "text": "public function destroy($id)\n {\n\n $post= Post::findOrFail($id);\n\n if($post->tags){\n\n $post->tags()->detach($post->tags);\n\n }\n\n\n\n $post->delete();\n\n return redirect('admin/posts');\n\n\n //\n }", "title": "" }, { "docid": "d42b7a0376cce8423fa6db882ff0f69d", "score": "0.61955905", "text": "public function remove(string $id);", "title": "" }, { "docid": "4f9761ba2b79d6fe6f4a7fe63eedac50", "score": "0.6184981", "text": "public function removeById($id)\n {\n }", "title": "" }, { "docid": "3691ec335bf3a6d6c04b553980ed3409", "score": "0.6157654", "text": "public function destroy($id)\n {\n $service = Services::find($id);\n\n //delete the image in the image folder\n Storage::delete('services/' . $service->image);\n\n\n //delete the image name in the database\n $service->delete();\n\n // set flash data with success message\n Session::flash('success', 'Successfully deleted !');\n return redirect('/admin/services');\n }", "title": "" }, { "docid": "c374e22f5c45198b0e63a30b6156753e", "score": "0.6157199", "text": "public function destroy($id)\n {\n Bookmark::where('id', $id)->where('user_id', Auth::user()->id)->delete();\n Tag::where('bookmark_id', $id)->delete();\n }", "title": "" }, { "docid": "a81637cb22288c9fc13ee325a5c55d4b", "score": "0.61505336", "text": "public function destroy($id)\n {\n //\n\n $sc = ServiceCharge::findOrFail($id);\n\n $sc->delete();\n }", "title": "" }, { "docid": "4092ab55a0ee7c7b28abd26947e31999", "score": "0.6138704", "text": "public function destroy($id)\n {\n\t\t$tag = Tag::find($id);\n\n\t\t$tag->posts()->detach();\n\n\t\t$tag->delete();\n\n\t\tSession::flash('success', 'The tag was successfully deleted');\n\n\t\treturn redirect()->route('tags.index');\n\n\t}", "title": "" }, { "docid": "fb361e5b3fdaff3d01d1f88ac0cba257", "score": "0.61348987", "text": "public function destroy($id)\n {\n $service = Service::find($id);\n $image = $service->image;\n\n $helper = new Helper();\n $imagesdeleted = $helper->deleteimages($image,'services');\n\n if ($imagesdeleted==true){\n $service->delete();\n return redirect()->route('services.index')->with('success','silme işlemi başarılı');\n }\n\n\n }", "title": "" }, { "docid": "0d36d0bf060ac9b081a66b3443d34787", "score": "0.6131379", "text": "public function destroy($id){}", "title": "" }, { "docid": "0d36d0bf060ac9b081a66b3443d34787", "score": "0.6131379", "text": "public function destroy($id){}", "title": "" }, { "docid": "0d36d0bf060ac9b081a66b3443d34787", "score": "0.6131379", "text": "public function destroy($id){}", "title": "" }, { "docid": "0d36d0bf060ac9b081a66b3443d34787", "score": "0.6131379", "text": "public function destroy($id){}", "title": "" }, { "docid": "9d6927dd8ebae6ebec7ff314ca128243", "score": "0.61213267", "text": "public function destroy($id)\n\t{\n\t\t$tag = Tag::findOrFail( $id );\n\n\t\t$affectedRows = Tag::destroy( $id );\n\n\t\t$message = 'The tag ' . $tag->name . 'has been removed.';\n\t\tflash( $message, 'danger' );\n\n\t\treturn redirect( route('tags.index') );\n\n\n\t}", "title": "" }, { "docid": "7e6eefdfe2b8f2feb521ccca5b5549a4", "score": "0.6117862", "text": "function destroyTagsForEntity ($entity_realm, $entity_id)\n{\n\tusePreparedDeleteBlade ('TagStorage', array ('entity_realm' => $entity_realm, 'entity_id' => $entity_id));\n}", "title": "" }, { "docid": "0c1d876a973a3c3a41fd37cb6a66682d", "score": "0.6112441", "text": "public function destroy($id)\n {\n $tag=Tag::findOrFail($id);\n $tag->delete();\n return redirect()->back()->with(\"success\", \"Tag deleted.\");\n }", "title": "" }, { "docid": "045acab041f0c6da782d74b0302ae74e", "score": "0.61123025", "text": "public function destroy()\n {\n $id = Input::get('id');\n \n if ($id != 0) {\n $tag = Tag::find($id);\n $tag->delete();\n\n return Response::json([\n 'message' => 'Success! Tag Deleted!'\n ], 200);\n } else {\n return Response::json([\n 'message' => 'Error! Delete Failed!'\n ], 400);\n }\n }", "title": "" }, { "docid": "6ce417b1ddf1080c685310122723ef5a", "score": "0.61066324", "text": "public function delete_service($id)\n {\n if (!is_admin()) {\n access_denied('Ticket Services');\n }\n if (!$id) {\n redirect(admin_url('tickets/services'));\n }\n $response = $this->tickets_model->delete_service($id);\n if (is_array($response) && isset($response['referenced'])) {\n set_alert('warning', _l('is_referenced', _l('service_lowercase')));\n } elseif ($response == true) {\n set_alert('success', _l('deleted', _l('service')));\n } else {\n set_alert('warning', _l('problem_deleting', _l('service_lowercase')));\n }\n redirect(admin_url('tickets/services'));\n }", "title": "" }, { "docid": "aabecaedf718ccd2e17ff1c7bd228fe9", "score": "0.6098452", "text": "public function destroy($id)\n {\n \n Tags::findOrFail($id)->delete();\n Alert::success(\"di hapus\");\n return redirect(route('tags.index'));\n }", "title": "" }, { "docid": "04b5b4e138f1dfa8c141626fd597e67f", "score": "0.6088837", "text": "public function DeleteByTags ($tags);", "title": "" }, { "docid": "5d4c081f2fcfc34e91844985bbe27f61", "score": "0.6084567", "text": "public function destroy($id)\n\t{\n\t\t$data = AdminTag::find($id);\n\t\tRelationBox::deleteRelationship($data, 'games');\n\t\tCommonNormal::delete($id);\n\t\treturn Redirect::action('AdminTagController@index');\n\t}", "title": "" }, { "docid": "2dc273c4b92090597a178ff281888c30", "score": "0.6084394", "text": "function remove_task_tags($task_id) {\n $this->db->where('task_id', $task_id);\n $this->db->delete('tagstasks');\n }", "title": "" }, { "docid": "15d9fc507efd5b6df1af1921c8998cc7", "score": "0.6084133", "text": "function remove_task_tags($task_id) {\n\t $this->db->where('task_id', $task_id);\n\t $this->db->delete('tagstasks');\n\t}", "title": "" }, { "docid": "a923f53aa7b1c03273d99490454a1fb8", "score": "0.60821384", "text": "public function destroy($id)\n {\n Http::delete($this->server . $id);\n return redirect('/tags');\n }", "title": "" }, { "docid": "31be5356271a03d4f6200b8e602d3750", "score": "0.60803634", "text": "public function destroy($id){\n\t\t//\n\t\t\n\t}", "title": "" }, { "docid": "01d6b6475cd42cc696374f3bbe8c5efe", "score": "0.60779923", "text": "public function destroy($id)\n {\n try {\n $tag = Tag::find($id);\n $tag->delete();\n return redirect('admin/tag')->with('success', 'Tag has been deleted');\n\n } catch (\\Exception $e) {\n\n return redirect('admin/tag')->with('warning', 'Tag is linked with some object');\n }\n }", "title": "" }, { "docid": "0a55520692e8b5fb8c170f495ebfa6ba", "score": "0.6068687", "text": "public function deleteModelRecord($servicename,$name_alias,$id)\n { \n \n $sc=new ServiceComponent($this,$servicename);\n \n $sc->WebServiceDeleteRecord($name_alias,$id);\n \n \n \n }", "title": "" }, { "docid": "d934b2bcec36bd695a249a6ace8e0eb9", "score": "0.60674316", "text": "public function destroy($id) {\r\n //\r\n }", "title": "" }, { "docid": "d934b2bcec36bd695a249a6ace8e0eb9", "score": "0.60674316", "text": "public function destroy($id) {\r\n //\r\n }", "title": "" }, { "docid": "c5197cf4e070fa2fb5b06b57bf6d1107", "score": "0.6066239", "text": "public function destroy($id)\n {\n Tag::find($id)->delete();\n Toastr::success('Subject Successfully Deleted','Success');\n return redirect()->back();\n }", "title": "" }, { "docid": "00d4a1c77d147da3e608f4ee96d4e201", "score": "0.6066209", "text": "function tags_deleteData($vPageID,$identifier='') {\n\tglobal $Auth;\n\t\n\t## multiclient\n\t$client_id = $Auth->auth[\"client_id\"];\n\t\n\tif(!empty($identifier)) {\n\t\t$query_addon = \" AND identifier='\".$identifier.\"'\";\n\t} else {\n\t\t$query_addon = '';\n\t}\n\n\t## prepare the db object\n\t$db = new DB_Sql();\n\t$db_inner = new DB_Sql(); \n\t\t\n\t## in order to keep the number of tags as low as possible- we need to delete them one by one\n\t## and check if they are used somewhere else\n\t$query = \"SELECT item_id FROM \".DB_PREFIX.\"extra_tags2page WHERE page_id='$vPageID'\".$query_addon;\n\t$result_pointer = $db->query($query);\n\n\twhile($db->next_record(MYSQL_ASSOC)) {\n\t\t## okay now we need to update the counter for this tag\n\t\t$tag_id = $db->Record['item_id'];\n\t\t\n\t\t## okay now decrease the counter for this tag\n\t\t$query = \"UPDATE \".DB_PREFIX.\"extra_tags SET counter = counter -1 WHERE id='$tag_id'\";\n\t\t$db_inner->query($query);\n\t}\n\t\n\t## now delete all tags\n\t$query = \"DELETE FROM \".DB_PREFIX.\"extra_tags2page WHERE page_id='$vPageID'\".$query_addon;\n\t$result_pointer = $db->query($query);\n\t\n\t## finally clean up the main tag table\n\t$query = \"DELETE FROM \".DB_PREFIX.\"extra_tags WHERE counter <= 0\";\n\t$result_pointer = $db->query($query);\n}", "title": "" }, { "docid": "469f5f91b71f65e3bd7dba5a8b8f0b07", "score": "0.6062433", "text": "function deleteById($id);", "title": "" }, { "docid": "a2d75224bed0246b6b5d3d9d57ec323d", "score": "0.6062006", "text": "public function destroy($id)\n {\n //\n $service = Services::find($id);\n if(Storage::delete('public/Images/services/'.$service->image))\n {\n $service->delete();\n }\n Alert::success(config('app.name'), trans('messages.Deleted Successfully') );\n return redirect()->route('admin.service.index');\n }", "title": "" }, { "docid": "5edb1664275bd999461c310ad2dc6a95", "score": "0.6060297", "text": "public function destroy($id){\n Strike::find($id)->delete();\n\n }", "title": "" }, { "docid": "90f197756414d4b8526e9dc08d06ee0c", "score": "0.6057022", "text": "public function destroy($id)\n {\n try {\n $service = Service::find($id);\n\n foreach (json_decode($service->images) as $img){\n @unlink('storage/' . $img);\n }\n\n $service->delete();\n return response()->json([\n 'success' => 'Record deleted successfully!'\n ]);\n } catch (\\Exception $e) {\n return redirect()->back()->with('error', 'Error Try Again !!');\n }\n }", "title": "" }, { "docid": "eb1b1b537e805f89bcdfe5f7af161e32", "score": "0.60552514", "text": "public function deleteByid($id);", "title": "" }, { "docid": "c6ab4187da7f39ab10e1e3788b9a127e", "score": "0.60521215", "text": "public function destroy($id)\n {\n //\n BlogTag::findOrFail($id)->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "d2ef8940d79af6d427052ad586014c11", "score": "0.6050504", "text": "public function destroy($id)\n {\n $post= Post::find($id);\n\n $post->postInformation->delete();\n foreach($post->tags as $tag){\n $post->tags()->detach($tag->id);\n }\n\n $post->delete();\n\n return redirect()->route('posts.index');\n }", "title": "" }, { "docid": "6182960b60f45853002eebc041c61789", "score": "0.6047752", "text": "public static function delById($id){\n\t\t$sql = \"delete from \".self::$tablename.\" where ID_VENTA=$ID_VENTA\";\n\t\tExecutor::doit($sql);\n\t}", "title": "" }, { "docid": "4bf688aebd278ac2704232d26b84f207", "score": "0.6047484", "text": "public function destroy($id)\n {\n $services=Services::where('id',$id)->first();\n if ($services->image != 'default.png') {\n\n Storage::disk('public_uploads')->delete('/services_images/' . $services->image);\n\n }//end of if\n\n Services::where('id',$id)->delete();\n session()->flash('success','deleted successfully');\n return redirect()->route('dashboard.services.index');\n }", "title": "" }, { "docid": "5ed23dca1c95d63902497e175c8e201f", "score": "0.6045739", "text": "public function destroy($id)\n {\n $service = Services::findOrFail($id);\n\t\t$image = $service->image;\n\t\t//unlink image\n\t\t@unlink(base_path().'/public/assets/uploads/images/'.$image);\n\t\t$service->delete();\n\t\tflash('Service has been deleted!', 'success')->important();\n return redirect('/webmaster/services');\n }", "title": "" }, { "docid": "b35859d685381e8d88a4ca3f4b8aa0b6", "score": "0.6043778", "text": "public function destroy($id)\n {\n $tags = Tag::find($id);\n\n $tags->delete();\n\n alert()->success('Tag ' .$tags->title.' Telah Berhasil di Hapus', 'Sukses!')->autoclose('5000');\n return back();\n }", "title": "" }, { "docid": "e5d6084311e6f1e8ff8172baabf471cc", "score": "0.6040758", "text": "public function eliminarPorId($id)\n {\n }", "title": "" }, { "docid": "a67dec9e7ef6fd04bad17fdbdfeb0983", "score": "0.6039486", "text": "public function deleteById($id);", "title": "" }, { "docid": "a67dec9e7ef6fd04bad17fdbdfeb0983", "score": "0.6039486", "text": "public function deleteById($id);", "title": "" }, { "docid": "a67dec9e7ef6fd04bad17fdbdfeb0983", "score": "0.6039486", "text": "public function deleteById($id);", "title": "" }, { "docid": "a67dec9e7ef6fd04bad17fdbdfeb0983", "score": "0.6039486", "text": "public function deleteById($id);", "title": "" }, { "docid": "a67dec9e7ef6fd04bad17fdbdfeb0983", "score": "0.6039486", "text": "public function deleteById($id);", "title": "" }, { "docid": "a67dec9e7ef6fd04bad17fdbdfeb0983", "score": "0.6039486", "text": "public function deleteById($id);", "title": "" }, { "docid": "a67dec9e7ef6fd04bad17fdbdfeb0983", "score": "0.6039486", "text": "public function deleteById($id);", "title": "" }, { "docid": "a67dec9e7ef6fd04bad17fdbdfeb0983", "score": "0.6039486", "text": "public function deleteById($id);", "title": "" }, { "docid": "1b9f5ef97eb72c111b6cfc4b93ed6b79", "score": "0.60387146", "text": "public function remove($id)\n {\n //\n }", "title": "" }, { "docid": "f147aedf14b19b0900bfc1c7aa5a59a2", "score": "0.6037997", "text": "public function remove($id)\n {\n }", "title": "" }, { "docid": "f147aedf14b19b0900bfc1c7aa5a59a2", "score": "0.6037997", "text": "public function remove($id)\n {\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "9b47c918056858ef14b85bd8a41414c1", "score": "0.7020616", "text": "public function showAction(Humanresource $humanresource)\n {\n $deleteForm = $this->createDeleteForm($humanresource);\n\n return $this->render('humanresource/show.html.twig', array(\n 'humanresource' => $humanresource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "aef322cbfb19d79a77dc0e74e6e7bc96", "score": "0.67904377", "text": "public function showAction()\n {\n $config = $this->getConfiguration();\n\n $view = $this\n ->view()\n ->setTemplate($config->getTemplate('show.html'))\n ->setTemplateVar($config->getResourceName())\n ->setData($this->findOr404())\n ;\n\n return $this->handleView($view);\n }", "title": "" }, { "docid": "fb41f4ccc0d7db950d06ac1a19456fa2", "score": "0.67305946", "text": "public function actionView() {\n $id = isset($_GET['id']) ? (int)($_GET['id']) : 0;\n $this->menu=array_merge($this->menu, \n array(\n array('label'=>Yii::t('cms','Update this Resource'), 'url'=>array('update','id'=>$id),'linkOptions'=>array('class'=>'button')),\n array('label'=>Yii::t('cms','View this Resource'), 'url'=>array('view','id'=>$id),'linkOptions'=>array('class'=>'button'))\n )\n );\n $model_name = \"Resource\";\n $id = isset($_GET['id']) ? (int)$_GET['id'] : 0;\n $model = GxcHelpers::loadDetailModel($model_name, $id);\n $this->render('view', array(\n \"model\" => $model\n ));\n }", "title": "" }, { "docid": "ab30516f6991bb772fd61ae9fec2439c", "score": "0.6560534", "text": "public function show(project_resource $project_resource)\n {\n //\n }", "title": "" }, { "docid": "243cb80d371f620d93edb23fd4a5ec6c", "score": "0.65553087", "text": "public function showAction()\n {\n \ttry {\n \t\t$requestId = $this->getRequest()->getParam('id');\n \t\t$this->view->entity = $this->_service->findById($requestId);\n\n \t} catch(Svs_Service_Exception $e){\n \t\tthrow $e;\n \t}\n\n\t\t$this->view->partialName = sprintf(\n\t\t\t'partials/%s-show.phtml', $this->_controller\n\t\t);\n\t\t$this->_viewRenderer->render($this->_viewFolder . '/show', null, true);\n }", "title": "" }, { "docid": "6ad7532d4e18e95bb51cb89fd46c6f3e", "score": "0.64986944", "text": "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 }", "title": "" }, { "docid": "cfa7e3b5483e85906491eaedb4b1f7af", "score": "0.6410644", "text": "abstract public function render($resource_name);", "title": "" }, { "docid": "99db7dc2adb2a8f31daaf5823ce99e3e", "score": "0.63273495", "text": "public function testDisplayResourceViaShowMethod()\n\t{\n\t\t$this->stub->show();\n\n\t\t$refl = new \\ReflectionObject($this->stub);\n\t\t$attributes = $refl->getProperty('attributes');\n\t\t$attributes->setAccessible(true);\n\n\t\t$attrib = $attributes->getValue($this->stub);\n\n\t\t$this->assertTrue($attrib['visible']);\n\t}", "title": "" }, { "docid": "1b1f2555033be5c6cba96c89cae71c6c", "score": "0.62645876", "text": "public function show(Role_resource $role_resource)\n {\n //\n }", "title": "" }, { "docid": "a5d61876efad2a8ab6e7897e60e10aa5", "score": "0.6230868", "text": "public function show($id)\n {\n // Showing each items\n // Use resource controller\n }", "title": "" }, { "docid": "37fd3e719ea9cbc59455081cf591c629", "score": "0.61330074", "text": "public function serve($resource)\n { \n $resource = ($resource !== '') ? $resource : $this->defaultResource;\n $file = $this->viewsLocation.$resource;\n\n if (!file_exists($file))\n {\n throw new \\Exception(\"The {$resource} was not found in {$this->viewsLocation} directory!\");\n }\n\n $loader = new \\Twig_Loader_Filesystem(VIEW_PATH);\n $twig = new \\Twig_Environment($loader, array(\n 'cache' => Config::get('app.debug') ? false : CACHE_PATH.'/resource'\n ));\n\n $template = $twig->loadTemplate($resource);\n $this->render($template->display(Config::all()));\n }", "title": "" }, { "docid": "cca5b6bb346929960196841d06bdbc25", "score": "0.6132742", "text": "protected function callView($resource)\n {\n $collection = $this->getTableName($resource);\n $modelName = $this->getModelName($resource);\n\n if ($this->confirm(\"Do you want me to create views for this $modelName resource? [yes|no]\"))\n {\n foreach(['index', 'show', 'create', 'edit'] as $viewName)\n {\n $viewName = \"{$collection}.{$viewName}\";\n\n $this->call('generate:view', compact('viewName'));\n }\n }\n }", "title": "" }, { "docid": "ae6dfcef42246fa0bc047caa2a2e6abf", "score": "0.61027944", "text": "protected function callView($resource)\n\t{\n\t\t$collection = $this->getTableName($resource);\n\t\t$modelName = $this->getModelName($resource);\n\t\t$controllerName = $this->getControllerName($resource);\n\n\t\tif ($this->confirm(\"Do you want me to create views for this $modelName resource? [yes|no]\"))\n\t\t{\n\t\t\tforeach(['index', 'show', 'create', 'edit', 'form'] as $viewName)\n\t\t\t{\n\t\t\t\t$this->call('generate:view', [\n\t\t\t\t\t'viewName' => \"{$collection}.{$viewName}\",\n\t\t\t\t\t'--templatePath' => Config::get(\"generators::config.scaffold_view_\" . $viewName . \"_template_path\"),\n\t\t\t\t\t'controllerName' => $controllerName\n\t\t\t\t]);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b39bdad40da5bd2a2191db02238d9733", "score": "0.6039017", "text": "public function show(Resource $resource)\n {\n\n // dd(TvValue::where('tv_id', 1)->with('tv')->get()->toArray());\n\n return new ResourceResource($resource);\n\n // return new ResourceResource(\n // Resource::with(['tvValues.tv'])->first()\n // );\n\n\n // return new ResourceResource(\n // Resource::with(['template.tvs', 'template.tvs.value' => function ($q) use ($resource) {\n // $q->where('resource_id', $resource->id); //only one value per tv/resource\n // }])->first()\n // );\n }", "title": "" }, { "docid": "152bd291ac464c8a798a231a537e9077", "score": "0.60048014", "text": "public function showOneResourceAction($slug) {\n $em = $this->getDoctrine()->getEntityManager();\n //get post repo\n $postRepo = $em->getRepository('ObjectsInternJumpBundle:Post');\n\n //Get post\n $post = $postRepo->findOneBy(array('slug' => $slug));\n\n\n return $this->render('ObjectsInternJumpBundle:Internjump:showPost.html.twig', array(\n 'post' => $post,\n ));\n }", "title": "" }, { "docid": "ddc28327288006b3d29c6bdc8761ca44", "score": "0.598783", "text": "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "title": "" }, { "docid": "ddc28327288006b3d29c6bdc8761ca44", "score": "0.598783", "text": "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "title": "" }, { "docid": "3fc6717f13f13fb78e83472976fc5aa9", "score": "0.59865093", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n );\n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams());\n\n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Zf1_Model_Item i')\n ->leftJoin('i.Zf1_Model_Country c')\n ->leftJoin('i.Zf1_Model_Grade g')\n ->leftJoin('i.Zf1_Model_Type t')\n ->where('i.RecordID = ?', $input->id);\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->item = $result[0];\n $this->view->images = array();\n $config = $this->getInvokeArg('bootstrap')->getOption('uploads');\n foreach (glob(\"{$config['uploadPath']}/{$this->view->item['RecordID']}_*\") as $file) {\n $this->view->images[] = basename($file);\n }\n $configs = $this->getInvokeArg('bootstrap')->getOption('configs');\n $localConfig = new Zend_Config_Ini($configs['localConfigPath']);\n $this->view->seller = $localConfig->user->displaySellerInfo;\n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404);\n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input');\n }\n }", "title": "" }, { "docid": "062227a9dd94ad374ca6ff7a63acf1a7", "score": "0.59584326", "text": "public function show(Dispenser $dispenser)\n {\n return ( new DispenserResource( $dispenser ) );\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "daadc4514b755545abb9a973d9012f93", "score": "0.5950686", "text": "public function show(ShowRequest $request, Resource $resource)\n {\n $lastRecord = $resource->records()->orderBy('created_at','DESC')->first();\n\n $lastRecord = $lastRecord ? $lastRecord->created_at->diffForHumans() : 'Nothing recorded';\n\n $cacheKey = \"records.{$resource->id}.\".$request->startDate().\"-\".$request->endDate();\n\n $resource = Cache::remember($cacheKey, config('records.cache_time'), function () use ($request, $resource) {\n return $resource->withRecordsWithinDateRange($request->startDate(), $request->endDate());\n });\n\n $stats = generate_stats_from_records($resource->records);\n\n return view('resources.show', compact('resource', 'stats', 'lastRecord'));\n }", "title": "" }, { "docid": "ea2959468f0e3360f355a0256dc44f05", "score": "0.5925876", "text": "function display()\n\t{\n\t\t$this->checkVideoAccess();\n\t\t$document\t= JFactory::getDocument();\n\t\t$viewType\t= $document->getType();\n\t\t$viewName\t= JRequest::getCmd( 'view', $this->getName() );\n\t\t$view\t\t= $this->getView( $viewName , '' , $viewType );\n\t\t\n\t\techo $view->get( __FUNCTION__ );\n\t}", "title": "" }, { "docid": "efc877d628950b2a2648f5399003fe71", "score": "0.5917996", "text": "public function show(Ressource $resource)\n {\n\n return new RessourceR($resource);\n }", "title": "" }, { "docid": "b1ee0604513ee408dcac8ed18b24df7f", "score": "0.5912762", "text": "public function showResource($name)\n {\n $options = Config::get('laravel-swagger::getResourceOptions');\n $resourceName = \"/\" . str_replace(\"-\", \"/\", $name);\n\n $excludedPath = Config::get('laravel-swagger::excludedPath');\n $swagger = new Swagger($this->getPaths(), $excludedPath);\n\n if (Config::get('laravel-swagger::cache') && Cache::has('resource_'.$resourceName)) {\n $resource = Cache::get('resource_'.$resourceName);\n } else {\n if (!in_array($resourceName, $swagger->getResourceNames())) {\n App::abort(404, 'Resource not found');\n }\n\n // Pet demo uses the main laravel-swagger route.\n if ($resourceName == '/petdemo') {\n $options['defaultBasePath'] = route('swagger-index');\n }\n\n $resource = $swagger->getResource($resourceName, $options);\n }\n\n if (Config::get('laravel-swagger::cache') && !Cache::has('resource_'.$resourceName)) {\n Cache::put('resource_'.$resourceName, $resource, $this->getExpireAt());\n }\n\n return $resource;\n }", "title": "" }, { "docid": "b2c60065169a03f2b724e99c8fee9b74", "score": "0.5906451", "text": "public function actionShow()\n {\n $this->render('show');\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d9715e516ec25a4b15c08b2ae6252c4e", "score": "0.58607095", "text": "public function showAction()\n {\n $this->writeSession(); // avoid session write timing bug\n\n // Special case: proxy a full URL:\n $proxy = $this->params()->fromQuery('proxy');\n if (!empty($proxy)) {\n return $this->proxyUrl($proxy);\n }\n\n // Default case -- use image loader:\n $this->getLoader()->loadImage(\n // Legacy support for \"isn\" param which has been superseded by isbn:\n $this->params()->fromQuery('isbn', $this->params()->fromQuery('isn')),\n $this->params()->fromQuery('size'),\n $this->params()->fromQuery('contenttype'),\n $this->params()->fromQuery('title'),\n $this->params()->fromQuery('author'),\n $this->params()->fromQuery('callnumber'),\n $this->params()->fromQuery('issn'),\n $this->params()->fromQuery('oclc'),\n $this->params()->fromQuery('upc')\n );\n return $this->displayImage();\n }", "title": "" }, { "docid": "6d542b39d2ff1e3695538d5d13932255", "score": "0.58599764", "text": "public function controlResource()\n\t{\n\t\t$resourcePage = \\Utility\\Singleton::getInstance('\\View\\Main');\n\t\t\n\t\tswitch($resourcePage->get('resourceAction'))\n\t\t{\n\t\t\tcase 'incrementDownloadsCount':\n\t\t\t\t$data=$this->incrementDownloads();\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'getResourcePage':\n\t\t\t\t$data=$this->getResourcePage();\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\tcase 'rateResource':\n\t\t\t\t$userSession = \\Utility\\Singleton::getInstance('\\Control\\Session');\n\t\t\t\t\n\t\t\t\tif ($userSession->isLoggedIn())\n\t\t\t\t{\n\t\t\t\t\t$data=$this->rateResource();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tprint 'Error. The user is not logged in but is still trying to rate a resource.';\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'getResource_StaticPage':\n\t\t\t\t$resourcePage->assign('templateToDisplay', \"resourcePage.tpl\");\n\t\t\t\t$this->getResourcePage(); // sets the tpl variables ! \n\t\t\t\t$data = $resourcePage->fetch(\"main.tpl\"); // shows the page\n\t\t\t\tbreak;\n\t\t}\t\n\t\t\n\t\treturn $data;\t\t\t\n\t}", "title": "" }, { "docid": "da151f1828a47e20ce9db9b1ce95d89d", "score": "0.58439523", "text": "public function showTaskResource($id=null) {\n\t\t$this->Evaluation->id = $id;\n\t\tif (!$this->Evaluation->exists()) {\n\t\t\tthrow new NotFoundException(__('Invalid evaluation'));\n\t\t}\n\n\t\t$this->Evaluation->recursive = 2; // also load the article record\n\t\t$this->set('evaluation', $this->Evaluation->read(null, $id));\n\n\t\t$this->layout = 'plain';\n\t}", "title": "" }, { "docid": "6e3b046d6dcd2e90f1b5e167dfd4e8e6", "score": "0.5836942", "text": "public function show($id_resource)\n {\n try{\n \n $resource =Resource::find($id_resource);\n if (!$resource) {\n return response()->json(['No existe el recurso'],404);\n }\n return response()->json(['datos' => $resource],200);\n\n }catch(\\Exception $e){\n \n Log::critical(\"no esta creado el recurso: {$e->getCode()} , {$e->getLine()} , {$e->getMessage()}\");\n return response('Algo esta mal',500);\n }\n }", "title": "" }, { "docid": "2258aee65ba455bc0aef378f3fccd130", "score": "0.5827746", "text": "public function edit(Resource $resource)\n {\n return view('resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "d3013ca304fc4179240841ba87242e61", "score": "0.582286", "text": "public function show($id)\n {\n $employee=Employee::find($id);\n return view('human_resources.show',compact('employee'));\n }", "title": "" }, { "docid": "58526873a63ddff4b306282ce5155a89", "score": "0.58138895", "text": "public static function output($resource)\r\n\t{\r\n\t\tif (isset(self::$_resources[$resource])) {\r\n\t\t\t$res =& self::$_resources[$resource];\r\n\r\n\t\t\tif (function_exists('getInternalResource') && $data = getInternalResource($res['data'])) {\r\n\t\t\t\t$filename = self::$embedding_file;\r\n\t\t\t} else {\r\n\t\t\t\t$filename = $res['data'];\r\n\t\t\t}\r\n\r\n\t\t\t// use last-modified time as etag; etag must be quoted\r\n\t\t\t$etag = '\"' . filemtime($filename) . '\"';\r\n\r\n\t\t\t// check headers for matching etag; if etag hasn't changed, use the cached version\r\n\t\t\tif (isset($_SERVER['HTTP_IF_NONE_MATCH']) && $_SERVER['HTTP_IF_NONE_MATCH'] == $etag) {\r\n\t\t\t\theader('HTTP/1.0 304 Not Modified');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\theader('Etag: ' . $etag);\r\n\r\n\t\t\t// cache file for at most 30 days\r\n\t\t\theader('Cache-control: max-age=2592000');\r\n\r\n\t\t\t// output resource\r\n\t\t\theader('Content-type: ' . $res['mime']);\r\n\r\n\t\t\tif (isset($data)) {\r\n\t\t\t\tif (isset($res['base64'])) {\r\n\t\t\t\t\techo base64_decode($data);\r\n\t\t\t\t} else {\r\n\t\t\t\t\techo $data;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\treadfile($filename);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "772f1899391cdde388ff0797a9ac90ba", "score": "0.57871646", "text": "public function displayTask()\n\t{\n\t\t// Set the page title\n\t\t$this->_buildTitle(null);\n\n\t\t// Set the pathway\n\t\t$this->_buildPathway(null);\n\n\t\t$this->view\n\t\t\t->set('cloud', new Cloud())\n\t\t\t->set('config', $this->config)\n\t\t\t->display();\n\t}", "title": "" }, { "docid": "e07dd1ea2c7998471ba1119365afd467", "score": "0.57825226", "text": "private function setShowResource($url, $route, $controller)\n {\n return $this->setResource($url, $route, $controller, 'show');\n }", "title": "" }, { "docid": "58b9e5811b41a6e1eb8525e2193c6ee8", "score": "0.57782406", "text": "public function show(Information $information)\n\t{\n\t}", "title": "" }, { "docid": "765678d75db620af12e826ffe74dec55", "score": "0.57683015", "text": "public function display()\n {\n parent::display();\n }", "title": "" }, { "docid": "e7bae91f4e998eac5e73657c932c48d7", "score": "0.5752467", "text": "public function show($id) {\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "6c8e2d2ef5316837594a71f6d09c8fe4", "score": "0.5745173", "text": "public function displayTask()\n\t{\n\t\t// Incoming directory (this should be a path built from a resource ID and its creation year/month)\n\t\t$resource = Request::getInt('resource', 0);\n\n\t\tif (!$resource)\n\t\t{\n\t\t\techo '<p class=\"error\">' . Lang::txt('No resource ID provided.') . '</p>';\n\t\t\treturn;\n\t\t}\n\n\t\tif ($resource < 1 || substr($resource, 0, 4) == '9999')\n\t\t{\n\t\t\t$row = Entry::blank();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$row = Entry::oneOrFail($resource);\n\t\t}\n\t\t$row->set('id', $resource);\n\n\t\t// Incoming sub-directory\n\t\t$subdir = Request::getString('subdir', '');\n\n\t\t// Allow for temp resource uploads\n\t\tif (!$row->get('created') || $row->get('created') == '0000-00-00 00:00:00')\n\t\t{\n\t\t\t$row->set('created', Date::format('Y-m-d 00:00:00'));\n\t\t}\n\n\t\t$path = $row->filespace() . DS . 'media';\n\n\t\t$folders = array();\n\t\t$docs = array();\n\n\t\tif (is_dir($path))\n\t\t{\n\t\t\t// Loop through all files and separate them into arrays of images, folders, and other\n\t\t\t$dirIterator = new \\DirectoryIterator($path);\n\n\t\t\tforeach ($dirIterator as $file)\n\t\t\t{\n\t\t\t\tif ($file->isDot())\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$name = $file->getFilename();\n\n\t\t\t\tif ($file->isDir())\n\t\t\t\t{\n\t\t\t\t\t$folders[$path . DS . $name] = $name;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ($file->isFile())\n\t\t\t\t{\n\t\t\t\t\tif (('cvs' == strtolower($name))\n\t\t\t\t\t || ('.svn' == strtolower($name)))\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t$docs[$path . DS . $name] = $name;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tksort($folders);\n\t\t\tksort($docs);\n\t\t}\n\n\t\t// Output the HTML\n\t\t$this->view\n\t\t\t->set('resource', $resource)\n\t\t\t->set('row', $row)\n\t\t\t->set('subdir', $subdir)\n\t\t\t->set('path', $path)\n\t\t\t->set('docs', $docs)\n\t\t\t->set('folders', $folders)\n\t\t\t->setErrors($this->getErrors())\n\t\t\t->setLayout('display')\n\t\t\t->display();\n\t}", "title": "" }, { "docid": "66e03ced3a1ae0b6545066542c4db145", "score": "0.5740594", "text": "public function show($id)\n {\n // NOT CURRENTLY IN USE\n }", "title": "" }, { "docid": "a5c4f542acf75c65ff05c5578f254411", "score": "0.57365245", "text": "public function show($id)\t{\n\t\t//\n\t}", "title": "" }, { "docid": "50906964816f826e5e97434e93a5e9fd", "score": "0.5725398", "text": "public static function build_resource_display($resource)\n {\n return !empty($resource->alias_id)\n ? (\n !empty($resource->alias->display)\n ? $resource->alias->display\n : (\n get_class($resource->alias->reference) == 'RrSection'\n ? $resource->alias->reference->humanized\n : (\n $resource->alias->reference->link_id\n ? $resource->alias->reference->external_link->display\n : $resource->alias->reference->current_content->name\n )\n )\n )\n : (\n !empty($resource->link_id)\n ? $resource->external_link->display\n : $resource\n );\n }", "title": "" }, { "docid": "59b0e1aa7962f363403756316247fa6c", "score": "0.5725074", "text": "public function show($id)\n {\n // NOT IN USE\n }", "title": "" }, { "docid": "20397e06b8673db8692c5f84120c3011", "score": "0.5724891", "text": "public function show()\n\t{\n\n\t}", "title": "" }, { "docid": "20397e06b8673db8692c5f84120c3011", "score": "0.5724891", "text": "public function show()\n\t{\n\n\t}", "title": "" }, { "docid": "db750b3e511e63d406ae28df64eaaebe", "score": "0.57234067", "text": "public function show()\n {\n }", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "d19dcc73e037825dd6d81eb43124c737", "score": "0.57209426", "text": "public function displayPublic(Event $event): void\n {\n $view = $event->getTarget();\n $resource = $view->resource;\n echo $view->annotations($resource);\n }", "title": "" }, { "docid": "92da845f2b45c1c27facc3d1b2652f6e", "score": "0.5720476", "text": "public function show($id)\n {\n // ????\n }", "title": "" }, { "docid": "cb9307a32f6d22a33b956aed56db49ba", "score": "0.5717934", "text": "public function show($id)\n\t{\n\t\t//\n\t\t\n\t}", "title": "" }, { "docid": "32724d56295205b19aa68b02a906dfe2", "score": "0.5716713", "text": "public function display()\n {\n echo c\\L::USER . $this->user . BR .\n c\\L::ACTION . $this->action . BR .\n c\\L::ID . $this->identifier->getId() . BR .\n c\\L::ASSET_TYPE . $this->identifier->getType() . BR .\n c\\L::DATE . date_format( $this->date_time, 'Y-m-d H:i:s' ) . BR . HR;\n \n return $this;\n }", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "560ae0fd472bad5f1d21beeed5dfbbdd", "score": "0.57012135", "text": "public function show(){}", "title": "" }, { "docid": "6b211039d8016aee0608335163b8aa27", "score": "0.5691084", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('DataBaseBundle:Sitio')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Sitio entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('DataBaseBundle:Sitio:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "5df2376bef8dd69621a6ce7e2afd0bf4", "score": "0.56856436", "text": "abstract public function show($id);", "title": "" }, { "docid": "a485ce56c900259dcc8e330d7c451818", "score": "0.5685515", "text": "public function show($id)\n\t{\n\t\t$subResourceDetail = $this->subResourceDetailRepository->find($id);\n\n\t\tif(empty($subResourceDetail))\n\t\t{\n\t\t\tFlash::error('SubResourceDetail not found');\n\n\t\t\treturn redirect(route('subResourceDetails.index'));\n\t\t}\n\n\t\treturn view('subResourceDetails.show')->with('subResourceDetail', $subResourceDetail);\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" } ]
d7bdfc114d051e07bb3745b824d03ffc
constructor with $db as database connection
[ { "docid": "718ddef6ce733ff3b2bb56ac4048b333", "score": "0.8717908", "text": "public function __construct($db)\n {\n $this->conn = $db;\n\n }", "title": "" } ]
[ { "docid": "5f2bb225023abcb8e73b0f62f4c3b6d3", "score": "0.8870648", "text": "function __construct($db) {\n $this->conn = $db;\n }", "title": "" }, { "docid": "5e29b2f0174e313a920b92064d1be4e7", "score": "0.8833604", "text": "function __construct($db) {\n $this->conn = $db;\n }", "title": "" }, { "docid": "9a5077989078de1d81daa37b68cff00b", "score": "0.8795569", "text": "function __construct($db)\r\n {\r\n $this->_db = $db;\r\n }", "title": "" }, { "docid": "8c5fbc6f4a988cfb498f6cd77b6b438f", "score": "0.87894475", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "39ce2d417b57f4eba741c578432422dd", "score": "0.8789306", "text": "public function __construct($db)\n {\n $this->connection = $db;\n }", "title": "" }, { "docid": "4dd427dd83c49868e3941ee7c7d63f6e", "score": "0.8786242", "text": "public function __construct($db) {\n $this->conn = $db;\n }", "title": "" }, { "docid": "370da19a1f3861d4a033e0bb974d6d30", "score": "0.8782656", "text": "public function __construct($db) {\n $this->conn = $db;\n }", "title": "" }, { "docid": "370da19a1f3861d4a033e0bb974d6d30", "score": "0.8782656", "text": "public function __construct($db) {\n $this->conn = $db;\n }", "title": "" }, { "docid": "370da19a1f3861d4a033e0bb974d6d30", "score": "0.8782656", "text": "public function __construct($db) {\n $this->conn = $db;\n }", "title": "" }, { "docid": "8e75996dd82f5fbad940e80c325621bf", "score": "0.878128", "text": "public function __construct( $db ) {\n\t\t$this->conn = $db;\n\t}", "title": "" }, { "docid": "8e75996dd82f5fbad940e80c325621bf", "score": "0.878128", "text": "public function __construct( $db ) {\n\t\t$this->conn = $db;\n\t}", "title": "" }, { "docid": "da673b770ddbd0e6f5cbea09eba63c9e", "score": "0.8780359", "text": "function __construct(&$db) {\n\t\t$this->db = $db;\n\t}", "title": "" }, { "docid": "7c0dc7717fb905596da4990ddf8c2688", "score": "0.8776749", "text": "public function __construct($db) {\n\t\t$this->conn = $db;\n\t}", "title": "" }, { "docid": "7c0dc7717fb905596da4990ddf8c2688", "score": "0.8776749", "text": "public function __construct($db) {\n\t\t$this->conn = $db;\n\t}", "title": "" }, { "docid": "702b5705dbea4981ba44d506601c94a4", "score": "0.87720054", "text": "public function __construct ($db) {\n $this->conn = $db;\n }", "title": "" }, { "docid": "d9c08a74f879d5e7a54d533143351a95", "score": "0.87698257", "text": "public function __construct($db) {\r\n $this->conn = $db;\r\n }", "title": "" }, { "docid": "20661037b97864f32efb55b008349aa7", "score": "0.87695557", "text": "public function __construct($db) {\r\n $this->conn = $db;\r\n }", "title": "" }, { "docid": "4d68076df8ab8004982df4c2de6ecc57", "score": "0.8769251", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "4d68076df8ab8004982df4c2de6ecc57", "score": "0.8769251", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "4d68076df8ab8004982df4c2de6ecc57", "score": "0.8769251", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "4d68076df8ab8004982df4c2de6ecc57", "score": "0.8769251", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "4d68076df8ab8004982df4c2de6ecc57", "score": "0.8769251", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "4d68076df8ab8004982df4c2de6ecc57", "score": "0.8769251", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "4d68076df8ab8004982df4c2de6ecc57", "score": "0.8769251", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "4d68076df8ab8004982df4c2de6ecc57", "score": "0.8769251", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "4d68076df8ab8004982df4c2de6ecc57", "score": "0.8769251", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "4d68076df8ab8004982df4c2de6ecc57", "score": "0.8769251", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "4d68076df8ab8004982df4c2de6ecc57", "score": "0.8769251", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "4d68076df8ab8004982df4c2de6ecc57", "score": "0.8769251", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "4d68076df8ab8004982df4c2de6ecc57", "score": "0.8769251", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "4d68076df8ab8004982df4c2de6ecc57", "score": "0.8769251", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "4d68076df8ab8004982df4c2de6ecc57", "score": "0.8769251", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "4d68076df8ab8004982df4c2de6ecc57", "score": "0.8769251", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "4d68076df8ab8004982df4c2de6ecc57", "score": "0.8769251", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "fca1a786169e59231c8b65768a07d4fe", "score": "0.8768454", "text": "public function __construct($db) {\n $this->conn = $db;\n }", "title": "" }, { "docid": "fca1a786169e59231c8b65768a07d4fe", "score": "0.8768454", "text": "public function __construct($db) {\n $this->conn = $db;\n }", "title": "" }, { "docid": "ed033658bbe6311898aaa67cb6ea59f0", "score": "0.87605137", "text": "public function __construct($db)\r\n {\r\n $this->conn = $db;\r\n }", "title": "" }, { "docid": "5f5681e2c4ca3cfceae9a53aad0e94d6", "score": "0.87446517", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "a68127bc72f4a2d8bce1be87c33a2eea", "score": "0.8724751", "text": "public function __construct($db) {\r\n $this->_db = $db;\r\n }", "title": "" }, { "docid": "f5ba07371da0833b99df5eea4225f78d", "score": "0.87233955", "text": "function __construct(&$db)\r\n {\r\n $this->_db = $db;\r\n }", "title": "" }, { "docid": "ce2d54bfd60c22f781cb8d22ac0421ea", "score": "0.87170744", "text": "public function __construct($db) \n {\n $this->db = $db;\n }", "title": "" }, { "docid": "7b728cfda652e8adbd851ed83dc2278b", "score": "0.8717069", "text": "public function __construct($db) {\n $this->conn = $db;\n }", "title": "" }, { "docid": "7b728cfda652e8adbd851ed83dc2278b", "score": "0.8717069", "text": "public function __construct($db) {\n $this->conn = $db;\n }", "title": "" }, { "docid": "3ea4bab56959c1d4384fddabad834efd", "score": "0.87075186", "text": "public function __construct($db)\n {\n $this->conn = $db;\n }", "title": "" }, { "docid": "57bfc9ca559735b94fc9746cfb082a7b", "score": "0.8700695", "text": "public function __construct($db) {\n $this->_db = $db;\n }", "title": "" }, { "docid": "3a82148f573c9d4e727a89d814a8a46a", "score": "0.86997926", "text": "public function __construct($db)\n {\n $this->db = $db;\n }", "title": "" }, { "docid": "3a82148f573c9d4e727a89d814a8a46a", "score": "0.86997926", "text": "public function __construct($db)\n {\n $this->db = $db;\n }", "title": "" }, { "docid": "3a82148f573c9d4e727a89d814a8a46a", "score": "0.86997926", "text": "public function __construct($db)\n {\n $this->db = $db;\n }", "title": "" }, { "docid": "3a82148f573c9d4e727a89d814a8a46a", "score": "0.86997926", "text": "public function __construct($db)\n {\n $this->db = $db;\n }", "title": "" }, { "docid": "61b875377b3b56f7a932ee56d34d2590", "score": "0.8699658", "text": "Public Function __construct($db)\n {\n $this->db = $db;\n }", "title": "" }, { "docid": "1657364929f9b26ddae7290dddd99c07", "score": "0.8687503", "text": "public function __construct($db)\n {\n if (!isset($this->db))\n $this->db = $db;\n }", "title": "" }, { "docid": "7695f8a5f42948c9455dc2ef8b9565f6", "score": "0.86522555", "text": "public function __construct($db) {\n $this->conn = $db;\n\n }", "title": "" }, { "docid": "7695f8a5f42948c9455dc2ef8b9565f6", "score": "0.86522555", "text": "public function __construct($db) {\n $this->conn = $db;\n\n }", "title": "" }, { "docid": "5fa71374ef5f3d91714160fb5eb99e21", "score": "0.8627002", "text": "public function __construct($db){\n $this->connection = $db;\n }", "title": "" }, { "docid": "6f676b1a68f504a6e11e7a6e826d05f2", "score": "0.86237127", "text": "private function __construct($db) {\r\n\t\t$this->_db = $db;\r\n\t}", "title": "" }, { "docid": "3595721673426e57889ecbce3be244c1", "score": "0.8614867", "text": "public function __construct(&$db) {\n $this->db=$db;\n }", "title": "" }, { "docid": "cee45b218c4d8ee377a23c6ad7bf3a16", "score": "0.86138576", "text": "public function __construct($db){\r\n $this->db = $db;\r\n }", "title": "" }, { "docid": "bd9c7f2e8b3d2866a6d334964dba259e", "score": "0.86095876", "text": "public function __construct($db){\r\n $this->_db = $db;\r\n }", "title": "" }, { "docid": "203068b68778648651d0851340541a02", "score": "0.8606612", "text": "public function __construct($db=null) {\n $this->db = $db;\n }", "title": "" }, { "docid": "3bf62e5846c8b70d3135eb7d67ea3d96", "score": "0.8598794", "text": "public function __construct($db){\n\t\t$this->conn = $db;\n\t}", "title": "" }, { "docid": "3bf62e5846c8b70d3135eb7d67ea3d96", "score": "0.8598794", "text": "public function __construct($db){\n\t\t$this->conn = $db;\n\t}", "title": "" }, { "docid": "3bf62e5846c8b70d3135eb7d67ea3d96", "score": "0.8598794", "text": "public function __construct($db){\n\t\t$this->conn = $db;\n\t}", "title": "" }, { "docid": "3bf62e5846c8b70d3135eb7d67ea3d96", "score": "0.8598794", "text": "public function __construct($db){\n\t\t$this->conn = $db;\n\t}", "title": "" }, { "docid": "c59cfdd44211f9cf9d7cc39e74db01b3", "score": "0.85872805", "text": "public function __construct($db){\n $this->connection = $db;\n }", "title": "" }, { "docid": "c7553e0a3da9a8fea8337bd4d95f6ccb", "score": "0.85838556", "text": "public function __construct($db){\r\n $this->db = $db;\r\n }", "title": "" }, { "docid": "5c1a5a485be4383b82b72a8da70f3e3f", "score": "0.85816926", "text": "public function __construct($db){\n \t\t$this->conn = $db;\n \t}", "title": "" }, { "docid": "1eeaa14a72e41b853818d3adfe90dc40", "score": "0.85798115", "text": "function __construct()\n {\n $this->db = $this->open_db_connection();\n }", "title": "" }, { "docid": "cc03c4993f861db66b81e02a808996f3", "score": "0.8576936", "text": "public function __construct($db){\n\t\t\t$this->conn = $db;\n\t\t}", "title": "" }, { "docid": "24086f161b592eea06be6428f862acae", "score": "0.85752434", "text": "public function __construct($db){\n\t\t$this->db = $db;\n\t}", "title": "" }, { "docid": "f7dae3121100a0d32ab2e319939f81d3", "score": "0.85603577", "text": "public function __construct($db)\r\n {\r\n //$db is the database object that is passed to this function\r\n $this->conn = $db;\r\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" }, { "docid": "a664c20a009b56f3f9221bb2fc44ea90", "score": "0.85491204", "text": "public function __construct($db){\n $this->conn = $db;\n }", "title": "" } ]
30b1ca214c8de48ca466dc57ee072ad6
Creates and returns a new zerovalue row for provided date and metrics.
[ { "docid": "c451518f1b35bd1e350b3c936188053d", "score": "0.57216334", "text": "protected function create_report_row( $metric_headers, $current_date, $date_range_index, $default_value = '0' ) {\n\t\t$dimension_values = array();\n\n\t\t$current_date_dimension_value = new Google_Service_AnalyticsData_DimensionValue();\n\t\t$current_date_dimension_value->setValue( $current_date );\n\t\t$dimension_values[] = $current_date_dimension_value;\n\n\t\t// If we have multiple date ranges, we need to add \"date_range_{i}\" index to dimension values.\n\t\tif ( false !== $date_range_index ) {\n\t\t\t$date_range_dimension_value = new Google_Service_AnalyticsData_DimensionValue();\n\t\t\t$date_range_dimension_value->setValue( \"date_range_{$date_range_index}\" );\n\t\t\t$dimension_values[] = $date_range_dimension_value;\n\t\t}\n\n\t\t$metric_values = array();\n\t\tforeach ( $metric_headers as $metric_header ) {\n\t\t\t$metric_value = new Google_Service_AnalyticsData_MetricValue();\n\t\t\t$metric_value->setValue( $default_value );\n\n\t\t\t$metric_values[] = $metric_value;\n\t\t}\n\n\t\t$row = new Google_Service_AnalyticsData_Row();\n\t\t$row->setDimensionValues( $dimension_values );\n\t\t$row->setMetricValues( $metric_values );\n\n\t\treturn $row;\n\t}", "title": "" } ]
[ { "docid": "c0cab654c9ca0069994acb507c72d6e0", "score": "0.503599", "text": "public function __construct($date = null)\n {\n parent::__construct($date);\n foreach ($this->arrData['arrTimetable'] as $x_id => $y_axis) {\n foreach ($y_axis as $y_id => $data) {\n $tmpTimetable[$y_id][$x_id] = $data;\n }\n }\n $this->arrData['arrTimetable'] = $tmpTimetable;\n $x_id = $this->arrData['x_axis'];\n $y_id = $this->arrData['y_axis'];\n $this->arrData['x_axis'] = $y_id;\n $this->arrData['y_axis'] = $x_id;\n }", "title": "" }, { "docid": "c74b7bbee79a757bf377d1f402e0c7fe", "score": "0.47845763", "text": "abstract public function createRow();", "title": "" }, { "docid": "5660bc525a40a9651e495c35b019e0f6", "score": "0.4763857", "text": "function createEmptyTable(){\n\t$tmpTable = new StatisticTable('',0,'');\n\n\tfor ($rc = 0;$rc <1;$rc++){\n\t\t$tmpTable->addRow(createEmptyRow());\n\t}\n\n\tfor ($cc = 0;$cc <1;$cc++){\n\t\t$tmpTable->addColumn(createEmptyColumn());\n\t}\n\n\treturn $tmpTable;\n}", "title": "" }, { "docid": "96a872119a3701cd19b2d1a483e294a0", "score": "0.46440881", "text": "public function addEmptyRow();", "title": "" }, { "docid": "5e48b38361b4c9cf3ac01850a63c4375", "score": "0.4578424", "text": "public function testZeroValues01(): void\n {\n $column = new NumberTableColumn('header', 'number');\n\n $values = ['0', 0, 0.0];\n $walker = new RenderWalker('ot');\n foreach ($values as $value)\n {\n $row = ['number' => $value];\n $ret = $column->htmlCell($walker, $row);\n\n self::assertSame('<td class=\"ot-cell ot-cell-number\" data-value=\"0\">0</td>', $ret, var_export($value, true));\n }\n }", "title": "" }, { "docid": "ba933068753f7a2f90984f3359a244c9", "score": "0.45172203", "text": "public function queryAtDateDoesAutoCreateTablesForWrites()\n {\n $scalarFields['name'] = self::randomString();\n $scalarFields['type'] = 'decimal';\n $scalarId = $this->_core->createScalar($scalarFields);\n $expectedTableName = $this->_partition->getIntervalTableName($scalarId);\n $this->_partition->queryAtDate($scalarId,\n 'INSERT INTO ~samples (`value`) VALUES (1)',\n gmdate(HASHMARK_DATETIME_FORMAT));\n $this->assertTrue($this->_partition->tableExists($expectedTableName));\n }", "title": "" }, { "docid": "b77d7bc0d8f355ec5eae1baddb4e4928", "score": "0.45167324", "text": "private function fillTimeSeriesRows($data, $measure, $comparison, array &$rows)\n {\n foreach ($data->main as $point) {\n if (!isset($rows[$point[0]])) {\n $rows[$point[0]] = [\n 'time' => date(\\DateTime::ATOM, $point[0])\n ];\n }\n\n $rows[$point[0]][$measure] = $point[1];\n }\n\n if ($comparison && isset($data->comparison)) {\n foreach ($data->comparison as $point) {\n $rows[$point[0]][$measure .'_'. $comparison] = $point[1];\n }\n }\n }", "title": "" }, { "docid": "0e83064b80c24543c7e7a4e7f174c033", "score": "0.44892803", "text": "public function data_notCCmetrics($thisMonthsTarget = 14000000)\n {\n date_default_timezone_set('Asia/Kolkata');\n \n $yesterday = date('Y-m-d 00:00:00', strtotime(\"yesterday\"));\n $now = date('Y-m-d H:i:s', strtotime(\"now\"));\n $dayBeforeYest = date('Y-m-d H:i:s', strtotime(\"-2 days midnight\")) ;\n $monthStart = date('Y-m-d H:i:s', strtotime(\"first day of this month midnight\")) ; //never set to $from . though $monthStart_minus1 is\n $monthStart_minus1 = date('Y-m-d H:i:s', strtotime(\"last day of previous month midnight\")) ; //taking a margin of one day so that Orders are not missed due to time diff.\n\n $to = $now;\n $from = $monthStart_minus1; // from is set to monthStart OR dayBeforeYest depending upon whichever comes first\n if (strtotime(\"first day of this month midnight\") > strtotime(\"-2 days midnight\") ) \n {\n $from = $dayBeforeYest; \n }\n\n // var_dump($now);echo \"now \";echo \"<br>\";\n // var_dump($dayBeforeYest);echo \"day bef yest \";echo \"<br>\";\n // var_dump($monthStart_minus1);echo \"month Start\";\n // die;\n \n try \n {\n $client = new SoapClient('http://www.overcart.com/index.php/api/v2_soap?wsdl');\n $session = $client->login('dashbaord', 'jn0ar9t6j2cysb9lywbwk0bimft9l1ce');\n\n $params = array('complex_filter'=>\n array(\n array('key'=>'created_at','value'=>array('key' =>'from','value' => $from)), //taking dayBeforeYesterday to avoid missing yesterday's orders due to time zone difference\n array('key'=>'created_at', 'value'=>array('key' => 'to', 'value' => $to))\n )\n );\n $ordersList = $client->salesOrderList($session,$params);\n\n\n } catch (SoapFault $fault) {\n trigger_error(\"SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})\", E_USER_ERROR);\n }\n\n // echo \"<pre>\";\n // foreach ($ordersList as $order) \n // {\n // echo $order->increment_id;\n // echo \" . \";\n // echo $order->created_at;\n // $state = $order->state;\n // $status = $order->status;\n // // echo \" | <strong>\".$state.'</strong> -> <em>'.$status.' </em><br>';\n // echo \", <strong>\".$state.'</strong> , <em>'.$status.' </em><br>';\n // }die;\n $monthStart_timeStamp = strtotime(\"first day of this month midnight\");\n $yesterday_timeStamp = strtotime(\"-2 days midnight\");\n $today_timeStamp = strtotime(\"today\");\n $today = date('Y-m-d H:i:s',$today_timeStamp);\n\n // echo $today.'<hr>';\n\n $count_monthsOrders =0;\n $monthlyCount_CSconfirmed =0;\n $monthlyConfirmedRevenue = 0;\n $count_yesterdaysOrders= 0;\n $count_todaysOrders =0;\n $count_sameDayShips =0;\n $count_CSconfirmed =0;\n $count_CScancelled =0;\n $todaysConfirmedRevenue =0;\n $array_pendingStates = array('pending_payment','canceled');\n $array_pendingStatus = array('pending',/*'processing',*/ 'canceled','reverse_pickup','rto'); //RTOs not included in month revenue (rev. pickup)\n $orderValue = 0;\n\n foreach ($ordersList as $order)\n {\n //looping through each order starting this monthStart (Or DayBefYesterday if it comes first) and till now \n $order_timeStamp = strtotime(\" + 330 minutes\", strtotime($order->created_at)) ;\n $order_time = date('Y-m-d H:i:s',strtotime(\" + 330 minutes\", strtotime($order->created_at))) ;\n // echo \"<br/>\".$order->increment_id. \" - created at \". $order->created_at .\" - order_time=$order_time\"; echo \"<br>\";//debugging line\n\n $orderValue = $order->grand_total;\n $state = $order->state;\n $status = $order->status;\n if ($order_timeStamp >= $monthStart_timeStamp) //if its this month's order\n {\n // echo \"Month's order, \";//debugging line\n // echo \"Sate: \" .\", <strong>\".$state.'</strong> , Status:<em>'.$status.' </em>';//debugging line\n if ( ! ( in_array($state, $array_pendingStates) || in_array($status, $array_pendingStatus))) // is the order is NOT pending\n {\n $monthlyCount_CSconfirmed ++;\n $monthlyConfirmedRevenue += $orderValue;\n }\n\n $count_monthsOrders++;\n }\n\n if ($order_timeStamp >= $yesterday_timeStamp && $order_timeStamp < $today_timeStamp) //all yesterday's \n {\n $count_yesterdaysOrders++;\n }\n elseif ($order_timeStamp >= $today_timeStamp) // if its today's order\n {\n // echo \"Sate: \" .\", <strong>\".$state.'</strong> , Status:<em>'.$status.' </em>';//debugging line\n if ($state === 'complete') // Its been shipped today. $status === 'delivered ' is not needed as State still remains 'complete' if status is delivered\n {\n $count_sameDayShips ++;\n // echo \"<br>Same day ship:<span style=\\\"font-size:25px;\\\"></span>\";\n }\n if ( ! ( in_array($state, $array_pendingStates) || in_array($status, $array_pendingStatus))) //if the order is NOT pending\n {\n // echo \"<strong>Confirmed</strong>\";\n $count_CSconfirmed ++;\n $todaysConfirmedRevenue += $orderValue;\n }\n if ($status === 'canceled')\n {\n // echo \"--:canceled detected\";\n $count_CScancelled ++;\n }\n // else//debugging only\n // echo \"<strong>Pending </strong>\";\n // if (in_array($state, $array_pendingStates)) echo ' in_array($state, $array_pendingStates)' ;\n // if (in_array($status, $array_pendingStatus)) echo ' in_array($status, $array_pendingStatus)' ;\n \n $count_todaysOrders ++;\n }\n \n // else //for debugging: to see if any of the ignored orders are today's\n // {\n // // echo \" yesterday's order<br/> \". date('Y-m-d H:i:s',$order_timeStamp) .\"<\". date('Y-m-d H:i:s',$today_timeStamp).\" <hr>\";\n // } \n \n // echo \"<hr>\";\n }//end of foreach $ordersList as $order\n\n // echo \"$monthlyCount_CSconfirmed\";die;\n\n $percent_sameDayShips= $count_CSconfirmed==0 ? 0 : $count_sameDayShips /$count_CSconfirmed *100; // ? : ; prevents the php notice 'can't devide by zero'\n $percent_CSconfirmed= $count_todaysOrders==0 ? 0 : $count_CSconfirmed / $count_todaysOrders *100;\n $percent_CScancelled = $count_todaysOrders==0 ? 0 : $count_CScancelled/ $count_todaysOrders *100;\n // $thisMonthsTarget = 12000000; // moved to arguement of this function\n $percent_monthlySalesTarget = $monthlyConfirmedRevenue / $thisMonthsTarget *100;\n\n //fomatting data before sending\n $percent_sameDayShips = floor($percent_sameDayShips);\n $percent_CSconfirmed = floor($percent_CSconfirmed);\n $percent_CScancelled = floor($percent_CScancelled);\n $todaysConfirmedRevenue = floor($todaysConfirmedRevenue);\n $todaysConfirmedRevenue = $this->moneyFormatIndia($todaysConfirmedRevenue);\n $monthlyConfirmedRevenue = floor($monthlyConfirmedRevenue);\n $monthlyConfirmedRevenue = $this->moneyFormatIndia($monthlyConfirmedRevenue);\n $percent_monthlySalesTarget = number_format((float)$percent_monthlySalesTarget, 2, '.', ''); // gives a string value with 2 places after decimal\n $thisMonthsTarget = $this->moneyFormatIndia($thisMonthsTarget);\n\n $returnArray = array('count_sameDayShips'=>$count_sameDayShips, 'count_CSconfirmed'=>$count_CSconfirmed,'todaysConfirmedRevenue' =>$todaysConfirmedRevenue, 'percent_sameDayShips'=> $percent_sameDayShips,'percent_CSconfirmed'=> $percent_CSconfirmed, 'percent_CScancelled'=>$percent_CScancelled, 'count_yesterdaysOrders' => $count_yesterdaysOrders ,'thisMonthsTarget'=> $thisMonthsTarget,'monthlyConfirmedRevenue'=> $monthlyConfirmedRevenue,'percent_monthlySalesTarget'=> $percent_monthlySalesTarget);\n\n // echo \"<pre>\";\n // var_dump($returnArray); die;\n return $returnArray;\n }", "title": "" }, { "docid": "761e2fda0d5e4958f6033a07e547fca3", "score": "0.44583303", "text": "function set_missing_values($unit, $data, $firstDate = null, $lastDate = null)\n{\n $limit = count($data);\n $result = array();\n \n if ($firstDate == null) \n {\n $date = get_date_object($data[count($data) - 1]);\n } else {\n $date = $firstDate;\n }\n if ($lastDate == null) \n {\n $date_end = get_date_object($data[0]);\n } else {\n $date_end = $lastDate;\n }\n\n //Declare variable according the unit\n if ($unit == 'year') \n {\n $date_format = 'Y';\n $date_add = 'P1Y';\n } \n else if ($unit == 'month') \n {\n $date_format = 'Y-m';\n $date_add = 'P1M';\n } \n else if ($unit == 'day') \n {\n $date_format = 'Y-m-d';\n $date_add = 'P1D';\n } \n else if ($unit == 'hour') \n {\n $date_format = 'Y-m-d\\TH:00';\n $date_add = 'PT1H';\n }\n\n //Fill an empty array with all the dates\n while ($date <= $date_end) {\n $result[$date->format($date_format)] = 0;\n $date->add(new DateInterval($date_add));\n }\n\n //Overload with database rows\n foreach ($data as $value) \n {\n $str = get_date_object($value)->format($date_format);\n if (isset($result[$str])) \n {\n $result[$str] += $value['nb_pages'];\n }\n }\n\n return $result;\n}", "title": "" }, { "docid": "3c7ce536320b3d6a3f3158ecd08500bd", "score": "0.44440484", "text": "public function ChartVal($dateCreate)\n {\n $tempt = DB::table(\"dht_logs\")\n ->select(\"temperature\")\n ->where(DB::raw(\"DATE(dateCreate)\"),\"$dateCreate\")\n ->get();\n $humid = DB::table(\"dht_logs\")\n ->select(\"humidity\")\n ->where(DB::raw(\"DATE(dateCreate)\"),\"$dateCreate\")\n ->get();\n $time = DB::table(\"dht_logs\")\n ->selectraw(\"TIME(dateCreate) as time\")\n ->where(DB::raw(\"DATE(dateCreate)\"),\"$dateCreate\")\n ->get();\n $dht = [\n 'temperature' => $tempt,\n 'humidity' => $humid,\n 'time' => $time\n ];\n \n\n return response()->json($dht,200);\n }", "title": "" }, { "docid": "18847961ad25d9687492953cc2374e9d", "score": "0.44416684", "text": "protected function _createDatesTable() {\n\t\t$table = 'CREATE TEMPORARY TABLE dates(id int, name varchar(50), posted timestamp, visible char(1))';\n\t\t$this->connection->execute($table);\n\t\t$data = [\n\t\t\t'id' => '1',\n\t\t\t'name' => 'Chuck Norris',\n\t\t\t'posted' => new \\DateTime('2012-12-21 12:00'),\n\t\t\t'visible' => 'Y'\n\t\t];\n\t\t$result = $this->connection->insert(\n\t\t\t'dates',\n\t\t\t$data,\n\t\t\t['id' => 'integer', 'name' => 'string', 'posted' => 'datetime', 'visible' => 'string']\n\t\t);\n\n\t\t$result->bindValue(1, '2', 'integer');\n\t\t$result->bindValue(2, 'Bruce Lee');\n\t\t$result->bindValue(3, new \\DateTime('2012-12-22 12:00'), 'datetime');\n\t\t$result->bindValue(4, 'N');\n\t\t$result->execute();\n\n\t\t$result->bindValue(1, 3, 'integer');\n\t\t$result->bindValue(2, 'Jet Li');\n\t\t$result->bindValue(3, new \\DateTime('2012-12-25 12:00'), 'datetime');\n\t\t$result->bindValue(4, null);\n\t\t$result->execute();\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "2c9747315d98f995b7fc495ac2b59ce4", "score": "0.443005", "text": "public function createEmptyRecord($userId)\n {\n $data['user_id'] = $userId;\n $userTotals = $this->newEntity();\n $userTotals = $this->patchEntity($userTotals, $data);\n $this->save($userTotals);\n }", "title": "" }, { "docid": "2ad5c2914a2eaef9be4254e2db64d347", "score": "0.44190854", "text": "function __construct($datefrom = CUR_DATE, $dateto = CUR_DATE, $timefrom = \"00:00:00\", $timeto = \"23:59:59\", $operatorid = \"t_route.operator_id\", $routeid = \"service.route_id\",$runningboard ,$dutyno) {\n $curusername = yii::app()->user->id;\n\n try {\n\n $this->create_temp_times($timefrom, $timeto);\n\n $this->createTempDays($datefrom, $dateto, date('Y-m-d'), 0);\n\n $this->build_user_timetable($curusername, $timefrom, $timeto, $operatorid, $routeid,$runningboard ,$dutyno);\n \n } catch (Exception $e) {\n\n echo 'error creating tt temp table ' . $e->getMessage();\n }\n }", "title": "" }, { "docid": "cf607d2bdcc6194b01464e0aea665ff7", "score": "0.43559328", "text": "function get_date_object($row) \n{\n $date_string = $row['year'];\n if ($row['month'] != null) \n {\n $date_string = $date_string.'-'.$row['month'] ;\n if ($row['day'] != null) \n {\n $date_string = $date_string.'-'.$row['day'];\n if ($row['hour'] != null) \n {\n $date_string = $date_string.' '.$row['hour'].':00';\n }\n }\n } \n else \n {\n $date_string .= '-1';\n }\n\n return new DateTime($date_string);\n}", "title": "" }, { "docid": "ede899f3e724ae42255bb97e245e4c11", "score": "0.43427736", "text": "public function testZeroValues02(): void\n {\n $column = new NumberTableColumn('header', 'number', '%.2f');\n\n $values = ['0', 0, 0.0];\n $walker = new RenderWalker('ot');\n foreach ($values as $value)\n {\n $row = ['number' => $value];\n $ret = $column->htmlCell($walker, $row);\n\n self::assertSame('<td class=\"ot-cell ot-cell-number\" data-value=\"0\">0.00</td>', $ret, var_export($value, true));\n }\n }", "title": "" }, { "docid": "272ba9ebd7a3404e523ba6a17c3a0d11", "score": "0.4339514", "text": "function testDate($client, $deleteTable = false) {\n $client->execute(\"CREATE TABLE IF NOT EXISTS test.date_test (date_c Date, datetime_c DateTime) ENGINE = Memory\");\n\n $client->insert(\"test.date_test\", [\n 'date_c', 'datetime_c'\n ], [\n [time(), time()],\n [time(), time()]\n ]);\n \n $result = $client->select(\"SELECT {select} FROM {table}\", [\n 'select' => 'date_c, datetime_c',\n 'table' => 'test.date_test'\n ]);\n var_dump($result);\n \n if ($deleteTable) {\n $client->execute(\"DROP TABLE {table}\", [\n 'table' => 'test.date_test'\n ]);\n }\n}", "title": "" }, { "docid": "df8f3c97a23ee0e19546da1faafc352e", "score": "0.43383485", "text": "protected function createNewHistoryRecord($date, $credit = null, $payment = null, $debt = null, $pendingCredits = null)\n {\n $record = new stdClass();\n $record->date = $date;\n $record->credit = $credit;\n $record->payment = $payment;\n $record->debt = $debt;\n $record->pendingCredits = $pendingCredits;\n return $record;\n }", "title": "" }, { "docid": "b2ec71f88f13aa00bee8cf38386211a7", "score": "0.43045923", "text": "public static function createFromArray(array $data)\n {\n $metric = new static;\n $metric->setStart($data['start']);\n $metric->setEnd($data['end']);\n $metric->setStatistics($data['statistics']);\n $metric->setCount($data['count']);\n $metric->setType($data['type']);\n\n return $metric;\n }", "title": "" }, { "docid": "e0a5e84b94df4020e2d17f5c9529d6ea", "score": "0.43028882", "text": "public function create($parent, LogMetric $postBody, $optParams = [])\n {\n $params = ['parent' => $parent, 'postBody' => $postBody];\n $params = array_merge($params, $optParams);\n return $this->call('create', [$params], LogMetric::class);\n }", "title": "" }, { "docid": "12183ce58a4d171c5f0ca9028f826965", "score": "0.4289269", "text": "public function __construct($table_name_cols,$where)\n {\n $this->table_name_cols = $table_name_cols;\n $this->where = $where;\n $this->create_temp_table_with_months_as_columns($this->table_name_cols,$this->where);\n }", "title": "" }, { "docid": "f1724346a4bd52d677517f7e94ba5d08", "score": "0.42365435", "text": "public function __construct( $metrics = [] ) {\n\t\tforeach ( $metrics as $name => $value ) {\n\t\t\tif ( ! $value instanceof Metric ) {\n\t\t\t\t$value = new Metric($name, $value);\n\t\t\t}\n\n\t\t\t$this->add( $value );\n\t\t}\n\t}", "title": "" }, { "docid": "e02f04f7d86b56ec115055108f63b3b0", "score": "0.42270857", "text": "function createDatesTable() {\n $query = \"CREATE TABLE `dates`(\".\n \"`date_id` int(11) NOT NULL AUTO_INCREMENT,\".\n \"`type` varchar(255) NOT NULL,\".\n \"`dom` int(11) NOT NULL,\".\n \"`house_id` int(11) NOT NULL,\".\n \"PRIMARY KEY (`date_id`))\";\n mysql_query($query) or die(mysql_error());\n}", "title": "" }, { "docid": "fd9737f728982b10d2045de8d71dad39", "score": "0.41881326", "text": "public function make_empty_table_rows() {\n\n // This controls how many empty rows are added to our enrol table\n $rowsnum = intval(get_string('number_of_enrol_table_rows', 'enrol_ukfilmnet'));\n $count = 0;\n while($rowsnum > $count) {\n $rows[] = ['userid'=>'',\n 'student_email'=>$this->create_student_email_input(null),\n 'student_firstname'=>$this->create_student_firstname_input(null),\n 'student_familyname'=>$this->create_student_familyname_input(null)];\n $count++;\n }\n }", "title": "" }, { "docid": "1e1e46db5c7b6f8b60cbbe29d7e7eb56", "score": "0.41848388", "text": "protected function newRow()\n {\n $this->loadDefaultValues();\n $row = [];\n $row['id'] = $this->id->CurrentValue;\n $row['platform_id'] = $this->platform_id->CurrentValue;\n $row['inventory_id'] = $this->inventory_id->CurrentValue;\n $row['print_stage_id'] = $this->print_stage_id->CurrentValue;\n $row['bus_size_id'] = $this->bus_size_id->CurrentValue;\n $row['details'] = $this->details->CurrentValue;\n $row['max_limit'] = $this->max_limit->CurrentValue;\n $row['min_limit'] = $this->min_limit->CurrentValue;\n $row['price'] = $this->price->CurrentValue;\n $row['operator_fee'] = $this->operator_fee->CurrentValue;\n $row['agency_fee'] = $this->agency_fee->CurrentValue;\n $row['lamata_fee'] = $this->lamata_fee->CurrentValue;\n $row['lasaa_fee'] = $this->lasaa_fee->CurrentValue;\n $row['printers_fee'] = $this->printers_fee->CurrentValue;\n $row['active'] = $this->active->CurrentValue;\n $row['ts_created'] = $this->ts_created->CurrentValue;\n return $row;\n }", "title": "" }, { "docid": "8652b11e0f31bdd618f7a6d25b1551a1", "score": "0.41846278", "text": "public function getAdminLineChartData($input)\n {\n $start_date = Carbon::now()->subDays(30);\n $end_date = Carbon::now();\n $date_condition = \"\";\n $user_condition = \"\";\n\n if ((isset($input['start_date']) && $input['start_date'] != '') && (isset($input['end_date']) && $input['end_date'] != '')) {\n $start_date = date('Y-m-d', strtotime($input['start_date']));\n $end_date = date('Y-m-d', strtotime($input['end_date']));\n\n $date_condition = \"and created_at between $start_date and $end_date\";\n } else {\n\n $date_condition = \"and created_at between date_sub(now() , interval 31 day) and now() \";\n }\n\n if ((isset($input['user_id']) && $input['user_id'] != '')) {\n $user_id = $input['user_id'];\n $user_condition = \"and user_id = $user_id\";\n }\n $table = '';\n $query = <<<SQL\n select DATE_FORMAT(created_at, '%Y-%c-%e') as day , sum(tx) as user_count\n from\n\nSQL;\n\n $where = <<<SQL\n where 1\n $user_condition\n $date_condition\n group by 1\nSQL;\n\n $table = 'tx_success';\n $select = $query . $table . $where;\n $successTran = collect(\\DB::select($select))->pluck('user_count', 'day');\n\n $table = 'tx_refunds';\n $select = $query . $table . $where;\n $refundTran = collect(\\DB::select($select))->pluck('user_count', 'day');\n\n $table = 'tx_chargebacks';\n $select = $query . $table . $where;\n $chargebacksTran = collect(\\DB::select($select))->pluck('user_count', 'day');\n\n $table = 'tx_decline';\n $select = $query . $table . $where;\n $failTran = collect(\\DB::select($select))->pluck('user_count', 'day');\n\n $table = 'tx_flagged';\n $select = $query . $table . $where;\n $flaggedTran = collect(\\DB::select($select))->pluck('user_count', 'day');\n\n $data_array = [];\n $i = 0;\n while (\n strtotime($start_date) <= strtotime($end_date)\n ) {\n $start_date = date(\"Y-n-j\", strtotime($start_date));\n\n // date\n $data_array[$i][] = date(\"Y-m-d\", strtotime($start_date));\n\n // success value\n if (isset($successTran[$start_date])) {\n $data_array[$i][] = $successTran[$start_date];\n } else {\n $data_array[$i][] = 0;\n }\n\n // failed value\n if (isset($failTran[$start_date])) {\n $data_array[$i][] = $failTran[$start_date];\n } else {\n $data_array[$i][] = 0;\n }\n\n // chargeback value\n if (isset($chargebacksTran[$start_date])) {\n $data_array[$i][] = $chargebacksTran[$start_date];\n } else {\n $data_array[$i][] = 0;\n }\n\n // refund value\n if (isset($refundTran[$start_date])) {\n $data_array[$i][] = $refundTran[$start_date];\n } else {\n $data_array[$i][] = 0;\n }\n\n // flagged value\n if (isset($flaggedTran[$start_date])) {\n $data_array[$i][] = $flaggedTran[$start_date];\n } else {\n $data_array[$i][] = 0;\n }\n\n $i++;\n $start_date = date(\"Y-m-d\", strtotime(\"+1 day\", strtotime($start_date)));\n }\n\n return $data_array;\n }", "title": "" }, { "docid": "09ba41c431dd7a964387e367ca9befb8", "score": "0.41677678", "text": "public function reportData($metrics, $start_date = null, $end_date = null)\n {\n $start = (is_null($start_date)) ? date('Y-m-d', strtotime('-1 week')) : $start_date;\n $end = (is_null($end_date)) ? date('Y-m-d') : $end_date;\n $str = '';\n\n if(is_array($metrics)){\n foreach($metrics as $item){\n $str .= $item;\n if(array_search($item, $metrics)!=(sizeof($metrics)-1))\n $str .= ','; \n }\n }\n else\n $str = $metrics;\n\n try { \n $results = $this->ga->data_ga->get($this->_profileId, $start, $end, $str);\n return $results['totalsForAllResults'];\n } catch(Exception $e) {\n return $e->getMessage();\n }\n }", "title": "" }, { "docid": "3e8b4f9fced25dba7334984e84661a99", "score": "0.41490895", "text": "function _setRowDate() {\n $dte = $this->getCurrentDateTime();\n $this->setVar('row_dt',$dte);\n }", "title": "" }, { "docid": "db4a75f37d2b14542345833ef92107dc", "score": "0.41351965", "text": "public function analyzeDay($date = '') {\n if (empty($date))\n $date = date('Y-m-d', strtotime('yesterday'));\n \n $data_dir = HADOOP_DATA.'/'.$date;\n \n $data = array();\n $data['total'] = file_get_contents($data_dir.'/api-total.txt');\n $data['featured'] = file_get_contents($data_dir.'/api-featured.txt');\n $data['addon'] = file_get_contents($data_dir.'/api-addon.txt');\n $data['search'] = file_get_contents($data_dir.'/api-search.txt');\n $data['guidsearch'] = file_get_contents($data_dir.'/api-guid-search.txt');\n \n $qry = \"INSERT INTO {$this->table} (date, \".implode(array_keys($data), ', ').\") VALUES ('{$date}', \".implode($data, ', ').\")\";\n\n if ($this->db->query_stats($qry))\n $this->log(\"{$date} - Inserted row ({$data['total']} total)\");\n else\n $this->log(\"{$date} - Problem inserting row ({$data['total']} total)\");\n }", "title": "" }, { "docid": "1eda991776a26dc9b56fdd799293dd4b", "score": "0.4117382", "text": "public function queryAtDateDoesNotAutoCreateTablesForReads()\n {\n $scalarId = self::randomString();\n $expectedTableName = $this->_partition->getIntervalTableName($scalarId);\n $this->_partition->queryAtDate($scalarId, 'SELECT `id` FROM ~samples LIMIT 1',\n gmdate(HASHMARK_DATETIME_FORMAT));\n $this->assertFalse($this->_partition->tableExists($expectedTableName));\n }", "title": "" }, { "docid": "73ecb32eb1770c138a44414fa8e2b4db", "score": "0.4073153", "text": "public function createTable(){\nif($this->checkForTable($this->tableName) !== null)return;\n$q = \"CREATE TABLE {$this->tableName}(\";\n$q.= $this->getCreateTableSQLForId();\n$q.=<<<EOD\n ownerId INTEGER NOT NULL,\n whichId INTEGER NOT NULL,\n\n created DOUBLE NOT NULL,\n updated DOUBLE,\n\n byWeekday TEXT NOT NULL,\n exceptionDays TEXT NOT NULL,\n summary TEXT NOT NULL,\n\n startTimestamp DOUBLE,\n endTimestamp DOUBLE,\n futureAvailabilityInDays INT,\n lastDayConsidered VARCHAR(8),\n \n extra TEXT\n )\nEOD;\n$this->get()->exec($q);\n}", "title": "" }, { "docid": "d4fe2f051f0ac9b21317443eab48bf20", "score": "0.40517336", "text": "public function __construct( array $date = NULL )\n {\n if( NULL !== $date )\n {\n // Check, if all array elements are present.\n foreach( array( 'day', 'month', 'year' ) as $key )\n {\n if( !array_key_exists( $key, $date ) )\n {\n throw new ymcDatatypeException( 'Missing key '.$key\n .' in array given to Ctor of ymcDatatypeDate.');\n }\n if( empty( $date[$key] ) )\n {\n throw new ymcDatatypeException( 'No data given for '.$key );\n }\n }\n\n // Check, if we have a valid date.\n if( !checkdate( $date['month'],\n $date['day'],\n $date['year'] ) )\n {\n throw new ymcDatatypeException(\n 'No valid date has been given to Ctor. Given data: '\n .'day: '.$date['day'].' month: '.$date['month']\n .' year: '.$date['year'] );\n }\n\n foreach( array( 'day', 'month', 'year' ) as $key )\n {\n $this->properties[$key] = $date[$key];\n }\n }\n }", "title": "" }, { "docid": "a1e7496a250a49c713882be124d65c4a", "score": "0.40448904", "text": "public static function createZeroValue(): ObjectArithmetic\n {\n return new Quaternion(0, 0, 0, 0);\n }", "title": "" }, { "docid": "014fc08a5e971246aad06738a181b27c", "score": "0.40409756", "text": "protected abstract function buildDataTable();", "title": "" }, { "docid": "6c061ccfa1ce09a58c7cc44ddd38bbed", "score": "0.4036151", "text": "public function getZeroValues($table=null)\n\t{\n\t if(!$table){\n\t echo 'Error: missing argument table.';\n\t\texit;\n\t }\n\t else{\n\t\tif(DB_DRIVER == 'mysql'){\n\t\t\t$result = db::getTableFields($table);\n\t\t\t\n\t\t}\n\t\tif(DB_DRIVER == 'sqlite'){\n\t\t\t$rows = db::fetchAll(\"PRAGMA table_info($table)\");\n\t\t\t\n\t\t\t\n\t\t\tforeach($rows as $row){\n\t\t\t $result[$row['name']]=$row['dflt_value'];\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $result;\n\t }\n\t\n\t}", "title": "" }, { "docid": "e2aef5c3b8f93d84088cd02d6db81f02", "score": "0.40174177", "text": "public static function updateDaily($date=null) {\n\n try {\n\n // get today's date\n $date = $date ? $date : date('Y-m-d');\n\n // get the required info per row\n $items = AwsBillingInfoImporter::import($date);\n\n // remove all records saved with today's date\n self::deleteByDate($date);\n\n // iterate rows\n foreach($items as $item) {\n\n // add aws product\n $productId = AwsProduct::add(array(\n 'code' => $item['ProductCode'],\n 'name' => $item['ProductName']\n ));\n\n // add aws usage type\n $usageTypeId = AwsUsageType::add($item['UsageType']);\n\n // add billing info\n $model = new self();\n $model->aws_product_id = $productId;\n $model->aws_usage_type_id = $usageTypeId;\n $model->operation = $item['Operation'];\n $model->description = $item['ItemDescription'];\n $model->quantity = $item['UsageQuantity'];\n $model->currency = $item['CurrencyCode'];\n $model->total_cost = $item['TotalCost'];\n $model->date = $date;\n\n $model->save(false);\n }\n\n\n } catch(Exception $e) {\n return array('status' => false, 'error' => $e->getMessage());\n }\n\n return array('status' => true);\n }", "title": "" }, { "docid": "9f4d375b37987611f6433c644302c45e", "score": "0.39941096", "text": "abstract protected function getOrCreateTimeSeries(int $mPointId, int $propertyId, DateTime $now): ?int;", "title": "" }, { "docid": "7052766b39be5e8cadbdcf59d44ce442", "score": "0.39836803", "text": "private function nonerecordedrow(): html_table_row {\n $span = 4;\n if ($this->hasactioncol) {\n $span = 5;\n }\n $cell = $this->cell(get_string('nonerecorded', 'local_apprenticeoffjob'));\n $cell->colspan = $span;\n $row = new html_table_row([$cell]);\n return $row;\n }", "title": "" }, { "docid": "0fbd5d2521dc8eebe212ddf18e943e8b", "score": "0.39619222", "text": "public function record_chart()\n {\n $data = [];\n if($_POST['filter_by'] == 'this month'){\n $start_date = date('Y-m-d', strtotime('first day of this month'));\n $end_date = date('Y-m-d', strtotime('today'));\n $today = (int)date('d', strtotime('today'));\n\n while (strtotime($start_date) <= strtotime($end_date)) {\n $date = $start_date;\n // echo (int)date('d', strtotime($date));\n // if($today == (int)date('d', strtotime($date))){\n // break;\n // }else{\n // continue;\n // }\n $record = $this->record_model->record_this_month($date); \n if(!empty($record)){\n $data['pre_registered'][] = $record[0]['tot'];\n $data['categories'][] = date('d', strtotime($date));\n }else{\n $data['pre_registered'][] = 0;\n $data['categories'][] = date('d', strtotime($date));\n }\n\n\n $validated = $this->validated_model->validated_this_month($date); \n if(!empty($validated)){\n $data['validated'][] = $validated[0]['tot'];\n }else{\n $data['validated'][] = 0;\n }\n $start_date = date (\"Y-m-d\", strtotime(\"+1 days\", strtotime($date)));\n }\n\n\n\n $start_date = date('Y-m-d', strtotime('first day of this month'));\n $from = date('M. d, Y', strtotime($start_date));\n $to = date('M. d, Y', strtotime($end_date));\n $data['range'] = $from . ' - ' . $to;\n\n }else if($_POST['filter_by'] == 'week'){\n\n $start_date = date('Y-m-d', strtotime('previous ' . date('l', strtotime('today')) . ' +1 day'));\n $end_date = date('Y-m-d', strtotime('today'));\n $begin = new DateTime($start_date);\n $end = new DateTime($end_date);\n $interval = DateInterval::createFromDateString('1 day');\n $period = new DatePeriod($begin, $interval, $end);\n foreach ($period as $dt) {\n $date = $dt->format(\"Y-m-d\");\n $record = $this->record_model->record_this_week($date);\n if(!empty($record)){\n $data['pre_registered'][] = $record[0]['tot'];\n $data['categories'][] = date('D', strtotime($date));\n }else{\n $data['pre_registered'][] = 0;\n $data['categories'][] = date('D', strtotime($date));\n }\n\n\n $validated = $this->validated_model->validated_this_week($date);\n if(!empty($validated)){\n $data['validated'][] = $validated[0]['tot'];\n }else{\n $data['validated'][] = 0;\n }\n \n }\n $from = date('M. d, Y', strtotime($start_date));\n $to = date('M. d, Y', strtotime($end_date));\n $data['range'] = $from . ' - ' . $to;\n\n }else if($_POST['filter_by'] == 'month'){ \n $start_date = date('M. Y', strtotime(date('Y-01')));\n $end_date = date('M. Y', strtotime(date('Y-12')));\n for($i = 1 ; $i <= 12; $i++){\n $date = date('Y-m-d', strtotime( date('Y') . '/' . $i . '/01'));\n if( date('m', strtotime('this month')) == $i ){\n $record = $this->record_model->record_by_month($date);\n if(!empty($record)){\n $data['pre_registered'][] = $record[0]['tot'];\n $data['categories'][] = date('M', strtotime($date));\n }else{\n $data['pre_registered'][] = 0;\n $data['categories'][] = date('M', strtotime($date));\n }\n\n\n $validated = $this->validated_model->validated_by_month($date);\n if(!empty($validated)){\n $data['validated'][] = $validated[0]['tot'];\n }else{\n $data['validated'][] = 0;\n }\n\n break;\n\n }else{\n $record = $this->record_model->record_by_month($date);\n if(!empty($record)){\n $data['pre_registered'][] = $record[0]['tot'];\n $data['categories'][] = date('M', strtotime($date));\n }else{\n $data['pre_registered'][] = 0;\n $data['categories'][] = date('M', strtotime($date));\n }\n\n\n $validated = $this->validated_model->validated_by_month($date);\n if(!empty($validated)){\n $data['validated'][] = $validated[0]['tot']; \n }else{\n $data['validated'][] = 0;\n }\n\n continue;\n }\n \n }\n\n\n $from = date('M. Y', strtotime($start_date));\n $to = date('M. Y', strtotime($end_date));\n $data['range'] = $from . ' - ' . $to;\n\n }else if($_POST['filter_by'] == 'year'){\n $end_year = date('Y');\n\n $record = $this->record_model->record_by_year($end_year);\n foreach($record as $row){\n $data['pre_registered'][] = $row['tot'];\n $data['categories'][] = date('Y', strtotime($row['date_registered']));\n }\n\n $validated = $this->validated_model->validated_by_year($end_year);\n foreach($validated as $row){\n $data['validated'][] = $row['tot'];\n }\n\n $to = date('Y', strtotime($end_year));\n $data['range'] = $data['categories'][0] . ' - ' . $to;\n\n }else{\n\n $start_date = date('Y-m-d', strtotime(date($_POST['filter_by'][0])));\n $end_date = date('Y-m-d', strtotime(date($_POST['filter_by'][1])));\n\n $record = $this->record_model->record_by_date_range($start_date, $end_date);\n $data['record'] = $record;\n foreach($record as $row){\n $data['data'][] = $row['tot'];\n $data['categories'][] = date('m/d/y', strtotime($row['date_registered']));\n }\n\n $from = date('M. d, Y', strtotime($start_date));\n $to = date('M. d, Y', strtotime($end_date));\n $data['range'] = $from . ' - ' . $to;\n\n }\n\n\n echo json_encode($data);\n }", "title": "" }, { "docid": "c14fef53bce13d22e88411bdc20a44ad", "score": "0.39478418", "text": "protected function insertDayReports()\n {\n $this->insertDayNumericMetrics();\n\n // insert DataTable reports\n foreach ($this->getRecordNames() as $recordName) {\n $blob = $this->getDataArray($recordName)->asDataTable()->getSerialized($this->maximumRowsInDataTableLevelZero, $this->maximumRowsInSubDataTable, $this->columnToSortByBeforeTruncation);\n $this->getProcessor()->insertBlobRecord($recordName, $blob);\n }\n }", "title": "" }, { "docid": "2a637743f70ff487132a6d4fc2e1c82c", "score": "0.39422122", "text": "public function create($inventories_id, $date, $quantity, $user, $reason) {\n $time = time();\n $sql =\"INSERT INTO `exports`(`inventories_id`, `date`, `quantity`, `user`, `reason`, `created_time`, `updated_time`) VALUES ($inventories_id, '$date', $quantity, '$user', '$reason', FROM_UNIXTIME($time), FROM_UNIXTIME($time))\";\n $result = $this->db->query($sql);\n if (DB_DEBUG)\n var_dump($result);\n }", "title": "" }, { "docid": "bf07a02769fa18826209af9c5c9ec782", "score": "0.39368826", "text": "public function stdWrap_dateDataProvider() : array {}", "title": "" }, { "docid": "83ae2d7a0f4c541f5c293d8a5a9455fa", "score": "0.39246732", "text": "public static function createDayTable($table_name, $type) {\n //CREATE TABLE bat_event_availability_event_day_event ('unit_id' INTEGER NOT NULL, 'year' INTEGER NOT NULL DEFAULT 0, 'month' INTEGER NOT NULL DEFAULT '0', 'd1' INTEGER NOT NULL DEFAULT '0', 'd2' INTEGER NOT NULL DEFAULT '0', 'd3' INTEGER NOT NULL DEFAULT '0', 'd4' INTEGER NOT NULL DEFAULT '0', 'd5' INTEGER NOT NULL DEFAULT '0', 'd6' INTEGER NOT NULL DEFAULT '0', 'd7' INTEGER NOT NULL DEFAULT '0', 'd8' INTEGER NOT NULL DEFAULT '0', 'd9' INTEGER NOT NULL DEFAULT '0', 'd10' INTEGER NOT NULL DEFAULT '0', 'd11' INTEGER NOT NULL DEFAULT '0', 'd12' INTEGER NOT NULL DEFAULT '0', 'd13' INTEGER NOT NULL DEFAULT '0', 'd14' INTEGER NOT NULL DEFAULT '0', 'd15' INTEGER NOT NULL DEFAULT '0', 'd16' INTEGER NOT NULL DEFAULT '0', 'd17' INTEGER NOT NULL DEFAULT '0', 'd18' INTEGER NOT NULL DEFAULT '0', 'd19' INTEGER NOT NULL DEFAULT '0', 'd20' INTEGER NOT NULL DEFAULT '0', 'd21' INTEGER NOT NULL DEFAULT '0', 'd22' INTEGER NOT NULL DEFAULT '0', 'd23' INTEGER NOT NULL DEFAULT '0', 'd24' INTEGER NOT NULL DEFAULT '0', 'd25' INTEGER NOT NULL DEFAULT '0', 'd26' INTEGER NOT NULL DEFAULT '0', 'd27' INTEGER NOT NULL DEFAULT '0', 'd28' INTEGER NOT NULL DEFAULT '0', 'd29' INTEGER NOT NULL DEFAULT '0', 'd30' INTEGER NOT NULL DEFAULT '0', 'd31' INTEGER NOT NULL DEFAULT '0', PRIMARY KEY ('unit_id', 'year', 'month'))\"\n\n $command = 'CREATE TABLE ' . 'bat_event_'.$table_name.'_day_'.$type;\n $command .= ' (unit_id INTEGER NOT NULL DEFAULT 0, year INTEGER NOT NULL DEFAULT 0, month INTEGER NOT NULL DEFAULT 0,';\n\n for ($i=1; $i<=31; $i++) {\n $command .= 'd'.$i .' INTEGER NOT NULL DEFAULT 0, ';\n }\n\n $command .= 'PRIMARY KEY (unit_id, year, month))';\n\n return $command;\n }", "title": "" }, { "docid": "e2eebce33146252e95a0ab7ad11de9c2", "score": "0.392391", "text": "public function initializeDate()\n {\n if (empty($this->createdAt)) {\n $this->createdAt = new \\Datetime();\n } elseif (!empty($this->createdAt)) {\n $this->modifiedAt = new \\Datetime();\n }\n }", "title": "" }, { "docid": "c61dec96b87add5439b5866990474d14", "score": "0.39152232", "text": "function date_input_no_sales()\n\t{\n\t\t$data = $this->_get_common_report_data();\n\t\t$locations = array();\n\t\tforeach($this->Location->get_all()->result() as $location_row) \n\t\t{\n\t\t\t$locations[$location_row->location_id] = $location_row->name;\n\t\t}\n\t\t$data['locations'] = $locations;\n\t\t$data['can_view_inventory_at_all_locations'] = $this->Employee->has_module_action_permission('reports','view_inventory_at_all_locations', $this->Employee->get_logged_in_employee_info()->person_id);\n\t\t\n\t\t$this->load->view(\"reports/date_input_no_sales\",$data);\t\n\t}", "title": "" }, { "docid": "bd066e4b8de0aabf4b558f729692fef0", "score": "0.39100686", "text": "private function row($metric, $data) {\n\t\t$row = '';\n\n\t\tif ($metric !== 'timestamp' && isset($data->value)) {\n\t\t\tif ($data->format !== 'd') {\n\t\t\t\t$averages = $this->getAverages($metric);\n\t\t\t}\n\n\t\t\tif ($data->value !== 0 || array_sum($averages) > 0) {\n\t\t\t\t$cells = array(\n\t\t\t\t\tarray('type' => 'th', 'value' => $metric . '<span class=\"desc\">' . entities($data->description) . '</span>'),\n\t\t\t\t\t$this->format($data->value, $data->format)\n\t\t\t\t);\n\n\t\t\t\tif (isset($averages)) {\n\t\t\t\t\t$cells = array_merge($cells, array(\n\t\t\t\t\t\t$this->format($averages[0], $data->format),\n\t\t\t\t\t\t$this->format($averages[1], $data->format),\n\t\t\t\t\t\t$this->format($averages[2], $data->format)\n\t\t\t\t\t));\n\t\t\t\t} else {\n\t\t\t\t\t$cells = array_merge($cells, array('', '', ''));\n\t\t\t\t}\n\n\t\t\t\t$row = table::row(\n\t\t\t\t\t$cells\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\treturn $row;\n\t}", "title": "" }, { "docid": "c0e952144127d4bfeba302acb907a8b8", "score": "0.3907867", "text": "public static function createMetric($id, array $metric)\n {\n return self::findOrFail($id)->metrics()->create($metric);\n }", "title": "" }, { "docid": "c7ad29f234d43de2e6c25c6123682242", "score": "0.38942382", "text": "protected function newRow()\n\t{\n\t\t$row = [];\n\t\t$row['id'] = NULL;\n\t\t$row['fecha'] = NULL;\n\t\t$row['hora'] = NULL;\n\t\t$row['audio'] = NULL;\n\t\t$row['st'] = NULL;\n\t\t$row['fechaHoraIni'] = NULL;\n\t\t$row['fechaHoraFin'] = NULL;\n\t\t$row['telefono'] = NULL;\n\t\t$row['agente'] = NULL;\n\t\t$row['fechabo'] = NULL;\n\t\t$row['agentebo'] = NULL;\n\t\t$row['comentariosbo'] = NULL;\n\t\t$row['IP'] = NULL;\n\t\t$row['actual'] = NULL;\n\t\t$row['completado'] = NULL;\n\t\t$row['2_1_R'] = NULL;\n\t\t$row['2_2_R'] = NULL;\n\t\t$row['2_3_R'] = NULL;\n\t\t$row['3_4_R'] = NULL;\n\t\t$row['4_5_R'] = NULL;\n\t\t$row['4_6_R'] = NULL;\n\t\t$row['4_7_R'] = NULL;\n\t\t$row['4_8_R'] = NULL;\n\t\t$row['5_9_R'] = NULL;\n\t\t$row['5_10_R'] = NULL;\n\t\t$row['5_11_R'] = NULL;\n\t\t$row['5_12_R'] = NULL;\n\t\t$row['5_13_R'] = NULL;\n\t\t$row['5_14_R'] = NULL;\n\t\t$row['5_51_R'] = NULL;\n\t\t$row['6_15_R'] = NULL;\n\t\t$row['6_16_R'] = NULL;\n\t\t$row['6_17_R'] = NULL;\n\t\t$row['6_18_R'] = NULL;\n\t\t$row['6_19_R'] = NULL;\n\t\t$row['6_20_R'] = NULL;\n\t\t$row['6_52_R'] = NULL;\n\t\t$row['7_21_R'] = NULL;\n\t\t$row['8_22_R'] = NULL;\n\t\t$row['8_23_R'] = NULL;\n\t\t$row['8_24_R'] = NULL;\n\t\t$row['8_25_R'] = NULL;\n\t\t$row['9_26_R'] = NULL;\n\t\t$row['9_27_R'] = NULL;\n\t\t$row['9_28_R'] = NULL;\n\t\t$row['9_29_R'] = NULL;\n\t\t$row['9_30_R'] = NULL;\n\t\t$row['9_31_R'] = NULL;\n\t\t$row['9_32_R'] = NULL;\n\t\t$row['9_33_R'] = NULL;\n\t\t$row['9_34_R'] = NULL;\n\t\t$row['9_35_R'] = NULL;\n\t\t$row['9_36_R'] = NULL;\n\t\t$row['9_37_R'] = NULL;\n\t\t$row['9_38_R'] = NULL;\n\t\t$row['9_39_R'] = NULL;\n\t\t$row['10_40_R'] = NULL;\n\t\t$row['10_41_R'] = NULL;\n\t\t$row['11_42_R'] = NULL;\n\t\t$row['11_43_R'] = NULL;\n\t\t$row['12_44_R'] = NULL;\n\t\t$row['12_45_R'] = NULL;\n\t\t$row['12_46_R'] = NULL;\n\t\t$row['12_47_R'] = NULL;\n\t\t$row['12_48_R'] = NULL;\n\t\t$row['12_49_R'] = NULL;\n\t\t$row['12_50_R'] = NULL;\n\t\t$row['1__R'] = NULL;\n\t\t$row['13_54_R'] = NULL;\n\t\t$row['13_54_1_R'] = NULL;\n\t\t$row['13_54_2_R'] = NULL;\n\t\t$row['13_55_R'] = NULL;\n\t\t$row['13_55_1_R'] = NULL;\n\t\t$row['13_55_2_R'] = NULL;\n\t\t$row['13_56_R'] = NULL;\n\t\t$row['13_56_1_R'] = NULL;\n\t\t$row['13_56_2_R'] = NULL;\n\t\t$row['12_53_R'] = NULL;\n\t\t$row['12_53_1_R'] = NULL;\n\t\t$row['12_53_2_R'] = NULL;\n\t\t$row['12_53_3_R'] = NULL;\n\t\t$row['12_53_4_R'] = NULL;\n\t\t$row['12_53_5_R'] = NULL;\n\t\t$row['12_53_6_R'] = NULL;\n\t\t$row['13_57_R'] = NULL;\n\t\t$row['13_57_1_R'] = NULL;\n\t\t$row['13_57_2_R'] = NULL;\n\t\t$row['13_58_R'] = NULL;\n\t\t$row['13_58_1_R'] = NULL;\n\t\t$row['13_58_2_R'] = NULL;\n\t\t$row['13_59_R'] = NULL;\n\t\t$row['13_59_1_R'] = NULL;\n\t\t$row['13_59_2_R'] = NULL;\n\t\t$row['13_60_R'] = NULL;\n\t\t$row['12_53_7_R'] = NULL;\n\t\t$row['12_53_8_R'] = NULL;\n\t\treturn $row;\n\t}", "title": "" }, { "docid": "1d3435d35c3d8812d58b6570ecefaaae", "score": "0.38918757", "text": "public static function zero(int $m, int $n): Matrix\n {\n if ($m < 1 || $n < 1) {\n throw new Exception\\OutOfBoundsException(\"m and n must be > 0. m = $m, n = $n\");\n }\n\n $R = [];\n\n for ($i = 0; $i < $m; $i++) {\n for ($j = 0; $j < $n; $j++) {\n $R[$i][$j] = 0;\n }\n }\n\n return self::create($R);\n }", "title": "" }, { "docid": "a526afe3384358ec5ac49e953c832a29", "score": "0.38915864", "text": "function new_qe_meas_values($qe_meas_id,$columns,$values) {\n\tif (strlen(trim(implode('',$values))) == 0 ) {\n\t\treturn array('error'=>0);;\n\t}\n\t$query = \"insert into epi_qe_meas_values \n\t\t\t\t\tset qe_meas_id = $qe_meas_id,\";\n\t\t\t\t\t\n\tfor ($i=0; $i< count($columns) ; $i++ ) {\n\t\t\n\t\tif (stristr($values[$i],'nan') ) {\n\t\t\t$values[$i] = -1;\n\t\t}\n\t\t\n\t\t$q[]=$columns[$i].\" = '\".$values[$i].\"'\";\n\t}\n\t$query .=implode(',',$q);\n\t// echo \"<br>QE CHECK $query\";\n\t$result = $this->local_insert($query);\n\tif($result == NULL ) {\n\t\treturn array('error'=>2,'point'=>$query);\n\t}\n\treturn array('error'=>0);\n}", "title": "" }, { "docid": "8f401e466d6606b4e0b069613bf55e76", "score": "0.38875833", "text": "public function create(array $data = null)\n\t{\n\t\t$row = clone $this->rowPrototype;\n\n\t\t$row->populate($data ?: array(), false);\n\n\t\treturn $row;\n\t}", "title": "" }, { "docid": "efe78c988adf552cc122957428650030", "score": "0.38860023", "text": "public function create()\n {\n if (! Gate::allows('highlights_metric_create')) {\n return abort(401);\n }\n return view('admin.highlights_metrics.create');\n }", "title": "" }, { "docid": "8280b6ae9a07c18593dcbf66d56167ec", "score": "0.38815928", "text": "public static function fromNative(): ValueObjectInterface\n {\n $args = func_get_args();\n\n if (!isset($args['1'])) {\n $dateTime = new BaseDateTime('@'.strtotime($args[0]));\n\n return self::fromNativeDateTime($dateTime);\n }\n\n $date = Date::fromNative($args[0], $args[1], $args[2]);\n $time = Time::fromNative($args[3], $args[4], $args[5]);\n\n return new static($date, $time);\n }", "title": "" }, { "docid": "d1897032fab7c9c344c48ec576b27ca9", "score": "0.38790584", "text": "public function newRecord($time) {\n\t\treturn new FactRecord($time, $this->factNames, $this->measureNames);\n\t}", "title": "" }, { "docid": "eb2abbd3857ead281b97e4ebcb3d7326", "score": "0.38700604", "text": "public function new($userId, $date, $slots): Schedule\n {\n return new Schedule(null, $date, $userId, $slots);\n }", "title": "" }, { "docid": "61d5d128d6de61a80da19d2231a6e935", "score": "0.3862815", "text": "protected function newRow()\n\t{\n\t\t$row = [];\n\t\t$row['idProcess'] = NULL;\n\t\t$row['idCause'] = NULL;\n\t\t$row['potentialCauses'] = NULL;\n\t\t$row['currentPreventiveControlMethod'] = NULL;\n\t\t$row['severity'] = NULL;\n\t\t$row['occurrence'] = NULL;\n\t\t$row['currentControlMethod'] = NULL;\n\t\t$row['detection'] = NULL;\n\t\t$row['RPNCalc'] = NULL;\n\t\t$row['rpn'] = NULL;\n\t\t$row['recomendedAction'] = NULL;\n\t\t$row['idResponsible'] = NULL;\n\t\t$row['targetDate'] = NULL;\n\t\t$row['revisedKc'] = NULL;\n\t\t$row['expectedSeverity'] = NULL;\n\t\t$row['expectedOccurrence'] = NULL;\n\t\t$row['expectedDetection'] = NULL;\n\t\t$row['expectedRpn'] = NULL;\n\t\t$row['expectedRPNPAO'] = NULL;\n\t\t$row['expectedClosureDate'] = NULL;\n\t\t$row['recomendedActiondet'] = NULL;\n\t\t$row['idResponsibleDet'] = NULL;\n\t\t$row['targetDatedet'] = NULL;\n\t\t$row['kcdet'] = NULL;\n\t\t$row['expectedSeveritydet'] = NULL;\n\t\t$row['expectedOccurrencedet'] = NULL;\n\t\t$row['expectedDetectiondet'] = NULL;\n\t\t$row['expectedRpndet'] = NULL;\n\t\t$row['expectedRPNPAD'] = NULL;\n\t\t$row['revisedClosureDatedet'] = NULL;\n\t\t$row['revisedClosureDate'] = NULL;\n\t\t$row['perfomedAction'] = NULL;\n\t\t$row['revisedSeverity'] = NULL;\n\t\t$row['revisedOccurrence'] = NULL;\n\t\t$row['revisedDetection'] = NULL;\n\t\t$row['revisedRpn'] = NULL;\n\t\t$row['revisedRPNCalc'] = NULL;\n\t\treturn $row;\n\t}", "title": "" }, { "docid": "8ea7d396decd495ddf5c723d30e6b9e3", "score": "0.38531503", "text": "function data_preparation($date, $div){\n\n return '{\n \"reportDescription\":{\n \"reportSuiteID\":\"'.$suite.'\",\n \"dateFrom\":\"'.$date.'\",\n \"dateTo\":\"'.$date.'\",\n \"metrics\":[ {\"id\":\"orders\"}, {\"id\":\"revenue\"}],\n \"elements\":[{\"id\":\"evar8\", \"top\":\"1\"},{\"id\":\"product\", \"level\":\"1\",\"top\":\"10\"}]}}';\n}", "title": "" }, { "docid": "cb086ea7b7b27da99c0e4d179c1b33e9", "score": "0.38490996", "text": "protected static function zeroRowClient(): Client\n {\n return new class extends Client {\n public function __construct() {}\n public function execute(Statement $statement, ExecutionOptions $options = null) {\n return new class {\n public function count() { return 0; }\n public function first() { return null; }\n };\n }\n };\n }", "title": "" }, { "docid": "8e0385af3eefea25eb06455040109fbe", "score": "0.38459906", "text": "public function createNewRow()\n {\n return new Entry($this);\n }", "title": "" }, { "docid": "f9d550117038736946876e8680686804", "score": "0.38455147", "text": "function _webform_analysis_rows_date($component, $sids = array()) {\r\n $placeholders = count($sids) ? array_fill(0, count($sids), \"'%s'\") : array();\r\n $sidfilter = count($sids) ? \" AND sid in (\".implode(\",\", $placeholders).\")\" : \"\";\r\n $query = 'SELECT no,data '.\r\n ' FROM {webform_submitted_data} '.\r\n ' WHERE nid = %d '.\r\n ' AND cid = %d '. $sidfilter.\r\n ' ORDER BY sid,no ASC ';\r\n\r\n $result = db_query($query, array_merge(array($component['nid'], $component['cid']), $sids));\r\n // build an array of timestamps from entered values.\r\n $timestamps = array();\r\n $submissions = 0;\r\n while ($row = db_fetch_array($result)) {\r\n if ($row['no'] == '0') {\r\n $submissions++;\r\n $month = $row['data'];\r\n if ($row = db_fetch_array($result)) {\r\n if ($row['no'] == '1') {\r\n $day = $row['data'];\r\n if ($row = db_fetch_array($result)) {\r\n if ($row['no'] == '2') {\r\n $year = $row['data'];\r\n // Build the full timestamp.\r\n if (drupal_strlen($month) > 0 && drupal_strlen($day) > 0 && drupal_strlen($year) > 0) {\r\n $timestamp = strtotime($month .'/'. $day .'/'. $year);\r\n // Add usefull information about this date into an array.\r\n $timestamps[$timestamp] = array(\r\n date('l', $timestamp), // Day of the week (Monday, Tuesday, etc.).\r\n date('F', $timestamp), // Full Month name (January, February, etc.).\r\n $year, // Year.\r\n $day, // Day of the month (1,2,...,31).\r\n );\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Display stats.\r\n // TODO: display date statistics in javascript tabs.\r\n $nonblanks = count($timestamps);\r\n $rows[0] = array( t('Left Blank'), ($submissions - $nonblanks));\r\n $rows[1] = array( t('User entered value'), $nonblanks);\r\n return $rows;\r\n}", "title": "" }, { "docid": "17f68328f9be7151cc85e21f98b17c04", "score": "0.38404593", "text": "function NewRow() {\r\n\t\t$this->LoadDefaultValues();\r\n\t\t$row = array();\r\n\t\t$row['ID'] = $this->ID->CurrentValue;\r\n\t\t$row['Applications'] = $this->Applications->CurrentValue;\r\n\t\t$row['Associated Apps/ Service'] = $this->Associated_Apps2F_Service->CurrentValue;\r\n\t\t$row['IP Address'] = $this->IP_Address->CurrentValue;\r\n\t\t$row['System Name'] = $this->System_Name->CurrentValue;\r\n\t\t$row['Support Team'] = $this->Support_Team->CurrentValue;\r\n\t\t$row['Vendor'] = $this->Vendor->CurrentValue;\r\n\t\t$row['Url'] = $this->Url->CurrentValue;\r\n\t\t$row['Application Description'] = $this->Application_Description->CurrentValue;\r\n\t\t$row['Affected Users'] = $this->Affected_Users->CurrentValue;\r\n\t\t$row['Status'] = $this->Status->CurrentValue;\r\n\t\t$row['Location'] = $this->Location->CurrentValue;\r\n\t\treturn $row;\r\n\t}", "title": "" }, { "docid": "05bc5efea5ad81680983818c23a23dd0", "score": "0.38400725", "text": "function addRow() {\r\n\t\t\treturn new DataRow($this);\r\n\t\t}", "title": "" }, { "docid": "68ddad922ac8d681d21e6d919affe83a", "score": "0.3837874", "text": "private function createMetricActivity($jobid){\r\n\r\n\t\t$activity = new Activity;\r\n\t\t$activity->label = \"Metrics calculated on job.\";\r\n\t\t$activity->used = $jobid;\r\n\t\t$activity->softwareAgent_id = 'metrics';\r\n\t\t$activity->save();\r\n\t}", "title": "" }, { "docid": "4660b7fcbf7994e4ca9c840ece064359", "score": "0.38327974", "text": "function &_fromRow(&$row) {\n\t\t$signoff = $this->newDataObject();\n\n\t\t$signoff->setId($row['signoff_id']);\n\t\t$signoff->setAssocType($row['assoc_type']);\n\t\t$signoff->setAssocId($row['assoc_id']);\n\t\t$signoff->setSymbolic($row['symbolic']);\n\t\t$signoff->setUserId($row['user_id']);\n\t\t$signoff->setFileId($row['file_id']);\n\t\t$signoff->setFileRevision($row['file_revision']);\n\t\t$signoff->setDateNotified($this->datetimeFromDB($row['date_notified']));\n\t\t$signoff->setDateUnderway($this->datetimeFromDB($row['date_underway']));\n\t\t$signoff->setDateCompleted($this->datetimeFromDB($row['date_completed']));\n\t\t$signoff->setDateAcknowledged($this->datetimeFromDB($row['date_acknowledged']));\n\t\t$signoff->setUserGroupId($row['user_group_id']);\n\n\t\treturn $signoff;\n\t}", "title": "" }, { "docid": "77e85509039a05844f1ea55a822a8dd5", "score": "0.3829511", "text": "public function __construct($value, $date)\n {\n $this->value = $value;\n $this->date = $date;\n }", "title": "" }, { "docid": "e797480611569021137cf1ca4a9425e3", "score": "0.38286495", "text": "public function testNewTrialAccountIncreasesDailyCounters()\n {\n $this->insight->daily_accounts_history->newTrial(12345);\n\n $this->assertEquals(1, $this->connection->count($this->insight->getTableName('daily_accounts_history')));\n $row = $this->connection->executeFirstRow(\"SELECT * FROM {$this->insight->getTableName('daily_accounts_history')} WHERE id = ?\", 1);\n $this->assertInternalType('array', $row);\n\n $this->assertEquals(1, $row['new_accounts']);\n\n $this->assertEquals(0, $this->connection->count($this->insight->getTableName('daily_account_mrr')));\n }", "title": "" }, { "docid": "103bd6a2786ef45e6ddda83fda5ca70b", "score": "0.38278234", "text": "protected function makeLowDate(Carbon $date, Precision $precision = Precision::Second): Carbon\n {\n return match ($precision) {\n Precision::Second => Carbon::make($date)->setSecond(0),\n Precision::Millisecond => Carbon::make($date)->setMillisecond(0),\n default => Carbon::make($date)\n };\n }", "title": "" }, { "docid": "2c90392ee309c3523421d6968085f83f", "score": "0.38273823", "text": "function generateData() {\n\t\tglobal $date_format;\n\t $row_count = rand(10, 30);\n\t\t$col_count = rand(5, 10);\n\t\t$types = array();\n $data['data'] = array();\n\t\t$fields = array();\n\t\t$columns = array();\n\t\t$defineFields = true;\n\n for ($i=0; $i<$row_count; $i++) {\n\t\t\t\n\t\t\tfor ($j=0; $j<$col_count; $j++) {\n\t\t\t\t// first pass through columns only, define fields and columns\n\t\t\t\tif ($defineFields) {\n\t\t\t\t\t// generate a random data type for the field/column\n\t\t\t\t\t$type = generateType($j);\n\t\t\t\t\tarray_push($types, $type);\n\t\t\t\t\t\n\t\t\t\t\t// =====================================================================\n\t\t\t\t\t// define the default placeholder field definition. this fields\n\t\t\t\t\t// config is supported by the metachange handling in Ext by default\n\t\t\t\t\t// to reconfigure the data store's field definitions.\n\t\t\t\t\t$field = array(\n\t\t\t\t\t\t'name' => 'field-'.($j+1),\n\t\t\t\t\t\t'type' => $type['data']\n\t\t\t\t\t);\n\t\t\t\t\t// add any type-specific field attributes\n\t\t\t\t\tif ($type['data'] === 'date') {\n\t\t\t\t\t\t$field['dateFormat'] = $date_format;\n\t\t\t\t\t}\n\t\t\t\t\t// add the field to the fields list\n\t\t\t\t\tarray_push($fields, $field);\n\t\t\t\t\t\n\t\t\t\t\t// =====================================================================\n\t\t\t\t\t// define the default placeholder column definition to match the field.\n\t\t\t\t\t// note that this columns block only applies to grids. in the past the\n\t\t\t\t\t// fields config was reused both by the store and also by grids, but since\n\t\t\t\t\t// it is usually preferable to add column-specific metadata that the store\n\t\t\t\t\t// doesn't care about, it's usually better to split the two definitions.\n\t\t\t\t\t$col = array(\n\t\t\t\t\t\t'dataIndex' => 'field-'.($j+1)\n\t\t\t\t\t);\n\t\t\t\t\t// add in column-specific attributes\n\t\t\t\t\tif ($j === 0) {\n\t\t\t\t\t\t// special config for the id column, fixed width and non-editable\n\t\t\t\t\t\t$col['text'] = 'ID';\n\t\t\t\t\t\t$col['width'] = 40;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$col['text'] = 'Field '.($j+1).' ('.$type['data'].')';\n\t\t\t\t\t\t$col['editor'] = $type['editor'];\n\t\t\t\t\t\t$col['flex'] = 1;\n\t\t\t\t\t}\n\t\t\t\t\t// add in type-specific column attributes\n\t\t\t\t\tswitch ($type['data']) {\n\t\t\t\t\t\tcase 'date':\n\t\t\t\t\t\t\t$col['xtype'] = 'datecolumn';\n\t\t\t\t\t\t\t$col['format'] = $date_format;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'float':\n\t\t\t\t\t\t\t$col['xtype'] = 'numbercolumn';\n\t\t\t\t\t\t\t$col['format'] = '$0.00';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'bool':\n\t\t\t\t\t\t\t//$col['xtype'] = 'checkcolumn';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t// finally, add the column to the columns list\n\t\t\t\t\tarray_push($columns, $col);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// every row/col pass, load up some data\n\t\t\t\t$row['field-'.($j+1)] = $j == 0 ? ($i+1) : getDataValue($types[$j]);\n\t\t\t}\n\t\t\t\n\t\t\t// flip this flag after the first column pass since the fields are defined\n\t\t\t$defineFields = false;\n\t\t\t\n\t\t\t// add the row of generated data to the top-level data object\n\t\t\t// that will be returned in the response\n\t\t\tarray_push($data['data'], $row);\n }\n\t\t\n\t\t// assemble the metadata\n\t\t$meta = array();\n\t\t$meta['fields'] = $fields;\n\t\t$meta['columns'] = $columns;\n\t\t$meta['root'] = 'data';\n\t\t$meta['idProperty'] = 'field-1';\n\t\t$meta['messageProperty'] = 'msg';\n\t\t\n\t\t// assemble the top-level data object being returned.\n\t\t// the data is already in $data['data'] at this point.\n\t\t$data['metaData'] = $meta;\n $data['total'] = $row_count;\n\t\t$data['msg'] = 'Success!';\n\t\t\n return $data;\n }", "title": "" }, { "docid": "18ca9d25d3ff0567043c45bc27d17304", "score": "0.38217324", "text": "function addRow($row) {\r\n\t\tif ($this->preserveLeadingZerosInExcel) {\r\n\t\t\t// convert the number to a string formula\r\n\t\t\tforeach ($row as $key => $value){\r\n\t\t\t\tif (strlen($value) > 1 && $value[0] == '0' && is_numeric($value)) {\r\n\t\t\t\t\t$row[$key] = '=\"'.$value.'\"';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfputcsv($this->buffer, $row, $this->delimiter, $this->enclosure);\r\n\t}", "title": "" }, { "docid": "b8ff5a2fd1bd6cc128285e10a80f0c7b", "score": "0.38209948", "text": "public function build ()\n {\n $array = json_decode (json_encode ($this->columns), true);\n\n $this->createTable ($this->tableName, 'report', 'NORMAL', $array);\n }", "title": "" }, { "docid": "6d922d2c339236d5931189a4c4b0d46d", "score": "0.38191268", "text": "public function create_temp_table_with_months_as_columns($table_name_cols,$where)\n {\n /* \n\n DROP TABLE IF EXISTS temp_table;\n CREATE TEMPORARY TABLE temp_table (id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,project_id INT(10),user_id INT(10),m1_id INT(10),m1_com double(8,2) DEFAULT 0,m1_from_otl tinyint(1) DEFAULT 0,m2_id INT(10),m2_com double(8,2) DEFAULT 0,m2_from_otl tinyint(1) DEFAULT 0,\n m3_id INT(10),m3_com double(8,2) DEFAULT 0,m3_from_otl tinyint(1) DEFAULT 0,m4_id INT(10),m4_com double(8,2) DEFAULT 0,m4_from_otl tinyint(1) DEFAULT 0,m5_id INT(10),m5_com double(8,2) DEFAULT 0,m5_from_otl tinyint(1) DEFAULT 0,m6_id INT(10),m6_com double(8,2) DEFAULT 0,m6_from_otl tinyint(1) DEFAULT 0,\n m7_id INT(10),m7_com double(8,2) DEFAULT 0,m7_from_otl tinyint(1) DEFAULT 0,m8_id INT(10),m8_com double(8,2) DEFAULT 0,m8_from_otl tinyint(1) DEFAULT 0,m9_id INT(10),m9_com double(8,2) DEFAULT 0,m9_from_otl tinyint(1) DEFAULT 0,\n m10_id INT(10),m10_com double(8,2) DEFAULT 0,m10_from_otl tinyint(1) DEFAULT 0,m11_id INT(10),m11_com double(8,2) DEFAULT 0,m11_from_otl tinyint(1) DEFAULT 0,m12_id INT(10),m12_com double(8,2) DEFAULT 0,m12_from_otl tinyint(1) DEFAULT 0);\n \n ALTER TABLE temp_table ADD UNIQUE( `project_id`, `user_id`); \n INSERT INTO temp_table (`project_id`,`user_id`) (SELECT `project_id`,`user_id` FROM `activities` WHERE `year` = 2021 group by `project_id`,`user_id`); \n INSERT INTO temp_table (`project_id`,`user_id`) (SELECT `project_id`,`user_id` FROM `activities` WHERE `year` = 2022 group by `project_id`,`user_id`) ON DUPLICATE KEY UPDATE m1_com = 0; \n UPDATE temp_table t, activities a SET t.m1_com=a.task_hour,t.m1_from_otl=a.from_otl,t.m1_id=a.id WHERE a.year=2021 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=0 AND a.month = 10;\n UPDATE temp_table t, activities a SET t.m1_com=a.task_hour,t.m1_from_otl=a.from_otl,t.m1_id=a.id WHERE a.year=2021 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=1 AND a.month = 10;\n UPDATE temp_table t, activities a SET t.m2_com=a.task_hour,t.m2_from_otl=a.from_otl,t.m2_id=a.id WHERE a.year=2021 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=0 AND a.month = 11;\n UPDATE temp_table t, activities a SET t.m2_com=a.task_hour,t.m2_from_otl=a.from_otl,t.m2_id=a.id WHERE a.year=2021 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=1 AND a.month = 11;\n UPDATE temp_table t, activities a SET t.m3_com=a.task_hour,t.m3_from_otl=a.from_otl,t.m3_id=a.id WHERE a.year=2021 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=0 AND a.month = 12;\n UPDATE temp_table t, activities a SET t.m3_com=a.task_hour,t.m3_from_otl=a.from_otl,t.m3_id=a.id WHERE a.year=2021 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=1 AND a.month = 12;\n UPDATE temp_table t, activities a SET t.m4_com=a.task_hour,t.m4_from_otl=a.from_otl,t.m4_id=a.id WHERE a.year=2022 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=0 AND a.month = 1;\n UPDATE temp_table t, activities a SET t.m4_com=a.task_hour,t.m4_from_otl=a.from_otl,t.m4_id=a.id WHERE a.year=2022 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=1 AND a.month = 1;\n UPDATE temp_table t, activities a SET t.m5_com=a.task_hour,t.m5_from_otl=a.from_otl,t.m5_id=a.id WHERE a.year=2022 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=0 AND a.month = 2;\n UPDATE temp_table t, activities a SET t.m5_com=a.task_hour,t.m5_from_otl=a.from_otl,t.m5_id=a.id WHERE a.year=2022 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=1 AND a.month = 2;\n UPDATE temp_table t, activities a SET t.m6_com=a.task_hour,t.m6_from_otl=a.from_otl,t.m6_id=a.id WHERE a.year=2022 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=0 AND a.month = 3;\n UPDATE temp_table t, activities a SET t.m6_com=a.task_hour,t.m6_from_otl=a.from_otl,t.m6_id=a.id WHERE a.year=2022 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=1 AND a.month = 3;\n UPDATE temp_table t, activities a SET t.m7_com=a.task_hour,t.m7_from_otl=a.from_otl,t.m7_id=a.id WHERE a.year=2022 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=0 AND a.month = 4;\n UPDATE temp_table t, activities a SET t.m7_com=a.task_hour,t.m7_from_otl=a.from_otl,t.m7_id=a.id WHERE a.year=2022 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=1 AND a.month = 4;\n UPDATE temp_table t, activities a SET t.m8_com=a.task_hour,t.m8_from_otl=a.from_otl,t.m8_id=a.id WHERE a.year=2022 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=0 AND a.month = 5;\n UPDATE temp_table t, activities a SET t.m8_com=a.task_hour,t.m8_from_otl=a.from_otl,t.m8_id=a.id WHERE a.year=2022 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=1 AND a.month = 5;\n UPDATE temp_table t, activities a SET t.m9_com=a.task_hour,t.m9_from_otl=a.from_otl,t.m9_id=a.id WHERE a.year=2022 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=0 AND a.month = 6;\n UPDATE temp_table t, activities a SET t.m9_com=a.task_hour,t.m9_from_otl=a.from_otl,t.m9_id=a.id WHERE a.year=2022 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=1 AND a.month = 6;\n UPDATE temp_table t, activities a SET t.m10_com=a.task_hour,t.m10_from_otl=a.from_otl,t.m10_id=a.id WHERE a.year=2022 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=0 AND a.month = 7;\n UPDATE temp_table t, activities a SET t.m10_com=a.task_hour,t.m10_from_otl=a.from_otl,t.m10_id=a.id WHERE a.year=2022 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=1 AND a.month = 7;\n UPDATE temp_table t, activities a SET t.m11_com=a.task_hour,t.m11_from_otl=a.from_otl,t.m11_id=a.id WHERE a.year=2022 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=0 AND a.month = 8;\n UPDATE temp_table t, activities a SET t.m11_com=a.task_hour,t.m11_from_otl=a.from_otl,t.m11_id=a.id WHERE a.year=2022 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=1 AND a.month = 8;\n UPDATE temp_table t, activities a SET t.m12_com=a.task_hour,t.m12_from_otl=a.from_otl,t.m12_id=a.id WHERE a.year=2022 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=0 AND a.month = 9;\n UPDATE temp_table t, activities a SET t.m12_com=a.task_hour,t.m12_from_otl=a.from_otl,t.m12_id=a.id WHERE a.year=2022 AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=1 AND a.month = 9;\n SELECT * from temp_table where project_id=311 and user_id = 89;\n */\n DB::unprepared(\n DB::raw('\n DROP TABLE IF EXISTS '.$table_name_cols.';\n ')\n );\n\n DB::unprepared(\n DB::raw('\n CREATE TEMPORARY TABLE '.$table_name_cols.'\n (\n id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,\n project_id INT(10),\n user_id INT(10),\n m1_id INT(10),\n m1_com double(8,2) DEFAULT 0,\n m1_from_otl tinyint(1) DEFAULT 0,\n m2_id INT(10),\n m2_com double(8,2) DEFAULT 0,\n m2_from_otl tinyint(1) DEFAULT 0,\n m3_id INT(10),\n m3_com double(8,2) DEFAULT 0,\n m3_from_otl tinyint(1) DEFAULT 0,\n m4_id INT(10),\n m4_com double(8,2) DEFAULT 0,\n m4_from_otl tinyint(1) DEFAULT 0,\n m5_id INT(10),\n m5_com double(8,2) DEFAULT 0,\n m5_from_otl tinyint(1) DEFAULT 0,\n m6_id INT(10),\n m6_com double(8,2) DEFAULT 0,\n m6_from_otl tinyint(1) DEFAULT 0,\n m7_id INT(10),\n m7_com double(8,2) DEFAULT 0,\n m7_from_otl tinyint(1) DEFAULT 0,\n m8_id INT(10),\n m8_com double(8,2) DEFAULT 0,\n m8_from_otl tinyint(1) DEFAULT 0,\n m9_id INT(10),\n m9_com double(8,2) DEFAULT 0,\n m9_from_otl tinyint(1) DEFAULT 0,\n m10_id INT(10),\n m10_com double(8,2) DEFAULT 0,\n m10_from_otl tinyint(1) DEFAULT 0,\n m11_id INT(10),\n m11_com double(8,2) DEFAULT 0,\n m11_from_otl tinyint(1) DEFAULT 0,\n m12_id INT(10),\n m12_com double(8,2) DEFAULT 0,\n m12_from_otl tinyint(1) DEFAULT 0\n );\n ')\n );\n\n DB::unprepared(\n DB::raw('\n ALTER TABLE '.$table_name_cols.' ADD UNIQUE( `project_id`, `user_id`);\n ')\n );\n\n $years = [$where['months'][0]['year'],$where['months'][11]['year']];\n\n DB::unprepared(\n DB::raw('\n INSERT INTO '.$table_name_cols.' (`project_id`,`user_id`) (SELECT `project_id`,`user_id` FROM `activities` WHERE `year` = '.$years[0].' group by `project_id`,`user_id`);\n ')\n );\n\n if ($years[0] != $years[1]) {\n DB::unprepared(\n DB::raw('\n INSERT INTO '.$table_name_cols.' (`project_id`,`user_id`) (SELECT `project_id`,`user_id` FROM `activities` WHERE `year` = '.$years[1].' group by `project_id`,`user_id`) ON DUPLICATE KEY UPDATE m1_com = 0;\n ')\n );\n }\n\n foreach ($where['months'] as $key => $month) {\n $ref = $key+1;\n DB::unprepared(\n DB::raw('\n \n UPDATE '.$table_name_cols.' t, activities a SET t.m'.$ref.'_com=a.task_hour,t.m'.$ref.'_from_otl=a.from_otl,t.m'.$ref.'_id=a.id WHERE a.year='.$month['year'].' AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=0 AND a.month = '.$month['month'].';\n UPDATE '.$table_name_cols.' t, activities a SET t.m'.$ref.'_com=a.task_hour,t.m'.$ref.'_from_otl=a.from_otl,t.m'.$ref.'_id=a.id WHERE a.year='.$month['year'].' AND t.project_id=a.project_id AND t.user_id=a.user_id AND a.from_otl=1 AND a.month = '.$month['month'].';\n\n ')\n );\n }\n return;\n }", "title": "" }, { "docid": "3bf1bc0b96586fb239589bf514d74e7c", "score": "0.38152093", "text": "public function export_audit_report($date=2020)\r\n {\r\n $dateCheck = new DateTime();\r\n $purchaseDate = $dateCheck->setDate($date, 3, 31)->format('Y-m-d');\r\n $purchaseDateUpper = $dateCheck->setDate(($date+1), 4, 1)->format('Y-m-d');\r\n $purchaseDateLower = $dateCheck->setDate(($date-1), 4, 1)->format('Y-m-d');\r\n\r\n $this->db->select(\r\n 'a.id,a.asset_name,a.product_mrp,a.quantity,a.total_quantity,a.lf_no,a.purchase_date,a.physical_qty,a.damage_qty,\r\n a.physical_status,a.qty_before_physical,p.bill_date\r\n ');\r\n $this->db->from(\"assets a\");\r\n $this->db->join(\"products p\",\"a.product_id = p.id\",\"left\");\r\n if($_SESSION[SESSION_NAME]['type'] != 'SuperAdmin')\r\n $this->db->where('a.created_by',$_SESSION[SESSION_NAME]['id']);\r\n //$this->db->where('a.quantity >', 0);\r\n //$this->db->where('a.purchase_date >', $purchaseDate);\r\n //$this->db->where('a.purchase_date <', $purchaseDateUpper);\r\n $this->db->order_by('id', \"desc\");\r\n $query = $this->db->get();\r\n $Data = $query->result();\r\n\r\n $data = array(); \r\n $no=0; \r\n \r\n foreach($Data as $row) \r\n { \r\n $no++;\r\n $sr_no = $no;\r\n\r\n $array = array();\r\n $array['no'] = $sr_no;\r\n $array['lf_no'] = $row->lf_no;\r\n $array['asset_name'] = $row->asset_name;\r\n $array['product_mrp'] = $row->product_mrp;\r\n $array['book_quantity'] = $row->quantity;\r\n $array['book_total'] = $row->quantity * $row->product_mrp;\r\n\r\n $array['1year'] = 0;\r\n $array['2year'] = 0;\r\n $array['3year'] = 0;\r\n $array['4year'] = 0;\r\n\r\n $startDate = $row->purchase_date;\r\n $endDate = date('Y-m-d');\r\n\r\n $datetime1 = date_create($startDate);\r\n $datetime2 = date_create($endDate);\r\n $interval = date_diff($datetime1, $datetime2, false);\r\n if ($interval->y >= 1 && $interval->d >= 0 && $interval->y < 2) {\r\n $array['2year'] = $row->quantity * $row->product_mrp;\r\n } else if ($interval->y >= 2 && $interval->d >= 0 && $interval->y < 3) {\r\n $array['3year'] = $row->quantity * $row->product_mrp;\r\n } else if ($interval->y >= 3 && $interval->d >= 0) {\r\n $array['4year'] = $row->quantity * $row->product_mrp;\r\n } else {\r\n $array['1year'] = $row->quantity * $row->product_mrp;\r\n }\r\n \r\n if($row->physical_qty == \"\")\r\n {\r\n $array['physical_quantity'] = $row->quantity;\r\n $array['physical_total'] = $row->quantity * $row->product_mrp;\r\n $array['shortage_quantity'] = 0;\r\n $array['shortage_total'] = 0;\r\n $array['excess_quantity'] = 0;\r\n $array['excess_total'] = 0;\r\n } else {\r\n $array['physical_quantity'] = $row->physical_qty;\r\n $array['physical_total'] = $row->physical_qty * $row->product_mrp;\r\n $array['shortage_quantity'] = 0;\r\n $array['shortage_total'] = 0;\r\n $array['excess_quantity'] = 0;\r\n $array['excess_total'] = 0;\r\n\r\n if($row->quantity > $row->physical_qty)\r\n {\r\n $array['shortage_quantity'] = $row->quantity - $row->physical_qty;\r\n $array['shortage_total'] = ($row->quantity - $row->physical_qty) * $row->product_mrp;\r\n $array['excess_quantity'] = 0;\r\n $array['excess_total'] = 0;\r\n } else if($row->quantity < $row->physical_qty) {\r\n $array['excess_quantity'] = $row->physical_qty - $row->quantity;\r\n $array['excess_total'] = ($row->physical_qty -$row->quantity) * $row->product_mrp;\r\n $array['shortage_quantity'] = 0;\r\n $array['shortage_total'] = 0;\r\n }\r\n \r\n }\r\n if($row->damage_qty == 0)\r\n {\r\n $array['damage_quantity'] = 0;\r\n $array['damage_total'] = 0;\r\n } else {\r\n $array['damage_quantity'] = $row->damage_qty;\r\n $array['damage_total'] = $row->damage_qty * $row->product_mrp;\r\n }\r\n $this->db->select('quantity');\r\n $this->db->from(\"dispatch_details\");\r\n $this->db->where('product_id',$row->id);\r\n $query = $this->db->get();\r\n $purchase_return = $query->result();\r\n if(count($purchase_return) > 0)\r\n {\r\n $array['return_quantity'] = $purchase_return[0]->quantity;\r\n $array['return_total'] = $row->product_mrp * $purchase_return[0]->quantity;\r\n } else {\r\n $array['return_quantity'] = 0;\r\n $array['return_total'] = 0;\r\n }\r\n \r\n $this->db->select('sum(d.quantity) as quantity, d.rate_per_item');\r\n $this->db->from(\"invoice_details d\");\r\n $this->db->join(\"invoice i\",\"d.invoice_id = i.id\",\"left\");\r\n $this->db->where('d.product_id',$row->id);\r\n $this->db->where('i.date_of_invoice >', $purchaseDate);\r\n $this->db->where('i.date_of_invoice <', $purchaseDateUpper);\r\n $query = $this->db->get();\r\n $sales = $query->result();\r\n if(count($sales) > 0)\r\n {\r\n $array['sales_quantity'] = $sales[0]->quantity;\r\n $array['sales_total'] = $sales[0]->rate_per_item * $sales[0]->quantity;\r\n } else {\r\n $array['sales_quantity'] = 0;\r\n $array['sales_total'] = 0;\r\n }\r\n\r\n $this->db->select('sum(d.quantity) as quantity, d.price');\r\n $this->db->from(\"sales_return_details d\");\r\n $this->db->join(\"sales_return i\",\"d.return_id = i.id\",\"left\");\r\n $this->db->where('d.product_id',$row->id);\r\n $this->db->where('i.return_date >', $purchaseDate);\r\n $this->db->where('i.return_date <', $purchaseDateUpper);\r\n $query = $this->db->get();\r\n $sales_return = $query->result();\r\n if(count($sales_return) > 0)\r\n {\r\n $array['sales_return_quantity'] = $sales_return[0]->quantity;\r\n $array['sales_return_total'] = $sales_return[0]->price * $sales_return[0]->quantity;\r\n } else {\r\n $array['sales_return_quantity'] = 0;\r\n $array['sales_return_total'] = 0;\r\n }\r\n\r\n if($row->bill_date > $purchaseDate)\r\n {\r\n $array['quantity'] = 0;\r\n $array['total'] = 0;\r\n $array['received_quantity'] = $row->total_quantity;\r\n $array['received_total'] = $row->product_mrp * $row->total_quantity;\r\n } else {\r\n $array['quantity'] = $row->total_quantity;\r\n $array['total'] = $row->product_mrp * $row->total_quantity;\r\n $array['received_quantity'] = 0;\r\n $array['received_total'] = 0;\r\n }\r\n if($row->physical_status == 0)\r\n $btn = ('<a href=\"#myModaledit\" title=\"Edit\" class=\"btn btn-info btn-circle btn-sm\" data-toggle=\"modal\" onclick=\"getEditvalue('.$row->id.');\"><i class=\"ace-icon fa fa-pencil bigger-130\"></i></a>');\r\n else\r\n $btn = \"\";\r\n $array['btn'] = $btn;\r\n $data[] = $array;\r\n \r\n }\r\n \r\n \r\n $results = $data;\r\n $FileTitle='Audit Report';\r\n \r\n $this->load->library('excel');\r\n //activate worksheet number 1\r\n $this->excel->setActiveSheetIndex(0);\r\n //name the worksheet\r\n $this->excel->getActiveSheet()->setTitle('Report Sheet');\r\n //set cell A1 content with some text\r\n $this->excel->getActiveSheet()->setCellValue('A1', 'Audit Report ');\r\n\r\n $this->excel->getActiveSheet()->setCellValue('A3', 'Sr. No');\r\n $this->excel->getActiveSheet()->setCellValue('B3', 'LF No');\r\n $this->excel->getActiveSheet()->setCellValue('C3', 'Items');\r\n $this->excel->getActiveSheet()->setCellValue('D3', 'Rate');\r\n $this->excel->getActiveSheet()->setCellValue('E3', 'Opening Stock Qty');\r\n $this->excel->getActiveSheet()->setCellValue('F3', 'Opening Stock Total');\r\n $this->excel->getActiveSheet()->setCellValue('G3', 'Received Qty');\r\n $this->excel->getActiveSheet()->setCellValue('H3', 'Received Total');\r\n $this->excel->getActiveSheet()->setCellValue('I3', 'Purchase Return Qty');\r\n $this->excel->getActiveSheet()->setCellValue('J3', 'Purchase Return Total');\r\n $this->excel->getActiveSheet()->setCellValue('K3', 'Sales Amount Qty');\r\n $this->excel->getActiveSheet()->setCellValue('L3', 'Sales Amount Total');\r\n $this->excel->getActiveSheet()->setCellValue('M3', 'Sales Return Qty');\r\n $this->excel->getActiveSheet()->setCellValue('N3', 'Sales Return Total');\r\n $this->excel->getActiveSheet()->setCellValue('O3', 'Book Stock Qty');\r\n $this->excel->getActiveSheet()->setCellValue('P3', 'Book Stock Total');\r\n $this->excel->getActiveSheet()->setCellValue('Q3', 'Physical Stock Qty');\r\n $this->excel->getActiveSheet()->setCellValue('R3', 'Physical Stock Total');\r\n $this->excel->getActiveSheet()->setCellValue('S3', 'Shortage Qty');\r\n $this->excel->getActiveSheet()->setCellValue('T3', 'Shortage Total');\r\n $this->excel->getActiveSheet()->setCellValue('U3', 'Excess Qty');\r\n $this->excel->getActiveSheet()->setCellValue('V3', 'Excess Total');\r\n $this->excel->getActiveSheet()->setCellValue('W3', 'Damage Qty');\r\n $this->excel->getActiveSheet()->setCellValue('X3', 'Damage Total');\r\n $this->excel->getActiveSheet()->setCellValue('Y3', 'Upto 1');\r\n $this->excel->getActiveSheet()->setCellValue('Z3', '1 to 2');\r\n $this->excel->getActiveSheet()->setCellValue('AA3', '2 to 3');\r\n $this->excel->getActiveSheet()->setCellValue('AB3', 'Above 2');\r\n \r\n $a='4'; $sr = 1; \r\n //print_r($results);exit;\r\n $product_mrp = 0;\r\n $qty = 0;\r\n $total = 0;\r\n $received_quantity = 0;\r\n $received_total = 0;\r\n $return_quantity = 0;\r\n $return_total = 0;\r\n $sales_quantity = 0;\r\n $sales_total = 0;\r\n $sales_return_quantity = 0;\r\n $sales_return_total = 0;\r\n $book_quantity = 0;\r\n $book_total = 0;\r\n $physical_quantity = 0;\r\n $physical_total = 0;\r\n $shortage_quantity = 0;\r\n $shortage_total = 0;\r\n $excess_quantity = 0;\r\n $excess_total = 0;\r\n $damage_quantity = 0;\r\n $damage_total = 0;\r\n $one_year = 0;\r\n $two_year = 0;\r\n $three_year = 0;\r\n $four_year = 0;\r\n $net_amount = 0;\r\n $arrId = array();\r\n foreach ($results as $result) \r\n { \r\n $no = $sr++;\r\n \r\n $this->excel->getActiveSheet()->setCellValue('A'.$a, $no);\r\n $this->excel->getActiveSheet()->setCellValue('B'.$a, $result['lf_no']);\r\n $this->excel->getActiveSheet()->setCellValue('C'.$a, $result['asset_name']);\r\n $this->excel->getActiveSheet()->setCellValue('D'.$a, $result['product_mrp']);\r\n $this->excel->getActiveSheet()->setCellValue('E'.$a, $result['quantity']);\r\n $this->excel->getActiveSheet()->setCellValue('F'.$a, $result['total']); \r\n $this->excel->getActiveSheet()->setCellValue('G'.$a, $result['received_quantity']); \r\n $this->excel->getActiveSheet()->setCellValue('H'.$a, $result['received_total']); \r\n $this->excel->getActiveSheet()->setCellValue('I'.$a, $result['return_quantity']);\r\n $this->excel->getActiveSheet()->setCellValue('J'.$a, $result['return_total']);\r\n $this->excel->getActiveSheet()->setCellValue('K'.$a, $result['sales_quantity']); \r\n $this->excel->getActiveSheet()->setCellValue('L'.$a, $result['sales_total']);\r\n $this->excel->getActiveSheet()->setCellValue('M'.$a, $result['sales_return_quantity']);\r\n $this->excel->getActiveSheet()->setCellValue('N'.$a, $result['sales_return_total']);\r\n $this->excel->getActiveSheet()->setCellValue('O'.$a, $result['book_quantity']); \r\n $this->excel->getActiveSheet()->setCellValue('P'.$a, $result['book_total']);\r\n $this->excel->getActiveSheet()->setCellValue('Q'.$a, $result['physical_quantity']); \r\n $this->excel->getActiveSheet()->setCellValue('R'.$a, $result['physical_total']);\r\n $this->excel->getActiveSheet()->setCellValue('S'.$a, $result['shortage_quantity']); \r\n $this->excel->getActiveSheet()->setCellValue('T'.$a, $result['shortage_total']);\r\n $this->excel->getActiveSheet()->setCellValue('U'.$a, $result['excess_quantity']); \r\n $this->excel->getActiveSheet()->setCellValue('V'.$a, $result['excess_total']);\r\n $this->excel->getActiveSheet()->setCellValue('W'.$a, $result['damage_quantity']); \r\n $this->excel->getActiveSheet()->setCellValue('X'.$a, $result['damage_total']);\r\n $this->excel->getActiveSheet()->setCellValue('Y'.$a, $result['1year']); \r\n $this->excel->getActiveSheet()->setCellValue('Z'.$a, $result['2year']);\r\n $this->excel->getActiveSheet()->setCellValue('AA'.$a, $result['3year']); \r\n $this->excel->getActiveSheet()->setCellValue('AB'.$a, $result['4year']);\r\n\r\n $a++;\r\n $product_mrp += $result['product_mrp'];\r\n $qty += $result['quantity'];\r\n $total += $result['total'];\r\n $received_quantity += $result['received_quantity'];\r\n $received_total += $result['received_total'];\r\n $return_quantity += $result['return_quantity'];\r\n $return_total += $result['return_total'];\r\n $sales_quantity += $result['sales_quantity'];\r\n $sales_total += $result['sales_total'];\r\n $sales_return_quantity += $result['sales_return_quantity'];\r\n $sales_return_total += $result['sales_return_total'];\r\n $book_quantity += $result['book_quantity'];\r\n $book_total += $result['book_total'];\r\n $physical_quantity += $result['physical_quantity'];\r\n $physical_total += $result['physical_total'];\r\n $shortage_quantity += $result['shortage_quantity'];\r\n $shortage_total += $result['shortage_total'];\r\n $excess_quantity += $result['excess_quantity'];\r\n $excess_total += $result['excess_total'];\r\n $damage_quantity += $result['damage_quantity'];\r\n $damage_total += $result['damage_total'];\r\n $one_year += $result['1year'];\r\n $two_year += $result['2year'];\r\n $three_year += $result['3year'];\r\n $four_year += $result['4year'];\r\n //$total_sum += $result->total;\r\n //$net_amount += $result->net_amount; \r\n }\r\n $this->excel->getActiveSheet()->setCellValue('D'.$a, \"Rs. \" . number_format($product_mrp,2) );\r\n $this->excel->getActiveSheet()->setCellValue('E'.$a, $qty);\r\n $this->excel->getActiveSheet()->setCellValue('F'.$a, $total);\r\n $this->excel->getActiveSheet()->setCellValue('G'.$a, $received_quantity);\r\n $this->excel->getActiveSheet()->setCellValue('H'.$a, $received_total);\r\n $this->excel->getActiveSheet()->setCellValue('I'.$a, $return_quantity);\r\n $this->excel->getActiveSheet()->setCellValue('J'.$a, $return_total);\r\n $this->excel->getActiveSheet()->setCellValue('K'.$a, $sales_quantity);\r\n $this->excel->getActiveSheet()->setCellValue('L'.$a, $sales_total);\r\n $this->excel->getActiveSheet()->setCellValue('M'.$a, $sales_return_quantity);\r\n $this->excel->getActiveSheet()->setCellValue('N'.$a, $sales_return_total);\r\n $this->excel->getActiveSheet()->setCellValue('O'.$a, $book_quantity);\r\n $this->excel->getActiveSheet()->setCellValue('P'.$a, $book_total);\r\n $this->excel->getActiveSheet()->setCellValue('Q'.$a, $physical_quantity);\r\n $this->excel->getActiveSheet()->setCellValue('R'.$a, $physical_total);\r\n $this->excel->getActiveSheet()->setCellValue('S'.$a, $shortage_quantity);\r\n $this->excel->getActiveSheet()->setCellValue('T'.$a, $shortage_total);\r\n $this->excel->getActiveSheet()->setCellValue('U'.$a, $excess_quantity);\r\n $this->excel->getActiveSheet()->setCellValue('V'.$a, $excess_total);\r\n $this->excel->getActiveSheet()->setCellValue('W'.$a, $damage_quantity);\r\n $this->excel->getActiveSheet()->setCellValue('X'.$a, $damage_total);\r\n $this->excel->getActiveSheet()->setCellValue('Y'.$a, $one_year);\r\n $this->excel->getActiveSheet()->setCellValue('Z'.$a, $two_year);\r\n $this->excel->getActiveSheet()->setCellValue('AA'.$a, $three_year);\r\n $this->excel->getActiveSheet()->setCellValue('AB'.$a, $four_year);\r\n\r\n //$this->excel->getActiveSheet()->setCellValue('H'.$a, \"Rs. \".number_format($total_sum,2));\r\n //$this->excel->getActiveSheet()->setCellValue('P'.$a, \"Rs. \".number_format($net_amount,2));\r\n $this->excel->getActiveSheet()->getStyle('D'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('E'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('F'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('G'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('H'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('I'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('J'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('K'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('L'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('M'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('N'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('O'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('P'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('Q'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('R'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('S'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('T'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('U'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('V'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('W'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('X'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('Y'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('Z'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('AA'.$a)->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('AB'.$a)->getFont()->setBold(true);\r\n //$this->excel->getActiveSheet()->getStyle('P'.$a)->getFont()->setBold(true);\r\n\r\n $this->excel->getActiveSheet()->getStyle('A1')->getFont()->setSize(14);\r\n $this->excel->getActiveSheet()->getStyle('A1')->getFont()->setBold(true); \r\n $this->excel->getActiveSheet()->getStyle('A3')->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('B3')->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('C3')->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('D3')->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('E3')->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('F3')->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('G3')->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('H3')->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('I3')->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('J3')->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('K3')->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('L3')->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('M3')->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('N3')->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('O3')->getFont()->setBold(true);\r\n $this->excel->getActiveSheet()->getStyle('P3')->getFont()->setBold(true);\r\n \r\n //$this->excel->getActiveSheet()->mergeCells('A1:H1');\r\n $this->excel->getActiveSheet()->getStyle('A1')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\r\n \r\n $filename=''.$FileTitle.'-'.$date.'-'.($date+1).'.xlsx'; //save our workbook as this file name\r\n header('Content-Type: application/vnd.ms-excel'); //mime type\r\n header('Content-Disposition: attachment;filename=\"'.$filename.'\"'); //tell browser what's the file name\r\n header('Cache-Control: max-age=0'); //no cache\r\n ob_clean();\r\n \r\n //save it to Excel5 format (excel 2003 .XLS file), change this to 'Excel2007' (and adjust the filename extension, also the header mime type)\r\n //if you want to save it as .XLSX Excel 2007 format\r\n $objWriter = PHPExcel_IOFactory::createWriter($this->excel, 'Excel2007'); \r\n //force user to download the Excel file without writing it to server's HD\r\n $objWriter->save(str_replace(__FILE__,'admin/assets/audit_report/'.$filename,__FILE__));\r\n $objWriter->save('php://output'); \r\n }", "title": "" }, { "docid": "62e5ba0f4184967565b125486205eaf6", "score": "0.38145065", "text": "function __construct($date=null, $month=null, $year=null)\r\n\t\t{\r\n\t\t\tif($date === null)\r\n\t\t\t{\r\n\t\t\t\t$this -> d = (date(\"d\")+0);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$this -> d = ($date+0);\r\n\t\t\t}\r\n\r\n\t\t\tif($month === null)\r\n\t\t\t{\r\n\t\t\t\t$this -> m = (date(\"m\")+0);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$this -> m = ($month+0);\r\n\t\t\t}\r\n\r\n\t\t\tif($year === null)\r\n\t\t\t{\r\n\t\t\t\t$this -> y = (date(\"Y\")+0);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$this -> y = ($year+0);\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "ec396565fc22da894d1dfe7145691644", "score": "0.3814281", "text": "public function index()\n {\n\n $start_of_month = \\Carbon\\Carbon::today()->startOfMOnth();\n $end_of_month = \\Carbon\\Carbon::today()->endOfMonth();\n\n $data = Sensors::whereDate('dateandtime', '>=', $start_of_month)->whereDate('dateandtime', '<=', $end_of_month)->get();\n $labs1 = [];\n $labs2 = [];\n $labs3 = [];\n $labs4 = [];\n $labs3 = [];\n $labs4 = [];\n $values1 = [];\n $values2 = [];\n $values3 = [];\n $values4 = [];\n\n\n foreach ($data as $date){\n\n if($date->sensor == \"Senzor1\") {\n $values1[] = \"$date->temperature\";\n $labs1[] = \"$date->dateandtime\";\n\n if($date->humidity > 100){\n $values3[] = \"100\";\n $labs3[] = \"$date->dateandtime\";\n } else {\n $values3[] = \"$date->humidity\";\n $labs3[] = \"$date->dateandtime\";\n }\n\n } else {\n $values2[] = \"$date->temperature\";\n $labs2[] = \"$date->dateandtime\";\n if($date->humidity > 100){\n $values4[] = \"100\";\n $labs4[] = \"$date->dateandtime\";\n } else {\n $values4[] = \"$date->humidity\";\n $labs4[] = \"$date->dateandtime\";\n }\n }\n\n }\n\n $chart = Charts::multi('areaspline', 'highcharts')\n ->title('The Graph of the last 24 hours')\n ->elementLabel(\"°C\")\n ->yAxisTitle(\"Graphic Temperature\")\n ->colors(['#00b300', '#3385ff'])\n ->labels($labs1, $labs2)\n ->dataset('Sensor 1', $values1)\n ->dataset('Sensor 2', $values2);\n\n $chart2 = Charts::multi('areaspline', 'highcharts')\n ->title('The Graph of the last 24 hours')\n ->elementLabel(\"%\")\n ->yAxisTitle(\"Graphic Humidity\")\n ->colors(['#00b300', '#3385ff'])\n ->labels($labs3, $labs4)\n ->dataset('Sensor 1', $values3)\n ->dataset('Sensor 2', $values4);\n\n return view('index', ['chart' => $chart, 'chart2' => $chart2]);\n }", "title": "" }, { "docid": "9a9e9d6a85879859b369fb5f3e115054", "score": "0.3812624", "text": "public function zero(): Money\n {\n return new Money(0, $this->currency);\n }", "title": "" }, { "docid": "7d3b0a6a113d596afce017dc8d1dbaf1", "score": "0.38077083", "text": "private function _generateTime()\n {\n // Get date\n $timeFirst = strtotime($this->data->getFirstReportDate());\n $timeNow = time();\n \n // Generate month\n $monthFirst = strtotime(date('Y-m', $timeFirst));\n $monthLast = strtotime(date('Y-m'));\n \n $data = [\n 'months' => [],\n 'quarters' => [],\n 'semesters' => [],\n 'years' => []\n ];\n \n while ($monthLast > $monthFirst)\n {\n $monthValue = date('m', $monthLast);\n $yearValue = date('Y', $monthLast);\n $month = $yearValue.'-'.$monthValue;\n \n if ($monthValue === '03')\n {\n $data['quarters'][($yearValue.'-Q1')] = $yearValue.' Q1';\n }\n else if ($monthValue === '06')\n {\n $data['quarters'][($yearValue.'-Q2')] = $yearValue.' Q2';\n $data['semesters'][($yearValue.'-S1')] = $yearValue.' S1';\n }\n else if ($monthValue === '09')\n {\n $data['quarters'][($yearValue.'-Q3')] = $yearValue.' Q3';\n }\n else if ($monthValue === '12')\n {\n $data['quarters'][($yearValue.'-Q4')] = $yearValue.' Q4';\n $data['semesters'][($yearValue.'-S2')] = $yearValue.' S2';\n }\n \n // Push data to container\n $data['months'][$month] = date('F Y', $monthLast);\n \n if (!array_key_exists($yearValue, $data['years']))\n {\n $data['years'][$yearValue] = $yearValue;\n }\n \n $days = 30;\n \n // For february 28 days\n if ($monthValue == '03') \n {\n $days = 28;\n }\n \n // Decrement month\n $monthLast -= 3600*24*$days;\n }\n \n return $data;\n }", "title": "" }, { "docid": "f43a162f6aae25bd6fa768da0f20c1dd", "score": "0.38064462", "text": "public static function createByBiz ($row) {\n DBC::requireNotEmpty($row, \"Rpt_week_doctor_patient::createByBiz row cannot empty\");\n\n $default = array();\n $default[\"doctorid\"] = 0;\n $default[\"begindate\"] = '0000-00-00';\n $default[\"enddate\"] = '0000-00-00';\n $default[\"scancnt\"] = 0;\n $default[\"baodaocnt\"] = 0;\n $default[\"pipe_pcnt\"] = 0;\n\n $row += $default;\n return new self($row);\n }", "title": "" }, { "docid": "1f299faefc81b2313eb97ad91d750b9d", "score": "0.38028216", "text": "public function generateSummaryInbound($params)\n {\n $query = new Query;\n \n $query->select('*')->from('vi_report_summary');\n\n $this->load($params);\n \n if(!empty($this->FromDate)) \n $this->FromDate .= \" 00:00:00\" ;\n\n if(!empty($this->ToDate))\n $this->ToDate .= \" 23:59:59\" ;\n\n $query->andFilterWhere(['>', 'interaction_creation_datetime', $this->FromDate])\n ->andFilterWhere(['<', 'interaction_creation_datetime', $this->ToDate])\n ->andFilterWhere(['IN', 'case_status_id',$this->CaseStatus])\n\t\t ->andFilterWhere(['IN', 'Service_Request_Created_by_ID',$this->createdBy]);\n $dataProvider = new ActiveDataProvider([\n\t\t\t'db' => Yii::$app->get('db2'),\n\t\t\t'pagination' => ['pageSize'=>''],\n 'query' => $query\n ]);\n return $dataProvider;\n }", "title": "" }, { "docid": "065e51429b3429490adb5acabab90c4b", "score": "0.3797623", "text": "function excel_customized_dates_report($Fromdate,$Todate,$facility,$device,$report_type)\n\t {\n\t \t$this->load->library('excel');\n\n\t \t$custom=1;\n\n\t \t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('A1')->getFont()->setSize(20);\n\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('A1')->getFont()->setBold(true);\n\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('A1:P1');\n\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('A1')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('B2','Patient ID');\n\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('B2')->getFont()->setSize(12);\n\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('B2')->getFont()->setBold(true);\n\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('B2:C2');\n\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('B2')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('Q1','Total');\n\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('Q1')->getFont()->setSize(12);\n\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('Q1')->getFont()->setBold(true);\n\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('Q1:R1');\n\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle()->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t \tif($facility!=\"\")\n\t \t{\n\t \t\t$device=\"\";\n\t \t\t$sql_data=$this->excel_tests_details($Fromdate,$Todate,$facility,$device,$report_type,$custom);// get the data\n\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setTitle('REPORT FOR CD4 SAMPLES TESTED');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('A1','Report for '.$facility.' - Between '.$Fromdate.' and '.$Todate.'');\n\t\t\t\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('D2','Device');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('D2')->getFont()->setSize(12);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('D2')->getFont()->setBold(true);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('D2:G2');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('D2')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('H2','Date Of Test');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('H2')->getFont()->setSize(12);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('H2')->getFont()->setBold(true);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('H2:J2');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('H2')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\t\n\t \t}\n\n\t \tif($device!=\"\")\n\t \t{\n\t \t\t$facility=\"\";\n\t \t\t$sql_data=$this->excel_tests_details($Fromdate,$Todate,$facility,$device,$report_type,$custom);// get the data\n\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setTitle('REPORT FOR CD4 SAMPLES TESTED');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('A1','Report for '.$device.' - Between '.$Fromdate.' and '.$Todate.' ');\n\t\t\t\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('D2','Facility');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('D2')->getFont()->setSize(12);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('D2')->getFont()->setBold(true);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('D2:G2');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('D2')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('H2','Date Of Test');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('H2')->getFont()->setSize(12);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('H2')->getFont()->setBold(true);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('H2:J2');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('H2')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\t\n\t \t}\n\t \tif($report_type==1)// Tests only\n\t\t{\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('K2','Tests Status');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K2')->getFont()->setSize(12);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K2')->getFont()->setBold(true);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('K2:L2');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K2')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('M2','CD4 Count');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('M2')->getFont()->setSize(12);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('M2')->getFont()->setBold(true);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('M2:N2');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('M2')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('O2','Operator');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('O2')->getFont()->setSize(12);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('O2')->getFont()->setBold(true);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('O2:P2');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('O2')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\t\t}\n\n\t\telse if($report_type==2)// Errors only\n\t\t{\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('K2','Test Status');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K2')->getFont()->setSize(12);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K2')->getFont()->setBold(true);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('K2:L2');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K2')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('M2','Operator');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('M2')->getFont()->setSize(12);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('M2')->getFont()->setBold(true);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('M2:N2');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('M2')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('O2','Error Detail');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('O2')->getFont()->setSize(12);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('O2')->getFont()->setBold(true);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('O2:Q2');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('O2')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('R2','Error Type');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('R2')->getFont()->setSize(12);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('R2')->getFont()->setBold(true);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('R2:S2');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('R2')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\t\t}\n\t\telse //both Tests and Errors\n\t\t{\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('K2','Test Status');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K2')->getFont()->setSize(12);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K2')->getFont()->setBold(true);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('K2:L2');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K2')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('M2','CD4 Count');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('M2')->getFont()->setSize(12);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('M2')->getFont()->setBold(true);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('M2:N2');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('M2')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('O2','Operator');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('O2')->getFont()->setSize(12);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('O2')->getFont()->setBold(true);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('O2:P2');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('O2')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('Q2','Error Detail');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('Q2')->getFont()->setSize(12);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('Q2')->getFont()->setBold(true);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('Q2:S2');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('Q2')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('T2','Error Type');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('T2')->getFont()->setSize(12);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('T2')->getFont()->setBold(true);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('T2:U2');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('T2')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\t\t}\n\n\n\t\t$num=3;//row count\n\t\t$count=1;//record count\n\n\t\tforeach ($sql_data as $value) \n\t \t{\n\t \t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('A'.$num.'',$count);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('A'.$num.'')->getFont()->setSize(12);\n\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('S1',$count);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('S1')->getFont()->setSize(12);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('S1')->getFont()->setBold(true);\n\n\t \t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('B'.$num.'',$value['sample_code']);\n\t \t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('B'.$num.'')->getFont()->setSize(12);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('B'.$num.':C'.$num.'');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('B'.$num.'')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\t\t\t\n\t\t\tif($facility!=\"\")\n\t \t\t{\n \t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('D'.$num.'',$value['serial_num']);\n\t\t \t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('D'.$num.'')->getFont()->setSize(12);\n\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('D'.$num.':G'.$num.'');\n\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('D'.$num.'')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\t \t\t}\n\t \t\tif($device!=\"\")\n\t \t\t{\n\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('D'.$num.'',$value['facility']);\n\t\t \t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('D'.$num.'')->getFont()->setSize(12);\n\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('D'.$num.':G'.$num.'');\n\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('D'.$num.'')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\t \t\t}\n\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('H'.$num.'',$value['date_test']);\n\t \t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('H'.$num.'')->getFont()->setSize(12);\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('H'.$num.':J'.$num.'');\n\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('H'.$num.'')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t\t\t\t\n\t\t\tif($report_type==1)//Tests only\n\t\t\t{\n\t\t\t\tif($value['valid']==1)\n\t\t\t\t{\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('K'.$num.'','Successful');\n\t\t\t \t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K'.$num.'')->getFont()->setSize(12);\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('K'.$num.':L'.$num.'');\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K'.$num.'')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\t\t\t\t\t\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('M'.$num.'',$value['cd4_count']);\n\t\t\t \t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('M'.$num.'')->getFont()->setSize(12);\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('M'.$num.':N'.$num.'');\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('M'.$num.'')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('O'.$num.'',$value['operator']);\n\t\t\t \t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('O'.$num.'')->getFont()->setSize(12);\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('O'.$num.':P'.$num.'');\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('O'.$num.'')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if($report_type==2)// Errors only\n\t\t\t{\n\t\t\t\tif($value['valid']==0)\n\t\t\t\t{\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('K'.$num.'','Error');\n\t\t\t \t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K'.$num.'')->getFont()->setSize(12);\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('K'.$num.':L'.$num.'');\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K'.$num.'')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\t\t\t\t\t\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('M'.$num.'',$value['operator']);\n\t\t\t \t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('M'.$num.'')->getFont()->setSize(12);\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('M'.$num.':N'.$num.'');\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('M'.$num.'')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('O'.$num.'',$value['error_detail']);\n\t\t\t \t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('O'.$num.'')->getFont()->setSize(12);\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('O'.$num.':Q'.$num.'');\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('O'.$num.'')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('R'.$num.'',$value['error_type_description']);\n\t\t\t \t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('R'.$num.'')->getFont()->setSize(12);\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('R'.$num.':S'.$num.'');\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('R'.$num.'')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse\n\t\t\t{\n\t\t\t\tif($value['valid']==1)//Tests only\n\t\t\t\t{\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('K'.$num.'','Successful');\n\t\t\t \t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K'.$num.'')->getFont()->setSize(12);\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('K'.$num.':L'.$num.'');\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K'.$num.'')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K'.$num.'')->getFill()->setFillType(PHPExcel_Style_Fill::FILL_SOLID);//set color\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K'.$num.'')->getFill()->getStartColor()->setRGB('006600');\n\t\t\t\t}\n\t\t\t\telse if($value['valid']==0)// Errors only\n\t\t\t\t{\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('K'.$num.'','Error');\n\t\t\t \t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K'.$num.'')->getFont()->setSize(12);\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('K'.$num.':L'.$num.'');\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K'.$num.'')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K'.$num.'')->getFill()->setFillType(PHPExcel_Style_Fill::FILL_SOLID);//set color\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('K'.$num.'')->getFill()->getStartColor()->setRGB('FF0000');\n\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('Q'.$num.'',$value['error_detail']);\n\t\t\t \t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('Q'.$num.'')->getFont()->setSize(12);\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('Q'.$num.':S'.$num.'');\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('Q'.$num.'')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('T'.$num.'',$value['error_type_description']);\n\t\t\t \t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('T'.$num.'')->getFont()->setSize(12);\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('T'.$num.':U'.$num.'');\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('T'.$num.'')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\t\t\t\n\t\t\t\t}\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('M'.$num.'',$value['cd4_count']);\n\t\t\t \t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('M'.$num.'')->getFont()->setSize(12);\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('M'.$num.':N'.$num.'');\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('M'.$num.'')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\n\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->setCellValue('O'.$num.'',$value['operator']);\n\t\t\t \t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('O'.$num.'')->getFont()->setSize(12);\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->mergeCells('O'.$num.':P'.$num.'');\n\t\t\t\t\t$PHPExcel[]=$this->excel->getActiveSheet()->getStyle('O'.$num.'')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);\t\n\t\t\t}\n\n\t \t\t$num++;$count++;\n\t\t}//foreach end\n\t\n\t return $PHPExcel;\n\t }", "title": "" }, { "docid": "e159df79120fd39ed6e94db966a23652", "score": "0.37883562", "text": "public function create(\n $table,\n $cols,\n $throw_exceptions = false\n ): Query|false {\n $build = QueryBuilder::build_create(\n $this, $table, $cols\n );\n return $this->query(\n $build, array(), $throw_exceptions\n );\n }", "title": "" }, { "docid": "96ab834cc931b35ddb1c3046d7b3c811", "score": "0.37832472", "text": "function sumfields_create_temporary_table($trigger_table) {\n $name = CRM_Core_DAO::createTempTableName();\n\n // These are the actual field names as created in this instance\n $custom_fields = _sumfields_get_custom_field_parameters();\n\n // Load the field and group definitions because we need to know\n // which fields are triggered on which tables \n $custom_field_definitions = sumfields_get_custom_field_definitions();\n $definitions = $custom_field_definitions['fields'];\n\n $create_fields = array();\n\n // Initialize with a field to hold the entity_id\n $create_fields[] = \"`contact_id` INT\";\n // Iterate over the actual instantiated summary fields\n while(list($field_name, $values) = each($custom_fields)) {\n // Avoid error - make sure we have a definition for this field.\n if(array_key_exists($field_name, $definitions)) {\n $field_definition = $definitions[$field_name];\n if($field_definition['trigger_table'] == $trigger_table) {\n $data_type = $field_definition['data_type'];\n if($data_type == 'Money') {\n $data_type = \"DECIMAL(10,2)\";\n } \n elseif($data_type == 'Date') {\n $data_type = 'datetime';\n }\n elseif($data_type == 'String') {\n $data_type = 'varchar(128)';\n }\n $create_fields[] = \"`$field_name` $data_type\";\n }\n }\n }\n $sql = \"CREATE TABLE `$name` ( \".\n implode($create_fields, ',') . ')';\n CRM_Core_DAO::executeQuery($sql); \n return $name;\n}", "title": "" }, { "docid": "87de956861b3e38bd174c74262e7f404", "score": "0.37742352", "text": "function new_cv_meas_values($cv_meas_id,$columns,$values) {\n\tif (strlen(trim(implode('',$values))) == 0 ) {\n\t\treturn array('error'=>0);;\n\t}\n\t$query = \"insert ignore into epi_cv_meas_values \n\t\t\t\t\tset cv_meas_id = $cv_meas_id,\";\n\t\t\t\t\t\n\tfor ($i=0; $i< count($columns) ; $i++ ) {\n\t\t\n\t\tif (stristr($values[$i],'nan') ) {\n\t\t\t$values[$i] = -1;\n\t\t}\n\t\t\n\t\t$q[]=$columns[$i].\" = '\".$values[$i].\"'\";\n\t}\n\t$query .=implode(',',$q);\n//\techo \"<br> $query\";\n\t$result = $this->local_insert($query);\n\tif($result == NULL ) {\n\t\treturn array('error'=>2,'point'=>$query);\n\t}\n\treturn array('error'=>0);\n}", "title": "" }, { "docid": "c7544a5082c2056b3b2907013f8e01c2", "score": "0.37731636", "text": "protected function _createValue()\n {\n return $this->mock('Dhii\\\\Data\\\\ValueAwareInterface')\n ->getValue()\n ->new();\n }", "title": "" }, { "docid": "1493b2b94deeefbf26487b659fd42ba6", "score": "0.3772508", "text": "public function dateHistogram($field)\n {\n $this->type = 'date_histogram';\n $this->field = $field;\n $this->aggs_array[$this->type]['field'] = $this->field;\n $this->aggs_array[$this->type]['interval'] = 'month';\n return $this;\n }", "title": "" }, { "docid": "a1cd86d3d615c476c046a699ab692689", "score": "0.3770479", "text": "function dailywiseInst($date){\n $this->db->select('count(ID) as patientCountdaily')->from('patient');\n $this->db->where('is_deleted','0');\n $this->db->where('maker_date',$date);\n $patientCount=$this->db->get()->row()->patientCountdaily;\n if($patientCount>0){\n return $patientCount;\n }else{\n return 0;\n }\n }", "title": "" }, { "docid": "76765797eabd641e0b5278c6021d6292", "score": "0.3766687", "text": "protected function countByDays(Request $request, $model, $dateColumn = 'created_at')\n {\n $query = DB::table(with(new $model)->getTable())\n ->select(DB::raw('count(*) as value, count(*) as text'), DB::raw(\"DATE($dateColumn) as date\"))\n ->where($dateColumn, '>=', $this->currentRangeDate)\n ->orderBy('date', 'asc')->groupBy('date')->get();\n\n $dailyCount = [];\n $days = $this->currentRangeDate->diffInDays(Carbon::now());\n $date = clone $this->currentRangeDate;\n // Do a loop for each day whether there is a resource or not\n for($i=0; $i <= $days; $i++){\n $date->startOfDay();\n $found = $query->firstWhere('date', $date->toDateString());\n\n $dailyCount[] = [\n 'date' => $date->toDateString(),\n 'value' => $found? $found->value : 0,\n 'text' => $found? $found->value : 0,\n ];\n $date->addDay();\n }\n\n $this->values = collect($dailyCount);\n\n $latest = end($dailyCount); reset($dailyCount); // reset internal pointer\n $this->setValue($latest['value']);\n\n return $this;\n }", "title": "" }, { "docid": "4f4e114530014482aebc2dca51ee64c1", "score": "0.37636244", "text": "public function _createTable() {\r\n\t\t$this->database->query(\r\n\t\t\t'CREATE TABLE IF NOT EXISTS `'.$this->table.'` (\r\n\t\t\t\t`key` varchar(100) NOT NULL,\r\n\t\t\t\t`value` TEXT,\r\n\t\t\t\t`expires_at` TIMESTAMP NOT NULL,\r\n\t\t\t\tPRIMARY KEY (`key`)\r\n\t\t\t) ENGINE=MyISAM DEFAULT CHARSET=utf8;'\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "339e6862fade6336e63c969c62146d1f", "score": "0.37633044", "text": "public static function blank_row() {\n $meta_columns = static::meta_columns();\n $row = array();\n foreach ($meta_columns as $meta_column) {\n $row[$meta_column->name] = null;\n }\n return $row;\n }", "title": "" }, { "docid": "6775c92bd7b25820aadd9d4d79c93a75", "score": "0.37611425", "text": "public function testNotDateTime()\n {\n $data = new \\stdClass();\n $data->title = 'foobar';\n $cell = $this->createFactory()->createCell('title', DateTimeColumn::class, $data, []);\n }", "title": "" }, { "docid": "79966642a5c3460278a1db4d39f357b1", "score": "0.37587118", "text": "public function getZeroStock() \n {\n $rows = new Query();\n\n $result = $rows->select(['product.id', 'product.supplier_id', 'supplier.supplier_code', 'supplier.supplier_name', 'product.product_code', 'product.product_name', 'product.quantity', 'product.cost_price', 'product.selling_price', 'product.created_at'])\n ->from('product')\n ->join('LEFT JOIN', 'supplier', 'product.supplier_id = supplier.id')\n ->where('product.quantity = 0')\n ->orderBy('product.product_name')\n ->limit(10)\n ->all();\n\n if( count($result) > 0 ) {\n return $result;\n }else {\n return 0;\n } \n }", "title": "" }, { "docid": "51947f8844c6f3da9dcb128fc5a57975", "score": "0.37501064", "text": "protected abstract function _construct_object( $table_row, $object_data = null );", "title": "" }, { "docid": "0d18325b29c927742bd026ec39dbe197", "score": "0.3749357", "text": "function getBlankRow()\n {\n $row = array();\n \n foreach ($this->col as $key => $val) {\n $row[$key] = null;\n }\n \n $this->recast($row);\n \n return $row;\n }", "title": "" }, { "docid": "a02902efcf5c7d66c60f7997b86f3676", "score": "0.3748338", "text": "function resetHCTimeline()\n\t{\n\t$HighchartsPath = \"Visualization.WebFront.Hardware.Plugwise.Highcharts\";\n\t$HighchartsId = get_ObjectIDByPath($HighchartsPath);\n\n\t//***************************************************************************\n\t// Zeitraum welcher dargestellt werden soll\n\t//***************************************************************************\n\t$startid = IPS_GetVariableIDByName('StartTime',$HighchartsId);\n\t$endeid = IPS_GetVariableIDByName('EndTime',$HighchartsId);\n\t$nowid = IPS_GetVariableIDByName('Now',$HighchartsId);\n\n\n\tif ( defined('HIGHCHARTS_ZEITRAUM') )\n\t\t$zeitrum_stunden = HIGHCHARTS_ZEITRAUM;\n\telse\n\t\t$zeitrum_stunden = 24;\n\n\t$starttime = time() - (60*60*$zeitrum_stunden );\n\n\tSetValue($startid,$starttime);\n\n\t$endetime = time() ;\n\n\tSetValue($endeid,$endetime);\n\n\tSetValue($nowid,true);\n\n\n\t}", "title": "" }, { "docid": "ada651652294198b76a23f9bd2633a54", "score": "0.37468034", "text": "function getvalue($metric,$valuestartdate,$valueenddate){\n\tglobal $db,$teamdefinition,$contract;\n\t$valuestartdate_year = substr($valuestartdate,0,4);\n\t$valuestartdate_month = substr($valuestartdate,5,2);\n\t$valuestartdate_day = substr($valuestartdate,8,2);\n\t$valueenddate_year = substr($valueenddate,0,4);\n\t$valueenddate_month = substr($valueenddate,5,2);\n\t$valueenddate_day = substr($valueenddate,8,2);\n\t$valuestartdate_excel = unixdate_to_exceldate(mktime(0,0,0,$valuestartdate_month,$valuestartdate_day,$valuestartdate_year));\n\t$valueenddate_excel = unixdate_to_exceldate(mktime(23,59,59,$valueenddate_month,$valueenddate_day,$valueenddate_year));\n\t$valuesqldater = \" WHERE Teammate_Contact_Date >= $valuestartdate_excel\";\n\t$valuesqldater .= \" AND Teammate_Contact_Date <= $valueenddate_excel\";\n\t$sql = \"SELECT external_survey_id FROM raw_data\".$valuesqldater . $teamdefinition;\n\tif(!$result=$db->query($sql)){cl($sql);cl($db->error);}\n\t$surveys = 0;\n while($row=$result->fetch_assoc()){ $surveys++;}\n $topperformer=0;\n\t$bottomperformer=0;\n\t$crrr_yes=0;$crrr_inc=0;\n\t$kdi_sum=0;$kdi_phone=0;$kdi_phone_sum=0;\n\t$kdi_email=0;$kdi_email_sum=0;\n\tif($metric=='4'){$co='likely_to_recommend_paypal';}\n\telseif($metric=='3'){$co='issue_resolved';}\n\telseif($metric=='5'){$co='kdi___email,kdi___phone,Handled_professionally,Showed_genuine_interest,Took_ownership,Knowledge_to_handle_request,Valued_customer,Was_professional,Easy_to_understand,Provided_accurate_info,Helpful_response,Answered_concisely,Sent_in_timely_manner';}\n\telseif($metric=='15'){$co='workitem_phone_talk_time';}\n elseif($metric=='16'){$co='customer_contact_count,issue_resolved';}\n else{return 0;} // Unsupported metric\n\t$sql = \"SELECT $co FROM raw_data $valuesqldater \". $teamdefinition;\n $contra = 0;\n\tif(!$result=$db->query($sql)){cl($sql);cl($db->error);}\n\twhile($row=$result->fetch_assoc()){\n $contra++;\n if($metric=='4'){\n\t\t\tif ($row[likely_to_recommend_paypal]>8){$topperformer++;}\n\t\t\tif ($row[likely_to_recommend_paypal]<7){$bottomperformer++;}\n\t\t}\n elseif($metric=='3'){\n\t\t\tif ($row[issue_resolved]=='Yes'){$crrr_yes++;}\n\t\t\tif ($row[issue_resolved]!='') {$crrr_inc++;}\n\t\t}\n elseif($metric=='5'){\n\t\t\tif (($row[kdi___phone] != '') || ($row[kdi___email] != '')) {\n\t\t\t\t$k='Handled_professionally';if ($row[$k]!=''){ $kdi++; if ($row[$k]>7){$kdi_top++;}}\n\t\t\t\t$k='Showed_genuine_interest';if ($row[$k]!=''){ $kdi++; if ($row[$k]>7){$kdi_top++;}}\n\t\t\t\t$k='Took_ownership';if ($row[$k]!=''){ $kdi++; if ($row[$k]>7){$kdi_top++;}}\n\t\t\t\t$k='Knowledge_to_handle_request';if ($row[$k]!=''){ $kdi++; if ($row[$k]>7){$kdi_top++;}}\n\t\t\t\t$k='Valued_customer';if ($row[$k]!=''){ $kdi++; if ($row[$k]>7){$kdi_top++;}}\n\t\t\t\t$k='Was_professional';if ($row[$k]!=''){ $kdi++; if ($row[$k]>7){$kdi_top++;}}\n\t\t\t\t$k='Easy_to_understand';if ($row[$k]!=''){ $kdi++; if ($row[$k]>7){$kdi_top++;}}\n\t\t\t\t$k='Provided_accurate_info';if ($row[$k]!=''){ $kdi++; if ($row[$k]>7){$kdi_top++;}}\n\t\t\t\t$k='Helpful_response';if ($row[$k]!=''){ $kdi++; if ($row[$k]>7){$kdi_top++;}}\n\t\t\t\t$k='Answered_concisely';if ($row[$k]!=''){ $kdi++; if ($row[$k]>7){$kdi_top++;}}\n\t\t\t\t//$k='Sent_in_timely_manner';if ($row[$k]!=''){ $kdi++; if ($row[$k]>7){$kdi_top++;}}\n\t\t\t}\n\t\t}\n elseif($metric=='15'){\n\t\t\tif ($row[workitem_phone_talk_time]!=''){$att++;$att_sum+=$row[workitem_phone_talk_time];}\n\t\t}\n elseif($metric=='16'){\n if ($row[customer_contact_count]!=''){\n $ccc++;\n if (($row[customer_contact_count]==1) && ($row[issue_resolved]=='Yes')){\n $ccc_sum++;\n }\n }\n }\n \t}\n if($metric=='4'){\n $value = round((100*$topperformer/$surveys)-(100*$bottomperformer/$surveys),2);\n //echo \"100 * $topperformer / $surveys) - (100 * $bottomperformer / $surveys) = $value<br>\";\n }\n\telseif($metric=='3'){ $value = round(100*($crrr_yes/$crrr_inc),2);}\n\telseif($metric=='5'){ $value = round(($kdi_top/$kdi*100),2);}\n\telseif($metric=='15'){$value = round(($att_sum/$att),0);}\n elseif($metric=='16'){$value = round(($ccc_sum/$ccc*100),2);}\n\telse { $value = 0; }\n\tif ($contra>0){return $value;}\n\telse{return '0';}\n}", "title": "" }, { "docid": "de6a9fc4559dda3414d04bc3abc75579", "score": "0.37447152", "text": "public function customizeDate($date){\n $d1=strtotime($date);\n \n $newDate = (object) [];\n $newDate->date = date('d M Y',$d1);\n $newDate->time = date('H:i:s',$d1);\n\n return $newDate;\n }", "title": "" }, { "docid": "440814b021532e63bad13a81d0697458", "score": "0.37437704", "text": "function sample($analytics, $getDimensions)\n{\n $VIEW_ID = \"95444571\";\n // Create the DateRange object.\n $dateRange = new Google_Service_AnalyticsReporting_DateRange();\n $dateRange->setStartDate(\"7daysAgo\");\n $dateRange->setEndDate(\"today\");\n\n // Create the Metrics object.\n $sessions = new Google_Service_AnalyticsReporting_Metric();\n $sessions->setExpression(\"ga:sessions\");\n $sessions->setAlias(\"sessions\");\n\n //Create the Dimensions object.\n $dimensions = new Google_Service_AnalyticsReporting_Dimension();\n $dimensions->setName($getDimensions);\n\n // Create the ReportRequest object.\n $request = new Google_Service_AnalyticsReporting_ReportRequest();\n $request->setViewId($VIEW_ID);\n $request->setDateRanges($dateRange);\n $request->setDimensions(array($dimensions));\n // $request->setDimensions(array($userType));\n $request->setMetrics(array($sessions));\n\n $body = new Google_Service_AnalyticsReporting_GetReportsRequest();\n $body->setReportRequests( array( $request) );\n return $analytics->reports->batchGet( $body );\n\n}", "title": "" }, { "docid": "3c7b44bc1027cf4c1b6b5fcfe1977ce9", "score": "0.3742846", "text": "public function init()\n\t{\n\t\t$this->template_data = array(\n\t\t\t'invoices' => ORM::factory('Invoice')->where('created_at', 'BETWEEN', array(date('Y-m-01', strtotime('-1 MONTH')), date('Y-m-00')))->count_all()\n\t\t);\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "1a82d9e866f5119221c52e553f79f791", "score": "0.37394795", "text": "public function getAdminChartData($input)\n {\n // $input['start_date'] = \"01/01/2018\";\n // $input['end_date'] = \"12/31/2018\";\n\n // Success transaction count\n /*$successTran = \\DB::table('transactions');\n if(isset($input['start_date']) && isset($input['end_date']) && $input['start_date'] != '' && $input['end_date'] != '') {\n\n $successTran = $successTran->where(DB::raw('DATE(transactions.created_at)'), '>=', date('Y-m-d',strtotime($input['start_date'])).' 00:00:00');\n $successTran = $successTran->where(DB::raw('DATE(transactions.created_at)'), '<=', date('Y-m-d',strtotime($input['end_date'])).' 00:00:00');\n }\n $successTran = $successTran->where('status', '1')\n ->where('chargebacks', '<>', '1')\n ->where('refund', '<>', '1')\n ->where('is_flagged', '<>', '1')\n ->where('resubmit_transaction', '<>', '2')\n ->where('is_batch_transaction', '0')\n ->where('transactions.is_retrieval', '0')\n ->whereNull('transactions.deleted_at')\n ->whereNotIn('transactions.payment_gateway_id', ['16', '41'])\n ->count();\n\n // Success transaction total amount\n $successTranAmount = \\DB::table('transactions');\n if(isset($input['start_date']) && isset($input['end_date']) && $input['start_date'] != '' && $input['end_date'] != '') {\n\n $successTranAmount = $successTranAmount->where(DB::raw('DATE(transactions.created_at)'), '>=', date('Y-m-d',strtotime($input['start_date'])).' 00:00:00');\n $successTranAmount = $successTranAmount->where(DB::raw('DATE(transactions.created_at)'), '<=', date('Y-m-d',strtotime($input['end_date'])).' 00:00:00');\n }\n $successTranAmount = $successTranAmount->where('status', '1')\n ->where('chargebacks', '<>', '1')\n ->where('refund', '<>', '1')\n ->where('is_flagged', '<>', '1')\n ->where('resubmit_transaction', '<>', '2')\n ->where('is_batch_transaction', '0')\n ->where('transactions.is_retrieval', '0')\n ->whereNull('transactions.deleted_at')\n ->whereNotIn('transactions.payment_gateway_id', ['16', '41'])\n ->sum('amount');\n\n // Declined transaction count\n $failTran = \\DB::table('transactions');\n if(isset($input['start_date']) && isset($input['end_date']) && $input['start_date'] != '' && $input['end_date'] != '') {\n $failTran = $failTran->where(DB::raw('DATE(transactions.created_at)'), '>=', date('Y-m-d',strtotime($input['start_date'])).' 00:00:00');\n $failTran = $failTran->where(DB::raw('DATE(transactions.created_at)'), '<=', date('Y-m-d',strtotime($input['end_date'])).' 00:00:00');\n }\n $failTran = $failTran->where('status', '0')\n ->where('chargebacks', '<>', '1')\n ->where('refund', '<>', '1')\n ->where('is_flagged', '<>', '1')\n ->where('resubmit_transaction', '<>', '2')\n ->where('is_batch_transaction', '0')\n ->whereNull('transactions.deleted_at')\n ->whereNotIn('transactions.payment_gateway_id', ['16', '41'])\n ->count();\n\n // Declined transaction total amount\n $failTranAmount = \\DB::table('transactions');\n if(isset($input['start_date']) && isset($input['end_date']) && $input['start_date'] != '' && $input['end_date'] != '') {\n $failTranAmount = $failTranAmount->where(DB::raw('DATE(transactions.created_at)'), '>=', date('Y-m-d',strtotime($input['start_date'])).' 00:00:00');\n $failTranAmount = $failTranAmount->where(DB::raw('DATE(transactions.created_at)'), '<=', date('Y-m-d',strtotime($input['end_date'])).' 00:00:00');\n }\n $failTranAmount = $failTranAmount->where('status', '0')\n ->where('chargebacks', '<>', '1')\n ->where('refund', '<>', '1')\n ->where('is_flagged', '<>', '1')\n ->where('resubmit_transaction', '<>', '2')\n ->where('is_batch_transaction', '0')\n ->whereNull('transactions.deleted_at')\n ->whereNotIn('transactions.payment_gateway_id', ['16', '41'])\n ->sum('amount');\n\n // Chargebacks transaction count\n $chargebacksTran = \\DB::table('transactions');\n if(isset($input['start_date']) && isset($input['end_date']) && $input['start_date'] != '' && $input['end_date'] != '') {\n $chargebacksTran = $chargebacksTran->where(DB::raw('DATE(transactions.chargebacks_date)'), '>=', date('Y-m-d',strtotime($input['start_date'])).' 00:00:00');\n $chargebacksTran = $chargebacksTran->where(DB::raw('DATE(transactions.chargebacks_date)'), '<=', date('Y-m-d',strtotime($input['end_date'])).' 00:00:00');\n }\n $chargebacksTran = $chargebacksTran->where('chargebacks', '1')\n ->where('resubmit_transaction', '<>', '2')\n ->where('is_batch_transaction', '0')\n ->whereNull('transactions.deleted_at')\n ->whereNotIn('transactions.payment_gateway_id', ['16', '41'])\n ->count();\n\n // Chargebacks transaction total amount\n $chargebacksTranAmount = \\DB::table('transactions');\n if(isset($input['start_date']) && isset($input['end_date']) && $input['start_date'] != '' && $input['end_date'] != '') {\n $chargebacksTranAmount = $chargebacksTranAmount->where(DB::raw('DATE(transactions.chargebacks_date)'), '>=', date('Y-m-d',strtotime($input['start_date'])).' 00:00:00');\n $chargebacksTranAmount = $chargebacksTranAmount->where(DB::raw('DATE(transactions.chargebacks_date)'), '<=', date('Y-m-d',strtotime($input['end_date'])).' 00:00:00');\n }\n $chargebacksTranAmount = $chargebacksTranAmount->where('chargebacks', '1')\n ->where('resubmit_transaction', '<>', '2')\n ->where('is_batch_transaction', '0')\n ->whereNull('transactions.deleted_at')\n ->whereNotIn('transactions.payment_gateway_id', ['16', '41'])\n ->sum('amount');\n\n // Refund transaction count\n $refundTran = \\DB::table('transactions');\n if(isset($input['start_date']) && isset($input['end_date']) && $input['start_date'] != '' && $input['end_date'] != '') {\n $refundTran = $refundTran->where(DB::raw('DATE(transactions.refund_date)'), '>=', date('Y-m-d',strtotime($input['start_date'])).' 00:00:00');\n $refundTran = $refundTran->where(DB::raw('DATE(transactions.refund_date)'), '<=', date('Y-m-d',strtotime($input['end_date'])).' 00:00:00');\n }\n $refundTran = $refundTran->where('refund', '1')\n ->where('resubmit_transaction', '<>', '2')\n ->where('is_batch_transaction', '0')\n ->whereNull('transactions.deleted_at')\n ->whereNotIn('transactions.payment_gateway_id', ['16', '41'])\n ->count();\n\n // Refund transaction total amount\n $refundTranAmount = \\DB::table('transactions');\n if(isset($input['start_date']) && isset($input['end_date']) && $input['start_date'] != '' && $input['end_date'] != '') {\n $refundTranAmount = $refundTranAmount->where(DB::raw('DATE(transactions.refund_date)'), '>=', date('Y-m-d',strtotime($input['start_date'])).' 00:00:00');\n $refundTranAmount = $refundTranAmount->where(DB::raw('DATE(transactions.refund_date)'), '<=', date('Y-m-d',strtotime($input['end_date'])).' 00:00:00');\n }\n $refundTranAmount = $refundTranAmount->where('refund', '1')\n ->where('resubmit_transaction', '<>', '2')\n ->where('is_batch_transaction', '0')\n ->whereNull('transactions.deleted_at')\n ->whereNotIn('transactions.payment_gateway_id', ['16', '41'])\n ->sum('amount');\n\n // Flagged transaction count\n $flaggedTran = \\DB::table('transactions');\n if(isset($input['start_date']) && isset($input['end_date']) && $input['start_date'] != '' && $input['end_date'] != '') {\n $flaggedTran = $flaggedTran->where(DB::raw('DATE(transactions.flagged_date)'), '>=', date('Y-m-d',strtotime($input['start_date'])).' 00:00:00');\n $flaggedTran = $flaggedTran->where(DB::raw('DATE(transactions.flagged_date)'), '<=', date('Y-m-d',strtotime($input['end_date'])).' 00:00:00');\n }\n $flaggedTran = $flaggedTran->where('is_flagged', '1')\n ->where('resubmit_transaction', '<>', '2')\n ->where('is_batch_transaction', '0')\n ->whereNull('transactions.deleted_at')\n ->whereNotIn('transactions.payment_gateway_id', ['16', '41'])\n ->count();\n\n // Flagged transaction total amount\n $flaggedTranAmount = \\DB::table('transactions');\n if(isset($input['start_date']) && isset($input['end_date']) && $input['start_date'] != '' && $input['end_date'] != '') {\n $flaggedTranAmount = $flaggedTranAmount->where(DB::raw('DATE(transactions.flagged_date)'), '>=', date('Y-m-d',strtotime($input['start_date'])).' 00:00:00');\n $flaggedTranAmount = $flaggedTranAmount->where(DB::raw('DATE(transactions.flagged_date)'), '<=', date('Y-m-d',strtotime($input['end_date'])).' 00:00:00');\n }\n $flaggedTranAmount = $flaggedTranAmount->where('is_flagged', '1')\n ->where('resubmit_transaction', '<>', '2')\n ->where('is_batch_transaction', '0')\n ->whereNull('transactions.deleted_at')\n ->whereNotIn('transactions.payment_gateway_id', ['16', '41'])\n ->sum('amount');\n\n // Pending transaction count\n $pendingTran = \\DB::table('transactions');\n if(isset($input['start_date']) && isset($input['end_date']) && $input['start_date'] != '' && $input['end_date'] != '') {\n $pendingTran = $pendingTran->where(DB::raw('DATE(transactions.created_at)'), '>=', date('Y-m-d',strtotime($input['start_date'])).' 00:00:00');\n $pendingTran = $pendingTran->where(DB::raw('DATE(transactions.created_at)'), '<=', date('Y-m-d',strtotime($input['end_date'])).' 00:00:00');\n }\n $pendingTran = $pendingTran->where('status', '2')\n ->where('resubmit_transaction', '<>', '2')\n ->where('is_batch_transaction', '0')\n ->whereNull('transactions.deleted_at')\n ->whereNotIn('transactions.payment_gateway_id', ['16', '41'])\n ->count();\n\n // Pending transaction total amount\n $pendingTranAmount = \\DB::table('transactions');\n if(isset($input['start_date']) && isset($input['end_date']) && $input['start_date'] != '' && $input['end_date'] != '') {\n $pendingTranAmount = $pendingTranAmount->where(DB::raw('DATE(transactions.created_at)'), '>=', date('Y-m-d',strtotime($input['start_date'])).' 00:00:00');\n $pendingTranAmount = $pendingTranAmount->where(DB::raw('DATE(transactions.created_at)'), '<=', date('Y-m-d',strtotime($input['end_date'])).' 00:00:00');\n }\n $pendingTranAmount = $pendingTranAmount->where('status', '2')\n ->where('resubmit_transaction', '<>', '2')\n ->where('is_batch_transaction', '0')\n ->whereNull('transactions.deleted_at')\n ->whereNotIn('transactions.payment_gateway_id', ['16', '41'])\n ->sum('amount');\n */\n // total transaction count and amount\n /*$totalTran = $successTran + $failTran + $chargebacksTran + $refundTran + $flaggedTran + $pendingTran;\n $totalTranAmount = $successTranAmount + $failTranAmount + $chargebacksTranAmount + $refundTranAmount + $flaggedTranAmount + $pendingTranAmount;*/\n\n\n $date_condition = \"\";\n $user_condition = \"\";\n\n if ((isset($input['start_date']) && $input['start_date'] != '') && (isset($input['end_date']) && $input['end_date'] != '')) {\n $start_date = date('Y-m-d', strtotime($input['start_date']));\n $end_date = date('Y-m-d', strtotime($input['end_date']));\n\n $date_condition = \"and created_at between '\" . $start_date . \"' and '\" . $end_date . \"' \";\n }\n // else {\n\n // $date_condition = \"and created_at between date_sub(now() , interval 31 day) and now() \";\n // }\n\n if ((isset($input['user_id']) && $input['user_id'] != '')) {\n $user_id = $input['user_id'];\n $user_condition = \"and user_id = $user_id\";\n }\n $table = '';\n\n $query = <<<SQL\n select sum(volume) volume, sum(tx) as tx\n from\n\nSQL;\n\n $where = <<<SQL\n where 1\n $user_condition\n $date_condition\nSQL;\n\n $table = 'tx_success';\n $select = $query . $table . $where;\n $successD = \\DB::select($select)[0];\n $successD = (array) $successD;\n\n $table = 'tx_decline';\n $select = $query . $table . $where;\n $failD = \\DB::select($select)[0];\n $failD = (array) $failD;\n\n $table = 'tx_chargebacks';\n $select = $query . $table . $where;\n $chargebacksD = \\DB::select($select)[0];\n $chargebacksD = (array) $chargebacksD;\n\n $table = 'tx_refunds';\n $select = $query . $table . $where;\n $refundD = \\DB::select($select)[0];\n $refundD = (array) $refundD;\n\n $table = 'tx_flagged';\n $select = $query . $table . $where;\n $flaggdD = \\DB::select($select)[0];\n $flaggdD = (array) $flaggdD;\n\n $table = 'tx_pending';\n $select = $query . $table . $where;\n $pendingD = \\DB::select($select)[0];\n $pendingD = (array) $pendingD;\n\n\n $successTran = $successD['tx'];\n $failTran = $failD['tx'];\n $chargebacksTran = $chargebacksD['tx'];\n $refundTran = $refundD['tx'];\n $flaggedTran = $flaggdD['tx'];\n $pendingTran = $pendingD['tx'];\n $totalTran = $successTran\n + $failTran\n + $chargebacksTran\n + $refundTran\n + $flaggedTran\n + $pendingTran;\n\n $successTranAmount = $successD['volume'];\n $failTranAmount = $failD['volume'];\n $chargebacksTranAmount = $chargebacksD['volume'];\n $refundTranAmount = $refundD['volume'];\n $flaggedTranAmount = $flaggdD['volume'];\n $pendingTranAmount = $pendingD['volume'];\n $totalTranAmount = $successTran\n + $failTranAmount\n + $chargebacksTranAmount\n + $refundTranAmount\n + $flaggedTranAmount\n + $pendingTranAmount;\n\n\n\n return [\n 'success' => $successTran,\n 'fail' => $failTran,\n 'chargebacks' => $chargebacksTran,\n 'refund' => $refundTran,\n 'flagged' => $flaggedTran,\n 'pending' => $pendingTran,\n 'total' => $totalTran,\n 'successamount' => $successTranAmount,\n 'failamount' => $failTranAmount,\n 'chargebacksamount' => $chargebacksTranAmount,\n 'refundamount' => $refundTranAmount,\n 'flaggedamount' => $flaggedTranAmount,\n 'pendingamount' => $pendingTranAmount,\n 'totalamount' => $totalTranAmount,\n ];\n }", "title": "" }, { "docid": "61ea4657641a6b6b3094566bfb801cc5", "score": "0.37387794", "text": "function process_date_field($params) {\n\n # Globalize the date range\n global $date_fields;\n\n $date = array();\n $tokens = array();\n\n $sep = '[\\s\\+]';\n $nl = \"\\n\\t\";\n\n # Remove the GMT offset from fetched string\n $trunc_format = \"date_trunc('second', %s)\";\n\n # Grab global TIMEZONE constant\n $timezone = strtoupper(TIMEZONE);\n\n $now = select_scalar(\"SELECT \" . sprintf($trunc_format, \"now() AT TIME ZONE '$timezone'\"));\n $date['current'] = $now;\n\n $timestamp_name = \"start_timestamp\";\n $starttime_at_timezone = \"CAST($timestamp_name as TIMESTAMP WITH TIME ZONE) AT TIME ZONE '$timezone'\";\n $time_at_timezone_fmt = \"$nl CAST('%s' as TIMESTAMP WITH TIME ZONE) AT TIME ZONE '$timezone'\";\n # JJH XXX FIGURE OUT HOW TO DEAL WITH TIMEZONE\n $starttime_at_timezone = \"$timestamp_name\";\n $time_at_timezone_fmt = \"'%s'\";\n $timestamp_param = $params[\"text_$timestamp_name\"];\n\n # This will immediately put reporter.php in ''absolute date range'' mode\n $force_absolute_date = $params[\"force_absolute_date\"];\n\n # Date-string functions\n $format2 = \"substring($starttime_at_timezone from 0 for %d) || ':00 - ' || \" .\n \"$nl substring($starttime_at_timezone + interval '1 %s' from 0 for %d) || ':00' \" .\n \"$nl as $timestamp_name\";\n $format3 = \"substring($starttime_at_timezone from 0 for %d) || ' - ' || \" .\n \"$nl substring($starttime_at_timezone + interval '1 %s' from 0 for %d) \" .\n \"$nl as $timestamp_name\";\n $format4 = \"$starttime_at_timezone \" .\n \"$nl as $timestamp_name\";\n\n # ^ and $ only have meaning for text columns (not for timestamps),\n # but the drilldown generator is dumbed down so that it treats all\n # columns like text columns.\n $timestamp_param = preg_replace(\"/\\^/\", \"\", $timestamp_param);\n $timestamp_param = preg_replace(\"/\\\\$/\", \"\", $timestamp_param);\n\n # For back-compatibility (e.g., permalinks!), accept a non-quoted,\n # semi-colon delimited date specifier\n if (preg_match('/\\s*(;|\\|)\\s*/', $timestamp_param, $m) and \n !preg_match('/\"/', $timestamp_param, $m)) {\n $tokens = tokenize($timestamp_param);\n # Quoted date specifier\n } elseif (preg_match('/\"/', $timestamp_param, $m)) {\n $tokens = tokenize_quoted($timestamp_param);\n } else {\n $tokens[] = $timestamp_param;\n }\n\n foreach ($tokens as $token) {\n\n # Do date filtering\n if (! preg_match(\"/by /i\", $token)) {\n\n # Yesterday\n if (preg_match(\"/yesterday/i\", $token, $m)) {\n $operand = \"'yesterday' AT TIME ZONE '$timezone'\";\n $wheres[] = \"$starttime_at_timezone > $operand\";\n $absolute_start[] = select_scalar(\"SELECT \" . sprintf($trunc_format, $operand));\n $absolute_end[] = $now;\n }\n # Today\n elseif (preg_match(\"/today/i\", $token, $m)) {\n $operand = \"'today' AT TIME ZONE '$timezone'\";\n $wheres[] = \"$starttime_at_timezone > $operand\";\n $absolute_start[] = select_scalar(\"SELECT \" . sprintf($trunc_format, $operand));\n $absolute_end[] = $now;\n }\n # Past x increments\n elseif (preg_match(\n \"/(?:past|last)$sep*\" .\n \"(\\w+)$sep*\" .\n \"(\\w+)/i\", $token, $m)) {\n\n $quantity = $m[1];\n $unit = $m[2];\n\n $valid_date_units = array(\n \"microseconds\",\n \"milliseconds\",\n \"second\",\n \"minute\",\n \"hour\",\n \"day\",\n \"week\",\n \"month\",\n \"quarter\",\n \"year\",\n \"decade\",\n \"century\",\n \"millennium\",\n );\n\n # Sanity check on a \"past foo bars\" date range\n $tab = str_repeat(\"&nbsp;\", 5);\n if (! preg_match(\"/\" . join(\"|\", $valid_date_units) . \"/i\", $unit, $m)) {\n abort(\"Invalid unit ('<i>$unit</i>') used in Date range ('<i>$token</i>').</font>\" .\n \"Use one of the following:<br>\" .\n \"<pre>\\t\" . join(\"<br>\\t\", $valid_date_units) . \"</pre>\"\n );\n }\n\n $operand = \"now() AT TIME ZONE '$timezone' - interval '\" . strtonumeral($quantity) . \" $unit'\";\n $start_time = select_scalar(\"SELECT \" . sprintf($trunc_format, $operand));\n $wheres[] = \"$starttime_at_timezone > \" . sprintf($time_at_timezone_fmt, $start_time);\n $absolute_start[] = $start_time;\n $absolute_end[] = $now;\n }\n # Range (e.g., date1 - date2)\n elseif (preg_match(\"/(?:between)?\" .\n \"(.*)\" .\n \"(?:through|thru|and| +- +)\" .\n \"(.*)/i\", $token, $m)) {\n $wheres[] =\n \"($starttime_at_timezone > '$m[1]'\" . \" AND\" . \n \" $starttime_at_timezone < '$m[2]')\";\n $absolute_start[] = $m[1];\n $absolute_end[] = $m[2];\n }\n # Exact date\n elseif (preg_match(\"/-|\\//\", $token)) {\n $wheres[] = \"$starttime_at_timezone = '$token'\";\n $absolute_start[] = $token;\n $absolute_end[] = $token;\n }\n # Nothing (used to prevent an SQL error on a\n # clean bring-up of reporter.php)\n else {\n $wheres[] = \"$starttime_at_timezone = 'now()'\";\n }\n }\n # Do date aggregation\n else {\n\n if (preg_match(\"/by(?:-| *)sec(?:onds?)?/i\", $token)) {\n $clause = $format4;\n\n } elseif (preg_match(\"/by(?:-| *)min(?:utes?)?/i\", $token)) {\n $clause = sprintf($format3, 17, \"minute\", 17);\n\n } elseif (preg_match(\"/by(?:-| *)hours?/i\", $token)) {\n $clause = sprintf($format2, 14, \"hour\", 14);\n\n } elseif (preg_match(\"/by(?:-| *)days?/i\", $token)) {\n $clause = sprintf($format3, 11, \"day\", 11);\n\n } elseif (preg_match(\"/by(?:-| *)mon(?:ths?)?/i\", $token)) {\n $clause = sprintf($format3, 8, \"month\", 8);\n\n } elseif (preg_match(\"/by(?:-| *)years?/i\", $token)) {\n $clause = sprintf($format3, 5, \"year\", 5);\n }\n\n $date['select'][$timestamp_name] = $timestamp_name;\n $date[\"rollup\"] = \" | $token\";\n }\n }\n\n $type = strtolower(process_report_type($_GET));\n\n # Always show ''by second'' timestamps in Detail view\n if ($type == 'detail') {\n $clause = $format4;\n $date[\"rollup\"] = ' | by second';\n }\n\n # PROTECT AGAINST AN EMPTY DATE RANGE.\n # OUGHT TO PRINT A JAVASCRIPT ALERT AS WELL\n if (! sizeof($wheres)) {\n $operand = \"now() AT TIME ZONE '$timezone' - interval '24 hours'\";\n $where = \"$starttime_at_timezone > $operand\";\n $absolute_start[] = select_scalar(\"SELECT \" . sprintf($trunc_format, $operand));\n $absolute_end[] = $now;\n\n $date['select'][$timestamp_name] = $timestamp_name;\n }\n\n # JOIN all the WHERE clauses with OR\n # (unlike string searches on e.g., STDOUT, date searching requires an OR,\n # not an AND since a test result can only have one timestamp)\n $where = \"(\" . join(\" OR $nl\", array_unique($wheres)) . \")\";\n\n # In order to get the behavior we want with the timestamp column, we have\n # to move the WHERE clause into the subquery (the WHERE can even be\n # duplicated in the outer query seemingly without any noticable performance\n # degradation)\n $date['select_in_subquery'][$timestamp_name] = $clause;\n $date['where'][$timestamp_name] = $where;\n\n for ($i = 0; $i < sizeof($absolute_start); $i++) {\n $date['absolute'] .= $absolute_start[$i] . ' - ' . $absolute_end[$i] . ' | ';\n }\n $date['absolute'] = rtrim($date['absolute'], ' |');\n\n $date['absolute_start'] = $absolute_start;\n $date['absolute_end'] = $absolute_end;\n\n # Put reporter.php in absolute date range mode\n # (This is an option for cron/alerts.php)\n if ($force_absolute_date)\n $_GET[\"text_$timestamp_name\"] = $date['absolute'];\n\n # Globalize the date range\n $date_fields = $date;\n\n # Check the validity of the time input\n # This should probably go a bit earlier, but it is unclear where\n if( 0 == preg_match(\"/^\\d*-\\d*-\\d*\\s\\d*:\\d*:\\d*$/\", $date['absolute_start'][0]) ) {\n abort(\"Invalid unit ('<i>\".$timestamp_param.\"</i>') used in Date range.</font>\" .\n \"Date required to be in the format of YYYY-MM-DD HH:MM:SS.\");\n }\n\n return $date;\n}", "title": "" }, { "docid": "8424075ac8105211fc2ff3c555e5f42b", "score": "0.37383348", "text": "private function generateElectricityData(\\DateTimeImmutable $date, Feed $feed)\n {\n // Get feedData.\n $feedData = $this->feedDataRepository->findOneByFeed($feed);\n\n // 0 -> 5 kWh\n for ($hour = 0; $hour < 24; $hour++) {\n $value = \\rand(0, 50)/10;\n\n // Try to generate nice value for 24*7 graph\n switch((int)$date->format('N')) {\n case 6:\n case 7:\n // Saturday and sunday\n if (\\in_array($hour, [9, 10 ,11 ,12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23])) {\n $value = \\rand(0, 50)/10;\n } else {\n $value = \\rand(0, 50)/100;\n }\n break;\n default:\n // weekday\n if (\\in_array($hour, [7, 8, 9, 17, 18, 19, 20, 21, 22, 23])) {\n $value = \\rand(0, 50)/10;\n } else {\n $value = \\rand(0, 50)/100;\n }\n }\n\n $this->feedDataRepository->updateOrCreateValue(\n $feedData,\n new \\DateTimeImmutable($date->format(\"Y-m-d\") . $hour . ':00'),\n DataValue::FREQUENCY['HOUR'],\n $value\n );\n }\n $this->entityManager->flush();\n\n $this->performAgregateValue($date, $feed, DataValue::FREQUENCY['DAY']);\n $this->performAgregateValue($date, $feed, DataValue::FREQUENCY['WEEK']);\n $this->performAgregateValue($date, $feed, DataValue::FREQUENCY['MONTH']);\n $this->performAgregateValue($date, $feed, DataValue::FREQUENCY['YEAR']);\n }", "title": "" }, { "docid": "a2d59cc98e62bbe1cf5d87b3757c5674", "score": "0.37349284", "text": "static function getDataForWeekView($user_id, $start_date, $end_date, $dayHeaders) {\n global $i18n;\n\n // Start by obtaining all records in interval.\n $records = ttTimeHelper::getRecordsForInterval($user_id, $start_date, $end_date);\n\n $dataArray = array();\n\n // Construct the first row for a brand new entry.\n $dataArray[] = array('row_id' => null,'label' => $i18n->getKey('form.week.new_entry')); // Insert row.\n // Insert empty cells with proper control ids.\n for ($i = 0; $i < 7; $i++) {\n $control_id = '0_'. $dayHeaders[$i];\n $dataArray[0][$dayHeaders[$i]] = array('control_id' => $control_id, 'tt_log_id' => null,'duration' => null);\n }\n\n // Iterate through records and build $dataArray cell by cell.\n foreach ($records as $record) {\n // Create record id without suffix.\n $record_id_no_suffix = ttTimeHelper::makeRecordIdentifier($record);\n // Handle potential multiple records with the same attributes by using a numerical suffix.\n $suffix = 0;\n $record_id = $record_id_no_suffix.'_'.$suffix;\n $day_header = substr($record['date'], 8); // Day number in month.\n while (ttTimeHelper::cellExists($record_id, $day_header, $dataArray)) {\n $suffix++;\n $record_id = $record_id_no_suffix.'_'.$suffix;\n }\n // Find row.\n $pos = ttTimeHelper::findRow($record_id, $dataArray);\n if ($pos < 0) {\n $dataArray[] = array('row_id' => $record_id,'label' => ttTimeHelper::makeRecordLabel($record)); // Insert row.\n $pos = ttTimeHelper::findRow($record_id, $dataArray);\n // Insert empty cells with proper control ids.\n for ($i = 0; $i < 7; $i++) {\n $control_id = $pos.'_'. $dayHeaders[$i];\n $dataArray[$pos][$dayHeaders[$i]] = array('control_id' => $control_id, 'tt_log_id' => null,'duration' => null);\n }\n }\n // Insert actual cell data from $record (one cell only).\n $dataArray[$pos][$day_header] = array('control_id' => $pos.'_'. $day_header, 'tt_log_id' => $record['id'],'duration' => $record['duration']);\n }\n return $dataArray;\n }", "title": "" } ]
9dbc8667d4fb69d1710168c8c2f0c90c
Returns the main socket resource.
[ { "docid": "b1db2dd087c8be8c9c8196874e59a1c9", "score": "0.54693794", "text": "public function getResource()\n {\n return $this->resource;\n }", "title": "" } ]
[ { "docid": "8ccafa8859db1e68d2cb60608370c044", "score": "0.8067587", "text": "final public function getResource()\n {\n return $this->socket;\n }", "title": "" }, { "docid": "d8ea0d9c7a8205a2068a87fd39d821c4", "score": "0.7517994", "text": "public function getSocket();", "title": "" }, { "docid": "d8ea0d9c7a8205a2068a87fd39d821c4", "score": "0.7517994", "text": "public function getSocket();", "title": "" }, { "docid": "6a4cc99b18fd0d6876b0ea86e1704dc8", "score": "0.7377765", "text": "public function socket(){\n\t\treturn $this->_socket;\n\t}", "title": "" }, { "docid": "721cb522cc6e1406e380ca0eff24d5ca", "score": "0.7270384", "text": "protected function getSocket()\n\t{\n\t\tif (!is_resource($this->_socket)) {\n\t\t\t$this->_socket = fsockopen('udp://' . $this->getHost(), $this->getPort());\n\t\t}\n\n\t\treturn $this->_socket;\n\t}", "title": "" }, { "docid": "78d549f71fa3beeed2e134093fd4eb27", "score": "0.72058797", "text": "public function get_socket() {\r\n return $this->socket;\r\n }", "title": "" }, { "docid": "2ae286bb4aa98447e156aff969ce0dfa", "score": "0.7168792", "text": "function getSocket()\n {\n return $this->_socket;\n }", "title": "" }, { "docid": "9d158239719506b50fdceacc83e7bd55", "score": "0.7147446", "text": "public function getSocket()\n {\n return $this->socket;\n }", "title": "" }, { "docid": "9d158239719506b50fdceacc83e7bd55", "score": "0.7147446", "text": "public function getSocket()\n {\n return $this->socket;\n }", "title": "" }, { "docid": "9d158239719506b50fdceacc83e7bd55", "score": "0.7147446", "text": "public function getSocket()\n {\n return $this->socket;\n }", "title": "" }, { "docid": "ae2c2c4ff76a997d50b65ab17effa9f0", "score": "0.7118786", "text": "public function getSocket()\n {\n return $this->_sock;\n }", "title": "" }, { "docid": "b2d560926892692d387a7675f43e7447", "score": "0.694187", "text": "protected function getSocket()\n {\n if (isset($this->socket)) {\n return $this->socket;\n } else {\n return $this->connectZmq();\n }\n }", "title": "" }, { "docid": "1c48294d04cfd71110e595cf88c92fc9", "score": "0.69042814", "text": "public function getSocket()\n {\n return ArrayHelper::getValue($this->_pool, $this->connectionString, false);\n }", "title": "" }, { "docid": "a85830b3d3c986559873cbd1905ffaf5", "score": "0.6812426", "text": "public function getSocket($name);", "title": "" }, { "docid": "052a5df4e53a597a47ecf1c72b59f48a", "score": "0.6752209", "text": "public function GetSocket()\n\t{\n\t\treturn $this->m_hSocket;\n\t}", "title": "" }, { "docid": "84e00713ef51c51f5b47b3b8cfaa0618", "score": "0.6506302", "text": "protected function getResourceClass()\n {\n return 'TechDivision\\Socket\\Server';\n }", "title": "" }, { "docid": "ca6ac5e5008a2182868f3b27706c969a", "score": "0.6418579", "text": "public function socket();", "title": "" }, { "docid": "7fc2ff583fe0418a9a34014dd5f1b298", "score": "0.6326664", "text": "public function getSocket() {\n if ( $this->_socket === null ) {\n $this->_socket = new OrientSocket( $this->hostname, $this->port );\n $this->_protocolVersion = $this->_socket->connect()->protocolVersion;\n }\n return $this->_socket;\n }", "title": "" }, { "docid": "94a1f24130e7ea5e34fb7d5db95f2ae2", "score": "0.62946206", "text": "public function socket(): ?\\Socket\n {\n return $this->socket;\n }", "title": "" }, { "docid": "a27412256916285d8eb2cab0c074b7eb", "score": "0.6225635", "text": "abstract protected function createSocketInterface();", "title": "" }, { "docid": "6fb43ab0f0d2b8d0e6a980423e26b09d", "score": "0.6176279", "text": "public static function resource()\n\t{\n\t\treturn self::$_resource;\n\t}", "title": "" }, { "docid": "19193dfb4ae897b979e60cf158164aed", "score": "0.61277866", "text": "private function _construirUrlSocket()\n {\n // TODO: hacer configurable\n return 'tcp://127.0.0.1:20004';\n }", "title": "" }, { "docid": "4678c04d18598025293d66440f423d7a", "score": "0.60858643", "text": "public function getURL()\n {\n return $this->socketURL;\n }", "title": "" }, { "docid": "453ff0f61c2761ebebfbab94fcfa8255", "score": "0.60568506", "text": "public function getSockets();", "title": "" }, { "docid": "f538e107b00f7bc967ce81fe88a7d56b", "score": "0.60481256", "text": "public function getSocketType()\n {\n }", "title": "" }, { "docid": "d25f3ca1058a179f02d613a88b391cb3", "score": "0.6028352", "text": "function connect()\n {\n foreach ( $this->hosts as $host ) {\n list($ip,$port)=split(':',$host,2);\n if ($port==null)\n $port=6001; \n $this->socket = fsockopen( $ip, $port );\n if ( $this->socket ) {\n break;\n }\n }\n\n return $this->socket;\n }", "title": "" }, { "docid": "aa5bc05ea73a8b9144d838bca1e69b80", "score": "0.6028164", "text": "public function getSocketFactory()\n {\n if ($this->socketFactory === null) {\n $this->socketFactory = new Factory();\n }\n\n return $this->socketFactory;\n }", "title": "" }, { "docid": "79558d41793b4dc95dfe4df83d9c32eb", "score": "0.6015803", "text": "public function socketGetStatus($resource);", "title": "" }, { "docid": "7ec91aa889018d2c9dd97f37e468051d", "score": "0.5986545", "text": "public function resource()\n\t{\n\t\tif ( ! $this->_resource_name)\n\t\t\treturn NULL;\n\n\t\treturn Resource::get($this->resource_name());\n\t}", "title": "" }, { "docid": "157dbbe0246c7c5e7cf65a86988a9ea7", "score": "0.59596676", "text": "function mapi_open() {\n\t\t$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);\n\t\tif ($socket == FALSE) {\n\t\t\t$last_error = socket_strerror(socket_last_error());\n\t\t\treturn FALSE;\n\t\t}\n\n\t\treturn $socket;\n\t}", "title": "" }, { "docid": "440254985481dc7943897355943a3b60", "score": "0.5918321", "text": "public function create()\n {\n return stream_socket_client(\n $this->getAddress(),\n $errno,\n $errstr,\n $this->getTimeout() ?? $this->getTimeout()\n );\n }", "title": "" }, { "docid": "b3fd4f0c4be28f36e4c1a456729f8423", "score": "0.591733", "text": "public function create(): SocketInterface\n {\n return match ($this->implementation) {\n SocketImplementation::SOCKET => $this->createSocketSocket(),\n SocketImplementation::STREAM => $this->createStreamSocket(),\n SocketImplementation::FSOCKOPEN => $this->createFsockopenSocket()\n };\n }", "title": "" }, { "docid": "e78c2dac74fc0a4d12793db6562b3f9a", "score": "0.58892816", "text": "public function __construct($socketName);", "title": "" }, { "docid": "177e8712770d04e4c0ac478f769170d9", "score": "0.5883705", "text": "public function __construct($socketResource)\n {\n // set socket server resource\n $this->socket = $socketResource;\n }", "title": "" }, { "docid": "399b17e5838e5de1396f929c08649ad2", "score": "0.5882615", "text": "public function find_socket( $socket ){\n $socket_name = array_search($socket, $this->active_sockets);\n return $this->find_socket_by_name( $socket_name );\n }", "title": "" }, { "docid": "e217a9dc53a9b50eb6d9e09fec70cccc", "score": "0.5859583", "text": "private function getSocketStream() {\n\t\t$this->socket = $this->client->getConnection();\n\n\t\t// Open the socket if needed\n\t\tif (!is_resource($this->socket)) {\n\t\t\tif ($this->client->getLogLevel() >= 2) {\n\t\t\t\t$this->client->log(\"- Socket opened.\");\n\t\t\t}\n\n\t\t\t$url = $this->url;\n\t\t\t$errno = $errstr = 0;\n\t\t\t$scheme = isset($url[\"scheme\"]) ? strtolower($url[\"scheme\"]) : \"http\";\n\n\t\t\t$host = $url[\"host\"];\n\t\t\t$port = $url[\"port\"];\n\n\t\t\t$proxy = $this->client->getProxy();\n\t\t\tif ($proxy) {\n\t\t\t\t$proxy = explode(\":\", $proxy);\n\t\t\t\t$host = $proxy[0];\n\t\t\t\t$port = isset($proxy[1]) ? $proxy[1] : 80;\n\t\t\t}\n\n\t\t\t// Cache host resolves since sometimes fsockopen is slow for example on localhost\n\t\t\tif (!isset(self::$hostCache[$host])) {\n\t\t\t\t$ip = gethostbyname($host);\n\t\t\t\tself::$hostCache[$host] = $ip;\n\t\t\t} else {\n\t\t\t\t$ip = self::$hostCache[$host];\n\t\t\t}\n\n\t\t\t$contextOptions = array(\n\t\t\t\t'ssl' => array(\n\t\t\t\t\t'verify_peer' => false,\n\t\t\t\t\t'verify_host' => false\n\t\t\t\t),\n\n\t\t\t\t'tls' => array(\n\t\t\t\t\t'verify_peer' => false,\n\t\t\t\t\t'verify_host' => false\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t$sslContext = stream_context_create($contextOptions);\n\n\t\t\tif ($scheme == \"https\") {\n\t\t\t\t$this->socket = stream_socket_client(\"ssl://\" . $host . \":\" . $port, $errno, $errstr, 5, STREAM_CLIENT_CONNECT, $sslContext);\n\t\t\t} else if ($scheme == \"tls\") {\n\t\t\t\t$port = 443;\n\t\t\t\t$this->socket = stream_socket_client(\"tls://\" . $host . \":\" . $port, $errno, $errstr, 5, STREAM_CLIENT_CONNECT, $sslContext);\n\t\t\t} else {\n\t\t\t\t$this->socket = stream_socket_client(\"tcp://\" . $ip . \":\" . $port, $errno, $errstr, 5, STREAM_CLIENT_CONNECT, $sslContext);\n\t\t\t}\n\n\t\t\t// Socket connection failed\n\t\t\tif ($this->socket === false) {\n\t\t\t\tthrow new MOXMAN_Http_HttpClientException(\n\t\t\t\t\t\"Failed to open socket connection to: \" .\n\t\t\t\t\t$host . \":\" . $port .\n\t\t\t\t\t\". Err: [\" . $errno . \"] \" . $errstr\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// Set socket read timeout\n\t\t\tstream_set_timeout($this->socket, $this->client->getReadTimeout());\n\t\t\t$this->client->setConnection($this->socket);\n\t\t}\n\n\t\treturn $this->socket;\n\t}", "title": "" }, { "docid": "95be08e59ad5f2cd30e77a2c108885c9", "score": "0.58520335", "text": "public function resource()\n {\n return $this->_resource;\n }", "title": "" }, { "docid": "9298c7e5d9b22f9c4a97378ee910cd2a", "score": "0.5821344", "text": "private function initializeSocket() {\n $address = $this->getAddress();\n $port = $this->getPort();\n $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);\n\n if ($socket < 0) {\n trigger_error('socket_create() failed: ' . socket_strerror(socket_last_error()));\n }\n\n $result = socket_connect($socket, $address, $port);\n if (!$result) {\n trigger_error('socket_create() failed: ' . socket_strerror(socket_last_error()));\n return false;\n }\n\n return $socket;\n }", "title": "" }, { "docid": "911815b8ea5265085889326a18778aaf", "score": "0.5812747", "text": "public function create(): SocketInterface;", "title": "" }, { "docid": "6119593c3474632333fc9644511a066a", "score": "0.5748602", "text": "private function getSock()\n {\n // Try connecting\n if (!($sock = @fsockopen($this->host, $this->port, $errno, $errstr, self::timeout))) {\n throw new Exception('Error connecting');\n }\n\n // Try getting stuff\n $buffer = '';\n while ($mid = @fgets($sock)) {\n $buffer .= $mid;\n }\n\n // Quit\n @fclose($sock);\n\n // Output:\n return $buffer;\n }", "title": "" }, { "docid": "c02fa2ffddb6a3da27813708519be81f", "score": "0.5747464", "text": "public function getConnection(){\n if($this->socket && is_resource($this->socket) && !feof($this->socket))\n return $this->socket;\n\n foreach($this->trackers as $host) {\n $parts = parse_url($host);\n if(!isset($parts['port']))\n $parts['port'] = self::DEFAULT_PORT;\n\n $errno = null;\n $errstr = null;\n $this->socket = fsockopen($parts['host'], $parts['port'], $errno, $errstr, $this->requestTimeout);\n if($this->socket)\n break;\n }\n\n if(!is_resource($this->socket) || feof($this->socket)){\n throw new Doggy_Util_MogileFs_Exception(\"doConnection failed to obtain connection\");\n } else{\n return $this->socket;\n }\n }", "title": "" }, { "docid": "d968da692c665b2362f498f8caad54ac", "score": "0.57265157", "text": "protected function createServer()\n {\n if ($this->localSocket) {\n // Parse socket name like `tcp://0.0.0.0:8090`.\n // TODO: Support Unix domain\n $list = explode(':', $this->localSocket);\n $this->protocol = $list[0] ?? null;\n $this->address = $list[1] ? ltrim($list[1], '\\/\\/') : null;\n $this->port = $list[2] ?? null;\n\n // `Stream` extension instead of `Socket` extension in order to support fread/fwrite on connection.\n //\n // 封装体可用的少量套接字选项.\n // Available Socket Context Options for all wrappers.\n // @doc http://php.net/manual/en/context.socket.php\n $options = [\n 'socket' => [\n // The syntax is ip:port for IPv4, and [ip]:port for IPv6.\n // Setting the IP or port to 0 will let the system choose\n // the IP and/or port.\n 'bindto' => $this->address . ':' . $this->port,\n\n // Used to liimit the number of outstanding connections in the socket's listen queue.\n 'backlog' => $this->backlog,\n\n // PHP7.0.1\n // Overrides the OS default regarding mapping IPv4 into IPv6.\n //'ipv6_v6only' => '',\n\n // 7.0.0\n // Allows multiple bindings to a same ip:port pair.\n // Avoid thundering herd.\n 'so_reuseport' => true,\n\n // PHP7.0.0\n // Enables sending and receiving data to/from broadcast addresses.\n //'so_broadcast' => '',\n\n // PHP7.1.0\n // Setting this to TRUE will set SOL_TCP,NO_DELAY=1\n // appropriately, thus disabling the TCP Nagle algorithm.\n //'tcp_nodelay' => true,\n ],\n ];\n $params = null;\n $context = stream_context_create($options, $params);\n\n // Creates a stream or datagram socket on the specified local socket.\n $errno = 0;\n $errstr = '';\n $flags = ($this->protocol === 'udp') ? STREAM_SERVER_BIND : STREAM_SERVER_BIND | STREAM_SERVER_LISTEN;\n $this->socketStream = stream_socket_server($this->localSocket, $errno, $errstr, $flags, $context);\n if (! $this->socketStream) {\n throw new Exception(sprintf('Create socket server fail, errno: %s, errstr: %s', $errno, $errstr));\n }\n\n // 把封装了套接字的流导入到socket扩展的资源中.\n // Imports a stream that encapsulates a socket into a socket extension resource.\n $socket = socket_import_stream($this->socketStream);\n\n if ($socket !== false && $socket !== null) {\n // 套接字可用的全量套接字选项.\n // Available Socket Options for the socket.\n // @doc http://php.net/manual/en/function.socket-get-option.php\n\n // Level number: `php -r \"print_r(getprotobyname('tcp'));\"`, SOL_TCP==6\n // @doc http://php.net/manual/en/function.getprotobyname.php;\n\n // Connections are kept active with periodic transmission of messages,\n // if the connected socket fails to respond to these messages,\n // the connection is broken and processes writing to that socket are notified with a SIGPIPE signal.\n socket_set_option($socket, SOL_SOCKET, SO_KEEPALIVE, 1);\n\n // Nagle TCP algorithm is disabled.\n socket_set_option($socket, SOL_TCP, TCP_NODELAY, 1);\n }\n\n // Switch to non-blocking mode, affacts calls like fgets and fread that read from the stream.\n // In non-blocking mode, an fgets call will always return right away.\n if (! stream_set_blocking($this->socketStream, false)) {\n throw new Exception('Switch to non-blocking mode fail');\n }\n\n // Store current process his socket stream.\n $this->read[] = $this->socketStream;\n $this->write[] = $this->socketStream;\n $this->except = [];\n }\n }", "title": "" }, { "docid": "f69995cb4113b81a36475ede7f68da6f", "score": "0.5689851", "text": "public function get_resource() {\n return (isset($this->resource)) ? $this->resource : null;\n }", "title": "" }, { "docid": "8fe5efb291079dcc5dc26f3b56a571f9", "score": "0.56770587", "text": "private function openApiSocket() {\n\t\t$address = '0.0.0.0';\n\n\t\t// read port from config-file\n\t\t$port = intval($this->chatBot->vars['API Port']);\n\t\tif ($port < 1 || $port > 65535) {\n\t\t\t$this->logger->log('ERROR', \"API's port must be within 1 and 65535, currently it is $port\");\n\t\t\treturn;\n\t\t}\n\n\t\t// Create a TCP Stream socket\n\t\t$this->apisocket = stream_socket_server(\"tcp://$address:$port\", $errno, $errstr);\n\t\tif ($this->apisocket) {\n\t\t\t$this->logger->log('DEBUG', 'API socket bound successfully');\n\t\t\tstream_set_blocking($this->apisocket, 0);\n\t\t\t$this->socketNotifier = new SocketNotifier($this->apisocket,\n\t\t\t\tSocketNotifier::ACTIVITY_READ, array($this, 'onApiActivity'));\n\t\t\t$this->socketManager->addSocketNotifier($this->socketNotifier);\n\t\t} else {\n\t\t\t$this->logger->log('ERROR', \"$errstr ($errno)\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "40cbd7ec65b9689e7da47ca667a3e026", "score": "0.5649218", "text": "public function getEndPoint($resource);", "title": "" }, { "docid": "fe86fc7d8ba87d701fd9aba26d7ae954", "score": "0.5625406", "text": "public final function getResource()\r\n\t{\r\n\t\treturn $this->ssh;\r\n\t}", "title": "" }, { "docid": "da69da70062bd78b58d9aa02452bd088", "score": "0.5610737", "text": "public abstract function newInstance($socket= NULL);", "title": "" }, { "docid": "d803180df3aab8cdd72ab8e7916fd096", "score": "0.56079566", "text": "protected function open() {\n if ($this->sock)\n return $this->sock;\n foreach ($this->search as $addr)\n if ($this->sock = self::try_open($addr)) {\n $port = false;\n socket_getpeername($this->sock, $this->peer, $port);\n if ($port) $this->peer .= ':'.$port;\n return $this->sock;\n }\n throw new RBGException('Can not find EGD socket');\n }", "title": "" }, { "docid": "1e8009c1ed8df8757c31e6c2121a1c94", "score": "0.5597733", "text": "public function getResource()\n {\n return $this->_resource;\n }", "title": "" }, { "docid": "afccf2e76ebfd2d5f131f5226b906f8a", "score": "0.5579563", "text": "public function setSocket(string $socket)\n {\n $this->localSocket = $socket;\n\n return $this;\n }", "title": "" }, { "docid": "508b44d78511e78279741482debc9d64", "score": "0.55719674", "text": "public function getResource() {\n return $this->_resource;\n }", "title": "" }, { "docid": "9819d46967aadcfe063587f210379baf", "score": "0.5569424", "text": "function socket()\n{\n}", "title": "" }, { "docid": "c94838244b7a54dac685d5ae091a486a", "score": "0.5568534", "text": "public function getResource() {\n\t\treturn $this->resource;\n\t}", "title": "" }, { "docid": "712aaa64b84c58af45c0c5117ff3fcf7", "score": "0.55679756", "text": "public function getResource()\n\t{\n\t\treturn $this->resource;\n\t}", "title": "" }, { "docid": "712aaa64b84c58af45c0c5117ff3fcf7", "score": "0.55679756", "text": "public function getResource()\n\t{\n\t\treturn $this->resource;\n\t}", "title": "" }, { "docid": "0db4bc4eea89855519e1709bf946307a", "score": "0.5564634", "text": "public function socket(IoServer $instance = null);", "title": "" }, { "docid": "a2d7f3226c97cc52530b35414f7454e1", "score": "0.5556308", "text": "public function http() {\n\t\tif (!empty($this->http)) {\n\t\t\treturn $this->http;\n\t\t}\n\t\t$url = $this->site();\n\t\t$this->http = & new HttpSocket();\n\t\t$this->http->configUri($url);\n\t\tif ($this->http->config['request']['uri']['scheme'] != 'http') {\n\t\t\t$this->http->config['scheme'] = $this->http->config['request']['uri']['scheme'];\n\t\t}\n\t\treturn $this->http;\n\t}", "title": "" }, { "docid": "8c2eec53ff8d7dd8ab1204c4abdc4874", "score": "0.5551268", "text": "public function getUnixSocket(): ?string\n {\n\n return $this->_attributes[ 'unix_socket' ] ?? null;\n\n }", "title": "" }, { "docid": "1bdced4a2062d6b1eb407a20ba1fdc5a", "score": "0.55494297", "text": "final protected function getIO() {\n if ($this->io) {\n return $this->io;\n }\n\n $objectFactory = new ObjectFactory();\n $this->io = $objectFactory->createFromConfig(self::CONFIG_ROUTER_IO, self::DEFAULT_ROUTER_IO, self::CLASS_ROUTER_IO);\n\n return $this->io;\n }", "title": "" }, { "docid": "794fc73988fb59b7228b01450b8cf681", "score": "0.55461204", "text": "public function getSmallSocketTag() {\n // 'size' => 18\n return WCF::getTPL()->fetch('_relicList', 'wcf', ['socketList' => $this->getSockets(),'size' => 18]);\n }", "title": "" }, { "docid": "84dd22e16096a2a42ef3a77f5333bcc9", "score": "0.5542122", "text": "public function getResource() {\n if (!$this->resource) {\n $this->createResource();\n }\n\n return $this->resource;\n }", "title": "" }, { "docid": "49f918d15fd04ac6e5b9380883de8ff8", "score": "0.553766", "text": "public function websocket()\n {\n return $this->pterodactyl->servers->websocket($this->identifier);\n }", "title": "" }, { "docid": "fd881d881d189c396623fc4bbed9b5f6", "score": "0.54937315", "text": "function addTcpSocket() {}", "title": "" }, { "docid": "2a58aa841706c352f1735faedbb27558", "score": "0.54817206", "text": "protected function getConfiguredMysqliSocket() {}", "title": "" }, { "docid": "1a11d94bfd410efc07f3e6f58dbc9b4c", "score": "0.5462212", "text": "private function getSocketId() : string\n {\n// need checking before socket creating\n if (count($this->sockets) >= self::MAX_SOCK) {\n throw new Exception('Cannot get socket id: reach maximal sockets count');\n }\n\n while(true) {\n $this->idCounter++;\n if ($this->idCounter === self::MAX_SOCK) $this->idCounter = 1;\n\n $id = self::SOCKET_ID_PREFIX . $this->idCounter;\n if (!isset($this->sockets[$id])) break;\n }\n\n return $id;\n }", "title": "" }, { "docid": "2b6460c8d32fc87d934ad5f5ee90acd5", "score": "0.54552555", "text": "public function getResource() {\n return $this->resource;\n }", "title": "" }, { "docid": "2b6460c8d32fc87d934ad5f5ee90acd5", "score": "0.54552555", "text": "public function getResource() {\n return $this->resource;\n }", "title": "" }, { "docid": "cc396971a57bfbcf19a07fe9c2a76577", "score": "0.5450741", "text": "public function find_socket_by_name( $socket_name ){\n if( isset($this->accepted_sockets[ $socket_name ]) )\n return $this->accepted_sockets[ $socket_name ];\n return null;\n }", "title": "" }, { "docid": "70e361fdfcc0e18ccd5fe1487b25646d", "score": "0.5447324", "text": "function addUnixSocket() {}", "title": "" }, { "docid": "2b3f6820406a949c4566362c501936d9", "score": "0.5423748", "text": "public function getResource() {\n return $this->resource;\n }", "title": "" }, { "docid": "4a9c4ba29984fb1b0fcbbb66cd2cbdd0", "score": "0.542343", "text": "public static function get() {\n\t\tif ( ! empty ( static::$_server ) ) {\n\t\t\treturn static::$_server;\n\t\t}\n\n\t\treturn static::parse();\n\t}", "title": "" }, { "docid": "6eff2443f6a634116acd3a31e8fa0e49", "score": "0.5419549", "text": "public static function Default() {\n return new Client(\"/run/phpcloud/phpcloud.sock\");\n }", "title": "" }, { "docid": "2558ec79cbf272a0a6f3fa452182e969", "score": "0.5404239", "text": "function register_socket($sock, $ipaddr=null, $port=null) {\n global $resource_type_map, $udp_host_map;\n my_print(\"Registering socket $sock for ($ipaddr:$port)\");\n $resource_type_map[(int)$sock] = 'socket';\n if ($ipaddr) {\n $udp_host_map[(int)$sock] = array($ipaddr, $port);\n #dump_array($udp_host_map, \"UDP Map after registering a new socket\");\n }\n}", "title": "" }, { "docid": "5b35dd3c7b242dd7be09e54e3a6099e0", "score": "0.53658146", "text": "function get_resource();", "title": "" }, { "docid": "22adfbc9823b2a0836010813814c138e", "score": "0.5352295", "text": "protected function getResource()\n {\n $paths = $this->grav['uri']->paths();\n $paths = array_splice($paths, 1);\n $resource = $paths[0];\n return $resource;\n }", "title": "" }, { "docid": "875d0ffd91c96a4877fd35e6e8593018", "score": "0.5347185", "text": "public function getResource()\n {\n return $this->fusionValue('resource');\n }", "title": "" }, { "docid": "6a033bd1c600429cb1f67133126dc8b0", "score": "0.5345057", "text": "function __loadHttpSocket(){\n \tif(!$this->Http){\n \t\tApp::import('Core','HttpSocket');\n \t\t$this->Http = new HttpSocket();\n \t}\n }", "title": "" }, { "docid": "bfb71b3bfd3523b3304bca5c67d585e9", "score": "0.5340084", "text": "private function getSocket(int $timeout = 1)\n {\n $stream = stream_socket_client($this->socketAdress, $errno, $errstr);\n if (!$stream) {\n $message = sprintf(\"Can't reach the call monitor port! Error: %s (%s)!\", $errstr, $errno);\n throw new \\Exception($message);\n }\n $socket = socket_import_stream($stream);\n socket_set_option($socket, SOL_SOCKET, SO_KEEPALIVE, 1);\n stream_set_timeout ($stream, $timeout);\n $this->nextSocketRefresh = time() + self::REFRESHTIME;\n \t$this->fritzBoxSocket = $stream;\n }", "title": "" }, { "docid": "56089121968db63ffc01afa390ed13f9", "score": "0.53372586", "text": "public function server()\n {\n return $this->server;\n }", "title": "" }, { "docid": "6f9b284c418278d8d29fa4d756e5cfbb", "score": "0.53213453", "text": "private function createSocket()\n {\n if (($socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) === false) {\n throw new Exception('socket_create() failed: ' . socket_strerror(socket_last_error()));\n }\n\n if (($result = socket_connect($socket, $this->ip_address, 9999)) === false) {\n throw new Exception('socket_bind() failed: ' . socket_strerror(socket_last_error($socket)));\n }\n\n $this->socket = $socket;\n }", "title": "" }, { "docid": "a547313b9c3684595c45bf32995ad4a2", "score": "0.53029716", "text": "public function __construct(SocketResource $resource, string $address = '127.0.0.1', int $port = 80)\n {\n parent::__construct($resource, $address, $port);\n\n $this->resource = $resource->resource();\n }", "title": "" }, { "docid": "556498f67bddf8023e9bb69ff98cd5fe", "score": "0.5301784", "text": "public function setSocket($socket) {\n $this->socket = $socket;\n return $this;\n }", "title": "" }, { "docid": "4a913d548f7c4a1f80ed247fdfaf75b9", "score": "0.52968156", "text": "private function createSocket()\n {\n $this->socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);\n if ($this->socket === false)\n {\n \n if($this->PRINT_INFO)\n echo \"socket_create() failed: reason: \" . socket_strerror(socket_last_error()) . \"\\n\";\n }\n else\n {\n if($this->PRINT_INFO)\n echo \"OK.\\n\";\n }\n \n }", "title": "" }, { "docid": "50b18870a5085a265ed49e0a6c7fdfa2", "score": "0.52904487", "text": "public function getConResource() {\n return $this->db_conn;\n }", "title": "" }, { "docid": "e6114106eb3f6ca5ecfdd78a19bf43aa", "score": "0.5283499", "text": "public function server() {\n return $this->server;\n }", "title": "" }, { "docid": "4ec2baa3a14317b4919125319f21570f", "score": "0.52688974", "text": "function socket_create(int $domain, int $type, int $protocol): Socket|false {}", "title": "" }, { "docid": "0996d083528fdd6514fb202a3c5f2f74", "score": "0.5267018", "text": "public function __construct()\n {\n parent::__construct();\n\n $this->createSocket(self::SOCKET_VALUE);\n }", "title": "" }, { "docid": "540737ce8522f7f91148eb2444f5ad0f", "score": "0.52631074", "text": "public function &server()\n {\n return $this->globals[\"server\"];\n }", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "bcb8cfd1242c834efb4bd3ed7e57cb6f", "score": "0.0", "text": "public function destroy($id)\n {\n //\n\n $news = Gallery::find($id);\n @unLink(base_path().'/public/uplodes/newsphoto/'.$news->first()->image);\n @unLink(base_path().'/public/uplodes/newsphoto70/'.$news->first()->image);\n $news->delete();\n return redirect('/admin/Gallery')->withFlashMessage('News Deleted');\n\n }", "title": "" } ]
[ { "docid": "dcc1d6b4440ac73f55e995eb411296ea", "score": "0.6932749", "text": "public function destroy($id)\n {\n dd('Remove the specified resource from storage.');\n }", "title": "" }, { "docid": "dcc1d6b4440ac73f55e995eb411296ea", "score": "0.6932749", "text": "public function destroy($id)\n {\n dd('Remove the specified resource from storage.');\n }", "title": "" }, { "docid": "6ffd51684d27200dd20bb77ae5392465", "score": "0.65282005", "text": "public function dispatchOnPostRemoveResource($resource);", "title": "" }, { "docid": "20340ae69f46965449dc508b639c84e9", "score": "0.6511765", "text": "public function remove_storage()\n\t{\n\t\t$this->_storage->destroy_storage();\n\t}", "title": "" }, { "docid": "052edc379f178da3bc9936ef223b6ef8", "score": "0.64856714", "text": "public function remove() {\n Storage::disk('public')->delete($this->getPath());\n $this->delete(); //Remove db record\n }", "title": "" }, { "docid": "8566de5772ba8f11471da580f8907d09", "score": "0.64848197", "text": "public static function remove(string $resourcePath): void\n {\n $file = self::generatePath(\n self::generateHash($resourcePath)\n );\n\n if (\\is_file($file)) {\n \\unlink($file);\n }\n }", "title": "" }, { "docid": "b9b85ab47af2f085664ea4fb3f54b26d", "score": "0.6444909", "text": "public function dispatchOnPreRemoveResource($resource);", "title": "" }, { "docid": "7c8424d31eaa624067dc5241abfb9372", "score": "0.6257354", "text": "public function deleteStorage($storageId);", "title": "" }, { "docid": "5881486a94aded91c41895b5d1b51444", "score": "0.6238561", "text": "public function delete($resource) {\r\n\t\t\t\r\n\t\t$url = $this->_path . '/api/v2' . $resource;\r\n\t\t\r\n\t\t$curl = curl_init();\r\n\t\tcurl_setopt($curl, CURLOPT_URL, $url);\r\n\t\tcurl_setopt($curl, CURLOPT_HTTPHEADER, $this->_headers);\r\n\t\tcurl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\r\n\t\tcurl_setopt($curl, CURLOPT_VERBOSE, 1);\r\n\t\tcurl_setopt($curl, CURLOPT_HEADER, 1);\r\n\t\tcurl_setopt($curl, CURLOPT_CUSTOMREQUEST, \"DELETE\");\r\n\t\tcurl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);\r\n\t\t$response = curl_exec($curl);\r\n\t\t$http_status = curl_getinfo($curl, CURLINFO_HTTP_CODE);\r\n\t\t$header_size = curl_getinfo($curl, CURLINFO_HEADER_SIZE);\r\n\t\t$headers = substr($response, 0, $header_size);\r\n\t\t$body = substr($response, $header_size);\r\n\t\tself::http_parse_headers($headers);\t \r\n\t\tcurl_close ($curl);\r\n\t\tif ($http_status == 204) {\r\n\t \treturn $http_status . ' DELETED';\r\n\t\t } else {\r\n\t\t \t$this->error($body, $url, null, 'DELETE');\r\n\t\t }\r\n\t}", "title": "" }, { "docid": "71cdf2c8771b0884ed0346cbff1672a0", "score": "0.62021154", "text": "abstract protected function destroyResource(): void;", "title": "" }, { "docid": "8c0ed41f8673fd843b7ffdb22bce5eb0", "score": "0.611688", "text": "public function afterDelete($resource)\n {\n return $resource;\n }", "title": "" }, { "docid": "77d39170a9748d8eca11f292068832c6", "score": "0.6077847", "text": "public function delete($storageName, $key);", "title": "" }, { "docid": "ece2955e505228c5979763b54ea0ee46", "score": "0.6066214", "text": "public function remove(\n int $right,\n $resource,\n IUser $user,\n ?IResource $parentResource = null\n ): void\n {\n $hash = $this->hash($right, $resource, $user, $parentResource);\n $this->storage->remove($hash);\n }", "title": "" }, { "docid": "43dc6df10818b4435103bc0ee31fc8d1", "score": "0.6045101", "text": "public function destroy($id)\n {\n $record = Resource::where('id', $id)->get();\n\n if (!empty($record[0])) {\n DB::beginTransaction();\n\n $isRemoved = self::remove($record);\n }\n }", "title": "" }, { "docid": "db4382353b96e87cb5a70c801383930a", "score": "0.603214", "text": "public function delete($resourceId = null, $options = []);", "title": "" }, { "docid": "1a7799a3edae94b9a12c008d1d703c57", "score": "0.59831214", "text": "public function deleteStorageService($name);", "title": "" }, { "docid": "a2014b07fec4eb27432905d903e64664", "score": "0.59784347", "text": "public function destroy($id)\n {\n $storage = Storage::find($id);\n if($storage->item())\n {\n $storage->item()->detach();\n if( $storage->delete() )\n {\n return response('Deleted.',200);\n }\n }\n return response('Error.',400);\n }", "title": "" }, { "docid": "f23ad90184663348cc9db3cf44d0b0a5", "score": "0.595982", "text": "public function destroy(Resource $resource)\n {\n //\n\t\t\t\treturn response()->json([\n\t\t\t\t\t'destroyed'=>$resource->delete()\n\t\t\t\t]);\n }", "title": "" }, { "docid": "462a710c39c75c675bfe433bce80e2fe", "score": "0.5951811", "text": "public function destroy()\n {\n if ($this->instance instanceof Storage) {\n $this->instance->destroy();\n }\n $this->instance = null;\n }", "title": "" }, { "docid": "c39bd1cfb71eb924026011c0e976a9d4", "score": "0.5933563", "text": "public function delete(string $resourceType, $modelOrResourceId): void;", "title": "" }, { "docid": "31f350f911a74d37fb3a78e6981becb5", "score": "0.5921418", "text": "public function removeStorage()\n\t{\n\t\t$this->taskExec('docker rm chrome-print-storage')->run();\n\t}", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "e03265a289855852afd2372dcb1d8daa", "score": "0.58933157", "text": "public function remove($path, $hard = false);", "title": "" }, { "docid": "7a7d76b4d53301e7ae6922b772849358", "score": "0.5886972", "text": "public function destroy($file)\n {\n $file = File::where('id', $file)->first();\n $url = str_replace('storage', 'public', $file->url);\n Storage::delete($url);\n $file->delete();\n return redirect()->route('files.index')->with('eliminar', 'ok');\n }", "title": "" }, { "docid": "3f6a8794d81fc01347d2f3307ac44d78", "score": "0.58504206", "text": "public function destroy($id)\n {\n //\n\n $contratista= contratistas::findOrFail($id);\n\n if (Storage::delete('public/'.$contratista->Foto)){\n Contratistas::destroy($id);\n\n }\n\n \n \n return redirect('contratistas')->with('Mensaje','Contratista eliminado');\n }", "title": "" }, { "docid": "a85763dd50ac74b8d2b8124b1c0e3e7b", "score": "0.5850285", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n return back()->with('info', 'Resource deleted');\n }", "title": "" }, { "docid": "02a5bc50f3aa8ecd04834387832bc77c", "score": "0.5844418", "text": "public function destroy($id)\n {\n // $this->authorize('haveaccess','producto.destroy');\n $producto= Producto::findOrFail($id);\n\n if(Storage::delete('public/'.$producto->imagen)){\n\n Producto::destroy($id); \n }\n\n return redirect('producto');\n }", "title": "" }, { "docid": "8f406917023a0110d93d6350033a3ab5", "score": "0.58313775", "text": "public function removeItem($id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "title": "" }, { "docid": "a193f7ebf258b5fb63b8919a07678081", "score": "0.5821789", "text": "public function removeAll ($storage) {}", "title": "" }, { "docid": "dc36a581460d40a22ac889b4e61a4ab9", "score": "0.58165264", "text": "public function removeResource($resourceID)\n {\n $resourceID = db::escapechars($resourceID);\n $sql = \"DELETE FROM kidschurchresources WHERE resourceID='$resourceID' LIMIT 1\";\n $result = db::execute($sql);\n if($result){\n return true;\n }\n else{\n return false;\n }\n }", "title": "" }, { "docid": "83da6d00e9ec003d7115d52e8eaed9e7", "score": "0.5812055", "text": "public function del($path);", "title": "" }, { "docid": "c603e0ea04551111c5de9c6585b2815e", "score": "0.5802033", "text": "public function delete()\n {\n $this->repository->git('rm %s', escapeshellarg($this->getRelativePathname())\n );\n }", "title": "" }, { "docid": "f35aaf17008b130a60b3962b50777f92", "score": "0.5800284", "text": "public function unlink();", "title": "" }, { "docid": "818914cdd28df643181e6a2330bc11c4", "score": "0.5789049", "text": "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 }", "title": "" }, { "docid": "8f1b5736b25701e2b67e4f655f581689", "score": "0.57634306", "text": "public function testResourceRemoveOne()\n {\n $resourceArea = new Zend_Acl_Resource('area');\n $this->_acl->add($resourceArea)\n ->remove($resourceArea);\n $this->assertFalse($this->_acl->has($resourceArea));\n }", "title": "" }, { "docid": "5cc9f2ec9efb9c5303b848052688e6c4", "score": "0.5744329", "text": "public function destroy($id)\n {\n $product = Product::findOrFail($id);\n $filename = $product->image;\n $product->delete();\n Storage::delete($filename);\n }", "title": "" }, { "docid": "d1f7c96fed94f01bef33d5bc03b96940", "score": "0.5735748", "text": "public function hardDelete();", "title": "" }, { "docid": "fec8d4881ffc82e41c0642f366a1a75a", "score": "0.5726655", "text": "public function delete($resource)\n {\n return DB::transaction(function () use ($resource) {\n $resource = $this->beforeDelete($resource);\n\n $resource->delete();\n\n return $this->afterDelete($resource);\n });\n }", "title": "" }, { "docid": "7b06ca498cebb34097bee47d0def61eb", "score": "0.5718601", "text": "public function delete() {\n if (unlink($this->fullPath)) {\n $this->fullPath = '';\n $this->mimeType = '';\n $this->simpleName = '';\n $this->size = 0;\n } else {\n throw new Exception('Check write Access to delete file!');\n }\n }", "title": "" }, { "docid": "8c0c11de31899ddf1bbfd6c29f1c19a7", "score": "0.571522", "text": "public function deleteImage(){\n Storage::delete($this->image);\n }", "title": "" }, { "docid": "40f1e1a14810f5eceacb200ffe7aeb20", "score": "0.5696079", "text": "public function destroy(Request $request)\n {\n $slider=Slider::where('id', '=', $request->id)->first();\n if($slider!=null){\n $mi_imagen = public_path().'/'.$slider->url;\n unlink($mi_imagen);\n $slider->delete();\n return 1;\n }else{\n return 0;\n }\n// Lo eliminamos de la base de datos\n\n\n\n }", "title": "" }, { "docid": "60a2181c36b7592447d90a90fcadbe74", "score": "0.5695835", "text": "public function delete($record) {\n $this->fileDataSource->delete($this->resourceName, $record->id);\n $this->afterDelete($record);\n }", "title": "" }, { "docid": "7ef5024136aac86c4c004ee1e7edea43", "score": "0.56815386", "text": "public function drop(): void {\n $disk = Storage::disk($this->scope);\n if ($disk->exists($this->filepath)) {\n $disk->delete($this->filepath);\n }\n }", "title": "" }, { "docid": "c4f845a8d7bbb2425211bda284218817", "score": "0.56762695", "text": "function destroy() {\n\t\tunlink($this->get_file_name());\n\t\tself::remove_from_cache($this);\n\t}", "title": "" }, { "docid": "af7a37a01e344ca75b406caaaa916b45", "score": "0.56741655", "text": "private function removeOldIcon($resource)\n {\n $icon = $resource->getIcon();\n\n if ($icon->getIconType()->getIconType() == IconType::CUSTOM_ICON) {\n $pathName = $this->container->getParameter('claroline.param.thumbnails_directory')\n . DIRECTORY_SEPARATOR . $icon->getIconLocation();\n if (file_exists($pathName)) {\n unlink($pathName);\n }\n }\n }", "title": "" }, { "docid": "cb1740d372b49263432bcc5cf39f97d8", "score": "0.56595594", "text": "public function destroy($id)\n {\n $emp = Employee::where('id',$id)->first();\n $photo = $emp->image;\n if($photo){\n unlink($photo);\n $emp->delete();\n }else{\n $emp->delete();\n }\n\n }", "title": "" }, { "docid": "7567af40a4901dd5dd42113b0bbccb95", "score": "0.56567484", "text": "public function removeResource($name)\n {\n unset($this->resources[$name]);\n if ($name === 'file') {\n $this->resources['file'] = array(\n 'class' => 'Dwoo\\Template\\File',\n 'compiler' => null\n );\n }\n }", "title": "" }, { "docid": "d261281fcf3d7ca08f9b610eb6c3b1f0", "score": "0.56346554", "text": "public function destroy($id)\n {\n $photo = Photo::findOrFail($id);\n unlink(public_path() . $photo->image_url);\n $photo->delete();\n }", "title": "" }, { "docid": "e56ffdb12b7e8ce9ce9b709dd82f37f7", "score": "0.56325144", "text": "public function removeById($id);", "title": "" }, { "docid": "e56ffdb12b7e8ce9ce9b709dd82f37f7", "score": "0.56325144", "text": "public function removeById($id);", "title": "" }, { "docid": "5e46d09ef2d1d9f143d6831260992e3f", "score": "0.56248415", "text": "public function destroy($id)\n {\n $pres=Prescription::find($id);\n $fileName=$pres->item;\n unlink(storage_path().'/'.'app'.'/'.'public' .'/'.'prescriptions'.'/'. $fileName);\n $pres->delete();\n }", "title": "" }, { "docid": "0428848b8d6110c6be21d9479ece2192", "score": "0.56237406", "text": "public function removeImage()\n {\n if (!empty($this->image) && !empty($this->id)) {\n $path = storage_path($this->image);\n if (is_file($path)) {\n unlink($path);\n }\n if (is_file($path.'.thumb.jpg')) {\n unlink($path.'.thumb.jpg');\n }\n }\n }", "title": "" }, { "docid": "81b2a149b82ad070a8fc5640c23cb4c5", "score": "0.56235874", "text": "public function deleteResource($resourceId)\n {\n $req = new RESTRequest();\n $data = $req->adminGet('LearningObject/delete/' . $resourceId)->getData();\n return $data;\n }", "title": "" }, { "docid": "1ed1ac142686a23f0827e755ecbc86db", "score": "0.5618705", "text": "public function delete($resource, array $args = [], array $options = []) {\n return $this->do('DELETE', $resource, $args, $options);\n\n }", "title": "" }, { "docid": "c0ac500c5b367ee589c3c33143eb832b", "score": "0.5617002", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n return response()->json(['success' => 'borrado correctamente']);\n }", "title": "" }, { "docid": "a9c212129736f6a4e7fd4eddbccc6f2f", "score": "0.56163317", "text": "public function destroy($id)\n {\n $delete = Supplier::where(\"id\", $id)->first();\n $img = $delete->photo;\n if($img){\n unlink('backend/assets/images/supplier/'.$img);\n $delete->delete();\n toast('Supplier Information Delete Successfully','success');\n return redirect()->route('index.supplier');\n }else{\n toast('Supplier Not Deleted','success');\n return redirect()->route('index.supplier');\n }\n }", "title": "" }, { "docid": "6b5dbac631e37705e1c7cf319db2d7e6", "score": "0.56112254", "text": "public function deleteFromDisk()\n {\n return Storage::disk($this->getLocalDiskName())->delete($this->getStoragePath(true));\n }", "title": "" }, { "docid": "14d4df02668a2d07f51666ab31e093b8", "score": "0.5609148", "text": "public function destroy($id)\n {\n $store = Store::findorFail($id);\n $product = Product::firstorfail()->where('store_id', $id);\n // unlink(public_path() . '/img/' . $product->image);\n $product->delete();\n unlink(public_path() . '/str_img/' . $store->image);\n $store->delete();\n return redirect()->back()->withDelete(\"Store Deleted Succesfully\");\n\n\n \n }", "title": "" }, { "docid": "ea306158775b698c5435960d49c257ab", "score": "0.56042147", "text": "public function delete()\n {\n $this->remote->delete($this->file);\n }", "title": "" }, { "docid": "f7e25a0f3411ba82d9ef10dbdff68bb4", "score": "0.5600532", "text": "public function beforeDelete($resource)\n {\n return $resource;\n }", "title": "" }, { "docid": "6fbcf9a59c7f34ed85fd172cdf3d3c38", "score": "0.5595493", "text": "public function remove(){}", "title": "" }, { "docid": "5f7b880d9042e6af83f1343c11f66a8e", "score": "0.5595085", "text": "public function destroy($record);", "title": "" }, { "docid": "eb90c146961dd680727f52741dd87d78", "score": "0.55930966", "text": "public function delete($key) {\n $this->assertKey($key);\n \n unset($this->storage[$key]);\n }", "title": "" }, { "docid": "13866f5828119bb8aae429440b86e949", "score": "0.55884856", "text": "public function destroy($id)\n {\n\n $imga = Image::find($id);\n Storage::disk('public')->delete('img/' . $imga->src);\n $imga->delete();\n\n\n return redirect()->back();\n }", "title": "" }, { "docid": "24ef05d1335abf0bd48387e294875133", "score": "0.5576293", "text": "public function delete($fireStorageEvents = true);", "title": "" }, { "docid": "0d6640f36c0ca88fbe56977a74dad5f1", "score": "0.55737436", "text": "public function remove(MediaInterface $media);", "title": "" }, { "docid": "268c30c6782025503083fc7ba52c1d0a", "score": "0.557298", "text": "public function delete() {\n $this->dataStoreAdapter->deleteObject($this->getUuid());\n }", "title": "" }, { "docid": "2d72bcdac1bcdd14301b9a6ad301fae7", "score": "0.5572793", "text": "public function actionPatientremove() {\n\n $id = $_POST['id'];\n $name = $_POST['name'];\n\n $root_path = Yii::$app->basePath . '/../uploads/patient';\n $path = $root_path . '/' . $id . '/' . $name;\n\n\n if (file_exists($path)) {\n\n if (unlink($path)) {\n\n }\n }\n }", "title": "" }, { "docid": "65ec7f8ef3c165ae2d123008792c4d10", "score": "0.55707175", "text": "public function delete()\n {\n \\File::delete([\n $this->path,\n $this->thumbnail_path,\n\n ]);\n\n parent::delete();\n }", "title": "" }, { "docid": "8179dc9b6bd99410fef7c74e3b56208a", "score": "0.5570384", "text": "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n @unlink($file); \n \n }", "title": "" }, { "docid": "ead6a9412215d17945f8769860e1b262", "score": "0.5569038", "text": "public function remove($file) {\n\t\t$this->emitCache('put', $file);\n\t\tparent::remove($file);\n\t}", "title": "" }, { "docid": "4aff284263b8a4a2b80b972accc89eb6", "score": "0.55585116", "text": "public function removeFile($file_obj)\n\t{\n\t\t$fs = new Filesystem();\n\t\tif($fs->exists($file_obj->getUrlStorage()))\n\t\t{\n\t\t\t$fs->remove($file_obj->getUrlStorage());\n\t\t}\n\t}", "title": "" }, { "docid": "ec1b691c67eb4c9111f82f370bc46ab2", "score": "0.55521524", "text": "public function removeAction ()\n { \n if (!empty ($this->params ['file']) AND file_exists (UPLOAD_PATH.$this->params ['file']))\n unlink (UPLOAD_PATH.$this->params ['file']); \n if (!empty ($this->params ['media_id']))\n {\n $model = new Model_DbTable_MediaData ();\n $model->delete_media ($this->params ['media_id']);\n } \n }", "title": "" }, { "docid": "cf67810bc53f9cd6c02a127c0ee780e0", "score": "0.55445576", "text": "public function remove()\n\t{\n\t\tFile::remove($this->tempName);\n\t}", "title": "" }, { "docid": "94cb51fff63ea161e1d8f04215cfe7bf", "score": "0.55422723", "text": "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 }", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "9ac57f5d74d74f050136ae1e642ec949", "score": "0.5532133", "text": "public function delete($path) {\n $absPath = $this->_getAbsPath($path);\n $status = @unlink($absPath);\n\n if (!$status) {\n if (file_exists($absPath)) {\n throw new Scalar_Storage_Exception('Unable to delete file.');\n } else {\n $this->_log(\"Scalar_Storage_Adapter_Filesystem: Tried to delete missing file '$path'.\");\n }\n }\n }", "title": "" }, { "docid": "584dea86c95ee49398418c499126a231", "score": "0.55317944", "text": "public function forgetUsed()\n {\n if ($this->app['files']->exists($this->getUsedStoragePath())) {\n $this->app['files']->delete($this->getUsedStoragePath());\n }\n }", "title": "" }, { "docid": "52c48eff326d035cdfe9e0df0c79a23f", "score": "0.55300117", "text": "public function removeFromStorage()\n {\n if ( ! $this->is_raw ) {\n return MediaStorage::adapterByDisk($this->disk)->delete($this->path);\n }\n\n return true;\n }", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" } ]
6e6b082cca8f37e3f2c0a4fb55fd3b9f
returns in format of array[item0..n] = array(oID,ext_id,user_id)
[ { "docid": "0d3e0f91c04891361a1168efe613a1e0", "score": "0.54287934", "text": "function createAffectedItemsArrayEx($postvars)\n\t{\n\t $affectedItems = array();\n\t $counter = 0;\n\t foreach ($postvars as $key => $var) \n\t {\n\n \t $str = $key;\n\t\t $str = strtok($str, \"-\");\n \t if($str == 'oID')\n\t\t {\n\t\t \t $counter++;\n\n\t\t $affectedItems[\"item\" . $counter] = array();\n\t\t $affectedItems[\"item\" . $counter]['oID'] = strtok(\"-\");\n\t\t $affectedItems[\"item\" . $counter]['extID'] = strtok(\"-\");\n\t\t $affectedItems[\"item\" . $counter]['userID'] = strtok(\"-\");\n\t\t }\n\t } \t\n\t return $affectedItems;\n\t}", "title": "" } ]
[ { "docid": "960318052d6c1ad6019f7206a1b23eb1", "score": "0.6519834", "text": "public static function get_userarray_for_manager_view(){\n $sql = \"SELECT ID FROM user ORDER BY name, vorname\"; \n\n $dbConnector = DbConnector::getInstance();\n $result = $dbConnector->execute_sql($sql);\n\n $user_array = new ArrayObject();\n while($data = mysql_fetch_array($result)){\n $user = User::get_user($data[\"ID\"]);\n //$user = User::get_user(2); //verwenden wenn es Probleme gibt. Zum testen\n $user_array->append($user);\n }\n return $user_array;\n }", "title": "" }, { "docid": "33af3fd674ba74bc958590fdb7246fd9", "score": "0.62373936", "text": "public function toEndUserArray()\n {\n $extracted = array('user_id');\n return $this->toArray($extracted);\n }", "title": "" }, { "docid": "7660bc86a773189611b35b2184eb3456", "score": "0.61386335", "text": "private function buildIdentificationArray(OnSiteWork $item)\n {\n \t$idarray = array(\n \t\tself::COMMENTS => $item->getComments(),\n \t\tDepartmentDAO::DEPARTMENT_ID => $item->getDepartmentID(),\n \t\tGroupDAO::GROUP_ID => $item->getGroupID(),\n \t\tProjectDAO::PROJECT_ID => $item->getProjectID(),\n \t\tself::HOME_LOCATION_ID => $item->getHomeLocationID(),\n \t\tself::CHARGE_TO_ID => $item->getChargeToID(),\n \t\tPurposeDAO::PURPOSE_ID => $item->getPurposeID(),\n \t\tself::TITLE => $item->getTitle(),\n \t\tself::CURATOR_ID => $item->getCuratorID(),\n \t\tself::APPROVING_CURATOR_ID => $item->getCuratorID()\n \t);\n \treturn $idarray;\n }", "title": "" }, { "docid": "504d75491925c34611109db3459702cc", "score": "0.6082367", "text": "public function PKArray() {\n $returnvalue = array();\n $returnvalue['GiftID'] = $this->getGiftID();\n return $returnvalue;\n }", "title": "" }, { "docid": "58c198bc8382e1ff7babd75cef582f0d", "score": "0.60239494", "text": "function get_userids() {\n if (empty($this->_arrIUsers)) {\n $this->_arrIUsers = array();\n $strSQL = \"SELECT \" . TBL_STAT . \".\" . ID . \" FROM \" . TBL_STAT . \" LEFT JOIN \" . TBL_BUILD . \" ON \" . TBL_STAT . \".id = \" . TBL_BUILD . \".id WHERE \" . ALLIANCE . \" = \" . $this->_iAllianceId . \" ORDER BY \" . LAND . \" DESC\";\n $result = mysql_query ($strSQL) or die(\"get_userids:\" . mysql_error() );\n $i = 1;\n while ($myrow = mysql_fetch_array($result))\n {\n $this->_arrIUsers[$i] = $myrow[ID];\n $i++;\n }\n }\n return $this->_arrIUsers;\n }", "title": "" }, { "docid": "4fa1b73fe816b389f8f671da0ea0866b", "score": "0.5971875", "text": "function get_ids() {\n\t\t$image_array = array();\n\t\t$query = \"select image_id from $this->_db_table\";\n\t\t$db=openqrm_get_db_connection();\n\t\t$rs = $db->Execute($query);\n\t\tif (!$rs)\n\t\t\t$event->log(\"get_list\", $_SERVER['REQUEST_TIME'], 2, \"image.class.php\", $db->ErrorMsg(), \"\", \"\", 0, 0, 0);\n\t\telse\n\t\twhile (!$rs->EOF) {\n\t\t\t$image_array[] = $rs->fields;\n\t\t\t$rs->MoveNext();\n\t\t}\n\t\treturn $image_array;\n\t}", "title": "" }, { "docid": "f6e98258246fe5a58e2a69dc8265b845", "score": "0.5960199", "text": "private function _createIndexedArray(array $inArray = array()) {\n\t\t$return = array();\n\t\tforeach ( $inArray as $oUser ) {\n\t\t\tif ( $oUser instanceof mofilmUserBase ) {\n\t\t\t\t$return[$oUser->getID()] = $oUser;\n\t\t\t} else {\n\t\t\t\tthrow new mofilmException(__CLASS__.'::'.__METHOD__.' Operation failed on a none user object');\n\t\t\t}\n\t\t}\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "f7935942dbb180a0eaa3d0d20e2a0c70", "score": "0.59275156", "text": "public function getUsersid(){\n $r = array();\n foreach($this->users AS $user){\n $r[] = $user->getId();\n }\n return $r;\n }", "title": "" }, { "docid": "ad459a1d97ba528d9814565a6fc0e08c", "score": "0.5886202", "text": "function getSubUserIds() {\n\t\t$subUserIds = array();\n\t\t\n\t\tforeach ($this->manageables as $m)\n\t\t\t$subUserIds = array_merge($m->getSubUserIds(), $subUserIds);\n\t\t\t\n\t\treturn $subUserIds;\n\t}", "title": "" }, { "docid": "7213340344a70d3dfe6d109c91af1fc2", "score": "0.5836961", "text": "public function getAssArray()\n {\n // $sql = \"SELECT * FROM users;\";\n $sth = $this->db->prepare(\"SELECT * FROM users;\");\n $this->db->setAttribute(\\PDO::ATTR_DEFAULT_FETCH_MODE, \\PDO::FETCH_OBJ);\n $sth->execute();\n $res = $sth->fetchAll();\n return $res;\n }", "title": "" }, { "docid": "eae3044ba7d44aee8066d723b93d7884", "score": "0.5820878", "text": "public static function getUidArrayFromResult($res) {\n\t\t$data = null;\n\t\t$ret = null;\n\t\tif ($res && $GLOBALS['TYPO3_DB']->sql_num_rows($res) >= 1) {\n\t\t\twhile ($data = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)){\n\t\t\t\t$ret[] = $data['uid'];\n\t\t\t}\n\t\t}\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "218c6b01bdedb8e59c3adb6ac1716556", "score": "0.58", "text": "function get_user_array_responce($user_id)\n {\n\n $this->db->from('users');\n $this->db->where_in('id', $user_id);\n $query = $this->db->get();\n return $query->result_array();\n }", "title": "" }, { "docid": "d4fcb693ac0da0d088cda419a2842602", "score": "0.5778512", "text": "function get_users()\n{\n\tglobal $tbl_users;\n\t$sql = \"SELECT * FROM $tbl_users ORDER BY id\";\n\t$res = sql_query($sql);\n\tif (!$res) fatal_error(1, get_vocab('userfetchfailed') . sql_error());\n\t$rows = array();\n\tfor ($i = 0; ($row = sql_row_keyed($res, $i)); $i++) $rows[$row['id']] = $row; // indexed by row id to make lookups easier\n\treturn $rows;\n}", "title": "" }, { "docid": "950881f5fe318d7ca3e63a112dcd2b50", "score": "0.57714576", "text": "public function getUser(int $id): array\n\t{\n\t\t//return $row->toArray();\n\t\treturn [2];\n\t}", "title": "" }, { "docid": "5db828d80f21ffb2a4ff58577d85e3ed", "score": "0.5770563", "text": "function result_to_array($result){ \r\n\t// Defining an array \r\n\t$result_array = array(); \r\n\t// Creating the Array of all users \r\n\tfor ($i = 0; $row = mysql_fetch_assoc($result); $i++){\r\n\t\t\t$result_array[$i] = $row; \r\n\t} \r\n\t// returns the array of all users by Multi Dimensional Array \r\n\treturn $result_array; \r\n}", "title": "" }, { "docid": "5d4e2e1c60190308d9f0ce1f4312321f", "score": "0.57699627", "text": "public static function allUsers(){\n $bdd = new DBcnx();\n $arrayFinal=[];\n $rta=$bdd->allUser();\n foreach($rta as $unUsuario){\n $array=[\n \"ID\"=>$unUsuario->getCodigoUsuario(),\n \"USER_TYPE\"=>$unUsuario->getUserType(),\n \"BORRADO\"=>$unUsuario->getBorrado()\n ];\n $arrayFinal[]=$array;\n }\n return $arrayFinal;\n\n }", "title": "" }, { "docid": "5fe33ec85c53dd9a3c6a3e4c8304933d", "score": "0.5769615", "text": "function getusers(){\n \t$year = date(\"Y\");\n\t\t$query = \"SELECT id, FullName \" . \n\t\t\t\t \"FROM Users \" . \n\t\t\t\t \"ORDER BY FullName\";\n\t\t$results = mysql_query($query) or die(mysql_error(\"ERROR\"));\n\t\t\n\t\t$userIds = array();\n\t\twhile( $row = mysql_fetch_array($results, MYSQL_ASSOC) ){\n\t\t\t$userIds[$row['id']] = $row['FullName'];\n\t\t}\n\n\t\treturn $userIds;\n }", "title": "" }, { "docid": "b25bb039d4509ae081297a105c81756d", "score": "0.5762987", "text": "private function convert_records_to_array($records)\r\n\t{\r\n\t\tglobal $CFG;\r\n\t\t$result = array();\r\n\t\tforeach($records as $record)\r\n\t\t{\r\n\t\t\t\t$userData = new object();\r\n\t\t\t\t$userData->id = $record->id;\r\n\t\t\t\t$userData->firstname = $record->firstname;\r\n\t\t\t\t$userData->lastname = $record->lastname;\r\n\t\t\t\t$userData->fullname = $record->firstname.' '.$record->lastname; // more convenient way to access it\r\n\t\t\t\t$userData->city = $record->city;\r\n\t\t\t\t$userData->country = $record->country;\r\n\t\t\t\t$userData->email = $record->email;\r\n\t\t\t\t$userData->skype = $record->skype;\r\n\t\t\t\t$userData->msn = $record->msn;\r\n\t\t\t\t$userData->yahoo = $record->yahoo;\r\n\t\t\t\t$userData->aim = $record->aim;\r\n\t\t\t\t$userData->phone1 = $record->phone1;\r\n\t\t\t\t$userData->phone2 = $record->phone2;\r\n\t\t\t\t$userData->url = $records->url;\r\n\t\t\t\t$userData->timezone = $record->timezone;\r\n\t\t\t\t$userData->avatar = $CFG->wwwroot.'/user/pix.php/'.$record->id.'/f2.jpg'; // path to small user pic\r\n\t\t\t\t$userData->picture = $CFG->wwwroot.'/user/pix.php/'.$record->id.'/f1.jpg'; // path to large user pic\r\n\t\t\t\tarray_push($result,$userData);\r\n\t\t}\r\n\t\treturn $result;\r\n\t}", "title": "" }, { "docid": "cb80471f678ac2321fc0325c2150d3bd", "score": "0.5756601", "text": "public function toArray() {\n\t\t$data = array();\n\t\t$data[0] = $this->getStatisticID();\n\t\t$data[1] = $this->getLibraryID();\n\t\t$data[2] = $this->getSessionID();\n\t\t$data[3] = $this->getUserID();\n\t\t$data[4] = $this->getDateLodged();\n\t\t$data[5] = $this->getDateOccurred();\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "ab4b5ea83d94b3d195d1827dd58ff284", "score": "0.57234246", "text": "public function PKArray() {\n $returnvalue = array();\n $returnvalue['WorkbenchRowImageID'] = $this->getWorkbenchRowImageID();\n return $returnvalue;\n }", "title": "" }, { "docid": "7f232887c543c1295e132b222efb78dc", "score": "0.5710643", "text": "function ReturnUsers() {\n\t\t// returns $userarray in the following format: $userarray['userid']['namef']\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t$userarray['userid']['namel']\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t$userarray['userid']['userid']\n\t\t$statement = $this->streamingdb->prepare(\"SELECT * from Users ORDER BY namel ASC\");\n\t\ttry {\n\t\t\t$statement->execute();\n\t\t} catch(PDOException $e) {\n\t\t\treturn \"Statement failed: \" . $e->getMessage();\n\t\t}\n\t\t$result = $statement->fetchAll();\n\t\t$userarray = array();\n\t\tforeach($result as $row) {\n\t\t\t$userarray[$row['userid']]['namef'] = \"$row[namef]\";\n\t\t\t$userarray[$row['userid']]['namel'] = \"$row[namel]\";\n\t\t\t$userarray[$row['userid']]['userid'] = \"$row[userid]\";\n\t\t\t$userarray[$row['userid']]['created'] = \"$row[created]\";\n\t\t\t$userarray[$row['userid']]['agreeToTerms'] = \"$row[agreeToTerms]\";\n\t\t}\n\t\treturn $userarray;\n\t}", "title": "" }, { "docid": "948573187f8d5807abf5340dffbcfa5a", "score": "0.5695265", "text": "public static function set_id_array($obj)\n\t{\n\t\t$array = array();\n\n\t\tforeach ($obj as $a => $b)\n\t\t\t$array[$a] = $b;\n\n\t\treturn $array;\n\t}", "title": "" }, { "docid": "8b93dd6f7bdb8cbfd2c846ee54ff108d", "score": "0.568443", "text": "public function getAsArray(){\n \t$result=$result1=array();\n \tforeach($this as $key => $value) {\n \t\tif (!is_array($value) && !is_object($value)) \n \t\t\t$result[$key]= $value;\n else if($value==$this->titolari){\n foreach ($this->titolari as $key1 => $value1) \n foreach($value1 as $key2 => $giocatore){\n array_push($result1,$giocatore->getid());\n \n }\n $result[$key]=$result1; \n \n }\n \t}\n \treturn $result;\n\n }", "title": "" }, { "docid": "9cbae7017167daf7fd3b2780bf4817f9", "score": "0.56825906", "text": "function getModuleAccessArray() {\n\tglobal $log, $adb;\n\t$log->debug('> getModuleAccessArray');\n\n\t$fldModArr=array();\n\t$query = 'SELECT distinct(name) FROM vtiger_profile2field INNER JOIN vtiger_tab ON vtiger_tab.tabid=vtiger_profile2field.tabid WHERE vtiger_tab.presence IN (0, 2)';\n\t$result = $adb->pquery($query, array());\n\t$num_rows=$adb->num_rows($result);\n\tfor ($i=0; $i<$num_rows; $i++) {\n\t\t$mod_name = $adb->query_result($result, $i, 'name');\n\t\t$fldModArr[$mod_name] = $mod_name;\n\t}\n\t$log->debug('< getModuleAccessArray');\n\treturn $fldModArr;\n}", "title": "" }, { "docid": "7d0da723c101424ff0e5f9a40899829b", "score": "0.5657366", "text": "abstract public function getIds();", "title": "" }, { "docid": "8b0bc5882d42ff1546342f3ec283f26c", "score": "0.56513745", "text": "function getUserInfo($fe_users_uid = null) {\r\n\t\t// Fetch user\r\n\t\t$user_info = tx_cwtcommunity_lib_common::dbQuery(\"SELECT * FROM fe_users WHERE uid = \".intval($fe_users_uid));\r\n\t\t$temp = array();\r\n\t\t$keys = array_keys($user_info[0]);\r\n\t\t// Create return array\r\n\t\tfor ($i = 0;$i < sizeof($user_info[0]);$i++) {\r\n\t\t\t$temp[$keys[$i]] = $user_info[0][$keys[$i]];\r\n\t\t}\r\n\t\treturn $temp;\r\n }", "title": "" }, { "docid": "c750a79b2bcc98065ca8ce87349cd445", "score": "0.5641183", "text": "public static function getAllExtraIds(){\n $dbh = new PDO(Info::$dbinfo,Info::$dbusername, Info::$dbpw);\n $res = array();\n $sql = \"Select producten.id as extraid from producten inner join categorien on categorieid = categorien.id where categorien.omschrijving = 'Extra'\";\n $stmt = $dbh->prepare($sql);\n if($stmt->execute()){\n $dataSet = $stmt->fetchAll();\n foreach($dataSet as $rij){\n array_push($res,$rij[\"extraid\"]);\n }\n return $res;\n }else{\n print($stmt->errorInfo());\n }\n }", "title": "" }, { "docid": "4e9c7a18616fa297879b0fb3331b8ae1", "score": "0.5639914", "text": "public function findAllUserIds()\n { \n $model = CActiveRecord::model($this->userModelClass);\n $count = $model->count();\n $criteria = new CDbCriteria();\n $criteria->select = 't.id';\n $criteria->limit = $limit = 1000;\n $criteria->offset = 0;\n $builder = Yii::app()->getDb()->getCommandBuilder();\n $tableName = $model->tableName();\n $ids = array();\n $i = 0;\n while ($i < $count) {\n $ids = array_merge(\n $ids,\n $builder->createFindCommand($tableName, $criteria)->queryColumn()\n );\n $criteria->offset += $limit;\n $i += $limit;\n }\n return $ids;\n }", "title": "" }, { "docid": "73288f9c9245540ecf032a6fcd01042d", "score": "0.56361", "text": "public function getTestIdsQueryData()\n {\n $out = [];\n $testProducts = $this->getDataArray()['default']['product'];\n\n foreach ($testProducts as &$record) {\n unset($record['_id']);\n }\n\n $out[] = [[1], [$testProducts[0]]];\n\n $out[] = [\n [2, 3],\n [\n $testProducts[2],\n $testProducts[1],\n ],\n ];\n\n return $out;\n }", "title": "" }, { "docid": "b0c290104589eba569cf56cbfe5f2a46", "score": "0.56118", "text": "function get_objects()\n {\n $list = array();\n foreach($this->items as $item)\n $list[] = $item[\"id\"];\n\n return $list;\n }", "title": "" }, { "docid": "3451689291f6758c1063a585b50c5b6c", "score": "0.5609727", "text": "function fetch_all_array()\n {\n $data = array();\n while( $r = pg_fetch_assoc($this->result) ){\n $data[] = $r;\n }\n return $data;\n }", "title": "" }, { "docid": "dbeb5458b98a4608f62f2cb31e80fae3", "score": "0.5600853", "text": "public function getIdentifiers(): array;", "title": "" }, { "docid": "dbeb5458b98a4608f62f2cb31e80fae3", "score": "0.5600853", "text": "public function getIdentifiers(): array;", "title": "" }, { "docid": "e2c128575d0ae61910c36d62ceb77bff", "score": "0.56003875", "text": "public function getDataForGetUuidMethod(): array\n {\n return [\n 0 => [\n 0 => [\n 'UUID' => [\n 'toNative' => 'f67d18bc-c102-3497-8e83-217c3cc07ac0',\n 'getUuid' => [\n 'toString' => '5d11d309-db83-3123-af03-cf7f3be5f191',\n ],\n 'sameValueAs' => false,\n 'isEmpty' => false,\n ],\n 'FindCriteria' => [\n 'sameValueAs' => true,\n 'count' => [\n 'sameValueAs' => true,\n 'toNative' => 8,\n 'inc' => null,\n 'decr' => null,\n ],\n 'contains' => true,\n 'toNative' => [\n 0 => 'quod',\n 1 => 'corrupti',\n 2 => 'unde',\n ],\n 'toArray' => [\n 0 => 'quod',\n 1 => 'corrupti',\n 2 => 'unde',\n ],\n ],\n 'getUuid' => '383ef4ef-55f7-3152-8b10-2e56b890836c',\n ],\n 1 => [\n 'UUID' => [\n 'times' => 0,\n 'toNative' => 0,\n 'getUuid' => [\n 'times' => 1,\n 'toString' => 1,\n ],\n 'sameValueAs' => 0,\n 'isEmpty' => 0,\n ],\n 'FindCriteria' => [\n 'times' => 1,\n 'sameValueAs' => 0,\n 'count' => [\n 'times' => 0,\n 'sameValueAs' => 0,\n 'toNative' => 0,\n 'inc' => 0,\n 'decr' => 0,\n ],\n 'contains' => 0,\n 'toNative' => 1,\n 'toArray' => 0,\n ],\n 'getUuid' => 0,\n ],\n ],\n 1 => [\n 0 => [\n 'UUID' => [\n 'toNative' => '6e6154b6-906d-3d30-aa05-ffa07d09f48e',\n 'getUuid' => [\n 'toString' => 'e9549949-8afe-3a4e-8c24-326c467b9b19',\n ],\n 'sameValueAs' => false,\n 'isEmpty' => false,\n ],\n 'FindCriteria' => [\n 'sameValueAs' => false,\n 'count' => [\n 'sameValueAs' => true,\n 'toNative' => 9,\n 'inc' => null,\n 'decr' => null,\n ],\n 'contains' => false,\n 'toNative' => [\n 0 => 'est',\n 1 => 'assumenda',\n 2 => 'eos',\n ],\n 'toArray' => [\n 0 => 'est',\n 1 => 'assumenda',\n 2 => 'eos',\n ],\n ],\n 'getUuid' => 'f1b26bf4-9717-3d20-8399-e0b42d6d8657',\n ],\n 1 => [\n 'UUID' => [\n 'times' => 0,\n 'toNative' => 0,\n 'getUuid' => [\n 'times' => 1,\n 'toString' => 1,\n ],\n 'sameValueAs' => 0,\n 'isEmpty' => 0,\n ],\n 'FindCriteria' => [\n 'times' => 1,\n 'sameValueAs' => 0,\n 'count' => [\n 'times' => 0,\n 'sameValueAs' => 0,\n 'toNative' => 0,\n 'inc' => 0,\n 'decr' => 0,\n ],\n 'contains' => 0,\n 'toNative' => 1,\n 'toArray' => 0,\n ],\n 'getUuid' => 0,\n ],\n ],\n 2 => [\n 0 => [\n 'UUID' => [\n 'toNative' => '3ee3cf2e-64bf-382a-9dd3-c65859d71f33',\n 'getUuid' => [\n 'toString' => 'dbff1cc3-0963-369e-bb45-3686df949b70',\n ],\n 'sameValueAs' => false,\n 'isEmpty' => false,\n ],\n 'FindCriteria' => [\n 'sameValueAs' => true,\n 'count' => [\n 'sameValueAs' => true,\n 'toNative' => 8,\n 'inc' => null,\n 'decr' => null,\n ],\n 'contains' => true,\n 'toNative' => [\n 0 => 'quisquam',\n 1 => 'aliquid',\n 2 => 'et',\n ],\n 'toArray' => [\n 0 => 'quisquam',\n 1 => 'aliquid',\n 2 => 'et',\n ],\n ],\n 'getUuid' => '0af2e853-be0a-3269-b5db-ba8c4a5a087f',\n ],\n 1 => [\n 'UUID' => [\n 'times' => 0,\n 'toNative' => 0,\n 'getUuid' => [\n 'times' => 1,\n 'toString' => 1,\n ],\n 'sameValueAs' => 0,\n 'isEmpty' => 0,\n ],\n 'FindCriteria' => [\n 'times' => 1,\n 'sameValueAs' => 0,\n 'count' => [\n 'times' => 0,\n 'sameValueAs' => 0,\n 'toNative' => 0,\n 'inc' => 0,\n 'decr' => 0,\n ],\n 'contains' => 0,\n 'toNative' => 1,\n 'toArray' => 0,\n ],\n 'getUuid' => 0,\n ],\n ],\n ];\n }", "title": "" }, { "docid": "c18172f47bacdc7000f453c9f330c8e2", "score": "0.55986106", "text": "function getFieldModuleAccessArray() {\n\tglobal $log, $adb;\n\t$log->debug('> getFieldModuleAccessArray');\n\n\t$fldModArr=array();\n\t$query = 'select distinct(name) from vtiger_profile2field inner join vtiger_tab on vtiger_tab.tabid=vtiger_profile2field.tabid';\n\t$result = $adb->pquery($query, array());\n\t$num_rows=$adb->num_rows($result);\n\tfor ($i=0; $i<$num_rows; $i++) {\n\t\t$mod_name = $adb->query_result($result, $i, 'name');\n\t\t$fldModArr[$mod_name] = $mod_name;\n\t}\n\t$log->debug('< getFieldModuleAccessArray');\n\treturn $fldModArr;\n}", "title": "" }, { "docid": "31c1db9fd567abcfc4c63e60cc3f4bab", "score": "0.5597645", "text": "function getArrayListprovinsi() {\n $xBuffResul = array();\n $xStr = \"SELECT \" .\n \"idx\" . \",kode_provinsi\" .\n \",provinsi\" .\n \" FROM provinsi order by provinsi ASC \";\n $query = $this->db->query($xStr);\n $xBuffResul[0] = '--propinsi--';\n foreach ($query->result() as $row) {\n $xBuffResul[$row->kode_provinsi] = $row->provinsi;\n }\n return $xBuffResul;\n }", "title": "" }, { "docid": "bc2bf716f51b0df0ed7ca42536edd4c7", "score": "0.5591719", "text": "function GetGrpToArr( $user_id, $module_id, $id=NULL )\n\t {\n\t\t$db = new Rights($user_id, $module_id);\n $arr = NULL;\n\t\t$q = \"select `id`,`name` from `\".TblSysGroupUsers.\"` where 1\";\n\t\tif( $id ) $q = $q.\" and id='$id'\";\n\t\t$result = $db->QueryResult( $q, $user_id, $module_id );\n\t\tif( !$result )return $arr;\n\t\treturn $result;\n\t }", "title": "" }, { "docid": "aac2625bebbbe3473053b5904a129232", "score": "0.5584477", "text": "public function get_all_ios_device_registration_ids()\n\t{\n\t\t$this->db->select('ios_device_token');\n\t\t$query=$this->db->get_where('app_user_ios',array('app_user_ios_active'=>1));\n\t\treturn $query->result_array();\n\t}", "title": "" }, { "docid": "c2309433e2714a04d7fef9579776a040", "score": "0.5580741", "text": "public function toArray()\n {\n return [\n 'user_id' => $this->UserObj->id,\n 'recipient_id_arr' => $this->getRecipientUserObjArr()->getArrayOfIDs(),\n 'inviter_user_id' => $this->inviter_user_id,\n ];\n }", "title": "" }, { "docid": "bf4bf9bbbd9a5f8145b60cb700e4a00b", "score": "0.5578208", "text": "public function PKArray() {\n $returnvalue = array();\n $returnvalue['LocalityID'] = $this->getLocalityID();\n return $returnvalue;\n }", "title": "" }, { "docid": "8d5ebf8e2ffbb734e11c50b0f3868fd1", "score": "0.55777186", "text": "public function userIds($limit = 0)\n {\n if ($limit>1) {\n $sql=\"SELECT DISTINCT user_id FROM user_account_associations LIMIT $limit;\";//WHERE account_id=1 \n } else {\n $sql=\"SELECT DISTINCT user_id FROM user_account_associations;\";// WHERE account_id=1\n }\n\n $q = $this->db->query($sql) or die(print_r($canvas->db()->errorInfo(), true));\n \n $DAT=[];\n while ($r=$q->fetch(\\PDO::FETCH_ASSOC)) {\n $DAT[]=$r['user_id'];\n }\n return $DAT;\n }", "title": "" }, { "docid": "9fc827b52bd4064460fbd3cad83bb6a5", "score": "0.557564", "text": "public function createItemArray()\n {\n\n $itemArr = array();\n $itemArr = [\n 'Guid' => SifFunction::generateGuid(),\n 'OrderReturnGuid' => $this->orderGuid,\n 'ProductId' => $this->productId,\n 'ReturnedQty' => abs($this->returnQty),\n 'Price' => abs($this->price),\n 'DiscountAmount' => abs($this->discountAmount),\n 'Condition' => $this->condition,\n 'ConversionId' => $this->getMaterialConversion($this->productId),\n 'TransactionId' => date('md') . SifFunction::generateRandomID(100000, 999999),\n 'ReturnType' => $this->returnType,\n 'ReasonOfRejection' => $this->reasonOfRejection,\n 'Status' => 'OUT',\n 'ReferenceKeyId' => $this->orderKeyid\n ];\n return $itemArr;\n }", "title": "" }, { "docid": "df5c3ac2429aa3d1bf09b2cdb14a9009", "score": "0.55630887", "text": "function getUsers() {\n global $allUsrStmt;\n $allUsrStmt->execute();\n $result = $allUsrStmt->get_result()->fetch_all(MYSQLI_ASSOC);\n $out = array();\n foreach ($result as $r) {\n $out[$r[\"name\"]] = $r[\"ID\"];\n }\n return $out;\n}", "title": "" }, { "docid": "a4deddd5b29273530db63552f8dc9de8", "score": "0.55629647", "text": "function formatoarray($result)\n\t\t{\n\t\t\t$array = array();\n\t\t\tfor($i = 0 ; $row = pg_fetch_array($result); $i++)\n\t\t\t{\n\t\t\t $array[$i] = $row;\n\t\t\t}\n\t\t\treturn $array;\n\t\t}", "title": "" }, { "docid": "5e613d27cea3d1180f806a5a9e9118ec", "score": "0.5553291", "text": "function fetchAllAsArray($intid=NULL, $stralphabet=NULL,$condition=\"\",$order=\"blockuser_id\")\n\t{\n\t\t$arrlist = array();\n\t\t$i = 0;\n\t\t$and = $condition;\n\t\tif(!is_null($intid) && trim($intid)!=\"\") $and .= \" AND blockuser_id = \" . $intid;\n\t\tif(!is_null($stralphabet) && trim($stralphabet)!=\"\")\t$and .= \" AND blockuser_id like '\" . $stralphabet . \"%'\";\n\t\t$strquery=\"SELECT * FROM \".DB_PREFIX.\"block_user WHERE 1=1 \" . $and . \" ORDER BY \".$order;\n\t\t$rs=mysql_query($strquery);\n\t\twhile($artf_security= mysql_fetch_array($rs))\n\t\t{\n\t\t\t$arrlist[$i][\"blockuser_id\"] = $artf_security[\"blockuser_id\"];\n\t\t\t$arrlist[$i][\"client_id\"] = $artf_security[\"client_id\"];\n\t\t\t$arrlist[$i][\"user_id\"] = $artf_security[\"user_id\"];\n\t\t\t$arrlist[$i][\"reason\"] = $artf_security[\"reason\"];\n\t\t\t$arrlist[$i][\"created_by\"] = $artf_security[\"created_by\"];\n\t\t\t$arrlist[$i][\"created_date\"] = $artf_security[\"created_date\"];\n\t\t\t$arrlist[$i][\"updated_by\"] = $artf_security[\"updated_by\"];\n\t\t\t$arrlist[$i][\"updated_date\"] = $artf_security[\"updated_date\"];\n\t\t\t$i++;\n\t\t}\n\t\treturn $arrlist;\n\t}", "title": "" }, { "docid": "1568822d37c92177e77c5b1bf424de5f", "score": "0.55488175", "text": "function userFormArray(): array\n {\n $users = User::orderBy('surname')\n ->orderBy('first_name')\n ->orderBy('other_name')\n ->get();\n\n $returns = [];\n foreach($users as $user){\n $returns[$user->id] = $user->official_name;\n }\n\n return $returns;\n }", "title": "" }, { "docid": "04c78ab01f5fc52f6c154f992da6246f", "score": "0.5548131", "text": "function taminoGetIds() {\n $rval = $this->tamino->xquery($this->xquery);\n if ($rval) { // tamino Error\n print \"<p>dcCollection Error: failed to retrieve dcRecord id list.<br>\";\n print \"(Tamino error code $rval)</p>\";\n } else { \n // convert xml ids into a php array \n $this->ids = array();\n\n $this->tamino->xpath->registerNamespace(\"dc\", \"http://purl.org/dc/elements/1.1/\");\n $this->tamino->xpath->registerNamespace(\"ino\", \"http://namespaces.softwareag.com/tamino/response2\");\n $this->tamino->xpath->registerNamespace(\"xq\", \"http://namespaces.softwareag.com/tamino/XQuery/result\");\n $nl = $this->tamino->xpath->query(\"/ino:response/xq:result/xq:attribute\");\n for ($i = 0; $nl->item($i); $i++) {\n array_push($this->ids, $nl->item($i)->getAttribute(\"id\"));\n }\n \n\t// $this->xml_result = $this->tamino->xml->getBranches(\"ino:response/xq:result\");\n\t// if ($this->xml_result) {\n\t// Cycle through all of the branches \n\t//\tforeach ($this->xml_result as $branch) {\n\t//\t if ($att = $branch->getTagAttribute(\"id\", \"xq:attribute\")) {\n\t//\t array_push($this->ids, $att);\n\t//\t }\n\t//\t} /* end foreach */\n }\n }", "title": "" }, { "docid": "30a3fd6be8ac91f044658922d2c9ef9d", "score": "0.55427206", "text": "public function getArray();", "title": "" }, { "docid": "30a3fd6be8ac91f044658922d2c9ef9d", "score": "0.55427206", "text": "public function getArray();", "title": "" }, { "docid": "e99da420dce3ef6466b9dbd43d1c263a", "score": "0.55400103", "text": "protected function getUserInvoiceData():array\n {\n return parent::getUserInvoiceData();\n }", "title": "" }, { "docid": "36e5ae24c116b3b324575689f264ff29", "score": "0.55383533", "text": "public function getDataForGetItemUuidMethod(): array\n {\n return [\n 0 => [\n 0 => [\n 'UUID' => [\n 'toNative' => '8f9459bd-ef9b-377d-8c35-7784403b21cc',\n 'getUuid' => [\n 'toString' => '3b7b5961-7b03-3213-a295-862d4686d193',\n ],\n 'sameValueAs' => true,\n 'isEmpty' => true,\n ],\n 'Uuid' => [\n 'toNative' => '95d77e2d-fb41-386c-a6f8-027f0b361249',\n 'getUuid' => [\n 'toString' => '358f1c6b-41cd-3797-a95a-7735cefaf4b9',\n ],\n 'sameValueAs' => false,\n 'isEmpty' => false,\n ],\n ],\n 1 => [\n 'UUID' => [\n 'times' => 0,\n 'toNative' => 1,\n 'getUuid' => [\n 'times' => 1,\n 'toString' => 1,\n ],\n 'sameValueAs' => 0,\n 'isEmpty' => 0,\n ],\n 'Uuid' => [\n 'times' => 0,\n 'toNative' => 1,\n 'getUuid' => [\n 'times' => 0,\n 'toString' => 0,\n ],\n 'sameValueAs' => 0,\n 'isEmpty' => 0,\n ],\n ],\n ],\n 1 => [\n 0 => [\n 'UUID' => [\n 'toNative' => '64c9fb11-4026-3c51-9a2f-c7a62ebcd195',\n 'getUuid' => [\n 'toString' => '6bf755b8-fa1a-3fa2-b734-ec2a4416aa72',\n ],\n 'sameValueAs' => true,\n 'isEmpty' => true,\n ],\n 'Uuid' => [\n 'toNative' => '8c45adfe-63b8-3143-b3de-1e980ccb442d',\n 'getUuid' => [\n 'toString' => '03b11cbf-7ae2-39c6-8041-6b5602867bc5',\n ],\n 'sameValueAs' => true,\n 'isEmpty' => true,\n ],\n ],\n 1 => [\n 'UUID' => [\n 'times' => 0,\n 'toNative' => 1,\n 'getUuid' => [\n 'times' => 1,\n 'toString' => 1,\n ],\n 'sameValueAs' => 0,\n 'isEmpty' => 0,\n ],\n 'Uuid' => [\n 'times' => 0,\n 'toNative' => 1,\n 'getUuid' => [\n 'times' => 0,\n 'toString' => 0,\n ],\n 'sameValueAs' => 0,\n 'isEmpty' => 0,\n ],\n ],\n ],\n 2 => [\n 0 => [\n 'UUID' => [\n 'toNative' => 'c629809b-171c-356f-aeef-708185e81a71',\n 'getUuid' => [\n 'toString' => '2b9a2b28-dfb2-31b5-bc31-b26f67473875',\n ],\n 'sameValueAs' => false,\n 'isEmpty' => false,\n ],\n 'Uuid' => [\n 'toNative' => '83822116-a20c-3387-a4e1-be21aff50464',\n 'getUuid' => [\n 'toString' => 'aa1a2d61-bd53-34ce-b92f-a4148a3f372f',\n ],\n 'sameValueAs' => true,\n 'isEmpty' => true,\n ],\n ],\n 1 => [\n 'UUID' => [\n 'times' => 0,\n 'toNative' => 1,\n 'getUuid' => [\n 'times' => 1,\n 'toString' => 1,\n ],\n 'sameValueAs' => 0,\n 'isEmpty' => 0,\n ],\n 'Uuid' => [\n 'times' => 0,\n 'toNative' => 1,\n 'getUuid' => [\n 'times' => 0,\n 'toString' => 0,\n ],\n 'sameValueAs' => 0,\n 'isEmpty' => 0,\n ],\n ],\n ],\n 3 => [\n 0 => [\n 'UUID' => [\n 'toNative' => '8e026f4b-9a64-3f86-bd3c-a98262323e98',\n 'getUuid' => [\n 'toString' => '644a1f51-8e4e-3073-9555-3dbc653aef29',\n ],\n 'sameValueAs' => true,\n 'isEmpty' => true,\n ],\n 'Uuid' => [\n 'toNative' => '85c4763f-b3cb-36bf-bdca-2398c487789b',\n 'getUuid' => [\n 'toString' => '0b9d78e1-ac1a-3efe-82be-a0ddbae05dba',\n ],\n 'sameValueAs' => true,\n 'isEmpty' => true,\n ],\n ],\n 1 => [\n 'UUID' => [\n 'times' => 0,\n 'toNative' => 1,\n 'getUuid' => [\n 'times' => 1,\n 'toString' => 1,\n ],\n 'sameValueAs' => 0,\n 'isEmpty' => 0,\n ],\n 'Uuid' => [\n 'times' => 0,\n 'toNative' => 1,\n 'getUuid' => [\n 'times' => 0,\n 'toString' => 0,\n ],\n 'sameValueAs' => 0,\n 'isEmpty' => 0,\n ],\n ],\n ],\n 4 => [\n 0 => [\n 'UUID' => [\n 'toNative' => 'bd871b78-1652-346f-b360-483cfcb92a42',\n 'getUuid' => [\n 'toString' => 'd7738a94-7bc5-3d17-b8f7-54af4bf16b62',\n ],\n 'sameValueAs' => false,\n 'isEmpty' => false,\n ],\n 'Uuid' => [\n 'toNative' => '133e112a-a64a-3b9c-b129-5a527a9690d5',\n 'getUuid' => [\n 'toString' => 'df3c0649-201c-3ddf-a1b9-fc9137679dfb',\n ],\n 'sameValueAs' => false,\n 'isEmpty' => false,\n ],\n ],\n 1 => [\n 'UUID' => [\n 'times' => 0,\n 'toNative' => 1,\n 'getUuid' => [\n 'times' => 1,\n 'toString' => 1,\n ],\n 'sameValueAs' => 0,\n 'isEmpty' => 0,\n ],\n 'Uuid' => [\n 'times' => 0,\n 'toNative' => 1,\n 'getUuid' => [\n 'times' => 0,\n 'toString' => 0,\n ],\n 'sameValueAs' => 0,\n 'isEmpty' => 0,\n ],\n ],\n ],\n ];\n }", "title": "" }, { "docid": "7f32d621b3162bef3c306ebe9d8cafee", "score": "0.5533663", "text": "function get_user_list()\n\t\t{\n\t\t\t$this->db->select('*');\n\t\t\t$this->db->from('tbl_users');\t\t\t\n\t\t\t$query = $this->db->get();\n\t\t\t$result = $query->result();\n\t\t\t$list = Array();\n\t\t\t\n\t\t\tfor ($i = 0; $i < count($result); $i++)\n\t\t\t{\n\t\t\t\t$list[$i] = (object)NULL;\n\t\t\t\t$list[$i]->Username = $result[$i]->Username;\n\t\t\t\t$list[$i]->NRIC = $result[$i]->NRIC;\n\t\t\t\t$list[$i]->Display_Name = $result[$i]->Display_Name;\n\t\t\t\t$list[$i]->Email = $result[$i]->Email;\n\t\t\t\t$list[$i]->Mobile_No = $result[$i]->Mobile_No;\n\t\t\t\t$list[$i]->Create_Time = $result[$i]->Create_Time;\n\t\t\t\t$list[$i]->Points = $result[$i]->Points;\n\t\t\t\t$list[$i]->Is_Active = $result[$i]->Is_Active;\n\t\t\t\t$list[$i]->Is_Admin = $result[$i]->Is_Admin;\n\n\t\t\t}\n\t\t\t\n\t\t\treturn $list;\n\t\t}", "title": "" }, { "docid": "c0929280d9180888bc38424cbc7762f0", "score": "0.55272406", "text": "public static function OptionArray(){\n\n\t\t$optionArray = array();\n\n\t\t$users = User::All();\n\n\t\tforeach($users as $user){\n\n\t\t\t$optionArray[$user->id] = $user->login;\n\n\t\t}\n\n\t\treturn $optionArray;\n\n\t}", "title": "" }, { "docid": "553b9ef5504c4fd22dc01c03b98d9cca", "score": "0.55266017", "text": "public function getSpotifyUserIds() {\n $ids = [];\n try {\n $db = \\Drupal::database();\n $query = $db->select('node', 'n');\n $query->fields('n', ['nid']);\n $query->fields('nfd', ['title']);\n $query->join('node_field_data', 'nfd', 'nfd.vid = n.vid');\n $query->condition('nfd.status', 1);\n $query->condition('nfd.type', 'spotify_user', '=');\n $query->isNotNull('nfd.title');\n $ids = $query->execute()->fetchAllKeyed();\n }\n catch (\\Drupal\\Core\\Database\\DatabaseExceptionWrapper $ex) {\n watchdog_exception('lilbacon_spotify', $ex, 'Database error in getSpotifyUserIds(). Message: ' . $ex->getMessage());\n echo 'Database error in getSpotifyUserIds(). Please contact the webmaster.';\n exit;\n }\n\n return $ids;\n }", "title": "" }, { "docid": "09b6394d947910066091a1eecae0af9e", "score": "0.5525039", "text": "abstract public function getArray();", "title": "" }, { "docid": "293d99582db5e8a8857ae743ddc372ff", "score": "0.5524426", "text": "public function toArray()\n {\n $converted = array();\n $imp_imap = $GLOBALS['injector']->getInstance('IMP_Factory_Imap')->create();\n\n foreach ($this->_indices as $key => $val) {\n $converted[IMP_Mailbox::formTo($key)] = strval($imp_imap->getIdsOb($val));\n }\n\n return $converted;\n }", "title": "" }, { "docid": "304803d9ce70aea5af5a66da94d4740a", "score": "0.5518422", "text": "public function getUsersIdAndName()\n {\n $users = craft()->elements->getCriteria(ElementType::User);\n $usersAndIdArr = array();\n foreach($users as $user){\n $usersAndIdArr[$user->id] = $user->name;\n }\n\n return $usersAndIdArr;\n }", "title": "" }, { "docid": "feaf6a31b00fbfdc50dd9a14ecdfa8c2", "score": "0.55145675", "text": "function bim_get_feed_details( $bim, $user_ids )\n{\n // create the array where key is userid, not feed id\n $student_feeds = array();\n\n if ( empty( $user_ids )) return $student_feeds;\n\n $ids_string = implode( \",\", $user_ids );\n\n $feed_details = get_records_select( \"bim_student_feeds\",\n \"bim=$bim and userid in ( $ids_string ) \" );\n \n if ( $feed_details )\n {\n foreach ( $feed_details as $row )\n {\n $student_feeds[$row->userid] = $row;\n }\n }\n return $student_feeds;\n}", "title": "" }, { "docid": "750d42c19ca07fde111d7b6f5f0354bb", "score": "0.5506977", "text": "public static function getUserData()\n\t{\n\t\t$res = Database::simpleQuery(\"SELECT user.userid AS userid, user.login AS login, role.rolename AS rolename, role.roleid AS roleid\n\t\t\t\t\t\t\t\t\t\t\t\tFROM user\n\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN role_x_user ON user.userid = role_x_user.userid\n\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN role ON role_x_user.roleid = role.roleid\n\t\t\t\t\t\t\t\t\t\t\t\t\");\n\t\t$userdata = array();\n\t\twhile ($row = $res->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t$userdata[$row['userid'] . ' ' . $row['login']][] = array(\n\t\t\t\t'roleid' => $row['roleid'],\n\t\t\t\t'rolename' => $row['rolename']\n\t\t\t);\n\t\t}\n\t\t$data = array();\n\t\tforeach ($userdata AS $user => $roles) {\n\t\t\t$user = explode(\" \", $user, 2);\n\t\t\t$data[] = array(\n\t\t\t\t'userid' => $user[0],\n\t\t\t\t'username' => $user[1],\n\t\t\t\t'roles' => $roles\n\t\t\t);\n\t\t}\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "58b03e2d6c4565e11d45d5439f25b3aa", "score": "0.5492755", "text": "function get_associates(){\nglobal $sqds, $mbr, $exc;\n\t$out = array();\n\t$list = $this->get_records('squad_no',$this->squad_no);\t\n\tforeach($list as $asoc){\n\t\t$row = $mbr->get_mbr_record($asoc['certificate']);\n\t\t$sqd = $sqds->get_record('squad_no',$row['squad_no']);\n\t\t$asoc['name']=$exc->get_d5_member_name(true,$row);\n\t\t$asoc['squad_name']=$sqd['squad_name'];\n\t\t$out[$row['last_name'].$row['certificate']]=$asoc;\n\t}\n\tksort($out);\n\treturn $out;\n}", "title": "" }, { "docid": "2437968af405d294022132a077bdd43c", "score": "0.5488986", "text": "protected function getUserIds(){\n\t\t$userIds = [];\n\t\tforeach($this->players as $existingPlayer){\n\t\t\t$userIds[] = $existingPlayer->getUser()->getId();\n\t\t}\n\t\treturn $userIds;\n\t}", "title": "" }, { "docid": "fca499e09690a99213b343c465b65952", "score": "0.5488621", "text": "public function toArray() {\n\t\treturn array(\n\t\t\tself::FIELD_ID=>$this->getId(),\n\t\t\tself::FIELD_UITVOERDER_ID=>$this->getUitvoerderId(),\n\t\t\tself::FIELD_DD=>$this->getDd(),\n\t\t\tself::FIELD_MM=>$this->getMm(),\n\t\t\tself::FIELD_JJJJ=>$this->getJjjj(),\n\t\t\tself::FIELD_V1_1=>$this->getV11(),\n\t\t\tself::FIELD_EXTRA1_1=>$this->getExtra11(),\n\t\t\tself::FIELD_V1_2=>$this->getV12(),\n\t\t\tself::FIELD_EXTRA1_2=>$this->getExtra12(),\n\t\t\tself::FIELD_V1_3=>$this->getV13(),\n\t\t\tself::FIELD_EXTRA1_3=>$this->getExtra13(),\n\t\t\tself::FIELD_V1_4=>$this->getV14(),\n\t\t\tself::FIELD_EXTRA1_4=>$this->getExtra14(),\n\t\t\tself::FIELD_V1_5=>$this->getV15(),\n\t\t\tself::FIELD_EXTRA1_5=>$this->getExtra15(),\n\t\t\tself::FIELD_V1_6=>$this->getV16(),\n\t\t\tself::FIELD_EXTRA1_6=>$this->getExtra16(),\n\t\t\tself::FIELD_V1_7=>$this->getV17(),\n\t\t\tself::FIELD_EXTRA1_7=>$this->getExtra17(),\n\t\t\tself::FIELD_V1_8=>$this->getV18(),\n\t\t\tself::FIELD_EXTRA1_8=>$this->getExtra18(),\n\t\t\tself::FIELD_V1_9=>$this->getV19(),\n\t\t\tself::FIELD_EXTRA1_9=>$this->getExtra19(),\n\t\t\tself::FIELD_V1_10=>$this->getV110(),\n\t\t\tself::FIELD_EXTRA1_10=>$this->getExtra110(),\n\t\t\tself::FIELD_V1_11=>$this->getV111(),\n\t\t\tself::FIELD_EXTRA1_11=>$this->getExtra111(),\n\t\t\tself::FIELD_V1_12=>$this->getV112(),\n\t\t\tself::FIELD_EXTRA1_12=>$this->getExtra112(),\n\t\t\tself::FIELD_V1_13=>$this->getV113(),\n\t\t\tself::FIELD_EXTRA1_13=>$this->getExtra113(),\n\t\t\tself::FIELD_V1_14=>$this->getV114(),\n\t\t\tself::FIELD_EXTRA1_14=>$this->getExtra114(),\n\t\t\tself::FIELD_V1_15=>$this->getV115(),\n\t\t\tself::FIELD_EXTRA1_15=>$this->getExtra115(),\n\t\t\tself::FIELD_V1_16=>$this->getV116(),\n\t\t\tself::FIELD_EXTRA1_16=>$this->getExtra116(),\n\t\t\tself::FIELD_V1_17=>$this->getV117(),\n\t\t\tself::FIELD_EXTRA1_17=>$this->getExtra117(),\n\t\t\tself::FIELD_V1_18=>$this->getV118(),\n\t\t\tself::FIELD_EXTRA1_18=>$this->getExtra118(),\n\t\t\tself::FIELD_V1_19=>$this->getV119(),\n\t\t\tself::FIELD_EXTRA1_19=>$this->getExtra119(),\n\t\t\tself::FIELD_V1_20=>$this->getV120(),\n\t\t\tself::FIELD_EXTRA1_20=>$this->getExtra120(),\n\t\t\tself::FIELD_V1_21=>$this->getV121(),\n\t\t\tself::FIELD_EXTRA1_21=>$this->getExtra121(),\n\t\t\tself::FIELD_V1_22=>$this->getV122(),\n\t\t\tself::FIELD_EXTRA1_22=>$this->getExtra122(),\n\t\t\tself::FIELD_V2_1=>$this->getV21(),\n\t\t\tself::FIELD_EXTRA2_1=>$this->getExtra21(),\n\t\t\tself::FIELD_V2_2=>$this->getV22(),\n\t\t\tself::FIELD_EXTRA2_2=>$this->getExtra22(),\n\t\t\tself::FIELD_V2_3=>$this->getV23(),\n\t\t\tself::FIELD_EXTRA2_3=>$this->getExtra23(),\n\t\t\tself::FIELD_V2_4=>$this->getV24(),\n\t\t\tself::FIELD_EXTRA2_4=>$this->getExtra24(),\n\t\t\tself::FIELD_V2_5=>$this->getV25(),\n\t\t\tself::FIELD_EXTRA2_5=>$this->getExtra25(),\n\t\t\tself::FIELD_V2_6=>$this->getV26(),\n\t\t\tself::FIELD_EXTRA2_6=>$this->getExtra26(),\n\t\t\tself::FIELD_V2_7=>$this->getV27(),\n\t\t\tself::FIELD_EXTRA2_7=>$this->getExtra27(),\n\t\t\tself::FIELD_V2_8=>$this->getV28(),\n\t\t\tself::FIELD_EXTRA2_8=>$this->getExtra28(),\n\t\t\tself::FIELD_V2_9=>$this->getV29(),\n\t\t\tself::FIELD_EXTRA2_9=>$this->getExtra29(),\n\t\t\tself::FIELD_V2_10=>$this->getV210(),\n\t\t\tself::FIELD_EXTRA2_10=>$this->getExtra210(),\n\t\t\tself::FIELD_V2_11=>$this->getV211(),\n\t\t\tself::FIELD_EXTRA2_11=>$this->getExtra211(),\n\t\t\tself::FIELD_V3_1=>$this->getV31(),\n\t\t\tself::FIELD_EXTRA3_1=>$this->getExtra31(),\n\t\t\tself::FIELD_V3_2=>$this->getV32(),\n\t\t\tself::FIELD_EXTRA3_2=>$this->getExtra32(),\n\t\t\tself::FIELD_V3_3=>$this->getV33(),\n\t\t\tself::FIELD_EXTRA3_3=>$this->getExtra33(),\n\t\t\tself::FIELD_V4_1=>$this->getV41(),\n\t\t\tself::FIELD_EXTRA4_1=>$this->getExtra41(),\n\t\t\tself::FIELD_V4_2=>$this->getV42(),\n\t\t\tself::FIELD_EXTRA4_2=>$this->getExtra42(),\n\t\t\tself::FIELD_V4_3=>$this->getV43(),\n\t\t\tself::FIELD_EXTRA4_3=>$this->getExtra43(),\n\t\t\tself::FIELD_V4_4=>$this->getV44(),\n\t\t\tself::FIELD_EXTRA4_4=>$this->getExtra44(),\n\t\t\tself::FIELD_V5_1=>$this->getV51(),\n\t\t\tself::FIELD_EXTRA5_1=>$this->getExtra51(),\n\t\t\tself::FIELD_V5_2=>$this->getV52(),\n\t\t\tself::FIELD_EXTRA5_2=>$this->getExtra52(),\n\t\t\tself::FIELD_V5_3=>$this->getV53(),\n\t\t\tself::FIELD_EXTRA5_3=>$this->getExtra53(),\n\t\t\tself::FIELD_V5_4=>$this->getV54(),\n\t\t\tself::FIELD_EXTRA5_4=>$this->getExtra54(),\n\t\t\tself::FIELD_V5_5=>$this->getV55(),\n\t\t\tself::FIELD_EXTRA5_5=>$this->getExtra55(),\n\t\t\tself::FIELD_V5_6=>$this->getV56(),\n\t\t\tself::FIELD_EXTRA5_6=>$this->getExtra56(),\n\t\t\tself::FIELD_V5_7=>$this->getV57(),\n\t\t\tself::FIELD_EXTRA5_7=>$this->getExtra57(),\n\t\t\tself::FIELD_V6=>$this->getV6(),\n\t\t\tself::FIELD_V7=>$this->getV7(),\n\t\t\tself::FIELD_V8=>$this->getV8());\n\t}", "title": "" }, { "docid": "0824aa85ac699655bf996996cb630ce1", "score": "0.5474025", "text": "public function toResponseArray()\n\t{\n\t\t$aRes = parent::toResponseArray();\n\t\t\n\t\t$aGroupUUIDs = array();\n\t\tforeach ($this->GroupsContacts as $oGroupContact)\n\t\t{\n\t\t\t$aGroupUUIDs[] = $oGroupContact->GroupUUID;\n\t\t}\n\t\t$aRes['GroupUUIDs'] = $aGroupUUIDs;\n\t\t\n\t\tforeach ($this->ExtendedInformation as $sKey => $mValue)\n\t\t{\n\t\t\t$aRes[$sKey] = $mValue;\n\t\t}\n\t\t\n\t\treturn $aRes;\n\t}", "title": "" }, { "docid": "77234ab7f01f566845564f29ea7c3ee0", "score": "0.5471689", "text": "public function get_users()\n\t\t{\n\t\t\t$users = mysqli_query($this->db_con->con, \"select * from users\");\n\t\t\t$all_users = mysqli_fetch_all($users);\n\n\t\t\t$phones = mysqli_query($this->db_con->con, \"select * from phones\");\n\t\t\t$all_phones = mysqli_fetch_all($phones);\n\n\n\t\t\t//var_dump($all_users);\n\t\t\t\t\n\t\t\t$return_users = array();\n\t\t\tforeach ($all_users as $key => $user) {\n\t\t\t\tforeach ($all_phones as $key => $phone) {\n\t\t\t\t\tif($phone[1] == $user[0]){\n\t\t\t\t\t\t$user['phone'][] = $phone[2];\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tarray_push($return_users, $user);\n\t\t\t}\n\t\t\treturn $return_users;\n\t\t}", "title": "" }, { "docid": "77c015e765bc778fb0521fae5e4bc584", "score": "0.54648036", "text": "public function getIDs();", "title": "" }, { "docid": "b7ed0508710e73593d8a67b5df500cf7", "score": "0.545418", "text": "public function getUIDs() {\n $uids = array();\n foreach ($this->external_users as $user) {\n $uids[] = $user->uid;\n }\n return $uids;\n }", "title": "" }, { "docid": "f4f59264bf4c7562ab4ca86e316cb18b", "score": "0.54539543", "text": "function fetchStaffArray()\r\n\t{\r\n\t\t$sql = \"SELECT * FROM users ORDER BY last_name\";\r\n\t\t$result = mysql_query($sql);\r\n\r\n\t\twhile ($row = mysql_fetch_assoc($result))\r\n\t\t{\r\n\t\t\t$a[$row['user_id']] = \"{$row['last_name']}, {$row['first_name']} {$row['middle_name']} {$row['extra_name']}\";\r\n\t\t}\r\n\r\n\t\treturn $a;\r\n\t}", "title": "" }, { "docid": "d01fe2b74426772fbd334bd5a4aaf369", "score": "0.5450898", "text": "function fetchPbAttorneyArray()\r\n\t{\r\n\t\t$sql = \"SELECT * FROM pb_attorneys ORDER BY last_name\";\r\n\t\t$result = mysql_query($sql);\r\n\t\t$a = array(); // make sure we return an empty array if no attys are found\r\n\r\n\t\twhile ($row = mysql_fetch_assoc($result))\r\n\t\t{\r\n\t\t\t$a[$row['pba_id']] = \"{$row['last_name']}, {$row['first_name']} {$row['middle_name']} {$row['extra_name']}\";\r\n\t\t}\r\n\r\n\t\treturn $a;\r\n\t}", "title": "" }, { "docid": "a04b536e9a429acfdb0d85b0b3ec7346", "score": "0.54419756", "text": "public function getUserNameArray($userId){\n $sql=\"SELECT USER_FIRST_NAME,USER_LAST_NAME from users WHERE USER_ID='$userId'\";\n $result = $this->conn->query($sql);\n return $result->fetch_assoc();\n }", "title": "" }, { "docid": "bd824853895a7cadf06995e3a47050ca", "score": "0.5441845", "text": "public function getAuthInfoArray()\n {\n $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable($this->user_table);\n $expressionBuilder = $queryBuilder->expr();\n $authInfo = [];\n $authInfo['loginType'] = $this->loginType;\n $authInfo['refInfo'] = parse_url(GeneralUtility::getIndpEnv('HTTP_REFERER'));\n $authInfo['HTTP_HOST'] = GeneralUtility::getIndpEnv('HTTP_HOST');\n $authInfo['REMOTE_ADDR'] = GeneralUtility::getIndpEnv('REMOTE_ADDR');\n $authInfo['REMOTE_HOST'] = GeneralUtility::getIndpEnv('REMOTE_HOST');\n $authInfo['showHiddenRecords'] = $this->showHiddenRecords;\n // Can be overidden in localconf by SVCONF:\n $authInfo['db_user']['table'] = $this->user_table;\n $authInfo['db_user']['userid_column'] = $this->userid_column;\n $authInfo['db_user']['username_column'] = $this->username_column;\n $authInfo['db_user']['userident_column'] = $this->userident_column;\n $authInfo['db_user']['usergroup_column'] = $this->usergroup_column;\n $authInfo['db_user']['enable_clause'] = $this->userConstraints()->buildExpression(\n [$this->user_table => $this->user_table],\n $expressionBuilder\n );\n if ($this->checkPid && $this->checkPid_value !== null) {\n $authInfo['db_user']['checkPidList'] = $this->checkPid_value;\n $authInfo['db_user']['check_pid_clause'] = $expressionBuilder->in(\n 'pid',\n GeneralUtility::intExplode(',', $this->checkPid_value)\n );\n } else {\n $authInfo['db_user']['checkPidList'] = '';\n $authInfo['db_user']['check_pid_clause'] = '';\n }\n $authInfo['db_groups']['table'] = $this->usergroup_table;\n return $authInfo;\n }", "title": "" }, { "docid": "0fe77b08a9dd543cf4d754b970eca2c4", "score": "0.54417074", "text": "protected function returnIds()\n {\n return array(\n array(\n 'type' => 'page_id',\n 'id' => $this->page_id,\n ),\n array(\n 'type' => 'row_id',\n 'id' => $this->row_id,\n ),\n array(\n 'type' => 'column_id',\n 'id' => $this->column_id,\n ),\n array(\n 'type' => 'tool',\n 'id' => 'Column',\n ),\n array(\n 'type' => 'tab',\n 'id' => 'settings',\n 'sub_tool' => 'Settings'\n )\n );\n }", "title": "" }, { "docid": "7722a7d7e8ce2630ce8aa0af11ee0425", "score": "0.5440737", "text": "function bim_get_marking_details( $bim, $user_ids )\n{\n $ids_string = implode( \",\", $user_ids );\n // make sure it was valid\n if ( $ids_string == \"\" ) return Array();\n\n $marking_details = get_records_select( \"bim_marking\",\n \"bim=$bim and userid in ( $ids_string )\" );\n\n return $marking_details;\n}", "title": "" }, { "docid": "f2eafc2f15bd269a82ac290769b1ecce", "score": "0.5433411", "text": "function getUsers() {\n $file=fopen($this->fPasswd,\"r\");\n for($i=0;$line=fgets($file,200);$i++) {\n $lineArr=explode(\":\",$line);\n if($lineArr[0]!=\"\") {\n $userlist[$i]['jmeno']=$lineArr[0];\n $userlist[$i]['id']=$lineArr[0];\n $userlist[$i]['heslo']=$lineArr[1];\n }\n }\n fclose($file);\n\n // sort users\n if(!empty($userlist)){\n array_multisort($userlist); \n return $userlist;\n }\n }", "title": "" }, { "docid": "6bc90a281ee9de69d7b43156f5070af4", "score": "0.5426518", "text": "function getUsersByMonthBirthday($data) {\n\t\tif(count($data)>0) {\n\t\t\tforeach($data as $ind => $value) {\n\t\t\t\t$data2[round($data[$ind]['month'])][] = $data[$ind]['id'];\n\t\t\t}\n\t\t}\n\t\treturn $data2;\n\t}", "title": "" }, { "docid": "05a89cb566a73db0a932bc57883078d7", "score": "0.54213893", "text": "public function getMobilesArray(){\r\n\r\n $this->db->select('mobile_no');\r\n $this->db->from('user_access_mobile_nos');\r\n $query=$this->db->get(); \r\n $array=$query->result_array();\r\n $new_array=array();\r\n foreach($array as $key=>$value){\r\n $new_array[]=$value['mobile_no'];\r\n }\r\n \r\n //echo '<pre>';print_r($new_array);exit;\r\n return $new_array;\r\n \r\n}", "title": "" }, { "docid": "51466d9c1070e4005e45b46d8fd74919", "score": "0.5417683", "text": "function toArray() {\n\t\treturn array(\n\t\t\t\"uid\" => $this->getUID(), \n\t\t\t\"pid\" => $this->getPID(), \n\t\t\t\"value\" => $this->getValue(), \n\t\t\t\"question_id\" => $this->getQuestionUID(), \n\t\t\t\"result_id\" => $this->getResultUID());\n\t}", "title": "" }, { "docid": "8625ef7b3c4dcf83ce71b87488a89619", "score": "0.54170215", "text": "public function itemids() {\n\t\t$q = SalesOrderDetailQuery::create();\n\t\t$q->select(SalesOrderDetail::get_aliasproperty('itemid'));\n\t\t$q->filterByOrdernumber($this->oehdnbr);\n\t\treturn $q->find()->toArray();\n\t}", "title": "" }, { "docid": "7605377076f6cca934ee199df4e88b17", "score": "0.5413763", "text": "public function toAPIArray()\n {\n // $userQuick = $this->quickBlox->getUser($this->adminUser->username);\n // dd($userQuick);\n return [\n 'id' => $this->id,\n 'caller' => $this->caller,\n 'user_id' => $this->user_id,\n 'admin_user_id' => $this->admin_user_id,\n 'start_time' => $this->start_time,\n 'end_time' => $this->end_time,\n 'type' => $this->type,\n 'is_read' => $this->is_read,\n ];\n }", "title": "" }, { "docid": "2ce55d13737edce94e6b6991210b31cb", "score": "0.5413333", "text": "public function getItems()\r\n {\r\n $items = parent::getItems();\r\n\r\n //key by id\r\n $arr = array();\r\n foreach ($items as $item) {\r\n $arr[$item->id] = $item;\r\n }\r\n\r\n return $arr;\r\n }", "title": "" }, { "docid": "60add73b12649a3bddaf3e5ae7cdb231", "score": "0.54131794", "text": "public function getUserListAttribute(): array\n {\n return $this->users->pluck('id')->all();\n }", "title": "" }, { "docid": "2c3b1703aa2e8472f41aae61bf7812de", "score": "0.5410811", "text": "private function buildOSWArray(OnSiteWork $item)\n {\n \t$idarray = array(\n \t\tself::PROPOSED_HOURS => $item->getProposedHours(),\n \t\tself::WORK_START_DATE => $item->getDateRange()->getDatabaseStartDate(),\n \t\tself::WORK_END_DATE => $item->getDateRange()->getDatabaseEndDate(),\n \t\tFormatDAO::FORMAT_ID => $item->getFormatID(),\n \t);\n \treturn $idarray;\n }", "title": "" }, { "docid": "15a8503ebddfcee6b2d86c4d4512f83a", "score": "0.5410408", "text": "function getGroupIDs() {\n $ids = array();\n $groups = $this->getUserGroups();\n //debugMessage($groups->toArray());\n foreach($groups as $thegroup) {\n $ids[] = $thegroup->getGroupID();\n }\n return $ids;\n }", "title": "" }, { "docid": "366e27ba4fccb970667c2dae4dafc52c", "score": "0.54046524", "text": "public function getArray() {\r\n $data = $this->getData();\r\n $d = array();\r\n foreach ( $data as $item ) {\r\n $d[] = $item->db->get();\r\n }\r\n return $d;\r\n }", "title": "" }, { "docid": "d602920a729027c2864b95b1ae4d3f5e", "score": "0.53982806", "text": "public function toCustomerArray();", "title": "" }, { "docid": "81f42a80de46b228812ff0e6f455503c", "score": "0.5395302", "text": "public function users() {\n $oUsers = User::orderBy('id', 'DESC')->get();\n $aUsers = [];\n $i = 0;\n foreach ($oUsers as $oUser) { \n $aUsers[$i] = $oUser->toArray(); \n $i++;\n }\n return $aUsers;\n }", "title": "" }, { "docid": "b6eda58528868a1347694dc0e9f42428", "score": "0.539505", "text": "public function exportToArray()\n {\n $result = array();\n $entityIdField = $this->getEntity()->getEntityIdField();\n foreach ($this->getItems() as $item) {\n $result[$item->getData($entityIdField)] = $item->getData();\n }\n return $result;\n }", "title": "" }, { "docid": "f53f8be151500303699401ea29afb745", "score": "0.5393036", "text": "public function returnArrayOfUserIDs($postID){\n\t\t$data = get_post_meta($postID);\n\t\t$userIDs = array();\t\n\t\tforeach($data as $key => $val){\n\t\t\t//Looking for a \"dash in the 5th position. i.e. \"fcfs-123\" where 123 is the userID\n\t\t\t$dash = strpos( $key, \"-\");\n\t\t\tif($dash){\t\n\t\t //add each user id to the array\n\t\t \t$substring = substr( $key, $dash+1);\n\t\t \tarray_push($userIDs, $substring);\n\t\t }\t\n\t\t}\n\t\treturn $userIDs;\n\t}", "title": "" }, { "docid": "8e660f91cda1272d37ef84ec26bacf80", "score": "0.53872085", "text": "public function getArrayCopy() {\n\t\t$data=array();\n\t\t$data['id']=$this->id;\n\t\t$data['UserDepositaryId']=$this->UserDepositaryId;\n\t\t$data['UserApplicantId']=$ths->UserApplicantId;\n\t\t$data['DateRequest']=$this->DateRequest;\n\t\t$data['Piece']=$this->Piece;\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "ce14b1a6b9dc04c844e7d97e5b30e62c", "score": "0.5386922", "text": "function getAllProductID(){\n \t$db = new DbHandler();\n\t$res = $db->getAllRecords(\"SELECT DISTINCT product_id FROM sales\");\n\t$products = array();\n\twhile ($product = $res->fetch_assoc()) {\n \n array_push($products, $product['product_id']);\n }\n return $products;\n}", "title": "" }, { "docid": "a2c5a8405430f6a6b302fbcffb06f597", "score": "0.5380575", "text": "function GetListArray($where = '', $order = '', $limit = '')\r\n{\r\n\treturn $this->db->FastQuery1stArray('Forums', 'ID', $where, $order, $limit);\r\n}", "title": "" }, { "docid": "bca86bfc3255d11dd97bfa7ede2ce304", "score": "0.53799623", "text": "public function toArray() { \n return array(\t\tself::FIELD_IDMODULO=>$this->getIDModulo(),\n\t\tself::FIELD_IDUSUARIO=>$this->getIDUsuario(),\n\t\tself::FIELD_FECHA=>$this->getFecha(),\n\t\tself::FIELD_TABLA=>$this->getTabla(),\n\t\tself::FIELD_TRANSACCION=>$this->getTransaccion(),\n\t\tself::FIELD_OPERACION=>$this->getOperacion(),\n\t\tself::FIELD_DIRECCIONIP=>$this->getDireccionIP());\n\t\t}", "title": "" }, { "docid": "bfa87347d60be3af317ddc79ba745b4a", "score": "0.53773", "text": "public function get_user()\r\n\t\t{\r\n\t\t\t$retArr = array();\r\n\t\t\t$retArr = $this->obj->getBasics();\r\n\r\n\t\t\treturn $retArr;\r\n\t\t}", "title": "" }, { "docid": "dec8194278107a8090e057fe55928a06", "score": "0.53770846", "text": "function &get_user_list(){\n\t$user_list = array();\n\t\n\t$sql_str = \"SELECT \"\n\t\t\t\t\t. \"uid, \" \n\t\t\t\t\t. \"uname \"\n\t\t\t\t. \"FROM tng_user \";\n\t\n\n\t$dbconn =& new DBConn();\n\n\t$dbconn->connect();\n\n\t$result = pg_query($dbconn->conn, $sql_str);\n\tif(!$result){\n\t\techo \"An error occurred while executing the query \" . pg_last_error($dbconn->conn);\n\t\t$dbconn->disconnect();\n\t\treturn NULL;\n\t}\n\t\n\t$n_users = pg_num_rows($result);\n\t// populate user_list array\n\t// as name-value pairs\n\t// i.e. the user name is the name, and the\n\t// user id is the value\n\tfor($i = 0; $i < $n_users; $i++)\n\t\t$user_list[pg_fetch_result($result, $i, 1)] = pg_fetch_result($result, $i, 0);\n\t\n\t$dbconn->disconnect();\n\t\n\treturn $user_list;\n}", "title": "" }, { "docid": "87448f535954b82effa8bad4896a73f2", "score": "0.5370884", "text": "function getAccountIdentities($account) {\n\t\tif (!$account instanceof emailadmin_account)\n\t\t{\n\t\t\t$account = emailadmin_account::read($account);\n\t\t}\n\t\t$userEMailAdresses = array();\n\t\t$identities = $account->identities(null, true, 'params');\n\t\tforeach($identities as $ik => $ident) {\n\t\t\t//error_log(__METHOD__.' ('.__LINE__.') '.':'.$ik.'->'.array2string($ident));\n\t\t\t$identity = emailadmin_account::read_identity($ik,true,null,$account);\n\t\t\t//error_log(__METHOD__.' ('.__LINE__.') '.':'.$ik.'->'.array2string($identity));\n\t\t\t// standardIdentity has ident_id==acc_id (as it is done within account->identities)\n\t\t\tif (empty($identity['ident_id'])) $identity['ident_id'] = $identity['acc_id'];\n\t\t\tif (!isset($userEMailAdresses[$identity['ident_id']]))\n\t\t\t{\n\t\t\t\t$userEMailAdresses[$identity['ident_id']] = array('acc_id'=>$identity['acc_id'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'ident_id'=>$identity['ident_id'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'ident_email'=>$identity['ident_email'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'ident_org'=>$identity['ident_org'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'ident_realname'=>$identity['ident_realname'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'ident_signature'=>$identity['ident_signature'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'ident_name'=>$identity['ident_name']);\n\t\t\t}\n\t\t}\n\n\t\treturn $userEMailAdresses;\n\t}", "title": "" }, { "docid": "9244e1b5e6beed980fddd6dc4cb88d10", "score": "0.5369078", "text": "public function getUsersDataForAdmin(){\n $SQL = sprintf(\"SELECT * FROM `\".$this->table.\"`;\");\n// echo \"<br>===================USERs================<br>\";\n// echo \"<br>SQL getUsersNames: \".$SQL;\n $mq = mysql_query($SQL);\n $arr = array();\n while($us = mysql_fetch_array($mq,MYSQLI_ASSOC)){\n array_push($arr, $us);\n }\n// var_dump($arr);\n return $arr;\n }", "title": "" }, { "docid": "6621dd065d402a7129b8c034396ce73f", "score": "0.53661567", "text": "public static function getAllNamesUsers(){\n $db = Db::getConnection();\n \n $sql = 'select identef from users ;';\n \n $result = $db->query($sql);\n $result = $result->fetch_all(MYSQLI_ASSOC);\n \n $db->close();\n \n $newMasive = [];\n \n foreach($result as $item){\n array_push($newMasive , $item['identef']);\n }\n \n return $newMasive;\n }", "title": "" }, { "docid": "94dd6c6bf5b9cb354ac171db7d5bcdc2", "score": "0.5364451", "text": "function idsEncargados(){\n\t$users = User::get();\n\t$ids = array();\n\n\tforeach($users as $user){\n\t\tif(tiene_acceso($user)){\n\t\t\tif( tieneRol($user, 'encargado') ){\n\t\t\t\tarray_push($ids, $user->id);\t\t\t\t\n\t\t\t}\t\t\t\n\t\t}\n\t}\n\treturn $ids;\n}", "title": "" }, { "docid": "bf294b23021406fe805bfec58573e067", "score": "0.5364133", "text": "public function getPhoneNrsArray()\n {\n $phoneNrs = [];\n foreach ([1, 2] as $nr) {\n $phone = \"phone$nr\";\n if (isset($this->{$phone})) {\n $phoneNrs[] = $this->{$phone};\n }\n }\n return $phoneNrs;\n }", "title": "" }, { "docid": "09437ef8b52956aaa6cbfb19c0afe7ee", "score": "0.5360002", "text": "private function createArrayChecking (){\n\t\treturn array(\n\t\t\t\"0\" =>\"M,S:11,D\",\t\t\t// office_id\n\t\t\t\"1\" =>\"S:11,D\",\t\t\t\t// head_office_id\n\t\t\t\"2\" =>\"S:11,D\",\t\t\t\t// top_head_office_id\n\t\t\t\"3\" =>\"S:11,D\",\t\t\t\t// top_affiliated_office_id1\n\t\t\t\"4\" =>\"S:11,D\",\t\t\t\t// top_affiliated_office_id2\n\t\t\t\"5\" =>\"S:11,D\",\t\t\t\t// top_affiliated_office_id3\n\t\t\t\"6\" =>\"S:11,D\",\t\t\t\t// top_affiliated_office_id4\n\t\t\t\"7\" =>\"S:11,D\",\t\t\t\t// top_affiliated_office_id5\n\t\t\t\"8\" =>\"S:11,D\",\t\t\t\t// top_affiliated_office_id6\n\t\t\t\"9\" =>\"S:11,D\",\t\t\t\t// top_affiliated_office_id7\n\t\t\t\"10\" =>\"S:11,D\",\t\t\t// top_affiliated_office_id8\n\t\t\t\"11\" =>\"S:11,D\",\t\t\t// top_affiliated_office_id9\n\t\t\t\"12\" =>\"S:11,D\",\t\t\t// top_affiliated_office_id10\n\t\t\t\"13\" =>\"S:11,D\",\t\t\t// affiliated_office_id1\n\t\t\t\"14\" =>\"S:11,D\",\t\t\t// affiliated_office_id2\n\t\t\t\"15\" =>\"S:11,D\",\t\t\t// affiliated_office_id3\n\t\t\t\"16\" =>\"S:11,D\",\t\t\t// affiliated_office_id4\n\t\t\t\"17\" =>\"S:11,D\",\t\t\t// affiliated_office_id5\n\t\t\t\"18\" =>\"S:11,D\",\t\t\t// affiliated_office_id6\n\t\t\t\"19\" =>\"S:11,D\",\t\t\t// affiliated_office_id7\n\t\t\t\"20\" =>\"S:11,D\",\t\t\t// affiliated_office_id8\n\t\t\t\"21\" =>\"S:11,D\",\t\t\t// affiliated_office_id9\n\t\t\t\"22\" =>\"S:11,D\",\t\t\t// affiliated_office_id10\n\t\t\t\"23\" =>\"S:4,D\",\t\t\t\t// relation_flag1\n\t\t\t\"24\" =>\"S:4,D\",\t\t\t\t// relation_flag2\n\t\t\t\"25\" =>\"S:4,D\",\t\t\t\t// relation_flag3\n\t\t\t\"26\" =>\"S:4,D\",\t\t\t\t// relation_flag4\n\t\t\t\"27\" =>\"S:4,D\",\t\t\t\t// relation_flag5\n\t\t\t\"28\" =>\"S:4,D\",\t\t\t\t// relation_flag6\n\t\t\t\"29\" =>\"S:4,D\",\t\t\t\t// relation_flag7\n\t\t\t\"30\" =>\"S:4,D\",\t\t\t\t// relation_flag8\n\t\t\t\"31\" =>\"S:4,D\",\t\t\t\t// relation_flag9\n\t\t\t\"32\" =>\"S:4,D\",\t\t\t\t// relation_flag10\n\t\t\t\"33\" =>\"L:96\",\t\t\t\t// relation_name1\n\t\t\t\"34\" =>\"L:96\",\t\t\t\t// relation_name2\n\t\t\t\"35\" =>\"L:96\",\t\t\t\t// relation_name3\n\t\t\t\"36\" =>\"L:96\",\t\t\t\t// relation_name4\n\t\t\t\"37\" =>\"L:96\",\t\t\t\t// relation_name5\n\t\t\t\"38\" =>\"L:96\",\t\t\t\t// relation_name6\n\t\t\t\"39\" =>\"L:96\",\t\t\t\t// relation_name7\n\t\t\t\"40\" =>\"L:96\",\t\t\t\t// relation_name8\n\t\t\t\"41\" =>\"L:96\",\t\t\t\t// relation_name9\n\t\t\t\"42\" =>\"L:96\",\t\t\t\t// relation_name10\n\t\t\t\"43\" =>\"S:1,D\",\t\t\t\t// listed_flag\n\t\t\t\"44\" =>\"L:96\",\t\t\t\t// Listed_name\n\t\t\t\"45\" =>\"L:6\",\t\t\t\t// sec_code\n\t\t\t\"46\" =>\"S:6,A\",\t\t\t\t// yuho_number\n\t\t\t\"47\" =>\"D\",\t\t\t\t\t// company_stat\n\t\t\t\"48\" =>\"L:96\",\t\t\t\t// company_stat_name\n\t\t\t\"49\" =>\"D\",\t\t\t\t\t// office_stat\n\t\t\t\"50\" =>\"L:96\",\t\t\t\t// office_stat_name\n\t\t\t\"51\" =>\"S:11,D\",\t\t\t// move_office_id\n\t\t\t\"52\" =>\"L:6,D\",\t\t\t\t// tousan_date\n\t\t\t\"53\" =>\"L:3\",\t\t\t\t// company_vitality\n\t\t\t\"54\" =>\"L:256\",\t\t\t\t// company_name\n\t\t\t\"55\" =>\"L:256,B\",\t\t\t// company_name_kana\n\t\t\t\"56\" =>\"L:256\",\t\t\t\t// office_name\n\t\t\t\"57\" =>\"S:7,D\",\t\t\t\t// company_zip\n\t\t\t\"58\" =>\"S:2,D\",\t\t\t\t// company_pref_id\n\t\t\t\"59\" =>\"S:5,D\",\t\t\t\t// company_city_id\n\t\t\t\"60\" =>\"L:256,J\",\t\t\t// company_addr1\n\t\t\t\"61\" =>\"L:256\",\t\t\t\t// company_addr2\n\t\t\t\"62\" =>\"L:256\",\t\t\t\t// company_addr3\n\t\t\t\"63\" =>\"L:256\",\t\t\t\t// company_addr4\n\t\t\t\"64\" =>\"L:256\",\t\t\t\t// company_addr5\n\t\t\t\"65\" =>\"L:256\",\t\t\t\t// company_addr6\n\t\t\t\"66\" =>\"L:13,N\",\t\t\t// company_tel\n\t\t\t\"67\" =>\"L:13,N\",\t\t\t// company_fax\n\t\t\t\"68\" =>\"D\",\t\t\t\t\t// office_count\n\t\t\t\"69\" =>\"D\",\t\t\t\t\t// capital\n\t\t\t\"70\" =>\"L:256\",\t\t\t\t// representative_title\n\t\t\t\"71\" =>\"L:256\",\t\t\t\t// representative\n\t\t\t\"72\" =>\"L:256,B\",\t\t\t// representative_kana\n\t\t\t\"73\" =>\"L:4,D\",\t\t\t\t// industry_code1\n\t\t\t\"74\" =>\"L:96\",\t\t\t\t// industry_name1\n\t\t\t\"75\" =>\"S:4,D\",\t\t\t\t// industry_code2\n\t\t\t\"76\" =>\"L:96\",\t\t\t\t// industry_name2\n\t\t\t\"77\" =>\"S:4,D\",\t\t\t\t// industry_code3\n\t\t\t\"78\" =>\"L:96\",\t\t\t\t// industry_name3\n\t\t\t\"79\" =>\"L:256,J:/.space\",\t// license\n\t\t\t\"80\" =>\"L:256,J:/.space\",\t// party\n\t\t\t\"81\" =>\"L:256,B\",\t\t\t// url\n\t\t\t\"82\" =>\"D\",\t\t\t\t\t// tel_cc_flag\n\t\t\t\"83\" =>\"S:8,D\",\t\t\t\t// tel_cc_date\n\t\t\t\"84\" =>\"L:13,N\",\t\t\t// move_tel_no\n\t\t\t\"85\" =>\"D\",\t\t\t\t\t// fax_cc_flag\n\t\t\t\"86\" =>\"S:8,D\",\t\t\t\t// fax_cc_date\n\t\t\t\"87\" =>\"L:13,N\",\t\t\t// move_fax_no\n\t\t\t\"88\" =>\"S:8,D\",\t\t\t\t// inv_date\n\t\t\t\"89\" =>\"S:2,D\",\t\t\t\t// emp_range\n\t\t\t\"90\" =>\"S:2,D\",\t\t\t\t// sales_range\n\t\t\t\"91\" =>\"S:2,D\"\t\t\t\t// income_range\n\t\t);\n\t}", "title": "" }, { "docid": "697e5ff11b4478b233c86f90dfc1f64a", "score": "0.53591985", "text": "public function get_user_list($userId=\"\") {\n\t\t $this->db->select(\"*\"); \n \t\t $this->db->from('insta_user');\n \t\t if($userId!=\"\")\n \t\t {\n \t\t \t$this->db->where('insta_user_id', $userId); \n \t\t } \t\n \t\t $this->db->order_by('insta_user_id','DESC');\t \n \t\t $query = $this->db->get();\n \t\t $row['user'] = $query->result();\n \t\t if($row['user'])\n \t\t {\n \t\t \t$c = array();\n \t\t \tforeach($row['user'] as $key=>$arr)\n \t\t \t{\n \t\t \t\t$query = $this->db->get_where('insta_user_meta', array('insta_user_id =' => $arr->insta_user_id));\n \t\t \t\tif ($query->num_rows())\n\t\t\t {\n\t\t\t $user_meta = $query->result_array(); \n\t\t\t $row['user_meta'] = array();\n\t\t\t foreach($user_meta as $key)\n\t\t\t {\t\t\t \t\t \t\n\t\t\t \t$new['user_meta'][$key['insta_user_meta_key']] = $key['insta_user_meta_value'];\n\t\t\t }\n\t\t\t \n\t\t\t $SQL = 'select insta_user_id from (select insta_user_id as insta_user_id from insta_jobs union all select insta_user_id from insta_job_apply union all select insta_job_refer_by_user_id from insta_job_refer union all select insta_user_id from insta_payment_process union all select insta_user_id from insta_payment) a where insta_user_id = \"'.$arr->insta_user_id.'\"';\n\t \t\t$query = $this->db->query($SQL);\n\t \t\t$foreign = $query->result_array();\n\t \t\tif(count($foreign) > 0)\n\t \t\t{\n\t \t\t\t$new['user_meta']['user_can_delete'] = 'NO';\t \t\t\t\n\t \t\t}else{\n\t \t\t\t$new['user_meta']['user_can_delete'] = 'Yes';\n\t \t\t}\n\n\t\t\t $row1['user_meta'][$arr->insta_user_id] = $new['user_meta'];\n\t\t\t array_push($c, json_encode($row1['user_meta'][$arr->insta_user_id]));\n\t\t\t }\t\t \n\t \t\t\n \t\t \t}\n \t\t \t$row['user_meta'] = $c; \n \t\t \t//echo \"<pre>\"; print_r($row['user_meta']); die;\n \t\t \treturn $row;\n \t\t } else {\n\t\t \treturn false;\n\t\t }\t\t\n\t}", "title": "" } ]
68985d7981d279da0f082ff0282b90fe
Recherche article Author: Delrodie AMOIKON Date: 18/10/2017 v1.0
[ { "docid": "80dc3f90672f535a150f9142bcbcd7ff", "score": "0.0", "text": "public function findBySlug($slug)\n {\n return $qb = $this->createQueryBuilder('p')\n ->select('p')\n ->addSelect('t')\n ->join('p.typost', 't')\n ->where('p.slug = :slug')\n ->setParameter('slug', $slug)\n ->getQuery()\n ->getSingleResult();\n }", "title": "" } ]
[ { "docid": "e5f8f3fd03a9f7d54c674d1c93435083", "score": "0.6797442", "text": "function afficherarticle()\n {\n $sql=\"SElECT * From article WHERE categorie='lies aux plantes' OR categorie='lies aux animaux'\";\n $db = config::getConnexion();\n try\n {\n $liste=$db->query($sql);\n return $liste;\n }\n catch (Exception $e)\n {\n die('Erreur: '.$e->getMessage());\n } \n }", "title": "" }, { "docid": "fc32ce29832aec1b4e0384140b488607", "score": "0.6777583", "text": "function afficherarticle4()\n {\n $sql=\"SElECT * From article WHERE categorie='lies aux plantes' OR categorie='lies aux animaux' LIMIT 0,1\";\n $db = config::getConnexion();\n try\n {\n $liste=$db->query($sql);\n return $liste;\n }\n catch (Exception $e)\n {\n die('Erreur: '.$e->getMessage());\n } \n }", "title": "" }, { "docid": "c3931112cf737aed7578900e43783017", "score": "0.6733695", "text": "function afficherarticle2()\n {\n $sql=\"SElECT * From article WHERE categorie='lies aux plantes' OR categorie='lies aux animaux' LIMIT 1,1\";\n $db = config::getConnexion();\n try\n {\n $liste=$db->query($sql);\n return $liste;\n }\n catch (Exception $e)\n {\n die('Erreur: '.$e->getMessage());\n } \n }", "title": "" }, { "docid": "3cd792bf6eeed1ad87fc6acf087bad85", "score": "0.67318755", "text": "function afficherarticle1()\n {\n $sql=\"SElECT * From article WHERE categorie='lies aux plantes' OR categorie='lies aux animaux' LIMIT 0,1\";\n $db = config::getConnexion();\n try\n {\n $liste=$db->query($sql);\n return $liste;\n }\n catch (Exception $e)\n {\n die('Erreur: '.$e->getMessage());\n } \n }", "title": "" }, { "docid": "816aa37f796afd4c3e49222ca86ae4f3", "score": "0.6636931", "text": "public function getRecherche(){\n\t\t$rRecherche = Array();\n if(isset($_GET['recherche'])&& !empty($_GET['recherche'])){\n $motcle = $_GET['recherche'];\n\t\t$res = $this->idbd->query(\"SELECT * FROM articles WHERE (article_titre LIKE '%$motcle%') OR (article_contenu LIKE '%$motcle%')\");\n\t\tif($res->rowCount() > 0){\n while($row = $res->fetch(PDO::FETCH_ASSOC))\n $this->rRecherche[] = $row;\n }\n\t\treturn $this->rRecherche;\n\t}\n}", "title": "" }, { "docid": "fd6fcc82c84bf12c92b76bf14c74c3b3", "score": "0.66362494", "text": "function afficherarticle3()\n {\n $sql=\"SElECT * From article WHERE categorie='lies aux plantes' OR categorie='lies aux animaux' LIMIT 2,1\";\n $db = config::getConnexion();\n try\n {\n $liste=$db->query($sql);\n return $liste;\n }\n catch (Exception $e)\n {\n die('Erreur: '.$e->getMessage());\n } \n }", "title": "" }, { "docid": "e2b105ef532ff490514564bd8a907b1a", "score": "0.66043127", "text": "public function getAllArticle() {\n $qb = $this->createQueryBuilder('e')\n ->where('e.actifArticle != ' . TypeEtat::SUPPRIME);\n // ->orderBy('e.typeArticle', 'ASC');\n return $qb->getQuery()->getResult();\n }", "title": "" }, { "docid": "6619143acae3e7f5343b050067f2bf77", "score": "0.65406317", "text": "public function ArticlesEleve()\n {\n $conn=$this->connexion(\"TDW\",\"127.0.0.1\",\"root\",\"\");\n $req= 'SELECT * from article where CategorieCons=\"Secondaire\" or CategorieCons=\"Moyen\" or CategorieCons=\"Primaire\"';\n $r= $this->requete($conn,$req);\n $this->deconnexion($conn);\n return $r;\n }", "title": "" }, { "docid": "4c48a9ea726a95a768fb6da9b1fe8d5c", "score": "0.6521604", "text": "function get($params){\r\n\t\t\t$filters = explode(' ',$params[\"filter\"]);\r\n\t\t\t$words = array();\r\n\t\t\tforeach($filters as $filter) {\r\n\t\t\t\t$formatted = preg_replace('/\\s+/', '', $filter);\r\n\t\t\t\tif(strlen($formatted) == 0)\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t$words[] = $filter;\r\n\t\t\t}\r\n\t\t\t/*Article query*/\r\n\t\t\t$selects = array();\t\t\t\r\n\t\t\tforeach($params[\"select\"] as $param) {\r\n\t\t\t\tif($param == \"total\")\r\n\t\t\t\t\t$selects[] = \"SQL_CALC_FOUND_ROWS content.id as id\";\r\n\t\t\t\telse if($param == \"id\")\r\n\t\t\t\t\t$selects[] = \"content.id as id\";\r\n\t\t\t\telse if($param == \"title\")\r\n\t\t\t\t\t$selects[] = \"content.title as title\";\r\n\t\t\t\telse if($param == \"introtext\")\r\n\t\t\t\t\t$selects[] = \"content.introtext as introtext\";\r\n\t\t\t\telse if($param == \"image\")\r\n\t\t\t\t\t\t$selects[] = \"'' as image\";\r\n\t\t\t\telse if($param == \"created\")\r\n\t\t\t\t\t$selects[] = \"content.created as created\";\r\n\t\t\t\telse if($param == \"route\")\r\n\t\t\t\t\t$selects[] = \"menu.path as route\";\r\n\t\t\t}\r\n\t\t\t$selects[] = \"'article' as type\";\r\n\t\t\t$db = JFactory::getDBO();\r\n\t\t\t$query = $db->getQuery(true);\r\n\t\t\t// select\r\n\t\t\t$query->select($selects);\r\n\t\t\t// join\r\n\t\t\t$query->from(\"#__content content\");\r\n\t\t\t$query->join(\"LEFT\", \"#__content_frontpage frontpage ON content.id = frontpage.content_id\");\r\n\t\t\t$query->join(\"LEFT\", \"#__menu menu ON content.alias = menu.alias\");\r\n\t\t\t// where\r\n\t\t\t$where = \"content.catid NOT IN (SELECT id FROM #__categories WHERE LOWER(title) = LOWER('No Search') OR LOWER(title) = LOWER('No Buscar'))\";\r\n\t\t\t$where .= \" AND content.state = 1\";\r\n\t\t\t$where .= \" AND content.introtext NOT LIKE '%loadposition%'\";\r\n\t\t\t$where .= \" AND menu.path IS NOT NULL\";\r\n\t\t\t$where .= \" AND menu.published = 1\"; \t\t\t\r\n\t\t\t$where .= \" AND (content.language = '*' OR content.language LIKE '\".$this->language->current.\"-%')\";\t\t\t\r\n\t\t\tforeach($words as $word) {\t\t\t\t\r\n\t\t\t\t$where .= \" AND (LOWER(introtext) LIKE LOWER('%\".$word.\"%') OR LOWER(content.title) LIKE LOWER('%\".$word.\"%'))\";\r\n\t\t\t}\t\r\n\t\t\tif(isset($params[\"whereCustomArticle\"])) {\r\n\t\t\t\t$where .= \" \".$params[\"whereCustomArticle\"];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$query->where($where);\r\n\t\t\t$query->group('content.id');\r\n\t\t\t// order \r\n\t\t\t/*if(!isset($params[\"order\"])) {\r\n\t\t\t\t$query->order('content.created');\t\t\t\r\n\t\t\t}\r\n\t\t\telseif($params[\"order\"] == \"popular\") {\r\n\t\t\t\t$query->order(\"frontpage.ordering DESC, content.created\");\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$query->order($params[\"order\"] . \", content.created\");\r\n\t\t\t}*/\r\n\t\t\t\r\n\t\t\t/*Cart query*/\r\n\t\t\tif(isset($params[\"cart\"]) && $params[\"cart\"]) {\r\n\t\t\t\t$selects = array();\t\t\t\r\n\t\t\t\tforeach($params[\"select\"] as $param) {\t\t\t\t\r\n\t\t\t\t\tif($param == \"id\" || $param == \"total\")\r\n\t\t\t\t\t\t$selects[] = \"cart.id as id\";\r\n\t\t\t\t\telse if($param == \"title\")\r\n\t\t\t\t\t\t$selects[] = \"cart.name as title\";\r\n\t\t\t\t\telse if($param == \"introtext\")\r\n\t\t\t\t\t\t$selects[] = \"cart.description as introtext\";\r\n\t\t\t\t\telse if($param == \"image\")\r\n\t\t\t\t\t\t$selects[] = \"cart.image as image\";\r\n\t\t\t\t\telse if($param == \"created\")\r\n\t\t\t\t\t\t$selects[] = \"cart.checked_out_time as created\";\r\n\t\t\t\t\telse if($param == \"route\")\r\n\t\t\t\t\t\t$selects[] = \"CONCAT(menu.path,'?filter=',cart.id) as route\";\r\n\t\t\t\t}\r\n\t\t\t\t$selects[] = \"'cart' as type\";\t\t\t\t\r\n\t\t\t\t$query2 = $db->getQuery(true);\r\n\t\t\t\t// select\r\n\t\t\t\t$query2->select($selects);\r\n\t\t\t\t// join\r\n\t\t\t\t$query2->from(\"#__rokquickcart cart\");\r\n\t\t\t\t$query2->join(\"LEFT\", \"#__menu menu ON LOWER(REPLACE(menu.alias, '-', ' ')) = LOWER(REPLACE(REPLACE(SUBSTRING_INDEX(SUBSTRING_INDEX(cart.params, '{\\\"', -1), '\\\":',1), '\\/', ' '), '\\\\\\', '')) \");\r\n\t\t\t\t// where\r\n\t\t\t\t/*$where .= \" (content.language = '*' OR content.language LIKE '\".$this->language->current.\"-%')\";*/\r\n\t\t\t\t$where = \"cart.published = 1\"; \r\n\t\t\t\t$where .= \" AND menu.published = 1\"; \r\n\t\t\t\t$where .= \" AND menu.path IS NOT NULL\";\t\t\t\r\n\t\t\t\tforeach($words as $word) {\t\t\t\t\r\n\t\t\t\t\t$where .= \" AND (LOWER(cart.name) LIKE LOWER('%\".$word.\"%') OR LOWER(cart.description) LIKE LOWER('%\".$word.\"%'))\";\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(isset($params[\"whereCustomCart\"])) {\r\n\t\t\t\t\t$where .= \" \".$params[\"whereCustomCart\"];\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t$query2->where($where);\r\n\t\t\t\t\r\n\t\t\t\t// union\r\n\t\t\t\t$query->unionAll($query2);\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t$response = array();\r\n\t\t\t$response[\"value\"] = $query->__toString();\r\n\t\t\techo json_encode($response);\r\n\t\t\treturn;\r\n\t\t\t*/\r\n\t\t\t// paging\r\n\t\t\tif(isset($params[\"paging\"])) {\r\n\t\t\t\t// not working on joomla 3\r\n\t\t\t\t//$query->setLimit($params[\"paging\"][\"limit\"].','.$params[\"paging\"][\"limit\"]*$params[\"paging\"][\"page\"]); // LIMIT,PAGE\r\n\t\t\t\t$db->setQuery($query, $params[\"paging\"][\"page\"]*$params[\"paging\"][\"limit\"],$params[\"paging\"][\"limit\"]);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$db->setQuery($query);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$items = $db->loadAssocList();\r\n\t\t\t\r\n\t\t\t$utils = new Utils();\r\n\t\t\t/*strip out html*/\r\n\t\t\t$itemsParsed = array();\r\n\t\t\tforeach($items as $item) {\r\n\t\t\t\t$output = $utils->htmlParse($item['introtext']);\t\t\t\t\r\n\t\t\t\t$item['introtext'] = $output;\r\n\t\t\t\t$itemsParsed[] = $item;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(!in_array(\"total\", $params[\"select\"])){\r\n\t\t\t\t$response = array();\r\n\t\t\t\t$response[\"value\"] = $itemsParsed;\r\n\t\t\t\techo json_encode($response);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// total items\r\n\t\t\t$db->setQuery(\"SELECT FOUND_ROWS()\");\r\n\t\t\t$total = $db->loadResult();\r\n\t\t\t// return model\r\n\t\t\t$model = new SearchModel();\r\n\t\t\t$model->total = $total;\r\n\t\t\t$model->page = $params[\"paging\"][\"page\"];\r\n\t\t\t$model->items = $itemsParsed;\r\n\t\t\t$model->words = $words;\r\n\t\t\treturn $model;\r\n\t\t}", "title": "" }, { "docid": "f4abd5f1862d89805521c0a10da22133", "score": "0.6453043", "text": "function formulaires_recherche_a2a_charger($id_article){\n\t$recherche = _request('recherche');\n\t$recherche_titre = _request('recherche_titre');\n\t$id_article_orig = $id_article;\n\n\treturn \n\t\tarray(\n\t\t\t'recherche' => $recherche,\n\t\t\t'recherche_titre' => $recherche_titre,\n\t\t\t'id_article_orig' => $id_article_orig,\n\t\t);\n}", "title": "" }, { "docid": "6a2d7426f026e414f52063d66e09f17e", "score": "0.6450915", "text": "function afficherarticle5()\n {\n $sql=\"SElECT * From article WHERE categorie='lies aux plantes' OR categorie='lies aux animaux' LIMIT 1,1\";\n $db = config::getConnexion();\n try\n {\n $liste=$db->query($sql);\n return $liste;\n }\n catch (Exception $e)\n {\n die('Erreur: '.$e->getMessage());\n } \n }", "title": "" }, { "docid": "316784720b6e20b2e520d05365326c9e", "score": "0.6449034", "text": "function searchArticle($data)\r\n{\r\n $DB = new DB();\r\n $value = \"%$data%\";\r\n if (isset($value)) {\r\n $req = $DB->db->prepare('SELECT * FROM articles WHERE article_nom LIKE ?'); // TODO: Ne pas baser le moteur de recherche que sur le nom\r\n $req->execute([$value]);\r\n $donnees = $req->fetchAll(PDO::FETCH_OBJ);\r\n $req->closeCursor(); // Termine le traitement de la requête\r\n return $donnees;\r\n } else {\r\n return null;// FIXME: Faire en sorte que la le bouton ne renvoie rien\r\n }\r\n}", "title": "" }, { "docid": "002a459c780f746d763cdde78622f887", "score": "0.644231", "text": "function afficherarticle6()\n {\n $sql=\"SElECT * From article WHERE categorie='lies aux plantes' OR categorie='lies aux animaux' LIMIT 2,2\";\n $db = config::getConnexion();\n try\n {\n $liste=$db->query($sql);\n return $liste;\n }\n catch (Exception $e)\n {\n die('Erreur: '.$e->getMessage());\n } \n }", "title": "" }, { "docid": "d37b8263adff2069a85b8fa497e3af73", "score": "0.63783747", "text": "public function getAllArticleActif() {\n $qb = $this->createQueryBuilder('e')\n ->where('e.actifArticle = ' . TypeEtat::ACTIF);\n // ->orderBy('e.typeArticle', 'ASC');\n return $qb->getQuery()->getResult();\n }", "title": "" }, { "docid": "5d850e787e3c67a14cb6da578b3e4238", "score": "0.63423127", "text": "private function searchNews() {\n\n $arrWhere = array(\n \"news_image LIKE ?\",\n \"news_intro LIKE ?\",\n \"news_text LIKE ?\",\n \"news_title LIKE ?\"\n );\n $arrParams = array(\n \"%\".$this->strSearchterm.\"%\",\n \"%\".$this->strSearchterm.\"%\",\n \"%\".$this->strSearchterm.\"%\",\n \"%\".$this->strSearchterm.\"%\"\n );\n\n $strWhere = \"( \".implode(\" OR \", $arrWhere).\" ) \";\n\n //Query bauen\n $strQuery = \"SELECT system_id\n FROM \"._dbprefix_.\"news,\n \"._dbprefix_.\"system\n WHERE \".$strWhere.\"\n AND system_id = news_id\n AND system_status = 1\";\n\n $arrNews = $this->objDB->getPArray($strQuery, $arrParams);\n\n\n if(count($arrNews) > 0) {\n\n foreach($arrNews as $arrOneNews) {\n\n $objNews = new class_module_news_news($arrOneNews[\"system_id\"]);\n $arrDetails = $this->getElementData($objNews);\n\n foreach($arrDetails as $arrOnePage) {\n\n //check, if the post is available on a page using the current language\n if(!isset($arrOnePage[\"news_detailspage\"]) || $arrOnePage[\"news_detailspage\"] == \"\" || !$objNews->rightView())\n continue;\n\n $objDetails = class_module_pages_page::getPageByName($arrOnePage[\"news_detailspage\"]);\n\n if($objDetails == null)\n continue;\n\n if(isset($this->arrHits[$objNews->getSystemid().$objDetails->getSystemid()])) {\n $objResult = $this->arrHits[$objNews->getSystemid().$objDetails->getSystemid()];\n $objResult->setIntHits($objResult->getIntHits() + 1);\n }\n else {\n\n //TODO: PV position\n\n $objResult = new class_search_result();\n $objResult->setStrResultId($objNews->getSystemid().$objDetails->getSystemid());\n $objResult->setStrSystemid($objNews->getSystemid());\n $objResult->setStrPagelink(getLinkPortal($arrOnePage[\"news_detailspage\"], \"\", \"_self\", $arrOnePage[\"news_detailspage\"], \"newsDetail\", \"&highlight=\".urlencode(html_entity_decode($this->strSearchterm, ENT_QUOTES, \"UTF-8\")), $objNews->getSystemid()));\n $objResult->setStrPagename($arrOnePage[\"news_detailspage\"]);\n $objResult->setStrDescription($objNews->getStrTitle());\n\n $this->arrHits[$objNews->getSystemid().$objDetails->getSystemid()] = $objResult;\n }\n }\n }\n }\n }", "title": "" }, { "docid": "0c5eaf2d510fe8424ea7ee58cbcd982d", "score": "0.63383245", "text": "public function getAllOrOneArticleActif($idArticle) {\n $idArticleQuery = (int) $idArticle;\n $qb = $this->createQueryBuilder('p') \n ->where('p.actifArticle = ' . TypeEtat::ACTIF) \n ->andWhere('r.actifArticle = ' . TypeEtat::ACTIF)\n ;\n if($idArticle > 0){\n $qb->andWhere('p.id =:idArticle')\n \n ->setParameter('idArticle', $idArticleQuery);\n \n }\n //var_dump($qb->getDQL());exit;\n \n return $qb->getQuery()->getResult();\n }", "title": "" }, { "docid": "aab97a7a99db8d5c8f72a235f33f2298", "score": "0.624435", "text": "public function getArticlesForSearch( $search, $offset = 0, $limit = 0 ) {\r\n \r\n \r\n $qb = $this->getEntityManager()\r\n ->createQueryBuilder()\r\n ->select('article')\r\n ->from('BoutiqueDatabaseBundle:Article', 'article');\r\n \r\n// if( count($search) > 1 ) {\r\n// $qb->where(\"article.libelle LIKE '%\".$search[0].\"%'\")\r\n// ->orWhere(\"article.code LIKE '%\".$search[0].\"%'\")\r\n// ->orWhere(\"article.description LIKE '%\".$search[0].\"%'\");\r\n// \r\n// for( $i = 0; $i < count($search) - 1; $i++ ) {\r\n// $qb->orWhere(\"article.libelle LIKE '%\".$search[$i].\"%'\");\r\n// }\r\n// for( $i = 0; $i < count($search) - 1; $i++ ) {\r\n// $qb->orWhere(\"article.code LIKE '%\".$search[$i].\"%'\");\r\n// }\r\n// for( $i = 0; $i < count($search) - 1; $i++ ) {\r\n// $qb->orWhere(\"article.description LIKE '%\".$search[$i].\"%'\");\r\n// }\r\n// }\r\n// else {\r\n $qb->where(\"article.libelle LIKE '%\".$search.\"%'\")\r\n ->orWhere(\"article.code LIKE '%\".$search.\"%'\")\r\n ->orWhere(\"article.description LIKE '%\".$search.\"%'\")\r\n ->orWhere(\"article.codeFournisseur LIKE '%\".$search.\"%'\");\r\n \r\n// }\r\n \r\n $qb->orderBy('article.code', 'ASC');\r\n// ->setFirstResult($offset)\r\n// ->setMaxResults($limit);\r\n\r\n //var_dump($qb->getQuery()->getSQL()); exit;\r\n\r\n $data = $qb->getQuery()->getResult();\r\n\r\n return $data;\r\n }", "title": "" }, { "docid": "6367d4d37c806d579d90242d20d71018", "score": "0.6193721", "text": "public function select(){\r\n /*$list = D('article')->join(\"tb_article_tag on tb_article_tag.articleid=tb_article.id\")\r\n ->join(\"tb_tag on tb_tag.id=tb_article_tag.tagid\")\r\n ->field(\"tb_article.id,tb_article.articletitle,tb_article.ispublic,tb_article.articletime,tb_tag.name\")\r\n ->where('')\r\n ->select();*/\r\n $count =D('article')->count();\r\n $Page = getpage($count,7);\r\n $list =D('article')\r\n ->Order('articletime desc')\r\n ->limit($Page->firstRow.','.$Page->listRows)\r\n ->select();\r\n $this->assign(\"page\",$Page->show());\r\n //取出文章\r\n $this->assign(\"article\",$list);\r\n\r\n $this->display();\r\n }", "title": "" }, { "docid": "ef962fa94552e163b9422cae385b8f48", "score": "0.61543673", "text": "function get_article_by_search($search = '', $field = '') {\n\n $sintax = \"SELECT \" . $field . \" FROM \" . $this->table . \"\n WHERE status = 1 AND title LIKE '%\" . $search . \"%' ESCAPE '!'\n ORDER BY title ASC\";\n\n $query = $this->db->query($sintax);\n\n $result = $query->result();\n\n return $result;\n\n }", "title": "" }, { "docid": "1f2484c7fe0ded5002bd669a922bd39c", "score": "0.6133445", "text": "public function rechercheEvenement()\r\n\t\t{\r\n\r\n\t\t\t$texte = valid_donnees($_GET['texte']);\r\n\t\t\r\n\t\t\t$event = new EvenementsModel();\r\n\t\t\t$tableau = $event->rechercherEvenement($texte);\t\r\n\t\r\n\t\t\t$maVue = new View($tableau,\"pageListe\",\"Votre recherche\");\r\n\t\t\t$maVue->getView();\r\n\t\t}", "title": "" }, { "docid": "ab0136b0fdba37bcd40131142bfb840c", "score": "0.6125986", "text": "public function findAllByArticle(Article $article) \n {\n // et peut s'utiliser comme PDO pour écrire les requetes SQL à la main\n // surtout si elles sont complexes\n // $cnx = $this->getEntityManager()->getConnection();\n // $cnx->\n \n $qb = $this->createQueryBuilder('c');\n \n $qb\n ->where('IDENTITY(c.article) = ' . $article->getId())\n ->orderBy('c.date', 'DESC')\n ;\n \n return $qb->getQuery()->getResult();\n }", "title": "" }, { "docid": "8a093a0e9e6b7c2b8d9c73f1c8d4fc01", "score": "0.61091346", "text": "function SearchRes(){\n\t\n\tglobal $db_articles,$db_category,$db_setup,$db_comments,$db_admin,$db_news;\n\tglobal $url_articles;\n\tglobal $eden_cfg;\n\t\n\tif (!empty($_POST['podminka'])){$podminka = $_POST['podminka'];} else {$podminka = $_GET['podminka'];}\n\tif (!empty($_POST['search_choice'])){$search_choice = $_POST['search_choice'];} else {$search_choice = $_GET['search_choice'];}\n\tif (!empty($_POST['retezec'])){$retezec = AGet($_POST,'retezec');} else {$retezec = AGet($_GET,'retezec');}\n\t$showtime = formatTime(time(),\"YmdHis\");\n\t// Výcet povolených tagu\n\t$allowtags = \"\";\n\t// Z obsahu promenné body vyjmout nepovolené tagy\n\t$retezec = strip_tags($retezec,$allowtags);\n\t$retezec = htmlspecialchars($retezec, ENT_QUOTES);\n\t$retezec = mysql_real_escape_string($retezec);\n\t$podminka = strip_tags($podminka,$allowtags);\n\t$podminka = mysql_real_escape_string($podminka);\n\t$podminka = htmlspecialchars($podminka, ENT_QUOTES);\n\t$search_choice = strip_tags($search_choice,$allowtags);\n\t$search_choice = mysql_real_escape_string($search_choice);\n\t$search_choice = htmlspecialchars($search_choice, ENT_QUOTES);\n\t\n\tif (($podminka == 1) || ($podminka == 2)){\n\t\t/* podle podminky si nastavime promennou $spojka */\n\t\tif ($podminka == 1) {$spojka = \"AND\"; }\n\t\tif ($podminka == 2) {$spojka = \"OR\"; }\n\t\t\n\t\t/* vstupni retezec rozdelime do samostatnych slov */\n\t\t$seznam_slov = explode (' ', $retezec);\n\t\t$pomocny = \"LOWER(n.\".$search_choice.\"_text \".$eden_cfg['db_collate'].\") LIKE LOWER('%\".$seznam_slov[0].\"%' \".$eden_cfg['db_collate'].\")\";\n\t\t$pomocny2 = \"LOWER(n.\".$search_choice.\"_headline \".$eden_cfg['db_collate'].\") LIKE LOWER('%\".$seznam_slov[0].\"%' \".$eden_cfg['db_collate'].\")\";\n\t\t$pomocny3 = \"LOWER(n.\".$search_choice.\"_perex \".$eden_cfg['db_collate'].\") LIKE LOWER('%\".$seznam_slov[0].\"%' \".$eden_cfg['db_collate'].\")\";\n\t\t\n\t\t$seznam_slov_num = count($seznam_slov);\n\t\tfor ($i = 1; $i < $seznam_slov_num; $i++) {\n\t\t\t$pomocny = $pomocny.$spojka.\" LOWER(n.\".$search_choice.\"_text \".$eden_cfg['db_collate'].\") LIKE LOWER('%\".$seznam_slov[$i].\"%' \".$eden_cfg['db_collate'].\") \";\n\t\t\t$pomocny2 = $pomocny2.$spojka.\" LOWER(n.\".$search_choice.\"_headline \".$eden_cfg['db_collate'].\") LIKE LOWER('%\".$seznam_slov[$i].\"%' \".$eden_cfg['db_collate'].\") \";\n\t\t\t$pomocny3 = $pomocny3.$spojka.\" LOWER(n.\".$search_choice.\"_perex \".$eden_cfg['db_collate'].\") LIKE LOWER('%\".$seznam_slov[$i].\"%' \".$eden_cfg['db_collate'].\") \";\n\t\t}\n\t\tif ($search_choice == \"article\"){\n\t\t\t$res = mysql_query(\"\n\t\t\tSELECT n.article_id, n.article_headline, n.article_perex, n.article_text, n.article_ftext, n.article_date_on, n.article_img_1, n.article_link, n.article_author_id, n.article_comments, n.article_category_id, n.article_parent_id \n\t\t\tFROM $db_articles AS n \n\t\t\tJOIN $db_category AS c ON c.category_id=n.article_category_id AND c.category_archive=1 \n\t\t\tWHERE (($pomocny) OR ($pomocny2) OR ($pomocny3)) AND n.article_public=0 AND n.article_publish=1 AND $showtime >= n.article_date_on AND $showtime BETWEEN n.article_date_on AND n.article_date_off \n\t\t\tORDER BY n.article_date_on DESC\") or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t} else {\n\t\t\t$res = mysql_query(\"\n\t\t\tSELECT n.news_id, n.news_headline, n.news_text, n.news_date_on, n.news_author_id, n.news_comments, n.news_category_id \n\t\t\tFROM $db_news AS n \n\t\t\tJOIN $db_category AS c ON c.category_id=n.news_category_id AND c.category_archive=1 \n\t\t\tWHERE (($pomocny) OR ($pomocny2)) AND n.news_publish=1 AND $showtime >= n.news_date_on AND $showtime BETWEEN n.news_date_on AND n.news_date_off \n\t\t\tORDER BY n.news_date_on DESC\") or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t}\n\t}\n\tif ($podminka == 3){\n\t\tif ($search_choice == \"article\"){\n\t\t\t$res = mysql_query(\"\n\t\t\tSELECT n.article_id, n.article_headline, n.article_perex, n.article_text, n.article_ftext, n.article_date_on, n.article_img_1, n.article_link, n.article_author_id, n.article_comments, n.article_category_id, n.article_parent_id \n\t\t\tFROM $db_articles AS n \n\t\t\tJOIN $db_category AS c ON c.category_id=n.article_category_id AND c.category_archive=1 \n\t\t\tWHERE n.article_public=0 AND n.article_publish=1 AND $showtime >= n.article_date_on AND $showtime BETWEEN n.article_date_on AND n.article_date_off AND (n.article_text LIKE '%$retezec%') OR (n.article_perex LIKE '%$retezec%') OR (n.article_headline LIKE '%$retezec%') \n\t\t\tORDER BY article_date_on DESC\") or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t} else {\n\t\t\t$res = mysql_query(\"\n\t\t\tSELECT n.news_id, n.news_headline, n.news_text, n.news_date_on, n.news_author_id, n.news_comments, n.news_category_id \n\t\t\tFROM $db_news AS n \n\t\t\tJOIN $db_category AS c ON c.category_id=n.news_category_id AND c.category_archive=1 \n\t\t\tWHERE n.news_publish=1 AND $showtime >= n.news_date_on AND $showtime BETWEEN n.news_date_on AND n.news_date_off AND (n.news_text LIKE '%$retezec%') OR (n.news_headline LIKE '%$retezec%') \n\t\t\tORDER BY n.news_date_on DESC\") or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t\t}\n\t}\n\t$num = mysql_num_rows($res);\n\t//\n\t// Nacteni nastaveni poctu zobrazovanych novineks\n\t$res_setup = mysql_query(\"SELECT setup_article_number FROM $db_setup\") or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error());\n\t$ar_setup = mysql_fetch_array($res_setup);\n\t\n\t$hits = $ar_setup['setup_article_number'];\n\t$m = 0;// nastaveni iterace\n\t\n\tif (empty($_GET['page'])) {$_GET['page'] = 1;} // i kdyz je promenna $_GET['page'] prazdna nastavi se pocet starnek na 1\n\tif ($hits == 0){$hits = 15;}\n\t$stw2 = ($num/$hits);\n\t$stw2 = (integer) $stw2;\n\tif ($num%$hits > 0) {$stw2++;}\n\t$np = $_GET['page']+1;\n\t$pp = $_GET['page']-1;\n\tif ($_GET['page'] == 1) { $pp = 1; }\n\tif ($np > $stw2) { $np = $stw2;}\n\t\n\t$sp = ($_GET['page']-1)*$hits;\n\t$ep = ($_GET['page']-1)*$hits+$hits;\n\t\n\t// Nacteni sablony\n\tinclude \"templates/tpl.search.header.php\";\n\t\n\t//unset($retezec);\n\twhile ($ar = mysql_fetch_array($res)){\n\t\tif ($search_choice == \"article\"){\n\t\t\t$article_id = $ar['article_id'];\n\t\t\t$article_headline = TreatText($ar['article_headline'],0);\n\t\t\t$article_perex = TreatText($ar['article_perex'],0);\n\t\t\t$article_text = TreatText($ar['article_text'],0);\n\t\t\t$article_date_on = $ar['article_date_on'];\n\t\t\t$article_ftext = $ar['article_ftext'];\n\t\t\t$article_img_1 = $ar['article_img_1'];\n\t\t\t$article_link = $ar['article_link'];\n\t\t\t$article_author_id = $ar['article_author_id'];\n\t\t\t$article_comments = $ar['article_comments'];\n\t\t\t$article_category_id = $ar['article_category_id'];\n\t\t\tif (AGet($ar,'article_id_parents') == 1){\n\t\t\t\t$parent_id = $ar['article_id'];\n\t\t\t\t$parent_headline = $article_headline;\n\t\t\t\t$parent_preview = $article_perex;\n\t\t\t}\n\t\t} else {\n\t\t\t$article_id = $ar['news_id'];\n\t\t\t$article_headline = TreatText($ar['news_headline'],0);\n\t\t\t$article_text = TreatText($ar['news_text'],0);\n\t\t\t$article_date_on = $ar['news_date_on'];\n\t\t\t$article_author_id = $ar['news_author_id'];\n\t\t\t$article_comments = $ar['news_comments'];\n\t\t\t$article_category_id = $ar['news_category_id'];\n\t\t}\n\t\t$m++;\n\t\tif ($m>$sp and $m<=$ep){ //Spravne nastaveni poctu zobrazeni na strance\n\t\t\t$res2 = mysql_query(\"SELECT COUNT(*) FROM $db_comments WHERE comment_pid=\".(integer)$article_id.\" AND comment_modul='\".$search_choice.\"'\") or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error()); // Nastaveni ukazatele na komentare v danem clanku\n\t\t\t$num2 = mysql_fetch_array($res2); // Zjisteni poctu prispevku k danemu clanku\n\t\t\t\n\t\t\t$article_text = str_replace( \"&acute;\",\"'\",$article_text);\n\t\t\t\n\t\t\t/* Highlighter */\n\t\t\t$article_headline = textHighlighter::createInstance('<span class=\"zvyrazneni\">', '</span>')->highlight($article_headline, $retezec);\n\t\t\t$article_perex = textHighlighter::createInstance('<span class=\"zvyrazneni\">', '</span>')->highlight($article_perex, $retezec);\n\t\t\t$article_text = textHighlighter::createInstance('<span class=\"zvyrazneni\">', '</span>')->highlight($article_text, $retezec);\n\t\t\t// Nastaveni datumu\n\t\t\t$datum_clanku = FormatTimestamp($article_date_on,\"l d.m.Y, H:i\");\n\t\t\t//***********************************************\n\t\t\t//\t\t\tNovinky\n\t\t\t//***********************************************\n\t\t\t\n\t\t\t$res6 = mysql_query(\"SELECT admin_nick, admin_email FROM $db_admin WHERE admin_id=\".(integer)$article_author_id) or die (\"<strong>File:</strong> \".__FILE__.\"<br /><strong>Line:</strong>\".__LINE__.\"<br />\".mysql_error()); // Vybere jmeno autora\n\t\t\t$ar6 = mysql_fetch_array($res6);\n\t\t\t\n\t\t\t$admin_nick = $ar6['admin_nick'];\n\t\t\t$admin_email = $ar6['admin_email'];\n\t\t\t\n\t\t\t// Nacteni sablony\n\t\t\tinclude \"templates/tpl.search.php\";\n\t\t}\n\t}\n\t// Pokud je novinek vice, nezli se vejde na 1 stranku zobrazi se jejich pocitani a prechazeni mezi nima\n\tif ($stw2 > 1){\n\t\t// Nacteni sablony\n\t\tinclude \"templates/tpl.search.dalsi.php\";\n\t}\n}", "title": "" }, { "docid": "d4a7e8939bb84f87564542dcbe926d92", "score": "0.6042145", "text": "function searchKeyword($p = array(), $total_item =-1 )\n {\n global $conn, $feedback;\n\n global $g_pager_params;\n \n $q = \"\";\n $article_id = $p['article_id'];\n if (!empty($article_id)) {\n if (is_array($article_id)) {\n $q .= \"\\nAND ar.article_id in ('\". implode(\"','\", $article_id).\"') \";\n } else {\n $article_id = addslashes(htmlspecialchars(trim($article_id)));\n $q .= \"\\nAND ar.article_id = '\".$article_id.\"' \";\n }\n }\n\n $type_id = $p['tid'];\n if (strlen($type_id)) {\n $type_id = addslashes(htmlspecialchars(trim($type_id)));\n $q .= \"\\nAND ck.article_type = '\".$type_id.\"' \";\n }\n\n $copy_writer_id = $p['uid'];\n if (!empty($copy_writer_id)) {\n $copy_writer_id = addslashes(htmlspecialchars(trim($copy_writer_id)));\n $q .= \"\\nAND ck.copy_writer_id = '\".$copy_writer_id.\"' \";\n }\n\n $editor_id = $p['eid'];\n if (!empty($editor_id)) {\n $editor_id = addslashes(htmlspecialchars(trim($editor_id)));\n $q .= \"\\nAND ck.editor_id = '\".$editor_id.\"' \";\n }\n\n $client_id = $p['cid'];\n if (!empty($client_id)) {\n $client_id = addslashes(htmlspecialchars(trim($client_id)));\n $q .= \"\\nAND cc.client_id = '\".$client_id.\"' \";\n }\n\n $article_status = $p['article_status'];\n if (is_array($article_status) && !empty($article_status))\n {\n $q .= \"\\nAND ar.article_status IN ('\". implode(\"', '\", $article_status).\"') \";\n } else {\n $article_status = addslashes(htmlspecialchars(trim($article_status)));\n if ($article_status != '') {\n if ($article_status == -1) {\n $q .= \"\\nAND ck.copy_writer_id = '0' \";\n } else {\n $q .= \"\\nAND ar.article_status = '\".$article_status.\"' \";\n }\n }\n }\n \n $where = \"\\nWHERE 1 {$q} \";\n $count = $total_item;\n $sql_left = \"\\nLEFT JOIN articles AS ar ON (ar.keyword_id = ck.keyword_id) \";\n $sql_left .= \"\\nLEFT JOIN article_action AS aa ON (aa.article_id = ar.article_id AND aa.status=1 AND aa.new_status='1gc' AND aa.curr_flag=1)\";\n $sql_left .= \"\\nLEFT JOIN article_payment_log AS apl ON (apl.article_id = ar.article_id AND ck.copy_writer_id = apl.user_id) \";\n $sql_left .= \"\\nLEFT JOIN article_type AS at ON at.type_id = ck.article_type \";\n $sql_left .= \"\\nLEFT JOIN `article_cost` AS ac ON (ac.campaign_id = ck.campaign_id and ac.article_type=ck.article_type) \";\n $sql_left .= \"\\nLEFT JOIN `article_cost_history` AS ach ON (ach.campaign_id = ck.campaign_id AND ach.article_type=ck.article_type AND ach.user_id=apl.user_id AND ach.month=apl.pay_month) \";\n $sql_left .= \"\\nLEFT JOIN client_campaigns AS cc ON (cc.campaign_id = ck.campaign_id) \";\n if ($total_item == -1) {\n $q .= ' AND ar.phandle IS NOT NULL ';\n $where = \"\\nWHERE ck.status!='D' \" . $q;\n\t\t $query = \"\\nSELECT COUNT(DISTINCT ck.keyword_id) AS count \".\n \"\\nFROM campaign_keyword AS ck \". $sql_left . $where;\n $count = $conn->GetOne($query);\n }\n\n if ($count <= 0 || !isset($count)) {\n //$feedback = \"Couldn\\'t find any information,Please try again\";//找不到相关的信息,请重新设置搜索条件\n return false;\n }\n\n $perpage = 50;\n if (trim($_GET['perPage']) > 0) {\n $perpage = $_GET['perPage'];\n }\n\n require_once 'Pager/Pager.php';\n $params = array(\n 'perPage' => $perpage,\n 'totalItems' => $count\n );\n $pager = &Pager::factory(array_merge($g_pager_params, $params));\n\n $cp_users = User::getCpPaymentHistory(array(), false);\n\n \n $q = \"SELECT DISTINCT `ck`.`keyword_id`, `ck`.`campaign_id`, `cc`.`campaign_name`, `ck`.`copy_writer_id`, \". \n \"`ck`.`editor_id`, `ck`.`keyword`, `ck`.`article_type`, `ck`.`keyword_description`, \" . \n \"`ck`.`date_start`, `ck`.`date_end`, `ck`.`creation_user_id`, `ck`.`creation_role`, \" .\n \"`ck`.`keyword_category`, `ck`.`status`, `ck`.`cost_per_article`, at.parent_id ,`ck`.`is_sent`,`ar`.`cp_updated`, \" . \n \"ar.article_id, ar.article_number, ar.approval_date, MAX(aa.created_time) as google_approved_time , \" . \n \"ar.target_pay_month, ar.is_canceled, apl.log_id, apl.month as apl_month, apl.paid_time, ar.curr_dl_time, \" .\n \"ar.article_status, ar.checking_url, cc.campaign_name, ar.total_words as word_count , \" . \n \"ac.cp_cost AS cost_per_article, at.cp_cost AS type_cost, ach.cost_per_article as ach_type_cost, \" . \n \"cc.client_id, ck.editor_id , ck.copy_writer_id, ar.title, \" . \n \"ar.body, ar.richtext_body \\n\" . \n \"FROM campaign_keyword AS ck \\n\".\n $sql_left .\n $where ;\n $q .= \"\\nGROUP BY ar.article_id\";\n $q .= \"\\nORDER BY ck.keyword_id DESC, google_approved_time \";\n list($from, $to) = $pager->getOffsetByPageId();\n if ($total_item > 0 ) {\n $rs = &$conn->Execute($q);\n } else {\n $rs = &$conn->SelectLimit($q, $params['perPage'], ($from - 1));\n }\n if ($rs) {\n $result = array();\n $kb = array();\n $i = 0;\n while (!$rs->EOF) {\n $fields = $rs->fields;\n // get type cost\n // cost per article in article_cost table\n $cost_per_article = $fields['cost_per_article'];\n // cost per article in article_cost_history table\n $ach_per_article = $fields['ach_per_article'];\n // cost per article in article_type table\n $type_cost = $fields['type_cost'];\n $word_count = $fields['word_count'];\n $cost_per_article = $ach_per_article > 0 ? $ach_per_article : $cost_per_article;\n $cost_per_article = $cost_per_article > 0 ? $cost_per_article : $type_cost;\n $cost_for_article = $cost_per_article * $word_count;\n $fields['cost_per_article'] = $cost_per_article;\n $fields['cost_for_article'] = $cost_for_article;\n $result[$i] = $fields;\n $rs->MoveNext();\n $i ++;\n }\n $rs->Close();\n }\n\n return array('pager' => $pager->links,\n 'total' => $pager->numPages(),\n 'result' => $result,\n 'count' => $count,\n );\n\n }", "title": "" }, { "docid": "e06ba3bfe418dab7774033084be02f2d", "score": "0.60275656", "text": "function articleIndex(PDO $ma_bdd): array\n{\n //Requête SQL\n $query = $ma_bdd->query('SELECT articles.id, title, text, lastname, forname, created_at \nFROM articles \nINNER JOIN authors \nON articles.auteurs_id = authors.id \nORDER BY created_at DESC');\n $reponse = $query->fetchAll(PDO::FETCH_ASSOC);\n return $reponse;\n}", "title": "" }, { "docid": "6b911010f90bd1580e09f94ca8dbaa7c", "score": "0.60239017", "text": "public function getAllOrOneArticleArticleActif($idArticle) {\n $idArticleQuery = (int) $idArticle;\n $qb = $this->createQueryBuilder('p')\n ->leftJoin('p.articles', 'a')\n ->where('p.actifArticle = ' . TypeEtat::ACTIF) \n ;\n if($idArticle > 0){\n $qb->andWhere('p.id =:idArticle')\n \n ->setParameter('idArticle', $idArticleQuery);\n \n }\n \n return $qb->getQuery()->getResult();\n }", "title": "" }, { "docid": "715ad77d287ee0ec76913a6fdc4a3241", "score": "0.6009567", "text": "public function getAllArticleActifEtablissement($idEtabl,$idPr) {\n // public function getAllArticleActifEtablissement($idPr) {\n if($idPr==1 || $idPr==3) {\n $idPr=0; \n }\n //var_dump($idPr);exit;\n $qb = $this->createQueryBuilder('a')\n ->innerJoin('a.etablissement', 'e')\n ->innerJoin('a.rubrique', 'r')\n ->where('a.actifArticle = ' . TypeEtat::ACTIF);\n if($idPr !=0 ){ \n $qb->andWhere('r.id = '.$idPr);\n }\n if($idEtabl !=1 ){\n $qb ->andWhere('e.id = '.$idEtabl) ;\n }\n \n // ->orderBy('e.typeArticle', 'ASC');\n return $qb->getQuery()->getResult();\n }", "title": "" }, { "docid": "02f132444084c48c2cded95e994a31ff", "score": "0.5994343", "text": "function getAllArticles() {\n // appel de la fonction de connexion à la BDD \n $bdd = getBdd();\n $articles = $bdd->prepare('SELECT * \n FROM article \n ORDER BY art_date DESC');\n \n $articles->execute();\n \n // Je renvoie les lignes de tous les articles \n return $articles->fetchAll(PDO::FETCH_ASSOC);\n}", "title": "" }, { "docid": "6469a545b5ab819e44c42905d4583827", "score": "0.5990084", "text": "function getArticlesInformation(){\n\t\t\t/*$this->equipment=$this->em->getRepository('models\\Entities\\E_Cakes')\n\t\t\t ->findAll( array());*/\n\t\t\t \n\t\t\t \n\t /*using DQL*/\n\t $query = $this->em->createQuery('SELECT a.title AS TITLE,a.dates AS DATE,a.articleBody AS BODY,a.tags AS TAG FROM models\\Entities\\entities_cakesDelights\\E_Articles a');\n \n $this->articles = $query->getResult();\n\t\t\t\t\t\t\n\t\t return $this->articles;\n\t\t\n\t}", "title": "" }, { "docid": "414fcf42489d31da7153c781d530788a", "score": "0.59728575", "text": "function _HCM_articles($typ=1, $pocet=null, $perex=true, $info=true, $kategorie=null){\n \n //priprava\n $result=\"\";\n $typ=intval($typ); if($typ<1 or $typ>9){$typ=1;}\n $pocet=intval($pocet); if($pocet<1){$pocet=1;}\n $perex=_boolean($perex);\n $info=_boolean($info);\n \n //limitovani na kategorie\n $rcats=_sqlArticleWhereCategories($kategorie);\n \n //priprava casti sql dotazu\n switch($typ){\n case 1: $rorder=\"time DESC\"; $rcond=\"\"; break;\n case 2: $rorder=\"readed DESC\"; $rcond=\"readed!=0\"; break;\n case 3: $rorder=\"ratesum/ratenum DESC\"; $rcond=\"ratenum!=0\"; break;\n case 4: $rorder=\"ratenum DESC\"; $rcond=\"ratenum!=0\"; break;\n case 5: $rorder=\"RAND()\"; $rcond=\"\"; break;\n case 6: $rorder=\"(SELECT time FROM `\"._mysql_prefix.\"-iplog` WHERE type=2 AND var=`\"._mysql_prefix.\"-articles`.id AND `\"._mysql_prefix.\"-articles`.visible=1 AND `\"._mysql_prefix.\"-articles`.time<=\".time().\" AND `\"._mysql_prefix.\"-articles`.confirmed=1 ORDER BY id DESC LIMIT 1) DESC\"; $rcond=\"readed!=0\"; break;\n case 7: $rorder=\"(SELECT time FROM `\"._mysql_prefix.\"-iplog` WHERE type=3 AND var=`\"._mysql_prefix.\"-articles`.id AND `\"._mysql_prefix.\"-articles`.visible=1 AND `\"._mysql_prefix.\"-articles`.time<=\".time().\" AND `\"._mysql_prefix.\"-articles`.confirmed=1 ORDER BY id DESC LIMIT 1) DESC\"; $rcond=\"ratenum!=0\"; break;\n case 8: $rorder=\"(SELECT time FROM `\"._mysql_prefix.\"-posts` WHERE home=`\"._mysql_prefix.\"-articles`.id AND type=2 ORDER BY time DESC LIMIT 1) DESC\"; $rcond=\"(SELECT COUNT(id) FROM `\"._mysql_prefix.\"-posts` WHERE home=`\"._mysql_prefix.\"-articles`.id AND type=2)!=0\"; break;\n case 9: $rorder=\"(SELECT COUNT(id) FROM `\"._mysql_prefix.\"-posts` WHERE home=`\"._mysql_prefix.\"-articles`.id AND type=2) DESC\"; $rcond=\"(SELECT COUNT(id) FROM `\"._mysql_prefix.\"-posts` WHERE home=`\"._mysql_prefix.\"-articles`.id AND type=2)!=0\"; break;\n }\n \n //pripojeni casti\n if($rcond!=\"\"){$rcond=\" AND \".$rcond;}\n $rcond=\" WHERE \"._sqlArticleFilter(true).$rcond;\n if($rcats!=\"\"){$rcond.=\" AND \".$rcats;}\n \n //vypis\n $query=mysql_query(\"SELECT id,title,perex,author,time,readed,comments FROM `\"._mysql_prefix.\"-articles`\".$rcond.\" ORDER BY \".$rorder.\" LIMIT \".$pocet);\n while($item=mysql_fetch_array($query)){\n $result.=_articlePreview($item, $info, $perex);\n }\n \n return $result;\n\n}", "title": "" }, { "docid": "832eca81331b1abefb5f1d043a5595ab", "score": "0.594124", "text": "function searchTitels($text)\n{\n $database = dbConnect();\n // filter de data die binnenkomt\n $text = htmlspecialchars($text);\n\n // select alleen de titels die overeen komen\n $get_titel = $database->prepare(\"SELECT titel FROM posts WHERE titel LIKE concat('%', :titel, '%')\");\n\n // execute de query\n $get_titel->execute(array('titel' => $text));\n\n $results = [];\n\n // laat de titels op de pagina zien\n while ($titels = $get_titel->fetch(PDO::FETCH_ASSOC)) {\n $results[] = $titels;\n }\n\n return $results;\n}", "title": "" }, { "docid": "31a70c2f1846fda808e553139748e776", "score": "0.5929154", "text": "public function searchArticles($search_term) {\n // Search for the term using the client connection class.\n $search_results = $this->cfrSearchClient->searchArticles($search_term);\n // Initialize empty array to store search results.\n $results = [];\n // Initialize empty array to store page ids.\n $page_ids = [];\n // Check if there's results from the Client class.\n if (isset($search_results['query']['search'])) {\n // Parse results to fetch proper links and create a themeable array.\n foreach ($search_results['query']['search'] as $key => $search_result) {\n $results[] = [\n '#theme' => 'cfr_search_article_preview',\n '#title' => $search_result['title'],\n '#teaser' => '',\n '#link' => '',\n '#page_id' => $search_result['pageid'],\n ];\n array_push($page_ids, $search_result['pageid']);\n }\n // Fetch Article URLs and extracts using the page_ids array.\n $pages = $this->cfrSearchClient->getArticleUrlsExtracts($page_ids);\n // Map URLs and Extracts to links and teasers in the results[] array.\n foreach ($results as $key => $result) {\n // Fetch property value.\n $hash = $result['#page_id'];\n // Set proper link.\n $results[$key]['#link'] = $pages['query']['pages'][$hash]['fullurl'];\n // Set the extract as a teaser.\n $results[$key]['#teaser'] = $pages['query']['pages'][$hash]['extract'];\n }\n }\n // Fetch the search form.\n $form = $this->formBuilder()->getForm('Drupal\\cfr_search\\Form\\CfrSearchForm');\n // Theme main page content.\n $content[] = [\n '#theme' => 'cfr_search',\n '#form' => $form,\n '#results' => $results,\n ];\n return $content;\n }", "title": "" }, { "docid": "36ffa5e8ed064ff97bb69364f5d35284", "score": "0.5907443", "text": "public function getAllOrOneArticle($idArticle) {\n $idArticleQuery = (int) $idArticle;\n $qb = $this->createQueryBuilder('p')\n ->where('p.actifArticle != ' . TypeEtat::SUPPRIME)\n ;\n if($idArticle > 0){\n $qb->andWhere('p.id =:idArticle')\n ->setParameter('idArticle', $idArticleQuery);\n \n }\n return $qb->getQuery()->getResult();\n }", "title": "" }, { "docid": "aeae8dca6e3eb2c644ece3f5ab32a162", "score": "0.5898541", "text": "public function findSpecialArticles()\n {\n return $this->createQueryBuilder('a')\n ->andWhere('a.special = :true')\n ->setParameter('true', true)\n ->getQuery()\n ->getResult();\n }", "title": "" }, { "docid": "17bae0680c815f5e3b082b9c962465b5", "score": "0.5857893", "text": "function recherche_keyword_in_xmlfile($keyword, $xml_file, $session) {\n // dans ce tableau on va mettre les balises qui contiennent le mots clé\n $resultat = array();\n // dans ce tableau on va mettre les requetes executés\n $queries = array();\n // contient le resultat final\n $repense = array();\n \n // vérifier si le mot clé existe dans la balise <catalogRef>\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem\n where $x/catalogRef contains text \"' . $keyword . '\"\n return $x/catalogRef';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <rightsInfo><copyrightHolder>\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/rightsInfo\n where $x/copyrightHolder contains text \"' . $keyword . '\"\n return $x/copyrightHolder';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <rightsInfo><copyrightHolder>\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/rightsInfo\n where $x/copyrightNotice contains text \"' . $keyword . '\"\n return $x/copyrightNotice';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <itemMeta><itemClass>\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/itemMeta\n where $x/itemClass contains text \"' . $keyword . '\"\n return $x/itemClass';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <itemMeta><provider>\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/itemMeta\n where $x/provider contains text \"' . $keyword . '\"\n return $x/provider';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <itemMeta><versionCreated>\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/itemMeta\n where $x/versionCreated contains text \"' . $keyword . '\"\n return $x/versionCreated';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <itemMeta><firstCreated>\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/itemMeta\n where $x/firstCreated contains text \"' . $keyword . '\"\n return $x/firstCreated';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <itemMeta><pubStatus>\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/itemMeta\n where $x/pubStatus contains text \"' . $keyword . '\"\n return $x/pubStatus';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <itemMeta><title>\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/itemMeta\n where $x/title contains text \"' . $keyword . '\"\n return $x/title';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><contentCreated>\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta\n where $x/contentCreated contains text \"' . $keyword . '\"\n return $x/contentCreated';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><contentModified>\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta\n where $x/contentModified contains text \"' . $keyword . '\"\n return $x/contentModified';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><located><name>\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta/located\n where $x/name contains text \"' . $keyword . '\"\n return $x/name';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><creator>[literal]\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta/creator\n where $x/@literal contains text \"' . $keyword . '\"\n return $x';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><contributor>[role]\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta/contributor\n where $x/@role contains text \"' . $keyword . '\"\n return $x';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><contributor>[literal]\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta/contributor\n where $x/@literal contains text \"' . $keyword . '\"\n return $x';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><altId>\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta\n where $x/altId contains text \"' . $keyword . '\"\n return $x/altId';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><altId>[type]\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta/altId\n where $x/@type contains text \"' . $keyword . '\"\n return $x';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><language>[tag]\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta/language\n where $x/@tag contains text \"' . $keyword . '\"\n return $x';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><genre>[qcode]\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta/genre\n where $x/@qcode contains text \"' . $keyword . '\"\n return $x';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><genre><name>\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta/genre\n where $x/name contains text \"' . $keyword . '\"\n return $x/name';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><genre><name>[xml:lang]\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta/genre/name\n where $x/@xml:lang contains text \"' . $keyword . '\"\n return $x';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><keyword>\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta\n where $x/keyword contains text \"' . $keyword . '\"\n return $x/keyword';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><subject>[type]\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta/subject\n where $x/@type contains text \"' . $keyword . '\"\n return $x';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><subject>[qcode]\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta/subject\n where $x/@qcode contains text \"' . $keyword . '\"\n return $x';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><subject><name>\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta/subject\n where $x/name contains text \"' . $keyword . '\"\n return $x/name';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><creditline>\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta\n where $x/creditline contains text \"' . $keyword . '\"\n return $x/creditline';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><headline>\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta\n where $x/headline contains text \"' . $keyword . '\"\n return $x/headline';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><description>\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta\n where $x/description contains text \"' . $keyword . '\"\n return $x/description';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentMeta><description>[role]\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentMeta/description\n where $x/@role contains text \"' . $keyword . '\"\n return $x';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentSet><remoteContent>[rendition]\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentSet/remoteContent\n where $x/@rendition contains text \"' . $keyword . '\"\n return $x';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentSet><remoteContent>[contenttype]\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentSet/remoteContent\n where $x/@contenttype contains text \"' . $keyword . '\"\n return $x';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentSet><remoteContent>[href]\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentSet/remoteContent\n where $x/@href contains text \"' . $keyword . '\"\n return $x';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentSet><remoteContent>[size]\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentSet/remoteContent\n where $x/@size contains text \"' . $keyword . '\"\n return $x';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentSet><remoteContent>[width]\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentSet/remoteContent\n where $x/@width contains text \"' . $keyword . '\"\n return $x';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n\n // vérifier si le mot clé existe dans la balise <contentSet><remoteContent>[height]\n $query = 'xquery for $x in doc(\"bdxml/' . $xml_file . '\")/newsItem/contentSet/remoteContent\n where $x/@height contains text \"' . $keyword . '\"\n return $x';\n $result = $session->execute($query);\n if ($result != \"\") {\n $resultat [] = '<li>' . htmlentities($result) . '</li>';\n $queries [] = $query;\n }\n $repense['resultat'] = $resultat;\n $repense['queries'] = $queries;\n \n return $repense;\n}", "title": "" }, { "docid": "7aad2bb8d9e84a92f092eb5359f1f5f2", "score": "0.5846519", "text": "function find_all_vehicle_info_by_title($title){\n global $db;\n $sql = \"SELECT * FROM vehiculos \";\n $sql .= \" WHERE modelo ='{$title}'\";\n $sql .=\" LIMIT 1\";\n return find_by_sql($sql);\n }", "title": "" }, { "docid": "51523d8111620b45da4b189d83cc7fb2", "score": "0.5844377", "text": "public function search();", "title": "" }, { "docid": "51523d8111620b45da4b189d83cc7fb2", "score": "0.5844377", "text": "public function search();", "title": "" }, { "docid": "cb4ebfef95b21d198c85ac8d83e417be", "score": "0.58371204", "text": "public function gethomearticle(){\n $query = \"SELECT\n home_article_id,\n home_article_title,\n home_article_description,\n home_article_img\n FROM home_article\";\n \n //run the query\n $statement = $this -> connection -> prepare ($query);\n $statement -> execute();\n $result = $statement -> get_result();\n if($result->num_rows>0){\n while($row = $result->fetch_assoc()){\n array_push($this-> article,$row);\n }\n }\n return $this->article;\n }", "title": "" }, { "docid": "7705a285de9a4bfe2dc606e231a8f0b7", "score": "0.5827734", "text": "public function detail_artikel($link_article){\n\t\treturn $this->get_article_by_link($link_article);\n\t}", "title": "" }, { "docid": "ed50615cca0013ff0f87703b06d4cd4f", "score": "0.58047897", "text": "public function findTitreDescp($mot){\n $qb = $this->createQueryBuilder('a');\n $qb->innerJoin('a.images', 'img')\n ->innerJoin('a.categorie', 'categ')\n ->addSelect('categ')\n ->addSelect('img')\n ->innerJoin('a.adresse', 'adress')\n ->addSelect('adress')\n ->where('a.titre like :titre or a.description like :description')\n ->setParameter('titre', '%'.$mot.'%')\n ->setParameter('description', '%'.$mot.'%');\n\n $result = $qb->getQuery()->getResult();\n return $result;\n }", "title": "" }, { "docid": "ffcca463a59025ec92806f31403a8e4a", "score": "0.58029777", "text": "public static function getAllArticles($bdd){\r\n\t\t$getArticle = $bdd->query(\"SELECT * FROM `article`\");\r\n\t\tif ($getArticle->rowCount() > 0){\r\n\t\t\t$listArticle = $getArticle->fetchAll();\r\n\t\t\tforeach ($listArticle as $key => $value) {\r\n\r\n\t\t\t\techo \"<div class='col-xl-3 card'>\r\n <img class='card-img-top' src='\".$value['article_img'].\"' alt='Card image cap'>\r\n <div class='card-body'>\r\n <h5 class='card-title'>\".$value['article_name'].\"</h5>\r\n <div class='row'>\r\n \t<div class='col-xl-8'>\r\n \t\t\".$value['article_desc'].\"\r\n \t</div>\r\n \t<div class='col-xl-4'>\r\n \t\tPrix TTC : <br />\r\n \t\t\".$value['article_price'].\" €\r\n \t\t<br />\r\n \t\tQuantité : \".$value['article_qte'].\"\r\n \t</div>\r\n </div>\r\n </div>\r\n <div class='card-footer'>\r\n \t<button class='btn btn-success form-control'>Ajouter au Panier</button>\r\n </div>\r\n</div>\";\r\n\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\treturn 'Aucun article trouvé';\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5f6a47286b521f530141ed0cd1c6de91", "score": "0.5785474", "text": "function html_lien($matches)\n{\n\t$chemin = $matches[1];\n\t$nomf = pathinfo($chemin, PATHINFO_FILENAME);\n\t$ext = pathinfo($chemin, PATHINFO_EXTENSION);\n\t$nom = $nomf.'.'.$ext;\n\t$id = 0;\n\n\tif(substr($chemin, 0, strlen('../')) === '../' || substr($chemin, 0, strlen('http')) === 'http')\n\t{\n\t\tif(substr($chemin, 0, strlen($GLOBALS['meta']['adresse_site'].'/ecrire/?exec=')) === $GLOBALS['meta']['adresse_site'].'/ecrire/?exec=')\n\t\t{\n\t\t\t$tAncre = explode('#',$chemin); // Traitement des ancres\n\t\t\t$chemin = $tAncre[0];\n\t\t\tif(strstr($chemin, 'exec=article'))\n\t\t\t{\n\t\t\t\t$id = substr(strstr($chemin, \"id_article=\"),11);\n\t\t\t\t// Il faut s'assurer que l'id correspond à la traduction de la langue en cours\n\t\t\t\t$art = sql_fetsel(array('id_trad','lang'), 'spip_articles', \"id_article=$id\");\n\t\t\t\t$langue = _request('langue');\n\t\t\t\tif($art['lang']!=$langue) {\n\t\t\t\t\t// Le lien ne pointe pas vers la bonne traduction de l'article\n\t\t\t\t\t$art2 = sql_fetsel('id_article', 'spip_articles',\n\t\t\t\t\t\tarray('id_trad='.$art['id_trad'],\"lang='$langue'\",'statut=\"publie\"'));\n\t\t\t\t\t\t//~ spip_log(sql_get_select('id_article', 'spip_articles',\n\t\t\t\t\t\t//~ array('id_trad='.$art['id_trad'],array('id_trad='.$art['id_trad'],\"lang='$langue'\",'statut=\"publie\"'))),'lien');\n\t\t\t\t\tif(isset($art2['id_article'])) {\n\t\t\t\t\t\t// La bonne traduction existe\n\t\t\t\t\t\t$id = $art2['id_article'];\n\t\t\t\t\t} elseif($art['id_trad']!=0) {\n\t\t\t\t\t\t// La bonne traduction n'existe pas, on utilise l'article de référence\n\t\t\t\t\t\t$id = $art['id_trad'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$type = 'article';\n\t\t\t}\n\t\t\telse if(strstr($chemin, 'exec=rubrique'))\n\t\t\t{\n\t\t\t\t$id = substr(strstr($chemin, \"id_rubrique=\"),12);\n\t\t\t\t$type = 'rubrique';\n\t\t\t}\n\t\t\t$nom = $type.$id.'.html';\n\t\t\tif(isset($tAncre[1])) $nom .= '#'.$tAncre[1]; // Rajout de l'ancre si elle existe\n\n\t\t\treturn str_replace($matches[1],$nom,$matches[0]);\n\t\t}\n\t}\n\treturn $matches[0];\n}", "title": "" }, { "docid": "2417cbdeaaeb1ad7234c064d729b2f4b", "score": "0.5781796", "text": "function getAllArticles() {\n\n $db = dbConnect();\n\n $sql = \"SELECT a_id, a_title, a_par, a_img_links FROM linfo_articles ORDER BY a_datum desc LIMIT 15\";\n $sm = $db->prepare($sql);\n if (!$sm->execute()) {\n echo \"something not ok <br>\";\n echo \"error-code: 1\";\n }\n\n return $sm->fetchAll(\\PDO::FETCH_CLASS);\n }", "title": "" }, { "docid": "d6bc0dd069a7482842ebcc7a6825671f", "score": "0.5779558", "text": "function nombre_article($ref_article)\n{\n /* On initialise la variable de retour */\n $nombre = false;\n /* Comptage du panier */\n $nb_art = count($_SESSION['panier']['id_article']);\n /* On parcoure le panier à la recherche de l'article pour vérifier le cas échéant combien sont enregistrés */\n for($i = 0; $i < $nb_art; $i++)\n {\n if($_SESSION['panier']['id_article'][$i] == $ref_article)\n $nombre = $_SESSION['panier']['qte'][$i];\n }\n return $nombre;\n}", "title": "" }, { "docid": "72a97a954e2f6c1f450b08bfe10a7853", "score": "0.5777862", "text": "function get_liste_artikel()\n\t{\n\t\t$lim=$this->cms->sqllimit=\"\";\n\t\t$this->intern_artikel->replangid=$this->cms->lang_id;\n\t\t$this->intern_artikel->make_artikel_list(\"all\");\n\n\t\t$this->content->template['artikel_liste'] =$this->intern_artikel->result_liste ;\n\t\t$this->cms->sqllimit=$lim;\n\t}", "title": "" }, { "docid": "7ccc63b4f9c5175fc07911cb462e1a37", "score": "0.5776998", "text": "function search_by_name_top($requete){\n \n // on vérifie d'abord l'existence du POST et aussi si la requete n'est pas vide.\n $cpage=htmlspecialchars($cpage);\n if ($requete != NULL ) {\n $requete = htmlspecialchars($requete);\n try{\n $query = mysql_query(\"SELECT * FROM users WHERE (nom LIKE '%$requete%' OR prenom LIKE '%$requete%') ORDER BY note DESC LIMIT 0,3\") or die(mysql_error());\n $nb_resultats = mysql_num_rows($query); \n if($nb_resultats == 0){\n return \"NoResult\";\n }\n else{\n return $query;\n }\n }\n catch(Exception $e)\n\t\t\t{\n\t\t\t // En cas d'erreur, on affiche un message et on arrête tout\n\t\t\t die('Erreur : '.$e->getMessage());\n\t\t\t}\n} else{\n return false; \n }\n \n}", "title": "" }, { "docid": "2f87e14bbb2e19093eddcf27b73478f0", "score": "0.5763315", "text": "function rechercher_livre($data) {\n if(!check_hack($data)){\n //la punition est effectuée dans le check_hack\n return false;\n } \n if ( $db = db_connect()) {\n /*Cas d'une recherche sans spécificité*/\n if (empty($data['search'])){\n /*Recherche dans tout type d'Oeuvre*/\n if ($data['type'] == \"all\"){\n $req = \"SELECT * FROM bibliotheque ORDER BY statut, titre;\";\n }\n else{\n /*Recherche dans les Livres*/\n if($data['type'] == \"livres\"){\n $req = \"SELECT * FROM bibliotheque WHERE type_oeuvre = 'SF' ORDER BY statut, titre;\";\n }\n else {\n /*Recherche dans les BDs*/\n if ($data['type'] == \"BD\") {\n $req = \"SELECT * FROM bibliotheque WHERE type_oeuvre = 'BD'ORDER BY statut, titre;\";\n } \n else{\n if ($data['type'] == \"comics\"){\n $req = \"SELECT * FROM bibliotheque WHERE type_oeuvre = 'CO'ORDER BY statut, titre;\";\n }\n else {\n $req = \"SELECT * FROM bibliotheque WHERE type_oeuvre = 'XB' ORDER BY statut, titre;\";\n }\n }\n }\n }\n }\n /*Cas d'une recherche avec spécificité*/\n else{\n /*Recherche dans tout type d'Oeuvre*/\n $rub = $data['rubrique'];\n $search = $data['search'];\n if ($data['type'] == \"all\"){\n $req = \"SELECT * FROM bibliotheque WHERE $rub = '$search' ORDER BY statut, titre;\";\n }\n else{\n /*Recherche dans les Livres*/\n if($data['type'] == \"livres\"){\n $req = \"SELECT * FROM bibliotheque WHERE $rub = '$search' and type_oeuvre = 'SF'ORDER BY statut, titre;\";\n }\n else{\n /*Recherche dans les BDs*/\n if($data['type'] == \"BD\") {\n $req = \"SELECT * FROM bibliotheque WHERE $rub = '$search' and type_oeuvre = 'BD' ORDER BY statut, titre;\";\n } \n else{\n if($data['type'] == \"CO\") {\n $req = \"SELECT * FROM bibliotheque WHERE $rub = '$search' and type_oeuvre = 'CO' ORDER BY statut, titre;\";\n }\n else {\n $req = \"SELECT * FROM bibliotheque WHERE $rub = '$search' and type_oeuvre = 'XB' ORDER BY statut, titre;\";\n }\n }\n }\n }\n }\n \n $res = db_query($db,$req);\n //echo \"<p> avant : \".$res.\"</p>\";\n db_close($db);\n if ($res == 0) {\n affiche_erreur(1);\n return null;\n }\n return $res;\n }\n else{\n affiche_erreur(0);\n return null;\n }\n}", "title": "" }, { "docid": "f0f0dfb646cabd8d7d28b6f41ce1a581", "score": "0.57619643", "text": "function getArticle($article_id) {\n $sql = \"select title, meta_title, meta_description, summary, content from articles where articleid = '$article_id'\";\n $res = $this->query($sql);\n if ($res->num_rows > 0) {\n $article_info = array();\n while ($row = $res->fetch_array(MYSQLI_ASSOC)) {\n $article_info[] = $row;\n }\n return $article_info;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "7fa215361b3d96de0053628eb377e6f2", "score": "0.57392687", "text": "function getPublie($dbt=0,$nb){\n $query=$this->db->query(\"SELECT article.id as AID, titre, publication,categorie_article.id AS CID, contenu, ajout, publie, categorie_article.categorie_article, login, image, doc\n FROM article\n INNER JOIN categorie_article ON categorie_article.id = article.categorie_article\n INNER JOIN admin ON admin.id = article.auteur\n WHERE publie='oui'\n ORDER BY ajout DESC\n LIMIT \".$dbt.\",\".$nb); \n return $query->result();\n }", "title": "" }, { "docid": "6241bbbc57b6c24ce94706d6ddffe059", "score": "0.5732537", "text": "public function index()\n {\n \n //get paramaters\n $limit=request('limit',15);\n $sort=request('sort', 'id');\n $filterList= [];\n\n for ($i=0; request('filter'.$i); $i++){\n $filterList[]=request('filter'.$i);\n }\n\n //validate parameters\n\n //generate querystring\n if(count($filterList)>0){\n $query=\"\";\n\n for ($i=0; isset($filterList[$i]); $i++){\n //artikel filtern\n if ($i>0) $query=$query . \" AND \";\n $query=$query . \"(name LIKE '%\".$filterList[$i].\"%' OR artno LIKE '%\".$filterList[$i].\"%')\";\n }\n $articles=Article::select('id', 'artno', 'name', 'category_id')\n ->whereRaw($query)\n ->with(['category' => function($query){\n $query->select('id', 'name', 'parent_id')\n ->with(['parent' => function($query){\n $query->select('id', 'name', 'parent_id');\n }]);\n }])\n ->orderBy($sort, 'asc')\n ->paginate($limit);\n }\n else{\n $articles=Article::select('id', 'artno', 'name', 'category_id')\n ->with(['category' => function($query){\n $query->select('id', 'name', 'parent_id')\n ->with(['parent' => function($query){\n $query->select('id', 'name', 'parent_id');\n }]);\n }])\n ->orderBy($sort, 'asc')\n ->paginate($limit);\n }\n \n\n\n // adding parameter to paginationlinks\n $articles->appends([\n 'limit'=>$limit,\n 'sort'=>$sort\n ])->links();\n\n \n //return collection of articles as a resource\n return ArticleResource::collection($articles)->additional(['meta' => [\n 'sort' =>$sort\n ]]);\n }", "title": "" }, { "docid": "866e37afb6fbc30468ce33bff8d85dcb", "score": "0.5724488", "text": "function recupArticleHomepage(mysqli $db){\n $sql=\"SELECT a.idarticle, a.thetitle,LEFT(a.thetext,350) AS thetext, a.thedate,\n\t u.thename,\n GROUP_CONCAT(r.idrubrique ORDER BY r.theintitule) AS idrubrique, \n GROUP_CONCAT(r.theintitule ORDER BY r.theintitule SEPARATOR '|@|') AS theintitule\n\tFROM article a\n INNER JOIN users u\n\t\tON u.idusers = a.users_idusers\n LEFT JOIN article_has_rubrique h\n\t\tON h.article_idarticle = a.idarticle\n LEFT JOIN rubrique r\n\t\tON h.rubrique_idrubrique = r.idrubrique\n\tWHERE a.thevisibility=1\n GROUP BY a.idarticle\n ORDER BY a.thedate DESC\n;\";\n $recup = mysqli_query($db,$sql);\n\n if(mysqli_num_rows($recup)){\n return mysqli_fetch_all($recup, MYSQLI_ASSOC);\n }else{\n return false;\n }\n\n}", "title": "" }, { "docid": "76c0bf9dc38629972c6ea03015ff900a", "score": "0.5722569", "text": "function fetchContent ($article) {\r\n\t$content = $article->getPage()->getContent();\r\n\t$text = ContentHandler::getContentText( $content );\r\n\treturn $text;\r\n}", "title": "" }, { "docid": "cd30ce92919c55956f5c1814abce3e16", "score": "0.5717985", "text": "public function findNewsletters();", "title": "" }, { "docid": "306e9cca56dbf397324dac1879ba3b56", "score": "0.57173806", "text": "function cisquel_filtrer_recherche($recherche, $verif_alpha=false) {\n\t$safe = '';\n\t$verif = true;\n\n\t// recherche avant traitement\n\tif ($t = _request('recherche'))\t{\n\t\t$t = trim($t);\n\t// recherche apres traitement\n\t} else {\t\n\t\t$t = trim($recherche);\n\t\tinclude_spip('inc/filtres');\t\n\t\t$t = filtrer_entites($t);\n\t}\n\n\tif ($t) {\n\t\t// supprimer les accents\n\t\tinclude_spip('inc/charsets');\n\t\t$tsa = translitteration($t);\n\t\n\t\t// interdire les caracteres dangereux\n\t\t// limiter à a-zA-Z0-9 et aux espaces, underscores, apostrophe, guillemets, tirets, points, slash\n\t\t$tableau = array(\" \",\"_\",\"'\",'\"','-','.','/');\n\t\t$tscs = str_replace($tableau,'',$tsa);\t\t\n\t\tif (!ctype_alnum($tscs)) {\n\t\t\t$verif = false;\n\n\t\t\t// passer le cas echeant en iso pour avoir la meme longueur avec ou sans accent en utf-8\t\n\t\t\tif ($GLOBALS['meta']['charset'] != 'iso-8859-1')\n\t\t\t\t$tiso = iconv(strtoupper($GLOBALS['meta']['charset']), \"ISO-8859-1\", $t);\n\t\t\telse\n\t\t\t\t$tiso = $t;\n\n\t\t\t// enlever les caracteres speciaux\n\t\t\t$longueur = strlen($tsa);\n\t\t for ($i = 0; $i < $longueur; $i++){\n\t\t \tif (ctype_alnum($tsa[$i]) OR in_array($tsa[$i], $tableau))\n\t\t \t\t$safe .= $tiso[$i];\n\t\t \telse\n\t\t \t$safe .= ' ';\n\t\t }\n\t\t\t// repasser le cas echeant dans le charset du site\n\t\t\tif ($GLOBALS['meta']['charset'] != 'iso-8859-1')\n\t\t\t\t$safe = iconv(\"ISO-8859-1\", strtoupper($GLOBALS['meta']['charset']), $safe);\n\t\t \n\t\t} else {\n\t\t\t$safe = $t;\n\t\t}\n\n\t // supprimer les espaces doubles\n\t $safe = trim(preg_replace ( '~\\s{2,}~' , ' ' , $safe )); \n\t}\n\n if ($verif_alpha)\n \treturn $verif;\n \n \treturn $safe;\n}", "title": "" }, { "docid": "e1e8d1a36b4e5365dad3e1607ac22082", "score": "0.57100564", "text": "function getFiltre($dbt=0,$nb){\n $sql= \"SELECT article.id as AID, titre, publication,categorie_article.id AS CID, contenu, ajout, publie, categorie_article.categorie_article, login, image, doc\n FROM article\n INNER JOIN categorie_article ON categorie_article.id = article.categorie_article\n INNER JOIN admin ON admin.id = article.auteur \";\n if(isset($_POST['cat'])){\n if($_POST['cat']!=0)\n $sql.= \"WHERE categorie_article.id=\".$_POST['cat'].\" ORDER BY ajout DESC LIMIT \".$dbt.\",\".$nb;\n else $sql.= \"ORDER BY ajout DESC LIMIT \".$dbt.\",\".$nb;\n }else $sql.= \"ORDER BY ajout DESC LIMIT \".$dbt.\",\".$nb;\n $query=$this->db->query($sql); \n return $query->result();\n }", "title": "" }, { "docid": "d97bb9c901342a8457ad05b8e1e19a15", "score": "0.57055736", "text": "public function action_articles() {\n if (Session::get('isAdmin')) {\n if (Input::method() === 'POST' AND isset($_POST['category_id']))// alors il s'agit d'une recherche par filtre\n $articles = Model_Article::filtre(Input::post('publie'), Input::post('category_id'));\n else if (Input::method() === 'POST' AND Input::post('op') != \"\") {// il s'agit d'une opération à effectuer sur l'enregistrement \n if (isset($_POST['operation'])) {\n foreach ($_POST['operation'] as $value) {\n if (Input::post('op') == 1)\n Func::publiearticle($value);\n else if (Input::post('op') == 0)\n Func::depublierarticle($value);\n else if (Input::post('op') == -1)\n Func::deletearticle($value);\n }\n }\n $articles = Model_Article::getAll(20);\n } else\n $articles = Model_Article::getAll(20);\n\n $data['content'] = \"admin/articles\";\n $view = View::forge('admin/index', $data);\n $view->set($data, null, false);\n $view->set_global(\"articles\", $articles, FALSE);\n $view->set_global(\"categories\", Model_Category::find('all'), FALSE);\n return $view;\n } else\n Response::redirect('admin/admin/connection');\n }", "title": "" }, { "docid": "916c23cc68a9c4cd5abef21885a98227", "score": "0.57048243", "text": "public function articles() {\n return $this->children()->visible()->filterBy('intendedTemplate', 'article');\n }", "title": "" }, { "docid": "b4166ff21c4a70e0a2f64bd799a7eac3", "score": "0.5702974", "text": "function fetch_auto_offres_articles()\n\t {\n\t echo $this->crud_model->fetch_data_auto_articles($this->uri->segment(3));\n\t }", "title": "" }, { "docid": "37aaa57bad5486c0b04ac4e78977408e", "score": "0.56952435", "text": "function authorbioplus_ContentFilter($content)\r\n{\r\nreturn $content.author_bio_plus();\r\n}", "title": "" }, { "docid": "e0df2872dea06e3ace0378756e6dd89b", "score": "0.56880957", "text": "function ngps_article_lookup($article_id, $return='title')\n{\n $url = 'http://www.mercurynews.com/portlet/article/html/fragments/print_article.jsp?articleId=' . $article_id . '&amp;siteId=36';\n $content = get_content($url);\n preg_match('/<td class=\"articleTitle\">([^<]+)<\\/td>/', $content, $matches);\n $article['title'] = $matches[1];\n if ( $return == 'title' ) return $matches[1];\n // Line-endings in regex's are the tool of the devil.\n $content = str_replace(\"\\n\", '', $content);\n $content = str_replace('&', '&amp;', $content);\n preg_match('/<td class=\"articleBody\">(.*)<\\/td><\\/tr><tr><td>/', $content, $matches);\n if ( count($matches) == 0 ) \n {\n return false;\n }\n $article['body'] = $matches[1];\n return $article;\n}", "title": "" }, { "docid": "26c63c87b429a2ebf820138582518156", "score": "0.5683", "text": "public function get_articlesVisible($limit=null,$recherche=null)\r\n\t\t{\r\n\t\t\tif($recherche==null){\r\n\t\t\t\t$sql=\"SELECT * From articles WHERE article_validation=true AND article_visible=true \";\r\n\t\t\t\t$sql.=\"ORDER BY article_position,article_date\";\r\n\t\t\t\tif($limit!=null){$sql.=\" LIMIT $limit\";}\t\r\n\t\t\t}else{\t\t\t\r\n\t\t\t\t$sql=\"SELECT * From articles,categories WHERE article_idCategorie=categorie_id AND article_validation=true AND article_visible=true \";\r\n\t\t\t\tforeach($recherche as $val){\r\n\t\t\t\t\t$sql.=\" AND (lower(article_titre) LIKE lower('%\".$val.\"%') OR lower(categorie_libelle) LIKE lower('%\".$val.\"%'))\";\r\n\t\t\t\t}\r\n\t\t\t\t$sql.=\" LIMIT $limit\";\r\n\t\t\t}\r\n\t\t\treturn mysql_query($sql);\r\n\t\t}", "title": "" }, { "docid": "9fa50f384f0ba8b2f52b63165ff8221e", "score": "0.5677051", "text": "public function findTitreDescpP($mot){\n $qb = $this->createQueryBuilder('a');\n $qb->innerJoin('a.images', 'img')\n ->addSelect('img')\n ->innerJoin('a.categorie', 'categ')\n ->addSelect('categ')\n ->innerJoin('a.mairie', 'm')\n ->addSelect('m')\n ->innerJoin('a.adresse', 'adress')\n ->addSelect('adress')\n ->where('a.titre like :titre or a.description like :description')\n ->setParameter('titre', '%'.$mot.'%')\n ->setParameter('description', '%'.$mot.'%');\n\n $result = $qb->getQuery()->setMaxResults(10)->getResult();\n return $result;\n }", "title": "" }, { "docid": "a8c5332842f6763a47bf66063726a50b", "score": "0.5657071", "text": "function parse_ezinearticles($r)\n{\n // The inbuilt cache will ensure the script can get to the end of the process.\n\n $f = http_download_file_cached($r[1]);\n\n $matches = array();\n preg_match('#&id=(\\d+)#s', $r[1], $matches);\n $id = $matches[1];\n\n $matches = array();\n preg_match('#Submitted On (.*)\\.#Us', $f, $matches);\n $date = html_entity_decode($matches[1], ENT_QUOTES, get_charset());\n\n $matches = array();\n cms_preg_match_safe('#<a href=\"[^\"]*\" rel=\"author\" class=\"author-name\" title=\"[^\"]*\">\\s*(.*)\\s*</a>#Us', $f, $matches);\n $author = html_entity_decode($matches[1], ENT_QUOTES, get_charset());\n\n $matches = array();\n preg_match('#<h1>(.*)</h1>#Us', $f, $matches);\n $title = html_entity_decode($matches[1], ENT_QUOTES, get_charset());\n\n $f = http_download_file_cached('http://ezinearticles.com/ezinepublisher/?id=' . urlencode($id), $r[1]);\n\n $matches = array();\n preg_match('#<textarea id=\"formatted-article\" wrap=\"physical\" style=\"width:98%;height:200px;\" readonly>(.*)</textarea>#Us', $f, $matches);\n $body = $matches[1];\n $body = cms_preg_replace_safe('#.*<body[^<>]*>\\s*#si', '', $body);\n $body = cms_preg_replace_safe('#\\s*<h1[^<>]*>[^<>]*</h1>\\s*#si', '', $body);\n $body = cms_preg_replace_safe('#\\s*</body>\\s*</html>#si', '', $body);\n $body = cms_preg_replace_safe('#^\\s*<p>.*<br>\\s*By .*</p>#U', '', $body);\n\n $matches = array();\n preg_match('#<textarea rows=\"5\" id=\"article-summary\" cols=\"50\" wrap=\"physical\" readonly>(.*)</textarea>#Us', $f, $matches);\n $summary = html_entity_decode($matches[1], ENT_QUOTES, get_charset());\n\n $matches = array();\n preg_match('#<input type=\"text\" id=\"article-keywords\" size=\"75\" value=\"([^\"]*)\" readonly>#Us', $f, $matches);\n $keywords = html_entity_decode($matches[1], ENT_QUOTES, get_charset());\n\n return array(\n $r[0], // Category\n $r[1], // URL\n $author,\n $title,\n $date,\n $body,\n $summary,\n $keywords,\n );\n}", "title": "" }, { "docid": "a5974804387e619719a801e87686cab1", "score": "0.5651299", "text": "public function action_search_es()\n {\n $q = $this->request->param('q');\n if ($q == '')\n {\n $this->request->redirect(LANGPATH . '/');\n }\n if (strlen($q) > 100)\n {\n $q = substr($q, 0, 100);\n }\n $q = str_replace(array('_', '%20'), ' ', $q);\n\n $catalog_join = '';\n $catalog_in = '';\n $catalog_id = (int) Arr::get($_GET, 'cataid', 0);\n if ($catalog_id)\n {\n //TODO check if it is a legal catalog for searching\n $catalog = Catalog::instance($catalog_id, $this->language);\n if ($catalog->get('id') AND $catalog->get('visibility'))\n {\n $posterity_ids = $catalog->posterity();\n $posterity_ids[] = $catalog_id;\n $posterity_sql = implode(',', $posterity_ids);\n $catalog_join = ' LEFT JOIN products_categoryproduct cp on (cp.product_id = p.id) ';\n $catalog_in = ' AND cp.catalog_id IN (' . $posterity_sql . ') ';\n }\n }\n\n //TODO 防注入\n $link = mysql_connect($_SERVER['COFREE_DB_HOST'], $_SERVER['COFREE_DB_USER'], $_SERVER['COFREE_DB_PASS']) OR die(mysql_error());\n $keywords = trim(mysql_real_escape_string($q));\n // echo $keywords;exit;\n $result = DB::query(DATABASE::SELECT, \"SELECT id,amount FROM core_searchwords\n WHERE words='\" . $keywords . \"'\")->execute()->current();\n if ($result['id'])\n {\n $amount = $result['amount'] + 1;\n DB::update('core_searchwords')->set(array('amount' => $amount))->where('id', '=', $result['id'])->execute();\n }\n else\n {\n DB::insert('core_searchwords', array('words','amount'))\n ->values(array($keywords, 1))\n ->execute();\n }\n\n //产品过滤\n $pricefrom = (int) Arr::get($_GET, 'pricefrom', 0);\n $priceto = (int) Arr::get($_GET, 'priceto', 0);\n if ($pricefrom AND $priceto)\n {\n $custom_filter['price_range'][0] = $pricefrom;\n $custom_filter['price_range'][1] = $priceto;\n $sql .= \" AND p.price > \" . $pricefrom . \" AND p.price <= \" . $priceto;\n }\n $filter = array(\n 'term' => array(\n 'visibility' => 1,\n 'status' => 1,\n )\n );\n $color = (int) Arr::get($_GET, 'color', 0);\n if (isset($_GET['color']))\n {\n $filtercolors = Kohana::config('catalog.colors');\n $color_value = $filtercolors[$color];\n $filter['term']['color_value'] = strtolower($color_value);\n }\n \n /*if(LANGUAGE != '')\n {\n $sql .= \" AND p.status = 1 \";\n }*/\n\n $limit_key = (int) Arr::get($_GET, 'limit', 3);\n $limits = Kohana::config('catalog.limits');\n $limit = $limits[$limit_key];\n \n //language product table set\n $lang_table = $this->language ? '_' . $this->language : '';\n if($this->language)\n {\n $keywords = htmlentities($keywords);\n }\n\n $elastic_type = 'product';\n $elastic_index = 'basic';\n $elastic = Elastic::instance($elastic_type, $elastic_index);\n $sorts = array('id' => 'desc');\n\n $language_key = LANGUAGE ? '_' . LANGUAGE : '';\n $search_fields = array('name' . $language_key, 'sku', 'description' . $language_key, 'keywords' . $language_key);\n\n $counts = $elastic->search($keywords, $search_fields, 1, 0, $filter);\n if(isset($counts['hits']['total']))\n {\n $count = $counts['hits']['total'];\n }\n else\n {\n $count = 0;\n }\n $pagination = Pagination::factory(array(\n 'current_page' => array('source' => 'query_string', 'key' => 'page'),\n 'total_items' => $count,\n 'items_per_page' => $limit,\n 'view' => '/pagination_r'));\n\n //产品排序\n $sort_key = isset($_GET['sort']) ? $_GET['sort'] : 0;\n $sort_key = (int) $sort_key;\n $sorts = Kohana::config('catalog.sorts');\n $sortcolor = Kohana::config('catalog.colors');\n $order_by = array();\n if (isset($_GET['pick']))\n {\n $order_by['has_pick'] = 'desc';\n }\n if($sort_key)\n {\n $order_by[$sorts[$sort_key]['field']] = $sorts[$sort_key]['queue'];\n }\n \n $search_res = $elastic->search($keywords, $search_fields, $pagination->items_per_page, $pagination->offset, $filter, $order_by);\n $product_ids = array();\n if(!empty($search_res['hits']['hits']))\n foreach ($search_res['hits']['hits'] as $item)\n {\n $product_ids[] = $item['_source']['id'];\n }\n\n $catalogs = ORM::factory('catalog')\n ->where('visibility', '=', 1)\n ->where('on_menu', '=', 1)\n ->where('parent_id', '=', 0)\n ->find_all();\n $show_ship_tip = 1;\n if($show_ship_tip)\n {\n $cache = Cache::instance('memcache');\n $ready_key = 'ready_shippeds';\n if(!$ready_shippeds = $cache->get($ready_key))\n {\n $ready_shippeds = DB::select('product_id')->from('products_categoryproduct')->where('category_id', '=', 395)->execute()->as_array();\n $cache->set($ready_key, $ready_shippeds, 86400);\n }\n }\n else\n $ready_shippeds = array();\n\n if($count > $limit)\n {\n $pagination_div = $pagination->render();\n }\n else\n {\n $pagination_div = '';\n }\n \n $this->template->title = 'Choies: Search For ' . $keywords;\n $this->template->content = View::factory('/search')\n ->set('keywords', $q)\n ->set('products', $product_ids)\n ->set('pagination', $pagination_div)\n ->set('catalogs', $catalogs)\n ->set('sorts', $sorts)\n ->set('sortcolor', $sortcolor)\n ->set('sort_now', $sort_key)\n ->set('show_ship_tip', $show_ship_tip)\n ->set('ready_shippeds', $ready_shippeds);\n }", "title": "" }, { "docid": "676c8ef5035531f3ecb68e54a215ba1e", "score": "0.5642272", "text": "public function getAllArticleEtablissement($idEtabl,$idPr) {\n if($idPr==1 || $idPr==3) {\n $idPr=0; \n }\n \n $qb = $this->createQueryBuilder('a')\n ->innerJoin('a.etablissement', 'e')\n ->where('a.actifArticle != ' . TypeEtat::SUPPRIME)\n ->andWhere('e.id = '.$idEtabl) \n ->andWhere('a.typeArticle = '.$idPr);\n\n // ->orderBy('e.typeArticle', 'ASC');\n return $qb->getQuery()->getResult();\n }", "title": "" }, { "docid": "002a0be09968cde084569f6874deae84", "score": "0.56396276", "text": "function GetRandomArticle (){\n $randomwikilink = 'https://fr.wikipedia.org/wiki/Sp%C3%A9cial:Page_au_hasard/';\n $randomwiki = curl_init();\n curl_setopt($randomwiki, CURLOPT_URL, $randomwikilink);\n curl_setopt($randomwiki,CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($randomwiki,CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($randomwiki, CURLOPT_COOKIESESSION, true);\n curl_setopt($randomwiki, CURLOPT_RETURNTRANSFER, true);\n libxml_use_internal_errors(true);\n $loadedwikiarticle = curl_exec($randomwiki);\n return GetClassContent('firstHeading',$loadedwikiarticle);\n curl_close($randomwiki);\n}", "title": "" }, { "docid": "647ac847dbe5a5fbe2521b65ddf17a04", "score": "0.56382084", "text": "function get_article_using_server_side_query_search_and_order() {\n\n $sintax = \"SELECT \n \" . $this->primaryKey . \" AS article_id, \n \" . $this->table . \".title, \n \" . $this->table . \".content,\n \" . $this->table . \".status,\n users.id,\n users.name AS user_fullname, \n article.updated_time\n FROM \" . $this->table . \"\n JOIN users ON users.id = article.updated_by \";\n\n $sintax .= $this->server_side_lib->individual_column_filtering($this->columnSearch);\n\n $sintax .= $this->server_side_lib->ordering($this->columnOrder, $this->order);\n\n return $sintax;\n\n }", "title": "" }, { "docid": "c6bb4b8b19d411d88907ee549854cd7d", "score": "0.5635054", "text": "public function searchArticles($search_term = '') {\n try {\n // Map request as query object. Search by title is currently disabled.\n // More info: https://www.mediawiki.org/wiki/API:Search\n $response = $this->client->get('', [\n 'query' => [\n 'action' => 'query',\n 'list' => 'search',\n 'utf8' => '',\n 'prop' => 'info',\n 'format' => 'json',\n 'srwhat' => 'text',\n 'srsearch' => $search_term,\n 'srlimit' => 20,\n 'sroffset' => 0,\n ],\n ]);\n $data = Json::decode($response->getBody());\n return $data;\n }\n catch (RequestException $e) {\n // Notify user about failed request.\n drupal_set_message(t('An error ocurred while attempting to fetch information from resource: \"%error\"', ['%error' => $e->getMessage()]), 'error');\n }\n }", "title": "" }, { "docid": "0a5810cdda1398cd6c023cbdc52449ae", "score": "0.56255424", "text": "public function StockArticle()\n {\n\n return DB::select(DB::raw(\"SELECT distinct [libelleArticle]\n ,convert(INT,sum([qte])) as qte,\n [prixuVenteHt]\n FROM [ASM2014web26].[dbo].[View_Inv_Stk_sup0]\n where [prixuVenteHt] <>'0' and [libelleArticle] not like 'bob%' \n\t\t and [libelleArticle] not like'conce%'\n group by ([libelleArticle]) ,[prixuVenteHt] order by [qte] desc;\"));\n }", "title": "" }, { "docid": "de1a1d9468bc0826565aff39e1d0fb30", "score": "0.5625012", "text": "public function search() {\r\n }", "title": "" }, { "docid": "463d95e7a652b804ebfa7d612b4bf6eb", "score": "0.56239045", "text": "public function about_com_articles()\n\t{\n\t\t\n\t\t$domain = \"http://cancer.about.com\";\n\t $url = \"http://cancer.about.com/od/vulvarcancer/Vulvar_CancerAbout_Cancer_of_the_Vulva.htm\";\n\t $category = array(7,65);\n\t \n\t $ch = curl_init($url);\n\t curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);\n\t $result = $ch = curl_exec($ch);\n\t \n\t preg_match_all(\"[<h2><a\\s[^>]*href=[\\\"']([^\\\"]+)[\\\"'][^>]*>(.*)</a></h2>]isU\",$result,$matches);\n\t //dump($matches);\n\t \n\t foreach ($matches[1] as $link)\n\t {\n\t if(stristr($link,\"http://\")) continue;\n\t $this->about_com_article($domain.$link,$category);\n\t //dump($domain.$link);\n\t }\n\t}", "title": "" }, { "docid": "53fd6b978a74095a321da426a8e088be", "score": "0.561873", "text": "public function viewListArticle(){\r\n\r\n\t\t$article = new Article();\r\n\r\n\t\t//par defaut la page est fixé à un \r\n\t\t(!Tools::getValue('page')) ? $page = 1 : $page = Tools::getValue('page');\r\n\r\n\t\t// si la catégorie n'existe pas on la met à NULL, \r\n\t\t//sinon ça veut dire que dans l'url rewrite on a cliqué sur une catégorie\r\n\t\tif(!Tools::getValue('id_article_category')){\r\n\t\t \t$id_article_category = NULL;\r\n\t\t\t$getCategory = FALSE;\t\r\n\t\t}\r\n\t\t else{\r\n\t\t \t$getCategory = ArticleCategory::getCategoryById(Tools::getValue('id_article_category'), (int)$this->context->language->id, (int)$this->context->shop->id);\r\n\t\t\t$id_article_category = Tools::getValue('id_article_category');\t\r\n\t\t } \t\r\n\r\n\t // on récupere la liste des articles, params: num de page, id_lang,id_shop et id_article_category\r\n\t\t$list_articles = $article->getArticlesByPage((int)$page, (int)$this->context->language->id, (int)$this->context->shop->id, $id_article_category);\r\n\t \t\r\n\t \t// ON ASSIGNE LE NOMBRE DE PAGE POUR LA PAGINATION\r\n\t \t(Configuration::get('NBR_ARTICLE')) ? $messagesParPage = Configuration::get('NBR_ARTICLE') : $messagesParPage = 10;\r\n\t \t\r\n\t \t$this->context->smarty->assign(array(\r\n\t \t\t'articles' => $list_articles,\r\n\t \t\t'displayTitleCategory' => $getCategory,\r\n\t \t\t'nbr_page' => $article->getTotalNbrPages((int)$messagesParPage,$id_article_category),\r\n\t\t\t'meta_title'=> mb_convert_encoding($this->module->l('Liste des articles'), \"UTF-8\"),\r\n\t\t\t'page_actuel' => (int)$page,\r\n\t \t\t));\r\n\r\n\t \t// SI LA META TITLE EXISTE on les assigne\r\n\t \tif ($getCategory){\r\n\t\t \t$this->context->smarty->assign(array(\r\n\t\t\t\t'meta_title'=> mb_convert_encoding($getCategory['meta_title'], \"UTF-8\"),\r\n\t\t\t\t'meta_keywords'=> mb_convert_encoding($getCategory['meta_keywords'], \"UTF-8\"),\r\n\t\t\t\t'meta_description'=> mb_convert_encoding($getCategory['meta_description'], \"UTF-8\")\r\n\t\t \t\t));\t \t\t\r\n\t \t}\r\n\t \t//si ajax existe\r\n\t\tif(Tools::getValue('ajax')){\r\n\t\t echo ($this->context->smarty->fetch(_PS_MODULE_DIR_ .'blogmodule/views/templates/front/blogmodule_list_articles.tpl'));\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$this->setTemplate('blogmodule_list.tpl');\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a5bd5d12b297835f7f9a0a3e88aa3326", "score": "0.56185246", "text": "public function search()\n\t{\n\t}", "title": "" }, { "docid": "55f0fd9bb4af8d7f4ad338bf7c89cac0", "score": "0.56023645", "text": "public function GetResultArticle($param){\n\t\t$id=isset($param[0])?$param[0]:null;\n\t\t$soapRequest=new stdClass();\n\t\t$soapRequest->Token=TOKEN;\n\t\t$soapRequest->ChunkIID=$id;\n\n\t\ttry{\n\t\t\t$soapClient=new EBSCOWebserviceModel(LIBRARYWS);\n\t\t\t$ws = $soapClient->GetArticle($soapRequest);\n\t\t\t$html=$soapClient->translate($ws->GetArticleResult->any);\t\t\t\n\t\t}//catch (SoapFault $e) {\n\t\tcatch (Exception $e) {\n\t\t\tthrow $e;\n\t\t} \n\t\t$template=TemplateParser::enqueue(TEMPLATE_DIR.\"frontend/EBSCO/search.tpt\");\n\t\t$template->addVar(\"html\",$html);\n\t\treturn $template;\n\t}", "title": "" }, { "docid": "8b4ef8b2654673e981ee083bbdd985e2", "score": "0.55890876", "text": "public function index() {\n $cond=array();\n //当有搜索内容时\n if(I('get.seach_name')){\n $cond['name']=array(\"like\",\"%\".I('get.seach_name').\"%\");\n }\n $this->assign($this->_model->getPageResult($cond));\n $this->assign('categorys', M('ArticleCategory')->select());\n $this->display();\n }", "title": "" }, { "docid": "dd2fd92925cb9b730e8db1c0c998169f", "score": "0.5586658", "text": "function GetJML_Search_Item_gallery_Publish( $tbl_gallery, $cari ){\n\t\t$sql = mysql_query(\"SELECT count(id) as jml FROM $tbl_gallery WHERE \n\t\t\tstatustampil = '1' AND\n\t\t\tjudul LIKE '%$cari%' OR\n\t\t\tjudulinggris LIKE '%$cari%' OR \n\t\t\t \n\t\t\tdeskripsi LIKE '%$cari%' OR\n\t\t\tdeskripsiinggris LIKE '%$cari%' \n\t\t\");\n \t\t$row = mysql_fetch_object($sql);\n \t\t$jml = $row->jml;\n \t\treturn $jml;\t\n}", "title": "" }, { "docid": "c508ecdacb8f4d944c36bc3bbcf20ea8", "score": "0.55859566", "text": "function Select_Item_gallery_Terkait_Publish($tbl_gallery, $keyword , $offset , $id ){\n\t\t$sql = mysql_query(\"SELECT * FROM $tbl_gallery WHERE id!='$id' AND statustampil = '1' AND keyword LIKE '%$keyword%' ORDER BY judul ASC LIMIT $offset\"); \n \t\treturn $sql;\n}", "title": "" }, { "docid": "2bff4e51fd7bebaa4561bf87101a1a26", "score": "0.5573541", "text": "function getNews($term,$page, $pageSize) {\n if(empty($term)) {\n $url = \"https://newsapi.org/v2/top-headlines?country=us&page=$page&pageSize=$pageSize&apiKey=c939c288f98045d7a57360fef3f39d25\";\n }\n else {\n $term = str_replace(' ', '+', $term);\n $url = \"https://newsapi.org/v2/everything?q=$term&page=$page&pageSize=$pageSize&sortBy=relevancy&apiKey=c939c288f98045d7a57360fef3f39d25\";\n }\n // set up curl and make a request \n $cSession = curl_init(); \n\n curl_setopt($cSession,CURLOPT_URL,$url);\n curl_setopt($cSession,CURLOPT_RETURNTRANSFER,true);\n curl_setopt($cSession,CURLOPT_HEADER, false); \n\n $result=curl_exec($cSession);\n\n curl_close($cSession);\n\n $result = json_decode($result);\n \n if($result->status != 'ok') {\n echo 'Error connecting to News API!';\n return;\n }\n\n return $result;\n}", "title": "" }, { "docid": "3611df1b710d2c53bf0fe16e0fd8b4d2", "score": "0.5572948", "text": "function searchFumetti($p, $ordine){\n\t//$p = htmlspecialchars($p, ENT_QUOTES);\n\t$query = \"SELECT *, nome as `nomeFum` FROM `Fumetti` WHERE `Fumetti`.`nome` LIKE '%$p%' OR `volume` like '$p' ORDER BY '$ordine' \";\n\treturn eseguiQuery($query);\n\n}", "title": "" }, { "docid": "08c7bf8f0fb232ab88917629db4f7fe0", "score": "0.5572484", "text": "public function cari_artikel($keyword='', $page=1, $limit=10){\n\t\treturn $this->get_article_by_keyword($keyword, $page, $limit);\n\t}", "title": "" }, { "docid": "70dc8c1e24062cf2873712e2bf4e9080", "score": "0.5568104", "text": "function search_articles($string, $blogid = 0){\n\t$conn = open_db();\n\t$string = mysqli_real_escape_string($conn, $string);\n\t$query = \"SELECT DISTINCT a.id AS id, a.headline AS headline, a.userid AS userid, u.name AS author, a.blogid AS blogid FROM articles AS a, users AS u\";\n\t$query .= \" WHERE u.id = a.userid AND ((a.headline LIKE '%$string%') OR (a.article_body LIKE '%$string%'))\";\n\tif($blogid > 0) $query .= \" AND a.blogid = \".(int)$blogid;\n\t$query .= \" ORDER BY a.id DESC\";\n\t$result = mysqli_query($conn, $query);\n\t$list = array();\n\tif($result){\n\t\twhile($row = mysqli_fetch_assoc($result)){\n\t\t\t$list[] = $row;\n\t\t}\n\t}\n\tclose_db($conn);\n\treturn $list;\n}", "title": "" }, { "docid": "dc89baefbd59f9555a7d2f60fcd2001b", "score": "0.55662155", "text": "function filtre_introduction($descriptif, $texte, $longueur, $connect) {\n\tinclude_spip('public/composer');\n\t$texte = filtre_introduction_dist($descriptif, $texte, $longueur, $connect);\n\n\tif ($GLOBALS['toujours_paragrapher'] AND strpos($texte,\"</p>\")===FALSE)\n\t\t// Fermer les paragraphes ; mais ne pas en creer si un seul\n\t\t$texte = paragrapher($texte, $GLOBALS['toujours_paragrapher']);\n\n\treturn $texte;\n}", "title": "" }, { "docid": "88d0bd61c55073d33cd18790e6effbc3", "score": "0.55650985", "text": "function catalog() {\n if (isset($_GET['page'])) {\n $page = $_GET['page'];\n } else {\n $page = 1;\n }\n $limit = 3; // setting number of articles at one page\n $fromNumber = ($limit * $page) - $limit;\n $articlesNumber = Article::getArticlesNumber();\n $pagesNumber = ceil($articlesNumber/$limit);\n $results = array();\n $results['articles'] = Article::getList($fromNumber,$limit);\n\n $results['pageTitle'] = \"Catalog\";\n $results['pagesNumber'] = $pagesNumber;\n if ( isset( $_GET['error'] ) ) {\n if ( $_GET['error'] == \"articleNotFound\" ) $results['errorMessage'] = \"Ошибка:Статья не найдена.\";\n }\n\n if ( isset( $_GET['status'] ) ) {\n if ( $_GET['status'] == \"articleSaved\" ) $results['statusMessage'] = \"Ваша статья сохранена!\";\n if ( $_GET['status'] == \"articleDeleted\" ) $results['statusMessage'] = \"Статья удалена.\";\n }\n require( \"templates/catalog.php\" );\n\n}", "title": "" }, { "docid": "4175c7d185b63dd2cf77a77d27d1e19b", "score": "0.556316", "text": "function getArticleById($id_article) {\n // appel de la fonction de connexion à la BDD \n $bdd = getBdd();\n \n $articleInfo = $bdd->prepare('SELECT * \n FROM article \n WHERE art_id = ?');\n \n // J'excute la requete avec le parametre art_id\n $articleInfo->execute([\n $id_article\n ]);\n \n // s'il y a une ligne, c'est que l'ID_article correspond à un article existant\n if ($articleInfo->rowCount() == 1) {\n // Accès à la première ligne de résultat\n return $articleInfo->fetch(PDO::FETCH_ASSOC); \n }\n else {\n // Je renvoie une erreur si l'id est inexistant \n throw new Exception(\"Aucun article ne correspond à l'identifiant : '$id_article'\");\n }\n}", "title": "" }, { "docid": "b8ed4c892f65cd6bf83b508384333e22", "score": "0.55603814", "text": "function recherche()\n\t{\n\t\t$search = $this->request->data['search'];\n\t\t$this->loadModel('Page');\n\t\t$this->loadModel('Forum');\n\t\t$this->loadModel('Forumsujet');\n\t\t$this->loadModel('User');\n\t\t$this->loadModel('Event');\n\t\t$d['search'] = $search;\n\t\t$d['pages'] = $this->Page->find('all', array(\n\t\t\t'recursive' => 1,\n\t\t\t'conditions' => array(\n\t\t\t\t'Page.online' => 1,\n\t\t\t\t'Page.type !=' => 'footer',\n\t\t\t\t'OR' => array(\n\t\t\t\t\t'Page.content LIKE' => \"%$search%\",\n\t\t\t\t\t'Page.name LIKE' => \"%$search%\"\n\t\t\t\t)\n\t\t\t)\n\t\t));\n\t\t$d['forums'] = $this->Forum->find('all', array(\n\t\t\t'recursive' => 1,\n\t\t\t'conditions' => array(\n\t\t\t\t'OR' => array(\n\t\t\t\t\t'Forum.sujet LIKE' => \"%$search%\",\n\t\t\t\t\t'Forum.content LIKE' => \"%$search%\",\n\t\t\t\t\t'Forum.resume LIKE' => \"%$search%\"\n\t\t\t\t)\n\t\t\t)\n\t\t));\n\t\t$d['forums2'] = $this->Forumsujet->find('all', array(\n\t\t\t'recursive' => 1,\n\t\t\t'conditions' => array(\n\t\t\t\t'OR' => array(\n\t\t\t\t\t'Forumsujet.sujet LIKE' => \"%$search%\",\n\t\t\t\t\t'Forumsujet.message LIKE' => \"%$search%\"\n\t\t\t\t)\n\t\t\t)\n\t\t));\n\t\t$d['forums'] = array_merge((array) $d['forums'], (array) $d['forums2']);\n\t\t$d['users'] = $this->User->find('all', array(\n\t\t\t'recursive' => 1,\n\t\t\t'conditions' => array(\n\t\t\t\t'User.active' => 1,\n\t\t\t\t'OR' => array(\n\t\t\t\t\t'User.username LIKE' => \"%$search%\",\n\t\t\t\t\t'User.firstname LIKE' => \"%$search%\",\n\t\t\t\t\t'User.lastname LIKE' => \"%$search%\",\n\t\t\t\t\t'User.statut LIKE' => \"%$search%\",\n\t\t\t\t\t'User.membership LIKE' => \"%$search%\",\n\t\t\t\t\t'User.presentation LIKE' => \"%$search%\",\n\t\t\t\t\t'User.centresinterets LIKE' => \"%$search%\",\n\t\t\t\t\t'User.sport LIKE' => \"%$search%\",\n\t\t\t\t\t'User.cultureart LIKE' => \"%$search%\",\n\t\t\t\t\t'User.societecategorie LIKE' => \"%$search%\",\n\t\t\t\t\t'User.societesiteinternet LIKE' => \"%$search%\",\n\t\t\t\t\t'User.societesecreuractivite LIKE' => \"%$search%\",\n\t\t\t\t\t'User.telmobile LIKE' => \"%$search%\",\n\t\t\t\t\t'User.languesparlees LIKE' => \"%$search%\",\n\t\t\t\t\t'User.fonction LIKE' => \"%$search%\",\n\t\t\t\t\t'User.service LIKE' => \"%$search%\",\n\t\t\t\t\t'User.clubassociation LIKE' => \"%$search%\",\n\t\t\t\t\t'User.blog LIKE' => \"%$search%\",\n\t\t\t\t\t'User.societe LIKE' => \"%$search%\",\n\t\t\t\t\t'User.ville LIKE' => \"%$search%\",\n\t\t\t\t\t'User.pays LIKE' => \"%$search%\",\n\t\t\t\t\t'User.site LIKE' => \"%$search%\"\n\t\t\t\t)\n\t\t\t)\n\t\t));\n\t\t$d['events'] = $this->Event->find('all', array(\n\t\t\t'recursive' => 1,\n\t\t\t'conditions' => array(\n\t\t\t\t'OR' => array(\n\t\t\t\t\t'Event.theme LIKE' => \"%$search%\",\n\t\t\t\t\t'Event.presentation LIKE' => \"%$search%\",\n\t\t\t\t\t'Event.programme LIKE' => \"%$search%\",\n\t\t\t\t\t'Event.baseline LIKE' => \"%$search%\",\n\t\t\t\t\t'Event.organisateur LIKE' => \"%$search%\"\n\t\t\t\t)\n\t\t\t)\n\t\t));\n\t\t$this->set($d);\n\t}", "title": "" }, { "docid": "37a7b63471354f815721c0595dbd4e0f", "score": "0.5558205", "text": "public function getSearchByTitle($imput) {\n\t\t$this -> result = $this -> mysqli -> query(\"SELECT podcasts.*, categories.hex_color AS 'category_hex', feelings.hex_color AS 'feeling_hex', moods.hex_color AS 'mood_hex' FROM podcasts, categories, feelings, moods WHERE podcasts.category = categories.id AND podcasts.mood = moods.id AND podcasts.feeling = feelings.id AND podcasts.title LIKE '%$imput%' ORDER BY title ASC LIMIT 0,15\");\n\t}", "title": "" }, { "docid": "efd78fcb5e4e3d7e99ae7969c74c45c6", "score": "0.5557378", "text": "function search_articles_with_tag($string, $limit = 0){\n\t$conn = open_db();\n\t$string = mysqli_real_escape_string($conn, $string);\n\t$query = \"SELECT DISTINCT a.id AS id, a.headline AS headline, a.userid AS userid, u.name AS author, a.blogid AS blogid FROM articles AS a, article_tag1 AS at, users AS u, tags AS t WHERE a.userid = u.id AND a.id = at.articleid AND t.id = at.tagid AND t.name LIKE '%$string%' ORDER BY id DESC\";\n\tif($limit > 0) $query .= \" LIMIT $limit\";\n\t$result = mysqli_query($conn, $query);\n\t$list = array();\n\tif($result){\n\t\twhile($row = mysqli_fetch_assoc($result)){\n\t\t\t$list[] = $row;\n\t\t}\n\t}\n\tclose_db($conn);\n\treturn $list;\n}", "title": "" }, { "docid": "ce284f6f33eab07ba0564850faf2359d", "score": "0.5555277", "text": "function contentSearch($params)\n{\n\n\t$sendParams = array();\n\t$i = 0;\n\n\tif (!$params['search_terms'])\n\tdie(\"search_terms is required\");\n\n\t$validParams = array(\"action\",\"contentid\",\"include_children\",\"typeid\",\"has_tag\",\"search_terms\",\"search_description\",\"search_customfields\",\"verbosity\",\"parentid\",\"orderby\");\n\n\t$sql = \"\";\n\n\tif (!isset($params['type']) || $params['type'] == 'content') {\n\n\t\t$sql .= \" ( SELECT 'content' as type, content.id as contentid, content.parentid as parentid, 0 as mediaid, content.templateid,\" .\n\t\t\t\t \"content.migtitle as contenttitle, '' as mediatitle, content.createdby, content.createdate, content.modifiedby, content.modifieddate, \" .\n\t\t\t\t \"templates.name AS templatetitle, templates.classname AS templateclassname, content.containerpath AS path, '' AS diskpath \";\n\n\t\t$sql .= \" FROM content\n\t\t\t\t LEFT JOIN content_terms ON content_terms.contentid = content.id\n\t\t\t\t LEFT JOIN term_taxonomy ON term_taxonomy.id = content_terms.termid\n\t\t\t\t LEFT JOIN terms ON terms.id = term_taxonomy.termid\n\t\t\t\t LEFT JOIN templates ON templates.id = content.templateid \n\t\t\t\t\";\n\n\n\t\t// WHERE CLAUSE INFO\n\n\t\t$sql .= \" WHERE content.search_exclude <> 1 AND deleted='0' \";\n\n\t\tif (isset($params['search_terms'])) { // general search\n\n\t\t\t$arrSearchTerms = explode(\",\",$params['search_terms']);\n\n\t\t\tif (is_array($arrSearchTerms)) {\n\n\t\t\t\t$sql .= \" AND ( \";\n\n\t\t\t\tforeach ($arrSearchTerms as $term) {\n\t\t\t\t\t$i++;\n\t\t\t\t\t$sql .= \" content.migtitle LIKE :term\".$i.\" OR\";\n\n\t\t\t\t\t///!!!! crucial for tag search - use like ins\n\t\t\t\t\t//$sql .= \" tags.tag = :termtags\".$i.\" OR\";\n\t\t\t\t\t//$sendParams['termtags'.$i] = $term;\n\n\t\t\t\t\t$sql .= \" terms.name LIKE :term\".$i.\" OR\";\n\t\t\t\t\t$sendParams['term'.$i] = \"%\".$term.\"%\";\n\t\t\t\t}\n\n\t\t\t\t// remove last \"OR\"\n\n\t\t\t\t$sql = substr($sql,0,strlen($sql)-2);\n\n\t\t\t\t$sql .= \" ) \";\n\n\t\t\t\tforeach ($params as $key=>$value)\n\t\t\t\t{\n\t\t\t\t\tif (!in_array($key,$validParams))\n\t\t\t\t\t{ // this is a custom parameter\n\t\t\t\t\t\t$sql .= \" AND \" . $key . \" = :'\".$key;\n\t\t\t\t\t\t$sendParams[$key] = $value;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// GROUP BY CLAUSE\n\n\t\t$sql .= \" GROUP BY content.id ) \";\n\n\t}\n\n\t// ORDER BY\n\n\t$sql .= \" ORDER BY contentid,mediaid,createdate DESC\";\n\n\n\t// get the results\n\t$result = queryDatabase($sql, $sendParams);\n\n\t// return the results\n\treturn $result;\n}", "title": "" }, { "docid": "6ec94616cfd335874d575f379d4cceef", "score": "0.55546683", "text": "function rechercheDisctionnaire ($word){\n\n}", "title": "" }, { "docid": "5885a4b09f64bbf02fd16ceb685c365f", "score": "0.55544794", "text": "public function indexArticles()\n {\n\n $connection = ConnectionManager::get('default');\n $res2 = $connection\n ->execute(\n 'SELECT * FROM personnalisation'\n )->fetch('assoc');\n $this->set('personnalisation',$res2);\n $this->paginate = [\n 'contain' => ['StockCategories']\n ];\n\n $articles = $this->paginate(TableRegistry::get('Articles')); // WORKING !!!!!!!\n /* $articles = $this->paginate($this->Articles); */\n\n $this->set(compact('articles'));\n $this->set('_serialize', ['articles']);\n $this->render('/Espaces/respostocks/index_articles');\n }", "title": "" }, { "docid": "a0a62059901b211eec1d963d6383bb29", "score": "0.55502653", "text": "function getNonPublie($dbt=0,$nb){\n $query=$this->db->query(\"SELECT article.id as AID, titre, publication,categorie_article.id AS CID, contenu, ajout, publie, categorie_article.categorie_article, login, image, doc\n FROM article\n INNER JOIN categorie_article ON categorie_article.id = article.categorie_article\n INNER JOIN admin ON admin.id = article.auteur\n WHERE publie='non'\n ORDER BY ajout DESC\n LIMIT \".$dbt.\",\".$nb); \n return $query->result();\n }", "title": "" }, { "docid": "19ee9beee45487d8cd081363be3d358d", "score": "0.5538157", "text": "public function getSearchNotes($CultureID,$search_peram,$PageSize = NULL, $RecordOffest = NULL) {\n\n $query = 'SELECT nd.NoteID,nd.title,nd.CultureID FROM Notes_Details nd ';\n $where = \" WHERE nd.cultureID = :cultureID \";\n \n //for character filter\n if (isset($search_peram['characters']) && !empty($search_peram['characters'])) {\n if ($search_peram['character_search_type'] == 'and') {\n $character_count = count($search_peram['characters']);\n $query .= sprintf(\" JOIN (SELECT ItemID FROM accObjectsToCharacterization WHERE accObjectsToCharacterization.ChoiceID IN (%s) \", implode(\",\", $search_peram['characters']));\n $query .= \" GROUP BY accObjectsToCharacterization.ItemID HAVING COUNT(*) = $character_count) ch ON ch.ItemID = nd.NoteID \";\n } else if ($search_peram['character_search_type'] == 'or') {\n $query .= ' LEFT JOIN accObjectsToCharacterization ON nd.NoteID = accObjectsToCharacterization.ItemID ';\n $where .= sprintf(\" AND accObjectsToCharacterization.ChoiceID IN (%s)\", implode(\",\", $search_peram['characters']));\n }\n }\n \n //for keywords filter\n if (isset($search_peram['keywords']) && !empty($search_peram['keywords'])) {\n $keyword_search_type = (isset($_POST['keyword_search_type']) && $_POST['keyword_search_type']) ? $_POST['keyword_search_type'] : '';\n if ($keyword_search_type == \"and\") {\n $keyword_count = count($search_peram['keywords']);\n $query .= sprintf(\" JOIN (SELECT RecordID FROM keywords_per_record WHERE keywords_per_record.TableName = 'tNotes' AND keywords_per_record.KeywordID IN (%s) \", implode(\",\", $search_peram['keywords']));\n $query .= \" GROUP BY keywords_per_record.RecordID HAVING COUNT(*) = $keyword_count)k ON k.RecordID = nd.NoteID \";\n } else {\n $query .= ' LEFT JOIN keywords_per_record ON keywords_per_record.TableName = \"tNotes\" AND keywords_per_record.RecordID = nd.NoteID ';\n $where .= sprintf(\" AND keywords_per_record.KeywordID IN (%s) \", implode(\",\", $search_peram['keywords']));\n }\n }\n \n //for publicationTypes filter\n if (isset($search_peram['publicationTypes']) && !empty($search_peram['publicationTypes'])) {\n if ($search_peram['publication_search_type'] == 'and') {\n $publication_count = count($search_peram['publicationTypes']);\n $query .= sprintf(\" JOIN (SELECT ItemID FROM NotePublicationTypesToObjects WHERE ChoiceID IN (%s) \", implode(\",\", $search_peram['publicationTypes']));\n $query .= \" GROUP BY ItemID HAVING COUNT(*) = $publication_count) npt ON npt.ItemID = nd.NoteID \";\n } else if ($search_peram['publication_search_type'] == 'or') {\n $query .= ' LEFT JOIN NotePublicationTypesToObjects npt ON nd.NoteID = npt.ItemID ';\n $where .= sprintf(\" AND npt.ChoiceID IN (%s)\", implode(\",\", $search_peram['publicationTypes']));\n }\n }\n\n //for objects which have relation with archived object\n if (isset($search_peram['MainUnities']) && $search_peram['MainUnities']) {\n $query .= \"LEFT JOIN accompanyingObjectsPerArchivedObjects \n ON accompanyingObjectsPerArchivedObjects.accompanyingObjectID = nd.NoteID\n LEFT JOIN archivedobjects \n ON accompanyingObjectsPerArchivedObjects.archivedObjectID = archivedobjects.ArchivedObjectID\n LEFT JOIN items \n ON items.itemID = archivedobjects.ArchivedObjectID\n LEFT JOIN itemtypes \n ON items.itemTypeID = itemtypes.itemTypeID \";\n $_mainUnities = implode(\",\", $_POST['MainUnities']);\n if (strpos($_mainUnities, 'REGIONS') !== false) {\n $where .= \" AND archivedobjects.IsRegion = 1\";\n\n $_mainUnities = str_replace(\"REGIONS,\", \"\", $_mainUnities);\n $_mainUnities = str_replace(\"REGIONS\", \"\", $_mainUnities);\n }\n if (!IsNullOrEmpty($_mainUnities)) {\n $where .= sprintf(\" AND items.itemTypeID IN (%s) \", $_mainUnities);\n }\n }\n \n if (isset($search_peram['title']) && $search_peram['title']) {\n $title_type = (isset($_POST['title_type']) && $_POST['title_type']) ? $_POST['title_type'] : '';\n $t =addslashes(preg_quote($search_peram['title']));\n $words = preg_split('/\\s+/', $t);\n if ($title_type == \"or\") {\n $where .= sprintf(\" AND nd.title REGEXP '%s' \", implode(\"|\", $words));\n } else if ($title_type == \"and\") {\n $where .= \" AND nd.title like '%\" . implode(\"%\", $words) . \"%'\";\n } else if ($title_type == \"exact\") {\n $where .= \" AND nd.title like '%$t%' \";\n }\n }\n \n if (isset($search_peram['abbreviation']) && $search_peram['abbreviation']) {\n $abbr_type = (isset($search_peram['abbreviation_search_type']) && $search_peram['abbreviation_search_type']) ? $search_peram['abbreviation_search_type'] : '';\n $abbr = addslashes(preg_quote($search_peram['abbreviation']));\n $abbr_words = preg_split('/\\s+/', $abbr);\n if ($abbr_type == \"or\") {\n $where .= sprintf(\" AND nd.abbreviation REGEXP '%s' \", implode(\"|\", $abbr_words));\n } else if ($abbr_type == \"and\") {\n $where .= \" AND nd.abbreviation like '%\" . implode(\"%\", $abbr_words) . \"%'\";\n } else if ($abbr_type == \"exact\") {\n $where .= \" AND nd.abbreviation like '%$abbr%' \";\n }\n }\n \n // where conditions added to query\n $query .= $where;\n $query .= ' GROUP BY nd.NoteID ';\n if (is_numeric($PageSize) && is_numeric($RecordOffest)) {\n //echo '2:' . $PageSize . ' ' . $RecordOffest ;\n $query .= \" LIMIT \" . $RecordOffest . \",\" . $PageSize;\n }\n// print_r($search_peram);\n// echo $query;\n\n $stmt = $this->pdo->prepare($query);\n $result = $stmt->execute( array('cultureID' => $CultureID ));\n $array = array();\n $ind = 0;\n foreach ($stmt as $row) {\n $itm = new Note();\n $itm->NoteID = $row['NoteID'];\n $itm->CultureID = $row['CultureID'];\n $itm->title = $row['title'];\n $array[$ind] = $itm;\n $ind++;\n }\n return $array;\n\n }", "title": "" }, { "docid": "6a0443a85db89624cef1197fc5a57319", "score": "0.55278134", "text": "public function search( ) {\n }", "title": "" }, { "docid": "d0f8e75d7b6bada1afbe1e126c672aaf", "score": "0.55219775", "text": "public function rechercheAction()\n {\n\n $this->_helper->layout()->setLayout('layoutpublic');\n $filiere = new Application_Model_EuFiliereMapper();\n $acteursmembremorale = new Application_Model_EuMembreMoraleMapper();\n $this->view->selectfiliere = $filiere->fetchAll2();\n if(isset($_POST['ok']) && $_POST['ok']==\"ok\"){\n $this->view->entries = $acteursmembremorale->fetchAllrecherche($_POST['id_filiere'], $_POST['quartier'], $_POST['ville']);\n }\n }", "title": "" }, { "docid": "ad3198d779d00bb9fc3156f5176e5f24", "score": "0.5518376", "text": "function republikaNews($url){\n $data= file_get_contents($url);\n $data= simplexml_load_string($data);\n $articles = array();\n foreach ($data->channel->item as $item) {\n $media = $item->children('http://search.yahoo.com/mrss/');\n $image = array();\n foreach ($media->content[0]->attributes() as $key => $value) {\n $image[$key] = (string)$value;\n }\n $articles[]= array(\n 'title' => (string)$item->title,\n 'link' => (string)$item->link,\n 'date' => (string)$item->pubDate,\n 'creator' => (string)$item->children('http://purl.org/dc/elements/1.1/'),\n 'image' => $image,\n 'description' => (string)$item->description\n );\n }\n return $articles;\n}", "title": "" }, { "docid": "b0587b357c834f0b72d09e07d99f6a28", "score": "0.55104667", "text": "public function getArticleList()\n {\n $request = \"SELECT * FROM article\";\n $request = $this->connexion->query($request);\n $articlelist = $request->fetchAll(PDO::FETCH_ASSOC);\n\n return $articlelist;\n }", "title": "" }, { "docid": "2b7f8b69231ccb040fd78a9d564699f2", "score": "0.5505877", "text": "function getArticlesList() {\n $sql = \"select articleid, title from articles\";\n $res = $this->query($sql);\n $articles_list = array();\n while ($row = $res->fetch_array(MYSQLI_ASSOC)) {\n $articles_list[] = $row;\n }\n return $articles_list;\n }", "title": "" }, { "docid": "eed1e7ce9c76436160d4f9565d68a59e", "score": "0.5505359", "text": "public function listeArticle() {\n\t\t$article = new Model_Article();\n\t\t$listeArticle =$article->listeArticle();\n\t\trequire_once($_SERVER['DOCUMENT_ROOT'].'/IMIE/boutique/views/article/liste.php');\n\t}", "title": "" }, { "docid": "f8f628fe9030b3c04783651f5e0eacdc", "score": "0.5494184", "text": "public function search()\n {\n }", "title": "" }, { "docid": "f8f628fe9030b3c04783651f5e0eacdc", "score": "0.5494184", "text": "public function search()\n {\n }", "title": "" }, { "docid": "f4ce771c75f52ee066451a61986ffd71", "score": "0.5489981", "text": "public function hitung_artikel($where=''){\n\t\treturn $this->count_article($where);\n\t}", "title": "" } ]